Annotation of sql/pgsql/configure, revision 1.31
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.31 ! moko 3: # Generated by GNU Autoconf 2.68 for parser3pgsql.C 10.3.
! 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 parser 10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.31 ! moko 13: ## -------------------- ##
! 14: ## M4sh Initialization. ##
! 15: ## -------------------- ##
1.10 paf 16:
1.31 ! 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.10 paf 20: emulate sh
21: NULLCMD=:
1.31 ! moko 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.10 paf 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
1.31 ! 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 paf 72: fi
73:
1.31 ! 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.10 paf 81: fi
82:
83:
1.31 ! 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.10 paf 124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.31 ! 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.10 paf 195: do
1.31 ! 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.10 paf 246: else
1.31 ! 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.10 paf 251: fi
1.31 ! 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 paf 390:
1.31 ! moko 391: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 392: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.10 paf 393: as_expr=expr
394: else
395: as_expr=false
396: fi
397:
1.31 ! moko 398: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.10 paf 399: as_basename=basename
400: else
401: as_basename=false
402: fi
403:
1.31 ! 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.10 paf 409:
1.31 ! moko 410: as_me=`$as_basename -- "$0" ||
1.10 paf 411: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412: X"$0" : 'X\(//\)$' \| \
1.31 ! 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.10 paf 428:
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.31 ! 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.10 paf 446: sed '
1.31 ! moko 447: s/[$]LINENO.*/&-/
! 448: t lineno
! 449: b
! 450: :lineno
1.10 paf 451: N
1.31 ! moko 452: :loop
! 453: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.10 paf 454: t loop
1.31 ! moko 455: s/-\n.*//
1.10 paf 456: ' >$as_me.lineno &&
1.31 ! 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.10 paf 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.31 ! moko 462: # original and so on. Autoconf is especially sensitive to this).
! 463: . "./$as_me.lineno"
1.10 paf 464: # Exit status is that of the last command.
465: exit
466: }
467:
1.31 ! 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.10 paf 479: esac
480:
1.31 ! moko 481: rm -f conf$$ conf$$.exe conf$$.file
! 482: if test -d conf$$.dir; then
! 483: rm -f conf$$.dir/conf$$.file
1.10 paf 484: else
1.31 ! moko 485: rm -f conf$$.dir
! 486: mkdir conf$$.dir 2>/dev/null
1.10 paf 487: fi
1.31 ! 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.10 paf 500: as_ln_s='cp -p'
501: fi
502: else
503: as_ln_s='cp -p'
504: fi
1.31 ! moko 505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 506: rmdir conf$$.dir 2>/dev/null
1.10 paf 507:
508: if mkdir -p . 2>/dev/null; then
1.31 ! moko 509: as_mkdir_p='mkdir -p "$as_dir"'
1.10 paf 510: else
1.16 paf 511: test -d ./-p && rmdir ./-p
1.10 paf 512: as_mkdir_p=false
513: fi
514:
1.31 ! 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.10 paf 537:
538: # Sed expression to map a string onto a valid CPP name.
1.16 paf 539: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 540:
541: # Sed expression to map a string onto a valid variable name.
1.16 paf 542: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 543:
1.23 moko 544: lt_ltdl_dir='libltdl'
1.10 paf 545:
546: SHELL=${CONFIG_SHELL-/bin/sh}
547:
1.23 moko 548: lt_dlopen_dir="$lt_ltdl_dir"
1.10 paf 549:
550:
1.31 ! moko 551: test -n "$DJDIR" || exec 7<&0 </dev/null
! 552: exec 6>&1
! 553:
1.10 paf 554: # Name of the host.
1.31 ! moko 555: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.10 paf 556: # so uname gets run too.
557: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 558:
1.10 paf 559: #
560: # Initializations.
561: #
1.1 parser 562: ac_default_prefix=/usr/local
1.31 ! moko 563: ac_clean_files=
1.10 paf 564: ac_config_libobj_dir=.
1.31 ! moko 565: LIBOBJS=
1.10 paf 566: cross_compiling=no
567: subdirs=
568: MFLAGS=
569: MAKEFLAGS=
570:
571: # Identity of this package.
1.23 moko 572: PACKAGE_NAME='parser3pgsql.C'
573: PACKAGE_TARNAME='parser3pgsql-c'
574: PACKAGE_VERSION='10.3'
575: PACKAGE_STRING='parser3pgsql.C 10.3'
576: PACKAGE_BUGREPORT=''
1.31 ! moko 577: PACKAGE_URL=''
1.10 paf 578:
579: ac_unique_file="parser3pgsql.C"
580: # Factoring default headers for most tests.
581: ac_includes_default="\
582: #include <stdio.h>
1.31 ! moko 583: #ifdef HAVE_SYS_TYPES_H
1.10 paf 584: # include <sys/types.h>
585: #endif
1.31 ! moko 586: #ifdef HAVE_SYS_STAT_H
1.10 paf 587: # include <sys/stat.h>
588: #endif
1.31 ! moko 589: #ifdef STDC_HEADERS
1.10 paf 590: # include <stdlib.h>
591: # include <stddef.h>
592: #else
1.31 ! moko 593: # ifdef HAVE_STDLIB_H
1.10 paf 594: # include <stdlib.h>
595: # endif
596: #endif
1.31 ! moko 597: #ifdef HAVE_STRING_H
! 598: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.10 paf 599: # include <memory.h>
600: # endif
601: # include <string.h>
602: #endif
1.31 ! moko 603: #ifdef HAVE_STRINGS_H
1.10 paf 604: # include <strings.h>
605: #endif
1.31 ! moko 606: #ifdef HAVE_INTTYPES_H
1.10 paf 607: # include <inttypes.h>
608: #endif
1.31 ! moko 609: #ifdef HAVE_STDINT_H
! 610: # include <stdint.h>
! 611: #endif
! 612: #ifdef HAVE_UNISTD_H
1.10 paf 613: # include <unistd.h>
614: #endif"
615:
1.31 ! 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: PGSQL_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.10 paf 758: ac_subst_files=''
1.31 ! moko 759: ac_user_opts='
! 760: enable_option_checking
! 761: with_pgsql_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 parser 789:
790: # Initialize some variables set by options.
1.10 paf 791: ac_init_help=
792: ac_init_version=false
1.31 ! moko 793: ac_unrecognized_opts=
! 794: ac_unrecognized_sep=
1.1 parser 795: # The variables have the same names as the options, with
796: # dashes changed to underlines.
1.10 paf 797: cache_file=/dev/null
1.1 parser 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
1.10 paf 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.31 ! moko 817: # (The list follows the same order as the GNU Coding Standards.)
1.1 parser 818: bindir='${exec_prefix}/bin'
819: sbindir='${exec_prefix}/sbin'
820: libexecdir='${exec_prefix}/libexec'
1.31 ! moko 821: datarootdir='${prefix}/share'
! 822: datadir='${datarootdir}'
1.1 parser 823: sysconfdir='${prefix}/etc'
824: sharedstatedir='${prefix}/com'
825: localstatedir='${prefix}/var'
826: includedir='${prefix}/include'
827: oldincludedir='/usr/include'
1.31 ! 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 parser 837:
838: ac_prev=
1.31 ! moko 839: ac_dashdash=
1.1 parser 840: for ac_option
841: do
842: # If the previous option needs an argument, assign it.
843: if test -n "$ac_prev"; then
1.31 ! moko 844: eval $ac_prev=\$ac_option
1.1 parser 845: ac_prev=
846: continue
847: fi
848:
1.31 ! moko 849: case $ac_option in
! 850: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 851: *=) ac_optarg= ;;
! 852: *) ac_optarg=yes ;;
! 853: esac
1.1 parser 854:
855: # Accept the important Cygnus configure options, so we can diagnose typos.
856:
1.31 ! moko 857: case $ac_dashdash$ac_option in
! 858: --)
! 859: ac_dashdash=yes ;;
1.1 parser 860:
861: -bindir | --bindir | --bindi | --bind | --bin | --bi)
862: ac_prev=bindir ;;
863: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.10 paf 864: bindir=$ac_optarg ;;
1.1 parser 865:
866: -build | --build | --buil | --bui | --bu)
1.10 paf 867: ac_prev=build_alias ;;
1.1 parser 868: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.10 paf 869: build_alias=$ac_optarg ;;
1.1 parser 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=*)
1.10 paf 876: cache_file=$ac_optarg ;;
877:
878: --config-cache | -C)
879: cache_file=config.cache ;;
1.1 parser 880:
1.31 ! moko 881: -datadir | --datadir | --datadi | --datad)
1.1 parser 882: ac_prev=datadir ;;
1.31 ! moko 883: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.10 paf 884: datadir=$ac_optarg ;;
1.1 parser 885:
1.31 ! 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 parser 893: -disable-* | --disable-*)
1.31 ! moko 894: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 895: # Reject names that are not valid shell variable names.
1.31 ! 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 parser 918:
919: -enable-* | --enable-*)
1.31 ! moko 920: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 921: # Reject names that are not valid shell variable names.
1.31 ! 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 parser 932: esac
1.31 ! moko 933: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 parser 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=*)
1.10 paf 942: exec_prefix=$ac_optarg ;;
1.1 parser 943:
944: -gas | --gas | --ga | --g)
945: # Obsolete; use --with-gas.
946: with_gas=yes ;;
947:
1.10 paf 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 ;;
1.1 parser 954:
955: -host | --host | --hos | --ho)
1.10 paf 956: ac_prev=host_alias ;;
1.1 parser 957: -host=* | --host=* | --hos=* | --ho=*)
1.10 paf 958: host_alias=$ac_optarg ;;
1.1 parser 959:
1.31 ! 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 parser 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=*)
1.10 paf 971: includedir=$ac_optarg ;;
1.1 parser 972:
973: -infodir | --infodir | --infodi | --infod | --info | --inf)
974: ac_prev=infodir ;;
975: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.10 paf 976: infodir=$ac_optarg ;;
1.1 parser 977:
978: -libdir | --libdir | --libdi | --libd)
979: ac_prev=libdir ;;
980: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.10 paf 981: libdir=$ac_optarg ;;
1.1 parser 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=*)
1.10 paf 988: libexecdir=$ac_optarg ;;
1.1 parser 989:
1.31 ! moko 990: -localedir | --localedir | --localedi | --localed | --locale)
! 991: ac_prev=localedir ;;
! 992: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
! 993: localedir=$ac_optarg ;;
! 994:
1.1 parser 995: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.31 ! moko 996: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 parser 997: ac_prev=localstatedir ;;
998: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.31 ! moko 999: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.10 paf 1000: localstatedir=$ac_optarg ;;
1.1 parser 1001:
1002: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003: ac_prev=mandir ;;
1004: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.10 paf 1005: mandir=$ac_optarg ;;
1.1 parser 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 \
1.10 paf 1012: | --no-cr | --no-c | -n)
1.1 parser 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=*)
1.10 paf 1026: oldincludedir=$ac_optarg ;;
1.1 parser 1027:
1028: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029: ac_prev=prefix ;;
1030: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.10 paf 1031: prefix=$ac_optarg ;;
1.1 parser 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=*)
1.10 paf 1038: program_prefix=$ac_optarg ;;
1.1 parser 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=*)
1.10 paf 1045: program_suffix=$ac_optarg ;;
1.1 parser 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=*)
1.10 paf 1062: program_transform_name=$ac_optarg ;;
1.1 parser 1063:
1.31 ! 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 parser 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=*)
1.10 paf 1082: sbindir=$ac_optarg ;;
1.1 parser 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=*)
1.10 paf 1093: sharedstatedir=$ac_optarg ;;
1.1 parser 1094:
1095: -site | --site | --sit)
1096: ac_prev=site ;;
1097: -site=* | --site=* | --sit=*)
1.10 paf 1098: site=$ac_optarg ;;
1.1 parser 1099:
1100: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101: ac_prev=srcdir ;;
1102: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.10 paf 1103: srcdir=$ac_optarg ;;
1.1 parser 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=*)
1.10 paf 1110: sysconfdir=$ac_optarg ;;
1.1 parser 1111:
1112: -target | --target | --targe | --targ | --tar | --ta | --t)
1.10 paf 1113: ac_prev=target_alias ;;
1.1 parser 1114: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.10 paf 1115: target_alias=$ac_optarg ;;
1.1 parser 1116:
1117: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118: verbose=yes ;;
1119:
1.10 paf 1120: -version | --version | --versio | --versi | --vers | -V)
1121: ac_init_version=: ;;
1.1 parser 1122:
1123: -with-* | --with-*)
1.31 ! moko 1124: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 1125: # Reject names that are not valid shell variable names.
1.31 ! 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 parser 1136: esac
1.31 ! moko 1137: eval with_$ac_useropt=\$ac_optarg ;;
1.1 parser 1138:
1139: -without-* | --without-*)
1.31 ! moko 1140: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 1141: # Reject names that are not valid shell variable names.
1.31 ! 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 parser 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=*)
1.10 paf 1164: x_includes=$ac_optarg ;;
1.1 parser 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=*)
1.10 paf 1171: x_libraries=$ac_optarg ;;
1.1 parser 1172:
1.31 ! moko 1173: -*) as_fn_error $? "unrecognized option: \`$ac_option'
! 1174: Try \`$0 --help' for more information"
1.1 parser 1175: ;;
1176:
1.10 paf 1177: *=*)
1178: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179: # Reject names that are not valid shell variable names.
1.31 ! 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.10 paf 1185: export $ac_envvar ;;
1186:
1.1 parser 1187: *)
1.10 paf 1188: # FIXME: should be removed in autoconf 3.0.
1.31 ! moko 1189: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.10 paf 1190: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.31 ! 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 parser 1193: ;;
1194:
1195: esac
1196: done
1197:
1198: if test -n "$ac_prev"; then
1.10 paf 1199: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.31 ! 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.1 parser 1209: fi
1210:
1.31 ! 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.10 paf 1216: do
1.31 ! moko 1217: eval ac_val=\$$ac_var
! 1218: # Remove trailing slashes.
1.10 paf 1219: case $ac_val in
1.31 ! moko 1220: */ )
! 1221: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
! 1222: eval $ac_var=\$ac_val;;
1.10 paf 1223: esac
1.31 ! moko 1224: # Be sure to have absolute directory names.
1.10 paf 1225: case $ac_val in
1.31 ! moko 1226: [\\/$]* | ?:[\\/]* ) continue;;
! 1227: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 parser 1228: esac
1.31 ! moko 1229: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 parser 1230: done
1231:
1.10 paf 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.31 ! 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.10 paf 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-
1.1 parser 1252:
1.10 paf 1253: test "$silent" = yes && exec 6>/dev/null
1.1 parser 1254:
1255:
1.31 ! 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 parser 1264: # Find the source files, if location was not specified.
1265: if test -z "$srcdir"; then
1266: ac_srcdir_defaulted=yes
1.31 ! 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 parser 1291: srcdir=$ac_confdir
1.31 ! moko 1292: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 parser 1293: srcdir=..
1294: fi
1295: else
1296: ac_srcdir_defaulted=no
1297: fi
1.31 ! 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.10 paf 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.23 moko 1330: \`configure' configures parser3pgsql.C 10.3 to adapt to many kinds of systems.
1.10 paf 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.31 ! moko 1344: -q, --quiet, --silent do not print \`checking ...' messages
1.10 paf 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.31 ! moko 1352: [$ac_default_prefix]
1.10 paf 1353: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.31 ! moko 1354: [PREFIX]
1.10 paf 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.31 ! 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/parser3pgsql-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.10 paf 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.23 moko 1399: case $ac_init_help in
1400: short | recursive ) echo "Configuration of parser3pgsql.C 10.3:";;
1401: esac
1.10 paf 1402: cat <<\_ACEOF
1403:
1404: Optional Features:
1.31 ! moko 1405: --disable-option-checking ignore unrecognized --enable/--with options
1.10 paf 1406: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.16 paf 1408: --disable-dependency-tracking speeds up one-time build
1409: --enable-dependency-tracking do not reject slow dependency extractors
1.31 ! moko 1410: --enable-static[=PKGS] build static libraries [default=no]
! 1411: --enable-shared[=PKGS] build shared libraries [default=yes]
1.23 moko 1412: --enable-fast-install[=PKGS]
1413: optimize for fast installation [default=yes]
1.10 paf 1414: --disable-libtool-lock avoid locking (might break parallel builds)
1.23 moko 1415: --enable-ltdl-install install libltdl
1.10 paf 1416:
1417: Optional Packages:
1418: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.23 moko 1420: --with-pgsql-inc=DIR DIR is the PgSql includes directory
1.31 ! moko 1421: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.23 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.10 paf 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.31 ! 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.10 paf 1438: CC C compiler command
1439: CFLAGS C compiler flags
1.15 paf 1440: CPP C preprocessor
1.23 moko 1441: CXXCPP C++ preprocessor
1.10 paf 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.31 ! moko 1446: Report bugs to the package provider.
1.10 paf 1447: _ACEOF
1.31 ! moko 1448: ac_status=$?
1.10 paf 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.31 ! moko 1454: test -d "$ac_dir" ||
! 1455: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
! 1456: continue
1.10 paf 1457: ac_builddir=.
1458:
1.31 ! 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.10 paf 1474:
1475: case $srcdir in
1.31 ! moko 1476: .) # We are building in place.
1.10 paf 1477: ac_srcdir=.
1.31 ! moko 1478: ac_top_srcdir=$ac_top_builddir_sub
! 1479: ac_abs_top_srcdir=$ac_pwd ;;
! 1480: [\\/]* | ?:[\\/]* ) # Absolute name.
1.10 paf 1481: ac_srcdir=$srcdir$ac_dir_suffix;
1.31 ! 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.10 paf 1488: esac
1.31 ! moko 1489: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.16 paf 1490:
1.31 ! 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.10 paf 1499: else
1.31 ! 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.10 paf 1503: done
1504: fi
1.1 parser 1505:
1.31 ! moko 1506: test -n "$ac_init_help" && exit $ac_status
1.10 paf 1507: if $ac_init_version; then
1508: cat <<\_ACEOF
1.23 moko 1509: parser3pgsql.C configure 10.3
1.31 ! moko 1510: generated by GNU Autoconf 2.68
1.10 paf 1511:
1.31 ! moko 1512: Copyright (C) 2010 Free Software Foundation, Inc.
1.10 paf 1513: This configure script is free software; the Free Software Foundation
1514: gives unlimited permission to copy, distribute and modify it.
1515: _ACEOF
1.31 ! moko 1516: exit
1.10 paf 1517: fi
1518:
1.31 ! 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 paf 1558:
1.31 ! moko 1559: } # ac_fn_cxx_try_compile
1.10 paf 1560:
1.31 ! 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.10 paf 1565: {
1.31 ! 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 parser3pgsql.C $as_me 10.3, 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 paf 2107:
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`
2113:
2114: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
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.31 ! moko 2120: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.10 paf 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.31 ! moko 2132: $as_echo "PATH: $as_dir"
! 2133: done
! 2134: IFS=$as_save_IFS
1.10 paf 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.31 ! moko 2166: *\'*)
! 2167: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.10 paf 2168: esac
2169: case $ac_pass in
1.31 ! moko 2170: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.10 paf 2171: 2)
1.31 ! moko 2172: as_fn_append ac_configure_args1 " '$ac_arg'"
1.10 paf 2173: if test $ac_must_keep_next = true; then
1.16 paf 2174: ac_must_keep_next=false # Got value, back to normal.
1.10 paf 2175: else
1.16 paf 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
1.10 paf 2187: fi
1.31 ! moko 2188: as_fn_append ac_configure_args " '$ac_arg'"
1.10 paf 2189: ;;
2190: esac
2191: done
2192: done
1.31 ! moko 2193: { ac_configure_args0=; unset ac_configure_args0;}
! 2194: { ac_configure_args1=; unset ac_configure_args1;}
1.10 paf 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.31 ! 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.10 paf 2201: trap 'exit_status=$?
2202: # Save into config.log some information that might help in debugging.
2203: {
2204: echo
2205:
1.31 ! moko 2206: $as_echo "## ---------------- ##
1.10 paf 2207: ## Cache variables. ##
1.31 ! moko 2208: ## ---------------- ##"
1.10 paf 2209: echo
2210: # The following way of writing the cache mishandles newlines in values,
1.31 ! 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.10 paf 2227: (set) 2>&1 |
1.31 ! moko 2228: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
! 2229: *${as_nl}ac_space=\ *)
1.10 paf 2230: sed -n \
1.31 ! moko 2231: "s/'\''/'\''\\\\'\'''\''/g;
! 2232: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
! 2233: ;; #(
1.10 paf 2234: *)
1.31 ! moko 2235: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.10 paf 2236: ;;
1.31 ! moko 2237: esac |
! 2238: sort
! 2239: )
1.10 paf 2240: echo
2241:
1.31 ! moko 2242: $as_echo "## ----------------- ##
1.10 paf 2243: ## Output variables. ##
1.31 ! moko 2244: ## ----------------- ##"
1.10 paf 2245: echo
2246: for ac_var in $ac_subst_vars
2247: do
1.31 ! 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.10 paf 2253: done | sort
2254: echo
2255:
2256: if test -n "$ac_subst_files"; then
1.31 ! moko 2257: $as_echo "## ------------------- ##
! 2258: ## File substitutions. ##
! 2259: ## ------------------- ##"
1.10 paf 2260: echo
2261: for ac_var in $ac_subst_files
2262: do
1.31 ! 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.10 paf 2268: done | sort
2269: echo
2270: fi
2271:
2272: if test -s confdefs.h; then
1.31 ! moko 2273: $as_echo "## ----------- ##
1.10 paf 2274: ## confdefs.h. ##
1.31 ! moko 2275: ## ----------- ##"
1.10 paf 2276: echo
1.31 ! moko 2277: cat confdefs.h
1.10 paf 2278: echo
2279: fi
2280: test "$ac_signal" != 0 &&
1.31 ! moko 2281: $as_echo "$as_me: caught signal $ac_signal"
! 2282: $as_echo "$as_me: exit $exit_status"
1.10 paf 2283: } >&5
1.31 ! moko 2284: rm -f core *.core core.conftest.* &&
! 2285: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.10 paf 2286: exit $exit_status
1.31 ! moko 2287: ' 0
1.10 paf 2288: for ac_signal in 1 2 13 15; do
1.31 ! moko 2289: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.10 paf 2290: done
2291: ac_signal=0
2292:
2293: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.31 ! moko 2294: rm -f -r conftest* confdefs.h
! 2295:
! 2296: $as_echo "/* confdefs.h */" > confdefs.h
1.10 paf 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.31 ! moko 2316: cat >>confdefs.h <<_ACEOF
! 2317: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
! 2318: _ACEOF
1.10 paf 2319:
2320: cat >>confdefs.h <<_ACEOF
1.31 ! moko 2321: #define PACKAGE_URL "$PACKAGE_URL"
1.10 paf 2322: _ACEOF
2323:
2324:
2325: # Let the site file select an alternate cache file if it wants to.
1.31 ! 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.10 paf 2349: sed 's/^/| /' "$ac_site_file" >&5
1.31 ! 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 parser 2355: fi
2356: done
2357:
2358: if test -r "$cache_file"; then
1.31 ! 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.10 paf 2364: case $cache_file in
1.31 ! moko 2365: [\\/]* | ?:[\\/]* ) . "$cache_file";;
! 2366: *) . "./$cache_file";;
1.10 paf 2367: esac
2368: fi
1.1 parser 2369: else
1.31 ! 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.10 paf 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.31 ! moko 2378: for ac_var in $ac_precious_vars; do
1.10 paf 2379: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2380: eval ac_new_set=\$ac_env_${ac_var}_set
1.31 ! moko 2381: eval ac_old_val=\$ac_cv_env_${ac_var}_value
! 2382: eval ac_new_val=\$ac_env_${ac_var}_value
1.10 paf 2383: case $ac_old_set,$ac_new_set in
2384: set,)
1.31 ! 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.10 paf 2387: ac_cache_corrupted=: ;;
2388: ,set)
1.31 ! 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.10 paf 2391: ac_cache_corrupted=: ;;
2392: ,);;
2393: *)
2394: if test "x$ac_old_val" != "x$ac_new_val"; then
1.31 ! 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.10 paf 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.31 ! moko 2416: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.10 paf 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.31 ! moko 2421: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.10 paf 2422: esac
2423: fi
2424: done
2425: if $ac_cache_corrupted; then
1.31 ! 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 parser 2435:
2436: ac_ext=c
2437: ac_cpp='$CPP $CPPFLAGS'
1.10 paf 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
1.1 parser 2441:
2442:
1.10 paf 2443:
1.31 ! moko 2444: ac_config_headers="$ac_config_headers config_auto.h"
1.10 paf 2445:
2446:
1.31 ! moko 2447: am__api_version='1.11'
1.10 paf 2448:
1.1 parser 2449: ac_aux_dir=
1.31 ! moko 2450: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
! 2451: if test -f "$ac_dir/install-sh"; then
1.1 parser 2452: ac_aux_dir=$ac_dir
2453: ac_install_sh="$ac_aux_dir/install-sh -c"
2454: break
1.31 ! moko 2455: elif test -f "$ac_dir/install.sh"; then
1.1 parser 2456: ac_aux_dir=$ac_dir
2457: ac_install_sh="$ac_aux_dir/install.sh -c"
2458: break
1.31 ! moko 2459: elif test -f "$ac_dir/shtool"; then
1.10 paf 2460: ac_aux_dir=$ac_dir
2461: ac_install_sh="$ac_aux_dir/shtool install -c"
2462: break
1.1 parser 2463: fi
2464: done
2465: if test -z "$ac_aux_dir"; then
1.31 ! 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 parser 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
1.10 paf 2485: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 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"
1.16 paf 2489: # OS/2's system install, which has a completely different semantic
1.1 parser 2490: # ./install, which can be erroneously created by make from ./install.sh.
1.31 ! 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 parser 2494: if test -z "$INSTALL"; then
1.31 ! moko 2495: if ${ac_cv_path_install+:} false; then :
! 2496: $as_echo_n "(cached) " >&6
1.1 parser 2497: else
1.10 paf 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.31 ! moko 2503: # Account for people who put trailing slashes in PATH elements.
! 2504: case $as_dir/ in #((
! 2505: ./ | .// | /[cC]/* | \
1.10 paf 2506: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.31 ! moko 2507: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.10 paf 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.31 ! moko 2515: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.16 paf 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.31 ! 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.16 paf 2537: fi
2538: fi
1.1 parser 2539: done
1.10 paf 2540: done
2541: ;;
2542: esac
2543:
1.31 ! moko 2544: done
! 2545: IFS=$as_save_IFS
! 2546:
! 2547: rm -rf conftest.one conftest.two conftest.dir
1.1 parser 2548:
2549: fi
2550: if test "${ac_cv_path_install+set}" = set; then
1.10 paf 2551: INSTALL=$ac_cv_path_install
1.1 parser 2552: else
1.31 ! 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 parser 2555: # break other packages using the cache if that directory is
1.31 ! moko 2556: # removed, or if the value is a relative name.
1.10 paf 2557: INSTALL=$ac_install_sh
1.1 parser 2558: fi
2559: fi
1.31 ! moko 2560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
! 2561: $as_echo "$INSTALL" >&6; }
1.1 parser 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:
1.10 paf 2567: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 2568:
2569: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570:
1.31 ! 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 parser 2573: # Just in case
2574: sleep 1
1.10 paf 2575: echo timestamp > conftest.file
1.31 ! 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 parser 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.31 ! moko 2595: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.1 parser 2596: if test "$*" = "X"; then
2597: # -L didn't work.
1.31 ! moko 2598: set X `ls -t "$srcdir/configure" conftest.file`
1.1 parser 2599: fi
1.10 paf 2600: rm -f conftest.file
2601: if test "$*" != "X $srcdir/configure conftest.file" \
2602: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 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.31 ! 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 parser 2610: fi
2611:
1.10 paf 2612: test "$2" = conftest.file
1.1 parser 2613: )
2614: then
2615: # Ok.
2616: :
2617: else
1.31 ! moko 2618: as_fn_error $? "newly created file is older than distributed files!
! 2619: Check your system clock" "$LINENO" 5
1.1 parser 2620: fi
1.31 ! moko 2621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 2622: $as_echo "yes" >&6; }
1.1 parser 2623: test "$program_prefix" != NONE &&
1.31 ! moko 2624: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 parser 2625: # Use a double $ so make ignores it.
2626: test "$program_suffix" != NONE &&
1.31 ! moko 2627: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
! 2628: # Double any \ or $.
1.10 paf 2629: # By default was `s,x,x', remove it if useless.
1.31 ! moko 2630: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
! 2631: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.10 paf 2632:
2633: # expand $ac_aux_dir to an absolute path
2634: am_aux_dir=`cd $ac_aux_dir && pwd`
2635:
1.31 ! 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.10 paf 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.31 ! 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.10 paf 2651: fi
2652:
1.31 ! 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.16 paf 2785: done
1.31 ! 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.16 paf 2793: else
1.31 ! 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.16 paf 2799: fi
2800: fi
1.31 ! 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.16 paf 2809:
1.10 paf 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.31 ! 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.10 paf 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.31 ! 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.10 paf 2829: ac_cv_prog_AWK="$ac_prog"
1.31 ! moko 2830: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 2831: break 2
2832: fi
2833: done
1.31 ! moko 2834: done
! 2835: IFS=$as_save_IFS
1.10 paf 2836:
2837: fi
2838: fi
2839: AWK=$ac_cv_prog_AWK
2840: if test -n "$AWK"; then
1.31 ! moko 2841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
! 2842: $as_echo "$AWK" >&6; }
1.10 paf 2843: else
1.31 ! moko 2844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2845: $as_echo "no" >&6; }
1.10 paf 2846: fi
1.1 parser 2847:
1.31 ! moko 2848:
1.10 paf 2849: test -n "$AWK" && break
2850: done
1.1 parser 2851:
1.31 ! 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 parser 2858: else
1.10 paf 2859: cat >conftest.make <<\_ACEOF
1.31 ! moko 2860: SHELL = /bin/sh
1.1 parser 2861: all:
1.31 ! moko 2862: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.10 paf 2863: _ACEOF
1.31 ! 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.10 paf 2871: rm -f conftest.make
1.1 parser 2872: fi
1.31 ! 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 parser 2876: SET_MAKE=
2877: else
1.31 ! moko 2878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2879: $as_echo "no" >&6; }
1.1 parser 2880: SET_MAKE="MAKE=${MAKE-make}"
2881: fi
2882:
1.16 paf 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.31 ! 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.10 paf 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.23 moko 2913: PACKAGE='parser3pgsql-c'
2914: VERSION='10.3'
2915:
2916:
2917: cat >>confdefs.h <<_ACEOF
2918: #define PACKAGE "$PACKAGE"
2919: _ACEOF
2920:
1.1 parser 2921:
1.23 moko 2922: cat >>confdefs.h <<_ACEOF
2923: #define VERSION "$VERSION"
2924: _ACEOF
1.1 parser 2925:
1.10 paf 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"}
1.1 parser 2941:
1.10 paf 2942: # We need awk for the "check" target. The system "awk" is bad on
2943: # some platforms.
1.16 paf 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:
1.1 parser 2951:
2952:
2953:
2954:
1.23 moko 2955:
1.10 paf 2956:
1.1 parser 2957:
1.31 ! moko 2958: # Check whether --with-pgsql-inc was given.
! 2959: if test "${with_pgsql_inc+set}" = set; then :
! 2960: withval=$with_pgsql_inc;
1.23 moko 2961: if test -r "$withval/libpq-fe.h"; then
2962: PGSQL_INC=$withval
2963: fi
2964:
2965:
2966: if test -z "$PGSQL_INC"; then
1.31 ! moko 2967: as_fn_error $? "$PGSQL_INC does not seem to be valid PgSql includes directory" "$LINENO" 5
1.23 moko 2968: fi
2969:
1.1 parser 2970: else
1.31 ! moko 2971: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PGSQL_INC directory" >&5
! 2972: $as_echo_n "checking for PGSQL_INC directory... " >&6; }
1.23 moko 2973: for d in \
2974: /usr/local/include/postgresql \
2975: /usr/include/postgresql \
2976: /usr/local/pgsql/include ; do
1.1 parser 2977:
1.23 moko 2978: if test -r "$d/libpq-fe.h"; then
2979: PGSQL_INC=$d
2980: fi
1.1 parser 2981:
1.23 moko 2982: done
1.1 parser 2983:
1.23 moko 2984: if test -z "$PGSQL_INC"; then
1.31 ! moko 2985: as_fn_error $? "use --with-pgsql-inc=DIR to specify PgSql includes directory" "$LINENO" 5
1.23 moko 2986: fi
2987:
1.31 ! moko 2988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_INC" >&5
! 2989: $as_echo "$PGSQL_INC" >&6; }
1.23 moko 2990:
1.31 ! moko 2991: fi
1.10 paf 2992:
1.1 parser 2993:
2994:
2995:
2996:
1.31 ! moko 2997: ac_ext=cpp
1.10 paf 2998: ac_cpp='$CXXCPP $CPPFLAGS'
2999: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.31 ! moko 3002: if test -z "$CXX"; then
! 3003: if test -n "$CCC"; then
! 3004: CXX=$CCC
! 3005: else
! 3006: if test -n "$ac_tool_prefix"; then
! 3007: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.10 paf 3008: do
3009: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3010: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 ! moko 3011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3012: $as_echo_n "checking for $ac_word... " >&6; }
! 3013: if ${ac_cv_prog_CXX+:} false; then :
! 3014: $as_echo_n "(cached) " >&6
1.1 parser 3015: else
3016: if test -n "$CXX"; then
3017: ac_cv_prog_CXX="$CXX" # Let the user override the test.
3018: else
1.10 paf 3019: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020: for as_dir in $PATH
3021: do
3022: IFS=$as_save_IFS
3023: test -z "$as_dir" && as_dir=.
1.31 ! moko 3024: for ac_exec_ext in '' $ac_executable_extensions; do
! 3025: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10 paf 3026: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.31 ! moko 3027: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3028: break 2
3029: fi
3030: done
1.31 ! moko 3031: done
! 3032: IFS=$as_save_IFS
1.10 paf 3033:
1.1 parser 3034: fi
3035: fi
1.10 paf 3036: CXX=$ac_cv_prog_CXX
1.1 parser 3037: if test -n "$CXX"; then
1.31 ! moko 3038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
! 3039: $as_echo "$CXX" >&6; }
1.1 parser 3040: else
1.31 ! moko 3041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3042: $as_echo "no" >&6; }
1.1 parser 3043: fi
3044:
1.31 ! moko 3045:
1.10 paf 3046: test -n "$CXX" && break
3047: done
3048: fi
3049: if test -z "$CXX"; then
3050: ac_ct_CXX=$CXX
1.31 ! moko 3051: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.10 paf 3052: do
3053: # Extract the first word of "$ac_prog", so it can be a program name with args.
3054: set dummy $ac_prog; ac_word=$2
1.31 ! moko 3055: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3056: $as_echo_n "checking for $ac_word... " >&6; }
! 3057: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
! 3058: $as_echo_n "(cached) " >&6
1.10 paf 3059: else
3060: if test -n "$ac_ct_CXX"; then
3061: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3062: else
3063: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064: for as_dir in $PATH
3065: do
3066: IFS=$as_save_IFS
3067: test -z "$as_dir" && as_dir=.
1.31 ! moko 3068: for ac_exec_ext in '' $ac_executable_extensions; do
! 3069: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10 paf 3070: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.31 ! moko 3071: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3072: break 2
3073: fi
3074: done
1.31 ! moko 3075: done
! 3076: IFS=$as_save_IFS
1.1 parser 3077:
1.10 paf 3078: fi
3079: fi
3080: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3081: if test -n "$ac_ct_CXX"; then
1.31 ! moko 3082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
! 3083: $as_echo "$ac_ct_CXX" >&6; }
1.10 paf 3084: else
1.31 ! moko 3085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3086: $as_echo "no" >&6; }
1.10 paf 3087: fi
1.1 parser 3088:
1.31 ! moko 3089:
1.10 paf 3090: test -n "$ac_ct_CXX" && break
3091: done
1.1 parser 3092:
1.31 ! moko 3093: if test "x$ac_ct_CXX" = x; then
! 3094: CXX="g++"
! 3095: else
! 3096: case $cross_compiling:$ac_tool_warned in
! 3097: yes:)
! 3098: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3099: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 3100: ac_tool_warned=yes ;;
! 3101: esac
! 3102: CXX=$ac_ct_CXX
! 3103: fi
1.10 paf 3104: fi
1.1 parser 3105:
1.31 ! moko 3106: fi
! 3107: fi
1.10 paf 3108: # Provide some information about the compiler.
1.31 ! moko 3109: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
! 3110: set X $ac_compile
! 3111: ac_compiler=$2
! 3112: for ac_option in --version -v -V -qversion; do
! 3113: { { ac_try="$ac_compiler $ac_option >&5"
! 3114: case "(($ac_try" in
! 3115: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3116: *) ac_try_echo=$ac_try;;
! 3117: esac
! 3118: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3119: $as_echo "$ac_try_echo"; } >&5
! 3120: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.10 paf 3121: ac_status=$?
1.31 ! moko 3122: if test -s conftest.err; then
! 3123: sed '10a\
! 3124: ... rest of stderr output deleted ...
! 3125: 10q' conftest.err >conftest.er1
! 3126: cat conftest.er1 >&5
! 3127: fi
! 3128: rm -f conftest.er1 conftest.err
! 3129: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3130: test $ac_status = 0; }
! 3131: done
1.10 paf 3132:
1.31 ! moko 3133: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3134: /* end confdefs.h. */
3135:
3136: int
3137: main ()
3138: {
3139:
3140: ;
3141: return 0;
3142: }
3143: _ACEOF
3144: ac_clean_files_save=$ac_clean_files
1.31 ! moko 3145: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.10 paf 3146: # Try to create an executable without -o first, disregard a.out.
3147: # It will help us diagnose broken compilers, and finding out an intuition
3148: # of exeext.
1.31 ! moko 3149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
! 3150: $as_echo_n "checking whether the C++ compiler works... " >&6; }
! 3151: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 3152:
! 3153: # The possible output files:
! 3154: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
! 3155:
! 3156: ac_rmfiles=
! 3157: for ac_file in $ac_files
! 3158: do
! 3159: case $ac_file in
! 3160: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
! 3161: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
! 3162: esac
! 3163: done
! 3164: rm -f $ac_rmfiles
! 3165:
! 3166: if { { ac_try="$ac_link_default"
! 3167: case "(($ac_try" in
! 3168: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3169: *) ac_try_echo=$ac_try;;
! 3170: esac
! 3171: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3172: $as_echo "$ac_try_echo"; } >&5
! 3173: (eval "$ac_link_default") 2>&5
! 3174: ac_status=$?
! 3175: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3176: test $ac_status = 0; }; then :
! 3177: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
! 3178: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
! 3179: # in a Makefile. We should not override ac_cv_exeext if it was cached,
! 3180: # so that the user can short-circuit this test for compilers unknown to
! 3181: # Autoconf.
! 3182: for ac_file in $ac_files ''
1.10 paf 3183: do
3184: test -f "$ac_file" || continue
3185: case $ac_file in
1.31 ! moko 3186: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.16 paf 3187: ;;
1.10 paf 3188: [ab].out )
1.16 paf 3189: # We found the default executable, but exeext='' is most
3190: # certainly right.
3191: break;;
1.10 paf 3192: *.* )
1.31 ! moko 3193: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
! 3194: then :; else
! 3195: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 3196: fi
! 3197: # We set ac_cv_exeext here because the later test for it is not
! 3198: # safe: cross compilers may not add the suffix if given an `-o'
! 3199: # argument, so we may need to know it at that point already.
! 3200: # Even if this section looks crufty: it has the advantage of
! 3201: # actually working.
1.16 paf 3202: break;;
1.10 paf 3203: * )
1.16 paf 3204: break;;
1.10 paf 3205: esac
3206: done
1.31 ! moko 3207: test "$ac_cv_exeext" = no && ac_cv_exeext=
! 3208:
1.10 paf 3209: else
1.31 ! moko 3210: ac_file=''
! 3211: fi
! 3212: if test -z "$ac_file"; then :
! 3213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3214: $as_echo "no" >&6; }
! 3215: $as_echo "$as_me: failed program was:" >&5
1.10 paf 3216: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3217:
1.31 ! moko 3218: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3219: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3220: as_fn_error 77 "C++ compiler cannot create executables
! 3221: See \`config.log' for more details" "$LINENO" 5; }
! 3222: else
! 3223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 3224: $as_echo "yes" >&6; }
! 3225: fi
! 3226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
! 3227: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
! 3228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
! 3229: $as_echo "$ac_file" >&6; }
1.10 paf 3230: ac_exeext=$ac_cv_exeext
3231:
1.31 ! moko 3232: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.10 paf 3233: ac_clean_files=$ac_clean_files_save
1.31 ! moko 3234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
! 3235: $as_echo_n "checking for suffix of executables... " >&6; }
! 3236: if { { ac_try="$ac_link"
! 3237: case "(($ac_try" in
! 3238: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3239: *) ac_try_echo=$ac_try;;
! 3240: esac
! 3241: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3242: $as_echo "$ac_try_echo"; } >&5
! 3243: (eval "$ac_link") 2>&5
1.10 paf 3244: ac_status=$?
1.31 ! moko 3245: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3246: test $ac_status = 0; }; then :
1.10 paf 3247: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3248: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3249: # work properly (i.e., refer to `conftest.exe'), while it won't with
3250: # `rm'.
3251: for ac_file in conftest.exe conftest conftest.*; do
3252: test -f "$ac_file" || continue
3253: case $ac_file in
1.31 ! moko 3254: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.10 paf 3255: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.16 paf 3256: break;;
1.10 paf 3257: * ) break;;
3258: esac
3259: done
1.1 parser 3260: else
1.31 ! moko 3261: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3262: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3263: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
! 3264: See \`config.log' for more details" "$LINENO" 5; }
! 3265: fi
! 3266: rm -f conftest conftest$ac_cv_exeext
! 3267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
! 3268: $as_echo "$ac_cv_exeext" >&6; }
1.10 paf 3269:
3270: rm -f conftest.$ac_ext
3271: EXEEXT=$ac_cv_exeext
3272: ac_exeext=$EXEEXT
1.31 ! moko 3273: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3274: /* end confdefs.h. */
! 3275: #include <stdio.h>
! 3276: int
! 3277: main ()
! 3278: {
! 3279: FILE *f = fopen ("conftest.out", "w");
! 3280: return ferror (f) || fclose (f) != 0;
! 3281:
! 3282: ;
! 3283: return 0;
! 3284: }
! 3285: _ACEOF
! 3286: ac_clean_files="$ac_clean_files conftest.out"
! 3287: # Check that the compiler produces executables we can run. If not, either
! 3288: # the compiler is broken, or we cross compile.
! 3289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
! 3290: $as_echo_n "checking whether we are cross compiling... " >&6; }
! 3291: if test "$cross_compiling" != yes; then
! 3292: { { ac_try="$ac_link"
! 3293: case "(($ac_try" in
! 3294: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3295: *) ac_try_echo=$ac_try;;
! 3296: esac
! 3297: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3298: $as_echo "$ac_try_echo"; } >&5
! 3299: (eval "$ac_link") 2>&5
! 3300: ac_status=$?
! 3301: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3302: test $ac_status = 0; }
! 3303: if { ac_try='./conftest$ac_cv_exeext'
! 3304: { { case "(($ac_try" in
! 3305: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3306: *) ac_try_echo=$ac_try;;
! 3307: esac
! 3308: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3309: $as_echo "$ac_try_echo"; } >&5
! 3310: (eval "$ac_try") 2>&5
! 3311: ac_status=$?
! 3312: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3313: test $ac_status = 0; }; }; then
! 3314: cross_compiling=no
! 3315: else
! 3316: if test "$cross_compiling" = maybe; then
! 3317: cross_compiling=yes
! 3318: else
! 3319: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3320: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3321: as_fn_error $? "cannot run C++ compiled programs.
! 3322: If you meant to cross compile, use \`--host'.
! 3323: See \`config.log' for more details" "$LINENO" 5; }
! 3324: fi
! 3325: fi
! 3326: fi
! 3327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
! 3328: $as_echo "$cross_compiling" >&6; }
! 3329:
! 3330: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
! 3331: ac_clean_files=$ac_clean_files_save
! 3332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
! 3333: $as_echo_n "checking for suffix of object files... " >&6; }
! 3334: if ${ac_cv_objext+:} false; then :
! 3335: $as_echo_n "(cached) " >&6
1.10 paf 3336: else
1.31 ! moko 3337: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3338: /* end confdefs.h. */
3339:
3340: int
3341: main ()
3342: {
3343:
3344: ;
3345: return 0;
3346: }
3347: _ACEOF
3348: rm -f conftest.o conftest.obj
1.31 ! moko 3349: if { { ac_try="$ac_compile"
! 3350: case "(($ac_try" in
! 3351: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3352: *) ac_try_echo=$ac_try;;
! 3353: esac
! 3354: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3355: $as_echo "$ac_try_echo"; } >&5
! 3356: (eval "$ac_compile") 2>&5
! 3357: ac_status=$?
! 3358: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3359: test $ac_status = 0; }; then :
! 3360: for ac_file in conftest.o conftest.obj conftest.*; do
! 3361: test -f "$ac_file" || continue;
1.10 paf 3362: case $ac_file in
1.31 ! moko 3363: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.10 paf 3364: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3365: break;;
3366: esac
3367: done
1.1 parser 3368: else
1.31 ! moko 3369: $as_echo "$as_me: failed program was:" >&5
1.10 paf 3370: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3371:
1.31 ! moko 3372: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3373: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3374: as_fn_error $? "cannot compute suffix of object files: cannot compile
! 3375: See \`config.log' for more details" "$LINENO" 5; }
1.10 paf 3376: fi
3377: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3378: fi
1.31 ! moko 3379: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
! 3380: $as_echo "$ac_cv_objext" >&6; }
1.10 paf 3381: OBJEXT=$ac_cv_objext
3382: ac_objext=$OBJEXT
1.31 ! moko 3383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
! 3384: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
! 3385: if ${ac_cv_cxx_compiler_gnu+:} false; then :
! 3386: $as_echo_n "(cached) " >&6
1.10 paf 3387: else
1.31 ! moko 3388: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3389: /* end confdefs.h. */
3390:
3391: int
3392: main ()
3393: {
3394: #ifndef __GNUC__
3395: choke me
3396: #endif
1.1 parser 3397:
1.10 paf 3398: ;
3399: return 0;
3400: }
3401: _ACEOF
1.31 ! moko 3402: if ac_fn_cxx_try_compile "$LINENO"; then :
1.10 paf 3403: ac_compiler_gnu=yes
3404: else
1.31 ! moko 3405: ac_compiler_gnu=no
1.10 paf 3406: fi
1.31 ! moko 3407: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3408: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3409:
3410: fi
1.31 ! moko 3411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
! 3412: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
! 3413: if test $ac_compiler_gnu = yes; then
! 3414: GXX=yes
! 3415: else
! 3416: GXX=
! 3417: fi
1.10 paf 3418: ac_test_CXXFLAGS=${CXXFLAGS+set}
3419: ac_save_CXXFLAGS=$CXXFLAGS
1.31 ! moko 3420: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
! 3421: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
! 3422: if ${ac_cv_prog_cxx_g+:} false; then :
! 3423: $as_echo_n "(cached) " >&6
! 3424: else
! 3425: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
! 3426: ac_cxx_werror_flag=yes
! 3427: ac_cv_prog_cxx_g=no
! 3428: CXXFLAGS="-g"
! 3429: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3430: /* end confdefs.h. */
3431:
3432: int
3433: main ()
3434: {
3435:
3436: ;
3437: return 0;
3438: }
3439: _ACEOF
1.31 ! moko 3440: if ac_fn_cxx_try_compile "$LINENO"; then :
1.10 paf 3441: ac_cv_prog_cxx_g=yes
1.1 parser 3442: else
1.31 ! moko 3443: CXXFLAGS=""
! 3444: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3445: /* end confdefs.h. */
1.1 parser 3446:
1.10 paf 3447: int
3448: main ()
3449: {
1.31 ! moko 3450:
1.10 paf 3451: ;
3452: return 0;
3453: }
3454: _ACEOF
1.31 ! moko 3455: if ac_fn_cxx_try_compile "$LINENO"; then :
! 3456:
1.10 paf 3457: else
1.31 ! moko 3458: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 3459: CXXFLAGS="-g"
! 3460: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3461: /* end confdefs.h. */
1.31 ! moko 3462:
1.10 paf 3463: int
3464: main ()
3465: {
1.31 ! moko 3466:
1.10 paf 3467: ;
3468: return 0;
3469: }
3470: _ACEOF
1.31 ! moko 3471: if ac_fn_cxx_try_compile "$LINENO"; then :
! 3472: ac_cv_prog_cxx_g=yes
! 3473: fi
! 3474: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3475: fi
! 3476: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3477: fi
! 3478: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3479: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 3480: fi
! 3481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
! 3482: $as_echo "$ac_cv_prog_cxx_g" >&6; }
! 3483: if test "$ac_test_CXXFLAGS" = set; then
! 3484: CXXFLAGS=$ac_save_CXXFLAGS
! 3485: elif test $ac_cv_prog_cxx_g = yes; then
! 3486: if test "$GXX" = yes; then
! 3487: CXXFLAGS="-g -O2"
! 3488: else
! 3489: CXXFLAGS="-g"
! 3490: fi
1.10 paf 3491: else
1.31 ! moko 3492: if test "$GXX" = yes; then
! 3493: CXXFLAGS="-O2"
! 3494: else
! 3495: CXXFLAGS=
! 3496: fi
1.10 paf 3497: fi
1.15 paf 3498: ac_ext=c
3499: ac_cpp='$CPP $CPPFLAGS'
3500: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 paf 3503: DEPDIR="${am__leading_dot}deps"
1.10 paf 3504:
1.31 ! moko 3505: ac_config_commands="$ac_config_commands depfiles"
1.10 paf 3506:
3507:
3508: am_make=${MAKE-make}
3509: cat > confinc << 'END'
1.16 paf 3510: am__doit:
1.31 ! moko 3511: @echo this is the am__doit target
1.16 paf 3512: .PHONY: am__doit
1.10 paf 3513: END
3514: # If we don't find an include directive, just comment out the code.
1.31 ! moko 3515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
! 3516: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.10 paf 3517: am__include="#"
3518: am__quote=
3519: _am_result=none
3520: # First try GNU make style include.
3521: echo "include confinc" > confmf
1.31 ! moko 3522: # Ignore all kinds of additional output from `make'.
! 3523: case `$am_make -s -f confmf 2> /dev/null` in #(
! 3524: *the\ am__doit\ target*)
! 3525: am__include=include
! 3526: am__quote=
! 3527: _am_result=GNU
! 3528: ;;
! 3529: esac
1.10 paf 3530: # Now try BSD make style include.
3531: if test "$am__include" = "#"; then
3532: echo '.include "confinc"' > confmf
1.31 ! moko 3533: case `$am_make -s -f confmf 2> /dev/null` in #(
! 3534: *the\ am__doit\ target*)
! 3535: am__include=.include
! 3536: am__quote="\""
! 3537: _am_result=BSD
! 3538: ;;
! 3539: esac
1.10 paf 3540: fi
3541:
3542:
1.31 ! moko 3543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
! 3544: $as_echo "$_am_result" >&6; }
1.10 paf 3545: rm -f confinc confmf
3546:
1.31 ! moko 3547: # Check whether --enable-dependency-tracking was given.
! 3548: if test "${enable_dependency_tracking+set}" = set; then :
! 3549: enableval=$enable_dependency_tracking;
! 3550: fi
1.10 paf 3551:
3552: if test "x$enable_dependency_tracking" != xno; then
3553: am_depcomp="$ac_aux_dir/depcomp"
3554: AMDEPBACKSLASH='\'
3555: fi
1.31 ! moko 3556: if test "x$enable_dependency_tracking" != xno; then
1.10 paf 3557: AMDEP_TRUE=
3558: AMDEP_FALSE='#'
3559: else
3560: AMDEP_TRUE='#'
3561: AMDEP_FALSE=
3562: fi
3563:
3564:
3565:
3566: depcc="$CXX" am_compiler_list=
3567:
1.31 ! moko 3568: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 3569: $as_echo_n "checking dependency style of $depcc... " >&6; }
! 3570: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
! 3571: $as_echo_n "(cached) " >&6
1.10 paf 3572: else
3573: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3574: # We make a subdir and do the tests there. Otherwise we can end up
3575: # making bogus files that we don't know about and never remove. For
3576: # instance it was reported that on HP-UX the gcc test will end up
3577: # making a dummy file named `D' -- because `-MD' means `put the output
3578: # in D'.
3579: mkdir conftest.dir
3580: # Copy depcomp to subdir because otherwise we won't find it if we're
3581: # using a relative directory.
3582: cp "$am_depcomp" conftest.dir
3583: cd conftest.dir
1.16 paf 3584: # We will build objects and dependencies in a subdirectory because
3585: # it helps to detect inapplicable dependency modes. For instance
3586: # both Tru64's cc and ICC support -MD to output dependencies as a
3587: # side effect of compilation, but ICC will put the dependencies in
3588: # the current directory while Tru64 will put them in the object
3589: # directory.
3590: mkdir sub
1.10 paf 3591:
3592: am_cv_CXX_dependencies_compiler_type=none
3593: if test "$am_compiler_list" = ""; then
3594: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3595: fi
1.31 ! moko 3596: am__universal=false
! 3597: case " $depcc " in #(
! 3598: *\ -arch\ *\ -arch\ *) am__universal=true ;;
! 3599: esac
! 3600:
1.10 paf 3601: for depmode in $am_compiler_list; do
1.16 paf 3602: # Setup a source with many dependencies, because some compilers
3603: # like to wrap large dependency lists on column 80 (with \), and
3604: # we should not choose a depcomp mode which is confused by this.
3605: #
1.10 paf 3606: # We need to recreate these files for each test, as the compiler may
3607: # overwrite some of them when testing with obscure command lines.
3608: # This happens at least with the AIX C compiler.
1.16 paf 3609: : > sub/conftest.c
3610: for i in 1 2 3 4 5 6; do
3611: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3612: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3613: # Solaris 8's {/usr,}/bin/sh.
3614: touch sub/conftst$i.h
3615: done
3616: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 3617:
1.31 ! moko 3618: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 3619: # mode. It turns out that the SunPro C++ compiler does not properly
! 3620: # handle `-M -o', and we need to detect this. Also, some Intel
! 3621: # versions had trouble with output in subdirs
! 3622: am__obj=sub/conftest.${OBJEXT-o}
! 3623: am__minus_obj="-o $am__obj"
1.10 paf 3624: case $depmode in
1.31 ! moko 3625: gcc)
! 3626: # This depmode causes a compiler race in universal mode.
! 3627: test "$am__universal" = false || continue
! 3628: ;;
1.10 paf 3629: nosideeffect)
3630: # after this tag, mechanisms are not by side-effect, so they'll
3631: # only be used when explicitly requested
3632: if test "x$enable_dependency_tracking" = xyes; then
3633: continue
3634: else
3635: break
3636: fi
3637: ;;
1.31 ! moko 3638: msvisualcpp | msvcmsys)
! 3639: # This compiler won't grok `-c -o', but also, the minuso test has
! 3640: # not run yet. These depmodes are late enough in the game, and
! 3641: # so weak that their functioning should not be impacted.
! 3642: am__obj=conftest.${OBJEXT-o}
! 3643: am__minus_obj=
! 3644: ;;
1.10 paf 3645: none) break ;;
3646: esac
3647: if depmode=$depmode \
1.31 ! moko 3648: source=sub/conftest.c object=$am__obj \
1.16 paf 3649: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.31 ! moko 3650: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.16 paf 3651: >/dev/null 2>conftest.err &&
1.31 ! moko 3652: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.16 paf 3653: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.31 ! moko 3654: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 3655: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 3656: # icc doesn't choke on unknown options, it will just issue warnings
3657: # or remarks (even with -Werror). So we grep stderr for any message
3658: # that says an option was ignored or not supported.
3659: # When given -MP, icc 7.0 and 7.1 complain thusly:
3660: # icc: Command line warning: ignoring option '-M'; no argument required
3661: # The diagnosis changed in icc 8.0:
3662: # icc: Command line remark: option '-MP' not supported
3663: if (grep 'ignoring option' conftest.err ||
3664: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3665: am_cv_CXX_dependencies_compiler_type=$depmode
3666: break
3667: fi
1.10 paf 3668: fi
3669: done
3670:
3671: cd ..
3672: rm -rf conftest.dir
3673: else
3674: am_cv_CXX_dependencies_compiler_type=none
3675: fi
3676:
3677: fi
1.31 ! moko 3678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
! 3679: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.10 paf 3680: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3681:
1.31 ! moko 3682: if
1.10 paf 3683: test "x$enable_dependency_tracking" != xno \
3684: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3685: am__fastdepCXX_TRUE=
3686: am__fastdepCXX_FALSE='#'
3687: else
3688: am__fastdepCXX_TRUE='#'
3689: am__fastdepCXX_FALSE=
3690: fi
3691:
1.1 parser 3692:
1.10 paf 3693: ac_ext=c
3694: ac_cpp='$CPP $CPPFLAGS'
3695: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698: if test -n "$ac_tool_prefix"; then
3699: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3700: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.31 ! moko 3701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3702: $as_echo_n "checking for $ac_word... " >&6; }
! 3703: if ${ac_cv_prog_CC+:} false; then :
! 3704: $as_echo_n "(cached) " >&6
1.10 paf 3705: else
3706: if test -n "$CC"; then
3707: ac_cv_prog_CC="$CC" # Let the user override the test.
3708: else
3709: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710: for as_dir in $PATH
3711: do
3712: IFS=$as_save_IFS
3713: test -z "$as_dir" && as_dir=.
1.31 ! moko 3714: for ac_exec_ext in '' $ac_executable_extensions; do
! 3715: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10 paf 3716: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.31 ! moko 3717: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3718: break 2
3719: fi
3720: done
1.31 ! moko 3721: done
! 3722: IFS=$as_save_IFS
1.1 parser 3723:
1.10 paf 3724: fi
3725: fi
3726: CC=$ac_cv_prog_CC
3727: if test -n "$CC"; then
1.31 ! moko 3728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3729: $as_echo "$CC" >&6; }
1.10 paf 3730: else
1.31 ! moko 3731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3732: $as_echo "no" >&6; }
1.10 paf 3733: fi
1.1 parser 3734:
1.31 ! moko 3735:
1.10 paf 3736: fi
3737: if test -z "$ac_cv_prog_CC"; then
3738: ac_ct_CC=$CC
3739: # Extract the first word of "gcc", so it can be a program name with args.
3740: set dummy gcc; ac_word=$2
1.31 ! moko 3741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3742: $as_echo_n "checking for $ac_word... " >&6; }
! 3743: if ${ac_cv_prog_ac_ct_CC+:} false; then :
! 3744: $as_echo_n "(cached) " >&6
1.1 parser 3745: else
1.10 paf 3746: if test -n "$ac_ct_CC"; then
3747: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 3748: else
1.10 paf 3749: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750: for as_dir in $PATH
3751: do
3752: IFS=$as_save_IFS
3753: test -z "$as_dir" && as_dir=.
1.31 ! moko 3754: for ac_exec_ext in '' $ac_executable_extensions; do
! 3755: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10 paf 3756: ac_cv_prog_ac_ct_CC="gcc"
1.31 ! moko 3757: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3758: break 2
3759: fi
3760: done
1.31 ! moko 3761: done
! 3762: IFS=$as_save_IFS
1.10 paf 3763:
3764: fi
1.1 parser 3765: fi
1.10 paf 3766: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3767: if test -n "$ac_ct_CC"; then
1.31 ! moko 3768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 3769: $as_echo "$ac_ct_CC" >&6; }
1.10 paf 3770: else
1.31 ! moko 3771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3772: $as_echo "no" >&6; }
1.1 parser 3773: fi
1.10 paf 3774:
1.31 ! moko 3775: if test "x$ac_ct_CC" = x; then
! 3776: CC=""
! 3777: else
! 3778: case $cross_compiling:$ac_tool_warned in
! 3779: yes:)
! 3780: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3781: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 3782: ac_tool_warned=yes ;;
! 3783: esac
! 3784: CC=$ac_ct_CC
! 3785: fi
1.1 parser 3786: else
1.10 paf 3787: CC="$ac_cv_prog_CC"
1.1 parser 3788: fi
3789:
1.10 paf 3790: if test -z "$CC"; then
1.31 ! moko 3791: if test -n "$ac_tool_prefix"; then
! 3792: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.10 paf 3793: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.31 ! moko 3794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3795: $as_echo_n "checking for $ac_word... " >&6; }
! 3796: if ${ac_cv_prog_CC+:} false; then :
! 3797: $as_echo_n "(cached) " >&6
1.1 parser 3798: else
3799: if test -n "$CC"; then
3800: ac_cv_prog_CC="$CC" # Let the user override the test.
3801: else
1.10 paf 3802: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803: for as_dir in $PATH
3804: do
3805: IFS=$as_save_IFS
3806: test -z "$as_dir" && as_dir=.
1.31 ! moko 3807: for ac_exec_ext in '' $ac_executable_extensions; do
! 3808: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10 paf 3809: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.31 ! moko 3810: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3811: break 2
3812: fi
3813: done
1.31 ! moko 3814: done
! 3815: IFS=$as_save_IFS
1.10 paf 3816:
1.1 parser 3817: fi
3818: fi
1.10 paf 3819: CC=$ac_cv_prog_CC
1.1 parser 3820: if test -n "$CC"; then
1.31 ! moko 3821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3822: $as_echo "$CC" >&6; }
1.10 paf 3823: else
1.31 ! moko 3824: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3825: $as_echo "no" >&6; }
1.10 paf 3826: fi
3827:
1.31 ! moko 3828:
1.10 paf 3829: fi
3830: fi
1.1 parser 3831: if test -z "$CC"; then
3832: # Extract the first word of "cc", so it can be a program name with args.
3833: set dummy cc; ac_word=$2
1.31 ! moko 3834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3835: $as_echo_n "checking for $ac_word... " >&6; }
! 3836: if ${ac_cv_prog_CC+:} false; then :
! 3837: $as_echo_n "(cached) " >&6
1.1 parser 3838: else
3839: if test -n "$CC"; then
3840: ac_cv_prog_CC="$CC" # Let the user override the test.
3841: else
3842: ac_prog_rejected=no
1.10 paf 3843: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844: for as_dir in $PATH
3845: do
3846: IFS=$as_save_IFS
3847: test -z "$as_dir" && as_dir=.
1.31 ! moko 3848: for ac_exec_ext in '' $ac_executable_extensions; do
! 3849: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10 paf 3850: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3851: ac_prog_rejected=yes
3852: continue
3853: fi
3854: ac_cv_prog_CC="cc"
1.31 ! moko 3855: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3856: break 2
3857: fi
3858: done
1.31 ! moko 3859: done
! 3860: IFS=$as_save_IFS
1.10 paf 3861:
1.1 parser 3862: if test $ac_prog_rejected = yes; then
3863: # We found a bogon in the path, so make sure we never use it.
3864: set dummy $ac_cv_prog_CC
3865: shift
1.10 paf 3866: if test $# != 0; then
1.1 parser 3867: # We chose a different compiler from the bogus one.
3868: # However, it has the same basename, so the bogon will be chosen
3869: # first if we set CC to just the basename; use the full file name.
3870: shift
1.10 paf 3871: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3872: fi
3873: fi
3874: fi
3875: fi
1.10 paf 3876: CC=$ac_cv_prog_CC
1.1 parser 3877: if test -n "$CC"; then
1.31 ! moko 3878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3879: $as_echo "$CC" >&6; }
1.1 parser 3880: else
1.31 ! moko 3881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3882: $as_echo "no" >&6; }
1.1 parser 3883: fi
3884:
1.31 ! moko 3885:
1.10 paf 3886: fi
3887: if test -z "$CC"; then
3888: if test -n "$ac_tool_prefix"; then
1.31 ! moko 3889: for ac_prog in cl.exe
1.10 paf 3890: do
3891: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3892: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 ! moko 3893: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3894: $as_echo_n "checking for $ac_word... " >&6; }
! 3895: if ${ac_cv_prog_CC+:} false; then :
! 3896: $as_echo_n "(cached) " >&6
1.1 parser 3897: else
3898: if test -n "$CC"; then
3899: ac_cv_prog_CC="$CC" # Let the user override the test.
3900: else
1.10 paf 3901: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902: for as_dir in $PATH
3903: do
3904: IFS=$as_save_IFS
3905: test -z "$as_dir" && as_dir=.
1.31 ! moko 3906: for ac_exec_ext in '' $ac_executable_extensions; do
! 3907: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10 paf 3908: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.31 ! moko 3909: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3910: break 2
3911: fi
3912: done
1.31 ! moko 3913: done
! 3914: IFS=$as_save_IFS
1.10 paf 3915:
1.1 parser 3916: fi
3917: fi
1.10 paf 3918: CC=$ac_cv_prog_CC
1.1 parser 3919: if test -n "$CC"; then
1.31 ! moko 3920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3921: $as_echo "$CC" >&6; }
1.1 parser 3922: else
1.31 ! moko 3923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3924: $as_echo "no" >&6; }
1.10 paf 3925: fi
3926:
1.31 ! moko 3927:
1.10 paf 3928: test -n "$CC" && break
3929: done
1.1 parser 3930: fi
1.10 paf 3931: if test -z "$CC"; then
3932: ac_ct_CC=$CC
1.31 ! moko 3933: for ac_prog in cl.exe
1.10 paf 3934: do
3935: # Extract the first word of "$ac_prog", so it can be a program name with args.
3936: set dummy $ac_prog; ac_word=$2
1.31 ! moko 3937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3938: $as_echo_n "checking for $ac_word... " >&6; }
! 3939: if ${ac_cv_prog_ac_ct_CC+:} false; then :
! 3940: $as_echo_n "(cached) " >&6
1.10 paf 3941: else
3942: if test -n "$ac_ct_CC"; then
3943: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3944: else
3945: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946: for as_dir in $PATH
3947: do
3948: IFS=$as_save_IFS
3949: test -z "$as_dir" && as_dir=.
1.31 ! moko 3950: for ac_exec_ext in '' $ac_executable_extensions; do
! 3951: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10 paf 3952: ac_cv_prog_ac_ct_CC="$ac_prog"
1.31 ! moko 3953: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3954: break 2
1.1 parser 3955: fi
1.10 paf 3956: done
1.31 ! moko 3957: done
! 3958: IFS=$as_save_IFS
1.10 paf 3959:
3960: fi
3961: fi
3962: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3963: if test -n "$ac_ct_CC"; then
1.31 ! moko 3964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 3965: $as_echo "$ac_ct_CC" >&6; }
1.10 paf 3966: else
1.31 ! moko 3967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3968: $as_echo "no" >&6; }
1.1 parser 3969: fi
3970:
1.31 ! moko 3971:
1.10 paf 3972: test -n "$ac_ct_CC" && break
3973: done
1.1 parser 3974:
1.31 ! moko 3975: if test "x$ac_ct_CC" = x; then
! 3976: CC=""
! 3977: else
! 3978: case $cross_compiling:$ac_tool_warned in
! 3979: yes:)
! 3980: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3981: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 3982: ac_tool_warned=yes ;;
! 3983: esac
! 3984: CC=$ac_ct_CC
! 3985: fi
1.10 paf 3986: fi
1.1 parser 3987:
1.10 paf 3988: fi
1.1 parser 3989:
3990:
1.31 ! moko 3991: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3992: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3993: as_fn_error $? "no acceptable C compiler found in \$PATH
! 3994: See \`config.log' for more details" "$LINENO" 5; }
1.10 paf 3995:
3996: # Provide some information about the compiler.
1.31 ! moko 3997: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
! 3998: set X $ac_compile
! 3999: ac_compiler=$2
! 4000: for ac_option in --version -v -V -qversion; do
! 4001: { { ac_try="$ac_compiler $ac_option >&5"
! 4002: case "(($ac_try" in
! 4003: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4004: *) ac_try_echo=$ac_try;;
! 4005: esac
! 4006: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 4007: $as_echo "$ac_try_echo"; } >&5
! 4008: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.10 paf 4009: ac_status=$?
1.31 ! moko 4010: if test -s conftest.err; then
! 4011: sed '10a\
! 4012: ... rest of stderr output deleted ...
! 4013: 10q' conftest.err >conftest.er1
! 4014: cat conftest.er1 >&5
! 4015: fi
! 4016: rm -f conftest.er1 conftest.err
! 4017: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4018: test $ac_status = 0; }
! 4019: done
! 4020:
! 4021: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
! 4022: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
! 4023: if ${ac_cv_c_compiler_gnu+:} false; then :
! 4024: $as_echo_n "(cached) " >&6
1.10 paf 4025: else
1.31 ! moko 4026: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 4027: /* end confdefs.h. */
4028:
4029: int
4030: main ()
4031: {
4032: #ifndef __GNUC__
4033: choke me
1.1 parser 4034: #endif
4035:
1.10 paf 4036: ;
4037: return 0;
4038: }
4039: _ACEOF
1.31 ! moko 4040: if ac_fn_c_try_compile "$LINENO"; then :
1.10 paf 4041: ac_compiler_gnu=yes
4042: else
1.31 ! moko 4043: ac_compiler_gnu=no
1.10 paf 4044: fi
1.31 ! moko 4045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 4046: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4047:
4048: fi
1.31 ! moko 4049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
! 4050: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
! 4051: if test $ac_compiler_gnu = yes; then
! 4052: GCC=yes
! 4053: else
! 4054: GCC=
! 4055: fi
1.10 paf 4056: ac_test_CFLAGS=${CFLAGS+set}
4057: ac_save_CFLAGS=$CFLAGS
1.31 ! moko 4058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
! 4059: $as_echo_n "checking whether $CC accepts -g... " >&6; }
! 4060: if ${ac_cv_prog_cc_g+:} false; then :
! 4061: $as_echo_n "(cached) " >&6
! 4062: else
! 4063: ac_save_c_werror_flag=$ac_c_werror_flag
! 4064: ac_c_werror_flag=yes
! 4065: ac_cv_prog_cc_g=no
! 4066: CFLAGS="-g"
! 4067: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4068: /* end confdefs.h. */
! 4069:
! 4070: int
! 4071: main ()
! 4072: {
! 4073:
! 4074: ;
! 4075: return 0;
! 4076: }
! 4077: _ACEOF
! 4078: if ac_fn_c_try_compile "$LINENO"; then :
! 4079: ac_cv_prog_cc_g=yes
1.10 paf 4080: else
1.31 ! moko 4081: CFLAGS=""
! 4082: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4083: /* end confdefs.h. */
! 4084:
! 4085: int
! 4086: main ()
! 4087: {
! 4088:
! 4089: ;
! 4090: return 0;
! 4091: }
1.10 paf 4092: _ACEOF
1.31 ! moko 4093: if ac_fn_c_try_compile "$LINENO"; then :
! 4094:
! 4095: else
! 4096: ac_c_werror_flag=$ac_save_c_werror_flag
! 4097: CFLAGS="-g"
! 4098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 4099: /* end confdefs.h. */
4100:
4101: int
4102: main ()
4103: {
4104:
4105: ;
4106: return 0;
4107: }
4108: _ACEOF
1.31 ! moko 4109: if ac_fn_c_try_compile "$LINENO"; then :
1.10 paf 4110: ac_cv_prog_cc_g=yes
1.1 parser 4111: fi
1.31 ! moko 4112: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4113: fi
! 4114: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4115: fi
! 4116: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4117: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 parser 4118: fi
1.31 ! moko 4119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
! 4120: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 parser 4121: if test "$ac_test_CFLAGS" = set; then
1.10 paf 4122: CFLAGS=$ac_save_CFLAGS
1.1 parser 4123: elif test $ac_cv_prog_cc_g = yes; then
4124: if test "$GCC" = yes; then
4125: CFLAGS="-g -O2"
4126: else
4127: CFLAGS="-g"
4128: fi
4129: else
4130: if test "$GCC" = yes; then
4131: CFLAGS="-O2"
4132: else
4133: CFLAGS=
4134: fi
4135: fi
1.31 ! moko 4136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
! 4137: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
! 4138: if ${ac_cv_prog_cc_c89+:} false; then :
! 4139: $as_echo_n "(cached) " >&6
1.10 paf 4140: else
1.31 ! moko 4141: ac_cv_prog_cc_c89=no
1.10 paf 4142: ac_save_CC=$CC
1.31 ! moko 4143: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 4144: /* end confdefs.h. */
4145: #include <stdarg.h>
4146: #include <stdio.h>
4147: #include <sys/types.h>
4148: #include <sys/stat.h>
4149: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4150: struct buf { int x; };
4151: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4152: static char *e (p, i)
4153: char **p;
4154: int i;
4155: {
4156: return p[i];
4157: }
4158: static char *f (char * (*g) (char **, int), char **p, ...)
4159: {
4160: char *s;
4161: va_list v;
4162: va_start (v,p);
4163: s = g (p, va_arg (v,int));
4164: va_end (v);
4165: return s;
4166: }
1.16 paf 4167:
4168: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4169: function prototypes and stuff, but not '\xHH' hex character constants.
4170: These don't provoke an error unfortunately, instead are silently treated
1.31 ! moko 4171: as 'x'. The following induces an error, until -std is added to get
1.16 paf 4172: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4173: array size at least. It's necessary to write '\x00'==0 to get something
1.31 ! moko 4174: that's true only with -std. */
1.16 paf 4175: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4176:
1.31 ! moko 4177: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 4178: inside strings and character constants. */
! 4179: #define FOO(x) 'x'
! 4180: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
! 4181:
1.10 paf 4182: int test (int i, double x);
4183: struct s1 {int (*f) (int a);};
4184: struct s2 {int (*f) (double a);};
4185: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4186: int argc;
4187: char **argv;
4188: int
4189: main ()
4190: {
4191: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4192: ;
4193: return 0;
4194: }
4195: _ACEOF
1.31 ! moko 4196: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
! 4197: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.10 paf 4198: do
4199: CC="$ac_save_CC $ac_arg"
1.31 ! moko 4200: if ac_fn_c_try_compile "$LINENO"; then :
! 4201: ac_cv_prog_cc_c89=$ac_arg
1.10 paf 4202: fi
1.31 ! moko 4203: rm -f core conftest.err conftest.$ac_objext
! 4204: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.10 paf 4205: done
1.31 ! moko 4206: rm -f conftest.$ac_ext
1.10 paf 4207: CC=$ac_save_CC
4208:
4209: fi
1.31 ! moko 4210: # AC_CACHE_VAL
! 4211: case "x$ac_cv_prog_cc_c89" in
! 4212: x)
! 4213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 4214: $as_echo "none needed" >&6; } ;;
! 4215: xno)
! 4216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 4217: $as_echo "unsupported" >&6; } ;;
1.10 paf 4218: *)
1.31 ! moko 4219: CC="$CC $ac_cv_prog_cc_c89"
! 4220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
! 4221: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.10 paf 4222: esac
1.31 ! moko 4223: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.10 paf 4224:
4225: fi
4226:
1.15 paf 4227: ac_ext=c
4228: ac_cpp='$CPP $CPPFLAGS'
4229: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 4232:
4233: depcc="$CC" am_compiler_list=
4234:
1.31 ! moko 4235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 4236: $as_echo_n "checking dependency style of $depcc... " >&6; }
! 4237: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
! 4238: $as_echo_n "(cached) " >&6
1.10 paf 4239: else
4240: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241: # We make a subdir and do the tests there. Otherwise we can end up
4242: # making bogus files that we don't know about and never remove. For
4243: # instance it was reported that on HP-UX the gcc test will end up
4244: # making a dummy file named `D' -- because `-MD' means `put the output
4245: # in D'.
4246: mkdir conftest.dir
4247: # Copy depcomp to subdir because otherwise we won't find it if we're
4248: # using a relative directory.
4249: cp "$am_depcomp" conftest.dir
4250: cd conftest.dir
1.16 paf 4251: # We will build objects and dependencies in a subdirectory because
4252: # it helps to detect inapplicable dependency modes. For instance
4253: # both Tru64's cc and ICC support -MD to output dependencies as a
4254: # side effect of compilation, but ICC will put the dependencies in
4255: # the current directory while Tru64 will put them in the object
4256: # directory.
4257: mkdir sub
1.10 paf 4258:
4259: am_cv_CC_dependencies_compiler_type=none
4260: if test "$am_compiler_list" = ""; then
4261: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4262: fi
1.31 ! moko 4263: am__universal=false
! 4264: case " $depcc " in #(
! 4265: *\ -arch\ *\ -arch\ *) am__universal=true ;;
! 4266: esac
! 4267:
1.10 paf 4268: for depmode in $am_compiler_list; do
1.16 paf 4269: # Setup a source with many dependencies, because some compilers
4270: # like to wrap large dependency lists on column 80 (with \), and
4271: # we should not choose a depcomp mode which is confused by this.
4272: #
1.10 paf 4273: # We need to recreate these files for each test, as the compiler may
4274: # overwrite some of them when testing with obscure command lines.
4275: # This happens at least with the AIX C compiler.
1.16 paf 4276: : > sub/conftest.c
4277: for i in 1 2 3 4 5 6; do
4278: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4279: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4280: # Solaris 8's {/usr,}/bin/sh.
4281: touch sub/conftst$i.h
4282: done
4283: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 4284:
1.31 ! moko 4285: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 4286: # mode. It turns out that the SunPro C++ compiler does not properly
! 4287: # handle `-M -o', and we need to detect this. Also, some Intel
! 4288: # versions had trouble with output in subdirs
! 4289: am__obj=sub/conftest.${OBJEXT-o}
! 4290: am__minus_obj="-o $am__obj"
1.10 paf 4291: case $depmode in
1.31 ! moko 4292: gcc)
! 4293: # This depmode causes a compiler race in universal mode.
! 4294: test "$am__universal" = false || continue
! 4295: ;;
1.10 paf 4296: nosideeffect)
4297: # after this tag, mechanisms are not by side-effect, so they'll
4298: # only be used when explicitly requested
4299: if test "x$enable_dependency_tracking" = xyes; then
4300: continue
4301: else
4302: break
4303: fi
4304: ;;
1.31 ! moko 4305: msvisualcpp | msvcmsys)
! 4306: # This compiler won't grok `-c -o', but also, the minuso test has
! 4307: # not run yet. These depmodes are late enough in the game, and
! 4308: # so weak that their functioning should not be impacted.
! 4309: am__obj=conftest.${OBJEXT-o}
! 4310: am__minus_obj=
! 4311: ;;
1.10 paf 4312: none) break ;;
4313: esac
4314: if depmode=$depmode \
1.31 ! moko 4315: source=sub/conftest.c object=$am__obj \
1.16 paf 4316: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.31 ! moko 4317: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.16 paf 4318: >/dev/null 2>conftest.err &&
1.31 ! moko 4319: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.16 paf 4320: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.31 ! moko 4321: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 4322: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 4323: # icc doesn't choke on unknown options, it will just issue warnings
4324: # or remarks (even with -Werror). So we grep stderr for any message
4325: # that says an option was ignored or not supported.
4326: # When given -MP, icc 7.0 and 7.1 complain thusly:
4327: # icc: Command line warning: ignoring option '-M'; no argument required
4328: # The diagnosis changed in icc 8.0:
4329: # icc: Command line remark: option '-MP' not supported
4330: if (grep 'ignoring option' conftest.err ||
4331: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4332: am_cv_CC_dependencies_compiler_type=$depmode
4333: break
4334: fi
1.10 paf 4335: fi
4336: done
4337:
4338: cd ..
4339: rm -rf conftest.dir
4340: else
4341: am_cv_CC_dependencies_compiler_type=none
4342: fi
4343:
4344: fi
1.31 ! moko 4345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
! 4346: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.10 paf 4347: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4348:
1.31 ! moko 4349: if
1.10 paf 4350: test "x$enable_dependency_tracking" != xno \
4351: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4352: am__fastdepCC_TRUE=
4353: am__fastdepCC_FALSE='#'
4354: else
4355: am__fastdepCC_TRUE='#'
4356: am__fastdepCC_FALSE=
4357: fi
4358:
4359:
1.15 paf 4360:
4361:
4362:
4363:
4364:
4365:
4366:
1.23 moko 4367:
4368: case `pwd` in
4369: *\ * | *\ *)
1.31 ! moko 4370: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
! 4371: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.15 paf 4372: esac
4373:
1.23 moko 4374:
4375:
4376: macro_version='2.4.2'
4377: macro_revision='1.3337'
4378:
4379:
4380:
4381:
4382:
4383:
4384:
4385:
4386:
4387:
4388:
4389:
4390:
4391: ltmain="$ac_aux_dir/ltmain.sh"
4392:
1.15 paf 4393: # Make sure we can run config.sub.
1.31 ! moko 4394: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
! 4395: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.15 paf 4396:
1.31 ! moko 4397: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
! 4398: $as_echo_n "checking build system type... " >&6; }
! 4399: if ${ac_cv_build+:} false; then :
! 4400: $as_echo_n "(cached) " >&6
! 4401: else
! 4402: ac_build_alias=$build_alias
! 4403: test "x$ac_build_alias" = x &&
! 4404: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
! 4405: test "x$ac_build_alias" = x &&
! 4406: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
! 4407: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
! 4408: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
! 4409:
! 4410: fi
! 4411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
! 4412: $as_echo "$ac_cv_build" >&6; }
! 4413: case $ac_cv_build in
! 4414: *-*-*) ;;
! 4415: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
! 4416: esac
! 4417: build=$ac_cv_build
! 4418: ac_save_IFS=$IFS; IFS='-'
! 4419: set x $ac_cv_build
! 4420: shift
! 4421: build_cpu=$1
! 4422: build_vendor=$2
! 4423: shift; shift
! 4424: # Remember, the first character of IFS is used to create $*,
! 4425: # except with old shells:
! 4426: build_os=$*
! 4427: IFS=$ac_save_IFS
! 4428: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
! 4429:
! 4430:
! 4431: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
! 4432: $as_echo_n "checking host system type... " >&6; }
! 4433: if ${ac_cv_host+:} false; then :
! 4434: $as_echo_n "(cached) " >&6
! 4435: else
! 4436: if test "x$host_alias" = x; then
! 4437: ac_cv_host=$ac_cv_build
! 4438: else
! 4439: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
! 4440: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.15 paf 4441: fi
4442:
4443: fi
1.31 ! moko 4444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
! 4445: $as_echo "$ac_cv_host" >&6; }
! 4446: case $ac_cv_host in
! 4447: *-*-*) ;;
! 4448: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
! 4449: esac
1.15 paf 4450: host=$ac_cv_host
1.31 ! moko 4451: ac_save_IFS=$IFS; IFS='-'
! 4452: set x $ac_cv_host
! 4453: shift
! 4454: host_cpu=$1
! 4455: host_vendor=$2
! 4456: shift; shift
! 4457: # Remember, the first character of IFS is used to create $*,
! 4458: # except with old shells:
! 4459: host_os=$*
! 4460: IFS=$ac_save_IFS
! 4461: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.15 paf 4462:
4463:
1.23 moko 4464: # Backslashify metacharacters that are still active within
4465: # double-quoted strings.
4466: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4467:
4468: # Same as above, but do not quote variable references.
4469: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4470:
4471: # Sed substitution to delay expansion of an escaped shell variable in a
4472: # double_quote_subst'ed string.
4473: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4474:
4475: # Sed substitution to delay expansion of an escaped single quote.
4476: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4477:
4478: # Sed substitution to avoid accidental globbing in evaled expressions
4479: no_glob_subst='s/\*/\\\*/g'
4480:
4481: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4482: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4483: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4484:
1.31 ! moko 4485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
! 4486: $as_echo_n "checking how to print strings... " >&6; }
1.23 moko 4487: # Test print first, because it will be a builtin if present.
4488: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4489: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4490: ECHO='print -r --'
4491: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4492: ECHO='printf %s\n'
4493: else
4494: # Use this function as a fallback that always works.
4495: func_fallback_echo ()
4496: {
4497: eval 'cat <<_LTECHO_EOF
4498: $1
4499: _LTECHO_EOF'
4500: }
4501: ECHO='func_fallback_echo'
1.10 paf 4502: fi
4503:
1.23 moko 4504: # func_echo_all arg...
4505: # Invoke $ECHO with all args, space-separated.
4506: func_echo_all ()
4507: {
4508: $ECHO ""
4509: }
4510:
4511: case "$ECHO" in
1.31 ! moko 4512: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
! 4513: $as_echo "printf" >&6; } ;;
! 4514: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
! 4515: $as_echo "print -r" >&6; } ;;
! 4516: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
! 4517: $as_echo "cat" >&6; } ;;
1.23 moko 4518: esac
4519:
4520:
4521:
4522:
4523:
4524:
4525:
4526:
4527:
4528:
4529:
4530:
4531:
4532:
1.31 ! moko 4533: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
! 4534: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
! 4535: if ${ac_cv_path_SED+:} false; then :
! 4536: $as_echo_n "(cached) " >&6
! 4537: else
! 4538: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
! 4539: for ac_i in 1 2 3 4 5 6 7; do
! 4540: ac_script="$ac_script$as_nl$ac_script"
! 4541: done
! 4542: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
! 4543: { ac_script=; unset ac_script;}
! 4544: if test -z "$SED"; then
! 4545: ac_path_SED_found=false
! 4546: # Loop through the user's path and test for each of PROGNAME-LIST
! 4547: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.23 moko 4548: for as_dir in $PATH
4549: do
4550: IFS=$as_save_IFS
4551: test -z "$as_dir" && as_dir=.
1.31 ! moko 4552: for ac_prog in sed gsed; do
1.23 moko 4553: for ac_exec_ext in '' $ac_executable_extensions; do
1.31 ! moko 4554: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
! 4555: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
! 4556: # Check for GNU ac_path_SED and select it if it is found.
! 4557: # Check for GNU $ac_path_SED
! 4558: case `"$ac_path_SED" --version 2>&1` in
! 4559: *GNU*)
! 4560: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
! 4561: *)
! 4562: ac_count=0
! 4563: $as_echo_n 0123456789 >"conftest.in"
! 4564: while :
! 4565: do
! 4566: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4567: mv "conftest.tmp" "conftest.in"
! 4568: cp "conftest.in" "conftest.nl"
! 4569: $as_echo '' >> "conftest.nl"
! 4570: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4571: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4572: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4573: if test $ac_count -gt ${ac_path_SED_max-0}; then
! 4574: # Best one so far, save it but keep looking for a better one
! 4575: ac_cv_path_SED="$ac_path_SED"
! 4576: ac_path_SED_max=$ac_count
! 4577: fi
! 4578: # 10*(2^10) chars as input seems more than enough
! 4579: test $ac_count -gt 10 && break
! 4580: done
! 4581: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4582: esac
! 4583:
! 4584: $ac_path_SED_found && break 3
1.23 moko 4585: done
4586: done
1.31 ! moko 4587: done
1.23 moko 4588: IFS=$as_save_IFS
1.31 ! moko 4589: if test -z "$ac_cv_path_SED"; then
! 4590: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
! 4591: fi
! 4592: else
! 4593: ac_cv_path_SED=$SED
! 4594: fi
1.23 moko 4595:
4596: fi
1.31 ! moko 4597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
! 4598: $as_echo "$ac_cv_path_SED" >&6; }
! 4599: SED="$ac_cv_path_SED"
! 4600: rm -f conftest.sed
1.23 moko 4601:
4602: test -z "$SED" && SED=sed
4603: Xsed="$SED -e 1s/^X//"
4604:
4605:
4606:
4607:
4608:
4609:
4610:
4611:
4612:
4613:
4614:
1.31 ! moko 4615: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
! 4616: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
! 4617: if ${ac_cv_path_GREP+:} false; then :
! 4618: $as_echo_n "(cached) " >&6
! 4619: else
! 4620: if test -z "$GREP"; then
! 4621: ac_path_GREP_found=false
! 4622: # Loop through the user's path and test for each of PROGNAME-LIST
! 4623: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4624: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4625: do
! 4626: IFS=$as_save_IFS
! 4627: test -z "$as_dir" && as_dir=.
! 4628: for ac_prog in grep ggrep; do
! 4629: for ac_exec_ext in '' $ac_executable_extensions; do
! 4630: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 4631: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
! 4632: # Check for GNU ac_path_GREP and select it if it is found.
! 4633: # Check for GNU $ac_path_GREP
! 4634: case `"$ac_path_GREP" --version 2>&1` in
! 4635: *GNU*)
! 4636: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
! 4637: *)
! 4638: ac_count=0
! 4639: $as_echo_n 0123456789 >"conftest.in"
! 4640: while :
! 4641: do
! 4642: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4643: mv "conftest.tmp" "conftest.in"
! 4644: cp "conftest.in" "conftest.nl"
! 4645: $as_echo 'GREP' >> "conftest.nl"
! 4646: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4647: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4648: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4649: if test $ac_count -gt ${ac_path_GREP_max-0}; then
! 4650: # Best one so far, save it but keep looking for a better one
! 4651: ac_cv_path_GREP="$ac_path_GREP"
! 4652: ac_path_GREP_max=$ac_count
1.23 moko 4653: fi
1.31 ! moko 4654: # 10*(2^10) chars as input seems more than enough
! 4655: test $ac_count -gt 10 && break
! 4656: done
! 4657: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4658: esac
! 4659:
! 4660: $ac_path_GREP_found && break 3
! 4661: done
! 4662: done
! 4663: done
! 4664: IFS=$as_save_IFS
! 4665: if test -z "$ac_cv_path_GREP"; then
! 4666: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 4667: fi
! 4668: else
! 4669: ac_cv_path_GREP=$GREP
! 4670: fi
! 4671:
1.23 moko 4672: fi
1.31 ! moko 4673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
! 4674: $as_echo "$ac_cv_path_GREP" >&6; }
! 4675: GREP="$ac_cv_path_GREP"
! 4676:
! 4677:
! 4678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
! 4679: $as_echo_n "checking for egrep... " >&6; }
! 4680: if ${ac_cv_path_EGREP+:} false; then :
! 4681: $as_echo_n "(cached) " >&6
! 4682: else
! 4683: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
! 4684: then ac_cv_path_EGREP="$GREP -E"
! 4685: else
! 4686: if test -z "$EGREP"; then
! 4687: ac_path_EGREP_found=false
! 4688: # Loop through the user's path and test for each of PROGNAME-LIST
! 4689: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4690: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4691: do
! 4692: IFS=$as_save_IFS
! 4693: test -z "$as_dir" && as_dir=.
! 4694: for ac_prog in egrep; do
! 4695: for ac_exec_ext in '' $ac_executable_extensions; do
! 4696: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 4697: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
! 4698: # Check for GNU ac_path_EGREP and select it if it is found.
! 4699: # Check for GNU $ac_path_EGREP
! 4700: case `"$ac_path_EGREP" --version 2>&1` in
! 4701: *GNU*)
! 4702: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
! 4703: *)
! 4704: ac_count=0
! 4705: $as_echo_n 0123456789 >"conftest.in"
! 4706: while :
! 4707: do
! 4708: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4709: mv "conftest.tmp" "conftest.in"
! 4710: cp "conftest.in" "conftest.nl"
! 4711: $as_echo 'EGREP' >> "conftest.nl"
! 4712: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4713: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4714: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4715: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
! 4716: # Best one so far, save it but keep looking for a better one
! 4717: ac_cv_path_EGREP="$ac_path_EGREP"
! 4718: ac_path_EGREP_max=$ac_count
! 4719: fi
! 4720: # 10*(2^10) chars as input seems more than enough
! 4721: test $ac_count -gt 10 && break
! 4722: done
! 4723: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4724: esac
1.23 moko 4725:
1.31 ! moko 4726: $ac_path_EGREP_found && break 3
! 4727: done
! 4728: done
! 4729: done
! 4730: IFS=$as_save_IFS
! 4731: if test -z "$ac_cv_path_EGREP"; then
! 4732: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 4733: fi
! 4734: else
! 4735: ac_cv_path_EGREP=$EGREP
! 4736: fi
1.23 moko 4737:
1.31 ! moko 4738: fi
! 4739: fi
! 4740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
! 4741: $as_echo "$ac_cv_path_EGREP" >&6; }
! 4742: EGREP="$ac_cv_path_EGREP"
! 4743:
! 4744:
! 4745: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
! 4746: $as_echo_n "checking for fgrep... " >&6; }
! 4747: if ${ac_cv_path_FGREP+:} false; then :
! 4748: $as_echo_n "(cached) " >&6
! 4749: else
! 4750: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
! 4751: then ac_cv_path_FGREP="$GREP -F"
! 4752: else
! 4753: if test -z "$FGREP"; then
! 4754: ac_path_FGREP_found=false
! 4755: # Loop through the user's path and test for each of PROGNAME-LIST
! 4756: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4757: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4758: do
! 4759: IFS=$as_save_IFS
! 4760: test -z "$as_dir" && as_dir=.
! 4761: for ac_prog in fgrep; do
! 4762: for ac_exec_ext in '' $ac_executable_extensions; do
! 4763: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
! 4764: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
! 4765: # Check for GNU ac_path_FGREP and select it if it is found.
! 4766: # Check for GNU $ac_path_FGREP
! 4767: case `"$ac_path_FGREP" --version 2>&1` in
! 4768: *GNU*)
! 4769: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
! 4770: *)
! 4771: ac_count=0
! 4772: $as_echo_n 0123456789 >"conftest.in"
! 4773: while :
! 4774: do
! 4775: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4776: mv "conftest.tmp" "conftest.in"
! 4777: cp "conftest.in" "conftest.nl"
! 4778: $as_echo 'FGREP' >> "conftest.nl"
! 4779: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4780: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4781: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4782: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
! 4783: # Best one so far, save it but keep looking for a better one
! 4784: ac_cv_path_FGREP="$ac_path_FGREP"
! 4785: ac_path_FGREP_max=$ac_count
1.23 moko 4786: fi
1.31 ! moko 4787: # 10*(2^10) chars as input seems more than enough
! 4788: test $ac_count -gt 10 && break
! 4789: done
! 4790: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4791: esac
! 4792:
! 4793: $ac_path_FGREP_found && break 3
! 4794: done
! 4795: done
! 4796: done
! 4797: IFS=$as_save_IFS
! 4798: if test -z "$ac_cv_path_FGREP"; then
! 4799: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 4800: fi
! 4801: else
! 4802: ac_cv_path_FGREP=$FGREP
! 4803: fi
! 4804:
! 4805: fi
1.23 moko 4806: fi
1.31 ! moko 4807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
! 4808: $as_echo "$ac_cv_path_FGREP" >&6; }
! 4809: FGREP="$ac_cv_path_FGREP"
1.23 moko 4810:
4811:
4812: test -z "$GREP" && GREP=grep
4813:
4814:
4815:
4816:
4817:
4818:
4819:
4820:
4821:
4822:
4823:
4824:
4825:
4826:
4827:
4828:
4829:
4830:
1.1 parser 4831:
1.31 ! moko 4832: # Check whether --with-gnu-ld was given.
! 4833: if test "${with_gnu_ld+set}" = set; then :
! 4834: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.1 parser 4835: else
4836: with_gnu_ld=no
1.31 ! moko 4837: fi
! 4838:
1.1 parser 4839: ac_prog=ld
1.10 paf 4840: if test "$GCC" = yes; then
1.1 parser 4841: # Check if gcc -print-prog-name=ld gives a path.
1.31 ! moko 4842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
! 4843: $as_echo_n "checking for ld used by $CC... " >&6; }
1.10 paf 4844: case $host in
4845: *-*-mingw*)
4846: # gcc leaves a trailing carriage return which upsets mingw
4847: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4848: *)
4849: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4850: esac
4851: case $ac_prog in
1.1 parser 4852: # Accept absolute paths.
1.23 moko 4853: [\\/]* | ?:[\\/]*)
1.1 parser 4854: re_direlt='/[^/][^/]*/\.\./'
1.23 moko 4855: # Canonicalize the pathname of ld
4856: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4857: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4858: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.1 parser 4859: done
4860: test -z "$LD" && LD="$ac_prog"
4861: ;;
4862: "")
4863: # If it fails, then pretend we aren't using GCC.
4864: ac_prog=ld
4865: ;;
4866: *)
4867: # If it is relative, then search for the first ld in PATH.
4868: with_gnu_ld=unknown
4869: ;;
4870: esac
4871: elif test "$with_gnu_ld" = yes; then
1.31 ! moko 4872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
! 4873: $as_echo_n "checking for GNU ld... " >&6; }
1.1 parser 4874: else
1.31 ! moko 4875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
! 4876: $as_echo_n "checking for non-GNU ld... " >&6; }
1.1 parser 4877: fi
1.31 ! moko 4878: if ${lt_cv_path_LD+:} false; then :
! 4879: $as_echo_n "(cached) " >&6
1.1 parser 4880: else
4881: if test -z "$LD"; then
1.23 moko 4882: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 4883: for ac_dir in $PATH; do
1.23 moko 4884: IFS="$lt_save_ifs"
1.1 parser 4885: test -z "$ac_dir" && ac_dir=.
4886: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.10 paf 4887: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 4888: # Check to see if the program is GNU ld. I'd rather use --version,
1.23 moko 4889: # but apparently some variants of GNU ld only accept -v.
1.1 parser 4890: # Break only if it was the GNU/non-GNU ld that we prefer.
1.23 moko 4891: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4892: *GNU* | *'with BFD'*)
1.1 parser 4893: test "$with_gnu_ld" != no && break
1.23 moko 4894: ;;
4895: *)
1.1 parser 4896: test "$with_gnu_ld" != yes && break
1.23 moko 4897: ;;
4898: esac
1.1 parser 4899: fi
4900: done
1.23 moko 4901: IFS="$lt_save_ifs"
1.1 parser 4902: else
1.10 paf 4903: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 4904: fi
4905: fi
4906:
1.10 paf 4907: LD="$lt_cv_path_LD"
1.1 parser 4908: if test -n "$LD"; then
1.31 ! moko 4909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
! 4910: $as_echo "$LD" >&6; }
1.1 parser 4911: else
1.31 ! moko 4912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4913: $as_echo "no" >&6; }
1.1 parser 4914: fi
1.31 ! moko 4915: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
! 4916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
! 4917: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
! 4918: if ${lt_cv_prog_gnu_ld+:} false; then :
! 4919: $as_echo_n "(cached) " >&6
1.1 parser 4920: else
1.23 moko 4921: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4922: case `$LD -v 2>&1 </dev/null` in
4923: *GNU* | *'with BFD'*)
1.10 paf 4924: lt_cv_prog_gnu_ld=yes
1.23 moko 4925: ;;
4926: *)
1.10 paf 4927: lt_cv_prog_gnu_ld=no
1.23 moko 4928: ;;
4929: esac
1.1 parser 4930: fi
1.31 ! moko 4931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
! 4932: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.10 paf 4933: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 4934:
4935:
4936:
1.23 moko 4937:
4938:
4939:
4940:
4941:
4942:
1.31 ! moko 4943: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
! 4944: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
! 4945: if ${lt_cv_path_NM+:} false; then :
! 4946: $as_echo_n "(cached) " >&6
1.1 parser 4947: else
4948: if test -n "$NM"; then
4949: # Let the user override the test.
1.10 paf 4950: lt_cv_path_NM="$NM"
1.1 parser 4951: else
1.23 moko 4952: lt_nm_to_check="${ac_tool_prefix}nm"
4953: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4954: lt_nm_to_check="$lt_nm_to_check nm"
4955: fi
4956: for lt_tmp_nm in $lt_nm_to_check; do
4957: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4958: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4959: IFS="$lt_save_ifs"
4960: test -z "$ac_dir" && ac_dir=.
4961: tmp_nm="$ac_dir/$lt_tmp_nm"
4962: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4963: # Check to see if the nm accepts a BSD-compat flag.
4964: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4965: # nm: unknown option "B" ignored
4966: # Tru64's nm complains that /dev/null is an invalid object file
4967: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4968: */dev/null* | *'Invalid file or object type'*)
4969: lt_cv_path_NM="$tmp_nm -B"
4970: break
4971: ;;
4972: *)
4973: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4974: */dev/null*)
4975: lt_cv_path_NM="$tmp_nm -p"
4976: break
4977: ;;
4978: *)
4979: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4980: continue # so that we can try to find one that supports BSD flags
4981: ;;
4982: esac
4983: ;;
4984: esac
1.1 parser 4985: fi
1.23 moko 4986: done
4987: IFS="$lt_save_ifs"
1.1 parser 4988: done
1.23 moko 4989: : ${lt_cv_path_NM=no}
1.1 parser 4990: fi
4991: fi
1.31 ! moko 4992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
! 4993: $as_echo "$lt_cv_path_NM" >&6; }
1.23 moko 4994: if test "$lt_cv_path_NM" != "no"; then
4995: NM="$lt_cv_path_NM"
4996: else
4997: # Didn't find any BSD compatible name lister, look for dumpbin.
4998: if test -n "$DUMPBIN"; then :
4999: # Let the user override the test.
5000: else
5001: if test -n "$ac_tool_prefix"; then
5002: for ac_prog in dumpbin "link -dump"
5003: do
5004: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5005: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 ! moko 5006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5007: $as_echo_n "checking for $ac_word... " >&6; }
! 5008: if ${ac_cv_prog_DUMPBIN+:} false; then :
! 5009: $as_echo_n "(cached) " >&6
1.23 moko 5010: else
5011: if test -n "$DUMPBIN"; then
5012: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5013: else
5014: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015: for as_dir in $PATH
5016: do
5017: IFS=$as_save_IFS
5018: test -z "$as_dir" && as_dir=.
1.31 ! moko 5019: for ac_exec_ext in '' $ac_executable_extensions; do
! 5020: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 5021: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.31 ! moko 5022: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5023: break 2
5024: fi
5025: done
1.31 ! moko 5026: done
! 5027: IFS=$as_save_IFS
1.1 parser 5028:
1.23 moko 5029: fi
5030: fi
5031: DUMPBIN=$ac_cv_prog_DUMPBIN
5032: if test -n "$DUMPBIN"; then
1.31 ! moko 5033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
! 5034: $as_echo "$DUMPBIN" >&6; }
1.23 moko 5035: else
1.31 ! moko 5036: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5037: $as_echo "no" >&6; }
1.23 moko 5038: fi
1.1 parser 5039:
1.31 ! moko 5040:
1.23 moko 5041: test -n "$DUMPBIN" && break
5042: done
5043: fi
5044: if test -z "$DUMPBIN"; then
5045: ac_ct_DUMPBIN=$DUMPBIN
5046: for ac_prog in dumpbin "link -dump"
5047: do
5048: # Extract the first word of "$ac_prog", so it can be a program name with args.
5049: set dummy $ac_prog; ac_word=$2
1.31 ! moko 5050: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5051: $as_echo_n "checking for $ac_word... " >&6; }
! 5052: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
! 5053: $as_echo_n "(cached) " >&6
1.1 parser 5054: else
1.23 moko 5055: if test -n "$ac_ct_DUMPBIN"; then
5056: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5057: else
1.10 paf 5058: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059: for as_dir in $PATH
5060: do
5061: IFS=$as_save_IFS
5062: test -z "$as_dir" && as_dir=.
1.31 ! moko 5063: for ac_exec_ext in '' $ac_executable_extensions; do
! 5064: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 5065: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.31 ! moko 5066: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5067: break 2
5068: fi
5069: done
1.31 ! moko 5070: done
! 5071: IFS=$as_save_IFS
1.23 moko 5072:
5073: fi
5074: fi
5075: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5076: if test -n "$ac_ct_DUMPBIN"; then
1.31 ! moko 5077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
! 5078: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.23 moko 5079: else
1.31 ! moko 5080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5081: $as_echo "no" >&6; }
1.23 moko 5082: fi
5083:
1.31 ! moko 5084:
1.23 moko 5085: test -n "$ac_ct_DUMPBIN" && break
1.10 paf 5086: done
5087:
1.31 ! moko 5088: if test "x$ac_ct_DUMPBIN" = x; then
! 5089: DUMPBIN=":"
! 5090: else
! 5091: case $cross_compiling:$ac_tool_warned in
! 5092: yes:)
! 5093: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5094: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5095: ac_tool_warned=yes ;;
! 5096: esac
! 5097: DUMPBIN=$ac_ct_DUMPBIN
! 5098: fi
1.23 moko 5099: fi
1.10 paf 5100:
1.23 moko 5101: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5102: *COFF*)
5103: DUMPBIN="$DUMPBIN -symbols"
5104: ;;
5105: *)
5106: DUMPBIN=:
5107: ;;
5108: esac
5109: fi
1.10 paf 5110:
1.23 moko 5111: if test "$DUMPBIN" != ":"; then
5112: NM="$DUMPBIN"
5113: fi
1.1 parser 5114: fi
1.23 moko 5115: test -z "$NM" && NM=nm
5116:
1.1 parser 5117:
1.23 moko 5118:
5119:
5120:
5121:
1.31 ! moko 5122: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
! 5123: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
! 5124: if ${lt_cv_nm_interface+:} false; then :
! 5125: $as_echo_n "(cached) " >&6
1.6 paf 5126: else
1.23 moko 5127: lt_cv_nm_interface="BSD nm"
5128: echo "int some_variable = 0;" > conftest.$ac_ext
5129: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5130: (eval "$ac_compile" 2>conftest.err)
5131: cat conftest.err >&5
5132: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5133: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5134: cat conftest.err >&5
5135: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5136: cat conftest.out >&5
5137: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5138: lt_cv_nm_interface="MS dumpbin"
5139: fi
5140: rm -f conftest*
1.6 paf 5141: fi
1.31 ! moko 5142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
! 5143: $as_echo "$lt_cv_nm_interface" >&6; }
1.10 paf 5144:
1.31 ! moko 5145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
! 5146: $as_echo_n "checking whether ln -s works... " >&6; }
1.10 paf 5147: LN_S=$as_ln_s
5148: if test "$LN_S" = "ln -s"; then
1.31 ! moko 5149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 5150: $as_echo "yes" >&6; }
1.10 paf 5151: else
1.31 ! moko 5152: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
! 5153: $as_echo "no, using $LN_S" >&6; }
1.10 paf 5154: fi
5155:
1.23 moko 5156: # find the maximum length of command line arguments
1.31 ! moko 5157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
! 5158: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
! 5159: if ${lt_cv_sys_max_cmd_len+:} false; then :
! 5160: $as_echo_n "(cached) " >&6
1.10 paf 5161: else
1.23 moko 5162: i=0
5163: teststring="ABCD"
1.10 paf 5164:
1.23 moko 5165: case $build_os in
5166: msdosdjgpp*)
5167: # On DJGPP, this test can blow up pretty badly due to problems in libc
5168: # (any single argument exceeding 2000 bytes causes a buffer overrun
5169: # during glob expansion). Even if it were fixed, the result of this
5170: # check would be larger than it should be.
5171: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5172: ;;
1.6 paf 5173:
1.23 moko 5174: gnu*)
5175: # Under GNU Hurd, this test is not required because there is
5176: # no limit to the length of command line arguments.
5177: # Libtool will interpret -1 as no limit whatsoever
5178: lt_cv_sys_max_cmd_len=-1;
5179: ;;
1.1 parser 5180:
1.23 moko 5181: cygwin* | mingw* | cegcc*)
5182: # On Win9x/ME, this test blows up -- it succeeds, but takes
5183: # about 5 minutes as the teststring grows exponentially.
5184: # Worse, since 9x/ME are not pre-emptively multitasking,
5185: # you end up with a "frozen" computer, even though with patience
5186: # the test eventually succeeds (with a max line length of 256k).
5187: # Instead, let's just punt: use the minimum linelength reported by
5188: # all of the supported platforms: 8192 (on NT/2K/XP).
5189: lt_cv_sys_max_cmd_len=8192;
5190: ;;
1.1 parser 5191:
1.23 moko 5192: mint*)
5193: # On MiNT this can take a long time and run out of memory.
5194: lt_cv_sys_max_cmd_len=8192;
5195: ;;
1.1 parser 5196:
1.23 moko 5197: amigaos*)
5198: # On AmigaOS with pdksh, this test takes hours, literally.
5199: # So we just punt and use a minimum line length of 8192.
5200: lt_cv_sys_max_cmd_len=8192;
1.10 paf 5201: ;;
1.23 moko 5202:
5203: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5204: # This has been around since 386BSD, at least. Likely further.
5205: if test -x /sbin/sysctl; then
5206: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5207: elif test -x /usr/sbin/sysctl; then
5208: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5209: else
5210: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5211: fi
5212: # And add a safety zone
5213: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5214: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5215: ;;
5216:
5217: interix*)
5218: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5219: lt_cv_sys_max_cmd_len=196608
5220: ;;
5221:
5222: os2*)
5223: # The test takes a long time on OS/2.
5224: lt_cv_sys_max_cmd_len=8192
5225: ;;
5226:
5227: osf*)
5228: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5229: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5230: # nice to cause kernel panics so lets avoid the loop below.
5231: # First set a reasonable default.
5232: lt_cv_sys_max_cmd_len=16384
5233: #
5234: if test -x /sbin/sysconfig; then
5235: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5236: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5237: esac
5238: fi
5239: ;;
5240: sco3.2v5*)
5241: lt_cv_sys_max_cmd_len=102400
5242: ;;
5243: sysv5* | sco5v6* | sysv4.2uw2*)
5244: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5245: if test -n "$kargmax"; then
5246: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5247: else
5248: lt_cv_sys_max_cmd_len=32768
5249: fi
5250: ;;
5251: *)
5252: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5253: if test -n "$lt_cv_sys_max_cmd_len"; then
5254: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5255: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5256: else
5257: # Make teststring a little bigger before we do anything with it.
5258: # a 1K string should be a reasonable start.
5259: for i in 1 2 3 4 5 6 7 8 ; do
5260: teststring=$teststring$teststring
5261: done
5262: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5263: # If test is not a shell built-in, we'll probably end up computing a
5264: # maximum length that is only half of the actual maximum length, but
5265: # we can't tell.
5266: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5267: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5268: test $i != 17 # 1/2 MB should be enough
5269: do
5270: i=`expr $i + 1`
5271: teststring=$teststring$teststring
5272: done
5273: # Only check the string length outside the loop.
5274: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5275: teststring=
5276: # Add a significant safety factor because C++ compilers can tack on
5277: # massive amounts of additional arguments before passing them to the
5278: # linker. It appears as though 1/2 is a usable value.
5279: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5280: fi
1.10 paf 5281: ;;
5282: esac
1.23 moko 5283:
5284: fi
5285:
5286: if test -n $lt_cv_sys_max_cmd_len ; then
1.31 ! moko 5287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
! 5288: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.23 moko 5289: else
1.31 ! moko 5290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
! 5291: $as_echo "none" >&6; }
1.23 moko 5292: fi
5293: max_cmd_len=$lt_cv_sys_max_cmd_len
5294:
5295:
5296:
5297:
5298:
5299:
5300: : ${CP="cp -f"}
5301: : ${MV="mv -f"}
5302: : ${RM="rm -f"}
5303:
1.31 ! moko 5304: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
! 5305: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.23 moko 5306: # Try some XSI features
5307: xsi_shell=no
5308: ( _lt_dummy="a/b/c"
5309: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5310: = c,a/b,b/c, \
5311: && eval 'test $(( 1 + 1 )) -eq 2 \
5312: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5313: && xsi_shell=yes
1.31 ! moko 5314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
! 5315: $as_echo "$xsi_shell" >&6; }
1.23 moko 5316:
5317:
1.31 ! moko 5318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
! 5319: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.23 moko 5320: lt_shell_append=no
5321: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5322: >/dev/null 2>&1 \
5323: && lt_shell_append=yes
1.31 ! moko 5324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
! 5325: $as_echo "$lt_shell_append" >&6; }
1.23 moko 5326:
5327:
5328: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5329: lt_unset=unset
5330: else
5331: lt_unset=false
5332: fi
5333:
5334:
5335:
5336:
5337:
5338: # test EBCDIC or ASCII
5339: case `echo X|tr X '\101'` in
5340: A) # ASCII based system
5341: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5342: lt_SP2NL='tr \040 \012'
5343: lt_NL2SP='tr \015\012 \040\040'
5344: ;;
5345: *) # EBCDIC based system
5346: lt_SP2NL='tr \100 \n'
5347: lt_NL2SP='tr \r\n \100\100'
5348: ;;
5349: esac
5350:
5351:
5352:
5353:
5354:
5355:
5356:
5357:
5358:
1.31 ! moko 5359: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
! 5360: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
! 5361: if ${lt_cv_to_host_file_cmd+:} false; then :
! 5362: $as_echo_n "(cached) " >&6
1.23 moko 5363: else
5364: case $host in
5365: *-*-mingw* )
5366: case $build in
5367: *-*-mingw* ) # actually msys
5368: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5369: ;;
5370: *-*-cygwin* )
5371: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5372: ;;
5373: * ) # otherwise, assume *nix
5374: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5375: ;;
5376: esac
5377: ;;
5378: *-*-cygwin* )
5379: case $build in
5380: *-*-mingw* ) # actually msys
5381: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5382: ;;
5383: *-*-cygwin* )
5384: lt_cv_to_host_file_cmd=func_convert_file_noop
5385: ;;
5386: * ) # otherwise, assume *nix
5387: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5388: ;;
5389: esac
5390: ;;
5391: * ) # unhandled hosts (and "normal" native builds)
5392: lt_cv_to_host_file_cmd=func_convert_file_noop
5393: ;;
5394: esac
5395:
5396: fi
5397:
5398: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.31 ! moko 5399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
! 5400: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.23 moko 5401:
5402:
5403:
5404:
5405:
1.31 ! moko 5406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
! 5407: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
! 5408: if ${lt_cv_to_tool_file_cmd+:} false; then :
! 5409: $as_echo_n "(cached) " >&6
1.23 moko 5410: else
5411: #assume ordinary cross tools, or native build.
5412: lt_cv_to_tool_file_cmd=func_convert_file_noop
5413: case $host in
5414: *-*-mingw* )
5415: case $build in
5416: *-*-mingw* ) # actually msys
5417: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5418: ;;
5419: esac
5420: ;;
5421: esac
5422:
5423: fi
5424:
5425: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.31 ! moko 5426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
! 5427: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.23 moko 5428:
5429:
5430:
5431:
5432:
1.31 ! moko 5433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
! 5434: $as_echo_n "checking for $LD option to reload object files... " >&6; }
! 5435: if ${lt_cv_ld_reload_flag+:} false; then :
! 5436: $as_echo_n "(cached) " >&6
1.23 moko 5437: else
5438: lt_cv_ld_reload_flag='-r'
5439: fi
1.31 ! moko 5440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
! 5441: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.23 moko 5442: reload_flag=$lt_cv_ld_reload_flag
5443: case $reload_flag in
5444: "" | " "*) ;;
5445: *) reload_flag=" $reload_flag" ;;
5446: esac
5447: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5448: case $host_os in
5449: cygwin* | mingw* | pw32* | cegcc*)
5450: if test "$GCC" != yes; then
5451: reload_cmds=false
5452: fi
5453: ;;
5454: darwin*)
5455: if test "$GCC" = yes; then
5456: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5457: else
5458: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5459: fi
5460: ;;
5461: esac
5462:
5463:
5464:
5465:
5466:
5467:
5468:
5469:
5470:
5471: if test -n "$ac_tool_prefix"; then
5472: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5473: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.31 ! moko 5474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5475: $as_echo_n "checking for $ac_word... " >&6; }
! 5476: if ${ac_cv_prog_OBJDUMP+:} false; then :
! 5477: $as_echo_n "(cached) " >&6
1.23 moko 5478: else
5479: if test -n "$OBJDUMP"; then
5480: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5481: else
5482: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483: for as_dir in $PATH
5484: do
5485: IFS=$as_save_IFS
5486: test -z "$as_dir" && as_dir=.
1.31 ! moko 5487: for ac_exec_ext in '' $ac_executable_extensions; do
! 5488: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 5489: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.31 ! moko 5490: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5491: break 2
5492: fi
5493: done
1.31 ! moko 5494: done
! 5495: IFS=$as_save_IFS
1.23 moko 5496:
5497: fi
5498: fi
5499: OBJDUMP=$ac_cv_prog_OBJDUMP
5500: if test -n "$OBJDUMP"; then
1.31 ! moko 5501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
! 5502: $as_echo "$OBJDUMP" >&6; }
1.23 moko 5503: else
1.31 ! moko 5504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5505: $as_echo "no" >&6; }
1.23 moko 5506: fi
5507:
1.31 ! moko 5508:
1.23 moko 5509: fi
5510: if test -z "$ac_cv_prog_OBJDUMP"; then
5511: ac_ct_OBJDUMP=$OBJDUMP
5512: # Extract the first word of "objdump", so it can be a program name with args.
5513: set dummy objdump; ac_word=$2
1.31 ! moko 5514: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5515: $as_echo_n "checking for $ac_word... " >&6; }
! 5516: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
! 5517: $as_echo_n "(cached) " >&6
1.23 moko 5518: else
5519: if test -n "$ac_ct_OBJDUMP"; then
5520: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5521: else
5522: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523: for as_dir in $PATH
5524: do
5525: IFS=$as_save_IFS
5526: test -z "$as_dir" && as_dir=.
1.31 ! moko 5527: for ac_exec_ext in '' $ac_executable_extensions; do
! 5528: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 5529: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.31 ! moko 5530: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5531: break 2
5532: fi
5533: done
1.31 ! moko 5534: done
! 5535: IFS=$as_save_IFS
1.23 moko 5536:
5537: fi
5538: fi
5539: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5540: if test -n "$ac_ct_OBJDUMP"; then
1.31 ! moko 5541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
! 5542: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.23 moko 5543: else
1.31 ! moko 5544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5545: $as_echo "no" >&6; }
1.23 moko 5546: fi
5547:
1.31 ! moko 5548: if test "x$ac_ct_OBJDUMP" = x; then
! 5549: OBJDUMP="false"
! 5550: else
! 5551: case $cross_compiling:$ac_tool_warned in
! 5552: yes:)
! 5553: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5554: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5555: ac_tool_warned=yes ;;
! 5556: esac
! 5557: OBJDUMP=$ac_ct_OBJDUMP
! 5558: fi
1.23 moko 5559: else
5560: OBJDUMP="$ac_cv_prog_OBJDUMP"
5561: fi
5562:
5563: test -z "$OBJDUMP" && OBJDUMP=objdump
5564:
5565:
5566:
5567:
5568:
5569:
1.31 ! moko 5570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
! 5571: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
! 5572: if ${lt_cv_deplibs_check_method+:} false; then :
! 5573: $as_echo_n "(cached) " >&6
1.23 moko 5574: else
5575: lt_cv_file_magic_cmd='$MAGIC_CMD'
5576: lt_cv_file_magic_test_file=
5577: lt_cv_deplibs_check_method='unknown'
5578: # Need to set the preceding variable on all platforms that support
5579: # interlibrary dependencies.
5580: # 'none' -- dependencies not supported.
5581: # `unknown' -- same as none, but documents that we really don't know.
5582: # 'pass_all' -- all dependencies passed with no checks.
5583: # 'test_compile' -- check by making test program.
5584: # 'file_magic [[regex]]' -- check by looking for files in library path
5585: # which responds to the $file_magic_cmd with a given extended regex.
5586: # If you have `file' or equivalent on your system and you're not sure
5587: # whether `pass_all' will *always* work, you probably want this one.
5588:
5589: case $host_os in
5590: aix[4-9]*)
5591: lt_cv_deplibs_check_method=pass_all
5592: ;;
5593:
5594: beos*)
5595: lt_cv_deplibs_check_method=pass_all
5596: ;;
5597:
5598: bsdi[45]*)
5599: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5600: lt_cv_file_magic_cmd='/usr/bin/file -L'
5601: lt_cv_file_magic_test_file=/shlib/libc.so
5602: ;;
5603:
5604: cygwin*)
5605: # func_win32_libid is a shell function defined in ltmain.sh
5606: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5607: lt_cv_file_magic_cmd='func_win32_libid'
5608: ;;
5609:
5610: mingw* | pw32*)
5611: # Base MSYS/MinGW do not provide the 'file' command needed by
5612: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5613: # unless we find 'file', for example because we are cross-compiling.
5614: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5615: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5616: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5617: lt_cv_file_magic_cmd='func_win32_libid'
5618: else
5619: # Keep this pattern in sync with the one in func_win32_libid.
5620: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5621: lt_cv_file_magic_cmd='$OBJDUMP -f'
5622: fi
5623: ;;
5624:
5625: cegcc*)
5626: # use the weaker test based on 'objdump'. See mingw*.
5627: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5628: lt_cv_file_magic_cmd='$OBJDUMP -f'
1.10 paf 5629: ;;
1.1 parser 5630:
1.23 moko 5631: darwin* | rhapsody*)
5632: lt_cv_deplibs_check_method=pass_all
5633: ;;
5634:
5635: freebsd* | dragonfly*)
5636: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.10 paf 5637: case $host_cpu in
5638: i*86 )
5639: # Not sure whether the presence of OpenBSD here was a mistake.
5640: # Let's accept both of them until this is cleared up.
1.23 moko 5641: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.10 paf 5642: lt_cv_file_magic_cmd=/usr/bin/file
5643: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 5644: ;;
5645: esac
1.10 paf 5646: else
5647: lt_cv_deplibs_check_method=pass_all
1.1 parser 5648: fi
5649: ;;
5650:
1.10 paf 5651: gnu*)
5652: lt_cv_deplibs_check_method=pass_all
5653: ;;
5654:
1.23 moko 5655: haiku*)
5656: lt_cv_deplibs_check_method=pass_all
1.10 paf 5657: ;;
1.1 parser 5658:
1.23 moko 5659: hpux10.20* | hpux11*)
5660: lt_cv_file_magic_cmd=/usr/bin/file
5661: case $host_cpu in
5662: ia64*)
5663: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5664: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5665: ;;
5666: hppa*64*)
5667: 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]'
5668: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.10 paf 5669: ;;
5670: *)
1.23 moko 5671: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5672: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.10 paf 5673: ;;
5674: esac
1.23 moko 5675: ;;
5676:
5677: interix[3-9]*)
5678: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5679: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5680: ;;
5681:
5682: irix5* | irix6* | nonstopux*)
5683: case $LD in
5684: *-32|*"-32 ") libmagic=32-bit;;
5685: *-n32|*"-n32 ") libmagic=N32;;
5686: *-64|*"-64 ") libmagic=64-bit;;
5687: *) libmagic=never-match;;
5688: esac
1.10 paf 5689: lt_cv_deplibs_check_method=pass_all
5690: ;;
1.1 parser 5691:
1.23 moko 5692: # This must be glibc/ELF.
5693: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5694: lt_cv_deplibs_check_method=pass_all
1.10 paf 5695: ;;
5696:
5697: netbsd*)
1.23 moko 5698: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5699: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.10 paf 5700: else
1.23 moko 5701: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.10 paf 5702: fi
5703: ;;
5704:
5705: newos6*)
5706: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5707: lt_cv_file_magic_cmd=/usr/bin/file
5708: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5709: ;;
1.1 parser 5710:
1.23 moko 5711: *nto* | *qnx*)
5712: lt_cv_deplibs_check_method=pass_all
5713: ;;
5714:
1.10 paf 5715: openbsd*)
1.23 moko 5716: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5717: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.10 paf 5718: else
1.23 moko 5719: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 parser 5720: fi
5721: ;;
5722:
1.10 paf 5723: osf3* | osf4* | osf5*)
5724: lt_cv_deplibs_check_method=pass_all
5725: ;;
5726:
1.23 moko 5727: rdos*)
1.10 paf 5728: lt_cv_deplibs_check_method=pass_all
5729: ;;
5730:
5731: solaris*)
5732: lt_cv_deplibs_check_method=pass_all
5733: ;;
5734:
1.23 moko 5735: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.10 paf 5736: lt_cv_deplibs_check_method=pass_all
5737: ;;
5738:
1.23 moko 5739: sysv4 | sysv4.3*)
1.10 paf 5740: case $host_vendor in
5741: motorola)
5742: 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]'
5743: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5744: ;;
5745: ncr)
5746: lt_cv_deplibs_check_method=pass_all
5747: ;;
5748: sequent)
5749: lt_cv_file_magic_cmd='/bin/file'
5750: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5751: ;;
5752: sni)
5753: lt_cv_file_magic_cmd='/bin/file'
5754: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5755: lt_cv_file_magic_test_file=/lib/libc.so
5756: ;;
5757: siemens)
5758: lt_cv_deplibs_check_method=pass_all
5759: ;;
1.23 moko 5760: pc)
5761: lt_cv_deplibs_check_method=pass_all
5762: ;;
1.10 paf 5763: esac
5764: ;;
1.23 moko 5765:
5766: tpf*)
5767: lt_cv_deplibs_check_method=pass_all
5768: ;;
5769: esac
1.10 paf 5770:
5771: fi
1.31 ! moko 5772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
! 5773: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.23 moko 5774:
5775: file_magic_glob=
5776: want_nocaseglob=no
5777: if test "$build" = "$host"; then
5778: case $host_os in
5779: mingw* | pw32*)
5780: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5781: want_nocaseglob=yes
5782: else
5783: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5784: fi
5785: ;;
5786: esac
5787: fi
5788:
1.10 paf 5789: file_magic_cmd=$lt_cv_file_magic_cmd
5790: deplibs_check_method=$lt_cv_deplibs_check_method
1.23 moko 5791: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5792:
5793:
5794:
1.10 paf 5795:
5796:
5797:
5798:
5799:
5800:
5801:
5802:
1.23 moko 5803:
5804:
5805:
5806:
5807:
5808:
5809:
5810:
5811:
5812:
5813:
5814: if test -n "$ac_tool_prefix"; then
5815: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5816: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.31 ! moko 5817: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5818: $as_echo_n "checking for $ac_word... " >&6; }
! 5819: if ${ac_cv_prog_DLLTOOL+:} false; then :
! 5820: $as_echo_n "(cached) " >&6
1.23 moko 5821: else
5822: if test -n "$DLLTOOL"; then
5823: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5824: else
5825: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826: for as_dir in $PATH
5827: do
5828: IFS=$as_save_IFS
5829: test -z "$as_dir" && as_dir=.
1.31 ! moko 5830: for ac_exec_ext in '' $ac_executable_extensions; do
! 5831: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 5832: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.31 ! moko 5833: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5834: break 2
5835: fi
5836: done
1.31 ! moko 5837: done
! 5838: IFS=$as_save_IFS
1.23 moko 5839:
5840: fi
5841: fi
5842: DLLTOOL=$ac_cv_prog_DLLTOOL
5843: if test -n "$DLLTOOL"; then
1.31 ! moko 5844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
! 5845: $as_echo "$DLLTOOL" >&6; }
1.23 moko 5846: else
1.31 ! moko 5847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5848: $as_echo "no" >&6; }
1.23 moko 5849: fi
5850:
1.31 ! moko 5851:
1.23 moko 5852: fi
5853: if test -z "$ac_cv_prog_DLLTOOL"; then
5854: ac_ct_DLLTOOL=$DLLTOOL
5855: # Extract the first word of "dlltool", so it can be a program name with args.
5856: set dummy dlltool; ac_word=$2
1.31 ! moko 5857: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5858: $as_echo_n "checking for $ac_word... " >&6; }
! 5859: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
! 5860: $as_echo_n "(cached) " >&6
1.6 paf 5861: else
1.23 moko 5862: if test -n "$ac_ct_DLLTOOL"; then
5863: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5864: else
5865: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866: for as_dir in $PATH
5867: do
5868: IFS=$as_save_IFS
5869: test -z "$as_dir" && as_dir=.
1.31 ! moko 5870: for ac_exec_ext in '' $ac_executable_extensions; do
! 5871: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 5872: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.31 ! moko 5873: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5874: break 2
5875: fi
5876: done
1.31 ! moko 5877: done
! 5878: IFS=$as_save_IFS
1.23 moko 5879:
5880: fi
5881: fi
5882: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5883: if test -n "$ac_ct_DLLTOOL"; then
1.31 ! moko 5884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
! 5885: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.23 moko 5886: else
1.31 ! moko 5887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5888: $as_echo "no" >&6; }
1.23 moko 5889: fi
5890:
1.31 ! moko 5891: if test "x$ac_ct_DLLTOOL" = x; then
! 5892: DLLTOOL="false"
! 5893: else
! 5894: case $cross_compiling:$ac_tool_warned in
! 5895: yes:)
! 5896: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5897: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5898: ac_tool_warned=yes ;;
! 5899: esac
! 5900: DLLTOOL=$ac_ct_DLLTOOL
! 5901: fi
1.23 moko 5902: else
5903: DLLTOOL="$ac_cv_prog_DLLTOOL"
5904: fi
5905:
5906: test -z "$DLLTOOL" && DLLTOOL=dlltool
5907:
1.10 paf 5908:
5909:
5910:
5911:
5912:
5913:
1.31 ! moko 5914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
! 5915: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
! 5916: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
! 5917: $as_echo_n "(cached) " >&6
1.23 moko 5918: else
5919: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.10 paf 5920:
5921: case $host_os in
1.23 moko 5922: cygwin* | mingw* | pw32* | cegcc*)
5923: # two different shell functions defined in ltmain.sh
5924: # decide which to use based on capabilities of $DLLTOOL
5925: case `$DLLTOOL --help 2>&1` in
5926: *--identify-strict*)
5927: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5928: ;;
5929: *)
5930: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5931: ;;
5932: esac
1.10 paf 5933: ;;
1.23 moko 5934: *)
5935: # fallback: assume linklib IS sharedlib
5936: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.10 paf 5937: ;;
5938: esac
5939:
5940: fi
1.31 ! moko 5941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
! 5942: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.23 moko 5943: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5944: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.10 paf 5945:
5946:
5947:
5948:
5949:
5950:
5951:
5952:
1.23 moko 5953: if test -n "$ac_tool_prefix"; then
5954: for ac_prog in ar
5955: do
5956: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5957: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 ! moko 5958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5959: $as_echo_n "checking for $ac_word... " >&6; }
! 5960: if ${ac_cv_prog_AR+:} false; then :
! 5961: $as_echo_n "(cached) " >&6
1.23 moko 5962: else
5963: if test -n "$AR"; then
5964: ac_cv_prog_AR="$AR" # Let the user override the test.
5965: else
5966: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967: for as_dir in $PATH
5968: do
5969: IFS=$as_save_IFS
5970: test -z "$as_dir" && as_dir=.
1.31 ! moko 5971: for ac_exec_ext in '' $ac_executable_extensions; do
! 5972: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 5973: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.31 ! moko 5974: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5975: break 2
1.10 paf 5976: fi
5977: done
1.31 ! moko 5978: done
! 5979: IFS=$as_save_IFS
1.10 paf 5980:
1.6 paf 5981: fi
5982: fi
1.23 moko 5983: AR=$ac_cv_prog_AR
5984: if test -n "$AR"; then
1.31 ! moko 5985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
! 5986: $as_echo "$AR" >&6; }
1.6 paf 5987: else
1.31 ! moko 5988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5989: $as_echo "no" >&6; }
1.6 paf 5990: fi
5991:
1.31 ! moko 5992:
1.23 moko 5993: test -n "$AR" && break
5994: done
1.15 paf 5995: fi
1.23 moko 5996: if test -z "$AR"; then
5997: ac_ct_AR=$AR
5998: for ac_prog in ar
5999: do
6000: # Extract the first word of "$ac_prog", so it can be a program name with args.
6001: set dummy $ac_prog; ac_word=$2
1.31 ! moko 6002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6003: $as_echo_n "checking for $ac_word... " >&6; }
! 6004: if ${ac_cv_prog_ac_ct_AR+:} false; then :
! 6005: $as_echo_n "(cached) " >&6
1.6 paf 6006: else
1.23 moko 6007: if test -n "$ac_ct_AR"; then
6008: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6009: else
6010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011: for as_dir in $PATH
1.10 paf 6012: do
1.23 moko 6013: IFS=$as_save_IFS
6014: test -z "$as_dir" && as_dir=.
1.31 ! moko 6015: for ac_exec_ext in '' $ac_executable_extensions; do
! 6016: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 6017: ac_cv_prog_ac_ct_AR="$ac_prog"
1.31 ! moko 6018: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6019: break 2
1.10 paf 6020: fi
1.23 moko 6021: done
1.31 ! moko 6022: done
! 6023: IFS=$as_save_IFS
1.10 paf 6024:
1.6 paf 6025: fi
6026: fi
1.23 moko 6027: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6028: if test -n "$ac_ct_AR"; then
1.31 ! moko 6029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
! 6030: $as_echo "$ac_ct_AR" >&6; }
1.10 paf 6031: else
1.31 ! moko 6032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6033: $as_echo "no" >&6; }
1.6 paf 6034: fi
1.10 paf 6035:
1.31 ! moko 6036:
1.23 moko 6037: test -n "$ac_ct_AR" && break
1.10 paf 6038: done
1.23 moko 6039:
1.31 ! moko 6040: if test "x$ac_ct_AR" = x; then
! 6041: AR="false"
! 6042: else
! 6043: case $cross_compiling:$ac_tool_warned in
! 6044: yes:)
! 6045: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6046: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6047: ac_tool_warned=yes ;;
! 6048: esac
! 6049: AR=$ac_ct_AR
! 6050: fi
1.6 paf 6051: fi
6052:
1.23 moko 6053: : ${AR=ar}
6054: : ${AR_FLAGS=cru}
6055:
1.10 paf 6056:
6057:
1.6 paf 6058:
1.10 paf 6059:
1.6 paf 6060:
6061:
1.10 paf 6062:
6063:
6064:
6065:
1.31 ! moko 6066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
! 6067: $as_echo_n "checking for archiver @FILE support... " >&6; }
! 6068: if ${lt_cv_ar_at_file+:} false; then :
! 6069: $as_echo_n "(cached) " >&6
1.10 paf 6070: else
1.23 moko 6071: lt_cv_ar_at_file=no
1.31 ! moko 6072: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 6073: /* end confdefs.h. */
6074:
6075: int
6076: main ()
6077: {
6078:
6079: ;
6080: return 0;
6081: }
6082: _ACEOF
1.31 ! moko 6083: if ac_fn_c_try_compile "$LINENO"; then :
1.23 moko 6084: echo conftest.$ac_objext > conftest.lst
6085: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.31 ! moko 6086: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.23 moko 6087: (eval $lt_ar_try) 2>&5
6088: ac_status=$?
1.31 ! moko 6089: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6090: test $ac_status = 0; }
1.23 moko 6091: if test "$ac_status" -eq 0; then
6092: # Ensure the archiver fails upon bogus file names.
6093: rm -f conftest.$ac_objext libconftest.a
1.31 ! moko 6094: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.23 moko 6095: (eval $lt_ar_try) 2>&5
6096: ac_status=$?
1.31 ! moko 6097: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6098: test $ac_status = 0; }
1.23 moko 6099: if test "$ac_status" -ne 0; then
6100: lt_cv_ar_at_file=@
6101: fi
6102: fi
6103: rm -f conftest.* libconftest.a
6104:
1.6 paf 6105: fi
1.31 ! moko 6106: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.6 paf 6107:
1.23 moko 6108: fi
1.31 ! moko 6109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
! 6110: $as_echo "$lt_cv_ar_at_file" >&6; }
1.6 paf 6111:
1.23 moko 6112: if test "x$lt_cv_ar_at_file" = xno; then
6113: archiver_list_spec=
1.6 paf 6114: else
1.23 moko 6115: archiver_list_spec=$lt_cv_ar_at_file
1.6 paf 6116: fi
1.10 paf 6117:
6118:
6119:
1.23 moko 6120:
6121:
6122:
6123:
6124: if test -n "$ac_tool_prefix"; then
6125: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6126: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.31 ! moko 6127: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6128: $as_echo_n "checking for $ac_word... " >&6; }
! 6129: if ${ac_cv_prog_STRIP+:} false; then :
! 6130: $as_echo_n "(cached) " >&6
1.23 moko 6131: else
6132: if test -n "$STRIP"; then
6133: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6134: else
6135: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136: for as_dir in $PATH
6137: do
6138: IFS=$as_save_IFS
6139: test -z "$as_dir" && as_dir=.
1.31 ! moko 6140: for ac_exec_ext in '' $ac_executable_extensions; do
! 6141: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 6142: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.31 ! moko 6143: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6144: break 2
6145: fi
6146: done
1.31 ! moko 6147: done
! 6148: IFS=$as_save_IFS
1.23 moko 6149:
6150: fi
6151: fi
6152: STRIP=$ac_cv_prog_STRIP
6153: if test -n "$STRIP"; then
1.31 ! moko 6154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 6155: $as_echo "$STRIP" >&6; }
1.6 paf 6156: else
1.31 ! moko 6157: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6158: $as_echo "no" >&6; }
1.6 paf 6159: fi
6160:
1.31 ! moko 6161:
1.6 paf 6162: fi
1.23 moko 6163: if test -z "$ac_cv_prog_STRIP"; then
6164: ac_ct_STRIP=$STRIP
6165: # Extract the first word of "strip", so it can be a program name with args.
6166: set dummy strip; ac_word=$2
1.31 ! moko 6167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6168: $as_echo_n "checking for $ac_word... " >&6; }
! 6169: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
! 6170: $as_echo_n "(cached) " >&6
1.10 paf 6171: else
1.23 moko 6172: if test -n "$ac_ct_STRIP"; then
6173: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 6174: else
1.23 moko 6175: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176: for as_dir in $PATH
6177: do
6178: IFS=$as_save_IFS
6179: test -z "$as_dir" && as_dir=.
1.31 ! moko 6180: for ac_exec_ext in '' $ac_executable_extensions; do
! 6181: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 6182: ac_cv_prog_ac_ct_STRIP="strip"
1.31 ! moko 6183: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6184: break 2
6185: fi
6186: done
1.31 ! moko 6187: done
! 6188: IFS=$as_save_IFS
1.10 paf 6189:
6190: fi
6191: fi
1.23 moko 6192: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6193: if test -n "$ac_ct_STRIP"; then
1.31 ! moko 6194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 6195: $as_echo "$ac_ct_STRIP" >&6; }
1.23 moko 6196: else
1.31 ! moko 6197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6198: $as_echo "no" >&6; }
1.1 parser 6199: fi
6200:
1.31 ! moko 6201: if test "x$ac_ct_STRIP" = x; then
! 6202: STRIP=":"
! 6203: else
! 6204: case $cross_compiling:$ac_tool_warned in
! 6205: yes:)
! 6206: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6207: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6208: ac_tool_warned=yes ;;
! 6209: esac
! 6210: STRIP=$ac_ct_STRIP
! 6211: fi
1.23 moko 6212: else
6213: STRIP="$ac_cv_prog_STRIP"
1.10 paf 6214: fi
1.1 parser 6215:
1.23 moko 6216: test -z "$STRIP" && STRIP=:
1.1 parser 6217:
6218:
6219:
6220:
6221:
6222:
1.23 moko 6223: if test -n "$ac_tool_prefix"; then
6224: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6225: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.31 ! moko 6226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6227: $as_echo_n "checking for $ac_word... " >&6; }
! 6228: if ${ac_cv_prog_RANLIB+:} false; then :
! 6229: $as_echo_n "(cached) " >&6
1.10 paf 6230: else
1.23 moko 6231: if test -n "$RANLIB"; then
6232: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.10 paf 6233: else
1.23 moko 6234: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235: for as_dir in $PATH
6236: do
6237: IFS=$as_save_IFS
6238: test -z "$as_dir" && as_dir=.
1.31 ! moko 6239: for ac_exec_ext in '' $ac_executable_extensions; do
! 6240: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 6241: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.31 ! moko 6242: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6243: break 2
6244: fi
6245: done
1.31 ! moko 6246: done
! 6247: IFS=$as_save_IFS
1.10 paf 6248:
6249: fi
6250: fi
1.23 moko 6251: RANLIB=$ac_cv_prog_RANLIB
6252: if test -n "$RANLIB"; then
1.31 ! moko 6253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
! 6254: $as_echo "$RANLIB" >&6; }
1.23 moko 6255: else
1.31 ! moko 6256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6257: $as_echo "no" >&6; }
1.23 moko 6258: fi
1.1 parser 6259:
1.31 ! moko 6260:
1.10 paf 6261: fi
1.23 moko 6262: if test -z "$ac_cv_prog_RANLIB"; then
6263: ac_ct_RANLIB=$RANLIB
6264: # Extract the first word of "ranlib", so it can be a program name with args.
6265: set dummy ranlib; ac_word=$2
1.31 ! moko 6266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6267: $as_echo_n "checking for $ac_word... " >&6; }
! 6268: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
! 6269: $as_echo_n "(cached) " >&6
1.23 moko 6270: else
6271: if test -n "$ac_ct_RANLIB"; then
6272: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6273: else
6274: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275: for as_dir in $PATH
6276: do
6277: IFS=$as_save_IFS
6278: test -z "$as_dir" && as_dir=.
1.31 ! moko 6279: for ac_exec_ext in '' $ac_executable_extensions; do
! 6280: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 6281: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.31 ! moko 6282: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6283: break 2
6284: fi
6285: done
1.31 ! moko 6286: done
! 6287: IFS=$as_save_IFS
1.10 paf 6288:
1.23 moko 6289: fi
6290: fi
6291: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6292: if test -n "$ac_ct_RANLIB"; then
1.31 ! moko 6293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
! 6294: $as_echo "$ac_ct_RANLIB" >&6; }
1.10 paf 6295: else
1.31 ! moko 6296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6297: $as_echo "no" >&6; }
1.10 paf 6298: fi
6299:
1.31 ! moko 6300: if test "x$ac_ct_RANLIB" = x; then
! 6301: RANLIB=":"
! 6302: else
! 6303: case $cross_compiling:$ac_tool_warned in
! 6304: yes:)
! 6305: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6306: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6307: ac_tool_warned=yes ;;
! 6308: esac
! 6309: RANLIB=$ac_ct_RANLIB
! 6310: fi
1.10 paf 6311: else
1.23 moko 6312: RANLIB="$ac_cv_prog_RANLIB"
1.10 paf 6313: fi
6314:
1.23 moko 6315: test -z "$RANLIB" && RANLIB=:
6316:
6317:
6318:
6319:
6320:
6321:
6322: # Determine commands to create old-style static archives.
6323: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6324: old_postinstall_cmds='chmod 644 $oldlib'
6325: old_postuninstall_cmds=
1.10 paf 6326:
1.23 moko 6327: if test -n "$RANLIB"; then
6328: case $host_os in
6329: openbsd*)
6330: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.10 paf 6331: ;;
1.23 moko 6332: *)
6333: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.10 paf 6334: ;;
1.23 moko 6335: esac
6336: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.10 paf 6337: fi
6338:
1.23 moko 6339: case $host_os in
6340: darwin*)
6341: lock_old_archive_extraction=yes ;;
6342: *)
6343: lock_old_archive_extraction=no ;;
6344: esac
1.10 paf 6345:
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353:
6354:
6355:
6356:
6357:
6358:
6359:
6360:
1.1 parser 6361:
6362:
1.10 paf 6363:
6364:
6365:
6366:
6367:
1.1 parser 6368:
1.10 paf 6369:
1.1 parser 6370:
6371:
1.10 paf 6372:
6373:
6374:
6375:
6376:
6377:
1.1 parser 6378:
1.10 paf 6379:
6380:
6381:
6382:
6383:
1.23 moko 6384: # If no C compiler was specified, use CC.
6385: LTCC=${LTCC-"$CC"}
1.1 parser 6386:
1.23 moko 6387: # If no C compiler flags were specified, use CFLAGS.
6388: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.10 paf 6389:
1.23 moko 6390: # Allow CC to be a program name with arguments.
6391: compiler=$CC
1.10 paf 6392:
1.1 parser 6393:
1.23 moko 6394: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.31 ! moko 6395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
! 6396: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
! 6397: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
! 6398: $as_echo_n "(cached) " >&6
1.23 moko 6399: else
6400:
6401: # These are sane defaults that work on at least a few old systems.
6402: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.10 paf 6403:
1.23 moko 6404: # Character class describing NM global symbol codes.
6405: symcode='[BCDEGRST]'
1.10 paf 6406:
1.23 moko 6407: # Regexp to match symbols that can be accessed directly from C.
6408: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.10 paf 6409:
1.23 moko 6410: # Define system-specific variables.
6411: case $host_os in
6412: aix*)
6413: symcode='[BCDT]'
6414: ;;
6415: cygwin* | mingw* | pw32* | cegcc*)
6416: symcode='[ABCDGISTW]'
6417: ;;
6418: hpux*)
6419: if test "$host_cpu" = ia64; then
6420: symcode='[ABCDEGRST]'
6421: fi
6422: ;;
6423: irix* | nonstopux*)
6424: symcode='[BCDEGRST]'
6425: ;;
6426: osf*)
6427: symcode='[BCDEGQRST]'
6428: ;;
6429: solaris*)
6430: symcode='[BDRT]'
6431: ;;
6432: sco3.2v5*)
6433: symcode='[DT]'
6434: ;;
6435: sysv4.2uw2*)
6436: symcode='[DT]'
6437: ;;
6438: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6439: symcode='[ABDT]'
6440: ;;
6441: sysv4)
6442: symcode='[DFNSTU]'
6443: ;;
6444: esac
1.10 paf 6445:
1.23 moko 6446: # If we're using GNU nm, then use its standard symbol codes.
6447: case `$NM -V 2>&1` in
6448: *GNU* | *'with BFD'*)
6449: symcode='[ABCDGIRSTW]' ;;
6450: esac
1.10 paf 6451:
1.23 moko 6452: # Transform an extracted symbol line into a proper C declaration.
6453: # Some systems (esp. on ia64) link data and code symbols differently,
6454: # so use this general approach.
6455: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.10 paf 6456:
1.23 moko 6457: # Transform an extracted symbol line into symbol name and symbol address
6458: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6459: 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'"
1.10 paf 6460:
1.23 moko 6461: # Handle CRLF in mingw tool chain
6462: opt_cr=
6463: case $build_os in
6464: mingw*)
6465: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6466: ;;
6467: esac
1.10 paf 6468:
1.23 moko 6469: # Try without a prefix underscore, then with it.
6470: for ac_symprfx in "" "_"; do
1.1 parser 6471:
1.23 moko 6472: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6473: symxfrm="\\1 $ac_symprfx\\2 \\2"
1.10 paf 6474:
1.23 moko 6475: # Write the raw and C identifiers.
6476: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6477: # Fake it for dumpbin and say T for any non-static function
6478: # and D for any global variable.
6479: # Also find C++ and __fastcall symbols from MSVC++,
6480: # which start with @ or ?.
6481: lt_cv_sys_global_symbol_pipe="$AWK '"\
6482: " {last_section=section; section=\$ 3};"\
6483: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6484: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6485: " \$ 0!~/External *\|/{next};"\
6486: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6487: " {if(hide[section]) next};"\
6488: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6489: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6490: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6491: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6492: " ' prfx=^$ac_symprfx"
6493: else
6494: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.10 paf 6495: fi
1.23 moko 6496: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.10 paf 6497:
1.23 moko 6498: # Check to see that the pipe works correctly.
6499: pipe_works=no
1.10 paf 6500:
1.23 moko 6501: rm -f conftest*
6502: cat > conftest.$ac_ext <<_LT_EOF
6503: #ifdef __cplusplus
6504: extern "C" {
6505: #endif
6506: char nm_test_var;
6507: void nm_test_func(void);
6508: void nm_test_func(void){}
6509: #ifdef __cplusplus
6510: }
6511: #endif
6512: int main(){nm_test_var='a';nm_test_func();return(0);}
6513: _LT_EOF
1.1 parser 6514:
1.31 ! moko 6515: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6516: (eval $ac_compile) 2>&5
6517: ac_status=$?
1.31 ! moko 6518: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6519: test $ac_status = 0; }; then
1.23 moko 6520: # Now try to grab the symbols.
6521: nlist=conftest.nm
1.31 ! moko 6522: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.23 moko 6523: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6524: ac_status=$?
1.31 ! moko 6525: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6526: test $ac_status = 0; } && test -s "$nlist"; then
1.23 moko 6527: # Try sorting and uniquifying the output.
6528: if sort "$nlist" | uniq > "$nlist"T; then
6529: mv -f "$nlist"T "$nlist"
6530: else
6531: rm -f "$nlist"T
6532: fi
1.10 paf 6533:
1.23 moko 6534: # Make sure that we snagged all the symbols we need.
6535: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6536: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6537: cat <<_LT_EOF > conftest.$ac_ext
6538: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6539: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6540: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6541: relocations are performed -- see ld's documentation on pseudo-relocs. */
6542: # define LT_DLSYM_CONST
6543: #elif defined(__osf__)
6544: /* This system does not cope well with relocations in const data. */
6545: # define LT_DLSYM_CONST
6546: #else
6547: # define LT_DLSYM_CONST const
6548: #endif
1.10 paf 6549:
1.23 moko 6550: #ifdef __cplusplus
6551: extern "C" {
6552: #endif
1.10 paf 6553:
1.23 moko 6554: _LT_EOF
6555: # Now generate the symbol file.
6556: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.10 paf 6557:
1.23 moko 6558: cat <<_LT_EOF >> conftest.$ac_ext
1.10 paf 6559:
1.23 moko 6560: /* The mapping between symbol names and symbols. */
6561: LT_DLSYM_CONST struct {
6562: const char *name;
6563: void *address;
6564: }
6565: lt__PROGRAM__LTX_preloaded_symbols[] =
6566: {
6567: { "@PROGRAM@", (void *) 0 },
6568: _LT_EOF
6569: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6570: cat <<\_LT_EOF >> conftest.$ac_ext
6571: {0, (void *) 0}
6572: };
1.10 paf 6573:
1.23 moko 6574: /* This works around a problem in FreeBSD linker */
6575: #ifdef FREEBSD_WORKAROUND
6576: static const void *lt_preloaded_setup() {
6577: return lt__PROGRAM__LTX_preloaded_symbols;
6578: }
6579: #endif
1.1 parser 6580:
1.23 moko 6581: #ifdef __cplusplus
6582: }
6583: #endif
6584: _LT_EOF
6585: # Now try linking the two files.
6586: mv conftest.$ac_objext conftstm.$ac_objext
6587: lt_globsym_save_LIBS=$LIBS
6588: lt_globsym_save_CFLAGS=$CFLAGS
6589: LIBS="conftstm.$ac_objext"
6590: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.31 ! moko 6591: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 6592: (eval $ac_link) 2>&5
6593: ac_status=$?
1.31 ! moko 6594: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6595: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.23 moko 6596: pipe_works=yes
6597: fi
6598: LIBS=$lt_globsym_save_LIBS
6599: CFLAGS=$lt_globsym_save_CFLAGS
6600: else
6601: echo "cannot find nm_test_func in $nlist" >&5
6602: fi
6603: else
6604: echo "cannot find nm_test_var in $nlist" >&5
1.10 paf 6605: fi
1.23 moko 6606: else
6607: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6608: fi
6609: else
6610: echo "$progname: failed program was:" >&5
6611: cat conftest.$ac_ext >&5
6612: fi
6613: rm -rf conftest* conftst*
6614:
6615: # Do not use the global_symbol_pipe unless it works.
6616: if test "$pipe_works" = yes; then
6617: break
1.10 paf 6618: else
1.23 moko 6619: lt_cv_sys_global_symbol_pipe=
6620: fi
6621: done
6622:
6623: fi
1.10 paf 6624:
1.23 moko 6625: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6626: lt_cv_sys_global_symbol_to_cdecl=
6627: fi
6628: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.31 ! moko 6629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
! 6630: $as_echo "failed" >&6; }
1.23 moko 6631: else
1.31 ! moko 6632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
! 6633: $as_echo "ok" >&6; }
1.23 moko 6634: fi
1.10 paf 6635:
1.23 moko 6636: # Response file support.
6637: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6638: nm_file_list_spec='@'
6639: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6640: nm_file_list_spec='@'
6641: fi
1.10 paf 6642:
6643:
6644:
6645:
6646:
6647:
6648:
6649:
6650:
6651:
6652:
6653:
1.23 moko 6654:
6655:
6656:
6657:
6658:
6659:
6660:
6661:
6662:
6663:
6664:
6665:
6666:
6667:
6668:
1.31 ! moko 6669: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
! 6670: $as_echo_n "checking for sysroot... " >&6; }
1.23 moko 6671:
1.31 ! moko 6672: # Check whether --with-sysroot was given.
! 6673: if test "${with_sysroot+set}" = set; then :
! 6674: withval=$with_sysroot;
1.10 paf 6675: else
1.23 moko 6676: with_sysroot=no
1.31 ! moko 6677: fi
! 6678:
1.23 moko 6679:
6680: lt_sysroot=
6681: case ${with_sysroot} in #(
6682: yes)
6683: if test "$GCC" = yes; then
6684: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6685: fi
6686: ;; #(
6687: /*)
6688: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6689: ;; #(
6690: no|'')
6691: ;; #(
6692: *)
1.31 ! moko 6693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
! 6694: $as_echo "${with_sysroot}" >&6; }
! 6695: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.23 moko 6696: ;;
6697: esac
6698:
1.31 ! moko 6699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
! 6700: $as_echo "${lt_sysroot:-no}" >&6; }
1.23 moko 6701:
6702:
1.10 paf 6703:
6704:
6705:
1.31 ! moko 6706: # Check whether --enable-libtool-lock was given.
! 6707: if test "${enable_libtool_lock+set}" = set; then :
! 6708: enableval=$enable_libtool_lock;
! 6709: fi
1.23 moko 6710:
6711: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6712:
6713: # Some flags need to be propagated to the compiler or linker for good
6714: # libtool support.
6715: case $host in
6716: ia64-*-hpux*)
6717: # Find out which ABI we are using.
6718: echo 'int i;' > conftest.$ac_ext
1.31 ! moko 6719: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6720: (eval $ac_compile) 2>&5
1.10 paf 6721: ac_status=$?
1.31 ! moko 6722: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6723: test $ac_status = 0; }; then
1.23 moko 6724: case `/usr/bin/file conftest.$ac_objext` in
6725: *ELF-32*)
6726: HPUX_IA64_MODE="32"
6727: ;;
6728: *ELF-64*)
6729: HPUX_IA64_MODE="64"
6730: ;;
6731: esac
6732: fi
6733: rm -rf conftest*
6734: ;;
6735: *-*-irix6*)
6736: # Find out which ABI we are using.
6737: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.31 ! moko 6738: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6739: (eval $ac_compile) 2>&5
1.16 paf 6740: ac_status=$?
1.31 ! moko 6741: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6742: test $ac_status = 0; }; then
1.23 moko 6743: if test "$lt_cv_prog_gnu_ld" = yes; then
6744: case `/usr/bin/file conftest.$ac_objext` in
6745: *32-bit*)
6746: LD="${LD-ld} -melf32bsmip"
6747: ;;
6748: *N32*)
6749: LD="${LD-ld} -melf32bmipn32"
6750: ;;
6751: *64-bit*)
6752: LD="${LD-ld} -melf64bmip"
6753: ;;
6754: esac
6755: else
6756: case `/usr/bin/file conftest.$ac_objext` in
6757: *32-bit*)
6758: LD="${LD-ld} -32"
6759: ;;
6760: *N32*)
6761: LD="${LD-ld} -n32"
6762: ;;
6763: *64-bit*)
6764: LD="${LD-ld} -64"
6765: ;;
6766: esac
6767: fi
6768: fi
6769: rm -rf conftest*
6770: ;;
6771:
6772: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6773: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6774: # Find out which ABI we are using.
6775: echo 'int i;' > conftest.$ac_ext
1.31 ! moko 6776: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6777: (eval $ac_compile) 2>&5
1.10 paf 6778: ac_status=$?
1.31 ! moko 6779: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6780: test $ac_status = 0; }; then
1.23 moko 6781: case `/usr/bin/file conftest.o` in
6782: *32-bit*)
6783: case $host in
6784: x86_64-*kfreebsd*-gnu)
6785: LD="${LD-ld} -m elf_i386_fbsd"
6786: ;;
6787: x86_64-*linux*)
6788: LD="${LD-ld} -m elf_i386"
6789: ;;
6790: ppc64-*linux*|powerpc64-*linux*)
6791: LD="${LD-ld} -m elf32ppclinux"
6792: ;;
6793: s390x-*linux*)
6794: LD="${LD-ld} -m elf_s390"
6795: ;;
6796: sparc64-*linux*)
6797: LD="${LD-ld} -m elf32_sparc"
6798: ;;
6799: esac
1.10 paf 6800: ;;
1.23 moko 6801: *64-bit*)
6802: case $host in
6803: x86_64-*kfreebsd*-gnu)
6804: LD="${LD-ld} -m elf_x86_64_fbsd"
6805: ;;
6806: x86_64-*linux*)
6807: LD="${LD-ld} -m elf_x86_64"
6808: ;;
6809: ppc*-*linux*|powerpc*-*linux*)
6810: LD="${LD-ld} -m elf64ppc"
6811: ;;
6812: s390*-*linux*|s390*-*tpf*)
6813: LD="${LD-ld} -m elf64_s390"
6814: ;;
6815: sparc*-*linux*)
6816: LD="${LD-ld} -m elf64_sparc"
6817: ;;
6818: esac
1.10 paf 6819: ;;
1.23 moko 6820: esac
1.10 paf 6821: fi
1.23 moko 6822: rm -rf conftest*
6823: ;;
1.10 paf 6824:
1.23 moko 6825: *-*-sco3.2v5*)
6826: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6827: SAVE_CFLAGS="$CFLAGS"
6828: CFLAGS="$CFLAGS -belf"
1.31 ! moko 6829: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
! 6830: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
! 6831: if ${lt_cv_cc_needs_belf+:} false; then :
! 6832: $as_echo_n "(cached) " >&6
1.10 paf 6833: else
1.23 moko 6834: ac_ext=c
6835: ac_cpp='$CPP $CPPFLAGS'
6836: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6839:
1.31 ! moko 6840: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 6841: /* end confdefs.h. */
6842:
6843: int
6844: main ()
6845: {
6846:
6847: ;
6848: return 0;
6849: }
6850: _ACEOF
1.31 ! moko 6851: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 6852: lt_cv_cc_needs_belf=yes
1.10 paf 6853: else
1.31 ! moko 6854: lt_cv_cc_needs_belf=no
1.10 paf 6855: fi
1.31 ! moko 6856: rm -f core conftest.err conftest.$ac_objext \
! 6857: conftest$ac_exeext conftest.$ac_ext
1.23 moko 6858: ac_ext=c
6859: ac_cpp='$CPP $CPPFLAGS'
6860: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6861: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6862: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 6863:
6864: fi
1.31 ! moko 6865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
! 6866: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.23 moko 6867: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6868: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6869: CFLAGS="$SAVE_CFLAGS"
6870: fi
6871: ;;
6872: *-*solaris*)
6873: # Find out which ABI we are using.
6874: echo 'int i;' > conftest.$ac_ext
1.31 ! moko 6875: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6876: (eval $ac_compile) 2>&5
6877: ac_status=$?
1.31 ! moko 6878: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6879: test $ac_status = 0; }; then
1.23 moko 6880: case `/usr/bin/file conftest.o` in
6881: *64-bit*)
6882: case $lt_cv_prog_gnu_ld in
6883: yes*)
6884: case $host in
6885: i?86-*-solaris*)
6886: LD="${LD-ld} -m elf_x86_64"
6887: ;;
6888: sparc*-*-solaris*)
6889: LD="${LD-ld} -m elf64_sparc"
6890: ;;
6891: esac
6892: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6893: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6894: LD="${LD-ld}_sol2"
6895: fi
6896: ;;
6897: *)
6898: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6899: LD="${LD-ld} -64"
6900: fi
6901: ;;
6902: esac
6903: ;;
6904: esac
6905: fi
6906: rm -rf conftest*
6907: ;;
6908: esac
1.10 paf 6909:
1.23 moko 6910: need_locks="$enable_libtool_lock"
1.10 paf 6911:
1.23 moko 6912: if test -n "$ac_tool_prefix"; then
6913: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6914: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.31 ! moko 6915: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6916: $as_echo_n "checking for $ac_word... " >&6; }
! 6917: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
! 6918: $as_echo_n "(cached) " >&6
1.23 moko 6919: else
6920: if test -n "$MANIFEST_TOOL"; then
6921: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6922: else
6923: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924: for as_dir in $PATH
6925: do
6926: IFS=$as_save_IFS
6927: test -z "$as_dir" && as_dir=.
1.31 ! moko 6928: for ac_exec_ext in '' $ac_executable_extensions; do
! 6929: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 6930: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.31 ! moko 6931: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6932: break 2
6933: fi
6934: done
1.31 ! moko 6935: done
! 6936: IFS=$as_save_IFS
1.10 paf 6937:
1.23 moko 6938: fi
6939: fi
6940: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6941: if test -n "$MANIFEST_TOOL"; then
1.31 ! moko 6942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
! 6943: $as_echo "$MANIFEST_TOOL" >&6; }
1.23 moko 6944: else
1.31 ! moko 6945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6946: $as_echo "no" >&6; }
1.23 moko 6947: fi
1.10 paf 6948:
1.31 ! moko 6949:
1.23 moko 6950: fi
6951: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6952: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6953: # Extract the first word of "mt", so it can be a program name with args.
6954: set dummy mt; ac_word=$2
1.31 ! moko 6955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6956: $as_echo_n "checking for $ac_word... " >&6; }
! 6957: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
! 6958: $as_echo_n "(cached) " >&6
1.10 paf 6959: else
1.23 moko 6960: if test -n "$ac_ct_MANIFEST_TOOL"; then
6961: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6962: else
6963: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964: for as_dir in $PATH
6965: do
6966: IFS=$as_save_IFS
6967: test -z "$as_dir" && as_dir=.
1.31 ! moko 6968: for ac_exec_ext in '' $ac_executable_extensions; do
! 6969: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 6970: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.31 ! moko 6971: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6972: break 2
6973: fi
6974: done
1.31 ! moko 6975: done
! 6976: IFS=$as_save_IFS
1.10 paf 6977:
1.23 moko 6978: fi
6979: fi
6980: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6981: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.31 ! moko 6982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
! 6983: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.10 paf 6984: else
1.31 ! moko 6985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6986: $as_echo "no" >&6; }
1.10 paf 6987: fi
6988:
1.31 ! moko 6989: if test "x$ac_ct_MANIFEST_TOOL" = x; then
! 6990: MANIFEST_TOOL=":"
! 6991: else
! 6992: case $cross_compiling:$ac_tool_warned in
! 6993: yes:)
! 6994: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6995: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6996: ac_tool_warned=yes ;;
! 6997: esac
! 6998: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
! 6999: fi
1.23 moko 7000: else
7001: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
1.10 paf 7002: fi
7003:
1.23 moko 7004: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.31 ! moko 7005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
! 7006: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
! 7007: if ${lt_cv_path_mainfest_tool+:} false; then :
! 7008: $as_echo_n "(cached) " >&6
1.10 paf 7009: else
1.23 moko 7010: lt_cv_path_mainfest_tool=no
7011: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7012: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7013: cat conftest.err >&5
7014: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7015: lt_cv_path_mainfest_tool=yes
7016: fi
7017: rm -f conftest*
7018: fi
1.31 ! moko 7019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
! 7020: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.23 moko 7021: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7022: MANIFEST_TOOL=:
7023: fi
7024:
7025:
7026:
7027:
1.10 paf 7028:
7029:
1.23 moko 7030: case $host_os in
7031: rhapsody* | darwin*)
7032: if test -n "$ac_tool_prefix"; then
7033: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7034: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.31 ! moko 7035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7036: $as_echo_n "checking for $ac_word... " >&6; }
! 7037: if ${ac_cv_prog_DSYMUTIL+:} false; then :
! 7038: $as_echo_n "(cached) " >&6
1.23 moko 7039: else
7040: if test -n "$DSYMUTIL"; then
7041: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7042: else
7043: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044: for as_dir in $PATH
7045: do
7046: IFS=$as_save_IFS
7047: test -z "$as_dir" && as_dir=.
1.31 ! moko 7048: for ac_exec_ext in '' $ac_executable_extensions; do
! 7049: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 7050: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.31 ! moko 7051: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7052: break 2
7053: fi
7054: done
1.31 ! moko 7055: done
! 7056: IFS=$as_save_IFS
1.10 paf 7057:
1.23 moko 7058: fi
7059: fi
7060: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7061: if test -n "$DSYMUTIL"; then
1.31 ! moko 7062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
! 7063: $as_echo "$DSYMUTIL" >&6; }
1.10 paf 7064: else
1.31 ! moko 7065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7066: $as_echo "no" >&6; }
1.23 moko 7067: fi
1.10 paf 7068:
1.31 ! moko 7069:
1.10 paf 7070: fi
1.23 moko 7071: if test -z "$ac_cv_prog_DSYMUTIL"; then
7072: ac_ct_DSYMUTIL=$DSYMUTIL
7073: # Extract the first word of "dsymutil", so it can be a program name with args.
7074: set dummy dsymutil; ac_word=$2
1.31 ! moko 7075: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7076: $as_echo_n "checking for $ac_word... " >&6; }
! 7077: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
! 7078: $as_echo_n "(cached) " >&6
1.23 moko 7079: else
7080: if test -n "$ac_ct_DSYMUTIL"; then
7081: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7082: else
7083: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084: for as_dir in $PATH
7085: do
7086: IFS=$as_save_IFS
7087: test -z "$as_dir" && as_dir=.
1.31 ! moko 7088: for ac_exec_ext in '' $ac_executable_extensions; do
! 7089: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 7090: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.31 ! moko 7091: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7092: break 2
7093: fi
7094: done
1.31 ! moko 7095: done
! 7096: IFS=$as_save_IFS
1.10 paf 7097:
1.23 moko 7098: fi
7099: fi
7100: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7101: if test -n "$ac_ct_DSYMUTIL"; then
1.31 ! moko 7102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
! 7103: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.23 moko 7104: else
1.31 ! moko 7105: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7106: $as_echo "no" >&6; }
1.10 paf 7107: fi
7108:
1.31 ! moko 7109: if test "x$ac_ct_DSYMUTIL" = x; then
! 7110: DSYMUTIL=":"
! 7111: else
! 7112: case $cross_compiling:$ac_tool_warned in
! 7113: yes:)
! 7114: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7115: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7116: ac_tool_warned=yes ;;
! 7117: esac
! 7118: DSYMUTIL=$ac_ct_DSYMUTIL
! 7119: fi
1.10 paf 7120: else
1.23 moko 7121: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.10 paf 7122: fi
7123:
1.23 moko 7124: if test -n "$ac_tool_prefix"; then
7125: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7126: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.31 ! moko 7127: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7128: $as_echo_n "checking for $ac_word... " >&6; }
! 7129: if ${ac_cv_prog_NMEDIT+:} false; then :
! 7130: $as_echo_n "(cached) " >&6
1.23 moko 7131: else
7132: if test -n "$NMEDIT"; then
7133: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7134: else
7135: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136: for as_dir in $PATH
7137: do
7138: IFS=$as_save_IFS
7139: test -z "$as_dir" && as_dir=.
1.31 ! moko 7140: for ac_exec_ext in '' $ac_executable_extensions; do
! 7141: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 7142: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.31 ! moko 7143: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7144: break 2
1.10 paf 7145: fi
1.23 moko 7146: done
1.31 ! moko 7147: done
! 7148: IFS=$as_save_IFS
1.23 moko 7149:
7150: fi
7151: fi
7152: NMEDIT=$ac_cv_prog_NMEDIT
7153: if test -n "$NMEDIT"; then
1.31 ! moko 7154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
! 7155: $as_echo "$NMEDIT" >&6; }
1.10 paf 7156: else
1.31 ! moko 7157: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7158: $as_echo "no" >&6; }
1.10 paf 7159: fi
7160:
1.31 ! moko 7161:
1.23 moko 7162: fi
7163: if test -z "$ac_cv_prog_NMEDIT"; then
7164: ac_ct_NMEDIT=$NMEDIT
7165: # Extract the first word of "nmedit", so it can be a program name with args.
7166: set dummy nmedit; ac_word=$2
1.31 ! moko 7167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7168: $as_echo_n "checking for $ac_word... " >&6; }
! 7169: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
! 7170: $as_echo_n "(cached) " >&6
1.23 moko 7171: else
7172: if test -n "$ac_ct_NMEDIT"; then
7173: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7174: else
7175: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176: for as_dir in $PATH
7177: do
7178: IFS=$as_save_IFS
7179: test -z "$as_dir" && as_dir=.
1.31 ! moko 7180: for ac_exec_ext in '' $ac_executable_extensions; do
! 7181: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 7182: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.31 ! moko 7183: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7184: break 2
7185: fi
7186: done
1.31 ! moko 7187: done
! 7188: IFS=$as_save_IFS
1.10 paf 7189:
1.23 moko 7190: fi
7191: fi
7192: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7193: if test -n "$ac_ct_NMEDIT"; then
1.31 ! moko 7194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
! 7195: $as_echo "$ac_ct_NMEDIT" >&6; }
1.23 moko 7196: else
1.31 ! moko 7197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7198: $as_echo "no" >&6; }
1.23 moko 7199: fi
1.10 paf 7200:
1.31 ! moko 7201: if test "x$ac_ct_NMEDIT" = x; then
! 7202: NMEDIT=":"
! 7203: else
! 7204: case $cross_compiling:$ac_tool_warned in
! 7205: yes:)
! 7206: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7207: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7208: ac_tool_warned=yes ;;
! 7209: esac
! 7210: NMEDIT=$ac_ct_NMEDIT
! 7211: fi
1.10 paf 7212: else
1.23 moko 7213: NMEDIT="$ac_cv_prog_NMEDIT"
1.10 paf 7214: fi
7215:
1.23 moko 7216: if test -n "$ac_tool_prefix"; then
7217: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7218: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.31 ! moko 7219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7220: $as_echo_n "checking for $ac_word... " >&6; }
! 7221: if ${ac_cv_prog_LIPO+:} false; then :
! 7222: $as_echo_n "(cached) " >&6
1.23 moko 7223: else
7224: if test -n "$LIPO"; then
7225: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7226: else
7227: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228: for as_dir in $PATH
7229: do
7230: IFS=$as_save_IFS
7231: test -z "$as_dir" && as_dir=.
1.31 ! moko 7232: for ac_exec_ext in '' $ac_executable_extensions; do
! 7233: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 7234: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.31 ! moko 7235: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7236: break 2
1.10 paf 7237: fi
1.23 moko 7238: done
1.31 ! moko 7239: done
! 7240: IFS=$as_save_IFS
1.23 moko 7241:
7242: fi
7243: fi
7244: LIPO=$ac_cv_prog_LIPO
7245: if test -n "$LIPO"; then
1.31 ! moko 7246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
! 7247: $as_echo "$LIPO" >&6; }
1.23 moko 7248: else
1.31 ! moko 7249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7250: $as_echo "no" >&6; }
1.10 paf 7251: fi
7252:
1.31 ! moko 7253:
1.23 moko 7254: fi
7255: if test -z "$ac_cv_prog_LIPO"; then
7256: ac_ct_LIPO=$LIPO
7257: # Extract the first word of "lipo", so it can be a program name with args.
7258: set dummy lipo; ac_word=$2
1.31 ! moko 7259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7260: $as_echo_n "checking for $ac_word... " >&6; }
! 7261: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
! 7262: $as_echo_n "(cached) " >&6
1.23 moko 7263: else
7264: if test -n "$ac_ct_LIPO"; then
7265: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7266: else
7267: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268: for as_dir in $PATH
7269: do
7270: IFS=$as_save_IFS
7271: test -z "$as_dir" && as_dir=.
1.31 ! moko 7272: for ac_exec_ext in '' $ac_executable_extensions; do
! 7273: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 7274: ac_cv_prog_ac_ct_LIPO="lipo"
1.31 ! moko 7275: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7276: break 2
1.10 paf 7277: fi
1.23 moko 7278: done
1.31 ! moko 7279: done
! 7280: IFS=$as_save_IFS
1.10 paf 7281:
1.23 moko 7282: fi
7283: fi
7284: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7285: if test -n "$ac_ct_LIPO"; then
1.31 ! moko 7286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
! 7287: $as_echo "$ac_ct_LIPO" >&6; }
1.23 moko 7288: else
1.31 ! moko 7289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7290: $as_echo "no" >&6; }
1.23 moko 7291: fi
1.10 paf 7292:
1.31 ! moko 7293: if test "x$ac_ct_LIPO" = x; then
! 7294: LIPO=":"
! 7295: else
! 7296: case $cross_compiling:$ac_tool_warned in
! 7297: yes:)
! 7298: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7299: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7300: ac_tool_warned=yes ;;
! 7301: esac
! 7302: LIPO=$ac_ct_LIPO
! 7303: fi
1.23 moko 7304: else
7305: LIPO="$ac_cv_prog_LIPO"
7306: fi
1.10 paf 7307:
1.23 moko 7308: if test -n "$ac_tool_prefix"; then
7309: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7310: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.31 ! moko 7311: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7312: $as_echo_n "checking for $ac_word... " >&6; }
! 7313: if ${ac_cv_prog_OTOOL+:} false; then :
! 7314: $as_echo_n "(cached) " >&6
1.23 moko 7315: else
7316: if test -n "$OTOOL"; then
7317: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7318: else
7319: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320: for as_dir in $PATH
7321: do
7322: IFS=$as_save_IFS
7323: test -z "$as_dir" && as_dir=.
1.31 ! moko 7324: for ac_exec_ext in '' $ac_executable_extensions; do
! 7325: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 7326: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.31 ! moko 7327: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7328: break 2
7329: fi
7330: done
1.31 ! moko 7331: done
! 7332: IFS=$as_save_IFS
1.10 paf 7333:
1.23 moko 7334: fi
7335: fi
7336: OTOOL=$ac_cv_prog_OTOOL
7337: if test -n "$OTOOL"; then
1.31 ! moko 7338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
! 7339: $as_echo "$OTOOL" >&6; }
1.23 moko 7340: else
1.31 ! moko 7341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7342: $as_echo "no" >&6; }
1.23 moko 7343: fi
1.10 paf 7344:
1.31 ! moko 7345:
1.23 moko 7346: fi
7347: if test -z "$ac_cv_prog_OTOOL"; then
7348: ac_ct_OTOOL=$OTOOL
7349: # Extract the first word of "otool", so it can be a program name with args.
7350: set dummy otool; ac_word=$2
1.31 ! moko 7351: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7352: $as_echo_n "checking for $ac_word... " >&6; }
! 7353: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
! 7354: $as_echo_n "(cached) " >&6
1.23 moko 7355: else
7356: if test -n "$ac_ct_OTOOL"; then
7357: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7358: else
7359: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360: for as_dir in $PATH
7361: do
7362: IFS=$as_save_IFS
7363: test -z "$as_dir" && as_dir=.
1.31 ! moko 7364: for ac_exec_ext in '' $ac_executable_extensions; do
! 7365: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 7366: ac_cv_prog_ac_ct_OTOOL="otool"
1.31 ! moko 7367: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7368: break 2
7369: fi
7370: done
1.31 ! moko 7371: done
! 7372: IFS=$as_save_IFS
1.10 paf 7373:
1.23 moko 7374: fi
7375: fi
7376: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7377: if test -n "$ac_ct_OTOOL"; then
1.31 ! moko 7378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
! 7379: $as_echo "$ac_ct_OTOOL" >&6; }
1.23 moko 7380: else
1.31 ! moko 7381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7382: $as_echo "no" >&6; }
1.23 moko 7383: fi
1.10 paf 7384:
1.31 ! moko 7385: if test "x$ac_ct_OTOOL" = x; then
! 7386: OTOOL=":"
! 7387: else
! 7388: case $cross_compiling:$ac_tool_warned in
! 7389: yes:)
! 7390: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7391: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7392: ac_tool_warned=yes ;;
! 7393: esac
! 7394: OTOOL=$ac_ct_OTOOL
! 7395: fi
1.23 moko 7396: else
7397: OTOOL="$ac_cv_prog_OTOOL"
7398: fi
1.10 paf 7399:
1.23 moko 7400: if test -n "$ac_tool_prefix"; then
7401: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7402: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.31 ! moko 7403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7404: $as_echo_n "checking for $ac_word... " >&6; }
! 7405: if ${ac_cv_prog_OTOOL64+:} false; then :
! 7406: $as_echo_n "(cached) " >&6
1.23 moko 7407: else
7408: if test -n "$OTOOL64"; then
7409: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7410: else
7411: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412: for as_dir in $PATH
7413: do
7414: IFS=$as_save_IFS
7415: test -z "$as_dir" && as_dir=.
1.31 ! moko 7416: for ac_exec_ext in '' $ac_executable_extensions; do
! 7417: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 7418: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.31 ! moko 7419: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7420: break 2
7421: fi
7422: done
1.31 ! moko 7423: done
! 7424: IFS=$as_save_IFS
1.10 paf 7425:
1.23 moko 7426: fi
7427: fi
7428: OTOOL64=$ac_cv_prog_OTOOL64
7429: if test -n "$OTOOL64"; then
1.31 ! moko 7430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
! 7431: $as_echo "$OTOOL64" >&6; }
1.23 moko 7432: else
1.31 ! moko 7433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7434: $as_echo "no" >&6; }
1.23 moko 7435: fi
1.10 paf 7436:
1.31 ! moko 7437:
1.23 moko 7438: fi
7439: if test -z "$ac_cv_prog_OTOOL64"; then
7440: ac_ct_OTOOL64=$OTOOL64
7441: # Extract the first word of "otool64", so it can be a program name with args.
7442: set dummy otool64; ac_word=$2
1.31 ! moko 7443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7444: $as_echo_n "checking for $ac_word... " >&6; }
! 7445: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
! 7446: $as_echo_n "(cached) " >&6
1.23 moko 7447: else
7448: if test -n "$ac_ct_OTOOL64"; then
7449: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7450: else
7451: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452: for as_dir in $PATH
7453: do
7454: IFS=$as_save_IFS
7455: test -z "$as_dir" && as_dir=.
1.31 ! moko 7456: for ac_exec_ext in '' $ac_executable_extensions; do
! 7457: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 7458: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.31 ! moko 7459: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7460: break 2
7461: fi
7462: done
1.31 ! moko 7463: done
! 7464: IFS=$as_save_IFS
1.10 paf 7465:
1.23 moko 7466: fi
7467: fi
7468: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7469: if test -n "$ac_ct_OTOOL64"; then
1.31 ! moko 7470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
! 7471: $as_echo "$ac_ct_OTOOL64" >&6; }
1.23 moko 7472: else
1.31 ! moko 7473: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7474: $as_echo "no" >&6; }
1.23 moko 7475: fi
1.10 paf 7476:
1.31 ! moko 7477: if test "x$ac_ct_OTOOL64" = x; then
! 7478: OTOOL64=":"
! 7479: else
! 7480: case $cross_compiling:$ac_tool_warned in
! 7481: yes:)
! 7482: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7483: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7484: ac_tool_warned=yes ;;
! 7485: esac
! 7486: OTOOL64=$ac_ct_OTOOL64
! 7487: fi
1.23 moko 7488: else
7489: OTOOL64="$ac_cv_prog_OTOOL64"
7490: fi
1.10 paf 7491:
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:
1.31 ! moko 7518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
! 7519: $as_echo_n "checking for -single_module linker flag... " >&6; }
! 7520: if ${lt_cv_apple_cc_single_mod+:} false; then :
! 7521: $as_echo_n "(cached) " >&6
1.23 moko 7522: else
7523: lt_cv_apple_cc_single_mod=no
7524: if test -z "${LT_MULTI_MODULE}"; then
7525: # By default we will add the -single_module flag. You can override
7526: # by either setting the environment variable LT_MULTI_MODULE
7527: # non-empty at configure time, or by adding -multi_module to the
7528: # link flags.
7529: rm -rf libconftest.dylib*
7530: echo "int foo(void){return 1;}" > conftest.c
7531: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7532: -dynamiclib -Wl,-single_module conftest.c" >&5
7533: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7534: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7535: _lt_result=$?
7536: # If there is a non-empty error log, and "single_module"
7537: # appears in it, assume the flag caused a linker warning
7538: if test -s conftest.err && $GREP single_module conftest.err; then
7539: cat conftest.err >&5
7540: # Otherwise, if the output was created with a 0 exit code from
7541: # the compiler, it worked.
7542: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7543: lt_cv_apple_cc_single_mod=yes
7544: else
7545: cat conftest.err >&5
7546: fi
7547: rm -rf libconftest.dylib*
7548: rm -f conftest.*
7549: fi
7550: fi
1.31 ! moko 7551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
! 7552: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.10 paf 7553:
1.31 ! moko 7554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
! 7555: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
! 7556: if ${lt_cv_ld_exported_symbols_list+:} false; then :
! 7557: $as_echo_n "(cached) " >&6
1.23 moko 7558: else
7559: lt_cv_ld_exported_symbols_list=no
7560: save_LDFLAGS=$LDFLAGS
7561: echo "_main" > conftest.sym
7562: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.31 ! moko 7563: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7564: /* end confdefs.h. */
1.10 paf 7565:
1.23 moko 7566: int
7567: main ()
7568: {
1.10 paf 7569:
1.23 moko 7570: ;
7571: return 0;
7572: }
7573: _ACEOF
1.31 ! moko 7574: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 7575: lt_cv_ld_exported_symbols_list=yes
7576: else
1.31 ! moko 7577: lt_cv_ld_exported_symbols_list=no
1.23 moko 7578: fi
1.31 ! moko 7579: rm -f core conftest.err conftest.$ac_objext \
! 7580: conftest$ac_exeext conftest.$ac_ext
1.23 moko 7581: LDFLAGS="$save_LDFLAGS"
1.10 paf 7582:
1.23 moko 7583: fi
1.31 ! moko 7584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
! 7585: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.10 paf 7586:
1.31 ! moko 7587: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
! 7588: $as_echo_n "checking for -force_load linker flag... " >&6; }
! 7589: if ${lt_cv_ld_force_load+:} false; then :
! 7590: $as_echo_n "(cached) " >&6
1.23 moko 7591: else
7592: lt_cv_ld_force_load=no
7593: cat > conftest.c << _LT_EOF
7594: int forced_loaded() { return 2;}
7595: _LT_EOF
7596: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7597: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7598: echo "$AR cru libconftest.a conftest.o" >&5
7599: $AR cru libconftest.a conftest.o 2>&5
7600: echo "$RANLIB libconftest.a" >&5
7601: $RANLIB libconftest.a 2>&5
7602: cat > conftest.c << _LT_EOF
7603: int main() { return 0;}
7604: _LT_EOF
7605: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7606: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7607: _lt_result=$?
7608: if test -s conftest.err && $GREP force_load conftest.err; then
7609: cat conftest.err >&5
7610: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7611: lt_cv_ld_force_load=yes
7612: else
7613: cat conftest.err >&5
7614: fi
7615: rm -f conftest.err libconftest.a conftest conftest.c
7616: rm -rf conftest.dSYM
1.10 paf 7617:
1.23 moko 7618: fi
1.31 ! moko 7619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
! 7620: $as_echo "$lt_cv_ld_force_load" >&6; }
1.23 moko 7621: case $host_os in
7622: rhapsody* | darwin1.[012])
7623: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7624: darwin1.*)
7625: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7626: darwin*) # darwin 5.x on
7627: # if running on 10.5 or later, the deployment target defaults
7628: # to the OS version, if on x86, and 10.4, the deployment
7629: # target defaults to 10.4. Don't you love it?
7630: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7631: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7632: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7633: 10.[012]*)
7634: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7635: 10.*)
7636: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7637: esac
1.10 paf 7638: ;;
1.23 moko 7639: esac
7640: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7641: _lt_dar_single_mod='$single_module'
7642: fi
7643: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7644: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7645: else
7646: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.10 paf 7647: fi
1.23 moko 7648: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7649: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.10 paf 7650: else
1.23 moko 7651: _lt_dsymutil=
1.10 paf 7652: fi
7653: ;;
1.23 moko 7654: esac
1.10 paf 7655:
1.23 moko 7656: ac_ext=c
7657: ac_cpp='$CPP $CPPFLAGS'
7658: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.31 ! moko 7661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
! 7662: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.23 moko 7663: # On Suns, sometimes $CPP names a directory.
7664: if test -n "$CPP" && test -d "$CPP"; then
7665: CPP=
7666: fi
7667: if test -z "$CPP"; then
1.31 ! moko 7668: if ${ac_cv_prog_CPP+:} false; then :
! 7669: $as_echo_n "(cached) " >&6
1.23 moko 7670: else
7671: # Double quotes because CPP needs to be expanded
7672: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7673: do
7674: ac_preproc_ok=false
7675: for ac_c_preproc_warn_flag in '' yes
7676: do
7677: # Use a header file that comes with gcc, so configuring glibc
7678: # with a fresh cross-compiler works.
7679: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7680: # <limits.h> exists even on freestanding compilers.
7681: # On the NeXT, cc -E runs the code through the compiler's parser,
7682: # not just through cpp. "Syntax error" is here to catch this case.
1.31 ! moko 7683: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7684: /* end confdefs.h. */
7685: #ifdef __STDC__
7686: # include <limits.h>
7687: #else
7688: # include <assert.h>
7689: #endif
7690: Syntax error
7691: _ACEOF
1.31 ! moko 7692: if ac_fn_c_try_cpp "$LINENO"; then :
! 7693:
1.23 moko 7694: else
7695: # Broken: fails on valid input.
7696: continue
7697: fi
1.31 ! moko 7698: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7699:
1.31 ! moko 7700: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 7701: # can be detected and how.
1.31 ! moko 7702: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7703: /* end confdefs.h. */
7704: #include <ac_nonexistent.h>
7705: _ACEOF
1.31 ! moko 7706: if ac_fn_c_try_cpp "$LINENO"; then :
1.23 moko 7707: # Broken: success on invalid input.
7708: continue
7709: else
7710: # Passes both tests.
7711: ac_preproc_ok=:
7712: break
1.10 paf 7713: fi
1.31 ! moko 7714: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7715:
1.23 moko 7716: done
7717: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 ! moko 7718: rm -f conftest.i conftest.err conftest.$ac_ext
! 7719: if $ac_preproc_ok; then :
1.23 moko 7720: break
7721: fi
1.10 paf 7722:
1.23 moko 7723: done
7724: ac_cv_prog_CPP=$CPP
1.10 paf 7725:
1.23 moko 7726: fi
7727: CPP=$ac_cv_prog_CPP
7728: else
7729: ac_cv_prog_CPP=$CPP
7730: fi
1.31 ! moko 7731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
! 7732: $as_echo "$CPP" >&6; }
1.23 moko 7733: ac_preproc_ok=false
7734: for ac_c_preproc_warn_flag in '' yes
7735: do
7736: # Use a header file that comes with gcc, so configuring glibc
7737: # with a fresh cross-compiler works.
7738: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7739: # <limits.h> exists even on freestanding compilers.
7740: # On the NeXT, cc -E runs the code through the compiler's parser,
7741: # not just through cpp. "Syntax error" is here to catch this case.
1.31 ! moko 7742: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7743: /* end confdefs.h. */
7744: #ifdef __STDC__
7745: # include <limits.h>
7746: #else
7747: # include <assert.h>
7748: #endif
7749: Syntax error
7750: _ACEOF
1.31 ! moko 7751: if ac_fn_c_try_cpp "$LINENO"; then :
! 7752:
1.23 moko 7753: else
7754: # Broken: fails on valid input.
7755: continue
7756: fi
1.31 ! moko 7757: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7758:
1.31 ! moko 7759: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 7760: # can be detected and how.
1.31 ! moko 7761: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7762: /* end confdefs.h. */
7763: #include <ac_nonexistent.h>
7764: _ACEOF
1.31 ! moko 7765: if ac_fn_c_try_cpp "$LINENO"; then :
1.23 moko 7766: # Broken: success on invalid input.
7767: continue
7768: else
7769: # Passes both tests.
7770: ac_preproc_ok=:
7771: break
7772: fi
1.31 ! moko 7773: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7774:
1.23 moko 7775: done
7776: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 ! moko 7777: rm -f conftest.i conftest.err conftest.$ac_ext
! 7778: if $ac_preproc_ok; then :
! 7779:
1.23 moko 7780: else
1.31 ! moko 7781: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 7782: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 7783: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
! 7784: See \`config.log' for more details" "$LINENO" 5; }
1.23 moko 7785: fi
1.10 paf 7786:
1.23 moko 7787: ac_ext=c
7788: ac_cpp='$CPP $CPPFLAGS'
7789: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7790: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7791: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 7792:
7793:
1.31 ! moko 7794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
! 7795: $as_echo_n "checking for ANSI C header files... " >&6; }
! 7796: if ${ac_cv_header_stdc+:} false; then :
! 7797: $as_echo_n "(cached) " >&6
1.23 moko 7798: else
1.31 ! moko 7799: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7800: /* end confdefs.h. */
7801: #include <stdlib.h>
7802: #include <stdarg.h>
7803: #include <string.h>
7804: #include <float.h>
1.10 paf 7805:
1.23 moko 7806: int
7807: main ()
7808: {
1.10 paf 7809:
1.23 moko 7810: ;
7811: return 0;
7812: }
7813: _ACEOF
1.31 ! moko 7814: if ac_fn_c_try_compile "$LINENO"; then :
1.23 moko 7815: ac_cv_header_stdc=yes
7816: else
1.31 ! moko 7817: ac_cv_header_stdc=no
1.23 moko 7818: fi
1.31 ! moko 7819: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 7820:
1.23 moko 7821: if test $ac_cv_header_stdc = yes; then
7822: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.31 ! moko 7823: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7824: /* end confdefs.h. */
7825: #include <string.h>
1.10 paf 7826:
1.23 moko 7827: _ACEOF
7828: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.31 ! moko 7829: $EGREP "memchr" >/dev/null 2>&1; then :
! 7830:
1.23 moko 7831: else
7832: ac_cv_header_stdc=no
7833: fi
7834: rm -f conftest*
7835:
7836: fi
1.10 paf 7837:
1.23 moko 7838: if test $ac_cv_header_stdc = yes; then
7839: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.31 ! moko 7840: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7841: /* end confdefs.h. */
7842: #include <stdlib.h>
1.10 paf 7843:
1.23 moko 7844: _ACEOF
7845: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.31 ! moko 7846: $EGREP "free" >/dev/null 2>&1; then :
! 7847:
1.23 moko 7848: else
7849: ac_cv_header_stdc=no
7850: fi
7851: rm -f conftest*
1.10 paf 7852:
1.23 moko 7853: fi
1.10 paf 7854:
1.23 moko 7855: if test $ac_cv_header_stdc = yes; then
7856: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.31 ! moko 7857: if test "$cross_compiling" = yes; then :
1.23 moko 7858: :
7859: else
1.31 ! moko 7860: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7861: /* end confdefs.h. */
7862: #include <ctype.h>
1.31 ! moko 7863: #include <stdlib.h>
1.23 moko 7864: #if ((' ' & 0x0FF) == 0x020)
7865: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7866: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7867: #else
7868: # define ISLOWER(c) \
7869: (('a' <= (c) && (c) <= 'i') \
7870: || ('j' <= (c) && (c) <= 'r') \
7871: || ('s' <= (c) && (c) <= 'z'))
7872: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7873: #endif
1.10 paf 7874:
1.23 moko 7875: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7876: int
7877: main ()
7878: {
7879: int i;
7880: for (i = 0; i < 256; i++)
7881: if (XOR (islower (i), ISLOWER (i))
7882: || toupper (i) != TOUPPER (i))
1.31 ! moko 7883: return 2;
! 7884: return 0;
1.23 moko 7885: }
7886: _ACEOF
1.31 ! moko 7887: if ac_fn_c_try_run "$LINENO"; then :
! 7888:
1.23 moko 7889: else
1.31 ! moko 7890: ac_cv_header_stdc=no
1.23 moko 7891: fi
1.31 ! moko 7892: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
! 7893: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.23 moko 7894: fi
1.31 ! moko 7895:
1.23 moko 7896: fi
7897: fi
1.31 ! moko 7898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
! 7899: $as_echo "$ac_cv_header_stdc" >&6; }
1.23 moko 7900: if test $ac_cv_header_stdc = yes; then
1.10 paf 7901:
1.31 ! moko 7902: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.10 paf 7903:
1.23 moko 7904: fi
1.10 paf 7905:
1.23 moko 7906: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7907: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7908: inttypes.h stdint.h unistd.h
1.31 ! moko 7909: do :
! 7910: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 7911: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
! 7912: "
! 7913: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.23 moko 7914: cat >>confdefs.h <<_ACEOF
1.31 ! moko 7915: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 moko 7916: _ACEOF
7917:
1.10 paf 7918: fi
1.23 moko 7919:
7920: done
7921:
7922:
7923: for ac_header in dlfcn.h
1.31 ! moko 7924: do :
! 7925: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
! 7926: "
! 7927: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.23 moko 7928: cat >>confdefs.h <<_ACEOF
1.31 ! moko 7929: #define HAVE_DLFCN_H 1
1.10 paf 7930: _ACEOF
1.16 paf 7931:
1.23 moko 7932: fi
7933:
7934: done
7935:
1.16 paf 7936:
7937:
7938:
1.23 moko 7939: func_stripname_cnf ()
1.10 paf 7940: {
1.23 moko 7941: case ${2} in
7942: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7943: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7944: esac
7945: } # func_stripname_cnf
7946:
7947:
7948:
7949:
7950:
7951: # Set options
1.31 ! moko 7952: # Check whether --enable-static was given.
! 7953: if test "${enable_static+set}" = set; then :
! 7954: enableval=$enable_static; p=${PACKAGE-default}
1.30 moko 7955: case $enableval in
7956: yes) enable_static=yes ;;
7957: no) enable_static=no ;;
7958: *)
7959: enable_static=no
7960: # Look at the argument we got. We use all the common list separators.
7961: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7962: for pkg in $enableval; do
7963: IFS="$lt_save_ifs"
7964: if test "X$pkg" = "X$p"; then
7965: enable_static=yes
7966: fi
7967: done
7968: IFS="$lt_save_ifs"
7969: ;;
7970: esac
7971: else
7972: enable_static=no
1.31 ! moko 7973: fi
! 7974:
1.30 moko 7975:
7976:
7977:
7978:
7979:
7980:
1.23 moko 7981: enable_dlopen=yes
7982: enable_win32_dll=yes
1.10 paf 7983:
1.23 moko 7984: case $host in
7985: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7986: if test -n "$ac_tool_prefix"; then
7987: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7988: set dummy ${ac_tool_prefix}as; ac_word=$2
1.31 ! moko 7989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7990: $as_echo_n "checking for $ac_word... " >&6; }
! 7991: if ${ac_cv_prog_AS+:} false; then :
! 7992: $as_echo_n "(cached) " >&6
1.23 moko 7993: else
7994: if test -n "$AS"; then
7995: ac_cv_prog_AS="$AS" # Let the user override the test.
7996: else
7997: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998: for as_dir in $PATH
7999: do
8000: IFS=$as_save_IFS
8001: test -z "$as_dir" && as_dir=.
1.31 ! moko 8002: for ac_exec_ext in '' $ac_executable_extensions; do
! 8003: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 8004: ac_cv_prog_AS="${ac_tool_prefix}as"
1.31 ! moko 8005: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8006: break 2
8007: fi
8008: done
1.31 ! moko 8009: done
! 8010: IFS=$as_save_IFS
1.23 moko 8011:
8012: fi
8013: fi
8014: AS=$ac_cv_prog_AS
8015: if test -n "$AS"; then
1.31 ! moko 8016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
! 8017: $as_echo "$AS" >&6; }
1.23 moko 8018: else
1.31 ! moko 8019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8020: $as_echo "no" >&6; }
1.23 moko 8021: fi
8022:
1.31 ! moko 8023:
1.23 moko 8024: fi
8025: if test -z "$ac_cv_prog_AS"; then
8026: ac_ct_AS=$AS
8027: # Extract the first word of "as", so it can be a program name with args.
8028: set dummy as; ac_word=$2
1.31 ! moko 8029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8030: $as_echo_n "checking for $ac_word... " >&6; }
! 8031: if ${ac_cv_prog_ac_ct_AS+:} false; then :
! 8032: $as_echo_n "(cached) " >&6
1.23 moko 8033: else
8034: if test -n "$ac_ct_AS"; then
8035: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
1.10 paf 8036: else
1.23 moko 8037: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038: for as_dir in $PATH
8039: do
8040: IFS=$as_save_IFS
8041: test -z "$as_dir" && as_dir=.
1.31 ! moko 8042: for ac_exec_ext in '' $ac_executable_extensions; do
! 8043: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 8044: ac_cv_prog_ac_ct_AS="as"
1.31 ! moko 8045: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8046: break 2
8047: fi
8048: done
1.31 ! moko 8049: done
! 8050: IFS=$as_save_IFS
1.10 paf 8051:
1.23 moko 8052: fi
1.10 paf 8053: fi
1.23 moko 8054: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8055: if test -n "$ac_ct_AS"; then
1.31 ! moko 8056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
! 8057: $as_echo "$ac_ct_AS" >&6; }
1.23 moko 8058: else
1.31 ! moko 8059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8060: $as_echo "no" >&6; }
1.10 paf 8061: fi
1.23 moko 8062:
1.31 ! moko 8063: if test "x$ac_ct_AS" = x; then
! 8064: AS="false"
! 8065: else
! 8066: case $cross_compiling:$ac_tool_warned in
! 8067: yes:)
! 8068: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8069: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 8070: ac_tool_warned=yes ;;
! 8071: esac
! 8072: AS=$ac_ct_AS
! 8073: fi
1.10 paf 8074: else
1.23 moko 8075: AS="$ac_cv_prog_AS"
8076: fi
8077:
8078: if test -n "$ac_tool_prefix"; then
8079: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8080: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.31 ! moko 8081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8082: $as_echo_n "checking for $ac_word... " >&6; }
! 8083: if ${ac_cv_prog_DLLTOOL+:} false; then :
! 8084: $as_echo_n "(cached) " >&6
1.10 paf 8085: else
1.23 moko 8086: if test -n "$DLLTOOL"; then
8087: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.10 paf 8088: else
1.23 moko 8089: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090: for as_dir in $PATH
8091: do
8092: IFS=$as_save_IFS
8093: test -z "$as_dir" && as_dir=.
1.31 ! moko 8094: for ac_exec_ext in '' $ac_executable_extensions; do
! 8095: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 8096: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.31 ! moko 8097: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8098: break 2
8099: fi
8100: done
1.31 ! moko 8101: done
! 8102: IFS=$as_save_IFS
1.10 paf 8103:
8104: fi
8105: fi
1.23 moko 8106: DLLTOOL=$ac_cv_prog_DLLTOOL
8107: if test -n "$DLLTOOL"; then
1.31 ! moko 8108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
! 8109: $as_echo "$DLLTOOL" >&6; }
1.10 paf 8110: else
1.31 ! moko 8111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8112: $as_echo "no" >&6; }
1.23 moko 8113: fi
8114:
1.31 ! moko 8115:
1.23 moko 8116: fi
8117: if test -z "$ac_cv_prog_DLLTOOL"; then
8118: ac_ct_DLLTOOL=$DLLTOOL
8119: # Extract the first word of "dlltool", so it can be a program name with args.
8120: set dummy dlltool; ac_word=$2
1.31 ! moko 8121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8122: $as_echo_n "checking for $ac_word... " >&6; }
! 8123: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
! 8124: $as_echo_n "(cached) " >&6
1.10 paf 8125: else
1.23 moko 8126: if test -n "$ac_ct_DLLTOOL"; then
8127: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
1.10 paf 8128: else
1.23 moko 8129: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130: for as_dir in $PATH
8131: do
8132: IFS=$as_save_IFS
8133: test -z "$as_dir" && as_dir=.
1.31 ! moko 8134: for ac_exec_ext in '' $ac_executable_extensions; do
! 8135: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 8136: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.31 ! moko 8137: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8138: break 2
8139: fi
8140: done
1.31 ! moko 8141: done
! 8142: IFS=$as_save_IFS
1.10 paf 8143:
1.23 moko 8144: fi
1.10 paf 8145: fi
1.23 moko 8146: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8147: if test -n "$ac_ct_DLLTOOL"; then
1.31 ! moko 8148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
! 8149: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.23 moko 8150: else
1.31 ! moko 8151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8152: $as_echo "no" >&6; }
1.10 paf 8153: fi
1.23 moko 8154:
1.31 ! moko 8155: if test "x$ac_ct_DLLTOOL" = x; then
! 8156: DLLTOOL="false"
! 8157: else
! 8158: case $cross_compiling:$ac_tool_warned in
! 8159: yes:)
! 8160: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8161: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 8162: ac_tool_warned=yes ;;
! 8163: esac
! 8164: DLLTOOL=$ac_ct_DLLTOOL
! 8165: fi
1.10 paf 8166: else
1.23 moko 8167: DLLTOOL="$ac_cv_prog_DLLTOOL"
8168: fi
8169:
8170: if test -n "$ac_tool_prefix"; then
8171: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8172: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.31 ! moko 8173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8174: $as_echo_n "checking for $ac_word... " >&6; }
! 8175: if ${ac_cv_prog_OBJDUMP+:} false; then :
! 8176: $as_echo_n "(cached) " >&6
1.10 paf 8177: else
1.23 moko 8178: if test -n "$OBJDUMP"; then
8179: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8180: else
8181: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182: for as_dir in $PATH
8183: do
8184: IFS=$as_save_IFS
8185: test -z "$as_dir" && as_dir=.
1.31 ! moko 8186: for ac_exec_ext in '' $ac_executable_extensions; do
! 8187: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 8188: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.31 ! moko 8189: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8190: break 2
8191: fi
8192: done
1.31 ! moko 8193: done
! 8194: IFS=$as_save_IFS
1.23 moko 8195:
8196: fi
8197: fi
8198: OBJDUMP=$ac_cv_prog_OBJDUMP
8199: if test -n "$OBJDUMP"; then
1.31 ! moko 8200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
! 8201: $as_echo "$OBJDUMP" >&6; }
1.23 moko 8202: else
1.31 ! moko 8203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8204: $as_echo "no" >&6; }
1.23 moko 8205: fi
1.10 paf 8206:
1.31 ! moko 8207:
1.23 moko 8208: fi
8209: if test -z "$ac_cv_prog_OBJDUMP"; then
8210: ac_ct_OBJDUMP=$OBJDUMP
8211: # Extract the first word of "objdump", so it can be a program name with args.
8212: set dummy objdump; ac_word=$2
1.31 ! moko 8213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8214: $as_echo_n "checking for $ac_word... " >&6; }
! 8215: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
! 8216: $as_echo_n "(cached) " >&6
1.23 moko 8217: else
8218: if test -n "$ac_ct_OBJDUMP"; then
8219: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
1.10 paf 8220: else
1.23 moko 8221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222: for as_dir in $PATH
8223: do
8224: IFS=$as_save_IFS
8225: test -z "$as_dir" && as_dir=.
1.31 ! moko 8226: for ac_exec_ext in '' $ac_executable_extensions; do
! 8227: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.23 moko 8228: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.31 ! moko 8229: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8230: break 2
8231: fi
8232: done
1.31 ! moko 8233: done
! 8234: IFS=$as_save_IFS
1.10 paf 8235:
1.23 moko 8236: fi
1.10 paf 8237: fi
1.23 moko 8238: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8239: if test -n "$ac_ct_OBJDUMP"; then
1.31 ! moko 8240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
! 8241: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.23 moko 8242: else
1.31 ! moko 8243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8244: $as_echo "no" >&6; }
1.10 paf 8245: fi
1.23 moko 8246:
1.31 ! moko 8247: if test "x$ac_ct_OBJDUMP" = x; then
! 8248: OBJDUMP="false"
! 8249: else
! 8250: case $cross_compiling:$ac_tool_warned in
! 8251: yes:)
! 8252: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8253: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 8254: ac_tool_warned=yes ;;
! 8255: esac
! 8256: OBJDUMP=$ac_ct_OBJDUMP
! 8257: fi
1.23 moko 8258: else
8259: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.10 paf 8260: fi
8261:
1.23 moko 8262: ;;
8263: esac
8264:
8265: test -z "$AS" && AS=as
8266:
8267:
8268:
8269:
1.10 paf 8270:
1.23 moko 8271: test -z "$DLLTOOL" && DLLTOOL=dlltool
1.10 paf 8272:
8273:
8274:
8275:
8276:
1.23 moko 8277: test -z "$OBJDUMP" && OBJDUMP=objdump
1.10 paf 8278:
8279:
8280:
8281:
8282:
8283:
8284:
8285:
8286:
1.31 ! moko 8287: # Check whether --enable-shared was given.
! 8288: if test "${enable_shared+set}" = set; then :
! 8289: enableval=$enable_shared; p=${PACKAGE-default}
1.23 moko 8290: case $enableval in
8291: yes) enable_shared=yes ;;
8292: no) enable_shared=no ;;
8293: *)
8294: enable_shared=no
8295: # Look at the argument we got. We use all the common list separators.
8296: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8297: for pkg in $enableval; do
8298: IFS="$lt_save_ifs"
8299: if test "X$pkg" = "X$p"; then
8300: enable_shared=yes
8301: fi
8302: done
8303: IFS="$lt_save_ifs"
8304: ;;
8305: esac
1.10 paf 8306: else
1.23 moko 8307: enable_shared=yes
1.31 ! moko 8308: fi
1.10 paf 8309:
8310:
8311:
8312:
8313:
8314:
8315:
8316:
8317:
8318:
1.31 ! moko 8319:
! 8320: # Check whether --with-pic was given.
! 8321: if test "${with_pic+set}" = set; then :
! 8322: withval=$with_pic; lt_p=${PACKAGE-default}
1.23 moko 8323: case $withval in
8324: yes|no) pic_mode=$withval ;;
8325: *)
8326: pic_mode=default
8327: # Look at the argument we got. We use all the common list separators.
8328: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8329: for lt_pkg in $withval; do
8330: IFS="$lt_save_ifs"
8331: if test "X$lt_pkg" = "X$lt_p"; then
8332: pic_mode=yes
8333: fi
8334: done
8335: IFS="$lt_save_ifs"
8336: ;;
1.10 paf 8337: esac
1.23 moko 8338: else
8339: pic_mode=default
1.31 ! moko 8340: fi
! 8341:
1.10 paf 8342:
1.23 moko 8343: test -z "$pic_mode" && pic_mode=default
1.10 paf 8344:
8345:
8346:
8347:
8348:
8349:
8350:
1.31 ! moko 8351: # Check whether --enable-fast-install was given.
! 8352: if test "${enable_fast_install+set}" = set; then :
! 8353: enableval=$enable_fast_install; p=${PACKAGE-default}
1.23 moko 8354: case $enableval in
8355: yes) enable_fast_install=yes ;;
8356: no) enable_fast_install=no ;;
1.10 paf 8357: *)
1.23 moko 8358: enable_fast_install=no
8359: # Look at the argument we got. We use all the common list separators.
8360: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8361: for pkg in $enableval; do
8362: IFS="$lt_save_ifs"
8363: if test "X$pkg" = "X$p"; then
8364: enable_fast_install=yes
8365: fi
8366: done
8367: IFS="$lt_save_ifs"
1.10 paf 8368: ;;
8369: esac
1.23 moko 8370: else
8371: enable_fast_install=yes
1.31 ! moko 8372: fi
! 8373:
1.10 paf 8374:
8375:
8376:
8377:
8378:
8379:
8380:
8381:
8382:
8383:
1.23 moko 8384: # This can be used to rebuild libtool when needed
8385: LIBTOOL_DEPS="$ltmain"
1.10 paf 8386:
1.23 moko 8387: # Always use our own libtool.
8388: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.10 paf 8389:
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:
1.23 moko 8419: test -z "$LN_S" && LN_S="ln -s"
1.10 paf 8420:
8421:
8422:
8423:
8424:
8425:
8426:
8427:
8428:
8429:
8430:
8431:
8432:
8433:
1.23 moko 8434: if test -n "${ZSH_VERSION+set}" ; then
8435: setopt NO_GLOB_SUBST
8436: fi
1.10 paf 8437:
1.31 ! moko 8438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
! 8439: $as_echo_n "checking for objdir... " >&6; }
! 8440: if ${lt_cv_objdir+:} false; then :
! 8441: $as_echo_n "(cached) " >&6
1.23 moko 8442: else
8443: rm -f .libs 2>/dev/null
8444: mkdir .libs 2>/dev/null
8445: if test -d .libs; then
8446: lt_cv_objdir=.libs
8447: else
8448: # MS-DOS does not allow filenames that begin with a dot.
8449: lt_cv_objdir=_libs
8450: fi
8451: rmdir .libs 2>/dev/null
8452: fi
1.31 ! moko 8453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
! 8454: $as_echo "$lt_cv_objdir" >&6; }
1.23 moko 8455: objdir=$lt_cv_objdir
1.10 paf 8456:
8457:
8458:
8459:
8460:
1.23 moko 8461: cat >>confdefs.h <<_ACEOF
8462: #define LT_OBJDIR "$lt_cv_objdir/"
8463: _ACEOF
1.10 paf 8464:
8465:
8466:
8467:
1.23 moko 8468: case $host_os in
8469: aix3*)
8470: # AIX sometimes has problems with the GCC collect2 program. For some
8471: # reason, if we set the COLLECT_NAMES environment variable, the problems
8472: # vanish in a puff of smoke.
8473: if test "X${COLLECT_NAMES+set}" != Xset; then
8474: COLLECT_NAMES=
8475: export COLLECT_NAMES
8476: fi
8477: ;;
8478: esac
1.10 paf 8479:
1.23 moko 8480: # Global variables:
8481: ofile=libtool
8482: can_build_shared=yes
1.10 paf 8483:
1.23 moko 8484: # All known linkers require a `.a' archive for static linking (except MSVC,
8485: # which needs '.lib').
8486: libext=a
1.10 paf 8487:
1.23 moko 8488: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.10 paf 8489:
1.23 moko 8490: old_CC="$CC"
8491: old_CFLAGS="$CFLAGS"
1.10 paf 8492:
1.23 moko 8493: # Set sane defaults for various variables
8494: test -z "$CC" && CC=cc
8495: test -z "$LTCC" && LTCC=$CC
8496: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8497: test -z "$LD" && LD=ld
8498: test -z "$ac_objext" && ac_objext=o
1.10 paf 8499:
1.23 moko 8500: for cc_temp in $compiler""; do
8501: case $cc_temp in
8502: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8503: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8504: \-*) ;;
8505: *) break;;
8506: esac
8507: done
8508: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.10 paf 8509:
8510:
1.23 moko 8511: # Only perform the check for file, if the check method requires it
8512: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8513: case $deplibs_check_method in
8514: file_magic*)
8515: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.31 ! moko 8516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
! 8517: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
! 8518: if ${lt_cv_path_MAGIC_CMD+:} false; then :
! 8519: $as_echo_n "(cached) " >&6
1.23 moko 8520: else
8521: case $MAGIC_CMD in
8522: [\\/*] | ?:[\\/]*)
8523: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8524: ;;
8525: *)
8526: lt_save_MAGIC_CMD="$MAGIC_CMD"
8527: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8528: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8529: for ac_dir in $ac_dummy; do
8530: IFS="$lt_save_ifs"
8531: test -z "$ac_dir" && ac_dir=.
8532: if test -f $ac_dir/${ac_tool_prefix}file; then
8533: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8534: if test -n "$file_magic_test_file"; then
8535: case $deplibs_check_method in
8536: "file_magic "*)
8537: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8538: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8539: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8540: $EGREP "$file_magic_regex" > /dev/null; then
8541: :
8542: else
8543: cat <<_LT_EOF 1>&2
1.10 paf 8544:
1.23 moko 8545: *** Warning: the command libtool uses to detect shared libraries,
8546: *** $file_magic_cmd, produces output that libtool cannot recognize.
8547: *** The result is that libtool may fail to recognize shared libraries
8548: *** as such. This will affect the creation of libtool libraries that
8549: *** depend on shared libraries, but programs linked with such libtool
8550: *** libraries will work regardless of this problem. Nevertheless, you
8551: *** may want to report the problem to your system manager and/or to
8552: *** bug-libtool@gnu.org
1.10 paf 8553:
1.23 moko 8554: _LT_EOF
8555: fi ;;
8556: esac
8557: fi
8558: break
8559: fi
8560: done
8561: IFS="$lt_save_ifs"
8562: MAGIC_CMD="$lt_save_MAGIC_CMD"
8563: ;;
8564: esac
8565: fi
1.10 paf 8566:
1.23 moko 8567: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8568: if test -n "$MAGIC_CMD"; then
1.31 ! moko 8569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 8570: $as_echo "$MAGIC_CMD" >&6; }
1.23 moko 8571: else
1.31 ! moko 8572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8573: $as_echo "no" >&6; }
1.23 moko 8574: fi
1.10 paf 8575:
8576:
8577:
8578:
8579:
1.23 moko 8580: if test -z "$lt_cv_path_MAGIC_CMD"; then
8581: if test -n "$ac_tool_prefix"; then
1.31 ! moko 8582: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
! 8583: $as_echo_n "checking for file... " >&6; }
! 8584: if ${lt_cv_path_MAGIC_CMD+:} false; then :
! 8585: $as_echo_n "(cached) " >&6
1.23 moko 8586: else
8587: case $MAGIC_CMD in
8588: [\\/*] | ?:[\\/]*)
8589: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8590: ;;
8591: *)
8592: lt_save_MAGIC_CMD="$MAGIC_CMD"
8593: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8594: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8595: for ac_dir in $ac_dummy; do
8596: IFS="$lt_save_ifs"
8597: test -z "$ac_dir" && ac_dir=.
8598: if test -f $ac_dir/file; then
8599: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8600: if test -n "$file_magic_test_file"; then
8601: case $deplibs_check_method in
8602: "file_magic "*)
8603: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8604: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8605: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8606: $EGREP "$file_magic_regex" > /dev/null; then
8607: :
8608: else
8609: cat <<_LT_EOF 1>&2
1.10 paf 8610:
1.23 moko 8611: *** Warning: the command libtool uses to detect shared libraries,
8612: *** $file_magic_cmd, produces output that libtool cannot recognize.
8613: *** The result is that libtool may fail to recognize shared libraries
8614: *** as such. This will affect the creation of libtool libraries that
8615: *** depend on shared libraries, but programs linked with such libtool
8616: *** libraries will work regardless of this problem. Nevertheless, you
8617: *** may want to report the problem to your system manager and/or to
8618: *** bug-libtool@gnu.org
1.10 paf 8619:
1.23 moko 8620: _LT_EOF
8621: fi ;;
8622: esac
8623: fi
8624: break
8625: fi
8626: done
8627: IFS="$lt_save_ifs"
8628: MAGIC_CMD="$lt_save_MAGIC_CMD"
8629: ;;
8630: esac
8631: fi
1.10 paf 8632:
1.23 moko 8633: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8634: if test -n "$MAGIC_CMD"; then
1.31 ! moko 8635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 8636: $as_echo "$MAGIC_CMD" >&6; }
1.23 moko 8637: else
1.31 ! moko 8638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8639: $as_echo "no" >&6; }
1.10 paf 8640: fi
8641:
8642:
1.23 moko 8643: else
8644: MAGIC_CMD=:
8645: fi
1.10 paf 8646: fi
8647:
1.23 moko 8648: fi
8649: ;;
8650: esac
1.10 paf 8651:
1.23 moko 8652: # Use C for the default configuration in the libtool script
1.10 paf 8653:
1.23 moko 8654: lt_save_CC="$CC"
8655: ac_ext=c
8656: ac_cpp='$CPP $CPPFLAGS'
8657: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8658: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8659: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 8660:
8661:
1.23 moko 8662: # Source file extension for C test sources.
8663: ac_ext=c
1.10 paf 8664:
1.23 moko 8665: # Object file extension for compiled C test sources.
8666: objext=o
8667: objext=$objext
1.10 paf 8668:
1.23 moko 8669: # Code to be used in simple compile tests
8670: lt_simple_compile_test_code="int some_variable = 0;"
1.10 paf 8671:
1.23 moko 8672: # Code to be used in simple link tests
8673: lt_simple_link_test_code='int main(){return(0);}'
1.10 paf 8674:
8675:
8676:
8677:
8678:
8679:
8680:
1.23 moko 8681: # If no C compiler was specified, use CC.
8682: LTCC=${LTCC-"$CC"}
1.10 paf 8683:
1.23 moko 8684: # If no C compiler flags were specified, use CFLAGS.
8685: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.10 paf 8686:
1.23 moko 8687: # Allow CC to be a program name with arguments.
8688: compiler=$CC
1.10 paf 8689:
1.23 moko 8690: # Save the default compiler, since it gets overwritten when the other
8691: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8692: compiler_DEFAULT=$CC
8693:
8694: # save warnings/boilerplate of simple test code
8695: ac_outfile=conftest.$ac_objext
8696: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8697: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8698: _lt_compiler_boilerplate=`cat conftest.err`
8699: $RM conftest*
8700:
8701: ac_outfile=conftest.$ac_objext
8702: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8703: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8704: _lt_linker_boilerplate=`cat conftest.err`
8705: $RM -r conftest*
8706:
8707:
8708: ## CAVEAT EMPTOR:
8709: ## There is no encapsulation within the following macros, do not change
8710: ## the running order or otherwise move them around unless you know exactly
8711: ## what you are doing...
8712: if test -n "$compiler"; then
1.10 paf 8713:
1.23 moko 8714: lt_prog_compiler_no_builtin_flag=
1.13 paf 8715:
1.23 moko 8716: if test "$GCC" = yes; then
8717: case $cc_basename in
8718: nvcc*)
8719: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8720: *)
8721: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8722: esac
1.10 paf 8723:
1.31 ! moko 8724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 8725: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
! 8726: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
! 8727: $as_echo_n "(cached) " >&6
1.10 paf 8728: else
1.23 moko 8729: lt_cv_prog_compiler_rtti_exceptions=no
8730: ac_outfile=conftest.$ac_objext
8731: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8732: lt_compiler_flag="-fno-rtti -fno-exceptions"
8733: # Insert the option either (1) after the last *FLAGS variable, or
8734: # (2) before a word containing "conftest.", or (3) at the end.
8735: # Note that $ac_compile itself does not contain backslashes and begins
8736: # with a dollar sign (not a hyphen), so the echo should work correctly.
8737: # The option is referenced via a variable to avoid confusing sed.
8738: lt_compile=`echo "$ac_compile" | $SED \
8739: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8740: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8741: -e 's:$: $lt_compiler_flag:'`
8742: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8743: (eval "$lt_compile" 2>conftest.err)
8744: ac_status=$?
8745: cat conftest.err >&5
8746: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747: if (exit $ac_status) && test -s "$ac_outfile"; then
8748: # The compiler can only warn and ignore the option if not recognized
8749: # So say no if there are warnings other than the usual output.
8750: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8751: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8752: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8753: lt_cv_prog_compiler_rtti_exceptions=yes
8754: fi
8755: fi
8756: $RM conftest*
1.10 paf 8757:
8758: fi
1.31 ! moko 8759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 8760: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.10 paf 8761:
1.23 moko 8762: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8763: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.10 paf 8764: else
1.23 moko 8765: :
1.10 paf 8766: fi
8767:
8768: fi
8769:
1.23 moko 8770:
8771:
8772:
8773:
8774:
8775: lt_prog_compiler_wl=
8776: lt_prog_compiler_pic=
8777: lt_prog_compiler_static=
8778:
8779:
8780: if test "$GCC" = yes; then
8781: lt_prog_compiler_wl='-Wl,'
8782: lt_prog_compiler_static='-static'
8783:
8784: case $host_os in
8785: aix*)
8786: # All AIX code is PIC.
8787: if test "$host_cpu" = ia64; then
8788: # AIX 5 now supports IA64 processor
8789: lt_prog_compiler_static='-Bstatic'
8790: fi
8791: ;;
8792:
8793: amigaos*)
8794: case $host_cpu in
8795: powerpc)
8796: # see comment about AmigaOS4 .so support
8797: lt_prog_compiler_pic='-fPIC'
8798: ;;
8799: m68k)
8800: # FIXME: we need at least 68020 code to build shared libraries, but
8801: # adding the `-m68020' flag to GCC prevents building anything better,
8802: # like `-m68040'.
8803: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8804: ;;
8805: esac
8806: ;;
8807:
8808: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8809: # PIC is the default for these OSes.
8810: ;;
8811:
8812: mingw* | cygwin* | pw32* | os2* | cegcc*)
8813: # This hack is so that the source file can tell whether it is being
8814: # built for inclusion in a dll (and should export symbols for example).
8815: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8816: # (--disable-auto-import) libraries
8817: lt_prog_compiler_pic='-DDLL_EXPORT'
8818: ;;
8819:
8820: darwin* | rhapsody*)
8821: # PIC is the default on this platform
8822: # Common symbols not allowed in MH_DYLIB files
8823: lt_prog_compiler_pic='-fno-common'
8824: ;;
8825:
8826: haiku*)
8827: # PIC is the default for Haiku.
8828: # The "-static" flag exists, but is broken.
8829: lt_prog_compiler_static=
8830: ;;
8831:
8832: hpux*)
8833: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8834: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8835: # sets the default TLS model and affects inlining.
8836: case $host_cpu in
8837: hppa*64*)
8838: # +Z the default
8839: ;;
8840: *)
8841: lt_prog_compiler_pic='-fPIC'
8842: ;;
8843: esac
8844: ;;
8845:
8846: interix[3-9]*)
8847: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8848: # Instead, we relocate shared libraries at runtime.
8849: ;;
8850:
8851: msdosdjgpp*)
8852: # Just because we use GCC doesn't mean we suddenly get shared libraries
8853: # on systems that don't support them.
8854: lt_prog_compiler_can_build_shared=no
8855: enable_shared=no
8856: ;;
8857:
8858: *nto* | *qnx*)
8859: # QNX uses GNU C++, but need to define -shared option too, otherwise
8860: # it will coredump.
8861: lt_prog_compiler_pic='-fPIC -shared'
8862: ;;
8863:
8864: sysv4*MP*)
8865: if test -d /usr/nec; then
8866: lt_prog_compiler_pic=-Kconform_pic
8867: fi
8868: ;;
8869:
8870: *)
8871: lt_prog_compiler_pic='-fPIC'
8872: ;;
8873: esac
8874:
8875: case $cc_basename in
8876: nvcc*) # Cuda Compiler Driver 2.2
8877: lt_prog_compiler_wl='-Xlinker '
8878: if test -n "$lt_prog_compiler_pic"; then
8879: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8880: fi
8881: ;;
8882: esac
8883: else
8884: # PORTME Check for flag to pass linker flags through the system compiler.
8885: case $host_os in
8886: aix*)
8887: lt_prog_compiler_wl='-Wl,'
8888: if test "$host_cpu" = ia64; then
8889: # AIX 5 now supports IA64 processor
8890: lt_prog_compiler_static='-Bstatic'
8891: else
8892: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8893: fi
8894: ;;
8895:
8896: mingw* | cygwin* | pw32* | os2* | cegcc*)
8897: # This hack is so that the source file can tell whether it is being
8898: # built for inclusion in a dll (and should export symbols for example).
8899: lt_prog_compiler_pic='-DDLL_EXPORT'
8900: ;;
8901:
8902: hpux9* | hpux10* | hpux11*)
8903: lt_prog_compiler_wl='-Wl,'
8904: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8905: # not for PA HP-UX.
8906: case $host_cpu in
8907: hppa*64*|ia64*)
8908: # +Z the default
8909: ;;
8910: *)
8911: lt_prog_compiler_pic='+Z'
8912: ;;
8913: esac
8914: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8915: lt_prog_compiler_static='${wl}-a ${wl}archive'
8916: ;;
8917:
8918: irix5* | irix6* | nonstopux*)
8919: lt_prog_compiler_wl='-Wl,'
8920: # PIC (with -KPIC) is the default.
8921: lt_prog_compiler_static='-non_shared'
8922: ;;
8923:
8924: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8925: case $cc_basename in
8926: # old Intel for x86_64 which still supported -KPIC.
8927: ecc*)
8928: lt_prog_compiler_wl='-Wl,'
8929: lt_prog_compiler_pic='-KPIC'
8930: lt_prog_compiler_static='-static'
8931: ;;
8932: # icc used to be incompatible with GCC.
8933: # ICC 10 doesn't accept -KPIC any more.
8934: icc* | ifort*)
8935: lt_prog_compiler_wl='-Wl,'
8936: lt_prog_compiler_pic='-fPIC'
8937: lt_prog_compiler_static='-static'
8938: ;;
8939: # Lahey Fortran 8.1.
8940: lf95*)
8941: lt_prog_compiler_wl='-Wl,'
8942: lt_prog_compiler_pic='--shared'
8943: lt_prog_compiler_static='--static'
8944: ;;
8945: nagfor*)
8946: # NAG Fortran compiler
8947: lt_prog_compiler_wl='-Wl,-Wl,,'
8948: lt_prog_compiler_pic='-PIC'
8949: lt_prog_compiler_static='-Bstatic'
8950: ;;
8951: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8952: # Portland Group compilers (*not* the Pentium gcc compiler,
8953: # which looks to be a dead project)
8954: lt_prog_compiler_wl='-Wl,'
8955: lt_prog_compiler_pic='-fpic'
8956: lt_prog_compiler_static='-Bstatic'
8957: ;;
8958: ccc*)
8959: lt_prog_compiler_wl='-Wl,'
8960: # All Alpha code is PIC.
8961: lt_prog_compiler_static='-non_shared'
8962: ;;
8963: xl* | bgxl* | bgf* | mpixl*)
8964: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8965: lt_prog_compiler_wl='-Wl,'
8966: lt_prog_compiler_pic='-qpic'
8967: lt_prog_compiler_static='-qstaticlink'
8968: ;;
8969: *)
8970: case `$CC -V 2>&1 | sed 5q` in
8971: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8972: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8973: lt_prog_compiler_pic='-KPIC'
8974: lt_prog_compiler_static='-Bstatic'
8975: lt_prog_compiler_wl=''
8976: ;;
8977: *Sun\ F* | *Sun*Fortran*)
8978: lt_prog_compiler_pic='-KPIC'
8979: lt_prog_compiler_static='-Bstatic'
8980: lt_prog_compiler_wl='-Qoption ld '
8981: ;;
8982: *Sun\ C*)
8983: # Sun C 5.9
8984: lt_prog_compiler_pic='-KPIC'
8985: lt_prog_compiler_static='-Bstatic'
8986: lt_prog_compiler_wl='-Wl,'
8987: ;;
8988: *Intel*\ [CF]*Compiler*)
8989: lt_prog_compiler_wl='-Wl,'
8990: lt_prog_compiler_pic='-fPIC'
8991: lt_prog_compiler_static='-static'
8992: ;;
8993: *Portland\ Group*)
8994: lt_prog_compiler_wl='-Wl,'
8995: lt_prog_compiler_pic='-fpic'
8996: lt_prog_compiler_static='-Bstatic'
8997: ;;
8998: esac
8999: ;;
9000: esac
9001: ;;
9002:
9003: newsos6)
9004: lt_prog_compiler_pic='-KPIC'
9005: lt_prog_compiler_static='-Bstatic'
9006: ;;
9007:
9008: *nto* | *qnx*)
9009: # QNX uses GNU C++, but need to define -shared option too, otherwise
9010: # it will coredump.
9011: lt_prog_compiler_pic='-fPIC -shared'
9012: ;;
9013:
9014: osf3* | osf4* | osf5*)
9015: lt_prog_compiler_wl='-Wl,'
9016: # All OSF/1 code is PIC.
9017: lt_prog_compiler_static='-non_shared'
9018: ;;
9019:
9020: rdos*)
9021: lt_prog_compiler_static='-non_shared'
9022: ;;
9023:
9024: solaris*)
9025: lt_prog_compiler_pic='-KPIC'
9026: lt_prog_compiler_static='-Bstatic'
9027: case $cc_basename in
9028: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9029: lt_prog_compiler_wl='-Qoption ld ';;
9030: *)
9031: lt_prog_compiler_wl='-Wl,';;
9032: esac
9033: ;;
9034:
9035: sunos4*)
9036: lt_prog_compiler_wl='-Qoption ld '
9037: lt_prog_compiler_pic='-PIC'
9038: lt_prog_compiler_static='-Bstatic'
9039: ;;
9040:
9041: sysv4 | sysv4.2uw2* | sysv4.3*)
9042: lt_prog_compiler_wl='-Wl,'
9043: lt_prog_compiler_pic='-KPIC'
9044: lt_prog_compiler_static='-Bstatic'
9045: ;;
9046:
9047: sysv4*MP*)
9048: if test -d /usr/nec ;then
9049: lt_prog_compiler_pic='-Kconform_pic'
9050: lt_prog_compiler_static='-Bstatic'
9051: fi
9052: ;;
9053:
9054: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9055: lt_prog_compiler_wl='-Wl,'
9056: lt_prog_compiler_pic='-KPIC'
9057: lt_prog_compiler_static='-Bstatic'
9058: ;;
9059:
9060: unicos*)
9061: lt_prog_compiler_wl='-Wl,'
9062: lt_prog_compiler_can_build_shared=no
9063: ;;
9064:
9065: uts4*)
9066: lt_prog_compiler_pic='-pic'
9067: lt_prog_compiler_static='-Bstatic'
9068: ;;
9069:
9070: *)
9071: lt_prog_compiler_can_build_shared=no
9072: ;;
9073: esac
9074: fi
9075:
9076: case $host_os in
9077: # For platforms which do not support PIC, -DPIC is meaningless:
9078: *djgpp*)
9079: lt_prog_compiler_pic=
1.10 paf 9080: ;;
1.23 moko 9081: *)
9082: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.10 paf 9083: ;;
9084: esac
1.23 moko 9085:
1.31 ! moko 9086: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 9087: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
! 9088: if ${lt_cv_prog_compiler_pic+:} false; then :
! 9089: $as_echo_n "(cached) " >&6
1.23 moko 9090: else
9091: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9092: fi
1.31 ! moko 9093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
! 9094: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.23 moko 9095: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9096:
9097: #
9098: # Check to make sure the PIC flag actually works.
9099: #
9100: if test -n "$lt_prog_compiler_pic"; then
1.31 ! moko 9101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 9102: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
! 9103: if ${lt_cv_prog_compiler_pic_works+:} false; then :
! 9104: $as_echo_n "(cached) " >&6
1.10 paf 9105: else
1.23 moko 9106: lt_cv_prog_compiler_pic_works=no
9107: ac_outfile=conftest.$ac_objext
9108: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9109: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9110: # Insert the option either (1) after the last *FLAGS variable, or
9111: # (2) before a word containing "conftest.", or (3) at the end.
9112: # Note that $ac_compile itself does not contain backslashes and begins
9113: # with a dollar sign (not a hyphen), so the echo should work correctly.
9114: # The option is referenced via a variable to avoid confusing sed.
9115: lt_compile=`echo "$ac_compile" | $SED \
9116: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9117: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9118: -e 's:$: $lt_compiler_flag:'`
9119: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9120: (eval "$lt_compile" 2>conftest.err)
9121: ac_status=$?
9122: cat conftest.err >&5
9123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124: if (exit $ac_status) && test -s "$ac_outfile"; then
9125: # The compiler can only warn and ignore the option if not recognized
9126: # So say no if there are warnings other than the usual output.
9127: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9128: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9129: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9130: lt_cv_prog_compiler_pic_works=yes
9131: fi
9132: fi
9133: $RM conftest*
9134:
1.1 parser 9135: fi
1.31 ! moko 9136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
! 9137: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.10 paf 9138:
1.23 moko 9139: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9140: case $lt_prog_compiler_pic in
9141: "" | " "*) ;;
9142: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9143: esac
9144: else
9145: lt_prog_compiler_pic=
9146: lt_prog_compiler_can_build_shared=no
1.1 parser 9147: fi
9148:
9149: fi
9150:
1.10 paf 9151:
1.1 parser 9152:
9153:
1.10 paf 9154:
1.1 parser 9155:
9156:
9157:
9158:
9159:
9160:
1.23 moko 9161: #
9162: # Check to make sure the static flag actually works.
9163: #
9164: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.31 ! moko 9165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 9166: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 9167: if ${lt_cv_prog_compiler_static_works+:} false; then :
! 9168: $as_echo_n "(cached) " >&6
1.23 moko 9169: else
9170: lt_cv_prog_compiler_static_works=no
9171: save_LDFLAGS="$LDFLAGS"
9172: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9173: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9174: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9175: # The linker can only warn and ignore the option if not recognized
9176: # So say no if there are warnings
9177: if test -s conftest.err; then
9178: # Append any errors to the config.log.
9179: cat conftest.err 1>&5
9180: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9181: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9182: if diff conftest.exp conftest.er2 >/dev/null; then
9183: lt_cv_prog_compiler_static_works=yes
9184: fi
9185: else
9186: lt_cv_prog_compiler_static_works=yes
9187: fi
9188: fi
9189: $RM -r conftest*
9190: LDFLAGS="$save_LDFLAGS"
1.10 paf 9191:
1.23 moko 9192: fi
1.31 ! moko 9193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
! 9194: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.10 paf 9195:
1.23 moko 9196: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9197: :
9198: else
9199: lt_prog_compiler_static=
1.1 parser 9200: fi
9201:
9202:
9203:
1.10 paf 9204:
9205:
9206:
1.1 parser 9207:
1.31 ! moko 9208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 9209: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 9210: if ${lt_cv_prog_compiler_c_o+:} false; then :
! 9211: $as_echo_n "(cached) " >&6
1.23 moko 9212: else
9213: lt_cv_prog_compiler_c_o=no
9214: $RM -r conftest 2>/dev/null
9215: mkdir conftest
9216: cd conftest
9217: mkdir out
9218: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9219:
9220: lt_compiler_flag="-o out/conftest2.$ac_objext"
9221: # Insert the option either (1) after the last *FLAGS variable, or
9222: # (2) before a word containing "conftest.", or (3) at the end.
9223: # Note that $ac_compile itself does not contain backslashes and begins
9224: # with a dollar sign (not a hyphen), so the echo should work correctly.
9225: lt_compile=`echo "$ac_compile" | $SED \
9226: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9227: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9228: -e 's:$: $lt_compiler_flag:'`
9229: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9230: (eval "$lt_compile" 2>out/conftest.err)
9231: ac_status=$?
9232: cat out/conftest.err >&5
9233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9235: then
9236: # The compiler can only warn and ignore the option if not recognized
9237: # So say no if there are warnings
9238: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9239: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9240: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9241: lt_cv_prog_compiler_c_o=yes
9242: fi
9243: fi
9244: chmod u+w . 2>&5
9245: $RM conftest*
9246: # SGI C++ compiler will create directory out/ii_files/ for
9247: # template instantiation
9248: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9249: $RM out/* && rmdir out
9250: cd ..
9251: $RM -r conftest
9252: $RM conftest*
9253:
1.10 paf 9254: fi
1.31 ! moko 9255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 9256: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.23 moko 9257:
1.1 parser 9258:
1.10 paf 9259:
9260:
9261:
9262:
1.31 ! moko 9263: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 9264: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 9265: if ${lt_cv_prog_compiler_c_o+:} false; then :
! 9266: $as_echo_n "(cached) " >&6
1.10 paf 9267: else
1.23 moko 9268: lt_cv_prog_compiler_c_o=no
9269: $RM -r conftest 2>/dev/null
9270: mkdir conftest
9271: cd conftest
9272: mkdir out
9273: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9274:
9275: lt_compiler_flag="-o out/conftest2.$ac_objext"
9276: # Insert the option either (1) after the last *FLAGS variable, or
9277: # (2) before a word containing "conftest.", or (3) at the end.
9278: # Note that $ac_compile itself does not contain backslashes and begins
9279: # with a dollar sign (not a hyphen), so the echo should work correctly.
9280: lt_compile=`echo "$ac_compile" | $SED \
9281: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9282: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9283: -e 's:$: $lt_compiler_flag:'`
9284: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9285: (eval "$lt_compile" 2>out/conftest.err)
9286: ac_status=$?
9287: cat out/conftest.err >&5
9288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9290: then
9291: # The compiler can only warn and ignore the option if not recognized
9292: # So say no if there are warnings
9293: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9294: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9295: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9296: lt_cv_prog_compiler_c_o=yes
9297: fi
9298: fi
9299: chmod u+w . 2>&5
9300: $RM conftest*
9301: # SGI C++ compiler will create directory out/ii_files/ for
9302: # template instantiation
9303: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9304: $RM out/* && rmdir out
9305: cd ..
9306: $RM -r conftest
9307: $RM conftest*
9308:
1.10 paf 9309: fi
1.31 ! moko 9310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 9311: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.23 moko 9312:
1.10 paf 9313:
9314:
9315:
1.23 moko 9316: hard_links="nottested"
9317: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9318: # do not overwrite the value of need_locks provided by the user
1.31 ! moko 9319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
! 9320: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.23 moko 9321: hard_links=yes
9322: $RM conftest*
9323: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9324: touch conftest.a
9325: ln conftest.a conftest.b 2>&5 || hard_links=no
9326: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.31 ! moko 9327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
! 9328: $as_echo "$hard_links" >&6; }
1.23 moko 9329: if test "$hard_links" = no; then
1.31 ! moko 9330: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 9331: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.23 moko 9332: need_locks=warn
1.10 paf 9333: fi
9334: else
1.23 moko 9335: need_locks=no
1.10 paf 9336: fi
9337:
9338:
9339:
9340:
9341:
9342:
1.31 ! moko 9343: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 9344: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.23 moko 9345:
9346: runpath_var=
9347: allow_undefined_flag=
9348: always_export_symbols=no
9349: archive_cmds=
9350: archive_expsym_cmds=
9351: compiler_needs_object=no
9352: enable_shared_with_static_runtimes=no
9353: export_dynamic_flag_spec=
9354: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9355: hardcode_automatic=no
9356: hardcode_direct=no
9357: hardcode_direct_absolute=no
9358: hardcode_libdir_flag_spec=
9359: hardcode_libdir_separator=
9360: hardcode_minus_L=no
9361: hardcode_shlibpath_var=unsupported
9362: inherit_rpath=no
9363: link_all_deplibs=unknown
9364: module_cmds=
9365: module_expsym_cmds=
9366: old_archive_from_new_cmds=
9367: old_archive_from_expsyms_cmds=
9368: thread_safe_flag_spec=
9369: whole_archive_flag_spec=
9370: # include_expsyms should be a list of space-separated symbols to be *always*
9371: # included in the symbol list
9372: include_expsyms=
9373: # exclude_expsyms can be an extended regexp of symbols to exclude
9374: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9375: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9376: # as well as any symbol that contains `d'.
9377: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9378: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9379: # platforms (ab)use it in PIC code, but their linkers get confused if
9380: # the symbol is explicitly referenced. Since portable code cannot
9381: # rely on this symbol name, it's probably fine to never include it in
9382: # preloaded symbol tables.
9383: # Exclude shared library initialization/finalization symbols.
9384: extract_expsyms_cmds=
9385:
9386: case $host_os in
9387: cygwin* | mingw* | pw32* | cegcc*)
9388: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9389: # When not using gcc, we currently assume that we are using
9390: # Microsoft Visual C++.
9391: if test "$GCC" != yes; then
9392: with_gnu_ld=no
9393: fi
9394: ;;
9395: interix*)
9396: # we just hope/assume this is gcc and not c89 (= MSVC++)
9397: with_gnu_ld=yes
9398: ;;
9399: openbsd*)
9400: with_gnu_ld=no
9401: ;;
9402: esac
9403:
9404: ld_shlibs=yes
9405:
9406: # On some targets, GNU ld is compatible enough with the native linker
9407: # that we're better off using the native interface for both.
9408: lt_use_gnu_ld_interface=no
9409: if test "$with_gnu_ld" = yes; then
9410: case $host_os in
9411: aix*)
9412: # The AIX port of GNU ld has always aspired to compatibility
9413: # with the native linker. However, as the warning in the GNU ld
9414: # block says, versions before 2.19.5* couldn't really create working
9415: # shared libraries, regardless of the interface used.
9416: case `$LD -v 2>&1` in
9417: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9418: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9419: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9420: *)
9421: lt_use_gnu_ld_interface=yes
9422: ;;
9423: esac
9424: ;;
9425: *)
9426: lt_use_gnu_ld_interface=yes
9427: ;;
9428: esac
1.10 paf 9429: fi
9430:
1.23 moko 9431: if test "$lt_use_gnu_ld_interface" = yes; then
9432: # If archive_cmds runs LD, not CC, wlarc should be empty
9433: wlarc='${wl}'
9434:
9435: # Set some defaults for GNU ld with shared library support. These
9436: # are reset later if shared libraries are not supported. Putting them
9437: # here allows them to be overridden if necessary.
9438: runpath_var=LD_RUN_PATH
9439: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440: export_dynamic_flag_spec='${wl}--export-dynamic'
9441: # ancient GNU ld didn't support --whole-archive et. al.
9442: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9443: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9444: else
9445: whole_archive_flag_spec=
9446: fi
9447: supports_anon_versioning=no
9448: case `$LD -v 2>&1` in
9449: *GNU\ gold*) supports_anon_versioning=yes ;;
9450: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9451: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9452: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9453: *\ 2.11.*) ;; # other 2.11 versions
9454: *) supports_anon_versioning=yes ;;
9455: esac
9456:
9457: # See if GNU ld supports shared libraries.
9458: case $host_os in
9459: aix[3-9]*)
9460: # On AIX/PPC, the GNU linker is very broken
9461: if test "$host_cpu" != ia64; then
9462: ld_shlibs=no
9463: cat <<_LT_EOF 1>&2
1.10 paf 9464:
1.23 moko 9465: *** Warning: the GNU linker, at least up to release 2.19, is reported
9466: *** to be unable to reliably create shared libraries on AIX.
9467: *** Therefore, libtool is disabling shared libraries support. If you
9468: *** really care for shared libraries, you may want to install binutils
9469: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9470: *** You will then need to restart the configuration process.
1.10 paf 9471:
1.23 moko 9472: _LT_EOF
9473: fi
9474: ;;
1.10 paf 9475:
1.23 moko 9476: amigaos*)
9477: case $host_cpu in
9478: powerpc)
9479: # see comment about AmigaOS4 .so support
9480: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481: archive_expsym_cmds=''
9482: ;;
9483: m68k)
9484: 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)'
9485: hardcode_libdir_flag_spec='-L$libdir'
9486: hardcode_minus_L=yes
9487: ;;
9488: esac
9489: ;;
1.10 paf 9490:
1.23 moko 9491: beos*)
9492: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9493: allow_undefined_flag=unsupported
9494: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9495: # support --undefined. This deserves some investigation. FIXME
9496: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497: else
9498: ld_shlibs=no
9499: fi
9500: ;;
1.10 paf 9501:
1.23 moko 9502: cygwin* | mingw* | pw32* | cegcc*)
9503: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9504: # as there is no search path for DLLs.
9505: hardcode_libdir_flag_spec='-L$libdir'
9506: export_dynamic_flag_spec='${wl}--export-all-symbols'
9507: allow_undefined_flag=unsupported
9508: always_export_symbols=no
9509: enable_shared_with_static_runtimes=yes
9510: 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'
9511: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9512:
9513: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9514: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9515: # If the export-symbols file already is a .def file (1st line
9516: # is EXPORTS), use it as is; otherwise, prepend...
9517: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9518: cp $export_symbols $output_objdir/$soname.def;
9519: else
9520: echo EXPORTS > $output_objdir/$soname.def;
9521: cat $export_symbols >> $output_objdir/$soname.def;
9522: fi~
9523: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9524: else
9525: ld_shlibs=no
9526: fi
9527: ;;
1.10 paf 9528:
1.23 moko 9529: haiku*)
9530: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531: link_all_deplibs=yes
9532: ;;
1.10 paf 9533:
1.23 moko 9534: interix[3-9]*)
9535: hardcode_direct=no
9536: hardcode_shlibpath_var=no
9537: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9538: export_dynamic_flag_spec='${wl}-E'
9539: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9540: # Instead, shared libraries are loaded at an image base (0x10000000 by
9541: # default) and relocated if they conflict, which is a slow very memory
9542: # consuming and fragmenting process. To avoid this, we pick a random,
9543: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9544: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9545: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9546: 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'
9547: ;;
1.10 paf 9548:
1.23 moko 9549: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9550: tmp_diet=no
9551: if test "$host_os" = linux-dietlibc; then
9552: case $cc_basename in
9553: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9554: esac
9555: fi
9556: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9557: && test "$tmp_diet" = no
9558: then
9559: tmp_addflag=' $pic_flag'
9560: tmp_sharedflag='-shared'
9561: case $cc_basename,$host_cpu in
9562: pgcc*) # Portland Group C compiler
9563: 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'
9564: tmp_addflag=' $pic_flag'
9565: ;;
9566: pgf77* | pgf90* | pgf95* | pgfortran*)
9567: # Portland Group f77 and f90 compilers
9568: 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'
9569: tmp_addflag=' $pic_flag -Mnomain' ;;
9570: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9571: tmp_addflag=' -i_dynamic' ;;
9572: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9573: tmp_addflag=' -i_dynamic -nofor_main' ;;
9574: ifc* | ifort*) # Intel Fortran compiler
9575: tmp_addflag=' -nofor_main' ;;
9576: lf95*) # Lahey Fortran 8.1
9577: whole_archive_flag_spec=
9578: tmp_sharedflag='--shared' ;;
9579: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9580: tmp_sharedflag='-qmkshrobj'
9581: tmp_addflag= ;;
9582: nvcc*) # Cuda Compiler Driver 2.2
9583: 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'
9584: compiler_needs_object=yes
9585: ;;
9586: esac
9587: case `$CC -V 2>&1 | sed 5q` in
9588: *Sun\ C*) # Sun C 5.9
9589: 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'
9590: compiler_needs_object=yes
9591: tmp_sharedflag='-G' ;;
9592: *Sun\ F*) # Sun Fortran 8.3
9593: tmp_sharedflag='-G' ;;
9594: esac
9595: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.10 paf 9596:
1.23 moko 9597: if test "x$supports_anon_versioning" = xyes; then
9598: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9599: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9600: echo "local: *; };" >> $output_objdir/$libname.ver~
9601: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9602: fi
9603:
9604: case $cc_basename in
9605: xlf* | bgf* | bgxlf* | mpixlf*)
9606: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9607: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9608: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9609: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9610: if test "x$supports_anon_versioning" = xyes; then
9611: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9612: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9613: echo "local: *; };" >> $output_objdir/$libname.ver~
9614: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9615: fi
9616: ;;
9617: esac
9618: else
9619: ld_shlibs=no
9620: fi
9621: ;;
1.10 paf 9622:
1.23 moko 9623: netbsd*)
9624: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9625: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9626: wlarc=
9627: else
9628: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9629: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9630: fi
9631: ;;
1.10 paf 9632:
1.23 moko 9633: solaris*)
9634: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9635: ld_shlibs=no
9636: cat <<_LT_EOF 1>&2
1.10 paf 9637:
1.23 moko 9638: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9639: *** create shared libraries on Solaris systems. Therefore, libtool
9640: *** is disabling shared libraries support. We urge you to upgrade GNU
9641: *** binutils to release 2.9.1 or newer. Another option is to modify
9642: *** your PATH or compiler configuration so that the native linker is
9643: *** used, and then restart.
1.10 paf 9644:
1.23 moko 9645: _LT_EOF
9646: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9647: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9649: else
9650: ld_shlibs=no
9651: fi
9652: ;;
1.10 paf 9653:
1.23 moko 9654: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9655: case `$LD -v 2>&1` in
9656: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9657: ld_shlibs=no
9658: cat <<_LT_EOF 1>&2
1.10 paf 9659:
1.23 moko 9660: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9661: *** reliably create shared libraries on SCO systems. Therefore, libtool
9662: *** is disabling shared libraries support. We urge you to upgrade GNU
9663: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9664: *** your PATH or compiler configuration so that the native linker is
9665: *** used, and then restart.
1.10 paf 9666:
1.23 moko 9667: _LT_EOF
9668: ;;
9669: *)
9670: # For security reasons, it is highly recommended that you always
9671: # use absolute paths for naming shared libraries, and exclude the
9672: # DT_RUNPATH tag from executables and libraries. But doing so
9673: # requires that you compile everything twice, which is a pain.
9674: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9675: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9677: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9678: else
9679: ld_shlibs=no
9680: fi
9681: ;;
9682: esac
9683: ;;
1.10 paf 9684:
1.23 moko 9685: sunos4*)
9686: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9687: wlarc=
9688: hardcode_direct=yes
9689: hardcode_shlibpath_var=no
9690: ;;
1.10 paf 9691:
1.23 moko 9692: *)
9693: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9694: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9695: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9696: else
9697: ld_shlibs=no
9698: fi
9699: ;;
9700: esac
1.10 paf 9701:
1.23 moko 9702: if test "$ld_shlibs" = no; then
9703: runpath_var=
9704: hardcode_libdir_flag_spec=
9705: export_dynamic_flag_spec=
9706: whole_archive_flag_spec=
9707: fi
9708: else
9709: # PORTME fill in a description of your system's linker (not GNU ld)
9710: case $host_os in
9711: aix3*)
9712: allow_undefined_flag=unsupported
9713: always_export_symbols=yes
9714: 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'
9715: # Note: this linker hardcodes the directories in LIBPATH if there
9716: # are no directories specified by -L.
9717: hardcode_minus_L=yes
9718: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9719: # Neither direct hardcoding nor static linking is supported with a
9720: # broken collect2.
9721: hardcode_direct=unsupported
9722: fi
9723: ;;
1.10 paf 9724:
1.23 moko 9725: aix[4-9]*)
9726: if test "$host_cpu" = ia64; then
9727: # On IA64, the linker does run time linking by default, so we don't
9728: # have to do anything special.
9729: aix_use_runtimelinking=no
9730: exp_sym_flag='-Bexport'
9731: no_entry_flag=""
9732: else
9733: # If we're using GNU nm, then we don't want the "-C" option.
9734: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9735: # Also, AIX nm treats weak defined symbols like other global
9736: # defined symbols, whereas GNU nm marks them as "W".
9737: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9738: 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'
9739: else
9740: 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'
9741: fi
9742: aix_use_runtimelinking=no
1.10 paf 9743:
1.23 moko 9744: # Test if we are trying to use run time linking or normal
9745: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9746: # need to do runtime linking.
9747: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9748: for ld_flag in $LDFLAGS; do
9749: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9750: aix_use_runtimelinking=yes
9751: break
9752: fi
9753: done
9754: ;;
9755: esac
1.10 paf 9756:
1.23 moko 9757: exp_sym_flag='-bexport'
9758: no_entry_flag='-bnoentry'
9759: fi
1.10 paf 9760:
1.23 moko 9761: # When large executables or shared objects are built, AIX ld can
9762: # have problems creating the table of contents. If linking a library
9763: # or program results in "error TOC overflow" add -mminimal-toc to
9764: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9765: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9766:
9767: archive_cmds=''
9768: hardcode_direct=yes
9769: hardcode_direct_absolute=yes
9770: hardcode_libdir_separator=':'
9771: link_all_deplibs=yes
9772: file_list_spec='${wl}-f,'
9773:
9774: if test "$GCC" = yes; then
9775: case $host_os in aix4.[012]|aix4.[012].*)
9776: # We only want to do this on AIX 4.2 and lower, the check
9777: # below for broken collect2 doesn't work under 4.3+
9778: collect2name=`${CC} -print-prog-name=collect2`
9779: if test -f "$collect2name" &&
9780: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9781: then
9782: # We have reworked collect2
9783: :
9784: else
9785: # We have old collect2
9786: hardcode_direct=unsupported
9787: # It fails to find uninstalled libraries when the uninstalled
9788: # path is not listed in the libpath. Setting hardcode_minus_L
9789: # to unsupported forces relinking
9790: hardcode_minus_L=yes
9791: hardcode_libdir_flag_spec='-L$libdir'
9792: hardcode_libdir_separator=
9793: fi
9794: ;;
9795: esac
9796: shared_flag='-shared'
9797: if test "$aix_use_runtimelinking" = yes; then
9798: shared_flag="$shared_flag "'${wl}-G'
9799: fi
9800: else
9801: # not using gcc
9802: if test "$host_cpu" = ia64; then
9803: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9804: # chokes on -Wl,-G. The following line is correct:
9805: shared_flag='-G'
9806: else
9807: if test "$aix_use_runtimelinking" = yes; then
9808: shared_flag='${wl}-G'
9809: else
9810: shared_flag='${wl}-bM:SRE'
9811: fi
9812: fi
9813: fi
9814:
9815: export_dynamic_flag_spec='${wl}-bexpall'
9816: # It seems that -bexpall does not export symbols beginning with
9817: # underscore (_), so it is better to generate a list of symbols to export.
9818: always_export_symbols=yes
9819: if test "$aix_use_runtimelinking" = yes; then
9820: # Warning - without using the other runtime loading flags (-brtl),
9821: # -berok will link without error, but may produce a broken library.
9822: allow_undefined_flag='-berok'
9823: # Determine the default libpath from the value encoded in an
9824: # empty executable.
9825: if test "${lt_cv_aix_libpath+set}" = set; then
9826: aix_libpath=$lt_cv_aix_libpath
9827: else
1.31 ! moko 9828: if ${lt_cv_aix_libpath_+:} false; then :
! 9829: $as_echo_n "(cached) " >&6
1.23 moko 9830: else
1.31 ! moko 9831: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 9832: /* end confdefs.h. */
1.10 paf 9833:
1.23 moko 9834: int
9835: main ()
9836: {
1.10 paf 9837:
1.23 moko 9838: ;
9839: return 0;
9840: }
9841: _ACEOF
1.31 ! moko 9842: if ac_fn_c_try_link "$LINENO"; then :
1.10 paf 9843:
1.23 moko 9844: lt_aix_libpath_sed='
9845: /Import File Strings/,/^$/ {
9846: /^0/ {
9847: s/^0 *\([^ ]*\) *$/\1/
9848: p
9849: }
9850: }'
9851: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852: # Check for a 64-bit object if we didn't find anything.
9853: if test -z "$lt_cv_aix_libpath_"; then
9854: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855: fi
9856: fi
1.31 ! moko 9857: rm -f core conftest.err conftest.$ac_objext \
! 9858: conftest$ac_exeext conftest.$ac_ext
1.23 moko 9859: if test -z "$lt_cv_aix_libpath_"; then
9860: lt_cv_aix_libpath_="/usr/lib:/lib"
9861: fi
1.10 paf 9862:
1.23 moko 9863: fi
1.10 paf 9864:
1.23 moko 9865: aix_libpath=$lt_cv_aix_libpath_
9866: fi
1.10 paf 9867:
1.23 moko 9868: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9869: 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"
9870: else
9871: if test "$host_cpu" = ia64; then
9872: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9873: allow_undefined_flag="-z nodefs"
9874: 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"
9875: else
9876: # Determine the default libpath from the value encoded in an
9877: # empty executable.
9878: if test "${lt_cv_aix_libpath+set}" = set; then
9879: aix_libpath=$lt_cv_aix_libpath
9880: else
1.31 ! moko 9881: if ${lt_cv_aix_libpath_+:} false; then :
! 9882: $as_echo_n "(cached) " >&6
1.23 moko 9883: else
1.31 ! moko 9884: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 9885: /* end confdefs.h. */
1.10 paf 9886:
1.23 moko 9887: int
9888: main ()
9889: {
1.10 paf 9890:
1.23 moko 9891: ;
9892: return 0;
9893: }
1.10 paf 9894: _ACEOF
1.31 ! moko 9895: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 9896:
9897: lt_aix_libpath_sed='
9898: /Import File Strings/,/^$/ {
9899: /^0/ {
9900: s/^0 *\([^ ]*\) *$/\1/
9901: p
9902: }
9903: }'
9904: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9905: # Check for a 64-bit object if we didn't find anything.
9906: if test -z "$lt_cv_aix_libpath_"; then
9907: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9908: fi
9909: fi
1.31 ! moko 9910: rm -f core conftest.err conftest.$ac_objext \
! 9911: conftest$ac_exeext conftest.$ac_ext
1.23 moko 9912: if test -z "$lt_cv_aix_libpath_"; then
9913: lt_cv_aix_libpath_="/usr/lib:/lib"
9914: fi
1.10 paf 9915:
1.23 moko 9916: fi
1.10 paf 9917:
1.23 moko 9918: aix_libpath=$lt_cv_aix_libpath_
9919: fi
1.10 paf 9920:
1.23 moko 9921: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9922: # Warning - without using the other run time loading flags,
9923: # -berok will link without error, but may produce a broken library.
9924: no_undefined_flag=' ${wl}-bernotok'
9925: allow_undefined_flag=' ${wl}-berok'
9926: if test "$with_gnu_ld" = yes; then
9927: # We only use this code for GNU lds that support --whole-archive.
9928: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9929: else
9930: # Exported symbols can be pulled into shared objects from archives
9931: whole_archive_flag_spec='$convenience'
9932: fi
9933: archive_cmds_need_lc=yes
9934: # This is similar to how AIX traditionally builds its shared libraries.
9935: 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'
9936: fi
9937: fi
9938: ;;
1.10 paf 9939:
1.23 moko 9940: amigaos*)
9941: case $host_cpu in
9942: powerpc)
9943: # see comment about AmigaOS4 .so support
9944: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9945: archive_expsym_cmds=''
9946: ;;
9947: m68k)
9948: 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)'
9949: hardcode_libdir_flag_spec='-L$libdir'
9950: hardcode_minus_L=yes
9951: ;;
9952: esac
9953: ;;
1.10 paf 9954:
1.23 moko 9955: bsdi[45]*)
9956: export_dynamic_flag_spec=-rdynamic
9957: ;;
1.1 parser 9958:
1.23 moko 9959: cygwin* | mingw* | pw32* | cegcc*)
9960: # When not using gcc, we currently assume that we are using
9961: # Microsoft Visual C++.
9962: # hardcode_libdir_flag_spec is actually meaningless, as there is
9963: # no search path for DLLs.
9964: case $cc_basename in
9965: cl*)
9966: # Native MSVC
9967: hardcode_libdir_flag_spec=' '
9968: allow_undefined_flag=unsupported
9969: always_export_symbols=yes
9970: file_list_spec='@'
9971: # Tell ltmain to make .lib files, not .a files.
9972: libext=lib
9973: # Tell ltmain to make .dll files, not .so files.
9974: shrext_cmds=".dll"
9975: # FIXME: Setting linknames here is a bad hack.
9976: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9977: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9978: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9979: else
9980: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9981: fi~
9982: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9983: linknames='
9984: # The linker will not automatically build a static lib if we build a DLL.
9985: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9986: enable_shared_with_static_runtimes=yes
9987: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9988: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9989: # Don't use ranlib
9990: old_postinstall_cmds='chmod 644 $oldlib'
9991: postlink_cmds='lt_outputfile="@OUTPUT@"~
9992: lt_tool_outputfile="@TOOL_OUTPUT@"~
9993: case $lt_outputfile in
9994: *.exe|*.EXE) ;;
9995: *)
9996: lt_outputfile="$lt_outputfile.exe"
9997: lt_tool_outputfile="$lt_tool_outputfile.exe"
9998: ;;
9999: esac~
10000: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10001: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10002: $RM "$lt_outputfile.manifest";
10003: fi'
10004: ;;
10005: *)
10006: # Assume MSVC wrapper
10007: hardcode_libdir_flag_spec=' '
10008: allow_undefined_flag=unsupported
10009: # Tell ltmain to make .lib files, not .a files.
10010: libext=lib
10011: # Tell ltmain to make .dll files, not .so files.
10012: shrext_cmds=".dll"
10013: # FIXME: Setting linknames here is a bad hack.
10014: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10015: # The linker will automatically build a .lib file if we build a DLL.
10016: old_archive_from_new_cmds='true'
10017: # FIXME: Should let the user specify the lib program.
10018: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10019: enable_shared_with_static_runtimes=yes
10020: ;;
10021: esac
10022: ;;
1.10 paf 10023:
1.23 moko 10024: darwin* | rhapsody*)
1.10 paf 10025:
10026:
1.23 moko 10027: archive_cmds_need_lc=no
10028: hardcode_direct=no
10029: hardcode_automatic=yes
10030: hardcode_shlibpath_var=unsupported
10031: if test "$lt_cv_ld_force_load" = "yes"; then
10032: 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\"`'
1.10 paf 10033:
1.23 moko 10034: else
10035: whole_archive_flag_spec=''
10036: fi
10037: link_all_deplibs=yes
10038: allow_undefined_flag="$_lt_dar_allow_undefined"
10039: case $cc_basename in
10040: ifort*) _lt_dar_can_shared=yes ;;
10041: *) _lt_dar_can_shared=$GCC ;;
10042: esac
10043: if test "$_lt_dar_can_shared" = "yes"; then
10044: output_verbose_link_cmd=func_echo_all
10045: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10046: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10047: 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}"
10048: 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}"
1.10 paf 10049:
1.23 moko 10050: else
10051: ld_shlibs=no
10052: fi
1.1 parser 10053:
1.23 moko 10054: ;;
1.10 paf 10055:
1.23 moko 10056: dgux*)
10057: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058: hardcode_libdir_flag_spec='-L$libdir'
10059: hardcode_shlibpath_var=no
10060: ;;
1.10 paf 10061:
1.23 moko 10062: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10063: # support. Future versions do this automatically, but an explicit c++rt0.o
10064: # does not break anything, and helps significantly (at the cost of a little
10065: # extra space).
10066: freebsd2.2*)
10067: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10068: hardcode_libdir_flag_spec='-R$libdir'
10069: hardcode_direct=yes
10070: hardcode_shlibpath_var=no
10071: ;;
1.10 paf 10072:
1.23 moko 10073: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10074: freebsd2.*)
10075: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10076: hardcode_direct=yes
10077: hardcode_minus_L=yes
10078: hardcode_shlibpath_var=no
10079: ;;
1.10 paf 10080:
1.23 moko 10081: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10082: freebsd* | dragonfly*)
10083: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10084: hardcode_libdir_flag_spec='-R$libdir'
10085: hardcode_direct=yes
10086: hardcode_shlibpath_var=no
10087: ;;
1.1 parser 10088:
1.23 moko 10089: hpux9*)
10090: if test "$GCC" = yes; then
10091: 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'
10092: else
10093: 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'
10094: fi
10095: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10096: hardcode_libdir_separator=:
10097: hardcode_direct=yes
10098:
10099: # hardcode_minus_L: Not really in the search PATH,
10100: # but as the default location of the library.
10101: hardcode_minus_L=yes
10102: export_dynamic_flag_spec='${wl}-E'
10103: ;;
1.10 paf 10104:
1.23 moko 10105: hpux10*)
10106: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10107: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10108: else
10109: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10110: fi
10111: if test "$with_gnu_ld" = no; then
10112: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10113: hardcode_libdir_separator=:
10114: hardcode_direct=yes
10115: hardcode_direct_absolute=yes
10116: export_dynamic_flag_spec='${wl}-E'
10117: # hardcode_minus_L: Not really in the search PATH,
10118: # but as the default location of the library.
10119: hardcode_minus_L=yes
10120: fi
10121: ;;
1.10 paf 10122:
1.23 moko 10123: hpux11*)
10124: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10125: case $host_cpu in
10126: hppa*64*)
10127: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10128: ;;
10129: ia64*)
10130: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10131: ;;
10132: *)
10133: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10134: ;;
10135: esac
10136: else
10137: case $host_cpu in
10138: hppa*64*)
10139: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10140: ;;
10141: ia64*)
10142: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10143: ;;
10144: *)
1.10 paf 10145:
1.23 moko 10146: # Older versions of the 11.00 compiler do not understand -b yet
10147: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.31 ! moko 10148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
! 10149: $as_echo_n "checking if $CC understands -b... " >&6; }
! 10150: if ${lt_cv_prog_compiler__b+:} false; then :
! 10151: $as_echo_n "(cached) " >&6
1.23 moko 10152: else
10153: lt_cv_prog_compiler__b=no
10154: save_LDFLAGS="$LDFLAGS"
10155: LDFLAGS="$LDFLAGS -b"
10156: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10157: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10158: # The linker can only warn and ignore the option if not recognized
10159: # So say no if there are warnings
10160: if test -s conftest.err; then
10161: # Append any errors to the config.log.
10162: cat conftest.err 1>&5
10163: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10164: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10165: if diff conftest.exp conftest.er2 >/dev/null; then
10166: lt_cv_prog_compiler__b=yes
10167: fi
10168: else
10169: lt_cv_prog_compiler__b=yes
10170: fi
10171: fi
10172: $RM -r conftest*
10173: LDFLAGS="$save_LDFLAGS"
1.10 paf 10174:
1.23 moko 10175: fi
1.31 ! moko 10176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
! 10177: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.1 parser 10178:
1.23 moko 10179: if test x"$lt_cv_prog_compiler__b" = xyes; then
10180: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10181: else
10182: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10183: fi
1.1 parser 10184:
1.23 moko 10185: ;;
10186: esac
10187: fi
10188: if test "$with_gnu_ld" = no; then
10189: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10190: hardcode_libdir_separator=:
10191:
10192: case $host_cpu in
10193: hppa*64*|ia64*)
10194: hardcode_direct=no
10195: hardcode_shlibpath_var=no
10196: ;;
10197: *)
10198: hardcode_direct=yes
10199: hardcode_direct_absolute=yes
10200: export_dynamic_flag_spec='${wl}-E'
1.1 parser 10201:
1.23 moko 10202: # hardcode_minus_L: Not really in the search PATH,
10203: # but as the default location of the library.
10204: hardcode_minus_L=yes
10205: ;;
10206: esac
10207: fi
10208: ;;
1.1 parser 10209:
1.23 moko 10210: irix5* | irix6* | nonstopux*)
10211: if test "$GCC" = yes; then
10212: 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'
10213: # Try to use the -exported_symbol ld option, if it does not
10214: # work, assume that -exports_file does not work either and
10215: # implicitly export all symbols.
10216: # This should be the same for all languages, so no per-tag cache variable.
1.31 ! moko 10217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
! 10218: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
! 10219: if ${lt_cv_irix_exported_symbol+:} false; then :
! 10220: $as_echo_n "(cached) " >&6
1.23 moko 10221: else
10222: save_LDFLAGS="$LDFLAGS"
10223: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.31 ! moko 10224: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 10225: /* end confdefs.h. */
10226: int foo (void) { return 0; }
1.10 paf 10227: _ACEOF
1.31 ! moko 10228: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 10229: lt_cv_irix_exported_symbol=yes
10230: else
1.31 ! moko 10231: lt_cv_irix_exported_symbol=no
1.23 moko 10232: fi
1.31 ! moko 10233: rm -f core conftest.err conftest.$ac_objext \
! 10234: conftest$ac_exeext conftest.$ac_ext
1.23 moko 10235: LDFLAGS="$save_LDFLAGS"
10236: fi
1.31 ! moko 10237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
! 10238: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.23 moko 10239: if test "$lt_cv_irix_exported_symbol" = yes; then
10240: 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'
10241: fi
1.10 paf 10242: else
1.23 moko 10243: 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'
10244: 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'
1.10 paf 10245: fi
1.23 moko 10246: archive_cmds_need_lc='no'
10247: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10248: hardcode_libdir_separator=:
10249: inherit_rpath=yes
10250: link_all_deplibs=yes
10251: ;;
10252:
10253: netbsd*)
10254: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10255: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10256: else
10257: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10258: fi
10259: hardcode_libdir_flag_spec='-R$libdir'
10260: hardcode_direct=yes
10261: hardcode_shlibpath_var=no
10262: ;;
1.1 parser 10263:
1.23 moko 10264: newsos6)
10265: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266: hardcode_direct=yes
10267: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10268: hardcode_libdir_separator=:
10269: hardcode_shlibpath_var=no
10270: ;;
1.1 parser 10271:
1.23 moko 10272: *nto* | *qnx*)
10273: ;;
1.10 paf 10274:
1.23 moko 10275: openbsd*)
10276: if test -f /usr/libexec/ld.so; then
10277: hardcode_direct=yes
10278: hardcode_shlibpath_var=no
10279: hardcode_direct_absolute=yes
10280: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10281: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10282: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10283: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10284: export_dynamic_flag_spec='${wl}-E'
10285: else
10286: case $host_os in
10287: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10288: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10289: hardcode_libdir_flag_spec='-R$libdir'
10290: ;;
10291: *)
10292: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10293: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10294: ;;
10295: esac
10296: fi
10297: else
10298: ld_shlibs=no
10299: fi
10300: ;;
1.10 paf 10301:
1.23 moko 10302: os2*)
10303: hardcode_libdir_flag_spec='-L$libdir'
10304: hardcode_minus_L=yes
10305: allow_undefined_flag=unsupported
10306: 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'
10307: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10308: ;;
1.10 paf 10309:
1.23 moko 10310: osf3*)
10311: if test "$GCC" = yes; then
10312: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10313: 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'
10314: else
10315: allow_undefined_flag=' -expect_unresolved \*'
10316: 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'
10317: fi
10318: archive_cmds_need_lc='no'
10319: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10320: hardcode_libdir_separator=:
10321: ;;
1.16 paf 10322:
1.23 moko 10323: osf4* | osf5*) # as osf3* with the addition of -msym flag
10324: if test "$GCC" = yes; then
10325: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10326: 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'
10327: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10328: else
10329: allow_undefined_flag=' -expect_unresolved \*'
10330: 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'
10331: 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~
10332: $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'
1.10 paf 10333:
1.23 moko 10334: # Both c and cxx compiler support -rpath directly
10335: hardcode_libdir_flag_spec='-rpath $libdir'
10336: fi
10337: archive_cmds_need_lc='no'
10338: hardcode_libdir_separator=:
10339: ;;
1.10 paf 10340:
1.23 moko 10341: solaris*)
10342: no_undefined_flag=' -z defs'
10343: if test "$GCC" = yes; then
10344: wlarc='${wl}'
10345: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10346: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10347: $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'
10348: else
10349: case `$CC -V 2>&1` in
10350: *"Compilers 5.0"*)
10351: wlarc=''
10352: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10354: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10355: ;;
10356: *)
10357: wlarc='${wl}'
10358: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10359: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10360: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10361: ;;
10362: esac
10363: fi
10364: hardcode_libdir_flag_spec='-R$libdir'
10365: hardcode_shlibpath_var=no
10366: case $host_os in
10367: solaris2.[0-5] | solaris2.[0-5].*) ;;
10368: *)
10369: # The compiler driver will combine and reorder linker options,
10370: # but understands `-z linker_flag'. GCC discards it without `$wl',
10371: # but is careful enough not to reorder.
10372: # Supported since Solaris 2.6 (maybe 2.5.1?)
10373: if test "$GCC" = yes; then
10374: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10375: else
10376: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10377: fi
10378: ;;
10379: esac
10380: link_all_deplibs=yes
10381: ;;
1.1 parser 10382:
1.23 moko 10383: sunos4*)
10384: if test "x$host_vendor" = xsequent; then
10385: # Use $CC to link under sequent, because it throws in some extra .o
10386: # files that make .init and .fini sections work.
10387: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10388: else
10389: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10390: fi
10391: hardcode_libdir_flag_spec='-L$libdir'
10392: hardcode_direct=yes
10393: hardcode_minus_L=yes
10394: hardcode_shlibpath_var=no
10395: ;;
1.10 paf 10396:
1.23 moko 10397: sysv4)
10398: case $host_vendor in
10399: sni)
10400: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401: hardcode_direct=yes # is this really true???
10402: ;;
10403: siemens)
10404: ## LD is ld it makes a PLAMLIB
10405: ## CC just makes a GrossModule.
10406: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10407: reload_cmds='$CC -r -o $output$reload_objs'
10408: hardcode_direct=no
10409: ;;
10410: motorola)
10411: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10413: ;;
1.10 paf 10414: esac
1.23 moko 10415: runpath_var='LD_RUN_PATH'
10416: hardcode_shlibpath_var=no
10417: ;;
10418:
10419: sysv4.3*)
10420: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10421: hardcode_shlibpath_var=no
10422: export_dynamic_flag_spec='-Bexport'
10423: ;;
1.10 paf 10424:
1.23 moko 10425: sysv4*MP*)
10426: if test -d /usr/nec; then
10427: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428: hardcode_shlibpath_var=no
10429: runpath_var=LD_RUN_PATH
10430: hardcode_runpath_var=yes
10431: ld_shlibs=yes
10432: fi
10433: ;;
1.10 paf 10434:
1.23 moko 10435: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10436: no_undefined_flag='${wl}-z,text'
10437: archive_cmds_need_lc=no
10438: hardcode_shlibpath_var=no
10439: runpath_var='LD_RUN_PATH'
1.1 parser 10440:
1.23 moko 10441: if test "$GCC" = yes; then
10442: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10444: else
10445: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447: fi
10448: ;;
10449:
10450: sysv5* | sco3.2v5* | sco5v6*)
10451: # Note: We can NOT use -z defs as we might desire, because we do not
10452: # link with -lc, and that would cause any symbols used from libc to
10453: # always be unresolved, which means just about no library would
10454: # ever link correctly. If we're not using GNU ld we use -z text
10455: # though, which does catch some bad symbols but isn't as heavy-handed
10456: # as -z defs.
10457: no_undefined_flag='${wl}-z,text'
10458: allow_undefined_flag='${wl}-z,nodefs'
10459: archive_cmds_need_lc=no
10460: hardcode_shlibpath_var=no
10461: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10462: hardcode_libdir_separator=':'
10463: link_all_deplibs=yes
10464: export_dynamic_flag_spec='${wl}-Bexport'
10465: runpath_var='LD_RUN_PATH'
10466:
10467: if test "$GCC" = yes; then
10468: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10469: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10470: else
10471: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10473: fi
10474: ;;
1.1 parser 10475:
1.23 moko 10476: uts4*)
10477: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478: hardcode_libdir_flag_spec='-L$libdir'
10479: hardcode_shlibpath_var=no
10480: ;;
1.1 parser 10481:
1.23 moko 10482: *)
10483: ld_shlibs=no
10484: ;;
10485: esac
1.1 parser 10486:
1.23 moko 10487: if test x$host_vendor = xsni; then
10488: case $host in
10489: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10490: export_dynamic_flag_spec='${wl}-Blargedynsym'
10491: ;;
1.10 paf 10492: esac
1.23 moko 10493: fi
10494: fi
10495:
1.31 ! moko 10496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
! 10497: $as_echo "$ld_shlibs" >&6; }
1.23 moko 10498: test "$ld_shlibs" = no && can_build_shared=no
10499:
10500: with_gnu_ld=$with_gnu_ld
10501:
10502:
10503:
10504:
10505:
10506:
10507:
10508:
10509:
10510:
10511:
10512:
10513:
1.10 paf 10514:
10515:
10516: #
1.23 moko 10517: # Do we need to explicitly link libc?
10518: #
10519: case "x$archive_cmds_need_lc" in
10520: x|xyes)
10521: # Assume -lc should be added
10522: archive_cmds_need_lc=yes
10523:
10524: if test "$enable_shared" = yes && test "$GCC" = yes; then
10525: case $archive_cmds in
10526: *'~'*)
10527: # FIXME: we may have to deal with multi-command sequences.
10528: ;;
10529: '$CC '*)
10530: # Test whether the compiler implicitly links with -lc since on some
10531: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10532: # to ld, don't add -lc before -lgcc.
1.31 ! moko 10533: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
! 10534: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
! 10535: if ${lt_cv_archive_cmds_need_lc+:} false; then :
! 10536: $as_echo_n "(cached) " >&6
1.23 moko 10537: else
10538: $RM conftest*
10539: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10540:
1.31 ! moko 10541: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 10542: (eval $ac_compile) 2>&5
10543: ac_status=$?
1.31 ! moko 10544: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 10545: test $ac_status = 0; } 2>conftest.err; then
1.23 moko 10546: soname=conftest
10547: lib=conftest
10548: libobjs=conftest.$ac_objext
10549: deplibs=
10550: wl=$lt_prog_compiler_wl
10551: pic_flag=$lt_prog_compiler_pic
10552: compiler_flags=-v
10553: linker_flags=-v
10554: verstring=
10555: output_objdir=.
10556: libname=conftest
10557: lt_save_allow_undefined_flag=$allow_undefined_flag
10558: allow_undefined_flag=
1.31 ! moko 10559: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.23 moko 10560: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10561: ac_status=$?
1.31 ! moko 10562: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 10563: test $ac_status = 0; }
1.23 moko 10564: then
10565: lt_cv_archive_cmds_need_lc=no
10566: else
10567: lt_cv_archive_cmds_need_lc=yes
10568: fi
10569: allow_undefined_flag=$lt_save_allow_undefined_flag
10570: else
10571: cat conftest.err 1>&5
10572: fi
10573: $RM conftest*
10574:
10575: fi
1.31 ! moko 10576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
! 10577: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.23 moko 10578: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10579: ;;
10580: esac
10581: fi
10582: ;;
10583: esac
10584:
1.1 parser 10585:
1.10 paf 10586:
10587:
10588:
10589:
1.23 moko 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:
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:
1.31 ! moko 10736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
! 10737: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.23 moko 10738:
10739: if test "$GCC" = yes; then
10740: case $host_os in
10741: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10742: *) lt_awk_arg="/^libraries:/" ;;
10743: esac
10744: case $host_os in
10745: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10746: *) lt_sed_strip_eq="s,=/,/,g" ;;
10747: esac
10748: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10749: case $lt_search_path_spec in
10750: *\;*)
10751: # if the path contains ";" then we assume it to be the separator
10752: # otherwise default to the standard path separator (i.e. ":") - it is
10753: # assumed that no part of a normal pathname contains ";" but that should
10754: # okay in the real world where ";" in dirpaths is itself problematic.
10755: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10756: ;;
10757: *)
10758: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10759: ;;
10760: esac
10761: # Ok, now we have the path, separated by spaces, we can step through it
10762: # and add multilib dir if necessary.
10763: lt_tmp_lt_search_path_spec=
10764: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10765: for lt_sys_path in $lt_search_path_spec; do
10766: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10767: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10768: else
10769: test -d "$lt_sys_path" && \
10770: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1.1 parser 10771: fi
1.23 moko 10772: done
10773: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10774: BEGIN {RS=" "; FS="/|\n";} {
10775: lt_foo="";
10776: lt_count=0;
10777: for (lt_i = NF; lt_i > 0; lt_i--) {
10778: if ($lt_i != "" && $lt_i != ".") {
10779: if ($lt_i == "..") {
10780: lt_count++;
10781: } else {
10782: if (lt_count == 0) {
10783: lt_foo="/" $lt_i lt_foo;
10784: } else {
10785: lt_count--;
10786: }
10787: }
10788: }
10789: }
10790: if (lt_foo != "") { lt_freq[lt_foo]++; }
10791: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10792: }'`
10793: # AWK program above erroneously prepends '/' to C:/dos/paths
10794: # for these hosts.
10795: case $host_os in
10796: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10797: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10798: esac
10799: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10800: else
10801: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10802: fi
10803: library_names_spec=
10804: libname_spec='lib$name'
10805: soname_spec=
10806: shrext_cmds=".so"
10807: postinstall_cmds=
10808: postuninstall_cmds=
10809: finish_cmds=
10810: finish_eval=
10811: shlibpath_var=
10812: shlibpath_overrides_runpath=unknown
10813: version_type=none
10814: dynamic_linker="$host_os ld.so"
10815: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10816: need_lib_prefix=unknown
10817: hardcode_into_libs=no
10818:
10819: # when you set need_version to no, make sure it does not cause -set_version
10820: # flags to be left without arguments
10821: need_version=unknown
10822:
10823: case $host_os in
10824: aix3*)
10825: version_type=linux # correct to gnu/linux during the next big refactor
10826: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10827: shlibpath_var=LIBPATH
10828:
10829: # AIX 3 has no versioning support, so we append a major version to the name.
10830: soname_spec='${libname}${release}${shared_ext}$major'
10831: ;;
10832:
10833: aix[4-9]*)
10834: version_type=linux # correct to gnu/linux during the next big refactor
10835: need_lib_prefix=no
10836: need_version=no
10837: hardcode_into_libs=yes
10838: if test "$host_cpu" = ia64; then
10839: # AIX 5 supports IA64
10840: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10841: shlibpath_var=LD_LIBRARY_PATH
1.10 paf 10842: else
1.23 moko 10843: # With GCC up to 2.95.x, collect2 would create an import file
10844: # for dependence libraries. The import file would start with
10845: # the line `#! .'. This would cause the generated library to
10846: # depend on `.', always an invalid library. This was fixed in
10847: # development snapshots of GCC prior to 3.0.
10848: case $host_os in
10849: aix4 | aix4.[01] | aix4.[01].*)
10850: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10851: echo ' yes '
10852: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10853: :
10854: else
10855: can_build_shared=no
10856: fi
10857: ;;
10858: esac
10859: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10860: # soname into executable. Probably we can add versioning support to
10861: # collect2, so additional links can be useful in future.
10862: if test "$aix_use_runtimelinking" = yes; then
10863: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10864: # instead of lib<name>.a to let people know that these are not
10865: # typical AIX shared libraries.
10866: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867: else
10868: # We preserve .a as extension for shared libraries through AIX4.2
10869: # and later when we are not doing run time linking.
10870: library_names_spec='${libname}${release}.a $libname.a'
10871: soname_spec='${libname}${release}${shared_ext}$major'
10872: fi
10873: shlibpath_var=LIBPATH
1.1 parser 10874: fi
1.23 moko 10875: ;;
10876:
10877: amigaos*)
10878: case $host_cpu in
10879: powerpc)
10880: # Since July 2007 AmigaOS4 officially supports .so libraries.
10881: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10882: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883: ;;
10884: m68k)
10885: library_names_spec='$libname.ixlibrary $libname.a'
10886: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10887: 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'
10888: ;;
1.16 paf 10889: esac
1.23 moko 10890: ;;
10891:
10892: beos*)
10893: library_names_spec='${libname}${shared_ext}'
10894: dynamic_linker="$host_os ld.so"
10895: shlibpath_var=LIBRARY_PATH
10896: ;;
10897:
10898: bsdi[45]*)
10899: version_type=linux # correct to gnu/linux during the next big refactor
10900: need_version=no
10901: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902: soname_spec='${libname}${release}${shared_ext}$major'
10903: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10904: shlibpath_var=LD_LIBRARY_PATH
10905: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10906: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10907: # the default ld.so.conf also contains /usr/contrib/lib and
10908: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10909: # libtool to hard-code these into programs
10910: ;;
10911:
10912: cygwin* | mingw* | pw32* | cegcc*)
10913: version_type=windows
10914: shrext_cmds=".dll"
10915: need_version=no
10916: need_lib_prefix=no
10917:
10918: case $GCC,$cc_basename in
10919: yes,*)
10920: # gcc
10921: library_names_spec='$libname.dll.a'
10922: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10923: postinstall_cmds='base_file=`basename \${file}`~
10924: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10925: dldir=$destdir/`dirname \$dlpath`~
10926: test -d \$dldir || mkdir -p \$dldir~
10927: $install_prog $dir/$dlname \$dldir/$dlname~
10928: chmod a+x \$dldir/$dlname~
10929: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10930: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10931: fi'
10932: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10933: dlpath=$dir/\$dldll~
10934: $RM \$dlpath'
10935: shlibpath_overrides_runpath=yes
10936:
10937: case $host_os in
10938: cygwin*)
10939: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10940: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10941:
10942: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10943: ;;
10944: mingw* | cegcc*)
10945: # MinGW DLLs use traditional 'lib' prefix
10946: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10947: ;;
10948: pw32*)
10949: # pw32 DLLs use 'pw' prefix rather than 'lib'
10950: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10951: ;;
10952: esac
10953: dynamic_linker='Win32 ld.exe'
10954: ;;
10955:
10956: *,cl*)
10957: # Native MSVC
10958: libname_spec='$name'
10959: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10960: library_names_spec='${libname}.dll.lib'
10961:
10962: case $build_os in
10963: mingw*)
10964: sys_lib_search_path_spec=
10965: lt_save_ifs=$IFS
10966: IFS=';'
10967: for lt_path in $LIB
10968: do
10969: IFS=$lt_save_ifs
10970: # Let DOS variable expansion print the short 8.3 style file name.
10971: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10972: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10973: done
10974: IFS=$lt_save_ifs
10975: # Convert to MSYS style.
10976: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10977: ;;
10978: cygwin*)
10979: # Convert to unix form, then to dos form, then back to unix form
10980: # but this time dos style (no spaces!) so that the unix form looks
10981: # like /cygdrive/c/PROGRA~1:/cygdr...
10982: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10983: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10984: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10985: ;;
10986: *)
10987: sys_lib_search_path_spec="$LIB"
10988: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10989: # It is most probably a Windows format PATH.
10990: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10991: else
10992: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10993: fi
10994: # FIXME: find the short name or the path components, as spaces are
10995: # common. (e.g. "Program Files" -> "PROGRA~1")
10996: ;;
10997: esac
10998:
10999: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11000: postinstall_cmds='base_file=`basename \${file}`~
11001: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11002: dldir=$destdir/`dirname \$dlpath`~
11003: test -d \$dldir || mkdir -p \$dldir~
11004: $install_prog $dir/$dlname \$dldir/$dlname'
11005: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11006: dlpath=$dir/\$dldll~
11007: $RM \$dlpath'
11008: shlibpath_overrides_runpath=yes
11009: dynamic_linker='Win32 link.exe'
11010: ;;
11011:
11012: *)
11013: # Assume MSVC wrapper
11014: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11015: dynamic_linker='Win32 ld.exe'
11016: ;;
11017: esac
11018: # FIXME: first we should search . and the directory the executable is in
11019: shlibpath_var=PATH
11020: ;;
11021:
11022: darwin* | rhapsody*)
11023: dynamic_linker="$host_os dyld"
11024: version_type=darwin
11025: need_lib_prefix=no
11026: need_version=no
11027: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11028: soname_spec='${libname}${release}${major}$shared_ext'
11029: shlibpath_overrides_runpath=yes
11030: shlibpath_var=DYLD_LIBRARY_PATH
11031: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11032:
11033: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11034: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11035: ;;
11036:
11037: dgux*)
11038: version_type=linux # correct to gnu/linux during the next big refactor
11039: need_lib_prefix=no
11040: need_version=no
11041: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11042: soname_spec='${libname}${release}${shared_ext}$major'
11043: shlibpath_var=LD_LIBRARY_PATH
11044: ;;
11045:
11046: freebsd* | dragonfly*)
11047: # DragonFly does not have aout. When/if they implement a new
11048: # versioning mechanism, adjust this.
11049: if test -x /usr/bin/objformat; then
11050: objformat=`/usr/bin/objformat`
11051: else
11052: case $host_os in
11053: freebsd[23].*) objformat=aout ;;
11054: *) objformat=elf ;;
11055: esac
11056: fi
11057: version_type=freebsd-$objformat
11058: case $version_type in
11059: freebsd-elf*)
11060: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11061: need_version=no
11062: need_lib_prefix=no
11063: ;;
11064: freebsd-*)
11065: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11066: need_version=yes
11067: ;;
11068: esac
11069: shlibpath_var=LD_LIBRARY_PATH
11070: case $host_os in
11071: freebsd2.*)
11072: shlibpath_overrides_runpath=yes
11073: ;;
11074: freebsd3.[01]* | freebsdelf3.[01]*)
11075: shlibpath_overrides_runpath=yes
11076: hardcode_into_libs=yes
11077: ;;
11078: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11079: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11080: shlibpath_overrides_runpath=no
11081: hardcode_into_libs=yes
11082: ;;
11083: *) # from 4.6 on, and DragonFly
11084: shlibpath_overrides_runpath=yes
11085: hardcode_into_libs=yes
11086: ;;
11087: esac
11088: ;;
11089:
11090: gnu*)
11091: version_type=linux # correct to gnu/linux during the next big refactor
11092: need_lib_prefix=no
11093: need_version=no
11094: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11095: soname_spec='${libname}${release}${shared_ext}$major'
11096: shlibpath_var=LD_LIBRARY_PATH
11097: shlibpath_overrides_runpath=no
11098: hardcode_into_libs=yes
11099: ;;
11100:
11101: haiku*)
11102: version_type=linux # correct to gnu/linux during the next big refactor
11103: need_lib_prefix=no
11104: need_version=no
11105: dynamic_linker="$host_os runtime_loader"
11106: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11107: soname_spec='${libname}${release}${shared_ext}$major'
11108: shlibpath_var=LIBRARY_PATH
11109: shlibpath_overrides_runpath=yes
11110: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11111: hardcode_into_libs=yes
11112: ;;
11113:
11114: hpux9* | hpux10* | hpux11*)
11115: # Give a soname corresponding to the major version so that dld.sl refuses to
11116: # link against other versions.
11117: version_type=sunos
11118: need_lib_prefix=no
11119: need_version=no
11120: case $host_cpu in
11121: ia64*)
11122: shrext_cmds='.so'
11123: hardcode_into_libs=yes
11124: dynamic_linker="$host_os dld.so"
11125: shlibpath_var=LD_LIBRARY_PATH
11126: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11127: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128: soname_spec='${libname}${release}${shared_ext}$major'
11129: if test "X$HPUX_IA64_MODE" = X32; then
11130: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11131: else
11132: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11133: fi
11134: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11135: ;;
11136: hppa*64*)
11137: shrext_cmds='.sl'
11138: hardcode_into_libs=yes
11139: dynamic_linker="$host_os dld.sl"
11140: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11141: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11142: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143: soname_spec='${libname}${release}${shared_ext}$major'
11144: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11145: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11146: ;;
11147: *)
11148: shrext_cmds='.sl'
11149: dynamic_linker="$host_os dld.sl"
11150: shlibpath_var=SHLIB_PATH
11151: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11152: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153: soname_spec='${libname}${release}${shared_ext}$major'
11154: ;;
11155: esac
11156: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11157: postinstall_cmds='chmod 555 $lib'
11158: # or fails outright, so override atomically:
11159: install_override_mode=555
11160: ;;
11161:
11162: interix[3-9]*)
11163: version_type=linux # correct to gnu/linux during the next big refactor
11164: need_lib_prefix=no
11165: need_version=no
11166: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11167: soname_spec='${libname}${release}${shared_ext}$major'
11168: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11169: shlibpath_var=LD_LIBRARY_PATH
11170: shlibpath_overrides_runpath=no
11171: hardcode_into_libs=yes
11172: ;;
11173:
11174: irix5* | irix6* | nonstopux*)
11175: case $host_os in
11176: nonstopux*) version_type=nonstopux ;;
11177: *)
11178: if test "$lt_cv_prog_gnu_ld" = yes; then
11179: version_type=linux # correct to gnu/linux during the next big refactor
11180: else
11181: version_type=irix
11182: fi ;;
11183: esac
11184: need_lib_prefix=no
11185: need_version=no
11186: soname_spec='${libname}${release}${shared_ext}$major'
11187: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11188: case $host_os in
11189: irix5* | nonstopux*)
11190: libsuff= shlibsuff=
11191: ;;
11192: *)
11193: case $LD in # libtool.m4 will add one of these switches to LD
11194: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11195: libsuff= shlibsuff= libmagic=32-bit;;
11196: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11197: libsuff=32 shlibsuff=N32 libmagic=N32;;
11198: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11199: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11200: *) libsuff= shlibsuff= libmagic=never-match;;
11201: esac
11202: ;;
11203: esac
11204: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11205: shlibpath_overrides_runpath=no
11206: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11207: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11208: hardcode_into_libs=yes
11209: ;;
11210:
11211: # No shared lib support for Linux oldld, aout, or coff.
11212: linux*oldld* | linux*aout* | linux*coff*)
11213: dynamic_linker=no
11214: ;;
11215:
11216: # This must be glibc/ELF.
11217: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11218: version_type=linux # correct to gnu/linux during the next big refactor
11219: need_lib_prefix=no
11220: need_version=no
11221: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222: soname_spec='${libname}${release}${shared_ext}$major'
11223: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11224: shlibpath_var=LD_LIBRARY_PATH
11225: shlibpath_overrides_runpath=no
11226:
11227: # Some binutils ld are patched to set DT_RUNPATH
1.31 ! moko 11228: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
! 11229: $as_echo_n "(cached) " >&6
1.23 moko 11230: else
11231: lt_cv_shlibpath_overrides_runpath=no
11232: save_LDFLAGS=$LDFLAGS
11233: save_libdir=$libdir
11234: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11235: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.31 ! moko 11236: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11237: /* end confdefs.h. */
11238:
11239: int
11240: main ()
11241: {
11242:
11243: ;
11244: return 0;
11245: }
11246: _ACEOF
1.31 ! moko 11247: if ac_fn_c_try_link "$LINENO"; then :
! 11248: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.23 moko 11249: lt_cv_shlibpath_overrides_runpath=yes
11250: fi
11251: fi
1.31 ! moko 11252: rm -f core conftest.err conftest.$ac_objext \
! 11253: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11254: LDFLAGS=$save_LDFLAGS
11255: libdir=$save_libdir
11256:
11257: fi
11258:
11259: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11260:
11261: # This implies no fast_install, which is unacceptable.
11262: # Some rework will be needed to allow for fast_install
11263: # before this can be enabled.
11264: hardcode_into_libs=yes
11265:
11266: # Append ld.so.conf contents to the search path
11267: if test -f /etc/ld.so.conf; then
11268: 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' ' '`
11269: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11270: fi
11271:
11272: # We used to test for /lib/ld.so.1 and disable shared libraries on
11273: # powerpc, because MkLinux only supported shared libraries with the
11274: # GNU dynamic linker. Since this was broken with cross compilers,
11275: # most powerpc-linux boxes support dynamic linking these days and
11276: # people can always --disable-shared, the test was removed, and we
11277: # assume the GNU/Linux dynamic linker is in use.
11278: dynamic_linker='GNU/Linux ld.so'
11279: ;;
11280:
11281: netbsd*)
11282: version_type=sunos
11283: need_lib_prefix=no
11284: need_version=no
11285: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11286: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11287: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11288: dynamic_linker='NetBSD (a.out) ld.so'
11289: else
11290: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11291: soname_spec='${libname}${release}${shared_ext}$major'
11292: dynamic_linker='NetBSD ld.elf_so'
11293: fi
11294: shlibpath_var=LD_LIBRARY_PATH
11295: shlibpath_overrides_runpath=yes
11296: hardcode_into_libs=yes
11297: ;;
11298:
11299: newsos6)
11300: version_type=linux # correct to gnu/linux during the next big refactor
11301: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302: shlibpath_var=LD_LIBRARY_PATH
11303: shlibpath_overrides_runpath=yes
11304: ;;
11305:
11306: *nto* | *qnx*)
11307: version_type=qnx
11308: need_lib_prefix=no
11309: need_version=no
11310: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11311: soname_spec='${libname}${release}${shared_ext}$major'
11312: shlibpath_var=LD_LIBRARY_PATH
11313: shlibpath_overrides_runpath=no
11314: hardcode_into_libs=yes
11315: dynamic_linker='ldqnx.so'
11316: ;;
11317:
11318: openbsd*)
11319: version_type=sunos
11320: sys_lib_dlsearch_path_spec="/usr/lib"
11321: need_lib_prefix=no
11322: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11323: case $host_os in
11324: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11325: *) need_version=no ;;
11326: esac
11327: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11328: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11329: shlibpath_var=LD_LIBRARY_PATH
11330: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11331: case $host_os in
11332: openbsd2.[89] | openbsd2.[89].*)
11333: shlibpath_overrides_runpath=no
11334: ;;
11335: *)
11336: shlibpath_overrides_runpath=yes
11337: ;;
11338: esac
11339: else
11340: shlibpath_overrides_runpath=yes
11341: fi
11342: ;;
11343:
11344: os2*)
11345: libname_spec='$name'
11346: shrext_cmds=".dll"
11347: need_lib_prefix=no
11348: library_names_spec='$libname${shared_ext} $libname.a'
11349: dynamic_linker='OS/2 ld.exe'
11350: shlibpath_var=LIBPATH
11351: ;;
11352:
11353: osf3* | osf4* | osf5*)
11354: version_type=osf
11355: need_lib_prefix=no
11356: need_version=no
11357: soname_spec='${libname}${release}${shared_ext}$major'
11358: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359: shlibpath_var=LD_LIBRARY_PATH
11360: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11361: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11362: ;;
11363:
11364: rdos*)
11365: dynamic_linker=no
11366: ;;
11367:
11368: solaris*)
11369: version_type=linux # correct to gnu/linux during the next big refactor
11370: need_lib_prefix=no
11371: need_version=no
11372: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373: soname_spec='${libname}${release}${shared_ext}$major'
11374: shlibpath_var=LD_LIBRARY_PATH
11375: shlibpath_overrides_runpath=yes
11376: hardcode_into_libs=yes
11377: # ldd complains unless libraries are executable
11378: postinstall_cmds='chmod +x $lib'
11379: ;;
11380:
11381: sunos4*)
11382: version_type=sunos
11383: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11384: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11385: shlibpath_var=LD_LIBRARY_PATH
11386: shlibpath_overrides_runpath=yes
11387: if test "$with_gnu_ld" = yes; then
11388: need_lib_prefix=no
11389: fi
11390: need_version=yes
11391: ;;
11392:
11393: sysv4 | sysv4.3*)
11394: version_type=linux # correct to gnu/linux during the next big refactor
11395: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396: soname_spec='${libname}${release}${shared_ext}$major'
11397: shlibpath_var=LD_LIBRARY_PATH
11398: case $host_vendor in
11399: sni)
11400: shlibpath_overrides_runpath=no
11401: need_lib_prefix=no
11402: runpath_var=LD_RUN_PATH
11403: ;;
11404: siemens)
11405: need_lib_prefix=no
11406: ;;
11407: motorola)
11408: need_lib_prefix=no
11409: need_version=no
11410: shlibpath_overrides_runpath=no
11411: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11412: ;;
11413: esac
11414: ;;
11415:
11416: sysv4*MP*)
11417: if test -d /usr/nec ;then
11418: version_type=linux # correct to gnu/linux during the next big refactor
11419: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11420: soname_spec='$libname${shared_ext}.$major'
11421: shlibpath_var=LD_LIBRARY_PATH
11422: fi
11423: ;;
11424:
11425: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11426: version_type=freebsd-elf
11427: need_lib_prefix=no
11428: need_version=no
11429: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11430: soname_spec='${libname}${release}${shared_ext}$major'
11431: shlibpath_var=LD_LIBRARY_PATH
11432: shlibpath_overrides_runpath=yes
11433: hardcode_into_libs=yes
11434: if test "$with_gnu_ld" = yes; then
11435: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11436: else
11437: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11438: case $host_os in
11439: sco3.2v5*)
11440: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11441: ;;
11442: esac
11443: fi
11444: sys_lib_dlsearch_path_spec='/usr/lib'
11445: ;;
11446:
11447: tpf*)
11448: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11449: version_type=linux # correct to gnu/linux during the next big refactor
11450: need_lib_prefix=no
11451: need_version=no
11452: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453: shlibpath_var=LD_LIBRARY_PATH
11454: shlibpath_overrides_runpath=no
11455: hardcode_into_libs=yes
11456: ;;
11457:
11458: uts4*)
11459: version_type=linux # correct to gnu/linux during the next big refactor
11460: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461: soname_spec='${libname}${release}${shared_ext}$major'
11462: shlibpath_var=LD_LIBRARY_PATH
11463: ;;
11464:
11465: *)
11466: dynamic_linker=no
11467: ;;
11468: esac
1.31 ! moko 11469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
! 11470: $as_echo "$dynamic_linker" >&6; }
1.23 moko 11471: test "$dynamic_linker" = no && can_build_shared=no
11472:
11473: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11474: if test "$GCC" = yes; then
11475: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11476: fi
11477:
11478: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11479: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11480: fi
11481: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11482: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11483: fi
11484:
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:
1.31 ! moko 11576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
! 11577: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.23 moko 11578: hardcode_action=
11579: if test -n "$hardcode_libdir_flag_spec" ||
11580: test -n "$runpath_var" ||
11581: test "X$hardcode_automatic" = "Xyes" ; then
11582:
11583: # We can hardcode non-existent directories.
11584: if test "$hardcode_direct" != no &&
11585: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11586: # have to relink, otherwise we might link with an installed library
11587: # when we should be linking with a yet-to-be-installed one
11588: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11589: test "$hardcode_minus_L" != no; then
11590: # Linking always hardcodes the temporary library directory.
11591: hardcode_action=relink
11592: else
11593: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11594: hardcode_action=immediate
11595: fi
11596: else
11597: # We cannot hardcode anything, or else we can only hardcode existing
11598: # directories.
11599: hardcode_action=unsupported
11600: fi
1.31 ! moko 11601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
! 11602: $as_echo "$hardcode_action" >&6; }
1.23 moko 11603:
11604: if test "$hardcode_action" = relink ||
11605: test "$inherit_rpath" = yes; then
11606: # Fast installation is not supported
11607: enable_fast_install=no
11608: elif test "$shlibpath_overrides_runpath" = yes ||
11609: test "$enable_shared" = no; then
11610: # Fast installation is not necessary
11611: enable_fast_install=needless
11612: fi
11613:
11614:
11615:
11616:
11617:
11618:
11619: if test "x$enable_dlopen" != xyes; then
11620: enable_dlopen=unknown
11621: enable_dlopen_self=unknown
11622: enable_dlopen_self_static=unknown
11623: else
11624: lt_cv_dlopen=no
11625: lt_cv_dlopen_libs=
11626:
11627: case $host_os in
11628: beos*)
11629: lt_cv_dlopen="load_add_on"
11630: lt_cv_dlopen_libs=
11631: lt_cv_dlopen_self=yes
11632: ;;
11633:
11634: mingw* | pw32* | cegcc*)
11635: lt_cv_dlopen="LoadLibrary"
11636: lt_cv_dlopen_libs=
11637: ;;
11638:
11639: cygwin*)
11640: lt_cv_dlopen="dlopen"
11641: lt_cv_dlopen_libs=
11642: ;;
11643:
11644: darwin*)
11645: # if libdl is installed we need to link against it
1.31 ! moko 11646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 11647: $as_echo_n "checking for dlopen in -ldl... " >&6; }
! 11648: if ${ac_cv_lib_dl_dlopen+:} false; then :
! 11649: $as_echo_n "(cached) " >&6
1.23 moko 11650: else
11651: ac_check_lib_save_LIBS=$LIBS
11652: LIBS="-ldl $LIBS"
1.31 ! moko 11653: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11654: /* end confdefs.h. */
11655:
1.31 ! moko 11656: /* Override any GCC internal prototype to avoid an error.
! 11657: Use char because int might match the return type of a GCC
! 11658: builtin and then its argument prototype would still apply. */
1.23 moko 11659: #ifdef __cplusplus
11660: extern "C"
11661: #endif
11662: char dlopen ();
11663: int
11664: main ()
11665: {
1.31 ! moko 11666: return dlopen ();
1.23 moko 11667: ;
11668: return 0;
11669: }
11670: _ACEOF
1.31 ! moko 11671: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11672: ac_cv_lib_dl_dlopen=yes
11673: else
1.31 ! moko 11674: ac_cv_lib_dl_dlopen=no
1.23 moko 11675: fi
1.31 ! moko 11676: rm -f core conftest.err conftest.$ac_objext \
! 11677: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11678: LIBS=$ac_check_lib_save_LIBS
11679: fi
1.31 ! moko 11680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 11681: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
! 11682: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.23 moko 11683: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11684: else
11685:
11686: lt_cv_dlopen="dyld"
11687: lt_cv_dlopen_libs=
11688: lt_cv_dlopen_self=yes
11689:
11690: fi
11691:
11692: ;;
11693:
11694: *)
1.31 ! moko 11695: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
! 11696: if test "x$ac_cv_func_shl_load" = xyes; then :
1.23 moko 11697: lt_cv_dlopen="shl_load"
11698: else
1.31 ! moko 11699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
! 11700: $as_echo_n "checking for shl_load in -ldld... " >&6; }
! 11701: if ${ac_cv_lib_dld_shl_load+:} false; then :
! 11702: $as_echo_n "(cached) " >&6
1.23 moko 11703: else
1.31 ! moko 11704: ac_check_lib_save_LIBS=$LIBS
! 11705: LIBS="-ldld $LIBS"
! 11706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11707: /* end confdefs.h. */
11708:
1.31 ! moko 11709: /* Override any GCC internal prototype to avoid an error.
! 11710: Use char because int might match the return type of a GCC
! 11711: builtin and then its argument prototype would still apply. */
1.23 moko 11712: #ifdef __cplusplus
11713: extern "C"
11714: #endif
1.31 ! moko 11715: char shl_load ();
1.23 moko 11716: int
11717: main ()
11718: {
1.31 ! moko 11719: return shl_load ();
1.23 moko 11720: ;
11721: return 0;
11722: }
11723: _ACEOF
1.31 ! moko 11724: if ac_fn_c_try_link "$LINENO"; then :
! 11725: ac_cv_lib_dld_shl_load=yes
1.23 moko 11726: else
1.31 ! moko 11727: ac_cv_lib_dld_shl_load=no
1.23 moko 11728: fi
1.31 ! moko 11729: rm -f core conftest.err conftest.$ac_objext \
! 11730: conftest$ac_exeext conftest.$ac_ext
! 11731: LIBS=$ac_check_lib_save_LIBS
1.23 moko 11732: fi
1.31 ! moko 11733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
! 11734: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
! 11735: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
! 11736: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
! 11737: else
! 11738: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
! 11739: if test "x$ac_cv_func_dlopen" = xyes; then :
1.23 moko 11740: lt_cv_dlopen="dlopen"
11741: else
1.31 ! moko 11742: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 11743: $as_echo_n "checking for dlopen in -ldl... " >&6; }
! 11744: if ${ac_cv_lib_dl_dlopen+:} false; then :
! 11745: $as_echo_n "(cached) " >&6
1.23 moko 11746: else
11747: ac_check_lib_save_LIBS=$LIBS
11748: LIBS="-ldl $LIBS"
1.31 ! moko 11749: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11750: /* end confdefs.h. */
11751:
1.31 ! moko 11752: /* Override any GCC internal prototype to avoid an error.
! 11753: Use char because int might match the return type of a GCC
! 11754: builtin and then its argument prototype would still apply. */
1.23 moko 11755: #ifdef __cplusplus
11756: extern "C"
11757: #endif
11758: char dlopen ();
11759: int
11760: main ()
11761: {
1.31 ! moko 11762: return dlopen ();
1.23 moko 11763: ;
11764: return 0;
11765: }
11766: _ACEOF
1.31 ! moko 11767: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11768: ac_cv_lib_dl_dlopen=yes
11769: else
1.31 ! moko 11770: ac_cv_lib_dl_dlopen=no
1.23 moko 11771: fi
1.31 ! moko 11772: rm -f core conftest.err conftest.$ac_objext \
! 11773: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11774: LIBS=$ac_check_lib_save_LIBS
11775: fi
1.31 ! moko 11776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 11777: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
! 11778: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.23 moko 11779: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11780: else
1.31 ! moko 11781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
! 11782: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
! 11783: if ${ac_cv_lib_svld_dlopen+:} false; then :
! 11784: $as_echo_n "(cached) " >&6
1.23 moko 11785: else
11786: ac_check_lib_save_LIBS=$LIBS
11787: LIBS="-lsvld $LIBS"
1.31 ! moko 11788: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11789: /* end confdefs.h. */
11790:
1.31 ! moko 11791: /* Override any GCC internal prototype to avoid an error.
! 11792: Use char because int might match the return type of a GCC
! 11793: builtin and then its argument prototype would still apply. */
1.23 moko 11794: #ifdef __cplusplus
11795: extern "C"
11796: #endif
11797: char dlopen ();
11798: int
11799: main ()
11800: {
1.31 ! moko 11801: return dlopen ();
1.23 moko 11802: ;
11803: return 0;
11804: }
11805: _ACEOF
1.31 ! moko 11806: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11807: ac_cv_lib_svld_dlopen=yes
11808: else
1.31 ! moko 11809: ac_cv_lib_svld_dlopen=no
1.23 moko 11810: fi
1.31 ! moko 11811: rm -f core conftest.err conftest.$ac_objext \
! 11812: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11813: LIBS=$ac_check_lib_save_LIBS
11814: fi
1.31 ! moko 11815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
! 11816: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
! 11817: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.23 moko 11818: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11819: else
1.31 ! moko 11820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
! 11821: $as_echo_n "checking for dld_link in -ldld... " >&6; }
! 11822: if ${ac_cv_lib_dld_dld_link+:} false; then :
! 11823: $as_echo_n "(cached) " >&6
1.23 moko 11824: else
11825: ac_check_lib_save_LIBS=$LIBS
11826: LIBS="-ldld $LIBS"
1.31 ! moko 11827: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11828: /* end confdefs.h. */
11829:
1.31 ! moko 11830: /* Override any GCC internal prototype to avoid an error.
! 11831: Use char because int might match the return type of a GCC
! 11832: builtin and then its argument prototype would still apply. */
1.23 moko 11833: #ifdef __cplusplus
11834: extern "C"
11835: #endif
11836: char dld_link ();
11837: int
11838: main ()
11839: {
1.31 ! moko 11840: return dld_link ();
1.23 moko 11841: ;
11842: return 0;
11843: }
11844: _ACEOF
1.31 ! moko 11845: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11846: ac_cv_lib_dld_dld_link=yes
11847: else
1.31 ! moko 11848: ac_cv_lib_dld_dld_link=no
1.23 moko 11849: fi
1.31 ! moko 11850: rm -f core conftest.err conftest.$ac_objext \
! 11851: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11852: LIBS=$ac_check_lib_save_LIBS
11853: fi
1.31 ! moko 11854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
! 11855: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
! 11856: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.23 moko 11857: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11858: fi
11859:
11860:
11861: fi
11862:
11863:
11864: fi
11865:
11866:
11867: fi
11868:
11869:
11870: fi
11871:
11872:
11873: fi
11874:
11875: ;;
11876: esac
11877:
11878: if test "x$lt_cv_dlopen" != xno; then
11879: enable_dlopen=yes
11880: else
11881: enable_dlopen=no
11882: fi
11883:
11884: case $lt_cv_dlopen in
11885: dlopen)
11886: save_CPPFLAGS="$CPPFLAGS"
11887: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11888:
11889: save_LDFLAGS="$LDFLAGS"
11890: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11891:
11892: save_LIBS="$LIBS"
11893: LIBS="$lt_cv_dlopen_libs $LIBS"
11894:
1.31 ! moko 11895: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
! 11896: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
! 11897: if ${lt_cv_dlopen_self+:} false; then :
! 11898: $as_echo_n "(cached) " >&6
1.23 moko 11899: else
11900: if test "$cross_compiling" = yes; then :
11901: lt_cv_dlopen_self=cross
11902: else
11903: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11904: lt_status=$lt_dlunknown
11905: cat > conftest.$ac_ext <<_LT_EOF
11906: #line $LINENO "configure"
11907: #include "confdefs.h"
11908:
11909: #if HAVE_DLFCN_H
11910: #include <dlfcn.h>
11911: #endif
11912:
11913: #include <stdio.h>
11914:
11915: #ifdef RTLD_GLOBAL
11916: # define LT_DLGLOBAL RTLD_GLOBAL
11917: #else
11918: # ifdef DL_GLOBAL
11919: # define LT_DLGLOBAL DL_GLOBAL
11920: # else
11921: # define LT_DLGLOBAL 0
11922: # endif
11923: #endif
11924:
11925: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11926: find out it does not work in some platform. */
11927: #ifndef LT_DLLAZY_OR_NOW
11928: # ifdef RTLD_LAZY
11929: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11930: # else
11931: # ifdef DL_LAZY
11932: # define LT_DLLAZY_OR_NOW DL_LAZY
11933: # else
11934: # ifdef RTLD_NOW
11935: # define LT_DLLAZY_OR_NOW RTLD_NOW
11936: # else
11937: # ifdef DL_NOW
11938: # define LT_DLLAZY_OR_NOW DL_NOW
11939: # else
11940: # define LT_DLLAZY_OR_NOW 0
11941: # endif
11942: # endif
11943: # endif
11944: # endif
11945: #endif
11946:
11947: /* When -fvisbility=hidden is used, assume the code has been annotated
11948: correspondingly for the symbols needed. */
11949: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11950: int fnord () __attribute__((visibility("default")));
11951: #endif
11952:
11953: int fnord () { return 42; }
11954: int main ()
11955: {
11956: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11957: int status = $lt_dlunknown;
11958:
11959: if (self)
11960: {
11961: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11962: else
11963: {
11964: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11965: else puts (dlerror ());
11966: }
11967: /* dlclose (self); */
11968: }
11969: else
11970: puts (dlerror ());
11971:
11972: return status;
11973: }
11974: _LT_EOF
1.31 ! moko 11975: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 11976: (eval $ac_link) 2>&5
11977: ac_status=$?
1.31 ! moko 11978: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 11979: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.23 moko 11980: (./conftest; exit; ) >&5 2>/dev/null
11981: lt_status=$?
11982: case x$lt_status in
11983: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11984: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11985: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11986: esac
11987: else :
11988: # compilation failed
11989: lt_cv_dlopen_self=no
11990: fi
11991: fi
11992: rm -fr conftest*
11993:
11994:
11995: fi
1.31 ! moko 11996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
! 11997: $as_echo "$lt_cv_dlopen_self" >&6; }
1.23 moko 11998:
11999: if test "x$lt_cv_dlopen_self" = xyes; then
12000: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.31 ! moko 12001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
! 12002: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
! 12003: if ${lt_cv_dlopen_self_static+:} false; then :
! 12004: $as_echo_n "(cached) " >&6
1.23 moko 12005: else
12006: if test "$cross_compiling" = yes; then :
12007: lt_cv_dlopen_self_static=cross
12008: else
12009: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12010: lt_status=$lt_dlunknown
12011: cat > conftest.$ac_ext <<_LT_EOF
12012: #line $LINENO "configure"
12013: #include "confdefs.h"
12014:
12015: #if HAVE_DLFCN_H
12016: #include <dlfcn.h>
12017: #endif
12018:
12019: #include <stdio.h>
12020:
12021: #ifdef RTLD_GLOBAL
12022: # define LT_DLGLOBAL RTLD_GLOBAL
12023: #else
12024: # ifdef DL_GLOBAL
12025: # define LT_DLGLOBAL DL_GLOBAL
12026: # else
12027: # define LT_DLGLOBAL 0
12028: # endif
12029: #endif
12030:
12031: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12032: find out it does not work in some platform. */
12033: #ifndef LT_DLLAZY_OR_NOW
12034: # ifdef RTLD_LAZY
12035: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12036: # else
12037: # ifdef DL_LAZY
12038: # define LT_DLLAZY_OR_NOW DL_LAZY
12039: # else
12040: # ifdef RTLD_NOW
12041: # define LT_DLLAZY_OR_NOW RTLD_NOW
12042: # else
12043: # ifdef DL_NOW
12044: # define LT_DLLAZY_OR_NOW DL_NOW
12045: # else
12046: # define LT_DLLAZY_OR_NOW 0
12047: # endif
12048: # endif
12049: # endif
12050: # endif
12051: #endif
12052:
12053: /* When -fvisbility=hidden is used, assume the code has been annotated
12054: correspondingly for the symbols needed. */
12055: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12056: int fnord () __attribute__((visibility("default")));
12057: #endif
12058:
12059: int fnord () { return 42; }
12060: int main ()
12061: {
12062: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12063: int status = $lt_dlunknown;
12064:
12065: if (self)
12066: {
12067: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12068: else
12069: {
12070: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12071: else puts (dlerror ());
12072: }
12073: /* dlclose (self); */
12074: }
12075: else
12076: puts (dlerror ());
12077:
12078: return status;
12079: }
12080: _LT_EOF
1.31 ! moko 12081: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 12082: (eval $ac_link) 2>&5
12083: ac_status=$?
1.31 ! moko 12084: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 12085: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.23 moko 12086: (./conftest; exit; ) >&5 2>/dev/null
12087: lt_status=$?
12088: case x$lt_status in
12089: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12090: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12091: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12092: esac
12093: else :
12094: # compilation failed
12095: lt_cv_dlopen_self_static=no
12096: fi
12097: fi
12098: rm -fr conftest*
12099:
12100:
12101: fi
1.31 ! moko 12102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
! 12103: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.23 moko 12104: fi
12105:
12106: CPPFLAGS="$save_CPPFLAGS"
12107: LDFLAGS="$save_LDFLAGS"
12108: LIBS="$save_LIBS"
12109: ;;
12110: esac
12111:
12112: case $lt_cv_dlopen_self in
12113: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12114: *) enable_dlopen_self=unknown ;;
12115: esac
12116:
12117: case $lt_cv_dlopen_self_static in
12118: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12119: *) enable_dlopen_self_static=unknown ;;
12120: esac
12121: fi
12122:
12123:
12124:
12125:
12126:
12127:
12128:
12129:
12130:
12131:
12132:
12133:
12134:
12135:
12136:
12137:
12138:
12139: striplib=
12140: old_striplib=
1.31 ! moko 12141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
! 12142: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.23 moko 12143: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12144: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12145: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.31 ! moko 12146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 12147: $as_echo "yes" >&6; }
1.23 moko 12148: else
12149: # FIXME - insert some real tests, host_os isn't really good enough
12150: case $host_os in
12151: darwin*)
12152: if test -n "$STRIP" ; then
12153: striplib="$STRIP -x"
12154: old_striplib="$STRIP -S"
1.31 ! moko 12155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 12156: $as_echo "yes" >&6; }
1.23 moko 12157: else
1.31 ! moko 12158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12159: $as_echo "no" >&6; }
1.23 moko 12160: fi
12161: ;;
12162: *)
1.31 ! moko 12163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12164: $as_echo "no" >&6; }
1.23 moko 12165: ;;
12166: esac
12167: fi
12168:
12169:
12170:
12171:
12172:
12173:
12174:
12175:
12176:
12177:
12178:
12179:
12180: # Report which library types will actually be built
1.31 ! moko 12181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
! 12182: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
! 12183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
! 12184: $as_echo "$can_build_shared" >&6; }
1.23 moko 12185:
1.31 ! moko 12186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
! 12187: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.23 moko 12188: test "$can_build_shared" = "no" && enable_shared=no
12189:
12190: # On AIX, shared libraries and static libraries use the same namespace, and
12191: # are all built from PIC.
12192: case $host_os in
12193: aix3*)
12194: test "$enable_shared" = yes && enable_static=no
12195: if test -n "$RANLIB"; then
12196: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12197: postinstall_cmds='$RANLIB $lib'
12198: fi
12199: ;;
12200:
12201: aix[4-9]*)
12202: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12203: test "$enable_shared" = yes && enable_static=no
12204: fi
12205: ;;
12206: esac
1.31 ! moko 12207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
! 12208: $as_echo "$enable_shared" >&6; }
1.23 moko 12209:
1.31 ! moko 12210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
! 12211: $as_echo_n "checking whether to build static libraries... " >&6; }
1.23 moko 12212: # Make sure either enable_shared or enable_static is yes.
12213: test "$enable_shared" = yes || enable_static=yes
1.31 ! moko 12214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
! 12215: $as_echo "$enable_static" >&6; }
1.23 moko 12216:
12217:
12218:
12219:
12220: fi
12221: ac_ext=c
12222: ac_cpp='$CPP $CPPFLAGS'
12223: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12224: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12225: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12226:
12227: CC="$lt_save_CC"
12228:
12229: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12230: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12231: (test "X$CXX" != "Xg++"))) ; then
1.31 ! moko 12232: ac_ext=cpp
1.23 moko 12233: ac_cpp='$CXXCPP $CPPFLAGS'
12234: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12235: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12236: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.31 ! moko 12237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
! 12238: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.23 moko 12239: if test -z "$CXXCPP"; then
1.31 ! moko 12240: if ${ac_cv_prog_CXXCPP+:} false; then :
! 12241: $as_echo_n "(cached) " >&6
1.23 moko 12242: else
12243: # Double quotes because CXXCPP needs to be expanded
12244: for CXXCPP in "$CXX -E" "/lib/cpp"
12245: do
12246: ac_preproc_ok=false
12247: for ac_cxx_preproc_warn_flag in '' yes
12248: do
12249: # Use a header file that comes with gcc, so configuring glibc
12250: # with a fresh cross-compiler works.
12251: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12252: # <limits.h> exists even on freestanding compilers.
12253: # On the NeXT, cc -E runs the code through the compiler's parser,
12254: # not just through cpp. "Syntax error" is here to catch this case.
1.31 ! moko 12255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12256: /* end confdefs.h. */
12257: #ifdef __STDC__
12258: # include <limits.h>
12259: #else
12260: # include <assert.h>
12261: #endif
12262: Syntax error
12263: _ACEOF
1.31 ! moko 12264: if ac_fn_cxx_try_cpp "$LINENO"; then :
! 12265:
1.23 moko 12266: else
12267: # Broken: fails on valid input.
12268: continue
12269: fi
1.31 ! moko 12270: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12271:
1.31 ! moko 12272: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 12273: # can be detected and how.
1.31 ! moko 12274: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12275: /* end confdefs.h. */
12276: #include <ac_nonexistent.h>
12277: _ACEOF
1.31 ! moko 12278: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.23 moko 12279: # Broken: success on invalid input.
12280: continue
12281: else
12282: # Passes both tests.
12283: ac_preproc_ok=:
12284: break
12285: fi
1.31 ! moko 12286: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12287:
12288: done
12289: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 ! moko 12290: rm -f conftest.i conftest.err conftest.$ac_ext
! 12291: if $ac_preproc_ok; then :
1.23 moko 12292: break
12293: fi
12294:
12295: done
12296: ac_cv_prog_CXXCPP=$CXXCPP
12297:
12298: fi
12299: CXXCPP=$ac_cv_prog_CXXCPP
12300: else
12301: ac_cv_prog_CXXCPP=$CXXCPP
12302: fi
1.31 ! moko 12303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
! 12304: $as_echo "$CXXCPP" >&6; }
1.23 moko 12305: ac_preproc_ok=false
12306: for ac_cxx_preproc_warn_flag in '' yes
12307: do
12308: # Use a header file that comes with gcc, so configuring glibc
12309: # with a fresh cross-compiler works.
12310: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12311: # <limits.h> exists even on freestanding compilers.
12312: # On the NeXT, cc -E runs the code through the compiler's parser,
12313: # not just through cpp. "Syntax error" is here to catch this case.
1.31 ! moko 12314: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12315: /* end confdefs.h. */
12316: #ifdef __STDC__
12317: # include <limits.h>
12318: #else
12319: # include <assert.h>
12320: #endif
12321: Syntax error
12322: _ACEOF
1.31 ! moko 12323: if ac_fn_cxx_try_cpp "$LINENO"; then :
! 12324:
1.23 moko 12325: else
12326: # Broken: fails on valid input.
12327: continue
12328: fi
1.31 ! moko 12329: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12330:
1.31 ! moko 12331: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 12332: # can be detected and how.
1.31 ! moko 12333: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12334: /* end confdefs.h. */
12335: #include <ac_nonexistent.h>
12336: _ACEOF
1.31 ! moko 12337: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.23 moko 12338: # Broken: success on invalid input.
12339: continue
12340: else
12341: # Passes both tests.
12342: ac_preproc_ok=:
12343: break
12344: fi
1.31 ! moko 12345: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12346:
12347: done
12348: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 ! moko 12349: rm -f conftest.i conftest.err conftest.$ac_ext
! 12350: if $ac_preproc_ok; then :
! 12351:
1.23 moko 12352: else
1.31 ! moko 12353: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 12354: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 12355: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
! 12356: See \`config.log' for more details" "$LINENO" 5; }
1.23 moko 12357: fi
12358:
12359: ac_ext=c
12360: ac_cpp='$CPP $CPPFLAGS'
12361: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12362: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12363: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12364:
12365: else
12366: _lt_caught_CXX_error=yes
12367: fi
12368:
1.31 ! moko 12369: ac_ext=cpp
1.23 moko 12370: ac_cpp='$CXXCPP $CPPFLAGS'
12371: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12372: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12374:
12375: archive_cmds_need_lc_CXX=no
12376: allow_undefined_flag_CXX=
12377: always_export_symbols_CXX=no
12378: archive_expsym_cmds_CXX=
12379: compiler_needs_object_CXX=no
12380: export_dynamic_flag_spec_CXX=
12381: hardcode_direct_CXX=no
12382: hardcode_direct_absolute_CXX=no
12383: hardcode_libdir_flag_spec_CXX=
12384: hardcode_libdir_separator_CXX=
12385: hardcode_minus_L_CXX=no
12386: hardcode_shlibpath_var_CXX=unsupported
12387: hardcode_automatic_CXX=no
12388: inherit_rpath_CXX=no
12389: module_cmds_CXX=
12390: module_expsym_cmds_CXX=
12391: link_all_deplibs_CXX=unknown
12392: old_archive_cmds_CXX=$old_archive_cmds
12393: reload_flag_CXX=$reload_flag
12394: reload_cmds_CXX=$reload_cmds
12395: no_undefined_flag_CXX=
12396: whole_archive_flag_spec_CXX=
12397: enable_shared_with_static_runtimes_CXX=no
12398:
12399: # Source file extension for C++ test sources.
12400: ac_ext=cpp
12401:
12402: # Object file extension for compiled C++ test sources.
12403: objext=o
12404: objext_CXX=$objext
12405:
12406: # No sense in running all these tests if we already determined that
12407: # the CXX compiler isn't working. Some variables (like enable_shared)
12408: # are currently assumed to apply to all compilers on this platform,
12409: # and will be corrupted by setting them based on a non-working compiler.
12410: if test "$_lt_caught_CXX_error" != yes; then
12411: # Code to be used in simple compile tests
12412: lt_simple_compile_test_code="int some_variable = 0;"
12413:
12414: # Code to be used in simple link tests
12415: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12416:
12417: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12418:
12419:
12420:
12421:
12422:
12423:
12424: # If no C compiler was specified, use CC.
12425: LTCC=${LTCC-"$CC"}
12426:
12427: # If no C compiler flags were specified, use CFLAGS.
12428: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12429:
12430: # Allow CC to be a program name with arguments.
12431: compiler=$CC
12432:
12433:
12434: # save warnings/boilerplate of simple test code
12435: ac_outfile=conftest.$ac_objext
12436: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12437: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12438: _lt_compiler_boilerplate=`cat conftest.err`
12439: $RM conftest*
12440:
12441: ac_outfile=conftest.$ac_objext
12442: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12443: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12444: _lt_linker_boilerplate=`cat conftest.err`
12445: $RM -r conftest*
12446:
12447:
12448: # Allow CC to be a program name with arguments.
12449: lt_save_CC=$CC
12450: lt_save_CFLAGS=$CFLAGS
12451: lt_save_LD=$LD
12452: lt_save_GCC=$GCC
12453: GCC=$GXX
12454: lt_save_with_gnu_ld=$with_gnu_ld
12455: lt_save_path_LD=$lt_cv_path_LD
12456: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12457: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12458: else
12459: $as_unset lt_cv_prog_gnu_ld
12460: fi
12461: if test -n "${lt_cv_path_LDCXX+set}"; then
12462: lt_cv_path_LD=$lt_cv_path_LDCXX
12463: else
12464: $as_unset lt_cv_path_LD
12465: fi
12466: test -z "${LDCXX+set}" || LD=$LDCXX
12467: CC=${CXX-"c++"}
12468: CFLAGS=$CXXFLAGS
12469: compiler=$CC
12470: compiler_CXX=$CC
12471: for cc_temp in $compiler""; do
12472: case $cc_temp in
12473: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12474: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12475: \-*) ;;
12476: *) break;;
12477: esac
12478: done
12479: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12480:
12481:
12482: if test -n "$compiler"; then
12483: # We don't want -fno-exception when compiling C++ code, so set the
12484: # no_builtin_flag separately
12485: if test "$GXX" = yes; then
12486: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12487: else
12488: lt_prog_compiler_no_builtin_flag_CXX=
12489: fi
12490:
12491: if test "$GXX" = yes; then
12492: # Set up default GNU C++ configuration
12493:
12494:
12495:
1.31 ! moko 12496: # Check whether --with-gnu-ld was given.
! 12497: if test "${with_gnu_ld+set}" = set; then :
! 12498: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.23 moko 12499: else
12500: with_gnu_ld=no
1.31 ! moko 12501: fi
! 12502:
1.23 moko 12503: ac_prog=ld
12504: if test "$GCC" = yes; then
12505: # Check if gcc -print-prog-name=ld gives a path.
1.31 ! moko 12506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
! 12507: $as_echo_n "checking for ld used by $CC... " >&6; }
1.23 moko 12508: case $host in
12509: *-*-mingw*)
12510: # gcc leaves a trailing carriage return which upsets mingw
12511: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12512: *)
12513: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12514: esac
12515: case $ac_prog in
12516: # Accept absolute paths.
12517: [\\/]* | ?:[\\/]*)
12518: re_direlt='/[^/][^/]*/\.\./'
12519: # Canonicalize the pathname of ld
12520: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12521: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12522: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12523: done
12524: test -z "$LD" && LD="$ac_prog"
12525: ;;
12526: "")
12527: # If it fails, then pretend we aren't using GCC.
12528: ac_prog=ld
12529: ;;
12530: *)
12531: # If it is relative, then search for the first ld in PATH.
12532: with_gnu_ld=unknown
12533: ;;
12534: esac
12535: elif test "$with_gnu_ld" = yes; then
1.31 ! moko 12536: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
! 12537: $as_echo_n "checking for GNU ld... " >&6; }
1.23 moko 12538: else
1.31 ! moko 12539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
! 12540: $as_echo_n "checking for non-GNU ld... " >&6; }
1.23 moko 12541: fi
1.31 ! moko 12542: if ${lt_cv_path_LD+:} false; then :
! 12543: $as_echo_n "(cached) " >&6
1.23 moko 12544: else
12545: if test -z "$LD"; then
12546: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12547: for ac_dir in $PATH; do
12548: IFS="$lt_save_ifs"
12549: test -z "$ac_dir" && ac_dir=.
12550: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12551: lt_cv_path_LD="$ac_dir/$ac_prog"
12552: # Check to see if the program is GNU ld. I'd rather use --version,
12553: # but apparently some variants of GNU ld only accept -v.
12554: # Break only if it was the GNU/non-GNU ld that we prefer.
12555: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12556: *GNU* | *'with BFD'*)
12557: test "$with_gnu_ld" != no && break
12558: ;;
12559: *)
12560: test "$with_gnu_ld" != yes && break
12561: ;;
12562: esac
12563: fi
12564: done
12565: IFS="$lt_save_ifs"
12566: else
12567: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12568: fi
12569: fi
12570:
12571: LD="$lt_cv_path_LD"
12572: if test -n "$LD"; then
1.31 ! moko 12573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
! 12574: $as_echo "$LD" >&6; }
1.23 moko 12575: else
1.31 ! moko 12576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12577: $as_echo "no" >&6; }
1.23 moko 12578: fi
1.31 ! moko 12579: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
! 12580: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
! 12581: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
! 12582: if ${lt_cv_prog_gnu_ld+:} false; then :
! 12583: $as_echo_n "(cached) " >&6
1.23 moko 12584: else
12585: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12586: case `$LD -v 2>&1 </dev/null` in
12587: *GNU* | *'with BFD'*)
12588: lt_cv_prog_gnu_ld=yes
12589: ;;
12590: *)
12591: lt_cv_prog_gnu_ld=no
12592: ;;
12593: esac
12594: fi
1.31 ! moko 12595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
! 12596: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.23 moko 12597: with_gnu_ld=$lt_cv_prog_gnu_ld
12598:
12599:
12600:
12601:
12602:
12603:
12604:
12605: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12606: # archiving commands below assume that GNU ld is being used.
12607: if test "$with_gnu_ld" = yes; then
12608: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12609: 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'
12610:
12611: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12612: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12613:
12614: # If archive_cmds runs LD, not CC, wlarc should be empty
12615: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12616: # investigate it a little bit more. (MM)
12617: wlarc='${wl}'
12618:
12619: # ancient GNU ld didn't support --whole-archive et. al.
12620: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12621: $GREP 'no-whole-archive' > /dev/null; then
12622: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12623: else
12624: whole_archive_flag_spec_CXX=
12625: fi
12626: else
12627: with_gnu_ld=no
12628: wlarc=
12629:
12630: # A generic and very simple default shared library creation
12631: # command for GNU C++ for the case where it uses the native
12632: # linker, instead of GNU ld. If possible, this setting should
12633: # overridden to take advantage of the native linker features on
12634: # the platform it is being used on.
12635: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12636: fi
12637:
12638: # Commands to make compiler produce verbose output that lists
12639: # what "hidden" libraries, object files and flags are used when
12640: # linking a shared library.
12641: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12642:
12643: else
12644: GXX=no
12645: with_gnu_ld=no
12646: wlarc=
12647: fi
12648:
12649: # PORTME: fill in a description of your system's C++ link characteristics
1.31 ! moko 12650: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 12651: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.23 moko 12652: ld_shlibs_CXX=yes
12653: case $host_os in
12654: aix3*)
12655: # FIXME: insert proper C++ library support
12656: ld_shlibs_CXX=no
12657: ;;
12658: aix[4-9]*)
12659: if test "$host_cpu" = ia64; then
12660: # On IA64, the linker does run time linking by default, so we don't
12661: # have to do anything special.
12662: aix_use_runtimelinking=no
12663: exp_sym_flag='-Bexport'
12664: no_entry_flag=""
12665: else
12666: aix_use_runtimelinking=no
12667:
12668: # Test if we are trying to use run time linking or normal
12669: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12670: # need to do runtime linking.
12671: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12672: for ld_flag in $LDFLAGS; do
12673: case $ld_flag in
12674: *-brtl*)
12675: aix_use_runtimelinking=yes
12676: break
12677: ;;
12678: esac
12679: done
12680: ;;
12681: esac
12682:
12683: exp_sym_flag='-bexport'
12684: no_entry_flag='-bnoentry'
12685: fi
12686:
12687: # When large executables or shared objects are built, AIX ld can
12688: # have problems creating the table of contents. If linking a library
12689: # or program results in "error TOC overflow" add -mminimal-toc to
12690: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12691: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12692:
12693: archive_cmds_CXX=''
12694: hardcode_direct_CXX=yes
12695: hardcode_direct_absolute_CXX=yes
12696: hardcode_libdir_separator_CXX=':'
12697: link_all_deplibs_CXX=yes
12698: file_list_spec_CXX='${wl}-f,'
12699:
12700: if test "$GXX" = yes; then
12701: case $host_os in aix4.[012]|aix4.[012].*)
12702: # We only want to do this on AIX 4.2 and lower, the check
12703: # below for broken collect2 doesn't work under 4.3+
12704: collect2name=`${CC} -print-prog-name=collect2`
12705: if test -f "$collect2name" &&
12706: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12707: then
12708: # We have reworked collect2
12709: :
12710: else
12711: # We have old collect2
12712: hardcode_direct_CXX=unsupported
12713: # It fails to find uninstalled libraries when the uninstalled
12714: # path is not listed in the libpath. Setting hardcode_minus_L
12715: # to unsupported forces relinking
12716: hardcode_minus_L_CXX=yes
12717: hardcode_libdir_flag_spec_CXX='-L$libdir'
12718: hardcode_libdir_separator_CXX=
12719: fi
12720: esac
12721: shared_flag='-shared'
12722: if test "$aix_use_runtimelinking" = yes; then
12723: shared_flag="$shared_flag "'${wl}-G'
12724: fi
12725: else
12726: # not using gcc
12727: if test "$host_cpu" = ia64; then
12728: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12729: # chokes on -Wl,-G. The following line is correct:
12730: shared_flag='-G'
12731: else
12732: if test "$aix_use_runtimelinking" = yes; then
12733: shared_flag='${wl}-G'
12734: else
12735: shared_flag='${wl}-bM:SRE'
12736: fi
12737: fi
12738: fi
12739:
12740: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12741: # It seems that -bexpall does not export symbols beginning with
12742: # underscore (_), so it is better to generate a list of symbols to
12743: # export.
12744: always_export_symbols_CXX=yes
12745: if test "$aix_use_runtimelinking" = yes; then
12746: # Warning - without using the other runtime loading flags (-brtl),
12747: # -berok will link without error, but may produce a broken library.
12748: allow_undefined_flag_CXX='-berok'
12749: # Determine the default libpath from the value encoded in an empty
12750: # executable.
12751: if test "${lt_cv_aix_libpath+set}" = set; then
12752: aix_libpath=$lt_cv_aix_libpath
12753: else
1.31 ! moko 12754: if ${lt_cv_aix_libpath__CXX+:} false; then :
! 12755: $as_echo_n "(cached) " >&6
1.23 moko 12756: else
1.31 ! moko 12757: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12758: /* end confdefs.h. */
12759:
12760: int
12761: main ()
12762: {
12763:
12764: ;
12765: return 0;
12766: }
12767: _ACEOF
1.31 ! moko 12768: if ac_fn_cxx_try_link "$LINENO"; then :
1.23 moko 12769:
12770: lt_aix_libpath_sed='
12771: /Import File Strings/,/^$/ {
12772: /^0/ {
12773: s/^0 *\([^ ]*\) *$/\1/
12774: p
12775: }
12776: }'
12777: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12778: # Check for a 64-bit object if we didn't find anything.
12779: if test -z "$lt_cv_aix_libpath__CXX"; then
12780: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12781: fi
12782: fi
1.31 ! moko 12783: rm -f core conftest.err conftest.$ac_objext \
! 12784: conftest$ac_exeext conftest.$ac_ext
1.23 moko 12785: if test -z "$lt_cv_aix_libpath__CXX"; then
12786: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12787: fi
12788:
12789: fi
12790:
12791: aix_libpath=$lt_cv_aix_libpath__CXX
12792: fi
12793:
12794: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12795:
12796: 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"
12797: else
12798: if test "$host_cpu" = ia64; then
12799: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12800: allow_undefined_flag_CXX="-z nodefs"
12801: 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"
12802: else
12803: # Determine the default libpath from the value encoded in an
12804: # empty executable.
12805: if test "${lt_cv_aix_libpath+set}" = set; then
12806: aix_libpath=$lt_cv_aix_libpath
12807: else
1.31 ! moko 12808: if ${lt_cv_aix_libpath__CXX+:} false; then :
! 12809: $as_echo_n "(cached) " >&6
1.23 moko 12810: else
1.31 ! moko 12811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12812: /* end confdefs.h. */
12813:
12814: int
12815: main ()
12816: {
12817:
12818: ;
12819: return 0;
12820: }
12821: _ACEOF
1.31 ! moko 12822: if ac_fn_cxx_try_link "$LINENO"; then :
1.23 moko 12823:
12824: lt_aix_libpath_sed='
12825: /Import File Strings/,/^$/ {
12826: /^0/ {
12827: s/^0 *\([^ ]*\) *$/\1/
12828: p
12829: }
12830: }'
12831: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12832: # Check for a 64-bit object if we didn't find anything.
12833: if test -z "$lt_cv_aix_libpath__CXX"; then
12834: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12835: fi
12836: fi
1.31 ! moko 12837: rm -f core conftest.err conftest.$ac_objext \
! 12838: conftest$ac_exeext conftest.$ac_ext
1.23 moko 12839: if test -z "$lt_cv_aix_libpath__CXX"; then
12840: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12841: fi
12842:
12843: fi
12844:
12845: aix_libpath=$lt_cv_aix_libpath__CXX
12846: fi
12847:
12848: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12849: # Warning - without using the other run time loading flags,
12850: # -berok will link without error, but may produce a broken library.
12851: no_undefined_flag_CXX=' ${wl}-bernotok'
12852: allow_undefined_flag_CXX=' ${wl}-berok'
12853: if test "$with_gnu_ld" = yes; then
12854: # We only use this code for GNU lds that support --whole-archive.
12855: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12856: else
12857: # Exported symbols can be pulled into shared objects from archives
12858: whole_archive_flag_spec_CXX='$convenience'
12859: fi
12860: archive_cmds_need_lc_CXX=yes
12861: # This is similar to how AIX traditionally builds its shared
12862: # libraries.
12863: 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'
12864: fi
12865: fi
12866: ;;
12867:
12868: beos*)
12869: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12870: allow_undefined_flag_CXX=unsupported
12871: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12872: # support --undefined. This deserves some investigation. FIXME
12873: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12874: else
12875: ld_shlibs_CXX=no
12876: fi
12877: ;;
12878:
12879: chorus*)
12880: case $cc_basename in
12881: *)
12882: # FIXME: insert proper C++ library support
12883: ld_shlibs_CXX=no
12884: ;;
12885: esac
12886: ;;
12887:
12888: cygwin* | mingw* | pw32* | cegcc*)
12889: case $GXX,$cc_basename in
12890: ,cl* | no,cl*)
12891: # Native MSVC
12892: # hardcode_libdir_flag_spec is actually meaningless, as there is
12893: # no search path for DLLs.
12894: hardcode_libdir_flag_spec_CXX=' '
12895: allow_undefined_flag_CXX=unsupported
12896: always_export_symbols_CXX=yes
12897: file_list_spec_CXX='@'
12898: # Tell ltmain to make .lib files, not .a files.
12899: libext=lib
12900: # Tell ltmain to make .dll files, not .so files.
12901: shrext_cmds=".dll"
12902: # FIXME: Setting linknames here is a bad hack.
12903: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12904: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12905: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12906: else
12907: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12908: fi~
12909: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12910: linknames='
12911: # The linker will not automatically build a static lib if we build a DLL.
12912: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12913: enable_shared_with_static_runtimes_CXX=yes
12914: # Don't use ranlib
12915: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12916: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12917: lt_tool_outputfile="@TOOL_OUTPUT@"~
12918: case $lt_outputfile in
12919: *.exe|*.EXE) ;;
12920: *)
12921: lt_outputfile="$lt_outputfile.exe"
12922: lt_tool_outputfile="$lt_tool_outputfile.exe"
12923: ;;
12924: esac~
12925: func_to_tool_file "$lt_outputfile"~
12926: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12927: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12928: $RM "$lt_outputfile.manifest";
12929: fi'
12930: ;;
12931: *)
12932: # g++
12933: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12934: # as there is no search path for DLLs.
12935: hardcode_libdir_flag_spec_CXX='-L$libdir'
12936: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12937: allow_undefined_flag_CXX=unsupported
12938: always_export_symbols_CXX=no
12939: enable_shared_with_static_runtimes_CXX=yes
12940:
12941: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12942: 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'
12943: # If the export-symbols file already is a .def file (1st line
12944: # is EXPORTS), use it as is; otherwise, prepend...
12945: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12946: cp $export_symbols $output_objdir/$soname.def;
12947: else
12948: echo EXPORTS > $output_objdir/$soname.def;
12949: cat $export_symbols >> $output_objdir/$soname.def;
12950: fi~
12951: $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'
12952: else
12953: ld_shlibs_CXX=no
12954: fi
12955: ;;
12956: esac
12957: ;;
12958: darwin* | rhapsody*)
12959:
12960:
12961: archive_cmds_need_lc_CXX=no
12962: hardcode_direct_CXX=no
12963: hardcode_automatic_CXX=yes
12964: hardcode_shlibpath_var_CXX=unsupported
12965: if test "$lt_cv_ld_force_load" = "yes"; then
12966: 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\"`'
12967:
12968: else
12969: whole_archive_flag_spec_CXX=''
12970: fi
12971: link_all_deplibs_CXX=yes
12972: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12973: case $cc_basename in
12974: ifort*) _lt_dar_can_shared=yes ;;
12975: *) _lt_dar_can_shared=$GCC ;;
12976: esac
12977: if test "$_lt_dar_can_shared" = "yes"; then
12978: output_verbose_link_cmd=func_echo_all
12979: 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}"
12980: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12981: 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}"
12982: 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}"
12983: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12984: 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}"
12985: 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}"
12986: fi
12987:
12988: else
12989: ld_shlibs_CXX=no
12990: fi
12991:
12992: ;;
12993:
12994: dgux*)
12995: case $cc_basename in
12996: ec++*)
12997: # FIXME: insert proper C++ library support
12998: ld_shlibs_CXX=no
12999: ;;
13000: ghcx*)
13001: # Green Hills C++ Compiler
13002: # FIXME: insert proper C++ library support
13003: ld_shlibs_CXX=no
13004: ;;
13005: *)
13006: # FIXME: insert proper C++ library support
13007: ld_shlibs_CXX=no
13008: ;;
13009: esac
13010: ;;
13011:
13012: freebsd2.*)
13013: # C++ shared libraries reported to be fairly broken before
13014: # switch to ELF
13015: ld_shlibs_CXX=no
13016: ;;
13017:
13018: freebsd-elf*)
13019: archive_cmds_need_lc_CXX=no
13020: ;;
13021:
13022: freebsd* | dragonfly*)
13023: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13024: # conventions
13025: ld_shlibs_CXX=yes
13026: ;;
13027:
13028: gnu*)
13029: ;;
13030:
13031: haiku*)
13032: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13033: link_all_deplibs_CXX=yes
13034: ;;
13035:
13036: hpux9*)
13037: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13038: hardcode_libdir_separator_CXX=:
13039: export_dynamic_flag_spec_CXX='${wl}-E'
13040: hardcode_direct_CXX=yes
13041: hardcode_minus_L_CXX=yes # Not in the search PATH,
13042: # but as the default
13043: # location of the library.
13044:
13045: case $cc_basename in
13046: CC*)
13047: # FIXME: insert proper C++ library support
13048: ld_shlibs_CXX=no
13049: ;;
13050: aCC*)
13051: 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'
13052: # Commands to make compiler produce verbose output that lists
13053: # what "hidden" libraries, object files and flags are used when
13054: # linking a shared library.
13055: #
13056: # There doesn't appear to be a way to prevent this compiler from
13057: # explicitly linking system object files so we need to strip them
13058: # from the output so that they don't get included in the library
13059: # dependencies.
13060: 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"'
13061: ;;
13062: *)
13063: if test "$GXX" = yes; then
13064: 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'
13065: else
13066: # FIXME: insert proper C++ library support
13067: ld_shlibs_CXX=no
13068: fi
13069: ;;
13070: esac
13071: ;;
13072:
13073: hpux10*|hpux11*)
13074: if test $with_gnu_ld = no; then
13075: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13076: hardcode_libdir_separator_CXX=:
13077:
13078: case $host_cpu in
13079: hppa*64*|ia64*)
13080: ;;
13081: *)
13082: export_dynamic_flag_spec_CXX='${wl}-E'
13083: ;;
13084: esac
13085: fi
13086: case $host_cpu in
13087: hppa*64*|ia64*)
13088: hardcode_direct_CXX=no
13089: hardcode_shlibpath_var_CXX=no
13090: ;;
13091: *)
13092: hardcode_direct_CXX=yes
13093: hardcode_direct_absolute_CXX=yes
13094: hardcode_minus_L_CXX=yes # Not in the search PATH,
13095: # but as the default
13096: # location of the library.
13097: ;;
13098: esac
13099:
13100: case $cc_basename in
13101: CC*)
13102: # FIXME: insert proper C++ library support
13103: ld_shlibs_CXX=no
13104: ;;
13105: aCC*)
13106: case $host_cpu in
13107: hppa*64*)
13108: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13109: ;;
13110: ia64*)
13111: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13112: ;;
13113: *)
13114: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13115: ;;
13116: esac
13117: # Commands to make compiler produce verbose output that lists
13118: # what "hidden" libraries, object files and flags are used when
13119: # linking a shared library.
13120: #
13121: # There doesn't appear to be a way to prevent this compiler from
13122: # explicitly linking system object files so we need to strip them
13123: # from the output so that they don't get included in the library
13124: # dependencies.
13125: 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"'
13126: ;;
13127: *)
13128: if test "$GXX" = yes; then
13129: if test $with_gnu_ld = no; then
13130: case $host_cpu in
13131: hppa*64*)
13132: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13133: ;;
13134: ia64*)
13135: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13136: ;;
13137: *)
13138: 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'
13139: ;;
13140: esac
13141: fi
13142: else
13143: # FIXME: insert proper C++ library support
13144: ld_shlibs_CXX=no
13145: fi
13146: ;;
13147: esac
13148: ;;
13149:
13150: interix[3-9]*)
13151: hardcode_direct_CXX=no
13152: hardcode_shlibpath_var_CXX=no
13153: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13154: export_dynamic_flag_spec_CXX='${wl}-E'
13155: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13156: # Instead, shared libraries are loaded at an image base (0x10000000 by
13157: # default) and relocated if they conflict, which is a slow very memory
13158: # consuming and fragmenting process. To avoid this, we pick a random,
13159: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13160: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13161: 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'
13162: 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'
13163: ;;
13164: irix5* | irix6*)
13165: case $cc_basename in
13166: CC*)
13167: # SGI C++
13168: 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'
13169:
13170: # Archives containing C++ object files must be created using
13171: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13172: # necessary to make sure instantiated templates are included
13173: # in the archive.
13174: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13175: ;;
13176: *)
13177: if test "$GXX" = yes; then
13178: if test "$with_gnu_ld" = no; then
13179: 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'
13180: else
13181: 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'
13182: fi
13183: fi
13184: link_all_deplibs_CXX=yes
13185: ;;
13186: esac
13187: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13188: hardcode_libdir_separator_CXX=:
13189: inherit_rpath_CXX=yes
13190: ;;
13191:
13192: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13193: case $cc_basename in
13194: KCC*)
13195: # Kuck and Associates, Inc. (KAI) C++ Compiler
13196:
13197: # KCC will only create a shared library if the output file
13198: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13199: # to its proper name (with version) after linking.
13200: 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'
13201: 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'
13202: # Commands to make compiler produce verbose output that lists
13203: # what "hidden" libraries, object files and flags are used when
13204: # linking a shared library.
13205: #
13206: # There doesn't appear to be a way to prevent this compiler from
13207: # explicitly linking system object files so we need to strip them
13208: # from the output so that they don't get included in the library
13209: # dependencies.
13210: 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"'
13211:
13212: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13213: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13214:
13215: # Archives containing C++ object files must be created using
13216: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13217: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13218: ;;
13219: icpc* | ecpc* )
13220: # Intel C++
13221: with_gnu_ld=yes
13222: # version 8.0 and above of icpc choke on multiply defined symbols
13223: # if we add $predep_objects and $postdep_objects, however 7.1 and
13224: # earlier do not add the objects themselves.
13225: case `$CC -V 2>&1` in
13226: *"Version 7."*)
13227: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13228: 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'
13229: ;;
13230: *) # Version 8.0 or newer
13231: tmp_idyn=
13232: case $host_cpu in
13233: ia64*) tmp_idyn=' -i_dynamic';;
13234: esac
13235: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13236: 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'
13237: ;;
13238: esac
13239: archive_cmds_need_lc_CXX=no
13240: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13241: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13242: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13243: ;;
13244: pgCC* | pgcpp*)
13245: # Portland Group C++ compiler
13246: case `$CC -V` in
13247: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13248: prelink_cmds_CXX='tpldir=Template.dir~
13249: rm -rf $tpldir~
13250: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13251: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13252: old_archive_cmds_CXX='tpldir=Template.dir~
13253: rm -rf $tpldir~
13254: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13255: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13256: $RANLIB $oldlib'
13257: archive_cmds_CXX='tpldir=Template.dir~
13258: rm -rf $tpldir~
13259: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13260: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13261: archive_expsym_cmds_CXX='tpldir=Template.dir~
13262: rm -rf $tpldir~
13263: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13264: $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'
13265: ;;
13266: *) # Version 6 and above use weak symbols
13267: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13268: 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'
13269: ;;
13270: esac
13271:
13272: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13273: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13274: 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'
13275: ;;
13276: cxx*)
13277: # Compaq C++
13278: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279: 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'
13280:
13281: runpath_var=LD_RUN_PATH
13282: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13283: hardcode_libdir_separator_CXX=:
13284:
13285: # Commands to make compiler produce verbose output that lists
13286: # what "hidden" libraries, object files and flags are used when
13287: # linking a shared library.
13288: #
13289: # There doesn't appear to be a way to prevent this compiler from
13290: # explicitly linking system object files so we need to strip them
13291: # from the output so that they don't get included in the library
13292: # dependencies.
13293: 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'
13294: ;;
13295: xl* | mpixl* | bgxl*)
13296: # IBM XL 8.0 on PPC, with GNU ld
13297: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13298: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13299: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13300: if test "x$supports_anon_versioning" = xyes; then
13301: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13302: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13303: echo "local: *; };" >> $output_objdir/$libname.ver~
13304: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13305: fi
13306: ;;
13307: *)
13308: case `$CC -V 2>&1 | sed 5q` in
13309: *Sun\ C*)
13310: # Sun C++ 5.9
13311: no_undefined_flag_CXX=' -zdefs'
13312: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13313: 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'
13314: hardcode_libdir_flag_spec_CXX='-R$libdir'
13315: 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'
13316: compiler_needs_object_CXX=yes
13317:
13318: # Not sure whether something based on
13319: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13320: # would be better.
13321: output_verbose_link_cmd='func_echo_all'
13322:
13323: # Archives containing C++ object files must be created using
13324: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13325: # necessary to make sure instantiated templates are included
13326: # in the archive.
13327: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13328: ;;
13329: esac
13330: ;;
13331: esac
13332: ;;
13333:
13334: lynxos*)
13335: # FIXME: insert proper C++ library support
13336: ld_shlibs_CXX=no
13337: ;;
13338:
13339: m88k*)
13340: # FIXME: insert proper C++ library support
13341: ld_shlibs_CXX=no
13342: ;;
13343:
13344: mvs*)
13345: case $cc_basename in
13346: cxx*)
13347: # FIXME: insert proper C++ library support
13348: ld_shlibs_CXX=no
13349: ;;
13350: *)
13351: # FIXME: insert proper C++ library support
13352: ld_shlibs_CXX=no
13353: ;;
13354: esac
13355: ;;
13356:
13357: netbsd*)
13358: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13359: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13360: wlarc=
13361: hardcode_libdir_flag_spec_CXX='-R$libdir'
13362: hardcode_direct_CXX=yes
13363: hardcode_shlibpath_var_CXX=no
13364: fi
13365: # Workaround some broken pre-1.5 toolchains
13366: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13367: ;;
13368:
13369: *nto* | *qnx*)
13370: ld_shlibs_CXX=yes
13371: ;;
13372:
13373: openbsd2*)
13374: # C++ shared libraries are fairly broken
13375: ld_shlibs_CXX=no
13376: ;;
13377:
13378: openbsd*)
13379: if test -f /usr/libexec/ld.so; then
13380: hardcode_direct_CXX=yes
13381: hardcode_shlibpath_var_CXX=no
13382: hardcode_direct_absolute_CXX=yes
13383: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13384: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13385: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13386: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13387: export_dynamic_flag_spec_CXX='${wl}-E'
13388: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13389: fi
13390: output_verbose_link_cmd=func_echo_all
13391: else
13392: ld_shlibs_CXX=no
13393: fi
13394: ;;
13395:
13396: osf3* | osf4* | osf5*)
13397: case $cc_basename in
13398: KCC*)
13399: # Kuck and Associates, Inc. (KAI) C++ Compiler
13400:
13401: # KCC will only create a shared library if the output file
13402: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13403: # to its proper name (with version) after linking.
13404: 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'
13405:
13406: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13407: hardcode_libdir_separator_CXX=:
13408:
13409: # Archives containing C++ object files must be created using
13410: # the KAI C++ compiler.
13411: case $host in
13412: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13413: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13414: esac
13415: ;;
13416: RCC*)
13417: # Rational C++ 2.4.1
13418: # FIXME: insert proper C++ library support
13419: ld_shlibs_CXX=no
13420: ;;
13421: cxx*)
13422: case $host in
13423: osf3*)
13424: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13425: 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'
13426: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13427: ;;
13428: *)
13429: allow_undefined_flag_CXX=' -expect_unresolved \*'
13430: 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'
13431: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13432: echo "-hidden">> $lib.exp~
13433: $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~
13434: $RM $lib.exp'
13435: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13436: ;;
13437: esac
13438:
13439: hardcode_libdir_separator_CXX=:
13440:
13441: # Commands to make compiler produce verbose output that lists
13442: # what "hidden" libraries, object files and flags are used when
13443: # linking a shared library.
13444: #
13445: # There doesn't appear to be a way to prevent this compiler from
13446: # explicitly linking system object files so we need to strip them
13447: # from the output so that they don't get included in the library
13448: # dependencies.
13449: 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"'
13450: ;;
13451: *)
13452: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13453: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13454: case $host in
13455: osf3*)
13456: 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'
13457: ;;
13458: *)
13459: 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'
13460: ;;
13461: esac
13462:
13463: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13464: hardcode_libdir_separator_CXX=:
13465:
13466: # Commands to make compiler produce verbose output that lists
13467: # what "hidden" libraries, object files and flags are used when
13468: # linking a shared library.
13469: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13470:
13471: else
13472: # FIXME: insert proper C++ library support
13473: ld_shlibs_CXX=no
13474: fi
13475: ;;
13476: esac
13477: ;;
13478:
13479: psos*)
13480: # FIXME: insert proper C++ library support
13481: ld_shlibs_CXX=no
13482: ;;
13483:
13484: sunos4*)
13485: case $cc_basename in
13486: CC*)
13487: # Sun C++ 4.x
13488: # FIXME: insert proper C++ library support
13489: ld_shlibs_CXX=no
13490: ;;
13491: lcc*)
13492: # Lucid
13493: # FIXME: insert proper C++ library support
13494: ld_shlibs_CXX=no
13495: ;;
13496: *)
13497: # FIXME: insert proper C++ library support
13498: ld_shlibs_CXX=no
13499: ;;
13500: esac
13501: ;;
13502:
13503: solaris*)
13504: case $cc_basename in
13505: CC* | sunCC*)
13506: # Sun C++ 4.2, 5.x and Centerline C++
13507: archive_cmds_need_lc_CXX=yes
13508: no_undefined_flag_CXX=' -zdefs'
13509: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13510: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13511: $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'
13512:
13513: hardcode_libdir_flag_spec_CXX='-R$libdir'
13514: hardcode_shlibpath_var_CXX=no
13515: case $host_os in
13516: solaris2.[0-5] | solaris2.[0-5].*) ;;
13517: *)
13518: # The compiler driver will combine and reorder linker options,
13519: # but understands `-z linker_flag'.
13520: # Supported since Solaris 2.6 (maybe 2.5.1?)
13521: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13522: ;;
13523: esac
13524: link_all_deplibs_CXX=yes
13525:
13526: output_verbose_link_cmd='func_echo_all'
13527:
13528: # Archives containing C++ object files must be created using
13529: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13530: # necessary to make sure instantiated templates are included
13531: # in the archive.
13532: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13533: ;;
13534: gcx*)
13535: # Green Hills C++ Compiler
13536: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13537:
13538: # The C++ compiler must be used to create the archive.
13539: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13540: ;;
13541: *)
13542: # GNU C++ compiler with Solaris linker
13543: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13544: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13545: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13546: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13547: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13548: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13549:
13550: # Commands to make compiler produce verbose output that lists
13551: # what "hidden" libraries, object files and flags are used when
13552: # linking a shared library.
13553: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13554: else
13555: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13556: # platform.
13557: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13558: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13559: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13560:
13561: # Commands to make compiler produce verbose output that lists
13562: # what "hidden" libraries, object files and flags are used when
13563: # linking a shared library.
13564: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13565: fi
13566:
13567: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13568: case $host_os in
13569: solaris2.[0-5] | solaris2.[0-5].*) ;;
13570: *)
13571: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13572: ;;
13573: esac
13574: fi
13575: ;;
13576: esac
13577: ;;
13578:
13579: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13580: no_undefined_flag_CXX='${wl}-z,text'
13581: archive_cmds_need_lc_CXX=no
13582: hardcode_shlibpath_var_CXX=no
13583: runpath_var='LD_RUN_PATH'
13584:
13585: case $cc_basename in
13586: CC*)
13587: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13588: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13589: ;;
13590: *)
13591: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13592: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13593: ;;
13594: esac
13595: ;;
13596:
13597: sysv5* | sco3.2v5* | sco5v6*)
13598: # Note: We can NOT use -z defs as we might desire, because we do not
13599: # link with -lc, and that would cause any symbols used from libc to
13600: # always be unresolved, which means just about no library would
13601: # ever link correctly. If we're not using GNU ld we use -z text
13602: # though, which does catch some bad symbols but isn't as heavy-handed
13603: # as -z defs.
13604: no_undefined_flag_CXX='${wl}-z,text'
13605: allow_undefined_flag_CXX='${wl}-z,nodefs'
13606: archive_cmds_need_lc_CXX=no
13607: hardcode_shlibpath_var_CXX=no
13608: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13609: hardcode_libdir_separator_CXX=':'
13610: link_all_deplibs_CXX=yes
13611: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13612: runpath_var='LD_RUN_PATH'
13613:
13614: case $cc_basename in
13615: CC*)
13616: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13617: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13618: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13619: '"$old_archive_cmds_CXX"
13620: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13621: '"$reload_cmds_CXX"
13622: ;;
13623: *)
13624: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13625: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13626: ;;
13627: esac
13628: ;;
13629:
13630: tandem*)
13631: case $cc_basename in
13632: NCC*)
13633: # NonStop-UX NCC 3.20
13634: # FIXME: insert proper C++ library support
13635: ld_shlibs_CXX=no
13636: ;;
13637: *)
13638: # FIXME: insert proper C++ library support
13639: ld_shlibs_CXX=no
13640: ;;
13641: esac
13642: ;;
13643:
13644: vxworks*)
13645: # FIXME: insert proper C++ library support
13646: ld_shlibs_CXX=no
13647: ;;
13648:
13649: *)
13650: # FIXME: insert proper C++ library support
13651: ld_shlibs_CXX=no
13652: ;;
13653: esac
13654:
1.31 ! moko 13655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
! 13656: $as_echo "$ld_shlibs_CXX" >&6; }
1.23 moko 13657: test "$ld_shlibs_CXX" = no && can_build_shared=no
13658:
13659: GCC_CXX="$GXX"
13660: LD_CXX="$LD"
13661:
13662: ## CAVEAT EMPTOR:
13663: ## There is no encapsulation within the following macros, do not change
13664: ## the running order or otherwise move them around unless you know exactly
13665: ## what you are doing...
13666: # Dependencies to place before and after the object being linked:
13667: predep_objects_CXX=
13668: postdep_objects_CXX=
13669: predeps_CXX=
13670: postdeps_CXX=
13671: compiler_lib_search_path_CXX=
13672:
13673: cat > conftest.$ac_ext <<_LT_EOF
13674: class Foo
13675: {
13676: public:
13677: Foo (void) { a = 0; }
13678: private:
13679: int a;
13680: };
13681: _LT_EOF
13682:
13683:
13684: _lt_libdeps_save_CFLAGS=$CFLAGS
13685: case "$CC $CFLAGS " in #(
13686: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13687: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13688: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13689: esac
13690:
1.31 ! moko 13691: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 13692: (eval $ac_compile) 2>&5
13693: ac_status=$?
1.31 ! moko 13694: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 13695: test $ac_status = 0; }; then
1.23 moko 13696: # Parse the compiler output and extract the necessary
13697: # objects, libraries and library flags.
13698:
13699: # Sentinel used to keep track of whether or not we are before
13700: # the conftest object file.
13701: pre_test_object_deps_done=no
13702:
13703: for p in `eval "$output_verbose_link_cmd"`; do
13704: case ${prev}${p} in
13705:
13706: -L* | -R* | -l*)
13707: # Some compilers place space between "-{L,R}" and the path.
13708: # Remove the space.
13709: if test $p = "-L" ||
13710: test $p = "-R"; then
13711: prev=$p
13712: continue
13713: fi
13714:
13715: # Expand the sysroot to ease extracting the directories later.
13716: if test -z "$prev"; then
13717: case $p in
13718: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13719: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13720: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13721: esac
13722: fi
13723: case $p in
13724: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13725: esac
13726: if test "$pre_test_object_deps_done" = no; then
13727: case ${prev} in
13728: -L | -R)
13729: # Internal compiler library paths should come after those
13730: # provided the user. The postdeps already come after the
13731: # user supplied libs so there is no need to process them.
13732: if test -z "$compiler_lib_search_path_CXX"; then
13733: compiler_lib_search_path_CXX="${prev}${p}"
13734: else
13735: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13736: fi
13737: ;;
13738: # The "-l" case would never come before the object being
13739: # linked, so don't bother handling this case.
13740: esac
13741: else
13742: if test -z "$postdeps_CXX"; then
13743: postdeps_CXX="${prev}${p}"
13744: else
13745: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13746: fi
13747: fi
13748: prev=
13749: ;;
13750:
13751: *.lto.$objext) ;; # Ignore GCC LTO objects
13752: *.$objext)
13753: # This assumes that the test object file only shows up
13754: # once in the compiler output.
13755: if test "$p" = "conftest.$objext"; then
13756: pre_test_object_deps_done=yes
13757: continue
13758: fi
13759:
13760: if test "$pre_test_object_deps_done" = no; then
13761: if test -z "$predep_objects_CXX"; then
13762: predep_objects_CXX="$p"
13763: else
13764: predep_objects_CXX="$predep_objects_CXX $p"
13765: fi
13766: else
13767: if test -z "$postdep_objects_CXX"; then
13768: postdep_objects_CXX="$p"
13769: else
13770: postdep_objects_CXX="$postdep_objects_CXX $p"
13771: fi
13772: fi
13773: ;;
13774:
13775: *) ;; # Ignore the rest.
13776:
13777: esac
13778: done
13779:
13780: # Clean up.
13781: rm -f a.out a.exe
13782: else
13783: echo "libtool.m4: error: problem compiling CXX test program"
13784: fi
13785:
13786: $RM -f confest.$objext
13787: CFLAGS=$_lt_libdeps_save_CFLAGS
13788:
13789: # PORTME: override above test on systems where it is broken
13790: case $host_os in
13791: interix[3-9]*)
13792: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13793: # hack all around it, let's just trust "g++" to DTRT.
13794: predep_objects_CXX=
13795: postdep_objects_CXX=
13796: postdeps_CXX=
13797: ;;
13798:
13799: linux*)
13800: case `$CC -V 2>&1 | sed 5q` in
13801: *Sun\ C*)
13802: # Sun C++ 5.9
13803:
13804: # The more standards-conforming stlport4 library is
13805: # incompatible with the Cstd library. Avoid specifying
13806: # it if it's in CXXFLAGS. Ignore libCrun as
13807: # -library=stlport4 depends on it.
13808: case " $CXX $CXXFLAGS " in
13809: *" -library=stlport4 "*)
13810: solaris_use_stlport4=yes
13811: ;;
13812: esac
13813:
13814: if test "$solaris_use_stlport4" != yes; then
13815: postdeps_CXX='-library=Cstd -library=Crun'
13816: fi
13817: ;;
13818: esac
13819: ;;
13820:
13821: solaris*)
13822: case $cc_basename in
13823: CC* | sunCC*)
13824: # The more standards-conforming stlport4 library is
13825: # incompatible with the Cstd library. Avoid specifying
13826: # it if it's in CXXFLAGS. Ignore libCrun as
13827: # -library=stlport4 depends on it.
13828: case " $CXX $CXXFLAGS " in
13829: *" -library=stlport4 "*)
13830: solaris_use_stlport4=yes
13831: ;;
13832: esac
13833:
13834: # Adding this requires a known-good setup of shared libraries for
13835: # Sun compiler versions before 5.6, else PIC objects from an old
13836: # archive will be linked into the output, leading to subtle bugs.
13837: if test "$solaris_use_stlport4" != yes; then
13838: postdeps_CXX='-library=Cstd -library=Crun'
13839: fi
13840: ;;
13841: esac
13842: ;;
13843: esac
13844:
13845:
13846: case " $postdeps_CXX " in
13847: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13848: esac
13849: compiler_lib_search_dirs_CXX=
13850: if test -n "${compiler_lib_search_path_CXX}"; then
13851: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13852: fi
13853:
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: lt_prog_compiler_wl_CXX=
13885: lt_prog_compiler_pic_CXX=
13886: lt_prog_compiler_static_CXX=
13887:
13888:
13889: # C++ specific cases for pic, static, wl, etc.
13890: if test "$GXX" = yes; then
13891: lt_prog_compiler_wl_CXX='-Wl,'
13892: lt_prog_compiler_static_CXX='-static'
13893:
13894: case $host_os in
13895: aix*)
13896: # All AIX code is PIC.
13897: if test "$host_cpu" = ia64; then
13898: # AIX 5 now supports IA64 processor
13899: lt_prog_compiler_static_CXX='-Bstatic'
13900: fi
13901: ;;
13902:
13903: amigaos*)
13904: case $host_cpu in
13905: powerpc)
13906: # see comment about AmigaOS4 .so support
13907: lt_prog_compiler_pic_CXX='-fPIC'
13908: ;;
13909: m68k)
13910: # FIXME: we need at least 68020 code to build shared libraries, but
13911: # adding the `-m68020' flag to GCC prevents building anything better,
13912: # like `-m68040'.
13913: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13914: ;;
13915: esac
13916: ;;
13917:
13918: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13919: # PIC is the default for these OSes.
13920: ;;
13921: mingw* | cygwin* | os2* | pw32* | cegcc*)
13922: # This hack is so that the source file can tell whether it is being
13923: # built for inclusion in a dll (and should export symbols for example).
13924: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13925: # (--disable-auto-import) libraries
13926: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13927: ;;
13928: darwin* | rhapsody*)
13929: # PIC is the default on this platform
13930: # Common symbols not allowed in MH_DYLIB files
13931: lt_prog_compiler_pic_CXX='-fno-common'
13932: ;;
13933: *djgpp*)
13934: # DJGPP does not support shared libraries at all
13935: lt_prog_compiler_pic_CXX=
13936: ;;
13937: haiku*)
13938: # PIC is the default for Haiku.
13939: # The "-static" flag exists, but is broken.
13940: lt_prog_compiler_static_CXX=
13941: ;;
13942: interix[3-9]*)
13943: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13944: # Instead, we relocate shared libraries at runtime.
13945: ;;
13946: sysv4*MP*)
13947: if test -d /usr/nec; then
13948: lt_prog_compiler_pic_CXX=-Kconform_pic
13949: fi
13950: ;;
13951: hpux*)
13952: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13953: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13954: # sets the default TLS model and affects inlining.
13955: case $host_cpu in
13956: hppa*64*)
13957: ;;
13958: *)
13959: lt_prog_compiler_pic_CXX='-fPIC'
13960: ;;
13961: esac
13962: ;;
13963: *qnx* | *nto*)
13964: # QNX uses GNU C++, but need to define -shared option too, otherwise
13965: # it will coredump.
13966: lt_prog_compiler_pic_CXX='-fPIC -shared'
13967: ;;
13968: *)
13969: lt_prog_compiler_pic_CXX='-fPIC'
13970: ;;
13971: esac
13972: else
13973: case $host_os in
13974: aix[4-9]*)
13975: # All AIX code is PIC.
13976: if test "$host_cpu" = ia64; then
13977: # AIX 5 now supports IA64 processor
13978: lt_prog_compiler_static_CXX='-Bstatic'
13979: else
13980: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13981: fi
13982: ;;
13983: chorus*)
13984: case $cc_basename in
13985: cxch68*)
13986: # Green Hills C++ Compiler
13987: # _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"
13988: ;;
13989: esac
13990: ;;
13991: mingw* | cygwin* | os2* | pw32* | cegcc*)
13992: # This hack is so that the source file can tell whether it is being
13993: # built for inclusion in a dll (and should export symbols for example).
13994: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13995: ;;
13996: dgux*)
13997: case $cc_basename in
13998: ec++*)
13999: lt_prog_compiler_pic_CXX='-KPIC'
14000: ;;
14001: ghcx*)
14002: # Green Hills C++ Compiler
14003: lt_prog_compiler_pic_CXX='-pic'
14004: ;;
14005: *)
14006: ;;
14007: esac
14008: ;;
14009: freebsd* | dragonfly*)
14010: # FreeBSD uses GNU C++
14011: ;;
14012: hpux9* | hpux10* | hpux11*)
14013: case $cc_basename in
14014: CC*)
14015: lt_prog_compiler_wl_CXX='-Wl,'
14016: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14017: if test "$host_cpu" != ia64; then
14018: lt_prog_compiler_pic_CXX='+Z'
14019: fi
14020: ;;
14021: aCC*)
14022: lt_prog_compiler_wl_CXX='-Wl,'
14023: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14024: case $host_cpu in
14025: hppa*64*|ia64*)
14026: # +Z the default
14027: ;;
14028: *)
14029: lt_prog_compiler_pic_CXX='+Z'
14030: ;;
14031: esac
14032: ;;
14033: *)
14034: ;;
14035: esac
14036: ;;
14037: interix*)
14038: # This is c89, which is MS Visual C++ (no shared libs)
14039: # Anyone wants to do a port?
14040: ;;
14041: irix5* | irix6* | nonstopux*)
14042: case $cc_basename in
14043: CC*)
14044: lt_prog_compiler_wl_CXX='-Wl,'
14045: lt_prog_compiler_static_CXX='-non_shared'
14046: # CC pic flag -KPIC is the default.
14047: ;;
14048: *)
14049: ;;
14050: esac
14051: ;;
14052: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14053: case $cc_basename in
14054: KCC*)
14055: # KAI C++ Compiler
14056: lt_prog_compiler_wl_CXX='--backend -Wl,'
14057: lt_prog_compiler_pic_CXX='-fPIC'
14058: ;;
14059: ecpc* )
14060: # old Intel C++ for x86_64 which still supported -KPIC.
14061: lt_prog_compiler_wl_CXX='-Wl,'
14062: lt_prog_compiler_pic_CXX='-KPIC'
14063: lt_prog_compiler_static_CXX='-static'
14064: ;;
14065: icpc* )
14066: # Intel C++, used to be incompatible with GCC.
14067: # ICC 10 doesn't accept -KPIC any more.
14068: lt_prog_compiler_wl_CXX='-Wl,'
14069: lt_prog_compiler_pic_CXX='-fPIC'
14070: lt_prog_compiler_static_CXX='-static'
14071: ;;
14072: pgCC* | pgcpp*)
14073: # Portland Group C++ compiler
14074: lt_prog_compiler_wl_CXX='-Wl,'
14075: lt_prog_compiler_pic_CXX='-fpic'
14076: lt_prog_compiler_static_CXX='-Bstatic'
14077: ;;
14078: cxx*)
14079: # Compaq C++
14080: # Make sure the PIC flag is empty. It appears that all Alpha
14081: # Linux and Compaq Tru64 Unix objects are PIC.
14082: lt_prog_compiler_pic_CXX=
14083: lt_prog_compiler_static_CXX='-non_shared'
14084: ;;
14085: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14086: # IBM XL 8.0, 9.0 on PPC and BlueGene
14087: lt_prog_compiler_wl_CXX='-Wl,'
14088: lt_prog_compiler_pic_CXX='-qpic'
14089: lt_prog_compiler_static_CXX='-qstaticlink'
14090: ;;
14091: *)
14092: case `$CC -V 2>&1 | sed 5q` in
14093: *Sun\ C*)
14094: # Sun C++ 5.9
14095: lt_prog_compiler_pic_CXX='-KPIC'
14096: lt_prog_compiler_static_CXX='-Bstatic'
14097: lt_prog_compiler_wl_CXX='-Qoption ld '
14098: ;;
14099: esac
14100: ;;
14101: esac
14102: ;;
14103: lynxos*)
14104: ;;
14105: m88k*)
14106: ;;
14107: mvs*)
14108: case $cc_basename in
14109: cxx*)
14110: lt_prog_compiler_pic_CXX='-W c,exportall'
14111: ;;
14112: *)
14113: ;;
14114: esac
14115: ;;
14116: netbsd*)
14117: ;;
14118: *qnx* | *nto*)
14119: # QNX uses GNU C++, but need to define -shared option too, otherwise
14120: # it will coredump.
14121: lt_prog_compiler_pic_CXX='-fPIC -shared'
14122: ;;
14123: osf3* | osf4* | osf5*)
14124: case $cc_basename in
14125: KCC*)
14126: lt_prog_compiler_wl_CXX='--backend -Wl,'
14127: ;;
14128: RCC*)
14129: # Rational C++ 2.4.1
14130: lt_prog_compiler_pic_CXX='-pic'
14131: ;;
14132: cxx*)
14133: # Digital/Compaq C++
14134: lt_prog_compiler_wl_CXX='-Wl,'
14135: # Make sure the PIC flag is empty. It appears that all Alpha
14136: # Linux and Compaq Tru64 Unix objects are PIC.
14137: lt_prog_compiler_pic_CXX=
14138: lt_prog_compiler_static_CXX='-non_shared'
14139: ;;
14140: *)
14141: ;;
14142: esac
14143: ;;
14144: psos*)
14145: ;;
14146: solaris*)
14147: case $cc_basename in
14148: CC* | sunCC*)
14149: # Sun C++ 4.2, 5.x and Centerline C++
14150: lt_prog_compiler_pic_CXX='-KPIC'
14151: lt_prog_compiler_static_CXX='-Bstatic'
14152: lt_prog_compiler_wl_CXX='-Qoption ld '
14153: ;;
14154: gcx*)
14155: # Green Hills C++ Compiler
14156: lt_prog_compiler_pic_CXX='-PIC'
14157: ;;
14158: *)
14159: ;;
14160: esac
14161: ;;
14162: sunos4*)
14163: case $cc_basename in
14164: CC*)
14165: # Sun C++ 4.x
14166: lt_prog_compiler_pic_CXX='-pic'
14167: lt_prog_compiler_static_CXX='-Bstatic'
14168: ;;
14169: lcc*)
14170: # Lucid
14171: lt_prog_compiler_pic_CXX='-pic'
14172: ;;
14173: *)
14174: ;;
14175: esac
14176: ;;
14177: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14178: case $cc_basename in
14179: CC*)
14180: lt_prog_compiler_wl_CXX='-Wl,'
14181: lt_prog_compiler_pic_CXX='-KPIC'
14182: lt_prog_compiler_static_CXX='-Bstatic'
14183: ;;
14184: esac
14185: ;;
14186: tandem*)
14187: case $cc_basename in
14188: NCC*)
14189: # NonStop-UX NCC 3.20
14190: lt_prog_compiler_pic_CXX='-KPIC'
14191: ;;
14192: *)
14193: ;;
14194: esac
14195: ;;
14196: vxworks*)
14197: ;;
14198: *)
14199: lt_prog_compiler_can_build_shared_CXX=no
14200: ;;
14201: esac
14202: fi
14203:
14204: case $host_os in
14205: # For platforms which do not support PIC, -DPIC is meaningless:
14206: *djgpp*)
14207: lt_prog_compiler_pic_CXX=
14208: ;;
14209: *)
14210: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14211: ;;
14212: esac
14213:
1.31 ! moko 14214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 14215: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
! 14216: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
! 14217: $as_echo_n "(cached) " >&6
1.23 moko 14218: else
14219: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14220: fi
1.31 ! moko 14221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
! 14222: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.23 moko 14223: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14224:
14225: #
14226: # Check to make sure the PIC flag actually works.
14227: #
14228: if test -n "$lt_prog_compiler_pic_CXX"; then
1.31 ! moko 14229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 14230: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
! 14231: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
! 14232: $as_echo_n "(cached) " >&6
1.23 moko 14233: else
14234: lt_cv_prog_compiler_pic_works_CXX=no
14235: ac_outfile=conftest.$ac_objext
14236: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14237: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14238: # Insert the option either (1) after the last *FLAGS variable, or
14239: # (2) before a word containing "conftest.", or (3) at the end.
14240: # Note that $ac_compile itself does not contain backslashes and begins
14241: # with a dollar sign (not a hyphen), so the echo should work correctly.
14242: # The option is referenced via a variable to avoid confusing sed.
14243: lt_compile=`echo "$ac_compile" | $SED \
14244: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14245: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14246: -e 's:$: $lt_compiler_flag:'`
14247: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14248: (eval "$lt_compile" 2>conftest.err)
14249: ac_status=$?
14250: cat conftest.err >&5
14251: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252: if (exit $ac_status) && test -s "$ac_outfile"; then
14253: # The compiler can only warn and ignore the option if not recognized
14254: # So say no if there are warnings other than the usual output.
14255: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14256: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14257: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14258: lt_cv_prog_compiler_pic_works_CXX=yes
14259: fi
14260: fi
14261: $RM conftest*
14262:
14263: fi
1.31 ! moko 14264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
! 14265: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.23 moko 14266:
14267: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14268: case $lt_prog_compiler_pic_CXX in
14269: "" | " "*) ;;
14270: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14271: esac
14272: else
14273: lt_prog_compiler_pic_CXX=
14274: lt_prog_compiler_can_build_shared_CXX=no
14275: fi
14276:
14277: fi
14278:
14279:
14280:
14281:
14282:
14283: #
14284: # Check to make sure the static flag actually works.
14285: #
14286: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.31 ! moko 14287: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 14288: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 14289: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
! 14290: $as_echo_n "(cached) " >&6
1.23 moko 14291: else
14292: lt_cv_prog_compiler_static_works_CXX=no
14293: save_LDFLAGS="$LDFLAGS"
14294: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14295: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14296: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14297: # The linker can only warn and ignore the option if not recognized
14298: # So say no if there are warnings
14299: if test -s conftest.err; then
14300: # Append any errors to the config.log.
14301: cat conftest.err 1>&5
14302: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14303: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14304: if diff conftest.exp conftest.er2 >/dev/null; then
14305: lt_cv_prog_compiler_static_works_CXX=yes
14306: fi
14307: else
14308: lt_cv_prog_compiler_static_works_CXX=yes
14309: fi
14310: fi
14311: $RM -r conftest*
14312: LDFLAGS="$save_LDFLAGS"
14313:
14314: fi
1.31 ! moko 14315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
! 14316: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.23 moko 14317:
14318: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14319: :
14320: else
14321: lt_prog_compiler_static_CXX=
14322: fi
14323:
14324:
14325:
14326:
1.31 ! moko 14327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 14328: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 14329: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
! 14330: $as_echo_n "(cached) " >&6
1.23 moko 14331: else
14332: lt_cv_prog_compiler_c_o_CXX=no
14333: $RM -r conftest 2>/dev/null
14334: mkdir conftest
14335: cd conftest
14336: mkdir out
14337: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14338:
14339: lt_compiler_flag="-o out/conftest2.$ac_objext"
14340: # Insert the option either (1) after the last *FLAGS variable, or
14341: # (2) before a word containing "conftest.", or (3) at the end.
14342: # Note that $ac_compile itself does not contain backslashes and begins
14343: # with a dollar sign (not a hyphen), so the echo should work correctly.
14344: lt_compile=`echo "$ac_compile" | $SED \
14345: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14346: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14347: -e 's:$: $lt_compiler_flag:'`
14348: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14349: (eval "$lt_compile" 2>out/conftest.err)
14350: ac_status=$?
14351: cat out/conftest.err >&5
14352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14354: then
14355: # The compiler can only warn and ignore the option if not recognized
14356: # So say no if there are warnings
14357: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14358: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14359: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14360: lt_cv_prog_compiler_c_o_CXX=yes
14361: fi
14362: fi
14363: chmod u+w . 2>&5
14364: $RM conftest*
14365: # SGI C++ compiler will create directory out/ii_files/ for
14366: # template instantiation
14367: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14368: $RM out/* && rmdir out
14369: cd ..
14370: $RM -r conftest
14371: $RM conftest*
14372:
14373: fi
1.31 ! moko 14374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 14375: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.23 moko 14376:
14377:
14378:
1.31 ! moko 14379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 14380: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 14381: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
! 14382: $as_echo_n "(cached) " >&6
1.23 moko 14383: else
14384: lt_cv_prog_compiler_c_o_CXX=no
14385: $RM -r conftest 2>/dev/null
14386: mkdir conftest
14387: cd conftest
14388: mkdir out
14389: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14390:
14391: lt_compiler_flag="-o out/conftest2.$ac_objext"
14392: # Insert the option either (1) after the last *FLAGS variable, or
14393: # (2) before a word containing "conftest.", or (3) at the end.
14394: # Note that $ac_compile itself does not contain backslashes and begins
14395: # with a dollar sign (not a hyphen), so the echo should work correctly.
14396: lt_compile=`echo "$ac_compile" | $SED \
14397: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14398: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14399: -e 's:$: $lt_compiler_flag:'`
14400: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14401: (eval "$lt_compile" 2>out/conftest.err)
14402: ac_status=$?
14403: cat out/conftest.err >&5
14404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14406: then
14407: # The compiler can only warn and ignore the option if not recognized
14408: # So say no if there are warnings
14409: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14410: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14411: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14412: lt_cv_prog_compiler_c_o_CXX=yes
14413: fi
14414: fi
14415: chmod u+w . 2>&5
14416: $RM conftest*
14417: # SGI C++ compiler will create directory out/ii_files/ for
14418: # template instantiation
14419: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14420: $RM out/* && rmdir out
14421: cd ..
14422: $RM -r conftest
14423: $RM conftest*
14424:
14425: fi
1.31 ! moko 14426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 14427: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.23 moko 14428:
14429:
14430:
14431:
14432: hard_links="nottested"
14433: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14434: # do not overwrite the value of need_locks provided by the user
1.31 ! moko 14435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
! 14436: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.23 moko 14437: hard_links=yes
14438: $RM conftest*
14439: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14440: touch conftest.a
14441: ln conftest.a conftest.b 2>&5 || hard_links=no
14442: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.31 ! moko 14443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
! 14444: $as_echo "$hard_links" >&6; }
1.23 moko 14445: if test "$hard_links" = no; then
1.31 ! moko 14446: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 14447: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.23 moko 14448: need_locks=warn
14449: fi
14450: else
14451: need_locks=no
14452: fi
14453:
14454:
14455:
1.31 ! moko 14456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 14457: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.23 moko 14458:
14459: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14460: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14461: case $host_os in
14462: aix[4-9]*)
14463: # If we're using GNU nm, then we don't want the "-C" option.
14464: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14465: # Also, AIX nm treats weak defined symbols like other global defined
14466: # symbols, whereas GNU nm marks them as "W".
14467: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14468: 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'
14469: else
14470: 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'
14471: fi
14472: ;;
14473: pw32*)
14474: export_symbols_cmds_CXX="$ltdll_cmds"
14475: ;;
14476: cygwin* | mingw* | cegcc*)
14477: case $cc_basename in
14478: cl*)
14479: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14480: ;;
14481: *)
14482: 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'
14483: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14484: ;;
14485: esac
14486: ;;
14487: *)
14488: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14489: ;;
14490: esac
14491:
1.31 ! moko 14492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
! 14493: $as_echo "$ld_shlibs_CXX" >&6; }
1.23 moko 14494: test "$ld_shlibs_CXX" = no && can_build_shared=no
14495:
14496: with_gnu_ld_CXX=$with_gnu_ld
14497:
14498:
14499:
14500:
14501:
14502:
14503: #
14504: # Do we need to explicitly link libc?
14505: #
14506: case "x$archive_cmds_need_lc_CXX" in
14507: x|xyes)
14508: # Assume -lc should be added
14509: archive_cmds_need_lc_CXX=yes
14510:
14511: if test "$enable_shared" = yes && test "$GCC" = yes; then
14512: case $archive_cmds_CXX in
14513: *'~'*)
14514: # FIXME: we may have to deal with multi-command sequences.
14515: ;;
14516: '$CC '*)
14517: # Test whether the compiler implicitly links with -lc since on some
14518: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14519: # to ld, don't add -lc before -lgcc.
1.31 ! moko 14520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
! 14521: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
! 14522: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
! 14523: $as_echo_n "(cached) " >&6
1.23 moko 14524: else
14525: $RM conftest*
14526: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14527:
1.31 ! moko 14528: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 14529: (eval $ac_compile) 2>&5
14530: ac_status=$?
1.31 ! moko 14531: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 14532: test $ac_status = 0; } 2>conftest.err; then
1.23 moko 14533: soname=conftest
14534: lib=conftest
14535: libobjs=conftest.$ac_objext
14536: deplibs=
14537: wl=$lt_prog_compiler_wl_CXX
14538: pic_flag=$lt_prog_compiler_pic_CXX
14539: compiler_flags=-v
14540: linker_flags=-v
14541: verstring=
14542: output_objdir=.
14543: libname=conftest
14544: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14545: allow_undefined_flag_CXX=
1.31 ! moko 14546: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.23 moko 14547: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14548: ac_status=$?
1.31 ! moko 14549: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 14550: test $ac_status = 0; }
1.23 moko 14551: then
14552: lt_cv_archive_cmds_need_lc_CXX=no
14553: else
14554: lt_cv_archive_cmds_need_lc_CXX=yes
14555: fi
14556: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14557: else
14558: cat conftest.err 1>&5
14559: fi
14560: $RM conftest*
14561:
14562: fi
1.31 ! moko 14563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
! 14564: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.23 moko 14565: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14566: ;;
14567: esac
14568: fi
14569: ;;
14570: esac
14571:
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:
1.31 ! moko 14633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
! 14634: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.23 moko 14635:
14636: library_names_spec=
14637: libname_spec='lib$name'
14638: soname_spec=
14639: shrext_cmds=".so"
14640: postinstall_cmds=
14641: postuninstall_cmds=
14642: finish_cmds=
14643: finish_eval=
14644: shlibpath_var=
14645: shlibpath_overrides_runpath=unknown
14646: version_type=none
14647: dynamic_linker="$host_os ld.so"
14648: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14649: need_lib_prefix=unknown
14650: hardcode_into_libs=no
14651:
14652: # when you set need_version to no, make sure it does not cause -set_version
14653: # flags to be left without arguments
14654: need_version=unknown
14655:
14656: case $host_os in
14657: aix3*)
14658: version_type=linux # correct to gnu/linux during the next big refactor
14659: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14660: shlibpath_var=LIBPATH
14661:
14662: # AIX 3 has no versioning support, so we append a major version to the name.
14663: soname_spec='${libname}${release}${shared_ext}$major'
14664: ;;
14665:
14666: aix[4-9]*)
14667: version_type=linux # correct to gnu/linux during the next big refactor
14668: need_lib_prefix=no
14669: need_version=no
14670: hardcode_into_libs=yes
14671: if test "$host_cpu" = ia64; then
14672: # AIX 5 supports IA64
14673: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14674: shlibpath_var=LD_LIBRARY_PATH
14675: else
14676: # With GCC up to 2.95.x, collect2 would create an import file
14677: # for dependence libraries. The import file would start with
14678: # the line `#! .'. This would cause the generated library to
14679: # depend on `.', always an invalid library. This was fixed in
14680: # development snapshots of GCC prior to 3.0.
14681: case $host_os in
14682: aix4 | aix4.[01] | aix4.[01].*)
14683: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14684: echo ' yes '
14685: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14686: :
14687: else
14688: can_build_shared=no
14689: fi
14690: ;;
14691: esac
14692: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14693: # soname into executable. Probably we can add versioning support to
14694: # collect2, so additional links can be useful in future.
14695: if test "$aix_use_runtimelinking" = yes; then
14696: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14697: # instead of lib<name>.a to let people know that these are not
14698: # typical AIX shared libraries.
14699: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700: else
14701: # We preserve .a as extension for shared libraries through AIX4.2
14702: # and later when we are not doing run time linking.
14703: library_names_spec='${libname}${release}.a $libname.a'
14704: soname_spec='${libname}${release}${shared_ext}$major'
14705: fi
14706: shlibpath_var=LIBPATH
14707: fi
14708: ;;
14709:
14710: amigaos*)
14711: case $host_cpu in
14712: powerpc)
14713: # Since July 2007 AmigaOS4 officially supports .so libraries.
14714: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14715: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716: ;;
14717: m68k)
14718: library_names_spec='$libname.ixlibrary $libname.a'
14719: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14720: 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'
14721: ;;
14722: esac
14723: ;;
14724:
14725: beos*)
14726: library_names_spec='${libname}${shared_ext}'
14727: dynamic_linker="$host_os ld.so"
14728: shlibpath_var=LIBRARY_PATH
14729: ;;
14730:
14731: bsdi[45]*)
14732: version_type=linux # correct to gnu/linux during the next big refactor
14733: need_version=no
14734: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735: soname_spec='${libname}${release}${shared_ext}$major'
14736: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14737: shlibpath_var=LD_LIBRARY_PATH
14738: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14739: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14740: # the default ld.so.conf also contains /usr/contrib/lib and
14741: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14742: # libtool to hard-code these into programs
14743: ;;
14744:
14745: cygwin* | mingw* | pw32* | cegcc*)
14746: version_type=windows
14747: shrext_cmds=".dll"
14748: need_version=no
14749: need_lib_prefix=no
14750:
14751: case $GCC,$cc_basename in
14752: yes,*)
14753: # gcc
14754: library_names_spec='$libname.dll.a'
14755: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14756: postinstall_cmds='base_file=`basename \${file}`~
14757: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14758: dldir=$destdir/`dirname \$dlpath`~
14759: test -d \$dldir || mkdir -p \$dldir~
14760: $install_prog $dir/$dlname \$dldir/$dlname~
14761: chmod a+x \$dldir/$dlname~
14762: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14763: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14764: fi'
14765: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14766: dlpath=$dir/\$dldll~
14767: $RM \$dlpath'
14768: shlibpath_overrides_runpath=yes
14769:
14770: case $host_os in
14771: cygwin*)
14772: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14773: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14774:
14775: ;;
14776: mingw* | cegcc*)
14777: # MinGW DLLs use traditional 'lib' prefix
14778: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14779: ;;
14780: pw32*)
14781: # pw32 DLLs use 'pw' prefix rather than 'lib'
14782: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14783: ;;
14784: esac
14785: dynamic_linker='Win32 ld.exe'
14786: ;;
14787:
14788: *,cl*)
14789: # Native MSVC
14790: libname_spec='$name'
14791: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14792: library_names_spec='${libname}.dll.lib'
14793:
14794: case $build_os in
14795: mingw*)
14796: sys_lib_search_path_spec=
14797: lt_save_ifs=$IFS
14798: IFS=';'
14799: for lt_path in $LIB
14800: do
14801: IFS=$lt_save_ifs
14802: # Let DOS variable expansion print the short 8.3 style file name.
14803: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14804: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14805: done
14806: IFS=$lt_save_ifs
14807: # Convert to MSYS style.
14808: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14809: ;;
14810: cygwin*)
14811: # Convert to unix form, then to dos form, then back to unix form
14812: # but this time dos style (no spaces!) so that the unix form looks
14813: # like /cygdrive/c/PROGRA~1:/cygdr...
14814: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14815: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14816: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14817: ;;
14818: *)
14819: sys_lib_search_path_spec="$LIB"
14820: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14821: # It is most probably a Windows format PATH.
14822: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14823: else
14824: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14825: fi
14826: # FIXME: find the short name or the path components, as spaces are
14827: # common. (e.g. "Program Files" -> "PROGRA~1")
14828: ;;
14829: esac
14830:
14831: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14832: postinstall_cmds='base_file=`basename \${file}`~
14833: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14834: dldir=$destdir/`dirname \$dlpath`~
14835: test -d \$dldir || mkdir -p \$dldir~
14836: $install_prog $dir/$dlname \$dldir/$dlname'
14837: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14838: dlpath=$dir/\$dldll~
14839: $RM \$dlpath'
14840: shlibpath_overrides_runpath=yes
14841: dynamic_linker='Win32 link.exe'
14842: ;;
14843:
14844: *)
14845: # Assume MSVC wrapper
14846: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14847: dynamic_linker='Win32 ld.exe'
14848: ;;
14849: esac
14850: # FIXME: first we should search . and the directory the executable is in
14851: shlibpath_var=PATH
14852: ;;
14853:
14854: darwin* | rhapsody*)
14855: dynamic_linker="$host_os dyld"
14856: version_type=darwin
14857: need_lib_prefix=no
14858: need_version=no
14859: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14860: soname_spec='${libname}${release}${major}$shared_ext'
14861: shlibpath_overrides_runpath=yes
14862: shlibpath_var=DYLD_LIBRARY_PATH
14863: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14864:
14865: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14866: ;;
14867:
14868: dgux*)
14869: version_type=linux # correct to gnu/linux during the next big refactor
14870: need_lib_prefix=no
14871: need_version=no
14872: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14873: soname_spec='${libname}${release}${shared_ext}$major'
14874: shlibpath_var=LD_LIBRARY_PATH
14875: ;;
14876:
14877: freebsd* | dragonfly*)
14878: # DragonFly does not have aout. When/if they implement a new
14879: # versioning mechanism, adjust this.
14880: if test -x /usr/bin/objformat; then
14881: objformat=`/usr/bin/objformat`
14882: else
14883: case $host_os in
14884: freebsd[23].*) objformat=aout ;;
14885: *) objformat=elf ;;
14886: esac
14887: fi
14888: version_type=freebsd-$objformat
14889: case $version_type in
14890: freebsd-elf*)
14891: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14892: need_version=no
14893: need_lib_prefix=no
14894: ;;
14895: freebsd-*)
14896: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14897: need_version=yes
14898: ;;
14899: esac
14900: shlibpath_var=LD_LIBRARY_PATH
14901: case $host_os in
14902: freebsd2.*)
14903: shlibpath_overrides_runpath=yes
14904: ;;
14905: freebsd3.[01]* | freebsdelf3.[01]*)
14906: shlibpath_overrides_runpath=yes
14907: hardcode_into_libs=yes
14908: ;;
14909: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14910: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14911: shlibpath_overrides_runpath=no
14912: hardcode_into_libs=yes
14913: ;;
14914: *) # from 4.6 on, and DragonFly
14915: shlibpath_overrides_runpath=yes
14916: hardcode_into_libs=yes
14917: ;;
14918: esac
14919: ;;
14920:
14921: gnu*)
14922: version_type=linux # correct to gnu/linux during the next big refactor
14923: need_lib_prefix=no
14924: need_version=no
14925: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14926: soname_spec='${libname}${release}${shared_ext}$major'
14927: shlibpath_var=LD_LIBRARY_PATH
14928: shlibpath_overrides_runpath=no
14929: hardcode_into_libs=yes
14930: ;;
14931:
14932: haiku*)
14933: version_type=linux # correct to gnu/linux during the next big refactor
14934: need_lib_prefix=no
14935: need_version=no
14936: dynamic_linker="$host_os runtime_loader"
14937: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14938: soname_spec='${libname}${release}${shared_ext}$major'
14939: shlibpath_var=LIBRARY_PATH
14940: shlibpath_overrides_runpath=yes
14941: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14942: hardcode_into_libs=yes
14943: ;;
14944:
14945: hpux9* | hpux10* | hpux11*)
14946: # Give a soname corresponding to the major version so that dld.sl refuses to
14947: # link against other versions.
14948: version_type=sunos
14949: need_lib_prefix=no
14950: need_version=no
14951: case $host_cpu in
14952: ia64*)
14953: shrext_cmds='.so'
14954: hardcode_into_libs=yes
14955: dynamic_linker="$host_os dld.so"
14956: shlibpath_var=LD_LIBRARY_PATH
14957: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14958: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959: soname_spec='${libname}${release}${shared_ext}$major'
14960: if test "X$HPUX_IA64_MODE" = X32; then
14961: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14962: else
14963: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14964: fi
14965: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14966: ;;
14967: hppa*64*)
14968: shrext_cmds='.sl'
14969: hardcode_into_libs=yes
14970: dynamic_linker="$host_os dld.sl"
14971: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14972: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14973: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974: soname_spec='${libname}${release}${shared_ext}$major'
14975: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14976: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14977: ;;
14978: *)
14979: shrext_cmds='.sl'
14980: dynamic_linker="$host_os dld.sl"
14981: shlibpath_var=SHLIB_PATH
14982: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14983: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14984: soname_spec='${libname}${release}${shared_ext}$major'
14985: ;;
14986: esac
14987: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14988: postinstall_cmds='chmod 555 $lib'
14989: # or fails outright, so override atomically:
14990: install_override_mode=555
14991: ;;
14992:
14993: interix[3-9]*)
14994: version_type=linux # correct to gnu/linux during the next big refactor
14995: need_lib_prefix=no
14996: need_version=no
14997: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14998: soname_spec='${libname}${release}${shared_ext}$major'
14999: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15000: shlibpath_var=LD_LIBRARY_PATH
15001: shlibpath_overrides_runpath=no
15002: hardcode_into_libs=yes
15003: ;;
15004:
15005: irix5* | irix6* | nonstopux*)
15006: case $host_os in
15007: nonstopux*) version_type=nonstopux ;;
15008: *)
15009: if test "$lt_cv_prog_gnu_ld" = yes; then
15010: version_type=linux # correct to gnu/linux during the next big refactor
15011: else
15012: version_type=irix
15013: fi ;;
15014: esac
15015: need_lib_prefix=no
15016: need_version=no
15017: soname_spec='${libname}${release}${shared_ext}$major'
15018: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15019: case $host_os in
15020: irix5* | nonstopux*)
15021: libsuff= shlibsuff=
15022: ;;
15023: *)
15024: case $LD in # libtool.m4 will add one of these switches to LD
15025: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15026: libsuff= shlibsuff= libmagic=32-bit;;
15027: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15028: libsuff=32 shlibsuff=N32 libmagic=N32;;
15029: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15030: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15031: *) libsuff= shlibsuff= libmagic=never-match;;
15032: esac
15033: ;;
15034: esac
15035: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15036: shlibpath_overrides_runpath=no
15037: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15038: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15039: hardcode_into_libs=yes
15040: ;;
15041:
15042: # No shared lib support for Linux oldld, aout, or coff.
15043: linux*oldld* | linux*aout* | linux*coff*)
15044: dynamic_linker=no
15045: ;;
15046:
15047: # This must be glibc/ELF.
15048: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15049: version_type=linux # correct to gnu/linux during the next big refactor
15050: need_lib_prefix=no
15051: need_version=no
15052: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15053: soname_spec='${libname}${release}${shared_ext}$major'
15054: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15055: shlibpath_var=LD_LIBRARY_PATH
15056: shlibpath_overrides_runpath=no
15057:
15058: # Some binutils ld are patched to set DT_RUNPATH
1.31 ! moko 15059: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
! 15060: $as_echo_n "(cached) " >&6
1.23 moko 15061: else
15062: lt_cv_shlibpath_overrides_runpath=no
15063: save_LDFLAGS=$LDFLAGS
15064: save_libdir=$libdir
15065: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15066: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.31 ! moko 15067: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15068: /* end confdefs.h. */
15069:
15070: int
15071: main ()
15072: {
15073:
15074: ;
15075: return 0;
15076: }
15077: _ACEOF
1.31 ! moko 15078: if ac_fn_cxx_try_link "$LINENO"; then :
! 15079: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.23 moko 15080: lt_cv_shlibpath_overrides_runpath=yes
15081: fi
15082: fi
1.31 ! moko 15083: rm -f core conftest.err conftest.$ac_objext \
! 15084: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15085: LDFLAGS=$save_LDFLAGS
15086: libdir=$save_libdir
15087:
15088: fi
15089:
15090: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15091:
15092: # This implies no fast_install, which is unacceptable.
15093: # Some rework will be needed to allow for fast_install
15094: # before this can be enabled.
15095: hardcode_into_libs=yes
15096:
15097: # Append ld.so.conf contents to the search path
15098: if test -f /etc/ld.so.conf; then
15099: 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' ' '`
15100: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15101: fi
15102:
15103: # We used to test for /lib/ld.so.1 and disable shared libraries on
15104: # powerpc, because MkLinux only supported shared libraries with the
15105: # GNU dynamic linker. Since this was broken with cross compilers,
15106: # most powerpc-linux boxes support dynamic linking these days and
15107: # people can always --disable-shared, the test was removed, and we
15108: # assume the GNU/Linux dynamic linker is in use.
15109: dynamic_linker='GNU/Linux ld.so'
15110: ;;
15111:
15112: netbsd*)
15113: version_type=sunos
15114: need_lib_prefix=no
15115: need_version=no
15116: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15117: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15118: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15119: dynamic_linker='NetBSD (a.out) ld.so'
15120: else
15121: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15122: soname_spec='${libname}${release}${shared_ext}$major'
15123: dynamic_linker='NetBSD ld.elf_so'
15124: fi
15125: shlibpath_var=LD_LIBRARY_PATH
15126: shlibpath_overrides_runpath=yes
15127: hardcode_into_libs=yes
15128: ;;
15129:
15130: newsos6)
15131: version_type=linux # correct to gnu/linux during the next big refactor
15132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133: shlibpath_var=LD_LIBRARY_PATH
15134: shlibpath_overrides_runpath=yes
15135: ;;
15136:
15137: *nto* | *qnx*)
15138: version_type=qnx
15139: need_lib_prefix=no
15140: need_version=no
15141: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142: soname_spec='${libname}${release}${shared_ext}$major'
15143: shlibpath_var=LD_LIBRARY_PATH
15144: shlibpath_overrides_runpath=no
15145: hardcode_into_libs=yes
15146: dynamic_linker='ldqnx.so'
15147: ;;
15148:
15149: openbsd*)
15150: version_type=sunos
15151: sys_lib_dlsearch_path_spec="/usr/lib"
15152: need_lib_prefix=no
15153: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15154: case $host_os in
15155: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15156: *) need_version=no ;;
15157: esac
15158: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15159: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15160: shlibpath_var=LD_LIBRARY_PATH
15161: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15162: case $host_os in
15163: openbsd2.[89] | openbsd2.[89].*)
15164: shlibpath_overrides_runpath=no
15165: ;;
15166: *)
15167: shlibpath_overrides_runpath=yes
15168: ;;
15169: esac
15170: else
15171: shlibpath_overrides_runpath=yes
15172: fi
15173: ;;
15174:
15175: os2*)
15176: libname_spec='$name'
15177: shrext_cmds=".dll"
15178: need_lib_prefix=no
15179: library_names_spec='$libname${shared_ext} $libname.a'
15180: dynamic_linker='OS/2 ld.exe'
15181: shlibpath_var=LIBPATH
15182: ;;
15183:
15184: osf3* | osf4* | osf5*)
15185: version_type=osf
15186: need_lib_prefix=no
15187: need_version=no
15188: soname_spec='${libname}${release}${shared_ext}$major'
15189: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15190: shlibpath_var=LD_LIBRARY_PATH
15191: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15192: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15193: ;;
15194:
15195: rdos*)
15196: dynamic_linker=no
15197: ;;
15198:
15199: solaris*)
15200: version_type=linux # correct to gnu/linux during the next big refactor
15201: need_lib_prefix=no
15202: need_version=no
15203: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204: soname_spec='${libname}${release}${shared_ext}$major'
15205: shlibpath_var=LD_LIBRARY_PATH
15206: shlibpath_overrides_runpath=yes
15207: hardcode_into_libs=yes
15208: # ldd complains unless libraries are executable
15209: postinstall_cmds='chmod +x $lib'
15210: ;;
15211:
15212: sunos4*)
15213: version_type=sunos
15214: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15215: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15216: shlibpath_var=LD_LIBRARY_PATH
15217: shlibpath_overrides_runpath=yes
15218: if test "$with_gnu_ld" = yes; then
15219: need_lib_prefix=no
15220: fi
15221: need_version=yes
15222: ;;
15223:
15224: sysv4 | sysv4.3*)
15225: version_type=linux # correct to gnu/linux during the next big refactor
15226: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227: soname_spec='${libname}${release}${shared_ext}$major'
15228: shlibpath_var=LD_LIBRARY_PATH
15229: case $host_vendor in
15230: sni)
15231: shlibpath_overrides_runpath=no
15232: need_lib_prefix=no
15233: runpath_var=LD_RUN_PATH
15234: ;;
15235: siemens)
15236: need_lib_prefix=no
15237: ;;
15238: motorola)
15239: need_lib_prefix=no
15240: need_version=no
15241: shlibpath_overrides_runpath=no
15242: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15243: ;;
15244: esac
15245: ;;
15246:
15247: sysv4*MP*)
15248: if test -d /usr/nec ;then
15249: version_type=linux # correct to gnu/linux during the next big refactor
15250: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15251: soname_spec='$libname${shared_ext}.$major'
15252: shlibpath_var=LD_LIBRARY_PATH
15253: fi
15254: ;;
15255:
15256: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15257: version_type=freebsd-elf
15258: need_lib_prefix=no
15259: need_version=no
15260: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15261: soname_spec='${libname}${release}${shared_ext}$major'
15262: shlibpath_var=LD_LIBRARY_PATH
15263: shlibpath_overrides_runpath=yes
15264: hardcode_into_libs=yes
15265: if test "$with_gnu_ld" = yes; then
15266: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15267: else
15268: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15269: case $host_os in
15270: sco3.2v5*)
15271: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15272: ;;
15273: esac
15274: fi
15275: sys_lib_dlsearch_path_spec='/usr/lib'
15276: ;;
15277:
15278: tpf*)
15279: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15280: version_type=linux # correct to gnu/linux during the next big refactor
15281: need_lib_prefix=no
15282: need_version=no
15283: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284: shlibpath_var=LD_LIBRARY_PATH
15285: shlibpath_overrides_runpath=no
15286: hardcode_into_libs=yes
15287: ;;
15288:
15289: uts4*)
15290: version_type=linux # correct to gnu/linux during the next big refactor
15291: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292: soname_spec='${libname}${release}${shared_ext}$major'
15293: shlibpath_var=LD_LIBRARY_PATH
15294: ;;
15295:
15296: *)
15297: dynamic_linker=no
15298: ;;
15299: esac
1.31 ! moko 15300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
! 15301: $as_echo "$dynamic_linker" >&6; }
1.23 moko 15302: test "$dynamic_linker" = no && can_build_shared=no
15303:
15304: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15305: if test "$GCC" = yes; then
15306: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15307: fi
15308:
15309: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15310: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15311: fi
15312: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15313: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15314: fi
15315:
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:
1.31 ! moko 15353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
! 15354: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.23 moko 15355: hardcode_action_CXX=
15356: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15357: test -n "$runpath_var_CXX" ||
15358: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15359:
15360: # We can hardcode non-existent directories.
15361: if test "$hardcode_direct_CXX" != no &&
15362: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15363: # have to relink, otherwise we might link with an installed library
15364: # when we should be linking with a yet-to-be-installed one
15365: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15366: test "$hardcode_minus_L_CXX" != no; then
15367: # Linking always hardcodes the temporary library directory.
15368: hardcode_action_CXX=relink
15369: else
15370: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15371: hardcode_action_CXX=immediate
15372: fi
15373: else
15374: # We cannot hardcode anything, or else we can only hardcode existing
15375: # directories.
15376: hardcode_action_CXX=unsupported
15377: fi
1.31 ! moko 15378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
! 15379: $as_echo "$hardcode_action_CXX" >&6; }
1.23 moko 15380:
15381: if test "$hardcode_action_CXX" = relink ||
15382: test "$inherit_rpath_CXX" = yes; then
15383: # Fast installation is not supported
15384: enable_fast_install=no
15385: elif test "$shlibpath_overrides_runpath" = yes ||
15386: test "$enable_shared" = no; then
15387: # Fast installation is not necessary
15388: enable_fast_install=needless
15389: fi
15390:
15391:
15392:
15393:
15394:
15395:
15396:
15397: fi # test -n "$compiler"
15398:
15399: CC=$lt_save_CC
15400: CFLAGS=$lt_save_CFLAGS
15401: LDCXX=$LD
15402: LD=$lt_save_LD
15403: GCC=$lt_save_GCC
15404: with_gnu_ld=$lt_save_with_gnu_ld
15405: lt_cv_path_LDCXX=$lt_cv_path_LD
15406: lt_cv_path_LD=$lt_save_path_LD
15407: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15408: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15409: fi # test "$_lt_caught_CXX_error" != yes
15410:
15411: ac_ext=c
15412: ac_cpp='$CPP $CPPFLAGS'
15413: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15414: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15415: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15416:
15417:
15418:
15419:
15420:
15421:
15422:
15423:
15424:
15425:
15426:
15427:
15428:
15429:
15430:
1.31 ! moko 15431: ac_config_commands="$ac_config_commands libtool"
1.23 moko 15432:
15433:
15434:
15435:
15436: # Only expand once:
15437:
15438:
1.31 ! moko 15439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
! 15440: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
! 15441: if ${libltdl_cv_shlibext+:} false; then :
! 15442: $as_echo_n "(cached) " >&6
1.23 moko 15443: else
15444:
15445: module=yes
15446: eval libltdl_cv_shlibext=$shrext_cmds
15447: module=no
15448: eval libltdl_cv_shrext=$shrext_cmds
15449:
15450: fi
1.31 ! moko 15451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
! 15452: $as_echo "$libltdl_cv_shlibext" >&6; }
1.23 moko 15453: if test -n "$libltdl_cv_shlibext"; then
15454:
15455: cat >>confdefs.h <<_ACEOF
15456: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15457: _ACEOF
15458:
15459: fi
15460: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15461:
15462: cat >>confdefs.h <<_ACEOF
15463: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15464: _ACEOF
15465:
15466: fi
15467:
1.31 ! moko 15468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
! 15469: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
! 15470: if ${lt_cv_module_path_var+:} false; then :
! 15471: $as_echo_n "(cached) " >&6
1.23 moko 15472: else
15473: lt_cv_module_path_var="$shlibpath_var"
15474: fi
1.31 ! moko 15475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
! 15476: $as_echo "$lt_cv_module_path_var" >&6; }
1.23 moko 15477: if test -n "$lt_cv_module_path_var"; then
15478:
15479: cat >>confdefs.h <<_ACEOF
15480: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15481: _ACEOF
15482:
15483: fi
15484:
1.31 ! moko 15485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
! 15486: $as_echo_n "checking for the default library search path... " >&6; }
! 15487: if ${lt_cv_sys_dlsearch_path+:} false; then :
! 15488: $as_echo_n "(cached) " >&6
1.23 moko 15489: else
15490: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15491: fi
1.31 ! moko 15492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
! 15493: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.23 moko 15494: if test -n "$lt_cv_sys_dlsearch_path"; then
15495: sys_dlsearch_path=
15496: for dir in $lt_cv_sys_dlsearch_path; do
15497: if test -z "$sys_dlsearch_path"; then
15498: sys_dlsearch_path="$dir"
15499: else
15500: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15501: fi
15502: done
15503:
15504: cat >>confdefs.h <<_ACEOF
15505: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15506: _ACEOF
15507:
15508: fi
15509:
15510:
15511: LT_DLLOADERS=
15512:
15513:
15514: ac_ext=c
15515: ac_cpp='$CPP $CPPFLAGS'
15516: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15517: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15518: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15519:
15520:
15521: LIBADD_DLOPEN=
1.31 ! moko 15522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
! 15523: $as_echo_n "checking for library containing dlopen... " >&6; }
! 15524: if ${ac_cv_search_dlopen+:} false; then :
! 15525: $as_echo_n "(cached) " >&6
1.23 moko 15526: else
15527: ac_func_search_save_LIBS=$LIBS
1.31 ! moko 15528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15529: /* end confdefs.h. */
15530:
1.31 ! moko 15531: /* Override any GCC internal prototype to avoid an error.
! 15532: Use char because int might match the return type of a GCC
! 15533: builtin and then its argument prototype would still apply. */
1.23 moko 15534: #ifdef __cplusplus
15535: extern "C"
15536: #endif
15537: char dlopen ();
15538: int
15539: main ()
15540: {
1.31 ! moko 15541: return dlopen ();
1.23 moko 15542: ;
15543: return 0;
15544: }
15545: _ACEOF
1.31 ! moko 15546: for ac_lib in '' dl; do
! 15547: if test -z "$ac_lib"; then
! 15548: ac_res="none required"
! 15549: else
! 15550: ac_res=-l$ac_lib
! 15551: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 15552: fi
! 15553: if ac_fn_c_try_link "$LINENO"; then :
! 15554: ac_cv_search_dlopen=$ac_res
! 15555: fi
! 15556: rm -f core conftest.err conftest.$ac_objext \
! 15557: conftest$ac_exeext
! 15558: if ${ac_cv_search_dlopen+:} false; then :
! 15559: break
1.23 moko 15560: fi
1.31 ! moko 15561: done
! 15562: if ${ac_cv_search_dlopen+:} false; then :
1.23 moko 15563:
15564: else
1.31 ! moko 15565: ac_cv_search_dlopen=no
1.23 moko 15566: fi
1.31 ! moko 15567: rm conftest.$ac_ext
1.23 moko 15568: LIBS=$ac_func_search_save_LIBS
15569: fi
1.31 ! moko 15570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
! 15571: $as_echo "$ac_cv_search_dlopen" >&6; }
! 15572: ac_res=$ac_cv_search_dlopen
! 15573: if test "$ac_res" != no; then :
! 15574: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.23 moko 15575:
1.31 ! moko 15576: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.23 moko 15577:
15578: if test "$ac_cv_search_dlopen" != "none required" ; then
15579: LIBADD_DLOPEN="-ldl"
15580: fi
15581: libltdl_cv_lib_dl_dlopen="yes"
15582: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15583: else
1.31 ! moko 15584: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15585: /* end confdefs.h. */
15586: #if HAVE_DLFCN_H
15587: # include <dlfcn.h>
15588: #endif
15589:
15590: int
15591: main ()
15592: {
15593: dlopen(0, 0);
15594: ;
15595: return 0;
15596: }
15597: _ACEOF
1.31 ! moko 15598: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 15599:
1.31 ! moko 15600: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.23 moko 15601:
15602: libltdl_cv_func_dlopen="yes"
15603: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15604: else
1.31 ! moko 15605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
! 15606: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
! 15607: if ${ac_cv_lib_svld_dlopen+:} false; then :
! 15608: $as_echo_n "(cached) " >&6
1.23 moko 15609: else
15610: ac_check_lib_save_LIBS=$LIBS
15611: LIBS="-lsvld $LIBS"
1.31 ! moko 15612: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15613: /* end confdefs.h. */
15614:
1.31 ! moko 15615: /* Override any GCC internal prototype to avoid an error.
! 15616: Use char because int might match the return type of a GCC
1.23 moko 15617: builtin and then its argument prototype would still apply. */
15618: #ifdef __cplusplus
1.31 ! moko 15619: extern "C"
1.23 moko 15620: #endif
1.31 ! moko 15621: char dlopen ();
1.23 moko 15622: int
15623: main ()
15624: {
1.31 ! moko 15625: return dlopen ();
1.23 moko 15626: ;
15627: return 0;
15628: }
15629: _ACEOF
1.31 ! moko 15630: if ac_fn_c_try_link "$LINENO"; then :
! 15631: ac_cv_lib_svld_dlopen=yes
1.23 moko 15632: else
1.31 ! moko 15633: ac_cv_lib_svld_dlopen=no
! 15634: fi
! 15635: rm -f core conftest.err conftest.$ac_objext \
! 15636: conftest$ac_exeext conftest.$ac_ext
! 15637: LIBS=$ac_check_lib_save_LIBS
! 15638: fi
! 15639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
! 15640: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
! 15641: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
! 15642:
! 15643: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
! 15644:
! 15645: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
! 15646: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
! 15647: fi
1.23 moko 15648:
15649: fi
1.31 ! moko 15650: rm -f core conftest.err conftest.$ac_objext \
! 15651: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15652: fi
1.31 ! moko 15653:
! 15654: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
! 15655: then
! 15656: lt_save_LIBS="$LIBS"
! 15657: LIBS="$LIBS $LIBADD_DLOPEN"
! 15658: for ac_func in dlerror
! 15659: do :
! 15660: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
! 15661: if test "x$ac_cv_func_dlerror" = xyes; then :
1.23 moko 15662: cat >>confdefs.h <<_ACEOF
1.31 ! moko 15663: #define HAVE_DLERROR 1
1.23 moko 15664: _ACEOF
15665:
15666: fi
15667: done
15668:
15669: LIBS="$lt_save_LIBS"
15670: fi
15671:
15672:
15673: LIBADD_SHL_LOAD=
1.31 ! moko 15674: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
! 15675: if test "x$ac_cv_func_shl_load" = xyes; then :
1.23 moko 15676:
1.31 ! moko 15677: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.23 moko 15678:
15679: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15680: else
1.31 ! moko 15681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
! 15682: $as_echo_n "checking for shl_load in -ldld... " >&6; }
! 15683: if ${ac_cv_lib_dld_shl_load+:} false; then :
! 15684: $as_echo_n "(cached) " >&6
1.23 moko 15685: else
15686: ac_check_lib_save_LIBS=$LIBS
15687: LIBS="-ldld $LIBS"
1.31 ! moko 15688: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15689: /* end confdefs.h. */
15690:
1.31 ! moko 15691: /* Override any GCC internal prototype to avoid an error.
! 15692: Use char because int might match the return type of a GCC
! 15693: builtin and then its argument prototype would still apply. */
1.23 moko 15694: #ifdef __cplusplus
15695: extern "C"
15696: #endif
15697: char shl_load ();
15698: int
15699: main ()
15700: {
1.31 ! moko 15701: return shl_load ();
1.23 moko 15702: ;
15703: return 0;
15704: }
15705: _ACEOF
1.31 ! moko 15706: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 15707: ac_cv_lib_dld_shl_load=yes
15708: else
1.31 ! moko 15709: ac_cv_lib_dld_shl_load=no
1.23 moko 15710: fi
1.31 ! moko 15711: rm -f core conftest.err conftest.$ac_objext \
! 15712: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15713: LIBS=$ac_check_lib_save_LIBS
15714: fi
1.31 ! moko 15715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
! 15716: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
! 15717: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.23 moko 15718:
1.31 ! moko 15719: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.23 moko 15720:
15721: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15722: LIBADD_SHL_LOAD="-ldld"
15723: fi
15724:
15725: fi
15726:
15727:
15728:
15729: case $host_os in
15730: darwin[1567].*)
15731: # We only want this for pre-Mac OS X 10.4.
1.31 ! moko 15732: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
! 15733: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
1.23 moko 15734:
1.31 ! moko 15735: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.23 moko 15736:
15737: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15738: fi
15739:
15740: ;;
15741: beos*)
15742: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15743: ;;
15744: cygwin* | mingw* | os2* | pw32*)
1.31 ! moko 15745: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
! 15746: "
! 15747: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
! 15748: ac_have_decl=1
1.23 moko 15749: else
1.31 ! moko 15750: ac_have_decl=0
1.23 moko 15751: fi
15752:
15753: cat >>confdefs.h <<_ACEOF
1.31 ! moko 15754: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.23 moko 15755: _ACEOF
15756:
15757: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15758: ;;
15759: esac
15760:
1.31 ! moko 15761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
! 15762: $as_echo_n "checking for dld_link in -ldld... " >&6; }
! 15763: if ${ac_cv_lib_dld_dld_link+:} false; then :
! 15764: $as_echo_n "(cached) " >&6
1.23 moko 15765: else
15766: ac_check_lib_save_LIBS=$LIBS
15767: LIBS="-ldld $LIBS"
1.31 ! moko 15768: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15769: /* end confdefs.h. */
15770:
1.31 ! moko 15771: /* Override any GCC internal prototype to avoid an error.
! 15772: Use char because int might match the return type of a GCC
! 15773: builtin and then its argument prototype would still apply. */
1.23 moko 15774: #ifdef __cplusplus
15775: extern "C"
15776: #endif
15777: char dld_link ();
15778: int
15779: main ()
15780: {
1.31 ! moko 15781: return dld_link ();
1.23 moko 15782: ;
15783: return 0;
15784: }
15785: _ACEOF
1.31 ! moko 15786: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 15787: ac_cv_lib_dld_dld_link=yes
15788: else
1.31 ! moko 15789: ac_cv_lib_dld_dld_link=no
1.23 moko 15790: fi
1.31 ! moko 15791: rm -f core conftest.err conftest.$ac_objext \
! 15792: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15793: LIBS=$ac_check_lib_save_LIBS
15794: fi
1.31 ! moko 15795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
! 15796: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
! 15797: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.23 moko 15798:
1.31 ! moko 15799: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.23 moko 15800:
15801: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15802: fi
15803:
15804:
15805:
15806:
15807: LT_DLPREOPEN=
15808: if test -n "$LT_DLLOADERS"
15809: then
15810: for lt_loader in $LT_DLLOADERS; do
15811: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15812: done
15813:
1.31 ! moko 15814: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.23 moko 15815:
15816: fi
15817:
15818:
15819: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15820:
15821:
15822: ac_ext=c
15823: ac_cpp='$CPP $CPPFLAGS'
15824: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15825: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15826: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15827:
15828:
1.31 ! moko 15829: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
! 15830: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
! 15831: if ${lt_cv_sys_symbol_underscore+:} false; then :
! 15832: $as_echo_n "(cached) " >&6
1.23 moko 15833: else
15834: lt_cv_sys_symbol_underscore=no
15835: cat > conftest.$ac_ext <<_LT_EOF
15836: void nm_test_func(){}
15837: int main(){nm_test_func;return 0;}
15838: _LT_EOF
1.31 ! moko 15839: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 15840: (eval $ac_compile) 2>&5
15841: ac_status=$?
1.31 ! moko 15842: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 15843: test $ac_status = 0; }; then
1.23 moko 15844: # Now try to grab the symbols.
15845: ac_nlist=conftest.nm
1.31 ! moko 15846: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.23 moko 15847: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15848: ac_status=$?
1.31 ! moko 15849: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 15850: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.23 moko 15851: # See whether the symbols have a leading underscore.
15852: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15853: lt_cv_sys_symbol_underscore=yes
15854: else
15855: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15856: :
15857: else
15858: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15859: fi
15860: fi
15861: else
15862: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15863: fi
15864: else
15865: echo "configure: failed program was:" >&5
15866: cat conftest.c >&5
15867: fi
15868: rm -rf conftest*
15869:
15870: fi
1.31 ! moko 15871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
! 15872: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.23 moko 15873: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15874:
15875:
15876: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15877: if test x"$libltdl_cv_func_dlopen" = xyes ||
15878: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.31 ! moko 15879: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
! 15880: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
! 15881: if ${libltdl_cv_need_uscore+:} false; then :
! 15882: $as_echo_n "(cached) " >&6
1.23 moko 15883: else
15884: libltdl_cv_need_uscore=unknown
15885: save_LIBS="$LIBS"
15886: LIBS="$LIBS $LIBADD_DLOPEN"
15887: if test "$cross_compiling" = yes; then :
15888: libltdl_cv_need_uscore=cross
15889: else
15890: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15891: lt_status=$lt_dlunknown
15892: cat > conftest.$ac_ext <<_LT_EOF
15893: #line $LINENO "configure"
15894: #include "confdefs.h"
15895:
15896: #if HAVE_DLFCN_H
15897: #include <dlfcn.h>
15898: #endif
15899:
15900: #include <stdio.h>
15901:
15902: #ifdef RTLD_GLOBAL
15903: # define LT_DLGLOBAL RTLD_GLOBAL
15904: #else
15905: # ifdef DL_GLOBAL
15906: # define LT_DLGLOBAL DL_GLOBAL
15907: # else
15908: # define LT_DLGLOBAL 0
15909: # endif
15910: #endif
15911:
15912: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15913: find out it does not work in some platform. */
15914: #ifndef LT_DLLAZY_OR_NOW
15915: # ifdef RTLD_LAZY
15916: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15917: # else
15918: # ifdef DL_LAZY
15919: # define LT_DLLAZY_OR_NOW DL_LAZY
15920: # else
15921: # ifdef RTLD_NOW
15922: # define LT_DLLAZY_OR_NOW RTLD_NOW
15923: # else
15924: # ifdef DL_NOW
15925: # define LT_DLLAZY_OR_NOW DL_NOW
15926: # else
15927: # define LT_DLLAZY_OR_NOW 0
15928: # endif
15929: # endif
15930: # endif
15931: # endif
15932: #endif
15933:
15934: /* When -fvisbility=hidden is used, assume the code has been annotated
15935: correspondingly for the symbols needed. */
15936: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15937: int fnord () __attribute__((visibility("default")));
15938: #endif
15939:
15940: int fnord () { return 42; }
15941: int main ()
15942: {
15943: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15944: int status = $lt_dlunknown;
15945:
15946: if (self)
15947: {
15948: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15949: else
15950: {
15951: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15952: else puts (dlerror ());
15953: }
15954: /* dlclose (self); */
15955: }
15956: else
15957: puts (dlerror ());
15958:
15959: return status;
15960: }
15961: _LT_EOF
1.31 ! moko 15962: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 15963: (eval $ac_link) 2>&5
15964: ac_status=$?
1.31 ! moko 15965: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 15966: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.23 moko 15967: (./conftest; exit; ) >&5 2>/dev/null
15968: lt_status=$?
15969: case x$lt_status in
15970: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15971: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15972: x$lt_dlunknown|x*) ;;
15973: esac
15974: else :
15975: # compilation failed
15976:
15977: fi
15978: fi
15979: rm -fr conftest*
15980:
15981: LIBS="$save_LIBS"
15982:
15983: fi
1.31 ! moko 15984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
! 15985: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.23 moko 15986: fi
15987: fi
15988:
15989: if test x"$libltdl_cv_need_uscore" = xyes; then
15990:
1.31 ! moko 15991: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.23 moko 15992:
15993: fi
15994:
1.31 ! moko 15995: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
! 15996: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
! 15997: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
! 15998: $as_echo_n "(cached) " >&6
1.23 moko 15999: else
16000: # PORTME does your system automatically load deplibs for dlopen?
16001: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16002: # For now, we just catch OSes we know something about -- in the
16003: # future, we'll try test this programmatically.
16004: lt_cv_sys_dlopen_deplibs=unknown
16005: case $host_os in
16006: aix3*|aix4.1.*|aix4.2.*)
16007: # Unknown whether this is true for these versions of AIX, but
16008: # we want this `case' here to explicitly catch those versions.
16009: lt_cv_sys_dlopen_deplibs=unknown
16010: ;;
16011: aix[4-9]*)
16012: lt_cv_sys_dlopen_deplibs=yes
16013: ;;
16014: amigaos*)
16015: case $host_cpu in
16016: powerpc)
16017: lt_cv_sys_dlopen_deplibs=no
16018: ;;
16019: esac
16020: ;;
16021: darwin*)
16022: # Assuming the user has installed a libdl from somewhere, this is true
16023: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16024: lt_cv_sys_dlopen_deplibs=yes
16025: ;;
16026: freebsd* | dragonfly*)
16027: lt_cv_sys_dlopen_deplibs=yes
16028: ;;
16029: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16030: # GNU and its variants, using gnu ld.so (Glibc)
16031: lt_cv_sys_dlopen_deplibs=yes
16032: ;;
16033: hpux10*|hpux11*)
16034: lt_cv_sys_dlopen_deplibs=yes
16035: ;;
16036: interix*)
16037: lt_cv_sys_dlopen_deplibs=yes
16038: ;;
16039: irix[12345]*|irix6.[01]*)
16040: # Catch all versions of IRIX before 6.2, and indicate that we don't
16041: # know how it worked for any of those versions.
16042: lt_cv_sys_dlopen_deplibs=unknown
16043: ;;
16044: irix*)
16045: # The case above catches anything before 6.2, and it's known that
16046: # at 6.2 and later dlopen does load deplibs.
16047: lt_cv_sys_dlopen_deplibs=yes
16048: ;;
16049: netbsd*)
16050: lt_cv_sys_dlopen_deplibs=yes
16051: ;;
16052: openbsd*)
16053: lt_cv_sys_dlopen_deplibs=yes
16054: ;;
16055: osf[1234]*)
16056: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16057: # it did *not* use an RPATH in a shared library to find objects the
16058: # library depends on, so we explicitly say `no'.
16059: lt_cv_sys_dlopen_deplibs=no
16060: ;;
16061: osf5.0|osf5.0a|osf5.1)
16062: # dlopen *does* load deplibs and with the right loader patch applied
16063: # it even uses RPATH in a shared library to search for shared objects
16064: # that the library depends on, but there's no easy way to know if that
16065: # patch is installed. Since this is the case, all we can really
16066: # say is unknown -- it depends on the patch being installed. If
16067: # it is, this changes to `yes'. Without it, it would be `no'.
16068: lt_cv_sys_dlopen_deplibs=unknown
16069: ;;
16070: osf*)
16071: # the two cases above should catch all versions of osf <= 5.1. Read
16072: # the comments above for what we know about them.
16073: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16074: # is used to find them so we can finally say `yes'.
16075: lt_cv_sys_dlopen_deplibs=yes
16076: ;;
16077: qnx*)
16078: lt_cv_sys_dlopen_deplibs=yes
16079: ;;
16080: solaris*)
16081: lt_cv_sys_dlopen_deplibs=yes
16082: ;;
16083: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16084: libltdl_cv_sys_dlopen_deplibs=yes
16085: ;;
16086: esac
16087:
16088: fi
1.31 ! moko 16089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
! 16090: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.23 moko 16091: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16092:
1.31 ! moko 16093: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.23 moko 16094:
16095: fi
16096:
16097: :
16098:
16099: for ac_header in argz.h
1.31 ! moko 16100: do :
! 16101: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
! 16102: "
! 16103: if test "x$ac_cv_header_argz_h" = xyes; then :
1.23 moko 16104: cat >>confdefs.h <<_ACEOF
1.31 ! moko 16105: #define HAVE_ARGZ_H 1
1.23 moko 16106: _ACEOF
16107:
16108: fi
16109:
16110: done
16111:
16112:
1.31 ! moko 16113: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
! 16114: # include <argz.h>
1.23 moko 16115: #endif
1.31 ! moko 16116: "
! 16117: if test "x$ac_cv_type_error_t" = xyes; then :
1.23 moko 16118:
1.31 ! moko 16119: cat >>confdefs.h <<_ACEOF
! 16120: #define HAVE_ERROR_T 1
1.23 moko 16121: _ACEOF
1.31 ! moko 16122:
! 16123:
1.23 moko 16124: else
16125:
1.31 ! moko 16126: $as_echo "#define error_t int" >>confdefs.h
! 16127:
! 16128:
! 16129: $as_echo "#define __error_t_defined 1" >>confdefs.h
! 16130:
1.23 moko 16131: fi
1.31 ! moko 16132:
! 16133:
! 16134: ARGZ_H=
! 16135: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
! 16136: argz_next argz_stringify
! 16137: do :
! 16138: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16139: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 16140: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.23 moko 16141: cat >>confdefs.h <<_ACEOF
1.31 ! moko 16142: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 moko 16143: _ACEOF
16144:
16145: else
16146: ARGZ_H=argz.h;
16147:
16148: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16149:
16150: fi
16151: done
16152:
16153:
1.31 ! moko 16154: if test -z "$ARGZ_H"; then :
! 16155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
! 16156: $as_echo_n "checking if argz actually works... " >&6; }
! 16157: if ${lt_cv_sys_argz_works+:} false; then :
! 16158: $as_echo_n "(cached) " >&6
1.23 moko 16159: else
16160: case $host_os in #(
16161: *cygwin*)
16162: lt_cv_sys_argz_works=no
16163: if test "$cross_compiling" != no; then
16164: lt_cv_sys_argz_works="guessing no"
16165: else
16166: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16167: save_IFS=$IFS
16168: IFS=-.
16169: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16170: IFS=$save_IFS
16171: lt_os_major=${2-0}
16172: lt_os_minor=${3-0}
16173: lt_os_micro=${4-0}
16174: if test "$lt_os_major" -gt 1 \
16175: || { test "$lt_os_major" -eq 1 \
16176: && { test "$lt_os_minor" -gt 5 \
16177: || { test "$lt_os_minor" -eq 5 \
16178: && test "$lt_os_micro" -gt 24; }; }; }; then
16179: lt_cv_sys_argz_works=yes
16180: fi
16181: fi
16182: ;; #(
16183: *) lt_cv_sys_argz_works=yes ;;
16184: esac
16185: fi
1.31 ! moko 16186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
! 16187: $as_echo "$lt_cv_sys_argz_works" >&6; }
! 16188: if test "$lt_cv_sys_argz_works" = yes; then :
1.23 moko 16189:
1.31 ! moko 16190: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.23 moko 16191:
16192: else
16193: ARGZ_H=argz.h
16194:
16195:
16196: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16197:
16198: fi
16199: fi
16200:
16201:
16202:
1.31 ! moko 16203: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
! 16204: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
! 16205: if ${libltdl_cv_preloaded_symbols+:} false; then :
! 16206: $as_echo_n "(cached) " >&6
1.23 moko 16207: else
16208: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16209: libltdl_cv_preloaded_symbols=yes
16210: else
16211: libltdl_cv_preloaded_symbols=no
16212: fi
16213:
16214: fi
1.31 ! moko 16215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
! 16216: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.23 moko 16217: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16218:
1.31 ! moko 16219: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.23 moko 16220:
16221: fi
16222:
1.31 ! moko 16223:
! 16224:
1.23 moko 16225: # Set options
16226:
16227:
16228:
16229:
16230:
16231:
16232:
16233:
16234:
16235:
16236:
16237:
1.31 ! moko 16238: # Check whether --with-included_ltdl was given.
! 16239: if test "${with_included_ltdl+set}" = set; then :
! 16240: withval=$with_included_ltdl;
! 16241: fi
1.23 moko 16242:
16243:
16244: if test "x$with_included_ltdl" != xyes; then
16245: # We are not being forced to use the included libltdl sources, so
16246: # decide whether there is a useful installed version we can use.
1.31 ! moko 16247: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.23 moko 16248:
1.31 ! moko 16249: "
! 16250: if test "x$ac_cv_header_ltdl_h" = xyes; then :
! 16251: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.23 moko 16252: #include <ltdl.h>
1.31 ! moko 16253: "
! 16254: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
! 16255: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
! 16256: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
! 16257: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
! 16258: $as_echo_n "(cached) " >&6
1.23 moko 16259: else
16260: ac_check_lib_save_LIBS=$LIBS
16261: LIBS="-lltdl $LIBS"
1.31 ! moko 16262: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 16263: /* end confdefs.h. */
16264:
1.31 ! moko 16265: /* Override any GCC internal prototype to avoid an error.
! 16266: Use char because int might match the return type of a GCC
! 16267: builtin and then its argument prototype would still apply. */
1.23 moko 16268: #ifdef __cplusplus
16269: extern "C"
16270: #endif
16271: char lt_dladvise_preload ();
16272: int
16273: main ()
16274: {
1.31 ! moko 16275: return lt_dladvise_preload ();
1.23 moko 16276: ;
16277: return 0;
16278: }
16279: _ACEOF
1.31 ! moko 16280: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 16281: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16282: else
1.31 ! moko 16283: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.23 moko 16284: fi
1.31 ! moko 16285: rm -f core conftest.err conftest.$ac_objext \
! 16286: conftest$ac_exeext conftest.$ac_ext
1.23 moko 16287: LIBS=$ac_check_lib_save_LIBS
16288: fi
1.31 ! moko 16289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
! 16290: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
! 16291: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.23 moko 16292: with_included_ltdl=no
16293: else
16294: with_included_ltdl=yes
16295: fi
16296:
16297: else
16298: with_included_ltdl=yes
16299: fi
16300:
16301: else
16302: with_included_ltdl=yes
16303: fi
16304:
16305:
16306: fi
16307:
16308:
16309:
16310:
1.31 ! moko 16311: # Check whether --with-ltdl_include was given.
! 16312: if test "${with_ltdl_include+set}" = set; then :
! 16313: withval=$with_ltdl_include;
! 16314: fi
1.23 moko 16315:
16316:
16317: if test -n "$with_ltdl_include"; then
16318: if test -f "$with_ltdl_include/ltdl.h"; then :
16319: else
1.31 ! moko 16320: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.23 moko 16321: fi
16322: else
16323: with_ltdl_include=no
16324: fi
16325:
16326:
1.31 ! moko 16327: # Check whether --with-ltdl_lib was given.
! 16328: if test "${with_ltdl_lib+set}" = set; then :
! 16329: withval=$with_ltdl_lib;
! 16330: fi
1.23 moko 16331:
16332:
16333: if test -n "$with_ltdl_lib"; then
16334: if test -f "$with_ltdl_lib/libltdl.la"; then :
16335: else
1.31 ! moko 16336: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.23 moko 16337: fi
16338: else
16339: with_ltdl_lib=no
16340: fi
16341:
16342: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16343: ,yes,no,no,)
16344: case $enable_ltdl_convenience in
1.31 ! moko 16345: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.23 moko 16346: "") enable_ltdl_convenience=yes
16347: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16348: esac
1.31 ! moko 16349: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.23 moko 16350: LTDLDEPS=$LIBLTDL
16351: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16352:
16353:
16354:
16355:
16356:
16357: # For backwards non-gettext consistent compatibility...
16358: INCLTDL="$LTDLINCL"
16359:
16360:
16361: ;;
16362: ,no,no,no,)
16363: # If the included ltdl is not to be used, then use the
16364: # preinstalled libltdl we found.
16365:
1.31 ! moko 16366: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.23 moko 16367:
16368: LIBLTDL=-lltdl
16369: LTDLDEPS=
16370: LTDLINCL=
16371: ;;
16372: ,no*,no,*)
1.31 ! moko 16373: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.23 moko 16374: ;;
16375: *) with_included_ltdl=no
16376: LIBLTDL="-L$with_ltdl_lib -lltdl"
16377: LTDLDEPS=
16378: LTDLINCL="-I$with_ltdl_include"
16379: ;;
16380: esac
16381: INCLTDL="$LTDLINCL"
16382:
16383: # Report our decision...
1.31 ! moko 16384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
! 16385: $as_echo_n "checking where to find libltdl headers... " >&6; }
! 16386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
! 16387: $as_echo "$LTDLINCL" >&6; }
! 16388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
! 16389: $as_echo_n "checking where to find libltdl library... " >&6; }
! 16390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
! 16391: $as_echo "$LIBLTDL" >&6; }
1.23 moko 16392:
16393:
16394:
1.31 ! moko 16395: # Check whether --enable-ltdl-install was given.
! 16396: if test "${enable_ltdl_install+set}" = set; then :
! 16397: enableval=$enable_ltdl_install;
! 16398: fi
1.23 moko 16399:
16400:
16401: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16402: *yes*) ;;
16403: *) enable_ltdl_convenience=yes ;;
16404: esac
16405:
1.31 ! moko 16406: if test x"${enable_ltdl_install-no}" != xno; then
1.23 moko 16407: INSTALL_LTDL_TRUE=
16408: INSTALL_LTDL_FALSE='#'
16409: else
16410: INSTALL_LTDL_TRUE='#'
16411: INSTALL_LTDL_FALSE=
16412: fi
16413:
1.31 ! moko 16414: if test x"${enable_ltdl_convenience-no}" != xno; then
1.23 moko 16415: CONVENIENCE_LTDL_TRUE=
16416: CONVENIENCE_LTDL_FALSE='#'
16417: else
16418: CONVENIENCE_LTDL_TRUE='#'
16419: CONVENIENCE_LTDL_FALSE=
16420: fi
16421:
16422:
16423:
1.31 ! moko 16424: subdirs="$subdirs libltdl"
1.23 moko 16425:
16426:
16427:
16428:
16429: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16430: # the user used. This is so that ltdl.h can pick up the parent projects
16431: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16432: # definitions required by ltdl.c.
16433: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16434:
16435:
16436:
16437: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
1.31 ! moko 16438: do :
! 16439: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 16440: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
! 16441: "
! 16442: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.23 moko 16443: cat >>confdefs.h <<_ACEOF
1.31 ! moko 16444: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 moko 16445: _ACEOF
16446:
16447: fi
16448:
16449: done
16450:
16451:
16452: for ac_func in closedir opendir readdir
1.31 ! moko 16453: do :
! 16454: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16455: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 16456: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.23 moko 16457: cat >>confdefs.h <<_ACEOF
1.31 ! moko 16458: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 moko 16459: _ACEOF
16460:
16461: else
16462:
16463:
16464: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16465:
16466: fi
16467: done
16468:
16469: for ac_func in strlcat strlcpy
1.31 ! moko 16470: do :
! 16471: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16472: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 16473: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.23 moko 16474: cat >>confdefs.h <<_ACEOF
1.31 ! moko 16475: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 moko 16476: _ACEOF
16477:
16478: else
16479:
16480:
16481: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16482:
16483: fi
16484: done
16485:
16486:
16487:
16488: cat >>confdefs.h <<_ACEOF
16489: #define LT_LIBEXT "$libext"
16490: _ACEOF
16491:
16492:
16493: name=
16494: eval "lt_libprefix=\"$libname_spec\""
16495:
16496: cat >>confdefs.h <<_ACEOF
16497: #define LT_LIBPREFIX "$lt_libprefix"
16498: _ACEOF
16499:
16500:
16501: name=ltdl
16502: eval "LTDLOPEN=\"$libname_spec\""
16503:
16504:
16505:
16506:
16507:
16508:
16509:
16510:
16511: # Only expand once:
16512:
16513:
16514:
16515:
1.31 ! moko 16516: for ac_header in stdio.h \
! 16517: stdlib.h \
! 16518: string.h \
! 16519: setjmp.h \
! 16520: ctype.h
1.23 moko 16521:
1.31 ! moko 16522: do :
! 16523: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 16524: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
! 16525: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.23 moko 16526: cat >>confdefs.h <<_ACEOF
1.31 ! moko 16527: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 moko 16528: _ACEOF
16529:
16530: fi
16531:
16532: done
16533:
16534:
1.31 ! moko 16535: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
! 16536: if test "x$ac_cv_type_size_t" = xyes; then :
1.23 moko 16537:
16538: else
16539:
16540: cat >>confdefs.h <<_ACEOF
1.31 ! moko 16541: #define size_t unsigned int
1.23 moko 16542: _ACEOF
16543:
16544: fi
16545:
16546:
16547:
1.31 ! moko 16548: ac_config_files="$ac_config_files Makefile"
! 16549:
1.23 moko 16550: cat >confcache <<\_ACEOF
16551: # This file is a shell script that caches the results of configure
16552: # tests run on this system so they can be shared between configure
16553: # scripts and configure runs, see configure's option --config-cache.
16554: # It is not useful on other systems. If it contains results you don't
16555: # want to keep, you may remove or edit it.
16556: #
16557: # config.status only pays attention to the cache file if you give it
16558: # the --recheck option to rerun configure.
16559: #
16560: # `ac_cv_env_foo' variables (set or unset) will be overridden when
16561: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16562: # following values.
16563:
16564: _ACEOF
16565:
16566: # The following way of writing the cache mishandles newlines in values,
16567: # but we know of no workaround that is simple, portable, and efficient.
1.31 ! moko 16568: # So, we kill variables containing newlines.
1.23 moko 16569: # Ultrix sh set writes to stderr and can't be redirected directly,
16570: # and sets the high bit in the cache file unless we assign to the vars.
1.31 ! moko 16571: (
! 16572: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
! 16573: eval ac_val=\$$ac_var
! 16574: case $ac_val in #(
! 16575: *${as_nl}*)
! 16576: case $ac_var in #(
! 16577: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 16578: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
! 16579: esac
! 16580: case $ac_var in #(
! 16581: _ | IFS | as_nl) ;; #(
! 16582: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
! 16583: *) { eval $ac_var=; unset $ac_var;} ;;
! 16584: esac ;;
! 16585: esac
! 16586: done
! 16587:
1.23 moko 16588: (set) 2>&1 |
1.31 ! moko 16589: case $as_nl`(ac_space=' '; set) 2>&1` in #(
! 16590: *${as_nl}ac_space=\ *)
! 16591: # `set' does not quote correctly, so add quotes: double-quote
! 16592: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.23 moko 16593: sed -n \
16594: "s/'/'\\\\''/g;
16595: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.31 ! moko 16596: ;; #(
1.23 moko 16597: *)
16598: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.31 ! moko 16599: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.23 moko 16600: ;;
1.31 ! moko 16601: esac |
! 16602: sort
! 16603: ) |
1.23 moko 16604: sed '
1.31 ! moko 16605: /^ac_cv_env_/b end
1.23 moko 16606: t clear
1.31 ! moko 16607: :clear
1.23 moko 16608: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16609: t end
1.31 ! moko 16610: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 16611: :end' >>confcache
! 16612: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
! 16613: if test -w "$cache_file"; then
! 16614: if test "x$cache_file" != "x/dev/null"; then
! 16615: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
! 16616: $as_echo "$as_me: updating cache $cache_file" >&6;}
! 16617: if test ! -f "$cache_file" || test -h "$cache_file"; then
! 16618: cat confcache >"$cache_file"
! 16619: else
! 16620: case $cache_file in #(
! 16621: */* | ?:*)
! 16622: mv -f confcache "$cache_file"$$ &&
! 16623: mv -f "$cache_file"$$ "$cache_file" ;; #(
! 16624: *)
! 16625: mv -f confcache "$cache_file" ;;
! 16626: esac
! 16627: fi
! 16628: fi
1.23 moko 16629: else
1.31 ! moko 16630: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
! 16631: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.23 moko 16632: fi
16633: fi
16634: rm -f confcache
16635:
16636: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16637: # Let make expand exec_prefix.
16638: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16639:
16640: DEFS=-DHAVE_CONFIG_H
16641:
16642: ac_libobjs=
16643: ac_ltlibobjs=
1.31 ! moko 16644: U=
1.23 moko 16645: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16646: # 1. Remove the extension, and $U if already installed.
1.31 ! moko 16647: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
! 16648: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
! 16649: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
! 16650: # will be set to the directory where LIBOBJS objects are built.
! 16651: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 16652: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.23 moko 16653: done
16654: LIBOBJS=$ac_libobjs
16655:
16656: LTLIBOBJS=$ac_ltlibobjs
16657:
16658:
1.31 ! moko 16659: if test -n "$EXEEXT"; then
! 16660: am__EXEEXT_TRUE=
! 16661: am__EXEEXT_FALSE='#'
! 16662: else
! 16663: am__EXEEXT_TRUE='#'
! 16664: am__EXEEXT_FALSE=
! 16665: fi
! 16666:
1.23 moko 16667: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.31 ! moko 16668: as_fn_error $? "conditional \"AMDEP\" was never defined.
! 16669: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16670: fi
16671: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.31 ! moko 16672: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
! 16673: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16674: fi
16675: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.31 ! moko 16676: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
! 16677: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16678: fi
16679: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.31 ! moko 16680: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
! 16681: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16682: fi
16683: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.31 ! moko 16684: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
! 16685: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16686: fi
1.31 ! moko 16687: LT_CONFIG_H=config_auto.h
1.23 moko 16688:
16689: _ltdl_libobjs=
16690: _ltdl_ltlibobjs=
16691: if test -n "$_LT_LIBOBJS"; then
16692: # Remove the extension.
16693: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16694: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16695: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16696: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16697: done
16698: fi
16699: ltdl_LIBOBJS=$_ltdl_libobjs
16700:
16701: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16702:
16703:
16704:
1.31 ! moko 16705: : "${CONFIG_STATUS=./config.status}"
! 16706: ac_write_fail=0
1.23 moko 16707: ac_clean_files_save=$ac_clean_files
16708: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.31 ! moko 16709: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
! 16710: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 16711: as_write_fail=0
! 16712: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.23 moko 16713: #! $SHELL
16714: # Generated by $as_me.
16715: # Run this file to recreate the current configuration.
16716: # Compiler output produced by configure, useful for debugging
16717: # configure, is in config.log if it exists.
16718:
16719: debug=false
16720: ac_cs_recheck=false
16721: ac_cs_silent=false
1.31 ! moko 16722:
1.23 moko 16723: SHELL=\${CONFIG_SHELL-$SHELL}
1.31 ! moko 16724: export SHELL
! 16725: _ASEOF
! 16726: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
! 16727: ## -------------------- ##
! 16728: ## M4sh Initialization. ##
! 16729: ## -------------------- ##
1.23 moko 16730:
1.31 ! moko 16731: # Be more Bourne compatible
! 16732: DUALCASE=1; export DUALCASE # for MKS sh
! 16733: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.23 moko 16734: emulate sh
16735: NULLCMD=:
1.31 ! moko 16736: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.23 moko 16737: # is contrary to our usage. Disable this feature.
16738: alias -g '${1+"$@"}'='"$@"'
1.31 ! moko 16739: setopt NO_GLOB_SUBST
! 16740: else
! 16741: case `(set -o) 2>/dev/null` in #(
! 16742: *posix*) :
! 16743: set -o posix ;; #(
! 16744: *) :
! 16745: ;;
! 16746: esac
! 16747: fi
! 16748:
! 16749:
! 16750: as_nl='
! 16751: '
! 16752: export as_nl
! 16753: # Printing a long string crashes Solaris 7 /usr/bin/printf.
! 16754: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 16755: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
! 16756: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
! 16757: # Prefer a ksh shell builtin over an external printf program on Solaris,
! 16758: # but without wasting forks for bash or zsh.
! 16759: if test -z "$BASH_VERSION$ZSH_VERSION" \
! 16760: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
! 16761: as_echo='print -r --'
! 16762: as_echo_n='print -rn --'
! 16763: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
! 16764: as_echo='printf %s\n'
! 16765: as_echo_n='printf %s'
! 16766: else
! 16767: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
! 16768: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
! 16769: as_echo_n='/usr/ucb/echo -n'
! 16770: else
! 16771: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
! 16772: as_echo_n_body='eval
! 16773: arg=$1;
! 16774: case $arg in #(
! 16775: *"$as_nl"*)
! 16776: expr "X$arg" : "X\\(.*\\)$as_nl";
! 16777: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
! 16778: esac;
! 16779: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
! 16780: '
! 16781: export as_echo_n_body
! 16782: as_echo_n='sh -c $as_echo_n_body as_echo'
! 16783: fi
! 16784: export as_echo_body
! 16785: as_echo='sh -c $as_echo_body as_echo'
1.23 moko 16786: fi
16787:
1.31 ! moko 16788: # The user is always right.
! 16789: if test "${PATH_SEPARATOR+set}" != set; then
! 16790: PATH_SEPARATOR=:
! 16791: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
! 16792: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
! 16793: PATH_SEPARATOR=';'
! 16794: }
1.23 moko 16795: fi
16796:
16797:
1.31 ! moko 16798: # IFS
! 16799: # We need space, tab and new line, in precisely that order. Quoting is
! 16800: # there to prevent editors from complaining about space-tab.
! 16801: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 16802: # splitting by setting IFS to empty value.)
! 16803: IFS=" "" $as_nl"
! 16804:
! 16805: # Find who we are. Look in the path if we contain no directory separator.
! 16806: as_myself=
! 16807: case $0 in #((
! 16808: *[\\/]* ) as_myself=$0 ;;
! 16809: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 16810: for as_dir in $PATH
! 16811: do
! 16812: IFS=$as_save_IFS
! 16813: test -z "$as_dir" && as_dir=.
! 16814: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 16815: done
! 16816: IFS=$as_save_IFS
! 16817:
! 16818: ;;
! 16819: esac
! 16820: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 16821: # in which case we are not to be found in the path.
! 16822: if test "x$as_myself" = x; then
! 16823: as_myself=$0
! 16824: fi
! 16825: if test ! -f "$as_myself"; then
! 16826: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 16827: exit 1
! 16828: fi
! 16829:
! 16830: # Unset variables that we do not need and which cause bugs (e.g. in
! 16831: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
! 16832: # suppresses any "Segmentation fault" message there. '((' could
! 16833: # trigger a bug in pdksh 5.2.14.
! 16834: for as_var in BASH_ENV ENV MAIL MAILPATH
! 16835: do eval test x\${$as_var+set} = xset \
! 16836: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 16837: done
1.23 moko 16838: PS1='$ '
16839: PS2='> '
16840: PS4='+ '
16841:
16842: # NLS nuisances.
1.31 ! moko 16843: LC_ALL=C
! 16844: export LC_ALL
! 16845: LANGUAGE=C
! 16846: export LANGUAGE
! 16847:
! 16848: # CDPATH.
! 16849: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
! 16850:
! 16851:
! 16852: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 16853: # ----------------------------------------
! 16854: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
! 16855: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
! 16856: # script with STATUS, using 1 if that was 0.
! 16857: as_fn_error ()
! 16858: {
! 16859: as_status=$1; test $as_status -eq 0 && as_status=1
! 16860: if test "$4"; then
! 16861: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 16862: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
! 16863: fi
! 16864: $as_echo "$as_me: error: $2" >&2
! 16865: as_fn_exit $as_status
! 16866: } # as_fn_error
! 16867:
! 16868:
! 16869: # as_fn_set_status STATUS
! 16870: # -----------------------
! 16871: # Set $? to STATUS, without forking.
! 16872: as_fn_set_status ()
! 16873: {
! 16874: return $1
! 16875: } # as_fn_set_status
! 16876:
! 16877: # as_fn_exit STATUS
! 16878: # -----------------
! 16879: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
! 16880: as_fn_exit ()
! 16881: {
! 16882: set +e
! 16883: as_fn_set_status $1
! 16884: exit $1
! 16885: } # as_fn_exit
! 16886:
! 16887: # as_fn_unset VAR
! 16888: # ---------------
! 16889: # Portably unset VAR.
! 16890: as_fn_unset ()
! 16891: {
! 16892: { eval $1=; unset $1;}
! 16893: }
! 16894: as_unset=as_fn_unset
! 16895: # as_fn_append VAR VALUE
! 16896: # ----------------------
! 16897: # Append the text in VALUE to the end of the definition contained in VAR. Take
! 16898: # advantage of any shell optimizations that allow amortized linear growth over
! 16899: # repeated appends, instead of the typical quadratic growth present in naive
! 16900: # implementations.
! 16901: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
! 16902: eval 'as_fn_append ()
! 16903: {
! 16904: eval $1+=\$2
! 16905: }'
! 16906: else
! 16907: as_fn_append ()
! 16908: {
! 16909: eval $1=\$$1\$2
! 16910: }
! 16911: fi # as_fn_append
! 16912:
! 16913: # as_fn_arith ARG...
! 16914: # ------------------
! 16915: # Perform arithmetic evaluation on the ARGs, and store the result in the
! 16916: # global $as_val. Take advantage of shells that can avoid forks. The arguments
! 16917: # must be portable across $(()) and expr.
! 16918: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
! 16919: eval 'as_fn_arith ()
! 16920: {
! 16921: as_val=$(( $* ))
! 16922: }'
! 16923: else
! 16924: as_fn_arith ()
! 16925: {
! 16926: as_val=`expr "$@" || test $? -eq 1`
! 16927: }
! 16928: fi # as_fn_arith
! 16929:
1.23 moko 16930:
1.31 ! moko 16931: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 16932: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.23 moko 16933: as_expr=expr
16934: else
16935: as_expr=false
16936: fi
16937:
1.31 ! moko 16938: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.23 moko 16939: as_basename=basename
16940: else
16941: as_basename=false
16942: fi
16943:
1.31 ! moko 16944: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 16945: as_dirname=dirname
! 16946: else
! 16947: as_dirname=false
! 16948: fi
1.23 moko 16949:
1.31 ! moko 16950: as_me=`$as_basename -- "$0" ||
1.23 moko 16951: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16952: X"$0" : 'X\(//\)$' \| \
1.31 ! moko 16953: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 16954: $as_echo X/"$0" |
! 16955: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 16956: s//\1/
! 16957: q
! 16958: }
! 16959: /^X\/\(\/\/\)$/{
! 16960: s//\1/
! 16961: q
! 16962: }
! 16963: /^X\/\(\/\).*/{
! 16964: s//\1/
! 16965: q
! 16966: }
! 16967: s/.*/./; q'`
1.23 moko 16968:
16969: # Avoid depending upon Character Ranges.
16970: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16971: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16972: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16973: as_cr_digits='0123456789'
16974: as_cr_alnum=$as_cr_Letters$as_cr_digits
16975:
1.31 ! moko 16976: ECHO_C= ECHO_N= ECHO_T=
! 16977: case `echo -n x` in #(((((
! 16978: -n*)
! 16979: case `echo 'xy\c'` in
! 16980: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 16981: xy) ECHO_C='\c';;
! 16982: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
! 16983: ECHO_T=' ';;
! 16984: esac;;
! 16985: *)
! 16986: ECHO_N='-n';;
1.23 moko 16987: esac
16988:
1.31 ! moko 16989: rm -f conf$$ conf$$.exe conf$$.file
! 16990: if test -d conf$$.dir; then
! 16991: rm -f conf$$.dir/conf$$.file
1.23 moko 16992: else
1.31 ! moko 16993: rm -f conf$$.dir
! 16994: mkdir conf$$.dir 2>/dev/null
1.23 moko 16995: fi
1.31 ! moko 16996: if (echo >conf$$.file) 2>/dev/null; then
! 16997: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 16998: as_ln_s='ln -s'
! 16999: # ... but there are two gotchas:
! 17000: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 17001: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 17002: # In both cases, we have to default to `cp -p'.
! 17003: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 17004: as_ln_s='cp -p'
! 17005: elif ln conf$$.file conf$$ 2>/dev/null; then
! 17006: as_ln_s=ln
! 17007: else
1.23 moko 17008: as_ln_s='cp -p'
17009: fi
17010: else
17011: as_ln_s='cp -p'
17012: fi
1.31 ! moko 17013: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 17014: rmdir conf$$.dir 2>/dev/null
! 17015:
! 17016:
! 17017: # as_fn_mkdir_p
! 17018: # -------------
! 17019: # Create "$as_dir" as a directory, including parents if necessary.
! 17020: as_fn_mkdir_p ()
! 17021: {
! 17022:
! 17023: case $as_dir in #(
! 17024: -*) as_dir=./$as_dir;;
! 17025: esac
! 17026: test -d "$as_dir" || eval $as_mkdir_p || {
! 17027: as_dirs=
! 17028: while :; do
! 17029: case $as_dir in #(
! 17030: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
! 17031: *) as_qdir=$as_dir;;
! 17032: esac
! 17033: as_dirs="'$as_qdir' $as_dirs"
! 17034: as_dir=`$as_dirname -- "$as_dir" ||
! 17035: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 17036: X"$as_dir" : 'X\(//\)[^/]' \| \
! 17037: X"$as_dir" : 'X\(//\)$' \| \
! 17038: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 17039: $as_echo X"$as_dir" |
! 17040: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 17041: s//\1/
! 17042: q
! 17043: }
! 17044: /^X\(\/\/\)[^/].*/{
! 17045: s//\1/
! 17046: q
! 17047: }
! 17048: /^X\(\/\/\)$/{
! 17049: s//\1/
! 17050: q
! 17051: }
! 17052: /^X\(\/\).*/{
! 17053: s//\1/
! 17054: q
! 17055: }
! 17056: s/.*/./; q'`
! 17057: test -d "$as_dir" && break
! 17058: done
! 17059: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 17060: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
! 17061:
1.23 moko 17062:
1.31 ! moko 17063: } # as_fn_mkdir_p
1.23 moko 17064: if mkdir -p . 2>/dev/null; then
1.31 ! moko 17065: as_mkdir_p='mkdir -p "$as_dir"'
1.23 moko 17066: else
17067: test -d ./-p && rmdir ./-p
17068: as_mkdir_p=false
17069: fi
17070:
1.31 ! moko 17071: if test -x / >/dev/null 2>&1; then
! 17072: as_test_x='test -x'
! 17073: else
! 17074: if ls -dL / >/dev/null 2>&1; then
! 17075: as_ls_L_option=L
! 17076: else
! 17077: as_ls_L_option=
! 17078: fi
! 17079: as_test_x='
! 17080: eval sh -c '\''
! 17081: if test -d "$1"; then
! 17082: test -d "$1/.";
! 17083: else
! 17084: case $1 in #(
! 17085: -*)set "./$1";;
! 17086: esac;
! 17087: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
! 17088: ???[sx]*):;;*)false;;esac;fi
! 17089: '\'' sh
! 17090: '
! 17091: fi
! 17092: as_executable_p=$as_test_x
1.23 moko 17093:
17094: # Sed expression to map a string onto a valid CPP name.
17095: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17096:
17097: # Sed expression to map a string onto a valid variable name.
17098: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17099:
17100:
17101: exec 6>&1
1.31 ! moko 17102: ## ----------------------------------- ##
! 17103: ## Main body of $CONFIG_STATUS script. ##
! 17104: ## ----------------------------------- ##
! 17105: _ASEOF
! 17106: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.23 moko 17107:
1.31 ! moko 17108: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17109: # Save the log message, to keep $0 and so on meaningful, and to
1.23 moko 17110: # report actual input values of CONFIG_FILES etc. instead of their
1.31 ! moko 17111: # values after options handling.
! 17112: ac_log="
1.23 moko 17113: This file was extended by parser3pgsql.C $as_me 10.3, which was
1.31 ! moko 17114: generated by GNU Autoconf 2.68. Invocation command line was
1.23 moko 17115:
17116: CONFIG_FILES = $CONFIG_FILES
17117: CONFIG_HEADERS = $CONFIG_HEADERS
17118: CONFIG_LINKS = $CONFIG_LINKS
17119: CONFIG_COMMANDS = $CONFIG_COMMANDS
17120: $ $0 $@
17121:
1.31 ! moko 17122: on `(hostname || uname -n) 2>/dev/null | sed 1q`
! 17123: "
! 17124:
1.23 moko 17125: _ACEOF
17126:
1.31 ! moko 17127: case $ac_config_files in *"
! 17128: "*) set x $ac_config_files; shift; ac_config_files=$*;;
! 17129: esac
1.23 moko 17130:
1.31 ! moko 17131: case $ac_config_headers in *"
! 17132: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
! 17133: esac
1.23 moko 17134:
17135:
1.31 ! moko 17136: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17137: # Files that config.status was made for.
! 17138: config_files="$ac_config_files"
! 17139: config_headers="$ac_config_headers"
! 17140: config_commands="$ac_config_commands"
1.23 moko 17141:
1.31 ! moko 17142: _ACEOF
1.23 moko 17143:
1.31 ! moko 17144: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.23 moko 17145: ac_cs_usage="\
1.31 ! moko 17146: \`$as_me' instantiates files and other configuration actions
! 17147: from templates according to the current configuration. Unless the files
! 17148: and actions are specified as TAGs, all are instantiated by default.
1.23 moko 17149:
1.31 ! moko 17150: Usage: $0 [OPTION]... [TAG]...
1.23 moko 17151:
17152: -h, --help print this help, then exit
1.31 ! moko 17153: -V, --version print version number and configuration settings, then exit
! 17154: --config print configuration, then exit
! 17155: -q, --quiet, --silent
! 17156: do not print progress messages
1.23 moko 17157: -d, --debug don't remove temporary files
17158: --recheck update $as_me by reconfiguring in the same conditions
1.31 ! moko 17159: --file=FILE[:TEMPLATE]
! 17160: instantiate the configuration file FILE
! 17161: --header=FILE[:TEMPLATE]
! 17162: instantiate the configuration header FILE
1.23 moko 17163:
17164: Configuration files:
17165: $config_files
17166:
17167: Configuration headers:
17168: $config_headers
17169:
17170: Configuration commands:
17171: $config_commands
17172:
1.31 ! moko 17173: Report bugs to the package provider."
! 17174:
1.23 moko 17175: _ACEOF
1.31 ! moko 17176: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17177: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.23 moko 17178: ac_cs_version="\\
17179: parser3pgsql.C config.status 10.3
1.31 ! moko 17180: configured by $0, generated by GNU Autoconf 2.68,
! 17181: with options \\"\$ac_cs_config\\"
1.23 moko 17182:
1.31 ! moko 17183: Copyright (C) 2010 Free Software Foundation, Inc.
1.23 moko 17184: This config.status script is free software; the Free Software Foundation
17185: gives unlimited permission to copy, distribute and modify it."
1.31 ! moko 17186:
! 17187: ac_pwd='$ac_pwd'
! 17188: srcdir='$srcdir'
! 17189: INSTALL='$INSTALL'
! 17190: MKDIR_P='$MKDIR_P'
! 17191: AWK='$AWK'
! 17192: test -n "\$AWK" || AWK=awk
1.23 moko 17193: _ACEOF
17194:
1.31 ! moko 17195: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17196: # The default lists apply if the user does not specify any file.
1.23 moko 17197: ac_need_defaults=:
17198: while test $# != 0
17199: do
17200: case $1 in
1.31 ! moko 17201: --*=?*)
! 17202: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 17203: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
! 17204: ac_shift=:
! 17205: ;;
! 17206: --*=)
! 17207: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 17208: ac_optarg=
1.23 moko 17209: ac_shift=:
17210: ;;
1.31 ! moko 17211: *)
1.23 moko 17212: ac_option=$1
17213: ac_optarg=$2
17214: ac_shift=shift
17215: ;;
17216: esac
17217:
17218: case $ac_option in
17219: # Handling of the options.
17220: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17221: ac_cs_recheck=: ;;
1.31 ! moko 17222: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
! 17223: $as_echo "$ac_cs_version"; exit ;;
! 17224: --config | --confi | --conf | --con | --co | --c )
! 17225: $as_echo "$ac_cs_config"; exit ;;
! 17226: --debug | --debu | --deb | --de | --d | -d )
1.23 moko 17227: debug=: ;;
17228: --file | --fil | --fi | --f )
17229: $ac_shift
1.31 ! moko 17230: case $ac_optarg in
! 17231: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 17232: '') as_fn_error $? "missing file argument" ;;
! 17233: esac
! 17234: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.23 moko 17235: ac_need_defaults=false;;
17236: --header | --heade | --head | --hea )
17237: $ac_shift
1.31 ! moko 17238: case $ac_optarg in
! 17239: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 17240: esac
! 17241: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.23 moko 17242: ac_need_defaults=false;;
1.31 ! moko 17243: --he | --h)
! 17244: # Conflict between --help and --header
! 17245: as_fn_error $? "ambiguous option: \`$1'
! 17246: Try \`$0 --help' for more information.";;
! 17247: --help | --hel | -h )
! 17248: $as_echo "$ac_cs_usage"; exit ;;
1.23 moko 17249: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17250: | -silent | --silent | --silen | --sile | --sil | --si | --s)
17251: ac_cs_silent=: ;;
17252:
17253: # This is an error.
1.31 ! moko 17254: -*) as_fn_error $? "unrecognized option: \`$1'
! 17255: Try \`$0 --help' for more information." ;;
1.23 moko 17256:
1.31 ! moko 17257: *) as_fn_append ac_config_targets " $1"
! 17258: ac_need_defaults=false ;;
1.23 moko 17259:
17260: esac
17261: shift
17262: done
17263:
17264: ac_configure_extra_args=
17265:
17266: if $ac_cs_silent; then
17267: exec 6>/dev/null
17268: ac_configure_extra_args="$ac_configure_extra_args --silent"
17269: fi
17270:
17271: _ACEOF
1.31 ! moko 17272: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.23 moko 17273: if \$ac_cs_recheck; then
1.31 ! moko 17274: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
! 17275: shift
! 17276: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
! 17277: CONFIG_SHELL='$SHELL'
! 17278: export CONFIG_SHELL
! 17279: exec "\$@"
1.23 moko 17280: fi
17281:
17282: _ACEOF
1.31 ! moko 17283: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17284: exec 5>>config.log
! 17285: {
! 17286: echo
! 17287: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 17288: ## Running $as_me. ##
! 17289: _ASBOX
! 17290: $as_echo "$ac_log"
! 17291: } >&5
! 17292:
! 17293: _ACEOF
! 17294: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.23 moko 17295: #
1.31 ! moko 17296: # INIT-COMMANDS
1.23 moko 17297: #
17298: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17299:
17300:
17301: # The HP-UX ksh and POSIX shell print the target directory to stdout
17302: # if CDPATH is set.
17303: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17304:
17305: sed_quote_subst='$sed_quote_subst'
17306: double_quote_subst='$double_quote_subst'
17307: delay_variable_subst='$delay_variable_subst'
17308: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17309: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.30 moko 17310: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.23 moko 17311: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17312: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17313: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17314: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17315: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17316: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17317: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17318: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17319: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17320: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17321: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17322: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17323: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17324: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17325: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17326: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17327: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17328: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17329: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17330: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17331: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17332: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17333: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17334: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17335: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17336: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17337: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17338: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17339: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17340: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17341: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17342: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17343: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17344: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17345: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17346: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17347: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17348: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17349: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17350: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17351: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17352: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17353: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17354: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17355: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17356: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17357: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17358: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17359: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17360: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17361: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17362: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17363: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17364: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17365: 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"`'
17366: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17367: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17368: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17369: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17370: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17371: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17372: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17373: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17374: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17375: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17376: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17377: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17378: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17379: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17380: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17381: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17382: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17383: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17384: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17385: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17386: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17387: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17388: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17389: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17390: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17391: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17392: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17393: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17394: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17395: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17396: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17397: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17398: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17399: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17400: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17401: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17402: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17403: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17404: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17405: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17406: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17407: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17408: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17409: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17410: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17411: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17412: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17413: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17414: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17415: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17416: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17417: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17418: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17419: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17420: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17421: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17422: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17423: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17424: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17425: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17426: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17427: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17428: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17429: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17430: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17431: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17432: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17433: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17434: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17435: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17436: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17437: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17438: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17439: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17440: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17441: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17442: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17443: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17444: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17445: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17446: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17447: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17448: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17449: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17450: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17451: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17452: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17453: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17454: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17455: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17456: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17457: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17458: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17459: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17460: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17461: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17462: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17463: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17464: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17465: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17466: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17467: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17468: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17469: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17470: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17471: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17472: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17473: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17474: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17475: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17476: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17477: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17478: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17479: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17480: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17481: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17482: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17483: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17484: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17485: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17486: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17487: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17488: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17489: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17490: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17491: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17492: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17493:
17494: LTCC='$LTCC'
17495: LTCFLAGS='$LTCFLAGS'
17496: compiler='$compiler_DEFAULT'
17497:
17498: # A function that is used when there is no print builtin or printf.
17499: func_fallback_echo ()
17500: {
17501: eval 'cat <<_LTECHO_EOF
17502: \$1
17503: _LTECHO_EOF'
17504: }
17505:
17506: # Quote evaled strings.
17507: for var in AS \
17508: DLLTOOL \
17509: OBJDUMP \
17510: SHELL \
17511: ECHO \
17512: PATH_SEPARATOR \
17513: SED \
17514: GREP \
17515: EGREP \
17516: FGREP \
17517: LD \
17518: NM \
17519: LN_S \
17520: lt_SP2NL \
17521: lt_NL2SP \
17522: reload_flag \
17523: deplibs_check_method \
17524: file_magic_cmd \
17525: file_magic_glob \
17526: want_nocaseglob \
17527: sharedlib_from_linklib_cmd \
17528: AR \
17529: AR_FLAGS \
17530: archiver_list_spec \
17531: STRIP \
17532: RANLIB \
17533: CC \
17534: CFLAGS \
17535: compiler \
17536: lt_cv_sys_global_symbol_pipe \
17537: lt_cv_sys_global_symbol_to_cdecl \
17538: lt_cv_sys_global_symbol_to_c_name_address \
17539: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17540: nm_file_list_spec \
17541: lt_prog_compiler_no_builtin_flag \
17542: lt_prog_compiler_pic \
17543: lt_prog_compiler_wl \
17544: lt_prog_compiler_static \
17545: lt_cv_prog_compiler_c_o \
17546: need_locks \
17547: MANIFEST_TOOL \
17548: DSYMUTIL \
17549: NMEDIT \
17550: LIPO \
17551: OTOOL \
17552: OTOOL64 \
17553: shrext_cmds \
17554: export_dynamic_flag_spec \
17555: whole_archive_flag_spec \
17556: compiler_needs_object \
17557: with_gnu_ld \
17558: allow_undefined_flag \
17559: no_undefined_flag \
17560: hardcode_libdir_flag_spec \
17561: hardcode_libdir_separator \
17562: exclude_expsyms \
17563: include_expsyms \
17564: file_list_spec \
17565: variables_saved_for_relink \
17566: libname_spec \
17567: library_names_spec \
17568: soname_spec \
17569: install_override_mode \
17570: finish_eval \
17571: old_striplib \
17572: striplib \
17573: compiler_lib_search_dirs \
17574: predep_objects \
17575: postdep_objects \
17576: predeps \
17577: postdeps \
17578: compiler_lib_search_path \
17579: LD_CXX \
17580: reload_flag_CXX \
17581: compiler_CXX \
17582: lt_prog_compiler_no_builtin_flag_CXX \
17583: lt_prog_compiler_pic_CXX \
17584: lt_prog_compiler_wl_CXX \
17585: lt_prog_compiler_static_CXX \
17586: lt_cv_prog_compiler_c_o_CXX \
17587: export_dynamic_flag_spec_CXX \
17588: whole_archive_flag_spec_CXX \
17589: compiler_needs_object_CXX \
17590: with_gnu_ld_CXX \
17591: allow_undefined_flag_CXX \
17592: no_undefined_flag_CXX \
17593: hardcode_libdir_flag_spec_CXX \
17594: hardcode_libdir_separator_CXX \
17595: exclude_expsyms_CXX \
17596: include_expsyms_CXX \
17597: file_list_spec_CXX \
17598: compiler_lib_search_dirs_CXX \
17599: predep_objects_CXX \
17600: postdep_objects_CXX \
17601: predeps_CXX \
17602: postdeps_CXX \
17603: compiler_lib_search_path_CXX; do
17604: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17605: *[\\\\\\\`\\"\\\$]*)
17606: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17607: ;;
17608: *)
17609: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17610: ;;
17611: esac
17612: done
17613:
17614: # Double-quote double-evaled strings.
17615: for var in reload_cmds \
17616: old_postinstall_cmds \
17617: old_postuninstall_cmds \
17618: old_archive_cmds \
17619: extract_expsyms_cmds \
17620: old_archive_from_new_cmds \
17621: old_archive_from_expsyms_cmds \
17622: archive_cmds \
17623: archive_expsym_cmds \
17624: module_cmds \
17625: module_expsym_cmds \
17626: export_symbols_cmds \
17627: prelink_cmds \
17628: postlink_cmds \
17629: postinstall_cmds \
17630: postuninstall_cmds \
17631: finish_cmds \
17632: sys_lib_search_path_spec \
17633: sys_lib_dlsearch_path_spec \
17634: reload_cmds_CXX \
17635: old_archive_cmds_CXX \
17636: old_archive_from_new_cmds_CXX \
17637: old_archive_from_expsyms_cmds_CXX \
17638: archive_cmds_CXX \
17639: archive_expsym_cmds_CXX \
17640: module_cmds_CXX \
17641: module_expsym_cmds_CXX \
17642: export_symbols_cmds_CXX \
17643: prelink_cmds_CXX \
17644: postlink_cmds_CXX; do
17645: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17646: *[\\\\\\\`\\"\\\$]*)
17647: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17648: ;;
17649: *)
17650: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17651: ;;
17652: esac
17653: done
17654:
17655: ac_aux_dir='$ac_aux_dir'
17656: xsi_shell='$xsi_shell'
17657: lt_shell_append='$lt_shell_append'
17658:
17659: # See if we are running on zsh, and set the options which allow our
17660: # commands through without removal of \ escapes INIT.
17661: if test -n "\${ZSH_VERSION+set}" ; then
17662: setopt NO_GLOB_SUBST
17663: fi
17664:
17665:
17666: PACKAGE='$PACKAGE'
17667: VERSION='$VERSION'
17668: TIMESTAMP='$TIMESTAMP'
17669: RM='$RM'
17670: ofile='$ofile'
17671:
17672:
17673:
17674:
17675:
17676:
17677: _ACEOF
17678:
1.31 ! moko 17679: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.23 moko 17680:
1.31 ! moko 17681: # Handling of arguments.
1.23 moko 17682: for ac_config_target in $ac_config_targets
17683: do
1.31 ! moko 17684: case $ac_config_target in
! 17685: "config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
! 17686: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
! 17687: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
! 17688: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 17689:
! 17690: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.23 moko 17691: esac
17692: done
17693:
1.31 ! moko 17694:
1.23 moko 17695: # If the user did not use the arguments to specify the items to instantiate,
17696: # then the envvar interface is used. Set only those that are not.
17697: # We use the long form for the default assignment because of an extremely
17698: # bizarre bug on SunOS 4.1.3.
17699: if $ac_need_defaults; then
17700: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17701: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17702: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17703: fi
17704:
17705: # Have a temporary directory for convenience. Make it in the build tree
1.31 ! moko 17706: # simply because there is no reason against having it here, and in addition,
1.23 moko 17707: # creating and moving files from /tmp can sometimes cause problems.
1.31 ! moko 17708: # Hook for its removal unless debugging.
! 17709: # Note that there is a small window in which the directory will not be cleaned:
! 17710: # after its creation but before its name has been assigned to `$tmp'.
1.23 moko 17711: $debug ||
17712: {
1.31 ! moko 17713: tmp= ac_tmp=
! 17714: trap 'exit_status=$?
! 17715: : "${ac_tmp:=$tmp}"
! 17716: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
! 17717: ' 0
! 17718: trap 'as_fn_exit 1' 1 2 13 15
1.23 moko 17719: }
17720: # Create a (secure) tmp directory for tmp files.
17721:
17722: {
1.31 ! moko 17723: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
! 17724: test -d "$tmp"
1.23 moko 17725: } ||
17726: {
1.31 ! moko 17727: tmp=./conf$$-$RANDOM
! 17728: (umask 077 && mkdir "$tmp")
! 17729: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
! 17730: ac_tmp=$tmp
! 17731:
! 17732: # Set up the scripts for CONFIG_FILES section.
! 17733: # No need to generate them if there are no CONFIG_FILES.
! 17734: # This happens for instance with `./config.status config.h'.
! 17735: if test -n "$CONFIG_FILES"; then
! 17736:
! 17737:
! 17738: ac_cr=`echo X | tr X '\015'`
! 17739: # On cygwin, bash can eat \r inside `` if the user requested igncr.
! 17740: # But we know of no other shell where ac_cr would be empty at this
! 17741: # point, so we can use a bashism as a fallback.
! 17742: if test "x$ac_cr" = x; then
! 17743: eval ac_cr=\$\'\\r\'
! 17744: fi
! 17745: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
! 17746: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
! 17747: ac_cs_awk_cr='\\r'
! 17748: else
! 17749: ac_cs_awk_cr=$ac_cr
! 17750: fi
! 17751:
! 17752: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
! 17753: _ACEOF
! 17754:
! 17755:
! 17756: {
! 17757: echo "cat >conf$$subs.awk <<_ACEOF" &&
! 17758: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
! 17759: echo "_ACEOF"
! 17760: } >conf$$subs.sh ||
! 17761: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 17762: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
! 17763: ac_delim='%!_!# '
! 17764: for ac_last_try in false false false false false :; do
! 17765: . ./conf$$subs.sh ||
! 17766: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 17767:
! 17768: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
! 17769: if test $ac_delim_n = $ac_delim_num; then
! 17770: break
! 17771: elif $ac_last_try; then
! 17772: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 17773: else
! 17774: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
! 17775: fi
! 17776: done
! 17777: rm -f conf$$subs.sh
! 17778:
! 17779: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17780: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
! 17781: _ACEOF
! 17782: sed -n '
! 17783: h
! 17784: s/^/S["/; s/!.*/"]=/
! 17785: p
! 17786: g
! 17787: s/^[^!]*!//
! 17788: :repl
! 17789: t repl
! 17790: s/'"$ac_delim"'$//
! 17791: t delim
! 17792: :nl
! 17793: h
! 17794: s/\(.\{148\}\)..*/\1/
! 17795: t more1
! 17796: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
! 17797: p
! 17798: n
! 17799: b repl
! 17800: :more1
! 17801: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
! 17802: p
! 17803: g
! 17804: s/.\{148\}//
! 17805: t nl
! 17806: :delim
! 17807: h
! 17808: s/\(.\{148\}\)..*/\1/
! 17809: t more2
! 17810: s/["\\]/\\&/g; s/^/"/; s/$/"/
! 17811: p
! 17812: b
! 17813: :more2
! 17814: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
! 17815: p
! 17816: g
! 17817: s/.\{148\}//
! 17818: t delim
! 17819: ' <conf$$subs.awk | sed '
! 17820: /^[^""]/{
! 17821: N
! 17822: s/\n//
! 17823: }
! 17824: ' >>$CONFIG_STATUS || ac_write_fail=1
! 17825: rm -f conf$$subs.awk
! 17826: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17827: _ACAWK
! 17828: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
! 17829: for (key in S) S_is_set[key] = 1
! 17830: FS = ""
! 17831:
! 17832: }
1.23 moko 17833: {
1.31 ! moko 17834: line = $ 0
! 17835: nfields = split(line, field, "@")
! 17836: substed = 0
! 17837: len = length(field[1])
! 17838: for (i = 2; i < nfields; i++) {
! 17839: key = field[i]
! 17840: keylen = length(key)
! 17841: if (S_is_set[key]) {
! 17842: value = S[key]
! 17843: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
! 17844: len += length(value) + length(field[++i])
! 17845: substed = 1
! 17846: } else
! 17847: len += 1 + keylen
! 17848: }
! 17849:
! 17850: print line
1.23 moko 17851: }
17852:
1.31 ! moko 17853: _ACAWK
! 17854: _ACEOF
! 17855: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17856: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
! 17857: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
! 17858: else
! 17859: cat
! 17860: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
! 17861: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.23 moko 17862: _ACEOF
17863:
1.31 ! moko 17864: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
! 17865: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
! 17866: # trailing colons and then remove the whole line if VPATH becomes empty
! 17867: # (actually we leave an empty line to preserve line numbers).
! 17868: if test "x$srcdir" = x.; then
! 17869: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
! 17870: h
! 17871: s///
! 17872: s/^/:/
! 17873: s/[ ]*$/:/
! 17874: s/:\$(srcdir):/:/g
! 17875: s/:\${srcdir}:/:/g
! 17876: s/:@srcdir@:/:/g
! 17877: s/^:*//
! 17878: s/:*$//
! 17879: x
! 17880: s/\(=[ ]*\).*/\1/
! 17881: G
! 17882: s/\n//
! 17883: s/^[^=]*=[ ]*$//
! 17884: }'
! 17885: fi
1.23 moko 17886:
1.31 ! moko 17887: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17888: fi # test -n "$CONFIG_FILES"
1.23 moko 17889:
1.31 ! moko 17890: # Set up the scripts for CONFIG_HEADERS section.
! 17891: # No need to generate them if there are no CONFIG_HEADERS.
! 17892: # This happens for instance with `./config.status Makefile'.
! 17893: if test -n "$CONFIG_HEADERS"; then
! 17894: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
! 17895: BEGIN {
! 17896: _ACEOF
! 17897:
! 17898: # Transform confdefs.h into an awk script `defines.awk', embedded as
! 17899: # here-document in config.status, that substitutes the proper values into
! 17900: # config.h.in to produce config.h.
! 17901:
! 17902: # Create a delimiter string that does not exist in confdefs.h, to ease
! 17903: # handling of long lines.
! 17904: ac_delim='%!_!# '
! 17905: for ac_last_try in false false :; do
! 17906: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
! 17907: if test -z "$ac_tt"; then
! 17908: break
! 17909: elif $ac_last_try; then
! 17910: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
! 17911: else
! 17912: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.23 moko 17913: fi
1.31 ! moko 17914: done
1.23 moko 17915:
1.31 ! moko 17916: # For the awk script, D is an array of macro values keyed by name,
! 17917: # likewise P contains macro parameters if any. Preserve backslash
! 17918: # newline sequences.
! 17919:
! 17920: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
! 17921: sed -n '
! 17922: s/.\{148\}/&'"$ac_delim"'/g
! 17923: t rset
! 17924: :rset
! 17925: s/^[ ]*#[ ]*define[ ][ ]*/ /
! 17926: t def
! 17927: d
! 17928: :def
! 17929: s/\\$//
! 17930: t bsnl
! 17931: s/["\\]/\\&/g
! 17932: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
! 17933: D["\1"]=" \3"/p
! 17934: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
! 17935: d
! 17936: :bsnl
! 17937: s/["\\]/\\&/g
! 17938: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
! 17939: D["\1"]=" \3\\\\\\n"\\/p
! 17940: t cont
! 17941: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
! 17942: t cont
! 17943: d
! 17944: :cont
! 17945: n
! 17946: s/.\{148\}/&'"$ac_delim"'/g
! 17947: t clear
! 17948: :clear
! 17949: s/\\$//
! 17950: t bsnlc
! 17951: s/["\\]/\\&/g; s/^/"/; s/$/"/p
! 17952: d
! 17953: :bsnlc
! 17954: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
! 17955: b cont
! 17956: ' <confdefs.h | sed '
! 17957: s/'"$ac_delim"'/"\\\
! 17958: "/g' >>$CONFIG_STATUS || ac_write_fail=1
! 17959:
! 17960: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17961: for (key in D) D_is_set[key] = 1
! 17962: FS = ""
! 17963: }
! 17964: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
! 17965: line = \$ 0
! 17966: split(line, arg, " ")
! 17967: if (arg[1] == "#") {
! 17968: defundef = arg[2]
! 17969: mac1 = arg[3]
! 17970: } else {
! 17971: defundef = substr(arg[1], 2)
! 17972: mac1 = arg[2]
! 17973: }
! 17974: split(mac1, mac2, "(") #)
! 17975: macro = mac2[1]
! 17976: prefix = substr(line, 1, index(line, defundef) - 1)
! 17977: if (D_is_set[macro]) {
! 17978: # Preserve the white space surrounding the "#".
! 17979: print prefix "define", macro P[macro] D[macro]
! 17980: next
! 17981: } else {
! 17982: # Replace #undef with comments. This is necessary, for example,
! 17983: # in the case of _POSIX_SOURCE, which is predefined and required
! 17984: # on some systems where configure will not decide to define it.
! 17985: if (defundef == "undef") {
! 17986: print "/*", prefix defundef, macro, "*/"
! 17987: next
! 17988: }
! 17989: }
! 17990: }
! 17991: { print }
! 17992: _ACAWK
1.23 moko 17993: _ACEOF
1.31 ! moko 17994: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17995: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
! 17996: fi # test -n "$CONFIG_HEADERS"
! 17997:
! 17998:
! 17999: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
! 18000: shift
! 18001: for ac_tag
! 18002: do
! 18003: case $ac_tag in
! 18004: :[FHLC]) ac_mode=$ac_tag; continue;;
! 18005: esac
! 18006: case $ac_mode$ac_tag in
! 18007: :[FHL]*:*);;
! 18008: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
! 18009: :[FH]-) ac_tag=-:-;;
! 18010: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
! 18011: esac
! 18012: ac_save_IFS=$IFS
! 18013: IFS=:
! 18014: set x $ac_tag
! 18015: IFS=$ac_save_IFS
! 18016: shift
! 18017: ac_file=$1
! 18018: shift
! 18019:
! 18020: case $ac_mode in
! 18021: :L) ac_source=$1;;
! 18022: :[FH])
! 18023: ac_file_inputs=
! 18024: for ac_f
! 18025: do
! 18026: case $ac_f in
! 18027: -) ac_f="$ac_tmp/stdin";;
! 18028: *) # Look for the file first in the build tree, then in the source tree
! 18029: # (if the path is not absolute). The absolute path cannot be DOS-style,
! 18030: # because $ac_f cannot contain `:'.
! 18031: test -f "$ac_f" ||
! 18032: case $ac_f in
! 18033: [\\/$]*) false;;
! 18034: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
! 18035: esac ||
! 18036: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
! 18037: esac
! 18038: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
! 18039: as_fn_append ac_file_inputs " '$ac_f'"
! 18040: done
! 18041:
! 18042: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 18043: # use $as_me), people would be surprised to read:
! 18044: # /* config.h. Generated by config.status. */
! 18045: configure_input='Generated from '`
! 18046: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
! 18047: `' by configure.'
! 18048: if test x"$ac_file" != x-; then
! 18049: configure_input="$ac_file. $configure_input"
! 18050: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
! 18051: $as_echo "$as_me: creating $ac_file" >&6;}
! 18052: fi
! 18053: # Neutralize special characters interpreted by sed in replacement strings.
! 18054: case $configure_input in #(
! 18055: *\&* | *\|* | *\\* )
! 18056: ac_sed_conf_input=`$as_echo "$configure_input" |
! 18057: sed 's/[\\\\&|]/\\\\&/g'`;; #(
! 18058: *) ac_sed_conf_input=$configure_input;;
! 18059: esac
! 18060:
! 18061: case $ac_tag in
! 18062: *:-:* | *:-) cat >"$ac_tmp/stdin" \
! 18063: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
! 18064: esac
! 18065: ;;
1.23 moko 18066: esac
18067:
1.31 ! moko 18068: ac_dir=`$as_dirname -- "$ac_file" ||
1.23 moko 18069: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18070: X"$ac_file" : 'X\(//\)[^/]' \| \
18071: X"$ac_file" : 'X\(//\)$' \| \
1.31 ! moko 18072: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
! 18073: $as_echo X"$ac_file" |
! 18074: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18075: s//\1/
! 18076: q
! 18077: }
! 18078: /^X\(\/\/\)[^/].*/{
! 18079: s//\1/
! 18080: q
! 18081: }
! 18082: /^X\(\/\/\)$/{
! 18083: s//\1/
! 18084: q
! 18085: }
! 18086: /^X\(\/\).*/{
! 18087: s//\1/
! 18088: q
! 18089: }
! 18090: s/.*/./; q'`
! 18091: as_dir="$ac_dir"; as_fn_mkdir_p
1.23 moko 18092: ac_builddir=.
18093:
1.31 ! moko 18094: case "$ac_dir" in
! 18095: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 18096: *)
! 18097: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
! 18098: # A ".." for each directory in $ac_dir_suffix.
! 18099: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
! 18100: case $ac_top_builddir_sub in
! 18101: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 18102: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 18103: esac ;;
! 18104: esac
! 18105: ac_abs_top_builddir=$ac_pwd
! 18106: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 18107: # for backward compatibility:
! 18108: ac_top_builddir=$ac_top_build_prefix
1.23 moko 18109:
18110: case $srcdir in
1.31 ! moko 18111: .) # We are building in place.
1.23 moko 18112: ac_srcdir=.
1.31 ! moko 18113: ac_top_srcdir=$ac_top_builddir_sub
! 18114: ac_abs_top_srcdir=$ac_pwd ;;
! 18115: [\\/]* | ?:[\\/]* ) # Absolute name.
1.23 moko 18116: ac_srcdir=$srcdir$ac_dir_suffix;
1.31 ! moko 18117: ac_top_srcdir=$srcdir
! 18118: ac_abs_top_srcdir=$srcdir ;;
! 18119: *) # Relative name.
! 18120: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 18121: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 18122: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.23 moko 18123: esac
1.31 ! moko 18124: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.23 moko 18125:
18126:
1.31 ! moko 18127: case $ac_mode in
! 18128: :F)
! 18129: #
! 18130: # CONFIG_FILE
! 18131: #
1.23 moko 18132:
18133: case $INSTALL in
18134: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.31 ! moko 18135: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
! 18136: esac
! 18137: ac_MKDIR_P=$MKDIR_P
! 18138: case $MKDIR_P in
! 18139: [\\/$]* | ?:[\\/]* ) ;;
! 18140: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1.23 moko 18141: esac
1.31 ! moko 18142: _ACEOF
1.23 moko 18143:
1.31 ! moko 18144: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 18145: # If the template does not know about datarootdir, expand it.
! 18146: # FIXME: This hack should be removed a few years after 2.60.
! 18147: ac_datarootdir_hack=; ac_datarootdir_seen=
! 18148: ac_sed_dataroot='
! 18149: /datarootdir/ {
! 18150: p
! 18151: q
! 18152: }
! 18153: /@datadir@/p
! 18154: /@docdir@/p
! 18155: /@infodir@/p
! 18156: /@localedir@/p
! 18157: /@mandir@/p'
! 18158: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
! 18159: *datarootdir*) ac_datarootdir_seen=yes;;
! 18160: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
! 18161: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 18162: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
! 18163: _ACEOF
! 18164: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 18165: ac_datarootdir_hack='
! 18166: s&@datadir@&$datadir&g
! 18167: s&@docdir@&$docdir&g
! 18168: s&@infodir@&$infodir&g
! 18169: s&@localedir@&$localedir&g
! 18170: s&@mandir@&$mandir&g
! 18171: s&\\\${datarootdir}&$datarootdir&g' ;;
! 18172: esac
! 18173: _ACEOF
1.23 moko 18174:
1.31 ! moko 18175: # Neutralize VPATH when `$srcdir' = `.'.
! 18176: # Shell code in configure.ac might set extrasub.
! 18177: # FIXME: do we really want to maintain this feature?
! 18178: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 18179: ac_sed_extra="$ac_vpsub
1.23 moko 18180: $extrasub
18181: _ACEOF
1.31 ! moko 18182: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.23 moko 18183: :t
18184: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.31 ! moko 18185: s|@configure_input@|$ac_sed_conf_input|;t t
! 18186: s&@top_builddir@&$ac_top_builddir_sub&;t t
! 18187: s&@top_build_prefix@&$ac_top_build_prefix&;t t
! 18188: s&@srcdir@&$ac_srcdir&;t t
! 18189: s&@abs_srcdir@&$ac_abs_srcdir&;t t
! 18190: s&@top_srcdir@&$ac_top_srcdir&;t t
! 18191: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
! 18192: s&@builddir@&$ac_builddir&;t t
! 18193: s&@abs_builddir@&$ac_abs_builddir&;t t
! 18194: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
! 18195: s&@INSTALL@&$ac_INSTALL&;t t
! 18196: s&@MKDIR_P@&$ac_MKDIR_P&;t t
! 18197: $ac_datarootdir_hack
! 18198: "
! 18199: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
! 18200: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 18201:
! 18202: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
! 18203: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
! 18204: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
! 18205: "$ac_tmp/out"`; test -z "$ac_out"; } &&
! 18206: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 18207: which seems to be undefined. Please make sure it is defined" >&5
! 18208: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 18209: which seems to be undefined. Please make sure it is defined" >&2;}
1.23 moko 18210:
1.31 ! moko 18211: rm -f "$ac_tmp/stdin"
1.23 moko 18212: case $ac_file in
1.31 ! moko 18213: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
! 18214: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
! 18215: esac \
! 18216: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 18217: ;;
! 18218: :H)
! 18219: #
! 18220: # CONFIG_HEADER
! 18221: #
1.23 moko 18222: if test x"$ac_file" != x-; then
1.31 ! moko 18223: {
! 18224: $as_echo "/* $configure_input */" \
! 18225: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
! 18226: } >"$ac_tmp/config.h" \
! 18227: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 18228: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
! 18229: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
! 18230: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.23 moko 18231: else
1.31 ! moko 18232: rm -f "$ac_file"
! 18233: mv "$ac_tmp/config.h" "$ac_file" \
! 18234: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.23 moko 18235: fi
18236: else
1.31 ! moko 18237: $as_echo "/* $configure_input */" \
! 18238: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
! 18239: || as_fn_error $? "could not create -" "$LINENO" 5
1.23 moko 18240: fi
1.31 ! moko 18241: # Compute "$ac_file"'s index in $config_headers.
! 18242: _am_arg="$ac_file"
1.23 moko 18243: _am_stamp_count=1
18244: for _am_header in $config_headers :; do
18245: case $_am_header in
1.31 ! moko 18246: $_am_arg | $_am_arg:* )
1.23 moko 18247: break ;;
18248: * )
18249: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18250: esac
18251: done
1.31 ! moko 18252: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
! 18253: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 18254: X"$_am_arg" : 'X\(//\)[^/]' \| \
! 18255: X"$_am_arg" : 'X\(//\)$' \| \
! 18256: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
! 18257: $as_echo X"$_am_arg" |
! 18258: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18259: s//\1/
! 18260: q
! 18261: }
! 18262: /^X\(\/\/\)[^/].*/{
! 18263: s//\1/
! 18264: q
! 18265: }
! 18266: /^X\(\/\/\)$/{
! 18267: s//\1/
! 18268: q
! 18269: }
! 18270: /^X\(\/\).*/{
! 18271: s//\1/
! 18272: q
! 18273: }
! 18274: s/.*/./; q'`/stamp-h$_am_stamp_count
! 18275: ;;
1.23 moko 18276:
1.31 ! moko 18277: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
! 18278: $as_echo "$as_me: executing $ac_file commands" >&6;}
! 18279: ;;
! 18280: esac
1.23 moko 18281:
18282:
1.31 ! moko 18283: case $ac_file$ac_mode in
! 18284: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
! 18285: # Autoconf 2.62 quotes --file arguments for eval, but not when files
! 18286: # are listed without --file. Let's play safe and only enable the eval
! 18287: # if we detect the quoting.
! 18288: case $CONFIG_FILES in
! 18289: *\'*) eval set x "$CONFIG_FILES" ;;
! 18290: *) set x $CONFIG_FILES ;;
! 18291: esac
! 18292: shift
! 18293: for mf
! 18294: do
! 18295: # Strip MF so we end up with the name of the file.
! 18296: mf=`echo "$mf" | sed -e 's/:.*$//'`
! 18297: # Check whether this is an Automake generated Makefile or not.
! 18298: # We used to match only the files named `Makefile.in', but
! 18299: # some people rename them; so instead we look at the file content.
! 18300: # Grep'ing the first line is not enough: some people post-process
! 18301: # each Makefile.in and add a new line on top of each file to say so.
! 18302: # Grep'ing the whole file is not good either: AIX grep has a line
! 18303: # limit of 2048, but all sed's we know have understand at least 4000.
! 18304: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
! 18305: dirpart=`$as_dirname -- "$mf" ||
1.23 moko 18306: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18307: X"$mf" : 'X\(//\)[^/]' \| \
18308: X"$mf" : 'X\(//\)$' \| \
1.31 ! moko 18309: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
! 18310: $as_echo X"$mf" |
! 18311: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18312: s//\1/
! 18313: q
! 18314: }
! 18315: /^X\(\/\/\)[^/].*/{
! 18316: s//\1/
! 18317: q
! 18318: }
! 18319: /^X\(\/\/\)$/{
! 18320: s//\1/
! 18321: q
! 18322: }
! 18323: /^X\(\/\).*/{
! 18324: s//\1/
! 18325: q
! 18326: }
! 18327: s/.*/./; q'`
! 18328: else
! 18329: continue
! 18330: fi
! 18331: # Extract the definition of DEPDIR, am__include, and am__quote
! 18332: # from the Makefile without running `make'.
! 18333: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
! 18334: test -z "$DEPDIR" && continue
! 18335: am__include=`sed -n 's/^am__include = //p' < "$mf"`
! 18336: test -z "am__include" && continue
! 18337: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
! 18338: # When using ansi2knr, U may be empty or an underscore; expand it
! 18339: U=`sed -n 's/^U = //p' < "$mf"`
! 18340: # Find all dependency output files, they are included files with
! 18341: # $(DEPDIR) in their names. We invoke sed twice because it is the
! 18342: # simplest approach to changing $(DEPDIR) to its actual value in the
! 18343: # expansion.
! 18344: for file in `sed -n "
! 18345: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
! 18346: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
! 18347: # Make sure the directory exists.
! 18348: test -f "$dirpart/$file" && continue
! 18349: fdir=`$as_dirname -- "$file" ||
1.23 moko 18350: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18351: X"$file" : 'X\(//\)[^/]' \| \
18352: X"$file" : 'X\(//\)$' \| \
1.31 ! moko 18353: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
! 18354: $as_echo X"$file" |
! 18355: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18356: s//\1/
! 18357: q
! 18358: }
! 18359: /^X\(\/\/\)[^/].*/{
! 18360: s//\1/
! 18361: q
! 18362: }
! 18363: /^X\(\/\/\)$/{
! 18364: s//\1/
! 18365: q
! 18366: }
! 18367: /^X\(\/\).*/{
! 18368: s//\1/
! 18369: q
! 18370: }
! 18371: s/.*/./; q'`
! 18372: as_dir=$dirpart/$fdir; as_fn_mkdir_p
! 18373: # echo "creating $dirpart/$file"
! 18374: echo '# dummy' > "$dirpart/$file"
1.23 moko 18375: done
18376: done
1.31 ! moko 18377: }
1.23 moko 18378: ;;
1.31 ! moko 18379: "libtool":C)
1.23 moko 18380:
18381: # See if we are running on zsh, and set the options which allow our
18382: # commands through without removal of \ escapes.
18383: if test -n "${ZSH_VERSION+set}" ; then
18384: setopt NO_GLOB_SUBST
18385: fi
18386:
18387: cfgfile="${ofile}T"
18388: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18389: $RM "$cfgfile"
18390:
18391: cat <<_LT_EOF >> "$cfgfile"
18392: #! $SHELL
18393:
18394: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18395: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18396: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18397: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18398: #
18399: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18400: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18401: # Foundation, Inc.
18402: # Written by Gordon Matzigkeit, 1996
18403: #
18404: # This file is part of GNU Libtool.
18405: #
18406: # GNU Libtool is free software; you can redistribute it and/or
18407: # modify it under the terms of the GNU General Public License as
18408: # published by the Free Software Foundation; either version 2 of
18409: # the License, or (at your option) any later version.
18410: #
18411: # As a special exception to the GNU General Public License,
18412: # if you distribute this file as part of a program or library that
18413: # is built using GNU Libtool, you may include this file under the
18414: # same distribution terms that you use for the rest of that program.
18415: #
18416: # GNU Libtool is distributed in the hope that it will be useful,
18417: # but WITHOUT ANY WARRANTY; without even the implied warranty of
18418: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18419: # GNU General Public License for more details.
18420: #
18421: # You should have received a copy of the GNU General Public License
18422: # along with GNU Libtool; see the file COPYING. If not, a copy
18423: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18424: # obtained by writing to the Free Software Foundation, Inc.,
18425: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18426:
18427:
18428: # The names of the tagged configurations supported by this script.
18429: available_tags="CXX "
18430:
18431: # ### BEGIN LIBTOOL CONFIG
18432:
18433: # Which release of libtool.m4 was used?
18434: macro_version=$macro_version
18435: macro_revision=$macro_revision
18436:
1.30 moko 18437: # Whether or not to build static libraries.
18438: build_old_libs=$enable_static
18439:
1.23 moko 18440: # Assembler program.
18441: AS=$lt_AS
18442:
18443: # DLL creation program.
18444: DLLTOOL=$lt_DLLTOOL
18445:
18446: # Object dumper program.
18447: OBJDUMP=$lt_OBJDUMP
18448:
18449: # Whether or not to build shared libraries.
18450: build_libtool_libs=$enable_shared
18451:
18452: # What type of objects to build.
18453: pic_mode=$pic_mode
18454:
18455: # Whether or not to optimize for fast installation.
18456: fast_install=$enable_fast_install
18457:
18458: # Shell to use when invoking shell scripts.
18459: SHELL=$lt_SHELL
18460:
18461: # An echo program that protects backslashes.
18462: ECHO=$lt_ECHO
18463:
18464: # The PATH separator for the build system.
18465: PATH_SEPARATOR=$lt_PATH_SEPARATOR
18466:
18467: # The host system.
18468: host_alias=$host_alias
18469: host=$host
18470: host_os=$host_os
18471:
18472: # The build system.
18473: build_alias=$build_alias
18474: build=$build
18475: build_os=$build_os
18476:
18477: # A sed program that does not truncate output.
18478: SED=$lt_SED
18479:
18480: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18481: Xsed="\$SED -e 1s/^X//"
18482:
18483: # A grep program that handles long lines.
18484: GREP=$lt_GREP
18485:
18486: # An ERE matcher.
18487: EGREP=$lt_EGREP
18488:
18489: # A literal string matcher.
18490: FGREP=$lt_FGREP
18491:
18492: # A BSD- or MS-compatible name lister.
18493: NM=$lt_NM
18494:
18495: # Whether we need soft or hard links.
18496: LN_S=$lt_LN_S
18497:
18498: # What is the maximum length of a command?
18499: max_cmd_len=$max_cmd_len
18500:
18501: # Object file suffix (normally "o").
18502: objext=$ac_objext
18503:
18504: # Executable file suffix (normally "").
18505: exeext=$exeext
18506:
18507: # whether the shell understands "unset".
18508: lt_unset=$lt_unset
18509:
18510: # turn spaces into newlines.
18511: SP2NL=$lt_lt_SP2NL
18512:
18513: # turn newlines into spaces.
18514: NL2SP=$lt_lt_NL2SP
18515:
18516: # convert \$build file names to \$host format.
18517: to_host_file_cmd=$lt_cv_to_host_file_cmd
18518:
18519: # convert \$build files to toolchain format.
18520: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18521:
18522: # Method to check whether dependent libraries are shared objects.
18523: deplibs_check_method=$lt_deplibs_check_method
18524:
18525: # Command to use when deplibs_check_method = "file_magic".
18526: file_magic_cmd=$lt_file_magic_cmd
18527:
18528: # How to find potential files when deplibs_check_method = "file_magic".
18529: file_magic_glob=$lt_file_magic_glob
18530:
18531: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18532: want_nocaseglob=$lt_want_nocaseglob
18533:
18534: # Command to associate shared and link libraries.
18535: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18536:
18537: # The archiver.
18538: AR=$lt_AR
18539:
18540: # Flags to create an archive.
18541: AR_FLAGS=$lt_AR_FLAGS
18542:
18543: # How to feed a file listing to the archiver.
18544: archiver_list_spec=$lt_archiver_list_spec
18545:
18546: # A symbol stripping program.
18547: STRIP=$lt_STRIP
18548:
18549: # Commands used to install an old-style archive.
18550: RANLIB=$lt_RANLIB
18551: old_postinstall_cmds=$lt_old_postinstall_cmds
18552: old_postuninstall_cmds=$lt_old_postuninstall_cmds
18553:
18554: # Whether to use a lock for old archive extraction.
18555: lock_old_archive_extraction=$lock_old_archive_extraction
18556:
18557: # A C compiler.
18558: LTCC=$lt_CC
18559:
18560: # LTCC compiler flags.
18561: LTCFLAGS=$lt_CFLAGS
18562:
18563: # Take the output of nm and produce a listing of raw symbols and C names.
18564: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18565:
18566: # Transform the output of nm in a proper C declaration.
18567: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18568:
18569: # Transform the output of nm in a C name address pair.
18570: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18571:
18572: # Transform the output of nm in a C name address pair when lib prefix is needed.
18573: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18574:
18575: # Specify filename containing input files for \$NM.
18576: nm_file_list_spec=$lt_nm_file_list_spec
18577:
18578: # The root where to search for dependent libraries,and in which our libraries should be installed.
18579: lt_sysroot=$lt_sysroot
18580:
18581: # The name of the directory that contains temporary libtool files.
18582: objdir=$objdir
18583:
18584: # Used to examine libraries when file_magic_cmd begins with "file".
18585: MAGIC_CMD=$MAGIC_CMD
18586:
18587: # Must we lock files when doing compilation?
18588: need_locks=$lt_need_locks
18589:
18590: # Manifest tool.
18591: MANIFEST_TOOL=$lt_MANIFEST_TOOL
18592:
18593: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18594: DSYMUTIL=$lt_DSYMUTIL
18595:
18596: # Tool to change global to local symbols on Mac OS X.
18597: NMEDIT=$lt_NMEDIT
18598:
18599: # Tool to manipulate fat objects and archives on Mac OS X.
18600: LIPO=$lt_LIPO
18601:
18602: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18603: OTOOL=$lt_OTOOL
18604:
18605: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18606: OTOOL64=$lt_OTOOL64
18607:
18608: # Old archive suffix (normally "a").
18609: libext=$libext
18610:
18611: # Shared library suffix (normally ".so").
18612: shrext_cmds=$lt_shrext_cmds
18613:
18614: # The commands to extract the exported symbol list from a shared archive.
18615: extract_expsyms_cmds=$lt_extract_expsyms_cmds
18616:
18617: # Variables whose values should be saved in libtool wrapper scripts and
18618: # restored at link time.
18619: variables_saved_for_relink=$lt_variables_saved_for_relink
18620:
18621: # Do we need the "lib" prefix for modules?
18622: need_lib_prefix=$need_lib_prefix
18623:
18624: # Do we need a version for libraries?
18625: need_version=$need_version
18626:
18627: # Library versioning type.
18628: version_type=$version_type
18629:
18630: # Shared library runtime path variable.
18631: runpath_var=$runpath_var
18632:
18633: # Shared library path variable.
18634: shlibpath_var=$shlibpath_var
18635:
18636: # Is shlibpath searched before the hard-coded library search path?
18637: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18638:
18639: # Format of library name prefix.
18640: libname_spec=$lt_libname_spec
18641:
18642: # List of archive names. First name is the real one, the rest are links.
18643: # The last name is the one that the linker finds with -lNAME
18644: library_names_spec=$lt_library_names_spec
18645:
18646: # The coded name of the library, if different from the real name.
18647: soname_spec=$lt_soname_spec
18648:
18649: # Permission mode override for installation of shared libraries.
18650: install_override_mode=$lt_install_override_mode
18651:
18652: # Command to use after installation of a shared archive.
18653: postinstall_cmds=$lt_postinstall_cmds
18654:
18655: # Command to use after uninstallation of a shared archive.
18656: postuninstall_cmds=$lt_postuninstall_cmds
18657:
18658: # Commands used to finish a libtool library installation in a directory.
18659: finish_cmds=$lt_finish_cmds
18660:
18661: # As "finish_cmds", except a single script fragment to be evaled but
18662: # not shown.
18663: finish_eval=$lt_finish_eval
18664:
18665: # Whether we should hardcode library paths into libraries.
18666: hardcode_into_libs=$hardcode_into_libs
18667:
18668: # Compile-time system search path for libraries.
18669: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18670:
18671: # Run-time system search path for libraries.
18672: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18673:
18674: # Whether dlopen is supported.
18675: dlopen_support=$enable_dlopen
18676:
18677: # Whether dlopen of programs is supported.
18678: dlopen_self=$enable_dlopen_self
18679:
18680: # Whether dlopen of statically linked programs is supported.
18681: dlopen_self_static=$enable_dlopen_self_static
18682:
18683: # Commands to strip libraries.
18684: old_striplib=$lt_old_striplib
18685: striplib=$lt_striplib
18686:
18687:
18688: # The linker used to build libraries.
18689: LD=$lt_LD
18690:
18691: # How to create reloadable object files.
18692: reload_flag=$lt_reload_flag
18693: reload_cmds=$lt_reload_cmds
18694:
18695: # Commands used to build an old-style archive.
18696: old_archive_cmds=$lt_old_archive_cmds
18697:
18698: # A language specific compiler.
18699: CC=$lt_compiler
18700:
18701: # Is the compiler the GNU compiler?
18702: with_gcc=$GCC
18703:
18704: # Compiler flag to turn off builtin functions.
18705: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18706:
18707: # Additional compiler flags for building library objects.
18708: pic_flag=$lt_lt_prog_compiler_pic
18709:
18710: # How to pass a linker flag through the compiler.
18711: wl=$lt_lt_prog_compiler_wl
18712:
18713: # Compiler flag to prevent dynamic linking.
18714: link_static_flag=$lt_lt_prog_compiler_static
18715:
18716: # Does compiler simultaneously support -c and -o options?
18717: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18718:
18719: # Whether or not to add -lc for building shared libraries.
18720: build_libtool_need_lc=$archive_cmds_need_lc
18721:
18722: # Whether or not to disallow shared libs when runtime libs are static.
18723: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18724:
18725: # Compiler flag to allow reflexive dlopens.
18726: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18727:
18728: # Compiler flag to generate shared objects directly from archives.
18729: whole_archive_flag_spec=$lt_whole_archive_flag_spec
18730:
18731: # Whether the compiler copes with passing no objects directly.
18732: compiler_needs_object=$lt_compiler_needs_object
18733:
18734: # Create an old-style archive from a shared archive.
18735: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18736:
18737: # Create a temporary old-style archive to link instead of a shared archive.
18738: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18739:
18740: # Commands used to build a shared archive.
18741: archive_cmds=$lt_archive_cmds
18742: archive_expsym_cmds=$lt_archive_expsym_cmds
18743:
18744: # Commands used to build a loadable module if different from building
18745: # a shared archive.
18746: module_cmds=$lt_module_cmds
18747: module_expsym_cmds=$lt_module_expsym_cmds
18748:
18749: # Whether we are building with GNU ld or not.
18750: with_gnu_ld=$lt_with_gnu_ld
18751:
18752: # Flag that allows shared libraries with undefined symbols to be built.
18753: allow_undefined_flag=$lt_allow_undefined_flag
18754:
18755: # Flag that enforces no undefined symbols.
18756: no_undefined_flag=$lt_no_undefined_flag
18757:
18758: # Flag to hardcode \$libdir into a binary during linking.
18759: # This must work even if \$libdir does not exist
18760: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18761:
18762: # Whether we need a single "-rpath" flag with a separated argument.
18763: hardcode_libdir_separator=$lt_hardcode_libdir_separator
18764:
18765: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18766: # DIR into the resulting binary.
18767: hardcode_direct=$hardcode_direct
18768:
18769: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18770: # DIR into the resulting binary and the resulting library dependency is
18771: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18772: # library is relocated.
18773: hardcode_direct_absolute=$hardcode_direct_absolute
18774:
18775: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18776: # into the resulting binary.
18777: hardcode_minus_L=$hardcode_minus_L
18778:
18779: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18780: # into the resulting binary.
18781: hardcode_shlibpath_var=$hardcode_shlibpath_var
18782:
18783: # Set to "yes" if building a shared library automatically hardcodes DIR
18784: # into the library and all subsequent libraries and executables linked
18785: # against it.
18786: hardcode_automatic=$hardcode_automatic
18787:
18788: # Set to yes if linker adds runtime paths of dependent libraries
18789: # to runtime path list.
18790: inherit_rpath=$inherit_rpath
18791:
18792: # Whether libtool must link a program against all its dependency libraries.
18793: link_all_deplibs=$link_all_deplibs
18794:
18795: # Set to "yes" if exported symbols are required.
18796: always_export_symbols=$always_export_symbols
18797:
18798: # The commands to list exported symbols.
18799: export_symbols_cmds=$lt_export_symbols_cmds
18800:
18801: # Symbols that should not be listed in the preloaded symbols.
18802: exclude_expsyms=$lt_exclude_expsyms
18803:
18804: # Symbols that must always be exported.
18805: include_expsyms=$lt_include_expsyms
18806:
18807: # Commands necessary for linking programs (against libraries) with templates.
18808: prelink_cmds=$lt_prelink_cmds
18809:
18810: # Commands necessary for finishing linking programs.
18811: postlink_cmds=$lt_postlink_cmds
18812:
18813: # Specify filename containing input files.
18814: file_list_spec=$lt_file_list_spec
18815:
18816: # How to hardcode a shared library path into an executable.
18817: hardcode_action=$hardcode_action
18818:
18819: # The directories searched by this compiler when creating a shared library.
18820: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18821:
18822: # Dependencies to place before and after the objects being linked to
18823: # create a shared library.
18824: predep_objects=$lt_predep_objects
18825: postdep_objects=$lt_postdep_objects
18826: predeps=$lt_predeps
18827: postdeps=$lt_postdeps
18828:
18829: # The library search path used internally by the compiler when linking
18830: # a shared library.
18831: compiler_lib_search_path=$lt_compiler_lib_search_path
18832:
18833: # ### END LIBTOOL CONFIG
18834:
18835: _LT_EOF
18836:
18837: case $host_os in
18838: aix3*)
18839: cat <<\_LT_EOF >> "$cfgfile"
18840: # AIX sometimes has problems with the GCC collect2 program. For some
18841: # reason, if we set the COLLECT_NAMES environment variable, the problems
18842: # vanish in a puff of smoke.
18843: if test "X${COLLECT_NAMES+set}" != Xset; then
18844: COLLECT_NAMES=
18845: export COLLECT_NAMES
18846: fi
18847: _LT_EOF
18848: ;;
18849: esac
18850:
18851:
18852: ltmain="$ac_aux_dir/ltmain.sh"
1.1 parser 18853:
1.16 paf 18854:
1.23 moko 18855: # We use sed instead of cat because bash on DJGPP gets confused if
18856: # if finds mixed CR/LF and LF-only lines. Since sed operates in
18857: # text mode, it properly converts lines to CR/LF. This bash problem
18858: # is reportedly fixed, but why not run on old versions too?
18859: sed '$q' "$ltmain" >> "$cfgfile" \
18860: || (rm -f "$cfgfile"; exit 1)
1.10 paf 18861:
1.23 moko 18862: if test x"$xsi_shell" = xyes; then
18863: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18864: func_dirname ()\
18865: {\
18866: \ case ${1} in\
18867: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18868: \ * ) func_dirname_result="${3}" ;;\
18869: \ esac\
18870: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18871: && mv -f "$cfgfile.tmp" "$cfgfile" \
18872: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18873: test 0 -eq $? || _lt_function_replace_fail=:
18874:
18875:
18876: sed -e '/^func_basename ()$/,/^} # func_basename /c\
18877: func_basename ()\
18878: {\
18879: \ func_basename_result="${1##*/}"\
18880: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18881: && mv -f "$cfgfile.tmp" "$cfgfile" \
18882: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18883: test 0 -eq $? || _lt_function_replace_fail=:
18884:
18885:
18886: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18887: func_dirname_and_basename ()\
18888: {\
18889: \ case ${1} in\
18890: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18891: \ * ) func_dirname_result="${3}" ;;\
18892: \ esac\
18893: \ func_basename_result="${1##*/}"\
18894: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18895: && mv -f "$cfgfile.tmp" "$cfgfile" \
18896: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18897: test 0 -eq $? || _lt_function_replace_fail=:
18898:
18899:
18900: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18901: func_stripname ()\
18902: {\
18903: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18904: \ # positional parameters, so assign one to ordinary parameter first.\
18905: \ func_stripname_result=${3}\
18906: \ func_stripname_result=${func_stripname_result#"${1}"}\
18907: \ func_stripname_result=${func_stripname_result%"${2}"}\
18908: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18909: && mv -f "$cfgfile.tmp" "$cfgfile" \
18910: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18911: test 0 -eq $? || _lt_function_replace_fail=:
18912:
18913:
18914: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18915: func_split_long_opt ()\
18916: {\
18917: \ func_split_long_opt_name=${1%%=*}\
18918: \ func_split_long_opt_arg=${1#*=}\
18919: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18920: && mv -f "$cfgfile.tmp" "$cfgfile" \
18921: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18922: test 0 -eq $? || _lt_function_replace_fail=:
18923:
18924:
18925: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18926: func_split_short_opt ()\
18927: {\
18928: \ func_split_short_opt_arg=${1#??}\
18929: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18930: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18931: && mv -f "$cfgfile.tmp" "$cfgfile" \
18932: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18933: test 0 -eq $? || _lt_function_replace_fail=:
18934:
18935:
18936: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18937: func_lo2o ()\
18938: {\
18939: \ case ${1} in\
18940: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18941: \ *) func_lo2o_result=${1} ;;\
18942: \ esac\
18943: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18944: && mv -f "$cfgfile.tmp" "$cfgfile" \
18945: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18946: test 0 -eq $? || _lt_function_replace_fail=:
18947:
18948:
18949: sed -e '/^func_xform ()$/,/^} # func_xform /c\
18950: func_xform ()\
18951: {\
18952: func_xform_result=${1%.*}.lo\
18953: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18954: && mv -f "$cfgfile.tmp" "$cfgfile" \
18955: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18956: test 0 -eq $? || _lt_function_replace_fail=:
18957:
18958:
18959: sed -e '/^func_arith ()$/,/^} # func_arith /c\
18960: func_arith ()\
18961: {\
18962: func_arith_result=$(( $* ))\
18963: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18964: && mv -f "$cfgfile.tmp" "$cfgfile" \
18965: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18966: test 0 -eq $? || _lt_function_replace_fail=:
18967:
18968:
18969: sed -e '/^func_len ()$/,/^} # func_len /c\
18970: func_len ()\
18971: {\
18972: func_len_result=${#1}\
18973: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18974: && mv -f "$cfgfile.tmp" "$cfgfile" \
18975: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18976: test 0 -eq $? || _lt_function_replace_fail=:
18977:
18978: fi
18979:
18980: if test x"$lt_shell_append" = xyes; then
18981: sed -e '/^func_append ()$/,/^} # func_append /c\
18982: func_append ()\
18983: {\
18984: eval "${1}+=\\${2}"\
18985: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18986: && mv -f "$cfgfile.tmp" "$cfgfile" \
18987: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18988: test 0 -eq $? || _lt_function_replace_fail=:
18989:
18990:
18991: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18992: func_append_quoted ()\
18993: {\
18994: \ func_quote_for_eval "${2}"\
18995: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18996: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18997: && mv -f "$cfgfile.tmp" "$cfgfile" \
18998: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18999: test 0 -eq $? || _lt_function_replace_fail=:
19000:
19001:
19002: # Save a `func_append' function call where possible by direct use of '+='
19003: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19004: && mv -f "$cfgfile.tmp" "$cfgfile" \
19005: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19006: test 0 -eq $? || _lt_function_replace_fail=:
19007: else
19008: # Save a `func_append' function call even when '+=' is not available
19009: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19010: && mv -f "$cfgfile.tmp" "$cfgfile" \
19011: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19012: test 0 -eq $? || _lt_function_replace_fail=:
19013: fi
19014:
19015: if test x"$_lt_function_replace_fail" = x":"; then
1.31 ! moko 19016: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
! 19017: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.10 paf 19018: fi
19019:
1.16 paf 19020:
1.23 moko 19021: mv -f "$cfgfile" "$ofile" ||
19022: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19023: chmod +x "$ofile"
19024:
19025:
19026: cat <<_LT_EOF >> "$ofile"
19027:
19028: # ### BEGIN LIBTOOL TAG CONFIG: CXX
19029:
19030: # The linker used to build libraries.
19031: LD=$lt_LD_CXX
19032:
19033: # How to create reloadable object files.
19034: reload_flag=$lt_reload_flag_CXX
19035: reload_cmds=$lt_reload_cmds_CXX
19036:
19037: # Commands used to build an old-style archive.
19038: old_archive_cmds=$lt_old_archive_cmds_CXX
19039:
19040: # A language specific compiler.
19041: CC=$lt_compiler_CXX
19042:
19043: # Is the compiler the GNU compiler?
19044: with_gcc=$GCC_CXX
19045:
19046: # Compiler flag to turn off builtin functions.
19047: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19048:
19049: # Additional compiler flags for building library objects.
19050: pic_flag=$lt_lt_prog_compiler_pic_CXX
19051:
19052: # How to pass a linker flag through the compiler.
19053: wl=$lt_lt_prog_compiler_wl_CXX
19054:
19055: # Compiler flag to prevent dynamic linking.
19056: link_static_flag=$lt_lt_prog_compiler_static_CXX
19057:
19058: # Does compiler simultaneously support -c and -o options?
19059: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19060:
19061: # Whether or not to add -lc for building shared libraries.
19062: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19063:
19064: # Whether or not to disallow shared libs when runtime libs are static.
19065: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19066:
19067: # Compiler flag to allow reflexive dlopens.
19068: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19069:
19070: # Compiler flag to generate shared objects directly from archives.
19071: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19072:
19073: # Whether the compiler copes with passing no objects directly.
19074: compiler_needs_object=$lt_compiler_needs_object_CXX
19075:
19076: # Create an old-style archive from a shared archive.
19077: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19078:
19079: # Create a temporary old-style archive to link instead of a shared archive.
19080: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19081:
19082: # Commands used to build a shared archive.
19083: archive_cmds=$lt_archive_cmds_CXX
19084: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19085:
19086: # Commands used to build a loadable module if different from building
19087: # a shared archive.
19088: module_cmds=$lt_module_cmds_CXX
19089: module_expsym_cmds=$lt_module_expsym_cmds_CXX
19090:
19091: # Whether we are building with GNU ld or not.
19092: with_gnu_ld=$lt_with_gnu_ld_CXX
19093:
19094: # Flag that allows shared libraries with undefined symbols to be built.
19095: allow_undefined_flag=$lt_allow_undefined_flag_CXX
19096:
19097: # Flag that enforces no undefined symbols.
19098: no_undefined_flag=$lt_no_undefined_flag_CXX
19099:
19100: # Flag to hardcode \$libdir into a binary during linking.
19101: # This must work even if \$libdir does not exist
19102: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19103:
19104: # Whether we need a single "-rpath" flag with a separated argument.
19105: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19106:
19107: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19108: # DIR into the resulting binary.
19109: hardcode_direct=$hardcode_direct_CXX
19110:
19111: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19112: # DIR into the resulting binary and the resulting library dependency is
19113: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19114: # library is relocated.
19115: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19116:
19117: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19118: # into the resulting binary.
19119: hardcode_minus_L=$hardcode_minus_L_CXX
19120:
19121: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19122: # into the resulting binary.
19123: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19124:
19125: # Set to "yes" if building a shared library automatically hardcodes DIR
19126: # into the library and all subsequent libraries and executables linked
19127: # against it.
19128: hardcode_automatic=$hardcode_automatic_CXX
19129:
19130: # Set to yes if linker adds runtime paths of dependent libraries
19131: # to runtime path list.
19132: inherit_rpath=$inherit_rpath_CXX
19133:
19134: # Whether libtool must link a program against all its dependency libraries.
19135: link_all_deplibs=$link_all_deplibs_CXX
19136:
19137: # Set to "yes" if exported symbols are required.
19138: always_export_symbols=$always_export_symbols_CXX
19139:
19140: # The commands to list exported symbols.
19141: export_symbols_cmds=$lt_export_symbols_cmds_CXX
19142:
19143: # Symbols that should not be listed in the preloaded symbols.
19144: exclude_expsyms=$lt_exclude_expsyms_CXX
19145:
19146: # Symbols that must always be exported.
19147: include_expsyms=$lt_include_expsyms_CXX
19148:
19149: # Commands necessary for linking programs (against libraries) with templates.
19150: prelink_cmds=$lt_prelink_cmds_CXX
19151:
19152: # Commands necessary for finishing linking programs.
19153: postlink_cmds=$lt_postlink_cmds_CXX
19154:
19155: # Specify filename containing input files.
19156: file_list_spec=$lt_file_list_spec_CXX
19157:
19158: # How to hardcode a shared library path into an executable.
19159: hardcode_action=$hardcode_action_CXX
19160:
19161: # The directories searched by this compiler when creating a shared library.
19162: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
1.10 paf 19163:
1.23 moko 19164: # Dependencies to place before and after the objects being linked to
19165: # create a shared library.
19166: predep_objects=$lt_predep_objects_CXX
19167: postdep_objects=$lt_postdep_objects_CXX
19168: predeps=$lt_predeps_CXX
19169: postdeps=$lt_postdeps_CXX
19170:
19171: # The library search path used internally by the compiler when linking
19172: # a shared library.
19173: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1.10 paf 19174:
1.23 moko 19175: # ### END LIBTOOL TAG CONFIG: CXX
19176: _LT_EOF
1.1 parser 19177:
1.10 paf 19178: ;;
1.31 ! moko 19179:
1.10 paf 19180: esac
1.31 ! moko 19181: done # for ac_tag
1.1 parser 19182:
19183:
1.31 ! moko 19184: as_fn_exit 0
1.10 paf 19185: _ACEOF
19186: ac_clean_files=$ac_clean_files_save
19187:
1.31 ! moko 19188: test $ac_write_fail = 0 ||
! 19189: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
! 19190:
1.10 paf 19191:
19192: # configure is writing to config.log, and then calls config.status.
19193: # config.status does its own redirection, appending to config.log.
19194: # Unfortunately, on DOS this fails, as config.log is still kept open
19195: # by configure, so config.status won't be able to write to it; its
19196: # output is simply discarded. So we exec the FD to /dev/null,
19197: # effectively closing config.log, so it can be properly (re)opened and
19198: # appended to by config.status. When coming back to configure, we
19199: # need to make the FD available again.
19200: if test "$no_create" != yes; then
19201: ac_cs_success=:
19202: ac_config_status_args=
19203: test "$silent" = yes &&
19204: ac_config_status_args="$ac_config_status_args --quiet"
19205: exec 5>/dev/null
19206: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19207: exec 5>>config.log
19208: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19209: # would make configure fail if this is the last instruction.
1.31 ! moko 19210: $ac_cs_success || as_fn_exit 1
1.10 paf 19211: fi
1.1 parser 19212:
1.10 paf 19213: #
19214: # CONFIG_SUBDIRS section.
19215: #
1.1 parser 19216: if test "$no_recursion" != yes; then
19217:
1.31 ! moko 19218: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
! 19219: # so they do not pile up.
1.1 parser 19220: ac_sub_configure_args=
19221: ac_prev=
1.31 ! moko 19222: eval "set x $ac_configure_args"
! 19223: shift
! 19224: for ac_arg
! 19225: do
1.1 parser 19226: if test -n "$ac_prev"; then
19227: ac_prev=
19228: continue
19229: fi
1.10 paf 19230: case $ac_arg in
1.1 parser 19231: -cache-file | --cache-file | --cache-fil | --cache-fi \
19232: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19233: ac_prev=cache_file ;;
19234: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.10 paf 19235: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19236: | --c=*)
19237: ;;
19238: --config-cache | -C)
1.1 parser 19239: ;;
19240: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19241: ac_prev=srcdir ;;
19242: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19243: ;;
1.10 paf 19244: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19245: ac_prev=prefix ;;
19246: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19247: ;;
1.31 ! moko 19248: --disable-option-checking)
! 19249: ;;
! 19250: *)
! 19251: case $ac_arg in
! 19252: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 19253: esac
! 19254: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 parser 19255: esac
19256: done
19257:
1.10 paf 19258: # Always prepend --prefix to ensure using the same prefix
19259: # in subdir configurations.
1.31 ! moko 19260: ac_arg="--prefix=$prefix"
! 19261: case $ac_arg in
! 19262: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 19263: esac
! 19264: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
! 19265:
! 19266: # Pass --silent
! 19267: if test "$silent" = yes; then
! 19268: ac_sub_configure_args="--silent $ac_sub_configure_args"
! 19269: fi
! 19270:
! 19271: # Always prepend --disable-option-checking to silence warnings, since
! 19272: # different subdirs can have different --enable and --with options.
! 19273: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.10 paf 19274:
19275: ac_popdir=`pwd`
19276: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 19277:
19278: # Do not complain, so a configure script can configure whichever
19279: # parts of a large source tree are present.
1.31 ! moko 19280: test -d "$srcdir/$ac_dir" || continue
1.10 paf 19281:
1.31 ! moko 19282: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
! 19283: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
! 19284: $as_echo "$ac_msg" >&6
! 19285: as_dir="$ac_dir"; as_fn_mkdir_p
1.10 paf 19286: ac_builddir=.
19287:
1.31 ! moko 19288: case "$ac_dir" in
! 19289: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 19290: *)
! 19291: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
! 19292: # A ".." for each directory in $ac_dir_suffix.
! 19293: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
! 19294: case $ac_top_builddir_sub in
! 19295: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 19296: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 19297: esac ;;
! 19298: esac
! 19299: ac_abs_top_builddir=$ac_pwd
! 19300: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 19301: # for backward compatibility:
! 19302: ac_top_builddir=$ac_top_build_prefix
1.10 paf 19303:
19304: case $srcdir in
1.31 ! moko 19305: .) # We are building in place.
1.10 paf 19306: ac_srcdir=.
1.31 ! moko 19307: ac_top_srcdir=$ac_top_builddir_sub
! 19308: ac_abs_top_srcdir=$ac_pwd ;;
! 19309: [\\/]* | ?:[\\/]* ) # Absolute name.
1.10 paf 19310: ac_srcdir=$srcdir$ac_dir_suffix;
1.31 ! moko 19311: ac_top_srcdir=$srcdir
! 19312: ac_abs_top_srcdir=$srcdir ;;
! 19313: *) # Relative name.
! 19314: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 19315: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 19316: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.16 paf 19317: esac
1.31 ! moko 19318: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 parser 19319:
19320:
1.31 ! moko 19321: cd "$ac_dir"
1.1 parser 19322:
19323: # Check for guested configure; otherwise get Cygnus style configure.
1.31 ! moko 19324: if test -f "$ac_srcdir/configure.gnu"; then
! 19325: ac_sub_configure=$ac_srcdir/configure.gnu
! 19326: elif test -f "$ac_srcdir/configure"; then
! 19327: ac_sub_configure=$ac_srcdir/configure
! 19328: elif test -f "$ac_srcdir/configure.in"; then
! 19329: # This should be Cygnus configure.
! 19330: ac_sub_configure=$ac_aux_dir/configure
1.1 parser 19331: else
1.31 ! moko 19332: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
! 19333: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 19334: ac_sub_configure=
19335: fi
19336:
19337: # The recursion is here.
19338: if test -n "$ac_sub_configure"; then
19339: # Make the cache file name correct relative to the subdirectory.
1.10 paf 19340: case $cache_file in
19341: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.31 ! moko 19342: *) # Relative name.
! 19343: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 parser 19344: esac
19345:
1.31 ! moko 19346: { $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
! 19347: $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 parser 19348: # The eval makes quoting arguments work.
1.31 ! moko 19349: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
! 19350: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
! 19351: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 parser 19352: fi
19353:
1.31 ! moko 19354: cd "$ac_popdir"
1.1 parser 19355: done
19356: fi
1.31 ! moko 19357: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
! 19358: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
! 19359: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
! 19360: fi
1.1 parser 19361:
E-mail: