Annotation of sql/sqlite/configure, revision 1.22
1.1 misha 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.22 ! moko 3: # Generated by GNU Autoconf 2.68 for parser3sqlite.C 10.2.
! 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.22 ! moko 13: ## -------------------- ##
! 14: ## M4sh Initialization. ##
! 15: ## -------------------- ##
1.1 misha 16:
1.22 ! 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.22 ! 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.22 ! 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.10 moko 72: fi
73:
1.22 ! 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:
1.10 moko 83:
1.22 ! 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: as_myself=
! 93: case $0 in #((
! 94: *[\\/]* ) as_myself=$0 ;;
! 95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 96: for as_dir in $PATH
! 97: do
! 98: IFS=$as_save_IFS
! 99: test -z "$as_dir" && as_dir=.
! 100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 101: done
! 102: IFS=$as_save_IFS
! 103:
! 104: ;;
! 105: esac
! 106: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 107: # in which case we are not to be found in the path.
! 108: if test "x$as_myself" = x; then
! 109: as_myself=$0
! 110: fi
! 111: if test ! -f "$as_myself"; then
! 112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 113: exit 1
! 114: fi
! 115:
! 116: # Unset variables that we do not need and which cause bugs (e.g. in
! 117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
! 118: # suppresses any "Segmentation fault" message there. '((' could
! 119: # trigger a bug in pdksh 5.2.14.
! 120: for as_var in BASH_ENV ENV MAIL MAILPATH
! 121: do eval test x\${$as_var+set} = xset \
! 122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 123: done
1.1 misha 124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.22 ! moko 129: LC_ALL=C
! 130: export LC_ALL
! 131: LANGUAGE=C
! 132: export LANGUAGE
! 133:
! 134: # CDPATH.
! 135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
! 136:
! 137: if test "x$CONFIG_SHELL" = x; then
! 138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
! 139: emulate sh
! 140: NULLCMD=:
! 141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
! 142: # is contrary to our usage. Disable this feature.
! 143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
! 144: setopt NO_GLOB_SUBST
! 145: else
! 146: case \`(set -o) 2>/dev/null\` in #(
! 147: *posix*) :
! 148: set -o posix ;; #(
! 149: *) :
! 150: ;;
! 151: esac
! 152: fi
! 153: "
! 154: as_required="as_fn_return () { (exit \$1); }
! 155: as_fn_success () { as_fn_return 0; }
! 156: as_fn_failure () { as_fn_return 1; }
! 157: as_fn_ret_success () { return 0; }
! 158: as_fn_ret_failure () { return 1; }
! 159:
! 160: exitcode=0
! 161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
! 162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
! 163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
! 164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
! 165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
! 166:
! 167: else
! 168: exitcode=1; echo positional parameters were not saved.
! 169: fi
! 170: test x\$exitcode = x0 || exit 1"
! 171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
! 172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
! 173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
! 174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
! 175:
! 176: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
! 177: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 178: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
! 179: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
! 180: PATH=/empty FPATH=/empty; export PATH FPATH
! 181: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
! 182: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
! 183: test \$(( 1 + 1 )) = 2 || exit 1"
! 184: if (eval "$as_required") 2>/dev/null; then :
! 185: as_have_required=yes
! 186: else
! 187: as_have_required=no
! 188: fi
! 189: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
! 190:
! 191: else
! 192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 193: as_found=false
! 194: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.1 misha 195: do
1.22 ! moko 196: IFS=$as_save_IFS
! 197: test -z "$as_dir" && as_dir=.
! 198: as_found=:
! 199: case $as_dir in #(
! 200: /*)
! 201: for as_base in sh bash ksh sh5; do
! 202: # Try only shells that exist, to save several forks.
! 203: as_shell=$as_dir/$as_base
! 204: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
! 205: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
! 206: CONFIG_SHELL=$as_shell as_have_required=yes
! 207: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
! 208: break 2
! 209: fi
! 210: fi
! 211: done;;
! 212: esac
! 213: as_found=false
! 214: done
! 215: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
! 216: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
! 217: CONFIG_SHELL=$SHELL as_have_required=yes
! 218: fi; }
! 219: IFS=$as_save_IFS
! 220:
! 221:
! 222: if test "x$CONFIG_SHELL" != x; then :
! 223: # We cannot yet assume a decent shell, so we have to provide a
! 224: # neutralization value for shells without unset; and this also
! 225: # works around shells that cannot unset nonexistent variables.
! 226: # Preserve -v and -x to the replacement shell.
! 227: BASH_ENV=/dev/null
! 228: ENV=/dev/null
! 229: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 230: export CONFIG_SHELL
! 231: case $- in # ((((
! 232: *v*x* | *x*v* ) as_opts=-vx ;;
! 233: *v* ) as_opts=-v ;;
! 234: *x* ) as_opts=-x ;;
! 235: * ) as_opts= ;;
! 236: esac
! 237: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
! 238: fi
! 239:
! 240: if test x$as_have_required = xno; then :
! 241: $as_echo "$0: This script requires a shell more modern than all"
! 242: $as_echo "$0: the shells that I found on your system."
! 243: if test x${ZSH_VERSION+set} = xset ; then
! 244: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
! 245: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1.1 misha 246: else
1.22 ! moko 247: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
! 248: $0: including any error possibly output before this
! 249: $0: message. Then install a modern shell, or manually run
! 250: $0: the script under such a shell if you do have one."
1.1 misha 251: fi
1.22 ! moko 252: exit 1
! 253: fi
! 254: fi
! 255: fi
! 256: SHELL=${CONFIG_SHELL-/bin/sh}
! 257: export SHELL
! 258: # Unset more variables known to interfere with behavior of common tools.
! 259: CLICOLOR_FORCE= GREP_OPTIONS=
! 260: unset CLICOLOR_FORCE GREP_OPTIONS
! 261:
! 262: ## --------------------- ##
! 263: ## M4sh Shell Functions. ##
! 264: ## --------------------- ##
! 265: # as_fn_unset VAR
! 266: # ---------------
! 267: # Portably unset VAR.
! 268: as_fn_unset ()
! 269: {
! 270: { eval $1=; unset $1;}
! 271: }
! 272: as_unset=as_fn_unset
! 273:
! 274: # as_fn_set_status STATUS
! 275: # -----------------------
! 276: # Set $? to STATUS, without forking.
! 277: as_fn_set_status ()
! 278: {
! 279: return $1
! 280: } # as_fn_set_status
! 281:
! 282: # as_fn_exit STATUS
! 283: # -----------------
! 284: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
! 285: as_fn_exit ()
! 286: {
! 287: set +e
! 288: as_fn_set_status $1
! 289: exit $1
! 290: } # as_fn_exit
! 291:
! 292: # as_fn_mkdir_p
! 293: # -------------
! 294: # Create "$as_dir" as a directory, including parents if necessary.
! 295: as_fn_mkdir_p ()
! 296: {
! 297:
! 298: case $as_dir in #(
! 299: -*) as_dir=./$as_dir;;
! 300: esac
! 301: test -d "$as_dir" || eval $as_mkdir_p || {
! 302: as_dirs=
! 303: while :; do
! 304: case $as_dir in #(
! 305: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
! 306: *) as_qdir=$as_dir;;
! 307: esac
! 308: as_dirs="'$as_qdir' $as_dirs"
! 309: as_dir=`$as_dirname -- "$as_dir" ||
! 310: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 311: X"$as_dir" : 'X\(//\)[^/]' \| \
! 312: X"$as_dir" : 'X\(//\)$' \| \
! 313: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 314: $as_echo X"$as_dir" |
! 315: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 316: s//\1/
! 317: q
! 318: }
! 319: /^X\(\/\/\)[^/].*/{
! 320: s//\1/
! 321: q
! 322: }
! 323: /^X\(\/\/\)$/{
! 324: s//\1/
! 325: q
! 326: }
! 327: /^X\(\/\).*/{
! 328: s//\1/
! 329: q
! 330: }
! 331: s/.*/./; q'`
! 332: test -d "$as_dir" && break
! 333: done
! 334: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 335: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
! 336:
! 337:
! 338: } # as_fn_mkdir_p
! 339: # as_fn_append VAR VALUE
! 340: # ----------------------
! 341: # Append the text in VALUE to the end of the definition contained in VAR. Take
! 342: # advantage of any shell optimizations that allow amortized linear growth over
! 343: # repeated appends, instead of the typical quadratic growth present in naive
! 344: # implementations.
! 345: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
! 346: eval 'as_fn_append ()
! 347: {
! 348: eval $1+=\$2
! 349: }'
! 350: else
! 351: as_fn_append ()
! 352: {
! 353: eval $1=\$$1\$2
! 354: }
! 355: fi # as_fn_append
! 356:
! 357: # as_fn_arith ARG...
! 358: # ------------------
! 359: # Perform arithmetic evaluation on the ARGs, and store the result in the
! 360: # global $as_val. Take advantage of shells that can avoid forks. The arguments
! 361: # must be portable across $(()) and expr.
! 362: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
! 363: eval 'as_fn_arith ()
! 364: {
! 365: as_val=$(( $* ))
! 366: }'
! 367: else
! 368: as_fn_arith ()
! 369: {
! 370: as_val=`expr "$@" || test $? -eq 1`
! 371: }
! 372: fi # as_fn_arith
! 373:
! 374:
! 375: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 376: # ----------------------------------------
! 377: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
! 378: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
! 379: # script with STATUS, using 1 if that was 0.
! 380: as_fn_error ()
! 381: {
! 382: as_status=$1; test $as_status -eq 0 && as_status=1
! 383: if test "$4"; then
! 384: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 385: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
! 386: fi
! 387: $as_echo "$as_me: error: $2" >&2
! 388: as_fn_exit $as_status
! 389: } # as_fn_error
1.10 moko 390:
1.22 ! moko 391: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 392: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 misha 393: as_expr=expr
394: else
395: as_expr=false
396: fi
397:
1.22 ! moko 398: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1 misha 399: as_basename=basename
400: else
401: as_basename=false
402: fi
403:
1.22 ! moko 404: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 405: as_dirname=dirname
! 406: else
! 407: as_dirname=false
! 408: fi
1.1 misha 409:
1.22 ! moko 410: as_me=`$as_basename -- "$0" ||
1.1 misha 411: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412: X"$0" : 'X\(//\)$' \| \
1.22 ! moko 413: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 414: $as_echo X/"$0" |
! 415: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 416: s//\1/
! 417: q
! 418: }
! 419: /^X\/\(\/\/\)$/{
! 420: s//\1/
! 421: q
! 422: }
! 423: /^X\/\(\/\).*/{
! 424: s//\1/
! 425: q
! 426: }
! 427: s/.*/./; q'`
1.11 moko 428:
1.1 misha 429: # Avoid depending upon Character Ranges.
430: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433: as_cr_digits='0123456789'
434: as_cr_alnum=$as_cr_Letters$as_cr_digits
435:
436:
1.22 ! moko 437: as_lineno_1=$LINENO as_lineno_1a=$LINENO
! 438: as_lineno_2=$LINENO as_lineno_2a=$LINENO
! 439: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
! 440: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
! 441: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
! 442: sed -n '
! 443: p
! 444: /[$]LINENO/=
! 445: ' <$as_myself |
1.1 misha 446: sed '
1.22 ! moko 447: s/[$]LINENO.*/&-/
! 448: t lineno
! 449: b
! 450: :lineno
1.1 misha 451: N
1.22 ! moko 452: :loop
! 453: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 misha 454: t loop
1.22 ! moko 455: s/-\n.*//
1.1 misha 456: ' >$as_me.lineno &&
1.22 ! moko 457: chmod +x "$as_me.lineno" ||
! 458: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 misha 459:
460: # Don't try to exec as it changes $[0], causing all sort of problems
461: # (the dirname of $[0] is not the place where we might find the
1.22 ! moko 462: # original and so on. Autoconf is especially sensitive to this).
! 463: . "./$as_me.lineno"
1.1 misha 464: # Exit status is that of the last command.
465: exit
466: }
467:
1.22 ! moko 468: ECHO_C= ECHO_N= ECHO_T=
! 469: case `echo -n x` in #(((((
! 470: -n*)
! 471: case `echo 'xy\c'` in
! 472: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 473: xy) ECHO_C='\c';;
! 474: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
! 475: ECHO_T=' ';;
! 476: esac;;
! 477: *)
! 478: ECHO_N='-n';;
1.1 misha 479: esac
480:
1.22 ! moko 481: rm -f conf$$ conf$$.exe conf$$.file
! 482: if test -d conf$$.dir; then
! 483: rm -f conf$$.dir/conf$$.file
1.1 misha 484: else
1.22 ! moko 485: rm -f conf$$.dir
! 486: mkdir conf$$.dir 2>/dev/null
1.1 misha 487: fi
1.22 ! moko 488: if (echo >conf$$.file) 2>/dev/null; then
! 489: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 490: as_ln_s='ln -s'
! 491: # ... but there are two gotchas:
! 492: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 493: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 494: # In both cases, we have to default to `cp -p'.
! 495: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 496: as_ln_s='cp -p'
! 497: elif ln conf$$.file conf$$ 2>/dev/null; then
! 498: as_ln_s=ln
! 499: else
1.11 moko 500: as_ln_s='cp -p'
1.1 misha 501: fi
502: else
503: as_ln_s='cp -p'
504: fi
1.22 ! moko 505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 506: rmdir conf$$.dir 2>/dev/null
1.1 misha 507:
508: if mkdir -p . 2>/dev/null; then
1.22 ! moko 509: as_mkdir_p='mkdir -p "$as_dir"'
1.1 misha 510: else
511: test -d ./-p && rmdir ./-p
512: as_mkdir_p=false
513: fi
514:
1.22 ! moko 515: if test -x / >/dev/null 2>&1; then
! 516: as_test_x='test -x'
! 517: else
! 518: if ls -dL / >/dev/null 2>&1; then
! 519: as_ls_L_option=L
! 520: else
! 521: as_ls_L_option=
! 522: fi
! 523: as_test_x='
! 524: eval sh -c '\''
! 525: if test -d "$1"; then
! 526: test -d "$1/.";
! 527: else
! 528: case $1 in #(
! 529: -*)set "./$1";;
! 530: esac;
! 531: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
! 532: ???[sx]*):;;*)false;;esac;fi
! 533: '\'' sh
! 534: '
! 535: fi
! 536: as_executable_p=$as_test_x
1.1 misha 537:
538: # Sed expression to map a string onto a valid CPP name.
539: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540:
541: # Sed expression to map a string onto a valid variable name.
542: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543:
1.13 moko 544: lt_ltdl_dir='libltdl'
545:
1.1 misha 546: SHELL=${CONFIG_SHELL-/bin/sh}
547:
1.8 moko 548: lt_dlopen_dir="$lt_ltdl_dir"
1.1 misha 549:
550:
1.22 ! moko 551: test -n "$DJDIR" || exec 7<&0 </dev/null
! 552: exec 6>&1
! 553:
1.1 misha 554: # Name of the host.
1.22 ! moko 555: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1 misha 556: # so uname gets run too.
557: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558:
559: #
560: # Initializations.
561: #
562: ac_default_prefix=/usr/local
1.22 ! moko 563: ac_clean_files=
1.1 misha 564: ac_config_libobj_dir=.
1.22 ! moko 565: LIBOBJS=
1.1 misha 566: cross_compiling=no
567: subdirs=
568: MFLAGS=
569: MAKEFLAGS=
570:
571: # Identity of this package.
1.13 moko 572: PACKAGE_NAME='parser3sqlite.C'
573: PACKAGE_TARNAME='parser3sqlite-c'
574: PACKAGE_VERSION='10.2'
575: PACKAGE_STRING='parser3sqlite.C 10.2'
576: PACKAGE_BUGREPORT=''
1.22 ! moko 577: PACKAGE_URL=''
1.1 misha 578:
579: ac_unique_file="parser3sqlite.C"
580: # Factoring default headers for most tests.
581: ac_includes_default="\
582: #include <stdio.h>
1.22 ! moko 583: #ifdef HAVE_SYS_TYPES_H
1.1 misha 584: # include <sys/types.h>
585: #endif
1.22 ! moko 586: #ifdef HAVE_SYS_STAT_H
1.1 misha 587: # include <sys/stat.h>
588: #endif
1.22 ! moko 589: #ifdef STDC_HEADERS
1.1 misha 590: # include <stdlib.h>
591: # include <stddef.h>
592: #else
1.22 ! moko 593: # ifdef HAVE_STDLIB_H
1.1 misha 594: # include <stdlib.h>
595: # endif
596: #endif
1.22 ! moko 597: #ifdef HAVE_STRING_H
! 598: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.1 misha 599: # include <memory.h>
600: # endif
601: # include <string.h>
602: #endif
1.22 ! moko 603: #ifdef HAVE_STRINGS_H
1.1 misha 604: # include <strings.h>
605: #endif
1.22 ! moko 606: #ifdef HAVE_INTTYPES_H
1.1 misha 607: # include <inttypes.h>
608: #endif
1.22 ! moko 609: #ifdef HAVE_STDINT_H
! 610: # include <stdint.h>
! 611: #endif
! 612: #ifdef HAVE_UNISTD_H
1.1 misha 613: # include <unistd.h>
614: #endif"
615:
1.22 ! moko 616: enable_option_checking=no
! 617: ac_subst_vars='ltdl_LTLIBOBJS
! 618: ltdl_LIBOBJS
! 619: am__EXEEXT_FALSE
! 620: am__EXEEXT_TRUE
! 621: LTLIBOBJS
! 622: LIBOBJS
! 623: LTDLOPEN
! 624: LT_CONFIG_H
! 625: subdirs
! 626: CONVENIENCE_LTDL_FALSE
! 627: CONVENIENCE_LTDL_TRUE
! 628: INSTALL_LTDL_FALSE
! 629: INSTALL_LTDL_TRUE
! 630: ARGZ_H
! 631: sys_symbol_underscore
! 632: LIBADD_DL
! 633: LT_DLPREOPEN
! 634: LIBADD_DLD_LINK
! 635: LIBADD_SHL_LOAD
! 636: LIBADD_DLOPEN
! 637: LT_DLLOADERS
! 638: INCLTDL
! 639: LTDLINCL
! 640: LTDLDEPS
! 641: LIBLTDL
! 642: CXXCPP
! 643: CPP
! 644: OTOOL64
! 645: OTOOL
! 646: LIPO
! 647: NMEDIT
! 648: DSYMUTIL
! 649: MANIFEST_TOOL
! 650: RANLIB
! 651: ac_ct_AR
! 652: AR
! 653: LN_S
! 654: NM
! 655: ac_ct_DUMPBIN
! 656: DUMPBIN
! 657: LD
! 658: FGREP
! 659: EGREP
! 660: GREP
! 661: SED
! 662: host_os
! 663: host_vendor
! 664: host_cpu
! 665: host
! 666: build_os
! 667: build_vendor
! 668: build_cpu
! 669: build
! 670: LIBTOOL
! 671: OBJDUMP
! 672: DLLTOOL
! 673: AS
! 674: am__fastdepCC_FALSE
! 675: am__fastdepCC_TRUE
! 676: CCDEPMODE
! 677: ac_ct_CC
! 678: CFLAGS
! 679: CC
! 680: am__fastdepCXX_FALSE
! 681: am__fastdepCXX_TRUE
! 682: CXXDEPMODE
! 683: AMDEPBACKSLASH
! 684: AMDEP_FALSE
! 685: AMDEP_TRUE
! 686: am__quote
! 687: am__include
! 688: DEPDIR
! 689: OBJEXT
! 690: EXEEXT
! 691: ac_ct_CXX
! 692: CPPFLAGS
! 693: LDFLAGS
! 694: CXXFLAGS
! 695: CXX
! 696: SQLITE_INC
! 697: am__untar
! 698: am__tar
! 699: AMTAR
! 700: am__leading_dot
! 701: SET_MAKE
! 702: AWK
! 703: mkdir_p
! 704: MKDIR_P
! 705: INSTALL_STRIP_PROGRAM
! 706: STRIP
! 707: install_sh
! 708: MAKEINFO
! 709: AUTOHEADER
! 710: AUTOMAKE
! 711: AUTOCONF
! 712: ACLOCAL
! 713: VERSION
! 714: PACKAGE
! 715: CYGPATH_W
! 716: am__isrc
! 717: INSTALL_DATA
! 718: INSTALL_SCRIPT
! 719: INSTALL_PROGRAM
! 720: target_alias
! 721: host_alias
! 722: build_alias
! 723: LIBS
! 724: ECHO_T
! 725: ECHO_N
! 726: ECHO_C
! 727: DEFS
! 728: mandir
! 729: localedir
! 730: libdir
! 731: psdir
! 732: pdfdir
! 733: dvidir
! 734: htmldir
! 735: infodir
! 736: docdir
! 737: oldincludedir
! 738: includedir
! 739: localstatedir
! 740: sharedstatedir
! 741: sysconfdir
! 742: datadir
! 743: datarootdir
! 744: libexecdir
! 745: sbindir
! 746: bindir
! 747: program_transform_name
! 748: prefix
! 749: exec_prefix
! 750: PACKAGE_URL
! 751: PACKAGE_BUGREPORT
! 752: PACKAGE_STRING
! 753: PACKAGE_VERSION
! 754: PACKAGE_TARNAME
! 755: PACKAGE_NAME
! 756: PATH_SEPARATOR
! 757: SHELL'
1.1 misha 758: ac_subst_files=''
1.22 ! moko 759: ac_user_opts='
! 760: enable_option_checking
! 761: with_sqlite_inc
! 762: enable_dependency_tracking
! 763: enable_static
! 764: enable_shared
! 765: with_pic
! 766: enable_fast_install
! 767: with_gnu_ld
! 768: with_sysroot
! 769: enable_libtool_lock
! 770: with_included_ltdl
! 771: with_ltdl_include
! 772: with_ltdl_lib
! 773: enable_ltdl_install
! 774: '
! 775: ac_precious_vars='build_alias
! 776: host_alias
! 777: target_alias
! 778: CXX
! 779: CXXFLAGS
! 780: LDFLAGS
! 781: LIBS
! 782: CPPFLAGS
! 783: CCC
! 784: CC
! 785: CFLAGS
! 786: CPP
! 787: CXXCPP'
! 788: ac_subdirs_all='libltdl'
1.1 misha 789:
790: # Initialize some variables set by options.
791: ac_init_help=
792: ac_init_version=false
1.22 ! moko 793: ac_unrecognized_opts=
! 794: ac_unrecognized_sep=
1.1 misha 795: # The variables have the same names as the options, with
796: # dashes changed to underlines.
797: cache_file=/dev/null
798: exec_prefix=NONE
799: no_create=
800: no_recursion=
801: prefix=NONE
802: program_prefix=NONE
803: program_suffix=NONE
804: program_transform_name=s,x,x,
805: silent=
806: site=
807: srcdir=
808: verbose=
809: x_includes=NONE
810: x_libraries=NONE
811:
812: # Installation directory options.
813: # These are left unexpanded so users can "make install exec_prefix=/foo"
814: # and all the variables that are supposed to be based on exec_prefix
815: # by default will actually change.
816: # Use braces instead of parens because sh, perl, etc. also accept them.
1.22 ! moko 817: # (The list follows the same order as the GNU Coding Standards.)
1.1 misha 818: bindir='${exec_prefix}/bin'
819: sbindir='${exec_prefix}/sbin'
820: libexecdir='${exec_prefix}/libexec'
1.22 ! moko 821: datarootdir='${prefix}/share'
! 822: datadir='${datarootdir}'
1.1 misha 823: sysconfdir='${prefix}/etc'
824: sharedstatedir='${prefix}/com'
825: localstatedir='${prefix}/var'
826: includedir='${prefix}/include'
827: oldincludedir='/usr/include'
1.22 ! moko 828: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
! 829: infodir='${datarootdir}/info'
! 830: htmldir='${docdir}'
! 831: dvidir='${docdir}'
! 832: pdfdir='${docdir}'
! 833: psdir='${docdir}'
! 834: libdir='${exec_prefix}/lib'
! 835: localedir='${datarootdir}/locale'
! 836: mandir='${datarootdir}/man'
1.1 misha 837:
838: ac_prev=
1.22 ! moko 839: ac_dashdash=
1.1 misha 840: for ac_option
841: do
842: # If the previous option needs an argument, assign it.
843: if test -n "$ac_prev"; then
1.22 ! moko 844: eval $ac_prev=\$ac_option
1.1 misha 845: ac_prev=
846: continue
847: fi
848:
1.22 ! moko 849: case $ac_option in
! 850: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 851: *=) ac_optarg= ;;
! 852: *) ac_optarg=yes ;;
! 853: esac
1.1 misha 854:
855: # Accept the important Cygnus configure options, so we can diagnose typos.
856:
1.22 ! moko 857: case $ac_dashdash$ac_option in
! 858: --)
! 859: ac_dashdash=yes ;;
1.1 misha 860:
861: -bindir | --bindir | --bindi | --bind | --bin | --bi)
862: ac_prev=bindir ;;
863: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864: bindir=$ac_optarg ;;
865:
866: -build | --build | --buil | --bui | --bu)
867: ac_prev=build_alias ;;
868: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869: build_alias=$ac_optarg ;;
870:
871: -cache-file | --cache-file | --cache-fil | --cache-fi \
872: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873: ac_prev=cache_file ;;
874: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876: cache_file=$ac_optarg ;;
877:
878: --config-cache | -C)
879: cache_file=config.cache ;;
880:
1.22 ! moko 881: -datadir | --datadir | --datadi | --datad)
1.1 misha 882: ac_prev=datadir ;;
1.22 ! moko 883: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1 misha 884: datadir=$ac_optarg ;;
885:
1.22 ! moko 886: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
! 887: | --dataroo | --dataro | --datar)
! 888: ac_prev=datarootdir ;;
! 889: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
! 890: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
! 891: datarootdir=$ac_optarg ;;
! 892:
1.1 misha 893: -disable-* | --disable-*)
1.22 ! moko 894: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 misha 895: # Reject names that are not valid shell variable names.
1.22 ! moko 896: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 897: as_fn_error $? "invalid feature name: $ac_useropt"
! 898: ac_useropt_orig=$ac_useropt
! 899: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 900: case $ac_user_opts in
! 901: *"
! 902: "enable_$ac_useropt"
! 903: "*) ;;
! 904: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
! 905: ac_unrecognized_sep=', ';;
! 906: esac
! 907: eval enable_$ac_useropt=no ;;
! 908:
! 909: -docdir | --docdir | --docdi | --doc | --do)
! 910: ac_prev=docdir ;;
! 911: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
! 912: docdir=$ac_optarg ;;
! 913:
! 914: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
! 915: ac_prev=dvidir ;;
! 916: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
! 917: dvidir=$ac_optarg ;;
1.1 misha 918:
919: -enable-* | --enable-*)
1.22 ! moko 920: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 misha 921: # Reject names that are not valid shell variable names.
1.22 ! moko 922: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 923: as_fn_error $? "invalid feature name: $ac_useropt"
! 924: ac_useropt_orig=$ac_useropt
! 925: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 926: case $ac_user_opts in
! 927: *"
! 928: "enable_$ac_useropt"
! 929: "*) ;;
! 930: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
! 931: ac_unrecognized_sep=', ';;
1.1 misha 932: esac
1.22 ! moko 933: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 misha 934:
935: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937: | --exec | --exe | --ex)
938: ac_prev=exec_prefix ;;
939: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941: | --exec=* | --exe=* | --ex=*)
942: exec_prefix=$ac_optarg ;;
943:
944: -gas | --gas | --ga | --g)
945: # Obsolete; use --with-gas.
946: with_gas=yes ;;
947:
948: -help | --help | --hel | --he | -h)
949: ac_init_help=long ;;
950: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951: ac_init_help=recursive ;;
952: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953: ac_init_help=short ;;
954:
955: -host | --host | --hos | --ho)
956: ac_prev=host_alias ;;
957: -host=* | --host=* | --hos=* | --ho=*)
958: host_alias=$ac_optarg ;;
959:
1.22 ! moko 960: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
! 961: ac_prev=htmldir ;;
! 962: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
! 963: | --ht=*)
! 964: htmldir=$ac_optarg ;;
! 965:
1.1 misha 966: -includedir | --includedir | --includedi | --included | --include \
967: | --includ | --inclu | --incl | --inc)
968: ac_prev=includedir ;;
969: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970: | --includ=* | --inclu=* | --incl=* | --inc=*)
971: includedir=$ac_optarg ;;
972:
973: -infodir | --infodir | --infodi | --infod | --info | --inf)
974: ac_prev=infodir ;;
975: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976: infodir=$ac_optarg ;;
977:
978: -libdir | --libdir | --libdi | --libd)
979: ac_prev=libdir ;;
980: -libdir=* | --libdir=* | --libdi=* | --libd=*)
981: libdir=$ac_optarg ;;
982:
983: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984: | --libexe | --libex | --libe)
985: ac_prev=libexecdir ;;
986: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987: | --libexe=* | --libex=* | --libe=*)
988: libexecdir=$ac_optarg ;;
989:
1.22 ! moko 990: -localedir | --localedir | --localedi | --localed | --locale)
! 991: ac_prev=localedir ;;
! 992: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
! 993: localedir=$ac_optarg ;;
! 994:
1.1 misha 995: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.22 ! moko 996: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 misha 997: ac_prev=localstatedir ;;
998: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.22 ! moko 999: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1 misha 1000: localstatedir=$ac_optarg ;;
1001:
1002: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003: ac_prev=mandir ;;
1004: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005: mandir=$ac_optarg ;;
1006:
1007: -nfp | --nfp | --nf)
1008: # Obsolete; use --without-fp.
1009: with_fp=no ;;
1010:
1011: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012: | --no-cr | --no-c | -n)
1013: no_create=yes ;;
1014:
1015: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017: no_recursion=yes ;;
1018:
1019: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021: | --oldin | --oldi | --old | --ol | --o)
1022: ac_prev=oldincludedir ;;
1023: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026: oldincludedir=$ac_optarg ;;
1027:
1028: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029: ac_prev=prefix ;;
1030: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031: prefix=$ac_optarg ;;
1032:
1033: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034: | --program-pre | --program-pr | --program-p)
1035: ac_prev=program_prefix ;;
1036: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038: program_prefix=$ac_optarg ;;
1039:
1040: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041: | --program-suf | --program-su | --program-s)
1042: ac_prev=program_suffix ;;
1043: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045: program_suffix=$ac_optarg ;;
1046:
1047: -program-transform-name | --program-transform-name \
1048: | --program-transform-nam | --program-transform-na \
1049: | --program-transform-n | --program-transform- \
1050: | --program-transform | --program-transfor \
1051: | --program-transfo | --program-transf \
1052: | --program-trans | --program-tran \
1053: | --progr-tra | --program-tr | --program-t)
1054: ac_prev=program_transform_name ;;
1055: -program-transform-name=* | --program-transform-name=* \
1056: | --program-transform-nam=* | --program-transform-na=* \
1057: | --program-transform-n=* | --program-transform-=* \
1058: | --program-transform=* | --program-transfor=* \
1059: | --program-transfo=* | --program-transf=* \
1060: | --program-trans=* | --program-tran=* \
1061: | --progr-tra=* | --program-tr=* | --program-t=*)
1062: program_transform_name=$ac_optarg ;;
1063:
1.22 ! moko 1064: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
! 1065: ac_prev=pdfdir ;;
! 1066: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
! 1067: pdfdir=$ac_optarg ;;
! 1068:
! 1069: -psdir | --psdir | --psdi | --psd | --ps)
! 1070: ac_prev=psdir ;;
! 1071: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
! 1072: psdir=$ac_optarg ;;
! 1073:
1.1 misha 1074: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075: | -silent | --silent | --silen | --sile | --sil)
1076: silent=yes ;;
1077:
1078: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079: ac_prev=sbindir ;;
1080: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081: | --sbi=* | --sb=*)
1082: sbindir=$ac_optarg ;;
1083:
1084: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086: | --sharedst | --shareds | --shared | --share | --shar \
1087: | --sha | --sh)
1088: ac_prev=sharedstatedir ;;
1089: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092: | --sha=* | --sh=*)
1093: sharedstatedir=$ac_optarg ;;
1094:
1095: -site | --site | --sit)
1096: ac_prev=site ;;
1097: -site=* | --site=* | --sit=*)
1098: site=$ac_optarg ;;
1099:
1100: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101: ac_prev=srcdir ;;
1102: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103: srcdir=$ac_optarg ;;
1104:
1105: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106: | --syscon | --sysco | --sysc | --sys | --sy)
1107: ac_prev=sysconfdir ;;
1108: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110: sysconfdir=$ac_optarg ;;
1111:
1112: -target | --target | --targe | --targ | --tar | --ta | --t)
1113: ac_prev=target_alias ;;
1114: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115: target_alias=$ac_optarg ;;
1116:
1117: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118: verbose=yes ;;
1119:
1120: -version | --version | --versio | --versi | --vers | -V)
1121: ac_init_version=: ;;
1122:
1123: -with-* | --with-*)
1.22 ! moko 1124: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 misha 1125: # Reject names that are not valid shell variable names.
1.22 ! moko 1126: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 1127: as_fn_error $? "invalid package name: $ac_useropt"
! 1128: ac_useropt_orig=$ac_useropt
! 1129: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 1130: case $ac_user_opts in
! 1131: *"
! 1132: "with_$ac_useropt"
! 1133: "*) ;;
! 1134: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
! 1135: ac_unrecognized_sep=', ';;
1.1 misha 1136: esac
1.22 ! moko 1137: eval with_$ac_useropt=\$ac_optarg ;;
1.1 misha 1138:
1139: -without-* | --without-*)
1.22 ! moko 1140: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 misha 1141: # Reject names that are not valid shell variable names.
1.22 ! moko 1142: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 1143: as_fn_error $? "invalid package name: $ac_useropt"
! 1144: ac_useropt_orig=$ac_useropt
! 1145: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 1146: case $ac_user_opts in
! 1147: *"
! 1148: "with_$ac_useropt"
! 1149: "*) ;;
! 1150: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
! 1151: ac_unrecognized_sep=', ';;
! 1152: esac
! 1153: eval with_$ac_useropt=no ;;
1.1 misha 1154:
1155: --x)
1156: # Obsolete; use --with-x.
1157: with_x=yes ;;
1158:
1159: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160: | --x-incl | --x-inc | --x-in | --x-i)
1161: ac_prev=x_includes ;;
1162: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164: x_includes=$ac_optarg ;;
1165:
1166: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168: ac_prev=x_libraries ;;
1169: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171: x_libraries=$ac_optarg ;;
1172:
1.22 ! moko 1173: -*) as_fn_error $? "unrecognized option: \`$ac_option'
! 1174: Try \`$0 --help' for more information"
1.1 misha 1175: ;;
1176:
1177: *=*)
1178: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179: # Reject names that are not valid shell variable names.
1.22 ! moko 1180: case $ac_envvar in #(
! 1181: '' | [0-9]* | *[!_$as_cr_alnum]* )
! 1182: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
! 1183: esac
! 1184: eval $ac_envvar=\$ac_optarg
1.1 misha 1185: export $ac_envvar ;;
1186:
1187: *)
1188: # FIXME: should be removed in autoconf 3.0.
1.22 ! moko 1189: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 misha 1190: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.22 ! moko 1191: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
! 1192: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 misha 1193: ;;
1194:
1195: esac
1196: done
1197:
1198: if test -n "$ac_prev"; then
1199: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.22 ! moko 1200: as_fn_error $? "missing argument to $ac_option"
! 1201: fi
! 1202:
! 1203: if test -n "$ac_unrecognized_opts"; then
! 1204: case $enable_option_checking in
! 1205: no) ;;
! 1206: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
! 1207: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
! 1208: esac
1.10 moko 1209: fi
1210:
1.22 ! moko 1211: # Check all directory arguments for consistency.
! 1212: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
! 1213: datadir sysconfdir sharedstatedir localstatedir includedir \
! 1214: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
! 1215: libdir localedir mandir
1.11 moko 1216: do
1.22 ! moko 1217: eval ac_val=\$$ac_var
! 1218: # Remove trailing slashes.
1.11 moko 1219: case $ac_val in
1.22 ! moko 1220: */ )
! 1221: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
! 1222: eval $ac_var=\$ac_val;;
1.10 moko 1223: esac
1.22 ! moko 1224: # Be sure to have absolute directory names.
1.1 misha 1225: case $ac_val in
1.22 ! moko 1226: [\\/$]* | ?:[\\/]* ) continue;;
! 1227: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 misha 1228: esac
1.22 ! moko 1229: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 misha 1230: done
1231:
1232: # There might be people who depend on the old broken behavior: `$host'
1233: # used to hold the argument of --host etc.
1234: # FIXME: To remove some day.
1235: build=$build_alias
1236: host=$host_alias
1237: target=$target_alias
1238:
1239: # FIXME: To remove some day.
1240: if test "x$host_alias" != x; then
1241: if test "x$build_alias" = x; then
1242: cross_compiling=maybe
1.22 ! moko 1243: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
! 1244: If a cross compiler is detected then cross compile mode will be used" >&2
1.1 misha 1245: elif test "x$build_alias" != "x$host_alias"; then
1246: cross_compiling=yes
1247: fi
1248: fi
1249:
1250: ac_tool_prefix=
1251: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252:
1253: test "$silent" = yes && exec 6>/dev/null
1254:
1255:
1.22 ! moko 1256: ac_pwd=`pwd` && test -n "$ac_pwd" &&
! 1257: ac_ls_di=`ls -di .` &&
! 1258: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
! 1259: as_fn_error $? "working directory cannot be determined"
! 1260: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
! 1261: as_fn_error $? "pwd does not report name of working directory"
! 1262:
! 1263:
1.1 misha 1264: # Find the source files, if location was not specified.
1265: if test -z "$srcdir"; then
1266: ac_srcdir_defaulted=yes
1.22 ! moko 1267: # Try the directory containing this script, then the parent directory.
! 1268: ac_confdir=`$as_dirname -- "$as_myself" ||
! 1269: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 1270: X"$as_myself" : 'X\(//\)[^/]' \| \
! 1271: X"$as_myself" : 'X\(//\)$' \| \
! 1272: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
! 1273: $as_echo X"$as_myself" |
! 1274: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 1275: s//\1/
! 1276: q
! 1277: }
! 1278: /^X\(\/\/\)[^/].*/{
! 1279: s//\1/
! 1280: q
! 1281: }
! 1282: /^X\(\/\/\)$/{
! 1283: s//\1/
! 1284: q
! 1285: }
! 1286: /^X\(\/\).*/{
! 1287: s//\1/
! 1288: q
! 1289: }
! 1290: s/.*/./; q'`
1.1 misha 1291: srcdir=$ac_confdir
1.22 ! moko 1292: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 misha 1293: srcdir=..
1294: fi
1295: else
1296: ac_srcdir_defaulted=no
1297: fi
1.22 ! moko 1298: if test ! -r "$srcdir/$ac_unique_file"; then
! 1299: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
! 1300: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
! 1301: fi
! 1302: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
! 1303: ac_abs_confdir=`(
! 1304: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
! 1305: pwd)`
! 1306: # When building in place, set srcdir=.
! 1307: if test "$ac_abs_confdir" = "$ac_pwd"; then
! 1308: srcdir=.
! 1309: fi
! 1310: # Remove unnecessary trailing slashes from srcdir.
! 1311: # Double slashes in file names in object file debugging info
! 1312: # mess up M-x gdb in Emacs.
! 1313: case $srcdir in
! 1314: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
! 1315: esac
! 1316: for ac_var in $ac_precious_vars; do
! 1317: eval ac_env_${ac_var}_set=\${${ac_var}+set}
! 1318: eval ac_env_${ac_var}_value=\$${ac_var}
! 1319: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
! 1320: eval ac_cv_env_${ac_var}_value=\$${ac_var}
! 1321: done
1.1 misha 1322:
1323: #
1324: # Report the --help message.
1325: #
1326: if test "$ac_init_help" = "long"; then
1327: # Omit some internal or obsolete options to make the list less imposing.
1328: # This message is too long to be a string in the A/UX 3.1 sh.
1329: cat <<_ACEOF
1.13 moko 1330: \`configure' configures parser3sqlite.C 10.2 to adapt to many kinds of systems.
1.1 misha 1331:
1332: Usage: $0 [OPTION]... [VAR=VALUE]...
1333:
1334: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335: VAR=VALUE. See below for descriptions of some of the useful variables.
1336:
1337: Defaults for the options are specified in brackets.
1338:
1339: Configuration:
1340: -h, --help display this help and exit
1341: --help=short display options specific to this package
1342: --help=recursive display the short help of all the included packages
1343: -V, --version display version information and exit
1.22 ! moko 1344: -q, --quiet, --silent do not print \`checking ...' messages
1.1 misha 1345: --cache-file=FILE cache test results in FILE [disabled]
1346: -C, --config-cache alias for \`--cache-file=config.cache'
1347: -n, --no-create do not create output files
1348: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349:
1350: Installation directories:
1351: --prefix=PREFIX install architecture-independent files in PREFIX
1.22 ! moko 1352: [$ac_default_prefix]
1.1 misha 1353: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.22 ! moko 1354: [PREFIX]
1.1 misha 1355:
1356: By default, \`make install' will install all the files in
1357: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359: for instance \`--prefix=\$HOME'.
1360:
1361: For better control, use the options below.
1362:
1363: Fine tuning of the installation directories:
1.22 ! moko 1364: --bindir=DIR user executables [EPREFIX/bin]
! 1365: --sbindir=DIR system admin executables [EPREFIX/sbin]
! 1366: --libexecdir=DIR program executables [EPREFIX/libexec]
! 1367: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
! 1368: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
! 1369: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
! 1370: --libdir=DIR object code libraries [EPREFIX/lib]
! 1371: --includedir=DIR C header files [PREFIX/include]
! 1372: --oldincludedir=DIR C header files for non-gcc [/usr/include]
! 1373: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
! 1374: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
! 1375: --infodir=DIR info documentation [DATAROOTDIR/info]
! 1376: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
! 1377: --mandir=DIR man documentation [DATAROOTDIR/man]
! 1378: --docdir=DIR documentation root [DATAROOTDIR/doc/parser3sqlite-c]
! 1379: --htmldir=DIR html documentation [DOCDIR]
! 1380: --dvidir=DIR dvi documentation [DOCDIR]
! 1381: --pdfdir=DIR pdf documentation [DOCDIR]
! 1382: --psdir=DIR ps documentation [DOCDIR]
1.1 misha 1383: _ACEOF
1384:
1385: cat <<\_ACEOF
1386:
1387: Program names:
1388: --program-prefix=PREFIX prepend PREFIX to installed program names
1389: --program-suffix=SUFFIX append SUFFIX to installed program names
1390: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391:
1392: System types:
1393: --build=BUILD configure for building on BUILD [guessed]
1394: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395: _ACEOF
1396: fi
1397:
1398: if test -n "$ac_init_help"; then
1.13 moko 1399: case $ac_init_help in
1400: short | recursive ) echo "Configuration of parser3sqlite.C 10.2:";;
1401: esac
1.1 misha 1402: cat <<\_ACEOF
1403:
1404: Optional Features:
1.22 ! moko 1405: --disable-option-checking ignore unrecognized --enable/--with options
1.1 misha 1406: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408: --disable-dependency-tracking speeds up one-time build
1409: --enable-dependency-tracking do not reject slow dependency extractors
1.22 ! moko 1410: --enable-static[=PKGS] build static libraries [default=no]
! 1411: --enable-shared[=PKGS] build shared libraries [default=yes]
1.8 moko 1412: --enable-fast-install[=PKGS]
1413: optimize for fast installation [default=yes]
1.1 misha 1414: --disable-libtool-lock avoid locking (might break parallel builds)
1.8 moko 1415: --enable-ltdl-install install libltdl
1.1 misha 1416:
1417: Optional Packages:
1418: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420: --with-sqlite-inc=DIR DIR is the SQLite includes directory
1.22 ! moko 1421: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.8 moko 1422: both]
1423: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1424: --with-sysroot=DIR Search for dependent libraries within DIR
1425: (or the compiler's sysroot if not specified).
1426: --with-included-ltdl use the GNU ltdl sources included here
1427: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1428: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.1 misha 1429:
1430: Some influential environment variables:
1431: CXX C++ compiler command
1432: CXXFLAGS C++ compiler flags
1433: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434: nonstandard directory <lib dir>
1.22 ! moko 1435: LIBS libraries to pass to the linker, e.g. -l<library>
! 1436: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
! 1437: you have headers in a nonstandard directory <include dir>
1.1 misha 1438: CC C compiler command
1439: CFLAGS C compiler flags
1440: CPP C preprocessor
1.8 moko 1441: CXXCPP C++ preprocessor
1.1 misha 1442:
1443: Use these variables to override the choices made by `configure' or to help
1444: it to find libraries and programs with nonstandard names/locations.
1445:
1.22 ! moko 1446: Report bugs to the package provider.
1.1 misha 1447: _ACEOF
1.22 ! moko 1448: ac_status=$?
1.1 misha 1449: fi
1450:
1451: if test "$ac_init_help" = "recursive"; then
1452: # If there are subdirs, report their specific --help.
1453: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.22 ! moko 1454: test -d "$ac_dir" ||
! 1455: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
! 1456: continue
1.1 misha 1457: ac_builddir=.
1458:
1.22 ! moko 1459: case "$ac_dir" in
! 1460: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1461: *)
! 1462: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
! 1463: # A ".." for each directory in $ac_dir_suffix.
! 1464: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
! 1465: case $ac_top_builddir_sub in
! 1466: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1467: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 1468: esac ;;
! 1469: esac
! 1470: ac_abs_top_builddir=$ac_pwd
! 1471: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 1472: # for backward compatibility:
! 1473: ac_top_builddir=$ac_top_build_prefix
1.1 misha 1474:
1475: case $srcdir in
1.22 ! moko 1476: .) # We are building in place.
1.1 misha 1477: ac_srcdir=.
1.22 ! moko 1478: ac_top_srcdir=$ac_top_builddir_sub
! 1479: ac_abs_top_srcdir=$ac_pwd ;;
! 1480: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 misha 1481: ac_srcdir=$srcdir$ac_dir_suffix;
1.22 ! moko 1482: ac_top_srcdir=$srcdir
! 1483: ac_abs_top_srcdir=$srcdir ;;
! 1484: *) # Relative name.
! 1485: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 1486: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 1487: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.11 moko 1488: esac
1.22 ! moko 1489: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.11 moko 1490:
1.22 ! moko 1491: cd "$ac_dir" || { ac_status=$?; continue; }
! 1492: # Check for guested configure.
! 1493: if test -f "$ac_srcdir/configure.gnu"; then
! 1494: echo &&
! 1495: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
! 1496: elif test -f "$ac_srcdir/configure"; then
! 1497: echo &&
! 1498: $SHELL "$ac_srcdir/configure" --help=recursive
1.1 misha 1499: else
1.22 ! moko 1500: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
! 1501: fi || ac_status=$?
! 1502: cd "$ac_pwd" || { ac_status=$?; break; }
1.1 misha 1503: done
1504: fi
1505:
1.22 ! moko 1506: test -n "$ac_init_help" && exit $ac_status
1.1 misha 1507: if $ac_init_version; then
1508: cat <<\_ACEOF
1.13 moko 1509: parser3sqlite.C configure 10.2
1.22 ! moko 1510: generated by GNU Autoconf 2.68
1.1 misha 1511:
1.22 ! moko 1512: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 misha 1513: This configure script is free software; the Free Software Foundation
1514: gives unlimited permission to copy, distribute and modify it.
1515: _ACEOF
1.22 ! moko 1516: exit
1.1 misha 1517: fi
1518:
1.22 ! moko 1519: ## ------------------------ ##
! 1520: ## Autoconf initialization. ##
! 1521: ## ------------------------ ##
! 1522:
! 1523: # ac_fn_cxx_try_compile LINENO
! 1524: # ----------------------------
! 1525: # Try to compile conftest.$ac_ext, and return whether this succeeded.
! 1526: ac_fn_cxx_try_compile ()
! 1527: {
! 1528: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1529: rm -f conftest.$ac_objext
! 1530: if { { ac_try="$ac_compile"
! 1531: case "(($ac_try" in
! 1532: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1533: *) ac_try_echo=$ac_try;;
! 1534: esac
! 1535: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1536: $as_echo "$ac_try_echo"; } >&5
! 1537: (eval "$ac_compile") 2>conftest.err
! 1538: ac_status=$?
! 1539: if test -s conftest.err; then
! 1540: grep -v '^ *+' conftest.err >conftest.er1
! 1541: cat conftest.er1 >&5
! 1542: mv -f conftest.er1 conftest.err
! 1543: fi
! 1544: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1545: test $ac_status = 0; } && {
! 1546: test -z "$ac_cxx_werror_flag" ||
! 1547: test ! -s conftest.err
! 1548: } && test -s conftest.$ac_objext; then :
! 1549: ac_retval=0
! 1550: else
! 1551: $as_echo "$as_me: failed program was:" >&5
! 1552: sed 's/^/| /' conftest.$ac_ext >&5
! 1553:
! 1554: ac_retval=1
! 1555: fi
! 1556: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1557: as_fn_set_status $ac_retval
1.10 moko 1558:
1.22 ! moko 1559: } # ac_fn_cxx_try_compile
1.1 misha 1560:
1.22 ! moko 1561: # ac_fn_c_try_compile LINENO
! 1562: # --------------------------
! 1563: # Try to compile conftest.$ac_ext, and return whether this succeeded.
! 1564: ac_fn_c_try_compile ()
1.1 misha 1565: {
1.22 ! moko 1566: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1567: rm -f conftest.$ac_objext
! 1568: if { { ac_try="$ac_compile"
! 1569: case "(($ac_try" in
! 1570: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1571: *) ac_try_echo=$ac_try;;
! 1572: esac
! 1573: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1574: $as_echo "$ac_try_echo"; } >&5
! 1575: (eval "$ac_compile") 2>conftest.err
! 1576: ac_status=$?
! 1577: if test -s conftest.err; then
! 1578: grep -v '^ *+' conftest.err >conftest.er1
! 1579: cat conftest.er1 >&5
! 1580: mv -f conftest.er1 conftest.err
! 1581: fi
! 1582: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1583: test $ac_status = 0; } && {
! 1584: test -z "$ac_c_werror_flag" ||
! 1585: test ! -s conftest.err
! 1586: } && test -s conftest.$ac_objext; then :
! 1587: ac_retval=0
! 1588: else
! 1589: $as_echo "$as_me: failed program was:" >&5
! 1590: sed 's/^/| /' conftest.$ac_ext >&5
! 1591:
! 1592: ac_retval=1
! 1593: fi
! 1594: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1595: as_fn_set_status $ac_retval
! 1596:
! 1597: } # ac_fn_c_try_compile
! 1598:
! 1599: # ac_fn_c_try_link LINENO
! 1600: # -----------------------
! 1601: # Try to link conftest.$ac_ext, and return whether this succeeded.
! 1602: ac_fn_c_try_link ()
! 1603: {
! 1604: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1605: rm -f conftest.$ac_objext conftest$ac_exeext
! 1606: if { { ac_try="$ac_link"
! 1607: case "(($ac_try" in
! 1608: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1609: *) ac_try_echo=$ac_try;;
! 1610: esac
! 1611: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1612: $as_echo "$ac_try_echo"; } >&5
! 1613: (eval "$ac_link") 2>conftest.err
! 1614: ac_status=$?
! 1615: if test -s conftest.err; then
! 1616: grep -v '^ *+' conftest.err >conftest.er1
! 1617: cat conftest.er1 >&5
! 1618: mv -f conftest.er1 conftest.err
! 1619: fi
! 1620: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1621: test $ac_status = 0; } && {
! 1622: test -z "$ac_c_werror_flag" ||
! 1623: test ! -s conftest.err
! 1624: } && test -s conftest$ac_exeext && {
! 1625: test "$cross_compiling" = yes ||
! 1626: $as_test_x conftest$ac_exeext
! 1627: }; then :
! 1628: ac_retval=0
! 1629: else
! 1630: $as_echo "$as_me: failed program was:" >&5
! 1631: sed 's/^/| /' conftest.$ac_ext >&5
! 1632:
! 1633: ac_retval=1
! 1634: fi
! 1635: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
! 1636: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
! 1637: # interfere with the next link command; also delete a directory that is
! 1638: # left behind by Apple's compiler. We do this before executing the actions.
! 1639: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1640: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1641: as_fn_set_status $ac_retval
! 1642:
! 1643: } # ac_fn_c_try_link
! 1644:
! 1645: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
! 1646: # -------------------------------------------------------
! 1647: # Tests whether HEADER exists and can be compiled using the include files in
! 1648: # INCLUDES, setting the cache variable VAR accordingly.
! 1649: ac_fn_c_check_header_compile ()
! 1650: {
! 1651: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1652: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1653: $as_echo_n "checking for $2... " >&6; }
! 1654: if eval \${$3+:} false; then :
! 1655: $as_echo_n "(cached) " >&6
! 1656: else
! 1657: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1658: /* end confdefs.h. */
! 1659: $4
! 1660: #include <$2>
! 1661: _ACEOF
! 1662: if ac_fn_c_try_compile "$LINENO"; then :
! 1663: eval "$3=yes"
! 1664: else
! 1665: eval "$3=no"
! 1666: fi
! 1667: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1668: fi
! 1669: eval ac_res=\$$3
! 1670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1671: $as_echo "$ac_res" >&6; }
! 1672: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1673:
! 1674: } # ac_fn_c_check_header_compile
! 1675:
! 1676: # ac_fn_c_try_cpp LINENO
! 1677: # ----------------------
! 1678: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
! 1679: ac_fn_c_try_cpp ()
! 1680: {
! 1681: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1682: if { { ac_try="$ac_cpp conftest.$ac_ext"
! 1683: case "(($ac_try" in
! 1684: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1685: *) ac_try_echo=$ac_try;;
! 1686: esac
! 1687: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1688: $as_echo "$ac_try_echo"; } >&5
! 1689: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
! 1690: ac_status=$?
! 1691: if test -s conftest.err; then
! 1692: grep -v '^ *+' conftest.err >conftest.er1
! 1693: cat conftest.er1 >&5
! 1694: mv -f conftest.er1 conftest.err
! 1695: fi
! 1696: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1697: test $ac_status = 0; } > conftest.i && {
! 1698: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 1699: test ! -s conftest.err
! 1700: }; then :
! 1701: ac_retval=0
! 1702: else
! 1703: $as_echo "$as_me: failed program was:" >&5
! 1704: sed 's/^/| /' conftest.$ac_ext >&5
! 1705:
! 1706: ac_retval=1
! 1707: fi
! 1708: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1709: as_fn_set_status $ac_retval
! 1710:
! 1711: } # ac_fn_c_try_cpp
! 1712:
! 1713: # ac_fn_c_try_run LINENO
! 1714: # ----------------------
! 1715: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
! 1716: # that executables *can* be run.
! 1717: ac_fn_c_try_run ()
! 1718: {
! 1719: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1720: if { { ac_try="$ac_link"
! 1721: case "(($ac_try" in
! 1722: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1723: *) ac_try_echo=$ac_try;;
! 1724: esac
! 1725: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1726: $as_echo "$ac_try_echo"; } >&5
! 1727: (eval "$ac_link") 2>&5
! 1728: ac_status=$?
! 1729: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1730: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
! 1731: { { case "(($ac_try" in
! 1732: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1733: *) ac_try_echo=$ac_try;;
! 1734: esac
! 1735: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1736: $as_echo "$ac_try_echo"; } >&5
! 1737: (eval "$ac_try") 2>&5
! 1738: ac_status=$?
! 1739: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1740: test $ac_status = 0; }; }; then :
! 1741: ac_retval=0
! 1742: else
! 1743: $as_echo "$as_me: program exited with status $ac_status" >&5
! 1744: $as_echo "$as_me: failed program was:" >&5
! 1745: sed 's/^/| /' conftest.$ac_ext >&5
! 1746:
! 1747: ac_retval=$ac_status
! 1748: fi
! 1749: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1750: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1751: as_fn_set_status $ac_retval
! 1752:
! 1753: } # ac_fn_c_try_run
! 1754:
! 1755: # ac_fn_c_check_func LINENO FUNC VAR
! 1756: # ----------------------------------
! 1757: # Tests whether FUNC exists, setting the cache variable VAR accordingly
! 1758: ac_fn_c_check_func ()
! 1759: {
! 1760: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1762: $as_echo_n "checking for $2... " >&6; }
! 1763: if eval \${$3+:} false; then :
! 1764: $as_echo_n "(cached) " >&6
! 1765: else
! 1766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1767: /* end confdefs.h. */
! 1768: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
! 1769: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 1770: #define $2 innocuous_$2
! 1771:
! 1772: /* System header to define __stub macros and hopefully few prototypes,
! 1773: which can conflict with char $2 (); below.
! 1774: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 1775: <limits.h> exists even on freestanding compilers. */
! 1776:
! 1777: #ifdef __STDC__
! 1778: # include <limits.h>
! 1779: #else
! 1780: # include <assert.h>
! 1781: #endif
! 1782:
! 1783: #undef $2
! 1784:
! 1785: /* Override any GCC internal prototype to avoid an error.
! 1786: Use char because int might match the return type of a GCC
! 1787: builtin and then its argument prototype would still apply. */
! 1788: #ifdef __cplusplus
! 1789: extern "C"
! 1790: #endif
! 1791: char $2 ();
! 1792: /* The GNU C library defines this for functions which it implements
! 1793: to always fail with ENOSYS. Some functions are actually named
! 1794: something starting with __ and the normal name is an alias. */
! 1795: #if defined __stub_$2 || defined __stub___$2
! 1796: choke me
! 1797: #endif
! 1798:
! 1799: int
! 1800: main ()
! 1801: {
! 1802: return $2 ();
! 1803: ;
! 1804: return 0;
! 1805: }
! 1806: _ACEOF
! 1807: if ac_fn_c_try_link "$LINENO"; then :
! 1808: eval "$3=yes"
! 1809: else
! 1810: eval "$3=no"
! 1811: fi
! 1812: rm -f core conftest.err conftest.$ac_objext \
! 1813: conftest$ac_exeext conftest.$ac_ext
! 1814: fi
! 1815: eval ac_res=\$$3
! 1816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1817: $as_echo "$ac_res" >&6; }
! 1818: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1819:
! 1820: } # ac_fn_c_check_func
! 1821:
! 1822: # ac_fn_cxx_try_cpp LINENO
! 1823: # ------------------------
! 1824: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
! 1825: ac_fn_cxx_try_cpp ()
! 1826: {
! 1827: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1828: if { { ac_try="$ac_cpp conftest.$ac_ext"
! 1829: case "(($ac_try" in
! 1830: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1831: *) ac_try_echo=$ac_try;;
! 1832: esac
! 1833: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1834: $as_echo "$ac_try_echo"; } >&5
! 1835: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
! 1836: ac_status=$?
! 1837: if test -s conftest.err; then
! 1838: grep -v '^ *+' conftest.err >conftest.er1
! 1839: cat conftest.er1 >&5
! 1840: mv -f conftest.er1 conftest.err
! 1841: fi
! 1842: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1843: test $ac_status = 0; } > conftest.i && {
! 1844: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 1845: test ! -s conftest.err
! 1846: }; then :
! 1847: ac_retval=0
! 1848: else
! 1849: $as_echo "$as_me: failed program was:" >&5
! 1850: sed 's/^/| /' conftest.$ac_ext >&5
! 1851:
! 1852: ac_retval=1
! 1853: fi
! 1854: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1855: as_fn_set_status $ac_retval
! 1856:
! 1857: } # ac_fn_cxx_try_cpp
! 1858:
! 1859: # ac_fn_cxx_try_link LINENO
! 1860: # -------------------------
! 1861: # Try to link conftest.$ac_ext, and return whether this succeeded.
! 1862: ac_fn_cxx_try_link ()
! 1863: {
! 1864: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1865: rm -f conftest.$ac_objext conftest$ac_exeext
! 1866: if { { ac_try="$ac_link"
! 1867: case "(($ac_try" in
! 1868: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1869: *) ac_try_echo=$ac_try;;
! 1870: esac
! 1871: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1872: $as_echo "$ac_try_echo"; } >&5
! 1873: (eval "$ac_link") 2>conftest.err
! 1874: ac_status=$?
! 1875: if test -s conftest.err; then
! 1876: grep -v '^ *+' conftest.err >conftest.er1
! 1877: cat conftest.er1 >&5
! 1878: mv -f conftest.er1 conftest.err
! 1879: fi
! 1880: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1881: test $ac_status = 0; } && {
! 1882: test -z "$ac_cxx_werror_flag" ||
! 1883: test ! -s conftest.err
! 1884: } && test -s conftest$ac_exeext && {
! 1885: test "$cross_compiling" = yes ||
! 1886: $as_test_x conftest$ac_exeext
! 1887: }; then :
! 1888: ac_retval=0
! 1889: else
! 1890: $as_echo "$as_me: failed program was:" >&5
! 1891: sed 's/^/| /' conftest.$ac_ext >&5
! 1892:
! 1893: ac_retval=1
! 1894: fi
! 1895: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
! 1896: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
! 1897: # interfere with the next link command; also delete a directory that is
! 1898: # left behind by Apple's compiler. We do this before executing the actions.
! 1899: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1900: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1901: as_fn_set_status $ac_retval
! 1902:
! 1903: } # ac_fn_cxx_try_link
! 1904:
! 1905: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
! 1906: # ---------------------------------------------
! 1907: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
! 1908: # accordingly.
! 1909: ac_fn_c_check_decl ()
! 1910: {
! 1911: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1912: as_decl_name=`echo $2|sed 's/ *(.*//'`
! 1913: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
! 1914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
! 1915: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
! 1916: if eval \${$3+:} false; then :
! 1917: $as_echo_n "(cached) " >&6
! 1918: else
! 1919: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1920: /* end confdefs.h. */
! 1921: $4
! 1922: int
! 1923: main ()
! 1924: {
! 1925: #ifndef $as_decl_name
! 1926: #ifdef __cplusplus
! 1927: (void) $as_decl_use;
! 1928: #else
! 1929: (void) $as_decl_name;
! 1930: #endif
! 1931: #endif
! 1932:
! 1933: ;
! 1934: return 0;
! 1935: }
! 1936: _ACEOF
! 1937: if ac_fn_c_try_compile "$LINENO"; then :
! 1938: eval "$3=yes"
! 1939: else
! 1940: eval "$3=no"
! 1941: fi
! 1942: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1943: fi
! 1944: eval ac_res=\$$3
! 1945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1946: $as_echo "$ac_res" >&6; }
! 1947: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1948:
! 1949: } # ac_fn_c_check_decl
! 1950:
! 1951: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
! 1952: # -------------------------------------------
! 1953: # Tests whether TYPE exists after having included INCLUDES, setting cache
! 1954: # variable VAR accordingly.
! 1955: ac_fn_c_check_type ()
! 1956: {
! 1957: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1959: $as_echo_n "checking for $2... " >&6; }
! 1960: if eval \${$3+:} false; then :
! 1961: $as_echo_n "(cached) " >&6
! 1962: else
! 1963: eval "$3=no"
! 1964: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1965: /* end confdefs.h. */
! 1966: $4
! 1967: int
! 1968: main ()
! 1969: {
! 1970: if (sizeof ($2))
! 1971: return 0;
! 1972: ;
! 1973: return 0;
! 1974: }
! 1975: _ACEOF
! 1976: if ac_fn_c_try_compile "$LINENO"; then :
! 1977: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1978: /* end confdefs.h. */
! 1979: $4
! 1980: int
! 1981: main ()
! 1982: {
! 1983: if (sizeof (($2)))
! 1984: return 0;
! 1985: ;
! 1986: return 0;
! 1987: }
! 1988: _ACEOF
! 1989: if ac_fn_c_try_compile "$LINENO"; then :
! 1990:
! 1991: else
! 1992: eval "$3=yes"
! 1993: fi
! 1994: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1995: fi
! 1996: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1997: fi
! 1998: eval ac_res=\$$3
! 1999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 2000: $as_echo "$ac_res" >&6; }
! 2001: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 2002:
! 2003: } # ac_fn_c_check_type
! 2004:
! 2005: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
! 2006: # -------------------------------------------------------
! 2007: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
! 2008: # the include files in INCLUDES and setting the cache variable VAR
! 2009: # accordingly.
! 2010: ac_fn_c_check_header_mongrel ()
! 2011: {
! 2012: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 2013: if eval \${$3+:} false; then :
! 2014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 2015: $as_echo_n "checking for $2... " >&6; }
! 2016: if eval \${$3+:} false; then :
! 2017: $as_echo_n "(cached) " >&6
! 2018: fi
! 2019: eval ac_res=\$$3
! 2020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 2021: $as_echo "$ac_res" >&6; }
! 2022: else
! 2023: # Is the header compilable?
! 2024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
! 2025: $as_echo_n "checking $2 usability... " >&6; }
! 2026: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 2027: /* end confdefs.h. */
! 2028: $4
! 2029: #include <$2>
! 2030: _ACEOF
! 2031: if ac_fn_c_try_compile "$LINENO"; then :
! 2032: ac_header_compiler=yes
! 2033: else
! 2034: ac_header_compiler=no
! 2035: fi
! 2036: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 2037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
! 2038: $as_echo "$ac_header_compiler" >&6; }
! 2039:
! 2040: # Is the header present?
! 2041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
! 2042: $as_echo_n "checking $2 presence... " >&6; }
! 2043: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 2044: /* end confdefs.h. */
! 2045: #include <$2>
! 2046: _ACEOF
! 2047: if ac_fn_c_try_cpp "$LINENO"; then :
! 2048: ac_header_preproc=yes
! 2049: else
! 2050: ac_header_preproc=no
! 2051: fi
! 2052: rm -f conftest.err conftest.i conftest.$ac_ext
! 2053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
! 2054: $as_echo "$ac_header_preproc" >&6; }
! 2055:
! 2056: # So? What about this header?
! 2057: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
! 2058: yes:no: )
! 2059: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
! 2060: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 2061: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
! 2062: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
! 2063: ;;
! 2064: no:yes:* )
! 2065: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
! 2066: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
! 2067: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
! 2068: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
! 2069: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
! 2070: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
! 2071: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
! 2072: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
! 2073: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
! 2074: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
! 2075: ;;
! 2076: esac
! 2077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 2078: $as_echo_n "checking for $2... " >&6; }
! 2079: if eval \${$3+:} false; then :
! 2080: $as_echo_n "(cached) " >&6
! 2081: else
! 2082: eval "$3=\$ac_header_compiler"
! 2083: fi
! 2084: eval ac_res=\$$3
! 2085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 2086: $as_echo "$ac_res" >&6; }
! 2087: fi
! 2088: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 2089:
! 2090: } # ac_fn_c_check_header_mongrel
! 2091: cat >config.log <<_ACEOF
! 2092: This file contains any messages produced by compilers while
! 2093: running configure, to aid debugging if configure makes a mistake.
! 2094:
! 2095: It was created by parser3sqlite.C $as_me 10.2, which was
! 2096: generated by GNU Autoconf 2.68. Invocation command line was
! 2097:
! 2098: $ $0 $@
! 2099:
! 2100: _ACEOF
! 2101: exec 5>>config.log
! 2102: {
! 2103: cat <<_ASUNAME
! 2104: ## --------- ##
! 2105: ## Platform. ##
! 2106: ## --------- ##
1.10 moko 2107:
1.11 moko 2108: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2109: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2110: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2111: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2112: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 misha 2113:
1.11 moko 2114: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1.1 misha 2115: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116:
2117: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2118: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2119: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.22 ! moko 2120: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.1 misha 2121: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2122: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2123: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2124:
2125: _ASUNAME
2126:
2127: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128: for as_dir in $PATH
2129: do
2130: IFS=$as_save_IFS
2131: test -z "$as_dir" && as_dir=.
1.22 ! moko 2132: $as_echo "PATH: $as_dir"
! 2133: done
! 2134: IFS=$as_save_IFS
1.1 misha 2135:
2136: } >&5
2137:
2138: cat >&5 <<_ACEOF
2139:
2140:
2141: ## ----------- ##
2142: ## Core tests. ##
2143: ## ----------- ##
2144:
2145: _ACEOF
2146:
2147:
2148: # Keep a trace of the command line.
2149: # Strip out --no-create and --no-recursion so they do not pile up.
2150: # Strip out --silent because we don't want to record it for future runs.
2151: # Also quote any args containing shell meta-characters.
2152: # Make two passes to allow for proper duplicate-argument suppression.
2153: ac_configure_args=
2154: ac_configure_args0=
2155: ac_configure_args1=
2156: ac_must_keep_next=false
2157: for ac_pass in 1 2
2158: do
2159: for ac_arg
2160: do
2161: case $ac_arg in
2162: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2163: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2164: | -silent | --silent | --silen | --sile | --sil)
2165: continue ;;
1.22 ! moko 2166: *\'*)
! 2167: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 2168: esac
2169: case $ac_pass in
1.22 ! moko 2170: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.1 misha 2171: 2)
1.22 ! moko 2172: as_fn_append ac_configure_args1 " '$ac_arg'"
1.1 misha 2173: if test $ac_must_keep_next = true; then
2174: ac_must_keep_next=false # Got value, back to normal.
2175: else
2176: case $ac_arg in
2177: *=* | --config-cache | -C | -disable-* | --disable-* \
2178: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2179: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2180: | -with-* | --with-* | -without-* | --without-* | --x)
2181: case "$ac_configure_args0 " in
2182: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183: esac
2184: ;;
2185: -* ) ac_must_keep_next=true ;;
2186: esac
2187: fi
1.22 ! moko 2188: as_fn_append ac_configure_args " '$ac_arg'"
1.1 misha 2189: ;;
2190: esac
2191: done
2192: done
1.22 ! moko 2193: { ac_configure_args0=; unset ac_configure_args0;}
! 2194: { ac_configure_args1=; unset ac_configure_args1;}
1.1 misha 2195:
2196: # When interrupted or exit'd, cleanup temporary files, and complete
2197: # config.log. We remove comments because anyway the quotes in there
2198: # would cause problems or look ugly.
1.22 ! moko 2199: # WARNING: Use '\'' to represent an apostrophe within the trap.
! 2200: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1 misha 2201: trap 'exit_status=$?
2202: # Save into config.log some information that might help in debugging.
2203: {
2204: echo
2205:
1.22 ! moko 2206: $as_echo "## ---------------- ##
1.1 misha 2207: ## Cache variables. ##
1.22 ! moko 2208: ## ---------------- ##"
1.1 misha 2209: echo
2210: # The following way of writing the cache mishandles newlines in values,
1.22 ! moko 2211: (
! 2212: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
! 2213: eval ac_val=\$$ac_var
! 2214: case $ac_val in #(
! 2215: *${as_nl}*)
! 2216: case $ac_var in #(
! 2217: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 2218: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
! 2219: esac
! 2220: case $ac_var in #(
! 2221: _ | IFS | as_nl) ;; #(
! 2222: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
! 2223: *) { eval $ac_var=; unset $ac_var;} ;;
! 2224: esac ;;
! 2225: esac
! 2226: done
1.1 misha 2227: (set) 2>&1 |
1.22 ! moko 2228: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
! 2229: *${as_nl}ac_space=\ *)
1.1 misha 2230: sed -n \
1.22 ! moko 2231: "s/'\''/'\''\\\\'\'''\''/g;
! 2232: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
! 2233: ;; #(
1.1 misha 2234: *)
1.22 ! moko 2235: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 misha 2236: ;;
1.22 ! moko 2237: esac |
! 2238: sort
! 2239: )
1.1 misha 2240: echo
2241:
1.22 ! moko 2242: $as_echo "## ----------------- ##
1.1 misha 2243: ## Output variables. ##
1.22 ! moko 2244: ## ----------------- ##"
1.1 misha 2245: echo
2246: for ac_var in $ac_subst_vars
2247: do
1.22 ! moko 2248: eval ac_val=\$$ac_var
! 2249: case $ac_val in
! 2250: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 2251: esac
! 2252: $as_echo "$ac_var='\''$ac_val'\''"
1.1 misha 2253: done | sort
2254: echo
2255:
2256: if test -n "$ac_subst_files"; then
1.22 ! moko 2257: $as_echo "## ------------------- ##
! 2258: ## File substitutions. ##
! 2259: ## ------------------- ##"
1.1 misha 2260: echo
2261: for ac_var in $ac_subst_files
2262: do
1.22 ! moko 2263: eval ac_val=\$$ac_var
! 2264: case $ac_val in
! 2265: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 2266: esac
! 2267: $as_echo "$ac_var='\''$ac_val'\''"
1.1 misha 2268: done | sort
2269: echo
2270: fi
2271:
2272: if test -s confdefs.h; then
1.22 ! moko 2273: $as_echo "## ----------- ##
1.1 misha 2274: ## confdefs.h. ##
1.22 ! moko 2275: ## ----------- ##"
1.1 misha 2276: echo
1.22 ! moko 2277: cat confdefs.h
1.1 misha 2278: echo
2279: fi
2280: test "$ac_signal" != 0 &&
1.22 ! moko 2281: $as_echo "$as_me: caught signal $ac_signal"
! 2282: $as_echo "$as_me: exit $exit_status"
1.1 misha 2283: } >&5
1.22 ! moko 2284: rm -f core *.core core.conftest.* &&
! 2285: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1 misha 2286: exit $exit_status
1.22 ! moko 2287: ' 0
1.1 misha 2288: for ac_signal in 1 2 13 15; do
1.22 ! moko 2289: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.1 misha 2290: done
2291: ac_signal=0
2292:
2293: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.22 ! moko 2294: rm -f -r conftest* confdefs.h
! 2295:
! 2296: $as_echo "/* confdefs.h */" > confdefs.h
1.1 misha 2297:
2298: # Predefined preprocessor variables.
2299:
2300: cat >>confdefs.h <<_ACEOF
2301: #define PACKAGE_NAME "$PACKAGE_NAME"
2302: _ACEOF
2303:
2304: cat >>confdefs.h <<_ACEOF
2305: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2306: _ACEOF
2307:
2308: cat >>confdefs.h <<_ACEOF
2309: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2310: _ACEOF
2311:
2312: cat >>confdefs.h <<_ACEOF
2313: #define PACKAGE_STRING "$PACKAGE_STRING"
2314: _ACEOF
2315:
1.22 ! moko 2316: cat >>confdefs.h <<_ACEOF
! 2317: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
! 2318: _ACEOF
1.11 moko 2319:
1.10 moko 2320: cat >>confdefs.h <<_ACEOF
1.22 ! moko 2321: #define PACKAGE_URL "$PACKAGE_URL"
1.10 moko 2322: _ACEOF
1.1 misha 2323:
2324:
2325: # Let the site file select an alternate cache file if it wants to.
1.22 ! moko 2326: # Prefer an explicitly selected file to automatically selected ones.
! 2327: ac_site_file1=NONE
! 2328: ac_site_file2=NONE
! 2329: if test -n "$CONFIG_SITE"; then
! 2330: # We do not want a PATH search for config.site.
! 2331: case $CONFIG_SITE in #((
! 2332: -*) ac_site_file1=./$CONFIG_SITE;;
! 2333: */*) ac_site_file1=$CONFIG_SITE;;
! 2334: *) ac_site_file1=./$CONFIG_SITE;;
! 2335: esac
! 2336: elif test "x$prefix" != xNONE; then
! 2337: ac_site_file1=$prefix/share/config.site
! 2338: ac_site_file2=$prefix/etc/config.site
! 2339: else
! 2340: ac_site_file1=$ac_default_prefix/share/config.site
! 2341: ac_site_file2=$ac_default_prefix/etc/config.site
! 2342: fi
! 2343: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
! 2344: do
! 2345: test "x$ac_site_file" = xNONE && continue
! 2346: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
! 2347: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
! 2348: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.1 misha 2349: sed 's/^/| /' "$ac_site_file" >&5
1.22 ! moko 2350: . "$ac_site_file" \
! 2351: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2352: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2353: as_fn_error $? "failed to load site script $ac_site_file
! 2354: See \`config.log' for more details" "$LINENO" 5; }
1.1 misha 2355: fi
2356: done
2357:
2358: if test -r "$cache_file"; then
1.22 ! moko 2359: # Some versions of bash will fail to source /dev/null (special files
! 2360: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
! 2361: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
! 2362: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
! 2363: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.1 misha 2364: case $cache_file in
1.22 ! moko 2365: [\\/]* | ?:[\\/]* ) . "$cache_file";;
! 2366: *) . "./$cache_file";;
1.1 misha 2367: esac
2368: fi
2369: else
1.22 ! moko 2370: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
! 2371: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.1 misha 2372: >$cache_file
2373: fi
2374:
2375: # Check that the precious variables saved in the cache have kept the same
2376: # value.
2377: ac_cache_corrupted=false
1.22 ! moko 2378: for ac_var in $ac_precious_vars; do
1.1 misha 2379: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2380: eval ac_new_set=\$ac_env_${ac_var}_set
1.22 ! moko 2381: eval ac_old_val=\$ac_cv_env_${ac_var}_value
! 2382: eval ac_new_val=\$ac_env_${ac_var}_value
1.1 misha 2383: case $ac_old_set,$ac_new_set in
2384: set,)
1.22 ! moko 2385: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 2386: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1 misha 2387: ac_cache_corrupted=: ;;
2388: ,set)
1.22 ! moko 2389: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
! 2390: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1 misha 2391: ac_cache_corrupted=: ;;
2392: ,);;
2393: *)
2394: if test "x$ac_old_val" != "x$ac_new_val"; then
1.22 ! moko 2395: # differences in whitespace do not lead to failure.
! 2396: ac_old_val_w=`echo x $ac_old_val`
! 2397: ac_new_val_w=`echo x $ac_new_val`
! 2398: if test "$ac_old_val_w" != "$ac_new_val_w"; then
! 2399: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
! 2400: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
! 2401: ac_cache_corrupted=:
! 2402: else
! 2403: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
! 2404: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
! 2405: eval $ac_var=\$ac_old_val
! 2406: fi
! 2407: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
! 2408: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
! 2409: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
! 2410: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.1 misha 2411: fi;;
2412: esac
2413: # Pass precious variables to config.status.
2414: if test "$ac_new_set" = set; then
2415: case $ac_new_val in
1.22 ! moko 2416: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 2417: *) ac_arg=$ac_var=$ac_new_val ;;
2418: esac
2419: case " $ac_configure_args " in
2420: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.22 ! moko 2421: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.1 misha 2422: esac
2423: fi
2424: done
2425: if $ac_cache_corrupted; then
1.22 ! moko 2426: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2427: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2428: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
! 2429: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
! 2430: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
! 2431: fi
! 2432: ## -------------------- ##
! 2433: ## Main body of script. ##
! 2434: ## -------------------- ##
1.1 misha 2435:
2436: ac_ext=c
2437: ac_cpp='$CPP $CPPFLAGS'
2438: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441:
2442:
2443:
1.22 ! moko 2444: ac_config_headers="$ac_config_headers config_auto.h"
1.1 misha 2445:
1.11 moko 2446:
1.22 ! moko 2447: am__api_version='1.11'
1.11 moko 2448:
1.1 misha 2449: ac_aux_dir=
1.22 ! moko 2450: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
! 2451: if test -f "$ac_dir/install-sh"; then
1.1 misha 2452: ac_aux_dir=$ac_dir
2453: ac_install_sh="$ac_aux_dir/install-sh -c"
2454: break
1.22 ! moko 2455: elif test -f "$ac_dir/install.sh"; then
1.1 misha 2456: ac_aux_dir=$ac_dir
2457: ac_install_sh="$ac_aux_dir/install.sh -c"
2458: break
1.22 ! moko 2459: elif test -f "$ac_dir/shtool"; then
1.1 misha 2460: ac_aux_dir=$ac_dir
2461: ac_install_sh="$ac_aux_dir/shtool install -c"
2462: break
2463: fi
2464: done
2465: if test -z "$ac_aux_dir"; then
1.22 ! moko 2466: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
! 2467: fi
! 2468:
! 2469: # These three variables are undocumented and unsupported,
! 2470: # and are intended to be withdrawn in a future Autoconf release.
! 2471: # They can cause serious problems if a builder's source tree is in a directory
! 2472: # whose full name contains unusual characters.
! 2473: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
! 2474: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
! 2475: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
! 2476:
1.1 misha 2477:
2478: # Find a good install program. We prefer a C program (faster),
2479: # so one script is as good as another. But avoid the broken or
2480: # incompatible versions:
2481: # SysV /etc/install, /usr/sbin/install
2482: # SunOS /usr/etc/install
2483: # IRIX /sbin/install
2484: # AIX /bin/install
2485: # AmigaOS /C/install, which installs bootblocks on floppy discs
2486: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2487: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2488: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2489: # OS/2's system install, which has a completely different semantic
2490: # ./install, which can be erroneously created by make from ./install.sh.
1.22 ! moko 2491: # Reject install programs that cannot install multiple files.
! 2492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
! 2493: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 misha 2494: if test -z "$INSTALL"; then
1.22 ! moko 2495: if ${ac_cv_path_install+:} false; then :
! 2496: $as_echo_n "(cached) " >&6
1.1 misha 2497: else
2498: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499: for as_dir in $PATH
2500: do
2501: IFS=$as_save_IFS
2502: test -z "$as_dir" && as_dir=.
1.22 ! moko 2503: # Account for people who put trailing slashes in PATH elements.
! 2504: case $as_dir/ in #((
! 2505: ./ | .// | /[cC]/* | \
1.1 misha 2506: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.22 ! moko 2507: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.1 misha 2508: /usr/ucb/* ) ;;
2509: *)
2510: # OSF1 and SCO ODT 3.0 have their own names for install.
2511: # Don't use installbsd from OSF since it installs stuff as root
2512: # by default.
2513: for ac_prog in ginstall scoinst install; do
2514: for ac_exec_ext in '' $ac_executable_extensions; do
1.22 ! moko 2515: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.1 misha 2516: if test $ac_prog = install &&
2517: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2518: # AIX install. It has an incompatible calling convention.
2519: :
2520: elif test $ac_prog = install &&
2521: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522: # program-specific install script used by HP pwplus--don't use.
2523: :
2524: else
1.22 ! moko 2525: rm -rf conftest.one conftest.two conftest.dir
! 2526: echo one > conftest.one
! 2527: echo two > conftest.two
! 2528: mkdir conftest.dir
! 2529: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
! 2530: test -s conftest.one && test -s conftest.two &&
! 2531: test -s conftest.dir/conftest.one &&
! 2532: test -s conftest.dir/conftest.two
! 2533: then
! 2534: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 2535: break 3
! 2536: fi
1.1 misha 2537: fi
2538: fi
2539: done
2540: done
2541: ;;
2542: esac
2543:
1.22 ! moko 2544: done
! 2545: IFS=$as_save_IFS
! 2546:
! 2547: rm -rf conftest.one conftest.two conftest.dir
1.1 misha 2548:
2549: fi
2550: if test "${ac_cv_path_install+set}" = set; then
2551: INSTALL=$ac_cv_path_install
2552: else
1.22 ! moko 2553: # As a last resort, use the slow shell script. Don't cache a
! 2554: # value for INSTALL within a source directory, because that will
1.1 misha 2555: # break other packages using the cache if that directory is
1.22 ! moko 2556: # removed, or if the value is a relative name.
1.1 misha 2557: INSTALL=$ac_install_sh
2558: fi
2559: fi
1.22 ! moko 2560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
! 2561: $as_echo "$INSTALL" >&6; }
1.1 misha 2562:
2563: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564: # It thinks the first close brace ends the variable substitution.
2565: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566:
2567: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2568:
2569: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570:
1.22 ! moko 2571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
! 2572: $as_echo_n "checking whether build environment is sane... " >&6; }
1.1 misha 2573: # Just in case
2574: sleep 1
2575: echo timestamp > conftest.file
1.22 ! moko 2576: # Reject unsafe characters in $srcdir or the absolute working directory
! 2577: # name. Accept space and tab only in the latter.
! 2578: am_lf='
! 2579: '
! 2580: case `pwd` in
! 2581: *[\\\"\#\$\&\'\`$am_lf]*)
! 2582: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
! 2583: esac
! 2584: case $srcdir in
! 2585: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
! 2586: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
! 2587: esac
! 2588:
1.1 misha 2589: # Do `set' in a subshell so we don't clobber the current shell's
2590: # arguments. Must try -L first in case configure is actually a
2591: # symlink; some systems play weird games with the mod time of symlinks
2592: # (eg FreeBSD returns the mod time of the symlink's containing
2593: # directory).
2594: if (
1.22 ! moko 2595: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.1 misha 2596: if test "$*" = "X"; then
2597: # -L didn't work.
1.22 ! moko 2598: set X `ls -t "$srcdir/configure" conftest.file`
1.1 misha 2599: fi
2600: rm -f conftest.file
2601: if test "$*" != "X $srcdir/configure conftest.file" \
2602: && test "$*" != "X conftest.file $srcdir/configure"; then
2603:
2604: # If neither matched, then we have a broken ls. This can happen
2605: # if, for instance, CONFIG_SHELL is bash and it inherits a
2606: # broken ls alias from the environment. This has actually
2607: # happened. Such a system could not be considered "sane".
1.22 ! moko 2608: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
! 2609: alias in your environment" "$LINENO" 5
1.1 misha 2610: fi
2611:
2612: test "$2" = conftest.file
2613: )
2614: then
2615: # Ok.
2616: :
2617: else
1.22 ! moko 2618: as_fn_error $? "newly created file is older than distributed files!
! 2619: Check your system clock" "$LINENO" 5
1.1 misha 2620: fi
1.22 ! moko 2621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 2622: $as_echo "yes" >&6; }
1.1 misha 2623: test "$program_prefix" != NONE &&
1.22 ! moko 2624: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 misha 2625: # Use a double $ so make ignores it.
2626: test "$program_suffix" != NONE &&
1.22 ! moko 2627: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
! 2628: # Double any \ or $.
1.1 misha 2629: # By default was `s,x,x', remove it if useless.
1.22 ! moko 2630: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
! 2631: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.1 misha 2632:
2633: # expand $ac_aux_dir to an absolute path
2634: am_aux_dir=`cd $ac_aux_dir && pwd`
2635:
1.22 ! moko 2636: if test x"${MISSING+set}" != xset; then
! 2637: case $am_aux_dir in
! 2638: *\ * | *\ *)
! 2639: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
! 2640: *)
! 2641: MISSING="\${SHELL} $am_aux_dir/missing" ;;
! 2642: esac
! 2643: fi
1.1 misha 2644: # Use eval to expand $SHELL
2645: if eval "$MISSING --run true"; then
2646: am_missing_run="$MISSING --run "
2647: else
2648: am_missing_run=
1.22 ! moko 2649: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
! 2650: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.1 misha 2651: fi
2652:
1.22 ! moko 2653: if test x"${install_sh}" != xset; then
! 2654: case $am_aux_dir in
! 2655: *\ * | *\ *)
! 2656: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
! 2657: *)
! 2658: install_sh="\${SHELL} $am_aux_dir/install-sh"
! 2659: esac
! 2660: fi
! 2661:
! 2662: # Installed binaries are usually stripped using `strip' when the user
! 2663: # run `make install-strip'. However `strip' might not be the right
! 2664: # tool to use in cross-compilation environments, therefore Automake
! 2665: # will honor the `STRIP' environment variable to overrule this program.
! 2666: if test "$cross_compiling" != no; then
! 2667: if test -n "$ac_tool_prefix"; then
! 2668: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 2669: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 2670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2671: $as_echo_n "checking for $ac_word... " >&6; }
! 2672: if ${ac_cv_prog_STRIP+:} false; then :
! 2673: $as_echo_n "(cached) " >&6
! 2674: else
! 2675: if test -n "$STRIP"; then
! 2676: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
! 2677: else
! 2678: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2679: for as_dir in $PATH
! 2680: do
! 2681: IFS=$as_save_IFS
! 2682: test -z "$as_dir" && as_dir=.
! 2683: for ac_exec_ext in '' $ac_executable_extensions; do
! 2684: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 2685: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 2686: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2687: break 2
! 2688: fi
! 2689: done
! 2690: done
! 2691: IFS=$as_save_IFS
! 2692:
! 2693: fi
! 2694: fi
! 2695: STRIP=$ac_cv_prog_STRIP
! 2696: if test -n "$STRIP"; then
! 2697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 2698: $as_echo "$STRIP" >&6; }
! 2699: else
! 2700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2701: $as_echo "no" >&6; }
! 2702: fi
! 2703:
! 2704:
! 2705: fi
! 2706: if test -z "$ac_cv_prog_STRIP"; then
! 2707: ac_ct_STRIP=$STRIP
! 2708: # Extract the first word of "strip", so it can be a program name with args.
! 2709: set dummy strip; ac_word=$2
! 2710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2711: $as_echo_n "checking for $ac_word... " >&6; }
! 2712: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
! 2713: $as_echo_n "(cached) " >&6
! 2714: else
! 2715: if test -n "$ac_ct_STRIP"; then
! 2716: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
! 2717: else
! 2718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2719: for as_dir in $PATH
! 2720: do
! 2721: IFS=$as_save_IFS
! 2722: test -z "$as_dir" && as_dir=.
! 2723: for ac_exec_ext in '' $ac_executable_extensions; do
! 2724: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 2725: ac_cv_prog_ac_ct_STRIP="strip"
! 2726: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2727: break 2
! 2728: fi
! 2729: done
! 2730: done
! 2731: IFS=$as_save_IFS
! 2732:
! 2733: fi
! 2734: fi
! 2735: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 2736: if test -n "$ac_ct_STRIP"; then
! 2737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 2738: $as_echo "$ac_ct_STRIP" >&6; }
! 2739: else
! 2740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2741: $as_echo "no" >&6; }
! 2742: fi
! 2743:
! 2744: if test "x$ac_ct_STRIP" = x; then
! 2745: STRIP=":"
! 2746: else
! 2747: case $cross_compiling:$ac_tool_warned in
! 2748: yes:)
! 2749: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 2750: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 2751: ac_tool_warned=yes ;;
! 2752: esac
! 2753: STRIP=$ac_ct_STRIP
! 2754: fi
! 2755: else
! 2756: STRIP="$ac_cv_prog_STRIP"
! 2757: fi
! 2758:
! 2759: fi
! 2760: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
! 2761:
! 2762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
! 2763: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
! 2764: if test -z "$MKDIR_P"; then
! 2765: if ${ac_cv_path_mkdir+:} false; then :
! 2766: $as_echo_n "(cached) " >&6
! 2767: else
! 2768: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2769: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
! 2770: do
! 2771: IFS=$as_save_IFS
! 2772: test -z "$as_dir" && as_dir=.
! 2773: for ac_prog in mkdir gmkdir; do
! 2774: for ac_exec_ext in '' $ac_executable_extensions; do
! 2775: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
! 2776: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
! 2777: 'mkdir (GNU coreutils) '* | \
! 2778: 'mkdir (coreutils) '* | \
! 2779: 'mkdir (fileutils) '4.1*)
! 2780: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
! 2781: break 3;;
! 2782: esac
! 2783: done
! 2784: done
1.1 misha 2785: done
1.22 ! moko 2786: IFS=$as_save_IFS
! 2787:
! 2788: fi
! 2789:
! 2790: test -d ./--version && rmdir ./--version
! 2791: if test "${ac_cv_path_mkdir+set}" = set; then
! 2792: MKDIR_P="$ac_cv_path_mkdir -p"
1.1 misha 2793: else
1.22 ! moko 2794: # As a last resort, use the slow shell script. Don't cache a
! 2795: # value for MKDIR_P within a source directory, because that will
! 2796: # break other packages using the cache if that directory is
! 2797: # removed, or if the value is a relative name.
! 2798: MKDIR_P="$ac_install_sh -d"
1.1 misha 2799: fi
2800: fi
1.22 ! moko 2801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
! 2802: $as_echo "$MKDIR_P" >&6; }
! 2803:
! 2804: mkdir_p="$MKDIR_P"
! 2805: case $mkdir_p in
! 2806: [\\/$]* | ?:[\\/]*) ;;
! 2807: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
! 2808: esac
1.1 misha 2809:
2810: for ac_prog in gawk mawk nawk awk
2811: do
2812: # Extract the first word of "$ac_prog", so it can be a program name with args.
2813: set dummy $ac_prog; ac_word=$2
1.22 ! moko 2814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2815: $as_echo_n "checking for $ac_word... " >&6; }
! 2816: if ${ac_cv_prog_AWK+:} false; then :
! 2817: $as_echo_n "(cached) " >&6
1.1 misha 2818: else
2819: if test -n "$AWK"; then
2820: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2821: else
2822: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823: for as_dir in $PATH
2824: do
2825: IFS=$as_save_IFS
2826: test -z "$as_dir" && as_dir=.
1.22 ! moko 2827: for ac_exec_ext in '' $ac_executable_extensions; do
! 2828: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 2829: ac_cv_prog_AWK="$ac_prog"
1.22 ! moko 2830: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2831: break 2
2832: fi
2833: done
1.22 ! moko 2834: done
! 2835: IFS=$as_save_IFS
1.1 misha 2836:
2837: fi
2838: fi
2839: AWK=$ac_cv_prog_AWK
2840: if test -n "$AWK"; then
1.22 ! moko 2841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
! 2842: $as_echo "$AWK" >&6; }
1.1 misha 2843: else
1.22 ! moko 2844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2845: $as_echo "no" >&6; }
1.1 misha 2846: fi
2847:
1.22 ! moko 2848:
1.1 misha 2849: test -n "$AWK" && break
2850: done
2851:
1.22 ! moko 2852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 2853: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
! 2854: set x ${MAKE-make}
! 2855: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
! 2856: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
! 2857: $as_echo_n "(cached) " >&6
1.1 misha 2858: else
2859: cat >conftest.make <<\_ACEOF
1.22 ! moko 2860: SHELL = /bin/sh
1.1 misha 2861: all:
1.22 ! moko 2862: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.1 misha 2863: _ACEOF
1.22 ! moko 2864: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
! 2865: case `${MAKE-make} -f conftest.make 2>/dev/null` in
! 2866: *@@@%%%=?*=@@@%%%*)
! 2867: eval ac_cv_prog_make_${ac_make}_set=yes;;
! 2868: *)
! 2869: eval ac_cv_prog_make_${ac_make}_set=no;;
! 2870: esac
1.1 misha 2871: rm -f conftest.make
2872: fi
1.22 ! moko 2873: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
! 2874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 2875: $as_echo "yes" >&6; }
1.1 misha 2876: SET_MAKE=
2877: else
1.22 ! moko 2878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2879: $as_echo "no" >&6; }
1.1 misha 2880: SET_MAKE="MAKE=${MAKE-make}"
2881: fi
2882:
2883: rm -rf .tst 2>/dev/null
2884: mkdir .tst 2>/dev/null
2885: if test -d .tst; then
2886: am__leading_dot=.
2887: else
2888: am__leading_dot=_
2889: fi
2890: rmdir .tst 2>/dev/null
2891:
1.22 ! moko 2892: if test "`cd $srcdir && pwd`" != "`pwd`"; then
! 2893: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
! 2894: # is not polluted with repeated "-I."
! 2895: am__isrc=' -I$(srcdir)'
! 2896: # test to see if srcdir already configured
! 2897: if test -f $srcdir/config.status; then
! 2898: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
! 2899: fi
1.1 misha 2900: fi
2901:
2902: # test whether we have cygpath
2903: if test -z "$CYGPATH_W"; then
2904: if (cygpath --version) >/dev/null 2>/dev/null; then
2905: CYGPATH_W='cygpath -w'
2906: else
2907: CYGPATH_W=echo
2908: fi
2909: fi
2910:
2911:
2912: # Define the identity of the package.
1.13 moko 2913: PACKAGE='parser3sqlite-c'
2914: VERSION='10.2'
1.1 misha 2915:
2916:
1.13 moko 2917: cat >>confdefs.h <<_ACEOF
2918: #define PACKAGE "$PACKAGE"
2919: _ACEOF
2920:
2921:
2922: cat >>confdefs.h <<_ACEOF
2923: #define VERSION "$VERSION"
2924: _ACEOF
2925:
1.1 misha 2926: # Some tools Automake needs.
2927:
2928: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2929:
2930:
2931: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2932:
2933:
2934: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2935:
2936:
2937: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2938:
2939:
2940: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2941:
2942: # We need awk for the "check" target. The system "awk" is bad on
2943: # some platforms.
2944: # Always define AMTAR for backward compatibility.
2945:
2946: AMTAR=${AMTAR-"${am_missing_run}tar"}
2947:
2948: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2949:
2950:
2951:
2952:
2953:
2954:
2955:
2956:
2957:
1.22 ! moko 2958: # Check whether --with-sqlite-inc was given.
! 2959: if test "${with_sqlite_inc+set}" = set; then :
! 2960: withval=$with_sqlite_inc;
1.1 misha 2961: if test -r "$withval/sqlite3.h"; then
2962: SQLITE_INC=$withval
2963: fi
2964:
2965:
1.4 misha 2966: if test -z "$SQLITE_INC"; then
1.22 ! moko 2967: as_fn_error $? "$SQLITE_INC does not seem to be valid SQLite includes directory" "$LINENO" 5
1.4 misha 2968: fi
1.1 misha 2969:
2970: else
1.22 ! moko 2971: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE_INC directory" >&5
! 2972: $as_echo_n "checking for SQLITE_INC directory... " >&6; }
1.1 misha 2973: for d in \
1.9 moko 2974: /usr/local/include \
2975: /usr/include \
1.1 misha 2976: /usr/local/include/sqlite \
2977: /usr/include/sqlite ; do
2978:
2979: if test -r "$d/sqlite3.h"; then
2980: SQLITE_INC=$d
2981: fi
2982:
2983: done
2984:
1.4 misha 2985: if test -z "$SQLITE_INC"; then
1.22 ! moko 2986: as_fn_error $? "use --with-sqlite-inc=DIR to specify SQLite includes directory" "$LINENO" 5
1.4 misha 2987: fi
1.1 misha 2988:
1.22 ! moko 2989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE_INC" >&5
! 2990: $as_echo "$SQLITE_INC" >&6; }
1.1 misha 2991:
1.22 ! moko 2992: fi
1.11 moko 2993:
2994:
1.6 misha 2995:
2996:
2997:
1.22 ! moko 2998: ac_ext=cpp
1.1 misha 2999: ac_cpp='$CXXCPP $CPPFLAGS'
3000: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.22 ! moko 3003: if test -z "$CXX"; then
! 3004: if test -n "$CCC"; then
! 3005: CXX=$CCC
! 3006: else
! 3007: if test -n "$ac_tool_prefix"; then
! 3008: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1 misha 3009: do
3010: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3011: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.22 ! moko 3012: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3013: $as_echo_n "checking for $ac_word... " >&6; }
! 3014: if ${ac_cv_prog_CXX+:} false; then :
! 3015: $as_echo_n "(cached) " >&6
1.1 misha 3016: else
3017: if test -n "$CXX"; then
3018: ac_cv_prog_CXX="$CXX" # Let the user override the test.
3019: else
3020: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021: for as_dir in $PATH
3022: do
3023: IFS=$as_save_IFS
3024: test -z "$as_dir" && as_dir=.
1.22 ! moko 3025: for ac_exec_ext in '' $ac_executable_extensions; do
! 3026: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3027: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.22 ! moko 3028: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3029: break 2
3030: fi
3031: done
1.22 ! moko 3032: done
! 3033: IFS=$as_save_IFS
1.1 misha 3034:
3035: fi
3036: fi
3037: CXX=$ac_cv_prog_CXX
3038: if test -n "$CXX"; then
1.22 ! moko 3039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
! 3040: $as_echo "$CXX" >&6; }
1.1 misha 3041: else
1.22 ! moko 3042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3043: $as_echo "no" >&6; }
1.1 misha 3044: fi
3045:
1.22 ! moko 3046:
1.1 misha 3047: test -n "$CXX" && break
3048: done
3049: fi
3050: if test -z "$CXX"; then
3051: ac_ct_CXX=$CXX
1.22 ! moko 3052: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1 misha 3053: do
3054: # Extract the first word of "$ac_prog", so it can be a program name with args.
3055: set dummy $ac_prog; ac_word=$2
1.22 ! moko 3056: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3057: $as_echo_n "checking for $ac_word... " >&6; }
! 3058: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
! 3059: $as_echo_n "(cached) " >&6
1.1 misha 3060: else
3061: if test -n "$ac_ct_CXX"; then
3062: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3063: else
3064: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065: for as_dir in $PATH
3066: do
3067: IFS=$as_save_IFS
3068: test -z "$as_dir" && as_dir=.
1.22 ! moko 3069: for ac_exec_ext in '' $ac_executable_extensions; do
! 3070: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3071: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.22 ! moko 3072: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3073: break 2
3074: fi
3075: done
1.22 ! moko 3076: done
! 3077: IFS=$as_save_IFS
1.1 misha 3078:
3079: fi
3080: fi
3081: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3082: if test -n "$ac_ct_CXX"; then
1.22 ! moko 3083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
! 3084: $as_echo "$ac_ct_CXX" >&6; }
1.1 misha 3085: else
1.22 ! moko 3086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3087: $as_echo "no" >&6; }
1.1 misha 3088: fi
3089:
1.22 ! moko 3090:
1.1 misha 3091: test -n "$ac_ct_CXX" && break
3092: done
3093:
1.22 ! moko 3094: if test "x$ac_ct_CXX" = x; then
! 3095: CXX="g++"
! 3096: else
! 3097: case $cross_compiling:$ac_tool_warned in
! 3098: yes:)
! 3099: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3100: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 3101: ac_tool_warned=yes ;;
! 3102: esac
! 3103: CXX=$ac_ct_CXX
! 3104: fi
1.1 misha 3105: fi
3106:
1.22 ! moko 3107: fi
! 3108: fi
1.1 misha 3109: # Provide some information about the compiler.
1.22 ! moko 3110: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
! 3111: set X $ac_compile
! 3112: ac_compiler=$2
! 3113: for ac_option in --version -v -V -qversion; do
! 3114: { { ac_try="$ac_compiler $ac_option >&5"
! 3115: case "(($ac_try" in
! 3116: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3117: *) ac_try_echo=$ac_try;;
! 3118: esac
! 3119: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3120: $as_echo "$ac_try_echo"; } >&5
! 3121: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.11 moko 3122: ac_status=$?
1.22 ! moko 3123: if test -s conftest.err; then
! 3124: sed '10a\
! 3125: ... rest of stderr output deleted ...
! 3126: 10q' conftest.err >conftest.er1
! 3127: cat conftest.er1 >&5
! 3128: fi
! 3129: rm -f conftest.er1 conftest.err
! 3130: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3131: test $ac_status = 0; }
! 3132: done
1.1 misha 3133:
1.22 ! moko 3134: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3135: /* end confdefs.h. */
3136:
3137: int
3138: main ()
3139: {
3140:
3141: ;
3142: return 0;
3143: }
3144: _ACEOF
3145: ac_clean_files_save=$ac_clean_files
1.22 ! moko 3146: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.1 misha 3147: # Try to create an executable without -o first, disregard a.out.
3148: # It will help us diagnose broken compilers, and finding out an intuition
3149: # of exeext.
1.22 ! moko 3150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
! 3151: $as_echo_n "checking whether the C++ compiler works... " >&6; }
! 3152: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 3153:
! 3154: # The possible output files:
! 3155: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
! 3156:
! 3157: ac_rmfiles=
! 3158: for ac_file in $ac_files
! 3159: do
! 3160: case $ac_file in
! 3161: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
! 3162: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
! 3163: esac
! 3164: done
! 3165: rm -f $ac_rmfiles
! 3166:
! 3167: if { { ac_try="$ac_link_default"
! 3168: case "(($ac_try" in
! 3169: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3170: *) ac_try_echo=$ac_try;;
! 3171: esac
! 3172: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3173: $as_echo "$ac_try_echo"; } >&5
! 3174: (eval "$ac_link_default") 2>&5
! 3175: ac_status=$?
! 3176: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3177: test $ac_status = 0; }; then :
! 3178: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
! 3179: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
! 3180: # in a Makefile. We should not override ac_cv_exeext if it was cached,
! 3181: # so that the user can short-circuit this test for compilers unknown to
! 3182: # Autoconf.
! 3183: for ac_file in $ac_files ''
1.1 misha 3184: do
3185: test -f "$ac_file" || continue
3186: case $ac_file in
1.22 ! moko 3187: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.1 misha 3188: ;;
3189: [ab].out )
3190: # We found the default executable, but exeext='' is most
3191: # certainly right.
3192: break;;
3193: *.* )
1.22 ! moko 3194: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
! 3195: then :; else
! 3196: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 3197: fi
! 3198: # We set ac_cv_exeext here because the later test for it is not
! 3199: # safe: cross compilers may not add the suffix if given an `-o'
! 3200: # argument, so we may need to know it at that point already.
! 3201: # Even if this section looks crufty: it has the advantage of
! 3202: # actually working.
1.1 misha 3203: break;;
3204: * )
3205: break;;
3206: esac
3207: done
1.22 ! moko 3208: test "$ac_cv_exeext" = no && ac_cv_exeext=
! 3209:
1.11 moko 3210: else
1.22 ! moko 3211: ac_file=''
! 3212: fi
! 3213: if test -z "$ac_file"; then :
! 3214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3215: $as_echo "no" >&6; }
! 3216: $as_echo "$as_me: failed program was:" >&5
1.11 moko 3217: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 3218:
1.22 ! moko 3219: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3220: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3221: as_fn_error 77 "C++ compiler cannot create executables
! 3222: See \`config.log' for more details" "$LINENO" 5; }
! 3223: else
! 3224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 3225: $as_echo "yes" >&6; }
! 3226: fi
! 3227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
! 3228: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
! 3229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
! 3230: $as_echo "$ac_file" >&6; }
1.1 misha 3231: ac_exeext=$ac_cv_exeext
1.11 moko 3232:
1.22 ! moko 3233: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.1 misha 3234: ac_clean_files=$ac_clean_files_save
1.22 ! moko 3235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
! 3236: $as_echo_n "checking for suffix of executables... " >&6; }
! 3237: if { { ac_try="$ac_link"
! 3238: case "(($ac_try" in
! 3239: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3240: *) ac_try_echo=$ac_try;;
! 3241: esac
! 3242: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3243: $as_echo "$ac_try_echo"; } >&5
! 3244: (eval "$ac_link") 2>&5
1.1 misha 3245: ac_status=$?
1.22 ! moko 3246: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3247: test $ac_status = 0; }; then :
1.1 misha 3248: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3249: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3250: # work properly (i.e., refer to `conftest.exe'), while it won't with
3251: # `rm'.
3252: for ac_file in conftest.exe conftest conftest.*; do
3253: test -f "$ac_file" || continue
3254: case $ac_file in
1.22 ! moko 3255: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.1 misha 3256: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3257: break;;
3258: * ) break;;
3259: esac
3260: done
3261: else
1.22 ! moko 3262: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3263: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3264: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
! 3265: See \`config.log' for more details" "$LINENO" 5; }
! 3266: fi
! 3267: rm -f conftest conftest$ac_cv_exeext
! 3268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
! 3269: $as_echo "$ac_cv_exeext" >&6; }
1.1 misha 3270:
3271: rm -f conftest.$ac_ext
3272: EXEEXT=$ac_cv_exeext
3273: ac_exeext=$EXEEXT
1.22 ! moko 3274: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3275: /* end confdefs.h. */
! 3276: #include <stdio.h>
! 3277: int
! 3278: main ()
! 3279: {
! 3280: FILE *f = fopen ("conftest.out", "w");
! 3281: return ferror (f) || fclose (f) != 0;
! 3282:
! 3283: ;
! 3284: return 0;
! 3285: }
! 3286: _ACEOF
! 3287: ac_clean_files="$ac_clean_files conftest.out"
! 3288: # Check that the compiler produces executables we can run. If not, either
! 3289: # the compiler is broken, or we cross compile.
! 3290: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
! 3291: $as_echo_n "checking whether we are cross compiling... " >&6; }
! 3292: if test "$cross_compiling" != yes; then
! 3293: { { ac_try="$ac_link"
! 3294: case "(($ac_try" in
! 3295: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3296: *) ac_try_echo=$ac_try;;
! 3297: esac
! 3298: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3299: $as_echo "$ac_try_echo"; } >&5
! 3300: (eval "$ac_link") 2>&5
! 3301: ac_status=$?
! 3302: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3303: test $ac_status = 0; }
! 3304: if { ac_try='./conftest$ac_cv_exeext'
! 3305: { { case "(($ac_try" in
! 3306: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3307: *) ac_try_echo=$ac_try;;
! 3308: esac
! 3309: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3310: $as_echo "$ac_try_echo"; } >&5
! 3311: (eval "$ac_try") 2>&5
! 3312: ac_status=$?
! 3313: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3314: test $ac_status = 0; }; }; then
! 3315: cross_compiling=no
! 3316: else
! 3317: if test "$cross_compiling" = maybe; then
! 3318: cross_compiling=yes
! 3319: else
! 3320: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3321: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3322: as_fn_error $? "cannot run C++ compiled programs.
! 3323: If you meant to cross compile, use \`--host'.
! 3324: See \`config.log' for more details" "$LINENO" 5; }
! 3325: fi
! 3326: fi
! 3327: fi
! 3328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
! 3329: $as_echo "$cross_compiling" >&6; }
! 3330:
! 3331: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
! 3332: ac_clean_files=$ac_clean_files_save
! 3333: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
! 3334: $as_echo_n "checking for suffix of object files... " >&6; }
! 3335: if ${ac_cv_objext+:} false; then :
! 3336: $as_echo_n "(cached) " >&6
1.11 moko 3337: else
1.22 ! moko 3338: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3339: /* end confdefs.h. */
3340:
3341: int
3342: main ()
3343: {
3344:
3345: ;
3346: return 0;
3347: }
3348: _ACEOF
3349: rm -f conftest.o conftest.obj
1.22 ! moko 3350: if { { ac_try="$ac_compile"
! 3351: case "(($ac_try" in
! 3352: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3353: *) ac_try_echo=$ac_try;;
! 3354: esac
! 3355: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3356: $as_echo "$ac_try_echo"; } >&5
! 3357: (eval "$ac_compile") 2>&5
! 3358: ac_status=$?
! 3359: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3360: test $ac_status = 0; }; then :
! 3361: for ac_file in conftest.o conftest.obj conftest.*; do
! 3362: test -f "$ac_file" || continue;
1.1 misha 3363: case $ac_file in
1.22 ! moko 3364: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.1 misha 3365: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3366: break;;
3367: esac
3368: done
3369: else
1.22 ! moko 3370: $as_echo "$as_me: failed program was:" >&5
1.1 misha 3371: sed 's/^/| /' conftest.$ac_ext >&5
3372:
1.22 ! moko 3373: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3374: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3375: as_fn_error $? "cannot compute suffix of object files: cannot compile
! 3376: See \`config.log' for more details" "$LINENO" 5; }
1.1 misha 3377: fi
3378: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3379: fi
1.22 ! moko 3380: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
! 3381: $as_echo "$ac_cv_objext" >&6; }
1.1 misha 3382: OBJEXT=$ac_cv_objext
3383: ac_objext=$OBJEXT
1.22 ! moko 3384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
! 3385: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
! 3386: if ${ac_cv_cxx_compiler_gnu+:} false; then :
! 3387: $as_echo_n "(cached) " >&6
1.1 misha 3388: else
1.22 ! moko 3389: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3390: /* end confdefs.h. */
3391:
3392: int
3393: main ()
3394: {
3395: #ifndef __GNUC__
3396: choke me
3397: #endif
3398:
3399: ;
3400: return 0;
3401: }
3402: _ACEOF
1.22 ! moko 3403: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 misha 3404: ac_compiler_gnu=yes
3405: else
1.22 ! moko 3406: ac_compiler_gnu=no
1.1 misha 3407: fi
1.22 ! moko 3408: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3409: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3410:
3411: fi
1.22 ! moko 3412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
! 3413: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
! 3414: if test $ac_compiler_gnu = yes; then
! 3415: GXX=yes
! 3416: else
! 3417: GXX=
! 3418: fi
1.1 misha 3419: ac_test_CXXFLAGS=${CXXFLAGS+set}
3420: ac_save_CXXFLAGS=$CXXFLAGS
1.22 ! moko 3421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
! 3422: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
! 3423: if ${ac_cv_prog_cxx_g+:} false; then :
! 3424: $as_echo_n "(cached) " >&6
! 3425: else
! 3426: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
! 3427: ac_cxx_werror_flag=yes
! 3428: ac_cv_prog_cxx_g=no
! 3429: CXXFLAGS="-g"
! 3430: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3431: /* end confdefs.h. */
3432:
3433: int
3434: main ()
3435: {
3436:
3437: ;
3438: return 0;
3439: }
3440: _ACEOF
1.22 ! moko 3441: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 misha 3442: ac_cv_prog_cxx_g=yes
3443: else
1.22 ! moko 3444: CXXFLAGS=""
! 3445: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3446: /* end confdefs.h. */
1.11 moko 3447:
1.1 misha 3448: int
3449: main ()
3450: {
1.22 ! moko 3451:
1.1 misha 3452: ;
3453: return 0;
3454: }
3455: _ACEOF
1.22 ! moko 3456: if ac_fn_cxx_try_compile "$LINENO"; then :
! 3457:
1.11 moko 3458: else
1.22 ! moko 3459: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 3460: CXXFLAGS="-g"
! 3461: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 moko 3462: /* end confdefs.h. */
1.22 ! moko 3463:
1.1 misha 3464: int
3465: main ()
3466: {
1.22 ! moko 3467:
1.1 misha 3468: ;
3469: return 0;
3470: }
3471: _ACEOF
1.22 ! moko 3472: if ac_fn_cxx_try_compile "$LINENO"; then :
! 3473: ac_cv_prog_cxx_g=yes
! 3474: fi
! 3475: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3476: fi
! 3477: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3478: fi
! 3479: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3480: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 3481: fi
! 3482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
! 3483: $as_echo "$ac_cv_prog_cxx_g" >&6; }
! 3484: if test "$ac_test_CXXFLAGS" = set; then
! 3485: CXXFLAGS=$ac_save_CXXFLAGS
! 3486: elif test $ac_cv_prog_cxx_g = yes; then
! 3487: if test "$GXX" = yes; then
! 3488: CXXFLAGS="-g -O2"
! 3489: else
! 3490: CXXFLAGS="-g"
! 3491: fi
1.11 moko 3492: else
1.22 ! moko 3493: if test "$GXX" = yes; then
! 3494: CXXFLAGS="-O2"
! 3495: else
! 3496: CXXFLAGS=
! 3497: fi
1.10 moko 3498: fi
1.1 misha 3499: ac_ext=c
3500: ac_cpp='$CPP $CPPFLAGS'
3501: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504: DEPDIR="${am__leading_dot}deps"
3505:
1.22 ! moko 3506: ac_config_commands="$ac_config_commands depfiles"
1.1 misha 3507:
3508:
3509: am_make=${MAKE-make}
3510: cat > confinc << 'END'
3511: am__doit:
1.22 ! moko 3512: @echo this is the am__doit target
1.1 misha 3513: .PHONY: am__doit
3514: END
3515: # If we don't find an include directive, just comment out the code.
1.22 ! moko 3516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
! 3517: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.1 misha 3518: am__include="#"
3519: am__quote=
3520: _am_result=none
3521: # First try GNU make style include.
3522: echo "include confinc" > confmf
1.22 ! moko 3523: # Ignore all kinds of additional output from `make'.
! 3524: case `$am_make -s -f confmf 2> /dev/null` in #(
! 3525: *the\ am__doit\ target*)
! 3526: am__include=include
! 3527: am__quote=
! 3528: _am_result=GNU
! 3529: ;;
! 3530: esac
1.1 misha 3531: # Now try BSD make style include.
3532: if test "$am__include" = "#"; then
3533: echo '.include "confinc"' > confmf
1.22 ! moko 3534: case `$am_make -s -f confmf 2> /dev/null` in #(
! 3535: *the\ am__doit\ target*)
! 3536: am__include=.include
! 3537: am__quote="\""
! 3538: _am_result=BSD
! 3539: ;;
! 3540: esac
1.1 misha 3541: fi
3542:
3543:
1.22 ! moko 3544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
! 3545: $as_echo "$_am_result" >&6; }
1.1 misha 3546: rm -f confinc confmf
3547:
1.22 ! moko 3548: # Check whether --enable-dependency-tracking was given.
! 3549: if test "${enable_dependency_tracking+set}" = set; then :
! 3550: enableval=$enable_dependency_tracking;
! 3551: fi
1.1 misha 3552:
3553: if test "x$enable_dependency_tracking" != xno; then
3554: am_depcomp="$ac_aux_dir/depcomp"
3555: AMDEPBACKSLASH='\'
3556: fi
1.22 ! moko 3557: if test "x$enable_dependency_tracking" != xno; then
1.1 misha 3558: AMDEP_TRUE=
3559: AMDEP_FALSE='#'
3560: else
3561: AMDEP_TRUE='#'
3562: AMDEP_FALSE=
3563: fi
3564:
3565:
3566:
3567: depcc="$CXX" am_compiler_list=
3568:
1.22 ! moko 3569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 3570: $as_echo_n "checking dependency style of $depcc... " >&6; }
! 3571: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
! 3572: $as_echo_n "(cached) " >&6
1.1 misha 3573: else
3574: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3575: # We make a subdir and do the tests there. Otherwise we can end up
3576: # making bogus files that we don't know about and never remove. For
3577: # instance it was reported that on HP-UX the gcc test will end up
3578: # making a dummy file named `D' -- because `-MD' means `put the output
3579: # in D'.
3580: mkdir conftest.dir
3581: # Copy depcomp to subdir because otherwise we won't find it if we're
3582: # using a relative directory.
3583: cp "$am_depcomp" conftest.dir
3584: cd conftest.dir
3585: # We will build objects and dependencies in a subdirectory because
3586: # it helps to detect inapplicable dependency modes. For instance
3587: # both Tru64's cc and ICC support -MD to output dependencies as a
3588: # side effect of compilation, but ICC will put the dependencies in
3589: # the current directory while Tru64 will put them in the object
3590: # directory.
3591: mkdir sub
3592:
3593: am_cv_CXX_dependencies_compiler_type=none
3594: if test "$am_compiler_list" = ""; then
3595: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3596: fi
1.22 ! moko 3597: am__universal=false
! 3598: case " $depcc " in #(
! 3599: *\ -arch\ *\ -arch\ *) am__universal=true ;;
! 3600: esac
! 3601:
1.1 misha 3602: for depmode in $am_compiler_list; do
3603: # Setup a source with many dependencies, because some compilers
3604: # like to wrap large dependency lists on column 80 (with \), and
3605: # we should not choose a depcomp mode which is confused by this.
3606: #
3607: # We need to recreate these files for each test, as the compiler may
3608: # overwrite some of them when testing with obscure command lines.
3609: # This happens at least with the AIX C compiler.
3610: : > sub/conftest.c
3611: for i in 1 2 3 4 5 6; do
3612: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3613: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3614: # Solaris 8's {/usr,}/bin/sh.
3615: touch sub/conftst$i.h
3616: done
3617: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3618:
1.22 ! moko 3619: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 3620: # mode. It turns out that the SunPro C++ compiler does not properly
! 3621: # handle `-M -o', and we need to detect this. Also, some Intel
! 3622: # versions had trouble with output in subdirs
! 3623: am__obj=sub/conftest.${OBJEXT-o}
! 3624: am__minus_obj="-o $am__obj"
1.1 misha 3625: case $depmode in
1.22 ! moko 3626: gcc)
! 3627: # This depmode causes a compiler race in universal mode.
! 3628: test "$am__universal" = false || continue
! 3629: ;;
1.1 misha 3630: nosideeffect)
3631: # after this tag, mechanisms are not by side-effect, so they'll
3632: # only be used when explicitly requested
3633: if test "x$enable_dependency_tracking" = xyes; then
3634: continue
3635: else
3636: break
3637: fi
3638: ;;
1.22 ! moko 3639: msvisualcpp | msvcmsys)
! 3640: # This compiler won't grok `-c -o', but also, the minuso test has
! 3641: # not run yet. These depmodes are late enough in the game, and
! 3642: # so weak that their functioning should not be impacted.
! 3643: am__obj=conftest.${OBJEXT-o}
! 3644: am__minus_obj=
! 3645: ;;
1.1 misha 3646: none) break ;;
3647: esac
3648: if depmode=$depmode \
1.22 ! moko 3649: source=sub/conftest.c object=$am__obj \
1.1 misha 3650: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.22 ! moko 3651: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.1 misha 3652: >/dev/null 2>conftest.err &&
1.22 ! moko 3653: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.1 misha 3654: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.22 ! moko 3655: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.1 misha 3656: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3657: # icc doesn't choke on unknown options, it will just issue warnings
3658: # or remarks (even with -Werror). So we grep stderr for any message
3659: # that says an option was ignored or not supported.
3660: # When given -MP, icc 7.0 and 7.1 complain thusly:
3661: # icc: Command line warning: ignoring option '-M'; no argument required
3662: # The diagnosis changed in icc 8.0:
3663: # icc: Command line remark: option '-MP' not supported
3664: if (grep 'ignoring option' conftest.err ||
3665: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3666: am_cv_CXX_dependencies_compiler_type=$depmode
3667: break
3668: fi
3669: fi
3670: done
3671:
3672: cd ..
3673: rm -rf conftest.dir
3674: else
3675: am_cv_CXX_dependencies_compiler_type=none
3676: fi
3677:
3678: fi
1.22 ! moko 3679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
! 3680: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.1 misha 3681: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3682:
1.22 ! moko 3683: if
1.1 misha 3684: test "x$enable_dependency_tracking" != xno \
3685: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3686: am__fastdepCXX_TRUE=
3687: am__fastdepCXX_FALSE='#'
3688: else
3689: am__fastdepCXX_TRUE='#'
3690: am__fastdepCXX_FALSE=
3691: fi
3692:
3693:
3694: ac_ext=c
3695: ac_cpp='$CPP $CPPFLAGS'
3696: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699: if test -n "$ac_tool_prefix"; then
3700: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3701: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.22 ! moko 3702: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3703: $as_echo_n "checking for $ac_word... " >&6; }
! 3704: if ${ac_cv_prog_CC+:} false; then :
! 3705: $as_echo_n "(cached) " >&6
1.1 misha 3706: else
3707: if test -n "$CC"; then
3708: ac_cv_prog_CC="$CC" # Let the user override the test.
3709: else
3710: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711: for as_dir in $PATH
3712: do
3713: IFS=$as_save_IFS
3714: test -z "$as_dir" && as_dir=.
1.22 ! moko 3715: for ac_exec_ext in '' $ac_executable_extensions; do
! 3716: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3717: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.22 ! moko 3718: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3719: break 2
3720: fi
3721: done
1.22 ! moko 3722: done
! 3723: IFS=$as_save_IFS
1.1 misha 3724:
3725: fi
3726: fi
3727: CC=$ac_cv_prog_CC
3728: if test -n "$CC"; then
1.22 ! moko 3729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3730: $as_echo "$CC" >&6; }
1.1 misha 3731: else
1.22 ! moko 3732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3733: $as_echo "no" >&6; }
1.1 misha 3734: fi
3735:
1.22 ! moko 3736:
1.1 misha 3737: fi
3738: if test -z "$ac_cv_prog_CC"; then
3739: ac_ct_CC=$CC
3740: # Extract the first word of "gcc", so it can be a program name with args.
3741: set dummy gcc; ac_word=$2
1.22 ! moko 3742: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3743: $as_echo_n "checking for $ac_word... " >&6; }
! 3744: if ${ac_cv_prog_ac_ct_CC+:} false; then :
! 3745: $as_echo_n "(cached) " >&6
1.1 misha 3746: else
3747: if test -n "$ac_ct_CC"; then
3748: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3749: else
3750: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751: for as_dir in $PATH
3752: do
3753: IFS=$as_save_IFS
3754: test -z "$as_dir" && as_dir=.
1.22 ! moko 3755: for ac_exec_ext in '' $ac_executable_extensions; do
! 3756: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3757: ac_cv_prog_ac_ct_CC="gcc"
1.22 ! moko 3758: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3759: break 2
3760: fi
3761: done
1.22 ! moko 3762: done
! 3763: IFS=$as_save_IFS
1.1 misha 3764:
3765: fi
3766: fi
3767: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3768: if test -n "$ac_ct_CC"; then
1.22 ! moko 3769: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 3770: $as_echo "$ac_ct_CC" >&6; }
1.1 misha 3771: else
1.22 ! moko 3772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3773: $as_echo "no" >&6; }
1.1 misha 3774: fi
3775:
1.22 ! moko 3776: if test "x$ac_ct_CC" = x; then
! 3777: CC=""
! 3778: else
! 3779: case $cross_compiling:$ac_tool_warned in
! 3780: yes:)
! 3781: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3782: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 3783: ac_tool_warned=yes ;;
! 3784: esac
! 3785: CC=$ac_ct_CC
! 3786: fi
1.1 misha 3787: else
3788: CC="$ac_cv_prog_CC"
3789: fi
3790:
3791: if test -z "$CC"; then
1.22 ! moko 3792: if test -n "$ac_tool_prefix"; then
! 3793: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 misha 3794: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.22 ! moko 3795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3796: $as_echo_n "checking for $ac_word... " >&6; }
! 3797: if ${ac_cv_prog_CC+:} false; then :
! 3798: $as_echo_n "(cached) " >&6
1.1 misha 3799: else
3800: if test -n "$CC"; then
3801: ac_cv_prog_CC="$CC" # Let the user override the test.
3802: else
3803: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804: for as_dir in $PATH
3805: do
3806: IFS=$as_save_IFS
3807: test -z "$as_dir" && as_dir=.
1.22 ! moko 3808: for ac_exec_ext in '' $ac_executable_extensions; do
! 3809: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3810: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.22 ! moko 3811: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3812: break 2
3813: fi
3814: done
1.22 ! moko 3815: done
! 3816: IFS=$as_save_IFS
1.1 misha 3817:
3818: fi
3819: fi
3820: CC=$ac_cv_prog_CC
3821: if test -n "$CC"; then
1.22 ! moko 3822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3823: $as_echo "$CC" >&6; }
1.11 moko 3824: else
1.22 ! moko 3825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3826: $as_echo "no" >&6; }
1.11 moko 3827: fi
3828:
1.22 ! moko 3829:
1.11 moko 3830: fi
1.1 misha 3831: fi
3832: if test -z "$CC"; then
3833: # Extract the first word of "cc", so it can be a program name with args.
3834: set dummy cc; ac_word=$2
1.22 ! moko 3835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3836: $as_echo_n "checking for $ac_word... " >&6; }
! 3837: if ${ac_cv_prog_CC+:} false; then :
! 3838: $as_echo_n "(cached) " >&6
1.1 misha 3839: else
3840: if test -n "$CC"; then
3841: ac_cv_prog_CC="$CC" # Let the user override the test.
3842: else
3843: ac_prog_rejected=no
3844: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845: for as_dir in $PATH
3846: do
3847: IFS=$as_save_IFS
3848: test -z "$as_dir" && as_dir=.
1.22 ! moko 3849: for ac_exec_ext in '' $ac_executable_extensions; do
! 3850: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3851: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3852: ac_prog_rejected=yes
3853: continue
3854: fi
3855: ac_cv_prog_CC="cc"
1.22 ! moko 3856: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3857: break 2
3858: fi
3859: done
1.22 ! moko 3860: done
! 3861: IFS=$as_save_IFS
1.1 misha 3862:
3863: if test $ac_prog_rejected = yes; then
3864: # We found a bogon in the path, so make sure we never use it.
3865: set dummy $ac_cv_prog_CC
3866: shift
3867: if test $# != 0; then
3868: # We chose a different compiler from the bogus one.
3869: # However, it has the same basename, so the bogon will be chosen
3870: # first if we set CC to just the basename; use the full file name.
3871: shift
3872: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3873: fi
3874: fi
3875: fi
3876: fi
3877: CC=$ac_cv_prog_CC
3878: if test -n "$CC"; then
1.22 ! moko 3879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3880: $as_echo "$CC" >&6; }
1.1 misha 3881: else
1.22 ! moko 3882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3883: $as_echo "no" >&6; }
1.1 misha 3884: fi
3885:
1.22 ! moko 3886:
1.1 misha 3887: fi
3888: if test -z "$CC"; then
3889: if test -n "$ac_tool_prefix"; then
1.22 ! moko 3890: for ac_prog in cl.exe
1.1 misha 3891: do
3892: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3893: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.22 ! moko 3894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3895: $as_echo_n "checking for $ac_word... " >&6; }
! 3896: if ${ac_cv_prog_CC+:} false; then :
! 3897: $as_echo_n "(cached) " >&6
1.1 misha 3898: else
3899: if test -n "$CC"; then
3900: ac_cv_prog_CC="$CC" # Let the user override the test.
3901: else
3902: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903: for as_dir in $PATH
3904: do
3905: IFS=$as_save_IFS
3906: test -z "$as_dir" && as_dir=.
1.22 ! moko 3907: for ac_exec_ext in '' $ac_executable_extensions; do
! 3908: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3909: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.22 ! moko 3910: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3911: break 2
3912: fi
3913: done
1.22 ! moko 3914: done
! 3915: IFS=$as_save_IFS
1.1 misha 3916:
3917: fi
3918: fi
3919: CC=$ac_cv_prog_CC
3920: if test -n "$CC"; then
1.22 ! moko 3921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3922: $as_echo "$CC" >&6; }
1.1 misha 3923: else
1.22 ! moko 3924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3925: $as_echo "no" >&6; }
1.1 misha 3926: fi
3927:
1.22 ! moko 3928:
1.1 misha 3929: test -n "$CC" && break
3930: done
3931: fi
3932: if test -z "$CC"; then
3933: ac_ct_CC=$CC
1.22 ! moko 3934: for ac_prog in cl.exe
1.1 misha 3935: do
3936: # Extract the first word of "$ac_prog", so it can be a program name with args.
3937: set dummy $ac_prog; ac_word=$2
1.22 ! moko 3938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3939: $as_echo_n "checking for $ac_word... " >&6; }
! 3940: if ${ac_cv_prog_ac_ct_CC+:} false; then :
! 3941: $as_echo_n "(cached) " >&6
1.1 misha 3942: else
3943: if test -n "$ac_ct_CC"; then
3944: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3945: else
3946: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947: for as_dir in $PATH
3948: do
3949: IFS=$as_save_IFS
3950: test -z "$as_dir" && as_dir=.
1.22 ! moko 3951: for ac_exec_ext in '' $ac_executable_extensions; do
! 3952: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3953: ac_cv_prog_ac_ct_CC="$ac_prog"
1.22 ! moko 3954: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3955: break 2
3956: fi
3957: done
1.22 ! moko 3958: done
! 3959: IFS=$as_save_IFS
1.1 misha 3960:
3961: fi
3962: fi
3963: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3964: if test -n "$ac_ct_CC"; then
1.22 ! moko 3965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 3966: $as_echo "$ac_ct_CC" >&6; }
1.1 misha 3967: else
1.22 ! moko 3968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3969: $as_echo "no" >&6; }
1.1 misha 3970: fi
3971:
1.22 ! moko 3972:
1.1 misha 3973: test -n "$ac_ct_CC" && break
3974: done
3975:
1.22 ! moko 3976: if test "x$ac_ct_CC" = x; then
! 3977: CC=""
! 3978: else
! 3979: case $cross_compiling:$ac_tool_warned in
! 3980: yes:)
! 3981: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3982: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 3983: ac_tool_warned=yes ;;
! 3984: esac
! 3985: CC=$ac_ct_CC
! 3986: fi
1.1 misha 3987: fi
3988:
3989: fi
3990:
3991:
1.22 ! moko 3992: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3993: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3994: as_fn_error $? "no acceptable C compiler found in \$PATH
! 3995: See \`config.log' for more details" "$LINENO" 5; }
1.1 misha 3996:
3997: # Provide some information about the compiler.
1.22 ! moko 3998: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
! 3999: set X $ac_compile
! 4000: ac_compiler=$2
! 4001: for ac_option in --version -v -V -qversion; do
! 4002: { { ac_try="$ac_compiler $ac_option >&5"
! 4003: case "(($ac_try" in
! 4004: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4005: *) ac_try_echo=$ac_try;;
! 4006: esac
! 4007: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 4008: $as_echo "$ac_try_echo"; } >&5
! 4009: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.11 moko 4010: ac_status=$?
1.22 ! moko 4011: if test -s conftest.err; then
! 4012: sed '10a\
! 4013: ... rest of stderr output deleted ...
! 4014: 10q' conftest.err >conftest.er1
! 4015: cat conftest.er1 >&5
! 4016: fi
! 4017: rm -f conftest.er1 conftest.err
! 4018: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4019: test $ac_status = 0; }
! 4020: done
! 4021:
! 4022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
! 4023: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
! 4024: if ${ac_cv_c_compiler_gnu+:} false; then :
! 4025: $as_echo_n "(cached) " >&6
1.1 misha 4026: else
1.22 ! moko 4027: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 4028: /* end confdefs.h. */
4029:
4030: int
4031: main ()
4032: {
4033: #ifndef __GNUC__
4034: choke me
4035: #endif
4036:
4037: ;
4038: return 0;
4039: }
4040: _ACEOF
1.22 ! moko 4041: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misha 4042: ac_compiler_gnu=yes
4043: else
1.22 ! moko 4044: ac_compiler_gnu=no
1.1 misha 4045: fi
1.22 ! moko 4046: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 4047: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4048:
4049: fi
1.22 ! moko 4050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
! 4051: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
! 4052: if test $ac_compiler_gnu = yes; then
! 4053: GCC=yes
! 4054: else
! 4055: GCC=
! 4056: fi
1.1 misha 4057: ac_test_CFLAGS=${CFLAGS+set}
4058: ac_save_CFLAGS=$CFLAGS
1.22 ! moko 4059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
! 4060: $as_echo_n "checking whether $CC accepts -g... " >&6; }
! 4061: if ${ac_cv_prog_cc_g+:} false; then :
! 4062: $as_echo_n "(cached) " >&6
! 4063: else
! 4064: ac_save_c_werror_flag=$ac_c_werror_flag
! 4065: ac_c_werror_flag=yes
! 4066: ac_cv_prog_cc_g=no
! 4067: CFLAGS="-g"
! 4068: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4069: /* end confdefs.h. */
! 4070:
! 4071: int
! 4072: main ()
! 4073: {
! 4074:
! 4075: ;
! 4076: return 0;
! 4077: }
! 4078: _ACEOF
! 4079: if ac_fn_c_try_compile "$LINENO"; then :
! 4080: ac_cv_prog_cc_g=yes
1.11 moko 4081: else
1.22 ! moko 4082: CFLAGS=""
! 4083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4084: /* end confdefs.h. */
! 4085:
! 4086: int
! 4087: main ()
! 4088: {
! 4089:
! 4090: ;
! 4091: return 0;
! 4092: }
1.11 moko 4093: _ACEOF
1.22 ! moko 4094: if ac_fn_c_try_compile "$LINENO"; then :
! 4095:
! 4096: else
! 4097: ac_c_werror_flag=$ac_save_c_werror_flag
! 4098: CFLAGS="-g"
! 4099: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 moko 4100: /* end confdefs.h. */
4101:
4102: int
4103: main ()
4104: {
4105:
4106: ;
4107: return 0;
4108: }
4109: _ACEOF
1.22 ! moko 4110: if ac_fn_c_try_compile "$LINENO"; then :
1.10 moko 4111: ac_cv_prog_cc_g=yes
4112: fi
1.22 ! moko 4113: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4114: fi
! 4115: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4116: fi
! 4117: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4118: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 misha 4119: fi
1.22 ! moko 4120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
! 4121: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 misha 4122: if test "$ac_test_CFLAGS" = set; then
4123: CFLAGS=$ac_save_CFLAGS
4124: elif test $ac_cv_prog_cc_g = yes; then
4125: if test "$GCC" = yes; then
4126: CFLAGS="-g -O2"
4127: else
4128: CFLAGS="-g"
4129: fi
4130: else
4131: if test "$GCC" = yes; then
4132: CFLAGS="-O2"
4133: else
4134: CFLAGS=
4135: fi
4136: fi
1.22 ! moko 4137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
! 4138: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
! 4139: if ${ac_cv_prog_cc_c89+:} false; then :
! 4140: $as_echo_n "(cached) " >&6
1.1 misha 4141: else
1.22 ! moko 4142: ac_cv_prog_cc_c89=no
1.1 misha 4143: ac_save_CC=$CC
1.22 ! moko 4144: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 4145: /* end confdefs.h. */
4146: #include <stdarg.h>
4147: #include <stdio.h>
4148: #include <sys/types.h>
4149: #include <sys/stat.h>
4150: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4151: struct buf { int x; };
4152: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4153: static char *e (p, i)
4154: char **p;
4155: int i;
4156: {
4157: return p[i];
4158: }
4159: static char *f (char * (*g) (char **, int), char **p, ...)
4160: {
4161: char *s;
4162: va_list v;
4163: va_start (v,p);
4164: s = g (p, va_arg (v,int));
4165: va_end (v);
4166: return s;
4167: }
4168:
4169: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4170: function prototypes and stuff, but not '\xHH' hex character constants.
4171: These don't provoke an error unfortunately, instead are silently treated
1.22 ! moko 4172: as 'x'. The following induces an error, until -std is added to get
1.1 misha 4173: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4174: array size at least. It's necessary to write '\x00'==0 to get something
1.22 ! moko 4175: that's true only with -std. */
1.1 misha 4176: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4177:
1.22 ! moko 4178: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 4179: inside strings and character constants. */
! 4180: #define FOO(x) 'x'
! 4181: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
! 4182:
1.1 misha 4183: int test (int i, double x);
4184: struct s1 {int (*f) (int a);};
4185: struct s2 {int (*f) (double a);};
4186: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4187: int argc;
4188: char **argv;
4189: int
4190: main ()
4191: {
4192: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4193: ;
4194: return 0;
4195: }
4196: _ACEOF
1.22 ! moko 4197: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
! 4198: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 misha 4199: do
4200: CC="$ac_save_CC $ac_arg"
1.22 ! moko 4201: if ac_fn_c_try_compile "$LINENO"; then :
! 4202: ac_cv_prog_cc_c89=$ac_arg
1.1 misha 4203: fi
1.22 ! moko 4204: rm -f core conftest.err conftest.$ac_objext
! 4205: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1 misha 4206: done
1.22 ! moko 4207: rm -f conftest.$ac_ext
1.1 misha 4208: CC=$ac_save_CC
4209:
4210: fi
1.22 ! moko 4211: # AC_CACHE_VAL
! 4212: case "x$ac_cv_prog_cc_c89" in
! 4213: x)
! 4214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 4215: $as_echo "none needed" >&6; } ;;
! 4216: xno)
! 4217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 4218: $as_echo "unsupported" >&6; } ;;
1.1 misha 4219: *)
1.22 ! moko 4220: CC="$CC $ac_cv_prog_cc_c89"
! 4221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
! 4222: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1 misha 4223: esac
1.22 ! moko 4224: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.1 misha 4225:
4226: fi
4227:
4228: ac_ext=c
4229: ac_cpp='$CPP $CPPFLAGS'
4230: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233:
4234: depcc="$CC" am_compiler_list=
4235:
1.22 ! moko 4236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 4237: $as_echo_n "checking dependency style of $depcc... " >&6; }
! 4238: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
! 4239: $as_echo_n "(cached) " >&6
1.1 misha 4240: else
4241: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4242: # We make a subdir and do the tests there. Otherwise we can end up
4243: # making bogus files that we don't know about and never remove. For
4244: # instance it was reported that on HP-UX the gcc test will end up
4245: # making a dummy file named `D' -- because `-MD' means `put the output
4246: # in D'.
4247: mkdir conftest.dir
4248: # Copy depcomp to subdir because otherwise we won't find it if we're
4249: # using a relative directory.
4250: cp "$am_depcomp" conftest.dir
4251: cd conftest.dir
4252: # We will build objects and dependencies in a subdirectory because
4253: # it helps to detect inapplicable dependency modes. For instance
4254: # both Tru64's cc and ICC support -MD to output dependencies as a
4255: # side effect of compilation, but ICC will put the dependencies in
4256: # the current directory while Tru64 will put them in the object
4257: # directory.
4258: mkdir sub
4259:
4260: am_cv_CC_dependencies_compiler_type=none
4261: if test "$am_compiler_list" = ""; then
4262: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4263: fi
1.22 ! moko 4264: am__universal=false
! 4265: case " $depcc " in #(
! 4266: *\ -arch\ *\ -arch\ *) am__universal=true ;;
! 4267: esac
! 4268:
1.1 misha 4269: for depmode in $am_compiler_list; do
4270: # Setup a source with many dependencies, because some compilers
4271: # like to wrap large dependency lists on column 80 (with \), and
4272: # we should not choose a depcomp mode which is confused by this.
4273: #
4274: # We need to recreate these files for each test, as the compiler may
4275: # overwrite some of them when testing with obscure command lines.
4276: # This happens at least with the AIX C compiler.
4277: : > sub/conftest.c
4278: for i in 1 2 3 4 5 6; do
4279: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4280: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4281: # Solaris 8's {/usr,}/bin/sh.
4282: touch sub/conftst$i.h
4283: done
4284: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4285:
1.22 ! moko 4286: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 4287: # mode. It turns out that the SunPro C++ compiler does not properly
! 4288: # handle `-M -o', and we need to detect this. Also, some Intel
! 4289: # versions had trouble with output in subdirs
! 4290: am__obj=sub/conftest.${OBJEXT-o}
! 4291: am__minus_obj="-o $am__obj"
1.1 misha 4292: case $depmode in
1.22 ! moko 4293: gcc)
! 4294: # This depmode causes a compiler race in universal mode.
! 4295: test "$am__universal" = false || continue
! 4296: ;;
1.1 misha 4297: nosideeffect)
4298: # after this tag, mechanisms are not by side-effect, so they'll
4299: # only be used when explicitly requested
4300: if test "x$enable_dependency_tracking" = xyes; then
4301: continue
4302: else
4303: break
4304: fi
4305: ;;
1.22 ! moko 4306: msvisualcpp | msvcmsys)
! 4307: # This compiler won't grok `-c -o', but also, the minuso test has
! 4308: # not run yet. These depmodes are late enough in the game, and
! 4309: # so weak that their functioning should not be impacted.
! 4310: am__obj=conftest.${OBJEXT-o}
! 4311: am__minus_obj=
! 4312: ;;
1.1 misha 4313: none) break ;;
4314: esac
4315: if depmode=$depmode \
1.22 ! moko 4316: source=sub/conftest.c object=$am__obj \
1.1 misha 4317: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.22 ! moko 4318: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.1 misha 4319: >/dev/null 2>conftest.err &&
1.22 ! moko 4320: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.1 misha 4321: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.22 ! moko 4322: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.1 misha 4323: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4324: # icc doesn't choke on unknown options, it will just issue warnings
4325: # or remarks (even with -Werror). So we grep stderr for any message
4326: # that says an option was ignored or not supported.
4327: # When given -MP, icc 7.0 and 7.1 complain thusly:
4328: # icc: Command line warning: ignoring option '-M'; no argument required
4329: # The diagnosis changed in icc 8.0:
4330: # icc: Command line remark: option '-MP' not supported
4331: if (grep 'ignoring option' conftest.err ||
4332: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4333: am_cv_CC_dependencies_compiler_type=$depmode
4334: break
4335: fi
4336: fi
4337: done
4338:
4339: cd ..
4340: rm -rf conftest.dir
4341: else
4342: am_cv_CC_dependencies_compiler_type=none
4343: fi
4344:
4345: fi
1.22 ! moko 4346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
! 4347: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.1 misha 4348: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4349:
1.22 ! moko 4350: if
1.1 misha 4351: test "x$enable_dependency_tracking" != xno \
4352: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4353: am__fastdepCC_TRUE=
4354: am__fastdepCC_FALSE='#'
4355: else
4356: am__fastdepCC_TRUE='#'
4357: am__fastdepCC_FALSE=
4358: fi
4359:
4360:
4361:
1.8 moko 4362:
1.13 moko 4363:
4364:
4365:
4366:
4367:
4368:
1.8 moko 4369: case `pwd` in
4370: *\ * | *\ *)
1.22 ! moko 4371: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
! 4372: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.8 moko 4373: esac
4374:
4375:
4376:
4377: macro_version='2.4.2'
4378: macro_revision='1.3337'
4379:
4380:
4381:
4382:
4383:
4384:
4385:
1.1 misha 4386:
4387:
4388:
4389:
4390:
4391:
1.8 moko 4392: ltmain="$ac_aux_dir/ltmain.sh"
1.1 misha 4393:
4394: # Make sure we can run config.sub.
1.22 ! moko 4395: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
! 4396: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.1 misha 4397:
1.22 ! moko 4398: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
! 4399: $as_echo_n "checking build system type... " >&6; }
! 4400: if ${ac_cv_build+:} false; then :
! 4401: $as_echo_n "(cached) " >&6
! 4402: else
! 4403: ac_build_alias=$build_alias
! 4404: test "x$ac_build_alias" = x &&
! 4405: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
! 4406: test "x$ac_build_alias" = x &&
! 4407: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
! 4408: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
! 4409: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
! 4410:
! 4411: fi
! 4412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
! 4413: $as_echo "$ac_cv_build" >&6; }
! 4414: case $ac_cv_build in
! 4415: *-*-*) ;;
! 4416: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
! 4417: esac
! 4418: build=$ac_cv_build
! 4419: ac_save_IFS=$IFS; IFS='-'
! 4420: set x $ac_cv_build
! 4421: shift
! 4422: build_cpu=$1
! 4423: build_vendor=$2
! 4424: shift; shift
! 4425: # Remember, the first character of IFS is used to create $*,
! 4426: # except with old shells:
! 4427: build_os=$*
! 4428: IFS=$ac_save_IFS
! 4429: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
! 4430:
! 4431:
! 4432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
! 4433: $as_echo_n "checking host system type... " >&6; }
! 4434: if ${ac_cv_host+:} false; then :
! 4435: $as_echo_n "(cached) " >&6
! 4436: else
! 4437: if test "x$host_alias" = x; then
! 4438: ac_cv_host=$ac_cv_build
! 4439: else
! 4440: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
! 4441: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.11 moko 4442: fi
1.1 misha 4443:
4444: fi
1.22 ! moko 4445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
! 4446: $as_echo "$ac_cv_host" >&6; }
! 4447: case $ac_cv_host in
! 4448: *-*-*) ;;
! 4449: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
! 4450: esac
1.1 misha 4451: host=$ac_cv_host
1.22 ! moko 4452: ac_save_IFS=$IFS; IFS='-'
! 4453: set x $ac_cv_host
! 4454: shift
! 4455: host_cpu=$1
! 4456: host_vendor=$2
! 4457: shift; shift
! 4458: # Remember, the first character of IFS is used to create $*,
! 4459: # except with old shells:
! 4460: host_os=$*
! 4461: IFS=$ac_save_IFS
! 4462: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1 misha 4463:
4464:
1.8 moko 4465: # Backslashify metacharacters that are still active within
4466: # double-quoted strings.
4467: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4468:
4469: # Same as above, but do not quote variable references.
4470: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4471:
4472: # Sed substitution to delay expansion of an escaped shell variable in a
4473: # double_quote_subst'ed string.
4474: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4475:
4476: # Sed substitution to delay expansion of an escaped single quote.
4477: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.1 misha 4478:
1.8 moko 4479: # Sed substitution to avoid accidental globbing in evaled expressions
4480: no_glob_subst='s/\*/\\\*/g'
1.1 misha 4481:
1.8 moko 4482: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4483: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4484: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4485:
1.22 ! moko 4486: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
! 4487: $as_echo_n "checking how to print strings... " >&6; }
1.8 moko 4488: # Test print first, because it will be a builtin if present.
4489: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4490: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4491: ECHO='print -r --'
4492: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4493: ECHO='printf %s\n'
1.1 misha 4494: else
1.8 moko 4495: # Use this function as a fallback that always works.
4496: func_fallback_echo ()
4497: {
4498: eval 'cat <<_LTECHO_EOF
4499: $1
4500: _LTECHO_EOF'
4501: }
4502: ECHO='func_fallback_echo'
1.1 misha 4503: fi
1.8 moko 4504:
4505: # func_echo_all arg...
4506: # Invoke $ECHO with all args, space-separated.
4507: func_echo_all ()
4508: {
4509: $ECHO ""
4510: }
4511:
4512: case "$ECHO" in
1.22 ! moko 4513: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
! 4514: $as_echo "printf" >&6; } ;;
! 4515: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
! 4516: $as_echo "print -r" >&6; } ;;
! 4517: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
! 4518: $as_echo "cat" >&6; } ;;
1.8 moko 4519: esac
4520:
4521:
4522:
4523:
4524:
4525:
4526:
4527:
4528:
4529:
4530:
4531:
4532:
4533:
1.22 ! moko 4534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
! 4535: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
! 4536: if ${ac_cv_path_SED+:} false; then :
! 4537: $as_echo_n "(cached) " >&6
! 4538: else
! 4539: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
! 4540: for ac_i in 1 2 3 4 5 6 7; do
! 4541: ac_script="$ac_script$as_nl$ac_script"
! 4542: done
! 4543: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
! 4544: { ac_script=; unset ac_script;}
! 4545: if test -z "$SED"; then
! 4546: ac_path_SED_found=false
! 4547: # Loop through the user's path and test for each of PROGNAME-LIST
! 4548: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8 moko 4549: for as_dir in $PATH
4550: do
4551: IFS=$as_save_IFS
4552: test -z "$as_dir" && as_dir=.
1.22 ! moko 4553: for ac_prog in sed gsed; do
1.8 moko 4554: for ac_exec_ext in '' $ac_executable_extensions; do
1.22 ! moko 4555: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
! 4556: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
! 4557: # Check for GNU ac_path_SED and select it if it is found.
! 4558: # Check for GNU $ac_path_SED
! 4559: case `"$ac_path_SED" --version 2>&1` in
! 4560: *GNU*)
! 4561: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
! 4562: *)
! 4563: ac_count=0
! 4564: $as_echo_n 0123456789 >"conftest.in"
! 4565: while :
! 4566: do
! 4567: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4568: mv "conftest.tmp" "conftest.in"
! 4569: cp "conftest.in" "conftest.nl"
! 4570: $as_echo '' >> "conftest.nl"
! 4571: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4572: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4573: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4574: if test $ac_count -gt ${ac_path_SED_max-0}; then
! 4575: # Best one so far, save it but keep looking for a better one
! 4576: ac_cv_path_SED="$ac_path_SED"
! 4577: ac_path_SED_max=$ac_count
! 4578: fi
! 4579: # 10*(2^10) chars as input seems more than enough
! 4580: test $ac_count -gt 10 && break
! 4581: done
! 4582: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4583: esac
! 4584:
! 4585: $ac_path_SED_found && break 3
1.8 moko 4586: done
4587: done
1.22 ! moko 4588: done
1.8 moko 4589: IFS=$as_save_IFS
1.22 ! moko 4590: if test -z "$ac_cv_path_SED"; then
! 4591: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
! 4592: fi
! 4593: else
! 4594: ac_cv_path_SED=$SED
! 4595: fi
1.11 moko 4596:
1.10 moko 4597: fi
1.22 ! moko 4598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
! 4599: $as_echo "$ac_cv_path_SED" >&6; }
! 4600: SED="$ac_cv_path_SED"
! 4601: rm -f conftest.sed
1.8 moko 4602:
4603: test -z "$SED" && SED=sed
4604: Xsed="$SED -e 1s/^X//"
4605:
4606:
4607:
4608:
4609:
4610:
4611:
4612:
4613:
4614:
4615:
1.22 ! moko 4616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
! 4617: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
! 4618: if ${ac_cv_path_GREP+:} false; then :
! 4619: $as_echo_n "(cached) " >&6
! 4620: else
! 4621: if test -z "$GREP"; then
! 4622: ac_path_GREP_found=false
! 4623: # Loop through the user's path and test for each of PROGNAME-LIST
! 4624: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4625: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4626: do
! 4627: IFS=$as_save_IFS
! 4628: test -z "$as_dir" && as_dir=.
! 4629: for ac_prog in grep ggrep; do
! 4630: for ac_exec_ext in '' $ac_executable_extensions; do
! 4631: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 4632: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
! 4633: # Check for GNU ac_path_GREP and select it if it is found.
! 4634: # Check for GNU $ac_path_GREP
! 4635: case `"$ac_path_GREP" --version 2>&1` in
! 4636: *GNU*)
! 4637: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
! 4638: *)
! 4639: ac_count=0
! 4640: $as_echo_n 0123456789 >"conftest.in"
! 4641: while :
! 4642: do
! 4643: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4644: mv "conftest.tmp" "conftest.in"
! 4645: cp "conftest.in" "conftest.nl"
! 4646: $as_echo 'GREP' >> "conftest.nl"
! 4647: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4648: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4649: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4650: if test $ac_count -gt ${ac_path_GREP_max-0}; then
! 4651: # Best one so far, save it but keep looking for a better one
! 4652: ac_cv_path_GREP="$ac_path_GREP"
! 4653: ac_path_GREP_max=$ac_count
1.8 moko 4654: fi
1.22 ! moko 4655: # 10*(2^10) chars as input seems more than enough
! 4656: test $ac_count -gt 10 && break
! 4657: done
! 4658: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4659: esac
! 4660:
! 4661: $ac_path_GREP_found && break 3
! 4662: done
! 4663: done
! 4664: done
! 4665: IFS=$as_save_IFS
! 4666: if test -z "$ac_cv_path_GREP"; then
! 4667: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 4668: fi
! 4669: else
! 4670: ac_cv_path_GREP=$GREP
! 4671: fi
! 4672:
1.8 moko 4673: fi
1.22 ! moko 4674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
! 4675: $as_echo "$ac_cv_path_GREP" >&6; }
! 4676: GREP="$ac_cv_path_GREP"
! 4677:
! 4678:
! 4679: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
! 4680: $as_echo_n "checking for egrep... " >&6; }
! 4681: if ${ac_cv_path_EGREP+:} false; then :
! 4682: $as_echo_n "(cached) " >&6
! 4683: else
! 4684: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
! 4685: then ac_cv_path_EGREP="$GREP -E"
! 4686: else
! 4687: if test -z "$EGREP"; then
! 4688: ac_path_EGREP_found=false
! 4689: # Loop through the user's path and test for each of PROGNAME-LIST
! 4690: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4691: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4692: do
! 4693: IFS=$as_save_IFS
! 4694: test -z "$as_dir" && as_dir=.
! 4695: for ac_prog in egrep; do
! 4696: for ac_exec_ext in '' $ac_executable_extensions; do
! 4697: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 4698: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
! 4699: # Check for GNU ac_path_EGREP and select it if it is found.
! 4700: # Check for GNU $ac_path_EGREP
! 4701: case `"$ac_path_EGREP" --version 2>&1` in
! 4702: *GNU*)
! 4703: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
! 4704: *)
! 4705: ac_count=0
! 4706: $as_echo_n 0123456789 >"conftest.in"
! 4707: while :
! 4708: do
! 4709: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4710: mv "conftest.tmp" "conftest.in"
! 4711: cp "conftest.in" "conftest.nl"
! 4712: $as_echo 'EGREP' >> "conftest.nl"
! 4713: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4714: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4715: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4716: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
! 4717: # Best one so far, save it but keep looking for a better one
! 4718: ac_cv_path_EGREP="$ac_path_EGREP"
! 4719: ac_path_EGREP_max=$ac_count
! 4720: fi
! 4721: # 10*(2^10) chars as input seems more than enough
! 4722: test $ac_count -gt 10 && break
! 4723: done
! 4724: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4725: esac
1.8 moko 4726:
1.22 ! moko 4727: $ac_path_EGREP_found && break 3
! 4728: done
! 4729: done
! 4730: done
! 4731: IFS=$as_save_IFS
! 4732: if test -z "$ac_cv_path_EGREP"; then
! 4733: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 4734: fi
! 4735: else
! 4736: ac_cv_path_EGREP=$EGREP
! 4737: fi
1.8 moko 4738:
1.22 ! moko 4739: fi
! 4740: fi
! 4741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
! 4742: $as_echo "$ac_cv_path_EGREP" >&6; }
! 4743: EGREP="$ac_cv_path_EGREP"
! 4744:
! 4745:
! 4746: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
! 4747: $as_echo_n "checking for fgrep... " >&6; }
! 4748: if ${ac_cv_path_FGREP+:} false; then :
! 4749: $as_echo_n "(cached) " >&6
! 4750: else
! 4751: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
! 4752: then ac_cv_path_FGREP="$GREP -F"
! 4753: else
! 4754: if test -z "$FGREP"; then
! 4755: ac_path_FGREP_found=false
! 4756: # Loop through the user's path and test for each of PROGNAME-LIST
! 4757: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4758: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4759: do
! 4760: IFS=$as_save_IFS
! 4761: test -z "$as_dir" && as_dir=.
! 4762: for ac_prog in fgrep; do
! 4763: for ac_exec_ext in '' $ac_executable_extensions; do
! 4764: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
! 4765: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
! 4766: # Check for GNU ac_path_FGREP and select it if it is found.
! 4767: # Check for GNU $ac_path_FGREP
! 4768: case `"$ac_path_FGREP" --version 2>&1` in
! 4769: *GNU*)
! 4770: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
! 4771: *)
! 4772: ac_count=0
! 4773: $as_echo_n 0123456789 >"conftest.in"
! 4774: while :
! 4775: do
! 4776: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4777: mv "conftest.tmp" "conftest.in"
! 4778: cp "conftest.in" "conftest.nl"
! 4779: $as_echo 'FGREP' >> "conftest.nl"
! 4780: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4781: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4782: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4783: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
! 4784: # Best one so far, save it but keep looking for a better one
! 4785: ac_cv_path_FGREP="$ac_path_FGREP"
! 4786: ac_path_FGREP_max=$ac_count
1.8 moko 4787: fi
1.22 ! moko 4788: # 10*(2^10) chars as input seems more than enough
! 4789: test $ac_count -gt 10 && break
! 4790: done
! 4791: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4792: esac
! 4793:
! 4794: $ac_path_FGREP_found && break 3
! 4795: done
! 4796: done
! 4797: done
! 4798: IFS=$as_save_IFS
! 4799: if test -z "$ac_cv_path_FGREP"; then
! 4800: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 4801: fi
! 4802: else
! 4803: ac_cv_path_FGREP=$FGREP
! 4804: fi
! 4805:
! 4806: fi
1.8 moko 4807: fi
1.22 ! moko 4808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
! 4809: $as_echo "$ac_cv_path_FGREP" >&6; }
! 4810: FGREP="$ac_cv_path_FGREP"
1.8 moko 4811:
4812:
4813: test -z "$GREP" && GREP=grep
4814:
4815:
4816:
4817:
4818:
4819:
4820:
4821:
4822:
4823:
4824:
4825:
4826:
4827:
4828:
4829:
4830:
4831:
4832:
1.22 ! moko 4833: # Check whether --with-gnu-ld was given.
! 4834: if test "${with_gnu_ld+set}" = set; then :
! 4835: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.8 moko 4836: else
4837: with_gnu_ld=no
1.22 ! moko 4838: fi
! 4839:
1.8 moko 4840: ac_prog=ld
4841: if test "$GCC" = yes; then
4842: # Check if gcc -print-prog-name=ld gives a path.
1.22 ! moko 4843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
! 4844: $as_echo_n "checking for ld used by $CC... " >&6; }
1.8 moko 4845: case $host in
4846: *-*-mingw*)
4847: # gcc leaves a trailing carriage return which upsets mingw
4848: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4849: *)
4850: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4851: esac
4852: case $ac_prog in
4853: # Accept absolute paths.
4854: [\\/]* | ?:[\\/]*)
4855: re_direlt='/[^/][^/]*/\.\./'
4856: # Canonicalize the pathname of ld
4857: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4858: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4859: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4860: done
4861: test -z "$LD" && LD="$ac_prog"
4862: ;;
4863: "")
4864: # If it fails, then pretend we aren't using GCC.
4865: ac_prog=ld
4866: ;;
4867: *)
4868: # If it is relative, then search for the first ld in PATH.
4869: with_gnu_ld=unknown
4870: ;;
4871: esac
4872: elif test "$with_gnu_ld" = yes; then
1.22 ! moko 4873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
! 4874: $as_echo_n "checking for GNU ld... " >&6; }
1.8 moko 4875: else
1.22 ! moko 4876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
! 4877: $as_echo_n "checking for non-GNU ld... " >&6; }
1.8 moko 4878: fi
1.22 ! moko 4879: if ${lt_cv_path_LD+:} false; then :
! 4880: $as_echo_n "(cached) " >&6
1.1 misha 4881: else
4882: if test -z "$LD"; then
1.8 moko 4883: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 misha 4884: for ac_dir in $PATH; do
1.8 moko 4885: IFS="$lt_save_ifs"
1.1 misha 4886: test -z "$ac_dir" && ac_dir=.
4887: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4888: lt_cv_path_LD="$ac_dir/$ac_prog"
4889: # Check to see if the program is GNU ld. I'd rather use --version,
1.8 moko 4890: # but apparently some variants of GNU ld only accept -v.
1.1 misha 4891: # Break only if it was the GNU/non-GNU ld that we prefer.
1.8 moko 4892: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4893: *GNU* | *'with BFD'*)
1.1 misha 4894: test "$with_gnu_ld" != no && break
1.8 moko 4895: ;;
4896: *)
1.1 misha 4897: test "$with_gnu_ld" != yes && break
1.8 moko 4898: ;;
4899: esac
1.1 misha 4900: fi
4901: done
1.8 moko 4902: IFS="$lt_save_ifs"
1.1 misha 4903: else
4904: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4905: fi
4906: fi
4907:
4908: LD="$lt_cv_path_LD"
4909: if test -n "$LD"; then
1.22 ! moko 4910: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
! 4911: $as_echo "$LD" >&6; }
1.1 misha 4912: else
1.22 ! moko 4913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4914: $as_echo "no" >&6; }
1.1 misha 4915: fi
1.22 ! moko 4916: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
! 4917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
! 4918: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
! 4919: if ${lt_cv_prog_gnu_ld+:} false; then :
! 4920: $as_echo_n "(cached) " >&6
1.1 misha 4921: else
1.8 moko 4922: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4923: case `$LD -v 2>&1 </dev/null` in
4924: *GNU* | *'with BFD'*)
1.1 misha 4925: lt_cv_prog_gnu_ld=yes
1.8 moko 4926: ;;
4927: *)
1.1 misha 4928: lt_cv_prog_gnu_ld=no
1.8 moko 4929: ;;
4930: esac
1.1 misha 4931: fi
1.22 ! moko 4932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
! 4933: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.1 misha 4934: with_gnu_ld=$lt_cv_prog_gnu_ld
4935:
4936:
4937:
1.8 moko 4938:
4939:
4940:
4941:
4942:
4943:
1.22 ! moko 4944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
! 4945: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
! 4946: if ${lt_cv_path_NM+:} false; then :
! 4947: $as_echo_n "(cached) " >&6
1.1 misha 4948: else
4949: if test -n "$NM"; then
4950: # Let the user override the test.
4951: lt_cv_path_NM="$NM"
4952: else
1.8 moko 4953: lt_nm_to_check="${ac_tool_prefix}nm"
4954: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4955: lt_nm_to_check="$lt_nm_to_check nm"
4956: fi
4957: for lt_tmp_nm in $lt_nm_to_check; do
4958: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4959: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4960: IFS="$lt_save_ifs"
4961: test -z "$ac_dir" && ac_dir=.
4962: tmp_nm="$ac_dir/$lt_tmp_nm"
4963: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4964: # Check to see if the nm accepts a BSD-compat flag.
4965: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4966: # nm: unknown option "B" ignored
4967: # Tru64's nm complains that /dev/null is an invalid object file
4968: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4969: */dev/null* | *'Invalid file or object type'*)
4970: lt_cv_path_NM="$tmp_nm -B"
4971: break
4972: ;;
4973: *)
4974: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4975: */dev/null*)
4976: lt_cv_path_NM="$tmp_nm -p"
4977: break
4978: ;;
4979: *)
4980: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4981: continue # so that we can try to find one that supports BSD flags
4982: ;;
4983: esac
4984: ;;
4985: esac
1.1 misha 4986: fi
1.8 moko 4987: done
4988: IFS="$lt_save_ifs"
1.1 misha 4989: done
1.8 moko 4990: : ${lt_cv_path_NM=no}
1.1 misha 4991: fi
4992: fi
1.22 ! moko 4993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
! 4994: $as_echo "$lt_cv_path_NM" >&6; }
1.8 moko 4995: if test "$lt_cv_path_NM" != "no"; then
4996: NM="$lt_cv_path_NM"
4997: else
4998: # Didn't find any BSD compatible name lister, look for dumpbin.
4999: if test -n "$DUMPBIN"; then :
5000: # Let the user override the test.
5001: else
5002: if test -n "$ac_tool_prefix"; then
5003: for ac_prog in dumpbin "link -dump"
5004: do
5005: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5006: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.22 ! moko 5007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5008: $as_echo_n "checking for $ac_word... " >&6; }
! 5009: if ${ac_cv_prog_DUMPBIN+:} false; then :
! 5010: $as_echo_n "(cached) " >&6
1.1 misha 5011: else
1.8 moko 5012: if test -n "$DUMPBIN"; then
5013: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5014: else
1.1 misha 5015: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016: for as_dir in $PATH
5017: do
5018: IFS=$as_save_IFS
5019: test -z "$as_dir" && as_dir=.
1.22 ! moko 5020: for ac_exec_ext in '' $ac_executable_extensions; do
! 5021: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5022: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.22 ! moko 5023: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5024: break 2
5025: fi
5026: done
1.22 ! moko 5027: done
! 5028: IFS=$as_save_IFS
1.11 moko 5029:
1.8 moko 5030: fi
5031: fi
5032: DUMPBIN=$ac_cv_prog_DUMPBIN
5033: if test -n "$DUMPBIN"; then
1.22 ! moko 5034: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
! 5035: $as_echo "$DUMPBIN" >&6; }
1.8 moko 5036: else
1.22 ! moko 5037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5038: $as_echo "no" >&6; }
1.8 moko 5039: fi
1.1 misha 5040:
1.22 ! moko 5041:
1.8 moko 5042: test -n "$DUMPBIN" && break
1.1 misha 5043: done
1.8 moko 5044: fi
5045: if test -z "$DUMPBIN"; then
5046: ac_ct_DUMPBIN=$DUMPBIN
5047: for ac_prog in dumpbin "link -dump"
5048: do
5049: # Extract the first word of "$ac_prog", so it can be a program name with args.
5050: set dummy $ac_prog; ac_word=$2
1.22 ! moko 5051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5052: $as_echo_n "checking for $ac_word... " >&6; }
! 5053: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
! 5054: $as_echo_n "(cached) " >&6
1.8 moko 5055: else
5056: if test -n "$ac_ct_DUMPBIN"; then
5057: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5058: else
5059: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060: for as_dir in $PATH
5061: do
5062: IFS=$as_save_IFS
5063: test -z "$as_dir" && as_dir=.
1.22 ! moko 5064: for ac_exec_ext in '' $ac_executable_extensions; do
! 5065: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5066: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.22 ! moko 5067: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5068: break 2
5069: fi
5070: done
1.22 ! moko 5071: done
! 5072: IFS=$as_save_IFS
1.1 misha 5073:
5074: fi
1.8 moko 5075: fi
5076: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5077: if test -n "$ac_ct_DUMPBIN"; then
1.22 ! moko 5078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
! 5079: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.1 misha 5080: else
1.22 ! moko 5081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5082: $as_echo "no" >&6; }
1.1 misha 5083: fi
5084:
1.22 ! moko 5085:
1.8 moko 5086: test -n "$ac_ct_DUMPBIN" && break
5087: done
5088:
1.22 ! moko 5089: if test "x$ac_ct_DUMPBIN" = x; then
! 5090: DUMPBIN=":"
! 5091: else
! 5092: case $cross_compiling:$ac_tool_warned in
! 5093: yes:)
! 5094: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5095: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5096: ac_tool_warned=yes ;;
! 5097: esac
! 5098: DUMPBIN=$ac_ct_DUMPBIN
! 5099: fi
1.1 misha 5100: fi
5101:
1.8 moko 5102: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5103: *COFF*)
5104: DUMPBIN="$DUMPBIN -symbols"
5105: ;;
5106: *)
5107: DUMPBIN=:
5108: ;;
5109: esac
5110: fi
5111:
5112: if test "$DUMPBIN" != ":"; then
5113: NM="$DUMPBIN"
5114: fi
5115: fi
5116: test -z "$NM" && NM=nm
5117:
5118:
5119:
5120:
5121:
5122:
1.22 ! moko 5123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
! 5124: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
! 5125: if ${lt_cv_nm_interface+:} false; then :
! 5126: $as_echo_n "(cached) " >&6
1.8 moko 5127: else
5128: lt_cv_nm_interface="BSD nm"
5129: echo "int some_variable = 0;" > conftest.$ac_ext
5130: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5131: (eval "$ac_compile" 2>conftest.err)
5132: cat conftest.err >&5
5133: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5134: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5135: cat conftest.err >&5
5136: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5137: cat conftest.out >&5
5138: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5139: lt_cv_nm_interface="MS dumpbin"
5140: fi
5141: rm -f conftest*
5142: fi
1.22 ! moko 5143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
! 5144: $as_echo "$lt_cv_nm_interface" >&6; }
1.8 moko 5145:
1.22 ! moko 5146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
! 5147: $as_echo_n "checking whether ln -s works... " >&6; }
1.8 moko 5148: LN_S=$as_ln_s
5149: if test "$LN_S" = "ln -s"; then
1.22 ! moko 5150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 5151: $as_echo "yes" >&6; }
1.8 moko 5152: else
1.22 ! moko 5153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
! 5154: $as_echo "no, using $LN_S" >&6; }
1.8 moko 5155: fi
5156:
5157: # find the maximum length of command line arguments
1.22 ! moko 5158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
! 5159: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
! 5160: if ${lt_cv_sys_max_cmd_len+:} false; then :
! 5161: $as_echo_n "(cached) " >&6
1.8 moko 5162: else
5163: i=0
5164: teststring="ABCD"
5165:
5166: case $build_os in
5167: msdosdjgpp*)
5168: # On DJGPP, this test can blow up pretty badly due to problems in libc
5169: # (any single argument exceeding 2000 bytes causes a buffer overrun
5170: # during glob expansion). Even if it were fixed, the result of this
5171: # check would be larger than it should be.
5172: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5173: ;;
5174:
5175: gnu*)
5176: # Under GNU Hurd, this test is not required because there is
5177: # no limit to the length of command line arguments.
5178: # Libtool will interpret -1 as no limit whatsoever
5179: lt_cv_sys_max_cmd_len=-1;
5180: ;;
5181:
5182: cygwin* | mingw* | cegcc*)
5183: # On Win9x/ME, this test blows up -- it succeeds, but takes
5184: # about 5 minutes as the teststring grows exponentially.
5185: # Worse, since 9x/ME are not pre-emptively multitasking,
5186: # you end up with a "frozen" computer, even though with patience
5187: # the test eventually succeeds (with a max line length of 256k).
5188: # Instead, let's just punt: use the minimum linelength reported by
5189: # all of the supported platforms: 8192 (on NT/2K/XP).
5190: lt_cv_sys_max_cmd_len=8192;
5191: ;;
5192:
5193: mint*)
5194: # On MiNT this can take a long time and run out of memory.
5195: lt_cv_sys_max_cmd_len=8192;
5196: ;;
5197:
5198: amigaos*)
5199: # On AmigaOS with pdksh, this test takes hours, literally.
5200: # So we just punt and use a minimum line length of 8192.
5201: lt_cv_sys_max_cmd_len=8192;
5202: ;;
5203:
5204: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5205: # This has been around since 386BSD, at least. Likely further.
5206: if test -x /sbin/sysctl; then
5207: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5208: elif test -x /usr/sbin/sysctl; then
5209: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5210: else
5211: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5212: fi
5213: # And add a safety zone
5214: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5215: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5216: ;;
5217:
5218: interix*)
5219: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5220: lt_cv_sys_max_cmd_len=196608
5221: ;;
5222:
5223: os2*)
5224: # The test takes a long time on OS/2.
5225: lt_cv_sys_max_cmd_len=8192
5226: ;;
5227:
5228: osf*)
5229: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5230: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5231: # nice to cause kernel panics so lets avoid the loop below.
5232: # First set a reasonable default.
5233: lt_cv_sys_max_cmd_len=16384
5234: #
5235: if test -x /sbin/sysconfig; then
5236: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5237: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5238: esac
5239: fi
5240: ;;
5241: sco3.2v5*)
5242: lt_cv_sys_max_cmd_len=102400
5243: ;;
5244: sysv5* | sco5v6* | sysv4.2uw2*)
5245: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5246: if test -n "$kargmax"; then
5247: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5248: else
5249: lt_cv_sys_max_cmd_len=32768
5250: fi
5251: ;;
5252: *)
5253: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5254: if test -n "$lt_cv_sys_max_cmd_len"; then
5255: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5256: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5257: else
5258: # Make teststring a little bigger before we do anything with it.
5259: # a 1K string should be a reasonable start.
5260: for i in 1 2 3 4 5 6 7 8 ; do
5261: teststring=$teststring$teststring
5262: done
5263: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5264: # If test is not a shell built-in, we'll probably end up computing a
5265: # maximum length that is only half of the actual maximum length, but
5266: # we can't tell.
5267: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5268: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5269: test $i != 17 # 1/2 MB should be enough
5270: do
5271: i=`expr $i + 1`
5272: teststring=$teststring$teststring
5273: done
5274: # Only check the string length outside the loop.
5275: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5276: teststring=
5277: # Add a significant safety factor because C++ compilers can tack on
5278: # massive amounts of additional arguments before passing them to the
5279: # linker. It appears as though 1/2 is a usable value.
5280: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5281: fi
5282: ;;
5283: esac
5284:
5285: fi
5286:
5287: if test -n $lt_cv_sys_max_cmd_len ; then
1.22 ! moko 5288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
! 5289: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.8 moko 5290: else
1.22 ! moko 5291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
! 5292: $as_echo "none" >&6; }
1.8 moko 5293: fi
5294: max_cmd_len=$lt_cv_sys_max_cmd_len
5295:
5296:
5297:
5298:
5299:
5300:
5301: : ${CP="cp -f"}
5302: : ${MV="mv -f"}
5303: : ${RM="rm -f"}
5304:
1.22 ! moko 5305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
! 5306: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.8 moko 5307: # Try some XSI features
5308: xsi_shell=no
5309: ( _lt_dummy="a/b/c"
5310: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5311: = c,a/b,b/c, \
5312: && eval 'test $(( 1 + 1 )) -eq 2 \
5313: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5314: && xsi_shell=yes
1.22 ! moko 5315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
! 5316: $as_echo "$xsi_shell" >&6; }
1.8 moko 5317:
5318:
1.22 ! moko 5319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
! 5320: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.8 moko 5321: lt_shell_append=no
5322: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5323: >/dev/null 2>&1 \
5324: && lt_shell_append=yes
1.22 ! moko 5325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
! 5326: $as_echo "$lt_shell_append" >&6; }
1.8 moko 5327:
5328:
5329: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5330: lt_unset=unset
5331: else
5332: lt_unset=false
5333: fi
5334:
5335:
5336:
5337:
5338:
5339: # test EBCDIC or ASCII
5340: case `echo X|tr X '\101'` in
5341: A) # ASCII based system
5342: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5343: lt_SP2NL='tr \040 \012'
5344: lt_NL2SP='tr \015\012 \040\040'
5345: ;;
5346: *) # EBCDIC based system
5347: lt_SP2NL='tr \100 \n'
5348: lt_NL2SP='tr \r\n \100\100'
5349: ;;
5350: esac
5351:
5352:
5353:
5354:
5355:
5356:
5357:
5358:
5359:
1.22 ! moko 5360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
! 5361: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
! 5362: if ${lt_cv_to_host_file_cmd+:} false; then :
! 5363: $as_echo_n "(cached) " >&6
1.8 moko 5364: else
5365: case $host in
5366: *-*-mingw* )
5367: case $build in
5368: *-*-mingw* ) # actually msys
5369: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5370: ;;
5371: *-*-cygwin* )
5372: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5373: ;;
5374: * ) # otherwise, assume *nix
5375: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5376: ;;
5377: esac
5378: ;;
5379: *-*-cygwin* )
5380: case $build in
5381: *-*-mingw* ) # actually msys
5382: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5383: ;;
5384: *-*-cygwin* )
5385: lt_cv_to_host_file_cmd=func_convert_file_noop
5386: ;;
5387: * ) # otherwise, assume *nix
5388: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5389: ;;
5390: esac
5391: ;;
5392: * ) # unhandled hosts (and "normal" native builds)
5393: lt_cv_to_host_file_cmd=func_convert_file_noop
5394: ;;
5395: esac
5396:
5397: fi
5398:
5399: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.22 ! moko 5400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
! 5401: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.8 moko 5402:
5403:
5404:
5405:
5406:
1.22 ! moko 5407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
! 5408: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
! 5409: if ${lt_cv_to_tool_file_cmd+:} false; then :
! 5410: $as_echo_n "(cached) " >&6
1.8 moko 5411: else
5412: #assume ordinary cross tools, or native build.
5413: lt_cv_to_tool_file_cmd=func_convert_file_noop
5414: case $host in
5415: *-*-mingw* )
5416: case $build in
5417: *-*-mingw* ) # actually msys
5418: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5419: ;;
5420: esac
5421: ;;
5422: esac
5423:
5424: fi
5425:
5426: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.22 ! moko 5427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
! 5428: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.8 moko 5429:
5430:
5431:
5432:
5433:
1.22 ! moko 5434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
! 5435: $as_echo_n "checking for $LD option to reload object files... " >&6; }
! 5436: if ${lt_cv_ld_reload_flag+:} false; then :
! 5437: $as_echo_n "(cached) " >&6
1.8 moko 5438: else
5439: lt_cv_ld_reload_flag='-r'
5440: fi
1.22 ! moko 5441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
! 5442: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.8 moko 5443: reload_flag=$lt_cv_ld_reload_flag
5444: case $reload_flag in
5445: "" | " "*) ;;
5446: *) reload_flag=" $reload_flag" ;;
5447: esac
5448: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5449: case $host_os in
5450: cygwin* | mingw* | pw32* | cegcc*)
5451: if test "$GCC" != yes; then
5452: reload_cmds=false
5453: fi
5454: ;;
5455: darwin*)
5456: if test "$GCC" = yes; then
5457: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5458: else
5459: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5460: fi
5461: ;;
5462: esac
5463:
5464:
5465:
5466:
5467:
5468:
5469:
5470:
5471:
5472: if test -n "$ac_tool_prefix"; then
5473: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5474: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.22 ! moko 5475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5476: $as_echo_n "checking for $ac_word... " >&6; }
! 5477: if ${ac_cv_prog_OBJDUMP+:} false; then :
! 5478: $as_echo_n "(cached) " >&6
1.8 moko 5479: else
5480: if test -n "$OBJDUMP"; then
5481: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5482: else
5483: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484: for as_dir in $PATH
5485: do
5486: IFS=$as_save_IFS
5487: test -z "$as_dir" && as_dir=.
1.22 ! moko 5488: for ac_exec_ext in '' $ac_executable_extensions; do
! 5489: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5490: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.22 ! moko 5491: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5492: break 2
5493: fi
5494: done
1.22 ! moko 5495: done
! 5496: IFS=$as_save_IFS
1.8 moko 5497:
5498: fi
5499: fi
5500: OBJDUMP=$ac_cv_prog_OBJDUMP
5501: if test -n "$OBJDUMP"; then
1.22 ! moko 5502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
! 5503: $as_echo "$OBJDUMP" >&6; }
1.8 moko 5504: else
1.22 ! moko 5505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5506: $as_echo "no" >&6; }
1.8 moko 5507: fi
5508:
1.22 ! moko 5509:
1.8 moko 5510: fi
5511: if test -z "$ac_cv_prog_OBJDUMP"; then
5512: ac_ct_OBJDUMP=$OBJDUMP
5513: # Extract the first word of "objdump", so it can be a program name with args.
5514: set dummy objdump; ac_word=$2
1.22 ! moko 5515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5516: $as_echo_n "checking for $ac_word... " >&6; }
! 5517: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
! 5518: $as_echo_n "(cached) " >&6
1.8 moko 5519: else
5520: if test -n "$ac_ct_OBJDUMP"; then
5521: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5522: else
5523: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524: for as_dir in $PATH
5525: do
5526: IFS=$as_save_IFS
5527: test -z "$as_dir" && as_dir=.
1.22 ! moko 5528: for ac_exec_ext in '' $ac_executable_extensions; do
! 5529: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5530: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.22 ! moko 5531: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5532: break 2
5533: fi
5534: done
1.22 ! moko 5535: done
! 5536: IFS=$as_save_IFS
1.8 moko 5537:
5538: fi
5539: fi
5540: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5541: if test -n "$ac_ct_OBJDUMP"; then
1.22 ! moko 5542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
! 5543: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.8 moko 5544: else
1.22 ! moko 5545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5546: $as_echo "no" >&6; }
1.8 moko 5547: fi
5548:
1.22 ! moko 5549: if test "x$ac_ct_OBJDUMP" = x; then
! 5550: OBJDUMP="false"
! 5551: else
! 5552: case $cross_compiling:$ac_tool_warned in
! 5553: yes:)
! 5554: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5555: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5556: ac_tool_warned=yes ;;
! 5557: esac
! 5558: OBJDUMP=$ac_ct_OBJDUMP
! 5559: fi
1.8 moko 5560: else
5561: OBJDUMP="$ac_cv_prog_OBJDUMP"
5562: fi
5563:
5564: test -z "$OBJDUMP" && OBJDUMP=objdump
5565:
5566:
5567:
5568:
5569:
5570:
1.22 ! moko 5571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
! 5572: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
! 5573: if ${lt_cv_deplibs_check_method+:} false; then :
! 5574: $as_echo_n "(cached) " >&6
1.1 misha 5575: else
5576: lt_cv_file_magic_cmd='$MAGIC_CMD'
5577: lt_cv_file_magic_test_file=
5578: lt_cv_deplibs_check_method='unknown'
5579: # Need to set the preceding variable on all platforms that support
5580: # interlibrary dependencies.
5581: # 'none' -- dependencies not supported.
5582: # `unknown' -- same as none, but documents that we really don't know.
5583: # 'pass_all' -- all dependencies passed with no checks.
5584: # 'test_compile' -- check by making test program.
5585: # 'file_magic [[regex]]' -- check by looking for files in library path
1.8 moko 5586: # which responds to the $file_magic_cmd with a given extended regex.
1.1 misha 5587: # If you have `file' or equivalent on your system and you're not sure
5588: # whether `pass_all' will *always* work, you probably want this one.
5589:
5590: case $host_os in
1.8 moko 5591: aix[4-9]*)
1.1 misha 5592: lt_cv_deplibs_check_method=pass_all
5593: ;;
5594:
5595: beos*)
5596: lt_cv_deplibs_check_method=pass_all
5597: ;;
5598:
1.8 moko 5599: bsdi[45]*)
1.1 misha 5600: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5601: lt_cv_file_magic_cmd='/usr/bin/file -L'
5602: lt_cv_file_magic_test_file=/shlib/libc.so
5603: ;;
5604:
1.8 moko 5605: cygwin*)
5606: # func_win32_libid is a shell function defined in ltmain.sh
5607: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5608: lt_cv_file_magic_cmd='func_win32_libid'
5609: ;;
5610:
5611: mingw* | pw32*)
5612: # Base MSYS/MinGW do not provide the 'file' command needed by
5613: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5614: # unless we find 'file', for example because we are cross-compiling.
5615: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5616: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5617: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5618: lt_cv_file_magic_cmd='func_win32_libid'
5619: else
5620: # Keep this pattern in sync with the one in func_win32_libid.
5621: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5622: lt_cv_file_magic_cmd='$OBJDUMP -f'
5623: fi
5624: ;;
5625:
5626: cegcc*)
5627: # use the weaker test based on 'objdump'. See mingw*.
5628: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.1 misha 5629: lt_cv_file_magic_cmd='$OBJDUMP -f'
5630: ;;
5631:
5632: darwin* | rhapsody*)
1.8 moko 5633: lt_cv_deplibs_check_method=pass_all
1.1 misha 5634: ;;
5635:
1.8 moko 5636: freebsd* | dragonfly*)
5637: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.1 misha 5638: case $host_cpu in
5639: i*86 )
5640: # Not sure whether the presence of OpenBSD here was a mistake.
5641: # Let's accept both of them until this is cleared up.
1.8 moko 5642: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1 misha 5643: lt_cv_file_magic_cmd=/usr/bin/file
5644: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5645: ;;
5646: esac
5647: else
5648: lt_cv_deplibs_check_method=pass_all
5649: fi
5650: ;;
5651:
5652: gnu*)
5653: lt_cv_deplibs_check_method=pass_all
5654: ;;
5655:
1.8 moko 5656: haiku*)
5657: lt_cv_deplibs_check_method=pass_all
1.1 misha 5658: ;;
5659:
1.8 moko 5660: hpux10.20* | hpux11*)
5661: lt_cv_file_magic_cmd=/usr/bin/file
5662: case $host_cpu in
5663: ia64*)
5664: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5665: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5666: ;;
5667: hppa*64*)
5668: 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]'
5669: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.1 misha 5670: ;;
5671: *)
1.8 moko 5672: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5673: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.1 misha 5674: ;;
5675: esac
1.8 moko 5676: ;;
5677:
5678: interix[3-9]*)
5679: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5680: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5681: ;;
5682:
5683: irix5* | irix6* | nonstopux*)
5684: case $LD in
5685: *-32|*"-32 ") libmagic=32-bit;;
5686: *-n32|*"-n32 ") libmagic=N32;;
5687: *-64|*"-64 ") libmagic=64-bit;;
5688: *) libmagic=never-match;;
5689: esac
1.1 misha 5690: lt_cv_deplibs_check_method=pass_all
5691: ;;
5692:
1.8 moko 5693: # This must be glibc/ELF.
5694: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5695: lt_cv_deplibs_check_method=pass_all
1.1 misha 5696: ;;
5697:
5698: netbsd*)
1.8 moko 5699: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5700: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 5701: else
1.8 moko 5702: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.1 misha 5703: fi
5704: ;;
5705:
5706: newos6*)
5707: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5708: lt_cv_file_magic_cmd=/usr/bin/file
5709: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5710: ;;
5711:
1.8 moko 5712: *nto* | *qnx*)
5713: lt_cv_deplibs_check_method=pass_all
5714: ;;
5715:
1.1 misha 5716: openbsd*)
1.8 moko 5717: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5718: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.1 misha 5719: else
1.8 moko 5720: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 5721: fi
5722: ;;
5723:
5724: osf3* | osf4* | osf5*)
5725: lt_cv_deplibs_check_method=pass_all
5726: ;;
5727:
1.8 moko 5728: rdos*)
1.1 misha 5729: lt_cv_deplibs_check_method=pass_all
5730: ;;
5731:
5732: solaris*)
5733: lt_cv_deplibs_check_method=pass_all
5734: ;;
5735:
1.8 moko 5736: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1 misha 5737: lt_cv_deplibs_check_method=pass_all
5738: ;;
5739:
1.8 moko 5740: sysv4 | sysv4.3*)
1.1 misha 5741: case $host_vendor in
5742: motorola)
5743: 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]'
5744: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5745: ;;
5746: ncr)
5747: lt_cv_deplibs_check_method=pass_all
5748: ;;
5749: sequent)
5750: lt_cv_file_magic_cmd='/bin/file'
5751: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5752: ;;
5753: sni)
5754: lt_cv_file_magic_cmd='/bin/file'
5755: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5756: lt_cv_file_magic_test_file=/lib/libc.so
5757: ;;
5758: siemens)
5759: lt_cv_deplibs_check_method=pass_all
5760: ;;
1.8 moko 5761: pc)
5762: lt_cv_deplibs_check_method=pass_all
5763: ;;
1.1 misha 5764: esac
5765: ;;
1.8 moko 5766:
5767: tpf*)
5768: lt_cv_deplibs_check_method=pass_all
5769: ;;
1.1 misha 5770: esac
5771:
5772: fi
1.22 ! moko 5773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
! 5774: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.8 moko 5775:
5776: file_magic_glob=
5777: want_nocaseglob=no
5778: if test "$build" = "$host"; then
5779: case $host_os in
5780: mingw* | pw32*)
5781: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5782: want_nocaseglob=yes
5783: else
5784: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5785: fi
5786: ;;
5787: esac
5788: fi
5789:
1.1 misha 5790: file_magic_cmd=$lt_cv_file_magic_cmd
5791: deplibs_check_method=$lt_cv_deplibs_check_method
1.8 moko 5792: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5793:
5794:
1.1 misha 5795:
5796:
5797:
5798:
5799:
5800:
5801:
5802:
1.8 moko 5803:
5804:
5805:
5806:
5807:
5808:
5809:
5810:
5811:
5812:
5813:
5814:
5815: if test -n "$ac_tool_prefix"; then
5816: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5817: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.22 ! moko 5818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5819: $as_echo_n "checking for $ac_word... " >&6; }
! 5820: if ${ac_cv_prog_DLLTOOL+:} false; then :
! 5821: $as_echo_n "(cached) " >&6
1.8 moko 5822: else
5823: if test -n "$DLLTOOL"; then
5824: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5825: else
5826: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827: for as_dir in $PATH
5828: do
5829: IFS=$as_save_IFS
5830: test -z "$as_dir" && as_dir=.
1.22 ! moko 5831: for ac_exec_ext in '' $ac_executable_extensions; do
! 5832: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5833: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.22 ! moko 5834: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5835: break 2
5836: fi
5837: done
1.22 ! moko 5838: done
! 5839: IFS=$as_save_IFS
1.8 moko 5840:
5841: fi
5842: fi
5843: DLLTOOL=$ac_cv_prog_DLLTOOL
5844: if test -n "$DLLTOOL"; then
1.22 ! moko 5845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
! 5846: $as_echo "$DLLTOOL" >&6; }
1.8 moko 5847: else
1.22 ! moko 5848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5849: $as_echo "no" >&6; }
1.8 moko 5850: fi
5851:
1.22 ! moko 5852:
1.8 moko 5853: fi
5854: if test -z "$ac_cv_prog_DLLTOOL"; then
5855: ac_ct_DLLTOOL=$DLLTOOL
5856: # Extract the first word of "dlltool", so it can be a program name with args.
5857: set dummy dlltool; ac_word=$2
1.22 ! moko 5858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5859: $as_echo_n "checking for $ac_word... " >&6; }
! 5860: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
! 5861: $as_echo_n "(cached) " >&6
1.1 misha 5862: else
1.8 moko 5863: if test -n "$ac_ct_DLLTOOL"; then
5864: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5865: else
5866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867: for as_dir in $PATH
5868: do
5869: IFS=$as_save_IFS
5870: test -z "$as_dir" && as_dir=.
1.22 ! moko 5871: for ac_exec_ext in '' $ac_executable_extensions; do
! 5872: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5873: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.22 ! moko 5874: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5875: break 2
5876: fi
5877: done
1.22 ! moko 5878: done
! 5879: IFS=$as_save_IFS
1.8 moko 5880:
5881: fi
5882: fi
5883: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5884: if test -n "$ac_ct_DLLTOOL"; then
1.22 ! moko 5885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
! 5886: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.8 moko 5887: else
1.22 ! moko 5888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5889: $as_echo "no" >&6; }
1.8 moko 5890: fi
5891:
1.22 ! moko 5892: if test "x$ac_ct_DLLTOOL" = x; then
! 5893: DLLTOOL="false"
! 5894: else
! 5895: case $cross_compiling:$ac_tool_warned in
! 5896: yes:)
! 5897: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5898: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5899: ac_tool_warned=yes ;;
! 5900: esac
! 5901: DLLTOOL=$ac_ct_DLLTOOL
! 5902: fi
1.8 moko 5903: else
5904: DLLTOOL="$ac_cv_prog_DLLTOOL"
5905: fi
5906:
5907: test -z "$DLLTOOL" && DLLTOOL=dlltool
5908:
5909:
5910:
5911:
1.1 misha 5912:
5913:
5914:
1.22 ! moko 5915: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
! 5916: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
! 5917: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
! 5918: $as_echo_n "(cached) " >&6
1.8 moko 5919: else
5920: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.1 misha 5921:
5922: case $host_os in
1.8 moko 5923: cygwin* | mingw* | pw32* | cegcc*)
5924: # two different shell functions defined in ltmain.sh
5925: # decide which to use based on capabilities of $DLLTOOL
5926: case `$DLLTOOL --help 2>&1` in
5927: *--identify-strict*)
5928: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5929: ;;
5930: *)
5931: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5932: ;;
5933: esac
1.1 misha 5934: ;;
1.8 moko 5935: *)
5936: # fallback: assume linklib IS sharedlib
5937: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.1 misha 5938: ;;
5939: esac
5940:
5941: fi
1.22 ! moko 5942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
! 5943: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.8 moko 5944: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5945: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.1 misha 5946:
5947:
5948:
5949:
5950:
5951:
5952:
5953:
1.8 moko 5954: if test -n "$ac_tool_prefix"; then
5955: for ac_prog in ar
5956: do
5957: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5958: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.22 ! moko 5959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5960: $as_echo_n "checking for $ac_word... " >&6; }
! 5961: if ${ac_cv_prog_AR+:} false; then :
! 5962: $as_echo_n "(cached) " >&6
1.8 moko 5963: else
5964: if test -n "$AR"; then
5965: ac_cv_prog_AR="$AR" # Let the user override the test.
5966: else
5967: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968: for as_dir in $PATH
5969: do
5970: IFS=$as_save_IFS
5971: test -z "$as_dir" && as_dir=.
1.22 ! moko 5972: for ac_exec_ext in '' $ac_executable_extensions; do
! 5973: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5974: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.22 ! moko 5975: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5976: break 2
1.1 misha 5977: fi
1.8 moko 5978: done
1.22 ! moko 5979: done
! 5980: IFS=$as_save_IFS
1.1 misha 5981:
5982: fi
5983: fi
1.8 moko 5984: AR=$ac_cv_prog_AR
5985: if test -n "$AR"; then
1.22 ! moko 5986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
! 5987: $as_echo "$AR" >&6; }
1.1 misha 5988: else
1.22 ! moko 5989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5990: $as_echo "no" >&6; }
1.1 misha 5991: fi
5992:
1.22 ! moko 5993:
1.8 moko 5994: test -n "$AR" && break
5995: done
1.1 misha 5996: fi
1.8 moko 5997: if test -z "$AR"; then
5998: ac_ct_AR=$AR
5999: for ac_prog in ar
6000: do
6001: # Extract the first word of "$ac_prog", so it can be a program name with args.
6002: set dummy $ac_prog; ac_word=$2
1.22 ! moko 6003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6004: $as_echo_n "checking for $ac_word... " >&6; }
! 6005: if ${ac_cv_prog_ac_ct_AR+:} false; then :
! 6006: $as_echo_n "(cached) " >&6
1.1 misha 6007: else
1.8 moko 6008: if test -n "$ac_ct_AR"; then
6009: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6010: else
6011: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012: for as_dir in $PATH
1.1 misha 6013: do
1.8 moko 6014: IFS=$as_save_IFS
6015: test -z "$as_dir" && as_dir=.
1.22 ! moko 6016: for ac_exec_ext in '' $ac_executable_extensions; do
! 6017: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6018: ac_cv_prog_ac_ct_AR="$ac_prog"
1.22 ! moko 6019: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6020: break 2
1.1 misha 6021: fi
1.8 moko 6022: done
1.22 ! moko 6023: done
! 6024: IFS=$as_save_IFS
1.1 misha 6025:
6026: fi
6027: fi
1.8 moko 6028: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6029: if test -n "$ac_ct_AR"; then
1.22 ! moko 6030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
! 6031: $as_echo "$ac_ct_AR" >&6; }
1.1 misha 6032: else
1.22 ! moko 6033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6034: $as_echo "no" >&6; }
1.1 misha 6035: fi
6036:
1.22 ! moko 6037:
1.8 moko 6038: test -n "$ac_ct_AR" && break
1.1 misha 6039: done
1.8 moko 6040:
1.22 ! moko 6041: if test "x$ac_ct_AR" = x; then
! 6042: AR="false"
! 6043: else
! 6044: case $cross_compiling:$ac_tool_warned in
! 6045: yes:)
! 6046: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6047: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6048: ac_tool_warned=yes ;;
! 6049: esac
! 6050: AR=$ac_ct_AR
! 6051: fi
1.1 misha 6052: fi
6053:
1.8 moko 6054: : ${AR=ar}
6055: : ${AR_FLAGS=cru}
6056:
1.1 misha 6057:
6058:
6059:
6060:
6061:
6062:
6063:
6064:
6065:
6066:
1.22 ! moko 6067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
! 6068: $as_echo_n "checking for archiver @FILE support... " >&6; }
! 6069: if ${lt_cv_ar_at_file+:} false; then :
! 6070: $as_echo_n "(cached) " >&6
1.1 misha 6071: else
1.8 moko 6072: lt_cv_ar_at_file=no
1.22 ! moko 6073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 6074: /* end confdefs.h. */
6075:
6076: int
6077: main ()
6078: {
6079:
6080: ;
6081: return 0;
6082: }
6083: _ACEOF
1.22 ! moko 6084: if ac_fn_c_try_compile "$LINENO"; then :
1.8 moko 6085: echo conftest.$ac_objext > conftest.lst
6086: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.22 ! moko 6087: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.8 moko 6088: (eval $lt_ar_try) 2>&5
6089: ac_status=$?
1.22 ! moko 6090: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6091: test $ac_status = 0; }
1.8 moko 6092: if test "$ac_status" -eq 0; then
6093: # Ensure the archiver fails upon bogus file names.
6094: rm -f conftest.$ac_objext libconftest.a
1.22 ! moko 6095: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.8 moko 6096: (eval $lt_ar_try) 2>&5
6097: ac_status=$?
1.22 ! moko 6098: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6099: test $ac_status = 0; }
1.8 moko 6100: if test "$ac_status" -ne 0; then
6101: lt_cv_ar_at_file=@
6102: fi
6103: fi
6104: rm -f conftest.* libconftest.a
6105:
1.1 misha 6106: fi
1.22 ! moko 6107: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 6108:
1.8 moko 6109: fi
1.22 ! moko 6110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
! 6111: $as_echo "$lt_cv_ar_at_file" >&6; }
1.8 moko 6112:
6113: if test "x$lt_cv_ar_at_file" = xno; then
6114: archiver_list_spec=
1.1 misha 6115: else
1.8 moko 6116: archiver_list_spec=$lt_cv_ar_at_file
1.1 misha 6117: fi
6118:
6119:
6120:
1.8 moko 6121:
6122:
6123:
6124:
6125: if test -n "$ac_tool_prefix"; then
6126: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6127: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.22 ! moko 6128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6129: $as_echo_n "checking for $ac_word... " >&6; }
! 6130: if ${ac_cv_prog_STRIP+:} false; then :
! 6131: $as_echo_n "(cached) " >&6
1.8 moko 6132: else
6133: if test -n "$STRIP"; then
6134: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6135: else
6136: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137: for as_dir in $PATH
6138: do
6139: IFS=$as_save_IFS
6140: test -z "$as_dir" && as_dir=.
1.22 ! moko 6141: for ac_exec_ext in '' $ac_executable_extensions; do
! 6142: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6143: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.22 ! moko 6144: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6145: break 2
6146: fi
6147: done
1.22 ! moko 6148: done
! 6149: IFS=$as_save_IFS
1.8 moko 6150:
6151: fi
6152: fi
6153: STRIP=$ac_cv_prog_STRIP
6154: if test -n "$STRIP"; then
1.22 ! moko 6155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 6156: $as_echo "$STRIP" >&6; }
1.1 misha 6157: else
1.22 ! moko 6158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6159: $as_echo "no" >&6; }
1.1 misha 6160: fi
6161:
1.22 ! moko 6162:
1.1 misha 6163: fi
1.8 moko 6164: if test -z "$ac_cv_prog_STRIP"; then
6165: ac_ct_STRIP=$STRIP
6166: # Extract the first word of "strip", so it can be a program name with args.
6167: set dummy strip; ac_word=$2
1.22 ! moko 6168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6169: $as_echo_n "checking for $ac_word... " >&6; }
! 6170: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
! 6171: $as_echo_n "(cached) " >&6
1.1 misha 6172: else
1.8 moko 6173: if test -n "$ac_ct_STRIP"; then
6174: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 misha 6175: else
1.8 moko 6176: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177: for as_dir in $PATH
6178: do
6179: IFS=$as_save_IFS
6180: test -z "$as_dir" && as_dir=.
1.22 ! moko 6181: for ac_exec_ext in '' $ac_executable_extensions; do
! 6182: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6183: ac_cv_prog_ac_ct_STRIP="strip"
1.22 ! moko 6184: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6185: break 2
6186: fi
6187: done
1.22 ! moko 6188: done
! 6189: IFS=$as_save_IFS
1.1 misha 6190:
6191: fi
6192: fi
1.8 moko 6193: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6194: if test -n "$ac_ct_STRIP"; then
1.22 ! moko 6195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 6196: $as_echo "$ac_ct_STRIP" >&6; }
1.8 moko 6197: else
1.22 ! moko 6198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6199: $as_echo "no" >&6; }
1.1 misha 6200: fi
6201:
1.22 ! moko 6202: if test "x$ac_ct_STRIP" = x; then
! 6203: STRIP=":"
! 6204: else
! 6205: case $cross_compiling:$ac_tool_warned in
! 6206: yes:)
! 6207: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6208: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6209: ac_tool_warned=yes ;;
! 6210: esac
! 6211: STRIP=$ac_ct_STRIP
! 6212: fi
1.8 moko 6213: else
6214: STRIP="$ac_cv_prog_STRIP"
1.1 misha 6215: fi
6216:
1.8 moko 6217: test -z "$STRIP" && STRIP=:
1.1 misha 6218:
6219:
6220:
6221:
6222:
6223:
1.8 moko 6224: if test -n "$ac_tool_prefix"; then
6225: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6226: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.22 ! moko 6227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6228: $as_echo_n "checking for $ac_word... " >&6; }
! 6229: if ${ac_cv_prog_RANLIB+:} false; then :
! 6230: $as_echo_n "(cached) " >&6
1.1 misha 6231: else
1.8 moko 6232: if test -n "$RANLIB"; then
6233: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 misha 6234: else
1.8 moko 6235: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236: for as_dir in $PATH
6237: do
6238: IFS=$as_save_IFS
6239: test -z "$as_dir" && as_dir=.
1.22 ! moko 6240: for ac_exec_ext in '' $ac_executable_extensions; do
! 6241: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6242: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.22 ! moko 6243: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6244: break 2
6245: fi
6246: done
1.22 ! moko 6247: done
! 6248: IFS=$as_save_IFS
1.1 misha 6249:
6250: fi
6251: fi
1.8 moko 6252: RANLIB=$ac_cv_prog_RANLIB
6253: if test -n "$RANLIB"; then
1.22 ! moko 6254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
! 6255: $as_echo "$RANLIB" >&6; }
1.8 moko 6256: else
1.22 ! moko 6257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6258: $as_echo "no" >&6; }
1.8 moko 6259: fi
1.1 misha 6260:
1.22 ! moko 6261:
1.1 misha 6262: fi
1.8 moko 6263: if test -z "$ac_cv_prog_RANLIB"; then
6264: ac_ct_RANLIB=$RANLIB
6265: # Extract the first word of "ranlib", so it can be a program name with args.
6266: set dummy ranlib; ac_word=$2
1.22 ! moko 6267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6268: $as_echo_n "checking for $ac_word... " >&6; }
! 6269: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
! 6270: $as_echo_n "(cached) " >&6
1.8 moko 6271: else
6272: if test -n "$ac_ct_RANLIB"; then
6273: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6274: else
6275: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276: for as_dir in $PATH
6277: do
6278: IFS=$as_save_IFS
6279: test -z "$as_dir" && as_dir=.
1.22 ! moko 6280: for ac_exec_ext in '' $ac_executable_extensions; do
! 6281: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6282: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.22 ! moko 6283: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6284: break 2
6285: fi
6286: done
1.22 ! moko 6287: done
! 6288: IFS=$as_save_IFS
1.1 misha 6289:
1.8 moko 6290: fi
1.1 misha 6291: fi
1.8 moko 6292: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6293: if test -n "$ac_ct_RANLIB"; then
1.22 ! moko 6294: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
! 6295: $as_echo "$ac_ct_RANLIB" >&6; }
1.1 misha 6296: else
1.22 ! moko 6297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6298: $as_echo "no" >&6; }
1.1 misha 6299: fi
6300:
1.22 ! moko 6301: if test "x$ac_ct_RANLIB" = x; then
! 6302: RANLIB=":"
! 6303: else
! 6304: case $cross_compiling:$ac_tool_warned in
! 6305: yes:)
! 6306: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6307: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6308: ac_tool_warned=yes ;;
! 6309: esac
! 6310: RANLIB=$ac_ct_RANLIB
! 6311: fi
1.1 misha 6312: else
1.8 moko 6313: RANLIB="$ac_cv_prog_RANLIB"
1.1 misha 6314: fi
6315:
1.8 moko 6316: test -z "$RANLIB" && RANLIB=:
6317:
6318:
6319:
6320:
6321:
6322:
6323: # Determine commands to create old-style static archives.
6324: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6325: old_postinstall_cmds='chmod 644 $oldlib'
6326: old_postuninstall_cmds=
1.1 misha 6327:
1.8 moko 6328: if test -n "$RANLIB"; then
6329: case $host_os in
6330: openbsd*)
6331: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misha 6332: ;;
1.8 moko 6333: *)
6334: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misha 6335: ;;
1.8 moko 6336: esac
6337: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6338: fi
6339:
6340: case $host_os in
6341: darwin*)
6342: lock_old_archive_extraction=yes ;;
6343: *)
6344: lock_old_archive_extraction=no ;;
1.1 misha 6345: esac
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353:
6354:
6355:
6356:
6357:
6358:
6359:
6360:
6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
6369:
6370:
6371:
6372:
6373:
6374:
6375:
6376:
6377:
6378:
6379:
1.8 moko 6380:
6381:
6382:
6383:
6384:
6385: # If no C compiler was specified, use CC.
6386: LTCC=${LTCC-"$CC"}
6387:
6388: # If no C compiler flags were specified, use CFLAGS.
6389: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6390:
6391: # Allow CC to be a program name with arguments.
6392: compiler=$CC
6393:
6394:
6395: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.22 ! moko 6396: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
! 6397: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
! 6398: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
! 6399: $as_echo_n "(cached) " >&6
1.1 misha 6400: else
6401:
1.8 moko 6402: # These are sane defaults that work on at least a few old systems.
6403: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.1 misha 6404:
1.8 moko 6405: # Character class describing NM global symbol codes.
6406: symcode='[BCDEGRST]'
1.1 misha 6407:
1.8 moko 6408: # Regexp to match symbols that can be accessed directly from C.
6409: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.1 misha 6410:
1.8 moko 6411: # Define system-specific variables.
6412: case $host_os in
6413: aix*)
6414: symcode='[BCDT]'
6415: ;;
6416: cygwin* | mingw* | pw32* | cegcc*)
6417: symcode='[ABCDGISTW]'
6418: ;;
6419: hpux*)
6420: if test "$host_cpu" = ia64; then
6421: symcode='[ABCDEGRST]'
6422: fi
6423: ;;
6424: irix* | nonstopux*)
6425: symcode='[BCDEGRST]'
6426: ;;
6427: osf*)
6428: symcode='[BCDEGQRST]'
6429: ;;
6430: solaris*)
6431: symcode='[BDRT]'
6432: ;;
6433: sco3.2v5*)
6434: symcode='[DT]'
6435: ;;
6436: sysv4.2uw2*)
6437: symcode='[DT]'
6438: ;;
6439: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6440: symcode='[ABDT]'
6441: ;;
6442: sysv4)
6443: symcode='[DFNSTU]'
6444: ;;
6445: esac
6446:
6447: # If we're using GNU nm, then use its standard symbol codes.
6448: case `$NM -V 2>&1` in
6449: *GNU* | *'with BFD'*)
6450: symcode='[ABCDGIRSTW]' ;;
6451: esac
6452:
6453: # Transform an extracted symbol line into a proper C declaration.
6454: # Some systems (esp. on ia64) link data and code symbols differently,
6455: # so use this general approach.
6456: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6457:
6458: # Transform an extracted symbol line into symbol name and symbol address
6459: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6460: 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'"
6461:
6462: # Handle CRLF in mingw tool chain
6463: opt_cr=
6464: case $build_os in
6465: mingw*)
6466: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6467: ;;
6468: esac
6469:
6470: # Try without a prefix underscore, then with it.
6471: for ac_symprfx in "" "_"; do
6472:
6473: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6474: symxfrm="\\1 $ac_symprfx\\2 \\2"
6475:
6476: # Write the raw and C identifiers.
6477: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6478: # Fake it for dumpbin and say T for any non-static function
6479: # and D for any global variable.
6480: # Also find C++ and __fastcall symbols from MSVC++,
6481: # which start with @ or ?.
6482: lt_cv_sys_global_symbol_pipe="$AWK '"\
6483: " {last_section=section; section=\$ 3};"\
6484: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6485: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6486: " \$ 0!~/External *\|/{next};"\
6487: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6488: " {if(hide[section]) next};"\
6489: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6490: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6491: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6492: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6493: " ' prfx=^$ac_symprfx"
6494: else
6495: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6496: fi
6497: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6498:
6499: # Check to see that the pipe works correctly.
6500: pipe_works=no
1.1 misha 6501:
1.8 moko 6502: rm -f conftest*
6503: cat > conftest.$ac_ext <<_LT_EOF
6504: #ifdef __cplusplus
6505: extern "C" {
6506: #endif
6507: char nm_test_var;
6508: void nm_test_func(void);
6509: void nm_test_func(void){}
6510: #ifdef __cplusplus
1.1 misha 6511: }
1.8 moko 6512: #endif
6513: int main(){nm_test_var='a';nm_test_func();return(0);}
6514: _LT_EOF
6515:
1.22 ! moko 6516: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6517: (eval $ac_compile) 2>&5
1.1 misha 6518: ac_status=$?
1.22 ! moko 6519: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6520: test $ac_status = 0; }; then
1.8 moko 6521: # Now try to grab the symbols.
6522: nlist=conftest.nm
1.22 ! moko 6523: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.8 moko 6524: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.1 misha 6525: ac_status=$?
1.22 ! moko 6526: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6527: test $ac_status = 0; } && test -s "$nlist"; then
1.8 moko 6528: # Try sorting and uniquifying the output.
6529: if sort "$nlist" | uniq > "$nlist"T; then
6530: mv -f "$nlist"T "$nlist"
6531: else
6532: rm -f "$nlist"T
6533: fi
6534:
6535: # Make sure that we snagged all the symbols we need.
6536: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6537: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6538: cat <<_LT_EOF > conftest.$ac_ext
6539: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6540: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6541: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6542: relocations are performed -- see ld's documentation on pseudo-relocs. */
6543: # define LT_DLSYM_CONST
6544: #elif defined(__osf__)
6545: /* This system does not cope well with relocations in const data. */
6546: # define LT_DLSYM_CONST
6547: #else
6548: # define LT_DLSYM_CONST const
6549: #endif
6550:
6551: #ifdef __cplusplus
6552: extern "C" {
6553: #endif
6554:
6555: _LT_EOF
6556: # Now generate the symbol file.
6557: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6558:
6559: cat <<_LT_EOF >> conftest.$ac_ext
6560:
6561: /* The mapping between symbol names and symbols. */
6562: LT_DLSYM_CONST struct {
6563: const char *name;
6564: void *address;
6565: }
6566: lt__PROGRAM__LTX_preloaded_symbols[] =
6567: {
6568: { "@PROGRAM@", (void *) 0 },
6569: _LT_EOF
6570: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6571: cat <<\_LT_EOF >> conftest.$ac_ext
6572: {0, (void *) 0}
6573: };
6574:
6575: /* This works around a problem in FreeBSD linker */
6576: #ifdef FREEBSD_WORKAROUND
6577: static const void *lt_preloaded_setup() {
6578: return lt__PROGRAM__LTX_preloaded_symbols;
6579: }
6580: #endif
6581:
6582: #ifdef __cplusplus
6583: }
6584: #endif
6585: _LT_EOF
6586: # Now try linking the two files.
6587: mv conftest.$ac_objext conftstm.$ac_objext
6588: lt_globsym_save_LIBS=$LIBS
6589: lt_globsym_save_CFLAGS=$CFLAGS
6590: LIBS="conftstm.$ac_objext"
6591: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.22 ! moko 6592: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 6593: (eval $ac_link) 2>&5
1.1 misha 6594: ac_status=$?
1.22 ! moko 6595: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6596: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.8 moko 6597: pipe_works=yes
6598: fi
6599: LIBS=$lt_globsym_save_LIBS
6600: CFLAGS=$lt_globsym_save_CFLAGS
6601: else
6602: echo "cannot find nm_test_func in $nlist" >&5
6603: fi
6604: else
6605: echo "cannot find nm_test_var in $nlist" >&5
6606: fi
6607: else
6608: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6609: fi
6610: else
6611: echo "$progname: failed program was:" >&5
6612: cat conftest.$ac_ext >&5
6613: fi
6614: rm -rf conftest* conftst*
6615:
6616: # Do not use the global_symbol_pipe unless it works.
6617: if test "$pipe_works" = yes; then
6618: break
6619: else
6620: lt_cv_sys_global_symbol_pipe=
6621: fi
6622: done
6623:
6624: fi
6625:
6626: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6627: lt_cv_sys_global_symbol_to_cdecl=
6628: fi
6629: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.22 ! moko 6630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
! 6631: $as_echo "failed" >&6; }
1.1 misha 6632: else
1.22 ! moko 6633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
! 6634: $as_echo "ok" >&6; }
1.8 moko 6635: fi
1.1 misha 6636:
1.8 moko 6637: # Response file support.
6638: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6639: nm_file_list_spec='@'
6640: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6641: nm_file_list_spec='@'
1.1 misha 6642: fi
6643:
6644:
6645:
6646:
6647:
6648:
6649:
6650:
6651:
6652:
6653:
6654:
6655:
6656:
6657:
6658:
6659:
6660:
6661:
6662:
6663:
1.8 moko 6664:
6665:
6666:
6667:
6668:
6669:
1.22 ! moko 6670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
! 6671: $as_echo_n "checking for sysroot... " >&6; }
1.8 moko 6672:
1.22 ! moko 6673: # Check whether --with-sysroot was given.
! 6674: if test "${with_sysroot+set}" = set; then :
! 6675: withval=$with_sysroot;
1.1 misha 6676: else
1.8 moko 6677: with_sysroot=no
1.22 ! moko 6678: fi
! 6679:
1.1 misha 6680:
1.8 moko 6681: lt_sysroot=
6682: case ${with_sysroot} in #(
6683: yes)
6684: if test "$GCC" = yes; then
6685: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6686: fi
6687: ;; #(
6688: /*)
6689: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6690: ;; #(
6691: no|'')
6692: ;; #(
6693: *)
1.22 ! moko 6694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
! 6695: $as_echo "${with_sysroot}" >&6; }
! 6696: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.8 moko 6697: ;;
6698: esac
6699:
1.22 ! moko 6700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
! 6701: $as_echo "${lt_sysroot:-no}" >&6; }
1.8 moko 6702:
6703:
6704:
6705:
6706:
1.22 ! moko 6707: # Check whether --enable-libtool-lock was given.
! 6708: if test "${enable_libtool_lock+set}" = set; then :
! 6709: enableval=$enable_libtool_lock;
! 6710: fi
1.1 misha 6711:
1.8 moko 6712: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 misha 6713:
1.8 moko 6714: # Some flags need to be propagated to the compiler or linker for good
6715: # libtool support.
6716: case $host in
6717: ia64-*-hpux*)
6718: # Find out which ABI we are using.
6719: echo 'int i;' > conftest.$ac_ext
1.22 ! moko 6720: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6721: (eval $ac_compile) 2>&5
6722: ac_status=$?
1.22 ! moko 6723: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6724: test $ac_status = 0; }; then
1.8 moko 6725: case `/usr/bin/file conftest.$ac_objext` in
6726: *ELF-32*)
6727: HPUX_IA64_MODE="32"
6728: ;;
6729: *ELF-64*)
6730: HPUX_IA64_MODE="64"
6731: ;;
1.1 misha 6732: esac
6733: fi
1.8 moko 6734: rm -rf conftest*
6735: ;;
6736: *-*-irix6*)
6737: # Find out which ABI we are using.
6738: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.22 ! moko 6739: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6740: (eval $ac_compile) 2>&5
1.1 misha 6741: ac_status=$?
1.22 ! moko 6742: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6743: test $ac_status = 0; }; then
1.8 moko 6744: if test "$lt_cv_prog_gnu_ld" = yes; then
6745: case `/usr/bin/file conftest.$ac_objext` in
6746: *32-bit*)
6747: LD="${LD-ld} -melf32bsmip"
6748: ;;
6749: *N32*)
6750: LD="${LD-ld} -melf32bmipn32"
6751: ;;
6752: *64-bit*)
6753: LD="${LD-ld} -melf64bmip"
6754: ;;
6755: esac
6756: else
6757: case `/usr/bin/file conftest.$ac_objext` in
6758: *32-bit*)
6759: LD="${LD-ld} -32"
6760: ;;
6761: *N32*)
6762: LD="${LD-ld} -n32"
6763: ;;
6764: *64-bit*)
6765: LD="${LD-ld} -64"
6766: ;;
6767: esac
6768: fi
6769: fi
6770: rm -rf conftest*
6771: ;;
6772:
6773: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6774: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6775: # Find out which ABI we are using.
6776: echo 'int i;' > conftest.$ac_ext
1.22 ! moko 6777: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6778: (eval $ac_compile) 2>&5
1.1 misha 6779: ac_status=$?
1.22 ! moko 6780: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6781: test $ac_status = 0; }; then
1.8 moko 6782: case `/usr/bin/file conftest.o` in
6783: *32-bit*)
6784: case $host in
6785: x86_64-*kfreebsd*-gnu)
6786: LD="${LD-ld} -m elf_i386_fbsd"
6787: ;;
6788: x86_64-*linux*)
6789: LD="${LD-ld} -m elf_i386"
6790: ;;
6791: ppc64-*linux*|powerpc64-*linux*)
6792: LD="${LD-ld} -m elf32ppclinux"
6793: ;;
6794: s390x-*linux*)
6795: LD="${LD-ld} -m elf_s390"
6796: ;;
6797: sparc64-*linux*)
6798: LD="${LD-ld} -m elf32_sparc"
6799: ;;
6800: esac
1.1 misha 6801: ;;
1.8 moko 6802: *64-bit*)
6803: case $host in
6804: x86_64-*kfreebsd*-gnu)
6805: LD="${LD-ld} -m elf_x86_64_fbsd"
6806: ;;
6807: x86_64-*linux*)
6808: LD="${LD-ld} -m elf_x86_64"
6809: ;;
6810: ppc*-*linux*|powerpc*-*linux*)
6811: LD="${LD-ld} -m elf64ppc"
6812: ;;
6813: s390*-*linux*|s390*-*tpf*)
6814: LD="${LD-ld} -m elf64_s390"
6815: ;;
6816: sparc*-*linux*)
6817: LD="${LD-ld} -m elf64_sparc"
6818: ;;
6819: esac
1.1 misha 6820: ;;
1.8 moko 6821: esac
1.1 misha 6822: fi
1.8 moko 6823: rm -rf conftest*
6824: ;;
1.1 misha 6825:
1.8 moko 6826: *-*-sco3.2v5*)
6827: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6828: SAVE_CFLAGS="$CFLAGS"
6829: CFLAGS="$CFLAGS -belf"
1.22 ! moko 6830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
! 6831: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
! 6832: if ${lt_cv_cc_needs_belf+:} false; then :
! 6833: $as_echo_n "(cached) " >&6
1.1 misha 6834: else
1.8 moko 6835: ac_ext=c
6836: ac_cpp='$CPP $CPPFLAGS'
6837: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6840:
1.22 ! moko 6841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 6842: /* end confdefs.h. */
6843:
6844: int
6845: main ()
6846: {
6847:
6848: ;
6849: return 0;
6850: }
6851: _ACEOF
1.22 ! moko 6852: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 6853: lt_cv_cc_needs_belf=yes
1.1 misha 6854: else
1.22 ! moko 6855: lt_cv_cc_needs_belf=no
1.1 misha 6856: fi
1.22 ! moko 6857: rm -f core conftest.err conftest.$ac_objext \
! 6858: conftest$ac_exeext conftest.$ac_ext
1.8 moko 6859: ac_ext=c
6860: ac_cpp='$CPP $CPPFLAGS'
6861: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 6864:
6865: fi
1.22 ! moko 6866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
! 6867: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.8 moko 6868: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6869: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6870: CFLAGS="$SAVE_CFLAGS"
6871: fi
6872: ;;
6873: *-*solaris*)
6874: # Find out which ABI we are using.
6875: echo 'int i;' > conftest.$ac_ext
1.22 ! moko 6876: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6877: (eval $ac_compile) 2>&5
6878: ac_status=$?
1.22 ! moko 6879: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6880: test $ac_status = 0; }; then
1.8 moko 6881: case `/usr/bin/file conftest.o` in
6882: *64-bit*)
6883: case $lt_cv_prog_gnu_ld in
6884: yes*)
6885: case $host in
6886: i?86-*-solaris*)
6887: LD="${LD-ld} -m elf_x86_64"
6888: ;;
6889: sparc*-*-solaris*)
6890: LD="${LD-ld} -m elf64_sparc"
6891: ;;
6892: esac
6893: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6894: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6895: LD="${LD-ld}_sol2"
6896: fi
6897: ;;
6898: *)
6899: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6900: LD="${LD-ld} -64"
6901: fi
6902: ;;
6903: esac
6904: ;;
6905: esac
6906: fi
6907: rm -rf conftest*
6908: ;;
6909: esac
1.1 misha 6910:
1.8 moko 6911: need_locks="$enable_libtool_lock"
1.1 misha 6912:
1.8 moko 6913: if test -n "$ac_tool_prefix"; then
6914: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6915: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.22 ! moko 6916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6917: $as_echo_n "checking for $ac_word... " >&6; }
! 6918: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
! 6919: $as_echo_n "(cached) " >&6
1.1 misha 6920: else
1.8 moko 6921: if test -n "$MANIFEST_TOOL"; then
6922: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6923: else
6924: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925: for as_dir in $PATH
6926: do
6927: IFS=$as_save_IFS
6928: test -z "$as_dir" && as_dir=.
1.22 ! moko 6929: for ac_exec_ext in '' $ac_executable_extensions; do
! 6930: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6931: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.22 ! moko 6932: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6933: break 2
6934: fi
6935: done
1.22 ! moko 6936: done
! 6937: IFS=$as_save_IFS
1.1 misha 6938:
1.8 moko 6939: fi
6940: fi
6941: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6942: if test -n "$MANIFEST_TOOL"; then
1.22 ! moko 6943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
! 6944: $as_echo "$MANIFEST_TOOL" >&6; }
1.1 misha 6945: else
1.22 ! moko 6946: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6947: $as_echo "no" >&6; }
1.1 misha 6948: fi
6949:
1.22 ! moko 6950:
1.1 misha 6951: fi
1.8 moko 6952: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6953: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6954: # Extract the first word of "mt", so it can be a program name with args.
6955: set dummy mt; ac_word=$2
1.22 ! moko 6956: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6957: $as_echo_n "checking for $ac_word... " >&6; }
! 6958: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
! 6959: $as_echo_n "(cached) " >&6
1.8 moko 6960: else
6961: if test -n "$ac_ct_MANIFEST_TOOL"; then
6962: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6963: else
6964: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965: for as_dir in $PATH
6966: do
6967: IFS=$as_save_IFS
6968: test -z "$as_dir" && as_dir=.
1.22 ! moko 6969: for ac_exec_ext in '' $ac_executable_extensions; do
! 6970: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6971: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.22 ! moko 6972: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6973: break 2
6974: fi
6975: done
1.22 ! moko 6976: done
! 6977: IFS=$as_save_IFS
1.1 misha 6978:
1.8 moko 6979: fi
6980: fi
6981: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6982: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.22 ! moko 6983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
! 6984: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.8 moko 6985: else
1.22 ! moko 6986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6987: $as_echo "no" >&6; }
1.8 moko 6988: fi
6989:
1.22 ! moko 6990: if test "x$ac_ct_MANIFEST_TOOL" = x; then
! 6991: MANIFEST_TOOL=":"
! 6992: else
! 6993: case $cross_compiling:$ac_tool_warned in
! 6994: yes:)
! 6995: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6996: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6997: ac_tool_warned=yes ;;
! 6998: esac
! 6999: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
! 7000: fi
1.8 moko 7001: else
7002: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7003: fi
1.1 misha 7004:
1.8 moko 7005: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.22 ! moko 7006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
! 7007: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
! 7008: if ${lt_cv_path_mainfest_tool+:} false; then :
! 7009: $as_echo_n "(cached) " >&6
1.1 misha 7010: else
1.8 moko 7011: lt_cv_path_mainfest_tool=no
7012: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7013: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7014: cat conftest.err >&5
7015: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7016: lt_cv_path_mainfest_tool=yes
7017: fi
7018: rm -f conftest*
7019: fi
1.22 ! moko 7020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
! 7021: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.8 moko 7022: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7023: MANIFEST_TOOL=:
7024: fi
7025:
7026:
7027:
1.1 misha 7028:
7029:
7030:
1.8 moko 7031: case $host_os in
7032: rhapsody* | darwin*)
7033: if test -n "$ac_tool_prefix"; then
7034: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7035: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.22 ! moko 7036: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7037: $as_echo_n "checking for $ac_word... " >&6; }
! 7038: if ${ac_cv_prog_DSYMUTIL+:} false; then :
! 7039: $as_echo_n "(cached) " >&6
1.1 misha 7040: else
1.8 moko 7041: if test -n "$DSYMUTIL"; then
7042: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7043: else
7044: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045: for as_dir in $PATH
7046: do
7047: IFS=$as_save_IFS
7048: test -z "$as_dir" && as_dir=.
1.22 ! moko 7049: for ac_exec_ext in '' $ac_executable_extensions; do
! 7050: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7051: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.22 ! moko 7052: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7053: break 2
7054: fi
7055: done
1.22 ! moko 7056: done
! 7057: IFS=$as_save_IFS
1.1 misha 7058:
7059: fi
1.8 moko 7060: fi
7061: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7062: if test -n "$DSYMUTIL"; then
1.22 ! moko 7063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
! 7064: $as_echo "$DSYMUTIL" >&6; }
1.8 moko 7065: else
1.22 ! moko 7066: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7067: $as_echo "no" >&6; }
1.8 moko 7068: fi
1.1 misha 7069:
1.22 ! moko 7070:
1.1 misha 7071: fi
1.8 moko 7072: if test -z "$ac_cv_prog_DSYMUTIL"; then
7073: ac_ct_DSYMUTIL=$DSYMUTIL
7074: # Extract the first word of "dsymutil", so it can be a program name with args.
7075: set dummy dsymutil; ac_word=$2
1.22 ! moko 7076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7077: $as_echo_n "checking for $ac_word... " >&6; }
! 7078: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
! 7079: $as_echo_n "(cached) " >&6
1.8 moko 7080: else
7081: if test -n "$ac_ct_DSYMUTIL"; then
7082: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7083: else
7084: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085: for as_dir in $PATH
7086: do
7087: IFS=$as_save_IFS
7088: test -z "$as_dir" && as_dir=.
1.22 ! moko 7089: for ac_exec_ext in '' $ac_executable_extensions; do
! 7090: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7091: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.22 ! moko 7092: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7093: break 2
7094: fi
7095: done
1.22 ! moko 7096: done
! 7097: IFS=$as_save_IFS
1.1 misha 7098:
1.8 moko 7099: fi
7100: fi
7101: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7102: if test -n "$ac_ct_DSYMUTIL"; then
1.22 ! moko 7103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
! 7104: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.1 misha 7105: else
1.22 ! moko 7106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7107: $as_echo "no" >&6; }
1.1 misha 7108: fi
7109:
1.22 ! moko 7110: if test "x$ac_ct_DSYMUTIL" = x; then
! 7111: DSYMUTIL=":"
! 7112: else
! 7113: case $cross_compiling:$ac_tool_warned in
! 7114: yes:)
! 7115: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7116: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7117: ac_tool_warned=yes ;;
! 7118: esac
! 7119: DSYMUTIL=$ac_ct_DSYMUTIL
! 7120: fi
1.1 misha 7121: else
1.8 moko 7122: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.1 misha 7123: fi
7124:
1.8 moko 7125: if test -n "$ac_tool_prefix"; then
7126: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7127: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.22 ! moko 7128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7129: $as_echo_n "checking for $ac_word... " >&6; }
! 7130: if ${ac_cv_prog_NMEDIT+:} false; then :
! 7131: $as_echo_n "(cached) " >&6
1.8 moko 7132: else
7133: if test -n "$NMEDIT"; then
7134: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7135: else
7136: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137: for as_dir in $PATH
7138: do
7139: IFS=$as_save_IFS
7140: test -z "$as_dir" && as_dir=.
1.22 ! moko 7141: for ac_exec_ext in '' $ac_executable_extensions; do
! 7142: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7143: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.22 ! moko 7144: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7145: break 2
7146: fi
7147: done
1.22 ! moko 7148: done
! 7149: IFS=$as_save_IFS
1.1 misha 7150:
1.8 moko 7151: fi
7152: fi
7153: NMEDIT=$ac_cv_prog_NMEDIT
7154: if test -n "$NMEDIT"; then
1.22 ! moko 7155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
! 7156: $as_echo "$NMEDIT" >&6; }
1.8 moko 7157: else
1.22 ! moko 7158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7159: $as_echo "no" >&6; }
1.8 moko 7160: fi
1.1 misha 7161:
1.22 ! moko 7162:
1.8 moko 7163: fi
7164: if test -z "$ac_cv_prog_NMEDIT"; then
7165: ac_ct_NMEDIT=$NMEDIT
7166: # Extract the first word of "nmedit", so it can be a program name with args.
7167: set dummy nmedit; ac_word=$2
1.22 ! moko 7168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7169: $as_echo_n "checking for $ac_word... " >&6; }
! 7170: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
! 7171: $as_echo_n "(cached) " >&6
1.8 moko 7172: else
7173: if test -n "$ac_ct_NMEDIT"; then
7174: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.1 misha 7175: else
1.8 moko 7176: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177: for as_dir in $PATH
7178: do
7179: IFS=$as_save_IFS
7180: test -z "$as_dir" && as_dir=.
1.22 ! moko 7181: for ac_exec_ext in '' $ac_executable_extensions; do
! 7182: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7183: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.22 ! moko 7184: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7185: break 2
7186: fi
7187: done
1.22 ! moko 7188: done
! 7189: IFS=$as_save_IFS
1.1 misha 7190:
1.8 moko 7191: fi
7192: fi
7193: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7194: if test -n "$ac_ct_NMEDIT"; then
1.22 ! moko 7195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
! 7196: $as_echo "$ac_ct_NMEDIT" >&6; }
1.8 moko 7197: else
1.22 ! moko 7198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7199: $as_echo "no" >&6; }
1.1 misha 7200: fi
7201:
1.22 ! moko 7202: if test "x$ac_ct_NMEDIT" = x; then
! 7203: NMEDIT=":"
! 7204: else
! 7205: case $cross_compiling:$ac_tool_warned in
! 7206: yes:)
! 7207: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7208: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7209: ac_tool_warned=yes ;;
! 7210: esac
! 7211: NMEDIT=$ac_ct_NMEDIT
! 7212: fi
1.8 moko 7213: else
7214: NMEDIT="$ac_cv_prog_NMEDIT"
1.1 misha 7215: fi
7216:
1.8 moko 7217: if test -n "$ac_tool_prefix"; then
7218: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7219: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.22 ! moko 7220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7221: $as_echo_n "checking for $ac_word... " >&6; }
! 7222: if ${ac_cv_prog_LIPO+:} false; then :
! 7223: $as_echo_n "(cached) " >&6
1.8 moko 7224: else
7225: if test -n "$LIPO"; then
7226: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7227: else
7228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229: for as_dir in $PATH
7230: do
7231: IFS=$as_save_IFS
7232: test -z "$as_dir" && as_dir=.
1.22 ! moko 7233: for ac_exec_ext in '' $ac_executable_extensions; do
! 7234: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7235: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.22 ! moko 7236: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7237: break 2
7238: fi
7239: done
1.22 ! moko 7240: done
! 7241: IFS=$as_save_IFS
1.1 misha 7242:
1.8 moko 7243: fi
7244: fi
7245: LIPO=$ac_cv_prog_LIPO
7246: if test -n "$LIPO"; then
1.22 ! moko 7247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
! 7248: $as_echo "$LIPO" >&6; }
1.8 moko 7249: else
1.22 ! moko 7250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7251: $as_echo "no" >&6; }
1.8 moko 7252: fi
1.1 misha 7253:
1.22 ! moko 7254:
1.8 moko 7255: fi
7256: if test -z "$ac_cv_prog_LIPO"; then
7257: ac_ct_LIPO=$LIPO
7258: # Extract the first word of "lipo", so it can be a program name with args.
7259: set dummy lipo; ac_word=$2
1.22 ! moko 7260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7261: $as_echo_n "checking for $ac_word... " >&6; }
! 7262: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
! 7263: $as_echo_n "(cached) " >&6
1.8 moko 7264: else
7265: if test -n "$ac_ct_LIPO"; then
7266: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7267: else
7268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269: for as_dir in $PATH
7270: do
7271: IFS=$as_save_IFS
7272: test -z "$as_dir" && as_dir=.
1.22 ! moko 7273: for ac_exec_ext in '' $ac_executable_extensions; do
! 7274: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7275: ac_cv_prog_ac_ct_LIPO="lipo"
1.22 ! moko 7276: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7277: break 2
1.1 misha 7278: fi
1.8 moko 7279: done
1.22 ! moko 7280: done
! 7281: IFS=$as_save_IFS
1.8 moko 7282:
7283: fi
7284: fi
7285: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7286: if test -n "$ac_ct_LIPO"; then
1.22 ! moko 7287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
! 7288: $as_echo "$ac_ct_LIPO" >&6; }
1.8 moko 7289: else
1.22 ! moko 7290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7291: $as_echo "no" >&6; }
1.8 moko 7292: fi
7293:
1.22 ! moko 7294: if test "x$ac_ct_LIPO" = x; then
! 7295: LIPO=":"
! 7296: else
! 7297: case $cross_compiling:$ac_tool_warned in
! 7298: yes:)
! 7299: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7300: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7301: ac_tool_warned=yes ;;
! 7302: esac
! 7303: LIPO=$ac_ct_LIPO
! 7304: fi
1.8 moko 7305: else
7306: LIPO="$ac_cv_prog_LIPO"
7307: fi
1.1 misha 7308:
1.8 moko 7309: if test -n "$ac_tool_prefix"; then
7310: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7311: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.22 ! moko 7312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7313: $as_echo_n "checking for $ac_word... " >&6; }
! 7314: if ${ac_cv_prog_OTOOL+:} false; then :
! 7315: $as_echo_n "(cached) " >&6
1.8 moko 7316: else
7317: if test -n "$OTOOL"; then
7318: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7319: else
7320: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321: for as_dir in $PATH
7322: do
7323: IFS=$as_save_IFS
7324: test -z "$as_dir" && as_dir=.
1.22 ! moko 7325: for ac_exec_ext in '' $ac_executable_extensions; do
! 7326: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7327: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.22 ! moko 7328: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7329: break 2
7330: fi
7331: done
1.22 ! moko 7332: done
! 7333: IFS=$as_save_IFS
1.1 misha 7334:
1.8 moko 7335: fi
7336: fi
7337: OTOOL=$ac_cv_prog_OTOOL
7338: if test -n "$OTOOL"; then
1.22 ! moko 7339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
! 7340: $as_echo "$OTOOL" >&6; }
1.8 moko 7341: else
1.22 ! moko 7342: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7343: $as_echo "no" >&6; }
1.8 moko 7344: fi
1.1 misha 7345:
1.22 ! moko 7346:
1.8 moko 7347: fi
7348: if test -z "$ac_cv_prog_OTOOL"; then
7349: ac_ct_OTOOL=$OTOOL
7350: # Extract the first word of "otool", so it can be a program name with args.
7351: set dummy otool; ac_word=$2
1.22 ! moko 7352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7353: $as_echo_n "checking for $ac_word... " >&6; }
! 7354: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
! 7355: $as_echo_n "(cached) " >&6
1.8 moko 7356: else
7357: if test -n "$ac_ct_OTOOL"; then
7358: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7359: else
7360: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361: for as_dir in $PATH
7362: do
7363: IFS=$as_save_IFS
7364: test -z "$as_dir" && as_dir=.
1.22 ! moko 7365: for ac_exec_ext in '' $ac_executable_extensions; do
! 7366: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7367: ac_cv_prog_ac_ct_OTOOL="otool"
1.22 ! moko 7368: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7369: break 2
7370: fi
7371: done
1.22 ! moko 7372: done
! 7373: IFS=$as_save_IFS
1.1 misha 7374:
1.8 moko 7375: fi
7376: fi
7377: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7378: if test -n "$ac_ct_OTOOL"; then
1.22 ! moko 7379: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
! 7380: $as_echo "$ac_ct_OTOOL" >&6; }
1.8 moko 7381: else
1.22 ! moko 7382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7383: $as_echo "no" >&6; }
1.8 moko 7384: fi
1.1 misha 7385:
1.22 ! moko 7386: if test "x$ac_ct_OTOOL" = x; then
! 7387: OTOOL=":"
! 7388: else
! 7389: case $cross_compiling:$ac_tool_warned in
! 7390: yes:)
! 7391: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7392: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7393: ac_tool_warned=yes ;;
! 7394: esac
! 7395: OTOOL=$ac_ct_OTOOL
! 7396: fi
1.8 moko 7397: else
7398: OTOOL="$ac_cv_prog_OTOOL"
7399: fi
1.1 misha 7400:
1.8 moko 7401: if test -n "$ac_tool_prefix"; then
7402: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7403: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.22 ! moko 7404: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7405: $as_echo_n "checking for $ac_word... " >&6; }
! 7406: if ${ac_cv_prog_OTOOL64+:} false; then :
! 7407: $as_echo_n "(cached) " >&6
1.8 moko 7408: else
7409: if test -n "$OTOOL64"; then
7410: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7411: else
7412: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413: for as_dir in $PATH
7414: do
7415: IFS=$as_save_IFS
7416: test -z "$as_dir" && as_dir=.
1.22 ! moko 7417: for ac_exec_ext in '' $ac_executable_extensions; do
! 7418: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7419: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.22 ! moko 7420: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7421: break 2
7422: fi
7423: done
1.22 ! moko 7424: done
! 7425: IFS=$as_save_IFS
1.1 misha 7426:
1.8 moko 7427: fi
7428: fi
7429: OTOOL64=$ac_cv_prog_OTOOL64
7430: if test -n "$OTOOL64"; then
1.22 ! moko 7431: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
! 7432: $as_echo "$OTOOL64" >&6; }
1.8 moko 7433: else
1.22 ! moko 7434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7435: $as_echo "no" >&6; }
1.8 moko 7436: fi
1.1 misha 7437:
1.22 ! moko 7438:
1.8 moko 7439: fi
7440: if test -z "$ac_cv_prog_OTOOL64"; then
7441: ac_ct_OTOOL64=$OTOOL64
7442: # Extract the first word of "otool64", so it can be a program name with args.
7443: set dummy otool64; ac_word=$2
1.22 ! moko 7444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7445: $as_echo_n "checking for $ac_word... " >&6; }
! 7446: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
! 7447: $as_echo_n "(cached) " >&6
1.8 moko 7448: else
7449: if test -n "$ac_ct_OTOOL64"; then
7450: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7451: else
7452: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453: for as_dir in $PATH
7454: do
7455: IFS=$as_save_IFS
7456: test -z "$as_dir" && as_dir=.
1.22 ! moko 7457: for ac_exec_ext in '' $ac_executable_extensions; do
! 7458: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7459: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.22 ! moko 7460: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7461: break 2
7462: fi
7463: done
1.22 ! moko 7464: done
! 7465: IFS=$as_save_IFS
1.1 misha 7466:
1.8 moko 7467: fi
7468: fi
7469: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7470: if test -n "$ac_ct_OTOOL64"; then
1.22 ! moko 7471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
! 7472: $as_echo "$ac_ct_OTOOL64" >&6; }
1.8 moko 7473: else
1.22 ! moko 7474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7475: $as_echo "no" >&6; }
1.8 moko 7476: fi
1.1 misha 7477:
1.22 ! moko 7478: if test "x$ac_ct_OTOOL64" = x; then
! 7479: OTOOL64=":"
! 7480: else
! 7481: case $cross_compiling:$ac_tool_warned in
! 7482: yes:)
! 7483: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7484: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7485: ac_tool_warned=yes ;;
! 7486: esac
! 7487: OTOOL64=$ac_ct_OTOOL64
! 7488: fi
1.8 moko 7489: else
7490: OTOOL64="$ac_cv_prog_OTOOL64"
7491: fi
1.1 misha 7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499:
7500:
7501:
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518:
1.22 ! moko 7519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
! 7520: $as_echo_n "checking for -single_module linker flag... " >&6; }
! 7521: if ${lt_cv_apple_cc_single_mod+:} false; then :
! 7522: $as_echo_n "(cached) " >&6
1.8 moko 7523: else
7524: lt_cv_apple_cc_single_mod=no
7525: if test -z "${LT_MULTI_MODULE}"; then
7526: # By default we will add the -single_module flag. You can override
7527: # by either setting the environment variable LT_MULTI_MODULE
7528: # non-empty at configure time, or by adding -multi_module to the
7529: # link flags.
7530: rm -rf libconftest.dylib*
7531: echo "int foo(void){return 1;}" > conftest.c
7532: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7533: -dynamiclib -Wl,-single_module conftest.c" >&5
7534: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7535: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7536: _lt_result=$?
7537: # If there is a non-empty error log, and "single_module"
7538: # appears in it, assume the flag caused a linker warning
7539: if test -s conftest.err && $GREP single_module conftest.err; then
7540: cat conftest.err >&5
7541: # Otherwise, if the output was created with a 0 exit code from
7542: # the compiler, it worked.
7543: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7544: lt_cv_apple_cc_single_mod=yes
7545: else
7546: cat conftest.err >&5
7547: fi
7548: rm -rf libconftest.dylib*
7549: rm -f conftest.*
7550: fi
7551: fi
1.22 ! moko 7552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
! 7553: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1 misha 7554:
1.22 ! moko 7555: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
! 7556: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
! 7557: if ${lt_cv_ld_exported_symbols_list+:} false; then :
! 7558: $as_echo_n "(cached) " >&6
1.8 moko 7559: else
7560: lt_cv_ld_exported_symbols_list=no
7561: save_LDFLAGS=$LDFLAGS
7562: echo "_main" > conftest.sym
7563: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.22 ! moko 7564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7565: /* end confdefs.h. */
1.1 misha 7566:
1.8 moko 7567: int
7568: main ()
7569: {
1.1 misha 7570:
1.8 moko 7571: ;
7572: return 0;
7573: }
7574: _ACEOF
1.22 ! moko 7575: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 7576: lt_cv_ld_exported_symbols_list=yes
7577: else
1.22 ! moko 7578: lt_cv_ld_exported_symbols_list=no
1.8 moko 7579: fi
1.22 ! moko 7580: rm -f core conftest.err conftest.$ac_objext \
! 7581: conftest$ac_exeext conftest.$ac_ext
1.8 moko 7582: LDFLAGS="$save_LDFLAGS"
1.1 misha 7583:
1.8 moko 7584: fi
1.22 ! moko 7585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
! 7586: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1 misha 7587:
1.22 ! moko 7588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
! 7589: $as_echo_n "checking for -force_load linker flag... " >&6; }
! 7590: if ${lt_cv_ld_force_load+:} false; then :
! 7591: $as_echo_n "(cached) " >&6
1.8 moko 7592: else
7593: lt_cv_ld_force_load=no
7594: cat > conftest.c << _LT_EOF
7595: int forced_loaded() { return 2;}
7596: _LT_EOF
7597: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7598: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7599: echo "$AR cru libconftest.a conftest.o" >&5
7600: $AR cru libconftest.a conftest.o 2>&5
7601: echo "$RANLIB libconftest.a" >&5
7602: $RANLIB libconftest.a 2>&5
7603: cat > conftest.c << _LT_EOF
7604: int main() { return 0;}
7605: _LT_EOF
7606: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7607: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7608: _lt_result=$?
7609: if test -s conftest.err && $GREP force_load conftest.err; then
7610: cat conftest.err >&5
7611: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7612: lt_cv_ld_force_load=yes
7613: else
7614: cat conftest.err >&5
7615: fi
7616: rm -f conftest.err libconftest.a conftest conftest.c
7617: rm -rf conftest.dSYM
1.1 misha 7618:
1.8 moko 7619: fi
1.22 ! moko 7620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
! 7621: $as_echo "$lt_cv_ld_force_load" >&6; }
1.8 moko 7622: case $host_os in
7623: rhapsody* | darwin1.[012])
7624: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7625: darwin1.*)
7626: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7627: darwin*) # darwin 5.x on
7628: # if running on 10.5 or later, the deployment target defaults
7629: # to the OS version, if on x86, and 10.4, the deployment
7630: # target defaults to 10.4. Don't you love it?
7631: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7632: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7633: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7634: 10.[012]*)
7635: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7636: 10.*)
7637: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7638: esac
1.1 misha 7639: ;;
1.8 moko 7640: esac
7641: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7642: _lt_dar_single_mod='$single_module'
7643: fi
7644: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7645: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7646: else
7647: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1 misha 7648: fi
1.8 moko 7649: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7650: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.1 misha 7651: else
1.8 moko 7652: _lt_dsymutil=
1.1 misha 7653: fi
7654: ;;
1.8 moko 7655: esac
1.1 misha 7656:
1.8 moko 7657: ac_ext=c
7658: ac_cpp='$CPP $CPPFLAGS'
7659: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7660: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7661: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.22 ! moko 7662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
! 7663: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.8 moko 7664: # On Suns, sometimes $CPP names a directory.
7665: if test -n "$CPP" && test -d "$CPP"; then
7666: CPP=
7667: fi
7668: if test -z "$CPP"; then
1.22 ! moko 7669: if ${ac_cv_prog_CPP+:} false; then :
! 7670: $as_echo_n "(cached) " >&6
1.8 moko 7671: else
7672: # Double quotes because CPP needs to be expanded
7673: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7674: do
7675: ac_preproc_ok=false
7676: for ac_c_preproc_warn_flag in '' yes
7677: do
7678: # Use a header file that comes with gcc, so configuring glibc
7679: # with a fresh cross-compiler works.
7680: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7681: # <limits.h> exists even on freestanding compilers.
7682: # On the NeXT, cc -E runs the code through the compiler's parser,
7683: # not just through cpp. "Syntax error" is here to catch this case.
1.22 ! moko 7684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7685: /* end confdefs.h. */
7686: #ifdef __STDC__
7687: # include <limits.h>
7688: #else
7689: # include <assert.h>
7690: #endif
7691: Syntax error
7692: _ACEOF
1.22 ! moko 7693: if ac_fn_c_try_cpp "$LINENO"; then :
! 7694:
1.11 moko 7695: else
1.8 moko 7696: # Broken: fails on valid input.
7697: continue
7698: fi
1.22 ! moko 7699: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misha 7700:
1.22 ! moko 7701: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 7702: # can be detected and how.
1.22 ! moko 7703: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7704: /* end confdefs.h. */
7705: #include <ac_nonexistent.h>
7706: _ACEOF
1.22 ! moko 7707: if ac_fn_c_try_cpp "$LINENO"; then :
1.8 moko 7708: # Broken: success on invalid input.
7709: continue
7710: else
7711: # Passes both tests.
7712: ac_preproc_ok=:
7713: break
1.1 misha 7714: fi
1.22 ! moko 7715: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misha 7716:
1.8 moko 7717: done
7718: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.22 ! moko 7719: rm -f conftest.i conftest.err conftest.$ac_ext
! 7720: if $ac_preproc_ok; then :
1.8 moko 7721: break
1.1 misha 7722: fi
7723:
1.8 moko 7724: done
7725: ac_cv_prog_CPP=$CPP
1.1 misha 7726:
1.8 moko 7727: fi
7728: CPP=$ac_cv_prog_CPP
7729: else
7730: ac_cv_prog_CPP=$CPP
7731: fi
1.22 ! moko 7732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
! 7733: $as_echo "$CPP" >&6; }
1.8 moko 7734: ac_preproc_ok=false
7735: for ac_c_preproc_warn_flag in '' yes
7736: do
7737: # Use a header file that comes with gcc, so configuring glibc
7738: # with a fresh cross-compiler works.
7739: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7740: # <limits.h> exists even on freestanding compilers.
7741: # On the NeXT, cc -E runs the code through the compiler's parser,
7742: # not just through cpp. "Syntax error" is here to catch this case.
1.22 ! moko 7743: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7744: /* end confdefs.h. */
7745: #ifdef __STDC__
7746: # include <limits.h>
7747: #else
7748: # include <assert.h>
7749: #endif
7750: Syntax error
7751: _ACEOF
1.22 ! moko 7752: if ac_fn_c_try_cpp "$LINENO"; then :
! 7753:
1.11 moko 7754: else
1.8 moko 7755: # Broken: fails on valid input.
7756: continue
7757: fi
1.22 ! moko 7758: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misha 7759:
1.22 ! moko 7760: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 7761: # can be detected and how.
1.22 ! moko 7762: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7763: /* end confdefs.h. */
7764: #include <ac_nonexistent.h>
7765: _ACEOF
1.22 ! moko 7766: if ac_fn_c_try_cpp "$LINENO"; then :
1.8 moko 7767: # Broken: success on invalid input.
7768: continue
7769: else
7770: # Passes both tests.
7771: ac_preproc_ok=:
7772: break
7773: fi
1.22 ! moko 7774: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 7775:
7776: done
7777: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.22 ! moko 7778: rm -f conftest.i conftest.err conftest.$ac_ext
! 7779: if $ac_preproc_ok; then :
! 7780:
1.8 moko 7781: else
1.22 ! moko 7782: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 7783: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 7784: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
! 7785: See \`config.log' for more details" "$LINENO" 5; }
1.8 moko 7786: fi
1.1 misha 7787:
1.8 moko 7788: ac_ext=c
7789: ac_cpp='$CPP $CPPFLAGS'
7790: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7791: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7792: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 7793:
7794:
1.22 ! moko 7795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
! 7796: $as_echo_n "checking for ANSI C header files... " >&6; }
! 7797: if ${ac_cv_header_stdc+:} false; then :
! 7798: $as_echo_n "(cached) " >&6
1.8 moko 7799: else
1.22 ! moko 7800: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7801: /* end confdefs.h. */
7802: #include <stdlib.h>
7803: #include <stdarg.h>
7804: #include <string.h>
7805: #include <float.h>
1.1 misha 7806:
1.8 moko 7807: int
7808: main ()
7809: {
1.1 misha 7810:
1.8 moko 7811: ;
7812: return 0;
7813: }
7814: _ACEOF
1.22 ! moko 7815: if ac_fn_c_try_compile "$LINENO"; then :
1.8 moko 7816: ac_cv_header_stdc=yes
7817: else
1.22 ! moko 7818: ac_cv_header_stdc=no
1.8 moko 7819: fi
1.22 ! moko 7820: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 7821:
1.8 moko 7822: if test $ac_cv_header_stdc = yes; then
7823: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.22 ! moko 7824: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7825: /* end confdefs.h. */
7826: #include <string.h>
7827:
7828: _ACEOF
7829: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.22 ! moko 7830: $EGREP "memchr" >/dev/null 2>&1; then :
! 7831:
1.8 moko 7832: else
7833: ac_cv_header_stdc=no
7834: fi
7835: rm -f conftest*
7836:
7837: fi
7838:
7839: if test $ac_cv_header_stdc = yes; then
7840: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.22 ! moko 7841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7842: /* end confdefs.h. */
7843: #include <stdlib.h>
7844:
7845: _ACEOF
7846: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.22 ! moko 7847: $EGREP "free" >/dev/null 2>&1; then :
! 7848:
1.8 moko 7849: else
7850: ac_cv_header_stdc=no
7851: fi
7852: rm -f conftest*
7853:
7854: fi
1.1 misha 7855:
1.8 moko 7856: if test $ac_cv_header_stdc = yes; then
7857: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.22 ! moko 7858: if test "$cross_compiling" = yes; then :
1.8 moko 7859: :
7860: else
1.22 ! moko 7861: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7862: /* end confdefs.h. */
7863: #include <ctype.h>
1.22 ! moko 7864: #include <stdlib.h>
1.8 moko 7865: #if ((' ' & 0x0FF) == 0x020)
7866: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7867: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7868: #else
7869: # define ISLOWER(c) \
7870: (('a' <= (c) && (c) <= 'i') \
7871: || ('j' <= (c) && (c) <= 'r') \
7872: || ('s' <= (c) && (c) <= 'z'))
7873: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7874: #endif
1.1 misha 7875:
1.8 moko 7876: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7877: int
7878: main ()
7879: {
7880: int i;
7881: for (i = 0; i < 256; i++)
7882: if (XOR (islower (i), ISLOWER (i))
7883: || toupper (i) != TOUPPER (i))
1.22 ! moko 7884: return 2;
! 7885: return 0;
1.8 moko 7886: }
7887: _ACEOF
1.22 ! moko 7888: if ac_fn_c_try_run "$LINENO"; then :
! 7889:
1.11 moko 7890: else
1.22 ! moko 7891: ac_cv_header_stdc=no
1.8 moko 7892: fi
1.22 ! moko 7893: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
! 7894: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.8 moko 7895: fi
1.22 ! moko 7896:
1.8 moko 7897: fi
7898: fi
1.22 ! moko 7899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
! 7900: $as_echo "$ac_cv_header_stdc" >&6; }
1.8 moko 7901: if test $ac_cv_header_stdc = yes; then
1.1 misha 7902:
1.22 ! moko 7903: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 misha 7904:
1.8 moko 7905: fi
1.1 misha 7906:
1.8 moko 7907: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.11 moko 7908: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7909: inttypes.h stdint.h unistd.h
1.22 ! moko 7910: do :
! 7911: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 7912: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
! 7913: "
! 7914: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.11 moko 7915: cat >>confdefs.h <<_ACEOF
1.22 ! moko 7916: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.11 moko 7917: _ACEOF
7918:
7919: fi
7920:
7921: done
7922:
7923:
7924: for ac_header in dlfcn.h
1.22 ! moko 7925: do :
! 7926: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
! 7927: "
! 7928: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.11 moko 7929: cat >>confdefs.h <<_ACEOF
1.22 ! moko 7930: #define HAVE_DLFCN_H 1
1.11 moko 7931: _ACEOF
7932:
7933: fi
7934:
7935: done
1.1 misha 7936:
7937:
7938:
1.8 moko 7939:
7940: func_stripname_cnf ()
1.1 misha 7941: {
1.8 moko 7942: case ${2} in
7943: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7944: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7945: esac
7946: } # func_stripname_cnf
7947:
7948:
7949:
7950:
7951:
7952: # Set options
1.22 ! moko 7953: # Check whether --enable-static was given.
! 7954: if test "${enable_static+set}" = set; then :
! 7955: enableval=$enable_static; p=${PACKAGE-default}
1.20 moko 7956: case $enableval in
7957: yes) enable_static=yes ;;
7958: no) enable_static=no ;;
7959: *)
7960: enable_static=no
7961: # Look at the argument we got. We use all the common list separators.
7962: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7963: for pkg in $enableval; do
7964: IFS="$lt_save_ifs"
7965: if test "X$pkg" = "X$p"; then
7966: enable_static=yes
7967: fi
7968: done
7969: IFS="$lt_save_ifs"
7970: ;;
7971: esac
7972: else
7973: enable_static=no
1.22 ! moko 7974: fi
! 7975:
1.20 moko 7976:
7977:
7978:
7979:
7980:
7981:
1.8 moko 7982: enable_dlopen=yes
1.13 moko 7983: enable_win32_dll=yes
1.8 moko 7984:
1.13 moko 7985: case $host in
7986: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7987: if test -n "$ac_tool_prefix"; then
7988: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7989: set dummy ${ac_tool_prefix}as; ac_word=$2
1.22 ! moko 7990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7991: $as_echo_n "checking for $ac_word... " >&6; }
! 7992: if ${ac_cv_prog_AS+:} false; then :
! 7993: $as_echo_n "(cached) " >&6
1.13 moko 7994: else
7995: if test -n "$AS"; then
7996: ac_cv_prog_AS="$AS" # Let the user override the test.
7997: else
7998: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999: for as_dir in $PATH
8000: do
8001: IFS=$as_save_IFS
8002: test -z "$as_dir" && as_dir=.
1.22 ! moko 8003: for ac_exec_ext in '' $ac_executable_extensions; do
! 8004: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.13 moko 8005: ac_cv_prog_AS="${ac_tool_prefix}as"
1.22 ! moko 8006: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8007: break 2
8008: fi
8009: done
1.22 ! moko 8010: done
! 8011: IFS=$as_save_IFS
1.8 moko 8012:
1.13 moko 8013: fi
8014: fi
8015: AS=$ac_cv_prog_AS
8016: if test -n "$AS"; then
1.22 ! moko 8017: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
! 8018: $as_echo "$AS" >&6; }
1.13 moko 8019: else
1.22 ! moko 8020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8021: $as_echo "no" >&6; }
1.13 moko 8022: fi
1.8 moko 8023:
1.22 ! moko 8024:
1.13 moko 8025: fi
8026: if test -z "$ac_cv_prog_AS"; then
8027: ac_ct_AS=$AS
8028: # Extract the first word of "as", so it can be a program name with args.
8029: set dummy as; ac_word=$2
1.22 ! moko 8030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8031: $as_echo_n "checking for $ac_word... " >&6; }
! 8032: if ${ac_cv_prog_ac_ct_AS+:} false; then :
! 8033: $as_echo_n "(cached) " >&6
1.13 moko 8034: else
8035: if test -n "$ac_ct_AS"; then
8036: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8037: else
8038: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039: for as_dir in $PATH
8040: do
8041: IFS=$as_save_IFS
8042: test -z "$as_dir" && as_dir=.
1.22 ! moko 8043: for ac_exec_ext in '' $ac_executable_extensions; do
! 8044: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.13 moko 8045: ac_cv_prog_ac_ct_AS="as"
1.22 ! moko 8046: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8047: break 2
8048: fi
8049: done
1.22 ! moko 8050: done
! 8051: IFS=$as_save_IFS
1.8 moko 8052:
1.13 moko 8053: fi
8054: fi
8055: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8056: if test -n "$ac_ct_AS"; then
1.22 ! moko 8057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
! 8058: $as_echo "$ac_ct_AS" >&6; }
1.13 moko 8059: else
1.22 ! moko 8060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8061: $as_echo "no" >&6; }
1.13 moko 8062: fi
1.8 moko 8063:
1.22 ! moko 8064: if test "x$ac_ct_AS" = x; then
! 8065: AS="false"
! 8066: else
! 8067: case $cross_compiling:$ac_tool_warned in
! 8068: yes:)
! 8069: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8070: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 8071: ac_tool_warned=yes ;;
! 8072: esac
! 8073: AS=$ac_ct_AS
! 8074: fi
1.13 moko 8075: else
8076: AS="$ac_cv_prog_AS"
8077: fi
1.1 misha 8078:
1.13 moko 8079: if test -n "$ac_tool_prefix"; then
8080: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8081: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.22 ! moko 8082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8083: $as_echo_n "checking for $ac_word... " >&6; }
! 8084: if ${ac_cv_prog_DLLTOOL+:} false; then :
! 8085: $as_echo_n "(cached) " >&6
1.13 moko 8086: else
8087: if test -n "$DLLTOOL"; then
8088: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.1 misha 8089: else
1.13 moko 8090: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091: for as_dir in $PATH
8092: do
8093: IFS=$as_save_IFS
8094: test -z "$as_dir" && as_dir=.
1.22 ! moko 8095: for ac_exec_ext in '' $ac_executable_extensions; do
! 8096: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.13 moko 8097: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.22 ! moko 8098: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8099: break 2
8100: fi
8101: done
1.22 ! moko 8102: done
! 8103: IFS=$as_save_IFS
1.13 moko 8104:
8105: fi
8106: fi
8107: DLLTOOL=$ac_cv_prog_DLLTOOL
8108: if test -n "$DLLTOOL"; then
1.22 ! moko 8109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
! 8110: $as_echo "$DLLTOOL" >&6; }
1.13 moko 8111: else
1.22 ! moko 8112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8113: $as_echo "no" >&6; }
1.13 moko 8114: fi
8115:
1.22 ! moko 8116:
1.13 moko 8117: fi
8118: if test -z "$ac_cv_prog_DLLTOOL"; then
8119: ac_ct_DLLTOOL=$DLLTOOL
8120: # Extract the first word of "dlltool", so it can be a program name with args.
8121: set dummy dlltool; ac_word=$2
1.22 ! moko 8122: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8123: $as_echo_n "checking for $ac_word... " >&6; }
! 8124: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
! 8125: $as_echo_n "(cached) " >&6
1.13 moko 8126: else
8127: if test -n "$ac_ct_DLLTOOL"; then
8128: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8129: else
8130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131: for as_dir in $PATH
8132: do
8133: IFS=$as_save_IFS
8134: test -z "$as_dir" && as_dir=.
1.22 ! moko 8135: for ac_exec_ext in '' $ac_executable_extensions; do
! 8136: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.13 moko 8137: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.22 ! moko 8138: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8139: break 2
8140: fi
8141: done
1.22 ! moko 8142: done
! 8143: IFS=$as_save_IFS
1.13 moko 8144:
8145: fi
8146: fi
8147: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8148: if test -n "$ac_ct_DLLTOOL"; then
1.22 ! moko 8149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
! 8150: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.13 moko 8151: else
1.22 ! moko 8152: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8153: $as_echo "no" >&6; }
1.13 moko 8154: fi
8155:
1.22 ! moko 8156: if test "x$ac_ct_DLLTOOL" = x; then
! 8157: DLLTOOL="false"
! 8158: else
! 8159: case $cross_compiling:$ac_tool_warned in
! 8160: yes:)
! 8161: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8162: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 8163: ac_tool_warned=yes ;;
! 8164: esac
! 8165: DLLTOOL=$ac_ct_DLLTOOL
! 8166: fi
1.13 moko 8167: else
8168: DLLTOOL="$ac_cv_prog_DLLTOOL"
8169: fi
8170:
8171: if test -n "$ac_tool_prefix"; then
8172: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8173: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.22 ! moko 8174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8175: $as_echo_n "checking for $ac_word... " >&6; }
! 8176: if ${ac_cv_prog_OBJDUMP+:} false; then :
! 8177: $as_echo_n "(cached) " >&6
1.13 moko 8178: else
8179: if test -n "$OBJDUMP"; then
8180: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8181: else
8182: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183: for as_dir in $PATH
8184: do
8185: IFS=$as_save_IFS
8186: test -z "$as_dir" && as_dir=.
1.22 ! moko 8187: for ac_exec_ext in '' $ac_executable_extensions; do
! 8188: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.13 moko 8189: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.22 ! moko 8190: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8191: break 2
8192: fi
8193: done
1.22 ! moko 8194: done
! 8195: IFS=$as_save_IFS
1.13 moko 8196:
8197: fi
8198: fi
8199: OBJDUMP=$ac_cv_prog_OBJDUMP
8200: if test -n "$OBJDUMP"; then
1.22 ! moko 8201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
! 8202: $as_echo "$OBJDUMP" >&6; }
1.13 moko 8203: else
1.22 ! moko 8204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8205: $as_echo "no" >&6; }
1.13 moko 8206: fi
8207:
1.22 ! moko 8208:
1.13 moko 8209: fi
8210: if test -z "$ac_cv_prog_OBJDUMP"; then
8211: ac_ct_OBJDUMP=$OBJDUMP
8212: # Extract the first word of "objdump", so it can be a program name with args.
8213: set dummy objdump; ac_word=$2
1.22 ! moko 8214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8215: $as_echo_n "checking for $ac_word... " >&6; }
! 8216: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
! 8217: $as_echo_n "(cached) " >&6
1.13 moko 8218: else
8219: if test -n "$ac_ct_OBJDUMP"; then
8220: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8221: else
8222: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223: for as_dir in $PATH
8224: do
8225: IFS=$as_save_IFS
8226: test -z "$as_dir" && as_dir=.
1.22 ! moko 8227: for ac_exec_ext in '' $ac_executable_extensions; do
! 8228: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.13 moko 8229: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.22 ! moko 8230: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8231: break 2
8232: fi
8233: done
1.22 ! moko 8234: done
! 8235: IFS=$as_save_IFS
1.13 moko 8236:
8237: fi
8238: fi
8239: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8240: if test -n "$ac_ct_OBJDUMP"; then
1.22 ! moko 8241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
! 8242: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.13 moko 8243: else
1.22 ! moko 8244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8245: $as_echo "no" >&6; }
1.13 moko 8246: fi
8247:
1.22 ! moko 8248: if test "x$ac_ct_OBJDUMP" = x; then
! 8249: OBJDUMP="false"
! 8250: else
! 8251: case $cross_compiling:$ac_tool_warned in
! 8252: yes:)
! 8253: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8254: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 8255: ac_tool_warned=yes ;;
! 8256: esac
! 8257: OBJDUMP=$ac_ct_OBJDUMP
! 8258: fi
1.13 moko 8259: else
8260: OBJDUMP="$ac_cv_prog_OBJDUMP"
8261: fi
8262:
8263: ;;
8264: esac
8265:
8266: test -z "$AS" && AS=as
8267:
8268:
8269:
8270:
8271:
8272: test -z "$DLLTOOL" && DLLTOOL=dlltool
8273:
8274:
8275:
8276:
8277:
8278: test -z "$OBJDUMP" && OBJDUMP=objdump
8279:
8280:
8281:
8282:
8283:
8284:
8285:
8286:
8287:
1.22 ! moko 8288: # Check whether --enable-shared was given.
! 8289: if test "${enable_shared+set}" = set; then :
! 8290: enableval=$enable_shared; p=${PACKAGE-default}
1.13 moko 8291: case $enableval in
8292: yes) enable_shared=yes ;;
8293: no) enable_shared=no ;;
8294: *)
8295: enable_shared=no
8296: # Look at the argument we got. We use all the common list separators.
8297: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8298: for pkg in $enableval; do
8299: IFS="$lt_save_ifs"
8300: if test "X$pkg" = "X$p"; then
8301: enable_shared=yes
8302: fi
8303: done
8304: IFS="$lt_save_ifs"
8305: ;;
8306: esac
8307: else
8308: enable_shared=yes
1.22 ! moko 8309: fi
1.8 moko 8310:
8311:
8312:
8313:
8314:
8315:
8316:
1.1 misha 8317:
1.8 moko 8318:
8319:
1.22 ! moko 8320:
! 8321: # Check whether --with-pic was given.
! 8322: if test "${with_pic+set}" = set; then :
! 8323: withval=$with_pic; lt_p=${PACKAGE-default}
1.8 moko 8324: case $withval in
8325: yes|no) pic_mode=$withval ;;
8326: *)
8327: pic_mode=default
8328: # Look at the argument we got. We use all the common list separators.
8329: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8330: for lt_pkg in $withval; do
8331: IFS="$lt_save_ifs"
8332: if test "X$lt_pkg" = "X$lt_p"; then
8333: pic_mode=yes
8334: fi
8335: done
8336: IFS="$lt_save_ifs"
8337: ;;
8338: esac
1.1 misha 8339: else
1.8 moko 8340: pic_mode=default
1.22 ! moko 8341: fi
! 8342:
1.8 moko 8343:
8344: test -z "$pic_mode" && pic_mode=default
8345:
8346:
8347:
8348:
8349:
8350:
1.1 misha 8351:
1.22 ! moko 8352: # Check whether --enable-fast-install was given.
! 8353: if test "${enable_fast_install+set}" = set; then :
! 8354: enableval=$enable_fast_install; p=${PACKAGE-default}
1.8 moko 8355: case $enableval in
8356: yes) enable_fast_install=yes ;;
8357: no) enable_fast_install=no ;;
8358: *)
8359: enable_fast_install=no
8360: # Look at the argument we got. We use all the common list separators.
8361: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8362: for pkg in $enableval; do
8363: IFS="$lt_save_ifs"
8364: if test "X$pkg" = "X$p"; then
8365: enable_fast_install=yes
8366: fi
8367: done
8368: IFS="$lt_save_ifs"
8369: ;;
8370: esac
1.1 misha 8371: else
1.8 moko 8372: enable_fast_install=yes
1.22 ! moko 8373: fi
! 8374:
1.8 moko 8375:
8376:
8377:
8378:
8379:
8380:
8381:
8382:
8383:
8384:
8385: # This can be used to rebuild libtool when needed
8386: LIBTOOL_DEPS="$ltmain"
8387:
8388: # Always use our own libtool.
8389: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8390:
8391:
8392:
8393:
8394:
8395:
8396:
8397:
8398:
8399:
8400:
8401:
8402:
8403:
8404:
8405:
8406:
8407:
8408:
8409:
8410:
8411:
8412:
8413:
8414:
8415:
8416:
8417:
8418:
8419:
8420: test -z "$LN_S" && LN_S="ln -s"
8421:
8422:
8423:
8424:
8425:
8426:
8427:
8428:
8429:
8430:
8431:
8432:
8433:
1.1 misha 8434:
1.8 moko 8435: if test -n "${ZSH_VERSION+set}" ; then
8436: setopt NO_GLOB_SUBST
1.1 misha 8437: fi
1.8 moko 8438:
1.22 ! moko 8439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
! 8440: $as_echo_n "checking for objdir... " >&6; }
! 8441: if ${lt_cv_objdir+:} false; then :
! 8442: $as_echo_n "(cached) " >&6
1.8 moko 8443: else
8444: rm -f .libs 2>/dev/null
8445: mkdir .libs 2>/dev/null
8446: if test -d .libs; then
8447: lt_cv_objdir=.libs
8448: else
8449: # MS-DOS does not allow filenames that begin with a dot.
8450: lt_cv_objdir=_libs
1.1 misha 8451: fi
1.8 moko 8452: rmdir .libs 2>/dev/null
8453: fi
1.22 ! moko 8454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
! 8455: $as_echo "$lt_cv_objdir" >&6; }
1.8 moko 8456: objdir=$lt_cv_objdir
1.1 misha 8457:
8458:
8459:
8460:
8461:
1.8 moko 8462: cat >>confdefs.h <<_ACEOF
8463: #define LT_OBJDIR "$lt_cv_objdir/"
8464: _ACEOF
1.1 misha 8465:
8466:
8467:
8468:
1.8 moko 8469: case $host_os in
8470: aix3*)
8471: # AIX sometimes has problems with the GCC collect2 program. For some
8472: # reason, if we set the COLLECT_NAMES environment variable, the problems
8473: # vanish in a puff of smoke.
8474: if test "X${COLLECT_NAMES+set}" != Xset; then
8475: COLLECT_NAMES=
8476: export COLLECT_NAMES
8477: fi
8478: ;;
8479: esac
1.1 misha 8480:
1.8 moko 8481: # Global variables:
8482: ofile=libtool
8483: can_build_shared=yes
1.1 misha 8484:
1.8 moko 8485: # All known linkers require a `.a' archive for static linking (except MSVC,
8486: # which needs '.lib').
8487: libext=a
1.1 misha 8488:
1.8 moko 8489: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.1 misha 8490:
1.8 moko 8491: old_CC="$CC"
8492: old_CFLAGS="$CFLAGS"
1.1 misha 8493:
1.8 moko 8494: # Set sane defaults for various variables
8495: test -z "$CC" && CC=cc
8496: test -z "$LTCC" && LTCC=$CC
8497: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8498: test -z "$LD" && LD=ld
8499: test -z "$ac_objext" && ac_objext=o
1.1 misha 8500:
1.8 moko 8501: for cc_temp in $compiler""; do
8502: case $cc_temp in
8503: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8504: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8505: \-*) ;;
8506: *) break;;
1.1 misha 8507: esac
1.8 moko 8508: done
8509: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 misha 8510:
8511:
1.8 moko 8512: # Only perform the check for file, if the check method requires it
8513: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8514: case $deplibs_check_method in
8515: file_magic*)
8516: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.22 ! moko 8517: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
! 8518: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
! 8519: if ${lt_cv_path_MAGIC_CMD+:} false; then :
! 8520: $as_echo_n "(cached) " >&6
1.8 moko 8521: else
8522: case $MAGIC_CMD in
8523: [\\/*] | ?:[\\/]*)
8524: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8525: ;;
8526: *)
8527: lt_save_MAGIC_CMD="$MAGIC_CMD"
8528: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8529: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8530: for ac_dir in $ac_dummy; do
8531: IFS="$lt_save_ifs"
8532: test -z "$ac_dir" && ac_dir=.
8533: if test -f $ac_dir/${ac_tool_prefix}file; then
8534: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8535: if test -n "$file_magic_test_file"; then
8536: case $deplibs_check_method in
8537: "file_magic "*)
8538: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8539: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8540: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8541: $EGREP "$file_magic_regex" > /dev/null; then
8542: :
8543: else
8544: cat <<_LT_EOF 1>&2
1.1 misha 8545:
1.8 moko 8546: *** Warning: the command libtool uses to detect shared libraries,
8547: *** $file_magic_cmd, produces output that libtool cannot recognize.
8548: *** The result is that libtool may fail to recognize shared libraries
8549: *** as such. This will affect the creation of libtool libraries that
8550: *** depend on shared libraries, but programs linked with such libtool
8551: *** libraries will work regardless of this problem. Nevertheless, you
8552: *** may want to report the problem to your system manager and/or to
8553: *** bug-libtool@gnu.org
1.1 misha 8554:
1.8 moko 8555: _LT_EOF
8556: fi ;;
8557: esac
8558: fi
8559: break
8560: fi
8561: done
8562: IFS="$lt_save_ifs"
8563: MAGIC_CMD="$lt_save_MAGIC_CMD"
8564: ;;
8565: esac
8566: fi
1.1 misha 8567:
1.8 moko 8568: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8569: if test -n "$MAGIC_CMD"; then
1.22 ! moko 8570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 8571: $as_echo "$MAGIC_CMD" >&6; }
1.1 misha 8572: else
1.22 ! moko 8573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8574: $as_echo "no" >&6; }
1.8 moko 8575: fi
8576:
1.1 misha 8577:
8578:
8579:
8580:
1.8 moko 8581: if test -z "$lt_cv_path_MAGIC_CMD"; then
8582: if test -n "$ac_tool_prefix"; then
1.22 ! moko 8583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
! 8584: $as_echo_n "checking for file... " >&6; }
! 8585: if ${lt_cv_path_MAGIC_CMD+:} false; then :
! 8586: $as_echo_n "(cached) " >&6
1.8 moko 8587: else
8588: case $MAGIC_CMD in
8589: [\\/*] | ?:[\\/]*)
8590: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8591: ;;
8592: *)
8593: lt_save_MAGIC_CMD="$MAGIC_CMD"
8594: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8595: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8596: for ac_dir in $ac_dummy; do
8597: IFS="$lt_save_ifs"
8598: test -z "$ac_dir" && ac_dir=.
8599: if test -f $ac_dir/file; then
8600: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8601: if test -n "$file_magic_test_file"; then
8602: case $deplibs_check_method in
8603: "file_magic "*)
8604: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8605: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8606: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8607: $EGREP "$file_magic_regex" > /dev/null; then
8608: :
8609: else
8610: cat <<_LT_EOF 1>&2
8611:
8612: *** Warning: the command libtool uses to detect shared libraries,
8613: *** $file_magic_cmd, produces output that libtool cannot recognize.
8614: *** The result is that libtool may fail to recognize shared libraries
8615: *** as such. This will affect the creation of libtool libraries that
8616: *** depend on shared libraries, but programs linked with such libtool
8617: *** libraries will work regardless of this problem. Nevertheless, you
8618: *** may want to report the problem to your system manager and/or to
8619: *** bug-libtool@gnu.org
1.1 misha 8620:
1.8 moko 8621: _LT_EOF
8622: fi ;;
8623: esac
8624: fi
8625: break
8626: fi
8627: done
8628: IFS="$lt_save_ifs"
8629: MAGIC_CMD="$lt_save_MAGIC_CMD"
8630: ;;
8631: esac
8632: fi
1.1 misha 8633:
1.8 moko 8634: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8635: if test -n "$MAGIC_CMD"; then
1.22 ! moko 8636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 8637: $as_echo "$MAGIC_CMD" >&6; }
1.8 moko 8638: else
1.22 ! moko 8639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8640: $as_echo "no" >&6; }
1.8 moko 8641: fi
1.1 misha 8642:
8643:
1.8 moko 8644: else
8645: MAGIC_CMD=:
1.1 misha 8646: fi
8647: fi
1.8 moko 8648:
8649: fi
8650: ;;
8651: esac
8652:
8653: # Use C for the default configuration in the libtool script
8654:
8655: lt_save_CC="$CC"
8656: ac_ext=c
8657: ac_cpp='$CPP $CPPFLAGS'
8658: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8659: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8660: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8661:
8662:
8663: # Source file extension for C test sources.
8664: ac_ext=c
8665:
8666: # Object file extension for compiled C test sources.
8667: objext=o
8668: objext=$objext
8669:
8670: # Code to be used in simple compile tests
8671: lt_simple_compile_test_code="int some_variable = 0;"
8672:
8673: # Code to be used in simple link tests
8674: lt_simple_link_test_code='int main(){return(0);}'
1.1 misha 8675:
8676:
8677:
8678:
8679:
8680:
8681:
1.8 moko 8682: # If no C compiler was specified, use CC.
8683: LTCC=${LTCC-"$CC"}
1.1 misha 8684:
1.8 moko 8685: # If no C compiler flags were specified, use CFLAGS.
8686: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 misha 8687:
1.8 moko 8688: # Allow CC to be a program name with arguments.
8689: compiler=$CC
1.1 misha 8690:
1.8 moko 8691: # Save the default compiler, since it gets overwritten when the other
8692: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8693: compiler_DEFAULT=$CC
1.1 misha 8694:
1.8 moko 8695: # save warnings/boilerplate of simple test code
8696: ac_outfile=conftest.$ac_objext
8697: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8698: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8699: _lt_compiler_boilerplate=`cat conftest.err`
8700: $RM conftest*
1.1 misha 8701:
1.8 moko 8702: ac_outfile=conftest.$ac_objext
8703: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8704: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8705: _lt_linker_boilerplate=`cat conftest.err`
8706: $RM -r conftest*
1.1 misha 8707:
8708:
1.12 moko 8709: ## CAVEAT EMPTOR:
8710: ## There is no encapsulation within the following macros, do not change
8711: ## the running order or otherwise move them around unless you know exactly
8712: ## what you are doing...
1.8 moko 8713: if test -n "$compiler"; then
1.1 misha 8714:
1.8 moko 8715: lt_prog_compiler_no_builtin_flag=
1.1 misha 8716:
1.8 moko 8717: if test "$GCC" = yes; then
8718: case $cc_basename in
8719: nvcc*)
8720: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8721: *)
8722: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.1 misha 8723: esac
8724:
1.22 ! moko 8725: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 8726: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
! 8727: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
! 8728: $as_echo_n "(cached) " >&6
1.1 misha 8729: else
1.8 moko 8730: lt_cv_prog_compiler_rtti_exceptions=no
8731: ac_outfile=conftest.$ac_objext
8732: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8733: lt_compiler_flag="-fno-rtti -fno-exceptions"
8734: # Insert the option either (1) after the last *FLAGS variable, or
8735: # (2) before a word containing "conftest.", or (3) at the end.
8736: # Note that $ac_compile itself does not contain backslashes and begins
8737: # with a dollar sign (not a hyphen), so the echo should work correctly.
8738: # The option is referenced via a variable to avoid confusing sed.
8739: lt_compile=`echo "$ac_compile" | $SED \
8740: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8741: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8742: -e 's:$: $lt_compiler_flag:'`
8743: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8744: (eval "$lt_compile" 2>conftest.err)
8745: ac_status=$?
8746: cat conftest.err >&5
8747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748: if (exit $ac_status) && test -s "$ac_outfile"; then
8749: # The compiler can only warn and ignore the option if not recognized
8750: # So say no if there are warnings other than the usual output.
8751: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8752: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8753: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8754: lt_cv_prog_compiler_rtti_exceptions=yes
8755: fi
8756: fi
8757: $RM conftest*
1.1 misha 8758:
8759: fi
1.22 ! moko 8760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 8761: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.1 misha 8762:
1.8 moko 8763: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8764: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8765: else
8766: :
1.1 misha 8767: fi
8768:
1.8 moko 8769: fi
1.1 misha 8770:
8771:
8772:
8773:
8774:
8775:
1.8 moko 8776: lt_prog_compiler_wl=
8777: lt_prog_compiler_pic=
8778: lt_prog_compiler_static=
1.1 misha 8779:
8780:
1.8 moko 8781: if test "$GCC" = yes; then
8782: lt_prog_compiler_wl='-Wl,'
8783: lt_prog_compiler_static='-static'
1.1 misha 8784:
1.8 moko 8785: case $host_os in
8786: aix*)
8787: # All AIX code is PIC.
8788: if test "$host_cpu" = ia64; then
8789: # AIX 5 now supports IA64 processor
8790: lt_prog_compiler_static='-Bstatic'
8791: fi
8792: ;;
1.1 misha 8793:
1.8 moko 8794: amigaos*)
8795: case $host_cpu in
8796: powerpc)
8797: # see comment about AmigaOS4 .so support
8798: lt_prog_compiler_pic='-fPIC'
8799: ;;
8800: m68k)
8801: # FIXME: we need at least 68020 code to build shared libraries, but
8802: # adding the `-m68020' flag to GCC prevents building anything better,
8803: # like `-m68040'.
8804: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8805: ;;
8806: esac
8807: ;;
1.1 misha 8808:
1.8 moko 8809: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8810: # PIC is the default for these OSes.
8811: ;;
1.1 misha 8812:
1.8 moko 8813: mingw* | cygwin* | pw32* | os2* | cegcc*)
8814: # This hack is so that the source file can tell whether it is being
8815: # built for inclusion in a dll (and should export symbols for example).
8816: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8817: # (--disable-auto-import) libraries
8818: lt_prog_compiler_pic='-DDLL_EXPORT'
8819: ;;
1.1 misha 8820:
1.8 moko 8821: darwin* | rhapsody*)
8822: # PIC is the default on this platform
8823: # Common symbols not allowed in MH_DYLIB files
8824: lt_prog_compiler_pic='-fno-common'
8825: ;;
1.1 misha 8826:
1.8 moko 8827: haiku*)
8828: # PIC is the default for Haiku.
8829: # The "-static" flag exists, but is broken.
8830: lt_prog_compiler_static=
8831: ;;
1.1 misha 8832:
1.8 moko 8833: hpux*)
8834: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8835: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8836: # sets the default TLS model and affects inlining.
8837: case $host_cpu in
8838: hppa*64*)
8839: # +Z the default
8840: ;;
8841: *)
8842: lt_prog_compiler_pic='-fPIC'
8843: ;;
8844: esac
8845: ;;
1.1 misha 8846:
1.8 moko 8847: interix[3-9]*)
8848: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8849: # Instead, we relocate shared libraries at runtime.
8850: ;;
1.1 misha 8851:
1.8 moko 8852: msdosdjgpp*)
8853: # Just because we use GCC doesn't mean we suddenly get shared libraries
8854: # on systems that don't support them.
8855: lt_prog_compiler_can_build_shared=no
8856: enable_shared=no
8857: ;;
1.1 misha 8858:
1.8 moko 8859: *nto* | *qnx*)
8860: # QNX uses GNU C++, but need to define -shared option too, otherwise
8861: # it will coredump.
8862: lt_prog_compiler_pic='-fPIC -shared'
8863: ;;
1.1 misha 8864:
1.8 moko 8865: sysv4*MP*)
8866: if test -d /usr/nec; then
8867: lt_prog_compiler_pic=-Kconform_pic
8868: fi
8869: ;;
1.1 misha 8870:
1.8 moko 8871: *)
8872: lt_prog_compiler_pic='-fPIC'
8873: ;;
8874: esac
1.1 misha 8875:
1.8 moko 8876: case $cc_basename in
8877: nvcc*) # Cuda Compiler Driver 2.2
8878: lt_prog_compiler_wl='-Xlinker '
8879: if test -n "$lt_prog_compiler_pic"; then
8880: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8881: fi
8882: ;;
8883: esac
8884: else
8885: # PORTME Check for flag to pass linker flags through the system compiler.
8886: case $host_os in
8887: aix*)
8888: lt_prog_compiler_wl='-Wl,'
8889: if test "$host_cpu" = ia64; then
8890: # AIX 5 now supports IA64 processor
8891: lt_prog_compiler_static='-Bstatic'
8892: else
8893: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8894: fi
8895: ;;
1.1 misha 8896:
1.8 moko 8897: mingw* | cygwin* | pw32* | os2* | cegcc*)
8898: # This hack is so that the source file can tell whether it is being
8899: # built for inclusion in a dll (and should export symbols for example).
8900: lt_prog_compiler_pic='-DDLL_EXPORT'
8901: ;;
1.1 misha 8902:
1.8 moko 8903: hpux9* | hpux10* | hpux11*)
8904: lt_prog_compiler_wl='-Wl,'
8905: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8906: # not for PA HP-UX.
8907: case $host_cpu in
8908: hppa*64*|ia64*)
8909: # +Z the default
8910: ;;
8911: *)
8912: lt_prog_compiler_pic='+Z'
8913: ;;
8914: esac
8915: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8916: lt_prog_compiler_static='${wl}-a ${wl}archive'
8917: ;;
1.1 misha 8918:
1.8 moko 8919: irix5* | irix6* | nonstopux*)
8920: lt_prog_compiler_wl='-Wl,'
8921: # PIC (with -KPIC) is the default.
8922: lt_prog_compiler_static='-non_shared'
8923: ;;
1.1 misha 8924:
1.8 moko 8925: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8926: case $cc_basename in
8927: # old Intel for x86_64 which still supported -KPIC.
8928: ecc*)
8929: lt_prog_compiler_wl='-Wl,'
8930: lt_prog_compiler_pic='-KPIC'
8931: lt_prog_compiler_static='-static'
8932: ;;
8933: # icc used to be incompatible with GCC.
8934: # ICC 10 doesn't accept -KPIC any more.
8935: icc* | ifort*)
8936: lt_prog_compiler_wl='-Wl,'
8937: lt_prog_compiler_pic='-fPIC'
8938: lt_prog_compiler_static='-static'
8939: ;;
8940: # Lahey Fortran 8.1.
8941: lf95*)
8942: lt_prog_compiler_wl='-Wl,'
8943: lt_prog_compiler_pic='--shared'
8944: lt_prog_compiler_static='--static'
8945: ;;
8946: nagfor*)
8947: # NAG Fortran compiler
8948: lt_prog_compiler_wl='-Wl,-Wl,,'
8949: lt_prog_compiler_pic='-PIC'
8950: lt_prog_compiler_static='-Bstatic'
8951: ;;
8952: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8953: # Portland Group compilers (*not* the Pentium gcc compiler,
8954: # which looks to be a dead project)
8955: lt_prog_compiler_wl='-Wl,'
8956: lt_prog_compiler_pic='-fpic'
8957: lt_prog_compiler_static='-Bstatic'
8958: ;;
8959: ccc*)
8960: lt_prog_compiler_wl='-Wl,'
8961: # All Alpha code is PIC.
8962: lt_prog_compiler_static='-non_shared'
8963: ;;
8964: xl* | bgxl* | bgf* | mpixl*)
8965: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8966: lt_prog_compiler_wl='-Wl,'
8967: lt_prog_compiler_pic='-qpic'
8968: lt_prog_compiler_static='-qstaticlink'
8969: ;;
8970: *)
8971: case `$CC -V 2>&1 | sed 5q` in
8972: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8973: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8974: lt_prog_compiler_pic='-KPIC'
8975: lt_prog_compiler_static='-Bstatic'
8976: lt_prog_compiler_wl=''
8977: ;;
8978: *Sun\ F* | *Sun*Fortran*)
8979: lt_prog_compiler_pic='-KPIC'
8980: lt_prog_compiler_static='-Bstatic'
8981: lt_prog_compiler_wl='-Qoption ld '
8982: ;;
8983: *Sun\ C*)
8984: # Sun C 5.9
8985: lt_prog_compiler_pic='-KPIC'
8986: lt_prog_compiler_static='-Bstatic'
8987: lt_prog_compiler_wl='-Wl,'
8988: ;;
8989: *Intel*\ [CF]*Compiler*)
8990: lt_prog_compiler_wl='-Wl,'
8991: lt_prog_compiler_pic='-fPIC'
8992: lt_prog_compiler_static='-static'
8993: ;;
8994: *Portland\ Group*)
8995: lt_prog_compiler_wl='-Wl,'
8996: lt_prog_compiler_pic='-fpic'
8997: lt_prog_compiler_static='-Bstatic'
8998: ;;
8999: esac
9000: ;;
9001: esac
9002: ;;
1.1 misha 9003:
1.8 moko 9004: newsos6)
9005: lt_prog_compiler_pic='-KPIC'
9006: lt_prog_compiler_static='-Bstatic'
9007: ;;
1.1 misha 9008:
1.8 moko 9009: *nto* | *qnx*)
9010: # QNX uses GNU C++, but need to define -shared option too, otherwise
9011: # it will coredump.
9012: lt_prog_compiler_pic='-fPIC -shared'
9013: ;;
1.1 misha 9014:
1.8 moko 9015: osf3* | osf4* | osf5*)
9016: lt_prog_compiler_wl='-Wl,'
9017: # All OSF/1 code is PIC.
9018: lt_prog_compiler_static='-non_shared'
9019: ;;
1.1 misha 9020:
1.8 moko 9021: rdos*)
9022: lt_prog_compiler_static='-non_shared'
9023: ;;
1.1 misha 9024:
1.8 moko 9025: solaris*)
9026: lt_prog_compiler_pic='-KPIC'
9027: lt_prog_compiler_static='-Bstatic'
9028: case $cc_basename in
9029: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9030: lt_prog_compiler_wl='-Qoption ld ';;
9031: *)
9032: lt_prog_compiler_wl='-Wl,';;
9033: esac
9034: ;;
1.1 misha 9035:
1.8 moko 9036: sunos4*)
9037: lt_prog_compiler_wl='-Qoption ld '
9038: lt_prog_compiler_pic='-PIC'
9039: lt_prog_compiler_static='-Bstatic'
9040: ;;
1.1 misha 9041:
1.8 moko 9042: sysv4 | sysv4.2uw2* | sysv4.3*)
9043: lt_prog_compiler_wl='-Wl,'
9044: lt_prog_compiler_pic='-KPIC'
9045: lt_prog_compiler_static='-Bstatic'
9046: ;;
1.1 misha 9047:
1.8 moko 9048: sysv4*MP*)
9049: if test -d /usr/nec ;then
9050: lt_prog_compiler_pic='-Kconform_pic'
9051: lt_prog_compiler_static='-Bstatic'
9052: fi
9053: ;;
1.1 misha 9054:
1.8 moko 9055: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9056: lt_prog_compiler_wl='-Wl,'
9057: lt_prog_compiler_pic='-KPIC'
9058: lt_prog_compiler_static='-Bstatic'
9059: ;;
1.1 misha 9060:
1.8 moko 9061: unicos*)
9062: lt_prog_compiler_wl='-Wl,'
9063: lt_prog_compiler_can_build_shared=no
9064: ;;
1.1 misha 9065:
1.8 moko 9066: uts4*)
9067: lt_prog_compiler_pic='-pic'
9068: lt_prog_compiler_static='-Bstatic'
9069: ;;
1.1 misha 9070:
1.8 moko 9071: *)
9072: lt_prog_compiler_can_build_shared=no
9073: ;;
9074: esac
9075: fi
1.1 misha 9076:
1.8 moko 9077: case $host_os in
9078: # For platforms which do not support PIC, -DPIC is meaningless:
9079: *djgpp*)
9080: lt_prog_compiler_pic=
9081: ;;
9082: *)
9083: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9084: ;;
9085: esac
1.1 misha 9086:
1.22 ! moko 9087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 9088: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
! 9089: if ${lt_cv_prog_compiler_pic+:} false; then :
! 9090: $as_echo_n "(cached) " >&6
1.8 moko 9091: else
9092: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9093: fi
1.22 ! moko 9094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
! 9095: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.8 moko 9096: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misha 9097:
1.8 moko 9098: #
9099: # Check to make sure the PIC flag actually works.
9100: #
9101: if test -n "$lt_prog_compiler_pic"; then
1.22 ! moko 9102: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 9103: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
! 9104: if ${lt_cv_prog_compiler_pic_works+:} false; then :
! 9105: $as_echo_n "(cached) " >&6
1.8 moko 9106: else
9107: lt_cv_prog_compiler_pic_works=no
9108: ac_outfile=conftest.$ac_objext
9109: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9110: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9111: # Insert the option either (1) after the last *FLAGS variable, or
9112: # (2) before a word containing "conftest.", or (3) at the end.
9113: # Note that $ac_compile itself does not contain backslashes and begins
9114: # with a dollar sign (not a hyphen), so the echo should work correctly.
9115: # The option is referenced via a variable to avoid confusing sed.
9116: lt_compile=`echo "$ac_compile" | $SED \
9117: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9118: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9119: -e 's:$: $lt_compiler_flag:'`
9120: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9121: (eval "$lt_compile" 2>conftest.err)
9122: ac_status=$?
9123: cat conftest.err >&5
9124: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125: if (exit $ac_status) && test -s "$ac_outfile"; then
9126: # The compiler can only warn and ignore the option if not recognized
9127: # So say no if there are warnings other than the usual output.
9128: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9129: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9130: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9131: lt_cv_prog_compiler_pic_works=yes
9132: fi
9133: fi
9134: $RM conftest*
1.1 misha 9135:
1.8 moko 9136: fi
1.22 ! moko 9137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
! 9138: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.1 misha 9139:
1.8 moko 9140: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9141: case $lt_prog_compiler_pic in
9142: "" | " "*) ;;
9143: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9144: esac
9145: else
9146: lt_prog_compiler_pic=
9147: lt_prog_compiler_can_build_shared=no
9148: fi
1.1 misha 9149:
1.8 moko 9150: fi
1.1 misha 9151:
9152:
9153:
9154:
9155:
9156:
9157:
9158:
9159:
9160:
9161:
1.8 moko 9162: #
9163: # Check to make sure the static flag actually works.
9164: #
9165: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.22 ! moko 9166: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 9167: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 9168: if ${lt_cv_prog_compiler_static_works+:} false; then :
! 9169: $as_echo_n "(cached) " >&6
1.8 moko 9170: else
9171: lt_cv_prog_compiler_static_works=no
9172: save_LDFLAGS="$LDFLAGS"
9173: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9174: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9175: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9176: # The linker can only warn and ignore the option if not recognized
9177: # So say no if there are warnings
9178: if test -s conftest.err; then
9179: # Append any errors to the config.log.
9180: cat conftest.err 1>&5
9181: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9182: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9183: if diff conftest.exp conftest.er2 >/dev/null; then
9184: lt_cv_prog_compiler_static_works=yes
9185: fi
9186: else
9187: lt_cv_prog_compiler_static_works=yes
9188: fi
9189: fi
9190: $RM -r conftest*
9191: LDFLAGS="$save_LDFLAGS"
1.1 misha 9192:
1.8 moko 9193: fi
1.22 ! moko 9194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
! 9195: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.1 misha 9196:
1.8 moko 9197: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9198: :
9199: else
9200: lt_prog_compiler_static=
9201: fi
1.1 misha 9202:
9203:
9204:
9205:
9206:
9207:
9208:
1.22 ! moko 9209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 9210: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 9211: if ${lt_cv_prog_compiler_c_o+:} false; then :
! 9212: $as_echo_n "(cached) " >&6
1.8 moko 9213: else
9214: lt_cv_prog_compiler_c_o=no
9215: $RM -r conftest 2>/dev/null
9216: mkdir conftest
9217: cd conftest
9218: mkdir out
9219: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9220:
9221: lt_compiler_flag="-o out/conftest2.$ac_objext"
9222: # Insert the option either (1) after the last *FLAGS variable, or
9223: # (2) before a word containing "conftest.", or (3) at the end.
9224: # Note that $ac_compile itself does not contain backslashes and begins
9225: # with a dollar sign (not a hyphen), so the echo should work correctly.
9226: lt_compile=`echo "$ac_compile" | $SED \
9227: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9228: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9229: -e 's:$: $lt_compiler_flag:'`
9230: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9231: (eval "$lt_compile" 2>out/conftest.err)
9232: ac_status=$?
9233: cat out/conftest.err >&5
9234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9236: then
9237: # The compiler can only warn and ignore the option if not recognized
9238: # So say no if there are warnings
9239: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9240: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9241: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9242: lt_cv_prog_compiler_c_o=yes
9243: fi
9244: fi
9245: chmod u+w . 2>&5
9246: $RM conftest*
9247: # SGI C++ compiler will create directory out/ii_files/ for
9248: # template instantiation
9249: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9250: $RM out/* && rmdir out
9251: cd ..
9252: $RM -r conftest
9253: $RM conftest*
1.1 misha 9254:
1.8 moko 9255: fi
1.22 ! moko 9256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 9257: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.1 misha 9258:
9259:
9260:
9261:
9262:
9263:
1.22 ! moko 9264: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 9265: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 9266: if ${lt_cv_prog_compiler_c_o+:} false; then :
! 9267: $as_echo_n "(cached) " >&6
1.8 moko 9268: else
9269: lt_cv_prog_compiler_c_o=no
9270: $RM -r conftest 2>/dev/null
9271: mkdir conftest
9272: cd conftest
9273: mkdir out
9274: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9275:
9276: lt_compiler_flag="-o out/conftest2.$ac_objext"
9277: # Insert the option either (1) after the last *FLAGS variable, or
9278: # (2) before a word containing "conftest.", or (3) at the end.
9279: # Note that $ac_compile itself does not contain backslashes and begins
9280: # with a dollar sign (not a hyphen), so the echo should work correctly.
9281: lt_compile=`echo "$ac_compile" | $SED \
9282: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9283: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9284: -e 's:$: $lt_compiler_flag:'`
9285: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9286: (eval "$lt_compile" 2>out/conftest.err)
9287: ac_status=$?
9288: cat out/conftest.err >&5
9289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9291: then
9292: # The compiler can only warn and ignore the option if not recognized
9293: # So say no if there are warnings
9294: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9295: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9296: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9297: lt_cv_prog_compiler_c_o=yes
9298: fi
9299: fi
9300: chmod u+w . 2>&5
9301: $RM conftest*
9302: # SGI C++ compiler will create directory out/ii_files/ for
9303: # template instantiation
9304: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9305: $RM out/* && rmdir out
9306: cd ..
9307: $RM -r conftest
9308: $RM conftest*
1.1 misha 9309:
1.8 moko 9310: fi
1.22 ! moko 9311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 9312: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.1 misha 9313:
9314:
9315:
9316:
1.8 moko 9317: hard_links="nottested"
9318: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9319: # do not overwrite the value of need_locks provided by the user
1.22 ! moko 9320: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
! 9321: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.8 moko 9322: hard_links=yes
9323: $RM conftest*
9324: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9325: touch conftest.a
9326: ln conftest.a conftest.b 2>&5 || hard_links=no
9327: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.22 ! moko 9328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
! 9329: $as_echo "$hard_links" >&6; }
1.8 moko 9330: if test "$hard_links" = no; then
1.22 ! moko 9331: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 9332: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 9333: need_locks=warn
9334: fi
9335: else
9336: need_locks=no
9337: fi
1.1 misha 9338:
9339:
9340:
9341:
9342:
9343:
1.22 ! moko 9344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 9345: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.1 misha 9346:
1.8 moko 9347: runpath_var=
9348: allow_undefined_flag=
9349: always_export_symbols=no
9350: archive_cmds=
9351: archive_expsym_cmds=
9352: compiler_needs_object=no
9353: enable_shared_with_static_runtimes=no
9354: export_dynamic_flag_spec=
9355: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9356: hardcode_automatic=no
9357: hardcode_direct=no
9358: hardcode_direct_absolute=no
9359: hardcode_libdir_flag_spec=
9360: hardcode_libdir_separator=
9361: hardcode_minus_L=no
9362: hardcode_shlibpath_var=unsupported
9363: inherit_rpath=no
9364: link_all_deplibs=unknown
9365: module_cmds=
9366: module_expsym_cmds=
9367: old_archive_from_new_cmds=
9368: old_archive_from_expsyms_cmds=
9369: thread_safe_flag_spec=
9370: whole_archive_flag_spec=
9371: # include_expsyms should be a list of space-separated symbols to be *always*
9372: # included in the symbol list
9373: include_expsyms=
9374: # exclude_expsyms can be an extended regexp of symbols to exclude
9375: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9376: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9377: # as well as any symbol that contains `d'.
9378: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9379: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9380: # platforms (ab)use it in PIC code, but their linkers get confused if
9381: # the symbol is explicitly referenced. Since portable code cannot
9382: # rely on this symbol name, it's probably fine to never include it in
9383: # preloaded symbol tables.
9384: # Exclude shared library initialization/finalization symbols.
9385: extract_expsyms_cmds=
1.1 misha 9386:
1.8 moko 9387: case $host_os in
9388: cygwin* | mingw* | pw32* | cegcc*)
9389: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9390: # When not using gcc, we currently assume that we are using
9391: # Microsoft Visual C++.
9392: if test "$GCC" != yes; then
9393: with_gnu_ld=no
9394: fi
9395: ;;
9396: interix*)
9397: # we just hope/assume this is gcc and not c89 (= MSVC++)
9398: with_gnu_ld=yes
9399: ;;
9400: openbsd*)
9401: with_gnu_ld=no
9402: ;;
9403: esac
1.1 misha 9404:
1.8 moko 9405: ld_shlibs=yes
1.1 misha 9406:
1.8 moko 9407: # On some targets, GNU ld is compatible enough with the native linker
9408: # that we're better off using the native interface for both.
9409: lt_use_gnu_ld_interface=no
9410: if test "$with_gnu_ld" = yes; then
9411: case $host_os in
9412: aix*)
9413: # The AIX port of GNU ld has always aspired to compatibility
9414: # with the native linker. However, as the warning in the GNU ld
9415: # block says, versions before 2.19.5* couldn't really create working
9416: # shared libraries, regardless of the interface used.
9417: case `$LD -v 2>&1` in
9418: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9419: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9420: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9421: *)
9422: lt_use_gnu_ld_interface=yes
9423: ;;
9424: esac
9425: ;;
9426: *)
9427: lt_use_gnu_ld_interface=yes
9428: ;;
9429: esac
9430: fi
1.1 misha 9431:
1.8 moko 9432: if test "$lt_use_gnu_ld_interface" = yes; then
9433: # If archive_cmds runs LD, not CC, wlarc should be empty
9434: wlarc='${wl}'
9435:
9436: # Set some defaults for GNU ld with shared library support. These
9437: # are reset later if shared libraries are not supported. Putting them
9438: # here allows them to be overridden if necessary.
9439: runpath_var=LD_RUN_PATH
9440: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9441: export_dynamic_flag_spec='${wl}--export-dynamic'
9442: # ancient GNU ld didn't support --whole-archive et. al.
9443: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9444: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9445: else
9446: whole_archive_flag_spec=
9447: fi
9448: supports_anon_versioning=no
9449: case `$LD -v 2>&1` in
9450: *GNU\ gold*) supports_anon_versioning=yes ;;
9451: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9452: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9453: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9454: *\ 2.11.*) ;; # other 2.11 versions
9455: *) supports_anon_versioning=yes ;;
9456: esac
1.1 misha 9457:
1.8 moko 9458: # See if GNU ld supports shared libraries.
9459: case $host_os in
9460: aix[3-9]*)
9461: # On AIX/PPC, the GNU linker is very broken
9462: if test "$host_cpu" != ia64; then
9463: ld_shlibs=no
9464: cat <<_LT_EOF 1>&2
1.1 misha 9465:
1.8 moko 9466: *** Warning: the GNU linker, at least up to release 2.19, is reported
9467: *** to be unable to reliably create shared libraries on AIX.
9468: *** Therefore, libtool is disabling shared libraries support. If you
9469: *** really care for shared libraries, you may want to install binutils
9470: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9471: *** You will then need to restart the configuration process.
1.1 misha 9472:
1.8 moko 9473: _LT_EOF
9474: fi
9475: ;;
1.1 misha 9476:
1.8 moko 9477: amigaos*)
9478: case $host_cpu in
9479: powerpc)
9480: # see comment about AmigaOS4 .so support
9481: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482: archive_expsym_cmds=''
9483: ;;
9484: m68k)
9485: 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)'
9486: hardcode_libdir_flag_spec='-L$libdir'
9487: hardcode_minus_L=yes
9488: ;;
9489: esac
9490: ;;
1.1 misha 9491:
1.8 moko 9492: beos*)
9493: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9494: allow_undefined_flag=unsupported
9495: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9496: # support --undefined. This deserves some investigation. FIXME
9497: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498: else
9499: ld_shlibs=no
9500: fi
9501: ;;
1.1 misha 9502:
1.8 moko 9503: cygwin* | mingw* | pw32* | cegcc*)
9504: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9505: # as there is no search path for DLLs.
9506: hardcode_libdir_flag_spec='-L$libdir'
9507: export_dynamic_flag_spec='${wl}--export-all-symbols'
9508: allow_undefined_flag=unsupported
9509: always_export_symbols=no
9510: enable_shared_with_static_runtimes=yes
9511: 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'
9512: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9513:
9514: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9515: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9516: # If the export-symbols file already is a .def file (1st line
9517: # is EXPORTS), use it as is; otherwise, prepend...
9518: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9519: cp $export_symbols $output_objdir/$soname.def;
9520: else
9521: echo EXPORTS > $output_objdir/$soname.def;
9522: cat $export_symbols >> $output_objdir/$soname.def;
9523: fi~
9524: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9525: else
9526: ld_shlibs=no
9527: fi
9528: ;;
1.1 misha 9529:
1.8 moko 9530: haiku*)
9531: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9532: link_all_deplibs=yes
9533: ;;
1.1 misha 9534:
1.8 moko 9535: interix[3-9]*)
9536: hardcode_direct=no
9537: hardcode_shlibpath_var=no
9538: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9539: export_dynamic_flag_spec='${wl}-E'
9540: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9541: # Instead, shared libraries are loaded at an image base (0x10000000 by
9542: # default) and relocated if they conflict, which is a slow very memory
9543: # consuming and fragmenting process. To avoid this, we pick a random,
9544: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9545: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9546: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9547: 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'
9548: ;;
1.1 misha 9549:
1.8 moko 9550: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9551: tmp_diet=no
9552: if test "$host_os" = linux-dietlibc; then
9553: case $cc_basename in
9554: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9555: esac
9556: fi
9557: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9558: && test "$tmp_diet" = no
9559: then
9560: tmp_addflag=' $pic_flag'
9561: tmp_sharedflag='-shared'
9562: case $cc_basename,$host_cpu in
9563: pgcc*) # Portland Group C compiler
9564: 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'
9565: tmp_addflag=' $pic_flag'
9566: ;;
9567: pgf77* | pgf90* | pgf95* | pgfortran*)
9568: # Portland Group f77 and f90 compilers
9569: 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'
9570: tmp_addflag=' $pic_flag -Mnomain' ;;
9571: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9572: tmp_addflag=' -i_dynamic' ;;
9573: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9574: tmp_addflag=' -i_dynamic -nofor_main' ;;
9575: ifc* | ifort*) # Intel Fortran compiler
9576: tmp_addflag=' -nofor_main' ;;
9577: lf95*) # Lahey Fortran 8.1
9578: whole_archive_flag_spec=
9579: tmp_sharedflag='--shared' ;;
9580: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9581: tmp_sharedflag='-qmkshrobj'
9582: tmp_addflag= ;;
9583: nvcc*) # Cuda Compiler Driver 2.2
9584: 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'
9585: compiler_needs_object=yes
9586: ;;
9587: esac
9588: case `$CC -V 2>&1 | sed 5q` in
9589: *Sun\ C*) # Sun C 5.9
9590: 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'
9591: compiler_needs_object=yes
9592: tmp_sharedflag='-G' ;;
9593: *Sun\ F*) # Sun Fortran 8.3
9594: tmp_sharedflag='-G' ;;
9595: esac
9596: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1 misha 9597:
1.8 moko 9598: if test "x$supports_anon_versioning" = xyes; then
9599: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9600: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9601: echo "local: *; };" >> $output_objdir/$libname.ver~
9602: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9603: fi
9604:
9605: case $cc_basename in
9606: xlf* | bgf* | bgxlf* | mpixlf*)
9607: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9608: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9609: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9610: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9611: if test "x$supports_anon_versioning" = xyes; then
9612: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9613: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9614: echo "local: *; };" >> $output_objdir/$libname.ver~
9615: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9616: fi
9617: ;;
9618: esac
9619: else
9620: ld_shlibs=no
9621: fi
9622: ;;
1.1 misha 9623:
1.8 moko 9624: netbsd*)
9625: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9626: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9627: wlarc=
9628: else
9629: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9631: fi
9632: ;;
1.1 misha 9633:
1.8 moko 9634: solaris*)
9635: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9636: ld_shlibs=no
9637: cat <<_LT_EOF 1>&2
1.1 misha 9638:
1.8 moko 9639: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9640: *** create shared libraries on Solaris systems. Therefore, libtool
9641: *** is disabling shared libraries support. We urge you to upgrade GNU
9642: *** binutils to release 2.9.1 or newer. Another option is to modify
9643: *** your PATH or compiler configuration so that the native linker is
9644: *** used, and then restart.
1.1 misha 9645:
1.8 moko 9646: _LT_EOF
9647: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9648: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9650: else
9651: ld_shlibs=no
9652: fi
9653: ;;
1.1 misha 9654:
1.8 moko 9655: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9656: case `$LD -v 2>&1` in
9657: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9658: ld_shlibs=no
9659: cat <<_LT_EOF 1>&2
1.1 misha 9660:
1.8 moko 9661: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9662: *** reliably create shared libraries on SCO systems. Therefore, libtool
9663: *** is disabling shared libraries support. We urge you to upgrade GNU
9664: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9665: *** your PATH or compiler configuration so that the native linker is
9666: *** used, and then restart.
1.1 misha 9667:
1.8 moko 9668: _LT_EOF
9669: ;;
9670: *)
9671: # For security reasons, it is highly recommended that you always
9672: # use absolute paths for naming shared libraries, and exclude the
9673: # DT_RUNPATH tag from executables and libraries. But doing so
9674: # requires that you compile everything twice, which is a pain.
9675: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9676: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9677: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9678: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9679: else
9680: ld_shlibs=no
9681: fi
9682: ;;
9683: esac
9684: ;;
1.1 misha 9685:
1.8 moko 9686: sunos4*)
9687: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9688: wlarc=
9689: hardcode_direct=yes
9690: hardcode_shlibpath_var=no
9691: ;;
1.1 misha 9692:
1.8 moko 9693: *)
9694: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9695: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9696: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9697: else
9698: ld_shlibs=no
9699: fi
9700: ;;
9701: esac
1.1 misha 9702:
1.8 moko 9703: if test "$ld_shlibs" = no; then
9704: runpath_var=
9705: hardcode_libdir_flag_spec=
9706: export_dynamic_flag_spec=
9707: whole_archive_flag_spec=
9708: fi
9709: else
9710: # PORTME fill in a description of your system's linker (not GNU ld)
9711: case $host_os in
9712: aix3*)
9713: allow_undefined_flag=unsupported
9714: always_export_symbols=yes
9715: 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'
9716: # Note: this linker hardcodes the directories in LIBPATH if there
9717: # are no directories specified by -L.
9718: hardcode_minus_L=yes
9719: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9720: # Neither direct hardcoding nor static linking is supported with a
9721: # broken collect2.
9722: hardcode_direct=unsupported
9723: fi
9724: ;;
1.1 misha 9725:
1.8 moko 9726: aix[4-9]*)
9727: if test "$host_cpu" = ia64; then
9728: # On IA64, the linker does run time linking by default, so we don't
9729: # have to do anything special.
9730: aix_use_runtimelinking=no
9731: exp_sym_flag='-Bexport'
9732: no_entry_flag=""
9733: else
9734: # If we're using GNU nm, then we don't want the "-C" option.
9735: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9736: # Also, AIX nm treats weak defined symbols like other global
9737: # defined symbols, whereas GNU nm marks them as "W".
9738: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9739: 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'
9740: else
9741: 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'
9742: fi
9743: aix_use_runtimelinking=no
1.1 misha 9744:
1.8 moko 9745: # Test if we are trying to use run time linking or normal
9746: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9747: # need to do runtime linking.
9748: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9749: for ld_flag in $LDFLAGS; do
9750: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9751: aix_use_runtimelinking=yes
9752: break
9753: fi
9754: done
9755: ;;
9756: esac
1.1 misha 9757:
1.8 moko 9758: exp_sym_flag='-bexport'
9759: no_entry_flag='-bnoentry'
9760: fi
1.1 misha 9761:
1.8 moko 9762: # When large executables or shared objects are built, AIX ld can
9763: # have problems creating the table of contents. If linking a library
9764: # or program results in "error TOC overflow" add -mminimal-toc to
9765: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9766: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9767:
9768: archive_cmds=''
9769: hardcode_direct=yes
9770: hardcode_direct_absolute=yes
9771: hardcode_libdir_separator=':'
9772: link_all_deplibs=yes
9773: file_list_spec='${wl}-f,'
9774:
9775: if test "$GCC" = yes; then
9776: case $host_os in aix4.[012]|aix4.[012].*)
9777: # We only want to do this on AIX 4.2 and lower, the check
9778: # below for broken collect2 doesn't work under 4.3+
9779: collect2name=`${CC} -print-prog-name=collect2`
9780: if test -f "$collect2name" &&
9781: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9782: then
9783: # We have reworked collect2
9784: :
9785: else
9786: # We have old collect2
9787: hardcode_direct=unsupported
9788: # It fails to find uninstalled libraries when the uninstalled
9789: # path is not listed in the libpath. Setting hardcode_minus_L
9790: # to unsupported forces relinking
9791: hardcode_minus_L=yes
9792: hardcode_libdir_flag_spec='-L$libdir'
9793: hardcode_libdir_separator=
9794: fi
9795: ;;
9796: esac
9797: shared_flag='-shared'
9798: if test "$aix_use_runtimelinking" = yes; then
9799: shared_flag="$shared_flag "'${wl}-G'
9800: fi
9801: else
9802: # not using gcc
9803: if test "$host_cpu" = ia64; then
9804: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9805: # chokes on -Wl,-G. The following line is correct:
9806: shared_flag='-G'
9807: else
9808: if test "$aix_use_runtimelinking" = yes; then
9809: shared_flag='${wl}-G'
9810: else
9811: shared_flag='${wl}-bM:SRE'
9812: fi
9813: fi
9814: fi
1.1 misha 9815:
1.8 moko 9816: export_dynamic_flag_spec='${wl}-bexpall'
9817: # It seems that -bexpall does not export symbols beginning with
9818: # underscore (_), so it is better to generate a list of symbols to export.
9819: always_export_symbols=yes
9820: if test "$aix_use_runtimelinking" = yes; then
9821: # Warning - without using the other runtime loading flags (-brtl),
9822: # -berok will link without error, but may produce a broken library.
9823: allow_undefined_flag='-berok'
9824: # Determine the default libpath from the value encoded in an
9825: # empty executable.
9826: if test "${lt_cv_aix_libpath+set}" = set; then
9827: aix_libpath=$lt_cv_aix_libpath
9828: else
1.22 ! moko 9829: if ${lt_cv_aix_libpath_+:} false; then :
! 9830: $as_echo_n "(cached) " >&6
1.1 misha 9831: else
1.22 ! moko 9832: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 9833: /* end confdefs.h. */
1.8 moko 9834:
9835: int
9836: main ()
9837: {
9838:
9839: ;
9840: return 0;
9841: }
1.1 misha 9842: _ACEOF
1.22 ! moko 9843: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 9844:
9845: lt_aix_libpath_sed='
9846: /Import File Strings/,/^$/ {
9847: /^0/ {
9848: s/^0 *\([^ ]*\) *$/\1/
9849: p
9850: }
9851: }'
9852: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9853: # Check for a 64-bit object if we didn't find anything.
9854: if test -z "$lt_cv_aix_libpath_"; then
9855: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9856: fi
1.1 misha 9857: fi
1.22 ! moko 9858: rm -f core conftest.err conftest.$ac_objext \
! 9859: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9860: if test -z "$lt_cv_aix_libpath_"; then
9861: lt_cv_aix_libpath_="/usr/lib:/lib"
9862: fi
9863:
9864: fi
9865:
9866: aix_libpath=$lt_cv_aix_libpath_
9867: fi
1.1 misha 9868:
1.8 moko 9869: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9870: 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"
9871: else
9872: if test "$host_cpu" = ia64; then
9873: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9874: allow_undefined_flag="-z nodefs"
9875: 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"
9876: else
9877: # Determine the default libpath from the value encoded in an
9878: # empty executable.
9879: if test "${lt_cv_aix_libpath+set}" = set; then
9880: aix_libpath=$lt_cv_aix_libpath
9881: else
1.22 ! moko 9882: if ${lt_cv_aix_libpath_+:} false; then :
! 9883: $as_echo_n "(cached) " >&6
1.8 moko 9884: else
1.22 ! moko 9885: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 9886: /* end confdefs.h. */
1.8 moko 9887:
9888: int
9889: main ()
9890: {
9891:
9892: ;
9893: return 0;
9894: }
1.1 misha 9895: _ACEOF
1.22 ! moko 9896: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 9897:
9898: lt_aix_libpath_sed='
9899: /Import File Strings/,/^$/ {
9900: /^0/ {
9901: s/^0 *\([^ ]*\) *$/\1/
9902: p
9903: }
9904: }'
9905: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9906: # Check for a 64-bit object if we didn't find anything.
9907: if test -z "$lt_cv_aix_libpath_"; then
9908: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 misha 9909: fi
9910: fi
1.22 ! moko 9911: rm -f core conftest.err conftest.$ac_objext \
! 9912: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9913: if test -z "$lt_cv_aix_libpath_"; then
9914: lt_cv_aix_libpath_="/usr/lib:/lib"
9915: fi
9916:
9917: fi
9918:
9919: aix_libpath=$lt_cv_aix_libpath_
9920: fi
9921:
9922: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9923: # Warning - without using the other run time loading flags,
9924: # -berok will link without error, but may produce a broken library.
9925: no_undefined_flag=' ${wl}-bernotok'
9926: allow_undefined_flag=' ${wl}-berok'
9927: if test "$with_gnu_ld" = yes; then
9928: # We only use this code for GNU lds that support --whole-archive.
9929: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9930: else
9931: # Exported symbols can be pulled into shared objects from archives
9932: whole_archive_flag_spec='$convenience'
9933: fi
9934: archive_cmds_need_lc=yes
9935: # This is similar to how AIX traditionally builds its shared libraries.
9936: 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'
9937: fi
9938: fi
9939: ;;
9940:
9941: amigaos*)
9942: case $host_cpu in
9943: powerpc)
9944: # see comment about AmigaOS4 .so support
9945: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9946: archive_expsym_cmds=''
9947: ;;
9948: m68k)
9949: 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)'
9950: hardcode_libdir_flag_spec='-L$libdir'
9951: hardcode_minus_L=yes
9952: ;;
9953: esac
9954: ;;
9955:
9956: bsdi[45]*)
9957: export_dynamic_flag_spec=-rdynamic
9958: ;;
9959:
9960: cygwin* | mingw* | pw32* | cegcc*)
9961: # When not using gcc, we currently assume that we are using
9962: # Microsoft Visual C++.
9963: # hardcode_libdir_flag_spec is actually meaningless, as there is
9964: # no search path for DLLs.
9965: case $cc_basename in
9966: cl*)
9967: # Native MSVC
9968: hardcode_libdir_flag_spec=' '
9969: allow_undefined_flag=unsupported
9970: always_export_symbols=yes
9971: file_list_spec='@'
9972: # Tell ltmain to make .lib files, not .a files.
9973: libext=lib
9974: # Tell ltmain to make .dll files, not .so files.
9975: shrext_cmds=".dll"
9976: # FIXME: Setting linknames here is a bad hack.
9977: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9978: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9979: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9980: else
9981: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9982: fi~
9983: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9984: linknames='
9985: # The linker will not automatically build a static lib if we build a DLL.
9986: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9987: enable_shared_with_static_runtimes=yes
9988: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9989: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9990: # Don't use ranlib
9991: old_postinstall_cmds='chmod 644 $oldlib'
9992: postlink_cmds='lt_outputfile="@OUTPUT@"~
9993: lt_tool_outputfile="@TOOL_OUTPUT@"~
9994: case $lt_outputfile in
9995: *.exe|*.EXE) ;;
9996: *)
9997: lt_outputfile="$lt_outputfile.exe"
9998: lt_tool_outputfile="$lt_tool_outputfile.exe"
9999: ;;
10000: esac~
10001: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10002: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10003: $RM "$lt_outputfile.manifest";
10004: fi'
10005: ;;
10006: *)
10007: # Assume MSVC wrapper
10008: hardcode_libdir_flag_spec=' '
10009: allow_undefined_flag=unsupported
10010: # Tell ltmain to make .lib files, not .a files.
10011: libext=lib
10012: # Tell ltmain to make .dll files, not .so files.
10013: shrext_cmds=".dll"
10014: # FIXME: Setting linknames here is a bad hack.
10015: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10016: # The linker will automatically build a .lib file if we build a DLL.
10017: old_archive_from_new_cmds='true'
10018: # FIXME: Should let the user specify the lib program.
10019: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10020: enable_shared_with_static_runtimes=yes
10021: ;;
10022: esac
10023: ;;
10024:
10025: darwin* | rhapsody*)
10026:
10027:
10028: archive_cmds_need_lc=no
10029: hardcode_direct=no
10030: hardcode_automatic=yes
10031: hardcode_shlibpath_var=unsupported
10032: if test "$lt_cv_ld_force_load" = "yes"; then
10033: 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\"`'
10034:
10035: else
10036: whole_archive_flag_spec=''
10037: fi
10038: link_all_deplibs=yes
10039: allow_undefined_flag="$_lt_dar_allow_undefined"
10040: case $cc_basename in
10041: ifort*) _lt_dar_can_shared=yes ;;
10042: *) _lt_dar_can_shared=$GCC ;;
10043: esac
10044: if test "$_lt_dar_can_shared" = "yes"; then
10045: output_verbose_link_cmd=func_echo_all
10046: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10047: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10048: 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}"
10049: 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}"
10050:
10051: else
10052: ld_shlibs=no
10053: fi
10054:
10055: ;;
10056:
10057: dgux*)
10058: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059: hardcode_libdir_flag_spec='-L$libdir'
10060: hardcode_shlibpath_var=no
10061: ;;
10062:
10063: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10064: # support. Future versions do this automatically, but an explicit c++rt0.o
10065: # does not break anything, and helps significantly (at the cost of a little
10066: # extra space).
10067: freebsd2.2*)
10068: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10069: hardcode_libdir_flag_spec='-R$libdir'
10070: hardcode_direct=yes
10071: hardcode_shlibpath_var=no
10072: ;;
10073:
10074: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10075: freebsd2.*)
10076: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10077: hardcode_direct=yes
10078: hardcode_minus_L=yes
10079: hardcode_shlibpath_var=no
10080: ;;
10081:
10082: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10083: freebsd* | dragonfly*)
10084: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10085: hardcode_libdir_flag_spec='-R$libdir'
10086: hardcode_direct=yes
10087: hardcode_shlibpath_var=no
10088: ;;
10089:
10090: hpux9*)
10091: if test "$GCC" = yes; then
10092: 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'
10093: else
10094: 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'
10095: fi
10096: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10097: hardcode_libdir_separator=:
10098: hardcode_direct=yes
10099:
10100: # hardcode_minus_L: Not really in the search PATH,
10101: # but as the default location of the library.
10102: hardcode_minus_L=yes
10103: export_dynamic_flag_spec='${wl}-E'
10104: ;;
10105:
10106: hpux10*)
10107: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10108: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10109: else
10110: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10111: fi
10112: if test "$with_gnu_ld" = no; then
10113: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10114: hardcode_libdir_separator=:
10115: hardcode_direct=yes
10116: hardcode_direct_absolute=yes
10117: export_dynamic_flag_spec='${wl}-E'
10118: # hardcode_minus_L: Not really in the search PATH,
10119: # but as the default location of the library.
10120: hardcode_minus_L=yes
10121: fi
10122: ;;
10123:
10124: hpux11*)
10125: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10126: case $host_cpu in
10127: hppa*64*)
10128: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10129: ;;
10130: ia64*)
10131: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10132: ;;
10133: *)
10134: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10135: ;;
10136: esac
10137: else
10138: case $host_cpu in
10139: hppa*64*)
10140: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10141: ;;
10142: ia64*)
10143: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10144: ;;
10145: *)
1.1 misha 10146:
1.8 moko 10147: # Older versions of the 11.00 compiler do not understand -b yet
10148: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.22 ! moko 10149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
! 10150: $as_echo_n "checking if $CC understands -b... " >&6; }
! 10151: if ${lt_cv_prog_compiler__b+:} false; then :
! 10152: $as_echo_n "(cached) " >&6
1.1 misha 10153: else
1.8 moko 10154: lt_cv_prog_compiler__b=no
10155: save_LDFLAGS="$LDFLAGS"
10156: LDFLAGS="$LDFLAGS -b"
10157: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10158: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10159: # The linker can only warn and ignore the option if not recognized
10160: # So say no if there are warnings
10161: if test -s conftest.err; then
10162: # Append any errors to the config.log.
10163: cat conftest.err 1>&5
10164: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10165: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10166: if diff conftest.exp conftest.er2 >/dev/null; then
10167: lt_cv_prog_compiler__b=yes
10168: fi
10169: else
10170: lt_cv_prog_compiler__b=yes
10171: fi
10172: fi
10173: $RM -r conftest*
10174: LDFLAGS="$save_LDFLAGS"
1.1 misha 10175:
10176: fi
1.22 ! moko 10177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
! 10178: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.1 misha 10179:
1.8 moko 10180: if test x"$lt_cv_prog_compiler__b" = xyes; then
10181: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10182: else
10183: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 misha 10184: fi
10185:
1.8 moko 10186: ;;
10187: esac
10188: fi
10189: if test "$with_gnu_ld" = no; then
10190: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10191: hardcode_libdir_separator=:
10192:
10193: case $host_cpu in
10194: hppa*64*|ia64*)
10195: hardcode_direct=no
10196: hardcode_shlibpath_var=no
10197: ;;
10198: *)
10199: hardcode_direct=yes
10200: hardcode_direct_absolute=yes
10201: export_dynamic_flag_spec='${wl}-E'
1.1 misha 10202:
1.8 moko 10203: # hardcode_minus_L: Not really in the search PATH,
10204: # but as the default location of the library.
10205: hardcode_minus_L=yes
10206: ;;
10207: esac
10208: fi
10209: ;;
1.1 misha 10210:
1.8 moko 10211: irix5* | irix6* | nonstopux*)
10212: if test "$GCC" = yes; then
10213: 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'
10214: # Try to use the -exported_symbol ld option, if it does not
10215: # work, assume that -exports_file does not work either and
10216: # implicitly export all symbols.
10217: # This should be the same for all languages, so no per-tag cache variable.
1.22 ! moko 10218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
! 10219: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
! 10220: if ${lt_cv_irix_exported_symbol+:} false; then :
! 10221: $as_echo_n "(cached) " >&6
1.1 misha 10222: else
1.8 moko 10223: save_LDFLAGS="$LDFLAGS"
10224: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.22 ! moko 10225: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 10226: /* end confdefs.h. */
1.8 moko 10227: int foo (void) { return 0; }
1.1 misha 10228: _ACEOF
1.22 ! moko 10229: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 10230: lt_cv_irix_exported_symbol=yes
1.1 misha 10231: else
1.22 ! moko 10232: lt_cv_irix_exported_symbol=no
1.1 misha 10233: fi
1.22 ! moko 10234: rm -f core conftest.err conftest.$ac_objext \
! 10235: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10236: LDFLAGS="$save_LDFLAGS"
1.1 misha 10237: fi
1.22 ! moko 10238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
! 10239: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.8 moko 10240: if test "$lt_cv_irix_exported_symbol" = yes; then
10241: 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'
10242: fi
10243: else
10244: 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'
10245: 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'
10246: fi
10247: archive_cmds_need_lc='no'
10248: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10249: hardcode_libdir_separator=:
10250: inherit_rpath=yes
10251: link_all_deplibs=yes
10252: ;;
1.1 misha 10253:
1.8 moko 10254: netbsd*)
10255: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10256: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10257: else
10258: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10259: fi
10260: hardcode_libdir_flag_spec='-R$libdir'
10261: hardcode_direct=yes
10262: hardcode_shlibpath_var=no
10263: ;;
1.1 misha 10264:
1.8 moko 10265: newsos6)
10266: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267: hardcode_direct=yes
10268: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269: hardcode_libdir_separator=:
10270: hardcode_shlibpath_var=no
10271: ;;
1.1 misha 10272:
1.8 moko 10273: *nto* | *qnx*)
10274: ;;
1.1 misha 10275:
1.8 moko 10276: openbsd*)
10277: if test -f /usr/libexec/ld.so; then
10278: hardcode_direct=yes
10279: hardcode_shlibpath_var=no
10280: hardcode_direct_absolute=yes
10281: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10282: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10283: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10284: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10285: export_dynamic_flag_spec='${wl}-E'
10286: else
10287: case $host_os in
10288: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10289: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10290: hardcode_libdir_flag_spec='-R$libdir'
10291: ;;
10292: *)
10293: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10294: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10295: ;;
10296: esac
10297: fi
10298: else
10299: ld_shlibs=no
10300: fi
10301: ;;
1.1 misha 10302:
1.8 moko 10303: os2*)
10304: hardcode_libdir_flag_spec='-L$libdir'
10305: hardcode_minus_L=yes
10306: allow_undefined_flag=unsupported
10307: 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'
10308: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10309: ;;
1.1 misha 10310:
1.8 moko 10311: osf3*)
10312: if test "$GCC" = yes; then
10313: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10314: 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'
10315: else
10316: allow_undefined_flag=' -expect_unresolved \*'
10317: 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'
10318: fi
10319: archive_cmds_need_lc='no'
10320: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10321: hardcode_libdir_separator=:
10322: ;;
1.1 misha 10323:
1.8 moko 10324: osf4* | osf5*) # as osf3* with the addition of -msym flag
10325: if test "$GCC" = yes; then
10326: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10327: 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'
10328: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10329: else
10330: allow_undefined_flag=' -expect_unresolved \*'
10331: 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'
10332: 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~
10333: $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'
10334:
10335: # Both c and cxx compiler support -rpath directly
10336: hardcode_libdir_flag_spec='-rpath $libdir'
10337: fi
10338: archive_cmds_need_lc='no'
10339: hardcode_libdir_separator=:
10340: ;;
10341:
10342: solaris*)
10343: no_undefined_flag=' -z defs'
10344: if test "$GCC" = yes; then
10345: wlarc='${wl}'
10346: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10347: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10348: $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'
10349: else
10350: case `$CC -V 2>&1` in
10351: *"Compilers 5.0"*)
10352: wlarc=''
10353: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10354: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10355: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10356: ;;
10357: *)
10358: wlarc='${wl}'
10359: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10360: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10361: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10362: ;;
10363: esac
10364: fi
10365: hardcode_libdir_flag_spec='-R$libdir'
10366: hardcode_shlibpath_var=no
10367: case $host_os in
10368: solaris2.[0-5] | solaris2.[0-5].*) ;;
10369: *)
10370: # The compiler driver will combine and reorder linker options,
10371: # but understands `-z linker_flag'. GCC discards it without `$wl',
10372: # but is careful enough not to reorder.
10373: # Supported since Solaris 2.6 (maybe 2.5.1?)
10374: if test "$GCC" = yes; then
10375: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10376: else
10377: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10378: fi
10379: ;;
10380: esac
10381: link_all_deplibs=yes
10382: ;;
10383:
10384: sunos4*)
10385: if test "x$host_vendor" = xsequent; then
10386: # Use $CC to link under sequent, because it throws in some extra .o
10387: # files that make .init and .fini sections work.
10388: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10389: else
10390: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10391: fi
10392: hardcode_libdir_flag_spec='-L$libdir'
10393: hardcode_direct=yes
10394: hardcode_minus_L=yes
10395: hardcode_shlibpath_var=no
10396: ;;
10397:
10398: sysv4)
10399: case $host_vendor in
10400: sni)
10401: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10402: hardcode_direct=yes # is this really true???
10403: ;;
10404: siemens)
10405: ## LD is ld it makes a PLAMLIB
10406: ## CC just makes a GrossModule.
10407: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10408: reload_cmds='$CC -r -o $output$reload_objs'
10409: hardcode_direct=no
10410: ;;
10411: motorola)
10412: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10413: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10414: ;;
10415: esac
10416: runpath_var='LD_RUN_PATH'
10417: hardcode_shlibpath_var=no
10418: ;;
10419:
10420: sysv4.3*)
10421: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10422: hardcode_shlibpath_var=no
10423: export_dynamic_flag_spec='-Bexport'
10424: ;;
10425:
10426: sysv4*MP*)
10427: if test -d /usr/nec; then
10428: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10429: hardcode_shlibpath_var=no
10430: runpath_var=LD_RUN_PATH
10431: hardcode_runpath_var=yes
10432: ld_shlibs=yes
10433: fi
10434: ;;
10435:
10436: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10437: no_undefined_flag='${wl}-z,text'
10438: archive_cmds_need_lc=no
10439: hardcode_shlibpath_var=no
10440: runpath_var='LD_RUN_PATH'
10441:
10442: if test "$GCC" = yes; then
10443: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10444: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10445: else
10446: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448: fi
10449: ;;
10450:
10451: sysv5* | sco3.2v5* | sco5v6*)
10452: # Note: We can NOT use -z defs as we might desire, because we do not
10453: # link with -lc, and that would cause any symbols used from libc to
10454: # always be unresolved, which means just about no library would
10455: # ever link correctly. If we're not using GNU ld we use -z text
10456: # though, which does catch some bad symbols but isn't as heavy-handed
10457: # as -z defs.
10458: no_undefined_flag='${wl}-z,text'
10459: allow_undefined_flag='${wl}-z,nodefs'
10460: archive_cmds_need_lc=no
10461: hardcode_shlibpath_var=no
10462: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10463: hardcode_libdir_separator=':'
10464: link_all_deplibs=yes
10465: export_dynamic_flag_spec='${wl}-Bexport'
10466: runpath_var='LD_RUN_PATH'
10467:
10468: if test "$GCC" = yes; then
10469: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10470: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10471: else
10472: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10473: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10474: fi
10475: ;;
1.1 misha 10476:
1.8 moko 10477: uts4*)
10478: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10479: hardcode_libdir_flag_spec='-L$libdir'
10480: hardcode_shlibpath_var=no
1.1 misha 10481: ;;
1.8 moko 10482:
1.1 misha 10483: *)
1.8 moko 10484: ld_shlibs=no
1.1 misha 10485: ;;
1.8 moko 10486: esac
10487:
10488: if test x$host_vendor = xsni; then
10489: case $host in
10490: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10491: export_dynamic_flag_spec='${wl}-Blargedynsym'
10492: ;;
10493: esac
10494: fi
1.1 misha 10495: fi
10496:
1.22 ! moko 10497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
! 10498: $as_echo "$ld_shlibs" >&6; }
1.8 moko 10499: test "$ld_shlibs" = no && can_build_shared=no
10500:
10501: with_gnu_ld=$with_gnu_ld
1.1 misha 10502:
10503:
10504:
10505:
10506:
10507:
10508:
10509:
10510:
10511:
10512:
10513:
10514:
10515:
10516:
1.8 moko 10517: #
10518: # Do we need to explicitly link libc?
10519: #
10520: case "x$archive_cmds_need_lc" in
10521: x|xyes)
10522: # Assume -lc should be added
10523: archive_cmds_need_lc=yes
10524:
10525: if test "$enable_shared" = yes && test "$GCC" = yes; then
10526: case $archive_cmds in
10527: *'~'*)
10528: # FIXME: we may have to deal with multi-command sequences.
10529: ;;
10530: '$CC '*)
10531: # Test whether the compiler implicitly links with -lc since on some
10532: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10533: # to ld, don't add -lc before -lgcc.
1.22 ! moko 10534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
! 10535: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
! 10536: if ${lt_cv_archive_cmds_need_lc+:} false; then :
! 10537: $as_echo_n "(cached) " >&6
1.1 misha 10538: else
1.8 moko 10539: $RM conftest*
10540: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10541:
1.22 ! moko 10542: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 10543: (eval $ac_compile) 2>&5
10544: ac_status=$?
1.22 ! moko 10545: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 10546: test $ac_status = 0; } 2>conftest.err; then
1.8 moko 10547: soname=conftest
10548: lib=conftest
10549: libobjs=conftest.$ac_objext
10550: deplibs=
10551: wl=$lt_prog_compiler_wl
10552: pic_flag=$lt_prog_compiler_pic
10553: compiler_flags=-v
10554: linker_flags=-v
10555: verstring=
10556: output_objdir=.
10557: libname=conftest
10558: lt_save_allow_undefined_flag=$allow_undefined_flag
10559: allow_undefined_flag=
1.22 ! moko 10560: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.8 moko 10561: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10562: ac_status=$?
1.22 ! moko 10563: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 10564: test $ac_status = 0; }
1.8 moko 10565: then
10566: lt_cv_archive_cmds_need_lc=no
10567: else
10568: lt_cv_archive_cmds_need_lc=yes
10569: fi
10570: allow_undefined_flag=$lt_save_allow_undefined_flag
10571: else
10572: cat conftest.err 1>&5
10573: fi
10574: $RM conftest*
10575:
1.1 misha 10576: fi
1.22 ! moko 10577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
! 10578: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.8 moko 10579: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10580: ;;
10581: esac
10582: fi
10583: ;;
10584: esac
10585:
10586:
10587:
10588:
10589:
10590:
10591:
10592:
10593:
10594:
10595:
10596:
10597:
10598:
10599:
10600:
10601:
10602:
10603:
10604:
10605:
10606:
10607:
10608:
10609:
10610:
10611:
10612:
10613:
10614:
10615:
10616:
10617:
10618:
10619:
10620:
10621:
10622:
10623:
10624:
10625:
10626:
10627:
10628:
10629:
10630:
10631:
10632:
10633:
10634:
10635:
10636:
10637:
10638:
10639:
10640:
10641:
10642:
10643:
10644:
10645:
1.1 misha 10646:
10647:
10648:
10649:
10650:
10651:
10652:
10653:
10654:
10655:
10656:
10657:
10658:
10659:
10660:
10661:
10662:
10663:
10664:
10665:
10666:
10667:
10668:
10669:
10670:
10671:
10672:
10673:
10674:
10675:
10676:
10677:
10678:
10679:
10680:
10681:
10682:
10683:
10684:
10685:
10686:
10687:
10688:
10689:
10690:
10691:
10692:
10693:
10694:
10695:
10696:
10697:
10698:
10699:
10700:
10701:
10702:
10703:
10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
10716:
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
1.22 ! moko 10737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
! 10738: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.1 misha 10739:
1.8 moko 10740: if test "$GCC" = yes; then
10741: case $host_os in
10742: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10743: *) lt_awk_arg="/^libraries:/" ;;
10744: esac
10745: case $host_os in
10746: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10747: *) lt_sed_strip_eq="s,=/,/,g" ;;
10748: esac
10749: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10750: case $lt_search_path_spec in
10751: *\;*)
10752: # if the path contains ";" then we assume it to be the separator
10753: # otherwise default to the standard path separator (i.e. ":") - it is
10754: # assumed that no part of a normal pathname contains ";" but that should
10755: # okay in the real world where ";" in dirpaths is itself problematic.
10756: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10757: ;;
10758: *)
10759: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10760: ;;
10761: esac
10762: # Ok, now we have the path, separated by spaces, we can step through it
10763: # and add multilib dir if necessary.
10764: lt_tmp_lt_search_path_spec=
10765: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10766: for lt_sys_path in $lt_search_path_spec; do
10767: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10768: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10769: else
10770: test -d "$lt_sys_path" && \
10771: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10772: fi
10773: done
10774: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10775: BEGIN {RS=" "; FS="/|\n";} {
10776: lt_foo="";
10777: lt_count=0;
10778: for (lt_i = NF; lt_i > 0; lt_i--) {
10779: if ($lt_i != "" && $lt_i != ".") {
10780: if ($lt_i == "..") {
10781: lt_count++;
10782: } else {
10783: if (lt_count == 0) {
10784: lt_foo="/" $lt_i lt_foo;
10785: } else {
10786: lt_count--;
10787: }
10788: }
10789: }
10790: }
10791: if (lt_foo != "") { lt_freq[lt_foo]++; }
10792: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10793: }'`
10794: # AWK program above erroneously prepends '/' to C:/dos/paths
10795: # for these hosts.
10796: case $host_os in
10797: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10798: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10799: esac
10800: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.1 misha 10801: else
1.8 moko 10802: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.1 misha 10803: fi
1.8 moko 10804: library_names_spec=
10805: libname_spec='lib$name'
10806: soname_spec=
10807: shrext_cmds=".so"
10808: postinstall_cmds=
10809: postuninstall_cmds=
10810: finish_cmds=
10811: finish_eval=
10812: shlibpath_var=
10813: shlibpath_overrides_runpath=unknown
10814: version_type=none
10815: dynamic_linker="$host_os ld.so"
10816: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10817: need_lib_prefix=unknown
10818: hardcode_into_libs=no
10819:
10820: # when you set need_version to no, make sure it does not cause -set_version
10821: # flags to be left without arguments
10822: need_version=unknown
10823:
10824: case $host_os in
10825: aix3*)
10826: version_type=linux # correct to gnu/linux during the next big refactor
10827: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10828: shlibpath_var=LIBPATH
10829:
10830: # AIX 3 has no versioning support, so we append a major version to the name.
10831: soname_spec='${libname}${release}${shared_ext}$major'
10832: ;;
1.1 misha 10833:
1.8 moko 10834: aix[4-9]*)
10835: version_type=linux # correct to gnu/linux during the next big refactor
10836: need_lib_prefix=no
10837: need_version=no
10838: hardcode_into_libs=yes
10839: if test "$host_cpu" = ia64; then
10840: # AIX 5 supports IA64
10841: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10842: shlibpath_var=LD_LIBRARY_PATH
10843: else
10844: # With GCC up to 2.95.x, collect2 would create an import file
10845: # for dependence libraries. The import file would start with
10846: # the line `#! .'. This would cause the generated library to
10847: # depend on `.', always an invalid library. This was fixed in
10848: # development snapshots of GCC prior to 3.0.
10849: case $host_os in
10850: aix4 | aix4.[01] | aix4.[01].*)
10851: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10852: echo ' yes '
10853: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10854: :
10855: else
10856: can_build_shared=no
10857: fi
10858: ;;
10859: esac
10860: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10861: # soname into executable. Probably we can add versioning support to
10862: # collect2, so additional links can be useful in future.
10863: if test "$aix_use_runtimelinking" = yes; then
10864: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10865: # instead of lib<name>.a to let people know that these are not
10866: # typical AIX shared libraries.
10867: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1 misha 10868: else
1.8 moko 10869: # We preserve .a as extension for shared libraries through AIX4.2
10870: # and later when we are not doing run time linking.
10871: library_names_spec='${libname}${release}.a $libname.a'
10872: soname_spec='${libname}${release}${shared_ext}$major'
10873: fi
10874: shlibpath_var=LIBPATH
10875: fi
10876: ;;
10877:
10878: amigaos*)
10879: case $host_cpu in
10880: powerpc)
10881: # Since July 2007 AmigaOS4 officially supports .so libraries.
10882: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10883: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884: ;;
10885: m68k)
10886: library_names_spec='$libname.ixlibrary $libname.a'
10887: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10888: 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'
10889: ;;
10890: esac
10891: ;;
10892:
10893: beos*)
10894: library_names_spec='${libname}${shared_ext}'
10895: dynamic_linker="$host_os ld.so"
10896: shlibpath_var=LIBRARY_PATH
10897: ;;
10898:
10899: bsdi[45]*)
10900: version_type=linux # correct to gnu/linux during the next big refactor
10901: need_version=no
10902: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903: soname_spec='${libname}${release}${shared_ext}$major'
10904: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10905: shlibpath_var=LD_LIBRARY_PATH
10906: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10907: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10908: # the default ld.so.conf also contains /usr/contrib/lib and
10909: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10910: # libtool to hard-code these into programs
10911: ;;
10912:
10913: cygwin* | mingw* | pw32* | cegcc*)
10914: version_type=windows
10915: shrext_cmds=".dll"
10916: need_version=no
10917: need_lib_prefix=no
10918:
10919: case $GCC,$cc_basename in
10920: yes,*)
10921: # gcc
10922: library_names_spec='$libname.dll.a'
10923: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10924: postinstall_cmds='base_file=`basename \${file}`~
10925: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10926: dldir=$destdir/`dirname \$dlpath`~
10927: test -d \$dldir || mkdir -p \$dldir~
10928: $install_prog $dir/$dlname \$dldir/$dlname~
10929: chmod a+x \$dldir/$dlname~
10930: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10931: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10932: fi'
10933: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10934: dlpath=$dir/\$dldll~
10935: $RM \$dlpath'
10936: shlibpath_overrides_runpath=yes
10937:
10938: case $host_os in
10939: cygwin*)
10940: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10941: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10942:
10943: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10944: ;;
10945: mingw* | cegcc*)
10946: # MinGW DLLs use traditional 'lib' prefix
10947: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10948: ;;
10949: pw32*)
10950: # pw32 DLLs use 'pw' prefix rather than 'lib'
10951: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10952: ;;
10953: esac
10954: dynamic_linker='Win32 ld.exe'
10955: ;;
10956:
10957: *,cl*)
10958: # Native MSVC
10959: libname_spec='$name'
10960: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10961: library_names_spec='${libname}.dll.lib'
10962:
10963: case $build_os in
10964: mingw*)
10965: sys_lib_search_path_spec=
10966: lt_save_ifs=$IFS
10967: IFS=';'
10968: for lt_path in $LIB
10969: do
10970: IFS=$lt_save_ifs
10971: # Let DOS variable expansion print the short 8.3 style file name.
10972: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10973: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10974: done
10975: IFS=$lt_save_ifs
10976: # Convert to MSYS style.
10977: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10978: ;;
10979: cygwin*)
10980: # Convert to unix form, then to dos form, then back to unix form
10981: # but this time dos style (no spaces!) so that the unix form looks
10982: # like /cygdrive/c/PROGRA~1:/cygdr...
10983: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10984: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10985: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10986: ;;
10987: *)
10988: sys_lib_search_path_spec="$LIB"
10989: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10990: # It is most probably a Windows format PATH.
10991: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10992: else
10993: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10994: fi
10995: # FIXME: find the short name or the path components, as spaces are
10996: # common. (e.g. "Program Files" -> "PROGRA~1")
10997: ;;
10998: esac
10999:
11000: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11001: postinstall_cmds='base_file=`basename \${file}`~
11002: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11003: dldir=$destdir/`dirname \$dlpath`~
11004: test -d \$dldir || mkdir -p \$dldir~
11005: $install_prog $dir/$dlname \$dldir/$dlname'
11006: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11007: dlpath=$dir/\$dldll~
11008: $RM \$dlpath'
11009: shlibpath_overrides_runpath=yes
11010: dynamic_linker='Win32 link.exe'
11011: ;;
11012:
11013: *)
11014: # Assume MSVC wrapper
11015: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11016: dynamic_linker='Win32 ld.exe'
11017: ;;
11018: esac
11019: # FIXME: first we should search . and the directory the executable is in
11020: shlibpath_var=PATH
11021: ;;
11022:
11023: darwin* | rhapsody*)
11024: dynamic_linker="$host_os dyld"
11025: version_type=darwin
11026: need_lib_prefix=no
11027: need_version=no
11028: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11029: soname_spec='${libname}${release}${major}$shared_ext'
11030: shlibpath_overrides_runpath=yes
11031: shlibpath_var=DYLD_LIBRARY_PATH
11032: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1 misha 11033:
1.8 moko 11034: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11035: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11036: ;;
1.1 misha 11037:
1.8 moko 11038: dgux*)
11039: version_type=linux # correct to gnu/linux during the next big refactor
11040: need_lib_prefix=no
11041: need_version=no
11042: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11043: soname_spec='${libname}${release}${shared_ext}$major'
11044: shlibpath_var=LD_LIBRARY_PATH
11045: ;;
1.1 misha 11046:
1.8 moko 11047: freebsd* | dragonfly*)
11048: # DragonFly does not have aout. When/if they implement a new
11049: # versioning mechanism, adjust this.
11050: if test -x /usr/bin/objformat; then
11051: objformat=`/usr/bin/objformat`
1.1 misha 11052: else
1.8 moko 11053: case $host_os in
11054: freebsd[23].*) objformat=aout ;;
11055: *) objformat=elf ;;
11056: esac
1.1 misha 11057: fi
1.8 moko 11058: version_type=freebsd-$objformat
11059: case $version_type in
11060: freebsd-elf*)
11061: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11062: need_version=no
11063: need_lib_prefix=no
11064: ;;
11065: freebsd-*)
11066: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11067: need_version=yes
11068: ;;
11069: esac
11070: shlibpath_var=LD_LIBRARY_PATH
11071: case $host_os in
11072: freebsd2.*)
11073: shlibpath_overrides_runpath=yes
11074: ;;
11075: freebsd3.[01]* | freebsdelf3.[01]*)
11076: shlibpath_overrides_runpath=yes
11077: hardcode_into_libs=yes
11078: ;;
11079: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11080: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11081: shlibpath_overrides_runpath=no
11082: hardcode_into_libs=yes
11083: ;;
11084: *) # from 4.6 on, and DragonFly
11085: shlibpath_overrides_runpath=yes
11086: hardcode_into_libs=yes
11087: ;;
11088: esac
11089: ;;
11090:
11091: gnu*)
11092: version_type=linux # correct to gnu/linux during the next big refactor
11093: need_lib_prefix=no
11094: need_version=no
11095: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11096: soname_spec='${libname}${release}${shared_ext}$major'
11097: shlibpath_var=LD_LIBRARY_PATH
11098: shlibpath_overrides_runpath=no
11099: hardcode_into_libs=yes
11100: ;;
11101:
11102: haiku*)
11103: version_type=linux # correct to gnu/linux during the next big refactor
11104: need_lib_prefix=no
11105: need_version=no
11106: dynamic_linker="$host_os runtime_loader"
11107: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11108: soname_spec='${libname}${release}${shared_ext}$major'
11109: shlibpath_var=LIBRARY_PATH
11110: shlibpath_overrides_runpath=yes
11111: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11112: hardcode_into_libs=yes
11113: ;;
11114:
11115: hpux9* | hpux10* | hpux11*)
11116: # Give a soname corresponding to the major version so that dld.sl refuses to
11117: # link against other versions.
11118: version_type=sunos
11119: need_lib_prefix=no
11120: need_version=no
11121: case $host_cpu in
11122: ia64*)
11123: shrext_cmds='.so'
11124: hardcode_into_libs=yes
11125: dynamic_linker="$host_os dld.so"
11126: shlibpath_var=LD_LIBRARY_PATH
11127: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11128: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129: soname_spec='${libname}${release}${shared_ext}$major'
11130: if test "X$HPUX_IA64_MODE" = X32; then
11131: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11132: else
11133: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11134: fi
11135: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11136: ;;
11137: hppa*64*)
11138: shrext_cmds='.sl'
11139: hardcode_into_libs=yes
11140: dynamic_linker="$host_os dld.sl"
11141: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11142: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11143: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144: soname_spec='${libname}${release}${shared_ext}$major'
11145: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11146: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11147: ;;
11148: *)
11149: shrext_cmds='.sl'
11150: dynamic_linker="$host_os dld.sl"
11151: shlibpath_var=SHLIB_PATH
11152: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11153: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154: soname_spec='${libname}${release}${shared_ext}$major'
11155: ;;
11156: esac
11157: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11158: postinstall_cmds='chmod 555 $lib'
11159: # or fails outright, so override atomically:
11160: install_override_mode=555
11161: ;;
11162:
11163: interix[3-9]*)
11164: version_type=linux # correct to gnu/linux during the next big refactor
11165: need_lib_prefix=no
11166: need_version=no
11167: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11168: soname_spec='${libname}${release}${shared_ext}$major'
11169: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11170: shlibpath_var=LD_LIBRARY_PATH
11171: shlibpath_overrides_runpath=no
11172: hardcode_into_libs=yes
11173: ;;
11174:
11175: irix5* | irix6* | nonstopux*)
11176: case $host_os in
11177: nonstopux*) version_type=nonstopux ;;
11178: *)
11179: if test "$lt_cv_prog_gnu_ld" = yes; then
11180: version_type=linux # correct to gnu/linux during the next big refactor
11181: else
11182: version_type=irix
11183: fi ;;
11184: esac
11185: need_lib_prefix=no
11186: need_version=no
11187: soname_spec='${libname}${release}${shared_ext}$major'
11188: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11189: case $host_os in
11190: irix5* | nonstopux*)
11191: libsuff= shlibsuff=
11192: ;;
11193: *)
11194: case $LD in # libtool.m4 will add one of these switches to LD
11195: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11196: libsuff= shlibsuff= libmagic=32-bit;;
11197: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11198: libsuff=32 shlibsuff=N32 libmagic=N32;;
11199: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11200: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11201: *) libsuff= shlibsuff= libmagic=never-match;;
11202: esac
11203: ;;
11204: esac
11205: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11206: shlibpath_overrides_runpath=no
11207: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11208: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11209: hardcode_into_libs=yes
11210: ;;
11211:
11212: # No shared lib support for Linux oldld, aout, or coff.
11213: linux*oldld* | linux*aout* | linux*coff*)
11214: dynamic_linker=no
11215: ;;
11216:
11217: # This must be glibc/ELF.
11218: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11219: version_type=linux # correct to gnu/linux during the next big refactor
11220: need_lib_prefix=no
11221: need_version=no
11222: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223: soname_spec='${libname}${release}${shared_ext}$major'
11224: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11225: shlibpath_var=LD_LIBRARY_PATH
11226: shlibpath_overrides_runpath=no
11227:
11228: # Some binutils ld are patched to set DT_RUNPATH
1.22 ! moko 11229: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
! 11230: $as_echo_n "(cached) " >&6
1.8 moko 11231: else
11232: lt_cv_shlibpath_overrides_runpath=no
11233: save_LDFLAGS=$LDFLAGS
11234: save_libdir=$libdir
11235: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11236: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.22 ! moko 11237: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11238: /* end confdefs.h. */
11239:
11240: int
11241: main ()
11242: {
11243:
11244: ;
11245: return 0;
11246: }
11247: _ACEOF
1.22 ! moko 11248: if ac_fn_c_try_link "$LINENO"; then :
! 11249: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.8 moko 11250: lt_cv_shlibpath_overrides_runpath=yes
11251: fi
11252: fi
1.22 ! moko 11253: rm -f core conftest.err conftest.$ac_objext \
! 11254: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11255: LDFLAGS=$save_LDFLAGS
11256: libdir=$save_libdir
11257:
11258: fi
11259:
11260: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11261:
11262: # This implies no fast_install, which is unacceptable.
11263: # Some rework will be needed to allow for fast_install
11264: # before this can be enabled.
11265: hardcode_into_libs=yes
11266:
11267: # Append ld.so.conf contents to the search path
11268: if test -f /etc/ld.so.conf; then
11269: 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' ' '`
11270: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11271: fi
11272:
11273: # We used to test for /lib/ld.so.1 and disable shared libraries on
11274: # powerpc, because MkLinux only supported shared libraries with the
11275: # GNU dynamic linker. Since this was broken with cross compilers,
11276: # most powerpc-linux boxes support dynamic linking these days and
11277: # people can always --disable-shared, the test was removed, and we
11278: # assume the GNU/Linux dynamic linker is in use.
11279: dynamic_linker='GNU/Linux ld.so'
11280: ;;
11281:
11282: netbsd*)
11283: version_type=sunos
11284: need_lib_prefix=no
11285: need_version=no
11286: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11287: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11288: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11289: dynamic_linker='NetBSD (a.out) ld.so'
11290: else
11291: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11292: soname_spec='${libname}${release}${shared_ext}$major'
11293: dynamic_linker='NetBSD ld.elf_so'
11294: fi
11295: shlibpath_var=LD_LIBRARY_PATH
11296: shlibpath_overrides_runpath=yes
11297: hardcode_into_libs=yes
11298: ;;
11299:
11300: newsos6)
11301: version_type=linux # correct to gnu/linux during the next big refactor
11302: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303: shlibpath_var=LD_LIBRARY_PATH
11304: shlibpath_overrides_runpath=yes
11305: ;;
11306:
11307: *nto* | *qnx*)
11308: version_type=qnx
11309: need_lib_prefix=no
11310: need_version=no
11311: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312: soname_spec='${libname}${release}${shared_ext}$major'
11313: shlibpath_var=LD_LIBRARY_PATH
11314: shlibpath_overrides_runpath=no
11315: hardcode_into_libs=yes
11316: dynamic_linker='ldqnx.so'
11317: ;;
11318:
11319: openbsd*)
11320: version_type=sunos
11321: sys_lib_dlsearch_path_spec="/usr/lib"
11322: need_lib_prefix=no
11323: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11324: case $host_os in
11325: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11326: *) need_version=no ;;
11327: esac
11328: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11329: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11330: shlibpath_var=LD_LIBRARY_PATH
11331: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11332: case $host_os in
11333: openbsd2.[89] | openbsd2.[89].*)
11334: shlibpath_overrides_runpath=no
11335: ;;
11336: *)
11337: shlibpath_overrides_runpath=yes
11338: ;;
11339: esac
1.1 misha 11340: else
1.8 moko 11341: shlibpath_overrides_runpath=yes
11342: fi
11343: ;;
11344:
11345: os2*)
11346: libname_spec='$name'
11347: shrext_cmds=".dll"
11348: need_lib_prefix=no
11349: library_names_spec='$libname${shared_ext} $libname.a'
11350: dynamic_linker='OS/2 ld.exe'
11351: shlibpath_var=LIBPATH
11352: ;;
11353:
11354: osf3* | osf4* | osf5*)
11355: version_type=osf
11356: need_lib_prefix=no
11357: need_version=no
11358: soname_spec='${libname}${release}${shared_ext}$major'
11359: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360: shlibpath_var=LD_LIBRARY_PATH
11361: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11362: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11363: ;;
11364:
11365: rdos*)
11366: dynamic_linker=no
11367: ;;
11368:
11369: solaris*)
11370: version_type=linux # correct to gnu/linux during the next big refactor
11371: need_lib_prefix=no
11372: need_version=no
11373: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374: soname_spec='${libname}${release}${shared_ext}$major'
11375: shlibpath_var=LD_LIBRARY_PATH
11376: shlibpath_overrides_runpath=yes
11377: hardcode_into_libs=yes
11378: # ldd complains unless libraries are executable
11379: postinstall_cmds='chmod +x $lib'
11380: ;;
11381:
11382: sunos4*)
11383: version_type=sunos
11384: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11385: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11386: shlibpath_var=LD_LIBRARY_PATH
11387: shlibpath_overrides_runpath=yes
11388: if test "$with_gnu_ld" = yes; then
11389: need_lib_prefix=no
11390: fi
11391: need_version=yes
11392: ;;
11393:
11394: sysv4 | sysv4.3*)
11395: version_type=linux # correct to gnu/linux during the next big refactor
11396: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397: soname_spec='${libname}${release}${shared_ext}$major'
11398: shlibpath_var=LD_LIBRARY_PATH
11399: case $host_vendor in
11400: sni)
11401: shlibpath_overrides_runpath=no
11402: need_lib_prefix=no
11403: runpath_var=LD_RUN_PATH
11404: ;;
11405: siemens)
11406: need_lib_prefix=no
11407: ;;
11408: motorola)
11409: need_lib_prefix=no
11410: need_version=no
11411: shlibpath_overrides_runpath=no
11412: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11413: ;;
11414: esac
11415: ;;
11416:
11417: sysv4*MP*)
11418: if test -d /usr/nec ;then
11419: version_type=linux # correct to gnu/linux during the next big refactor
11420: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11421: soname_spec='$libname${shared_ext}.$major'
11422: shlibpath_var=LD_LIBRARY_PATH
11423: fi
11424: ;;
11425:
11426: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11427: version_type=freebsd-elf
11428: need_lib_prefix=no
11429: need_version=no
11430: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11431: soname_spec='${libname}${release}${shared_ext}$major'
11432: shlibpath_var=LD_LIBRARY_PATH
11433: shlibpath_overrides_runpath=yes
11434: hardcode_into_libs=yes
11435: if test "$with_gnu_ld" = yes; then
11436: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11437: else
11438: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11439: case $host_os in
11440: sco3.2v5*)
11441: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11442: ;;
11443: esac
11444: fi
11445: sys_lib_dlsearch_path_spec='/usr/lib'
11446: ;;
11447:
11448: tpf*)
11449: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11450: version_type=linux # correct to gnu/linux during the next big refactor
11451: need_lib_prefix=no
11452: need_version=no
11453: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454: shlibpath_var=LD_LIBRARY_PATH
11455: shlibpath_overrides_runpath=no
11456: hardcode_into_libs=yes
11457: ;;
11458:
11459: uts4*)
11460: version_type=linux # correct to gnu/linux during the next big refactor
11461: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462: soname_spec='${libname}${release}${shared_ext}$major'
11463: shlibpath_var=LD_LIBRARY_PATH
11464: ;;
11465:
11466: *)
11467: dynamic_linker=no
11468: ;;
11469: esac
1.22 ! moko 11470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
! 11471: $as_echo "$dynamic_linker" >&6; }
1.8 moko 11472: test "$dynamic_linker" = no && can_build_shared=no
11473:
11474: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11475: if test "$GCC" = yes; then
11476: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11477: fi
11478:
11479: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11480: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11481: fi
11482: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11483: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11484: fi
11485:
11486:
11487:
11488:
11489:
11490:
11491:
11492:
11493:
11494:
11495:
11496:
11497:
11498:
11499:
11500:
11501:
11502:
11503:
11504:
11505:
11506:
11507:
11508:
11509:
11510:
11511:
11512:
11513:
11514:
11515:
11516:
11517:
11518:
11519:
11520:
11521:
11522:
11523:
11524:
11525:
11526:
11527:
11528:
11529:
11530:
11531:
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
11547:
11548:
11549:
11550:
11551:
11552:
11553:
11554:
11555:
11556:
11557:
11558:
11559:
11560:
11561:
11562:
11563:
11564:
11565:
11566:
11567:
11568:
11569:
11570:
11571:
11572:
11573:
11574:
11575:
11576:
1.22 ! moko 11577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
! 11578: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.8 moko 11579: hardcode_action=
11580: if test -n "$hardcode_libdir_flag_spec" ||
11581: test -n "$runpath_var" ||
11582: test "X$hardcode_automatic" = "Xyes" ; then
11583:
11584: # We can hardcode non-existent directories.
11585: if test "$hardcode_direct" != no &&
11586: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11587: # have to relink, otherwise we might link with an installed library
11588: # when we should be linking with a yet-to-be-installed one
11589: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11590: test "$hardcode_minus_L" != no; then
11591: # Linking always hardcodes the temporary library directory.
11592: hardcode_action=relink
11593: else
11594: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11595: hardcode_action=immediate
11596: fi
11597: else
11598: # We cannot hardcode anything, or else we can only hardcode existing
11599: # directories.
11600: hardcode_action=unsupported
11601: fi
1.22 ! moko 11602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
! 11603: $as_echo "$hardcode_action" >&6; }
1.8 moko 11604:
11605: if test "$hardcode_action" = relink ||
11606: test "$inherit_rpath" = yes; then
11607: # Fast installation is not supported
11608: enable_fast_install=no
11609: elif test "$shlibpath_overrides_runpath" = yes ||
11610: test "$enable_shared" = no; then
11611: # Fast installation is not necessary
11612: enable_fast_install=needless
11613: fi
11614:
11615:
11616:
11617:
11618:
11619:
11620: if test "x$enable_dlopen" != xyes; then
11621: enable_dlopen=unknown
11622: enable_dlopen_self=unknown
11623: enable_dlopen_self_static=unknown
11624: else
11625: lt_cv_dlopen=no
11626: lt_cv_dlopen_libs=
11627:
11628: case $host_os in
11629: beos*)
11630: lt_cv_dlopen="load_add_on"
11631: lt_cv_dlopen_libs=
11632: lt_cv_dlopen_self=yes
11633: ;;
11634:
11635: mingw* | pw32* | cegcc*)
11636: lt_cv_dlopen="LoadLibrary"
11637: lt_cv_dlopen_libs=
11638: ;;
11639:
11640: cygwin*)
11641: lt_cv_dlopen="dlopen"
11642: lt_cv_dlopen_libs=
11643: ;;
11644:
11645: darwin*)
11646: # if libdl is installed we need to link against it
1.22 ! moko 11647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 11648: $as_echo_n "checking for dlopen in -ldl... " >&6; }
! 11649: if ${ac_cv_lib_dl_dlopen+:} false; then :
! 11650: $as_echo_n "(cached) " >&6
1.8 moko 11651: else
11652: ac_check_lib_save_LIBS=$LIBS
11653: LIBS="-ldl $LIBS"
1.22 ! moko 11654: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11655: /* end confdefs.h. */
11656:
1.22 ! moko 11657: /* Override any GCC internal prototype to avoid an error.
! 11658: Use char because int might match the return type of a GCC
! 11659: builtin and then its argument prototype would still apply. */
1.8 moko 11660: #ifdef __cplusplus
11661: extern "C"
11662: #endif
11663: char dlopen ();
11664: int
11665: main ()
11666: {
1.22 ! moko 11667: return dlopen ();
1.8 moko 11668: ;
11669: return 0;
11670: }
11671: _ACEOF
1.22 ! moko 11672: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 11673: ac_cv_lib_dl_dlopen=yes
11674: else
1.22 ! moko 11675: ac_cv_lib_dl_dlopen=no
1.8 moko 11676: fi
1.22 ! moko 11677: rm -f core conftest.err conftest.$ac_objext \
! 11678: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11679: LIBS=$ac_check_lib_save_LIBS
11680: fi
1.22 ! moko 11681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 11682: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
! 11683: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.8 moko 11684: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11685: else
11686:
11687: lt_cv_dlopen="dyld"
11688: lt_cv_dlopen_libs=
11689: lt_cv_dlopen_self=yes
11690:
11691: fi
11692:
11693: ;;
11694:
11695: *)
1.22 ! moko 11696: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
! 11697: if test "x$ac_cv_func_shl_load" = xyes; then :
1.8 moko 11698: lt_cv_dlopen="shl_load"
11699: else
1.22 ! moko 11700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
! 11701: $as_echo_n "checking for shl_load in -ldld... " >&6; }
! 11702: if ${ac_cv_lib_dld_shl_load+:} false; then :
! 11703: $as_echo_n "(cached) " >&6
1.11 moko 11704: else
1.22 ! moko 11705: ac_check_lib_save_LIBS=$LIBS
! 11706: LIBS="-ldld $LIBS"
! 11707: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 moko 11708: /* end confdefs.h. */
11709:
1.22 ! moko 11710: /* Override any GCC internal prototype to avoid an error.
! 11711: Use char because int might match the return type of a GCC
! 11712: builtin and then its argument prototype would still apply. */
1.11 moko 11713: #ifdef __cplusplus
11714: extern "C"
11715: #endif
1.22 ! moko 11716: char shl_load ();
1.11 moko 11717: int
11718: main ()
11719: {
1.22 ! moko 11720: return shl_load ();
1.11 moko 11721: ;
11722: return 0;
11723: }
11724: _ACEOF
1.22 ! moko 11725: if ac_fn_c_try_link "$LINENO"; then :
! 11726: ac_cv_lib_dld_shl_load=yes
1.11 moko 11727: else
1.22 ! moko 11728: ac_cv_lib_dld_shl_load=no
1.11 moko 11729: fi
1.22 ! moko 11730: rm -f core conftest.err conftest.$ac_objext \
! 11731: conftest$ac_exeext conftest.$ac_ext
! 11732: LIBS=$ac_check_lib_save_LIBS
1.11 moko 11733: fi
1.22 ! moko 11734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
! 11735: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
! 11736: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
! 11737: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
! 11738: else
! 11739: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
! 11740: if test "x$ac_cv_func_dlopen" = xyes; then :
1.8 moko 11741: lt_cv_dlopen="dlopen"
11742: else
1.22 ! moko 11743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 11744: $as_echo_n "checking for dlopen in -ldl... " >&6; }
! 11745: if ${ac_cv_lib_dl_dlopen+:} false; then :
! 11746: $as_echo_n "(cached) " >&6
1.8 moko 11747: else
11748: ac_check_lib_save_LIBS=$LIBS
11749: LIBS="-ldl $LIBS"
1.22 ! moko 11750: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11751: /* end confdefs.h. */
11752:
1.22 ! moko 11753: /* Override any GCC internal prototype to avoid an error.
! 11754: Use char because int might match the return type of a GCC
! 11755: builtin and then its argument prototype would still apply. */
1.8 moko 11756: #ifdef __cplusplus
11757: extern "C"
11758: #endif
11759: char dlopen ();
11760: int
11761: main ()
11762: {
1.22 ! moko 11763: return dlopen ();
1.8 moko 11764: ;
11765: return 0;
11766: }
11767: _ACEOF
1.22 ! moko 11768: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 11769: ac_cv_lib_dl_dlopen=yes
11770: else
1.22 ! moko 11771: ac_cv_lib_dl_dlopen=no
1.8 moko 11772: fi
1.22 ! moko 11773: rm -f core conftest.err conftest.$ac_objext \
! 11774: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11775: LIBS=$ac_check_lib_save_LIBS
11776: fi
1.22 ! moko 11777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 11778: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
! 11779: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.8 moko 11780: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11781: else
1.22 ! moko 11782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
! 11783: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
! 11784: if ${ac_cv_lib_svld_dlopen+:} false; then :
! 11785: $as_echo_n "(cached) " >&6
1.8 moko 11786: else
11787: ac_check_lib_save_LIBS=$LIBS
11788: LIBS="-lsvld $LIBS"
1.22 ! moko 11789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11790: /* end confdefs.h. */
11791:
1.22 ! moko 11792: /* Override any GCC internal prototype to avoid an error.
! 11793: Use char because int might match the return type of a GCC
! 11794: builtin and then its argument prototype would still apply. */
1.8 moko 11795: #ifdef __cplusplus
11796: extern "C"
11797: #endif
11798: char dlopen ();
11799: int
11800: main ()
11801: {
1.22 ! moko 11802: return dlopen ();
1.8 moko 11803: ;
11804: return 0;
11805: }
11806: _ACEOF
1.22 ! moko 11807: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 11808: ac_cv_lib_svld_dlopen=yes
11809: else
1.22 ! moko 11810: ac_cv_lib_svld_dlopen=no
1.8 moko 11811: fi
1.22 ! moko 11812: rm -f core conftest.err conftest.$ac_objext \
! 11813: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11814: LIBS=$ac_check_lib_save_LIBS
11815: fi
1.22 ! moko 11816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
! 11817: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
! 11818: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.8 moko 11819: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11820: else
1.22 ! moko 11821: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
! 11822: $as_echo_n "checking for dld_link in -ldld... " >&6; }
! 11823: if ${ac_cv_lib_dld_dld_link+:} false; then :
! 11824: $as_echo_n "(cached) " >&6
1.8 moko 11825: else
11826: ac_check_lib_save_LIBS=$LIBS
11827: LIBS="-ldld $LIBS"
1.22 ! moko 11828: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11829: /* end confdefs.h. */
11830:
1.22 ! moko 11831: /* Override any GCC internal prototype to avoid an error.
! 11832: Use char because int might match the return type of a GCC
! 11833: builtin and then its argument prototype would still apply. */
1.8 moko 11834: #ifdef __cplusplus
11835: extern "C"
11836: #endif
11837: char dld_link ();
11838: int
11839: main ()
11840: {
1.22 ! moko 11841: return dld_link ();
1.8 moko 11842: ;
11843: return 0;
11844: }
11845: _ACEOF
1.22 ! moko 11846: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 11847: ac_cv_lib_dld_dld_link=yes
11848: else
1.22 ! moko 11849: ac_cv_lib_dld_dld_link=no
1.8 moko 11850: fi
1.22 ! moko 11851: rm -f core conftest.err conftest.$ac_objext \
! 11852: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11853: LIBS=$ac_check_lib_save_LIBS
11854: fi
1.22 ! moko 11855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
! 11856: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
! 11857: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.8 moko 11858: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11859: fi
11860:
11861:
11862: fi
11863:
11864:
11865: fi
11866:
11867:
11868: fi
11869:
11870:
11871: fi
11872:
11873:
11874: fi
11875:
11876: ;;
11877: esac
11878:
11879: if test "x$lt_cv_dlopen" != xno; then
11880: enable_dlopen=yes
11881: else
11882: enable_dlopen=no
11883: fi
11884:
11885: case $lt_cv_dlopen in
11886: dlopen)
11887: save_CPPFLAGS="$CPPFLAGS"
11888: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11889:
11890: save_LDFLAGS="$LDFLAGS"
11891: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11892:
11893: save_LIBS="$LIBS"
11894: LIBS="$lt_cv_dlopen_libs $LIBS"
11895:
1.22 ! moko 11896: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
! 11897: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
! 11898: if ${lt_cv_dlopen_self+:} false; then :
! 11899: $as_echo_n "(cached) " >&6
1.8 moko 11900: else
11901: if test "$cross_compiling" = yes; then :
11902: lt_cv_dlopen_self=cross
11903: else
11904: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11905: lt_status=$lt_dlunknown
11906: cat > conftest.$ac_ext <<_LT_EOF
11907: #line $LINENO "configure"
11908: #include "confdefs.h"
11909:
11910: #if HAVE_DLFCN_H
11911: #include <dlfcn.h>
11912: #endif
11913:
11914: #include <stdio.h>
11915:
11916: #ifdef RTLD_GLOBAL
11917: # define LT_DLGLOBAL RTLD_GLOBAL
11918: #else
11919: # ifdef DL_GLOBAL
11920: # define LT_DLGLOBAL DL_GLOBAL
11921: # else
11922: # define LT_DLGLOBAL 0
11923: # endif
11924: #endif
11925:
11926: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11927: find out it does not work in some platform. */
11928: #ifndef LT_DLLAZY_OR_NOW
11929: # ifdef RTLD_LAZY
11930: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11931: # else
11932: # ifdef DL_LAZY
11933: # define LT_DLLAZY_OR_NOW DL_LAZY
11934: # else
11935: # ifdef RTLD_NOW
11936: # define LT_DLLAZY_OR_NOW RTLD_NOW
11937: # else
11938: # ifdef DL_NOW
11939: # define LT_DLLAZY_OR_NOW DL_NOW
11940: # else
11941: # define LT_DLLAZY_OR_NOW 0
11942: # endif
11943: # endif
11944: # endif
11945: # endif
11946: #endif
11947:
11948: /* When -fvisbility=hidden is used, assume the code has been annotated
11949: correspondingly for the symbols needed. */
11950: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11951: int fnord () __attribute__((visibility("default")));
11952: #endif
11953:
11954: int fnord () { return 42; }
11955: int main ()
11956: {
11957: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11958: int status = $lt_dlunknown;
11959:
11960: if (self)
11961: {
11962: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11963: else
11964: {
11965: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11966: else puts (dlerror ());
11967: }
11968: /* dlclose (self); */
11969: }
11970: else
11971: puts (dlerror ());
11972:
11973: return status;
11974: }
11975: _LT_EOF
1.22 ! moko 11976: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 11977: (eval $ac_link) 2>&5
11978: ac_status=$?
1.22 ! moko 11979: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 11980: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11981: (./conftest; exit; ) >&5 2>/dev/null
11982: lt_status=$?
11983: case x$lt_status in
11984: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11985: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11986: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11987: esac
11988: else :
11989: # compilation failed
11990: lt_cv_dlopen_self=no
11991: fi
11992: fi
11993: rm -fr conftest*
11994:
11995:
11996: fi
1.22 ! moko 11997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
! 11998: $as_echo "$lt_cv_dlopen_self" >&6; }
1.8 moko 11999:
12000: if test "x$lt_cv_dlopen_self" = xyes; then
12001: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.22 ! moko 12002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
! 12003: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
! 12004: if ${lt_cv_dlopen_self_static+:} false; then :
! 12005: $as_echo_n "(cached) " >&6
1.8 moko 12006: else
12007: if test "$cross_compiling" = yes; then :
12008: lt_cv_dlopen_self_static=cross
12009: else
12010: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12011: lt_status=$lt_dlunknown
12012: cat > conftest.$ac_ext <<_LT_EOF
12013: #line $LINENO "configure"
12014: #include "confdefs.h"
12015:
12016: #if HAVE_DLFCN_H
12017: #include <dlfcn.h>
12018: #endif
12019:
12020: #include <stdio.h>
12021:
12022: #ifdef RTLD_GLOBAL
12023: # define LT_DLGLOBAL RTLD_GLOBAL
12024: #else
12025: # ifdef DL_GLOBAL
12026: # define LT_DLGLOBAL DL_GLOBAL
12027: # else
12028: # define LT_DLGLOBAL 0
12029: # endif
12030: #endif
12031:
12032: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12033: find out it does not work in some platform. */
12034: #ifndef LT_DLLAZY_OR_NOW
12035: # ifdef RTLD_LAZY
12036: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12037: # else
12038: # ifdef DL_LAZY
12039: # define LT_DLLAZY_OR_NOW DL_LAZY
12040: # else
12041: # ifdef RTLD_NOW
12042: # define LT_DLLAZY_OR_NOW RTLD_NOW
12043: # else
12044: # ifdef DL_NOW
12045: # define LT_DLLAZY_OR_NOW DL_NOW
12046: # else
12047: # define LT_DLLAZY_OR_NOW 0
12048: # endif
12049: # endif
12050: # endif
12051: # endif
12052: #endif
12053:
12054: /* When -fvisbility=hidden is used, assume the code has been annotated
12055: correspondingly for the symbols needed. */
12056: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12057: int fnord () __attribute__((visibility("default")));
12058: #endif
12059:
12060: int fnord () { return 42; }
12061: int main ()
12062: {
12063: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12064: int status = $lt_dlunknown;
12065:
12066: if (self)
12067: {
12068: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12069: else
12070: {
12071: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12072: else puts (dlerror ());
12073: }
12074: /* dlclose (self); */
12075: }
12076: else
12077: puts (dlerror ());
12078:
12079: return status;
12080: }
12081: _LT_EOF
1.22 ! moko 12082: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 12083: (eval $ac_link) 2>&5
12084: ac_status=$?
1.22 ! moko 12085: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 12086: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 12087: (./conftest; exit; ) >&5 2>/dev/null
12088: lt_status=$?
12089: case x$lt_status in
12090: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12091: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12092: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12093: esac
12094: else :
12095: # compilation failed
12096: lt_cv_dlopen_self_static=no
12097: fi
12098: fi
12099: rm -fr conftest*
12100:
12101:
12102: fi
1.22 ! moko 12103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
! 12104: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.8 moko 12105: fi
12106:
12107: CPPFLAGS="$save_CPPFLAGS"
12108: LDFLAGS="$save_LDFLAGS"
12109: LIBS="$save_LIBS"
12110: ;;
12111: esac
12112:
12113: case $lt_cv_dlopen_self in
12114: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12115: *) enable_dlopen_self=unknown ;;
12116: esac
12117:
12118: case $lt_cv_dlopen_self_static in
12119: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12120: *) enable_dlopen_self_static=unknown ;;
12121: esac
12122: fi
12123:
12124:
12125:
12126:
12127:
12128:
12129:
12130:
12131:
12132:
12133:
12134:
12135:
12136:
12137:
12138:
12139:
12140: striplib=
12141: old_striplib=
1.22 ! moko 12142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
! 12143: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.8 moko 12144: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12145: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12146: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.22 ! moko 12147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 12148: $as_echo "yes" >&6; }
1.8 moko 12149: else
12150: # FIXME - insert some real tests, host_os isn't really good enough
12151: case $host_os in
12152: darwin*)
12153: if test -n "$STRIP" ; then
12154: striplib="$STRIP -x"
12155: old_striplib="$STRIP -S"
1.22 ! moko 12156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 12157: $as_echo "yes" >&6; }
1.8 moko 12158: else
1.22 ! moko 12159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12160: $as_echo "no" >&6; }
1.8 moko 12161: fi
12162: ;;
12163: *)
1.22 ! moko 12164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12165: $as_echo "no" >&6; }
1.8 moko 12166: ;;
12167: esac
12168: fi
12169:
12170:
12171:
12172:
12173:
12174:
12175:
12176:
12177:
12178:
12179:
12180:
12181: # Report which library types will actually be built
1.22 ! moko 12182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
! 12183: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
! 12184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
! 12185: $as_echo "$can_build_shared" >&6; }
1.8 moko 12186:
1.22 ! moko 12187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
! 12188: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.8 moko 12189: test "$can_build_shared" = "no" && enable_shared=no
12190:
12191: # On AIX, shared libraries and static libraries use the same namespace, and
12192: # are all built from PIC.
12193: case $host_os in
12194: aix3*)
12195: test "$enable_shared" = yes && enable_static=no
12196: if test -n "$RANLIB"; then
12197: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12198: postinstall_cmds='$RANLIB $lib'
12199: fi
12200: ;;
12201:
12202: aix[4-9]*)
12203: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12204: test "$enable_shared" = yes && enable_static=no
12205: fi
12206: ;;
12207: esac
1.22 ! moko 12208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
! 12209: $as_echo "$enable_shared" >&6; }
1.8 moko 12210:
1.22 ! moko 12211: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
! 12212: $as_echo_n "checking whether to build static libraries... " >&6; }
1.8 moko 12213: # Make sure either enable_shared or enable_static is yes.
12214: test "$enable_shared" = yes || enable_static=yes
1.22 ! moko 12215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
! 12216: $as_echo "$enable_static" >&6; }
1.8 moko 12217:
12218:
12219:
12220:
12221: fi
12222: ac_ext=c
12223: ac_cpp='$CPP $CPPFLAGS'
12224: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12225: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227:
12228: CC="$lt_save_CC"
12229:
12230: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12231: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12232: (test "X$CXX" != "Xg++"))) ; then
1.22 ! moko 12233: ac_ext=cpp
1.8 moko 12234: ac_cpp='$CXXCPP $CPPFLAGS'
12235: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12236: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12237: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.22 ! moko 12238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
! 12239: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.8 moko 12240: if test -z "$CXXCPP"; then
1.22 ! moko 12241: if ${ac_cv_prog_CXXCPP+:} false; then :
! 12242: $as_echo_n "(cached) " >&6
1.8 moko 12243: else
12244: # Double quotes because CXXCPP needs to be expanded
12245: for CXXCPP in "$CXX -E" "/lib/cpp"
12246: do
12247: ac_preproc_ok=false
12248: for ac_cxx_preproc_warn_flag in '' yes
12249: do
12250: # Use a header file that comes with gcc, so configuring glibc
12251: # with a fresh cross-compiler works.
12252: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12253: # <limits.h> exists even on freestanding compilers.
12254: # On the NeXT, cc -E runs the code through the compiler's parser,
12255: # not just through cpp. "Syntax error" is here to catch this case.
1.22 ! moko 12256: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12257: /* end confdefs.h. */
12258: #ifdef __STDC__
12259: # include <limits.h>
12260: #else
12261: # include <assert.h>
12262: #endif
12263: Syntax error
12264: _ACEOF
1.22 ! moko 12265: if ac_fn_cxx_try_cpp "$LINENO"; then :
! 12266:
1.11 moko 12267: else
1.8 moko 12268: # Broken: fails on valid input.
12269: continue
12270: fi
1.22 ! moko 12271: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 12272:
1.22 ! moko 12273: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 12274: # can be detected and how.
1.22 ! moko 12275: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12276: /* end confdefs.h. */
12277: #include <ac_nonexistent.h>
12278: _ACEOF
1.22 ! moko 12279: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.8 moko 12280: # Broken: success on invalid input.
12281: continue
12282: else
12283: # Passes both tests.
12284: ac_preproc_ok=:
12285: break
12286: fi
1.22 ! moko 12287: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 12288:
12289: done
12290: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.22 ! moko 12291: rm -f conftest.i conftest.err conftest.$ac_ext
! 12292: if $ac_preproc_ok; then :
1.8 moko 12293: break
12294: fi
12295:
12296: done
12297: ac_cv_prog_CXXCPP=$CXXCPP
12298:
12299: fi
12300: CXXCPP=$ac_cv_prog_CXXCPP
12301: else
12302: ac_cv_prog_CXXCPP=$CXXCPP
12303: fi
1.22 ! moko 12304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
! 12305: $as_echo "$CXXCPP" >&6; }
1.8 moko 12306: ac_preproc_ok=false
12307: for ac_cxx_preproc_warn_flag in '' yes
12308: do
12309: # Use a header file that comes with gcc, so configuring glibc
12310: # with a fresh cross-compiler works.
12311: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12312: # <limits.h> exists even on freestanding compilers.
12313: # On the NeXT, cc -E runs the code through the compiler's parser,
12314: # not just through cpp. "Syntax error" is here to catch this case.
1.22 ! moko 12315: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12316: /* end confdefs.h. */
12317: #ifdef __STDC__
12318: # include <limits.h>
12319: #else
12320: # include <assert.h>
12321: #endif
12322: Syntax error
12323: _ACEOF
1.22 ! moko 12324: if ac_fn_cxx_try_cpp "$LINENO"; then :
! 12325:
1.11 moko 12326: else
1.10 moko 12327: # Broken: fails on valid input.
1.8 moko 12328: continue
12329: fi
1.22 ! moko 12330: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 12331:
1.22 ! moko 12332: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 12333: # can be detected and how.
1.22 ! moko 12334: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12335: /* end confdefs.h. */
12336: #include <ac_nonexistent.h>
12337: _ACEOF
1.22 ! moko 12338: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.8 moko 12339: # Broken: success on invalid input.
12340: continue
12341: else
12342: # Passes both tests.
12343: ac_preproc_ok=:
12344: break
12345: fi
1.22 ! moko 12346: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 12347:
12348: done
12349: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.22 ! moko 12350: rm -f conftest.i conftest.err conftest.$ac_ext
! 12351: if $ac_preproc_ok; then :
! 12352:
1.8 moko 12353: else
1.22 ! moko 12354: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 12355: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 12356: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
! 12357: See \`config.log' for more details" "$LINENO" 5; }
1.8 moko 12358: fi
12359:
12360: ac_ext=c
12361: ac_cpp='$CPP $CPPFLAGS'
12362: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12363: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12364: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12365:
12366: else
12367: _lt_caught_CXX_error=yes
12368: fi
12369:
1.22 ! moko 12370: ac_ext=cpp
1.8 moko 12371: ac_cpp='$CXXCPP $CPPFLAGS'
12372: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12373: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12374: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12375:
12376: archive_cmds_need_lc_CXX=no
12377: allow_undefined_flag_CXX=
12378: always_export_symbols_CXX=no
12379: archive_expsym_cmds_CXX=
12380: compiler_needs_object_CXX=no
12381: export_dynamic_flag_spec_CXX=
12382: hardcode_direct_CXX=no
12383: hardcode_direct_absolute_CXX=no
12384: hardcode_libdir_flag_spec_CXX=
12385: hardcode_libdir_separator_CXX=
12386: hardcode_minus_L_CXX=no
12387: hardcode_shlibpath_var_CXX=unsupported
12388: hardcode_automatic_CXX=no
12389: inherit_rpath_CXX=no
12390: module_cmds_CXX=
12391: module_expsym_cmds_CXX=
12392: link_all_deplibs_CXX=unknown
12393: old_archive_cmds_CXX=$old_archive_cmds
12394: reload_flag_CXX=$reload_flag
12395: reload_cmds_CXX=$reload_cmds
12396: no_undefined_flag_CXX=
12397: whole_archive_flag_spec_CXX=
12398: enable_shared_with_static_runtimes_CXX=no
12399:
12400: # Source file extension for C++ test sources.
12401: ac_ext=cpp
12402:
12403: # Object file extension for compiled C++ test sources.
12404: objext=o
12405: objext_CXX=$objext
12406:
12407: # No sense in running all these tests if we already determined that
12408: # the CXX compiler isn't working. Some variables (like enable_shared)
12409: # are currently assumed to apply to all compilers on this platform,
12410: # and will be corrupted by setting them based on a non-working compiler.
12411: if test "$_lt_caught_CXX_error" != yes; then
12412: # Code to be used in simple compile tests
12413: lt_simple_compile_test_code="int some_variable = 0;"
12414:
12415: # Code to be used in simple link tests
12416: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12417:
12418: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12419:
12420:
12421:
12422:
12423:
12424:
12425: # If no C compiler was specified, use CC.
12426: LTCC=${LTCC-"$CC"}
12427:
12428: # If no C compiler flags were specified, use CFLAGS.
12429: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12430:
12431: # Allow CC to be a program name with arguments.
12432: compiler=$CC
12433:
12434:
12435: # save warnings/boilerplate of simple test code
12436: ac_outfile=conftest.$ac_objext
12437: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12438: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12439: _lt_compiler_boilerplate=`cat conftest.err`
12440: $RM conftest*
12441:
12442: ac_outfile=conftest.$ac_objext
12443: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12444: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12445: _lt_linker_boilerplate=`cat conftest.err`
12446: $RM -r conftest*
12447:
12448:
12449: # Allow CC to be a program name with arguments.
12450: lt_save_CC=$CC
12451: lt_save_CFLAGS=$CFLAGS
12452: lt_save_LD=$LD
12453: lt_save_GCC=$GCC
12454: GCC=$GXX
12455: lt_save_with_gnu_ld=$with_gnu_ld
12456: lt_save_path_LD=$lt_cv_path_LD
12457: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12458: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12459: else
12460: $as_unset lt_cv_prog_gnu_ld
12461: fi
12462: if test -n "${lt_cv_path_LDCXX+set}"; then
12463: lt_cv_path_LD=$lt_cv_path_LDCXX
12464: else
12465: $as_unset lt_cv_path_LD
12466: fi
12467: test -z "${LDCXX+set}" || LD=$LDCXX
12468: CC=${CXX-"c++"}
12469: CFLAGS=$CXXFLAGS
12470: compiler=$CC
12471: compiler_CXX=$CC
12472: for cc_temp in $compiler""; do
12473: case $cc_temp in
12474: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12475: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12476: \-*) ;;
12477: *) break;;
12478: esac
12479: done
12480: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12481:
12482:
12483: if test -n "$compiler"; then
12484: # We don't want -fno-exception when compiling C++ code, so set the
12485: # no_builtin_flag separately
12486: if test "$GXX" = yes; then
12487: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12488: else
12489: lt_prog_compiler_no_builtin_flag_CXX=
12490: fi
12491:
12492: if test "$GXX" = yes; then
12493: # Set up default GNU C++ configuration
12494:
12495:
12496:
1.22 ! moko 12497: # Check whether --with-gnu-ld was given.
! 12498: if test "${with_gnu_ld+set}" = set; then :
! 12499: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.8 moko 12500: else
12501: with_gnu_ld=no
1.22 ! moko 12502: fi
! 12503:
1.8 moko 12504: ac_prog=ld
12505: if test "$GCC" = yes; then
12506: # Check if gcc -print-prog-name=ld gives a path.
1.22 ! moko 12507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
! 12508: $as_echo_n "checking for ld used by $CC... " >&6; }
1.8 moko 12509: case $host in
12510: *-*-mingw*)
12511: # gcc leaves a trailing carriage return which upsets mingw
12512: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12513: *)
12514: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12515: esac
12516: case $ac_prog in
12517: # Accept absolute paths.
12518: [\\/]* | ?:[\\/]*)
12519: re_direlt='/[^/][^/]*/\.\./'
12520: # Canonicalize the pathname of ld
12521: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12522: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12523: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12524: done
12525: test -z "$LD" && LD="$ac_prog"
12526: ;;
12527: "")
12528: # If it fails, then pretend we aren't using GCC.
12529: ac_prog=ld
12530: ;;
12531: *)
12532: # If it is relative, then search for the first ld in PATH.
12533: with_gnu_ld=unknown
12534: ;;
12535: esac
12536: elif test "$with_gnu_ld" = yes; then
1.22 ! moko 12537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
! 12538: $as_echo_n "checking for GNU ld... " >&6; }
1.8 moko 12539: else
1.22 ! moko 12540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
! 12541: $as_echo_n "checking for non-GNU ld... " >&6; }
1.8 moko 12542: fi
1.22 ! moko 12543: if ${lt_cv_path_LD+:} false; then :
! 12544: $as_echo_n "(cached) " >&6
1.8 moko 12545: else
12546: if test -z "$LD"; then
12547: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12548: for ac_dir in $PATH; do
12549: IFS="$lt_save_ifs"
12550: test -z "$ac_dir" && ac_dir=.
12551: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12552: lt_cv_path_LD="$ac_dir/$ac_prog"
12553: # Check to see if the program is GNU ld. I'd rather use --version,
12554: # but apparently some variants of GNU ld only accept -v.
12555: # Break only if it was the GNU/non-GNU ld that we prefer.
12556: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12557: *GNU* | *'with BFD'*)
12558: test "$with_gnu_ld" != no && break
12559: ;;
12560: *)
12561: test "$with_gnu_ld" != yes && break
12562: ;;
12563: esac
12564: fi
12565: done
12566: IFS="$lt_save_ifs"
12567: else
12568: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12569: fi
12570: fi
12571:
12572: LD="$lt_cv_path_LD"
12573: if test -n "$LD"; then
1.22 ! moko 12574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
! 12575: $as_echo "$LD" >&6; }
1.8 moko 12576: else
1.22 ! moko 12577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12578: $as_echo "no" >&6; }
1.8 moko 12579: fi
1.22 ! moko 12580: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
! 12581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
! 12582: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
! 12583: if ${lt_cv_prog_gnu_ld+:} false; then :
! 12584: $as_echo_n "(cached) " >&6
1.8 moko 12585: else
12586: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12587: case `$LD -v 2>&1 </dev/null` in
12588: *GNU* | *'with BFD'*)
12589: lt_cv_prog_gnu_ld=yes
12590: ;;
12591: *)
12592: lt_cv_prog_gnu_ld=no
12593: ;;
12594: esac
12595: fi
1.22 ! moko 12596: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
! 12597: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.8 moko 12598: with_gnu_ld=$lt_cv_prog_gnu_ld
12599:
12600:
12601:
12602:
12603:
12604:
12605:
12606: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12607: # archiving commands below assume that GNU ld is being used.
12608: if test "$with_gnu_ld" = yes; then
12609: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12610: 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'
12611:
12612: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12613: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12614:
12615: # If archive_cmds runs LD, not CC, wlarc should be empty
12616: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12617: # investigate it a little bit more. (MM)
12618: wlarc='${wl}'
12619:
12620: # ancient GNU ld didn't support --whole-archive et. al.
12621: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12622: $GREP 'no-whole-archive' > /dev/null; then
12623: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12624: else
12625: whole_archive_flag_spec_CXX=
12626: fi
12627: else
12628: with_gnu_ld=no
12629: wlarc=
12630:
12631: # A generic and very simple default shared library creation
12632: # command for GNU C++ for the case where it uses the native
12633: # linker, instead of GNU ld. If possible, this setting should
12634: # overridden to take advantage of the native linker features on
12635: # the platform it is being used on.
12636: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12637: fi
12638:
12639: # Commands to make compiler produce verbose output that lists
12640: # what "hidden" libraries, object files and flags are used when
12641: # linking a shared library.
12642: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12643:
12644: else
12645: GXX=no
12646: with_gnu_ld=no
12647: wlarc=
12648: fi
12649:
12650: # PORTME: fill in a description of your system's C++ link characteristics
1.22 ! moko 12651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 12652: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.8 moko 12653: ld_shlibs_CXX=yes
12654: case $host_os in
12655: aix3*)
12656: # FIXME: insert proper C++ library support
12657: ld_shlibs_CXX=no
12658: ;;
12659: aix[4-9]*)
12660: if test "$host_cpu" = ia64; then
12661: # On IA64, the linker does run time linking by default, so we don't
12662: # have to do anything special.
12663: aix_use_runtimelinking=no
12664: exp_sym_flag='-Bexport'
12665: no_entry_flag=""
12666: else
12667: aix_use_runtimelinking=no
12668:
12669: # Test if we are trying to use run time linking or normal
12670: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12671: # need to do runtime linking.
12672: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12673: for ld_flag in $LDFLAGS; do
12674: case $ld_flag in
12675: *-brtl*)
12676: aix_use_runtimelinking=yes
12677: break
12678: ;;
12679: esac
12680: done
12681: ;;
12682: esac
12683:
12684: exp_sym_flag='-bexport'
12685: no_entry_flag='-bnoentry'
12686: fi
12687:
12688: # When large executables or shared objects are built, AIX ld can
12689: # have problems creating the table of contents. If linking a library
12690: # or program results in "error TOC overflow" add -mminimal-toc to
12691: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12692: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12693:
12694: archive_cmds_CXX=''
12695: hardcode_direct_CXX=yes
12696: hardcode_direct_absolute_CXX=yes
12697: hardcode_libdir_separator_CXX=':'
12698: link_all_deplibs_CXX=yes
12699: file_list_spec_CXX='${wl}-f,'
12700:
12701: if test "$GXX" = yes; then
12702: case $host_os in aix4.[012]|aix4.[012].*)
12703: # We only want to do this on AIX 4.2 and lower, the check
12704: # below for broken collect2 doesn't work under 4.3+
12705: collect2name=`${CC} -print-prog-name=collect2`
12706: if test -f "$collect2name" &&
12707: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12708: then
12709: # We have reworked collect2
12710: :
12711: else
12712: # We have old collect2
12713: hardcode_direct_CXX=unsupported
12714: # It fails to find uninstalled libraries when the uninstalled
12715: # path is not listed in the libpath. Setting hardcode_minus_L
12716: # to unsupported forces relinking
12717: hardcode_minus_L_CXX=yes
12718: hardcode_libdir_flag_spec_CXX='-L$libdir'
12719: hardcode_libdir_separator_CXX=
12720: fi
12721: esac
12722: shared_flag='-shared'
12723: if test "$aix_use_runtimelinking" = yes; then
12724: shared_flag="$shared_flag "'${wl}-G'
12725: fi
12726: else
12727: # not using gcc
12728: if test "$host_cpu" = ia64; then
12729: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12730: # chokes on -Wl,-G. The following line is correct:
12731: shared_flag='-G'
12732: else
12733: if test "$aix_use_runtimelinking" = yes; then
12734: shared_flag='${wl}-G'
12735: else
12736: shared_flag='${wl}-bM:SRE'
12737: fi
12738: fi
12739: fi
12740:
12741: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12742: # It seems that -bexpall does not export symbols beginning with
12743: # underscore (_), so it is better to generate a list of symbols to
12744: # export.
12745: always_export_symbols_CXX=yes
12746: if test "$aix_use_runtimelinking" = yes; then
12747: # Warning - without using the other runtime loading flags (-brtl),
12748: # -berok will link without error, but may produce a broken library.
12749: allow_undefined_flag_CXX='-berok'
12750: # Determine the default libpath from the value encoded in an empty
12751: # executable.
12752: if test "${lt_cv_aix_libpath+set}" = set; then
12753: aix_libpath=$lt_cv_aix_libpath
12754: else
1.22 ! moko 12755: if ${lt_cv_aix_libpath__CXX+:} false; then :
! 12756: $as_echo_n "(cached) " >&6
1.8 moko 12757: else
1.22 ! moko 12758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12759: /* end confdefs.h. */
12760:
12761: int
12762: main ()
12763: {
12764:
12765: ;
12766: return 0;
12767: }
12768: _ACEOF
1.22 ! moko 12769: if ac_fn_cxx_try_link "$LINENO"; then :
1.8 moko 12770:
12771: lt_aix_libpath_sed='
12772: /Import File Strings/,/^$/ {
12773: /^0/ {
12774: s/^0 *\([^ ]*\) *$/\1/
12775: p
12776: }
12777: }'
12778: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12779: # Check for a 64-bit object if we didn't find anything.
12780: if test -z "$lt_cv_aix_libpath__CXX"; then
12781: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12782: fi
12783: fi
1.22 ! moko 12784: rm -f core conftest.err conftest.$ac_objext \
! 12785: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12786: if test -z "$lt_cv_aix_libpath__CXX"; then
12787: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12788: fi
12789:
12790: fi
12791:
12792: aix_libpath=$lt_cv_aix_libpath__CXX
12793: fi
12794:
12795: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12796:
12797: 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"
12798: else
12799: if test "$host_cpu" = ia64; then
12800: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12801: allow_undefined_flag_CXX="-z nodefs"
12802: 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"
12803: else
12804: # Determine the default libpath from the value encoded in an
12805: # empty executable.
12806: if test "${lt_cv_aix_libpath+set}" = set; then
12807: aix_libpath=$lt_cv_aix_libpath
12808: else
1.22 ! moko 12809: if ${lt_cv_aix_libpath__CXX+:} false; then :
! 12810: $as_echo_n "(cached) " >&6
1.8 moko 12811: else
1.22 ! moko 12812: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12813: /* end confdefs.h. */
12814:
12815: int
12816: main ()
12817: {
12818:
12819: ;
12820: return 0;
12821: }
12822: _ACEOF
1.22 ! moko 12823: if ac_fn_cxx_try_link "$LINENO"; then :
1.8 moko 12824:
12825: lt_aix_libpath_sed='
12826: /Import File Strings/,/^$/ {
12827: /^0/ {
12828: s/^0 *\([^ ]*\) *$/\1/
12829: p
12830: }
12831: }'
12832: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12833: # Check for a 64-bit object if we didn't find anything.
12834: if test -z "$lt_cv_aix_libpath__CXX"; then
12835: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12836: fi
12837: fi
1.22 ! moko 12838: rm -f core conftest.err conftest.$ac_objext \
! 12839: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12840: if test -z "$lt_cv_aix_libpath__CXX"; then
12841: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12842: fi
12843:
12844: fi
12845:
12846: aix_libpath=$lt_cv_aix_libpath__CXX
12847: fi
12848:
12849: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12850: # Warning - without using the other run time loading flags,
12851: # -berok will link without error, but may produce a broken library.
12852: no_undefined_flag_CXX=' ${wl}-bernotok'
12853: allow_undefined_flag_CXX=' ${wl}-berok'
12854: if test "$with_gnu_ld" = yes; then
12855: # We only use this code for GNU lds that support --whole-archive.
12856: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12857: else
12858: # Exported symbols can be pulled into shared objects from archives
12859: whole_archive_flag_spec_CXX='$convenience'
12860: fi
12861: archive_cmds_need_lc_CXX=yes
12862: # This is similar to how AIX traditionally builds its shared
12863: # libraries.
12864: 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'
12865: fi
12866: fi
12867: ;;
12868:
12869: beos*)
12870: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12871: allow_undefined_flag_CXX=unsupported
12872: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12873: # support --undefined. This deserves some investigation. FIXME
12874: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875: else
12876: ld_shlibs_CXX=no
12877: fi
12878: ;;
12879:
12880: chorus*)
12881: case $cc_basename in
12882: *)
12883: # FIXME: insert proper C++ library support
12884: ld_shlibs_CXX=no
12885: ;;
12886: esac
12887: ;;
12888:
12889: cygwin* | mingw* | pw32* | cegcc*)
12890: case $GXX,$cc_basename in
12891: ,cl* | no,cl*)
12892: # Native MSVC
12893: # hardcode_libdir_flag_spec is actually meaningless, as there is
12894: # no search path for DLLs.
12895: hardcode_libdir_flag_spec_CXX=' '
12896: allow_undefined_flag_CXX=unsupported
12897: always_export_symbols_CXX=yes
12898: file_list_spec_CXX='@'
12899: # Tell ltmain to make .lib files, not .a files.
12900: libext=lib
12901: # Tell ltmain to make .dll files, not .so files.
12902: shrext_cmds=".dll"
12903: # FIXME: Setting linknames here is a bad hack.
12904: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12905: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12906: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12907: else
12908: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12909: fi~
12910: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12911: linknames='
12912: # The linker will not automatically build a static lib if we build a DLL.
12913: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12914: enable_shared_with_static_runtimes_CXX=yes
12915: # Don't use ranlib
12916: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12917: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12918: lt_tool_outputfile="@TOOL_OUTPUT@"~
12919: case $lt_outputfile in
12920: *.exe|*.EXE) ;;
12921: *)
12922: lt_outputfile="$lt_outputfile.exe"
12923: lt_tool_outputfile="$lt_tool_outputfile.exe"
12924: ;;
12925: esac~
12926: func_to_tool_file "$lt_outputfile"~
12927: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12928: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12929: $RM "$lt_outputfile.manifest";
12930: fi'
12931: ;;
12932: *)
12933: # g++
12934: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12935: # as there is no search path for DLLs.
12936: hardcode_libdir_flag_spec_CXX='-L$libdir'
12937: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12938: allow_undefined_flag_CXX=unsupported
12939: always_export_symbols_CXX=no
12940: enable_shared_with_static_runtimes_CXX=yes
12941:
12942: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12943: 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'
12944: # If the export-symbols file already is a .def file (1st line
12945: # is EXPORTS), use it as is; otherwise, prepend...
12946: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12947: cp $export_symbols $output_objdir/$soname.def;
12948: else
12949: echo EXPORTS > $output_objdir/$soname.def;
12950: cat $export_symbols >> $output_objdir/$soname.def;
12951: fi~
12952: $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'
12953: else
12954: ld_shlibs_CXX=no
12955: fi
12956: ;;
12957: esac
12958: ;;
12959: darwin* | rhapsody*)
12960:
12961:
12962: archive_cmds_need_lc_CXX=no
12963: hardcode_direct_CXX=no
12964: hardcode_automatic_CXX=yes
12965: hardcode_shlibpath_var_CXX=unsupported
12966: if test "$lt_cv_ld_force_load" = "yes"; then
12967: 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\"`'
12968:
12969: else
12970: whole_archive_flag_spec_CXX=''
12971: fi
12972: link_all_deplibs_CXX=yes
12973: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12974: case $cc_basename in
12975: ifort*) _lt_dar_can_shared=yes ;;
12976: *) _lt_dar_can_shared=$GCC ;;
12977: esac
12978: if test "$_lt_dar_can_shared" = "yes"; then
12979: output_verbose_link_cmd=func_echo_all
12980: 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}"
12981: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12982: 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}"
12983: 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}"
12984: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12985: 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}"
12986: 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}"
12987: fi
12988:
12989: else
12990: ld_shlibs_CXX=no
12991: fi
12992:
12993: ;;
12994:
12995: dgux*)
12996: case $cc_basename in
12997: ec++*)
12998: # FIXME: insert proper C++ library support
12999: ld_shlibs_CXX=no
13000: ;;
13001: ghcx*)
13002: # Green Hills C++ Compiler
13003: # FIXME: insert proper C++ library support
13004: ld_shlibs_CXX=no
13005: ;;
13006: *)
13007: # FIXME: insert proper C++ library support
13008: ld_shlibs_CXX=no
13009: ;;
13010: esac
13011: ;;
13012:
13013: freebsd2.*)
13014: # C++ shared libraries reported to be fairly broken before
13015: # switch to ELF
13016: ld_shlibs_CXX=no
13017: ;;
13018:
13019: freebsd-elf*)
13020: archive_cmds_need_lc_CXX=no
13021: ;;
13022:
13023: freebsd* | dragonfly*)
13024: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13025: # conventions
13026: ld_shlibs_CXX=yes
13027: ;;
13028:
13029: gnu*)
13030: ;;
13031:
13032: haiku*)
13033: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13034: link_all_deplibs_CXX=yes
13035: ;;
13036:
13037: hpux9*)
13038: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13039: hardcode_libdir_separator_CXX=:
13040: export_dynamic_flag_spec_CXX='${wl}-E'
13041: hardcode_direct_CXX=yes
13042: hardcode_minus_L_CXX=yes # Not in the search PATH,
13043: # but as the default
13044: # location of the library.
13045:
13046: case $cc_basename in
13047: CC*)
13048: # FIXME: insert proper C++ library support
13049: ld_shlibs_CXX=no
13050: ;;
13051: aCC*)
13052: 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'
13053: # Commands to make compiler produce verbose output that lists
13054: # what "hidden" libraries, object files and flags are used when
13055: # linking a shared library.
13056: #
13057: # There doesn't appear to be a way to prevent this compiler from
13058: # explicitly linking system object files so we need to strip them
13059: # from the output so that they don't get included in the library
13060: # dependencies.
13061: 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"'
13062: ;;
13063: *)
13064: if test "$GXX" = yes; then
13065: 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'
13066: else
13067: # FIXME: insert proper C++ library support
13068: ld_shlibs_CXX=no
13069: fi
13070: ;;
13071: esac
13072: ;;
13073:
13074: hpux10*|hpux11*)
13075: if test $with_gnu_ld = no; then
13076: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13077: hardcode_libdir_separator_CXX=:
13078:
13079: case $host_cpu in
13080: hppa*64*|ia64*)
13081: ;;
13082: *)
13083: export_dynamic_flag_spec_CXX='${wl}-E'
13084: ;;
13085: esac
13086: fi
13087: case $host_cpu in
13088: hppa*64*|ia64*)
13089: hardcode_direct_CXX=no
13090: hardcode_shlibpath_var_CXX=no
13091: ;;
13092: *)
13093: hardcode_direct_CXX=yes
13094: hardcode_direct_absolute_CXX=yes
13095: hardcode_minus_L_CXX=yes # Not in the search PATH,
13096: # but as the default
13097: # location of the library.
13098: ;;
13099: esac
13100:
13101: case $cc_basename in
13102: CC*)
13103: # FIXME: insert proper C++ library support
13104: ld_shlibs_CXX=no
13105: ;;
13106: aCC*)
13107: case $host_cpu in
13108: hppa*64*)
13109: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13110: ;;
13111: ia64*)
13112: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13113: ;;
13114: *)
13115: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13116: ;;
13117: esac
13118: # Commands to make compiler produce verbose output that lists
13119: # what "hidden" libraries, object files and flags are used when
13120: # linking a shared library.
13121: #
13122: # There doesn't appear to be a way to prevent this compiler from
13123: # explicitly linking system object files so we need to strip them
13124: # from the output so that they don't get included in the library
13125: # dependencies.
13126: 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"'
13127: ;;
13128: *)
13129: if test "$GXX" = yes; then
13130: if test $with_gnu_ld = no; then
13131: case $host_cpu in
13132: hppa*64*)
13133: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13134: ;;
13135: ia64*)
13136: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13137: ;;
13138: *)
13139: 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'
13140: ;;
13141: esac
13142: fi
13143: else
13144: # FIXME: insert proper C++ library support
13145: ld_shlibs_CXX=no
13146: fi
13147: ;;
13148: esac
13149: ;;
13150:
13151: interix[3-9]*)
13152: hardcode_direct_CXX=no
13153: hardcode_shlibpath_var_CXX=no
13154: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13155: export_dynamic_flag_spec_CXX='${wl}-E'
13156: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13157: # Instead, shared libraries are loaded at an image base (0x10000000 by
13158: # default) and relocated if they conflict, which is a slow very memory
13159: # consuming and fragmenting process. To avoid this, we pick a random,
13160: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13161: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13162: 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'
13163: 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'
13164: ;;
13165: irix5* | irix6*)
13166: case $cc_basename in
13167: CC*)
13168: # SGI C++
13169: 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'
13170:
13171: # Archives containing C++ object files must be created using
13172: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13173: # necessary to make sure instantiated templates are included
13174: # in the archive.
13175: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13176: ;;
13177: *)
13178: if test "$GXX" = yes; then
13179: if test "$with_gnu_ld" = no; then
13180: 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'
13181: else
13182: 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'
13183: fi
13184: fi
13185: link_all_deplibs_CXX=yes
13186: ;;
13187: esac
13188: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13189: hardcode_libdir_separator_CXX=:
13190: inherit_rpath_CXX=yes
13191: ;;
13192:
13193: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13194: case $cc_basename in
13195: KCC*)
13196: # Kuck and Associates, Inc. (KAI) C++ Compiler
13197:
13198: # KCC will only create a shared library if the output file
13199: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13200: # to its proper name (with version) after linking.
13201: 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'
13202: 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'
13203: # Commands to make compiler produce verbose output that lists
13204: # what "hidden" libraries, object files and flags are used when
13205: # linking a shared library.
13206: #
13207: # There doesn't appear to be a way to prevent this compiler from
13208: # explicitly linking system object files so we need to strip them
13209: # from the output so that they don't get included in the library
13210: # dependencies.
13211: 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"'
13212:
13213: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13214: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13215:
13216: # Archives containing C++ object files must be created using
13217: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13218: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13219: ;;
13220: icpc* | ecpc* )
13221: # Intel C++
13222: with_gnu_ld=yes
13223: # version 8.0 and above of icpc choke on multiply defined symbols
13224: # if we add $predep_objects and $postdep_objects, however 7.1 and
13225: # earlier do not add the objects themselves.
13226: case `$CC -V 2>&1` in
13227: *"Version 7."*)
13228: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13229: 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'
13230: ;;
13231: *) # Version 8.0 or newer
13232: tmp_idyn=
13233: case $host_cpu in
13234: ia64*) tmp_idyn=' -i_dynamic';;
13235: esac
13236: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237: 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'
13238: ;;
13239: esac
13240: archive_cmds_need_lc_CXX=no
13241: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13242: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13243: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13244: ;;
13245: pgCC* | pgcpp*)
13246: # Portland Group C++ compiler
13247: case `$CC -V` in
13248: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13249: prelink_cmds_CXX='tpldir=Template.dir~
13250: rm -rf $tpldir~
13251: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13252: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13253: old_archive_cmds_CXX='tpldir=Template.dir~
13254: rm -rf $tpldir~
13255: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13256: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13257: $RANLIB $oldlib'
13258: archive_cmds_CXX='tpldir=Template.dir~
13259: rm -rf $tpldir~
13260: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13261: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13262: archive_expsym_cmds_CXX='tpldir=Template.dir~
13263: rm -rf $tpldir~
13264: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13265: $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'
13266: ;;
13267: *) # Version 6 and above use weak symbols
13268: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13269: 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'
13270: ;;
13271: esac
13272:
13273: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13274: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13275: 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'
13276: ;;
13277: cxx*)
13278: # Compaq C++
13279: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13280: 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'
13281:
13282: runpath_var=LD_RUN_PATH
13283: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13284: hardcode_libdir_separator_CXX=:
13285:
13286: # Commands to make compiler produce verbose output that lists
13287: # what "hidden" libraries, object files and flags are used when
13288: # linking a shared library.
13289: #
13290: # There doesn't appear to be a way to prevent this compiler from
13291: # explicitly linking system object files so we need to strip them
13292: # from the output so that they don't get included in the library
13293: # dependencies.
13294: 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'
13295: ;;
13296: xl* | mpixl* | bgxl*)
13297: # IBM XL 8.0 on PPC, with GNU ld
13298: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13299: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13300: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301: if test "x$supports_anon_versioning" = xyes; then
13302: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13303: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13304: echo "local: *; };" >> $output_objdir/$libname.ver~
13305: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13306: fi
13307: ;;
13308: *)
13309: case `$CC -V 2>&1 | sed 5q` in
13310: *Sun\ C*)
13311: # Sun C++ 5.9
13312: no_undefined_flag_CXX=' -zdefs'
13313: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13314: 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'
13315: hardcode_libdir_flag_spec_CXX='-R$libdir'
13316: 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'
13317: compiler_needs_object_CXX=yes
13318:
13319: # Not sure whether something based on
13320: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13321: # would be better.
13322: output_verbose_link_cmd='func_echo_all'
13323:
13324: # Archives containing C++ object files must be created using
13325: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13326: # necessary to make sure instantiated templates are included
13327: # in the archive.
13328: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13329: ;;
13330: esac
13331: ;;
13332: esac
13333: ;;
13334:
13335: lynxos*)
13336: # FIXME: insert proper C++ library support
13337: ld_shlibs_CXX=no
13338: ;;
13339:
13340: m88k*)
13341: # FIXME: insert proper C++ library support
13342: ld_shlibs_CXX=no
13343: ;;
13344:
13345: mvs*)
13346: case $cc_basename in
13347: cxx*)
13348: # FIXME: insert proper C++ library support
13349: ld_shlibs_CXX=no
13350: ;;
13351: *)
13352: # FIXME: insert proper C++ library support
13353: ld_shlibs_CXX=no
13354: ;;
13355: esac
13356: ;;
13357:
13358: netbsd*)
13359: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13360: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13361: wlarc=
13362: hardcode_libdir_flag_spec_CXX='-R$libdir'
13363: hardcode_direct_CXX=yes
13364: hardcode_shlibpath_var_CXX=no
13365: fi
13366: # Workaround some broken pre-1.5 toolchains
13367: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13368: ;;
13369:
13370: *nto* | *qnx*)
13371: ld_shlibs_CXX=yes
13372: ;;
13373:
13374: openbsd2*)
13375: # C++ shared libraries are fairly broken
13376: ld_shlibs_CXX=no
13377: ;;
13378:
13379: openbsd*)
13380: if test -f /usr/libexec/ld.so; then
13381: hardcode_direct_CXX=yes
13382: hardcode_shlibpath_var_CXX=no
13383: hardcode_direct_absolute_CXX=yes
13384: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13385: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13386: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13387: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13388: export_dynamic_flag_spec_CXX='${wl}-E'
13389: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13390: fi
13391: output_verbose_link_cmd=func_echo_all
13392: else
13393: ld_shlibs_CXX=no
13394: fi
13395: ;;
13396:
13397: osf3* | osf4* | osf5*)
13398: case $cc_basename in
13399: KCC*)
13400: # Kuck and Associates, Inc. (KAI) C++ Compiler
13401:
13402: # KCC will only create a shared library if the output file
13403: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13404: # to its proper name (with version) after linking.
13405: 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'
13406:
13407: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13408: hardcode_libdir_separator_CXX=:
13409:
13410: # Archives containing C++ object files must be created using
13411: # the KAI C++ compiler.
13412: case $host in
13413: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13414: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13415: esac
13416: ;;
13417: RCC*)
13418: # Rational C++ 2.4.1
13419: # FIXME: insert proper C++ library support
13420: ld_shlibs_CXX=no
13421: ;;
13422: cxx*)
13423: case $host in
13424: osf3*)
13425: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13426: 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'
13427: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13428: ;;
13429: *)
13430: allow_undefined_flag_CXX=' -expect_unresolved \*'
13431: 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'
13432: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13433: echo "-hidden">> $lib.exp~
13434: $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~
13435: $RM $lib.exp'
13436: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13437: ;;
13438: esac
13439:
13440: hardcode_libdir_separator_CXX=:
13441:
13442: # Commands to make compiler produce verbose output that lists
13443: # what "hidden" libraries, object files and flags are used when
13444: # linking a shared library.
13445: #
13446: # There doesn't appear to be a way to prevent this compiler from
13447: # explicitly linking system object files so we need to strip them
13448: # from the output so that they don't get included in the library
13449: # dependencies.
13450: 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"'
13451: ;;
13452: *)
13453: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13454: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13455: case $host in
13456: osf3*)
13457: 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'
13458: ;;
13459: *)
13460: 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'
13461: ;;
13462: esac
13463:
13464: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13465: hardcode_libdir_separator_CXX=:
13466:
13467: # Commands to make compiler produce verbose output that lists
13468: # what "hidden" libraries, object files and flags are used when
13469: # linking a shared library.
13470: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13471:
13472: else
13473: # FIXME: insert proper C++ library support
13474: ld_shlibs_CXX=no
13475: fi
13476: ;;
13477: esac
13478: ;;
13479:
13480: psos*)
13481: # FIXME: insert proper C++ library support
13482: ld_shlibs_CXX=no
13483: ;;
13484:
13485: sunos4*)
13486: case $cc_basename in
13487: CC*)
13488: # Sun C++ 4.x
13489: # FIXME: insert proper C++ library support
13490: ld_shlibs_CXX=no
13491: ;;
13492: lcc*)
13493: # Lucid
13494: # FIXME: insert proper C++ library support
13495: ld_shlibs_CXX=no
13496: ;;
13497: *)
13498: # FIXME: insert proper C++ library support
13499: ld_shlibs_CXX=no
13500: ;;
13501: esac
13502: ;;
13503:
13504: solaris*)
13505: case $cc_basename in
13506: CC* | sunCC*)
13507: # Sun C++ 4.2, 5.x and Centerline C++
13508: archive_cmds_need_lc_CXX=yes
13509: no_undefined_flag_CXX=' -zdefs'
13510: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13511: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13512: $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'
13513:
13514: hardcode_libdir_flag_spec_CXX='-R$libdir'
13515: hardcode_shlibpath_var_CXX=no
13516: case $host_os in
13517: solaris2.[0-5] | solaris2.[0-5].*) ;;
13518: *)
13519: # The compiler driver will combine and reorder linker options,
13520: # but understands `-z linker_flag'.
13521: # Supported since Solaris 2.6 (maybe 2.5.1?)
13522: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13523: ;;
13524: esac
13525: link_all_deplibs_CXX=yes
13526:
13527: output_verbose_link_cmd='func_echo_all'
13528:
13529: # Archives containing C++ object files must be created using
13530: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13531: # necessary to make sure instantiated templates are included
13532: # in the archive.
13533: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13534: ;;
13535: gcx*)
13536: # Green Hills C++ Compiler
13537: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13538:
13539: # The C++ compiler must be used to create the archive.
13540: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13541: ;;
13542: *)
13543: # GNU C++ compiler with Solaris linker
13544: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13545: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13546: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13547: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13548: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13549: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13550:
13551: # Commands to make compiler produce verbose output that lists
13552: # what "hidden" libraries, object files and flags are used when
13553: # linking a shared library.
13554: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13555: else
13556: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13557: # platform.
13558: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13559: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13560: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13561:
13562: # Commands to make compiler produce verbose output that lists
13563: # what "hidden" libraries, object files and flags are used when
13564: # linking a shared library.
13565: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13566: fi
13567:
13568: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13569: case $host_os in
13570: solaris2.[0-5] | solaris2.[0-5].*) ;;
13571: *)
13572: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13573: ;;
13574: esac
13575: fi
13576: ;;
13577: esac
13578: ;;
13579:
13580: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13581: no_undefined_flag_CXX='${wl}-z,text'
13582: archive_cmds_need_lc_CXX=no
13583: hardcode_shlibpath_var_CXX=no
13584: runpath_var='LD_RUN_PATH'
13585:
13586: case $cc_basename in
13587: CC*)
13588: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13589: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13590: ;;
13591: *)
13592: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13593: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13594: ;;
13595: esac
13596: ;;
13597:
13598: sysv5* | sco3.2v5* | sco5v6*)
13599: # Note: We can NOT use -z defs as we might desire, because we do not
13600: # link with -lc, and that would cause any symbols used from libc to
13601: # always be unresolved, which means just about no library would
13602: # ever link correctly. If we're not using GNU ld we use -z text
13603: # though, which does catch some bad symbols but isn't as heavy-handed
13604: # as -z defs.
13605: no_undefined_flag_CXX='${wl}-z,text'
13606: allow_undefined_flag_CXX='${wl}-z,nodefs'
13607: archive_cmds_need_lc_CXX=no
13608: hardcode_shlibpath_var_CXX=no
13609: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13610: hardcode_libdir_separator_CXX=':'
13611: link_all_deplibs_CXX=yes
13612: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13613: runpath_var='LD_RUN_PATH'
13614:
13615: case $cc_basename in
13616: CC*)
13617: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13618: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13619: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13620: '"$old_archive_cmds_CXX"
13621: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13622: '"$reload_cmds_CXX"
13623: ;;
13624: *)
13625: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13626: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13627: ;;
13628: esac
13629: ;;
13630:
13631: tandem*)
13632: case $cc_basename in
13633: NCC*)
13634: # NonStop-UX NCC 3.20
13635: # FIXME: insert proper C++ library support
13636: ld_shlibs_CXX=no
13637: ;;
13638: *)
13639: # FIXME: insert proper C++ library support
13640: ld_shlibs_CXX=no
13641: ;;
13642: esac
13643: ;;
13644:
13645: vxworks*)
13646: # FIXME: insert proper C++ library support
13647: ld_shlibs_CXX=no
13648: ;;
13649:
13650: *)
13651: # FIXME: insert proper C++ library support
13652: ld_shlibs_CXX=no
13653: ;;
13654: esac
13655:
1.22 ! moko 13656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
! 13657: $as_echo "$ld_shlibs_CXX" >&6; }
1.8 moko 13658: test "$ld_shlibs_CXX" = no && can_build_shared=no
13659:
13660: GCC_CXX="$GXX"
13661: LD_CXX="$LD"
13662:
13663: ## CAVEAT EMPTOR:
13664: ## There is no encapsulation within the following macros, do not change
13665: ## the running order or otherwise move them around unless you know exactly
13666: ## what you are doing...
13667: # Dependencies to place before and after the object being linked:
13668: predep_objects_CXX=
13669: postdep_objects_CXX=
13670: predeps_CXX=
13671: postdeps_CXX=
13672: compiler_lib_search_path_CXX=
13673:
13674: cat > conftest.$ac_ext <<_LT_EOF
13675: class Foo
13676: {
13677: public:
13678: Foo (void) { a = 0; }
13679: private:
13680: int a;
13681: };
13682: _LT_EOF
13683:
13684:
13685: _lt_libdeps_save_CFLAGS=$CFLAGS
13686: case "$CC $CFLAGS " in #(
13687: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13688: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13689: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13690: esac
13691:
1.22 ! moko 13692: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 13693: (eval $ac_compile) 2>&5
13694: ac_status=$?
1.22 ! moko 13695: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 13696: test $ac_status = 0; }; then
1.8 moko 13697: # Parse the compiler output and extract the necessary
13698: # objects, libraries and library flags.
13699:
13700: # Sentinel used to keep track of whether or not we are before
13701: # the conftest object file.
13702: pre_test_object_deps_done=no
13703:
13704: for p in `eval "$output_verbose_link_cmd"`; do
13705: case ${prev}${p} in
13706:
13707: -L* | -R* | -l*)
13708: # Some compilers place space between "-{L,R}" and the path.
13709: # Remove the space.
13710: if test $p = "-L" ||
13711: test $p = "-R"; then
13712: prev=$p
13713: continue
13714: fi
13715:
13716: # Expand the sysroot to ease extracting the directories later.
13717: if test -z "$prev"; then
13718: case $p in
13719: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13720: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13721: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13722: esac
13723: fi
13724: case $p in
13725: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13726: esac
13727: if test "$pre_test_object_deps_done" = no; then
13728: case ${prev} in
13729: -L | -R)
13730: # Internal compiler library paths should come after those
13731: # provided the user. The postdeps already come after the
13732: # user supplied libs so there is no need to process them.
13733: if test -z "$compiler_lib_search_path_CXX"; then
13734: compiler_lib_search_path_CXX="${prev}${p}"
13735: else
13736: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13737: fi
13738: ;;
13739: # The "-l" case would never come before the object being
13740: # linked, so don't bother handling this case.
13741: esac
13742: else
13743: if test -z "$postdeps_CXX"; then
13744: postdeps_CXX="${prev}${p}"
13745: else
13746: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13747: fi
13748: fi
13749: prev=
13750: ;;
13751:
13752: *.lto.$objext) ;; # Ignore GCC LTO objects
13753: *.$objext)
13754: # This assumes that the test object file only shows up
13755: # once in the compiler output.
13756: if test "$p" = "conftest.$objext"; then
13757: pre_test_object_deps_done=yes
13758: continue
13759: fi
13760:
13761: if test "$pre_test_object_deps_done" = no; then
13762: if test -z "$predep_objects_CXX"; then
13763: predep_objects_CXX="$p"
13764: else
13765: predep_objects_CXX="$predep_objects_CXX $p"
13766: fi
13767: else
13768: if test -z "$postdep_objects_CXX"; then
13769: postdep_objects_CXX="$p"
13770: else
13771: postdep_objects_CXX="$postdep_objects_CXX $p"
13772: fi
13773: fi
13774: ;;
13775:
13776: *) ;; # Ignore the rest.
13777:
13778: esac
13779: done
13780:
13781: # Clean up.
13782: rm -f a.out a.exe
13783: else
13784: echo "libtool.m4: error: problem compiling CXX test program"
13785: fi
13786:
13787: $RM -f confest.$objext
13788: CFLAGS=$_lt_libdeps_save_CFLAGS
13789:
13790: # PORTME: override above test on systems where it is broken
13791: case $host_os in
13792: interix[3-9]*)
13793: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13794: # hack all around it, let's just trust "g++" to DTRT.
13795: predep_objects_CXX=
13796: postdep_objects_CXX=
13797: postdeps_CXX=
13798: ;;
13799:
13800: linux*)
13801: case `$CC -V 2>&1 | sed 5q` in
13802: *Sun\ C*)
13803: # Sun C++ 5.9
13804:
13805: # The more standards-conforming stlport4 library is
13806: # incompatible with the Cstd library. Avoid specifying
13807: # it if it's in CXXFLAGS. Ignore libCrun as
13808: # -library=stlport4 depends on it.
13809: case " $CXX $CXXFLAGS " in
13810: *" -library=stlport4 "*)
13811: solaris_use_stlport4=yes
13812: ;;
13813: esac
13814:
13815: if test "$solaris_use_stlport4" != yes; then
13816: postdeps_CXX='-library=Cstd -library=Crun'
13817: fi
13818: ;;
13819: esac
13820: ;;
13821:
13822: solaris*)
13823: case $cc_basename in
13824: CC* | sunCC*)
13825: # The more standards-conforming stlport4 library is
13826: # incompatible with the Cstd library. Avoid specifying
13827: # it if it's in CXXFLAGS. Ignore libCrun as
13828: # -library=stlport4 depends on it.
13829: case " $CXX $CXXFLAGS " in
13830: *" -library=stlport4 "*)
13831: solaris_use_stlport4=yes
13832: ;;
13833: esac
13834:
13835: # Adding this requires a known-good setup of shared libraries for
13836: # Sun compiler versions before 5.6, else PIC objects from an old
13837: # archive will be linked into the output, leading to subtle bugs.
13838: if test "$solaris_use_stlport4" != yes; then
13839: postdeps_CXX='-library=Cstd -library=Crun'
13840: fi
13841: ;;
13842: esac
13843: ;;
13844: esac
13845:
13846:
13847: case " $postdeps_CXX " in
13848: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13849: esac
13850: compiler_lib_search_dirs_CXX=
13851: if test -n "${compiler_lib_search_path_CXX}"; then
13852: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13853: fi
13854:
13855:
13856:
13857:
13858:
13859:
13860:
13861:
13862:
13863:
13864:
13865:
13866:
13867:
13868:
13869:
13870:
13871:
13872:
13873:
13874:
13875:
13876:
13877:
13878:
13879:
13880:
13881:
13882:
13883:
13884:
13885: lt_prog_compiler_wl_CXX=
13886: lt_prog_compiler_pic_CXX=
13887: lt_prog_compiler_static_CXX=
13888:
13889:
13890: # C++ specific cases for pic, static, wl, etc.
13891: if test "$GXX" = yes; then
13892: lt_prog_compiler_wl_CXX='-Wl,'
13893: lt_prog_compiler_static_CXX='-static'
13894:
13895: case $host_os in
13896: aix*)
13897: # All AIX code is PIC.
13898: if test "$host_cpu" = ia64; then
13899: # AIX 5 now supports IA64 processor
13900: lt_prog_compiler_static_CXX='-Bstatic'
13901: fi
13902: ;;
13903:
13904: amigaos*)
13905: case $host_cpu in
13906: powerpc)
13907: # see comment about AmigaOS4 .so support
13908: lt_prog_compiler_pic_CXX='-fPIC'
13909: ;;
13910: m68k)
13911: # FIXME: we need at least 68020 code to build shared libraries, but
13912: # adding the `-m68020' flag to GCC prevents building anything better,
13913: # like `-m68040'.
13914: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13915: ;;
13916: esac
13917: ;;
13918:
13919: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13920: # PIC is the default for these OSes.
13921: ;;
13922: mingw* | cygwin* | os2* | pw32* | cegcc*)
13923: # This hack is so that the source file can tell whether it is being
13924: # built for inclusion in a dll (and should export symbols for example).
13925: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13926: # (--disable-auto-import) libraries
13927: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13928: ;;
13929: darwin* | rhapsody*)
13930: # PIC is the default on this platform
13931: # Common symbols not allowed in MH_DYLIB files
13932: lt_prog_compiler_pic_CXX='-fno-common'
13933: ;;
13934: *djgpp*)
13935: # DJGPP does not support shared libraries at all
13936: lt_prog_compiler_pic_CXX=
13937: ;;
13938: haiku*)
13939: # PIC is the default for Haiku.
13940: # The "-static" flag exists, but is broken.
13941: lt_prog_compiler_static_CXX=
13942: ;;
13943: interix[3-9]*)
13944: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13945: # Instead, we relocate shared libraries at runtime.
13946: ;;
13947: sysv4*MP*)
13948: if test -d /usr/nec; then
13949: lt_prog_compiler_pic_CXX=-Kconform_pic
13950: fi
13951: ;;
13952: hpux*)
13953: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13954: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13955: # sets the default TLS model and affects inlining.
13956: case $host_cpu in
13957: hppa*64*)
13958: ;;
13959: *)
13960: lt_prog_compiler_pic_CXX='-fPIC'
13961: ;;
13962: esac
13963: ;;
13964: *qnx* | *nto*)
13965: # QNX uses GNU C++, but need to define -shared option too, otherwise
13966: # it will coredump.
13967: lt_prog_compiler_pic_CXX='-fPIC -shared'
13968: ;;
13969: *)
13970: lt_prog_compiler_pic_CXX='-fPIC'
13971: ;;
13972: esac
13973: else
13974: case $host_os in
13975: aix[4-9]*)
13976: # All AIX code is PIC.
13977: if test "$host_cpu" = ia64; then
13978: # AIX 5 now supports IA64 processor
13979: lt_prog_compiler_static_CXX='-Bstatic'
13980: else
13981: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13982: fi
13983: ;;
13984: chorus*)
13985: case $cc_basename in
13986: cxch68*)
13987: # Green Hills C++ Compiler
13988: # _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"
13989: ;;
13990: esac
13991: ;;
13992: mingw* | cygwin* | os2* | pw32* | cegcc*)
13993: # This hack is so that the source file can tell whether it is being
13994: # built for inclusion in a dll (and should export symbols for example).
13995: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13996: ;;
13997: dgux*)
13998: case $cc_basename in
13999: ec++*)
14000: lt_prog_compiler_pic_CXX='-KPIC'
14001: ;;
14002: ghcx*)
14003: # Green Hills C++ Compiler
14004: lt_prog_compiler_pic_CXX='-pic'
14005: ;;
14006: *)
14007: ;;
14008: esac
14009: ;;
14010: freebsd* | dragonfly*)
14011: # FreeBSD uses GNU C++
14012: ;;
14013: hpux9* | hpux10* | hpux11*)
14014: case $cc_basename in
14015: CC*)
14016: lt_prog_compiler_wl_CXX='-Wl,'
14017: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14018: if test "$host_cpu" != ia64; then
14019: lt_prog_compiler_pic_CXX='+Z'
14020: fi
14021: ;;
14022: aCC*)
14023: lt_prog_compiler_wl_CXX='-Wl,'
14024: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14025: case $host_cpu in
14026: hppa*64*|ia64*)
14027: # +Z the default
14028: ;;
14029: *)
14030: lt_prog_compiler_pic_CXX='+Z'
14031: ;;
14032: esac
14033: ;;
14034: *)
14035: ;;
14036: esac
14037: ;;
14038: interix*)
14039: # This is c89, which is MS Visual C++ (no shared libs)
14040: # Anyone wants to do a port?
14041: ;;
14042: irix5* | irix6* | nonstopux*)
14043: case $cc_basename in
14044: CC*)
14045: lt_prog_compiler_wl_CXX='-Wl,'
14046: lt_prog_compiler_static_CXX='-non_shared'
14047: # CC pic flag -KPIC is the default.
14048: ;;
14049: *)
14050: ;;
14051: esac
14052: ;;
14053: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14054: case $cc_basename in
14055: KCC*)
14056: # KAI C++ Compiler
14057: lt_prog_compiler_wl_CXX='--backend -Wl,'
14058: lt_prog_compiler_pic_CXX='-fPIC'
14059: ;;
14060: ecpc* )
14061: # old Intel C++ for x86_64 which still supported -KPIC.
14062: lt_prog_compiler_wl_CXX='-Wl,'
14063: lt_prog_compiler_pic_CXX='-KPIC'
14064: lt_prog_compiler_static_CXX='-static'
14065: ;;
14066: icpc* )
14067: # Intel C++, used to be incompatible with GCC.
14068: # ICC 10 doesn't accept -KPIC any more.
14069: lt_prog_compiler_wl_CXX='-Wl,'
14070: lt_prog_compiler_pic_CXX='-fPIC'
14071: lt_prog_compiler_static_CXX='-static'
14072: ;;
14073: pgCC* | pgcpp*)
14074: # Portland Group C++ compiler
14075: lt_prog_compiler_wl_CXX='-Wl,'
14076: lt_prog_compiler_pic_CXX='-fpic'
14077: lt_prog_compiler_static_CXX='-Bstatic'
14078: ;;
14079: cxx*)
14080: # Compaq C++
14081: # Make sure the PIC flag is empty. It appears that all Alpha
14082: # Linux and Compaq Tru64 Unix objects are PIC.
14083: lt_prog_compiler_pic_CXX=
14084: lt_prog_compiler_static_CXX='-non_shared'
14085: ;;
14086: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14087: # IBM XL 8.0, 9.0 on PPC and BlueGene
14088: lt_prog_compiler_wl_CXX='-Wl,'
14089: lt_prog_compiler_pic_CXX='-qpic'
14090: lt_prog_compiler_static_CXX='-qstaticlink'
14091: ;;
14092: *)
14093: case `$CC -V 2>&1 | sed 5q` in
14094: *Sun\ C*)
14095: # Sun C++ 5.9
14096: lt_prog_compiler_pic_CXX='-KPIC'
14097: lt_prog_compiler_static_CXX='-Bstatic'
14098: lt_prog_compiler_wl_CXX='-Qoption ld '
14099: ;;
14100: esac
14101: ;;
14102: esac
14103: ;;
14104: lynxos*)
14105: ;;
14106: m88k*)
14107: ;;
14108: mvs*)
14109: case $cc_basename in
14110: cxx*)
14111: lt_prog_compiler_pic_CXX='-W c,exportall'
14112: ;;
14113: *)
14114: ;;
14115: esac
14116: ;;
14117: netbsd*)
14118: ;;
14119: *qnx* | *nto*)
14120: # QNX uses GNU C++, but need to define -shared option too, otherwise
14121: # it will coredump.
14122: lt_prog_compiler_pic_CXX='-fPIC -shared'
14123: ;;
14124: osf3* | osf4* | osf5*)
14125: case $cc_basename in
14126: KCC*)
14127: lt_prog_compiler_wl_CXX='--backend -Wl,'
14128: ;;
14129: RCC*)
14130: # Rational C++ 2.4.1
14131: lt_prog_compiler_pic_CXX='-pic'
14132: ;;
14133: cxx*)
14134: # Digital/Compaq C++
14135: lt_prog_compiler_wl_CXX='-Wl,'
14136: # Make sure the PIC flag is empty. It appears that all Alpha
14137: # Linux and Compaq Tru64 Unix objects are PIC.
14138: lt_prog_compiler_pic_CXX=
14139: lt_prog_compiler_static_CXX='-non_shared'
14140: ;;
14141: *)
14142: ;;
14143: esac
14144: ;;
14145: psos*)
14146: ;;
14147: solaris*)
14148: case $cc_basename in
14149: CC* | sunCC*)
14150: # Sun C++ 4.2, 5.x and Centerline C++
14151: lt_prog_compiler_pic_CXX='-KPIC'
14152: lt_prog_compiler_static_CXX='-Bstatic'
14153: lt_prog_compiler_wl_CXX='-Qoption ld '
14154: ;;
14155: gcx*)
14156: # Green Hills C++ Compiler
14157: lt_prog_compiler_pic_CXX='-PIC'
14158: ;;
14159: *)
14160: ;;
14161: esac
14162: ;;
14163: sunos4*)
14164: case $cc_basename in
14165: CC*)
14166: # Sun C++ 4.x
14167: lt_prog_compiler_pic_CXX='-pic'
14168: lt_prog_compiler_static_CXX='-Bstatic'
14169: ;;
14170: lcc*)
14171: # Lucid
14172: lt_prog_compiler_pic_CXX='-pic'
14173: ;;
14174: *)
14175: ;;
14176: esac
14177: ;;
14178: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14179: case $cc_basename in
14180: CC*)
14181: lt_prog_compiler_wl_CXX='-Wl,'
14182: lt_prog_compiler_pic_CXX='-KPIC'
14183: lt_prog_compiler_static_CXX='-Bstatic'
14184: ;;
14185: esac
14186: ;;
14187: tandem*)
14188: case $cc_basename in
14189: NCC*)
14190: # NonStop-UX NCC 3.20
14191: lt_prog_compiler_pic_CXX='-KPIC'
14192: ;;
14193: *)
14194: ;;
14195: esac
14196: ;;
14197: vxworks*)
14198: ;;
14199: *)
14200: lt_prog_compiler_can_build_shared_CXX=no
14201: ;;
14202: esac
14203: fi
14204:
14205: case $host_os in
14206: # For platforms which do not support PIC, -DPIC is meaningless:
14207: *djgpp*)
14208: lt_prog_compiler_pic_CXX=
14209: ;;
14210: *)
14211: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14212: ;;
14213: esac
14214:
1.22 ! moko 14215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 14216: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
! 14217: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
! 14218: $as_echo_n "(cached) " >&6
1.8 moko 14219: else
14220: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14221: fi
1.22 ! moko 14222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
! 14223: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.8 moko 14224: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14225:
14226: #
14227: # Check to make sure the PIC flag actually works.
14228: #
14229: if test -n "$lt_prog_compiler_pic_CXX"; then
1.22 ! moko 14230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 14231: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
! 14232: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
! 14233: $as_echo_n "(cached) " >&6
1.8 moko 14234: else
14235: lt_cv_prog_compiler_pic_works_CXX=no
14236: ac_outfile=conftest.$ac_objext
14237: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14238: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14239: # Insert the option either (1) after the last *FLAGS variable, or
14240: # (2) before a word containing "conftest.", or (3) at the end.
14241: # Note that $ac_compile itself does not contain backslashes and begins
14242: # with a dollar sign (not a hyphen), so the echo should work correctly.
14243: # The option is referenced via a variable to avoid confusing sed.
14244: lt_compile=`echo "$ac_compile" | $SED \
14245: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14246: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14247: -e 's:$: $lt_compiler_flag:'`
14248: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14249: (eval "$lt_compile" 2>conftest.err)
14250: ac_status=$?
14251: cat conftest.err >&5
14252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253: if (exit $ac_status) && test -s "$ac_outfile"; then
14254: # The compiler can only warn and ignore the option if not recognized
14255: # So say no if there are warnings other than the usual output.
14256: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14257: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14258: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14259: lt_cv_prog_compiler_pic_works_CXX=yes
14260: fi
14261: fi
14262: $RM conftest*
14263:
14264: fi
1.22 ! moko 14265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
! 14266: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.8 moko 14267:
14268: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14269: case $lt_prog_compiler_pic_CXX in
14270: "" | " "*) ;;
14271: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14272: esac
14273: else
14274: lt_prog_compiler_pic_CXX=
14275: lt_prog_compiler_can_build_shared_CXX=no
14276: fi
14277:
14278: fi
14279:
14280:
14281:
14282:
14283:
14284: #
14285: # Check to make sure the static flag actually works.
14286: #
14287: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.22 ! moko 14288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 14289: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 14290: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
! 14291: $as_echo_n "(cached) " >&6
1.8 moko 14292: else
14293: lt_cv_prog_compiler_static_works_CXX=no
14294: save_LDFLAGS="$LDFLAGS"
14295: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14296: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14297: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14298: # The linker can only warn and ignore the option if not recognized
14299: # So say no if there are warnings
14300: if test -s conftest.err; then
14301: # Append any errors to the config.log.
14302: cat conftest.err 1>&5
14303: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14304: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14305: if diff conftest.exp conftest.er2 >/dev/null; then
14306: lt_cv_prog_compiler_static_works_CXX=yes
14307: fi
14308: else
14309: lt_cv_prog_compiler_static_works_CXX=yes
14310: fi
14311: fi
14312: $RM -r conftest*
14313: LDFLAGS="$save_LDFLAGS"
14314:
14315: fi
1.22 ! moko 14316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
! 14317: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.8 moko 14318:
14319: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14320: :
14321: else
14322: lt_prog_compiler_static_CXX=
14323: fi
14324:
14325:
14326:
14327:
1.22 ! moko 14328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 14329: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 14330: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
! 14331: $as_echo_n "(cached) " >&6
1.8 moko 14332: else
14333: lt_cv_prog_compiler_c_o_CXX=no
14334: $RM -r conftest 2>/dev/null
14335: mkdir conftest
14336: cd conftest
14337: mkdir out
14338: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14339:
14340: lt_compiler_flag="-o out/conftest2.$ac_objext"
14341: # Insert the option either (1) after the last *FLAGS variable, or
14342: # (2) before a word containing "conftest.", or (3) at the end.
14343: # Note that $ac_compile itself does not contain backslashes and begins
14344: # with a dollar sign (not a hyphen), so the echo should work correctly.
14345: lt_compile=`echo "$ac_compile" | $SED \
14346: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14347: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14348: -e 's:$: $lt_compiler_flag:'`
14349: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14350: (eval "$lt_compile" 2>out/conftest.err)
14351: ac_status=$?
14352: cat out/conftest.err >&5
14353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14355: then
14356: # The compiler can only warn and ignore the option if not recognized
14357: # So say no if there are warnings
14358: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14359: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14360: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14361: lt_cv_prog_compiler_c_o_CXX=yes
14362: fi
14363: fi
14364: chmod u+w . 2>&5
14365: $RM conftest*
14366: # SGI C++ compiler will create directory out/ii_files/ for
14367: # template instantiation
14368: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14369: $RM out/* && rmdir out
14370: cd ..
14371: $RM -r conftest
14372: $RM conftest*
14373:
14374: fi
1.22 ! moko 14375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 14376: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.8 moko 14377:
14378:
14379:
1.22 ! moko 14380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 14381: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 14382: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
! 14383: $as_echo_n "(cached) " >&6
1.8 moko 14384: else
14385: lt_cv_prog_compiler_c_o_CXX=no
14386: $RM -r conftest 2>/dev/null
14387: mkdir conftest
14388: cd conftest
14389: mkdir out
14390: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14391:
14392: lt_compiler_flag="-o out/conftest2.$ac_objext"
14393: # Insert the option either (1) after the last *FLAGS variable, or
14394: # (2) before a word containing "conftest.", or (3) at the end.
14395: # Note that $ac_compile itself does not contain backslashes and begins
14396: # with a dollar sign (not a hyphen), so the echo should work correctly.
14397: lt_compile=`echo "$ac_compile" | $SED \
14398: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14399: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14400: -e 's:$: $lt_compiler_flag:'`
14401: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14402: (eval "$lt_compile" 2>out/conftest.err)
14403: ac_status=$?
14404: cat out/conftest.err >&5
14405: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14407: then
14408: # The compiler can only warn and ignore the option if not recognized
14409: # So say no if there are warnings
14410: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14411: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14412: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14413: lt_cv_prog_compiler_c_o_CXX=yes
14414: fi
14415: fi
14416: chmod u+w . 2>&5
14417: $RM conftest*
14418: # SGI C++ compiler will create directory out/ii_files/ for
14419: # template instantiation
14420: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14421: $RM out/* && rmdir out
14422: cd ..
14423: $RM -r conftest
14424: $RM conftest*
14425:
14426: fi
1.22 ! moko 14427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 14428: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.8 moko 14429:
14430:
14431:
14432:
14433: hard_links="nottested"
14434: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14435: # do not overwrite the value of need_locks provided by the user
1.22 ! moko 14436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
! 14437: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.8 moko 14438: hard_links=yes
14439: $RM conftest*
14440: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14441: touch conftest.a
14442: ln conftest.a conftest.b 2>&5 || hard_links=no
14443: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.22 ! moko 14444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
! 14445: $as_echo "$hard_links" >&6; }
1.8 moko 14446: if test "$hard_links" = no; then
1.22 ! moko 14447: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 14448: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 14449: need_locks=warn
14450: fi
14451: else
14452: need_locks=no
14453: fi
14454:
14455:
14456:
1.22 ! moko 14457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 14458: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.8 moko 14459:
14460: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14461: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14462: case $host_os in
14463: aix[4-9]*)
14464: # If we're using GNU nm, then we don't want the "-C" option.
14465: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14466: # Also, AIX nm treats weak defined symbols like other global defined
14467: # symbols, whereas GNU nm marks them as "W".
14468: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14469: 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'
14470: else
14471: 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'
14472: fi
14473: ;;
14474: pw32*)
14475: export_symbols_cmds_CXX="$ltdll_cmds"
14476: ;;
14477: cygwin* | mingw* | cegcc*)
14478: case $cc_basename in
14479: cl*)
14480: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14481: ;;
14482: *)
14483: 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'
14484: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14485: ;;
14486: esac
14487: ;;
14488: *)
14489: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14490: ;;
14491: esac
14492:
1.22 ! moko 14493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
! 14494: $as_echo "$ld_shlibs_CXX" >&6; }
1.8 moko 14495: test "$ld_shlibs_CXX" = no && can_build_shared=no
14496:
14497: with_gnu_ld_CXX=$with_gnu_ld
14498:
14499:
14500:
14501:
14502:
14503:
14504: #
14505: # Do we need to explicitly link libc?
14506: #
14507: case "x$archive_cmds_need_lc_CXX" in
14508: x|xyes)
14509: # Assume -lc should be added
14510: archive_cmds_need_lc_CXX=yes
14511:
14512: if test "$enable_shared" = yes && test "$GCC" = yes; then
14513: case $archive_cmds_CXX in
14514: *'~'*)
14515: # FIXME: we may have to deal with multi-command sequences.
14516: ;;
14517: '$CC '*)
14518: # Test whether the compiler implicitly links with -lc since on some
14519: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14520: # to ld, don't add -lc before -lgcc.
1.22 ! moko 14521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
! 14522: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
! 14523: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
! 14524: $as_echo_n "(cached) " >&6
1.8 moko 14525: else
14526: $RM conftest*
14527: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14528:
1.22 ! moko 14529: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 14530: (eval $ac_compile) 2>&5
14531: ac_status=$?
1.22 ! moko 14532: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 14533: test $ac_status = 0; } 2>conftest.err; then
1.8 moko 14534: soname=conftest
14535: lib=conftest
14536: libobjs=conftest.$ac_objext
14537: deplibs=
14538: wl=$lt_prog_compiler_wl_CXX
14539: pic_flag=$lt_prog_compiler_pic_CXX
14540: compiler_flags=-v
14541: linker_flags=-v
14542: verstring=
14543: output_objdir=.
14544: libname=conftest
14545: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14546: allow_undefined_flag_CXX=
1.22 ! moko 14547: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.8 moko 14548: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14549: ac_status=$?
1.22 ! moko 14550: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 14551: test $ac_status = 0; }
1.8 moko 14552: then
14553: lt_cv_archive_cmds_need_lc_CXX=no
14554: else
14555: lt_cv_archive_cmds_need_lc_CXX=yes
14556: fi
14557: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14558: else
14559: cat conftest.err 1>&5
14560: fi
14561: $RM conftest*
14562:
14563: fi
1.22 ! moko 14564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
! 14565: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.8 moko 14566: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14567: ;;
14568: esac
14569: fi
14570: ;;
14571: esac
14572:
14573:
14574:
14575:
14576:
14577:
14578:
14579:
14580:
14581:
14582:
14583:
14584:
14585:
14586:
14587:
14588:
14589:
14590:
14591:
14592:
14593:
14594:
14595:
14596:
14597:
14598:
14599:
14600:
14601:
14602:
14603:
14604:
14605:
14606:
14607:
14608:
14609:
14610:
14611:
14612:
14613:
14614:
14615:
14616:
14617:
14618:
14619:
14620:
14621:
14622:
14623:
14624:
14625:
14626:
14627:
14628:
14629:
14630:
14631:
14632:
14633:
1.22 ! moko 14634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
! 14635: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.8 moko 14636:
14637: library_names_spec=
14638: libname_spec='lib$name'
14639: soname_spec=
14640: shrext_cmds=".so"
14641: postinstall_cmds=
14642: postuninstall_cmds=
14643: finish_cmds=
14644: finish_eval=
14645: shlibpath_var=
14646: shlibpath_overrides_runpath=unknown
14647: version_type=none
14648: dynamic_linker="$host_os ld.so"
14649: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14650: need_lib_prefix=unknown
14651: hardcode_into_libs=no
14652:
14653: # when you set need_version to no, make sure it does not cause -set_version
14654: # flags to be left without arguments
14655: need_version=unknown
14656:
14657: case $host_os in
14658: aix3*)
14659: version_type=linux # correct to gnu/linux during the next big refactor
14660: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14661: shlibpath_var=LIBPATH
14662:
14663: # AIX 3 has no versioning support, so we append a major version to the name.
14664: soname_spec='${libname}${release}${shared_ext}$major'
14665: ;;
14666:
14667: aix[4-9]*)
14668: version_type=linux # correct to gnu/linux during the next big refactor
14669: need_lib_prefix=no
14670: need_version=no
14671: hardcode_into_libs=yes
14672: if test "$host_cpu" = ia64; then
14673: # AIX 5 supports IA64
14674: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14675: shlibpath_var=LD_LIBRARY_PATH
14676: else
14677: # With GCC up to 2.95.x, collect2 would create an import file
14678: # for dependence libraries. The import file would start with
14679: # the line `#! .'. This would cause the generated library to
14680: # depend on `.', always an invalid library. This was fixed in
14681: # development snapshots of GCC prior to 3.0.
14682: case $host_os in
14683: aix4 | aix4.[01] | aix4.[01].*)
14684: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14685: echo ' yes '
14686: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14687: :
14688: else
14689: can_build_shared=no
14690: fi
14691: ;;
14692: esac
14693: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14694: # soname into executable. Probably we can add versioning support to
14695: # collect2, so additional links can be useful in future.
14696: if test "$aix_use_runtimelinking" = yes; then
14697: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14698: # instead of lib<name>.a to let people know that these are not
14699: # typical AIX shared libraries.
14700: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701: else
14702: # We preserve .a as extension for shared libraries through AIX4.2
14703: # and later when we are not doing run time linking.
14704: library_names_spec='${libname}${release}.a $libname.a'
14705: soname_spec='${libname}${release}${shared_ext}$major'
14706: fi
14707: shlibpath_var=LIBPATH
14708: fi
14709: ;;
14710:
14711: amigaos*)
14712: case $host_cpu in
14713: powerpc)
14714: # Since July 2007 AmigaOS4 officially supports .so libraries.
14715: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14716: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717: ;;
14718: m68k)
14719: library_names_spec='$libname.ixlibrary $libname.a'
14720: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14721: 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'
14722: ;;
14723: esac
14724: ;;
14725:
14726: beos*)
14727: library_names_spec='${libname}${shared_ext}'
14728: dynamic_linker="$host_os ld.so"
14729: shlibpath_var=LIBRARY_PATH
14730: ;;
14731:
14732: bsdi[45]*)
14733: version_type=linux # correct to gnu/linux during the next big refactor
14734: need_version=no
14735: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736: soname_spec='${libname}${release}${shared_ext}$major'
14737: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14738: shlibpath_var=LD_LIBRARY_PATH
14739: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14740: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14741: # the default ld.so.conf also contains /usr/contrib/lib and
14742: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14743: # libtool to hard-code these into programs
14744: ;;
14745:
14746: cygwin* | mingw* | pw32* | cegcc*)
14747: version_type=windows
14748: shrext_cmds=".dll"
14749: need_version=no
14750: need_lib_prefix=no
14751:
14752: case $GCC,$cc_basename in
14753: yes,*)
14754: # gcc
14755: library_names_spec='$libname.dll.a'
14756: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14757: postinstall_cmds='base_file=`basename \${file}`~
14758: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14759: dldir=$destdir/`dirname \$dlpath`~
14760: test -d \$dldir || mkdir -p \$dldir~
14761: $install_prog $dir/$dlname \$dldir/$dlname~
14762: chmod a+x \$dldir/$dlname~
14763: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14764: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14765: fi'
14766: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14767: dlpath=$dir/\$dldll~
14768: $RM \$dlpath'
14769: shlibpath_overrides_runpath=yes
14770:
14771: case $host_os in
14772: cygwin*)
14773: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14774: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14775:
14776: ;;
14777: mingw* | cegcc*)
14778: # MinGW DLLs use traditional 'lib' prefix
14779: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14780: ;;
14781: pw32*)
14782: # pw32 DLLs use 'pw' prefix rather than 'lib'
14783: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14784: ;;
14785: esac
14786: dynamic_linker='Win32 ld.exe'
14787: ;;
14788:
14789: *,cl*)
14790: # Native MSVC
14791: libname_spec='$name'
14792: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14793: library_names_spec='${libname}.dll.lib'
14794:
14795: case $build_os in
14796: mingw*)
14797: sys_lib_search_path_spec=
14798: lt_save_ifs=$IFS
14799: IFS=';'
14800: for lt_path in $LIB
14801: do
14802: IFS=$lt_save_ifs
14803: # Let DOS variable expansion print the short 8.3 style file name.
14804: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14805: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14806: done
14807: IFS=$lt_save_ifs
14808: # Convert to MSYS style.
14809: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14810: ;;
14811: cygwin*)
14812: # Convert to unix form, then to dos form, then back to unix form
14813: # but this time dos style (no spaces!) so that the unix form looks
14814: # like /cygdrive/c/PROGRA~1:/cygdr...
14815: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14816: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14817: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14818: ;;
14819: *)
14820: sys_lib_search_path_spec="$LIB"
14821: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14822: # It is most probably a Windows format PATH.
14823: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14824: else
14825: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14826: fi
14827: # FIXME: find the short name or the path components, as spaces are
14828: # common. (e.g. "Program Files" -> "PROGRA~1")
14829: ;;
14830: esac
14831:
14832: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14833: postinstall_cmds='base_file=`basename \${file}`~
14834: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14835: dldir=$destdir/`dirname \$dlpath`~
14836: test -d \$dldir || mkdir -p \$dldir~
14837: $install_prog $dir/$dlname \$dldir/$dlname'
14838: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14839: dlpath=$dir/\$dldll~
14840: $RM \$dlpath'
14841: shlibpath_overrides_runpath=yes
14842: dynamic_linker='Win32 link.exe'
14843: ;;
14844:
14845: *)
14846: # Assume MSVC wrapper
14847: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14848: dynamic_linker='Win32 ld.exe'
14849: ;;
14850: esac
14851: # FIXME: first we should search . and the directory the executable is in
14852: shlibpath_var=PATH
14853: ;;
14854:
14855: darwin* | rhapsody*)
14856: dynamic_linker="$host_os dyld"
14857: version_type=darwin
14858: need_lib_prefix=no
14859: need_version=no
14860: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14861: soname_spec='${libname}${release}${major}$shared_ext'
14862: shlibpath_overrides_runpath=yes
14863: shlibpath_var=DYLD_LIBRARY_PATH
14864: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14865:
14866: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14867: ;;
14868:
14869: dgux*)
14870: version_type=linux # correct to gnu/linux during the next big refactor
14871: need_lib_prefix=no
14872: need_version=no
14873: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14874: soname_spec='${libname}${release}${shared_ext}$major'
14875: shlibpath_var=LD_LIBRARY_PATH
14876: ;;
14877:
14878: freebsd* | dragonfly*)
14879: # DragonFly does not have aout. When/if they implement a new
14880: # versioning mechanism, adjust this.
14881: if test -x /usr/bin/objformat; then
14882: objformat=`/usr/bin/objformat`
14883: else
14884: case $host_os in
14885: freebsd[23].*) objformat=aout ;;
14886: *) objformat=elf ;;
14887: esac
14888: fi
14889: version_type=freebsd-$objformat
14890: case $version_type in
14891: freebsd-elf*)
14892: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14893: need_version=no
14894: need_lib_prefix=no
14895: ;;
14896: freebsd-*)
14897: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14898: need_version=yes
14899: ;;
14900: esac
14901: shlibpath_var=LD_LIBRARY_PATH
14902: case $host_os in
14903: freebsd2.*)
14904: shlibpath_overrides_runpath=yes
14905: ;;
14906: freebsd3.[01]* | freebsdelf3.[01]*)
14907: shlibpath_overrides_runpath=yes
14908: hardcode_into_libs=yes
14909: ;;
14910: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14911: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14912: shlibpath_overrides_runpath=no
14913: hardcode_into_libs=yes
14914: ;;
14915: *) # from 4.6 on, and DragonFly
14916: shlibpath_overrides_runpath=yes
14917: hardcode_into_libs=yes
14918: ;;
14919: esac
14920: ;;
14921:
14922: gnu*)
14923: version_type=linux # correct to gnu/linux during the next big refactor
14924: need_lib_prefix=no
14925: need_version=no
14926: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14927: soname_spec='${libname}${release}${shared_ext}$major'
14928: shlibpath_var=LD_LIBRARY_PATH
14929: shlibpath_overrides_runpath=no
14930: hardcode_into_libs=yes
14931: ;;
14932:
14933: haiku*)
14934: version_type=linux # correct to gnu/linux during the next big refactor
14935: need_lib_prefix=no
14936: need_version=no
14937: dynamic_linker="$host_os runtime_loader"
14938: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14939: soname_spec='${libname}${release}${shared_ext}$major'
14940: shlibpath_var=LIBRARY_PATH
14941: shlibpath_overrides_runpath=yes
14942: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14943: hardcode_into_libs=yes
14944: ;;
14945:
14946: hpux9* | hpux10* | hpux11*)
14947: # Give a soname corresponding to the major version so that dld.sl refuses to
14948: # link against other versions.
14949: version_type=sunos
14950: need_lib_prefix=no
14951: need_version=no
14952: case $host_cpu in
14953: ia64*)
14954: shrext_cmds='.so'
14955: hardcode_into_libs=yes
14956: dynamic_linker="$host_os dld.so"
14957: shlibpath_var=LD_LIBRARY_PATH
14958: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14959: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14960: soname_spec='${libname}${release}${shared_ext}$major'
14961: if test "X$HPUX_IA64_MODE" = X32; then
14962: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14963: else
14964: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14965: fi
14966: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14967: ;;
14968: hppa*64*)
14969: shrext_cmds='.sl'
14970: hardcode_into_libs=yes
14971: dynamic_linker="$host_os dld.sl"
14972: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14973: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14974: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14975: soname_spec='${libname}${release}${shared_ext}$major'
14976: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14977: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14978: ;;
14979: *)
14980: shrext_cmds='.sl'
14981: dynamic_linker="$host_os dld.sl"
14982: shlibpath_var=SHLIB_PATH
14983: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14984: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985: soname_spec='${libname}${release}${shared_ext}$major'
14986: ;;
14987: esac
14988: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14989: postinstall_cmds='chmod 555 $lib'
14990: # or fails outright, so override atomically:
14991: install_override_mode=555
14992: ;;
14993:
14994: interix[3-9]*)
14995: version_type=linux # correct to gnu/linux during the next big refactor
14996: need_lib_prefix=no
14997: need_version=no
14998: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14999: soname_spec='${libname}${release}${shared_ext}$major'
15000: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15001: shlibpath_var=LD_LIBRARY_PATH
15002: shlibpath_overrides_runpath=no
15003: hardcode_into_libs=yes
15004: ;;
15005:
15006: irix5* | irix6* | nonstopux*)
15007: case $host_os in
15008: nonstopux*) version_type=nonstopux ;;
15009: *)
15010: if test "$lt_cv_prog_gnu_ld" = yes; then
15011: version_type=linux # correct to gnu/linux during the next big refactor
15012: else
15013: version_type=irix
15014: fi ;;
15015: esac
15016: need_lib_prefix=no
15017: need_version=no
15018: soname_spec='${libname}${release}${shared_ext}$major'
15019: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15020: case $host_os in
15021: irix5* | nonstopux*)
15022: libsuff= shlibsuff=
15023: ;;
15024: *)
15025: case $LD in # libtool.m4 will add one of these switches to LD
15026: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15027: libsuff= shlibsuff= libmagic=32-bit;;
15028: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15029: libsuff=32 shlibsuff=N32 libmagic=N32;;
15030: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15031: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15032: *) libsuff= shlibsuff= libmagic=never-match;;
15033: esac
15034: ;;
15035: esac
15036: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15037: shlibpath_overrides_runpath=no
15038: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15039: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15040: hardcode_into_libs=yes
15041: ;;
15042:
15043: # No shared lib support for Linux oldld, aout, or coff.
15044: linux*oldld* | linux*aout* | linux*coff*)
15045: dynamic_linker=no
15046: ;;
15047:
15048: # This must be glibc/ELF.
15049: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15050: version_type=linux # correct to gnu/linux during the next big refactor
15051: need_lib_prefix=no
15052: need_version=no
15053: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15054: soname_spec='${libname}${release}${shared_ext}$major'
15055: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15056: shlibpath_var=LD_LIBRARY_PATH
15057: shlibpath_overrides_runpath=no
15058:
15059: # Some binutils ld are patched to set DT_RUNPATH
1.22 ! moko 15060: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
! 15061: $as_echo_n "(cached) " >&6
1.8 moko 15062: else
15063: lt_cv_shlibpath_overrides_runpath=no
15064: save_LDFLAGS=$LDFLAGS
15065: save_libdir=$libdir
15066: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15067: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.22 ! moko 15068: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15069: /* end confdefs.h. */
15070:
15071: int
15072: main ()
15073: {
15074:
15075: ;
15076: return 0;
15077: }
15078: _ACEOF
1.22 ! moko 15079: if ac_fn_cxx_try_link "$LINENO"; then :
! 15080: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.8 moko 15081: lt_cv_shlibpath_overrides_runpath=yes
15082: fi
15083: fi
1.22 ! moko 15084: rm -f core conftest.err conftest.$ac_objext \
! 15085: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15086: LDFLAGS=$save_LDFLAGS
15087: libdir=$save_libdir
15088:
15089: fi
15090:
15091: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15092:
15093: # This implies no fast_install, which is unacceptable.
15094: # Some rework will be needed to allow for fast_install
15095: # before this can be enabled.
15096: hardcode_into_libs=yes
15097:
15098: # Append ld.so.conf contents to the search path
15099: if test -f /etc/ld.so.conf; then
15100: 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' ' '`
15101: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15102: fi
15103:
15104: # We used to test for /lib/ld.so.1 and disable shared libraries on
15105: # powerpc, because MkLinux only supported shared libraries with the
15106: # GNU dynamic linker. Since this was broken with cross compilers,
15107: # most powerpc-linux boxes support dynamic linking these days and
15108: # people can always --disable-shared, the test was removed, and we
15109: # assume the GNU/Linux dynamic linker is in use.
15110: dynamic_linker='GNU/Linux ld.so'
15111: ;;
15112:
15113: netbsd*)
15114: version_type=sunos
15115: need_lib_prefix=no
15116: need_version=no
15117: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15118: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15119: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15120: dynamic_linker='NetBSD (a.out) ld.so'
15121: else
15122: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15123: soname_spec='${libname}${release}${shared_ext}$major'
15124: dynamic_linker='NetBSD ld.elf_so'
15125: fi
15126: shlibpath_var=LD_LIBRARY_PATH
15127: shlibpath_overrides_runpath=yes
15128: hardcode_into_libs=yes
15129: ;;
15130:
15131: newsos6)
15132: version_type=linux # correct to gnu/linux during the next big refactor
15133: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134: shlibpath_var=LD_LIBRARY_PATH
15135: shlibpath_overrides_runpath=yes
15136: ;;
15137:
15138: *nto* | *qnx*)
15139: version_type=qnx
15140: need_lib_prefix=no
15141: need_version=no
15142: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143: soname_spec='${libname}${release}${shared_ext}$major'
15144: shlibpath_var=LD_LIBRARY_PATH
15145: shlibpath_overrides_runpath=no
15146: hardcode_into_libs=yes
15147: dynamic_linker='ldqnx.so'
15148: ;;
15149:
15150: openbsd*)
15151: version_type=sunos
15152: sys_lib_dlsearch_path_spec="/usr/lib"
15153: need_lib_prefix=no
15154: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15155: case $host_os in
15156: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15157: *) need_version=no ;;
15158: esac
15159: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15160: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15161: shlibpath_var=LD_LIBRARY_PATH
15162: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15163: case $host_os in
15164: openbsd2.[89] | openbsd2.[89].*)
15165: shlibpath_overrides_runpath=no
15166: ;;
15167: *)
15168: shlibpath_overrides_runpath=yes
15169: ;;
15170: esac
15171: else
15172: shlibpath_overrides_runpath=yes
15173: fi
15174: ;;
15175:
15176: os2*)
15177: libname_spec='$name'
15178: shrext_cmds=".dll"
15179: need_lib_prefix=no
15180: library_names_spec='$libname${shared_ext} $libname.a'
15181: dynamic_linker='OS/2 ld.exe'
15182: shlibpath_var=LIBPATH
15183: ;;
15184:
15185: osf3* | osf4* | osf5*)
15186: version_type=osf
15187: need_lib_prefix=no
15188: need_version=no
15189: soname_spec='${libname}${release}${shared_ext}$major'
15190: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191: shlibpath_var=LD_LIBRARY_PATH
15192: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15193: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15194: ;;
15195:
15196: rdos*)
15197: dynamic_linker=no
15198: ;;
15199:
15200: solaris*)
15201: version_type=linux # correct to gnu/linux during the next big refactor
15202: need_lib_prefix=no
15203: need_version=no
15204: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205: soname_spec='${libname}${release}${shared_ext}$major'
15206: shlibpath_var=LD_LIBRARY_PATH
15207: shlibpath_overrides_runpath=yes
15208: hardcode_into_libs=yes
15209: # ldd complains unless libraries are executable
15210: postinstall_cmds='chmod +x $lib'
15211: ;;
15212:
15213: sunos4*)
15214: version_type=sunos
15215: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15216: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15217: shlibpath_var=LD_LIBRARY_PATH
15218: shlibpath_overrides_runpath=yes
15219: if test "$with_gnu_ld" = yes; then
15220: need_lib_prefix=no
15221: fi
15222: need_version=yes
15223: ;;
15224:
15225: sysv4 | sysv4.3*)
15226: version_type=linux # correct to gnu/linux during the next big refactor
15227: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228: soname_spec='${libname}${release}${shared_ext}$major'
15229: shlibpath_var=LD_LIBRARY_PATH
15230: case $host_vendor in
15231: sni)
15232: shlibpath_overrides_runpath=no
15233: need_lib_prefix=no
15234: runpath_var=LD_RUN_PATH
15235: ;;
15236: siemens)
15237: need_lib_prefix=no
15238: ;;
15239: motorola)
15240: need_lib_prefix=no
15241: need_version=no
15242: shlibpath_overrides_runpath=no
15243: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15244: ;;
15245: esac
15246: ;;
15247:
15248: sysv4*MP*)
15249: if test -d /usr/nec ;then
15250: version_type=linux # correct to gnu/linux during the next big refactor
15251: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15252: soname_spec='$libname${shared_ext}.$major'
15253: shlibpath_var=LD_LIBRARY_PATH
15254: fi
15255: ;;
15256:
15257: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15258: version_type=freebsd-elf
15259: need_lib_prefix=no
15260: need_version=no
15261: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15262: soname_spec='${libname}${release}${shared_ext}$major'
15263: shlibpath_var=LD_LIBRARY_PATH
15264: shlibpath_overrides_runpath=yes
15265: hardcode_into_libs=yes
15266: if test "$with_gnu_ld" = yes; then
15267: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15268: else
15269: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15270: case $host_os in
15271: sco3.2v5*)
15272: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15273: ;;
15274: esac
15275: fi
15276: sys_lib_dlsearch_path_spec='/usr/lib'
15277: ;;
15278:
15279: tpf*)
15280: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15281: version_type=linux # correct to gnu/linux during the next big refactor
15282: need_lib_prefix=no
15283: need_version=no
15284: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285: shlibpath_var=LD_LIBRARY_PATH
15286: shlibpath_overrides_runpath=no
15287: hardcode_into_libs=yes
15288: ;;
15289:
15290: uts4*)
15291: version_type=linux # correct to gnu/linux during the next big refactor
15292: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293: soname_spec='${libname}${release}${shared_ext}$major'
15294: shlibpath_var=LD_LIBRARY_PATH
15295: ;;
15296:
15297: *)
15298: dynamic_linker=no
15299: ;;
15300: esac
1.22 ! moko 15301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
! 15302: $as_echo "$dynamic_linker" >&6; }
1.8 moko 15303: test "$dynamic_linker" = no && can_build_shared=no
15304:
15305: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15306: if test "$GCC" = yes; then
15307: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15308: fi
15309:
15310: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15311: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15312: fi
15313: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15314: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15315: fi
15316:
15317:
15318:
15319:
15320:
15321:
15322:
15323:
15324:
15325:
15326:
15327:
15328:
15329:
15330:
15331:
15332:
15333:
15334:
15335:
15336:
15337:
15338:
15339:
15340:
15341:
15342:
15343:
15344:
15345:
15346:
15347:
15348:
15349:
15350:
15351:
15352:
15353:
1.22 ! moko 15354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
! 15355: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.8 moko 15356: hardcode_action_CXX=
15357: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15358: test -n "$runpath_var_CXX" ||
15359: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15360:
15361: # We can hardcode non-existent directories.
15362: if test "$hardcode_direct_CXX" != no &&
15363: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15364: # have to relink, otherwise we might link with an installed library
15365: # when we should be linking with a yet-to-be-installed one
15366: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15367: test "$hardcode_minus_L_CXX" != no; then
15368: # Linking always hardcodes the temporary library directory.
15369: hardcode_action_CXX=relink
15370: else
15371: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15372: hardcode_action_CXX=immediate
15373: fi
15374: else
15375: # We cannot hardcode anything, or else we can only hardcode existing
15376: # directories.
15377: hardcode_action_CXX=unsupported
15378: fi
1.22 ! moko 15379: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
! 15380: $as_echo "$hardcode_action_CXX" >&6; }
1.8 moko 15381:
15382: if test "$hardcode_action_CXX" = relink ||
15383: test "$inherit_rpath_CXX" = yes; then
15384: # Fast installation is not supported
15385: enable_fast_install=no
15386: elif test "$shlibpath_overrides_runpath" = yes ||
15387: test "$enable_shared" = no; then
15388: # Fast installation is not necessary
15389: enable_fast_install=needless
15390: fi
15391:
15392:
15393:
15394:
15395:
15396:
15397:
15398: fi # test -n "$compiler"
15399:
15400: CC=$lt_save_CC
15401: CFLAGS=$lt_save_CFLAGS
15402: LDCXX=$LD
15403: LD=$lt_save_LD
15404: GCC=$lt_save_GCC
15405: with_gnu_ld=$lt_save_with_gnu_ld
15406: lt_cv_path_LDCXX=$lt_cv_path_LD
15407: lt_cv_path_LD=$lt_save_path_LD
15408: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15409: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15410: fi # test "$_lt_caught_CXX_error" != yes
15411:
15412: ac_ext=c
15413: ac_cpp='$CPP $CPPFLAGS'
15414: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15415: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15416: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15417:
15418:
15419:
15420:
15421:
15422:
15423:
15424:
15425:
15426:
15427:
15428:
15429:
15430:
15431:
1.22 ! moko 15432: ac_config_commands="$ac_config_commands libtool"
1.8 moko 15433:
15434:
15435:
15436:
15437: # Only expand once:
15438:
15439:
1.22 ! moko 15440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
! 15441: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
! 15442: if ${libltdl_cv_shlibext+:} false; then :
! 15443: $as_echo_n "(cached) " >&6
1.8 moko 15444: else
15445:
15446: module=yes
15447: eval libltdl_cv_shlibext=$shrext_cmds
15448: module=no
15449: eval libltdl_cv_shrext=$shrext_cmds
15450:
15451: fi
1.22 ! moko 15452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
! 15453: $as_echo "$libltdl_cv_shlibext" >&6; }
1.8 moko 15454: if test -n "$libltdl_cv_shlibext"; then
15455:
15456: cat >>confdefs.h <<_ACEOF
15457: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15458: _ACEOF
15459:
15460: fi
15461: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15462:
15463: cat >>confdefs.h <<_ACEOF
15464: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15465: _ACEOF
15466:
15467: fi
15468:
1.22 ! moko 15469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
! 15470: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
! 15471: if ${lt_cv_module_path_var+:} false; then :
! 15472: $as_echo_n "(cached) " >&6
1.8 moko 15473: else
15474: lt_cv_module_path_var="$shlibpath_var"
15475: fi
1.22 ! moko 15476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
! 15477: $as_echo "$lt_cv_module_path_var" >&6; }
1.8 moko 15478: if test -n "$lt_cv_module_path_var"; then
15479:
15480: cat >>confdefs.h <<_ACEOF
15481: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15482: _ACEOF
15483:
15484: fi
15485:
1.22 ! moko 15486: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
! 15487: $as_echo_n "checking for the default library search path... " >&6; }
! 15488: if ${lt_cv_sys_dlsearch_path+:} false; then :
! 15489: $as_echo_n "(cached) " >&6
1.8 moko 15490: else
15491: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15492: fi
1.22 ! moko 15493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
! 15494: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.8 moko 15495: if test -n "$lt_cv_sys_dlsearch_path"; then
15496: sys_dlsearch_path=
15497: for dir in $lt_cv_sys_dlsearch_path; do
15498: if test -z "$sys_dlsearch_path"; then
15499: sys_dlsearch_path="$dir"
15500: else
15501: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15502: fi
15503: done
15504:
15505: cat >>confdefs.h <<_ACEOF
15506: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15507: _ACEOF
15508:
15509: fi
15510:
15511:
15512: LT_DLLOADERS=
15513:
15514:
15515: ac_ext=c
15516: ac_cpp='$CPP $CPPFLAGS'
15517: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15518: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15519: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15520:
15521:
15522: LIBADD_DLOPEN=
1.22 ! moko 15523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
! 15524: $as_echo_n "checking for library containing dlopen... " >&6; }
! 15525: if ${ac_cv_search_dlopen+:} false; then :
! 15526: $as_echo_n "(cached) " >&6
1.8 moko 15527: else
15528: ac_func_search_save_LIBS=$LIBS
1.22 ! moko 15529: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15530: /* end confdefs.h. */
15531:
1.22 ! moko 15532: /* Override any GCC internal prototype to avoid an error.
! 15533: Use char because int might match the return type of a GCC
! 15534: builtin and then its argument prototype would still apply. */
1.8 moko 15535: #ifdef __cplusplus
15536: extern "C"
15537: #endif
15538: char dlopen ();
15539: int
15540: main ()
15541: {
1.22 ! moko 15542: return dlopen ();
1.8 moko 15543: ;
15544: return 0;
15545: }
15546: _ACEOF
1.22 ! moko 15547: for ac_lib in '' dl; do
! 15548: if test -z "$ac_lib"; then
! 15549: ac_res="none required"
! 15550: else
! 15551: ac_res=-l$ac_lib
! 15552: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 15553: fi
! 15554: if ac_fn_c_try_link "$LINENO"; then :
! 15555: ac_cv_search_dlopen=$ac_res
! 15556: fi
! 15557: rm -f core conftest.err conftest.$ac_objext \
! 15558: conftest$ac_exeext
! 15559: if ${ac_cv_search_dlopen+:} false; then :
! 15560: break
1.11 moko 15561: fi
1.22 ! moko 15562: done
! 15563: if ${ac_cv_search_dlopen+:} false; then :
1.8 moko 15564:
15565: else
1.22 ! moko 15566: ac_cv_search_dlopen=no
1.8 moko 15567: fi
1.22 ! moko 15568: rm conftest.$ac_ext
1.8 moko 15569: LIBS=$ac_func_search_save_LIBS
15570: fi
1.22 ! moko 15571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
! 15572: $as_echo "$ac_cv_search_dlopen" >&6; }
! 15573: ac_res=$ac_cv_search_dlopen
! 15574: if test "$ac_res" != no; then :
! 15575: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.8 moko 15576:
1.22 ! moko 15577: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.8 moko 15578:
15579: if test "$ac_cv_search_dlopen" != "none required" ; then
15580: LIBADD_DLOPEN="-ldl"
15581: fi
15582: libltdl_cv_lib_dl_dlopen="yes"
15583: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15584: else
1.22 ! moko 15585: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15586: /* end confdefs.h. */
15587: #if HAVE_DLFCN_H
15588: # include <dlfcn.h>
15589: #endif
15590:
15591: int
15592: main ()
15593: {
15594: dlopen(0, 0);
15595: ;
15596: return 0;
15597: }
15598: _ACEOF
1.22 ! moko 15599: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 15600:
1.22 ! moko 15601: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.8 moko 15602:
15603: libltdl_cv_func_dlopen="yes"
15604: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15605: else
1.22 ! moko 15606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
! 15607: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
! 15608: if ${ac_cv_lib_svld_dlopen+:} false; then :
! 15609: $as_echo_n "(cached) " >&6
1.8 moko 15610: else
15611: ac_check_lib_save_LIBS=$LIBS
15612: LIBS="-lsvld $LIBS"
1.22 ! moko 15613: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 moko 15614: /* end confdefs.h. */
15615:
1.22 ! moko 15616: /* Override any GCC internal prototype to avoid an error.
! 15617: Use char because int might match the return type of a GCC
1.11 moko 15618: builtin and then its argument prototype would still apply. */
15619: #ifdef __cplusplus
1.22 ! moko 15620: extern "C"
1.11 moko 15621: #endif
1.22 ! moko 15622: char dlopen ();
1.11 moko 15623: int
15624: main ()
15625: {
1.22 ! moko 15626: return dlopen ();
1.11 moko 15627: ;
15628: return 0;
15629: }
15630: _ACEOF
1.22 ! moko 15631: if ac_fn_c_try_link "$LINENO"; then :
! 15632: ac_cv_lib_svld_dlopen=yes
1.11 moko 15633: else
1.22 ! moko 15634: ac_cv_lib_svld_dlopen=no
! 15635: fi
! 15636: rm -f core conftest.err conftest.$ac_objext \
! 15637: conftest$ac_exeext conftest.$ac_ext
! 15638: LIBS=$ac_check_lib_save_LIBS
! 15639: fi
! 15640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
! 15641: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
! 15642: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
! 15643:
! 15644: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
! 15645:
! 15646: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
! 15647: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
! 15648: fi
1.11 moko 15649:
15650: fi
1.22 ! moko 15651: rm -f core conftest.err conftest.$ac_objext \
! 15652: conftest$ac_exeext conftest.$ac_ext
1.11 moko 15653: fi
1.22 ! moko 15654:
! 15655: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
! 15656: then
! 15657: lt_save_LIBS="$LIBS"
! 15658: LIBS="$LIBS $LIBADD_DLOPEN"
! 15659: for ac_func in dlerror
! 15660: do :
! 15661: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
! 15662: if test "x$ac_cv_func_dlerror" = xyes; then :
1.8 moko 15663: cat >>confdefs.h <<_ACEOF
1.22 ! moko 15664: #define HAVE_DLERROR 1
1.8 moko 15665: _ACEOF
15666:
15667: fi
15668: done
15669:
15670: LIBS="$lt_save_LIBS"
15671: fi
15672:
15673:
15674: LIBADD_SHL_LOAD=
1.22 ! moko 15675: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
! 15676: if test "x$ac_cv_func_shl_load" = xyes; then :
1.8 moko 15677:
1.22 ! moko 15678: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.8 moko 15679:
15680: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15681: else
1.22 ! moko 15682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
! 15683: $as_echo_n "checking for shl_load in -ldld... " >&6; }
! 15684: if ${ac_cv_lib_dld_shl_load+:} false; then :
! 15685: $as_echo_n "(cached) " >&6
1.8 moko 15686: else
15687: ac_check_lib_save_LIBS=$LIBS
15688: LIBS="-ldld $LIBS"
1.22 ! moko 15689: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15690: /* end confdefs.h. */
15691:
1.22 ! moko 15692: /* Override any GCC internal prototype to avoid an error.
! 15693: Use char because int might match the return type of a GCC
! 15694: builtin and then its argument prototype would still apply. */
1.8 moko 15695: #ifdef __cplusplus
15696: extern "C"
15697: #endif
15698: char shl_load ();
15699: int
15700: main ()
15701: {
1.22 ! moko 15702: return shl_load ();
1.8 moko 15703: ;
15704: return 0;
15705: }
15706: _ACEOF
1.22 ! moko 15707: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 15708: ac_cv_lib_dld_shl_load=yes
15709: else
1.22 ! moko 15710: ac_cv_lib_dld_shl_load=no
1.8 moko 15711: fi
1.22 ! moko 15712: rm -f core conftest.err conftest.$ac_objext \
! 15713: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15714: LIBS=$ac_check_lib_save_LIBS
15715: fi
1.22 ! moko 15716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
! 15717: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
! 15718: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.8 moko 15719:
1.22 ! moko 15720: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.8 moko 15721:
15722: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15723: LIBADD_SHL_LOAD="-ldld"
15724: fi
15725:
15726: fi
15727:
15728:
15729:
15730: case $host_os in
15731: darwin[1567].*)
15732: # We only want this for pre-Mac OS X 10.4.
1.22 ! moko 15733: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
! 15734: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
1.11 moko 15735:
1.22 ! moko 15736: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.8 moko 15737:
15738: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15739: fi
15740:
15741: ;;
15742: beos*)
15743: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15744: ;;
15745: cygwin* | mingw* | os2* | pw32*)
1.22 ! moko 15746: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
! 15747: "
! 15748: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
! 15749: ac_have_decl=1
1.8 moko 15750: else
1.22 ! moko 15751: ac_have_decl=0
1.11 moko 15752: fi
1.8 moko 15753:
15754: cat >>confdefs.h <<_ACEOF
1.22 ! moko 15755: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.8 moko 15756: _ACEOF
15757:
15758: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15759: ;;
15760: esac
15761:
1.22 ! moko 15762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
! 15763: $as_echo_n "checking for dld_link in -ldld... " >&6; }
! 15764: if ${ac_cv_lib_dld_dld_link+:} false; then :
! 15765: $as_echo_n "(cached) " >&6
1.8 moko 15766: else
15767: ac_check_lib_save_LIBS=$LIBS
15768: LIBS="-ldld $LIBS"
1.22 ! moko 15769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15770: /* end confdefs.h. */
15771:
1.22 ! moko 15772: /* Override any GCC internal prototype to avoid an error.
! 15773: Use char because int might match the return type of a GCC
! 15774: builtin and then its argument prototype would still apply. */
1.8 moko 15775: #ifdef __cplusplus
15776: extern "C"
15777: #endif
15778: char dld_link ();
15779: int
15780: main ()
15781: {
1.22 ! moko 15782: return dld_link ();
1.8 moko 15783: ;
15784: return 0;
15785: }
15786: _ACEOF
1.22 ! moko 15787: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 15788: ac_cv_lib_dld_dld_link=yes
15789: else
1.22 ! moko 15790: ac_cv_lib_dld_dld_link=no
1.8 moko 15791: fi
1.22 ! moko 15792: rm -f core conftest.err conftest.$ac_objext \
! 15793: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15794: LIBS=$ac_check_lib_save_LIBS
15795: fi
1.22 ! moko 15796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
! 15797: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
! 15798: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.8 moko 15799:
1.22 ! moko 15800: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.8 moko 15801:
15802: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15803: fi
15804:
15805:
15806:
15807:
15808: LT_DLPREOPEN=
15809: if test -n "$LT_DLLOADERS"
15810: then
15811: for lt_loader in $LT_DLLOADERS; do
15812: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15813: done
15814:
1.22 ! moko 15815: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.8 moko 15816:
15817: fi
15818:
15819:
15820: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15821:
15822:
15823: ac_ext=c
15824: ac_cpp='$CPP $CPPFLAGS'
15825: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15826: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15827: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15828:
15829:
1.22 ! moko 15830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
! 15831: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
! 15832: if ${lt_cv_sys_symbol_underscore+:} false; then :
! 15833: $as_echo_n "(cached) " >&6
1.8 moko 15834: else
15835: lt_cv_sys_symbol_underscore=no
15836: cat > conftest.$ac_ext <<_LT_EOF
15837: void nm_test_func(){}
15838: int main(){nm_test_func;return 0;}
15839: _LT_EOF
1.22 ! moko 15840: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 15841: (eval $ac_compile) 2>&5
15842: ac_status=$?
1.22 ! moko 15843: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 15844: test $ac_status = 0; }; then
1.8 moko 15845: # Now try to grab the symbols.
15846: ac_nlist=conftest.nm
1.22 ! moko 15847: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.8 moko 15848: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15849: ac_status=$?
1.22 ! moko 15850: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 15851: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.8 moko 15852: # See whether the symbols have a leading underscore.
15853: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15854: lt_cv_sys_symbol_underscore=yes
15855: else
15856: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15857: :
15858: else
15859: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15860: fi
15861: fi
15862: else
15863: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15864: fi
15865: else
15866: echo "configure: failed program was:" >&5
15867: cat conftest.c >&5
15868: fi
15869: rm -rf conftest*
15870:
15871: fi
1.22 ! moko 15872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
! 15873: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.8 moko 15874: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15875:
15876:
15877: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15878: if test x"$libltdl_cv_func_dlopen" = xyes ||
15879: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.22 ! moko 15880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
! 15881: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
! 15882: if ${libltdl_cv_need_uscore+:} false; then :
! 15883: $as_echo_n "(cached) " >&6
1.8 moko 15884: else
15885: libltdl_cv_need_uscore=unknown
15886: save_LIBS="$LIBS"
15887: LIBS="$LIBS $LIBADD_DLOPEN"
15888: if test "$cross_compiling" = yes; then :
15889: libltdl_cv_need_uscore=cross
15890: else
15891: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15892: lt_status=$lt_dlunknown
15893: cat > conftest.$ac_ext <<_LT_EOF
15894: #line $LINENO "configure"
15895: #include "confdefs.h"
15896:
15897: #if HAVE_DLFCN_H
15898: #include <dlfcn.h>
15899: #endif
15900:
15901: #include <stdio.h>
15902:
15903: #ifdef RTLD_GLOBAL
15904: # define LT_DLGLOBAL RTLD_GLOBAL
15905: #else
15906: # ifdef DL_GLOBAL
15907: # define LT_DLGLOBAL DL_GLOBAL
15908: # else
15909: # define LT_DLGLOBAL 0
15910: # endif
15911: #endif
15912:
15913: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15914: find out it does not work in some platform. */
15915: #ifndef LT_DLLAZY_OR_NOW
15916: # ifdef RTLD_LAZY
15917: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15918: # else
15919: # ifdef DL_LAZY
15920: # define LT_DLLAZY_OR_NOW DL_LAZY
15921: # else
15922: # ifdef RTLD_NOW
15923: # define LT_DLLAZY_OR_NOW RTLD_NOW
15924: # else
15925: # ifdef DL_NOW
15926: # define LT_DLLAZY_OR_NOW DL_NOW
15927: # else
15928: # define LT_DLLAZY_OR_NOW 0
15929: # endif
15930: # endif
15931: # endif
15932: # endif
15933: #endif
15934:
15935: /* When -fvisbility=hidden is used, assume the code has been annotated
15936: correspondingly for the symbols needed. */
15937: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15938: int fnord () __attribute__((visibility("default")));
15939: #endif
15940:
15941: int fnord () { return 42; }
15942: int main ()
15943: {
15944: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15945: int status = $lt_dlunknown;
15946:
15947: if (self)
15948: {
15949: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15950: else
15951: {
15952: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15953: else puts (dlerror ());
15954: }
15955: /* dlclose (self); */
15956: }
15957: else
15958: puts (dlerror ());
15959:
15960: return status;
15961: }
15962: _LT_EOF
1.22 ! moko 15963: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 15964: (eval $ac_link) 2>&5
15965: ac_status=$?
1.22 ! moko 15966: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 15967: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 15968: (./conftest; exit; ) >&5 2>/dev/null
15969: lt_status=$?
15970: case x$lt_status in
15971: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15972: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15973: x$lt_dlunknown|x*) ;;
15974: esac
15975: else :
15976: # compilation failed
15977:
15978: fi
15979: fi
15980: rm -fr conftest*
15981:
15982: LIBS="$save_LIBS"
15983:
15984: fi
1.22 ! moko 15985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
! 15986: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.8 moko 15987: fi
15988: fi
15989:
15990: if test x"$libltdl_cv_need_uscore" = xyes; then
15991:
1.22 ! moko 15992: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.8 moko 15993:
15994: fi
15995:
1.22 ! moko 15996: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
! 15997: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
! 15998: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
! 15999: $as_echo_n "(cached) " >&6
1.8 moko 16000: else
16001: # PORTME does your system automatically load deplibs for dlopen?
16002: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16003: # For now, we just catch OSes we know something about -- in the
16004: # future, we'll try test this programmatically.
16005: lt_cv_sys_dlopen_deplibs=unknown
16006: case $host_os in
16007: aix3*|aix4.1.*|aix4.2.*)
16008: # Unknown whether this is true for these versions of AIX, but
16009: # we want this `case' here to explicitly catch those versions.
16010: lt_cv_sys_dlopen_deplibs=unknown
16011: ;;
16012: aix[4-9]*)
16013: lt_cv_sys_dlopen_deplibs=yes
16014: ;;
16015: amigaos*)
16016: case $host_cpu in
16017: powerpc)
16018: lt_cv_sys_dlopen_deplibs=no
16019: ;;
16020: esac
16021: ;;
16022: darwin*)
16023: # Assuming the user has installed a libdl from somewhere, this is true
16024: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16025: lt_cv_sys_dlopen_deplibs=yes
16026: ;;
16027: freebsd* | dragonfly*)
16028: lt_cv_sys_dlopen_deplibs=yes
16029: ;;
16030: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16031: # GNU and its variants, using gnu ld.so (Glibc)
16032: lt_cv_sys_dlopen_deplibs=yes
16033: ;;
16034: hpux10*|hpux11*)
16035: lt_cv_sys_dlopen_deplibs=yes
16036: ;;
16037: interix*)
16038: lt_cv_sys_dlopen_deplibs=yes
16039: ;;
16040: irix[12345]*|irix6.[01]*)
16041: # Catch all versions of IRIX before 6.2, and indicate that we don't
16042: # know how it worked for any of those versions.
16043: lt_cv_sys_dlopen_deplibs=unknown
16044: ;;
16045: irix*)
16046: # The case above catches anything before 6.2, and it's known that
16047: # at 6.2 and later dlopen does load deplibs.
16048: lt_cv_sys_dlopen_deplibs=yes
16049: ;;
16050: netbsd*)
16051: lt_cv_sys_dlopen_deplibs=yes
16052: ;;
16053: openbsd*)
16054: lt_cv_sys_dlopen_deplibs=yes
16055: ;;
16056: osf[1234]*)
16057: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16058: # it did *not* use an RPATH in a shared library to find objects the
16059: # library depends on, so we explicitly say `no'.
16060: lt_cv_sys_dlopen_deplibs=no
16061: ;;
16062: osf5.0|osf5.0a|osf5.1)
16063: # dlopen *does* load deplibs and with the right loader patch applied
16064: # it even uses RPATH in a shared library to search for shared objects
16065: # that the library depends on, but there's no easy way to know if that
16066: # patch is installed. Since this is the case, all we can really
16067: # say is unknown -- it depends on the patch being installed. If
16068: # it is, this changes to `yes'. Without it, it would be `no'.
16069: lt_cv_sys_dlopen_deplibs=unknown
16070: ;;
16071: osf*)
16072: # the two cases above should catch all versions of osf <= 5.1. Read
16073: # the comments above for what we know about them.
16074: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16075: # is used to find them so we can finally say `yes'.
16076: lt_cv_sys_dlopen_deplibs=yes
16077: ;;
16078: qnx*)
16079: lt_cv_sys_dlopen_deplibs=yes
16080: ;;
16081: solaris*)
16082: lt_cv_sys_dlopen_deplibs=yes
16083: ;;
16084: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16085: libltdl_cv_sys_dlopen_deplibs=yes
16086: ;;
16087: esac
16088:
16089: fi
1.22 ! moko 16090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
! 16091: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.8 moko 16092: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16093:
1.22 ! moko 16094: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.8 moko 16095:
16096: fi
16097:
16098: :
16099:
16100: for ac_header in argz.h
1.22 ! moko 16101: do :
! 16102: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
! 16103: "
! 16104: if test "x$ac_cv_header_argz_h" = xyes; then :
1.8 moko 16105: cat >>confdefs.h <<_ACEOF
1.22 ! moko 16106: #define HAVE_ARGZ_H 1
1.8 moko 16107: _ACEOF
16108:
16109: fi
16110:
16111: done
16112:
16113:
1.22 ! moko 16114: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
! 16115: # include <argz.h>
1.11 moko 16116: #endif
1.22 ! moko 16117: "
! 16118: if test "x$ac_cv_type_error_t" = xyes; then :
1.11 moko 16119:
1.22 ! moko 16120: cat >>confdefs.h <<_ACEOF
! 16121: #define HAVE_ERROR_T 1
1.11 moko 16122: _ACEOF
1.22 ! moko 16123:
! 16124:
1.11 moko 16125: else
16126:
1.22 ! moko 16127: $as_echo "#define error_t int" >>confdefs.h
! 16128:
! 16129:
! 16130: $as_echo "#define __error_t_defined 1" >>confdefs.h
! 16131:
1.11 moko 16132: fi
1.22 ! moko 16133:
! 16134:
! 16135: ARGZ_H=
! 16136: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
! 16137: argz_next argz_stringify
! 16138: do :
! 16139: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16140: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 16141: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.8 moko 16142: cat >>confdefs.h <<_ACEOF
1.22 ! moko 16143: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 16144: _ACEOF
16145:
16146: else
16147: ARGZ_H=argz.h;
16148:
16149: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16150:
16151: fi
16152: done
16153:
16154:
1.22 ! moko 16155: if test -z "$ARGZ_H"; then :
! 16156: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
! 16157: $as_echo_n "checking if argz actually works... " >&6; }
! 16158: if ${lt_cv_sys_argz_works+:} false; then :
! 16159: $as_echo_n "(cached) " >&6
1.8 moko 16160: else
16161: case $host_os in #(
16162: *cygwin*)
16163: lt_cv_sys_argz_works=no
16164: if test "$cross_compiling" != no; then
16165: lt_cv_sys_argz_works="guessing no"
16166: else
16167: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16168: save_IFS=$IFS
16169: IFS=-.
16170: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16171: IFS=$save_IFS
16172: lt_os_major=${2-0}
16173: lt_os_minor=${3-0}
16174: lt_os_micro=${4-0}
16175: if test "$lt_os_major" -gt 1 \
16176: || { test "$lt_os_major" -eq 1 \
16177: && { test "$lt_os_minor" -gt 5 \
16178: || { test "$lt_os_minor" -eq 5 \
16179: && test "$lt_os_micro" -gt 24; }; }; }; then
16180: lt_cv_sys_argz_works=yes
16181: fi
16182: fi
16183: ;; #(
16184: *) lt_cv_sys_argz_works=yes ;;
16185: esac
16186: fi
1.22 ! moko 16187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
! 16188: $as_echo "$lt_cv_sys_argz_works" >&6; }
! 16189: if test "$lt_cv_sys_argz_works" = yes; then :
1.8 moko 16190:
1.22 ! moko 16191: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.8 moko 16192:
16193: else
16194: ARGZ_H=argz.h
16195:
16196:
16197: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16198:
16199: fi
16200: fi
16201:
16202:
16203:
1.22 ! moko 16204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
! 16205: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
! 16206: if ${libltdl_cv_preloaded_symbols+:} false; then :
! 16207: $as_echo_n "(cached) " >&6
1.8 moko 16208: else
16209: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16210: libltdl_cv_preloaded_symbols=yes
16211: else
16212: libltdl_cv_preloaded_symbols=no
16213: fi
16214:
16215: fi
1.22 ! moko 16216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
! 16217: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.8 moko 16218: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16219:
1.22 ! moko 16220: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.8 moko 16221:
16222: fi
16223:
1.22 ! moko 16224:
! 16225:
1.8 moko 16226: # Set options
16227:
16228:
16229:
16230:
16231:
16232:
16233:
16234:
16235:
16236:
16237:
16238:
1.22 ! moko 16239: # Check whether --with-included_ltdl was given.
! 16240: if test "${with_included_ltdl+set}" = set; then :
! 16241: withval=$with_included_ltdl;
! 16242: fi
1.8 moko 16243:
16244:
16245: if test "x$with_included_ltdl" != xyes; then
16246: # We are not being forced to use the included libltdl sources, so
16247: # decide whether there is a useful installed version we can use.
1.22 ! moko 16248: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.8 moko 16249:
1.22 ! moko 16250: "
! 16251: if test "x$ac_cv_header_ltdl_h" = xyes; then :
! 16252: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.8 moko 16253: #include <ltdl.h>
1.22 ! moko 16254: "
! 16255: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
! 16256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
! 16257: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
! 16258: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
! 16259: $as_echo_n "(cached) " >&6
1.8 moko 16260: else
16261: ac_check_lib_save_LIBS=$LIBS
16262: LIBS="-lltdl $LIBS"
1.22 ! moko 16263: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 16264: /* end confdefs.h. */
16265:
1.22 ! moko 16266: /* Override any GCC internal prototype to avoid an error.
! 16267: Use char because int might match the return type of a GCC
! 16268: builtin and then its argument prototype would still apply. */
1.8 moko 16269: #ifdef __cplusplus
16270: extern "C"
16271: #endif
16272: char lt_dladvise_preload ();
16273: int
16274: main ()
16275: {
1.22 ! moko 16276: return lt_dladvise_preload ();
1.8 moko 16277: ;
16278: return 0;
16279: }
16280: _ACEOF
1.22 ! moko 16281: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 16282: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16283: else
1.22 ! moko 16284: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.8 moko 16285: fi
1.22 ! moko 16286: rm -f core conftest.err conftest.$ac_objext \
! 16287: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16288: LIBS=$ac_check_lib_save_LIBS
16289: fi
1.22 ! moko 16290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
! 16291: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
! 16292: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.8 moko 16293: with_included_ltdl=no
16294: else
16295: with_included_ltdl=yes
16296: fi
16297:
16298: else
16299: with_included_ltdl=yes
16300: fi
16301:
16302: else
16303: with_included_ltdl=yes
16304: fi
16305:
16306:
16307: fi
16308:
16309:
16310:
16311:
1.22 ! moko 16312: # Check whether --with-ltdl_include was given.
! 16313: if test "${with_ltdl_include+set}" = set; then :
! 16314: withval=$with_ltdl_include;
! 16315: fi
1.8 moko 16316:
16317:
16318: if test -n "$with_ltdl_include"; then
16319: if test -f "$with_ltdl_include/ltdl.h"; then :
16320: else
1.22 ! moko 16321: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.8 moko 16322: fi
16323: else
16324: with_ltdl_include=no
16325: fi
16326:
16327:
1.22 ! moko 16328: # Check whether --with-ltdl_lib was given.
! 16329: if test "${with_ltdl_lib+set}" = set; then :
! 16330: withval=$with_ltdl_lib;
! 16331: fi
1.8 moko 16332:
16333:
16334: if test -n "$with_ltdl_lib"; then
16335: if test -f "$with_ltdl_lib/libltdl.la"; then :
16336: else
1.22 ! moko 16337: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.8 moko 16338: fi
16339: else
16340: with_ltdl_lib=no
16341: fi
16342:
16343: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16344: ,yes,no,no,)
16345: case $enable_ltdl_convenience in
1.22 ! moko 16346: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.8 moko 16347: "") enable_ltdl_convenience=yes
16348: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16349: esac
1.22 ! moko 16350: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.8 moko 16351: LTDLDEPS=$LIBLTDL
16352: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16353:
16354:
16355:
16356:
16357:
16358: # For backwards non-gettext consistent compatibility...
16359: INCLTDL="$LTDLINCL"
16360:
16361:
16362: ;;
16363: ,no,no,no,)
16364: # If the included ltdl is not to be used, then use the
16365: # preinstalled libltdl we found.
16366:
1.22 ! moko 16367: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.8 moko 16368:
16369: LIBLTDL=-lltdl
16370: LTDLDEPS=
16371: LTDLINCL=
16372: ;;
16373: ,no*,no,*)
1.22 ! moko 16374: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.8 moko 16375: ;;
16376: *) with_included_ltdl=no
16377: LIBLTDL="-L$with_ltdl_lib -lltdl"
16378: LTDLDEPS=
16379: LTDLINCL="-I$with_ltdl_include"
16380: ;;
16381: esac
16382: INCLTDL="$LTDLINCL"
16383:
16384: # Report our decision...
1.22 ! moko 16385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
! 16386: $as_echo_n "checking where to find libltdl headers... " >&6; }
! 16387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
! 16388: $as_echo "$LTDLINCL" >&6; }
! 16389: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
! 16390: $as_echo_n "checking where to find libltdl library... " >&6; }
! 16391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
! 16392: $as_echo "$LIBLTDL" >&6; }
1.8 moko 16393:
16394:
16395:
1.22 ! moko 16396: # Check whether --enable-ltdl-install was given.
! 16397: if test "${enable_ltdl_install+set}" = set; then :
! 16398: enableval=$enable_ltdl_install;
! 16399: fi
1.8 moko 16400:
16401:
16402: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16403: *yes*) ;;
16404: *) enable_ltdl_convenience=yes ;;
16405: esac
16406:
1.22 ! moko 16407: if test x"${enable_ltdl_install-no}" != xno; then
1.8 moko 16408: INSTALL_LTDL_TRUE=
16409: INSTALL_LTDL_FALSE='#'
16410: else
16411: INSTALL_LTDL_TRUE='#'
16412: INSTALL_LTDL_FALSE=
16413: fi
16414:
1.22 ! moko 16415: if test x"${enable_ltdl_convenience-no}" != xno; then
1.8 moko 16416: CONVENIENCE_LTDL_TRUE=
16417: CONVENIENCE_LTDL_FALSE='#'
16418: else
16419: CONVENIENCE_LTDL_TRUE='#'
16420: CONVENIENCE_LTDL_FALSE=
16421: fi
16422:
16423:
16424:
1.22 ! moko 16425: subdirs="$subdirs libltdl"
1.8 moko 16426:
16427:
16428:
16429:
16430: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16431: # the user used. This is so that ltdl.h can pick up the parent projects
16432: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16433: # definitions required by ltdl.c.
16434: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16435:
16436:
16437:
1.11 moko 16438: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
1.22 ! moko 16439: do :
! 16440: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 16441: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
! 16442: "
! 16443: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.11 moko 16444: cat >>confdefs.h <<_ACEOF
1.22 ! moko 16445: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.11 moko 16446: _ACEOF
16447:
16448: fi
16449:
16450: done
16451:
16452:
16453: for ac_func in closedir opendir readdir
1.22 ! moko 16454: do :
! 16455: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16456: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 16457: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.11 moko 16458: cat >>confdefs.h <<_ACEOF
1.22 ! moko 16459: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.11 moko 16460: _ACEOF
1.8 moko 16461:
1.10 moko 16462: else
1.8 moko 16463:
16464:
1.10 moko 16465: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.8 moko 16466:
1.10 moko 16467: fi
1.8 moko 16468: done
16469:
16470: for ac_func in strlcat strlcpy
1.22 ! moko 16471: do :
! 16472: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16473: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 16474: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.8 moko 16475: cat >>confdefs.h <<_ACEOF
1.22 ! moko 16476: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 16477: _ACEOF
16478:
16479: else
16480:
16481:
16482: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16483:
16484: fi
16485: done
16486:
16487:
16488:
16489: cat >>confdefs.h <<_ACEOF
16490: #define LT_LIBEXT "$libext"
16491: _ACEOF
16492:
16493:
16494: name=
16495: eval "lt_libprefix=\"$libname_spec\""
16496:
16497: cat >>confdefs.h <<_ACEOF
16498: #define LT_LIBPREFIX "$lt_libprefix"
16499: _ACEOF
16500:
16501:
16502: name=ltdl
16503: eval "LTDLOPEN=\"$libname_spec\""
16504:
16505:
16506:
16507:
16508:
16509:
16510:
16511:
16512: # Only expand once:
16513:
16514:
16515:
1.13 moko 16516:
1.22 ! moko 16517: for ac_header in stdio.h \
! 16518: stdlib.h \
! 16519: string.h \
! 16520: setjmp.h \
! 16521: ctype.h
1.8 moko 16522:
1.22 ! moko 16523: do :
! 16524: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 16525: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
! 16526: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.8 moko 16527: cat >>confdefs.h <<_ACEOF
1.22 ! moko 16528: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 16529: _ACEOF
16530:
16531: fi
16532:
16533: done
16534:
16535:
1.22 ! moko 16536: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
! 16537: if test "x$ac_cv_type_size_t" = xyes; then :
1.8 moko 16538:
16539: else
16540:
16541: cat >>confdefs.h <<_ACEOF
1.22 ! moko 16542: #define size_t unsigned int
1.8 moko 16543: _ACEOF
16544:
16545: fi
16546:
16547:
16548:
1.22 ! moko 16549: ac_config_files="$ac_config_files Makefile"
! 16550:
1.8 moko 16551: cat >confcache <<\_ACEOF
16552: # This file is a shell script that caches the results of configure
16553: # tests run on this system so they can be shared between configure
16554: # scripts and configure runs, see configure's option --config-cache.
16555: # It is not useful on other systems. If it contains results you don't
16556: # want to keep, you may remove or edit it.
16557: #
16558: # config.status only pays attention to the cache file if you give it
16559: # the --recheck option to rerun configure.
16560: #
16561: # `ac_cv_env_foo' variables (set or unset) will be overridden when
16562: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16563: # following values.
16564:
16565: _ACEOF
16566:
16567: # The following way of writing the cache mishandles newlines in values,
16568: # but we know of no workaround that is simple, portable, and efficient.
1.22 ! moko 16569: # So, we kill variables containing newlines.
1.8 moko 16570: # Ultrix sh set writes to stderr and can't be redirected directly,
16571: # and sets the high bit in the cache file unless we assign to the vars.
1.22 ! moko 16572: (
! 16573: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
! 16574: eval ac_val=\$$ac_var
! 16575: case $ac_val in #(
! 16576: *${as_nl}*)
! 16577: case $ac_var in #(
! 16578: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 16579: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
! 16580: esac
! 16581: case $ac_var in #(
! 16582: _ | IFS | as_nl) ;; #(
! 16583: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
! 16584: *) { eval $ac_var=; unset $ac_var;} ;;
! 16585: esac ;;
! 16586: esac
! 16587: done
! 16588:
1.8 moko 16589: (set) 2>&1 |
1.22 ! moko 16590: case $as_nl`(ac_space=' '; set) 2>&1` in #(
! 16591: *${as_nl}ac_space=\ *)
! 16592: # `set' does not quote correctly, so add quotes: double-quote
! 16593: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.8 moko 16594: sed -n \
16595: "s/'/'\\\\''/g;
16596: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.22 ! moko 16597: ;; #(
1.8 moko 16598: *)
16599: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.22 ! moko 16600: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.8 moko 16601: ;;
1.22 ! moko 16602: esac |
! 16603: sort
! 16604: ) |
1.8 moko 16605: sed '
1.22 ! moko 16606: /^ac_cv_env_/b end
1.8 moko 16607: t clear
1.22 ! moko 16608: :clear
1.8 moko 16609: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16610: t end
1.22 ! moko 16611: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 16612: :end' >>confcache
! 16613: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
! 16614: if test -w "$cache_file"; then
! 16615: if test "x$cache_file" != "x/dev/null"; then
! 16616: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
! 16617: $as_echo "$as_me: updating cache $cache_file" >&6;}
! 16618: if test ! -f "$cache_file" || test -h "$cache_file"; then
! 16619: cat confcache >"$cache_file"
! 16620: else
! 16621: case $cache_file in #(
! 16622: */* | ?:*)
! 16623: mv -f confcache "$cache_file"$$ &&
! 16624: mv -f "$cache_file"$$ "$cache_file" ;; #(
! 16625: *)
! 16626: mv -f confcache "$cache_file" ;;
! 16627: esac
! 16628: fi
! 16629: fi
1.8 moko 16630: else
1.22 ! moko 16631: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
! 16632: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.8 moko 16633: fi
16634: fi
16635: rm -f confcache
16636:
16637: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16638: # Let make expand exec_prefix.
16639: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16640:
16641: DEFS=-DHAVE_CONFIG_H
16642:
16643: ac_libobjs=
16644: ac_ltlibobjs=
1.22 ! moko 16645: U=
1.8 moko 16646: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16647: # 1. Remove the extension, and $U if already installed.
1.22 ! moko 16648: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
! 16649: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
! 16650: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
! 16651: # will be set to the directory where LIBOBJS objects are built.
! 16652: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 16653: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.8 moko 16654: done
16655: LIBOBJS=$ac_libobjs
16656:
16657: LTLIBOBJS=$ac_ltlibobjs
16658:
16659:
1.22 ! moko 16660: if test -n "$EXEEXT"; then
! 16661: am__EXEEXT_TRUE=
! 16662: am__EXEEXT_FALSE='#'
! 16663: else
! 16664: am__EXEEXT_TRUE='#'
! 16665: am__EXEEXT_FALSE=
! 16666: fi
! 16667:
1.8 moko 16668: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.22 ! moko 16669: as_fn_error $? "conditional \"AMDEP\" was never defined.
! 16670: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16671: fi
16672: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.22 ! moko 16673: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
! 16674: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16675: fi
16676: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.22 ! moko 16677: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
! 16678: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16679: fi
16680: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.22 ! moko 16681: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
! 16682: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16683: fi
16684: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.22 ! moko 16685: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
! 16686: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16687: fi
1.22 ! moko 16688: LT_CONFIG_H=config_auto.h
1.8 moko 16689:
16690: _ltdl_libobjs=
16691: _ltdl_ltlibobjs=
16692: if test -n "$_LT_LIBOBJS"; then
16693: # Remove the extension.
16694: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16695: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16696: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16697: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16698: done
16699: fi
16700: ltdl_LIBOBJS=$_ltdl_libobjs
16701:
16702: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16703:
16704:
16705:
1.22 ! moko 16706: : "${CONFIG_STATUS=./config.status}"
! 16707: ac_write_fail=0
1.8 moko 16708: ac_clean_files_save=$ac_clean_files
16709: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.22 ! moko 16710: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
! 16711: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 16712: as_write_fail=0
! 16713: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.8 moko 16714: #! $SHELL
16715: # Generated by $as_me.
16716: # Run this file to recreate the current configuration.
16717: # Compiler output produced by configure, useful for debugging
16718: # configure, is in config.log if it exists.
16719:
16720: debug=false
16721: ac_cs_recheck=false
16722: ac_cs_silent=false
1.22 ! moko 16723:
1.11 moko 16724: SHELL=\${CONFIG_SHELL-$SHELL}
1.22 ! moko 16725: export SHELL
! 16726: _ASEOF
! 16727: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
! 16728: ## -------------------- ##
! 16729: ## M4sh Initialization. ##
! 16730: ## -------------------- ##
1.10 moko 16731:
1.22 ! moko 16732: # Be more Bourne compatible
! 16733: DUALCASE=1; export DUALCASE # for MKS sh
! 16734: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.8 moko 16735: emulate sh
16736: NULLCMD=:
1.22 ! moko 16737: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.8 moko 16738: # is contrary to our usage. Disable this feature.
16739: alias -g '${1+"$@"}'='"$@"'
1.22 ! moko 16740: setopt NO_GLOB_SUBST
! 16741: else
! 16742: case `(set -o) 2>/dev/null` in #(
! 16743: *posix*) :
! 16744: set -o posix ;; #(
! 16745: *) :
! 16746: ;;
! 16747: esac
! 16748: fi
! 16749:
! 16750:
! 16751: as_nl='
! 16752: '
! 16753: export as_nl
! 16754: # Printing a long string crashes Solaris 7 /usr/bin/printf.
! 16755: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 16756: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
! 16757: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
! 16758: # Prefer a ksh shell builtin over an external printf program on Solaris,
! 16759: # but without wasting forks for bash or zsh.
! 16760: if test -z "$BASH_VERSION$ZSH_VERSION" \
! 16761: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
! 16762: as_echo='print -r --'
! 16763: as_echo_n='print -rn --'
! 16764: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
! 16765: as_echo='printf %s\n'
! 16766: as_echo_n='printf %s'
! 16767: else
! 16768: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
! 16769: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
! 16770: as_echo_n='/usr/ucb/echo -n'
! 16771: else
! 16772: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
! 16773: as_echo_n_body='eval
! 16774: arg=$1;
! 16775: case $arg in #(
! 16776: *"$as_nl"*)
! 16777: expr "X$arg" : "X\\(.*\\)$as_nl";
! 16778: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
! 16779: esac;
! 16780: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
! 16781: '
! 16782: export as_echo_n_body
! 16783: as_echo_n='sh -c $as_echo_n_body as_echo'
! 16784: fi
! 16785: export as_echo_body
! 16786: as_echo='sh -c $as_echo_body as_echo'
1.10 moko 16787: fi
16788:
1.22 ! moko 16789: # The user is always right.
! 16790: if test "${PATH_SEPARATOR+set}" != set; then
! 16791: PATH_SEPARATOR=:
! 16792: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
! 16793: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
! 16794: PATH_SEPARATOR=';'
! 16795: }
1.8 moko 16796: fi
16797:
16798:
1.22 ! moko 16799: # IFS
! 16800: # We need space, tab and new line, in precisely that order. Quoting is
! 16801: # there to prevent editors from complaining about space-tab.
! 16802: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 16803: # splitting by setting IFS to empty value.)
! 16804: IFS=" "" $as_nl"
! 16805:
! 16806: # Find who we are. Look in the path if we contain no directory separator.
! 16807: as_myself=
! 16808: case $0 in #((
! 16809: *[\\/]* ) as_myself=$0 ;;
! 16810: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 16811: for as_dir in $PATH
! 16812: do
! 16813: IFS=$as_save_IFS
! 16814: test -z "$as_dir" && as_dir=.
! 16815: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 16816: done
! 16817: IFS=$as_save_IFS
! 16818:
! 16819: ;;
! 16820: esac
! 16821: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 16822: # in which case we are not to be found in the path.
! 16823: if test "x$as_myself" = x; then
! 16824: as_myself=$0
! 16825: fi
! 16826: if test ! -f "$as_myself"; then
! 16827: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 16828: exit 1
! 16829: fi
! 16830:
! 16831: # Unset variables that we do not need and which cause bugs (e.g. in
! 16832: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
! 16833: # suppresses any "Segmentation fault" message there. '((' could
! 16834: # trigger a bug in pdksh 5.2.14.
! 16835: for as_var in BASH_ENV ENV MAIL MAILPATH
! 16836: do eval test x\${$as_var+set} = xset \
! 16837: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 16838: done
1.8 moko 16839: PS1='$ '
16840: PS2='> '
16841: PS4='+ '
16842:
16843: # NLS nuisances.
1.22 ! moko 16844: LC_ALL=C
! 16845: export LC_ALL
! 16846: LANGUAGE=C
! 16847: export LANGUAGE
! 16848:
! 16849: # CDPATH.
! 16850: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
! 16851:
! 16852:
! 16853: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 16854: # ----------------------------------------
! 16855: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
! 16856: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
! 16857: # script with STATUS, using 1 if that was 0.
! 16858: as_fn_error ()
! 16859: {
! 16860: as_status=$1; test $as_status -eq 0 && as_status=1
! 16861: if test "$4"; then
! 16862: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 16863: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
! 16864: fi
! 16865: $as_echo "$as_me: error: $2" >&2
! 16866: as_fn_exit $as_status
! 16867: } # as_fn_error
! 16868:
! 16869:
! 16870: # as_fn_set_status STATUS
! 16871: # -----------------------
! 16872: # Set $? to STATUS, without forking.
! 16873: as_fn_set_status ()
! 16874: {
! 16875: return $1
! 16876: } # as_fn_set_status
! 16877:
! 16878: # as_fn_exit STATUS
! 16879: # -----------------
! 16880: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
! 16881: as_fn_exit ()
! 16882: {
! 16883: set +e
! 16884: as_fn_set_status $1
! 16885: exit $1
! 16886: } # as_fn_exit
! 16887:
! 16888: # as_fn_unset VAR
! 16889: # ---------------
! 16890: # Portably unset VAR.
! 16891: as_fn_unset ()
! 16892: {
! 16893: { eval $1=; unset $1;}
! 16894: }
! 16895: as_unset=as_fn_unset
! 16896: # as_fn_append VAR VALUE
! 16897: # ----------------------
! 16898: # Append the text in VALUE to the end of the definition contained in VAR. Take
! 16899: # advantage of any shell optimizations that allow amortized linear growth over
! 16900: # repeated appends, instead of the typical quadratic growth present in naive
! 16901: # implementations.
! 16902: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
! 16903: eval 'as_fn_append ()
! 16904: {
! 16905: eval $1+=\$2
! 16906: }'
! 16907: else
! 16908: as_fn_append ()
! 16909: {
! 16910: eval $1=\$$1\$2
! 16911: }
! 16912: fi # as_fn_append
! 16913:
! 16914: # as_fn_arith ARG...
! 16915: # ------------------
! 16916: # Perform arithmetic evaluation on the ARGs, and store the result in the
! 16917: # global $as_val. Take advantage of shells that can avoid forks. The arguments
! 16918: # must be portable across $(()) and expr.
! 16919: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
! 16920: eval 'as_fn_arith ()
! 16921: {
! 16922: as_val=$(( $* ))
! 16923: }'
! 16924: else
! 16925: as_fn_arith ()
! 16926: {
! 16927: as_val=`expr "$@" || test $? -eq 1`
! 16928: }
! 16929: fi # as_fn_arith
! 16930:
1.8 moko 16931:
1.22 ! moko 16932: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 16933: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.8 moko 16934: as_expr=expr
16935: else
16936: as_expr=false
16937: fi
16938:
1.22 ! moko 16939: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.8 moko 16940: as_basename=basename
16941: else
16942: as_basename=false
16943: fi
16944:
1.22 ! moko 16945: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 16946: as_dirname=dirname
! 16947: else
! 16948: as_dirname=false
! 16949: fi
1.8 moko 16950:
1.22 ! moko 16951: as_me=`$as_basename -- "$0" ||
1.8 moko 16952: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16953: X"$0" : 'X\(//\)$' \| \
1.22 ! moko 16954: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 16955: $as_echo X/"$0" |
! 16956: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 16957: s//\1/
! 16958: q
! 16959: }
! 16960: /^X\/\(\/\/\)$/{
! 16961: s//\1/
! 16962: q
! 16963: }
! 16964: /^X\/\(\/\).*/{
! 16965: s//\1/
! 16966: q
! 16967: }
! 16968: s/.*/./; q'`
1.11 moko 16969:
1.8 moko 16970: # Avoid depending upon Character Ranges.
16971: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16972: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16973: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16974: as_cr_digits='0123456789'
16975: as_cr_alnum=$as_cr_Letters$as_cr_digits
16976:
1.22 ! moko 16977: ECHO_C= ECHO_N= ECHO_T=
! 16978: case `echo -n x` in #(((((
! 16979: -n*)
! 16980: case `echo 'xy\c'` in
! 16981: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 16982: xy) ECHO_C='\c';;
! 16983: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
! 16984: ECHO_T=' ';;
! 16985: esac;;
! 16986: *)
! 16987: ECHO_N='-n';;
1.8 moko 16988: esac
16989:
1.22 ! moko 16990: rm -f conf$$ conf$$.exe conf$$.file
! 16991: if test -d conf$$.dir; then
! 16992: rm -f conf$$.dir/conf$$.file
1.8 moko 16993: else
1.22 ! moko 16994: rm -f conf$$.dir
! 16995: mkdir conf$$.dir 2>/dev/null
1.8 moko 16996: fi
1.22 ! moko 16997: if (echo >conf$$.file) 2>/dev/null; then
! 16998: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 16999: as_ln_s='ln -s'
! 17000: # ... but there are two gotchas:
! 17001: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 17002: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 17003: # In both cases, we have to default to `cp -p'.
! 17004: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 17005: as_ln_s='cp -p'
! 17006: elif ln conf$$.file conf$$ 2>/dev/null; then
! 17007: as_ln_s=ln
! 17008: else
1.11 moko 17009: as_ln_s='cp -p'
1.8 moko 17010: fi
17011: else
17012: as_ln_s='cp -p'
17013: fi
1.22 ! moko 17014: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 17015: rmdir conf$$.dir 2>/dev/null
! 17016:
! 17017:
! 17018: # as_fn_mkdir_p
! 17019: # -------------
! 17020: # Create "$as_dir" as a directory, including parents if necessary.
! 17021: as_fn_mkdir_p ()
! 17022: {
! 17023:
! 17024: case $as_dir in #(
! 17025: -*) as_dir=./$as_dir;;
! 17026: esac
! 17027: test -d "$as_dir" || eval $as_mkdir_p || {
! 17028: as_dirs=
! 17029: while :; do
! 17030: case $as_dir in #(
! 17031: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
! 17032: *) as_qdir=$as_dir;;
! 17033: esac
! 17034: as_dirs="'$as_qdir' $as_dirs"
! 17035: as_dir=`$as_dirname -- "$as_dir" ||
! 17036: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 17037: X"$as_dir" : 'X\(//\)[^/]' \| \
! 17038: X"$as_dir" : 'X\(//\)$' \| \
! 17039: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 17040: $as_echo X"$as_dir" |
! 17041: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 17042: s//\1/
! 17043: q
! 17044: }
! 17045: /^X\(\/\/\)[^/].*/{
! 17046: s//\1/
! 17047: q
! 17048: }
! 17049: /^X\(\/\/\)$/{
! 17050: s//\1/
! 17051: q
! 17052: }
! 17053: /^X\(\/\).*/{
! 17054: s//\1/
! 17055: q
! 17056: }
! 17057: s/.*/./; q'`
! 17058: test -d "$as_dir" && break
! 17059: done
! 17060: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 17061: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
! 17062:
1.8 moko 17063:
1.22 ! moko 17064: } # as_fn_mkdir_p
1.8 moko 17065: if mkdir -p . 2>/dev/null; then
1.22 ! moko 17066: as_mkdir_p='mkdir -p "$as_dir"'
1.8 moko 17067: else
17068: test -d ./-p && rmdir ./-p
17069: as_mkdir_p=false
17070: fi
17071:
1.22 ! moko 17072: if test -x / >/dev/null 2>&1; then
! 17073: as_test_x='test -x'
! 17074: else
! 17075: if ls -dL / >/dev/null 2>&1; then
! 17076: as_ls_L_option=L
! 17077: else
! 17078: as_ls_L_option=
! 17079: fi
! 17080: as_test_x='
! 17081: eval sh -c '\''
! 17082: if test -d "$1"; then
! 17083: test -d "$1/.";
! 17084: else
! 17085: case $1 in #(
! 17086: -*)set "./$1";;
! 17087: esac;
! 17088: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
! 17089: ???[sx]*):;;*)false;;esac;fi
! 17090: '\'' sh
! 17091: '
! 17092: fi
! 17093: as_executable_p=$as_test_x
1.8 moko 17094:
17095: # Sed expression to map a string onto a valid CPP name.
17096: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17097:
17098: # Sed expression to map a string onto a valid variable name.
17099: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17100:
17101:
17102: exec 6>&1
1.22 ! moko 17103: ## ----------------------------------- ##
! 17104: ## Main body of $CONFIG_STATUS script. ##
! 17105: ## ----------------------------------- ##
! 17106: _ASEOF
! 17107: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.8 moko 17108:
1.22 ! moko 17109: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17110: # Save the log message, to keep $0 and so on meaningful, and to
1.8 moko 17111: # report actual input values of CONFIG_FILES etc. instead of their
1.22 ! moko 17112: # values after options handling.
! 17113: ac_log="
1.13 moko 17114: This file was extended by parser3sqlite.C $as_me 10.2, which was
1.22 ! moko 17115: generated by GNU Autoconf 2.68. Invocation command line was
1.8 moko 17116:
17117: CONFIG_FILES = $CONFIG_FILES
17118: CONFIG_HEADERS = $CONFIG_HEADERS
17119: CONFIG_LINKS = $CONFIG_LINKS
17120: CONFIG_COMMANDS = $CONFIG_COMMANDS
17121: $ $0 $@
17122:
1.22 ! moko 17123: on `(hostname || uname -n) 2>/dev/null | sed 1q`
! 17124: "
! 17125:
1.8 moko 17126: _ACEOF
17127:
1.22 ! moko 17128: case $ac_config_files in *"
! 17129: "*) set x $ac_config_files; shift; ac_config_files=$*;;
! 17130: esac
1.8 moko 17131:
1.22 ! moko 17132: case $ac_config_headers in *"
! 17133: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
! 17134: esac
1.8 moko 17135:
17136:
1.22 ! moko 17137: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17138: # Files that config.status was made for.
! 17139: config_files="$ac_config_files"
! 17140: config_headers="$ac_config_headers"
! 17141: config_commands="$ac_config_commands"
1.8 moko 17142:
1.22 ! moko 17143: _ACEOF
1.8 moko 17144:
1.22 ! moko 17145: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.8 moko 17146: ac_cs_usage="\
1.22 ! moko 17147: \`$as_me' instantiates files and other configuration actions
! 17148: from templates according to the current configuration. Unless the files
! 17149: and actions are specified as TAGs, all are instantiated by default.
1.8 moko 17150:
1.22 ! moko 17151: Usage: $0 [OPTION]... [TAG]...
1.8 moko 17152:
17153: -h, --help print this help, then exit
1.22 ! moko 17154: -V, --version print version number and configuration settings, then exit
! 17155: --config print configuration, then exit
! 17156: -q, --quiet, --silent
! 17157: do not print progress messages
1.8 moko 17158: -d, --debug don't remove temporary files
17159: --recheck update $as_me by reconfiguring in the same conditions
1.22 ! moko 17160: --file=FILE[:TEMPLATE]
! 17161: instantiate the configuration file FILE
! 17162: --header=FILE[:TEMPLATE]
! 17163: instantiate the configuration header FILE
1.8 moko 17164:
17165: Configuration files:
17166: $config_files
17167:
17168: Configuration headers:
17169: $config_headers
17170:
17171: Configuration commands:
17172: $config_commands
17173:
1.22 ! moko 17174: Report bugs to the package provider."
! 17175:
1.11 moko 17176: _ACEOF
1.22 ! moko 17177: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17178: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.8 moko 17179: ac_cs_version="\\
1.13 moko 17180: parser3sqlite.C config.status 10.2
1.22 ! moko 17181: configured by $0, generated by GNU Autoconf 2.68,
! 17182: with options \\"\$ac_cs_config\\"
1.8 moko 17183:
1.22 ! moko 17184: Copyright (C) 2010 Free Software Foundation, Inc.
1.8 moko 17185: This config.status script is free software; the Free Software Foundation
17186: gives unlimited permission to copy, distribute and modify it."
1.22 ! moko 17187:
! 17188: ac_pwd='$ac_pwd'
! 17189: srcdir='$srcdir'
! 17190: INSTALL='$INSTALL'
! 17191: MKDIR_P='$MKDIR_P'
! 17192: AWK='$AWK'
! 17193: test -n "\$AWK" || AWK=awk
1.8 moko 17194: _ACEOF
17195:
1.22 ! moko 17196: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17197: # The default lists apply if the user does not specify any file.
1.8 moko 17198: ac_need_defaults=:
17199: while test $# != 0
17200: do
17201: case $1 in
1.22 ! moko 17202: --*=?*)
! 17203: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 17204: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
! 17205: ac_shift=:
! 17206: ;;
! 17207: --*=)
! 17208: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 17209: ac_optarg=
1.8 moko 17210: ac_shift=:
17211: ;;
1.22 ! moko 17212: *)
1.8 moko 17213: ac_option=$1
17214: ac_optarg=$2
17215: ac_shift=shift
17216: ;;
17217: esac
17218:
17219: case $ac_option in
17220: # Handling of the options.
17221: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17222: ac_cs_recheck=: ;;
1.22 ! moko 17223: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
! 17224: $as_echo "$ac_cs_version"; exit ;;
! 17225: --config | --confi | --conf | --con | --co | --c )
! 17226: $as_echo "$ac_cs_config"; exit ;;
! 17227: --debug | --debu | --deb | --de | --d | -d )
1.8 moko 17228: debug=: ;;
17229: --file | --fil | --fi | --f )
17230: $ac_shift
1.22 ! moko 17231: case $ac_optarg in
! 17232: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 17233: '') as_fn_error $? "missing file argument" ;;
! 17234: esac
! 17235: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.8 moko 17236: ac_need_defaults=false;;
17237: --header | --heade | --head | --hea )
17238: $ac_shift
1.22 ! moko 17239: case $ac_optarg in
! 17240: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 17241: esac
! 17242: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.8 moko 17243: ac_need_defaults=false;;
1.22 ! moko 17244: --he | --h)
! 17245: # Conflict between --help and --header
! 17246: as_fn_error $? "ambiguous option: \`$1'
! 17247: Try \`$0 --help' for more information.";;
! 17248: --help | --hel | -h )
! 17249: $as_echo "$ac_cs_usage"; exit ;;
1.8 moko 17250: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17251: | -silent | --silent | --silen | --sile | --sil | --si | --s)
17252: ac_cs_silent=: ;;
17253:
17254: # This is an error.
1.22 ! moko 17255: -*) as_fn_error $? "unrecognized option: \`$1'
! 17256: Try \`$0 --help' for more information." ;;
1.8 moko 17257:
1.22 ! moko 17258: *) as_fn_append ac_config_targets " $1"
! 17259: ac_need_defaults=false ;;
1.8 moko 17260:
17261: esac
17262: shift
17263: done
17264:
17265: ac_configure_extra_args=
17266:
17267: if $ac_cs_silent; then
17268: exec 6>/dev/null
17269: ac_configure_extra_args="$ac_configure_extra_args --silent"
1.10 moko 17270: fi
17271:
17272: _ACEOF
1.22 ! moko 17273: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.10 moko 17274: if \$ac_cs_recheck; then
1.22 ! moko 17275: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
! 17276: shift
! 17277: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
! 17278: CONFIG_SHELL='$SHELL'
! 17279: export CONFIG_SHELL
! 17280: exec "\$@"
1.10 moko 17281: fi
17282:
17283: _ACEOF
1.22 ! moko 17284: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17285: exec 5>>config.log
! 17286: {
! 17287: echo
! 17288: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 17289: ## Running $as_me. ##
! 17290: _ASBOX
! 17291: $as_echo "$ac_log"
! 17292: } >&5
! 17293:
! 17294: _ACEOF
! 17295: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.8 moko 17296: #
1.22 ! moko 17297: # INIT-COMMANDS
1.8 moko 17298: #
17299: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17300:
17301:
17302: # The HP-UX ksh and POSIX shell print the target directory to stdout
17303: # if CDPATH is set.
17304: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17305:
17306: sed_quote_subst='$sed_quote_subst'
17307: double_quote_subst='$double_quote_subst'
17308: delay_variable_subst='$delay_variable_subst'
17309: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17310: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.20 moko 17311: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.13 moko 17312: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17313: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17314: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.8 moko 17315: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17316: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17317: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17318: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17319: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17320: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17321: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17322: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17323: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17324: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17325: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17326: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17327: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17328: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17329: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17330: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17331: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17332: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17333: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17334: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17335: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17336: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17337: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17338: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17339: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17340: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17341: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17342: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17343: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17344: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17345: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17346: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17347: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17348: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17349: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17350: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17351: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17352: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17353: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17354: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17355: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17356: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17357: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17358: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17359: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17360: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17361: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17362: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17363: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17364: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17365: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17366: 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"`'
17367: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17368: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17369: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17370: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17371: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17372: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17373: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17374: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17375: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17376: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17377: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17378: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17379: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17380: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17381: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17382: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17383: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17384: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17385: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17386: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17387: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17388: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17389: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17390: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17391: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17392: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17393: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17394: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17395: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17396: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17397: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17398: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17399: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17400: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17401: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17402: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17403: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17404: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17405: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17406: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17407: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17408: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17409: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17410: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17411: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17412: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17413: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17414: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17415: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17416: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17417: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17418: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17419: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17420: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17421: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17422: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17423: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17424: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17425: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17426: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17427: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17428: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17429: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17430: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17431: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17432: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17433: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17434: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17435: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17436: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17437: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17438: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17439: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17440: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17441: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17442: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17443: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17444: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17445: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17446: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17447: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17448: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17449: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17450: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17451: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17452: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17453: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17454: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17455: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17456: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17457: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17458: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17459: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17460: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17461: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17462: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17463: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17464: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17465: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17466: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17467: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17468: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17469: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17470: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17471: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17472: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17473: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17474: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17475: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17476: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17477: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17478: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17479: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17480: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17481: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17482: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17483: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17484: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17485: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17486: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17487: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17488: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17489: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17490: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17491: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17492: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17493: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17494:
17495: LTCC='$LTCC'
17496: LTCFLAGS='$LTCFLAGS'
17497: compiler='$compiler_DEFAULT'
17498:
17499: # A function that is used when there is no print builtin or printf.
17500: func_fallback_echo ()
17501: {
17502: eval 'cat <<_LTECHO_EOF
17503: \$1
17504: _LTECHO_EOF'
17505: }
17506:
17507: # Quote evaled strings.
1.13 moko 17508: for var in AS \
17509: DLLTOOL \
17510: OBJDUMP \
17511: SHELL \
1.8 moko 17512: ECHO \
17513: PATH_SEPARATOR \
17514: SED \
17515: GREP \
17516: EGREP \
17517: FGREP \
17518: LD \
17519: NM \
17520: LN_S \
17521: lt_SP2NL \
17522: lt_NL2SP \
17523: reload_flag \
17524: deplibs_check_method \
17525: file_magic_cmd \
17526: file_magic_glob \
17527: want_nocaseglob \
17528: sharedlib_from_linklib_cmd \
17529: AR \
17530: AR_FLAGS \
17531: archiver_list_spec \
17532: STRIP \
17533: RANLIB \
17534: CC \
17535: CFLAGS \
17536: compiler \
17537: lt_cv_sys_global_symbol_pipe \
17538: lt_cv_sys_global_symbol_to_cdecl \
17539: lt_cv_sys_global_symbol_to_c_name_address \
17540: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17541: nm_file_list_spec \
17542: lt_prog_compiler_no_builtin_flag \
17543: lt_prog_compiler_pic \
17544: lt_prog_compiler_wl \
17545: lt_prog_compiler_static \
17546: lt_cv_prog_compiler_c_o \
17547: need_locks \
17548: MANIFEST_TOOL \
17549: DSYMUTIL \
17550: NMEDIT \
17551: LIPO \
17552: OTOOL \
17553: OTOOL64 \
17554: shrext_cmds \
17555: export_dynamic_flag_spec \
17556: whole_archive_flag_spec \
17557: compiler_needs_object \
17558: with_gnu_ld \
17559: allow_undefined_flag \
17560: no_undefined_flag \
17561: hardcode_libdir_flag_spec \
17562: hardcode_libdir_separator \
17563: exclude_expsyms \
17564: include_expsyms \
17565: file_list_spec \
17566: variables_saved_for_relink \
17567: libname_spec \
17568: library_names_spec \
17569: soname_spec \
17570: install_override_mode \
17571: finish_eval \
17572: old_striplib \
17573: striplib \
17574: compiler_lib_search_dirs \
17575: predep_objects \
17576: postdep_objects \
17577: predeps \
17578: postdeps \
17579: compiler_lib_search_path \
17580: LD_CXX \
17581: reload_flag_CXX \
17582: compiler_CXX \
17583: lt_prog_compiler_no_builtin_flag_CXX \
17584: lt_prog_compiler_pic_CXX \
17585: lt_prog_compiler_wl_CXX \
17586: lt_prog_compiler_static_CXX \
17587: lt_cv_prog_compiler_c_o_CXX \
17588: export_dynamic_flag_spec_CXX \
17589: whole_archive_flag_spec_CXX \
17590: compiler_needs_object_CXX \
17591: with_gnu_ld_CXX \
17592: allow_undefined_flag_CXX \
17593: no_undefined_flag_CXX \
17594: hardcode_libdir_flag_spec_CXX \
17595: hardcode_libdir_separator_CXX \
17596: exclude_expsyms_CXX \
17597: include_expsyms_CXX \
17598: file_list_spec_CXX \
17599: compiler_lib_search_dirs_CXX \
17600: predep_objects_CXX \
17601: postdep_objects_CXX \
17602: predeps_CXX \
17603: postdeps_CXX \
17604: compiler_lib_search_path_CXX; do
17605: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17606: *[\\\\\\\`\\"\\\$]*)
17607: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17608: ;;
17609: *)
17610: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17611: ;;
17612: esac
17613: done
17614:
17615: # Double-quote double-evaled strings.
17616: for var in reload_cmds \
17617: old_postinstall_cmds \
17618: old_postuninstall_cmds \
17619: old_archive_cmds \
17620: extract_expsyms_cmds \
17621: old_archive_from_new_cmds \
17622: old_archive_from_expsyms_cmds \
17623: archive_cmds \
17624: archive_expsym_cmds \
17625: module_cmds \
17626: module_expsym_cmds \
17627: export_symbols_cmds \
17628: prelink_cmds \
17629: postlink_cmds \
17630: postinstall_cmds \
17631: postuninstall_cmds \
17632: finish_cmds \
17633: sys_lib_search_path_spec \
17634: sys_lib_dlsearch_path_spec \
17635: reload_cmds_CXX \
17636: old_archive_cmds_CXX \
17637: old_archive_from_new_cmds_CXX \
17638: old_archive_from_expsyms_cmds_CXX \
17639: archive_cmds_CXX \
17640: archive_expsym_cmds_CXX \
17641: module_cmds_CXX \
17642: module_expsym_cmds_CXX \
17643: export_symbols_cmds_CXX \
17644: prelink_cmds_CXX \
17645: postlink_cmds_CXX; do
17646: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17647: *[\\\\\\\`\\"\\\$]*)
17648: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17649: ;;
17650: *)
17651: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17652: ;;
17653: esac
17654: done
17655:
17656: ac_aux_dir='$ac_aux_dir'
17657: xsi_shell='$xsi_shell'
17658: lt_shell_append='$lt_shell_append'
17659:
17660: # See if we are running on zsh, and set the options which allow our
17661: # commands through without removal of \ escapes INIT.
17662: if test -n "\${ZSH_VERSION+set}" ; then
17663: setopt NO_GLOB_SUBST
17664: fi
17665:
17666:
17667: PACKAGE='$PACKAGE'
17668: VERSION='$VERSION'
17669: TIMESTAMP='$TIMESTAMP'
17670: RM='$RM'
17671: ofile='$ofile'
17672:
17673:
17674:
17675:
17676:
17677:
17678: _ACEOF
17679:
1.22 ! moko 17680: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.8 moko 17681:
1.22 ! moko 17682: # Handling of arguments.
1.8 moko 17683: for ac_config_target in $ac_config_targets
17684: do
1.22 ! moko 17685: case $ac_config_target in
! 17686: "config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
! 17687: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
! 17688: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
! 17689: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 17690:
! 17691: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.8 moko 17692: esac
17693: done
17694:
1.22 ! moko 17695:
1.8 moko 17696: # If the user did not use the arguments to specify the items to instantiate,
17697: # then the envvar interface is used. Set only those that are not.
17698: # We use the long form for the default assignment because of an extremely
17699: # bizarre bug on SunOS 4.1.3.
17700: if $ac_need_defaults; then
17701: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17702: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17703: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17704: fi
17705:
17706: # Have a temporary directory for convenience. Make it in the build tree
1.22 ! moko 17707: # simply because there is no reason against having it here, and in addition,
1.8 moko 17708: # creating and moving files from /tmp can sometimes cause problems.
1.22 ! moko 17709: # Hook for its removal unless debugging.
! 17710: # Note that there is a small window in which the directory will not be cleaned:
! 17711: # after its creation but before its name has been assigned to `$tmp'.
1.8 moko 17712: $debug ||
17713: {
1.22 ! moko 17714: tmp= ac_tmp=
! 17715: trap 'exit_status=$?
! 17716: : "${ac_tmp:=$tmp}"
! 17717: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
! 17718: ' 0
! 17719: trap 'as_fn_exit 1' 1 2 13 15
1.8 moko 17720: }
17721: # Create a (secure) tmp directory for tmp files.
17722:
17723: {
1.22 ! moko 17724: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
! 17725: test -d "$tmp"
1.8 moko 17726: } ||
17727: {
1.22 ! moko 17728: tmp=./conf$$-$RANDOM
! 17729: (umask 077 && mkdir "$tmp")
! 17730: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
! 17731: ac_tmp=$tmp
! 17732:
! 17733: # Set up the scripts for CONFIG_FILES section.
! 17734: # No need to generate them if there are no CONFIG_FILES.
! 17735: # This happens for instance with `./config.status config.h'.
! 17736: if test -n "$CONFIG_FILES"; then
! 17737:
! 17738:
! 17739: ac_cr=`echo X | tr X '\015'`
! 17740: # On cygwin, bash can eat \r inside `` if the user requested igncr.
! 17741: # But we know of no other shell where ac_cr would be empty at this
! 17742: # point, so we can use a bashism as a fallback.
! 17743: if test "x$ac_cr" = x; then
! 17744: eval ac_cr=\$\'\\r\'
! 17745: fi
! 17746: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
! 17747: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
! 17748: ac_cs_awk_cr='\\r'
! 17749: else
! 17750: ac_cs_awk_cr=$ac_cr
! 17751: fi
! 17752:
! 17753: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
! 17754: _ACEOF
! 17755:
! 17756:
! 17757: {
! 17758: echo "cat >conf$$subs.awk <<_ACEOF" &&
! 17759: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
! 17760: echo "_ACEOF"
! 17761: } >conf$$subs.sh ||
! 17762: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 17763: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
! 17764: ac_delim='%!_!# '
! 17765: for ac_last_try in false false false false false :; do
! 17766: . ./conf$$subs.sh ||
! 17767: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 17768:
! 17769: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
! 17770: if test $ac_delim_n = $ac_delim_num; then
! 17771: break
! 17772: elif $ac_last_try; then
! 17773: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 17774: else
! 17775: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
! 17776: fi
! 17777: done
! 17778: rm -f conf$$subs.sh
! 17779:
! 17780: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17781: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
! 17782: _ACEOF
! 17783: sed -n '
! 17784: h
! 17785: s/^/S["/; s/!.*/"]=/
! 17786: p
! 17787: g
! 17788: s/^[^!]*!//
! 17789: :repl
! 17790: t repl
! 17791: s/'"$ac_delim"'$//
! 17792: t delim
! 17793: :nl
! 17794: h
! 17795: s/\(.\{148\}\)..*/\1/
! 17796: t more1
! 17797: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
! 17798: p
! 17799: n
! 17800: b repl
! 17801: :more1
! 17802: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
! 17803: p
! 17804: g
! 17805: s/.\{148\}//
! 17806: t nl
! 17807: :delim
! 17808: h
! 17809: s/\(.\{148\}\)..*/\1/
! 17810: t more2
! 17811: s/["\\]/\\&/g; s/^/"/; s/$/"/
! 17812: p
! 17813: b
! 17814: :more2
! 17815: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
! 17816: p
! 17817: g
! 17818: s/.\{148\}//
! 17819: t delim
! 17820: ' <conf$$subs.awk | sed '
! 17821: /^[^""]/{
! 17822: N
! 17823: s/\n//
! 17824: }
! 17825: ' >>$CONFIG_STATUS || ac_write_fail=1
! 17826: rm -f conf$$subs.awk
! 17827: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17828: _ACAWK
! 17829: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
! 17830: for (key in S) S_is_set[key] = 1
! 17831: FS = ""
! 17832:
! 17833: }
1.8 moko 17834: {
1.22 ! moko 17835: line = $ 0
! 17836: nfields = split(line, field, "@")
! 17837: substed = 0
! 17838: len = length(field[1])
! 17839: for (i = 2; i < nfields; i++) {
! 17840: key = field[i]
! 17841: keylen = length(key)
! 17842: if (S_is_set[key]) {
! 17843: value = S[key]
! 17844: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
! 17845: len += length(value) + length(field[++i])
! 17846: substed = 1
! 17847: } else
! 17848: len += 1 + keylen
! 17849: }
! 17850:
! 17851: print line
1.8 moko 17852: }
17853:
1.22 ! moko 17854: _ACAWK
! 17855: _ACEOF
! 17856: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17857: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
! 17858: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
! 17859: else
! 17860: cat
! 17861: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
! 17862: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.8 moko 17863: _ACEOF
17864:
1.22 ! moko 17865: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
! 17866: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
! 17867: # trailing colons and then remove the whole line if VPATH becomes empty
! 17868: # (actually we leave an empty line to preserve line numbers).
! 17869: if test "x$srcdir" = x.; then
! 17870: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
! 17871: h
! 17872: s///
! 17873: s/^/:/
! 17874: s/[ ]*$/:/
! 17875: s/:\$(srcdir):/:/g
! 17876: s/:\${srcdir}:/:/g
! 17877: s/:@srcdir@:/:/g
! 17878: s/^:*//
! 17879: s/:*$//
! 17880: x
! 17881: s/\(=[ ]*\).*/\1/
! 17882: G
! 17883: s/\n//
! 17884: s/^[^=]*=[ ]*$//
! 17885: }'
! 17886: fi
1.8 moko 17887:
1.22 ! moko 17888: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17889: fi # test -n "$CONFIG_FILES"
1.8 moko 17890:
1.22 ! moko 17891: # Set up the scripts for CONFIG_HEADERS section.
! 17892: # No need to generate them if there are no CONFIG_HEADERS.
! 17893: # This happens for instance with `./config.status Makefile'.
! 17894: if test -n "$CONFIG_HEADERS"; then
! 17895: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
! 17896: BEGIN {
! 17897: _ACEOF
! 17898:
! 17899: # Transform confdefs.h into an awk script `defines.awk', embedded as
! 17900: # here-document in config.status, that substitutes the proper values into
! 17901: # config.h.in to produce config.h.
! 17902:
! 17903: # Create a delimiter string that does not exist in confdefs.h, to ease
! 17904: # handling of long lines.
! 17905: ac_delim='%!_!# '
! 17906: for ac_last_try in false false :; do
! 17907: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
! 17908: if test -z "$ac_tt"; then
! 17909: break
! 17910: elif $ac_last_try; then
! 17911: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
! 17912: else
! 17913: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.8 moko 17914: fi
1.22 ! moko 17915: done
1.8 moko 17916:
1.22 ! moko 17917: # For the awk script, D is an array of macro values keyed by name,
! 17918: # likewise P contains macro parameters if any. Preserve backslash
! 17919: # newline sequences.
! 17920:
! 17921: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
! 17922: sed -n '
! 17923: s/.\{148\}/&'"$ac_delim"'/g
! 17924: t rset
! 17925: :rset
! 17926: s/^[ ]*#[ ]*define[ ][ ]*/ /
! 17927: t def
! 17928: d
! 17929: :def
! 17930: s/\\$//
! 17931: t bsnl
! 17932: s/["\\]/\\&/g
! 17933: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
! 17934: D["\1"]=" \3"/p
! 17935: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
! 17936: d
! 17937: :bsnl
! 17938: s/["\\]/\\&/g
! 17939: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
! 17940: D["\1"]=" \3\\\\\\n"\\/p
! 17941: t cont
! 17942: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
! 17943: t cont
! 17944: d
! 17945: :cont
! 17946: n
! 17947: s/.\{148\}/&'"$ac_delim"'/g
! 17948: t clear
! 17949: :clear
! 17950: s/\\$//
! 17951: t bsnlc
! 17952: s/["\\]/\\&/g; s/^/"/; s/$/"/p
! 17953: d
! 17954: :bsnlc
! 17955: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
! 17956: b cont
! 17957: ' <confdefs.h | sed '
! 17958: s/'"$ac_delim"'/"\\\
! 17959: "/g' >>$CONFIG_STATUS || ac_write_fail=1
! 17960:
! 17961: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17962: for (key in D) D_is_set[key] = 1
! 17963: FS = ""
! 17964: }
! 17965: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
! 17966: line = \$ 0
! 17967: split(line, arg, " ")
! 17968: if (arg[1] == "#") {
! 17969: defundef = arg[2]
! 17970: mac1 = arg[3]
! 17971: } else {
! 17972: defundef = substr(arg[1], 2)
! 17973: mac1 = arg[2]
! 17974: }
! 17975: split(mac1, mac2, "(") #)
! 17976: macro = mac2[1]
! 17977: prefix = substr(line, 1, index(line, defundef) - 1)
! 17978: if (D_is_set[macro]) {
! 17979: # Preserve the white space surrounding the "#".
! 17980: print prefix "define", macro P[macro] D[macro]
! 17981: next
! 17982: } else {
! 17983: # Replace #undef with comments. This is necessary, for example,
! 17984: # in the case of _POSIX_SOURCE, which is predefined and required
! 17985: # on some systems where configure will not decide to define it.
! 17986: if (defundef == "undef") {
! 17987: print "/*", prefix defundef, macro, "*/"
! 17988: next
! 17989: }
! 17990: }
! 17991: }
! 17992: { print }
! 17993: _ACAWK
1.8 moko 17994: _ACEOF
1.22 ! moko 17995: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17996: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
! 17997: fi # test -n "$CONFIG_HEADERS"
! 17998:
! 17999:
! 18000: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
! 18001: shift
! 18002: for ac_tag
! 18003: do
! 18004: case $ac_tag in
! 18005: :[FHLC]) ac_mode=$ac_tag; continue;;
! 18006: esac
! 18007: case $ac_mode$ac_tag in
! 18008: :[FHL]*:*);;
! 18009: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
! 18010: :[FH]-) ac_tag=-:-;;
! 18011: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
! 18012: esac
! 18013: ac_save_IFS=$IFS
! 18014: IFS=:
! 18015: set x $ac_tag
! 18016: IFS=$ac_save_IFS
! 18017: shift
! 18018: ac_file=$1
! 18019: shift
! 18020:
! 18021: case $ac_mode in
! 18022: :L) ac_source=$1;;
! 18023: :[FH])
! 18024: ac_file_inputs=
! 18025: for ac_f
! 18026: do
! 18027: case $ac_f in
! 18028: -) ac_f="$ac_tmp/stdin";;
! 18029: *) # Look for the file first in the build tree, then in the source tree
! 18030: # (if the path is not absolute). The absolute path cannot be DOS-style,
! 18031: # because $ac_f cannot contain `:'.
! 18032: test -f "$ac_f" ||
! 18033: case $ac_f in
! 18034: [\\/$]*) false;;
! 18035: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
! 18036: esac ||
! 18037: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
! 18038: esac
! 18039: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
! 18040: as_fn_append ac_file_inputs " '$ac_f'"
! 18041: done
! 18042:
! 18043: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 18044: # use $as_me), people would be surprised to read:
! 18045: # /* config.h. Generated by config.status. */
! 18046: configure_input='Generated from '`
! 18047: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
! 18048: `' by configure.'
! 18049: if test x"$ac_file" != x-; then
! 18050: configure_input="$ac_file. $configure_input"
! 18051: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
! 18052: $as_echo "$as_me: creating $ac_file" >&6;}
! 18053: fi
! 18054: # Neutralize special characters interpreted by sed in replacement strings.
! 18055: case $configure_input in #(
! 18056: *\&* | *\|* | *\\* )
! 18057: ac_sed_conf_input=`$as_echo "$configure_input" |
! 18058: sed 's/[\\\\&|]/\\\\&/g'`;; #(
! 18059: *) ac_sed_conf_input=$configure_input;;
! 18060: esac
! 18061:
! 18062: case $ac_tag in
! 18063: *:-:* | *:-) cat >"$ac_tmp/stdin" \
! 18064: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
! 18065: esac
! 18066: ;;
1.8 moko 18067: esac
18068:
1.22 ! moko 18069: ac_dir=`$as_dirname -- "$ac_file" ||
1.8 moko 18070: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18071: X"$ac_file" : 'X\(//\)[^/]' \| \
18072: X"$ac_file" : 'X\(//\)$' \| \
1.22 ! moko 18073: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
! 18074: $as_echo X"$ac_file" |
! 18075: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18076: s//\1/
! 18077: q
! 18078: }
! 18079: /^X\(\/\/\)[^/].*/{
! 18080: s//\1/
! 18081: q
! 18082: }
! 18083: /^X\(\/\/\)$/{
! 18084: s//\1/
! 18085: q
! 18086: }
! 18087: /^X\(\/\).*/{
! 18088: s//\1/
! 18089: q
! 18090: }
! 18091: s/.*/./; q'`
! 18092: as_dir="$ac_dir"; as_fn_mkdir_p
1.8 moko 18093: ac_builddir=.
18094:
1.22 ! moko 18095: case "$ac_dir" in
! 18096: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 18097: *)
! 18098: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
! 18099: # A ".." for each directory in $ac_dir_suffix.
! 18100: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
! 18101: case $ac_top_builddir_sub in
! 18102: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 18103: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 18104: esac ;;
! 18105: esac
! 18106: ac_abs_top_builddir=$ac_pwd
! 18107: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 18108: # for backward compatibility:
! 18109: ac_top_builddir=$ac_top_build_prefix
1.8 moko 18110:
18111: case $srcdir in
1.22 ! moko 18112: .) # We are building in place.
1.8 moko 18113: ac_srcdir=.
1.22 ! moko 18114: ac_top_srcdir=$ac_top_builddir_sub
! 18115: ac_abs_top_srcdir=$ac_pwd ;;
! 18116: [\\/]* | ?:[\\/]* ) # Absolute name.
1.8 moko 18117: ac_srcdir=$srcdir$ac_dir_suffix;
1.22 ! moko 18118: ac_top_srcdir=$srcdir
! 18119: ac_abs_top_srcdir=$srcdir ;;
! 18120: *) # Relative name.
! 18121: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 18122: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 18123: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.8 moko 18124: esac
1.22 ! moko 18125: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.8 moko 18126:
18127:
1.22 ! moko 18128: case $ac_mode in
! 18129: :F)
! 18130: #
! 18131: # CONFIG_FILE
! 18132: #
1.8 moko 18133:
18134: case $INSTALL in
18135: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.22 ! moko 18136: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
! 18137: esac
! 18138: ac_MKDIR_P=$MKDIR_P
! 18139: case $MKDIR_P in
! 18140: [\\/$]* | ?:[\\/]* ) ;;
! 18141: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1.8 moko 18142: esac
1.22 ! moko 18143: _ACEOF
1.8 moko 18144:
1.22 ! moko 18145: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 18146: # If the template does not know about datarootdir, expand it.
! 18147: # FIXME: This hack should be removed a few years after 2.60.
! 18148: ac_datarootdir_hack=; ac_datarootdir_seen=
! 18149: ac_sed_dataroot='
! 18150: /datarootdir/ {
! 18151: p
! 18152: q
! 18153: }
! 18154: /@datadir@/p
! 18155: /@docdir@/p
! 18156: /@infodir@/p
! 18157: /@localedir@/p
! 18158: /@mandir@/p'
! 18159: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
! 18160: *datarootdir*) ac_datarootdir_seen=yes;;
! 18161: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
! 18162: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 18163: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
! 18164: _ACEOF
! 18165: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 18166: ac_datarootdir_hack='
! 18167: s&@datadir@&$datadir&g
! 18168: s&@docdir@&$docdir&g
! 18169: s&@infodir@&$infodir&g
! 18170: s&@localedir@&$localedir&g
! 18171: s&@mandir@&$mandir&g
! 18172: s&\\\${datarootdir}&$datarootdir&g' ;;
! 18173: esac
! 18174: _ACEOF
1.11 moko 18175:
1.22 ! moko 18176: # Neutralize VPATH when `$srcdir' = `.'.
! 18177: # Shell code in configure.ac might set extrasub.
! 18178: # FIXME: do we really want to maintain this feature?
! 18179: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 18180: ac_sed_extra="$ac_vpsub
1.8 moko 18181: $extrasub
18182: _ACEOF
1.22 ! moko 18183: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.8 moko 18184: :t
18185: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.22 ! moko 18186: s|@configure_input@|$ac_sed_conf_input|;t t
! 18187: s&@top_builddir@&$ac_top_builddir_sub&;t t
! 18188: s&@top_build_prefix@&$ac_top_build_prefix&;t t
! 18189: s&@srcdir@&$ac_srcdir&;t t
! 18190: s&@abs_srcdir@&$ac_abs_srcdir&;t t
! 18191: s&@top_srcdir@&$ac_top_srcdir&;t t
! 18192: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
! 18193: s&@builddir@&$ac_builddir&;t t
! 18194: s&@abs_builddir@&$ac_abs_builddir&;t t
! 18195: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
! 18196: s&@INSTALL@&$ac_INSTALL&;t t
! 18197: s&@MKDIR_P@&$ac_MKDIR_P&;t t
! 18198: $ac_datarootdir_hack
! 18199: "
! 18200: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
! 18201: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 18202:
! 18203: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
! 18204: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
! 18205: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
! 18206: "$ac_tmp/out"`; test -z "$ac_out"; } &&
! 18207: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 18208: which seems to be undefined. Please make sure it is defined" >&5
! 18209: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 18210: which seems to be undefined. Please make sure it is defined" >&2;}
1.11 moko 18211:
1.22 ! moko 18212: rm -f "$ac_tmp/stdin"
1.8 moko 18213: case $ac_file in
1.22 ! moko 18214: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
! 18215: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
! 18216: esac \
! 18217: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 18218: ;;
! 18219: :H)
! 18220: #
! 18221: # CONFIG_HEADER
! 18222: #
1.8 moko 18223: if test x"$ac_file" != x-; then
1.22 ! moko 18224: {
! 18225: $as_echo "/* $configure_input */" \
! 18226: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
! 18227: } >"$ac_tmp/config.h" \
! 18228: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 18229: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
! 18230: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
! 18231: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.8 moko 18232: else
1.22 ! moko 18233: rm -f "$ac_file"
! 18234: mv "$ac_tmp/config.h" "$ac_file" \
! 18235: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.8 moko 18236: fi
18237: else
1.22 ! moko 18238: $as_echo "/* $configure_input */" \
! 18239: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
! 18240: || as_fn_error $? "could not create -" "$LINENO" 5
1.8 moko 18241: fi
1.22 ! moko 18242: # Compute "$ac_file"'s index in $config_headers.
! 18243: _am_arg="$ac_file"
1.8 moko 18244: _am_stamp_count=1
18245: for _am_header in $config_headers :; do
18246: case $_am_header in
1.22 ! moko 18247: $_am_arg | $_am_arg:* )
1.8 moko 18248: break ;;
18249: * )
18250: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18251: esac
18252: done
1.22 ! moko 18253: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
! 18254: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 18255: X"$_am_arg" : 'X\(//\)[^/]' \| \
! 18256: X"$_am_arg" : 'X\(//\)$' \| \
! 18257: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
! 18258: $as_echo X"$_am_arg" |
! 18259: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18260: s//\1/
! 18261: q
! 18262: }
! 18263: /^X\(\/\/\)[^/].*/{
! 18264: s//\1/
! 18265: q
! 18266: }
! 18267: /^X\(\/\/\)$/{
! 18268: s//\1/
! 18269: q
! 18270: }
! 18271: /^X\(\/\).*/{
! 18272: s//\1/
! 18273: q
! 18274: }
! 18275: s/.*/./; q'`/stamp-h$_am_stamp_count
! 18276: ;;
1.11 moko 18277:
1.22 ! moko 18278: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
! 18279: $as_echo "$as_me: executing $ac_file commands" >&6;}
! 18280: ;;
! 18281: esac
1.11 moko 18282:
18283:
1.22 ! moko 18284: case $ac_file$ac_mode in
! 18285: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
! 18286: # Autoconf 2.62 quotes --file arguments for eval, but not when files
! 18287: # are listed without --file. Let's play safe and only enable the eval
! 18288: # if we detect the quoting.
! 18289: case $CONFIG_FILES in
! 18290: *\'*) eval set x "$CONFIG_FILES" ;;
! 18291: *) set x $CONFIG_FILES ;;
! 18292: esac
! 18293: shift
! 18294: for mf
! 18295: do
! 18296: # Strip MF so we end up with the name of the file.
! 18297: mf=`echo "$mf" | sed -e 's/:.*$//'`
! 18298: # Check whether this is an Automake generated Makefile or not.
! 18299: # We used to match only the files named `Makefile.in', but
! 18300: # some people rename them; so instead we look at the file content.
! 18301: # Grep'ing the first line is not enough: some people post-process
! 18302: # each Makefile.in and add a new line on top of each file to say so.
! 18303: # Grep'ing the whole file is not good either: AIX grep has a line
! 18304: # limit of 2048, but all sed's we know have understand at least 4000.
! 18305: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
! 18306: dirpart=`$as_dirname -- "$mf" ||
1.8 moko 18307: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18308: X"$mf" : 'X\(//\)[^/]' \| \
18309: X"$mf" : 'X\(//\)$' \| \
1.22 ! moko 18310: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
! 18311: $as_echo X"$mf" |
! 18312: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18313: s//\1/
! 18314: q
! 18315: }
! 18316: /^X\(\/\/\)[^/].*/{
! 18317: s//\1/
! 18318: q
! 18319: }
! 18320: /^X\(\/\/\)$/{
! 18321: s//\1/
! 18322: q
! 18323: }
! 18324: /^X\(\/\).*/{
! 18325: s//\1/
! 18326: q
! 18327: }
! 18328: s/.*/./; q'`
! 18329: else
! 18330: continue
! 18331: fi
! 18332: # Extract the definition of DEPDIR, am__include, and am__quote
! 18333: # from the Makefile without running `make'.
! 18334: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
! 18335: test -z "$DEPDIR" && continue
! 18336: am__include=`sed -n 's/^am__include = //p' < "$mf"`
! 18337: test -z "am__include" && continue
! 18338: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
! 18339: # When using ansi2knr, U may be empty or an underscore; expand it
! 18340: U=`sed -n 's/^U = //p' < "$mf"`
! 18341: # Find all dependency output files, they are included files with
! 18342: # $(DEPDIR) in their names. We invoke sed twice because it is the
! 18343: # simplest approach to changing $(DEPDIR) to its actual value in the
! 18344: # expansion.
! 18345: for file in `sed -n "
! 18346: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
! 18347: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
! 18348: # Make sure the directory exists.
! 18349: test -f "$dirpart/$file" && continue
! 18350: fdir=`$as_dirname -- "$file" ||
1.8 moko 18351: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18352: X"$file" : 'X\(//\)[^/]' \| \
18353: X"$file" : 'X\(//\)$' \| \
1.22 ! moko 18354: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
! 18355: $as_echo X"$file" |
! 18356: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18357: s//\1/
! 18358: q
! 18359: }
! 18360: /^X\(\/\/\)[^/].*/{
! 18361: s//\1/
! 18362: q
! 18363: }
! 18364: /^X\(\/\/\)$/{
! 18365: s//\1/
! 18366: q
! 18367: }
! 18368: /^X\(\/\).*/{
! 18369: s//\1/
! 18370: q
! 18371: }
! 18372: s/.*/./; q'`
! 18373: as_dir=$dirpart/$fdir; as_fn_mkdir_p
! 18374: # echo "creating $dirpart/$file"
! 18375: echo '# dummy' > "$dirpart/$file"
1.11 moko 18376: done
1.8 moko 18377: done
1.22 ! moko 18378: }
1.8 moko 18379: ;;
1.22 ! moko 18380: "libtool":C)
1.8 moko 18381:
18382: # See if we are running on zsh, and set the options which allow our
18383: # commands through without removal of \ escapes.
18384: if test -n "${ZSH_VERSION+set}" ; then
18385: setopt NO_GLOB_SUBST
18386: fi
18387:
18388: cfgfile="${ofile}T"
18389: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18390: $RM "$cfgfile"
18391:
18392: cat <<_LT_EOF >> "$cfgfile"
18393: #! $SHELL
18394:
18395: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18396: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18397: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18398: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18399: #
18400: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18401: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18402: # Foundation, Inc.
18403: # Written by Gordon Matzigkeit, 1996
18404: #
18405: # This file is part of GNU Libtool.
18406: #
18407: # GNU Libtool is free software; you can redistribute it and/or
18408: # modify it under the terms of the GNU General Public License as
18409: # published by the Free Software Foundation; either version 2 of
18410: # the License, or (at your option) any later version.
18411: #
18412: # As a special exception to the GNU General Public License,
18413: # if you distribute this file as part of a program or library that
18414: # is built using GNU Libtool, you may include this file under the
18415: # same distribution terms that you use for the rest of that program.
18416: #
18417: # GNU Libtool is distributed in the hope that it will be useful,
18418: # but WITHOUT ANY WARRANTY; without even the implied warranty of
18419: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18420: # GNU General Public License for more details.
18421: #
18422: # You should have received a copy of the GNU General Public License
18423: # along with GNU Libtool; see the file COPYING. If not, a copy
18424: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18425: # obtained by writing to the Free Software Foundation, Inc.,
18426: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18427:
18428:
18429: # The names of the tagged configurations supported by this script.
18430: available_tags="CXX "
18431:
18432: # ### BEGIN LIBTOOL CONFIG
18433:
18434: # Which release of libtool.m4 was used?
18435: macro_version=$macro_version
18436: macro_revision=$macro_revision
18437:
1.20 moko 18438: # Whether or not to build static libraries.
18439: build_old_libs=$enable_static
18440:
1.13 moko 18441: # Assembler program.
18442: AS=$lt_AS
18443:
18444: # DLL creation program.
18445: DLLTOOL=$lt_DLLTOOL
18446:
18447: # Object dumper program.
18448: OBJDUMP=$lt_OBJDUMP
18449:
1.8 moko 18450: # Whether or not to build shared libraries.
18451: build_libtool_libs=$enable_shared
18452:
18453: # What type of objects to build.
18454: pic_mode=$pic_mode
18455:
18456: # Whether or not to optimize for fast installation.
18457: fast_install=$enable_fast_install
18458:
18459: # Shell to use when invoking shell scripts.
18460: SHELL=$lt_SHELL
18461:
18462: # An echo program that protects backslashes.
18463: ECHO=$lt_ECHO
18464:
18465: # The PATH separator for the build system.
18466: PATH_SEPARATOR=$lt_PATH_SEPARATOR
18467:
18468: # The host system.
18469: host_alias=$host_alias
18470: host=$host
18471: host_os=$host_os
18472:
18473: # The build system.
18474: build_alias=$build_alias
18475: build=$build
18476: build_os=$build_os
18477:
18478: # A sed program that does not truncate output.
18479: SED=$lt_SED
18480:
18481: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18482: Xsed="\$SED -e 1s/^X//"
18483:
18484: # A grep program that handles long lines.
18485: GREP=$lt_GREP
18486:
18487: # An ERE matcher.
18488: EGREP=$lt_EGREP
18489:
18490: # A literal string matcher.
18491: FGREP=$lt_FGREP
18492:
18493: # A BSD- or MS-compatible name lister.
18494: NM=$lt_NM
18495:
18496: # Whether we need soft or hard links.
18497: LN_S=$lt_LN_S
18498:
18499: # What is the maximum length of a command?
18500: max_cmd_len=$max_cmd_len
18501:
18502: # Object file suffix (normally "o").
18503: objext=$ac_objext
18504:
18505: # Executable file suffix (normally "").
18506: exeext=$exeext
18507:
18508: # whether the shell understands "unset".
18509: lt_unset=$lt_unset
18510:
18511: # turn spaces into newlines.
18512: SP2NL=$lt_lt_SP2NL
18513:
18514: # turn newlines into spaces.
18515: NL2SP=$lt_lt_NL2SP
18516:
18517: # convert \$build file names to \$host format.
18518: to_host_file_cmd=$lt_cv_to_host_file_cmd
18519:
18520: # convert \$build files to toolchain format.
18521: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18522:
18523: # Method to check whether dependent libraries are shared objects.
18524: deplibs_check_method=$lt_deplibs_check_method
18525:
18526: # Command to use when deplibs_check_method = "file_magic".
18527: file_magic_cmd=$lt_file_magic_cmd
18528:
18529: # How to find potential files when deplibs_check_method = "file_magic".
18530: file_magic_glob=$lt_file_magic_glob
18531:
18532: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18533: want_nocaseglob=$lt_want_nocaseglob
18534:
18535: # Command to associate shared and link libraries.
18536: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18537:
18538: # The archiver.
18539: AR=$lt_AR
18540:
18541: # Flags to create an archive.
18542: AR_FLAGS=$lt_AR_FLAGS
18543:
18544: # How to feed a file listing to the archiver.
18545: archiver_list_spec=$lt_archiver_list_spec
18546:
18547: # A symbol stripping program.
18548: STRIP=$lt_STRIP
18549:
18550: # Commands used to install an old-style archive.
18551: RANLIB=$lt_RANLIB
18552: old_postinstall_cmds=$lt_old_postinstall_cmds
18553: old_postuninstall_cmds=$lt_old_postuninstall_cmds
18554:
18555: # Whether to use a lock for old archive extraction.
18556: lock_old_archive_extraction=$lock_old_archive_extraction
18557:
18558: # A C compiler.
18559: LTCC=$lt_CC
18560:
18561: # LTCC compiler flags.
18562: LTCFLAGS=$lt_CFLAGS
18563:
18564: # Take the output of nm and produce a listing of raw symbols and C names.
18565: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18566:
18567: # Transform the output of nm in a proper C declaration.
18568: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18569:
18570: # Transform the output of nm in a C name address pair.
18571: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18572:
18573: # Transform the output of nm in a C name address pair when lib prefix is needed.
18574: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18575:
18576: # Specify filename containing input files for \$NM.
18577: nm_file_list_spec=$lt_nm_file_list_spec
18578:
18579: # The root where to search for dependent libraries,and in which our libraries should be installed.
18580: lt_sysroot=$lt_sysroot
18581:
18582: # The name of the directory that contains temporary libtool files.
18583: objdir=$objdir
18584:
18585: # Used to examine libraries when file_magic_cmd begins with "file".
18586: MAGIC_CMD=$MAGIC_CMD
18587:
18588: # Must we lock files when doing compilation?
18589: need_locks=$lt_need_locks
18590:
18591: # Manifest tool.
18592: MANIFEST_TOOL=$lt_MANIFEST_TOOL
18593:
18594: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18595: DSYMUTIL=$lt_DSYMUTIL
18596:
18597: # Tool to change global to local symbols on Mac OS X.
18598: NMEDIT=$lt_NMEDIT
18599:
18600: # Tool to manipulate fat objects and archives on Mac OS X.
18601: LIPO=$lt_LIPO
18602:
18603: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18604: OTOOL=$lt_OTOOL
18605:
18606: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18607: OTOOL64=$lt_OTOOL64
18608:
18609: # Old archive suffix (normally "a").
18610: libext=$libext
18611:
18612: # Shared library suffix (normally ".so").
18613: shrext_cmds=$lt_shrext_cmds
18614:
18615: # The commands to extract the exported symbol list from a shared archive.
18616: extract_expsyms_cmds=$lt_extract_expsyms_cmds
18617:
18618: # Variables whose values should be saved in libtool wrapper scripts and
18619: # restored at link time.
18620: variables_saved_for_relink=$lt_variables_saved_for_relink
18621:
18622: # Do we need the "lib" prefix for modules?
18623: need_lib_prefix=$need_lib_prefix
18624:
18625: # Do we need a version for libraries?
18626: need_version=$need_version
18627:
18628: # Library versioning type.
18629: version_type=$version_type
18630:
18631: # Shared library runtime path variable.
18632: runpath_var=$runpath_var
18633:
18634: # Shared library path variable.
18635: shlibpath_var=$shlibpath_var
18636:
18637: # Is shlibpath searched before the hard-coded library search path?
18638: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18639:
18640: # Format of library name prefix.
18641: libname_spec=$lt_libname_spec
18642:
18643: # List of archive names. First name is the real one, the rest are links.
18644: # The last name is the one that the linker finds with -lNAME
18645: library_names_spec=$lt_library_names_spec
18646:
18647: # The coded name of the library, if different from the real name.
18648: soname_spec=$lt_soname_spec
18649:
18650: # Permission mode override for installation of shared libraries.
18651: install_override_mode=$lt_install_override_mode
18652:
18653: # Command to use after installation of a shared archive.
18654: postinstall_cmds=$lt_postinstall_cmds
18655:
18656: # Command to use after uninstallation of a shared archive.
18657: postuninstall_cmds=$lt_postuninstall_cmds
18658:
18659: # Commands used to finish a libtool library installation in a directory.
18660: finish_cmds=$lt_finish_cmds
18661:
18662: # As "finish_cmds", except a single script fragment to be evaled but
18663: # not shown.
18664: finish_eval=$lt_finish_eval
18665:
18666: # Whether we should hardcode library paths into libraries.
18667: hardcode_into_libs=$hardcode_into_libs
18668:
18669: # Compile-time system search path for libraries.
18670: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18671:
18672: # Run-time system search path for libraries.
18673: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18674:
18675: # Whether dlopen is supported.
18676: dlopen_support=$enable_dlopen
18677:
18678: # Whether dlopen of programs is supported.
18679: dlopen_self=$enable_dlopen_self
18680:
18681: # Whether dlopen of statically linked programs is supported.
18682: dlopen_self_static=$enable_dlopen_self_static
18683:
18684: # Commands to strip libraries.
18685: old_striplib=$lt_old_striplib
18686: striplib=$lt_striplib
18687:
18688:
18689: # The linker used to build libraries.
18690: LD=$lt_LD
18691:
18692: # How to create reloadable object files.
18693: reload_flag=$lt_reload_flag
18694: reload_cmds=$lt_reload_cmds
18695:
18696: # Commands used to build an old-style archive.
18697: old_archive_cmds=$lt_old_archive_cmds
18698:
18699: # A language specific compiler.
18700: CC=$lt_compiler
18701:
18702: # Is the compiler the GNU compiler?
18703: with_gcc=$GCC
18704:
18705: # Compiler flag to turn off builtin functions.
18706: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18707:
18708: # Additional compiler flags for building library objects.
18709: pic_flag=$lt_lt_prog_compiler_pic
18710:
18711: # How to pass a linker flag through the compiler.
18712: wl=$lt_lt_prog_compiler_wl
18713:
18714: # Compiler flag to prevent dynamic linking.
18715: link_static_flag=$lt_lt_prog_compiler_static
18716:
18717: # Does compiler simultaneously support -c and -o options?
18718: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18719:
18720: # Whether or not to add -lc for building shared libraries.
18721: build_libtool_need_lc=$archive_cmds_need_lc
18722:
18723: # Whether or not to disallow shared libs when runtime libs are static.
18724: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18725:
18726: # Compiler flag to allow reflexive dlopens.
18727: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18728:
18729: # Compiler flag to generate shared objects directly from archives.
18730: whole_archive_flag_spec=$lt_whole_archive_flag_spec
18731:
18732: # Whether the compiler copes with passing no objects directly.
18733: compiler_needs_object=$lt_compiler_needs_object
18734:
18735: # Create an old-style archive from a shared archive.
18736: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18737:
18738: # Create a temporary old-style archive to link instead of a shared archive.
18739: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18740:
18741: # Commands used to build a shared archive.
18742: archive_cmds=$lt_archive_cmds
18743: archive_expsym_cmds=$lt_archive_expsym_cmds
18744:
18745: # Commands used to build a loadable module if different from building
18746: # a shared archive.
18747: module_cmds=$lt_module_cmds
18748: module_expsym_cmds=$lt_module_expsym_cmds
18749:
18750: # Whether we are building with GNU ld or not.
18751: with_gnu_ld=$lt_with_gnu_ld
18752:
18753: # Flag that allows shared libraries with undefined symbols to be built.
18754: allow_undefined_flag=$lt_allow_undefined_flag
18755:
18756: # Flag that enforces no undefined symbols.
18757: no_undefined_flag=$lt_no_undefined_flag
18758:
18759: # Flag to hardcode \$libdir into a binary during linking.
18760: # This must work even if \$libdir does not exist
18761: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18762:
18763: # Whether we need a single "-rpath" flag with a separated argument.
18764: hardcode_libdir_separator=$lt_hardcode_libdir_separator
18765:
18766: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18767: # DIR into the resulting binary.
18768: hardcode_direct=$hardcode_direct
18769:
18770: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18771: # DIR into the resulting binary and the resulting library dependency is
18772: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18773: # library is relocated.
18774: hardcode_direct_absolute=$hardcode_direct_absolute
18775:
18776: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18777: # into the resulting binary.
18778: hardcode_minus_L=$hardcode_minus_L
18779:
18780: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18781: # into the resulting binary.
18782: hardcode_shlibpath_var=$hardcode_shlibpath_var
18783:
18784: # Set to "yes" if building a shared library automatically hardcodes DIR
18785: # into the library and all subsequent libraries and executables linked
18786: # against it.
18787: hardcode_automatic=$hardcode_automatic
18788:
18789: # Set to yes if linker adds runtime paths of dependent libraries
18790: # to runtime path list.
18791: inherit_rpath=$inherit_rpath
18792:
18793: # Whether libtool must link a program against all its dependency libraries.
18794: link_all_deplibs=$link_all_deplibs
18795:
18796: # Set to "yes" if exported symbols are required.
18797: always_export_symbols=$always_export_symbols
18798:
18799: # The commands to list exported symbols.
18800: export_symbols_cmds=$lt_export_symbols_cmds
18801:
18802: # Symbols that should not be listed in the preloaded symbols.
18803: exclude_expsyms=$lt_exclude_expsyms
18804:
18805: # Symbols that must always be exported.
18806: include_expsyms=$lt_include_expsyms
18807:
18808: # Commands necessary for linking programs (against libraries) with templates.
18809: prelink_cmds=$lt_prelink_cmds
18810:
18811: # Commands necessary for finishing linking programs.
18812: postlink_cmds=$lt_postlink_cmds
18813:
18814: # Specify filename containing input files.
18815: file_list_spec=$lt_file_list_spec
18816:
18817: # How to hardcode a shared library path into an executable.
18818: hardcode_action=$hardcode_action
18819:
18820: # The directories searched by this compiler when creating a shared library.
18821: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18822:
18823: # Dependencies to place before and after the objects being linked to
18824: # create a shared library.
18825: predep_objects=$lt_predep_objects
18826: postdep_objects=$lt_postdep_objects
18827: predeps=$lt_predeps
18828: postdeps=$lt_postdeps
18829:
18830: # The library search path used internally by the compiler when linking
18831: # a shared library.
18832: compiler_lib_search_path=$lt_compiler_lib_search_path
18833:
18834: # ### END LIBTOOL CONFIG
18835:
18836: _LT_EOF
18837:
18838: case $host_os in
18839: aix3*)
18840: cat <<\_LT_EOF >> "$cfgfile"
18841: # AIX sometimes has problems with the GCC collect2 program. For some
18842: # reason, if we set the COLLECT_NAMES environment variable, the problems
18843: # vanish in a puff of smoke.
18844: if test "X${COLLECT_NAMES+set}" != Xset; then
18845: COLLECT_NAMES=
18846: export COLLECT_NAMES
18847: fi
18848: _LT_EOF
18849: ;;
18850: esac
18851:
18852:
18853: ltmain="$ac_aux_dir/ltmain.sh"
18854:
18855:
18856: # We use sed instead of cat because bash on DJGPP gets confused if
18857: # if finds mixed CR/LF and LF-only lines. Since sed operates in
18858: # text mode, it properly converts lines to CR/LF. This bash problem
18859: # is reportedly fixed, but why not run on old versions too?
18860: sed '$q' "$ltmain" >> "$cfgfile" \
18861: || (rm -f "$cfgfile"; exit 1)
18862:
18863: if test x"$xsi_shell" = xyes; then
18864: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18865: func_dirname ()\
18866: {\
18867: \ case ${1} in\
18868: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18869: \ * ) func_dirname_result="${3}" ;;\
18870: \ esac\
18871: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18872: && mv -f "$cfgfile.tmp" "$cfgfile" \
18873: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18874: test 0 -eq $? || _lt_function_replace_fail=:
18875:
18876:
18877: sed -e '/^func_basename ()$/,/^} # func_basename /c\
18878: func_basename ()\
18879: {\
18880: \ func_basename_result="${1##*/}"\
18881: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18882: && mv -f "$cfgfile.tmp" "$cfgfile" \
18883: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18884: test 0 -eq $? || _lt_function_replace_fail=:
18885:
18886:
18887: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18888: func_dirname_and_basename ()\
18889: {\
18890: \ case ${1} in\
18891: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18892: \ * ) func_dirname_result="${3}" ;;\
18893: \ esac\
18894: \ func_basename_result="${1##*/}"\
18895: } # Extended-shell func_dirname_and_basename 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_stripname ()$/,/^} # func_stripname /c\
18902: func_stripname ()\
18903: {\
18904: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18905: \ # positional parameters, so assign one to ordinary parameter first.\
18906: \ func_stripname_result=${3}\
18907: \ func_stripname_result=${func_stripname_result#"${1}"}\
18908: \ func_stripname_result=${func_stripname_result%"${2}"}\
18909: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18910: && mv -f "$cfgfile.tmp" "$cfgfile" \
18911: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18912: test 0 -eq $? || _lt_function_replace_fail=:
18913:
18914:
18915: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18916: func_split_long_opt ()\
18917: {\
18918: \ func_split_long_opt_name=${1%%=*}\
18919: \ func_split_long_opt_arg=${1#*=}\
18920: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18921: && mv -f "$cfgfile.tmp" "$cfgfile" \
18922: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18923: test 0 -eq $? || _lt_function_replace_fail=:
18924:
18925:
18926: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18927: func_split_short_opt ()\
18928: {\
18929: \ func_split_short_opt_arg=${1#??}\
18930: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18931: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18932: && mv -f "$cfgfile.tmp" "$cfgfile" \
18933: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18934: test 0 -eq $? || _lt_function_replace_fail=:
18935:
18936:
18937: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18938: func_lo2o ()\
18939: {\
18940: \ case ${1} in\
18941: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18942: \ *) func_lo2o_result=${1} ;;\
18943: \ esac\
18944: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18945: && mv -f "$cfgfile.tmp" "$cfgfile" \
18946: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18947: test 0 -eq $? || _lt_function_replace_fail=:
18948:
18949:
18950: sed -e '/^func_xform ()$/,/^} # func_xform /c\
18951: func_xform ()\
18952: {\
18953: func_xform_result=${1%.*}.lo\
18954: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18955: && mv -f "$cfgfile.tmp" "$cfgfile" \
18956: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18957: test 0 -eq $? || _lt_function_replace_fail=:
18958:
18959:
18960: sed -e '/^func_arith ()$/,/^} # func_arith /c\
18961: func_arith ()\
18962: {\
18963: func_arith_result=$(( $* ))\
18964: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18965: && mv -f "$cfgfile.tmp" "$cfgfile" \
18966: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18967: test 0 -eq $? || _lt_function_replace_fail=:
18968:
18969:
18970: sed -e '/^func_len ()$/,/^} # func_len /c\
18971: func_len ()\
18972: {\
18973: func_len_result=${#1}\
18974: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18975: && mv -f "$cfgfile.tmp" "$cfgfile" \
18976: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18977: test 0 -eq $? || _lt_function_replace_fail=:
18978:
18979: fi
18980:
18981: if test x"$lt_shell_append" = xyes; then
18982: sed -e '/^func_append ()$/,/^} # func_append /c\
18983: func_append ()\
18984: {\
18985: eval "${1}+=\\${2}"\
18986: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18987: && mv -f "$cfgfile.tmp" "$cfgfile" \
18988: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18989: test 0 -eq $? || _lt_function_replace_fail=:
18990:
18991:
18992: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18993: func_append_quoted ()\
18994: {\
18995: \ func_quote_for_eval "${2}"\
18996: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18997: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18998: && mv -f "$cfgfile.tmp" "$cfgfile" \
18999: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19000: test 0 -eq $? || _lt_function_replace_fail=:
19001:
19002:
19003: # Save a `func_append' function call where possible by direct use of '+='
19004: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19005: && mv -f "$cfgfile.tmp" "$cfgfile" \
19006: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19007: test 0 -eq $? || _lt_function_replace_fail=:
19008: else
19009: # Save a `func_append' function call even when '+=' is not available
19010: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19011: && mv -f "$cfgfile.tmp" "$cfgfile" \
19012: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19013: test 0 -eq $? || _lt_function_replace_fail=:
19014: fi
19015:
19016: if test x"$_lt_function_replace_fail" = x":"; then
1.22 ! moko 19017: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
! 19018: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.8 moko 19019: fi
19020:
19021:
19022: mv -f "$cfgfile" "$ofile" ||
19023: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19024: chmod +x "$ofile"
19025:
19026:
19027: cat <<_LT_EOF >> "$ofile"
19028:
19029: # ### BEGIN LIBTOOL TAG CONFIG: CXX
19030:
19031: # The linker used to build libraries.
19032: LD=$lt_LD_CXX
19033:
19034: # How to create reloadable object files.
19035: reload_flag=$lt_reload_flag_CXX
19036: reload_cmds=$lt_reload_cmds_CXX
19037:
19038: # Commands used to build an old-style archive.
19039: old_archive_cmds=$lt_old_archive_cmds_CXX
19040:
19041: # A language specific compiler.
19042: CC=$lt_compiler_CXX
19043:
19044: # Is the compiler the GNU compiler?
19045: with_gcc=$GCC_CXX
19046:
19047: # Compiler flag to turn off builtin functions.
19048: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19049:
19050: # Additional compiler flags for building library objects.
19051: pic_flag=$lt_lt_prog_compiler_pic_CXX
19052:
19053: # How to pass a linker flag through the compiler.
19054: wl=$lt_lt_prog_compiler_wl_CXX
19055:
19056: # Compiler flag to prevent dynamic linking.
19057: link_static_flag=$lt_lt_prog_compiler_static_CXX
19058:
19059: # Does compiler simultaneously support -c and -o options?
19060: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19061:
19062: # Whether or not to add -lc for building shared libraries.
19063: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19064:
19065: # Whether or not to disallow shared libs when runtime libs are static.
19066: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19067:
19068: # Compiler flag to allow reflexive dlopens.
19069: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19070:
19071: # Compiler flag to generate shared objects directly from archives.
19072: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19073:
19074: # Whether the compiler copes with passing no objects directly.
19075: compiler_needs_object=$lt_compiler_needs_object_CXX
19076:
19077: # Create an old-style archive from a shared archive.
19078: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19079:
19080: # Create a temporary old-style archive to link instead of a shared archive.
19081: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19082:
19083: # Commands used to build a shared archive.
19084: archive_cmds=$lt_archive_cmds_CXX
19085: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19086:
19087: # Commands used to build a loadable module if different from building
19088: # a shared archive.
19089: module_cmds=$lt_module_cmds_CXX
19090: module_expsym_cmds=$lt_module_expsym_cmds_CXX
19091:
19092: # Whether we are building with GNU ld or not.
19093: with_gnu_ld=$lt_with_gnu_ld_CXX
19094:
19095: # Flag that allows shared libraries with undefined symbols to be built.
19096: allow_undefined_flag=$lt_allow_undefined_flag_CXX
19097:
19098: # Flag that enforces no undefined symbols.
19099: no_undefined_flag=$lt_no_undefined_flag_CXX
19100:
19101: # Flag to hardcode \$libdir into a binary during linking.
19102: # This must work even if \$libdir does not exist
19103: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19104:
19105: # Whether we need a single "-rpath" flag with a separated argument.
19106: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19107:
19108: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19109: # DIR into the resulting binary.
19110: hardcode_direct=$hardcode_direct_CXX
19111:
19112: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19113: # DIR into the resulting binary and the resulting library dependency is
19114: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19115: # library is relocated.
19116: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19117:
19118: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19119: # into the resulting binary.
19120: hardcode_minus_L=$hardcode_minus_L_CXX
19121:
19122: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19123: # into the resulting binary.
19124: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19125:
19126: # Set to "yes" if building a shared library automatically hardcodes DIR
19127: # into the library and all subsequent libraries and executables linked
19128: # against it.
19129: hardcode_automatic=$hardcode_automatic_CXX
19130:
19131: # Set to yes if linker adds runtime paths of dependent libraries
19132: # to runtime path list.
19133: inherit_rpath=$inherit_rpath_CXX
19134:
19135: # Whether libtool must link a program against all its dependency libraries.
19136: link_all_deplibs=$link_all_deplibs_CXX
19137:
19138: # Set to "yes" if exported symbols are required.
19139: always_export_symbols=$always_export_symbols_CXX
19140:
19141: # The commands to list exported symbols.
19142: export_symbols_cmds=$lt_export_symbols_cmds_CXX
19143:
19144: # Symbols that should not be listed in the preloaded symbols.
19145: exclude_expsyms=$lt_exclude_expsyms_CXX
19146:
19147: # Symbols that must always be exported.
19148: include_expsyms=$lt_include_expsyms_CXX
19149:
19150: # Commands necessary for linking programs (against libraries) with templates.
19151: prelink_cmds=$lt_prelink_cmds_CXX
19152:
19153: # Commands necessary for finishing linking programs.
19154: postlink_cmds=$lt_postlink_cmds_CXX
19155:
19156: # Specify filename containing input files.
19157: file_list_spec=$lt_file_list_spec_CXX
19158:
19159: # How to hardcode a shared library path into an executable.
19160: hardcode_action=$hardcode_action_CXX
19161:
19162: # The directories searched by this compiler when creating a shared library.
19163: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19164:
19165: # Dependencies to place before and after the objects being linked to
19166: # create a shared library.
19167: predep_objects=$lt_predep_objects_CXX
19168: postdep_objects=$lt_postdep_objects_CXX
19169: predeps=$lt_predeps_CXX
19170: postdeps=$lt_postdeps_CXX
19171:
19172: # The library search path used internally by the compiler when linking
19173: # a shared library.
19174: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19175:
19176: # ### END LIBTOOL TAG CONFIG: CXX
19177: _LT_EOF
1.1 misha 19178:
19179: ;;
1.22 ! moko 19180:
1.1 misha 19181: esac
1.22 ! moko 19182: done # for ac_tag
1.1 misha 19183:
19184:
1.22 ! moko 19185: as_fn_exit 0
1.1 misha 19186: _ACEOF
19187: ac_clean_files=$ac_clean_files_save
19188:
1.22 ! moko 19189: test $ac_write_fail = 0 ||
! 19190: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
! 19191:
1.1 misha 19192:
19193: # configure is writing to config.log, and then calls config.status.
19194: # config.status does its own redirection, appending to config.log.
19195: # Unfortunately, on DOS this fails, as config.log is still kept open
19196: # by configure, so config.status won't be able to write to it; its
19197: # output is simply discarded. So we exec the FD to /dev/null,
19198: # effectively closing config.log, so it can be properly (re)opened and
19199: # appended to by config.status. When coming back to configure, we
19200: # need to make the FD available again.
19201: if test "$no_create" != yes; then
19202: ac_cs_success=:
19203: ac_config_status_args=
19204: test "$silent" = yes &&
19205: ac_config_status_args="$ac_config_status_args --quiet"
19206: exec 5>/dev/null
19207: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19208: exec 5>>config.log
19209: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19210: # would make configure fail if this is the last instruction.
1.22 ! moko 19211: $ac_cs_success || as_fn_exit 1
1.1 misha 19212: fi
19213:
19214: #
19215: # CONFIG_SUBDIRS section.
19216: #
19217: if test "$no_recursion" != yes; then
19218:
1.22 ! moko 19219: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
! 19220: # so they do not pile up.
1.1 misha 19221: ac_sub_configure_args=
19222: ac_prev=
1.22 ! moko 19223: eval "set x $ac_configure_args"
! 19224: shift
! 19225: for ac_arg
! 19226: do
1.1 misha 19227: if test -n "$ac_prev"; then
19228: ac_prev=
19229: continue
19230: fi
19231: case $ac_arg in
19232: -cache-file | --cache-file | --cache-fil | --cache-fi \
19233: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19234: ac_prev=cache_file ;;
19235: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19236: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19237: | --c=*)
19238: ;;
19239: --config-cache | -C)
19240: ;;
19241: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19242: ac_prev=srcdir ;;
19243: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19244: ;;
19245: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19246: ac_prev=prefix ;;
19247: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19248: ;;
1.22 ! moko 19249: --disable-option-checking)
! 19250: ;;
! 19251: *)
! 19252: case $ac_arg in
! 19253: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 19254: esac
! 19255: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 misha 19256: esac
19257: done
19258:
19259: # Always prepend --prefix to ensure using the same prefix
19260: # in subdir configurations.
1.22 ! moko 19261: ac_arg="--prefix=$prefix"
! 19262: case $ac_arg in
! 19263: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 19264: esac
! 19265: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
! 19266:
! 19267: # Pass --silent
! 19268: if test "$silent" = yes; then
! 19269: ac_sub_configure_args="--silent $ac_sub_configure_args"
! 19270: fi
! 19271:
! 19272: # Always prepend --disable-option-checking to silence warnings, since
! 19273: # different subdirs can have different --enable and --with options.
! 19274: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.1 misha 19275:
19276: ac_popdir=`pwd`
19277: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19278:
19279: # Do not complain, so a configure script can configure whichever
19280: # parts of a large source tree are present.
1.22 ! moko 19281: test -d "$srcdir/$ac_dir" || continue
1.1 misha 19282:
1.22 ! moko 19283: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
! 19284: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
! 19285: $as_echo "$ac_msg" >&6
! 19286: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 misha 19287: ac_builddir=.
19288:
1.22 ! moko 19289: case "$ac_dir" in
! 19290: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 19291: *)
! 19292: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
! 19293: # A ".." for each directory in $ac_dir_suffix.
! 19294: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
! 19295: case $ac_top_builddir_sub in
! 19296: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 19297: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 19298: esac ;;
! 19299: esac
! 19300: ac_abs_top_builddir=$ac_pwd
! 19301: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 19302: # for backward compatibility:
! 19303: ac_top_builddir=$ac_top_build_prefix
1.1 misha 19304:
19305: case $srcdir in
1.22 ! moko 19306: .) # We are building in place.
1.1 misha 19307: ac_srcdir=.
1.22 ! moko 19308: ac_top_srcdir=$ac_top_builddir_sub
! 19309: ac_abs_top_srcdir=$ac_pwd ;;
! 19310: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 misha 19311: ac_srcdir=$srcdir$ac_dir_suffix;
1.22 ! moko 19312: ac_top_srcdir=$srcdir
! 19313: ac_abs_top_srcdir=$srcdir ;;
! 19314: *) # Relative name.
! 19315: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 19316: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 19317: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1 misha 19318: esac
1.22 ! moko 19319: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 misha 19320:
19321:
1.22 ! moko 19322: cd "$ac_dir"
1.1 misha 19323:
19324: # Check for guested configure; otherwise get Cygnus style configure.
1.22 ! moko 19325: if test -f "$ac_srcdir/configure.gnu"; then
! 19326: ac_sub_configure=$ac_srcdir/configure.gnu
! 19327: elif test -f "$ac_srcdir/configure"; then
! 19328: ac_sub_configure=$ac_srcdir/configure
! 19329: elif test -f "$ac_srcdir/configure.in"; then
! 19330: # This should be Cygnus configure.
! 19331: ac_sub_configure=$ac_aux_dir/configure
1.1 misha 19332: else
1.22 ! moko 19333: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
! 19334: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 misha 19335: ac_sub_configure=
19336: fi
19337:
19338: # The recursion is here.
19339: if test -n "$ac_sub_configure"; then
19340: # Make the cache file name correct relative to the subdirectory.
19341: case $cache_file in
19342: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.22 ! moko 19343: *) # Relative name.
! 19344: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 misha 19345: esac
19346:
1.22 ! moko 19347: { $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
! 19348: $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 19349: # The eval makes quoting arguments work.
1.22 ! moko 19350: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
! 19351: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
! 19352: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 misha 19353: fi
19354:
1.22 ! moko 19355: cd "$ac_popdir"
1.1 misha 19356: done
19357: fi
1.22 ! moko 19358: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
! 19359: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
! 19360: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
! 19361: fi
1.1 misha 19362:
E-mail: