Annotation of sql/sqlite/configure, revision 1.31
1.1 misha 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.31 ! moko 3: # Generated by GNU Autoconf 2.69 for parser3sqlite 10.5.
1.22 moko 4: #
5: #
1.25 moko 6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.22 moko 7: #
1.1 misha 8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
1.22 moko 11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
1.1 misha 14:
1.22 moko 15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 misha 18: emulate sh
19: NULLCMD=:
1.22 moko 20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1 misha 21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
1.22 moko 23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
1.10 moko 70: fi
71:
1.22 moko 72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
1.1 misha 79: fi
80:
1.10 moko 81:
1.22 moko 82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
90: as_myself=
91: case $0 in #((
92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
104: # We did not find ourselves, most probably we were run as `sh COMMAND'
105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111: exit 1
112: fi
113:
114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121: done
1.1 misha 122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
1.22 moko 127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134:
1.25 moko 135: # Use a proper internal environment variable to ensure we don't fall
136: # into an infinite loop, continuously re-executing ourselves.
137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138: _as_can_reexec=no; export _as_can_reexec;
139: # We cannot yet assume a decent shell, so we have to provide a
140: # neutralization value for shells without unset; and this also
141: # works around shells that cannot unset nonexistent variables.
142: # Preserve -v and -x to the replacement shell.
143: BASH_ENV=/dev/null
144: ENV=/dev/null
145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146: case $- in # ((((
147: *v*x* | *x*v* ) as_opts=-vx ;;
148: *v* ) as_opts=-v ;;
149: *x* ) as_opts=-x ;;
150: * ) as_opts= ;;
151: esac
152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153: # Admittedly, this is quite paranoid, since all the known shells bail
154: # out after a failed `exec'.
155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156: as_fn_exit 255
157: fi
158: # We don't want this to propagate to other subprocesses.
159: { _as_can_reexec=; unset _as_can_reexec;}
1.22 moko 160: if test "x$CONFIG_SHELL" = x; then
161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
168: else
169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
175: fi
176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
182:
183: exitcode=0
184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
1.25 moko 193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
1.22 moko 195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199:
200: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204: PATH=/empty FPATH=/empty; export PATH FPATH
205: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207: test \$(( 1 + 1 )) = 2 || exit 1"
208: if (eval "$as_required") 2>/dev/null; then :
209: as_have_required=yes
210: else
211: as_have_required=no
212: fi
213: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214:
215: else
216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217: as_found=false
218: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.1 misha 219: do
1.22 moko 220: IFS=$as_save_IFS
221: test -z "$as_dir" && as_dir=.
222: as_found=:
223: case $as_dir in #(
224: /*)
225: for as_base in sh bash ksh sh5; do
226: # Try only shells that exist, to save several forks.
227: as_shell=$as_dir/$as_base
228: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230: CONFIG_SHELL=$as_shell as_have_required=yes
231: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: break 2
233: fi
234: fi
235: done;;
236: esac
237: as_found=false
238: done
239: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241: CONFIG_SHELL=$SHELL as_have_required=yes
242: fi; }
243: IFS=$as_save_IFS
244:
245:
246: if test "x$CONFIG_SHELL" != x; then :
1.25 moko 247: export CONFIG_SHELL
248: # We cannot yet assume a decent shell, so we have to provide a
249: # neutralization value for shells without unset; and this also
250: # works around shells that cannot unset nonexistent variables.
251: # Preserve -v and -x to the replacement shell.
252: BASH_ENV=/dev/null
253: ENV=/dev/null
254: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255: case $- in # ((((
256: *v*x* | *x*v* ) as_opts=-vx ;;
257: *v* ) as_opts=-v ;;
258: *x* ) as_opts=-x ;;
259: * ) as_opts= ;;
260: esac
261: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262: # Admittedly, this is quite paranoid, since all the known shells bail
263: # out after a failed `exec'.
264: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265: exit 255
1.22 moko 266: fi
267:
268: if test x$as_have_required = xno; then :
269: $as_echo "$0: This script requires a shell more modern than all"
270: $as_echo "$0: the shells that I found on your system."
271: if test x${ZSH_VERSION+set} = xset ; then
272: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1.1 misha 274: else
1.22 moko 275: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276: $0: including any error possibly output before this
277: $0: message. Then install a modern shell, or manually run
278: $0: the script under such a shell if you do have one."
1.1 misha 279: fi
1.22 moko 280: exit 1
281: fi
282: fi
283: fi
284: SHELL=${CONFIG_SHELL-/bin/sh}
285: export SHELL
286: # Unset more variables known to interfere with behavior of common tools.
287: CLICOLOR_FORCE= GREP_OPTIONS=
288: unset CLICOLOR_FORCE GREP_OPTIONS
289:
290: ## --------------------- ##
291: ## M4sh Shell Functions. ##
292: ## --------------------- ##
293: # as_fn_unset VAR
294: # ---------------
295: # Portably unset VAR.
296: as_fn_unset ()
297: {
298: { eval $1=; unset $1;}
299: }
300: as_unset=as_fn_unset
301:
302: # as_fn_set_status STATUS
303: # -----------------------
304: # Set $? to STATUS, without forking.
305: as_fn_set_status ()
306: {
307: return $1
308: } # as_fn_set_status
309:
310: # as_fn_exit STATUS
311: # -----------------
312: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313: as_fn_exit ()
314: {
315: set +e
316: as_fn_set_status $1
317: exit $1
318: } # as_fn_exit
319:
320: # as_fn_mkdir_p
321: # -------------
322: # Create "$as_dir" as a directory, including parents if necessary.
323: as_fn_mkdir_p ()
324: {
325:
326: case $as_dir in #(
327: -*) as_dir=./$as_dir;;
328: esac
329: test -d "$as_dir" || eval $as_mkdir_p || {
330: as_dirs=
331: while :; do
332: case $as_dir in #(
333: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334: *) as_qdir=$as_dir;;
335: esac
336: as_dirs="'$as_qdir' $as_dirs"
337: as_dir=`$as_dirname -- "$as_dir" ||
338: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339: X"$as_dir" : 'X\(//\)[^/]' \| \
340: X"$as_dir" : 'X\(//\)$' \| \
341: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342: $as_echo X"$as_dir" |
343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\/\)[^/].*/{
348: s//\1/
349: q
350: }
351: /^X\(\/\/\)$/{
352: s//\1/
353: q
354: }
355: /^X\(\/\).*/{
356: s//\1/
357: q
358: }
359: s/.*/./; q'`
360: test -d "$as_dir" && break
361: done
362: test -z "$as_dirs" || eval "mkdir $as_dirs"
363: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364:
365:
366: } # as_fn_mkdir_p
1.25 moko 367:
368: # as_fn_executable_p FILE
369: # -----------------------
370: # Test if FILE is an executable regular file.
371: as_fn_executable_p ()
372: {
373: test -f "$1" && test -x "$1"
374: } # as_fn_executable_p
1.22 moko 375: # as_fn_append VAR VALUE
376: # ----------------------
377: # Append the text in VALUE to the end of the definition contained in VAR. Take
378: # advantage of any shell optimizations that allow amortized linear growth over
379: # repeated appends, instead of the typical quadratic growth present in naive
380: # implementations.
381: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382: eval 'as_fn_append ()
383: {
384: eval $1+=\$2
385: }'
386: else
387: as_fn_append ()
388: {
389: eval $1=\$$1\$2
390: }
391: fi # as_fn_append
392:
393: # as_fn_arith ARG...
394: # ------------------
395: # Perform arithmetic evaluation on the ARGs, and store the result in the
396: # global $as_val. Take advantage of shells that can avoid forks. The arguments
397: # must be portable across $(()) and expr.
398: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399: eval 'as_fn_arith ()
400: {
401: as_val=$(( $* ))
402: }'
403: else
404: as_fn_arith ()
405: {
406: as_val=`expr "$@" || test $? -eq 1`
407: }
408: fi # as_fn_arith
409:
410:
411: # as_fn_error STATUS ERROR [LINENO LOG_FD]
412: # ----------------------------------------
413: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415: # script with STATUS, using 1 if that was 0.
416: as_fn_error ()
417: {
418: as_status=$1; test $as_status -eq 0 && as_status=1
419: if test "$4"; then
420: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422: fi
423: $as_echo "$as_me: error: $2" >&2
424: as_fn_exit $as_status
425: } # as_fn_error
1.10 moko 426:
1.22 moko 427: if expr a : '\(a\)' >/dev/null 2>&1 &&
428: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 misha 429: as_expr=expr
430: else
431: as_expr=false
432: fi
433:
1.22 moko 434: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1 misha 435: as_basename=basename
436: else
437: as_basename=false
438: fi
439:
1.22 moko 440: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441: as_dirname=dirname
442: else
443: as_dirname=false
444: fi
1.1 misha 445:
1.22 moko 446: as_me=`$as_basename -- "$0" ||
1.1 misha 447: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448: X"$0" : 'X\(//\)$' \| \
1.22 moko 449: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450: $as_echo X/"$0" |
451: sed '/^.*\/\([^/][^/]*\)\/*$/{
452: s//\1/
453: q
454: }
455: /^X\/\(\/\/\)$/{
456: s//\1/
457: q
458: }
459: /^X\/\(\/\).*/{
460: s//\1/
461: q
462: }
463: s/.*/./; q'`
1.11 moko 464:
1.1 misha 465: # Avoid depending upon Character Ranges.
466: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469: as_cr_digits='0123456789'
470: as_cr_alnum=$as_cr_Letters$as_cr_digits
471:
472:
1.22 moko 473: as_lineno_1=$LINENO as_lineno_1a=$LINENO
474: as_lineno_2=$LINENO as_lineno_2a=$LINENO
475: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478: sed -n '
479: p
480: /[$]LINENO/=
481: ' <$as_myself |
1.1 misha 482: sed '
1.22 moko 483: s/[$]LINENO.*/&-/
484: t lineno
485: b
486: :lineno
1.1 misha 487: N
1.22 moko 488: :loop
489: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 misha 490: t loop
1.22 moko 491: s/-\n.*//
1.1 misha 492: ' >$as_me.lineno &&
1.22 moko 493: chmod +x "$as_me.lineno" ||
494: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 misha 495:
1.25 moko 496: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497: # already done that, so ensure we don't try to do so again and fall
498: # in an infinite loop. This has already happened in practice.
499: _as_can_reexec=no; export _as_can_reexec
1.1 misha 500: # Don't try to exec as it changes $[0], causing all sort of problems
501: # (the dirname of $[0] is not the place where we might find the
1.22 moko 502: # original and so on. Autoconf is especially sensitive to this).
503: . "./$as_me.lineno"
1.1 misha 504: # Exit status is that of the last command.
505: exit
506: }
507:
1.22 moko 508: ECHO_C= ECHO_N= ECHO_T=
509: case `echo -n x` in #(((((
510: -n*)
511: case `echo 'xy\c'` in
512: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513: xy) ECHO_C='\c';;
514: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515: ECHO_T=' ';;
516: esac;;
517: *)
518: ECHO_N='-n';;
1.1 misha 519: esac
520:
1.22 moko 521: rm -f conf$$ conf$$.exe conf$$.file
522: if test -d conf$$.dir; then
523: rm -f conf$$.dir/conf$$.file
1.1 misha 524: else
1.22 moko 525: rm -f conf$$.dir
526: mkdir conf$$.dir 2>/dev/null
1.1 misha 527: fi
1.22 moko 528: if (echo >conf$$.file) 2>/dev/null; then
529: if ln -s conf$$.file conf$$ 2>/dev/null; then
530: as_ln_s='ln -s'
531: # ... but there are two gotchas:
532: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.25 moko 534: # In both cases, we have to default to `cp -pR'.
1.22 moko 535: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.25 moko 536: as_ln_s='cp -pR'
1.22 moko 537: elif ln conf$$.file conf$$ 2>/dev/null; then
538: as_ln_s=ln
539: else
1.25 moko 540: as_ln_s='cp -pR'
1.1 misha 541: fi
542: else
1.25 moko 543: as_ln_s='cp -pR'
1.1 misha 544: fi
1.22 moko 545: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546: rmdir conf$$.dir 2>/dev/null
1.1 misha 547:
548: if mkdir -p . 2>/dev/null; then
1.22 moko 549: as_mkdir_p='mkdir -p "$as_dir"'
1.1 misha 550: else
551: test -d ./-p && rmdir ./-p
552: as_mkdir_p=false
553: fi
554:
1.25 moko 555: as_test_x='test -x'
556: as_executable_p=as_fn_executable_p
1.1 misha 557:
558: # Sed expression to map a string onto a valid CPP name.
559: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560:
561: # Sed expression to map a string onto a valid variable name.
562: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563:
1.13 moko 564: lt_ltdl_dir='libltdl'
565:
1.1 misha 566: SHELL=${CONFIG_SHELL-/bin/sh}
567:
1.8 moko 568: lt_dlopen_dir="$lt_ltdl_dir"
1.1 misha 569:
570:
1.22 moko 571: test -n "$DJDIR" || exec 7<&0 </dev/null
572: exec 6>&1
573:
1.1 misha 574: # Name of the host.
1.22 moko 575: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1 misha 576: # so uname gets run too.
577: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578:
579: #
580: # Initializations.
581: #
582: ac_default_prefix=/usr/local
1.22 moko 583: ac_clean_files=
1.1 misha 584: ac_config_libobj_dir=.
1.22 moko 585: LIBOBJS=
1.1 misha 586: cross_compiling=no
587: subdirs=
588: MFLAGS=
589: MAKEFLAGS=
590:
591: # Identity of this package.
1.25 moko 592: PACKAGE_NAME='parser3sqlite'
593: PACKAGE_TARNAME='parser3sqlite'
1.31 ! moko 594: PACKAGE_VERSION='10.5'
! 595: PACKAGE_STRING='parser3sqlite 10.5'
1.13 moko 596: PACKAGE_BUGREPORT=''
1.22 moko 597: PACKAGE_URL=''
1.1 misha 598:
599: ac_unique_file="parser3sqlite.C"
600: # Factoring default headers for most tests.
601: ac_includes_default="\
602: #include <stdio.h>
1.22 moko 603: #ifdef HAVE_SYS_TYPES_H
1.1 misha 604: # include <sys/types.h>
605: #endif
1.22 moko 606: #ifdef HAVE_SYS_STAT_H
1.1 misha 607: # include <sys/stat.h>
608: #endif
1.22 moko 609: #ifdef STDC_HEADERS
1.1 misha 610: # include <stdlib.h>
611: # include <stddef.h>
612: #else
1.22 moko 613: # ifdef HAVE_STDLIB_H
1.1 misha 614: # include <stdlib.h>
615: # endif
616: #endif
1.22 moko 617: #ifdef HAVE_STRING_H
618: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.1 misha 619: # include <memory.h>
620: # endif
621: # include <string.h>
622: #endif
1.22 moko 623: #ifdef HAVE_STRINGS_H
1.1 misha 624: # include <strings.h>
625: #endif
1.22 moko 626: #ifdef HAVE_INTTYPES_H
1.1 misha 627: # include <inttypes.h>
628: #endif
1.22 moko 629: #ifdef HAVE_STDINT_H
630: # include <stdint.h>
631: #endif
632: #ifdef HAVE_UNISTD_H
1.1 misha 633: # include <unistd.h>
634: #endif"
635:
1.22 moko 636: enable_option_checking=no
637: ac_subst_vars='ltdl_LTLIBOBJS
638: ltdl_LIBOBJS
639: am__EXEEXT_FALSE
640: am__EXEEXT_TRUE
641: LTLIBOBJS
642: LIBOBJS
643: LTDLOPEN
644: LT_CONFIG_H
645: subdirs
646: CONVENIENCE_LTDL_FALSE
647: CONVENIENCE_LTDL_TRUE
648: INSTALL_LTDL_FALSE
649: INSTALL_LTDL_TRUE
650: ARGZ_H
651: sys_symbol_underscore
652: LIBADD_DL
653: LT_DLPREOPEN
654: LIBADD_DLD_LINK
655: LIBADD_SHL_LOAD
656: LIBADD_DLOPEN
657: LT_DLLOADERS
658: INCLTDL
659: LTDLINCL
660: LTDLDEPS
661: LIBLTDL
662: CXXCPP
663: CPP
664: OTOOL64
665: OTOOL
666: LIPO
667: NMEDIT
668: DSYMUTIL
669: MANIFEST_TOOL
670: RANLIB
671: ac_ct_AR
672: AR
673: LN_S
674: NM
675: ac_ct_DUMPBIN
676: DUMPBIN
677: LD
678: FGREP
679: EGREP
680: GREP
681: SED
682: host_os
683: host_vendor
684: host_cpu
685: host
686: build_os
687: build_vendor
688: build_cpu
689: build
690: LIBTOOL
691: OBJDUMP
692: DLLTOOL
693: AS
694: am__fastdepCC_FALSE
695: am__fastdepCC_TRUE
696: CCDEPMODE
697: ac_ct_CC
698: CFLAGS
699: CC
700: am__fastdepCXX_FALSE
701: am__fastdepCXX_TRUE
702: CXXDEPMODE
1.30 moko 703: am__nodep
1.22 moko 704: AMDEPBACKSLASH
705: AMDEP_FALSE
706: AMDEP_TRUE
707: am__include
708: DEPDIR
709: OBJEXT
710: EXEEXT
711: ac_ct_CXX
712: CPPFLAGS
713: LDFLAGS
714: CXXFLAGS
715: CXX
716: SQLITE_INC
1.30 moko 717: AM_BACKSLASH
718: AM_DEFAULT_VERBOSITY
719: AM_DEFAULT_V
720: AM_V
1.22 moko 721: am__untar
722: am__tar
723: AMTAR
724: am__leading_dot
725: SET_MAKE
726: AWK
727: mkdir_p
728: MKDIR_P
729: INSTALL_STRIP_PROGRAM
730: STRIP
731: install_sh
732: MAKEINFO
733: AUTOHEADER
734: AUTOMAKE
735: AUTOCONF
736: ACLOCAL
737: VERSION
738: PACKAGE
739: CYGPATH_W
740: am__isrc
741: INSTALL_DATA
742: INSTALL_SCRIPT
743: INSTALL_PROGRAM
744: target_alias
745: host_alias
746: build_alias
747: LIBS
748: ECHO_T
749: ECHO_N
750: ECHO_C
751: DEFS
752: mandir
753: localedir
754: libdir
755: psdir
756: pdfdir
757: dvidir
758: htmldir
759: infodir
760: docdir
761: oldincludedir
762: includedir
1.30 moko 763: runstatedir
1.22 moko 764: localstatedir
765: sharedstatedir
766: sysconfdir
767: datadir
768: datarootdir
769: libexecdir
770: sbindir
771: bindir
772: program_transform_name
773: prefix
774: exec_prefix
775: PACKAGE_URL
776: PACKAGE_BUGREPORT
777: PACKAGE_STRING
778: PACKAGE_VERSION
779: PACKAGE_TARNAME
780: PACKAGE_NAME
781: PATH_SEPARATOR
1.30 moko 782: SHELL
783: am__quote'
1.1 misha 784: ac_subst_files=''
1.22 moko 785: ac_user_opts='
786: enable_option_checking
1.30 moko 787: enable_silent_rules
1.22 moko 788: with_sqlite_inc
789: enable_dependency_tracking
790: enable_static
791: enable_shared
792: with_pic
793: enable_fast_install
794: with_gnu_ld
795: with_sysroot
796: enable_libtool_lock
797: with_included_ltdl
798: with_ltdl_include
799: with_ltdl_lib
800: enable_ltdl_install
801: '
802: ac_precious_vars='build_alias
803: host_alias
804: target_alias
805: CXX
806: CXXFLAGS
807: LDFLAGS
808: LIBS
809: CPPFLAGS
810: CCC
811: CC
812: CFLAGS
813: CPP
814: CXXCPP'
815: ac_subdirs_all='libltdl'
1.1 misha 816:
817: # Initialize some variables set by options.
818: ac_init_help=
819: ac_init_version=false
1.22 moko 820: ac_unrecognized_opts=
821: ac_unrecognized_sep=
1.1 misha 822: # The variables have the same names as the options, with
823: # dashes changed to underlines.
824: cache_file=/dev/null
825: exec_prefix=NONE
826: no_create=
827: no_recursion=
828: prefix=NONE
829: program_prefix=NONE
830: program_suffix=NONE
831: program_transform_name=s,x,x,
832: silent=
833: site=
834: srcdir=
835: verbose=
836: x_includes=NONE
837: x_libraries=NONE
838:
839: # Installation directory options.
840: # These are left unexpanded so users can "make install exec_prefix=/foo"
841: # and all the variables that are supposed to be based on exec_prefix
842: # by default will actually change.
843: # Use braces instead of parens because sh, perl, etc. also accept them.
1.22 moko 844: # (The list follows the same order as the GNU Coding Standards.)
1.1 misha 845: bindir='${exec_prefix}/bin'
846: sbindir='${exec_prefix}/sbin'
847: libexecdir='${exec_prefix}/libexec'
1.22 moko 848: datarootdir='${prefix}/share'
849: datadir='${datarootdir}'
1.1 misha 850: sysconfdir='${prefix}/etc'
851: sharedstatedir='${prefix}/com'
852: localstatedir='${prefix}/var'
1.30 moko 853: runstatedir='${localstatedir}/run'
1.1 misha 854: includedir='${prefix}/include'
855: oldincludedir='/usr/include'
1.22 moko 856: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857: infodir='${datarootdir}/info'
858: htmldir='${docdir}'
859: dvidir='${docdir}'
860: pdfdir='${docdir}'
861: psdir='${docdir}'
862: libdir='${exec_prefix}/lib'
863: localedir='${datarootdir}/locale'
864: mandir='${datarootdir}/man'
1.1 misha 865:
866: ac_prev=
1.22 moko 867: ac_dashdash=
1.1 misha 868: for ac_option
869: do
870: # If the previous option needs an argument, assign it.
871: if test -n "$ac_prev"; then
1.22 moko 872: eval $ac_prev=\$ac_option
1.1 misha 873: ac_prev=
874: continue
875: fi
876:
1.22 moko 877: case $ac_option in
878: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879: *=) ac_optarg= ;;
880: *) ac_optarg=yes ;;
881: esac
1.1 misha 882:
883: # Accept the important Cygnus configure options, so we can diagnose typos.
884:
1.22 moko 885: case $ac_dashdash$ac_option in
886: --)
887: ac_dashdash=yes ;;
1.1 misha 888:
889: -bindir | --bindir | --bindi | --bind | --bin | --bi)
890: ac_prev=bindir ;;
891: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892: bindir=$ac_optarg ;;
893:
894: -build | --build | --buil | --bui | --bu)
895: ac_prev=build_alias ;;
896: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897: build_alias=$ac_optarg ;;
898:
899: -cache-file | --cache-file | --cache-fil | --cache-fi \
900: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901: ac_prev=cache_file ;;
902: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904: cache_file=$ac_optarg ;;
905:
906: --config-cache | -C)
907: cache_file=config.cache ;;
908:
1.22 moko 909: -datadir | --datadir | --datadi | --datad)
1.1 misha 910: ac_prev=datadir ;;
1.22 moko 911: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1 misha 912: datadir=$ac_optarg ;;
913:
1.22 moko 914: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915: | --dataroo | --dataro | --datar)
916: ac_prev=datarootdir ;;
917: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919: datarootdir=$ac_optarg ;;
920:
1.1 misha 921: -disable-* | --disable-*)
1.22 moko 922: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 misha 923: # Reject names that are not valid shell variable names.
1.22 moko 924: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925: as_fn_error $? "invalid feature name: $ac_useropt"
926: ac_useropt_orig=$ac_useropt
927: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928: case $ac_user_opts in
929: *"
930: "enable_$ac_useropt"
931: "*) ;;
932: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933: ac_unrecognized_sep=', ';;
934: esac
935: eval enable_$ac_useropt=no ;;
936:
937: -docdir | --docdir | --docdi | --doc | --do)
938: ac_prev=docdir ;;
939: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940: docdir=$ac_optarg ;;
941:
942: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943: ac_prev=dvidir ;;
944: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945: dvidir=$ac_optarg ;;
1.1 misha 946:
947: -enable-* | --enable-*)
1.22 moko 948: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 misha 949: # Reject names that are not valid shell variable names.
1.22 moko 950: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951: as_fn_error $? "invalid feature name: $ac_useropt"
952: ac_useropt_orig=$ac_useropt
953: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954: case $ac_user_opts in
955: *"
956: "enable_$ac_useropt"
957: "*) ;;
958: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959: ac_unrecognized_sep=', ';;
1.1 misha 960: esac
1.22 moko 961: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 misha 962:
963: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965: | --exec | --exe | --ex)
966: ac_prev=exec_prefix ;;
967: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969: | --exec=* | --exe=* | --ex=*)
970: exec_prefix=$ac_optarg ;;
971:
972: -gas | --gas | --ga | --g)
973: # Obsolete; use --with-gas.
974: with_gas=yes ;;
975:
976: -help | --help | --hel | --he | -h)
977: ac_init_help=long ;;
978: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979: ac_init_help=recursive ;;
980: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981: ac_init_help=short ;;
982:
983: -host | --host | --hos | --ho)
984: ac_prev=host_alias ;;
985: -host=* | --host=* | --hos=* | --ho=*)
986: host_alias=$ac_optarg ;;
987:
1.22 moko 988: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989: ac_prev=htmldir ;;
990: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991: | --ht=*)
992: htmldir=$ac_optarg ;;
993:
1.1 misha 994: -includedir | --includedir | --includedi | --included | --include \
995: | --includ | --inclu | --incl | --inc)
996: ac_prev=includedir ;;
997: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998: | --includ=* | --inclu=* | --incl=* | --inc=*)
999: includedir=$ac_optarg ;;
1000:
1001: -infodir | --infodir | --infodi | --infod | --info | --inf)
1002: ac_prev=infodir ;;
1003: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004: infodir=$ac_optarg ;;
1005:
1006: -libdir | --libdir | --libdi | --libd)
1007: ac_prev=libdir ;;
1008: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009: libdir=$ac_optarg ;;
1010:
1011: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012: | --libexe | --libex | --libe)
1013: ac_prev=libexecdir ;;
1014: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015: | --libexe=* | --libex=* | --libe=*)
1016: libexecdir=$ac_optarg ;;
1017:
1.22 moko 1018: -localedir | --localedir | --localedi | --localed | --locale)
1019: ac_prev=localedir ;;
1020: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021: localedir=$ac_optarg ;;
1022:
1.1 misha 1023: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.22 moko 1024: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 misha 1025: ac_prev=localstatedir ;;
1026: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.22 moko 1027: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1 misha 1028: localstatedir=$ac_optarg ;;
1029:
1030: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031: ac_prev=mandir ;;
1032: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033: mandir=$ac_optarg ;;
1034:
1035: -nfp | --nfp | --nf)
1036: # Obsolete; use --without-fp.
1037: with_fp=no ;;
1038:
1039: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040: | --no-cr | --no-c | -n)
1041: no_create=yes ;;
1042:
1043: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045: no_recursion=yes ;;
1046:
1047: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049: | --oldin | --oldi | --old | --ol | --o)
1050: ac_prev=oldincludedir ;;
1051: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054: oldincludedir=$ac_optarg ;;
1055:
1056: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057: ac_prev=prefix ;;
1058: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059: prefix=$ac_optarg ;;
1060:
1061: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062: | --program-pre | --program-pr | --program-p)
1063: ac_prev=program_prefix ;;
1064: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066: program_prefix=$ac_optarg ;;
1067:
1068: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069: | --program-suf | --program-su | --program-s)
1070: ac_prev=program_suffix ;;
1071: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073: program_suffix=$ac_optarg ;;
1074:
1075: -program-transform-name | --program-transform-name \
1076: | --program-transform-nam | --program-transform-na \
1077: | --program-transform-n | --program-transform- \
1078: | --program-transform | --program-transfor \
1079: | --program-transfo | --program-transf \
1080: | --program-trans | --program-tran \
1081: | --progr-tra | --program-tr | --program-t)
1082: ac_prev=program_transform_name ;;
1083: -program-transform-name=* | --program-transform-name=* \
1084: | --program-transform-nam=* | --program-transform-na=* \
1085: | --program-transform-n=* | --program-transform-=* \
1086: | --program-transform=* | --program-transfor=* \
1087: | --program-transfo=* | --program-transf=* \
1088: | --program-trans=* | --program-tran=* \
1089: | --progr-tra=* | --program-tr=* | --program-t=*)
1090: program_transform_name=$ac_optarg ;;
1091:
1.22 moko 1092: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093: ac_prev=pdfdir ;;
1094: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095: pdfdir=$ac_optarg ;;
1096:
1097: -psdir | --psdir | --psdi | --psd | --ps)
1098: ac_prev=psdir ;;
1099: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100: psdir=$ac_optarg ;;
1101:
1.1 misha 1102: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103: | -silent | --silent | --silen | --sile | --sil)
1104: silent=yes ;;
1105:
1.30 moko 1106: -runstatedir | --runstatedir | --runstatedi | --runstated \
1107: | --runstate | --runstat | --runsta | --runst | --runs \
1108: | --run | --ru | --r)
1109: ac_prev=runstatedir ;;
1110: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1111: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1112: | --run=* | --ru=* | --r=*)
1113: runstatedir=$ac_optarg ;;
1114:
1.1 misha 1115: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116: ac_prev=sbindir ;;
1117: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118: | --sbi=* | --sb=*)
1119: sbindir=$ac_optarg ;;
1120:
1121: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123: | --sharedst | --shareds | --shared | --share | --shar \
1124: | --sha | --sh)
1125: ac_prev=sharedstatedir ;;
1126: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129: | --sha=* | --sh=*)
1130: sharedstatedir=$ac_optarg ;;
1131:
1132: -site | --site | --sit)
1133: ac_prev=site ;;
1134: -site=* | --site=* | --sit=*)
1135: site=$ac_optarg ;;
1136:
1137: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138: ac_prev=srcdir ;;
1139: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140: srcdir=$ac_optarg ;;
1141:
1142: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143: | --syscon | --sysco | --sysc | --sys | --sy)
1144: ac_prev=sysconfdir ;;
1145: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147: sysconfdir=$ac_optarg ;;
1148:
1149: -target | --target | --targe | --targ | --tar | --ta | --t)
1150: ac_prev=target_alias ;;
1151: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152: target_alias=$ac_optarg ;;
1153:
1154: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155: verbose=yes ;;
1156:
1157: -version | --version | --versio | --versi | --vers | -V)
1158: ac_init_version=: ;;
1159:
1160: -with-* | --with-*)
1.22 moko 1161: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 misha 1162: # Reject names that are not valid shell variable names.
1.22 moko 1163: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164: as_fn_error $? "invalid package name: $ac_useropt"
1165: ac_useropt_orig=$ac_useropt
1166: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167: case $ac_user_opts in
1168: *"
1169: "with_$ac_useropt"
1170: "*) ;;
1171: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172: ac_unrecognized_sep=', ';;
1.1 misha 1173: esac
1.22 moko 1174: eval with_$ac_useropt=\$ac_optarg ;;
1.1 misha 1175:
1176: -without-* | --without-*)
1.22 moko 1177: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 misha 1178: # Reject names that are not valid shell variable names.
1.22 moko 1179: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180: as_fn_error $? "invalid package name: $ac_useropt"
1181: ac_useropt_orig=$ac_useropt
1182: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183: case $ac_user_opts in
1184: *"
1185: "with_$ac_useropt"
1186: "*) ;;
1187: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188: ac_unrecognized_sep=', ';;
1189: esac
1190: eval with_$ac_useropt=no ;;
1.1 misha 1191:
1192: --x)
1193: # Obsolete; use --with-x.
1194: with_x=yes ;;
1195:
1196: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197: | --x-incl | --x-inc | --x-in | --x-i)
1198: ac_prev=x_includes ;;
1199: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201: x_includes=$ac_optarg ;;
1202:
1203: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205: ac_prev=x_libraries ;;
1206: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208: x_libraries=$ac_optarg ;;
1209:
1.22 moko 1210: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211: Try \`$0 --help' for more information"
1.1 misha 1212: ;;
1213:
1214: *=*)
1215: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216: # Reject names that are not valid shell variable names.
1.22 moko 1217: case $ac_envvar in #(
1218: '' | [0-9]* | *[!_$as_cr_alnum]* )
1219: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1220: esac
1221: eval $ac_envvar=\$ac_optarg
1.1 misha 1222: export $ac_envvar ;;
1223:
1224: *)
1225: # FIXME: should be removed in autoconf 3.0.
1.22 moko 1226: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 misha 1227: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.22 moko 1228: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 misha 1230: ;;
1231:
1232: esac
1233: done
1234:
1235: if test -n "$ac_prev"; then
1236: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.22 moko 1237: as_fn_error $? "missing argument to $ac_option"
1238: fi
1239:
1240: if test -n "$ac_unrecognized_opts"; then
1241: case $enable_option_checking in
1242: no) ;;
1243: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245: esac
1.10 moko 1246: fi
1247:
1.22 moko 1248: # Check all directory arguments for consistency.
1249: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250: datadir sysconfdir sharedstatedir localstatedir includedir \
1251: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.30 moko 1252: libdir localedir mandir runstatedir
1.11 moko 1253: do
1.22 moko 1254: eval ac_val=\$$ac_var
1255: # Remove trailing slashes.
1.11 moko 1256: case $ac_val in
1.22 moko 1257: */ )
1258: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259: eval $ac_var=\$ac_val;;
1.10 moko 1260: esac
1.22 moko 1261: # Be sure to have absolute directory names.
1.1 misha 1262: case $ac_val in
1.22 moko 1263: [\\/$]* | ?:[\\/]* ) continue;;
1264: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 misha 1265: esac
1.22 moko 1266: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 misha 1267: done
1268:
1269: # There might be people who depend on the old broken behavior: `$host'
1270: # used to hold the argument of --host etc.
1271: # FIXME: To remove some day.
1272: build=$build_alias
1273: host=$host_alias
1274: target=$target_alias
1275:
1276: # FIXME: To remove some day.
1277: if test "x$host_alias" != x; then
1278: if test "x$build_alias" = x; then
1279: cross_compiling=maybe
1280: elif test "x$build_alias" != "x$host_alias"; then
1281: cross_compiling=yes
1282: fi
1283: fi
1284:
1285: ac_tool_prefix=
1286: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287:
1288: test "$silent" = yes && exec 6>/dev/null
1289:
1290:
1.22 moko 1291: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292: ac_ls_di=`ls -di .` &&
1293: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294: as_fn_error $? "working directory cannot be determined"
1295: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296: as_fn_error $? "pwd does not report name of working directory"
1297:
1298:
1.1 misha 1299: # Find the source files, if location was not specified.
1300: if test -z "$srcdir"; then
1301: ac_srcdir_defaulted=yes
1.22 moko 1302: # Try the directory containing this script, then the parent directory.
1303: ac_confdir=`$as_dirname -- "$as_myself" ||
1304: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305: X"$as_myself" : 'X\(//\)[^/]' \| \
1306: X"$as_myself" : 'X\(//\)$' \| \
1307: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308: $as_echo X"$as_myself" |
1309: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310: s//\1/
1311: q
1312: }
1313: /^X\(\/\/\)[^/].*/{
1314: s//\1/
1315: q
1316: }
1317: /^X\(\/\/\)$/{
1318: s//\1/
1319: q
1320: }
1321: /^X\(\/\).*/{
1322: s//\1/
1323: q
1324: }
1325: s/.*/./; q'`
1.1 misha 1326: srcdir=$ac_confdir
1.22 moko 1327: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 misha 1328: srcdir=..
1329: fi
1330: else
1331: ac_srcdir_defaulted=no
1332: fi
1.22 moko 1333: if test ! -r "$srcdir/$ac_unique_file"; then
1334: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1336: fi
1337: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338: ac_abs_confdir=`(
1339: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1340: pwd)`
1341: # When building in place, set srcdir=.
1342: if test "$ac_abs_confdir" = "$ac_pwd"; then
1343: srcdir=.
1344: fi
1345: # Remove unnecessary trailing slashes from srcdir.
1346: # Double slashes in file names in object file debugging info
1347: # mess up M-x gdb in Emacs.
1348: case $srcdir in
1349: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350: esac
1351: for ac_var in $ac_precious_vars; do
1352: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353: eval ac_env_${ac_var}_value=\$${ac_var}
1354: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356: done
1.1 misha 1357:
1358: #
1359: # Report the --help message.
1360: #
1361: if test "$ac_init_help" = "long"; then
1362: # Omit some internal or obsolete options to make the list less imposing.
1363: # This message is too long to be a string in the A/UX 3.1 sh.
1364: cat <<_ACEOF
1.31 ! moko 1365: \`configure' configures parser3sqlite 10.5 to adapt to many kinds of systems.
1.1 misha 1366:
1367: Usage: $0 [OPTION]... [VAR=VALUE]...
1368:
1369: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370: VAR=VALUE. See below for descriptions of some of the useful variables.
1371:
1372: Defaults for the options are specified in brackets.
1373:
1374: Configuration:
1375: -h, --help display this help and exit
1376: --help=short display options specific to this package
1377: --help=recursive display the short help of all the included packages
1378: -V, --version display version information and exit
1.22 moko 1379: -q, --quiet, --silent do not print \`checking ...' messages
1.1 misha 1380: --cache-file=FILE cache test results in FILE [disabled]
1381: -C, --config-cache alias for \`--cache-file=config.cache'
1382: -n, --no-create do not create output files
1383: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1384:
1385: Installation directories:
1386: --prefix=PREFIX install architecture-independent files in PREFIX
1.22 moko 1387: [$ac_default_prefix]
1.1 misha 1388: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.22 moko 1389: [PREFIX]
1.1 misha 1390:
1391: By default, \`make install' will install all the files in
1392: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1393: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394: for instance \`--prefix=\$HOME'.
1395:
1396: For better control, use the options below.
1397:
1398: Fine tuning of the installation directories:
1.22 moko 1399: --bindir=DIR user executables [EPREFIX/bin]
1400: --sbindir=DIR system admin executables [EPREFIX/sbin]
1401: --libexecdir=DIR program executables [EPREFIX/libexec]
1402: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1403: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1404: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.30 moko 1405: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.22 moko 1406: --libdir=DIR object code libraries [EPREFIX/lib]
1407: --includedir=DIR C header files [PREFIX/include]
1408: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1409: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1410: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1411: --infodir=DIR info documentation [DATAROOTDIR/info]
1412: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1413: --mandir=DIR man documentation [DATAROOTDIR/man]
1.25 moko 1414: --docdir=DIR documentation root [DATAROOTDIR/doc/parser3sqlite]
1.22 moko 1415: --htmldir=DIR html documentation [DOCDIR]
1416: --dvidir=DIR dvi documentation [DOCDIR]
1417: --pdfdir=DIR pdf documentation [DOCDIR]
1418: --psdir=DIR ps documentation [DOCDIR]
1.1 misha 1419: _ACEOF
1420:
1421: cat <<\_ACEOF
1422:
1423: Program names:
1424: --program-prefix=PREFIX prepend PREFIX to installed program names
1425: --program-suffix=SUFFIX append SUFFIX to installed program names
1426: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1427:
1428: System types:
1429: --build=BUILD configure for building on BUILD [guessed]
1430: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431: _ACEOF
1432: fi
1433:
1434: if test -n "$ac_init_help"; then
1.13 moko 1435: case $ac_init_help in
1.31 ! moko 1436: short | recursive ) echo "Configuration of parser3sqlite 10.5:";;
1.13 moko 1437: esac
1.1 misha 1438: cat <<\_ACEOF
1439:
1440: Optional Features:
1.22 moko 1441: --disable-option-checking ignore unrecognized --enable/--with options
1.1 misha 1442: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.30 moko 1444: --enable-silent-rules less verbose build output (undo: "make V=1")
1445: --disable-silent-rules verbose build output (undo: "make V=0")
1446: --enable-dependency-tracking
1447: do not reject slow dependency extractors
1448: --disable-dependency-tracking
1449: speeds up one-time build
1.22 moko 1450: --enable-static[=PKGS] build static libraries [default=no]
1451: --enable-shared[=PKGS] build shared libraries [default=yes]
1.8 moko 1452: --enable-fast-install[=PKGS]
1453: optimize for fast installation [default=yes]
1.1 misha 1454: --disable-libtool-lock avoid locking (might break parallel builds)
1.8 moko 1455: --enable-ltdl-install install libltdl
1.1 misha 1456:
1457: Optional Packages:
1458: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460: --with-sqlite-inc=DIR DIR is the SQLite includes directory
1.22 moko 1461: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.8 moko 1462: both]
1463: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464: --with-sysroot=DIR Search for dependent libraries within DIR
1465: (or the compiler's sysroot if not specified).
1466: --with-included-ltdl use the GNU ltdl sources included here
1467: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1468: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.1 misha 1469:
1470: Some influential environment variables:
1471: CXX C++ compiler command
1472: CXXFLAGS C++ compiler flags
1473: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474: nonstandard directory <lib dir>
1.22 moko 1475: LIBS libraries to pass to the linker, e.g. -l<library>
1476: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477: you have headers in a nonstandard directory <include dir>
1.1 misha 1478: CC C compiler command
1479: CFLAGS C compiler flags
1480: CPP C preprocessor
1.8 moko 1481: CXXCPP C++ preprocessor
1.1 misha 1482:
1483: Use these variables to override the choices made by `configure' or to help
1484: it to find libraries and programs with nonstandard names/locations.
1485:
1.22 moko 1486: Report bugs to the package provider.
1.1 misha 1487: _ACEOF
1.22 moko 1488: ac_status=$?
1.1 misha 1489: fi
1490:
1491: if test "$ac_init_help" = "recursive"; then
1492: # If there are subdirs, report their specific --help.
1493: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.22 moko 1494: test -d "$ac_dir" ||
1495: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496: continue
1.1 misha 1497: ac_builddir=.
1498:
1.22 moko 1499: case "$ac_dir" in
1500: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501: *)
1502: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503: # A ".." for each directory in $ac_dir_suffix.
1504: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505: case $ac_top_builddir_sub in
1506: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508: esac ;;
1509: esac
1510: ac_abs_top_builddir=$ac_pwd
1511: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512: # for backward compatibility:
1513: ac_top_builddir=$ac_top_build_prefix
1.1 misha 1514:
1515: case $srcdir in
1.22 moko 1516: .) # We are building in place.
1.1 misha 1517: ac_srcdir=.
1.22 moko 1518: ac_top_srcdir=$ac_top_builddir_sub
1519: ac_abs_top_srcdir=$ac_pwd ;;
1520: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 misha 1521: ac_srcdir=$srcdir$ac_dir_suffix;
1.22 moko 1522: ac_top_srcdir=$srcdir
1523: ac_abs_top_srcdir=$srcdir ;;
1524: *) # Relative name.
1525: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526: ac_top_srcdir=$ac_top_build_prefix$srcdir
1527: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.11 moko 1528: esac
1.22 moko 1529: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.11 moko 1530:
1.22 moko 1531: cd "$ac_dir" || { ac_status=$?; continue; }
1532: # Check for guested configure.
1533: if test -f "$ac_srcdir/configure.gnu"; then
1534: echo &&
1535: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536: elif test -f "$ac_srcdir/configure"; then
1537: echo &&
1538: $SHELL "$ac_srcdir/configure" --help=recursive
1.1 misha 1539: else
1.22 moko 1540: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541: fi || ac_status=$?
1542: cd "$ac_pwd" || { ac_status=$?; break; }
1.1 misha 1543: done
1544: fi
1545:
1.22 moko 1546: test -n "$ac_init_help" && exit $ac_status
1.1 misha 1547: if $ac_init_version; then
1548: cat <<\_ACEOF
1.31 ! moko 1549: parser3sqlite configure 10.5
1.25 moko 1550: generated by GNU Autoconf 2.69
1.1 misha 1551:
1.25 moko 1552: Copyright (C) 2012 Free Software Foundation, Inc.
1.1 misha 1553: This configure script is free software; the Free Software Foundation
1554: gives unlimited permission to copy, distribute and modify it.
1555: _ACEOF
1.22 moko 1556: exit
1.1 misha 1557: fi
1558:
1.22 moko 1559: ## ------------------------ ##
1560: ## Autoconf initialization. ##
1561: ## ------------------------ ##
1562:
1563: # ac_fn_cxx_try_compile LINENO
1564: # ----------------------------
1565: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566: ac_fn_cxx_try_compile ()
1567: {
1568: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569: rm -f conftest.$ac_objext
1570: if { { ac_try="$ac_compile"
1571: case "(($ac_try" in
1572: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573: *) ac_try_echo=$ac_try;;
1574: esac
1575: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576: $as_echo "$ac_try_echo"; } >&5
1577: (eval "$ac_compile") 2>conftest.err
1578: ac_status=$?
1579: if test -s conftest.err; then
1580: grep -v '^ *+' conftest.err >conftest.er1
1581: cat conftest.er1 >&5
1582: mv -f conftest.er1 conftest.err
1583: fi
1584: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585: test $ac_status = 0; } && {
1586: test -z "$ac_cxx_werror_flag" ||
1587: test ! -s conftest.err
1588: } && test -s conftest.$ac_objext; then :
1589: ac_retval=0
1590: else
1591: $as_echo "$as_me: failed program was:" >&5
1592: sed 's/^/| /' conftest.$ac_ext >&5
1593:
1594: ac_retval=1
1595: fi
1596: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597: as_fn_set_status $ac_retval
1.10 moko 1598:
1.22 moko 1599: } # ac_fn_cxx_try_compile
1.1 misha 1600:
1.22 moko 1601: # ac_fn_c_try_compile LINENO
1602: # --------------------------
1603: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604: ac_fn_c_try_compile ()
1.1 misha 1605: {
1.22 moko 1606: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607: rm -f conftest.$ac_objext
1608: if { { ac_try="$ac_compile"
1609: case "(($ac_try" in
1610: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611: *) ac_try_echo=$ac_try;;
1612: esac
1613: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614: $as_echo "$ac_try_echo"; } >&5
1615: (eval "$ac_compile") 2>conftest.err
1616: ac_status=$?
1617: if test -s conftest.err; then
1618: grep -v '^ *+' conftest.err >conftest.er1
1619: cat conftest.er1 >&5
1620: mv -f conftest.er1 conftest.err
1621: fi
1622: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623: test $ac_status = 0; } && {
1624: test -z "$ac_c_werror_flag" ||
1625: test ! -s conftest.err
1626: } && test -s conftest.$ac_objext; then :
1627: ac_retval=0
1628: else
1629: $as_echo "$as_me: failed program was:" >&5
1630: sed 's/^/| /' conftest.$ac_ext >&5
1631:
1632: ac_retval=1
1633: fi
1634: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635: as_fn_set_status $ac_retval
1636:
1637: } # ac_fn_c_try_compile
1638:
1639: # ac_fn_c_try_link LINENO
1640: # -----------------------
1641: # Try to link conftest.$ac_ext, and return whether this succeeded.
1642: ac_fn_c_try_link ()
1643: {
1644: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645: rm -f conftest.$ac_objext conftest$ac_exeext
1646: if { { ac_try="$ac_link"
1647: case "(($ac_try" in
1648: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649: *) ac_try_echo=$ac_try;;
1650: esac
1651: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652: $as_echo "$ac_try_echo"; } >&5
1653: (eval "$ac_link") 2>conftest.err
1654: ac_status=$?
1655: if test -s conftest.err; then
1656: grep -v '^ *+' conftest.err >conftest.er1
1657: cat conftest.er1 >&5
1658: mv -f conftest.er1 conftest.err
1659: fi
1660: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661: test $ac_status = 0; } && {
1662: test -z "$ac_c_werror_flag" ||
1663: test ! -s conftest.err
1664: } && test -s conftest$ac_exeext && {
1665: test "$cross_compiling" = yes ||
1.25 moko 1666: test -x conftest$ac_exeext
1.22 moko 1667: }; then :
1668: ac_retval=0
1669: else
1670: $as_echo "$as_me: failed program was:" >&5
1671: sed 's/^/| /' conftest.$ac_ext >&5
1672:
1673: ac_retval=1
1674: fi
1675: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1676: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1677: # interfere with the next link command; also delete a directory that is
1678: # left behind by Apple's compiler. We do this before executing the actions.
1679: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1680: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681: as_fn_set_status $ac_retval
1682:
1683: } # ac_fn_c_try_link
1684:
1685: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1686: # -------------------------------------------------------
1687: # Tests whether HEADER exists and can be compiled using the include files in
1688: # INCLUDES, setting the cache variable VAR accordingly.
1689: ac_fn_c_check_header_compile ()
1690: {
1691: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693: $as_echo_n "checking for $2... " >&6; }
1694: if eval \${$3+:} false; then :
1695: $as_echo_n "(cached) " >&6
1696: else
1697: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698: /* end confdefs.h. */
1699: $4
1700: #include <$2>
1701: _ACEOF
1702: if ac_fn_c_try_compile "$LINENO"; then :
1703: eval "$3=yes"
1704: else
1705: eval "$3=no"
1706: fi
1707: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708: fi
1709: eval ac_res=\$$3
1710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711: $as_echo "$ac_res" >&6; }
1712: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713:
1714: } # ac_fn_c_check_header_compile
1715:
1716: # ac_fn_c_try_cpp LINENO
1717: # ----------------------
1718: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719: ac_fn_c_try_cpp ()
1720: {
1721: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722: if { { ac_try="$ac_cpp conftest.$ac_ext"
1723: case "(($ac_try" in
1724: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725: *) ac_try_echo=$ac_try;;
1726: esac
1727: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728: $as_echo "$ac_try_echo"; } >&5
1729: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1730: ac_status=$?
1731: if test -s conftest.err; then
1732: grep -v '^ *+' conftest.err >conftest.er1
1733: cat conftest.er1 >&5
1734: mv -f conftest.er1 conftest.err
1735: fi
1736: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737: test $ac_status = 0; } > conftest.i && {
1738: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1739: test ! -s conftest.err
1740: }; then :
1741: ac_retval=0
1742: else
1743: $as_echo "$as_me: failed program was:" >&5
1744: sed 's/^/| /' conftest.$ac_ext >&5
1745:
1746: ac_retval=1
1747: fi
1748: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749: as_fn_set_status $ac_retval
1750:
1751: } # ac_fn_c_try_cpp
1752:
1753: # ac_fn_c_try_run LINENO
1754: # ----------------------
1755: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1756: # that executables *can* be run.
1757: ac_fn_c_try_run ()
1758: {
1759: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760: if { { ac_try="$ac_link"
1761: case "(($ac_try" in
1762: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763: *) ac_try_echo=$ac_try;;
1764: esac
1765: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766: $as_echo "$ac_try_echo"; } >&5
1767: (eval "$ac_link") 2>&5
1768: ac_status=$?
1769: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1771: { { case "(($ac_try" in
1772: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773: *) ac_try_echo=$ac_try;;
1774: esac
1775: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776: $as_echo "$ac_try_echo"; } >&5
1777: (eval "$ac_try") 2>&5
1778: ac_status=$?
1779: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780: test $ac_status = 0; }; }; then :
1781: ac_retval=0
1782: else
1783: $as_echo "$as_me: program exited with status $ac_status" >&5
1784: $as_echo "$as_me: failed program was:" >&5
1785: sed 's/^/| /' conftest.$ac_ext >&5
1786:
1787: ac_retval=$ac_status
1788: fi
1789: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791: as_fn_set_status $ac_retval
1792:
1793: } # ac_fn_c_try_run
1794:
1795: # ac_fn_c_check_func LINENO FUNC VAR
1796: # ----------------------------------
1797: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1798: ac_fn_c_check_func ()
1799: {
1800: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802: $as_echo_n "checking for $2... " >&6; }
1803: if eval \${$3+:} false; then :
1804: $as_echo_n "(cached) " >&6
1805: else
1806: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807: /* end confdefs.h. */
1808: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1809: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1810: #define $2 innocuous_$2
1811:
1812: /* System header to define __stub macros and hopefully few prototypes,
1813: which can conflict with char $2 (); below.
1814: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1815: <limits.h> exists even on freestanding compilers. */
1816:
1817: #ifdef __STDC__
1818: # include <limits.h>
1819: #else
1820: # include <assert.h>
1821: #endif
1822:
1823: #undef $2
1824:
1825: /* Override any GCC internal prototype to avoid an error.
1826: Use char because int might match the return type of a GCC
1827: builtin and then its argument prototype would still apply. */
1828: #ifdef __cplusplus
1829: extern "C"
1830: #endif
1831: char $2 ();
1832: /* The GNU C library defines this for functions which it implements
1833: to always fail with ENOSYS. Some functions are actually named
1834: something starting with __ and the normal name is an alias. */
1835: #if defined __stub_$2 || defined __stub___$2
1836: choke me
1837: #endif
1838:
1839: int
1840: main ()
1841: {
1842: return $2 ();
1843: ;
1844: return 0;
1845: }
1846: _ACEOF
1847: if ac_fn_c_try_link "$LINENO"; then :
1848: eval "$3=yes"
1849: else
1850: eval "$3=no"
1851: fi
1852: rm -f core conftest.err conftest.$ac_objext \
1853: conftest$ac_exeext conftest.$ac_ext
1854: fi
1855: eval ac_res=\$$3
1856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857: $as_echo "$ac_res" >&6; }
1858: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859:
1860: } # ac_fn_c_check_func
1861:
1862: # ac_fn_cxx_try_cpp LINENO
1863: # ------------------------
1864: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1865: ac_fn_cxx_try_cpp ()
1866: {
1867: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868: if { { ac_try="$ac_cpp conftest.$ac_ext"
1869: case "(($ac_try" in
1870: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871: *) ac_try_echo=$ac_try;;
1872: esac
1873: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874: $as_echo "$ac_try_echo"; } >&5
1875: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1876: ac_status=$?
1877: if test -s conftest.err; then
1878: grep -v '^ *+' conftest.err >conftest.er1
1879: cat conftest.er1 >&5
1880: mv -f conftest.er1 conftest.err
1881: fi
1882: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883: test $ac_status = 0; } > conftest.i && {
1884: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1885: test ! -s conftest.err
1886: }; then :
1887: ac_retval=0
1888: else
1889: $as_echo "$as_me: failed program was:" >&5
1890: sed 's/^/| /' conftest.$ac_ext >&5
1891:
1892: ac_retval=1
1893: fi
1894: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895: as_fn_set_status $ac_retval
1896:
1897: } # ac_fn_cxx_try_cpp
1898:
1899: # ac_fn_cxx_try_link LINENO
1900: # -------------------------
1901: # Try to link conftest.$ac_ext, and return whether this succeeded.
1902: ac_fn_cxx_try_link ()
1903: {
1904: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905: rm -f conftest.$ac_objext conftest$ac_exeext
1906: if { { ac_try="$ac_link"
1907: case "(($ac_try" in
1908: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909: *) ac_try_echo=$ac_try;;
1910: esac
1911: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912: $as_echo "$ac_try_echo"; } >&5
1913: (eval "$ac_link") 2>conftest.err
1914: ac_status=$?
1915: if test -s conftest.err; then
1916: grep -v '^ *+' conftest.err >conftest.er1
1917: cat conftest.er1 >&5
1918: mv -f conftest.er1 conftest.err
1919: fi
1920: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921: test $ac_status = 0; } && {
1922: test -z "$ac_cxx_werror_flag" ||
1923: test ! -s conftest.err
1924: } && test -s conftest$ac_exeext && {
1925: test "$cross_compiling" = yes ||
1.25 moko 1926: test -x conftest$ac_exeext
1.22 moko 1927: }; then :
1928: ac_retval=0
1929: else
1930: $as_echo "$as_me: failed program was:" >&5
1931: sed 's/^/| /' conftest.$ac_ext >&5
1932:
1933: ac_retval=1
1934: fi
1935: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937: # interfere with the next link command; also delete a directory that is
1938: # left behind by Apple's compiler. We do this before executing the actions.
1939: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941: as_fn_set_status $ac_retval
1942:
1943: } # ac_fn_cxx_try_link
1944:
1945: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1946: # ---------------------------------------------
1947: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1948: # accordingly.
1949: ac_fn_c_check_decl ()
1950: {
1951: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952: as_decl_name=`echo $2|sed 's/ *(.*//'`
1953: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1955: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1956: if eval \${$3+:} false; then :
1957: $as_echo_n "(cached) " >&6
1958: else
1959: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960: /* end confdefs.h. */
1961: $4
1962: int
1963: main ()
1964: {
1965: #ifndef $as_decl_name
1966: #ifdef __cplusplus
1967: (void) $as_decl_use;
1968: #else
1969: (void) $as_decl_name;
1970: #endif
1971: #endif
1972:
1973: ;
1974: return 0;
1975: }
1976: _ACEOF
1977: if ac_fn_c_try_compile "$LINENO"; then :
1978: eval "$3=yes"
1979: else
1980: eval "$3=no"
1981: fi
1982: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983: fi
1984: eval ac_res=\$$3
1985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986: $as_echo "$ac_res" >&6; }
1987: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988:
1989: } # ac_fn_c_check_decl
1990:
1991: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1992: # -------------------------------------------
1993: # Tests whether TYPE exists after having included INCLUDES, setting cache
1994: # variable VAR accordingly.
1995: ac_fn_c_check_type ()
1996: {
1997: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999: $as_echo_n "checking for $2... " >&6; }
2000: if eval \${$3+:} false; then :
2001: $as_echo_n "(cached) " >&6
2002: else
2003: eval "$3=no"
2004: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005: /* end confdefs.h. */
2006: $4
2007: int
2008: main ()
2009: {
2010: if (sizeof ($2))
2011: return 0;
2012: ;
2013: return 0;
2014: }
2015: _ACEOF
2016: if ac_fn_c_try_compile "$LINENO"; then :
2017: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018: /* end confdefs.h. */
2019: $4
2020: int
2021: main ()
2022: {
2023: if (sizeof (($2)))
2024: return 0;
2025: ;
2026: return 0;
2027: }
2028: _ACEOF
2029: if ac_fn_c_try_compile "$LINENO"; then :
2030:
2031: else
2032: eval "$3=yes"
2033: fi
2034: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035: fi
2036: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037: fi
2038: eval ac_res=\$$3
2039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040: $as_echo "$ac_res" >&6; }
2041: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042:
2043: } # ac_fn_c_check_type
2044:
2045: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2046: # -------------------------------------------------------
2047: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2048: # the include files in INCLUDES and setting the cache variable VAR
2049: # accordingly.
2050: ac_fn_c_check_header_mongrel ()
2051: {
2052: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053: if eval \${$3+:} false; then :
2054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055: $as_echo_n "checking for $2... " >&6; }
2056: if eval \${$3+:} false; then :
2057: $as_echo_n "(cached) " >&6
2058: fi
2059: eval ac_res=\$$3
2060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061: $as_echo "$ac_res" >&6; }
2062: else
2063: # Is the header compilable?
2064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2065: $as_echo_n "checking $2 usability... " >&6; }
2066: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067: /* end confdefs.h. */
2068: $4
2069: #include <$2>
2070: _ACEOF
2071: if ac_fn_c_try_compile "$LINENO"; then :
2072: ac_header_compiler=yes
2073: else
2074: ac_header_compiler=no
2075: fi
2076: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2078: $as_echo "$ac_header_compiler" >&6; }
2079:
2080: # Is the header present?
2081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2082: $as_echo_n "checking $2 presence... " >&6; }
2083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084: /* end confdefs.h. */
2085: #include <$2>
2086: _ACEOF
2087: if ac_fn_c_try_cpp "$LINENO"; then :
2088: ac_header_preproc=yes
2089: else
2090: ac_header_preproc=no
2091: fi
2092: rm -f conftest.err conftest.i conftest.$ac_ext
2093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2094: $as_echo "$ac_header_preproc" >&6; }
2095:
2096: # So? What about this header?
2097: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2098: yes:no: )
2099: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2100: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2101: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2103: ;;
2104: no:yes:* )
2105: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2106: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2107: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2108: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2109: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2110: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2111: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2112: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2113: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2115: ;;
2116: esac
2117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118: $as_echo_n "checking for $2... " >&6; }
2119: if eval \${$3+:} false; then :
2120: $as_echo_n "(cached) " >&6
2121: else
2122: eval "$3=\$ac_header_compiler"
2123: fi
2124: eval ac_res=\$$3
2125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126: $as_echo "$ac_res" >&6; }
2127: fi
2128: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129:
2130: } # ac_fn_c_check_header_mongrel
2131: cat >config.log <<_ACEOF
2132: This file contains any messages produced by compilers while
2133: running configure, to aid debugging if configure makes a mistake.
2134:
1.31 ! moko 2135: It was created by parser3sqlite $as_me 10.5, which was
1.25 moko 2136: generated by GNU Autoconf 2.69. Invocation command line was
1.22 moko 2137:
2138: $ $0 $@
2139:
2140: _ACEOF
2141: exec 5>>config.log
2142: {
2143: cat <<_ASUNAME
2144: ## --------- ##
2145: ## Platform. ##
2146: ## --------- ##
1.10 moko 2147:
1.11 moko 2148: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2149: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2150: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2151: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2152: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 misha 2153:
1.11 moko 2154: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1.1 misha 2155: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2156:
2157: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2158: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2159: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.22 moko 2160: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.1 misha 2161: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2162: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2163: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2164:
2165: _ASUNAME
2166:
2167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168: for as_dir in $PATH
2169: do
2170: IFS=$as_save_IFS
2171: test -z "$as_dir" && as_dir=.
1.22 moko 2172: $as_echo "PATH: $as_dir"
2173: done
2174: IFS=$as_save_IFS
1.1 misha 2175:
2176: } >&5
2177:
2178: cat >&5 <<_ACEOF
2179:
2180:
2181: ## ----------- ##
2182: ## Core tests. ##
2183: ## ----------- ##
2184:
2185: _ACEOF
2186:
2187:
2188: # Keep a trace of the command line.
2189: # Strip out --no-create and --no-recursion so they do not pile up.
2190: # Strip out --silent because we don't want to record it for future runs.
2191: # Also quote any args containing shell meta-characters.
2192: # Make two passes to allow for proper duplicate-argument suppression.
2193: ac_configure_args=
2194: ac_configure_args0=
2195: ac_configure_args1=
2196: ac_must_keep_next=false
2197: for ac_pass in 1 2
2198: do
2199: for ac_arg
2200: do
2201: case $ac_arg in
2202: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2203: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2204: | -silent | --silent | --silen | --sile | --sil)
2205: continue ;;
1.22 moko 2206: *\'*)
2207: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 2208: esac
2209: case $ac_pass in
1.22 moko 2210: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.1 misha 2211: 2)
1.22 moko 2212: as_fn_append ac_configure_args1 " '$ac_arg'"
1.1 misha 2213: if test $ac_must_keep_next = true; then
2214: ac_must_keep_next=false # Got value, back to normal.
2215: else
2216: case $ac_arg in
2217: *=* | --config-cache | -C | -disable-* | --disable-* \
2218: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2219: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2220: | -with-* | --with-* | -without-* | --without-* | --x)
2221: case "$ac_configure_args0 " in
2222: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2223: esac
2224: ;;
2225: -* ) ac_must_keep_next=true ;;
2226: esac
2227: fi
1.22 moko 2228: as_fn_append ac_configure_args " '$ac_arg'"
1.1 misha 2229: ;;
2230: esac
2231: done
2232: done
1.22 moko 2233: { ac_configure_args0=; unset ac_configure_args0;}
2234: { ac_configure_args1=; unset ac_configure_args1;}
1.1 misha 2235:
2236: # When interrupted or exit'd, cleanup temporary files, and complete
2237: # config.log. We remove comments because anyway the quotes in there
2238: # would cause problems or look ugly.
1.22 moko 2239: # WARNING: Use '\'' to represent an apostrophe within the trap.
2240: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1 misha 2241: trap 'exit_status=$?
2242: # Save into config.log some information that might help in debugging.
2243: {
2244: echo
2245:
1.22 moko 2246: $as_echo "## ---------------- ##
1.1 misha 2247: ## Cache variables. ##
1.22 moko 2248: ## ---------------- ##"
1.1 misha 2249: echo
2250: # The following way of writing the cache mishandles newlines in values,
1.22 moko 2251: (
2252: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2253: eval ac_val=\$$ac_var
2254: case $ac_val in #(
2255: *${as_nl}*)
2256: case $ac_var in #(
2257: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2258: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2259: esac
2260: case $ac_var in #(
2261: _ | IFS | as_nl) ;; #(
2262: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2263: *) { eval $ac_var=; unset $ac_var;} ;;
2264: esac ;;
2265: esac
2266: done
1.1 misha 2267: (set) 2>&1 |
1.22 moko 2268: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2269: *${as_nl}ac_space=\ *)
1.1 misha 2270: sed -n \
1.22 moko 2271: "s/'\''/'\''\\\\'\'''\''/g;
2272: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2273: ;; #(
1.1 misha 2274: *)
1.22 moko 2275: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 misha 2276: ;;
1.22 moko 2277: esac |
2278: sort
2279: )
1.1 misha 2280: echo
2281:
1.22 moko 2282: $as_echo "## ----------------- ##
1.1 misha 2283: ## Output variables. ##
1.22 moko 2284: ## ----------------- ##"
1.1 misha 2285: echo
2286: for ac_var in $ac_subst_vars
2287: do
1.22 moko 2288: eval ac_val=\$$ac_var
2289: case $ac_val in
2290: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2291: esac
2292: $as_echo "$ac_var='\''$ac_val'\''"
1.1 misha 2293: done | sort
2294: echo
2295:
2296: if test -n "$ac_subst_files"; then
1.22 moko 2297: $as_echo "## ------------------- ##
2298: ## File substitutions. ##
2299: ## ------------------- ##"
1.1 misha 2300: echo
2301: for ac_var in $ac_subst_files
2302: do
1.22 moko 2303: eval ac_val=\$$ac_var
2304: case $ac_val in
2305: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2306: esac
2307: $as_echo "$ac_var='\''$ac_val'\''"
1.1 misha 2308: done | sort
2309: echo
2310: fi
2311:
2312: if test -s confdefs.h; then
1.22 moko 2313: $as_echo "## ----------- ##
1.1 misha 2314: ## confdefs.h. ##
1.22 moko 2315: ## ----------- ##"
1.1 misha 2316: echo
1.22 moko 2317: cat confdefs.h
1.1 misha 2318: echo
2319: fi
2320: test "$ac_signal" != 0 &&
1.22 moko 2321: $as_echo "$as_me: caught signal $ac_signal"
2322: $as_echo "$as_me: exit $exit_status"
1.1 misha 2323: } >&5
1.22 moko 2324: rm -f core *.core core.conftest.* &&
2325: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1 misha 2326: exit $exit_status
1.22 moko 2327: ' 0
1.1 misha 2328: for ac_signal in 1 2 13 15; do
1.22 moko 2329: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.1 misha 2330: done
2331: ac_signal=0
2332:
2333: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.22 moko 2334: rm -f -r conftest* confdefs.h
2335:
2336: $as_echo "/* confdefs.h */" > confdefs.h
1.1 misha 2337:
2338: # Predefined preprocessor variables.
2339:
2340: cat >>confdefs.h <<_ACEOF
2341: #define PACKAGE_NAME "$PACKAGE_NAME"
2342: _ACEOF
2343:
2344: cat >>confdefs.h <<_ACEOF
2345: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2346: _ACEOF
2347:
2348: cat >>confdefs.h <<_ACEOF
2349: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2350: _ACEOF
2351:
2352: cat >>confdefs.h <<_ACEOF
2353: #define PACKAGE_STRING "$PACKAGE_STRING"
2354: _ACEOF
2355:
1.22 moko 2356: cat >>confdefs.h <<_ACEOF
2357: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2358: _ACEOF
1.11 moko 2359:
1.10 moko 2360: cat >>confdefs.h <<_ACEOF
1.22 moko 2361: #define PACKAGE_URL "$PACKAGE_URL"
1.10 moko 2362: _ACEOF
1.1 misha 2363:
2364:
2365: # Let the site file select an alternate cache file if it wants to.
1.22 moko 2366: # Prefer an explicitly selected file to automatically selected ones.
2367: ac_site_file1=NONE
2368: ac_site_file2=NONE
2369: if test -n "$CONFIG_SITE"; then
2370: # We do not want a PATH search for config.site.
2371: case $CONFIG_SITE in #((
2372: -*) ac_site_file1=./$CONFIG_SITE;;
2373: */*) ac_site_file1=$CONFIG_SITE;;
2374: *) ac_site_file1=./$CONFIG_SITE;;
2375: esac
2376: elif test "x$prefix" != xNONE; then
2377: ac_site_file1=$prefix/share/config.site
2378: ac_site_file2=$prefix/etc/config.site
2379: else
2380: ac_site_file1=$ac_default_prefix/share/config.site
2381: ac_site_file2=$ac_default_prefix/etc/config.site
2382: fi
2383: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2384: do
2385: test "x$ac_site_file" = xNONE && continue
2386: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2387: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2388: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.1 misha 2389: sed 's/^/| /' "$ac_site_file" >&5
1.22 moko 2390: . "$ac_site_file" \
2391: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2392: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2393: as_fn_error $? "failed to load site script $ac_site_file
2394: See \`config.log' for more details" "$LINENO" 5; }
1.1 misha 2395: fi
2396: done
2397:
2398: if test -r "$cache_file"; then
1.22 moko 2399: # Some versions of bash will fail to source /dev/null (special files
2400: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2401: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2402: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2403: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.1 misha 2404: case $cache_file in
1.22 moko 2405: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2406: *) . "./$cache_file";;
1.1 misha 2407: esac
2408: fi
2409: else
1.22 moko 2410: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2411: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.1 misha 2412: >$cache_file
2413: fi
2414:
2415: # Check that the precious variables saved in the cache have kept the same
2416: # value.
2417: ac_cache_corrupted=false
1.22 moko 2418: for ac_var in $ac_precious_vars; do
1.1 misha 2419: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2420: eval ac_new_set=\$ac_env_${ac_var}_set
1.22 moko 2421: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2422: eval ac_new_val=\$ac_env_${ac_var}_value
1.1 misha 2423: case $ac_old_set,$ac_new_set in
2424: set,)
1.22 moko 2425: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2426: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1 misha 2427: ac_cache_corrupted=: ;;
2428: ,set)
1.22 moko 2429: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2430: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1 misha 2431: ac_cache_corrupted=: ;;
2432: ,);;
2433: *)
2434: if test "x$ac_old_val" != "x$ac_new_val"; then
1.22 moko 2435: # differences in whitespace do not lead to failure.
2436: ac_old_val_w=`echo x $ac_old_val`
2437: ac_new_val_w=`echo x $ac_new_val`
2438: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2439: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2440: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2441: ac_cache_corrupted=:
2442: else
2443: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2444: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2445: eval $ac_var=\$ac_old_val
2446: fi
2447: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2448: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2449: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2450: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.1 misha 2451: fi;;
2452: esac
2453: # Pass precious variables to config.status.
2454: if test "$ac_new_set" = set; then
2455: case $ac_new_val in
1.22 moko 2456: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 2457: *) ac_arg=$ac_var=$ac_new_val ;;
2458: esac
2459: case " $ac_configure_args " in
2460: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.22 moko 2461: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.1 misha 2462: esac
2463: fi
2464: done
2465: if $ac_cache_corrupted; then
1.22 moko 2466: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2469: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2470: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2471: fi
2472: ## -------------------- ##
2473: ## Main body of script. ##
2474: ## -------------------- ##
1.1 misha 2475:
2476: ac_ext=c
2477: ac_cpp='$CPP $CPPFLAGS'
2478: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481:
2482:
2483:
1.22 moko 2484: ac_config_headers="$ac_config_headers config_auto.h"
1.1 misha 2485:
1.11 moko 2486:
1.30 moko 2487: am__api_version='1.16'
1.11 moko 2488:
1.1 misha 2489: ac_aux_dir=
1.22 moko 2490: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2491: if test -f "$ac_dir/install-sh"; then
1.1 misha 2492: ac_aux_dir=$ac_dir
2493: ac_install_sh="$ac_aux_dir/install-sh -c"
2494: break
1.22 moko 2495: elif test -f "$ac_dir/install.sh"; then
1.1 misha 2496: ac_aux_dir=$ac_dir
2497: ac_install_sh="$ac_aux_dir/install.sh -c"
2498: break
1.22 moko 2499: elif test -f "$ac_dir/shtool"; then
1.1 misha 2500: ac_aux_dir=$ac_dir
2501: ac_install_sh="$ac_aux_dir/shtool install -c"
2502: break
2503: fi
2504: done
2505: if test -z "$ac_aux_dir"; then
1.22 moko 2506: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2507: fi
2508:
2509: # These three variables are undocumented and unsupported,
2510: # and are intended to be withdrawn in a future Autoconf release.
2511: # They can cause serious problems if a builder's source tree is in a directory
2512: # whose full name contains unusual characters.
2513: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2514: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2515: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2516:
1.1 misha 2517:
2518: # Find a good install program. We prefer a C program (faster),
2519: # so one script is as good as another. But avoid the broken or
2520: # incompatible versions:
2521: # SysV /etc/install, /usr/sbin/install
2522: # SunOS /usr/etc/install
2523: # IRIX /sbin/install
2524: # AIX /bin/install
2525: # AmigaOS /C/install, which installs bootblocks on floppy discs
2526: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2527: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2528: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2529: # OS/2's system install, which has a completely different semantic
2530: # ./install, which can be erroneously created by make from ./install.sh.
1.22 moko 2531: # Reject install programs that cannot install multiple files.
2532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2533: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 misha 2534: if test -z "$INSTALL"; then
1.22 moko 2535: if ${ac_cv_path_install+:} false; then :
2536: $as_echo_n "(cached) " >&6
1.1 misha 2537: else
2538: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539: for as_dir in $PATH
2540: do
2541: IFS=$as_save_IFS
2542: test -z "$as_dir" && as_dir=.
1.22 moko 2543: # Account for people who put trailing slashes in PATH elements.
2544: case $as_dir/ in #((
2545: ./ | .// | /[cC]/* | \
1.1 misha 2546: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.22 moko 2547: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.1 misha 2548: /usr/ucb/* ) ;;
2549: *)
2550: # OSF1 and SCO ODT 3.0 have their own names for install.
2551: # Don't use installbsd from OSF since it installs stuff as root
2552: # by default.
2553: for ac_prog in ginstall scoinst install; do
2554: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 2555: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1 misha 2556: if test $ac_prog = install &&
2557: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2558: # AIX install. It has an incompatible calling convention.
2559: :
2560: elif test $ac_prog = install &&
2561: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562: # program-specific install script used by HP pwplus--don't use.
2563: :
2564: else
1.22 moko 2565: rm -rf conftest.one conftest.two conftest.dir
2566: echo one > conftest.one
2567: echo two > conftest.two
2568: mkdir conftest.dir
2569: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2570: test -s conftest.one && test -s conftest.two &&
2571: test -s conftest.dir/conftest.one &&
2572: test -s conftest.dir/conftest.two
2573: then
2574: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2575: break 3
2576: fi
1.1 misha 2577: fi
2578: fi
2579: done
2580: done
2581: ;;
2582: esac
2583:
1.22 moko 2584: done
2585: IFS=$as_save_IFS
2586:
2587: rm -rf conftest.one conftest.two conftest.dir
1.1 misha 2588:
2589: fi
2590: if test "${ac_cv_path_install+set}" = set; then
2591: INSTALL=$ac_cv_path_install
2592: else
1.22 moko 2593: # As a last resort, use the slow shell script. Don't cache a
2594: # value for INSTALL within a source directory, because that will
1.1 misha 2595: # break other packages using the cache if that directory is
1.22 moko 2596: # removed, or if the value is a relative name.
1.1 misha 2597: INSTALL=$ac_install_sh
2598: fi
2599: fi
1.22 moko 2600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2601: $as_echo "$INSTALL" >&6; }
1.1 misha 2602:
2603: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2604: # It thinks the first close brace ends the variable substitution.
2605: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2606:
2607: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2608:
2609: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2610:
1.22 moko 2611: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2612: $as_echo_n "checking whether build environment is sane... " >&6; }
2613: # Reject unsafe characters in $srcdir or the absolute working directory
2614: # name. Accept space and tab only in the latter.
2615: am_lf='
2616: '
2617: case `pwd` in
2618: *[\\\"\#\$\&\'\`$am_lf]*)
2619: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2620: esac
2621: case $srcdir in
2622: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.30 moko 2623: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.22 moko 2624: esac
2625:
1.30 moko 2626: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 misha 2627: # arguments. Must try -L first in case configure is actually a
2628: # symlink; some systems play weird games with the mod time of symlinks
2629: # (eg FreeBSD returns the mod time of the symlink's containing
2630: # directory).
2631: if (
1.30 moko 2632: am_has_slept=no
2633: for am_try in 1 2; do
2634: echo "timestamp, slept: $am_has_slept" > conftest.file
2635: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2636: if test "$*" = "X"; then
2637: # -L didn't work.
2638: set X `ls -t "$srcdir/configure" conftest.file`
2639: fi
2640: if test "$*" != "X $srcdir/configure conftest.file" \
2641: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 misha 2642:
1.30 moko 2643: # If neither matched, then we have a broken ls. This can happen
2644: # if, for instance, CONFIG_SHELL is bash and it inherits a
2645: # broken ls alias from the environment. This has actually
2646: # happened. Such a system could not be considered "sane".
2647: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2648: alias in your environment" "$LINENO" 5
2649: fi
2650: if test "$2" = conftest.file || test $am_try -eq 2; then
2651: break
2652: fi
2653: # Just in case.
2654: sleep 1
2655: am_has_slept=yes
2656: done
1.1 misha 2657: test "$2" = conftest.file
2658: )
2659: then
2660: # Ok.
2661: :
2662: else
1.22 moko 2663: as_fn_error $? "newly created file is older than distributed files!
2664: Check your system clock" "$LINENO" 5
1.1 misha 2665: fi
1.22 moko 2666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2667: $as_echo "yes" >&6; }
1.30 moko 2668: # If we didn't sleep, we still need to ensure time stamps of config.status and
2669: # generated files are strictly newer.
2670: am_sleep_pid=
2671: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2672: ( sleep 1 ) &
2673: am_sleep_pid=$!
2674: fi
2675:
2676: rm -f conftest.file
2677:
1.1 misha 2678: test "$program_prefix" != NONE &&
1.22 moko 2679: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 misha 2680: # Use a double $ so make ignores it.
2681: test "$program_suffix" != NONE &&
1.22 moko 2682: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2683: # Double any \ or $.
1.1 misha 2684: # By default was `s,x,x', remove it if useless.
1.22 moko 2685: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2686: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.1 misha 2687:
1.30 moko 2688: # Expand $ac_aux_dir to an absolute path.
2689: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.1 misha 2690:
1.22 moko 2691: if test x"${MISSING+set}" != xset; then
2692: case $am_aux_dir in
2693: *\ * | *\ *)
2694: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2695: *)
2696: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2697: esac
2698: fi
1.1 misha 2699: # Use eval to expand $SHELL
1.30 moko 2700: if eval "$MISSING --is-lightweight"; then
2701: am_missing_run="$MISSING "
1.1 misha 2702: else
2703: am_missing_run=
1.30 moko 2704: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2705: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.1 misha 2706: fi
2707:
1.30 moko 2708: if test x"${install_sh+set}" != xset; then
1.22 moko 2709: case $am_aux_dir in
2710: *\ * | *\ *)
2711: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2712: *)
2713: install_sh="\${SHELL} $am_aux_dir/install-sh"
2714: esac
2715: fi
2716:
1.30 moko 2717: # Installed binaries are usually stripped using 'strip' when the user
2718: # run "make install-strip". However 'strip' might not be the right
1.22 moko 2719: # tool to use in cross-compilation environments, therefore Automake
1.30 moko 2720: # will honor the 'STRIP' environment variable to overrule this program.
1.22 moko 2721: if test "$cross_compiling" != no; then
2722: if test -n "$ac_tool_prefix"; then
2723: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2724: set dummy ${ac_tool_prefix}strip; ac_word=$2
2725: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726: $as_echo_n "checking for $ac_word... " >&6; }
2727: if ${ac_cv_prog_STRIP+:} false; then :
2728: $as_echo_n "(cached) " >&6
2729: else
2730: if test -n "$STRIP"; then
2731: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2732: else
2733: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734: for as_dir in $PATH
2735: do
2736: IFS=$as_save_IFS
2737: test -z "$as_dir" && as_dir=.
2738: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 2739: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.22 moko 2740: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2741: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742: break 2
2743: fi
2744: done
2745: done
2746: IFS=$as_save_IFS
2747:
2748: fi
2749: fi
2750: STRIP=$ac_cv_prog_STRIP
2751: if test -n "$STRIP"; then
2752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2753: $as_echo "$STRIP" >&6; }
2754: else
2755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756: $as_echo "no" >&6; }
2757: fi
2758:
2759:
2760: fi
2761: if test -z "$ac_cv_prog_STRIP"; then
2762: ac_ct_STRIP=$STRIP
2763: # Extract the first word of "strip", so it can be a program name with args.
2764: set dummy strip; ac_word=$2
2765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766: $as_echo_n "checking for $ac_word... " >&6; }
2767: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2768: $as_echo_n "(cached) " >&6
2769: else
2770: if test -n "$ac_ct_STRIP"; then
2771: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2772: else
2773: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774: for as_dir in $PATH
2775: do
2776: IFS=$as_save_IFS
2777: test -z "$as_dir" && as_dir=.
2778: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 2779: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.22 moko 2780: ac_cv_prog_ac_ct_STRIP="strip"
2781: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782: break 2
2783: fi
2784: done
2785: done
2786: IFS=$as_save_IFS
2787:
2788: fi
2789: fi
2790: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2791: if test -n "$ac_ct_STRIP"; then
2792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2793: $as_echo "$ac_ct_STRIP" >&6; }
2794: else
2795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796: $as_echo "no" >&6; }
2797: fi
2798:
2799: if test "x$ac_ct_STRIP" = x; then
2800: STRIP=":"
2801: else
2802: case $cross_compiling:$ac_tool_warned in
2803: yes:)
2804: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2805: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2806: ac_tool_warned=yes ;;
2807: esac
2808: STRIP=$ac_ct_STRIP
2809: fi
2810: else
2811: STRIP="$ac_cv_prog_STRIP"
2812: fi
2813:
2814: fi
2815: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2816:
2817: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2818: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2819: if test -z "$MKDIR_P"; then
2820: if ${ac_cv_path_mkdir+:} false; then :
2821: $as_echo_n "(cached) " >&6
2822: else
2823: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2825: do
2826: IFS=$as_save_IFS
2827: test -z "$as_dir" && as_dir=.
2828: for ac_prog in mkdir gmkdir; do
2829: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 2830: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.22 moko 2831: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2832: 'mkdir (GNU coreutils) '* | \
2833: 'mkdir (coreutils) '* | \
2834: 'mkdir (fileutils) '4.1*)
2835: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2836: break 3;;
2837: esac
2838: done
2839: done
1.1 misha 2840: done
1.22 moko 2841: IFS=$as_save_IFS
2842:
2843: fi
2844:
2845: test -d ./--version && rmdir ./--version
2846: if test "${ac_cv_path_mkdir+set}" = set; then
2847: MKDIR_P="$ac_cv_path_mkdir -p"
1.1 misha 2848: else
1.22 moko 2849: # As a last resort, use the slow shell script. Don't cache a
2850: # value for MKDIR_P within a source directory, because that will
2851: # break other packages using the cache if that directory is
2852: # removed, or if the value is a relative name.
2853: MKDIR_P="$ac_install_sh -d"
1.1 misha 2854: fi
2855: fi
1.22 moko 2856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2857: $as_echo "$MKDIR_P" >&6; }
2858:
1.1 misha 2859: for ac_prog in gawk mawk nawk awk
2860: do
2861: # Extract the first word of "$ac_prog", so it can be a program name with args.
2862: set dummy $ac_prog; ac_word=$2
1.22 moko 2863: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864: $as_echo_n "checking for $ac_word... " >&6; }
2865: if ${ac_cv_prog_AWK+:} false; then :
2866: $as_echo_n "(cached) " >&6
1.1 misha 2867: else
2868: if test -n "$AWK"; then
2869: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2870: else
2871: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872: for as_dir in $PATH
2873: do
2874: IFS=$as_save_IFS
2875: test -z "$as_dir" && as_dir=.
1.22 moko 2876: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 2877: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2878: ac_cv_prog_AWK="$ac_prog"
1.22 moko 2879: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2880: break 2
2881: fi
2882: done
1.22 moko 2883: done
2884: IFS=$as_save_IFS
1.1 misha 2885:
2886: fi
2887: fi
2888: AWK=$ac_cv_prog_AWK
2889: if test -n "$AWK"; then
1.22 moko 2890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2891: $as_echo "$AWK" >&6; }
1.1 misha 2892: else
1.22 moko 2893: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894: $as_echo "no" >&6; }
1.1 misha 2895: fi
2896:
1.22 moko 2897:
1.1 misha 2898: test -n "$AWK" && break
2899: done
2900:
1.22 moko 2901: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2902: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2903: set x ${MAKE-make}
2904: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2905: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2906: $as_echo_n "(cached) " >&6
1.1 misha 2907: else
2908: cat >conftest.make <<\_ACEOF
1.22 moko 2909: SHELL = /bin/sh
1.1 misha 2910: all:
1.22 moko 2911: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.1 misha 2912: _ACEOF
1.22 moko 2913: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2914: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2915: *@@@%%%=?*=@@@%%%*)
2916: eval ac_cv_prog_make_${ac_make}_set=yes;;
2917: *)
2918: eval ac_cv_prog_make_${ac_make}_set=no;;
2919: esac
1.1 misha 2920: rm -f conftest.make
2921: fi
1.22 moko 2922: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2924: $as_echo "yes" >&6; }
1.1 misha 2925: SET_MAKE=
2926: else
1.22 moko 2927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928: $as_echo "no" >&6; }
1.1 misha 2929: SET_MAKE="MAKE=${MAKE-make}"
2930: fi
2931:
2932: rm -rf .tst 2>/dev/null
2933: mkdir .tst 2>/dev/null
2934: if test -d .tst; then
2935: am__leading_dot=.
2936: else
2937: am__leading_dot=_
2938: fi
2939: rmdir .tst 2>/dev/null
2940:
1.30 moko 2941: # Check whether --enable-silent-rules was given.
2942: if test "${enable_silent_rules+set}" = set; then :
2943: enableval=$enable_silent_rules;
2944: fi
2945:
2946: case $enable_silent_rules in # (((
2947: yes) AM_DEFAULT_VERBOSITY=0;;
2948: no) AM_DEFAULT_VERBOSITY=1;;
2949: *) AM_DEFAULT_VERBOSITY=1;;
2950: esac
2951: am_make=${MAKE-make}
2952: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2953: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2954: if ${am_cv_make_support_nested_variables+:} false; then :
2955: $as_echo_n "(cached) " >&6
2956: else
2957: if $as_echo 'TRUE=$(BAR$(V))
2958: BAR0=false
2959: BAR1=true
2960: V=1
2961: am__doit:
2962: @$(TRUE)
2963: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2964: am_cv_make_support_nested_variables=yes
2965: else
2966: am_cv_make_support_nested_variables=no
2967: fi
2968: fi
2969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2970: $as_echo "$am_cv_make_support_nested_variables" >&6; }
2971: if test $am_cv_make_support_nested_variables = yes; then
2972: AM_V='$(V)'
2973: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2974: else
2975: AM_V=$AM_DEFAULT_VERBOSITY
2976: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2977: fi
2978: AM_BACKSLASH='\'
2979:
1.22 moko 2980: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2981: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2982: # is not polluted with repeated "-I."
2983: am__isrc=' -I$(srcdir)'
2984: # test to see if srcdir already configured
2985: if test -f $srcdir/config.status; then
2986: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2987: fi
1.1 misha 2988: fi
2989:
2990: # test whether we have cygpath
2991: if test -z "$CYGPATH_W"; then
2992: if (cygpath --version) >/dev/null 2>/dev/null; then
2993: CYGPATH_W='cygpath -w'
2994: else
2995: CYGPATH_W=echo
2996: fi
2997: fi
2998:
2999:
3000: # Define the identity of the package.
1.25 moko 3001: PACKAGE='parser3sqlite'
1.31 ! moko 3002: VERSION='10.5'
1.1 misha 3003:
3004:
1.13 moko 3005: cat >>confdefs.h <<_ACEOF
3006: #define PACKAGE "$PACKAGE"
3007: _ACEOF
3008:
3009:
3010: cat >>confdefs.h <<_ACEOF
3011: #define VERSION "$VERSION"
3012: _ACEOF
3013:
1.1 misha 3014: # Some tools Automake needs.
3015:
3016: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3017:
3018:
3019: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3020:
3021:
3022: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3023:
3024:
3025: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3026:
3027:
3028: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3029:
1.30 moko 3030: # For better backward compatibility. To be removed once Automake 1.9.x
3031: # dies out for good. For more background, see:
3032: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3033: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3034: mkdir_p='$(MKDIR_P)'
3035:
3036: # We need awk for the "check" target (and possibly the TAP driver). The
3037: # system "awk" is bad on some platforms.
3038: # Always define AMTAR for backward compatibility. Yes, it's still used
3039: # in the wild :-( We should find a proper way to deprecate it ...
3040: AMTAR='$${TAR-tar}'
3041:
1.1 misha 3042:
1.30 moko 3043: # We'll loop over all known methods to create a tar archive until one works.
3044: _am_tools='gnutar pax cpio none'
1.1 misha 3045:
1.30 moko 3046: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
1.1 misha 3047:
3048:
3049:
3050:
3051:
3052:
1.30 moko 3053: # POSIX will say in a future version that running "rm -f" with no argument
3054: # is OK; and we want to be able to make that assumption in our Makefile
3055: # recipes. So use an aggressive probe to check that the usage we want is
3056: # actually supported "in the wild" to an acceptable degree.
3057: # See automake bug#10828.
3058: # To make any issue more visible, cause the running configure to be aborted
3059: # by default if the 'rm' program in use doesn't match our expectations; the
3060: # user can still override this though.
3061: if rm -f && rm -fr && rm -rf; then : OK; else
3062: cat >&2 <<'END'
3063: Oops!
3064:
3065: Your 'rm' program seems unable to run without file operands specified
3066: on the command line, even when the '-f' option is present. This is contrary
3067: to the behaviour of most rm programs out there, and not conforming with
3068: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3069:
3070: Please tell bug-automake@gnu.org about your system, including the value
3071: of your $PATH and any error possibly output before this message. This
3072: can help us improve future automake versions.
3073:
3074: END
3075: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3076: echo 'Configuration will proceed anyway, since you have set the' >&2
3077: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3078: echo >&2
3079: else
3080: cat >&2 <<'END'
3081: Aborting the configuration process, to ensure you take notice of the issue.
3082:
3083: You can download and install GNU coreutils to get an 'rm' implementation
3084: that behaves properly: <https://www.gnu.org/software/coreutils/>.
3085:
3086: If you want to complete the configuration process using your problematic
3087: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3088: to "yes", and re-run configure.
3089:
3090: END
3091: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3092: fi
3093: fi
3094:
3095:
1.1 misha 3096:
3097:
3098:
1.22 moko 3099: # Check whether --with-sqlite-inc was given.
3100: if test "${with_sqlite_inc+set}" = set; then :
3101: withval=$with_sqlite_inc;
1.1 misha 3102: if test -r "$withval/sqlite3.h"; then
3103: SQLITE_INC=$withval
3104: fi
3105:
3106:
1.4 misha 3107: if test -z "$SQLITE_INC"; then
1.22 moko 3108: as_fn_error $? "$SQLITE_INC does not seem to be valid SQLite includes directory" "$LINENO" 5
1.4 misha 3109: fi
1.1 misha 3110:
3111: else
1.22 moko 3112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE_INC directory" >&5
3113: $as_echo_n "checking for SQLITE_INC directory... " >&6; }
1.1 misha 3114: for d in \
1.9 moko 3115: /usr/local/include \
3116: /usr/include \
1.1 misha 3117: /usr/local/include/sqlite \
3118: /usr/include/sqlite ; do
3119:
3120: if test -r "$d/sqlite3.h"; then
3121: SQLITE_INC=$d
3122: fi
3123:
3124: done
3125:
1.4 misha 3126: if test -z "$SQLITE_INC"; then
1.22 moko 3127: as_fn_error $? "use --with-sqlite-inc=DIR to specify SQLite includes directory" "$LINENO" 5
1.4 misha 3128: fi
1.1 misha 3129:
1.22 moko 3130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE_INC" >&5
3131: $as_echo "$SQLITE_INC" >&6; }
1.1 misha 3132:
1.22 moko 3133: fi
1.11 moko 3134:
3135:
1.6 misha 3136:
3137:
3138:
1.22 moko 3139: ac_ext=cpp
1.1 misha 3140: ac_cpp='$CXXCPP $CPPFLAGS'
3141: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.22 moko 3144: if test -z "$CXX"; then
3145: if test -n "$CCC"; then
3146: CXX=$CCC
3147: else
3148: if test -n "$ac_tool_prefix"; then
3149: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1 misha 3150: do
3151: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3152: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.22 moko 3153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154: $as_echo_n "checking for $ac_word... " >&6; }
3155: if ${ac_cv_prog_CXX+:} false; then :
3156: $as_echo_n "(cached) " >&6
1.1 misha 3157: else
3158: if test -n "$CXX"; then
3159: ac_cv_prog_CXX="$CXX" # Let the user override the test.
3160: else
3161: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162: for as_dir in $PATH
3163: do
3164: IFS=$as_save_IFS
3165: test -z "$as_dir" && as_dir=.
1.22 moko 3166: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 3167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 3168: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.22 moko 3169: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3170: break 2
3171: fi
3172: done
1.22 moko 3173: done
3174: IFS=$as_save_IFS
1.1 misha 3175:
3176: fi
3177: fi
3178: CXX=$ac_cv_prog_CXX
3179: if test -n "$CXX"; then
1.22 moko 3180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3181: $as_echo "$CXX" >&6; }
1.1 misha 3182: else
1.22 moko 3183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184: $as_echo "no" >&6; }
1.1 misha 3185: fi
3186:
1.22 moko 3187:
1.1 misha 3188: test -n "$CXX" && break
3189: done
3190: fi
3191: if test -z "$CXX"; then
3192: ac_ct_CXX=$CXX
1.22 moko 3193: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1 misha 3194: do
3195: # Extract the first word of "$ac_prog", so it can be a program name with args.
3196: set dummy $ac_prog; ac_word=$2
1.22 moko 3197: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198: $as_echo_n "checking for $ac_word... " >&6; }
3199: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3200: $as_echo_n "(cached) " >&6
1.1 misha 3201: else
3202: if test -n "$ac_ct_CXX"; then
3203: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3204: else
3205: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206: for as_dir in $PATH
3207: do
3208: IFS=$as_save_IFS
3209: test -z "$as_dir" && as_dir=.
1.22 moko 3210: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 3211: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 3212: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.22 moko 3213: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3214: break 2
3215: fi
3216: done
1.22 moko 3217: done
3218: IFS=$as_save_IFS
1.1 misha 3219:
3220: fi
3221: fi
3222: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3223: if test -n "$ac_ct_CXX"; then
1.22 moko 3224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3225: $as_echo "$ac_ct_CXX" >&6; }
1.1 misha 3226: else
1.22 moko 3227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228: $as_echo "no" >&6; }
1.1 misha 3229: fi
3230:
1.22 moko 3231:
1.1 misha 3232: test -n "$ac_ct_CXX" && break
3233: done
3234:
1.22 moko 3235: if test "x$ac_ct_CXX" = x; then
3236: CXX="g++"
3237: else
3238: case $cross_compiling:$ac_tool_warned in
3239: yes:)
3240: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242: ac_tool_warned=yes ;;
3243: esac
3244: CXX=$ac_ct_CXX
3245: fi
1.1 misha 3246: fi
3247:
1.22 moko 3248: fi
3249: fi
1.1 misha 3250: # Provide some information about the compiler.
1.22 moko 3251: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3252: set X $ac_compile
3253: ac_compiler=$2
3254: for ac_option in --version -v -V -qversion; do
3255: { { ac_try="$ac_compiler $ac_option >&5"
3256: case "(($ac_try" in
3257: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258: *) ac_try_echo=$ac_try;;
3259: esac
3260: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261: $as_echo "$ac_try_echo"; } >&5
3262: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.11 moko 3263: ac_status=$?
1.22 moko 3264: if test -s conftest.err; then
3265: sed '10a\
3266: ... rest of stderr output deleted ...
3267: 10q' conftest.err >conftest.er1
3268: cat conftest.er1 >&5
3269: fi
3270: rm -f conftest.er1 conftest.err
3271: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272: test $ac_status = 0; }
3273: done
1.1 misha 3274:
1.22 moko 3275: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3276: /* end confdefs.h. */
3277:
3278: int
3279: main ()
3280: {
3281:
3282: ;
3283: return 0;
3284: }
3285: _ACEOF
3286: ac_clean_files_save=$ac_clean_files
1.22 moko 3287: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.1 misha 3288: # Try to create an executable without -o first, disregard a.out.
3289: # It will help us diagnose broken compilers, and finding out an intuition
3290: # of exeext.
1.22 moko 3291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3292: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3293: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3294:
3295: # The possible output files:
3296: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3297:
3298: ac_rmfiles=
3299: for ac_file in $ac_files
3300: do
3301: case $ac_file in
3302: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3303: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3304: esac
3305: done
3306: rm -f $ac_rmfiles
3307:
3308: if { { ac_try="$ac_link_default"
3309: case "(($ac_try" in
3310: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311: *) ac_try_echo=$ac_try;;
3312: esac
3313: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314: $as_echo "$ac_try_echo"; } >&5
3315: (eval "$ac_link_default") 2>&5
3316: ac_status=$?
3317: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318: test $ac_status = 0; }; then :
3319: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3320: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3321: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3322: # so that the user can short-circuit this test for compilers unknown to
3323: # Autoconf.
3324: for ac_file in $ac_files ''
1.1 misha 3325: do
3326: test -f "$ac_file" || continue
3327: case $ac_file in
1.22 moko 3328: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.1 misha 3329: ;;
3330: [ab].out )
3331: # We found the default executable, but exeext='' is most
3332: # certainly right.
3333: break;;
3334: *.* )
1.22 moko 3335: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3336: then :; else
3337: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338: fi
3339: # We set ac_cv_exeext here because the later test for it is not
3340: # safe: cross compilers may not add the suffix if given an `-o'
3341: # argument, so we may need to know it at that point already.
3342: # Even if this section looks crufty: it has the advantage of
3343: # actually working.
1.1 misha 3344: break;;
3345: * )
3346: break;;
3347: esac
3348: done
1.22 moko 3349: test "$ac_cv_exeext" = no && ac_cv_exeext=
3350:
1.11 moko 3351: else
1.22 moko 3352: ac_file=''
3353: fi
3354: if test -z "$ac_file"; then :
3355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356: $as_echo "no" >&6; }
3357: $as_echo "$as_me: failed program was:" >&5
1.11 moko 3358: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 3359:
1.22 moko 3360: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362: as_fn_error 77 "C++ compiler cannot create executables
3363: See \`config.log' for more details" "$LINENO" 5; }
3364: else
3365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366: $as_echo "yes" >&6; }
3367: fi
3368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3369: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3371: $as_echo "$ac_file" >&6; }
1.1 misha 3372: ac_exeext=$ac_cv_exeext
1.11 moko 3373:
1.22 moko 3374: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.1 misha 3375: ac_clean_files=$ac_clean_files_save
1.22 moko 3376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3377: $as_echo_n "checking for suffix of executables... " >&6; }
3378: if { { ac_try="$ac_link"
3379: case "(($ac_try" in
3380: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381: *) ac_try_echo=$ac_try;;
3382: esac
3383: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384: $as_echo "$ac_try_echo"; } >&5
3385: (eval "$ac_link") 2>&5
1.1 misha 3386: ac_status=$?
1.22 moko 3387: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388: test $ac_status = 0; }; then :
1.1 misha 3389: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3390: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3391: # work properly (i.e., refer to `conftest.exe'), while it won't with
3392: # `rm'.
3393: for ac_file in conftest.exe conftest conftest.*; do
3394: test -f "$ac_file" || continue
3395: case $ac_file in
1.22 moko 3396: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.1 misha 3397: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398: break;;
3399: * ) break;;
3400: esac
3401: done
3402: else
1.22 moko 3403: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3406: See \`config.log' for more details" "$LINENO" 5; }
3407: fi
3408: rm -f conftest conftest$ac_cv_exeext
3409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3410: $as_echo "$ac_cv_exeext" >&6; }
1.1 misha 3411:
3412: rm -f conftest.$ac_ext
3413: EXEEXT=$ac_cv_exeext
3414: ac_exeext=$EXEEXT
1.22 moko 3415: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416: /* end confdefs.h. */
3417: #include <stdio.h>
3418: int
3419: main ()
3420: {
3421: FILE *f = fopen ("conftest.out", "w");
3422: return ferror (f) || fclose (f) != 0;
3423:
3424: ;
3425: return 0;
3426: }
3427: _ACEOF
3428: ac_clean_files="$ac_clean_files conftest.out"
3429: # Check that the compiler produces executables we can run. If not, either
3430: # the compiler is broken, or we cross compile.
3431: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3432: $as_echo_n "checking whether we are cross compiling... " >&6; }
3433: if test "$cross_compiling" != yes; then
3434: { { ac_try="$ac_link"
3435: case "(($ac_try" in
3436: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437: *) ac_try_echo=$ac_try;;
3438: esac
3439: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440: $as_echo "$ac_try_echo"; } >&5
3441: (eval "$ac_link") 2>&5
3442: ac_status=$?
3443: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444: test $ac_status = 0; }
3445: if { ac_try='./conftest$ac_cv_exeext'
3446: { { case "(($ac_try" in
3447: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448: *) ac_try_echo=$ac_try;;
3449: esac
3450: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451: $as_echo "$ac_try_echo"; } >&5
3452: (eval "$ac_try") 2>&5
3453: ac_status=$?
3454: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455: test $ac_status = 0; }; }; then
3456: cross_compiling=no
3457: else
3458: if test "$cross_compiling" = maybe; then
3459: cross_compiling=yes
3460: else
3461: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463: as_fn_error $? "cannot run C++ compiled programs.
3464: If you meant to cross compile, use \`--host'.
3465: See \`config.log' for more details" "$LINENO" 5; }
3466: fi
3467: fi
3468: fi
3469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3470: $as_echo "$cross_compiling" >&6; }
3471:
3472: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3473: ac_clean_files=$ac_clean_files_save
3474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3475: $as_echo_n "checking for suffix of object files... " >&6; }
3476: if ${ac_cv_objext+:} false; then :
3477: $as_echo_n "(cached) " >&6
1.11 moko 3478: else
1.22 moko 3479: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3480: /* end confdefs.h. */
3481:
3482: int
3483: main ()
3484: {
3485:
3486: ;
3487: return 0;
3488: }
3489: _ACEOF
3490: rm -f conftest.o conftest.obj
1.22 moko 3491: if { { ac_try="$ac_compile"
3492: case "(($ac_try" in
3493: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494: *) ac_try_echo=$ac_try;;
3495: esac
3496: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497: $as_echo "$ac_try_echo"; } >&5
3498: (eval "$ac_compile") 2>&5
3499: ac_status=$?
3500: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501: test $ac_status = 0; }; then :
3502: for ac_file in conftest.o conftest.obj conftest.*; do
3503: test -f "$ac_file" || continue;
1.1 misha 3504: case $ac_file in
1.22 moko 3505: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.1 misha 3506: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3507: break;;
3508: esac
3509: done
3510: else
1.22 moko 3511: $as_echo "$as_me: failed program was:" >&5
1.1 misha 3512: sed 's/^/| /' conftest.$ac_ext >&5
3513:
1.22 moko 3514: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516: as_fn_error $? "cannot compute suffix of object files: cannot compile
3517: See \`config.log' for more details" "$LINENO" 5; }
1.1 misha 3518: fi
3519: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3520: fi
1.22 moko 3521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3522: $as_echo "$ac_cv_objext" >&6; }
1.1 misha 3523: OBJEXT=$ac_cv_objext
3524: ac_objext=$OBJEXT
1.22 moko 3525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3526: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3527: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3528: $as_echo_n "(cached) " >&6
1.1 misha 3529: else
1.22 moko 3530: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3531: /* end confdefs.h. */
3532:
3533: int
3534: main ()
3535: {
3536: #ifndef __GNUC__
3537: choke me
3538: #endif
3539:
3540: ;
3541: return 0;
3542: }
3543: _ACEOF
1.22 moko 3544: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 misha 3545: ac_compiler_gnu=yes
3546: else
1.22 moko 3547: ac_compiler_gnu=no
1.1 misha 3548: fi
1.22 moko 3549: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3550: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3551:
3552: fi
1.22 moko 3553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3554: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3555: if test $ac_compiler_gnu = yes; then
3556: GXX=yes
3557: else
3558: GXX=
3559: fi
1.1 misha 3560: ac_test_CXXFLAGS=${CXXFLAGS+set}
3561: ac_save_CXXFLAGS=$CXXFLAGS
1.22 moko 3562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3563: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3564: if ${ac_cv_prog_cxx_g+:} false; then :
3565: $as_echo_n "(cached) " >&6
3566: else
3567: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3568: ac_cxx_werror_flag=yes
3569: ac_cv_prog_cxx_g=no
3570: CXXFLAGS="-g"
3571: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3572: /* end confdefs.h. */
3573:
3574: int
3575: main ()
3576: {
3577:
3578: ;
3579: return 0;
3580: }
3581: _ACEOF
1.22 moko 3582: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 misha 3583: ac_cv_prog_cxx_g=yes
3584: else
1.22 moko 3585: CXXFLAGS=""
3586: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587: /* end confdefs.h. */
1.11 moko 3588:
1.1 misha 3589: int
3590: main ()
3591: {
1.22 moko 3592:
1.1 misha 3593: ;
3594: return 0;
3595: }
3596: _ACEOF
1.22 moko 3597: if ac_fn_cxx_try_compile "$LINENO"; then :
3598:
1.11 moko 3599: else
1.22 moko 3600: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3601: CXXFLAGS="-g"
3602: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 moko 3603: /* end confdefs.h. */
1.22 moko 3604:
1.1 misha 3605: int
3606: main ()
3607: {
1.22 moko 3608:
1.1 misha 3609: ;
3610: return 0;
3611: }
3612: _ACEOF
1.22 moko 3613: if ac_fn_cxx_try_compile "$LINENO"; then :
3614: ac_cv_prog_cxx_g=yes
3615: fi
3616: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617: fi
3618: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619: fi
3620: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3622: fi
3623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3624: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3625: if test "$ac_test_CXXFLAGS" = set; then
3626: CXXFLAGS=$ac_save_CXXFLAGS
3627: elif test $ac_cv_prog_cxx_g = yes; then
3628: if test "$GXX" = yes; then
3629: CXXFLAGS="-g -O2"
3630: else
3631: CXXFLAGS="-g"
3632: fi
1.11 moko 3633: else
1.22 moko 3634: if test "$GXX" = yes; then
3635: CXXFLAGS="-O2"
3636: else
3637: CXXFLAGS=
3638: fi
1.10 moko 3639: fi
1.1 misha 3640: ac_ext=c
3641: ac_cpp='$CPP $CPPFLAGS'
3642: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645: DEPDIR="${am__leading_dot}deps"
3646:
1.22 moko 3647: ac_config_commands="$ac_config_commands depfiles"
1.1 misha 3648:
1.30 moko 3649: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3650: $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3651: cat > confinc.mk << 'END'
1.1 misha 3652: am__doit:
1.30 moko 3653: @echo this is the am__doit target >confinc.out
1.1 misha 3654: .PHONY: am__doit
3655: END
3656: am__include="#"
3657: am__quote=
1.30 moko 3658: # BSD make does it like this.
3659: echo '.include "confinc.mk" # ignored' > confmf.BSD
3660: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3661: echo 'include confinc.mk # ignored' > confmf.GNU
3662: _am_result=no
3663: for s in GNU BSD; do
3664: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3665: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3666: ac_status=$?
3667: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668: (exit $ac_status); }
3669: case $?:`cat confinc.out 2>/dev/null` in #(
3670: '0:this is the am__doit target') :
3671: case $s in #(
3672: BSD) :
3673: am__include='.include' am__quote='"' ;; #(
3674: *) :
3675: am__include='include' am__quote='' ;;
3676: esac ;; #(
3677: *) :
1.22 moko 3678: ;;
1.30 moko 3679: esac
3680: if test "$am__include" != "#"; then
3681: _am_result="yes ($s style)"
3682: break
3683: fi
3684: done
3685: rm -f confinc.* confmf.*
3686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3687: $as_echo "${_am_result}" >&6; }
1.1 misha 3688:
1.22 moko 3689: # Check whether --enable-dependency-tracking was given.
3690: if test "${enable_dependency_tracking+set}" = set; then :
3691: enableval=$enable_dependency_tracking;
3692: fi
1.1 misha 3693:
3694: if test "x$enable_dependency_tracking" != xno; then
3695: am_depcomp="$ac_aux_dir/depcomp"
3696: AMDEPBACKSLASH='\'
1.30 moko 3697: am__nodep='_no'
1.1 misha 3698: fi
1.22 moko 3699: if test "x$enable_dependency_tracking" != xno; then
1.1 misha 3700: AMDEP_TRUE=
3701: AMDEP_FALSE='#'
3702: else
3703: AMDEP_TRUE='#'
3704: AMDEP_FALSE=
3705: fi
3706:
3707:
3708:
3709: depcc="$CXX" am_compiler_list=
3710:
1.22 moko 3711: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3712: $as_echo_n "checking dependency style of $depcc... " >&6; }
3713: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3714: $as_echo_n "(cached) " >&6
1.1 misha 3715: else
3716: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3717: # We make a subdir and do the tests there. Otherwise we can end up
3718: # making bogus files that we don't know about and never remove. For
3719: # instance it was reported that on HP-UX the gcc test will end up
1.30 moko 3720: # making a dummy file named 'D' -- because '-MD' means "put the output
3721: # in D".
3722: rm -rf conftest.dir
1.1 misha 3723: mkdir conftest.dir
3724: # Copy depcomp to subdir because otherwise we won't find it if we're
3725: # using a relative directory.
3726: cp "$am_depcomp" conftest.dir
3727: cd conftest.dir
3728: # We will build objects and dependencies in a subdirectory because
3729: # it helps to detect inapplicable dependency modes. For instance
3730: # both Tru64's cc and ICC support -MD to output dependencies as a
3731: # side effect of compilation, but ICC will put the dependencies in
3732: # the current directory while Tru64 will put them in the object
3733: # directory.
3734: mkdir sub
3735:
3736: am_cv_CXX_dependencies_compiler_type=none
3737: if test "$am_compiler_list" = ""; then
3738: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3739: fi
1.22 moko 3740: am__universal=false
3741: case " $depcc " in #(
3742: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3743: esac
3744:
1.1 misha 3745: for depmode in $am_compiler_list; do
3746: # Setup a source with many dependencies, because some compilers
3747: # like to wrap large dependency lists on column 80 (with \), and
3748: # we should not choose a depcomp mode which is confused by this.
3749: #
3750: # We need to recreate these files for each test, as the compiler may
3751: # overwrite some of them when testing with obscure command lines.
3752: # This happens at least with the AIX C compiler.
3753: : > sub/conftest.c
3754: for i in 1 2 3 4 5 6; do
3755: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.30 moko 3756: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3757: # Solaris 10 /bin/sh.
3758: echo '/* dummy */' > sub/conftst$i.h
1.1 misha 3759: done
3760: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3761:
1.30 moko 3762: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.22 moko 3763: # mode. It turns out that the SunPro C++ compiler does not properly
1.30 moko 3764: # handle '-M -o', and we need to detect this. Also, some Intel
3765: # versions had trouble with output in subdirs.
1.22 moko 3766: am__obj=sub/conftest.${OBJEXT-o}
3767: am__minus_obj="-o $am__obj"
1.1 misha 3768: case $depmode in
1.22 moko 3769: gcc)
3770: # This depmode causes a compiler race in universal mode.
3771: test "$am__universal" = false || continue
3772: ;;
1.1 misha 3773: nosideeffect)
1.30 moko 3774: # After this tag, mechanisms are not by side-effect, so they'll
3775: # only be used when explicitly requested.
1.1 misha 3776: if test "x$enable_dependency_tracking" = xyes; then
3777: continue
3778: else
3779: break
3780: fi
3781: ;;
1.30 moko 3782: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3783: # This compiler won't grok '-c -o', but also, the minuso test has
1.22 moko 3784: # not run yet. These depmodes are late enough in the game, and
3785: # so weak that their functioning should not be impacted.
3786: am__obj=conftest.${OBJEXT-o}
3787: am__minus_obj=
3788: ;;
1.1 misha 3789: none) break ;;
3790: esac
3791: if depmode=$depmode \
1.22 moko 3792: source=sub/conftest.c object=$am__obj \
1.1 misha 3793: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.22 moko 3794: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.1 misha 3795: >/dev/null 2>conftest.err &&
1.22 moko 3796: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.1 misha 3797: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.22 moko 3798: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.1 misha 3799: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3800: # icc doesn't choke on unknown options, it will just issue warnings
3801: # or remarks (even with -Werror). So we grep stderr for any message
3802: # that says an option was ignored or not supported.
3803: # When given -MP, icc 7.0 and 7.1 complain thusly:
3804: # icc: Command line warning: ignoring option '-M'; no argument required
3805: # The diagnosis changed in icc 8.0:
3806: # icc: Command line remark: option '-MP' not supported
3807: if (grep 'ignoring option' conftest.err ||
3808: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3809: am_cv_CXX_dependencies_compiler_type=$depmode
3810: break
3811: fi
3812: fi
3813: done
3814:
3815: cd ..
3816: rm -rf conftest.dir
3817: else
3818: am_cv_CXX_dependencies_compiler_type=none
3819: fi
3820:
3821: fi
1.22 moko 3822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3823: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.1 misha 3824: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3825:
1.22 moko 3826: if
1.1 misha 3827: test "x$enable_dependency_tracking" != xno \
3828: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3829: am__fastdepCXX_TRUE=
3830: am__fastdepCXX_FALSE='#'
3831: else
3832: am__fastdepCXX_TRUE='#'
3833: am__fastdepCXX_FALSE=
3834: fi
3835:
3836:
3837: ac_ext=c
3838: ac_cpp='$CPP $CPPFLAGS'
3839: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842: if test -n "$ac_tool_prefix"; then
3843: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3844: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.22 moko 3845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846: $as_echo_n "checking for $ac_word... " >&6; }
3847: if ${ac_cv_prog_CC+:} false; then :
3848: $as_echo_n "(cached) " >&6
1.1 misha 3849: else
3850: if test -n "$CC"; then
3851: ac_cv_prog_CC="$CC" # Let the user override the test.
3852: else
3853: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854: for as_dir in $PATH
3855: do
3856: IFS=$as_save_IFS
3857: test -z "$as_dir" && as_dir=.
1.22 moko 3858: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 3859: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 3860: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.22 moko 3861: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3862: break 2
3863: fi
3864: done
1.22 moko 3865: done
3866: IFS=$as_save_IFS
1.1 misha 3867:
3868: fi
3869: fi
3870: CC=$ac_cv_prog_CC
3871: if test -n "$CC"; then
1.22 moko 3872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873: $as_echo "$CC" >&6; }
1.1 misha 3874: else
1.22 moko 3875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876: $as_echo "no" >&6; }
1.1 misha 3877: fi
3878:
1.22 moko 3879:
1.1 misha 3880: fi
3881: if test -z "$ac_cv_prog_CC"; then
3882: ac_ct_CC=$CC
3883: # Extract the first word of "gcc", so it can be a program name with args.
3884: set dummy gcc; ac_word=$2
1.22 moko 3885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886: $as_echo_n "checking for $ac_word... " >&6; }
3887: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3888: $as_echo_n "(cached) " >&6
1.1 misha 3889: else
3890: if test -n "$ac_ct_CC"; then
3891: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3892: else
3893: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894: for as_dir in $PATH
3895: do
3896: IFS=$as_save_IFS
3897: test -z "$as_dir" && as_dir=.
1.22 moko 3898: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 3899: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 3900: ac_cv_prog_ac_ct_CC="gcc"
1.22 moko 3901: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3902: break 2
3903: fi
3904: done
1.22 moko 3905: done
3906: IFS=$as_save_IFS
1.1 misha 3907:
3908: fi
3909: fi
3910: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3911: if test -n "$ac_ct_CC"; then
1.22 moko 3912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3913: $as_echo "$ac_ct_CC" >&6; }
1.1 misha 3914: else
1.22 moko 3915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916: $as_echo "no" >&6; }
1.1 misha 3917: fi
3918:
1.22 moko 3919: if test "x$ac_ct_CC" = x; then
3920: CC=""
3921: else
3922: case $cross_compiling:$ac_tool_warned in
3923: yes:)
3924: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926: ac_tool_warned=yes ;;
3927: esac
3928: CC=$ac_ct_CC
3929: fi
1.1 misha 3930: else
3931: CC="$ac_cv_prog_CC"
3932: fi
3933:
3934: if test -z "$CC"; then
1.22 moko 3935: if test -n "$ac_tool_prefix"; then
3936: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 misha 3937: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.22 moko 3938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939: $as_echo_n "checking for $ac_word... " >&6; }
3940: if ${ac_cv_prog_CC+:} false; then :
3941: $as_echo_n "(cached) " >&6
1.1 misha 3942: else
3943: if test -n "$CC"; then
3944: ac_cv_prog_CC="$CC" # Let the user override the test.
3945: else
3946: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947: for as_dir in $PATH
3948: do
3949: IFS=$as_save_IFS
3950: test -z "$as_dir" && as_dir=.
1.22 moko 3951: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 3952: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 3953: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.22 moko 3954: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3955: break 2
3956: fi
3957: done
1.22 moko 3958: done
3959: IFS=$as_save_IFS
1.1 misha 3960:
3961: fi
3962: fi
3963: CC=$ac_cv_prog_CC
3964: if test -n "$CC"; then
1.22 moko 3965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3966: $as_echo "$CC" >&6; }
1.11 moko 3967: else
1.22 moko 3968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969: $as_echo "no" >&6; }
1.11 moko 3970: fi
3971:
1.22 moko 3972:
1.11 moko 3973: fi
1.1 misha 3974: fi
3975: if test -z "$CC"; then
3976: # Extract the first word of "cc", so it can be a program name with args.
3977: set dummy cc; ac_word=$2
1.22 moko 3978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979: $as_echo_n "checking for $ac_word... " >&6; }
3980: if ${ac_cv_prog_CC+:} false; then :
3981: $as_echo_n "(cached) " >&6
1.1 misha 3982: else
3983: if test -n "$CC"; then
3984: ac_cv_prog_CC="$CC" # Let the user override the test.
3985: else
3986: ac_prog_rejected=no
3987: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988: for as_dir in $PATH
3989: do
3990: IFS=$as_save_IFS
3991: test -z "$as_dir" && as_dir=.
1.22 moko 3992: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 3993: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 3994: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3995: ac_prog_rejected=yes
3996: continue
3997: fi
3998: ac_cv_prog_CC="cc"
1.22 moko 3999: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 4000: break 2
4001: fi
4002: done
1.22 moko 4003: done
4004: IFS=$as_save_IFS
1.1 misha 4005:
4006: if test $ac_prog_rejected = yes; then
4007: # We found a bogon in the path, so make sure we never use it.
4008: set dummy $ac_cv_prog_CC
4009: shift
4010: if test $# != 0; then
4011: # We chose a different compiler from the bogus one.
4012: # However, it has the same basename, so the bogon will be chosen
4013: # first if we set CC to just the basename; use the full file name.
4014: shift
4015: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4016: fi
4017: fi
4018: fi
4019: fi
4020: CC=$ac_cv_prog_CC
4021: if test -n "$CC"; then
1.22 moko 4022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023: $as_echo "$CC" >&6; }
1.1 misha 4024: else
1.22 moko 4025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026: $as_echo "no" >&6; }
1.1 misha 4027: fi
4028:
1.22 moko 4029:
1.1 misha 4030: fi
4031: if test -z "$CC"; then
4032: if test -n "$ac_tool_prefix"; then
1.22 moko 4033: for ac_prog in cl.exe
1.1 misha 4034: do
4035: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4036: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.22 moko 4037: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038: $as_echo_n "checking for $ac_word... " >&6; }
4039: if ${ac_cv_prog_CC+:} false; then :
4040: $as_echo_n "(cached) " >&6
1.1 misha 4041: else
4042: if test -n "$CC"; then
4043: ac_cv_prog_CC="$CC" # Let the user override the test.
4044: else
4045: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046: for as_dir in $PATH
4047: do
4048: IFS=$as_save_IFS
4049: test -z "$as_dir" && as_dir=.
1.22 moko 4050: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 4051: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 4052: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.22 moko 4053: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 4054: break 2
4055: fi
4056: done
1.22 moko 4057: done
4058: IFS=$as_save_IFS
1.1 misha 4059:
4060: fi
4061: fi
4062: CC=$ac_cv_prog_CC
4063: if test -n "$CC"; then
1.22 moko 4064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065: $as_echo "$CC" >&6; }
1.1 misha 4066: else
1.22 moko 4067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068: $as_echo "no" >&6; }
1.1 misha 4069: fi
4070:
1.22 moko 4071:
1.1 misha 4072: test -n "$CC" && break
4073: done
4074: fi
4075: if test -z "$CC"; then
4076: ac_ct_CC=$CC
1.22 moko 4077: for ac_prog in cl.exe
1.1 misha 4078: do
4079: # Extract the first word of "$ac_prog", so it can be a program name with args.
4080: set dummy $ac_prog; ac_word=$2
1.22 moko 4081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082: $as_echo_n "checking for $ac_word... " >&6; }
4083: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4084: $as_echo_n "(cached) " >&6
1.1 misha 4085: else
4086: if test -n "$ac_ct_CC"; then
4087: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4088: else
4089: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090: for as_dir in $PATH
4091: do
4092: IFS=$as_save_IFS
4093: test -z "$as_dir" && as_dir=.
1.22 moko 4094: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 4095: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 4096: ac_cv_prog_ac_ct_CC="$ac_prog"
1.22 moko 4097: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 4098: break 2
4099: fi
4100: done
1.22 moko 4101: done
4102: IFS=$as_save_IFS
1.1 misha 4103:
4104: fi
4105: fi
4106: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4107: if test -n "$ac_ct_CC"; then
1.22 moko 4108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4109: $as_echo "$ac_ct_CC" >&6; }
1.1 misha 4110: else
1.22 moko 4111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112: $as_echo "no" >&6; }
1.1 misha 4113: fi
4114:
1.22 moko 4115:
1.1 misha 4116: test -n "$ac_ct_CC" && break
4117: done
4118:
1.22 moko 4119: if test "x$ac_ct_CC" = x; then
4120: CC=""
4121: else
4122: case $cross_compiling:$ac_tool_warned in
4123: yes:)
4124: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4125: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4126: ac_tool_warned=yes ;;
4127: esac
4128: CC=$ac_ct_CC
4129: fi
1.1 misha 4130: fi
4131:
4132: fi
4133:
4134:
1.22 moko 4135: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137: as_fn_error $? "no acceptable C compiler found in \$PATH
4138: See \`config.log' for more details" "$LINENO" 5; }
1.1 misha 4139:
4140: # Provide some information about the compiler.
1.22 moko 4141: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4142: set X $ac_compile
4143: ac_compiler=$2
4144: for ac_option in --version -v -V -qversion; do
4145: { { ac_try="$ac_compiler $ac_option >&5"
4146: case "(($ac_try" in
4147: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148: *) ac_try_echo=$ac_try;;
4149: esac
4150: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151: $as_echo "$ac_try_echo"; } >&5
4152: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.11 moko 4153: ac_status=$?
1.22 moko 4154: if test -s conftest.err; then
4155: sed '10a\
4156: ... rest of stderr output deleted ...
4157: 10q' conftest.err >conftest.er1
4158: cat conftest.er1 >&5
4159: fi
4160: rm -f conftest.er1 conftest.err
4161: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162: test $ac_status = 0; }
4163: done
4164:
4165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4166: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4167: if ${ac_cv_c_compiler_gnu+:} false; then :
4168: $as_echo_n "(cached) " >&6
1.1 misha 4169: else
1.22 moko 4170: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 4171: /* end confdefs.h. */
4172:
4173: int
4174: main ()
4175: {
4176: #ifndef __GNUC__
4177: choke me
4178: #endif
4179:
4180: ;
4181: return 0;
4182: }
4183: _ACEOF
1.22 moko 4184: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misha 4185: ac_compiler_gnu=yes
4186: else
1.22 moko 4187: ac_compiler_gnu=no
1.1 misha 4188: fi
1.22 moko 4189: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 4190: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4191:
4192: fi
1.22 moko 4193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4194: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4195: if test $ac_compiler_gnu = yes; then
4196: GCC=yes
4197: else
4198: GCC=
4199: fi
1.1 misha 4200: ac_test_CFLAGS=${CFLAGS+set}
4201: ac_save_CFLAGS=$CFLAGS
1.22 moko 4202: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4203: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4204: if ${ac_cv_prog_cc_g+:} false; then :
4205: $as_echo_n "(cached) " >&6
4206: else
4207: ac_save_c_werror_flag=$ac_c_werror_flag
4208: ac_c_werror_flag=yes
4209: ac_cv_prog_cc_g=no
4210: CFLAGS="-g"
4211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212: /* end confdefs.h. */
4213:
4214: int
4215: main ()
4216: {
4217:
4218: ;
4219: return 0;
4220: }
4221: _ACEOF
4222: if ac_fn_c_try_compile "$LINENO"; then :
4223: ac_cv_prog_cc_g=yes
1.11 moko 4224: else
1.22 moko 4225: CFLAGS=""
4226: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227: /* end confdefs.h. */
4228:
4229: int
4230: main ()
4231: {
4232:
4233: ;
4234: return 0;
4235: }
1.11 moko 4236: _ACEOF
1.22 moko 4237: if ac_fn_c_try_compile "$LINENO"; then :
4238:
4239: else
4240: ac_c_werror_flag=$ac_save_c_werror_flag
4241: CFLAGS="-g"
4242: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 moko 4243: /* end confdefs.h. */
4244:
4245: int
4246: main ()
4247: {
4248:
4249: ;
4250: return 0;
4251: }
4252: _ACEOF
1.22 moko 4253: if ac_fn_c_try_compile "$LINENO"; then :
1.10 moko 4254: ac_cv_prog_cc_g=yes
4255: fi
1.22 moko 4256: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257: fi
4258: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259: fi
4260: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 misha 4262: fi
1.22 moko 4263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4264: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 misha 4265: if test "$ac_test_CFLAGS" = set; then
4266: CFLAGS=$ac_save_CFLAGS
4267: elif test $ac_cv_prog_cc_g = yes; then
4268: if test "$GCC" = yes; then
4269: CFLAGS="-g -O2"
4270: else
4271: CFLAGS="-g"
4272: fi
4273: else
4274: if test "$GCC" = yes; then
4275: CFLAGS="-O2"
4276: else
4277: CFLAGS=
4278: fi
4279: fi
1.22 moko 4280: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4281: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4282: if ${ac_cv_prog_cc_c89+:} false; then :
4283: $as_echo_n "(cached) " >&6
1.1 misha 4284: else
1.22 moko 4285: ac_cv_prog_cc_c89=no
1.1 misha 4286: ac_save_CC=$CC
1.22 moko 4287: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 4288: /* end confdefs.h. */
4289: #include <stdarg.h>
4290: #include <stdio.h>
1.25 moko 4291: struct stat;
1.1 misha 4292: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4293: struct buf { int x; };
4294: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4295: static char *e (p, i)
4296: char **p;
4297: int i;
4298: {
4299: return p[i];
4300: }
4301: static char *f (char * (*g) (char **, int), char **p, ...)
4302: {
4303: char *s;
4304: va_list v;
4305: va_start (v,p);
4306: s = g (p, va_arg (v,int));
4307: va_end (v);
4308: return s;
4309: }
4310:
4311: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4312: function prototypes and stuff, but not '\xHH' hex character constants.
4313: These don't provoke an error unfortunately, instead are silently treated
1.22 moko 4314: as 'x'. The following induces an error, until -std is added to get
1.1 misha 4315: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4316: array size at least. It's necessary to write '\x00'==0 to get something
1.22 moko 4317: that's true only with -std. */
1.1 misha 4318: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4319:
1.22 moko 4320: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4321: inside strings and character constants. */
4322: #define FOO(x) 'x'
4323: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4324:
1.1 misha 4325: int test (int i, double x);
4326: struct s1 {int (*f) (int a);};
4327: struct s2 {int (*f) (double a);};
4328: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4329: int argc;
4330: char **argv;
4331: int
4332: main ()
4333: {
4334: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4335: ;
4336: return 0;
4337: }
4338: _ACEOF
1.22 moko 4339: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4340: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 misha 4341: do
4342: CC="$ac_save_CC $ac_arg"
1.22 moko 4343: if ac_fn_c_try_compile "$LINENO"; then :
4344: ac_cv_prog_cc_c89=$ac_arg
1.1 misha 4345: fi
1.22 moko 4346: rm -f core conftest.err conftest.$ac_objext
4347: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1 misha 4348: done
1.22 moko 4349: rm -f conftest.$ac_ext
1.1 misha 4350: CC=$ac_save_CC
4351:
4352: fi
1.22 moko 4353: # AC_CACHE_VAL
4354: case "x$ac_cv_prog_cc_c89" in
4355: x)
4356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4357: $as_echo "none needed" >&6; } ;;
4358: xno)
4359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4360: $as_echo "unsupported" >&6; } ;;
1.1 misha 4361: *)
1.22 moko 4362: CC="$CC $ac_cv_prog_cc_c89"
4363: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4364: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1 misha 4365: esac
1.22 moko 4366: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.1 misha 4367:
4368: fi
4369:
4370: ac_ext=c
4371: ac_cpp='$CPP $CPPFLAGS'
4372: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375:
1.30 moko 4376: ac_ext=c
4377: ac_cpp='$CPP $CPPFLAGS'
4378: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4382: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4383: if ${am_cv_prog_cc_c_o+:} false; then :
4384: $as_echo_n "(cached) " >&6
4385: else
4386: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387: /* end confdefs.h. */
4388:
4389: int
4390: main ()
4391: {
4392:
4393: ;
4394: return 0;
4395: }
4396: _ACEOF
4397: # Make sure it works both with $CC and with simple cc.
4398: # Following AC_PROG_CC_C_O, we do the test twice because some
4399: # compilers refuse to overwrite an existing .o file with -o,
4400: # though they will create one.
4401: am_cv_prog_cc_c_o=yes
4402: for am_i in 1 2; do
4403: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4404: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4405: ac_status=$?
4406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407: (exit $ac_status); } \
4408: && test -f conftest2.$ac_objext; then
4409: : OK
4410: else
4411: am_cv_prog_cc_c_o=no
4412: break
4413: fi
4414: done
4415: rm -f core conftest*
4416: unset am_i
4417: fi
4418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4419: $as_echo "$am_cv_prog_cc_c_o" >&6; }
4420: if test "$am_cv_prog_cc_c_o" != yes; then
4421: # Losing compiler, so override with the script.
4422: # FIXME: It is wrong to rewrite CC.
4423: # But if we don't then we get into trouble of one sort or another.
4424: # A longer-term fix would be to have automake use am__CC in this case,
4425: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4426: CC="$am_aux_dir/compile $CC"
4427: fi
4428: ac_ext=c
4429: ac_cpp='$CPP $CPPFLAGS'
4430: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433:
4434:
1.1 misha 4435: depcc="$CC" am_compiler_list=
4436:
1.22 moko 4437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4438: $as_echo_n "checking dependency style of $depcc... " >&6; }
4439: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4440: $as_echo_n "(cached) " >&6
1.1 misha 4441: else
4442: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4443: # We make a subdir and do the tests there. Otherwise we can end up
4444: # making bogus files that we don't know about and never remove. For
4445: # instance it was reported that on HP-UX the gcc test will end up
1.30 moko 4446: # making a dummy file named 'D' -- because '-MD' means "put the output
4447: # in D".
4448: rm -rf conftest.dir
1.1 misha 4449: mkdir conftest.dir
4450: # Copy depcomp to subdir because otherwise we won't find it if we're
4451: # using a relative directory.
4452: cp "$am_depcomp" conftest.dir
4453: cd conftest.dir
4454: # We will build objects and dependencies in a subdirectory because
4455: # it helps to detect inapplicable dependency modes. For instance
4456: # both Tru64's cc and ICC support -MD to output dependencies as a
4457: # side effect of compilation, but ICC will put the dependencies in
4458: # the current directory while Tru64 will put them in the object
4459: # directory.
4460: mkdir sub
4461:
4462: am_cv_CC_dependencies_compiler_type=none
4463: if test "$am_compiler_list" = ""; then
4464: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4465: fi
1.22 moko 4466: am__universal=false
4467: case " $depcc " in #(
4468: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4469: esac
4470:
1.1 misha 4471: for depmode in $am_compiler_list; do
4472: # Setup a source with many dependencies, because some compilers
4473: # like to wrap large dependency lists on column 80 (with \), and
4474: # we should not choose a depcomp mode which is confused by this.
4475: #
4476: # We need to recreate these files for each test, as the compiler may
4477: # overwrite some of them when testing with obscure command lines.
4478: # This happens at least with the AIX C compiler.
4479: : > sub/conftest.c
4480: for i in 1 2 3 4 5 6; do
4481: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.30 moko 4482: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4483: # Solaris 10 /bin/sh.
4484: echo '/* dummy */' > sub/conftst$i.h
1.1 misha 4485: done
4486: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4487:
1.30 moko 4488: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.22 moko 4489: # mode. It turns out that the SunPro C++ compiler does not properly
1.30 moko 4490: # handle '-M -o', and we need to detect this. Also, some Intel
4491: # versions had trouble with output in subdirs.
1.22 moko 4492: am__obj=sub/conftest.${OBJEXT-o}
4493: am__minus_obj="-o $am__obj"
1.1 misha 4494: case $depmode in
1.22 moko 4495: gcc)
4496: # This depmode causes a compiler race in universal mode.
4497: test "$am__universal" = false || continue
4498: ;;
1.1 misha 4499: nosideeffect)
1.30 moko 4500: # After this tag, mechanisms are not by side-effect, so they'll
4501: # only be used when explicitly requested.
1.1 misha 4502: if test "x$enable_dependency_tracking" = xyes; then
4503: continue
4504: else
4505: break
4506: fi
4507: ;;
1.30 moko 4508: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4509: # This compiler won't grok '-c -o', but also, the minuso test has
1.22 moko 4510: # not run yet. These depmodes are late enough in the game, and
4511: # so weak that their functioning should not be impacted.
4512: am__obj=conftest.${OBJEXT-o}
4513: am__minus_obj=
4514: ;;
1.1 misha 4515: none) break ;;
4516: esac
4517: if depmode=$depmode \
1.22 moko 4518: source=sub/conftest.c object=$am__obj \
1.1 misha 4519: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.22 moko 4520: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.1 misha 4521: >/dev/null 2>conftest.err &&
1.22 moko 4522: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.1 misha 4523: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.22 moko 4524: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.1 misha 4525: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4526: # icc doesn't choke on unknown options, it will just issue warnings
4527: # or remarks (even with -Werror). So we grep stderr for any message
4528: # that says an option was ignored or not supported.
4529: # When given -MP, icc 7.0 and 7.1 complain thusly:
4530: # icc: Command line warning: ignoring option '-M'; no argument required
4531: # The diagnosis changed in icc 8.0:
4532: # icc: Command line remark: option '-MP' not supported
4533: if (grep 'ignoring option' conftest.err ||
4534: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4535: am_cv_CC_dependencies_compiler_type=$depmode
4536: break
4537: fi
4538: fi
4539: done
4540:
4541: cd ..
4542: rm -rf conftest.dir
4543: else
4544: am_cv_CC_dependencies_compiler_type=none
4545: fi
4546:
4547: fi
1.22 moko 4548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4549: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.1 misha 4550: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4551:
1.22 moko 4552: if
1.1 misha 4553: test "x$enable_dependency_tracking" != xno \
4554: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4555: am__fastdepCC_TRUE=
4556: am__fastdepCC_FALSE='#'
4557: else
4558: am__fastdepCC_TRUE='#'
4559: am__fastdepCC_FALSE=
4560: fi
4561:
4562:
4563:
1.8 moko 4564:
1.13 moko 4565:
4566:
4567:
4568:
4569:
4570:
1.8 moko 4571: case `pwd` in
4572: *\ * | *\ *)
1.22 moko 4573: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4574: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.8 moko 4575: esac
4576:
4577:
4578:
4579: macro_version='2.4.2'
4580: macro_revision='1.3337'
4581:
4582:
4583:
4584:
4585:
4586:
4587:
1.1 misha 4588:
4589:
4590:
4591:
4592:
4593:
1.8 moko 4594: ltmain="$ac_aux_dir/ltmain.sh"
1.1 misha 4595:
4596: # Make sure we can run config.sub.
1.22 moko 4597: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4598: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.1 misha 4599:
1.22 moko 4600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4601: $as_echo_n "checking build system type... " >&6; }
4602: if ${ac_cv_build+:} false; then :
4603: $as_echo_n "(cached) " >&6
4604: else
4605: ac_build_alias=$build_alias
4606: test "x$ac_build_alias" = x &&
4607: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4608: test "x$ac_build_alias" = x &&
4609: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4610: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4611: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4612:
4613: fi
4614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4615: $as_echo "$ac_cv_build" >&6; }
4616: case $ac_cv_build in
4617: *-*-*) ;;
4618: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4619: esac
4620: build=$ac_cv_build
4621: ac_save_IFS=$IFS; IFS='-'
4622: set x $ac_cv_build
4623: shift
4624: build_cpu=$1
4625: build_vendor=$2
4626: shift; shift
4627: # Remember, the first character of IFS is used to create $*,
4628: # except with old shells:
4629: build_os=$*
4630: IFS=$ac_save_IFS
4631: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4632:
4633:
4634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4635: $as_echo_n "checking host system type... " >&6; }
4636: if ${ac_cv_host+:} false; then :
4637: $as_echo_n "(cached) " >&6
4638: else
4639: if test "x$host_alias" = x; then
4640: ac_cv_host=$ac_cv_build
4641: else
4642: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4643: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.11 moko 4644: fi
1.1 misha 4645:
4646: fi
1.22 moko 4647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4648: $as_echo "$ac_cv_host" >&6; }
4649: case $ac_cv_host in
4650: *-*-*) ;;
4651: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4652: esac
1.1 misha 4653: host=$ac_cv_host
1.22 moko 4654: ac_save_IFS=$IFS; IFS='-'
4655: set x $ac_cv_host
4656: shift
4657: host_cpu=$1
4658: host_vendor=$2
4659: shift; shift
4660: # Remember, the first character of IFS is used to create $*,
4661: # except with old shells:
4662: host_os=$*
4663: IFS=$ac_save_IFS
4664: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1 misha 4665:
4666:
1.8 moko 4667: # Backslashify metacharacters that are still active within
4668: # double-quoted strings.
4669: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4670:
4671: # Same as above, but do not quote variable references.
4672: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4673:
4674: # Sed substitution to delay expansion of an escaped shell variable in a
4675: # double_quote_subst'ed string.
4676: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4677:
4678: # Sed substitution to delay expansion of an escaped single quote.
4679: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.1 misha 4680:
1.8 moko 4681: # Sed substitution to avoid accidental globbing in evaled expressions
4682: no_glob_subst='s/\*/\\\*/g'
1.1 misha 4683:
1.8 moko 4684: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4685: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4686: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4687:
1.22 moko 4688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4689: $as_echo_n "checking how to print strings... " >&6; }
1.8 moko 4690: # Test print first, because it will be a builtin if present.
4691: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4692: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4693: ECHO='print -r --'
4694: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4695: ECHO='printf %s\n'
1.1 misha 4696: else
1.8 moko 4697: # Use this function as a fallback that always works.
4698: func_fallback_echo ()
4699: {
4700: eval 'cat <<_LTECHO_EOF
4701: $1
4702: _LTECHO_EOF'
4703: }
4704: ECHO='func_fallback_echo'
1.1 misha 4705: fi
1.8 moko 4706:
4707: # func_echo_all arg...
4708: # Invoke $ECHO with all args, space-separated.
4709: func_echo_all ()
4710: {
4711: $ECHO ""
4712: }
4713:
4714: case "$ECHO" in
1.22 moko 4715: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4716: $as_echo "printf" >&6; } ;;
4717: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4718: $as_echo "print -r" >&6; } ;;
4719: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4720: $as_echo "cat" >&6; } ;;
1.8 moko 4721: esac
4722:
4723:
4724:
4725:
4726:
4727:
4728:
4729:
4730:
4731:
4732:
4733:
4734:
4735:
1.22 moko 4736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4737: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4738: if ${ac_cv_path_SED+:} false; then :
4739: $as_echo_n "(cached) " >&6
4740: else
4741: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4742: for ac_i in 1 2 3 4 5 6 7; do
4743: ac_script="$ac_script$as_nl$ac_script"
4744: done
4745: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4746: { ac_script=; unset ac_script;}
4747: if test -z "$SED"; then
4748: ac_path_SED_found=false
4749: # Loop through the user's path and test for each of PROGNAME-LIST
4750: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8 moko 4751: for as_dir in $PATH
4752: do
4753: IFS=$as_save_IFS
4754: test -z "$as_dir" && as_dir=.
1.22 moko 4755: for ac_prog in sed gsed; do
1.8 moko 4756: for ac_exec_ext in '' $ac_executable_extensions; do
1.22 moko 4757: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.25 moko 4758: as_fn_executable_p "$ac_path_SED" || continue
1.22 moko 4759: # Check for GNU ac_path_SED and select it if it is found.
4760: # Check for GNU $ac_path_SED
4761: case `"$ac_path_SED" --version 2>&1` in
4762: *GNU*)
4763: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4764: *)
4765: ac_count=0
4766: $as_echo_n 0123456789 >"conftest.in"
4767: while :
4768: do
4769: cat "conftest.in" "conftest.in" >"conftest.tmp"
4770: mv "conftest.tmp" "conftest.in"
4771: cp "conftest.in" "conftest.nl"
4772: $as_echo '' >> "conftest.nl"
4773: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4774: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4775: as_fn_arith $ac_count + 1 && ac_count=$as_val
4776: if test $ac_count -gt ${ac_path_SED_max-0}; then
4777: # Best one so far, save it but keep looking for a better one
4778: ac_cv_path_SED="$ac_path_SED"
4779: ac_path_SED_max=$ac_count
4780: fi
4781: # 10*(2^10) chars as input seems more than enough
4782: test $ac_count -gt 10 && break
4783: done
4784: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4785: esac
4786:
4787: $ac_path_SED_found && break 3
1.8 moko 4788: done
4789: done
1.22 moko 4790: done
1.8 moko 4791: IFS=$as_save_IFS
1.22 moko 4792: if test -z "$ac_cv_path_SED"; then
4793: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4794: fi
4795: else
4796: ac_cv_path_SED=$SED
4797: fi
1.11 moko 4798:
1.10 moko 4799: fi
1.22 moko 4800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4801: $as_echo "$ac_cv_path_SED" >&6; }
4802: SED="$ac_cv_path_SED"
4803: rm -f conftest.sed
1.8 moko 4804:
4805: test -z "$SED" && SED=sed
4806: Xsed="$SED -e 1s/^X//"
4807:
4808:
4809:
4810:
4811:
4812:
4813:
4814:
4815:
4816:
4817:
1.22 moko 4818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4819: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4820: if ${ac_cv_path_GREP+:} false; then :
4821: $as_echo_n "(cached) " >&6
4822: else
4823: if test -z "$GREP"; then
4824: ac_path_GREP_found=false
4825: # Loop through the user's path and test for each of PROGNAME-LIST
4826: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4828: do
4829: IFS=$as_save_IFS
4830: test -z "$as_dir" && as_dir=.
4831: for ac_prog in grep ggrep; do
4832: for ac_exec_ext in '' $ac_executable_extensions; do
4833: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.25 moko 4834: as_fn_executable_p "$ac_path_GREP" || continue
1.22 moko 4835: # Check for GNU ac_path_GREP and select it if it is found.
4836: # Check for GNU $ac_path_GREP
4837: case `"$ac_path_GREP" --version 2>&1` in
4838: *GNU*)
4839: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4840: *)
4841: ac_count=0
4842: $as_echo_n 0123456789 >"conftest.in"
4843: while :
4844: do
4845: cat "conftest.in" "conftest.in" >"conftest.tmp"
4846: mv "conftest.tmp" "conftest.in"
4847: cp "conftest.in" "conftest.nl"
4848: $as_echo 'GREP' >> "conftest.nl"
4849: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4850: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4851: as_fn_arith $ac_count + 1 && ac_count=$as_val
4852: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4853: # Best one so far, save it but keep looking for a better one
4854: ac_cv_path_GREP="$ac_path_GREP"
4855: ac_path_GREP_max=$ac_count
1.8 moko 4856: fi
1.22 moko 4857: # 10*(2^10) chars as input seems more than enough
4858: test $ac_count -gt 10 && break
4859: done
4860: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4861: esac
4862:
4863: $ac_path_GREP_found && break 3
4864: done
4865: done
4866: done
4867: IFS=$as_save_IFS
4868: if test -z "$ac_cv_path_GREP"; then
4869: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4870: fi
4871: else
4872: ac_cv_path_GREP=$GREP
4873: fi
4874:
1.8 moko 4875: fi
1.22 moko 4876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4877: $as_echo "$ac_cv_path_GREP" >&6; }
4878: GREP="$ac_cv_path_GREP"
4879:
4880:
4881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4882: $as_echo_n "checking for egrep... " >&6; }
4883: if ${ac_cv_path_EGREP+:} false; then :
4884: $as_echo_n "(cached) " >&6
4885: else
4886: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4887: then ac_cv_path_EGREP="$GREP -E"
4888: else
4889: if test -z "$EGREP"; then
4890: ac_path_EGREP_found=false
4891: # Loop through the user's path and test for each of PROGNAME-LIST
4892: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4894: do
4895: IFS=$as_save_IFS
4896: test -z "$as_dir" && as_dir=.
4897: for ac_prog in egrep; do
4898: for ac_exec_ext in '' $ac_executable_extensions; do
4899: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.25 moko 4900: as_fn_executable_p "$ac_path_EGREP" || continue
1.22 moko 4901: # Check for GNU ac_path_EGREP and select it if it is found.
4902: # Check for GNU $ac_path_EGREP
4903: case `"$ac_path_EGREP" --version 2>&1` in
4904: *GNU*)
4905: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4906: *)
4907: ac_count=0
4908: $as_echo_n 0123456789 >"conftest.in"
4909: while :
4910: do
4911: cat "conftest.in" "conftest.in" >"conftest.tmp"
4912: mv "conftest.tmp" "conftest.in"
4913: cp "conftest.in" "conftest.nl"
4914: $as_echo 'EGREP' >> "conftest.nl"
4915: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4916: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4917: as_fn_arith $ac_count + 1 && ac_count=$as_val
4918: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4919: # Best one so far, save it but keep looking for a better one
4920: ac_cv_path_EGREP="$ac_path_EGREP"
4921: ac_path_EGREP_max=$ac_count
4922: fi
4923: # 10*(2^10) chars as input seems more than enough
4924: test $ac_count -gt 10 && break
4925: done
4926: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4927: esac
1.8 moko 4928:
1.22 moko 4929: $ac_path_EGREP_found && break 3
4930: done
4931: done
4932: done
4933: IFS=$as_save_IFS
4934: if test -z "$ac_cv_path_EGREP"; then
4935: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4936: fi
4937: else
4938: ac_cv_path_EGREP=$EGREP
4939: fi
1.8 moko 4940:
1.22 moko 4941: fi
4942: fi
4943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4944: $as_echo "$ac_cv_path_EGREP" >&6; }
4945: EGREP="$ac_cv_path_EGREP"
4946:
4947:
4948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4949: $as_echo_n "checking for fgrep... " >&6; }
4950: if ${ac_cv_path_FGREP+:} false; then :
4951: $as_echo_n "(cached) " >&6
4952: else
4953: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4954: then ac_cv_path_FGREP="$GREP -F"
4955: else
4956: if test -z "$FGREP"; then
4957: ac_path_FGREP_found=false
4958: # Loop through the user's path and test for each of PROGNAME-LIST
4959: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4961: do
4962: IFS=$as_save_IFS
4963: test -z "$as_dir" && as_dir=.
4964: for ac_prog in fgrep; do
4965: for ac_exec_ext in '' $ac_executable_extensions; do
4966: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.25 moko 4967: as_fn_executable_p "$ac_path_FGREP" || continue
1.22 moko 4968: # Check for GNU ac_path_FGREP and select it if it is found.
4969: # Check for GNU $ac_path_FGREP
4970: case `"$ac_path_FGREP" --version 2>&1` in
4971: *GNU*)
4972: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4973: *)
4974: ac_count=0
4975: $as_echo_n 0123456789 >"conftest.in"
4976: while :
4977: do
4978: cat "conftest.in" "conftest.in" >"conftest.tmp"
4979: mv "conftest.tmp" "conftest.in"
4980: cp "conftest.in" "conftest.nl"
4981: $as_echo 'FGREP' >> "conftest.nl"
4982: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4983: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4984: as_fn_arith $ac_count + 1 && ac_count=$as_val
4985: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4986: # Best one so far, save it but keep looking for a better one
4987: ac_cv_path_FGREP="$ac_path_FGREP"
4988: ac_path_FGREP_max=$ac_count
1.8 moko 4989: fi
1.22 moko 4990: # 10*(2^10) chars as input seems more than enough
4991: test $ac_count -gt 10 && break
4992: done
4993: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4994: esac
4995:
4996: $ac_path_FGREP_found && break 3
4997: done
4998: done
4999: done
5000: IFS=$as_save_IFS
5001: if test -z "$ac_cv_path_FGREP"; then
5002: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5003: fi
5004: else
5005: ac_cv_path_FGREP=$FGREP
5006: fi
5007:
5008: fi
1.8 moko 5009: fi
1.22 moko 5010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5011: $as_echo "$ac_cv_path_FGREP" >&6; }
5012: FGREP="$ac_cv_path_FGREP"
1.8 moko 5013:
5014:
5015: test -z "$GREP" && GREP=grep
5016:
5017:
5018:
5019:
5020:
5021:
5022:
5023:
5024:
5025:
5026:
5027:
5028:
5029:
5030:
5031:
5032:
5033:
5034:
1.22 moko 5035: # Check whether --with-gnu-ld was given.
5036: if test "${with_gnu_ld+set}" = set; then :
5037: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.8 moko 5038: else
5039: with_gnu_ld=no
1.22 moko 5040: fi
5041:
1.8 moko 5042: ac_prog=ld
5043: if test "$GCC" = yes; then
5044: # Check if gcc -print-prog-name=ld gives a path.
1.22 moko 5045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5046: $as_echo_n "checking for ld used by $CC... " >&6; }
1.8 moko 5047: case $host in
5048: *-*-mingw*)
5049: # gcc leaves a trailing carriage return which upsets mingw
5050: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5051: *)
5052: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5053: esac
5054: case $ac_prog in
5055: # Accept absolute paths.
5056: [\\/]* | ?:[\\/]*)
5057: re_direlt='/[^/][^/]*/\.\./'
5058: # Canonicalize the pathname of ld
5059: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5060: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5061: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5062: done
5063: test -z "$LD" && LD="$ac_prog"
5064: ;;
5065: "")
5066: # If it fails, then pretend we aren't using GCC.
5067: ac_prog=ld
5068: ;;
5069: *)
5070: # If it is relative, then search for the first ld in PATH.
5071: with_gnu_ld=unknown
5072: ;;
5073: esac
5074: elif test "$with_gnu_ld" = yes; then
1.22 moko 5075: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5076: $as_echo_n "checking for GNU ld... " >&6; }
1.8 moko 5077: else
1.22 moko 5078: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5079: $as_echo_n "checking for non-GNU ld... " >&6; }
1.8 moko 5080: fi
1.22 moko 5081: if ${lt_cv_path_LD+:} false; then :
5082: $as_echo_n "(cached) " >&6
1.1 misha 5083: else
5084: if test -z "$LD"; then
1.8 moko 5085: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 misha 5086: for ac_dir in $PATH; do
1.8 moko 5087: IFS="$lt_save_ifs"
1.1 misha 5088: test -z "$ac_dir" && ac_dir=.
5089: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5090: lt_cv_path_LD="$ac_dir/$ac_prog"
5091: # Check to see if the program is GNU ld. I'd rather use --version,
1.8 moko 5092: # but apparently some variants of GNU ld only accept -v.
1.1 misha 5093: # Break only if it was the GNU/non-GNU ld that we prefer.
1.8 moko 5094: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5095: *GNU* | *'with BFD'*)
1.1 misha 5096: test "$with_gnu_ld" != no && break
1.8 moko 5097: ;;
5098: *)
1.1 misha 5099: test "$with_gnu_ld" != yes && break
1.8 moko 5100: ;;
5101: esac
1.1 misha 5102: fi
5103: done
1.8 moko 5104: IFS="$lt_save_ifs"
1.1 misha 5105: else
5106: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5107: fi
5108: fi
5109:
5110: LD="$lt_cv_path_LD"
5111: if test -n "$LD"; then
1.22 moko 5112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5113: $as_echo "$LD" >&6; }
1.1 misha 5114: else
1.22 moko 5115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116: $as_echo "no" >&6; }
1.1 misha 5117: fi
1.22 moko 5118: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5119: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5120: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5121: if ${lt_cv_prog_gnu_ld+:} false; then :
5122: $as_echo_n "(cached) " >&6
1.1 misha 5123: else
1.8 moko 5124: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5125: case `$LD -v 2>&1 </dev/null` in
5126: *GNU* | *'with BFD'*)
1.1 misha 5127: lt_cv_prog_gnu_ld=yes
1.8 moko 5128: ;;
5129: *)
1.1 misha 5130: lt_cv_prog_gnu_ld=no
1.8 moko 5131: ;;
5132: esac
1.1 misha 5133: fi
1.22 moko 5134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5135: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.1 misha 5136: with_gnu_ld=$lt_cv_prog_gnu_ld
5137:
5138:
5139:
1.8 moko 5140:
5141:
5142:
5143:
5144:
5145:
1.22 moko 5146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5147: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5148: if ${lt_cv_path_NM+:} false; then :
5149: $as_echo_n "(cached) " >&6
1.1 misha 5150: else
5151: if test -n "$NM"; then
5152: # Let the user override the test.
5153: lt_cv_path_NM="$NM"
5154: else
1.8 moko 5155: lt_nm_to_check="${ac_tool_prefix}nm"
5156: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5157: lt_nm_to_check="$lt_nm_to_check nm"
5158: fi
5159: for lt_tmp_nm in $lt_nm_to_check; do
5160: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5161: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5162: IFS="$lt_save_ifs"
5163: test -z "$ac_dir" && ac_dir=.
5164: tmp_nm="$ac_dir/$lt_tmp_nm"
5165: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5166: # Check to see if the nm accepts a BSD-compat flag.
5167: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5168: # nm: unknown option "B" ignored
5169: # Tru64's nm complains that /dev/null is an invalid object file
5170: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5171: */dev/null* | *'Invalid file or object type'*)
5172: lt_cv_path_NM="$tmp_nm -B"
5173: break
5174: ;;
5175: *)
5176: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5177: */dev/null*)
5178: lt_cv_path_NM="$tmp_nm -p"
5179: break
5180: ;;
5181: *)
5182: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5183: continue # so that we can try to find one that supports BSD flags
5184: ;;
5185: esac
5186: ;;
5187: esac
1.1 misha 5188: fi
1.8 moko 5189: done
5190: IFS="$lt_save_ifs"
1.1 misha 5191: done
1.8 moko 5192: : ${lt_cv_path_NM=no}
1.1 misha 5193: fi
5194: fi
1.22 moko 5195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5196: $as_echo "$lt_cv_path_NM" >&6; }
1.8 moko 5197: if test "$lt_cv_path_NM" != "no"; then
5198: NM="$lt_cv_path_NM"
5199: else
5200: # Didn't find any BSD compatible name lister, look for dumpbin.
5201: if test -n "$DUMPBIN"; then :
5202: # Let the user override the test.
5203: else
5204: if test -n "$ac_tool_prefix"; then
5205: for ac_prog in dumpbin "link -dump"
5206: do
5207: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5208: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.22 moko 5209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210: $as_echo_n "checking for $ac_word... " >&6; }
5211: if ${ac_cv_prog_DUMPBIN+:} false; then :
5212: $as_echo_n "(cached) " >&6
1.1 misha 5213: else
1.8 moko 5214: if test -n "$DUMPBIN"; then
5215: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5216: else
1.1 misha 5217: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218: for as_dir in $PATH
5219: do
5220: IFS=$as_save_IFS
5221: test -z "$as_dir" && as_dir=.
1.22 moko 5222: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 5223: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5224: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.22 moko 5225: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5226: break 2
5227: fi
5228: done
1.22 moko 5229: done
5230: IFS=$as_save_IFS
1.11 moko 5231:
1.8 moko 5232: fi
5233: fi
5234: DUMPBIN=$ac_cv_prog_DUMPBIN
5235: if test -n "$DUMPBIN"; then
1.22 moko 5236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5237: $as_echo "$DUMPBIN" >&6; }
1.8 moko 5238: else
1.22 moko 5239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240: $as_echo "no" >&6; }
1.8 moko 5241: fi
1.1 misha 5242:
1.22 moko 5243:
1.8 moko 5244: test -n "$DUMPBIN" && break
1.1 misha 5245: done
1.8 moko 5246: fi
5247: if test -z "$DUMPBIN"; then
5248: ac_ct_DUMPBIN=$DUMPBIN
5249: for ac_prog in dumpbin "link -dump"
5250: do
5251: # Extract the first word of "$ac_prog", so it can be a program name with args.
5252: set dummy $ac_prog; ac_word=$2
1.22 moko 5253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254: $as_echo_n "checking for $ac_word... " >&6; }
5255: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5256: $as_echo_n "(cached) " >&6
1.8 moko 5257: else
5258: if test -n "$ac_ct_DUMPBIN"; then
5259: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5260: else
5261: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262: for as_dir in $PATH
5263: do
5264: IFS=$as_save_IFS
5265: test -z "$as_dir" && as_dir=.
1.22 moko 5266: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 5267: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5268: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.22 moko 5269: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5270: break 2
5271: fi
5272: done
1.22 moko 5273: done
5274: IFS=$as_save_IFS
1.1 misha 5275:
5276: fi
1.8 moko 5277: fi
5278: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5279: if test -n "$ac_ct_DUMPBIN"; then
1.22 moko 5280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5281: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.1 misha 5282: else
1.22 moko 5283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284: $as_echo "no" >&6; }
1.1 misha 5285: fi
5286:
1.22 moko 5287:
1.8 moko 5288: test -n "$ac_ct_DUMPBIN" && break
5289: done
5290:
1.22 moko 5291: if test "x$ac_ct_DUMPBIN" = x; then
5292: DUMPBIN=":"
5293: else
5294: case $cross_compiling:$ac_tool_warned in
5295: yes:)
5296: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5297: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5298: ac_tool_warned=yes ;;
5299: esac
5300: DUMPBIN=$ac_ct_DUMPBIN
5301: fi
1.1 misha 5302: fi
5303:
1.8 moko 5304: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5305: *COFF*)
5306: DUMPBIN="$DUMPBIN -symbols"
5307: ;;
5308: *)
5309: DUMPBIN=:
5310: ;;
5311: esac
5312: fi
5313:
5314: if test "$DUMPBIN" != ":"; then
5315: NM="$DUMPBIN"
5316: fi
5317: fi
5318: test -z "$NM" && NM=nm
5319:
5320:
5321:
5322:
5323:
5324:
1.22 moko 5325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5326: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5327: if ${lt_cv_nm_interface+:} false; then :
5328: $as_echo_n "(cached) " >&6
1.8 moko 5329: else
5330: lt_cv_nm_interface="BSD nm"
5331: echo "int some_variable = 0;" > conftest.$ac_ext
5332: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5333: (eval "$ac_compile" 2>conftest.err)
5334: cat conftest.err >&5
5335: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5336: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5337: cat conftest.err >&5
5338: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5339: cat conftest.out >&5
5340: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5341: lt_cv_nm_interface="MS dumpbin"
5342: fi
5343: rm -f conftest*
5344: fi
1.22 moko 5345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5346: $as_echo "$lt_cv_nm_interface" >&6; }
1.8 moko 5347:
1.22 moko 5348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5349: $as_echo_n "checking whether ln -s works... " >&6; }
1.8 moko 5350: LN_S=$as_ln_s
5351: if test "$LN_S" = "ln -s"; then
1.22 moko 5352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353: $as_echo "yes" >&6; }
1.8 moko 5354: else
1.22 moko 5355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5356: $as_echo "no, using $LN_S" >&6; }
1.8 moko 5357: fi
5358:
5359: # find the maximum length of command line arguments
1.22 moko 5360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5361: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5362: if ${lt_cv_sys_max_cmd_len+:} false; then :
5363: $as_echo_n "(cached) " >&6
1.8 moko 5364: else
5365: i=0
5366: teststring="ABCD"
5367:
5368: case $build_os in
5369: msdosdjgpp*)
5370: # On DJGPP, this test can blow up pretty badly due to problems in libc
5371: # (any single argument exceeding 2000 bytes causes a buffer overrun
5372: # during glob expansion). Even if it were fixed, the result of this
5373: # check would be larger than it should be.
5374: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5375: ;;
5376:
5377: gnu*)
5378: # Under GNU Hurd, this test is not required because there is
5379: # no limit to the length of command line arguments.
5380: # Libtool will interpret -1 as no limit whatsoever
5381: lt_cv_sys_max_cmd_len=-1;
5382: ;;
5383:
5384: cygwin* | mingw* | cegcc*)
5385: # On Win9x/ME, this test blows up -- it succeeds, but takes
5386: # about 5 minutes as the teststring grows exponentially.
5387: # Worse, since 9x/ME are not pre-emptively multitasking,
5388: # you end up with a "frozen" computer, even though with patience
5389: # the test eventually succeeds (with a max line length of 256k).
5390: # Instead, let's just punt: use the minimum linelength reported by
5391: # all of the supported platforms: 8192 (on NT/2K/XP).
5392: lt_cv_sys_max_cmd_len=8192;
5393: ;;
5394:
5395: mint*)
5396: # On MiNT this can take a long time and run out of memory.
5397: lt_cv_sys_max_cmd_len=8192;
5398: ;;
5399:
5400: amigaos*)
5401: # On AmigaOS with pdksh, this test takes hours, literally.
5402: # So we just punt and use a minimum line length of 8192.
5403: lt_cv_sys_max_cmd_len=8192;
5404: ;;
5405:
5406: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5407: # This has been around since 386BSD, at least. Likely further.
5408: if test -x /sbin/sysctl; then
5409: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5410: elif test -x /usr/sbin/sysctl; then
5411: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5412: else
5413: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5414: fi
5415: # And add a safety zone
5416: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5417: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5418: ;;
5419:
5420: interix*)
5421: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5422: lt_cv_sys_max_cmd_len=196608
5423: ;;
5424:
5425: os2*)
5426: # The test takes a long time on OS/2.
5427: lt_cv_sys_max_cmd_len=8192
5428: ;;
5429:
5430: osf*)
5431: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5432: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5433: # nice to cause kernel panics so lets avoid the loop below.
5434: # First set a reasonable default.
5435: lt_cv_sys_max_cmd_len=16384
5436: #
5437: if test -x /sbin/sysconfig; then
5438: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5439: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5440: esac
5441: fi
5442: ;;
5443: sco3.2v5*)
5444: lt_cv_sys_max_cmd_len=102400
5445: ;;
5446: sysv5* | sco5v6* | sysv4.2uw2*)
5447: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5448: if test -n "$kargmax"; then
5449: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5450: else
5451: lt_cv_sys_max_cmd_len=32768
5452: fi
5453: ;;
5454: *)
5455: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5456: if test -n "$lt_cv_sys_max_cmd_len"; then
5457: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5458: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5459: else
5460: # Make teststring a little bigger before we do anything with it.
5461: # a 1K string should be a reasonable start.
5462: for i in 1 2 3 4 5 6 7 8 ; do
5463: teststring=$teststring$teststring
5464: done
5465: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5466: # If test is not a shell built-in, we'll probably end up computing a
5467: # maximum length that is only half of the actual maximum length, but
5468: # we can't tell.
5469: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5470: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5471: test $i != 17 # 1/2 MB should be enough
5472: do
5473: i=`expr $i + 1`
5474: teststring=$teststring$teststring
5475: done
5476: # Only check the string length outside the loop.
5477: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5478: teststring=
5479: # Add a significant safety factor because C++ compilers can tack on
5480: # massive amounts of additional arguments before passing them to the
5481: # linker. It appears as though 1/2 is a usable value.
5482: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5483: fi
5484: ;;
5485: esac
5486:
5487: fi
5488:
5489: if test -n $lt_cv_sys_max_cmd_len ; then
1.22 moko 5490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5491: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.8 moko 5492: else
1.22 moko 5493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5494: $as_echo "none" >&6; }
1.8 moko 5495: fi
5496: max_cmd_len=$lt_cv_sys_max_cmd_len
5497:
5498:
5499:
5500:
5501:
5502:
5503: : ${CP="cp -f"}
5504: : ${MV="mv -f"}
5505: : ${RM="rm -f"}
5506:
1.22 moko 5507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5508: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.8 moko 5509: # Try some XSI features
5510: xsi_shell=no
5511: ( _lt_dummy="a/b/c"
5512: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5513: = c,a/b,b/c, \
5514: && eval 'test $(( 1 + 1 )) -eq 2 \
5515: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5516: && xsi_shell=yes
1.22 moko 5517: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5518: $as_echo "$xsi_shell" >&6; }
1.8 moko 5519:
5520:
1.22 moko 5521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5522: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.8 moko 5523: lt_shell_append=no
5524: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5525: >/dev/null 2>&1 \
5526: && lt_shell_append=yes
1.22 moko 5527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5528: $as_echo "$lt_shell_append" >&6; }
1.8 moko 5529:
5530:
5531: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5532: lt_unset=unset
5533: else
5534: lt_unset=false
5535: fi
5536:
5537:
5538:
5539:
5540:
5541: # test EBCDIC or ASCII
5542: case `echo X|tr X '\101'` in
5543: A) # ASCII based system
5544: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5545: lt_SP2NL='tr \040 \012'
5546: lt_NL2SP='tr \015\012 \040\040'
5547: ;;
5548: *) # EBCDIC based system
5549: lt_SP2NL='tr \100 \n'
5550: lt_NL2SP='tr \r\n \100\100'
5551: ;;
5552: esac
5553:
5554:
5555:
5556:
5557:
5558:
5559:
5560:
5561:
1.22 moko 5562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5563: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5564: if ${lt_cv_to_host_file_cmd+:} false; then :
5565: $as_echo_n "(cached) " >&6
1.8 moko 5566: else
5567: case $host in
5568: *-*-mingw* )
5569: case $build in
5570: *-*-mingw* ) # actually msys
5571: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5572: ;;
5573: *-*-cygwin* )
5574: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5575: ;;
5576: * ) # otherwise, assume *nix
5577: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5578: ;;
5579: esac
5580: ;;
5581: *-*-cygwin* )
5582: case $build in
5583: *-*-mingw* ) # actually msys
5584: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5585: ;;
5586: *-*-cygwin* )
5587: lt_cv_to_host_file_cmd=func_convert_file_noop
5588: ;;
5589: * ) # otherwise, assume *nix
5590: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5591: ;;
5592: esac
5593: ;;
5594: * ) # unhandled hosts (and "normal" native builds)
5595: lt_cv_to_host_file_cmd=func_convert_file_noop
5596: ;;
5597: esac
5598:
5599: fi
5600:
5601: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.22 moko 5602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5603: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.8 moko 5604:
5605:
5606:
5607:
5608:
1.22 moko 5609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5610: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5611: if ${lt_cv_to_tool_file_cmd+:} false; then :
5612: $as_echo_n "(cached) " >&6
1.8 moko 5613: else
5614: #assume ordinary cross tools, or native build.
5615: lt_cv_to_tool_file_cmd=func_convert_file_noop
5616: case $host in
5617: *-*-mingw* )
5618: case $build in
5619: *-*-mingw* ) # actually msys
5620: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5621: ;;
5622: esac
5623: ;;
5624: esac
5625:
5626: fi
5627:
5628: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.22 moko 5629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5630: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.8 moko 5631:
5632:
5633:
5634:
5635:
1.22 moko 5636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5637: $as_echo_n "checking for $LD option to reload object files... " >&6; }
5638: if ${lt_cv_ld_reload_flag+:} false; then :
5639: $as_echo_n "(cached) " >&6
1.8 moko 5640: else
5641: lt_cv_ld_reload_flag='-r'
5642: fi
1.22 moko 5643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5644: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.8 moko 5645: reload_flag=$lt_cv_ld_reload_flag
5646: case $reload_flag in
5647: "" | " "*) ;;
5648: *) reload_flag=" $reload_flag" ;;
5649: esac
5650: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5651: case $host_os in
5652: cygwin* | mingw* | pw32* | cegcc*)
5653: if test "$GCC" != yes; then
5654: reload_cmds=false
5655: fi
5656: ;;
5657: darwin*)
5658: if test "$GCC" = yes; then
5659: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5660: else
5661: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5662: fi
5663: ;;
5664: esac
5665:
5666:
5667:
5668:
5669:
5670:
5671:
5672:
5673:
5674: if test -n "$ac_tool_prefix"; then
5675: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5676: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.22 moko 5677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678: $as_echo_n "checking for $ac_word... " >&6; }
5679: if ${ac_cv_prog_OBJDUMP+:} false; then :
5680: $as_echo_n "(cached) " >&6
1.8 moko 5681: else
5682: if test -n "$OBJDUMP"; then
5683: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5684: else
5685: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686: for as_dir in $PATH
5687: do
5688: IFS=$as_save_IFS
5689: test -z "$as_dir" && as_dir=.
1.22 moko 5690: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 5691: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5692: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.22 moko 5693: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5694: break 2
5695: fi
5696: done
1.22 moko 5697: done
5698: IFS=$as_save_IFS
1.8 moko 5699:
5700: fi
5701: fi
5702: OBJDUMP=$ac_cv_prog_OBJDUMP
5703: if test -n "$OBJDUMP"; then
1.22 moko 5704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5705: $as_echo "$OBJDUMP" >&6; }
1.8 moko 5706: else
1.22 moko 5707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708: $as_echo "no" >&6; }
1.8 moko 5709: fi
5710:
1.22 moko 5711:
1.8 moko 5712: fi
5713: if test -z "$ac_cv_prog_OBJDUMP"; then
5714: ac_ct_OBJDUMP=$OBJDUMP
5715: # Extract the first word of "objdump", so it can be a program name with args.
5716: set dummy objdump; ac_word=$2
1.22 moko 5717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718: $as_echo_n "checking for $ac_word... " >&6; }
5719: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5720: $as_echo_n "(cached) " >&6
1.8 moko 5721: else
5722: if test -n "$ac_ct_OBJDUMP"; then
5723: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5724: else
5725: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726: for as_dir in $PATH
5727: do
5728: IFS=$as_save_IFS
5729: test -z "$as_dir" && as_dir=.
1.22 moko 5730: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 5731: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5732: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.22 moko 5733: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5734: break 2
5735: fi
5736: done
1.22 moko 5737: done
5738: IFS=$as_save_IFS
1.8 moko 5739:
5740: fi
5741: fi
5742: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5743: if test -n "$ac_ct_OBJDUMP"; then
1.22 moko 5744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5745: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.8 moko 5746: else
1.22 moko 5747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748: $as_echo "no" >&6; }
1.8 moko 5749: fi
5750:
1.22 moko 5751: if test "x$ac_ct_OBJDUMP" = x; then
5752: OBJDUMP="false"
5753: else
5754: case $cross_compiling:$ac_tool_warned in
5755: yes:)
5756: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758: ac_tool_warned=yes ;;
5759: esac
5760: OBJDUMP=$ac_ct_OBJDUMP
5761: fi
1.8 moko 5762: else
5763: OBJDUMP="$ac_cv_prog_OBJDUMP"
5764: fi
5765:
5766: test -z "$OBJDUMP" && OBJDUMP=objdump
5767:
5768:
5769:
5770:
5771:
5772:
1.22 moko 5773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5774: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5775: if ${lt_cv_deplibs_check_method+:} false; then :
5776: $as_echo_n "(cached) " >&6
1.1 misha 5777: else
5778: lt_cv_file_magic_cmd='$MAGIC_CMD'
5779: lt_cv_file_magic_test_file=
5780: lt_cv_deplibs_check_method='unknown'
5781: # Need to set the preceding variable on all platforms that support
5782: # interlibrary dependencies.
5783: # 'none' -- dependencies not supported.
5784: # `unknown' -- same as none, but documents that we really don't know.
5785: # 'pass_all' -- all dependencies passed with no checks.
5786: # 'test_compile' -- check by making test program.
5787: # 'file_magic [[regex]]' -- check by looking for files in library path
1.8 moko 5788: # which responds to the $file_magic_cmd with a given extended regex.
1.1 misha 5789: # If you have `file' or equivalent on your system and you're not sure
5790: # whether `pass_all' will *always* work, you probably want this one.
5791:
5792: case $host_os in
1.8 moko 5793: aix[4-9]*)
1.1 misha 5794: lt_cv_deplibs_check_method=pass_all
5795: ;;
5796:
5797: beos*)
5798: lt_cv_deplibs_check_method=pass_all
5799: ;;
5800:
1.8 moko 5801: bsdi[45]*)
1.1 misha 5802: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5803: lt_cv_file_magic_cmd='/usr/bin/file -L'
5804: lt_cv_file_magic_test_file=/shlib/libc.so
5805: ;;
5806:
1.8 moko 5807: cygwin*)
5808: # func_win32_libid is a shell function defined in ltmain.sh
5809: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5810: lt_cv_file_magic_cmd='func_win32_libid'
5811: ;;
5812:
5813: mingw* | pw32*)
5814: # Base MSYS/MinGW do not provide the 'file' command needed by
5815: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5816: # unless we find 'file', for example because we are cross-compiling.
5817: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5818: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5819: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5820: lt_cv_file_magic_cmd='func_win32_libid'
5821: else
5822: # Keep this pattern in sync with the one in func_win32_libid.
5823: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5824: lt_cv_file_magic_cmd='$OBJDUMP -f'
5825: fi
5826: ;;
5827:
5828: cegcc*)
5829: # use the weaker test based on 'objdump'. See mingw*.
5830: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.1 misha 5831: lt_cv_file_magic_cmd='$OBJDUMP -f'
5832: ;;
5833:
5834: darwin* | rhapsody*)
1.8 moko 5835: lt_cv_deplibs_check_method=pass_all
1.1 misha 5836: ;;
5837:
1.8 moko 5838: freebsd* | dragonfly*)
5839: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.1 misha 5840: case $host_cpu in
5841: i*86 )
5842: # Not sure whether the presence of OpenBSD here was a mistake.
5843: # Let's accept both of them until this is cleared up.
1.8 moko 5844: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1 misha 5845: lt_cv_file_magic_cmd=/usr/bin/file
5846: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5847: ;;
5848: esac
5849: else
5850: lt_cv_deplibs_check_method=pass_all
5851: fi
5852: ;;
5853:
5854: gnu*)
5855: lt_cv_deplibs_check_method=pass_all
5856: ;;
5857:
1.8 moko 5858: haiku*)
5859: lt_cv_deplibs_check_method=pass_all
1.1 misha 5860: ;;
5861:
1.8 moko 5862: hpux10.20* | hpux11*)
5863: lt_cv_file_magic_cmd=/usr/bin/file
5864: case $host_cpu in
5865: ia64*)
5866: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5867: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5868: ;;
5869: hppa*64*)
5870: 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]'
5871: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.1 misha 5872: ;;
5873: *)
1.8 moko 5874: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5875: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.1 misha 5876: ;;
5877: esac
1.8 moko 5878: ;;
5879:
5880: interix[3-9]*)
5881: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5882: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5883: ;;
5884:
5885: irix5* | irix6* | nonstopux*)
5886: case $LD in
5887: *-32|*"-32 ") libmagic=32-bit;;
5888: *-n32|*"-n32 ") libmagic=N32;;
5889: *-64|*"-64 ") libmagic=64-bit;;
5890: *) libmagic=never-match;;
5891: esac
1.1 misha 5892: lt_cv_deplibs_check_method=pass_all
5893: ;;
5894:
1.8 moko 5895: # This must be glibc/ELF.
5896: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5897: lt_cv_deplibs_check_method=pass_all
1.1 misha 5898: ;;
5899:
5900: netbsd*)
1.8 moko 5901: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5902: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 5903: else
1.8 moko 5904: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.1 misha 5905: fi
5906: ;;
5907:
5908: newos6*)
5909: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5910: lt_cv_file_magic_cmd=/usr/bin/file
5911: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5912: ;;
5913:
1.8 moko 5914: *nto* | *qnx*)
5915: lt_cv_deplibs_check_method=pass_all
5916: ;;
5917:
1.1 misha 5918: openbsd*)
1.8 moko 5919: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5920: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.1 misha 5921: else
1.8 moko 5922: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 5923: fi
5924: ;;
5925:
5926: osf3* | osf4* | osf5*)
5927: lt_cv_deplibs_check_method=pass_all
5928: ;;
5929:
1.8 moko 5930: rdos*)
1.1 misha 5931: lt_cv_deplibs_check_method=pass_all
5932: ;;
5933:
5934: solaris*)
5935: lt_cv_deplibs_check_method=pass_all
5936: ;;
5937:
1.8 moko 5938: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1 misha 5939: lt_cv_deplibs_check_method=pass_all
5940: ;;
5941:
1.8 moko 5942: sysv4 | sysv4.3*)
1.1 misha 5943: case $host_vendor in
5944: motorola)
5945: 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]'
5946: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5947: ;;
5948: ncr)
5949: lt_cv_deplibs_check_method=pass_all
5950: ;;
5951: sequent)
5952: lt_cv_file_magic_cmd='/bin/file'
5953: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5954: ;;
5955: sni)
5956: lt_cv_file_magic_cmd='/bin/file'
5957: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5958: lt_cv_file_magic_test_file=/lib/libc.so
5959: ;;
5960: siemens)
5961: lt_cv_deplibs_check_method=pass_all
5962: ;;
1.8 moko 5963: pc)
5964: lt_cv_deplibs_check_method=pass_all
5965: ;;
1.1 misha 5966: esac
5967: ;;
1.8 moko 5968:
5969: tpf*)
5970: lt_cv_deplibs_check_method=pass_all
5971: ;;
1.1 misha 5972: esac
5973:
5974: fi
1.22 moko 5975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5976: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.8 moko 5977:
5978: file_magic_glob=
5979: want_nocaseglob=no
5980: if test "$build" = "$host"; then
5981: case $host_os in
5982: mingw* | pw32*)
5983: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5984: want_nocaseglob=yes
5985: else
5986: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5987: fi
5988: ;;
5989: esac
5990: fi
5991:
1.1 misha 5992: file_magic_cmd=$lt_cv_file_magic_cmd
5993: deplibs_check_method=$lt_cv_deplibs_check_method
1.8 moko 5994: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5995:
5996:
1.1 misha 5997:
5998:
5999:
6000:
6001:
6002:
6003:
6004:
1.8 moko 6005:
6006:
6007:
6008:
6009:
6010:
6011:
6012:
6013:
6014:
6015:
6016:
6017: if test -n "$ac_tool_prefix"; then
6018: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6019: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.22 moko 6020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021: $as_echo_n "checking for $ac_word... " >&6; }
6022: if ${ac_cv_prog_DLLTOOL+:} false; then :
6023: $as_echo_n "(cached) " >&6
1.8 moko 6024: else
6025: if test -n "$DLLTOOL"; then
6026: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6027: else
6028: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029: for as_dir in $PATH
6030: do
6031: IFS=$as_save_IFS
6032: test -z "$as_dir" && as_dir=.
1.22 moko 6033: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 6034: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6035: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.22 moko 6036: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6037: break 2
6038: fi
6039: done
1.22 moko 6040: done
6041: IFS=$as_save_IFS
1.8 moko 6042:
6043: fi
6044: fi
6045: DLLTOOL=$ac_cv_prog_DLLTOOL
6046: if test -n "$DLLTOOL"; then
1.22 moko 6047: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6048: $as_echo "$DLLTOOL" >&6; }
1.8 moko 6049: else
1.22 moko 6050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051: $as_echo "no" >&6; }
1.8 moko 6052: fi
6053:
1.22 moko 6054:
1.8 moko 6055: fi
6056: if test -z "$ac_cv_prog_DLLTOOL"; then
6057: ac_ct_DLLTOOL=$DLLTOOL
6058: # Extract the first word of "dlltool", so it can be a program name with args.
6059: set dummy dlltool; ac_word=$2
1.22 moko 6060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061: $as_echo_n "checking for $ac_word... " >&6; }
6062: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6063: $as_echo_n "(cached) " >&6
1.1 misha 6064: else
1.8 moko 6065: if test -n "$ac_ct_DLLTOOL"; then
6066: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6067: else
6068: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069: for as_dir in $PATH
6070: do
6071: IFS=$as_save_IFS
6072: test -z "$as_dir" && as_dir=.
1.22 moko 6073: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 6074: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6075: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.22 moko 6076: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6077: break 2
6078: fi
6079: done
1.22 moko 6080: done
6081: IFS=$as_save_IFS
1.8 moko 6082:
6083: fi
6084: fi
6085: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6086: if test -n "$ac_ct_DLLTOOL"; then
1.22 moko 6087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6088: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.8 moko 6089: else
1.22 moko 6090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091: $as_echo "no" >&6; }
1.8 moko 6092: fi
6093:
1.22 moko 6094: if test "x$ac_ct_DLLTOOL" = x; then
6095: DLLTOOL="false"
6096: else
6097: case $cross_compiling:$ac_tool_warned in
6098: yes:)
6099: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101: ac_tool_warned=yes ;;
6102: esac
6103: DLLTOOL=$ac_ct_DLLTOOL
6104: fi
1.8 moko 6105: else
6106: DLLTOOL="$ac_cv_prog_DLLTOOL"
6107: fi
6108:
6109: test -z "$DLLTOOL" && DLLTOOL=dlltool
6110:
6111:
6112:
6113:
1.1 misha 6114:
6115:
6116:
1.22 moko 6117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6118: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6119: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6120: $as_echo_n "(cached) " >&6
1.8 moko 6121: else
6122: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.1 misha 6123:
6124: case $host_os in
1.8 moko 6125: cygwin* | mingw* | pw32* | cegcc*)
6126: # two different shell functions defined in ltmain.sh
6127: # decide which to use based on capabilities of $DLLTOOL
6128: case `$DLLTOOL --help 2>&1` in
6129: *--identify-strict*)
6130: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6131: ;;
6132: *)
6133: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6134: ;;
6135: esac
1.1 misha 6136: ;;
1.8 moko 6137: *)
6138: # fallback: assume linklib IS sharedlib
6139: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.1 misha 6140: ;;
6141: esac
6142:
6143: fi
1.22 moko 6144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6145: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.8 moko 6146: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6147: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.1 misha 6148:
6149:
6150:
6151:
6152:
6153:
6154:
6155:
1.8 moko 6156: if test -n "$ac_tool_prefix"; then
6157: for ac_prog in ar
6158: do
6159: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6160: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.22 moko 6161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162: $as_echo_n "checking for $ac_word... " >&6; }
6163: if ${ac_cv_prog_AR+:} false; then :
6164: $as_echo_n "(cached) " >&6
1.8 moko 6165: else
6166: if test -n "$AR"; then
6167: ac_cv_prog_AR="$AR" # Let the user override the test.
6168: else
6169: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170: for as_dir in $PATH
6171: do
6172: IFS=$as_save_IFS
6173: test -z "$as_dir" && as_dir=.
1.22 moko 6174: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 6175: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6176: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.22 moko 6177: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6178: break 2
1.1 misha 6179: fi
1.8 moko 6180: done
1.22 moko 6181: done
6182: IFS=$as_save_IFS
1.1 misha 6183:
6184: fi
6185: fi
1.8 moko 6186: AR=$ac_cv_prog_AR
6187: if test -n "$AR"; then
1.22 moko 6188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6189: $as_echo "$AR" >&6; }
1.1 misha 6190: else
1.22 moko 6191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192: $as_echo "no" >&6; }
1.1 misha 6193: fi
6194:
1.22 moko 6195:
1.8 moko 6196: test -n "$AR" && break
6197: done
1.1 misha 6198: fi
1.8 moko 6199: if test -z "$AR"; then
6200: ac_ct_AR=$AR
6201: for ac_prog in ar
6202: do
6203: # Extract the first word of "$ac_prog", so it can be a program name with args.
6204: set dummy $ac_prog; ac_word=$2
1.22 moko 6205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206: $as_echo_n "checking for $ac_word... " >&6; }
6207: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6208: $as_echo_n "(cached) " >&6
1.1 misha 6209: else
1.8 moko 6210: if test -n "$ac_ct_AR"; then
6211: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6212: else
6213: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214: for as_dir in $PATH
1.1 misha 6215: do
1.8 moko 6216: IFS=$as_save_IFS
6217: test -z "$as_dir" && as_dir=.
1.22 moko 6218: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 6219: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6220: ac_cv_prog_ac_ct_AR="$ac_prog"
1.22 moko 6221: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6222: break 2
1.1 misha 6223: fi
1.8 moko 6224: done
1.22 moko 6225: done
6226: IFS=$as_save_IFS
1.1 misha 6227:
6228: fi
6229: fi
1.8 moko 6230: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6231: if test -n "$ac_ct_AR"; then
1.22 moko 6232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6233: $as_echo "$ac_ct_AR" >&6; }
1.1 misha 6234: else
1.22 moko 6235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236: $as_echo "no" >&6; }
1.1 misha 6237: fi
6238:
1.22 moko 6239:
1.8 moko 6240: test -n "$ac_ct_AR" && break
1.1 misha 6241: done
1.8 moko 6242:
1.22 moko 6243: if test "x$ac_ct_AR" = x; then
6244: AR="false"
6245: else
6246: case $cross_compiling:$ac_tool_warned in
6247: yes:)
6248: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6249: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250: ac_tool_warned=yes ;;
6251: esac
6252: AR=$ac_ct_AR
6253: fi
1.1 misha 6254: fi
6255:
1.8 moko 6256: : ${AR=ar}
6257: : ${AR_FLAGS=cru}
6258:
1.1 misha 6259:
6260:
6261:
6262:
6263:
6264:
6265:
6266:
6267:
6268:
1.22 moko 6269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6270: $as_echo_n "checking for archiver @FILE support... " >&6; }
6271: if ${lt_cv_ar_at_file+:} false; then :
6272: $as_echo_n "(cached) " >&6
1.1 misha 6273: else
1.8 moko 6274: lt_cv_ar_at_file=no
1.22 moko 6275: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 6276: /* end confdefs.h. */
6277:
6278: int
6279: main ()
6280: {
6281:
6282: ;
6283: return 0;
6284: }
6285: _ACEOF
1.22 moko 6286: if ac_fn_c_try_compile "$LINENO"; then :
1.8 moko 6287: echo conftest.$ac_objext > conftest.lst
6288: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.22 moko 6289: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.8 moko 6290: (eval $lt_ar_try) 2>&5
6291: ac_status=$?
1.22 moko 6292: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6293: test $ac_status = 0; }
1.8 moko 6294: if test "$ac_status" -eq 0; then
6295: # Ensure the archiver fails upon bogus file names.
6296: rm -f conftest.$ac_objext libconftest.a
1.22 moko 6297: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.8 moko 6298: (eval $lt_ar_try) 2>&5
6299: ac_status=$?
1.22 moko 6300: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301: test $ac_status = 0; }
1.8 moko 6302: if test "$ac_status" -ne 0; then
6303: lt_cv_ar_at_file=@
6304: fi
6305: fi
6306: rm -f conftest.* libconftest.a
6307:
1.1 misha 6308: fi
1.22 moko 6309: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 6310:
1.8 moko 6311: fi
1.22 moko 6312: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6313: $as_echo "$lt_cv_ar_at_file" >&6; }
1.8 moko 6314:
6315: if test "x$lt_cv_ar_at_file" = xno; then
6316: archiver_list_spec=
1.1 misha 6317: else
1.8 moko 6318: archiver_list_spec=$lt_cv_ar_at_file
1.1 misha 6319: fi
6320:
6321:
6322:
1.8 moko 6323:
6324:
6325:
6326:
6327: if test -n "$ac_tool_prefix"; then
6328: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6329: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.22 moko 6330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331: $as_echo_n "checking for $ac_word... " >&6; }
6332: if ${ac_cv_prog_STRIP+:} false; then :
6333: $as_echo_n "(cached) " >&6
1.8 moko 6334: else
6335: if test -n "$STRIP"; then
6336: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6337: else
6338: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339: for as_dir in $PATH
6340: do
6341: IFS=$as_save_IFS
6342: test -z "$as_dir" && as_dir=.
1.22 moko 6343: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 6344: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6345: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.22 moko 6346: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6347: break 2
6348: fi
6349: done
1.22 moko 6350: done
6351: IFS=$as_save_IFS
1.8 moko 6352:
6353: fi
6354: fi
6355: STRIP=$ac_cv_prog_STRIP
6356: if test -n "$STRIP"; then
1.22 moko 6357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6358: $as_echo "$STRIP" >&6; }
1.1 misha 6359: else
1.22 moko 6360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361: $as_echo "no" >&6; }
1.1 misha 6362: fi
6363:
1.22 moko 6364:
1.1 misha 6365: fi
1.8 moko 6366: if test -z "$ac_cv_prog_STRIP"; then
6367: ac_ct_STRIP=$STRIP
6368: # Extract the first word of "strip", so it can be a program name with args.
6369: set dummy strip; ac_word=$2
1.22 moko 6370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371: $as_echo_n "checking for $ac_word... " >&6; }
6372: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6373: $as_echo_n "(cached) " >&6
1.1 misha 6374: else
1.8 moko 6375: if test -n "$ac_ct_STRIP"; then
6376: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 misha 6377: else
1.8 moko 6378: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379: for as_dir in $PATH
6380: do
6381: IFS=$as_save_IFS
6382: test -z "$as_dir" && as_dir=.
1.22 moko 6383: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 6384: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6385: ac_cv_prog_ac_ct_STRIP="strip"
1.22 moko 6386: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6387: break 2
6388: fi
6389: done
1.22 moko 6390: done
6391: IFS=$as_save_IFS
1.1 misha 6392:
6393: fi
6394: fi
1.8 moko 6395: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6396: if test -n "$ac_ct_STRIP"; then
1.22 moko 6397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6398: $as_echo "$ac_ct_STRIP" >&6; }
1.8 moko 6399: else
1.22 moko 6400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401: $as_echo "no" >&6; }
1.1 misha 6402: fi
6403:
1.22 moko 6404: if test "x$ac_ct_STRIP" = x; then
6405: STRIP=":"
6406: else
6407: case $cross_compiling:$ac_tool_warned in
6408: yes:)
6409: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411: ac_tool_warned=yes ;;
6412: esac
6413: STRIP=$ac_ct_STRIP
6414: fi
1.8 moko 6415: else
6416: STRIP="$ac_cv_prog_STRIP"
1.1 misha 6417: fi
6418:
1.8 moko 6419: test -z "$STRIP" && STRIP=:
1.1 misha 6420:
6421:
6422:
6423:
6424:
6425:
1.8 moko 6426: if test -n "$ac_tool_prefix"; then
6427: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6428: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.22 moko 6429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430: $as_echo_n "checking for $ac_word... " >&6; }
6431: if ${ac_cv_prog_RANLIB+:} false; then :
6432: $as_echo_n "(cached) " >&6
1.1 misha 6433: else
1.8 moko 6434: if test -n "$RANLIB"; then
6435: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 misha 6436: else
1.8 moko 6437: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438: for as_dir in $PATH
6439: do
6440: IFS=$as_save_IFS
6441: test -z "$as_dir" && as_dir=.
1.22 moko 6442: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 6443: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6444: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.22 moko 6445: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6446: break 2
6447: fi
6448: done
1.22 moko 6449: done
6450: IFS=$as_save_IFS
1.1 misha 6451:
6452: fi
6453: fi
1.8 moko 6454: RANLIB=$ac_cv_prog_RANLIB
6455: if test -n "$RANLIB"; then
1.22 moko 6456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6457: $as_echo "$RANLIB" >&6; }
1.8 moko 6458: else
1.22 moko 6459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460: $as_echo "no" >&6; }
1.8 moko 6461: fi
1.1 misha 6462:
1.22 moko 6463:
1.1 misha 6464: fi
1.8 moko 6465: if test -z "$ac_cv_prog_RANLIB"; then
6466: ac_ct_RANLIB=$RANLIB
6467: # Extract the first word of "ranlib", so it can be a program name with args.
6468: set dummy ranlib; ac_word=$2
1.22 moko 6469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470: $as_echo_n "checking for $ac_word... " >&6; }
6471: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6472: $as_echo_n "(cached) " >&6
1.8 moko 6473: else
6474: if test -n "$ac_ct_RANLIB"; then
6475: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6476: else
6477: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478: for as_dir in $PATH
6479: do
6480: IFS=$as_save_IFS
6481: test -z "$as_dir" && as_dir=.
1.22 moko 6482: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 6483: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6484: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.22 moko 6485: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6486: break 2
6487: fi
6488: done
1.22 moko 6489: done
6490: IFS=$as_save_IFS
1.1 misha 6491:
1.8 moko 6492: fi
1.1 misha 6493: fi
1.8 moko 6494: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6495: if test -n "$ac_ct_RANLIB"; then
1.22 moko 6496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6497: $as_echo "$ac_ct_RANLIB" >&6; }
1.1 misha 6498: else
1.22 moko 6499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500: $as_echo "no" >&6; }
1.1 misha 6501: fi
6502:
1.22 moko 6503: if test "x$ac_ct_RANLIB" = x; then
6504: RANLIB=":"
6505: else
6506: case $cross_compiling:$ac_tool_warned in
6507: yes:)
6508: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510: ac_tool_warned=yes ;;
6511: esac
6512: RANLIB=$ac_ct_RANLIB
6513: fi
1.1 misha 6514: else
1.8 moko 6515: RANLIB="$ac_cv_prog_RANLIB"
1.1 misha 6516: fi
6517:
1.8 moko 6518: test -z "$RANLIB" && RANLIB=:
6519:
6520:
6521:
6522:
6523:
6524:
6525: # Determine commands to create old-style static archives.
6526: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6527: old_postinstall_cmds='chmod 644 $oldlib'
6528: old_postuninstall_cmds=
1.1 misha 6529:
1.8 moko 6530: if test -n "$RANLIB"; then
6531: case $host_os in
6532: openbsd*)
6533: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misha 6534: ;;
1.8 moko 6535: *)
6536: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misha 6537: ;;
1.8 moko 6538: esac
6539: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6540: fi
6541:
6542: case $host_os in
6543: darwin*)
6544: lock_old_archive_extraction=yes ;;
6545: *)
6546: lock_old_archive_extraction=no ;;
1.1 misha 6547: esac
6548:
6549:
6550:
6551:
6552:
6553:
6554:
6555:
6556:
6557:
6558:
6559:
6560:
6561:
6562:
6563:
6564:
6565:
6566:
6567:
6568:
6569:
6570:
6571:
6572:
6573:
6574:
6575:
6576:
6577:
6578:
6579:
6580:
6581:
1.8 moko 6582:
6583:
6584:
6585:
6586:
6587: # If no C compiler was specified, use CC.
6588: LTCC=${LTCC-"$CC"}
6589:
6590: # If no C compiler flags were specified, use CFLAGS.
6591: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6592:
6593: # Allow CC to be a program name with arguments.
6594: compiler=$CC
6595:
6596:
6597: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.22 moko 6598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6599: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6600: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6601: $as_echo_n "(cached) " >&6
1.1 misha 6602: else
6603:
1.8 moko 6604: # These are sane defaults that work on at least a few old systems.
6605: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.1 misha 6606:
1.8 moko 6607: # Character class describing NM global symbol codes.
6608: symcode='[BCDEGRST]'
1.1 misha 6609:
1.8 moko 6610: # Regexp to match symbols that can be accessed directly from C.
6611: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.1 misha 6612:
1.8 moko 6613: # Define system-specific variables.
6614: case $host_os in
6615: aix*)
6616: symcode='[BCDT]'
6617: ;;
6618: cygwin* | mingw* | pw32* | cegcc*)
6619: symcode='[ABCDGISTW]'
6620: ;;
6621: hpux*)
6622: if test "$host_cpu" = ia64; then
6623: symcode='[ABCDEGRST]'
6624: fi
6625: ;;
6626: irix* | nonstopux*)
6627: symcode='[BCDEGRST]'
6628: ;;
6629: osf*)
6630: symcode='[BCDEGQRST]'
6631: ;;
6632: solaris*)
6633: symcode='[BDRT]'
6634: ;;
6635: sco3.2v5*)
6636: symcode='[DT]'
6637: ;;
6638: sysv4.2uw2*)
6639: symcode='[DT]'
6640: ;;
6641: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6642: symcode='[ABDT]'
6643: ;;
6644: sysv4)
6645: symcode='[DFNSTU]'
6646: ;;
6647: esac
6648:
6649: # If we're using GNU nm, then use its standard symbol codes.
6650: case `$NM -V 2>&1` in
6651: *GNU* | *'with BFD'*)
6652: symcode='[ABCDGIRSTW]' ;;
6653: esac
6654:
6655: # Transform an extracted symbol line into a proper C declaration.
6656: # Some systems (esp. on ia64) link data and code symbols differently,
6657: # so use this general approach.
6658: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6659:
6660: # Transform an extracted symbol line into symbol name and symbol address
6661: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6662: 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'"
6663:
6664: # Handle CRLF in mingw tool chain
6665: opt_cr=
6666: case $build_os in
6667: mingw*)
6668: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6669: ;;
6670: esac
6671:
6672: # Try without a prefix underscore, then with it.
6673: for ac_symprfx in "" "_"; do
6674:
6675: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6676: symxfrm="\\1 $ac_symprfx\\2 \\2"
6677:
6678: # Write the raw and C identifiers.
6679: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6680: # Fake it for dumpbin and say T for any non-static function
6681: # and D for any global variable.
6682: # Also find C++ and __fastcall symbols from MSVC++,
6683: # which start with @ or ?.
6684: lt_cv_sys_global_symbol_pipe="$AWK '"\
6685: " {last_section=section; section=\$ 3};"\
6686: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6687: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6688: " \$ 0!~/External *\|/{next};"\
6689: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6690: " {if(hide[section]) next};"\
6691: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6692: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6693: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6694: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6695: " ' prfx=^$ac_symprfx"
6696: else
6697: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6698: fi
6699: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6700:
6701: # Check to see that the pipe works correctly.
6702: pipe_works=no
1.1 misha 6703:
1.8 moko 6704: rm -f conftest*
6705: cat > conftest.$ac_ext <<_LT_EOF
6706: #ifdef __cplusplus
6707: extern "C" {
6708: #endif
6709: char nm_test_var;
6710: void nm_test_func(void);
6711: void nm_test_func(void){}
6712: #ifdef __cplusplus
1.1 misha 6713: }
1.8 moko 6714: #endif
6715: int main(){nm_test_var='a';nm_test_func();return(0);}
6716: _LT_EOF
6717:
1.22 moko 6718: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6719: (eval $ac_compile) 2>&5
1.1 misha 6720: ac_status=$?
1.22 moko 6721: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722: test $ac_status = 0; }; then
1.8 moko 6723: # Now try to grab the symbols.
6724: nlist=conftest.nm
1.22 moko 6725: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.8 moko 6726: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.1 misha 6727: ac_status=$?
1.22 moko 6728: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729: test $ac_status = 0; } && test -s "$nlist"; then
1.8 moko 6730: # Try sorting and uniquifying the output.
6731: if sort "$nlist" | uniq > "$nlist"T; then
6732: mv -f "$nlist"T "$nlist"
6733: else
6734: rm -f "$nlist"T
6735: fi
6736:
6737: # Make sure that we snagged all the symbols we need.
6738: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6739: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6740: cat <<_LT_EOF > conftest.$ac_ext
6741: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6742: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6743: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6744: relocations are performed -- see ld's documentation on pseudo-relocs. */
6745: # define LT_DLSYM_CONST
6746: #elif defined(__osf__)
6747: /* This system does not cope well with relocations in const data. */
6748: # define LT_DLSYM_CONST
6749: #else
6750: # define LT_DLSYM_CONST const
6751: #endif
6752:
6753: #ifdef __cplusplus
6754: extern "C" {
6755: #endif
6756:
6757: _LT_EOF
6758: # Now generate the symbol file.
6759: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6760:
6761: cat <<_LT_EOF >> conftest.$ac_ext
6762:
6763: /* The mapping between symbol names and symbols. */
6764: LT_DLSYM_CONST struct {
6765: const char *name;
6766: void *address;
6767: }
6768: lt__PROGRAM__LTX_preloaded_symbols[] =
6769: {
6770: { "@PROGRAM@", (void *) 0 },
6771: _LT_EOF
6772: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6773: cat <<\_LT_EOF >> conftest.$ac_ext
6774: {0, (void *) 0}
6775: };
6776:
6777: /* This works around a problem in FreeBSD linker */
6778: #ifdef FREEBSD_WORKAROUND
6779: static const void *lt_preloaded_setup() {
6780: return lt__PROGRAM__LTX_preloaded_symbols;
6781: }
6782: #endif
6783:
6784: #ifdef __cplusplus
6785: }
6786: #endif
6787: _LT_EOF
6788: # Now try linking the two files.
6789: mv conftest.$ac_objext conftstm.$ac_objext
6790: lt_globsym_save_LIBS=$LIBS
6791: lt_globsym_save_CFLAGS=$CFLAGS
6792: LIBS="conftstm.$ac_objext"
6793: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.22 moko 6794: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 6795: (eval $ac_link) 2>&5
1.1 misha 6796: ac_status=$?
1.22 moko 6797: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.8 moko 6799: pipe_works=yes
6800: fi
6801: LIBS=$lt_globsym_save_LIBS
6802: CFLAGS=$lt_globsym_save_CFLAGS
6803: else
6804: echo "cannot find nm_test_func in $nlist" >&5
6805: fi
6806: else
6807: echo "cannot find nm_test_var in $nlist" >&5
6808: fi
6809: else
6810: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6811: fi
6812: else
6813: echo "$progname: failed program was:" >&5
6814: cat conftest.$ac_ext >&5
6815: fi
6816: rm -rf conftest* conftst*
6817:
6818: # Do not use the global_symbol_pipe unless it works.
6819: if test "$pipe_works" = yes; then
6820: break
6821: else
6822: lt_cv_sys_global_symbol_pipe=
6823: fi
6824: done
6825:
6826: fi
6827:
6828: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6829: lt_cv_sys_global_symbol_to_cdecl=
6830: fi
6831: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.22 moko 6832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6833: $as_echo "failed" >&6; }
1.1 misha 6834: else
1.22 moko 6835: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6836: $as_echo "ok" >&6; }
1.8 moko 6837: fi
1.1 misha 6838:
1.8 moko 6839: # Response file support.
6840: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6841: nm_file_list_spec='@'
6842: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6843: nm_file_list_spec='@'
1.1 misha 6844: fi
6845:
6846:
6847:
6848:
6849:
6850:
6851:
6852:
6853:
6854:
6855:
6856:
6857:
6858:
6859:
6860:
6861:
6862:
6863:
6864:
6865:
1.8 moko 6866:
6867:
6868:
6869:
6870:
6871:
1.22 moko 6872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6873: $as_echo_n "checking for sysroot... " >&6; }
1.8 moko 6874:
1.22 moko 6875: # Check whether --with-sysroot was given.
6876: if test "${with_sysroot+set}" = set; then :
6877: withval=$with_sysroot;
1.1 misha 6878: else
1.8 moko 6879: with_sysroot=no
1.22 moko 6880: fi
6881:
1.1 misha 6882:
1.8 moko 6883: lt_sysroot=
6884: case ${with_sysroot} in #(
6885: yes)
6886: if test "$GCC" = yes; then
6887: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6888: fi
6889: ;; #(
6890: /*)
6891: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6892: ;; #(
6893: no|'')
6894: ;; #(
6895: *)
1.22 moko 6896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6897: $as_echo "${with_sysroot}" >&6; }
6898: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.8 moko 6899: ;;
6900: esac
6901:
1.22 moko 6902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6903: $as_echo "${lt_sysroot:-no}" >&6; }
1.8 moko 6904:
6905:
6906:
6907:
6908:
1.22 moko 6909: # Check whether --enable-libtool-lock was given.
6910: if test "${enable_libtool_lock+set}" = set; then :
6911: enableval=$enable_libtool_lock;
6912: fi
1.1 misha 6913:
1.8 moko 6914: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 misha 6915:
1.8 moko 6916: # Some flags need to be propagated to the compiler or linker for good
6917: # libtool support.
6918: case $host in
6919: ia64-*-hpux*)
6920: # Find out which ABI we are using.
6921: echo 'int i;' > conftest.$ac_ext
1.22 moko 6922: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6923: (eval $ac_compile) 2>&5
6924: ac_status=$?
1.22 moko 6925: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926: test $ac_status = 0; }; then
1.8 moko 6927: case `/usr/bin/file conftest.$ac_objext` in
6928: *ELF-32*)
6929: HPUX_IA64_MODE="32"
6930: ;;
6931: *ELF-64*)
6932: HPUX_IA64_MODE="64"
6933: ;;
1.1 misha 6934: esac
6935: fi
1.8 moko 6936: rm -rf conftest*
6937: ;;
6938: *-*-irix6*)
6939: # Find out which ABI we are using.
6940: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.22 moko 6941: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6942: (eval $ac_compile) 2>&5
1.1 misha 6943: ac_status=$?
1.22 moko 6944: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945: test $ac_status = 0; }; then
1.8 moko 6946: if test "$lt_cv_prog_gnu_ld" = yes; then
6947: case `/usr/bin/file conftest.$ac_objext` in
6948: *32-bit*)
6949: LD="${LD-ld} -melf32bsmip"
6950: ;;
6951: *N32*)
6952: LD="${LD-ld} -melf32bmipn32"
6953: ;;
6954: *64-bit*)
6955: LD="${LD-ld} -melf64bmip"
6956: ;;
6957: esac
6958: else
6959: case `/usr/bin/file conftest.$ac_objext` in
6960: *32-bit*)
6961: LD="${LD-ld} -32"
6962: ;;
6963: *N32*)
6964: LD="${LD-ld} -n32"
6965: ;;
6966: *64-bit*)
6967: LD="${LD-ld} -64"
6968: ;;
6969: esac
6970: fi
6971: fi
6972: rm -rf conftest*
6973: ;;
6974:
6975: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6976: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6977: # Find out which ABI we are using.
6978: echo 'int i;' > conftest.$ac_ext
1.22 moko 6979: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6980: (eval $ac_compile) 2>&5
1.1 misha 6981: ac_status=$?
1.22 moko 6982: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983: test $ac_status = 0; }; then
1.8 moko 6984: case `/usr/bin/file conftest.o` in
6985: *32-bit*)
6986: case $host in
6987: x86_64-*kfreebsd*-gnu)
6988: LD="${LD-ld} -m elf_i386_fbsd"
6989: ;;
6990: x86_64-*linux*)
6991: LD="${LD-ld} -m elf_i386"
6992: ;;
6993: ppc64-*linux*|powerpc64-*linux*)
6994: LD="${LD-ld} -m elf32ppclinux"
6995: ;;
6996: s390x-*linux*)
6997: LD="${LD-ld} -m elf_s390"
6998: ;;
6999: sparc64-*linux*)
7000: LD="${LD-ld} -m elf32_sparc"
7001: ;;
7002: esac
1.1 misha 7003: ;;
1.8 moko 7004: *64-bit*)
7005: case $host in
7006: x86_64-*kfreebsd*-gnu)
7007: LD="${LD-ld} -m elf_x86_64_fbsd"
7008: ;;
7009: x86_64-*linux*)
7010: LD="${LD-ld} -m elf_x86_64"
7011: ;;
7012: ppc*-*linux*|powerpc*-*linux*)
7013: LD="${LD-ld} -m elf64ppc"
7014: ;;
7015: s390*-*linux*|s390*-*tpf*)
7016: LD="${LD-ld} -m elf64_s390"
7017: ;;
7018: sparc*-*linux*)
7019: LD="${LD-ld} -m elf64_sparc"
7020: ;;
7021: esac
1.1 misha 7022: ;;
1.8 moko 7023: esac
1.1 misha 7024: fi
1.8 moko 7025: rm -rf conftest*
7026: ;;
1.1 misha 7027:
1.8 moko 7028: *-*-sco3.2v5*)
7029: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7030: SAVE_CFLAGS="$CFLAGS"
7031: CFLAGS="$CFLAGS -belf"
1.22 moko 7032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7033: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7034: if ${lt_cv_cc_needs_belf+:} false; then :
7035: $as_echo_n "(cached) " >&6
1.1 misha 7036: else
1.8 moko 7037: ac_ext=c
7038: ac_cpp='$CPP $CPPFLAGS'
7039: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7040: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7041: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7042:
1.22 moko 7043: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 7044: /* end confdefs.h. */
7045:
7046: int
7047: main ()
7048: {
7049:
7050: ;
7051: return 0;
7052: }
7053: _ACEOF
1.22 moko 7054: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 7055: lt_cv_cc_needs_belf=yes
1.1 misha 7056: else
1.22 moko 7057: lt_cv_cc_needs_belf=no
1.1 misha 7058: fi
1.22 moko 7059: rm -f core conftest.err conftest.$ac_objext \
7060: conftest$ac_exeext conftest.$ac_ext
1.8 moko 7061: ac_ext=c
7062: ac_cpp='$CPP $CPPFLAGS'
7063: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 7066:
7067: fi
1.22 moko 7068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7069: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.8 moko 7070: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7071: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7072: CFLAGS="$SAVE_CFLAGS"
7073: fi
7074: ;;
7075: *-*solaris*)
7076: # Find out which ABI we are using.
7077: echo 'int i;' > conftest.$ac_ext
1.22 moko 7078: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 7079: (eval $ac_compile) 2>&5
7080: ac_status=$?
1.22 moko 7081: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7082: test $ac_status = 0; }; then
1.8 moko 7083: case `/usr/bin/file conftest.o` in
7084: *64-bit*)
7085: case $lt_cv_prog_gnu_ld in
7086: yes*)
7087: case $host in
7088: i?86-*-solaris*)
7089: LD="${LD-ld} -m elf_x86_64"
7090: ;;
7091: sparc*-*-solaris*)
7092: LD="${LD-ld} -m elf64_sparc"
7093: ;;
7094: esac
7095: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7096: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7097: LD="${LD-ld}_sol2"
7098: fi
7099: ;;
7100: *)
7101: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7102: LD="${LD-ld} -64"
7103: fi
7104: ;;
7105: esac
7106: ;;
7107: esac
7108: fi
7109: rm -rf conftest*
7110: ;;
7111: esac
1.1 misha 7112:
1.8 moko 7113: need_locks="$enable_libtool_lock"
1.1 misha 7114:
1.8 moko 7115: if test -n "$ac_tool_prefix"; then
7116: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7117: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.22 moko 7118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119: $as_echo_n "checking for $ac_word... " >&6; }
7120: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7121: $as_echo_n "(cached) " >&6
1.1 misha 7122: else
1.8 moko 7123: if test -n "$MANIFEST_TOOL"; then
7124: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7125: else
7126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127: for as_dir in $PATH
7128: do
7129: IFS=$as_save_IFS
7130: test -z "$as_dir" && as_dir=.
1.22 moko 7131: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7132: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7133: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.22 moko 7134: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7135: break 2
7136: fi
7137: done
1.22 moko 7138: done
7139: IFS=$as_save_IFS
1.1 misha 7140:
1.8 moko 7141: fi
7142: fi
7143: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7144: if test -n "$MANIFEST_TOOL"; then
1.22 moko 7145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7146: $as_echo "$MANIFEST_TOOL" >&6; }
1.1 misha 7147: else
1.22 moko 7148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149: $as_echo "no" >&6; }
1.1 misha 7150: fi
7151:
1.22 moko 7152:
1.1 misha 7153: fi
1.8 moko 7154: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7155: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7156: # Extract the first word of "mt", so it can be a program name with args.
7157: set dummy mt; ac_word=$2
1.22 moko 7158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159: $as_echo_n "checking for $ac_word... " >&6; }
7160: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7161: $as_echo_n "(cached) " >&6
1.8 moko 7162: else
7163: if test -n "$ac_ct_MANIFEST_TOOL"; then
7164: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7165: else
7166: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167: for as_dir in $PATH
7168: do
7169: IFS=$as_save_IFS
7170: test -z "$as_dir" && as_dir=.
1.22 moko 7171: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7172: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7173: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.22 moko 7174: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7175: break 2
7176: fi
7177: done
1.22 moko 7178: done
7179: IFS=$as_save_IFS
1.1 misha 7180:
1.8 moko 7181: fi
7182: fi
7183: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7184: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.22 moko 7185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7186: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.8 moko 7187: else
1.22 moko 7188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189: $as_echo "no" >&6; }
1.8 moko 7190: fi
7191:
1.22 moko 7192: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7193: MANIFEST_TOOL=":"
7194: else
7195: case $cross_compiling:$ac_tool_warned in
7196: yes:)
7197: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199: ac_tool_warned=yes ;;
7200: esac
7201: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7202: fi
1.8 moko 7203: else
7204: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7205: fi
1.1 misha 7206:
1.8 moko 7207: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.22 moko 7208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7209: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7210: if ${lt_cv_path_mainfest_tool+:} false; then :
7211: $as_echo_n "(cached) " >&6
1.1 misha 7212: else
1.8 moko 7213: lt_cv_path_mainfest_tool=no
7214: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7215: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7216: cat conftest.err >&5
7217: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7218: lt_cv_path_mainfest_tool=yes
7219: fi
7220: rm -f conftest*
7221: fi
1.22 moko 7222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7223: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.8 moko 7224: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7225: MANIFEST_TOOL=:
7226: fi
7227:
7228:
7229:
1.1 misha 7230:
7231:
7232:
1.8 moko 7233: case $host_os in
7234: rhapsody* | darwin*)
7235: if test -n "$ac_tool_prefix"; then
7236: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7237: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.22 moko 7238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239: $as_echo_n "checking for $ac_word... " >&6; }
7240: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7241: $as_echo_n "(cached) " >&6
1.1 misha 7242: else
1.8 moko 7243: if test -n "$DSYMUTIL"; then
7244: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7245: else
7246: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247: for as_dir in $PATH
7248: do
7249: IFS=$as_save_IFS
7250: test -z "$as_dir" && as_dir=.
1.22 moko 7251: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7252: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7253: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.22 moko 7254: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7255: break 2
7256: fi
7257: done
1.22 moko 7258: done
7259: IFS=$as_save_IFS
1.1 misha 7260:
7261: fi
1.8 moko 7262: fi
7263: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7264: if test -n "$DSYMUTIL"; then
1.22 moko 7265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7266: $as_echo "$DSYMUTIL" >&6; }
1.8 moko 7267: else
1.22 moko 7268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269: $as_echo "no" >&6; }
1.8 moko 7270: fi
1.1 misha 7271:
1.22 moko 7272:
1.1 misha 7273: fi
1.8 moko 7274: if test -z "$ac_cv_prog_DSYMUTIL"; then
7275: ac_ct_DSYMUTIL=$DSYMUTIL
7276: # Extract the first word of "dsymutil", so it can be a program name with args.
7277: set dummy dsymutil; ac_word=$2
1.22 moko 7278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279: $as_echo_n "checking for $ac_word... " >&6; }
7280: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7281: $as_echo_n "(cached) " >&6
1.8 moko 7282: else
7283: if test -n "$ac_ct_DSYMUTIL"; then
7284: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7285: else
7286: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287: for as_dir in $PATH
7288: do
7289: IFS=$as_save_IFS
7290: test -z "$as_dir" && as_dir=.
1.22 moko 7291: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7292: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7293: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.22 moko 7294: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7295: break 2
7296: fi
7297: done
1.22 moko 7298: done
7299: IFS=$as_save_IFS
1.1 misha 7300:
1.8 moko 7301: fi
7302: fi
7303: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7304: if test -n "$ac_ct_DSYMUTIL"; then
1.22 moko 7305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7306: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.1 misha 7307: else
1.22 moko 7308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309: $as_echo "no" >&6; }
1.1 misha 7310: fi
7311:
1.22 moko 7312: if test "x$ac_ct_DSYMUTIL" = x; then
7313: DSYMUTIL=":"
7314: else
7315: case $cross_compiling:$ac_tool_warned in
7316: yes:)
7317: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319: ac_tool_warned=yes ;;
7320: esac
7321: DSYMUTIL=$ac_ct_DSYMUTIL
7322: fi
1.1 misha 7323: else
1.8 moko 7324: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.1 misha 7325: fi
7326:
1.8 moko 7327: if test -n "$ac_tool_prefix"; then
7328: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7329: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.22 moko 7330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331: $as_echo_n "checking for $ac_word... " >&6; }
7332: if ${ac_cv_prog_NMEDIT+:} false; then :
7333: $as_echo_n "(cached) " >&6
1.8 moko 7334: else
7335: if test -n "$NMEDIT"; then
7336: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7337: else
7338: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339: for as_dir in $PATH
7340: do
7341: IFS=$as_save_IFS
7342: test -z "$as_dir" && as_dir=.
1.22 moko 7343: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7344: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7345: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.22 moko 7346: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7347: break 2
7348: fi
7349: done
1.22 moko 7350: done
7351: IFS=$as_save_IFS
1.1 misha 7352:
1.8 moko 7353: fi
7354: fi
7355: NMEDIT=$ac_cv_prog_NMEDIT
7356: if test -n "$NMEDIT"; then
1.22 moko 7357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7358: $as_echo "$NMEDIT" >&6; }
1.8 moko 7359: else
1.22 moko 7360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361: $as_echo "no" >&6; }
1.8 moko 7362: fi
1.1 misha 7363:
1.22 moko 7364:
1.8 moko 7365: fi
7366: if test -z "$ac_cv_prog_NMEDIT"; then
7367: ac_ct_NMEDIT=$NMEDIT
7368: # Extract the first word of "nmedit", so it can be a program name with args.
7369: set dummy nmedit; ac_word=$2
1.22 moko 7370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371: $as_echo_n "checking for $ac_word... " >&6; }
7372: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7373: $as_echo_n "(cached) " >&6
1.8 moko 7374: else
7375: if test -n "$ac_ct_NMEDIT"; then
7376: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.1 misha 7377: else
1.8 moko 7378: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379: for as_dir in $PATH
7380: do
7381: IFS=$as_save_IFS
7382: test -z "$as_dir" && as_dir=.
1.22 moko 7383: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7384: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7385: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.22 moko 7386: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7387: break 2
7388: fi
7389: done
1.22 moko 7390: done
7391: IFS=$as_save_IFS
1.1 misha 7392:
1.8 moko 7393: fi
7394: fi
7395: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7396: if test -n "$ac_ct_NMEDIT"; then
1.22 moko 7397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7398: $as_echo "$ac_ct_NMEDIT" >&6; }
1.8 moko 7399: else
1.22 moko 7400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401: $as_echo "no" >&6; }
1.1 misha 7402: fi
7403:
1.22 moko 7404: if test "x$ac_ct_NMEDIT" = x; then
7405: NMEDIT=":"
7406: else
7407: case $cross_compiling:$ac_tool_warned in
7408: yes:)
7409: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411: ac_tool_warned=yes ;;
7412: esac
7413: NMEDIT=$ac_ct_NMEDIT
7414: fi
1.8 moko 7415: else
7416: NMEDIT="$ac_cv_prog_NMEDIT"
1.1 misha 7417: fi
7418:
1.8 moko 7419: if test -n "$ac_tool_prefix"; then
7420: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7421: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.22 moko 7422: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423: $as_echo_n "checking for $ac_word... " >&6; }
7424: if ${ac_cv_prog_LIPO+:} false; then :
7425: $as_echo_n "(cached) " >&6
1.8 moko 7426: else
7427: if test -n "$LIPO"; then
7428: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7429: else
7430: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431: for as_dir in $PATH
7432: do
7433: IFS=$as_save_IFS
7434: test -z "$as_dir" && as_dir=.
1.22 moko 7435: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7436: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7437: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.22 moko 7438: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7439: break 2
7440: fi
7441: done
1.22 moko 7442: done
7443: IFS=$as_save_IFS
1.1 misha 7444:
1.8 moko 7445: fi
7446: fi
7447: LIPO=$ac_cv_prog_LIPO
7448: if test -n "$LIPO"; then
1.22 moko 7449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7450: $as_echo "$LIPO" >&6; }
1.8 moko 7451: else
1.22 moko 7452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453: $as_echo "no" >&6; }
1.8 moko 7454: fi
1.1 misha 7455:
1.22 moko 7456:
1.8 moko 7457: fi
7458: if test -z "$ac_cv_prog_LIPO"; then
7459: ac_ct_LIPO=$LIPO
7460: # Extract the first word of "lipo", so it can be a program name with args.
7461: set dummy lipo; ac_word=$2
1.22 moko 7462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463: $as_echo_n "checking for $ac_word... " >&6; }
7464: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7465: $as_echo_n "(cached) " >&6
1.8 moko 7466: else
7467: if test -n "$ac_ct_LIPO"; then
7468: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7469: else
7470: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471: for as_dir in $PATH
7472: do
7473: IFS=$as_save_IFS
7474: test -z "$as_dir" && as_dir=.
1.22 moko 7475: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7476: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7477: ac_cv_prog_ac_ct_LIPO="lipo"
1.22 moko 7478: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7479: break 2
1.1 misha 7480: fi
1.8 moko 7481: done
1.22 moko 7482: done
7483: IFS=$as_save_IFS
1.8 moko 7484:
7485: fi
7486: fi
7487: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7488: if test -n "$ac_ct_LIPO"; then
1.22 moko 7489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7490: $as_echo "$ac_ct_LIPO" >&6; }
1.8 moko 7491: else
1.22 moko 7492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493: $as_echo "no" >&6; }
1.8 moko 7494: fi
7495:
1.22 moko 7496: if test "x$ac_ct_LIPO" = x; then
7497: LIPO=":"
7498: else
7499: case $cross_compiling:$ac_tool_warned in
7500: yes:)
7501: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503: ac_tool_warned=yes ;;
7504: esac
7505: LIPO=$ac_ct_LIPO
7506: fi
1.8 moko 7507: else
7508: LIPO="$ac_cv_prog_LIPO"
7509: fi
1.1 misha 7510:
1.8 moko 7511: if test -n "$ac_tool_prefix"; then
7512: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7513: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.22 moko 7514: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515: $as_echo_n "checking for $ac_word... " >&6; }
7516: if ${ac_cv_prog_OTOOL+:} false; then :
7517: $as_echo_n "(cached) " >&6
1.8 moko 7518: else
7519: if test -n "$OTOOL"; then
7520: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7521: else
7522: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523: for as_dir in $PATH
7524: do
7525: IFS=$as_save_IFS
7526: test -z "$as_dir" && as_dir=.
1.22 moko 7527: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7528: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7529: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.22 moko 7530: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7531: break 2
7532: fi
7533: done
1.22 moko 7534: done
7535: IFS=$as_save_IFS
1.1 misha 7536:
1.8 moko 7537: fi
7538: fi
7539: OTOOL=$ac_cv_prog_OTOOL
7540: if test -n "$OTOOL"; then
1.22 moko 7541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7542: $as_echo "$OTOOL" >&6; }
1.8 moko 7543: else
1.22 moko 7544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545: $as_echo "no" >&6; }
1.8 moko 7546: fi
1.1 misha 7547:
1.22 moko 7548:
1.8 moko 7549: fi
7550: if test -z "$ac_cv_prog_OTOOL"; then
7551: ac_ct_OTOOL=$OTOOL
7552: # Extract the first word of "otool", so it can be a program name with args.
7553: set dummy otool; ac_word=$2
1.22 moko 7554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555: $as_echo_n "checking for $ac_word... " >&6; }
7556: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7557: $as_echo_n "(cached) " >&6
1.8 moko 7558: else
7559: if test -n "$ac_ct_OTOOL"; then
7560: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7561: else
7562: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563: for as_dir in $PATH
7564: do
7565: IFS=$as_save_IFS
7566: test -z "$as_dir" && as_dir=.
1.22 moko 7567: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7568: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7569: ac_cv_prog_ac_ct_OTOOL="otool"
1.22 moko 7570: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7571: break 2
7572: fi
7573: done
1.22 moko 7574: done
7575: IFS=$as_save_IFS
1.1 misha 7576:
1.8 moko 7577: fi
7578: fi
7579: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7580: if test -n "$ac_ct_OTOOL"; then
1.22 moko 7581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7582: $as_echo "$ac_ct_OTOOL" >&6; }
1.8 moko 7583: else
1.22 moko 7584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585: $as_echo "no" >&6; }
1.8 moko 7586: fi
1.1 misha 7587:
1.22 moko 7588: if test "x$ac_ct_OTOOL" = x; then
7589: OTOOL=":"
7590: else
7591: case $cross_compiling:$ac_tool_warned in
7592: yes:)
7593: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595: ac_tool_warned=yes ;;
7596: esac
7597: OTOOL=$ac_ct_OTOOL
7598: fi
1.8 moko 7599: else
7600: OTOOL="$ac_cv_prog_OTOOL"
7601: fi
1.1 misha 7602:
1.8 moko 7603: if test -n "$ac_tool_prefix"; then
7604: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7605: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.22 moko 7606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607: $as_echo_n "checking for $ac_word... " >&6; }
7608: if ${ac_cv_prog_OTOOL64+:} false; then :
7609: $as_echo_n "(cached) " >&6
1.8 moko 7610: else
7611: if test -n "$OTOOL64"; then
7612: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7613: else
7614: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615: for as_dir in $PATH
7616: do
7617: IFS=$as_save_IFS
7618: test -z "$as_dir" && as_dir=.
1.22 moko 7619: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7620: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7621: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.22 moko 7622: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7623: break 2
7624: fi
7625: done
1.22 moko 7626: done
7627: IFS=$as_save_IFS
1.1 misha 7628:
1.8 moko 7629: fi
7630: fi
7631: OTOOL64=$ac_cv_prog_OTOOL64
7632: if test -n "$OTOOL64"; then
1.22 moko 7633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7634: $as_echo "$OTOOL64" >&6; }
1.8 moko 7635: else
1.22 moko 7636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637: $as_echo "no" >&6; }
1.8 moko 7638: fi
1.1 misha 7639:
1.22 moko 7640:
1.8 moko 7641: fi
7642: if test -z "$ac_cv_prog_OTOOL64"; then
7643: ac_ct_OTOOL64=$OTOOL64
7644: # Extract the first word of "otool64", so it can be a program name with args.
7645: set dummy otool64; ac_word=$2
1.22 moko 7646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647: $as_echo_n "checking for $ac_word... " >&6; }
7648: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7649: $as_echo_n "(cached) " >&6
1.8 moko 7650: else
7651: if test -n "$ac_ct_OTOOL64"; then
7652: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7653: else
7654: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655: for as_dir in $PATH
7656: do
7657: IFS=$as_save_IFS
7658: test -z "$as_dir" && as_dir=.
1.22 moko 7659: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 7660: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 7661: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.22 moko 7662: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7663: break 2
7664: fi
7665: done
1.22 moko 7666: done
7667: IFS=$as_save_IFS
1.1 misha 7668:
1.8 moko 7669: fi
7670: fi
7671: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7672: if test -n "$ac_ct_OTOOL64"; then
1.22 moko 7673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7674: $as_echo "$ac_ct_OTOOL64" >&6; }
1.8 moko 7675: else
1.22 moko 7676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677: $as_echo "no" >&6; }
1.8 moko 7678: fi
1.1 misha 7679:
1.22 moko 7680: if test "x$ac_ct_OTOOL64" = x; then
7681: OTOOL64=":"
7682: else
7683: case $cross_compiling:$ac_tool_warned in
7684: yes:)
7685: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687: ac_tool_warned=yes ;;
7688: esac
7689: OTOOL64=$ac_ct_OTOOL64
7690: fi
1.8 moko 7691: else
7692: OTOOL64="$ac_cv_prog_OTOOL64"
7693: fi
1.1 misha 7694:
7695:
7696:
7697:
7698:
7699:
7700:
7701:
7702:
7703:
7704:
7705:
7706:
7707:
7708:
7709:
7710:
7711:
7712:
7713:
7714:
7715:
7716:
7717:
7718:
7719:
7720:
1.22 moko 7721: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7722: $as_echo_n "checking for -single_module linker flag... " >&6; }
7723: if ${lt_cv_apple_cc_single_mod+:} false; then :
7724: $as_echo_n "(cached) " >&6
1.8 moko 7725: else
7726: lt_cv_apple_cc_single_mod=no
7727: if test -z "${LT_MULTI_MODULE}"; then
7728: # By default we will add the -single_module flag. You can override
7729: # by either setting the environment variable LT_MULTI_MODULE
7730: # non-empty at configure time, or by adding -multi_module to the
7731: # link flags.
7732: rm -rf libconftest.dylib*
7733: echo "int foo(void){return 1;}" > conftest.c
7734: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7735: -dynamiclib -Wl,-single_module conftest.c" >&5
7736: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7737: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7738: _lt_result=$?
7739: # If there is a non-empty error log, and "single_module"
7740: # appears in it, assume the flag caused a linker warning
7741: if test -s conftest.err && $GREP single_module conftest.err; then
7742: cat conftest.err >&5
7743: # Otherwise, if the output was created with a 0 exit code from
7744: # the compiler, it worked.
7745: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7746: lt_cv_apple_cc_single_mod=yes
7747: else
7748: cat conftest.err >&5
7749: fi
7750: rm -rf libconftest.dylib*
7751: rm -f conftest.*
7752: fi
7753: fi
1.22 moko 7754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7755: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1 misha 7756:
1.22 moko 7757: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7758: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7759: if ${lt_cv_ld_exported_symbols_list+:} false; then :
7760: $as_echo_n "(cached) " >&6
1.8 moko 7761: else
7762: lt_cv_ld_exported_symbols_list=no
7763: save_LDFLAGS=$LDFLAGS
7764: echo "_main" > conftest.sym
7765: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.22 moko 7766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7767: /* end confdefs.h. */
1.1 misha 7768:
1.8 moko 7769: int
7770: main ()
7771: {
1.1 misha 7772:
1.8 moko 7773: ;
7774: return 0;
7775: }
7776: _ACEOF
1.22 moko 7777: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 7778: lt_cv_ld_exported_symbols_list=yes
7779: else
1.22 moko 7780: lt_cv_ld_exported_symbols_list=no
1.8 moko 7781: fi
1.22 moko 7782: rm -f core conftest.err conftest.$ac_objext \
7783: conftest$ac_exeext conftest.$ac_ext
1.8 moko 7784: LDFLAGS="$save_LDFLAGS"
1.1 misha 7785:
1.8 moko 7786: fi
1.22 moko 7787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7788: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1 misha 7789:
1.22 moko 7790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7791: $as_echo_n "checking for -force_load linker flag... " >&6; }
7792: if ${lt_cv_ld_force_load+:} false; then :
7793: $as_echo_n "(cached) " >&6
1.8 moko 7794: else
7795: lt_cv_ld_force_load=no
7796: cat > conftest.c << _LT_EOF
7797: int forced_loaded() { return 2;}
7798: _LT_EOF
7799: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7800: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7801: echo "$AR cru libconftest.a conftest.o" >&5
7802: $AR cru libconftest.a conftest.o 2>&5
7803: echo "$RANLIB libconftest.a" >&5
7804: $RANLIB libconftest.a 2>&5
7805: cat > conftest.c << _LT_EOF
7806: int main() { return 0;}
7807: _LT_EOF
7808: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7809: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7810: _lt_result=$?
7811: if test -s conftest.err && $GREP force_load conftest.err; then
7812: cat conftest.err >&5
7813: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7814: lt_cv_ld_force_load=yes
7815: else
7816: cat conftest.err >&5
7817: fi
7818: rm -f conftest.err libconftest.a conftest conftest.c
7819: rm -rf conftest.dSYM
1.1 misha 7820:
1.8 moko 7821: fi
1.22 moko 7822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7823: $as_echo "$lt_cv_ld_force_load" >&6; }
1.8 moko 7824: case $host_os in
7825: rhapsody* | darwin1.[012])
7826: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7827: darwin1.*)
7828: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7829: darwin*) # darwin 5.x on
7830: # if running on 10.5 or later, the deployment target defaults
7831: # to the OS version, if on x86, and 10.4, the deployment
7832: # target defaults to 10.4. Don't you love it?
7833: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7834: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7835: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7836: 10.[012]*)
7837: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7838: 10.*)
7839: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7840: esac
1.1 misha 7841: ;;
1.8 moko 7842: esac
7843: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7844: _lt_dar_single_mod='$single_module'
7845: fi
7846: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7847: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7848: else
7849: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1 misha 7850: fi
1.8 moko 7851: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7852: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.1 misha 7853: else
1.8 moko 7854: _lt_dsymutil=
1.1 misha 7855: fi
7856: ;;
1.8 moko 7857: esac
1.1 misha 7858:
1.8 moko 7859: ac_ext=c
7860: ac_cpp='$CPP $CPPFLAGS'
7861: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.22 moko 7864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7865: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.8 moko 7866: # On Suns, sometimes $CPP names a directory.
7867: if test -n "$CPP" && test -d "$CPP"; then
7868: CPP=
7869: fi
7870: if test -z "$CPP"; then
1.22 moko 7871: if ${ac_cv_prog_CPP+:} false; then :
7872: $as_echo_n "(cached) " >&6
1.8 moko 7873: else
7874: # Double quotes because CPP needs to be expanded
7875: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7876: do
7877: ac_preproc_ok=false
7878: for ac_c_preproc_warn_flag in '' yes
7879: do
7880: # Use a header file that comes with gcc, so configuring glibc
7881: # with a fresh cross-compiler works.
7882: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7883: # <limits.h> exists even on freestanding compilers.
7884: # On the NeXT, cc -E runs the code through the compiler's parser,
7885: # not just through cpp. "Syntax error" is here to catch this case.
1.22 moko 7886: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7887: /* end confdefs.h. */
7888: #ifdef __STDC__
7889: # include <limits.h>
7890: #else
7891: # include <assert.h>
7892: #endif
7893: Syntax error
7894: _ACEOF
1.22 moko 7895: if ac_fn_c_try_cpp "$LINENO"; then :
7896:
1.11 moko 7897: else
1.8 moko 7898: # Broken: fails on valid input.
7899: continue
7900: fi
1.22 moko 7901: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misha 7902:
1.22 moko 7903: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 7904: # can be detected and how.
1.22 moko 7905: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7906: /* end confdefs.h. */
7907: #include <ac_nonexistent.h>
7908: _ACEOF
1.22 moko 7909: if ac_fn_c_try_cpp "$LINENO"; then :
1.8 moko 7910: # Broken: success on invalid input.
7911: continue
7912: else
7913: # Passes both tests.
7914: ac_preproc_ok=:
7915: break
1.1 misha 7916: fi
1.22 moko 7917: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misha 7918:
1.8 moko 7919: done
7920: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.22 moko 7921: rm -f conftest.i conftest.err conftest.$ac_ext
7922: if $ac_preproc_ok; then :
1.8 moko 7923: break
1.1 misha 7924: fi
7925:
1.8 moko 7926: done
7927: ac_cv_prog_CPP=$CPP
1.1 misha 7928:
1.8 moko 7929: fi
7930: CPP=$ac_cv_prog_CPP
7931: else
7932: ac_cv_prog_CPP=$CPP
7933: fi
1.22 moko 7934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7935: $as_echo "$CPP" >&6; }
1.8 moko 7936: ac_preproc_ok=false
7937: for ac_c_preproc_warn_flag in '' yes
7938: do
7939: # Use a header file that comes with gcc, so configuring glibc
7940: # with a fresh cross-compiler works.
7941: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7942: # <limits.h> exists even on freestanding compilers.
7943: # On the NeXT, cc -E runs the code through the compiler's parser,
7944: # not just through cpp. "Syntax error" is here to catch this case.
1.22 moko 7945: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7946: /* end confdefs.h. */
7947: #ifdef __STDC__
7948: # include <limits.h>
7949: #else
7950: # include <assert.h>
7951: #endif
7952: Syntax error
7953: _ACEOF
1.22 moko 7954: if ac_fn_c_try_cpp "$LINENO"; then :
7955:
1.11 moko 7956: else
1.8 moko 7957: # Broken: fails on valid input.
7958: continue
7959: fi
1.22 moko 7960: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misha 7961:
1.22 moko 7962: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 7963: # can be detected and how.
1.22 moko 7964: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7965: /* end confdefs.h. */
7966: #include <ac_nonexistent.h>
7967: _ACEOF
1.22 moko 7968: if ac_fn_c_try_cpp "$LINENO"; then :
1.8 moko 7969: # Broken: success on invalid input.
7970: continue
7971: else
7972: # Passes both tests.
7973: ac_preproc_ok=:
7974: break
7975: fi
1.22 moko 7976: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 7977:
7978: done
7979: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.22 moko 7980: rm -f conftest.i conftest.err conftest.$ac_ext
7981: if $ac_preproc_ok; then :
7982:
1.8 moko 7983: else
1.22 moko 7984: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7985: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7986: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7987: See \`config.log' for more details" "$LINENO" 5; }
1.8 moko 7988: fi
1.1 misha 7989:
1.8 moko 7990: ac_ext=c
7991: ac_cpp='$CPP $CPPFLAGS'
7992: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 7995:
7996:
1.22 moko 7997: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7998: $as_echo_n "checking for ANSI C header files... " >&6; }
7999: if ${ac_cv_header_stdc+:} false; then :
8000: $as_echo_n "(cached) " >&6
1.8 moko 8001: else
1.22 moko 8002: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 8003: /* end confdefs.h. */
8004: #include <stdlib.h>
8005: #include <stdarg.h>
8006: #include <string.h>
8007: #include <float.h>
1.1 misha 8008:
1.8 moko 8009: int
8010: main ()
8011: {
1.1 misha 8012:
1.8 moko 8013: ;
8014: return 0;
8015: }
8016: _ACEOF
1.22 moko 8017: if ac_fn_c_try_compile "$LINENO"; then :
1.8 moko 8018: ac_cv_header_stdc=yes
8019: else
1.22 moko 8020: ac_cv_header_stdc=no
1.8 moko 8021: fi
1.22 moko 8022: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 8023:
1.8 moko 8024: if test $ac_cv_header_stdc = yes; then
8025: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.22 moko 8026: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 8027: /* end confdefs.h. */
8028: #include <string.h>
8029:
8030: _ACEOF
8031: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.22 moko 8032: $EGREP "memchr" >/dev/null 2>&1; then :
8033:
1.8 moko 8034: else
8035: ac_cv_header_stdc=no
8036: fi
8037: rm -f conftest*
8038:
8039: fi
8040:
8041: if test $ac_cv_header_stdc = yes; then
8042: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.22 moko 8043: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 8044: /* end confdefs.h. */
8045: #include <stdlib.h>
8046:
8047: _ACEOF
8048: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.22 moko 8049: $EGREP "free" >/dev/null 2>&1; then :
8050:
1.8 moko 8051: else
8052: ac_cv_header_stdc=no
8053: fi
8054: rm -f conftest*
8055:
8056: fi
1.1 misha 8057:
1.8 moko 8058: if test $ac_cv_header_stdc = yes; then
8059: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.22 moko 8060: if test "$cross_compiling" = yes; then :
1.8 moko 8061: :
8062: else
1.22 moko 8063: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 8064: /* end confdefs.h. */
8065: #include <ctype.h>
1.22 moko 8066: #include <stdlib.h>
1.8 moko 8067: #if ((' ' & 0x0FF) == 0x020)
8068: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8069: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8070: #else
8071: # define ISLOWER(c) \
8072: (('a' <= (c) && (c) <= 'i') \
8073: || ('j' <= (c) && (c) <= 'r') \
8074: || ('s' <= (c) && (c) <= 'z'))
8075: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8076: #endif
1.1 misha 8077:
1.8 moko 8078: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8079: int
8080: main ()
8081: {
8082: int i;
8083: for (i = 0; i < 256; i++)
8084: if (XOR (islower (i), ISLOWER (i))
8085: || toupper (i) != TOUPPER (i))
1.22 moko 8086: return 2;
8087: return 0;
1.8 moko 8088: }
8089: _ACEOF
1.22 moko 8090: if ac_fn_c_try_run "$LINENO"; then :
8091:
1.11 moko 8092: else
1.22 moko 8093: ac_cv_header_stdc=no
1.8 moko 8094: fi
1.22 moko 8095: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8096: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.8 moko 8097: fi
1.22 moko 8098:
1.8 moko 8099: fi
8100: fi
1.22 moko 8101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8102: $as_echo "$ac_cv_header_stdc" >&6; }
1.8 moko 8103: if test $ac_cv_header_stdc = yes; then
1.1 misha 8104:
1.22 moko 8105: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 misha 8106:
1.8 moko 8107: fi
1.1 misha 8108:
1.8 moko 8109: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.11 moko 8110: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8111: inttypes.h stdint.h unistd.h
1.22 moko 8112: do :
8113: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8114: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8115: "
8116: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.11 moko 8117: cat >>confdefs.h <<_ACEOF
1.22 moko 8118: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.11 moko 8119: _ACEOF
8120:
8121: fi
8122:
8123: done
8124:
8125:
8126: for ac_header in dlfcn.h
1.22 moko 8127: do :
8128: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8129: "
8130: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.11 moko 8131: cat >>confdefs.h <<_ACEOF
1.22 moko 8132: #define HAVE_DLFCN_H 1
1.11 moko 8133: _ACEOF
8134:
8135: fi
8136:
8137: done
1.1 misha 8138:
8139:
8140:
1.8 moko 8141:
8142: func_stripname_cnf ()
1.1 misha 8143: {
1.8 moko 8144: case ${2} in
8145: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8146: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8147: esac
8148: } # func_stripname_cnf
8149:
8150:
8151:
8152:
8153:
8154: # Set options
1.22 moko 8155: # Check whether --enable-static was given.
8156: if test "${enable_static+set}" = set; then :
8157: enableval=$enable_static; p=${PACKAGE-default}
1.20 moko 8158: case $enableval in
8159: yes) enable_static=yes ;;
8160: no) enable_static=no ;;
8161: *)
8162: enable_static=no
8163: # Look at the argument we got. We use all the common list separators.
8164: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8165: for pkg in $enableval; do
8166: IFS="$lt_save_ifs"
8167: if test "X$pkg" = "X$p"; then
8168: enable_static=yes
8169: fi
8170: done
8171: IFS="$lt_save_ifs"
8172: ;;
8173: esac
8174: else
8175: enable_static=no
1.22 moko 8176: fi
8177:
1.20 moko 8178:
8179:
8180:
8181:
8182:
8183:
1.8 moko 8184: enable_dlopen=yes
1.13 moko 8185: enable_win32_dll=yes
1.8 moko 8186:
1.13 moko 8187: case $host in
8188: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8189: if test -n "$ac_tool_prefix"; then
8190: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8191: set dummy ${ac_tool_prefix}as; ac_word=$2
1.22 moko 8192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193: $as_echo_n "checking for $ac_word... " >&6; }
8194: if ${ac_cv_prog_AS+:} false; then :
8195: $as_echo_n "(cached) " >&6
1.13 moko 8196: else
8197: if test -n "$AS"; then
8198: ac_cv_prog_AS="$AS" # Let the user override the test.
8199: else
8200: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201: for as_dir in $PATH
8202: do
8203: IFS=$as_save_IFS
8204: test -z "$as_dir" && as_dir=.
1.22 moko 8205: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 8206: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13 moko 8207: ac_cv_prog_AS="${ac_tool_prefix}as"
1.22 moko 8208: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8209: break 2
8210: fi
8211: done
1.22 moko 8212: done
8213: IFS=$as_save_IFS
1.8 moko 8214:
1.13 moko 8215: fi
8216: fi
8217: AS=$ac_cv_prog_AS
8218: if test -n "$AS"; then
1.22 moko 8219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8220: $as_echo "$AS" >&6; }
1.13 moko 8221: else
1.22 moko 8222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223: $as_echo "no" >&6; }
1.13 moko 8224: fi
1.8 moko 8225:
1.22 moko 8226:
1.13 moko 8227: fi
8228: if test -z "$ac_cv_prog_AS"; then
8229: ac_ct_AS=$AS
8230: # Extract the first word of "as", so it can be a program name with args.
8231: set dummy as; ac_word=$2
1.22 moko 8232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233: $as_echo_n "checking for $ac_word... " >&6; }
8234: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8235: $as_echo_n "(cached) " >&6
1.13 moko 8236: else
8237: if test -n "$ac_ct_AS"; then
8238: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8239: else
8240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241: for as_dir in $PATH
8242: do
8243: IFS=$as_save_IFS
8244: test -z "$as_dir" && as_dir=.
1.22 moko 8245: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 8246: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13 moko 8247: ac_cv_prog_ac_ct_AS="as"
1.22 moko 8248: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8249: break 2
8250: fi
8251: done
1.22 moko 8252: done
8253: IFS=$as_save_IFS
1.8 moko 8254:
1.13 moko 8255: fi
8256: fi
8257: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8258: if test -n "$ac_ct_AS"; then
1.22 moko 8259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8260: $as_echo "$ac_ct_AS" >&6; }
1.13 moko 8261: else
1.22 moko 8262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263: $as_echo "no" >&6; }
1.13 moko 8264: fi
1.8 moko 8265:
1.22 moko 8266: if test "x$ac_ct_AS" = x; then
8267: AS="false"
8268: else
8269: case $cross_compiling:$ac_tool_warned in
8270: yes:)
8271: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8272: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8273: ac_tool_warned=yes ;;
8274: esac
8275: AS=$ac_ct_AS
8276: fi
1.13 moko 8277: else
8278: AS="$ac_cv_prog_AS"
8279: fi
1.1 misha 8280:
1.13 moko 8281: if test -n "$ac_tool_prefix"; then
8282: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8283: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.22 moko 8284: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285: $as_echo_n "checking for $ac_word... " >&6; }
8286: if ${ac_cv_prog_DLLTOOL+:} false; then :
8287: $as_echo_n "(cached) " >&6
1.13 moko 8288: else
8289: if test -n "$DLLTOOL"; then
8290: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.1 misha 8291: else
1.13 moko 8292: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293: for as_dir in $PATH
8294: do
8295: IFS=$as_save_IFS
8296: test -z "$as_dir" && as_dir=.
1.22 moko 8297: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 8298: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13 moko 8299: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.22 moko 8300: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8301: break 2
8302: fi
8303: done
1.22 moko 8304: done
8305: IFS=$as_save_IFS
1.13 moko 8306:
8307: fi
8308: fi
8309: DLLTOOL=$ac_cv_prog_DLLTOOL
8310: if test -n "$DLLTOOL"; then
1.22 moko 8311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8312: $as_echo "$DLLTOOL" >&6; }
1.13 moko 8313: else
1.22 moko 8314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315: $as_echo "no" >&6; }
1.13 moko 8316: fi
8317:
1.22 moko 8318:
1.13 moko 8319: fi
8320: if test -z "$ac_cv_prog_DLLTOOL"; then
8321: ac_ct_DLLTOOL=$DLLTOOL
8322: # Extract the first word of "dlltool", so it can be a program name with args.
8323: set dummy dlltool; ac_word=$2
1.22 moko 8324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325: $as_echo_n "checking for $ac_word... " >&6; }
8326: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8327: $as_echo_n "(cached) " >&6
1.13 moko 8328: else
8329: if test -n "$ac_ct_DLLTOOL"; then
8330: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8331: else
8332: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333: for as_dir in $PATH
8334: do
8335: IFS=$as_save_IFS
8336: test -z "$as_dir" && as_dir=.
1.22 moko 8337: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 8338: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13 moko 8339: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.22 moko 8340: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8341: break 2
8342: fi
8343: done
1.22 moko 8344: done
8345: IFS=$as_save_IFS
1.13 moko 8346:
8347: fi
8348: fi
8349: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8350: if test -n "$ac_ct_DLLTOOL"; then
1.22 moko 8351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8352: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.13 moko 8353: else
1.22 moko 8354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355: $as_echo "no" >&6; }
1.13 moko 8356: fi
8357:
1.22 moko 8358: if test "x$ac_ct_DLLTOOL" = x; then
8359: DLLTOOL="false"
8360: else
8361: case $cross_compiling:$ac_tool_warned in
8362: yes:)
8363: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8364: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8365: ac_tool_warned=yes ;;
8366: esac
8367: DLLTOOL=$ac_ct_DLLTOOL
8368: fi
1.13 moko 8369: else
8370: DLLTOOL="$ac_cv_prog_DLLTOOL"
8371: fi
8372:
8373: if test -n "$ac_tool_prefix"; then
8374: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8375: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.22 moko 8376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377: $as_echo_n "checking for $ac_word... " >&6; }
8378: if ${ac_cv_prog_OBJDUMP+:} false; then :
8379: $as_echo_n "(cached) " >&6
1.13 moko 8380: else
8381: if test -n "$OBJDUMP"; then
8382: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8383: else
8384: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385: for as_dir in $PATH
8386: do
8387: IFS=$as_save_IFS
8388: test -z "$as_dir" && as_dir=.
1.22 moko 8389: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 8390: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13 moko 8391: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.22 moko 8392: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8393: break 2
8394: fi
8395: done
1.22 moko 8396: done
8397: IFS=$as_save_IFS
1.13 moko 8398:
8399: fi
8400: fi
8401: OBJDUMP=$ac_cv_prog_OBJDUMP
8402: if test -n "$OBJDUMP"; then
1.22 moko 8403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8404: $as_echo "$OBJDUMP" >&6; }
1.13 moko 8405: else
1.22 moko 8406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407: $as_echo "no" >&6; }
1.13 moko 8408: fi
8409:
1.22 moko 8410:
1.13 moko 8411: fi
8412: if test -z "$ac_cv_prog_OBJDUMP"; then
8413: ac_ct_OBJDUMP=$OBJDUMP
8414: # Extract the first word of "objdump", so it can be a program name with args.
8415: set dummy objdump; ac_word=$2
1.22 moko 8416: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417: $as_echo_n "checking for $ac_word... " >&6; }
8418: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8419: $as_echo_n "(cached) " >&6
1.13 moko 8420: else
8421: if test -n "$ac_ct_OBJDUMP"; then
8422: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8423: else
8424: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425: for as_dir in $PATH
8426: do
8427: IFS=$as_save_IFS
8428: test -z "$as_dir" && as_dir=.
1.22 moko 8429: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 moko 8430: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13 moko 8431: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.22 moko 8432: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.13 moko 8433: break 2
8434: fi
8435: done
1.22 moko 8436: done
8437: IFS=$as_save_IFS
1.13 moko 8438:
8439: fi
8440: fi
8441: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8442: if test -n "$ac_ct_OBJDUMP"; then
1.22 moko 8443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8444: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.13 moko 8445: else
1.22 moko 8446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447: $as_echo "no" >&6; }
1.13 moko 8448: fi
8449:
1.22 moko 8450: if test "x$ac_ct_OBJDUMP" = x; then
8451: OBJDUMP="false"
8452: else
8453: case $cross_compiling:$ac_tool_warned in
8454: yes:)
8455: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8456: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8457: ac_tool_warned=yes ;;
8458: esac
8459: OBJDUMP=$ac_ct_OBJDUMP
8460: fi
1.13 moko 8461: else
8462: OBJDUMP="$ac_cv_prog_OBJDUMP"
8463: fi
8464:
8465: ;;
8466: esac
8467:
8468: test -z "$AS" && AS=as
8469:
8470:
8471:
8472:
8473:
8474: test -z "$DLLTOOL" && DLLTOOL=dlltool
8475:
8476:
8477:
8478:
8479:
8480: test -z "$OBJDUMP" && OBJDUMP=objdump
8481:
8482:
8483:
8484:
8485:
8486:
8487:
8488:
8489:
1.22 moko 8490: # Check whether --enable-shared was given.
8491: if test "${enable_shared+set}" = set; then :
8492: enableval=$enable_shared; p=${PACKAGE-default}
1.13 moko 8493: case $enableval in
8494: yes) enable_shared=yes ;;
8495: no) enable_shared=no ;;
8496: *)
8497: enable_shared=no
8498: # Look at the argument we got. We use all the common list separators.
8499: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8500: for pkg in $enableval; do
8501: IFS="$lt_save_ifs"
8502: if test "X$pkg" = "X$p"; then
8503: enable_shared=yes
8504: fi
8505: done
8506: IFS="$lt_save_ifs"
8507: ;;
8508: esac
8509: else
8510: enable_shared=yes
1.22 moko 8511: fi
1.8 moko 8512:
8513:
8514:
8515:
8516:
8517:
8518:
1.1 misha 8519:
1.8 moko 8520:
8521:
1.22 moko 8522:
8523: # Check whether --with-pic was given.
8524: if test "${with_pic+set}" = set; then :
8525: withval=$with_pic; lt_p=${PACKAGE-default}
1.8 moko 8526: case $withval in
8527: yes|no) pic_mode=$withval ;;
8528: *)
8529: pic_mode=default
8530: # Look at the argument we got. We use all the common list separators.
8531: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8532: for lt_pkg in $withval; do
8533: IFS="$lt_save_ifs"
8534: if test "X$lt_pkg" = "X$lt_p"; then
8535: pic_mode=yes
8536: fi
8537: done
8538: IFS="$lt_save_ifs"
8539: ;;
8540: esac
1.1 misha 8541: else
1.8 moko 8542: pic_mode=default
1.22 moko 8543: fi
8544:
1.8 moko 8545:
8546: test -z "$pic_mode" && pic_mode=default
8547:
8548:
8549:
8550:
8551:
8552:
1.1 misha 8553:
1.22 moko 8554: # Check whether --enable-fast-install was given.
8555: if test "${enable_fast_install+set}" = set; then :
8556: enableval=$enable_fast_install; p=${PACKAGE-default}
1.8 moko 8557: case $enableval in
8558: yes) enable_fast_install=yes ;;
8559: no) enable_fast_install=no ;;
8560: *)
8561: enable_fast_install=no
8562: # Look at the argument we got. We use all the common list separators.
8563: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8564: for pkg in $enableval; do
8565: IFS="$lt_save_ifs"
8566: if test "X$pkg" = "X$p"; then
8567: enable_fast_install=yes
8568: fi
8569: done
8570: IFS="$lt_save_ifs"
8571: ;;
8572: esac
1.1 misha 8573: else
1.8 moko 8574: enable_fast_install=yes
1.22 moko 8575: fi
8576:
1.8 moko 8577:
8578:
8579:
8580:
8581:
8582:
8583:
8584:
8585:
8586:
8587: # This can be used to rebuild libtool when needed
8588: LIBTOOL_DEPS="$ltmain"
8589:
8590: # Always use our own libtool.
8591: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8592:
8593:
8594:
8595:
8596:
8597:
8598:
8599:
8600:
8601:
8602:
8603:
8604:
8605:
8606:
8607:
8608:
8609:
8610:
8611:
8612:
8613:
8614:
8615:
8616:
8617:
8618:
8619:
8620:
8621:
8622: test -z "$LN_S" && LN_S="ln -s"
8623:
8624:
8625:
8626:
8627:
8628:
8629:
8630:
8631:
8632:
8633:
8634:
8635:
1.1 misha 8636:
1.8 moko 8637: if test -n "${ZSH_VERSION+set}" ; then
8638: setopt NO_GLOB_SUBST
1.1 misha 8639: fi
1.8 moko 8640:
1.22 moko 8641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8642: $as_echo_n "checking for objdir... " >&6; }
8643: if ${lt_cv_objdir+:} false; then :
8644: $as_echo_n "(cached) " >&6
1.8 moko 8645: else
8646: rm -f .libs 2>/dev/null
8647: mkdir .libs 2>/dev/null
8648: if test -d .libs; then
8649: lt_cv_objdir=.libs
8650: else
8651: # MS-DOS does not allow filenames that begin with a dot.
8652: lt_cv_objdir=_libs
1.1 misha 8653: fi
1.8 moko 8654: rmdir .libs 2>/dev/null
8655: fi
1.22 moko 8656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8657: $as_echo "$lt_cv_objdir" >&6; }
1.8 moko 8658: objdir=$lt_cv_objdir
1.1 misha 8659:
8660:
8661:
8662:
8663:
1.8 moko 8664: cat >>confdefs.h <<_ACEOF
8665: #define LT_OBJDIR "$lt_cv_objdir/"
8666: _ACEOF
1.1 misha 8667:
8668:
8669:
8670:
1.8 moko 8671: case $host_os in
8672: aix3*)
8673: # AIX sometimes has problems with the GCC collect2 program. For some
8674: # reason, if we set the COLLECT_NAMES environment variable, the problems
8675: # vanish in a puff of smoke.
8676: if test "X${COLLECT_NAMES+set}" != Xset; then
8677: COLLECT_NAMES=
8678: export COLLECT_NAMES
8679: fi
8680: ;;
8681: esac
1.1 misha 8682:
1.8 moko 8683: # Global variables:
8684: ofile=libtool
8685: can_build_shared=yes
1.1 misha 8686:
1.8 moko 8687: # All known linkers require a `.a' archive for static linking (except MSVC,
8688: # which needs '.lib').
8689: libext=a
1.1 misha 8690:
1.8 moko 8691: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.1 misha 8692:
1.8 moko 8693: old_CC="$CC"
8694: old_CFLAGS="$CFLAGS"
1.1 misha 8695:
1.8 moko 8696: # Set sane defaults for various variables
8697: test -z "$CC" && CC=cc
8698: test -z "$LTCC" && LTCC=$CC
8699: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8700: test -z "$LD" && LD=ld
8701: test -z "$ac_objext" && ac_objext=o
1.1 misha 8702:
1.8 moko 8703: for cc_temp in $compiler""; do
8704: case $cc_temp in
8705: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8706: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8707: \-*) ;;
8708: *) break;;
1.1 misha 8709: esac
1.8 moko 8710: done
8711: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 misha 8712:
8713:
1.8 moko 8714: # Only perform the check for file, if the check method requires it
8715: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8716: case $deplibs_check_method in
8717: file_magic*)
8718: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.22 moko 8719: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8720: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8721: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8722: $as_echo_n "(cached) " >&6
1.8 moko 8723: else
8724: case $MAGIC_CMD in
8725: [\\/*] | ?:[\\/]*)
8726: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8727: ;;
8728: *)
8729: lt_save_MAGIC_CMD="$MAGIC_CMD"
8730: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8731: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8732: for ac_dir in $ac_dummy; do
8733: IFS="$lt_save_ifs"
8734: test -z "$ac_dir" && ac_dir=.
8735: if test -f $ac_dir/${ac_tool_prefix}file; then
8736: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8737: if test -n "$file_magic_test_file"; then
8738: case $deplibs_check_method in
8739: "file_magic "*)
8740: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8741: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8742: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8743: $EGREP "$file_magic_regex" > /dev/null; then
8744: :
8745: else
8746: cat <<_LT_EOF 1>&2
1.1 misha 8747:
1.8 moko 8748: *** Warning: the command libtool uses to detect shared libraries,
8749: *** $file_magic_cmd, produces output that libtool cannot recognize.
8750: *** The result is that libtool may fail to recognize shared libraries
8751: *** as such. This will affect the creation of libtool libraries that
8752: *** depend on shared libraries, but programs linked with such libtool
8753: *** libraries will work regardless of this problem. Nevertheless, you
8754: *** may want to report the problem to your system manager and/or to
8755: *** bug-libtool@gnu.org
1.1 misha 8756:
1.8 moko 8757: _LT_EOF
8758: fi ;;
8759: esac
8760: fi
8761: break
8762: fi
8763: done
8764: IFS="$lt_save_ifs"
8765: MAGIC_CMD="$lt_save_MAGIC_CMD"
8766: ;;
8767: esac
8768: fi
1.1 misha 8769:
1.8 moko 8770: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8771: if test -n "$MAGIC_CMD"; then
1.22 moko 8772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8773: $as_echo "$MAGIC_CMD" >&6; }
1.1 misha 8774: else
1.22 moko 8775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776: $as_echo "no" >&6; }
1.8 moko 8777: fi
8778:
1.1 misha 8779:
8780:
8781:
8782:
1.8 moko 8783: if test -z "$lt_cv_path_MAGIC_CMD"; then
8784: if test -n "$ac_tool_prefix"; then
1.22 moko 8785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8786: $as_echo_n "checking for file... " >&6; }
8787: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8788: $as_echo_n "(cached) " >&6
1.8 moko 8789: else
8790: case $MAGIC_CMD in
8791: [\\/*] | ?:[\\/]*)
8792: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8793: ;;
8794: *)
8795: lt_save_MAGIC_CMD="$MAGIC_CMD"
8796: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8797: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8798: for ac_dir in $ac_dummy; do
8799: IFS="$lt_save_ifs"
8800: test -z "$ac_dir" && ac_dir=.
8801: if test -f $ac_dir/file; then
8802: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8803: if test -n "$file_magic_test_file"; then
8804: case $deplibs_check_method in
8805: "file_magic "*)
8806: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8807: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8808: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8809: $EGREP "$file_magic_regex" > /dev/null; then
8810: :
8811: else
8812: cat <<_LT_EOF 1>&2
8813:
8814: *** Warning: the command libtool uses to detect shared libraries,
8815: *** $file_magic_cmd, produces output that libtool cannot recognize.
8816: *** The result is that libtool may fail to recognize shared libraries
8817: *** as such. This will affect the creation of libtool libraries that
8818: *** depend on shared libraries, but programs linked with such libtool
8819: *** libraries will work regardless of this problem. Nevertheless, you
8820: *** may want to report the problem to your system manager and/or to
8821: *** bug-libtool@gnu.org
1.1 misha 8822:
1.8 moko 8823: _LT_EOF
8824: fi ;;
8825: esac
8826: fi
8827: break
8828: fi
8829: done
8830: IFS="$lt_save_ifs"
8831: MAGIC_CMD="$lt_save_MAGIC_CMD"
8832: ;;
8833: esac
8834: fi
1.1 misha 8835:
1.8 moko 8836: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8837: if test -n "$MAGIC_CMD"; then
1.22 moko 8838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8839: $as_echo "$MAGIC_CMD" >&6; }
1.8 moko 8840: else
1.22 moko 8841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842: $as_echo "no" >&6; }
1.8 moko 8843: fi
1.1 misha 8844:
8845:
1.8 moko 8846: else
8847: MAGIC_CMD=:
1.1 misha 8848: fi
8849: fi
1.8 moko 8850:
8851: fi
8852: ;;
8853: esac
8854:
8855: # Use C for the default configuration in the libtool script
8856:
8857: lt_save_CC="$CC"
8858: ac_ext=c
8859: ac_cpp='$CPP $CPPFLAGS'
8860: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8861: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8862: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8863:
8864:
8865: # Source file extension for C test sources.
8866: ac_ext=c
8867:
8868: # Object file extension for compiled C test sources.
8869: objext=o
8870: objext=$objext
8871:
8872: # Code to be used in simple compile tests
8873: lt_simple_compile_test_code="int some_variable = 0;"
8874:
8875: # Code to be used in simple link tests
8876: lt_simple_link_test_code='int main(){return(0);}'
1.1 misha 8877:
8878:
8879:
8880:
8881:
8882:
8883:
1.8 moko 8884: # If no C compiler was specified, use CC.
8885: LTCC=${LTCC-"$CC"}
1.1 misha 8886:
1.8 moko 8887: # If no C compiler flags were specified, use CFLAGS.
8888: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 misha 8889:
1.8 moko 8890: # Allow CC to be a program name with arguments.
8891: compiler=$CC
1.1 misha 8892:
1.8 moko 8893: # Save the default compiler, since it gets overwritten when the other
8894: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8895: compiler_DEFAULT=$CC
1.1 misha 8896:
1.8 moko 8897: # save warnings/boilerplate of simple test code
8898: ac_outfile=conftest.$ac_objext
8899: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8900: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8901: _lt_compiler_boilerplate=`cat conftest.err`
8902: $RM conftest*
1.1 misha 8903:
1.8 moko 8904: ac_outfile=conftest.$ac_objext
8905: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8906: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8907: _lt_linker_boilerplate=`cat conftest.err`
8908: $RM -r conftest*
1.1 misha 8909:
8910:
1.12 moko 8911: ## CAVEAT EMPTOR:
8912: ## There is no encapsulation within the following macros, do not change
8913: ## the running order or otherwise move them around unless you know exactly
8914: ## what you are doing...
1.8 moko 8915: if test -n "$compiler"; then
1.1 misha 8916:
1.8 moko 8917: lt_prog_compiler_no_builtin_flag=
1.1 misha 8918:
1.8 moko 8919: if test "$GCC" = yes; then
8920: case $cc_basename in
8921: nvcc*)
8922: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8923: *)
8924: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.1 misha 8925: esac
8926:
1.22 moko 8927: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8928: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8929: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8930: $as_echo_n "(cached) " >&6
1.1 misha 8931: else
1.8 moko 8932: lt_cv_prog_compiler_rtti_exceptions=no
8933: ac_outfile=conftest.$ac_objext
8934: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8935: lt_compiler_flag="-fno-rtti -fno-exceptions"
8936: # Insert the option either (1) after the last *FLAGS variable, or
8937: # (2) before a word containing "conftest.", or (3) at the end.
8938: # Note that $ac_compile itself does not contain backslashes and begins
8939: # with a dollar sign (not a hyphen), so the echo should work correctly.
8940: # The option is referenced via a variable to avoid confusing sed.
8941: lt_compile=`echo "$ac_compile" | $SED \
8942: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8943: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8944: -e 's:$: $lt_compiler_flag:'`
8945: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8946: (eval "$lt_compile" 2>conftest.err)
8947: ac_status=$?
8948: cat conftest.err >&5
8949: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950: if (exit $ac_status) && test -s "$ac_outfile"; then
8951: # The compiler can only warn and ignore the option if not recognized
8952: # So say no if there are warnings other than the usual output.
8953: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8954: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8955: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8956: lt_cv_prog_compiler_rtti_exceptions=yes
8957: fi
8958: fi
8959: $RM conftest*
1.1 misha 8960:
8961: fi
1.22 moko 8962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8963: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.1 misha 8964:
1.8 moko 8965: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8966: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8967: else
8968: :
1.1 misha 8969: fi
8970:
1.8 moko 8971: fi
1.1 misha 8972:
8973:
8974:
8975:
8976:
8977:
1.8 moko 8978: lt_prog_compiler_wl=
8979: lt_prog_compiler_pic=
8980: lt_prog_compiler_static=
1.1 misha 8981:
8982:
1.8 moko 8983: if test "$GCC" = yes; then
8984: lt_prog_compiler_wl='-Wl,'
8985: lt_prog_compiler_static='-static'
1.1 misha 8986:
1.8 moko 8987: case $host_os in
8988: aix*)
8989: # All AIX code is PIC.
8990: if test "$host_cpu" = ia64; then
8991: # AIX 5 now supports IA64 processor
8992: lt_prog_compiler_static='-Bstatic'
8993: fi
8994: ;;
1.1 misha 8995:
1.8 moko 8996: amigaos*)
8997: case $host_cpu in
8998: powerpc)
8999: # see comment about AmigaOS4 .so support
9000: lt_prog_compiler_pic='-fPIC'
9001: ;;
9002: m68k)
9003: # FIXME: we need at least 68020 code to build shared libraries, but
9004: # adding the `-m68020' flag to GCC prevents building anything better,
9005: # like `-m68040'.
9006: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9007: ;;
9008: esac
9009: ;;
1.1 misha 9010:
1.8 moko 9011: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9012: # PIC is the default for these OSes.
9013: ;;
1.1 misha 9014:
1.8 moko 9015: mingw* | cygwin* | pw32* | os2* | cegcc*)
9016: # This hack is so that the source file can tell whether it is being
9017: # built for inclusion in a dll (and should export symbols for example).
9018: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9019: # (--disable-auto-import) libraries
9020: lt_prog_compiler_pic='-DDLL_EXPORT'
9021: ;;
1.1 misha 9022:
1.8 moko 9023: darwin* | rhapsody*)
9024: # PIC is the default on this platform
9025: # Common symbols not allowed in MH_DYLIB files
9026: lt_prog_compiler_pic='-fno-common'
9027: ;;
1.1 misha 9028:
1.8 moko 9029: haiku*)
9030: # PIC is the default for Haiku.
9031: # The "-static" flag exists, but is broken.
9032: lt_prog_compiler_static=
9033: ;;
1.1 misha 9034:
1.8 moko 9035: hpux*)
9036: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9037: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9038: # sets the default TLS model and affects inlining.
9039: case $host_cpu in
9040: hppa*64*)
9041: # +Z the default
9042: ;;
9043: *)
9044: lt_prog_compiler_pic='-fPIC'
9045: ;;
9046: esac
9047: ;;
1.1 misha 9048:
1.8 moko 9049: interix[3-9]*)
9050: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9051: # Instead, we relocate shared libraries at runtime.
9052: ;;
1.1 misha 9053:
1.8 moko 9054: msdosdjgpp*)
9055: # Just because we use GCC doesn't mean we suddenly get shared libraries
9056: # on systems that don't support them.
9057: lt_prog_compiler_can_build_shared=no
9058: enable_shared=no
9059: ;;
1.1 misha 9060:
1.8 moko 9061: *nto* | *qnx*)
9062: # QNX uses GNU C++, but need to define -shared option too, otherwise
9063: # it will coredump.
9064: lt_prog_compiler_pic='-fPIC -shared'
9065: ;;
1.1 misha 9066:
1.8 moko 9067: sysv4*MP*)
9068: if test -d /usr/nec; then
9069: lt_prog_compiler_pic=-Kconform_pic
9070: fi
9071: ;;
1.1 misha 9072:
1.8 moko 9073: *)
9074: lt_prog_compiler_pic='-fPIC'
9075: ;;
9076: esac
1.1 misha 9077:
1.8 moko 9078: case $cc_basename in
9079: nvcc*) # Cuda Compiler Driver 2.2
9080: lt_prog_compiler_wl='-Xlinker '
9081: if test -n "$lt_prog_compiler_pic"; then
9082: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9083: fi
9084: ;;
9085: esac
9086: else
9087: # PORTME Check for flag to pass linker flags through the system compiler.
9088: case $host_os in
9089: aix*)
9090: lt_prog_compiler_wl='-Wl,'
9091: if test "$host_cpu" = ia64; then
9092: # AIX 5 now supports IA64 processor
9093: lt_prog_compiler_static='-Bstatic'
9094: else
9095: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9096: fi
9097: ;;
1.1 misha 9098:
1.8 moko 9099: mingw* | cygwin* | pw32* | os2* | cegcc*)
9100: # This hack is so that the source file can tell whether it is being
9101: # built for inclusion in a dll (and should export symbols for example).
9102: lt_prog_compiler_pic='-DDLL_EXPORT'
9103: ;;
1.1 misha 9104:
1.8 moko 9105: hpux9* | hpux10* | hpux11*)
9106: lt_prog_compiler_wl='-Wl,'
9107: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9108: # not for PA HP-UX.
9109: case $host_cpu in
9110: hppa*64*|ia64*)
9111: # +Z the default
9112: ;;
9113: *)
9114: lt_prog_compiler_pic='+Z'
9115: ;;
9116: esac
9117: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9118: lt_prog_compiler_static='${wl}-a ${wl}archive'
9119: ;;
1.1 misha 9120:
1.8 moko 9121: irix5* | irix6* | nonstopux*)
9122: lt_prog_compiler_wl='-Wl,'
9123: # PIC (with -KPIC) is the default.
9124: lt_prog_compiler_static='-non_shared'
9125: ;;
1.1 misha 9126:
1.8 moko 9127: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9128: case $cc_basename in
9129: # old Intel for x86_64 which still supported -KPIC.
9130: ecc*)
9131: lt_prog_compiler_wl='-Wl,'
9132: lt_prog_compiler_pic='-KPIC'
9133: lt_prog_compiler_static='-static'
9134: ;;
9135: # icc used to be incompatible with GCC.
9136: # ICC 10 doesn't accept -KPIC any more.
9137: icc* | ifort*)
9138: lt_prog_compiler_wl='-Wl,'
9139: lt_prog_compiler_pic='-fPIC'
9140: lt_prog_compiler_static='-static'
9141: ;;
9142: # Lahey Fortran 8.1.
9143: lf95*)
9144: lt_prog_compiler_wl='-Wl,'
9145: lt_prog_compiler_pic='--shared'
9146: lt_prog_compiler_static='--static'
9147: ;;
9148: nagfor*)
9149: # NAG Fortran compiler
9150: lt_prog_compiler_wl='-Wl,-Wl,,'
9151: lt_prog_compiler_pic='-PIC'
9152: lt_prog_compiler_static='-Bstatic'
9153: ;;
9154: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9155: # Portland Group compilers (*not* the Pentium gcc compiler,
9156: # which looks to be a dead project)
9157: lt_prog_compiler_wl='-Wl,'
9158: lt_prog_compiler_pic='-fpic'
9159: lt_prog_compiler_static='-Bstatic'
9160: ;;
9161: ccc*)
9162: lt_prog_compiler_wl='-Wl,'
9163: # All Alpha code is PIC.
9164: lt_prog_compiler_static='-non_shared'
9165: ;;
9166: xl* | bgxl* | bgf* | mpixl*)
9167: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9168: lt_prog_compiler_wl='-Wl,'
9169: lt_prog_compiler_pic='-qpic'
9170: lt_prog_compiler_static='-qstaticlink'
9171: ;;
9172: *)
9173: case `$CC -V 2>&1 | sed 5q` in
9174: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9175: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9176: lt_prog_compiler_pic='-KPIC'
9177: lt_prog_compiler_static='-Bstatic'
9178: lt_prog_compiler_wl=''
9179: ;;
9180: *Sun\ F* | *Sun*Fortran*)
9181: lt_prog_compiler_pic='-KPIC'
9182: lt_prog_compiler_static='-Bstatic'
9183: lt_prog_compiler_wl='-Qoption ld '
9184: ;;
9185: *Sun\ C*)
9186: # Sun C 5.9
9187: lt_prog_compiler_pic='-KPIC'
9188: lt_prog_compiler_static='-Bstatic'
9189: lt_prog_compiler_wl='-Wl,'
9190: ;;
9191: *Intel*\ [CF]*Compiler*)
9192: lt_prog_compiler_wl='-Wl,'
9193: lt_prog_compiler_pic='-fPIC'
9194: lt_prog_compiler_static='-static'
9195: ;;
9196: *Portland\ Group*)
9197: lt_prog_compiler_wl='-Wl,'
9198: lt_prog_compiler_pic='-fpic'
9199: lt_prog_compiler_static='-Bstatic'
9200: ;;
9201: esac
9202: ;;
9203: esac
9204: ;;
1.1 misha 9205:
1.8 moko 9206: newsos6)
9207: lt_prog_compiler_pic='-KPIC'
9208: lt_prog_compiler_static='-Bstatic'
9209: ;;
1.1 misha 9210:
1.8 moko 9211: *nto* | *qnx*)
9212: # QNX uses GNU C++, but need to define -shared option too, otherwise
9213: # it will coredump.
9214: lt_prog_compiler_pic='-fPIC -shared'
9215: ;;
1.1 misha 9216:
1.8 moko 9217: osf3* | osf4* | osf5*)
9218: lt_prog_compiler_wl='-Wl,'
9219: # All OSF/1 code is PIC.
9220: lt_prog_compiler_static='-non_shared'
9221: ;;
1.1 misha 9222:
1.8 moko 9223: rdos*)
9224: lt_prog_compiler_static='-non_shared'
9225: ;;
1.1 misha 9226:
1.8 moko 9227: solaris*)
9228: lt_prog_compiler_pic='-KPIC'
9229: lt_prog_compiler_static='-Bstatic'
9230: case $cc_basename in
9231: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9232: lt_prog_compiler_wl='-Qoption ld ';;
9233: *)
9234: lt_prog_compiler_wl='-Wl,';;
9235: esac
9236: ;;
1.1 misha 9237:
1.8 moko 9238: sunos4*)
9239: lt_prog_compiler_wl='-Qoption ld '
9240: lt_prog_compiler_pic='-PIC'
9241: lt_prog_compiler_static='-Bstatic'
9242: ;;
1.1 misha 9243:
1.8 moko 9244: sysv4 | sysv4.2uw2* | sysv4.3*)
9245: lt_prog_compiler_wl='-Wl,'
9246: lt_prog_compiler_pic='-KPIC'
9247: lt_prog_compiler_static='-Bstatic'
9248: ;;
1.1 misha 9249:
1.8 moko 9250: sysv4*MP*)
9251: if test -d /usr/nec ;then
9252: lt_prog_compiler_pic='-Kconform_pic'
9253: lt_prog_compiler_static='-Bstatic'
9254: fi
9255: ;;
1.1 misha 9256:
1.8 moko 9257: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9258: lt_prog_compiler_wl='-Wl,'
9259: lt_prog_compiler_pic='-KPIC'
9260: lt_prog_compiler_static='-Bstatic'
9261: ;;
1.1 misha 9262:
1.8 moko 9263: unicos*)
9264: lt_prog_compiler_wl='-Wl,'
9265: lt_prog_compiler_can_build_shared=no
9266: ;;
1.1 misha 9267:
1.8 moko 9268: uts4*)
9269: lt_prog_compiler_pic='-pic'
9270: lt_prog_compiler_static='-Bstatic'
9271: ;;
1.1 misha 9272:
1.8 moko 9273: *)
9274: lt_prog_compiler_can_build_shared=no
9275: ;;
9276: esac
9277: fi
1.1 misha 9278:
1.8 moko 9279: case $host_os in
9280: # For platforms which do not support PIC, -DPIC is meaningless:
9281: *djgpp*)
9282: lt_prog_compiler_pic=
9283: ;;
9284: *)
9285: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9286: ;;
9287: esac
1.1 misha 9288:
1.22 moko 9289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9290: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9291: if ${lt_cv_prog_compiler_pic+:} false; then :
9292: $as_echo_n "(cached) " >&6
1.8 moko 9293: else
9294: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9295: fi
1.22 moko 9296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9297: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.8 moko 9298: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misha 9299:
1.8 moko 9300: #
9301: # Check to make sure the PIC flag actually works.
9302: #
9303: if test -n "$lt_prog_compiler_pic"; then
1.22 moko 9304: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9305: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9306: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9307: $as_echo_n "(cached) " >&6
1.8 moko 9308: else
9309: lt_cv_prog_compiler_pic_works=no
9310: ac_outfile=conftest.$ac_objext
9311: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9312: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9313: # Insert the option either (1) after the last *FLAGS variable, or
9314: # (2) before a word containing "conftest.", or (3) at the end.
9315: # Note that $ac_compile itself does not contain backslashes and begins
9316: # with a dollar sign (not a hyphen), so the echo should work correctly.
9317: # The option is referenced via a variable to avoid confusing sed.
9318: lt_compile=`echo "$ac_compile" | $SED \
9319: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9320: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9321: -e 's:$: $lt_compiler_flag:'`
9322: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9323: (eval "$lt_compile" 2>conftest.err)
9324: ac_status=$?
9325: cat conftest.err >&5
9326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327: if (exit $ac_status) && test -s "$ac_outfile"; then
9328: # The compiler can only warn and ignore the option if not recognized
9329: # So say no if there are warnings other than the usual output.
9330: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9331: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9332: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9333: lt_cv_prog_compiler_pic_works=yes
9334: fi
9335: fi
9336: $RM conftest*
1.1 misha 9337:
1.8 moko 9338: fi
1.22 moko 9339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9340: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.1 misha 9341:
1.8 moko 9342: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9343: case $lt_prog_compiler_pic in
9344: "" | " "*) ;;
9345: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9346: esac
9347: else
9348: lt_prog_compiler_pic=
9349: lt_prog_compiler_can_build_shared=no
9350: fi
1.1 misha 9351:
1.8 moko 9352: fi
1.1 misha 9353:
9354:
9355:
9356:
9357:
9358:
9359:
9360:
9361:
9362:
9363:
1.8 moko 9364: #
9365: # Check to make sure the static flag actually works.
9366: #
9367: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.22 moko 9368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9369: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9370: if ${lt_cv_prog_compiler_static_works+:} false; then :
9371: $as_echo_n "(cached) " >&6
1.8 moko 9372: else
9373: lt_cv_prog_compiler_static_works=no
9374: save_LDFLAGS="$LDFLAGS"
9375: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9376: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9377: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9378: # The linker can only warn and ignore the option if not recognized
9379: # So say no if there are warnings
9380: if test -s conftest.err; then
9381: # Append any errors to the config.log.
9382: cat conftest.err 1>&5
9383: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9384: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9385: if diff conftest.exp conftest.er2 >/dev/null; then
9386: lt_cv_prog_compiler_static_works=yes
9387: fi
9388: else
9389: lt_cv_prog_compiler_static_works=yes
9390: fi
9391: fi
9392: $RM -r conftest*
9393: LDFLAGS="$save_LDFLAGS"
1.1 misha 9394:
1.8 moko 9395: fi
1.22 moko 9396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9397: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.1 misha 9398:
1.8 moko 9399: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9400: :
9401: else
9402: lt_prog_compiler_static=
9403: fi
1.1 misha 9404:
9405:
9406:
9407:
9408:
9409:
9410:
1.22 moko 9411: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9412: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9413: if ${lt_cv_prog_compiler_c_o+:} false; then :
9414: $as_echo_n "(cached) " >&6
1.8 moko 9415: else
9416: lt_cv_prog_compiler_c_o=no
9417: $RM -r conftest 2>/dev/null
9418: mkdir conftest
9419: cd conftest
9420: mkdir out
9421: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9422:
9423: lt_compiler_flag="-o out/conftest2.$ac_objext"
9424: # Insert the option either (1) after the last *FLAGS variable, or
9425: # (2) before a word containing "conftest.", or (3) at the end.
9426: # Note that $ac_compile itself does not contain backslashes and begins
9427: # with a dollar sign (not a hyphen), so the echo should work correctly.
9428: lt_compile=`echo "$ac_compile" | $SED \
9429: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9430: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9431: -e 's:$: $lt_compiler_flag:'`
9432: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9433: (eval "$lt_compile" 2>out/conftest.err)
9434: ac_status=$?
9435: cat out/conftest.err >&5
9436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9438: then
9439: # The compiler can only warn and ignore the option if not recognized
9440: # So say no if there are warnings
9441: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9442: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9443: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9444: lt_cv_prog_compiler_c_o=yes
9445: fi
9446: fi
9447: chmod u+w . 2>&5
9448: $RM conftest*
9449: # SGI C++ compiler will create directory out/ii_files/ for
9450: # template instantiation
9451: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9452: $RM out/* && rmdir out
9453: cd ..
9454: $RM -r conftest
9455: $RM conftest*
1.1 misha 9456:
1.8 moko 9457: fi
1.22 moko 9458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9459: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.1 misha 9460:
9461:
9462:
9463:
9464:
9465:
1.22 moko 9466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9467: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9468: if ${lt_cv_prog_compiler_c_o+:} false; then :
9469: $as_echo_n "(cached) " >&6
1.8 moko 9470: else
9471: lt_cv_prog_compiler_c_o=no
9472: $RM -r conftest 2>/dev/null
9473: mkdir conftest
9474: cd conftest
9475: mkdir out
9476: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9477:
9478: lt_compiler_flag="-o out/conftest2.$ac_objext"
9479: # Insert the option either (1) after the last *FLAGS variable, or
9480: # (2) before a word containing "conftest.", or (3) at the end.
9481: # Note that $ac_compile itself does not contain backslashes and begins
9482: # with a dollar sign (not a hyphen), so the echo should work correctly.
9483: lt_compile=`echo "$ac_compile" | $SED \
9484: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9485: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9486: -e 's:$: $lt_compiler_flag:'`
9487: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9488: (eval "$lt_compile" 2>out/conftest.err)
9489: ac_status=$?
9490: cat out/conftest.err >&5
9491: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9493: then
9494: # The compiler can only warn and ignore the option if not recognized
9495: # So say no if there are warnings
9496: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9497: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9498: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9499: lt_cv_prog_compiler_c_o=yes
9500: fi
9501: fi
9502: chmod u+w . 2>&5
9503: $RM conftest*
9504: # SGI C++ compiler will create directory out/ii_files/ for
9505: # template instantiation
9506: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9507: $RM out/* && rmdir out
9508: cd ..
9509: $RM -r conftest
9510: $RM conftest*
1.1 misha 9511:
1.8 moko 9512: fi
1.22 moko 9513: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9514: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.1 misha 9515:
9516:
9517:
9518:
1.8 moko 9519: hard_links="nottested"
9520: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9521: # do not overwrite the value of need_locks provided by the user
1.22 moko 9522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9523: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.8 moko 9524: hard_links=yes
9525: $RM conftest*
9526: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9527: touch conftest.a
9528: ln conftest.a conftest.b 2>&5 || hard_links=no
9529: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.22 moko 9530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9531: $as_echo "$hard_links" >&6; }
1.8 moko 9532: if test "$hard_links" = no; then
1.22 moko 9533: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9534: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 9535: need_locks=warn
9536: fi
9537: else
9538: need_locks=no
9539: fi
1.1 misha 9540:
9541:
9542:
9543:
9544:
9545:
1.22 moko 9546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9547: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.1 misha 9548:
1.8 moko 9549: runpath_var=
9550: allow_undefined_flag=
9551: always_export_symbols=no
9552: archive_cmds=
9553: archive_expsym_cmds=
9554: compiler_needs_object=no
9555: enable_shared_with_static_runtimes=no
9556: export_dynamic_flag_spec=
9557: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9558: hardcode_automatic=no
9559: hardcode_direct=no
9560: hardcode_direct_absolute=no
9561: hardcode_libdir_flag_spec=
9562: hardcode_libdir_separator=
9563: hardcode_minus_L=no
9564: hardcode_shlibpath_var=unsupported
9565: inherit_rpath=no
9566: link_all_deplibs=unknown
9567: module_cmds=
9568: module_expsym_cmds=
9569: old_archive_from_new_cmds=
9570: old_archive_from_expsyms_cmds=
9571: thread_safe_flag_spec=
9572: whole_archive_flag_spec=
9573: # include_expsyms should be a list of space-separated symbols to be *always*
9574: # included in the symbol list
9575: include_expsyms=
9576: # exclude_expsyms can be an extended regexp of symbols to exclude
9577: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9578: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9579: # as well as any symbol that contains `d'.
9580: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9581: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9582: # platforms (ab)use it in PIC code, but their linkers get confused if
9583: # the symbol is explicitly referenced. Since portable code cannot
9584: # rely on this symbol name, it's probably fine to never include it in
9585: # preloaded symbol tables.
9586: # Exclude shared library initialization/finalization symbols.
9587: extract_expsyms_cmds=
1.1 misha 9588:
1.8 moko 9589: case $host_os in
9590: cygwin* | mingw* | pw32* | cegcc*)
9591: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9592: # When not using gcc, we currently assume that we are using
9593: # Microsoft Visual C++.
9594: if test "$GCC" != yes; then
9595: with_gnu_ld=no
9596: fi
9597: ;;
9598: interix*)
9599: # we just hope/assume this is gcc and not c89 (= MSVC++)
9600: with_gnu_ld=yes
9601: ;;
9602: openbsd*)
9603: with_gnu_ld=no
9604: ;;
9605: esac
1.1 misha 9606:
1.8 moko 9607: ld_shlibs=yes
1.1 misha 9608:
1.8 moko 9609: # On some targets, GNU ld is compatible enough with the native linker
9610: # that we're better off using the native interface for both.
9611: lt_use_gnu_ld_interface=no
9612: if test "$with_gnu_ld" = yes; then
9613: case $host_os in
9614: aix*)
9615: # The AIX port of GNU ld has always aspired to compatibility
9616: # with the native linker. However, as the warning in the GNU ld
9617: # block says, versions before 2.19.5* couldn't really create working
9618: # shared libraries, regardless of the interface used.
9619: case `$LD -v 2>&1` in
9620: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9621: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9622: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9623: *)
9624: lt_use_gnu_ld_interface=yes
9625: ;;
9626: esac
9627: ;;
9628: *)
9629: lt_use_gnu_ld_interface=yes
9630: ;;
9631: esac
9632: fi
1.1 misha 9633:
1.8 moko 9634: if test "$lt_use_gnu_ld_interface" = yes; then
9635: # If archive_cmds runs LD, not CC, wlarc should be empty
9636: wlarc='${wl}'
9637:
9638: # Set some defaults for GNU ld with shared library support. These
9639: # are reset later if shared libraries are not supported. Putting them
9640: # here allows them to be overridden if necessary.
9641: runpath_var=LD_RUN_PATH
9642: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9643: export_dynamic_flag_spec='${wl}--export-dynamic'
9644: # ancient GNU ld didn't support --whole-archive et. al.
9645: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9646: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9647: else
9648: whole_archive_flag_spec=
9649: fi
9650: supports_anon_versioning=no
9651: case `$LD -v 2>&1` in
9652: *GNU\ gold*) supports_anon_versioning=yes ;;
9653: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9654: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9655: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9656: *\ 2.11.*) ;; # other 2.11 versions
9657: *) supports_anon_versioning=yes ;;
9658: esac
1.1 misha 9659:
1.8 moko 9660: # See if GNU ld supports shared libraries.
9661: case $host_os in
9662: aix[3-9]*)
9663: # On AIX/PPC, the GNU linker is very broken
9664: if test "$host_cpu" != ia64; then
9665: ld_shlibs=no
9666: cat <<_LT_EOF 1>&2
1.1 misha 9667:
1.8 moko 9668: *** Warning: the GNU linker, at least up to release 2.19, is reported
9669: *** to be unable to reliably create shared libraries on AIX.
9670: *** Therefore, libtool is disabling shared libraries support. If you
9671: *** really care for shared libraries, you may want to install binutils
9672: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9673: *** You will then need to restart the configuration process.
1.1 misha 9674:
1.8 moko 9675: _LT_EOF
9676: fi
9677: ;;
1.1 misha 9678:
1.8 moko 9679: amigaos*)
9680: case $host_cpu in
9681: powerpc)
9682: # see comment about AmigaOS4 .so support
9683: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9684: archive_expsym_cmds=''
9685: ;;
9686: m68k)
9687: 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)'
9688: hardcode_libdir_flag_spec='-L$libdir'
9689: hardcode_minus_L=yes
9690: ;;
9691: esac
9692: ;;
1.1 misha 9693:
1.8 moko 9694: beos*)
9695: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9696: allow_undefined_flag=unsupported
9697: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9698: # support --undefined. This deserves some investigation. FIXME
9699: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9700: else
9701: ld_shlibs=no
9702: fi
9703: ;;
1.1 misha 9704:
1.8 moko 9705: cygwin* | mingw* | pw32* | cegcc*)
9706: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9707: # as there is no search path for DLLs.
9708: hardcode_libdir_flag_spec='-L$libdir'
9709: export_dynamic_flag_spec='${wl}--export-all-symbols'
9710: allow_undefined_flag=unsupported
9711: always_export_symbols=no
9712: enable_shared_with_static_runtimes=yes
9713: 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'
9714: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9715:
9716: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9717: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9718: # If the export-symbols file already is a .def file (1st line
9719: # is EXPORTS), use it as is; otherwise, prepend...
9720: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9721: cp $export_symbols $output_objdir/$soname.def;
9722: else
9723: echo EXPORTS > $output_objdir/$soname.def;
9724: cat $export_symbols >> $output_objdir/$soname.def;
9725: fi~
9726: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9727: else
9728: ld_shlibs=no
9729: fi
9730: ;;
1.1 misha 9731:
1.8 moko 9732: haiku*)
9733: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9734: link_all_deplibs=yes
9735: ;;
1.1 misha 9736:
1.8 moko 9737: interix[3-9]*)
9738: hardcode_direct=no
9739: hardcode_shlibpath_var=no
9740: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9741: export_dynamic_flag_spec='${wl}-E'
9742: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9743: # Instead, shared libraries are loaded at an image base (0x10000000 by
9744: # default) and relocated if they conflict, which is a slow very memory
9745: # consuming and fragmenting process. To avoid this, we pick a random,
9746: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9747: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9748: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9749: 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'
9750: ;;
1.1 misha 9751:
1.8 moko 9752: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9753: tmp_diet=no
9754: if test "$host_os" = linux-dietlibc; then
9755: case $cc_basename in
9756: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9757: esac
9758: fi
9759: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9760: && test "$tmp_diet" = no
9761: then
9762: tmp_addflag=' $pic_flag'
9763: tmp_sharedflag='-shared'
9764: case $cc_basename,$host_cpu in
9765: pgcc*) # Portland Group C compiler
9766: 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'
9767: tmp_addflag=' $pic_flag'
9768: ;;
9769: pgf77* | pgf90* | pgf95* | pgfortran*)
9770: # Portland Group f77 and f90 compilers
9771: 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'
9772: tmp_addflag=' $pic_flag -Mnomain' ;;
9773: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9774: tmp_addflag=' -i_dynamic' ;;
9775: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9776: tmp_addflag=' -i_dynamic -nofor_main' ;;
9777: ifc* | ifort*) # Intel Fortran compiler
9778: tmp_addflag=' -nofor_main' ;;
9779: lf95*) # Lahey Fortran 8.1
9780: whole_archive_flag_spec=
9781: tmp_sharedflag='--shared' ;;
9782: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9783: tmp_sharedflag='-qmkshrobj'
9784: tmp_addflag= ;;
9785: nvcc*) # Cuda Compiler Driver 2.2
9786: 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'
9787: compiler_needs_object=yes
9788: ;;
9789: esac
9790: case `$CC -V 2>&1 | sed 5q` in
9791: *Sun\ C*) # Sun C 5.9
9792: 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'
9793: compiler_needs_object=yes
9794: tmp_sharedflag='-G' ;;
9795: *Sun\ F*) # Sun Fortran 8.3
9796: tmp_sharedflag='-G' ;;
9797: esac
9798: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1 misha 9799:
1.8 moko 9800: if test "x$supports_anon_versioning" = xyes; then
9801: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9802: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9803: echo "local: *; };" >> $output_objdir/$libname.ver~
9804: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9805: fi
9806:
9807: case $cc_basename in
9808: xlf* | bgf* | bgxlf* | mpixlf*)
9809: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9810: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9811: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9812: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9813: if test "x$supports_anon_versioning" = xyes; then
9814: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9815: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9816: echo "local: *; };" >> $output_objdir/$libname.ver~
9817: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9818: fi
9819: ;;
9820: esac
9821: else
9822: ld_shlibs=no
9823: fi
9824: ;;
1.1 misha 9825:
1.8 moko 9826: netbsd*)
9827: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9828: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9829: wlarc=
9830: else
9831: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9832: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9833: fi
9834: ;;
1.1 misha 9835:
1.8 moko 9836: solaris*)
9837: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9838: ld_shlibs=no
9839: cat <<_LT_EOF 1>&2
1.1 misha 9840:
1.8 moko 9841: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9842: *** create shared libraries on Solaris systems. Therefore, libtool
9843: *** is disabling shared libraries support. We urge you to upgrade GNU
9844: *** binutils to release 2.9.1 or newer. Another option is to modify
9845: *** your PATH or compiler configuration so that the native linker is
9846: *** used, and then restart.
1.1 misha 9847:
1.8 moko 9848: _LT_EOF
9849: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9850: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852: else
9853: ld_shlibs=no
9854: fi
9855: ;;
1.1 misha 9856:
1.8 moko 9857: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9858: case `$LD -v 2>&1` in
9859: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9860: ld_shlibs=no
9861: cat <<_LT_EOF 1>&2
1.1 misha 9862:
1.8 moko 9863: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9864: *** reliably create shared libraries on SCO systems. Therefore, libtool
9865: *** is disabling shared libraries support. We urge you to upgrade GNU
9866: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9867: *** your PATH or compiler configuration so that the native linker is
9868: *** used, and then restart.
1.1 misha 9869:
1.8 moko 9870: _LT_EOF
9871: ;;
9872: *)
9873: # For security reasons, it is highly recommended that you always
9874: # use absolute paths for naming shared libraries, and exclude the
9875: # DT_RUNPATH tag from executables and libraries. But doing so
9876: # requires that you compile everything twice, which is a pain.
9877: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9878: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9879: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9880: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9881: else
9882: ld_shlibs=no
9883: fi
9884: ;;
9885: esac
9886: ;;
1.1 misha 9887:
1.8 moko 9888: sunos4*)
9889: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9890: wlarc=
9891: hardcode_direct=yes
9892: hardcode_shlibpath_var=no
9893: ;;
1.1 misha 9894:
1.8 moko 9895: *)
9896: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9897: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9898: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9899: else
9900: ld_shlibs=no
9901: fi
9902: ;;
9903: esac
1.1 misha 9904:
1.8 moko 9905: if test "$ld_shlibs" = no; then
9906: runpath_var=
9907: hardcode_libdir_flag_spec=
9908: export_dynamic_flag_spec=
9909: whole_archive_flag_spec=
9910: fi
9911: else
9912: # PORTME fill in a description of your system's linker (not GNU ld)
9913: case $host_os in
9914: aix3*)
9915: allow_undefined_flag=unsupported
9916: always_export_symbols=yes
9917: 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'
9918: # Note: this linker hardcodes the directories in LIBPATH if there
9919: # are no directories specified by -L.
9920: hardcode_minus_L=yes
9921: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9922: # Neither direct hardcoding nor static linking is supported with a
9923: # broken collect2.
9924: hardcode_direct=unsupported
9925: fi
9926: ;;
1.1 misha 9927:
1.8 moko 9928: aix[4-9]*)
9929: if test "$host_cpu" = ia64; then
9930: # On IA64, the linker does run time linking by default, so we don't
9931: # have to do anything special.
9932: aix_use_runtimelinking=no
9933: exp_sym_flag='-Bexport'
9934: no_entry_flag=""
9935: else
9936: # If we're using GNU nm, then we don't want the "-C" option.
9937: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9938: # Also, AIX nm treats weak defined symbols like other global
9939: # defined symbols, whereas GNU nm marks them as "W".
9940: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9941: 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'
9942: else
9943: 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'
9944: fi
9945: aix_use_runtimelinking=no
1.1 misha 9946:
1.8 moko 9947: # Test if we are trying to use run time linking or normal
9948: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9949: # need to do runtime linking.
9950: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9951: for ld_flag in $LDFLAGS; do
9952: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9953: aix_use_runtimelinking=yes
9954: break
9955: fi
9956: done
9957: ;;
9958: esac
1.1 misha 9959:
1.8 moko 9960: exp_sym_flag='-bexport'
9961: no_entry_flag='-bnoentry'
9962: fi
1.1 misha 9963:
1.8 moko 9964: # When large executables or shared objects are built, AIX ld can
9965: # have problems creating the table of contents. If linking a library
9966: # or program results in "error TOC overflow" add -mminimal-toc to
9967: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9968: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9969:
9970: archive_cmds=''
9971: hardcode_direct=yes
9972: hardcode_direct_absolute=yes
9973: hardcode_libdir_separator=':'
9974: link_all_deplibs=yes
9975: file_list_spec='${wl}-f,'
9976:
9977: if test "$GCC" = yes; then
9978: case $host_os in aix4.[012]|aix4.[012].*)
9979: # We only want to do this on AIX 4.2 and lower, the check
9980: # below for broken collect2 doesn't work under 4.3+
9981: collect2name=`${CC} -print-prog-name=collect2`
9982: if test -f "$collect2name" &&
9983: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9984: then
9985: # We have reworked collect2
9986: :
9987: else
9988: # We have old collect2
9989: hardcode_direct=unsupported
9990: # It fails to find uninstalled libraries when the uninstalled
9991: # path is not listed in the libpath. Setting hardcode_minus_L
9992: # to unsupported forces relinking
9993: hardcode_minus_L=yes
9994: hardcode_libdir_flag_spec='-L$libdir'
9995: hardcode_libdir_separator=
9996: fi
9997: ;;
9998: esac
9999: shared_flag='-shared'
10000: if test "$aix_use_runtimelinking" = yes; then
10001: shared_flag="$shared_flag "'${wl}-G'
10002: fi
10003: else
10004: # not using gcc
10005: if test "$host_cpu" = ia64; then
10006: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10007: # chokes on -Wl,-G. The following line is correct:
10008: shared_flag='-G'
10009: else
10010: if test "$aix_use_runtimelinking" = yes; then
10011: shared_flag='${wl}-G'
10012: else
10013: shared_flag='${wl}-bM:SRE'
10014: fi
10015: fi
10016: fi
1.1 misha 10017:
1.8 moko 10018: export_dynamic_flag_spec='${wl}-bexpall'
10019: # It seems that -bexpall does not export symbols beginning with
10020: # underscore (_), so it is better to generate a list of symbols to export.
10021: always_export_symbols=yes
10022: if test "$aix_use_runtimelinking" = yes; then
10023: # Warning - without using the other runtime loading flags (-brtl),
10024: # -berok will link without error, but may produce a broken library.
10025: allow_undefined_flag='-berok'
10026: # Determine the default libpath from the value encoded in an
10027: # empty executable.
10028: if test "${lt_cv_aix_libpath+set}" = set; then
10029: aix_libpath=$lt_cv_aix_libpath
10030: else
1.22 moko 10031: if ${lt_cv_aix_libpath_+:} false; then :
10032: $as_echo_n "(cached) " >&6
1.1 misha 10033: else
1.22 moko 10034: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 10035: /* end confdefs.h. */
1.8 moko 10036:
10037: int
10038: main ()
10039: {
10040:
10041: ;
10042: return 0;
10043: }
1.1 misha 10044: _ACEOF
1.22 moko 10045: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 10046:
10047: lt_aix_libpath_sed='
10048: /Import File Strings/,/^$/ {
10049: /^0/ {
10050: s/^0 *\([^ ]*\) *$/\1/
10051: p
10052: }
10053: }'
10054: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10055: # Check for a 64-bit object if we didn't find anything.
10056: if test -z "$lt_cv_aix_libpath_"; then
10057: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10058: fi
1.1 misha 10059: fi
1.22 moko 10060: rm -f core conftest.err conftest.$ac_objext \
10061: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10062: if test -z "$lt_cv_aix_libpath_"; then
10063: lt_cv_aix_libpath_="/usr/lib:/lib"
10064: fi
10065:
10066: fi
10067:
10068: aix_libpath=$lt_cv_aix_libpath_
10069: fi
1.1 misha 10070:
1.8 moko 10071: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10072: 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"
10073: else
10074: if test "$host_cpu" = ia64; then
10075: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10076: allow_undefined_flag="-z nodefs"
10077: 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"
10078: else
10079: # Determine the default libpath from the value encoded in an
10080: # empty executable.
10081: if test "${lt_cv_aix_libpath+set}" = set; then
10082: aix_libpath=$lt_cv_aix_libpath
10083: else
1.22 moko 10084: if ${lt_cv_aix_libpath_+:} false; then :
10085: $as_echo_n "(cached) " >&6
1.8 moko 10086: else
1.22 moko 10087: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 10088: /* end confdefs.h. */
1.8 moko 10089:
10090: int
10091: main ()
10092: {
10093:
10094: ;
10095: return 0;
10096: }
1.1 misha 10097: _ACEOF
1.22 moko 10098: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 10099:
10100: lt_aix_libpath_sed='
10101: /Import File Strings/,/^$/ {
10102: /^0/ {
10103: s/^0 *\([^ ]*\) *$/\1/
10104: p
10105: }
10106: }'
10107: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10108: # Check for a 64-bit object if we didn't find anything.
10109: if test -z "$lt_cv_aix_libpath_"; then
10110: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 misha 10111: fi
10112: fi
1.22 moko 10113: rm -f core conftest.err conftest.$ac_objext \
10114: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10115: if test -z "$lt_cv_aix_libpath_"; then
10116: lt_cv_aix_libpath_="/usr/lib:/lib"
10117: fi
10118:
10119: fi
10120:
10121: aix_libpath=$lt_cv_aix_libpath_
10122: fi
10123:
10124: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10125: # Warning - without using the other run time loading flags,
10126: # -berok will link without error, but may produce a broken library.
10127: no_undefined_flag=' ${wl}-bernotok'
10128: allow_undefined_flag=' ${wl}-berok'
10129: if test "$with_gnu_ld" = yes; then
10130: # We only use this code for GNU lds that support --whole-archive.
10131: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10132: else
10133: # Exported symbols can be pulled into shared objects from archives
10134: whole_archive_flag_spec='$convenience'
10135: fi
10136: archive_cmds_need_lc=yes
10137: # This is similar to how AIX traditionally builds its shared libraries.
10138: 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'
10139: fi
10140: fi
10141: ;;
10142:
10143: amigaos*)
10144: case $host_cpu in
10145: powerpc)
10146: # see comment about AmigaOS4 .so support
10147: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10148: archive_expsym_cmds=''
10149: ;;
10150: m68k)
10151: 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)'
10152: hardcode_libdir_flag_spec='-L$libdir'
10153: hardcode_minus_L=yes
10154: ;;
10155: esac
10156: ;;
10157:
10158: bsdi[45]*)
10159: export_dynamic_flag_spec=-rdynamic
10160: ;;
10161:
10162: cygwin* | mingw* | pw32* | cegcc*)
10163: # When not using gcc, we currently assume that we are using
10164: # Microsoft Visual C++.
10165: # hardcode_libdir_flag_spec is actually meaningless, as there is
10166: # no search path for DLLs.
10167: case $cc_basename in
10168: cl*)
10169: # Native MSVC
10170: hardcode_libdir_flag_spec=' '
10171: allow_undefined_flag=unsupported
10172: always_export_symbols=yes
10173: file_list_spec='@'
10174: # Tell ltmain to make .lib files, not .a files.
10175: libext=lib
10176: # Tell ltmain to make .dll files, not .so files.
10177: shrext_cmds=".dll"
10178: # FIXME: Setting linknames here is a bad hack.
10179: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10180: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10181: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10182: else
10183: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10184: fi~
10185: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10186: linknames='
10187: # The linker will not automatically build a static lib if we build a DLL.
10188: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10189: enable_shared_with_static_runtimes=yes
10190: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10191: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10192: # Don't use ranlib
10193: old_postinstall_cmds='chmod 644 $oldlib'
10194: postlink_cmds='lt_outputfile="@OUTPUT@"~
10195: lt_tool_outputfile="@TOOL_OUTPUT@"~
10196: case $lt_outputfile in
10197: *.exe|*.EXE) ;;
10198: *)
10199: lt_outputfile="$lt_outputfile.exe"
10200: lt_tool_outputfile="$lt_tool_outputfile.exe"
10201: ;;
10202: esac~
10203: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10204: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10205: $RM "$lt_outputfile.manifest";
10206: fi'
10207: ;;
10208: *)
10209: # Assume MSVC wrapper
10210: hardcode_libdir_flag_spec=' '
10211: allow_undefined_flag=unsupported
10212: # Tell ltmain to make .lib files, not .a files.
10213: libext=lib
10214: # Tell ltmain to make .dll files, not .so files.
10215: shrext_cmds=".dll"
10216: # FIXME: Setting linknames here is a bad hack.
10217: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10218: # The linker will automatically build a .lib file if we build a DLL.
10219: old_archive_from_new_cmds='true'
10220: # FIXME: Should let the user specify the lib program.
10221: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10222: enable_shared_with_static_runtimes=yes
10223: ;;
10224: esac
10225: ;;
10226:
10227: darwin* | rhapsody*)
10228:
10229:
10230: archive_cmds_need_lc=no
10231: hardcode_direct=no
10232: hardcode_automatic=yes
10233: hardcode_shlibpath_var=unsupported
10234: if test "$lt_cv_ld_force_load" = "yes"; then
10235: 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\"`'
10236:
10237: else
10238: whole_archive_flag_spec=''
10239: fi
10240: link_all_deplibs=yes
10241: allow_undefined_flag="$_lt_dar_allow_undefined"
10242: case $cc_basename in
10243: ifort*) _lt_dar_can_shared=yes ;;
10244: *) _lt_dar_can_shared=$GCC ;;
10245: esac
10246: if test "$_lt_dar_can_shared" = "yes"; then
10247: output_verbose_link_cmd=func_echo_all
10248: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10249: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10250: 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}"
10251: 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}"
10252:
10253: else
10254: ld_shlibs=no
10255: fi
10256:
10257: ;;
10258:
10259: dgux*)
10260: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10261: hardcode_libdir_flag_spec='-L$libdir'
10262: hardcode_shlibpath_var=no
10263: ;;
10264:
10265: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10266: # support. Future versions do this automatically, but an explicit c++rt0.o
10267: # does not break anything, and helps significantly (at the cost of a little
10268: # extra space).
10269: freebsd2.2*)
10270: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10271: hardcode_libdir_flag_spec='-R$libdir'
10272: hardcode_direct=yes
10273: hardcode_shlibpath_var=no
10274: ;;
10275:
10276: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10277: freebsd2.*)
10278: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10279: hardcode_direct=yes
10280: hardcode_minus_L=yes
10281: hardcode_shlibpath_var=no
10282: ;;
10283:
10284: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10285: freebsd* | dragonfly*)
10286: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10287: hardcode_libdir_flag_spec='-R$libdir'
10288: hardcode_direct=yes
10289: hardcode_shlibpath_var=no
10290: ;;
10291:
10292: hpux9*)
10293: if test "$GCC" = yes; then
10294: 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'
10295: else
10296: 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'
10297: fi
10298: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10299: hardcode_libdir_separator=:
10300: hardcode_direct=yes
10301:
10302: # hardcode_minus_L: Not really in the search PATH,
10303: # but as the default location of the library.
10304: hardcode_minus_L=yes
10305: export_dynamic_flag_spec='${wl}-E'
10306: ;;
10307:
10308: hpux10*)
10309: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10310: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10311: else
10312: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10313: fi
10314: if test "$with_gnu_ld" = no; then
10315: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10316: hardcode_libdir_separator=:
10317: hardcode_direct=yes
10318: hardcode_direct_absolute=yes
10319: export_dynamic_flag_spec='${wl}-E'
10320: # hardcode_minus_L: Not really in the search PATH,
10321: # but as the default location of the library.
10322: hardcode_minus_L=yes
10323: fi
10324: ;;
10325:
10326: hpux11*)
10327: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10328: case $host_cpu in
10329: hppa*64*)
10330: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10331: ;;
10332: ia64*)
10333: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10334: ;;
10335: *)
10336: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10337: ;;
10338: esac
10339: else
10340: case $host_cpu in
10341: hppa*64*)
10342: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10343: ;;
10344: ia64*)
10345: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10346: ;;
10347: *)
1.1 misha 10348:
1.8 moko 10349: # Older versions of the 11.00 compiler do not understand -b yet
10350: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.22 moko 10351: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10352: $as_echo_n "checking if $CC understands -b... " >&6; }
10353: if ${lt_cv_prog_compiler__b+:} false; then :
10354: $as_echo_n "(cached) " >&6
1.1 misha 10355: else
1.8 moko 10356: lt_cv_prog_compiler__b=no
10357: save_LDFLAGS="$LDFLAGS"
10358: LDFLAGS="$LDFLAGS -b"
10359: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10360: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10361: # The linker can only warn and ignore the option if not recognized
10362: # So say no if there are warnings
10363: if test -s conftest.err; then
10364: # Append any errors to the config.log.
10365: cat conftest.err 1>&5
10366: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10367: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10368: if diff conftest.exp conftest.er2 >/dev/null; then
10369: lt_cv_prog_compiler__b=yes
10370: fi
10371: else
10372: lt_cv_prog_compiler__b=yes
10373: fi
10374: fi
10375: $RM -r conftest*
10376: LDFLAGS="$save_LDFLAGS"
1.1 misha 10377:
10378: fi
1.22 moko 10379: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10380: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.1 misha 10381:
1.8 moko 10382: if test x"$lt_cv_prog_compiler__b" = xyes; then
10383: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10384: else
10385: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 misha 10386: fi
10387:
1.8 moko 10388: ;;
10389: esac
10390: fi
10391: if test "$with_gnu_ld" = no; then
10392: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10393: hardcode_libdir_separator=:
10394:
10395: case $host_cpu in
10396: hppa*64*|ia64*)
10397: hardcode_direct=no
10398: hardcode_shlibpath_var=no
10399: ;;
10400: *)
10401: hardcode_direct=yes
10402: hardcode_direct_absolute=yes
10403: export_dynamic_flag_spec='${wl}-E'
1.1 misha 10404:
1.8 moko 10405: # hardcode_minus_L: Not really in the search PATH,
10406: # but as the default location of the library.
10407: hardcode_minus_L=yes
10408: ;;
10409: esac
10410: fi
10411: ;;
1.1 misha 10412:
1.8 moko 10413: irix5* | irix6* | nonstopux*)
10414: if test "$GCC" = yes; then
10415: 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'
10416: # Try to use the -exported_symbol ld option, if it does not
10417: # work, assume that -exports_file does not work either and
10418: # implicitly export all symbols.
10419: # This should be the same for all languages, so no per-tag cache variable.
1.22 moko 10420: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10421: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10422: if ${lt_cv_irix_exported_symbol+:} false; then :
10423: $as_echo_n "(cached) " >&6
1.1 misha 10424: else
1.8 moko 10425: save_LDFLAGS="$LDFLAGS"
10426: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.22 moko 10427: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 10428: /* end confdefs.h. */
1.8 moko 10429: int foo (void) { return 0; }
1.1 misha 10430: _ACEOF
1.22 moko 10431: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 10432: lt_cv_irix_exported_symbol=yes
1.1 misha 10433: else
1.22 moko 10434: lt_cv_irix_exported_symbol=no
1.1 misha 10435: fi
1.22 moko 10436: rm -f core conftest.err conftest.$ac_objext \
10437: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10438: LDFLAGS="$save_LDFLAGS"
1.1 misha 10439: fi
1.22 moko 10440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10441: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.8 moko 10442: if test "$lt_cv_irix_exported_symbol" = yes; then
10443: 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'
10444: fi
10445: else
10446: 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'
10447: 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'
10448: fi
10449: archive_cmds_need_lc='no'
10450: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10451: hardcode_libdir_separator=:
10452: inherit_rpath=yes
10453: link_all_deplibs=yes
10454: ;;
1.1 misha 10455:
1.8 moko 10456: netbsd*)
10457: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10458: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10459: else
10460: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10461: fi
10462: hardcode_libdir_flag_spec='-R$libdir'
10463: hardcode_direct=yes
10464: hardcode_shlibpath_var=no
10465: ;;
1.1 misha 10466:
1.8 moko 10467: newsos6)
10468: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469: hardcode_direct=yes
10470: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10471: hardcode_libdir_separator=:
10472: hardcode_shlibpath_var=no
10473: ;;
1.1 misha 10474:
1.8 moko 10475: *nto* | *qnx*)
10476: ;;
1.1 misha 10477:
1.8 moko 10478: openbsd*)
10479: if test -f /usr/libexec/ld.so; then
10480: hardcode_direct=yes
10481: hardcode_shlibpath_var=no
10482: hardcode_direct_absolute=yes
10483: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10484: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10485: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10486: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10487: export_dynamic_flag_spec='${wl}-E'
10488: else
10489: case $host_os in
10490: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10491: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10492: hardcode_libdir_flag_spec='-R$libdir'
10493: ;;
10494: *)
10495: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10496: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10497: ;;
10498: esac
10499: fi
10500: else
10501: ld_shlibs=no
10502: fi
10503: ;;
1.1 misha 10504:
1.8 moko 10505: os2*)
10506: hardcode_libdir_flag_spec='-L$libdir'
10507: hardcode_minus_L=yes
10508: allow_undefined_flag=unsupported
10509: 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'
10510: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10511: ;;
1.1 misha 10512:
1.8 moko 10513: osf3*)
10514: if test "$GCC" = yes; then
10515: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10516: 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'
10517: else
10518: allow_undefined_flag=' -expect_unresolved \*'
10519: 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'
10520: fi
10521: archive_cmds_need_lc='no'
10522: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10523: hardcode_libdir_separator=:
10524: ;;
1.1 misha 10525:
1.8 moko 10526: osf4* | osf5*) # as osf3* with the addition of -msym flag
10527: if test "$GCC" = yes; then
10528: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10529: 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'
10530: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10531: else
10532: allow_undefined_flag=' -expect_unresolved \*'
10533: 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'
10534: 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~
10535: $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'
10536:
10537: # Both c and cxx compiler support -rpath directly
10538: hardcode_libdir_flag_spec='-rpath $libdir'
10539: fi
10540: archive_cmds_need_lc='no'
10541: hardcode_libdir_separator=:
10542: ;;
10543:
10544: solaris*)
10545: no_undefined_flag=' -z defs'
10546: if test "$GCC" = yes; then
10547: wlarc='${wl}'
10548: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10549: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10550: $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'
10551: else
10552: case `$CC -V 2>&1` in
10553: *"Compilers 5.0"*)
10554: wlarc=''
10555: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10557: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10558: ;;
10559: *)
10560: wlarc='${wl}'
10561: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10562: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10563: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10564: ;;
10565: esac
10566: fi
10567: hardcode_libdir_flag_spec='-R$libdir'
10568: hardcode_shlibpath_var=no
10569: case $host_os in
10570: solaris2.[0-5] | solaris2.[0-5].*) ;;
10571: *)
10572: # The compiler driver will combine and reorder linker options,
10573: # but understands `-z linker_flag'. GCC discards it without `$wl',
10574: # but is careful enough not to reorder.
10575: # Supported since Solaris 2.6 (maybe 2.5.1?)
10576: if test "$GCC" = yes; then
10577: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10578: else
10579: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10580: fi
10581: ;;
10582: esac
10583: link_all_deplibs=yes
10584: ;;
10585:
10586: sunos4*)
10587: if test "x$host_vendor" = xsequent; then
10588: # Use $CC to link under sequent, because it throws in some extra .o
10589: # files that make .init and .fini sections work.
10590: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10591: else
10592: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10593: fi
10594: hardcode_libdir_flag_spec='-L$libdir'
10595: hardcode_direct=yes
10596: hardcode_minus_L=yes
10597: hardcode_shlibpath_var=no
10598: ;;
10599:
10600: sysv4)
10601: case $host_vendor in
10602: sni)
10603: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10604: hardcode_direct=yes # is this really true???
10605: ;;
10606: siemens)
10607: ## LD is ld it makes a PLAMLIB
10608: ## CC just makes a GrossModule.
10609: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10610: reload_cmds='$CC -r -o $output$reload_objs'
10611: hardcode_direct=no
10612: ;;
10613: motorola)
10614: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10615: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10616: ;;
10617: esac
10618: runpath_var='LD_RUN_PATH'
10619: hardcode_shlibpath_var=no
10620: ;;
10621:
10622: sysv4.3*)
10623: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10624: hardcode_shlibpath_var=no
10625: export_dynamic_flag_spec='-Bexport'
10626: ;;
10627:
10628: sysv4*MP*)
10629: if test -d /usr/nec; then
10630: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10631: hardcode_shlibpath_var=no
10632: runpath_var=LD_RUN_PATH
10633: hardcode_runpath_var=yes
10634: ld_shlibs=yes
10635: fi
10636: ;;
10637:
10638: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10639: no_undefined_flag='${wl}-z,text'
10640: archive_cmds_need_lc=no
10641: hardcode_shlibpath_var=no
10642: runpath_var='LD_RUN_PATH'
10643:
10644: if test "$GCC" = yes; then
10645: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647: else
10648: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650: fi
10651: ;;
10652:
10653: sysv5* | sco3.2v5* | sco5v6*)
10654: # Note: We can NOT use -z defs as we might desire, because we do not
10655: # link with -lc, and that would cause any symbols used from libc to
10656: # always be unresolved, which means just about no library would
10657: # ever link correctly. If we're not using GNU ld we use -z text
10658: # though, which does catch some bad symbols but isn't as heavy-handed
10659: # as -z defs.
10660: no_undefined_flag='${wl}-z,text'
10661: allow_undefined_flag='${wl}-z,nodefs'
10662: archive_cmds_need_lc=no
10663: hardcode_shlibpath_var=no
10664: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10665: hardcode_libdir_separator=':'
10666: link_all_deplibs=yes
10667: export_dynamic_flag_spec='${wl}-Bexport'
10668: runpath_var='LD_RUN_PATH'
10669:
10670: if test "$GCC" = yes; then
10671: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673: else
10674: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676: fi
10677: ;;
1.1 misha 10678:
1.8 moko 10679: uts4*)
10680: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681: hardcode_libdir_flag_spec='-L$libdir'
10682: hardcode_shlibpath_var=no
1.1 misha 10683: ;;
1.8 moko 10684:
1.1 misha 10685: *)
1.8 moko 10686: ld_shlibs=no
1.1 misha 10687: ;;
1.8 moko 10688: esac
10689:
10690: if test x$host_vendor = xsni; then
10691: case $host in
10692: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10693: export_dynamic_flag_spec='${wl}-Blargedynsym'
10694: ;;
10695: esac
10696: fi
1.1 misha 10697: fi
10698:
1.22 moko 10699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10700: $as_echo "$ld_shlibs" >&6; }
1.8 moko 10701: test "$ld_shlibs" = no && can_build_shared=no
10702:
10703: with_gnu_ld=$with_gnu_ld
1.1 misha 10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
10716:
10717:
10718:
1.8 moko 10719: #
10720: # Do we need to explicitly link libc?
10721: #
10722: case "x$archive_cmds_need_lc" in
10723: x|xyes)
10724: # Assume -lc should be added
10725: archive_cmds_need_lc=yes
10726:
10727: if test "$enable_shared" = yes && test "$GCC" = yes; then
10728: case $archive_cmds in
10729: *'~'*)
10730: # FIXME: we may have to deal with multi-command sequences.
10731: ;;
10732: '$CC '*)
10733: # Test whether the compiler implicitly links with -lc since on some
10734: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10735: # to ld, don't add -lc before -lgcc.
1.22 moko 10736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10737: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10738: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10739: $as_echo_n "(cached) " >&6
1.1 misha 10740: else
1.8 moko 10741: $RM conftest*
10742: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10743:
1.22 moko 10744: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 10745: (eval $ac_compile) 2>&5
10746: ac_status=$?
1.22 moko 10747: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10748: test $ac_status = 0; } 2>conftest.err; then
1.8 moko 10749: soname=conftest
10750: lib=conftest
10751: libobjs=conftest.$ac_objext
10752: deplibs=
10753: wl=$lt_prog_compiler_wl
10754: pic_flag=$lt_prog_compiler_pic
10755: compiler_flags=-v
10756: linker_flags=-v
10757: verstring=
10758: output_objdir=.
10759: libname=conftest
10760: lt_save_allow_undefined_flag=$allow_undefined_flag
10761: allow_undefined_flag=
1.22 moko 10762: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.8 moko 10763: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10764: ac_status=$?
1.22 moko 10765: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10766: test $ac_status = 0; }
1.8 moko 10767: then
10768: lt_cv_archive_cmds_need_lc=no
10769: else
10770: lt_cv_archive_cmds_need_lc=yes
10771: fi
10772: allow_undefined_flag=$lt_save_allow_undefined_flag
10773: else
10774: cat conftest.err 1>&5
10775: fi
10776: $RM conftest*
10777:
1.1 misha 10778: fi
1.22 moko 10779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10780: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.8 moko 10781: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10782: ;;
10783: esac
10784: fi
10785: ;;
10786: esac
10787:
10788:
10789:
10790:
10791:
10792:
10793:
10794:
10795:
10796:
10797:
10798:
10799:
10800:
10801:
10802:
10803:
10804:
10805:
10806:
10807:
10808:
10809:
10810:
10811:
10812:
10813:
10814:
10815:
10816:
10817:
10818:
10819:
10820:
10821:
10822:
10823:
10824:
10825:
10826:
10827:
10828:
10829:
10830:
10831:
10832:
10833:
10834:
10835:
10836:
10837:
10838:
10839:
10840:
10841:
10842:
10843:
10844:
10845:
10846:
10847:
1.1 misha 10848:
10849:
10850:
10851:
10852:
10853:
10854:
10855:
10856:
10857:
10858:
10859:
10860:
10861:
10862:
10863:
10864:
10865:
10866:
10867:
10868:
10869:
10870:
10871:
10872:
10873:
10874:
10875:
10876:
10877:
10878:
10879:
10880:
10881:
10882:
10883:
10884:
10885:
10886:
10887:
10888:
10889:
10890:
10891:
10892:
10893:
10894:
10895:
10896:
10897:
10898:
10899:
10900:
10901:
10902:
10903:
10904:
10905:
10906:
10907:
10908:
10909:
10910:
10911:
10912:
10913:
10914:
10915:
10916:
10917:
10918:
10919:
10920:
10921:
10922:
10923:
10924:
10925:
10926:
10927:
10928:
10929:
10930:
10931:
10932:
10933:
10934:
10935:
10936:
10937:
10938:
1.22 moko 10939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10940: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.1 misha 10941:
1.8 moko 10942: if test "$GCC" = yes; then
10943: case $host_os in
10944: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10945: *) lt_awk_arg="/^libraries:/" ;;
10946: esac
10947: case $host_os in
10948: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10949: *) lt_sed_strip_eq="s,=/,/,g" ;;
10950: esac
10951: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10952: case $lt_search_path_spec in
10953: *\;*)
10954: # if the path contains ";" then we assume it to be the separator
10955: # otherwise default to the standard path separator (i.e. ":") - it is
10956: # assumed that no part of a normal pathname contains ";" but that should
10957: # okay in the real world where ";" in dirpaths is itself problematic.
10958: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10959: ;;
10960: *)
10961: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10962: ;;
10963: esac
10964: # Ok, now we have the path, separated by spaces, we can step through it
10965: # and add multilib dir if necessary.
10966: lt_tmp_lt_search_path_spec=
10967: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10968: for lt_sys_path in $lt_search_path_spec; do
10969: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10970: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10971: else
10972: test -d "$lt_sys_path" && \
10973: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10974: fi
10975: done
10976: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10977: BEGIN {RS=" "; FS="/|\n";} {
10978: lt_foo="";
10979: lt_count=0;
10980: for (lt_i = NF; lt_i > 0; lt_i--) {
10981: if ($lt_i != "" && $lt_i != ".") {
10982: if ($lt_i == "..") {
10983: lt_count++;
10984: } else {
10985: if (lt_count == 0) {
10986: lt_foo="/" $lt_i lt_foo;
10987: } else {
10988: lt_count--;
10989: }
10990: }
10991: }
10992: }
10993: if (lt_foo != "") { lt_freq[lt_foo]++; }
10994: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10995: }'`
10996: # AWK program above erroneously prepends '/' to C:/dos/paths
10997: # for these hosts.
10998: case $host_os in
10999: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11000: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11001: esac
11002: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.1 misha 11003: else
1.8 moko 11004: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.1 misha 11005: fi
1.8 moko 11006: library_names_spec=
11007: libname_spec='lib$name'
11008: soname_spec=
11009: shrext_cmds=".so"
11010: postinstall_cmds=
11011: postuninstall_cmds=
11012: finish_cmds=
11013: finish_eval=
11014: shlibpath_var=
11015: shlibpath_overrides_runpath=unknown
11016: version_type=none
11017: dynamic_linker="$host_os ld.so"
11018: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11019: need_lib_prefix=unknown
11020: hardcode_into_libs=no
11021:
11022: # when you set need_version to no, make sure it does not cause -set_version
11023: # flags to be left without arguments
11024: need_version=unknown
11025:
11026: case $host_os in
11027: aix3*)
11028: version_type=linux # correct to gnu/linux during the next big refactor
11029: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11030: shlibpath_var=LIBPATH
11031:
11032: # AIX 3 has no versioning support, so we append a major version to the name.
11033: soname_spec='${libname}${release}${shared_ext}$major'
11034: ;;
1.1 misha 11035:
1.8 moko 11036: aix[4-9]*)
11037: version_type=linux # correct to gnu/linux during the next big refactor
11038: need_lib_prefix=no
11039: need_version=no
11040: hardcode_into_libs=yes
11041: if test "$host_cpu" = ia64; then
11042: # AIX 5 supports IA64
11043: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11044: shlibpath_var=LD_LIBRARY_PATH
11045: else
11046: # With GCC up to 2.95.x, collect2 would create an import file
11047: # for dependence libraries. The import file would start with
11048: # the line `#! .'. This would cause the generated library to
11049: # depend on `.', always an invalid library. This was fixed in
11050: # development snapshots of GCC prior to 3.0.
11051: case $host_os in
11052: aix4 | aix4.[01] | aix4.[01].*)
11053: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11054: echo ' yes '
11055: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11056: :
11057: else
11058: can_build_shared=no
11059: fi
11060: ;;
11061: esac
11062: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11063: # soname into executable. Probably we can add versioning support to
11064: # collect2, so additional links can be useful in future.
11065: if test "$aix_use_runtimelinking" = yes; then
11066: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11067: # instead of lib<name>.a to let people know that these are not
11068: # typical AIX shared libraries.
11069: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1 misha 11070: else
1.8 moko 11071: # We preserve .a as extension for shared libraries through AIX4.2
11072: # and later when we are not doing run time linking.
11073: library_names_spec='${libname}${release}.a $libname.a'
11074: soname_spec='${libname}${release}${shared_ext}$major'
11075: fi
11076: shlibpath_var=LIBPATH
11077: fi
11078: ;;
11079:
11080: amigaos*)
11081: case $host_cpu in
11082: powerpc)
11083: # Since July 2007 AmigaOS4 officially supports .so libraries.
11084: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11085: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086: ;;
11087: m68k)
11088: library_names_spec='$libname.ixlibrary $libname.a'
11089: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11090: 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'
11091: ;;
11092: esac
11093: ;;
11094:
11095: beos*)
11096: library_names_spec='${libname}${shared_ext}'
11097: dynamic_linker="$host_os ld.so"
11098: shlibpath_var=LIBRARY_PATH
11099: ;;
11100:
11101: bsdi[45]*)
11102: version_type=linux # correct to gnu/linux during the next big refactor
11103: need_version=no
11104: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105: soname_spec='${libname}${release}${shared_ext}$major'
11106: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11107: shlibpath_var=LD_LIBRARY_PATH
11108: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11109: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11110: # the default ld.so.conf also contains /usr/contrib/lib and
11111: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11112: # libtool to hard-code these into programs
11113: ;;
11114:
11115: cygwin* | mingw* | pw32* | cegcc*)
11116: version_type=windows
11117: shrext_cmds=".dll"
11118: need_version=no
11119: need_lib_prefix=no
11120:
11121: case $GCC,$cc_basename in
11122: yes,*)
11123: # gcc
11124: library_names_spec='$libname.dll.a'
11125: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11126: postinstall_cmds='base_file=`basename \${file}`~
11127: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11128: dldir=$destdir/`dirname \$dlpath`~
11129: test -d \$dldir || mkdir -p \$dldir~
11130: $install_prog $dir/$dlname \$dldir/$dlname~
11131: chmod a+x \$dldir/$dlname~
11132: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11133: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11134: fi'
11135: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11136: dlpath=$dir/\$dldll~
11137: $RM \$dlpath'
11138: shlibpath_overrides_runpath=yes
11139:
11140: case $host_os in
11141: cygwin*)
11142: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11143: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11144:
11145: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11146: ;;
11147: mingw* | cegcc*)
11148: # MinGW DLLs use traditional 'lib' prefix
11149: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11150: ;;
11151: pw32*)
11152: # pw32 DLLs use 'pw' prefix rather than 'lib'
11153: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11154: ;;
11155: esac
11156: dynamic_linker='Win32 ld.exe'
11157: ;;
11158:
11159: *,cl*)
11160: # Native MSVC
11161: libname_spec='$name'
11162: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11163: library_names_spec='${libname}.dll.lib'
11164:
11165: case $build_os in
11166: mingw*)
11167: sys_lib_search_path_spec=
11168: lt_save_ifs=$IFS
11169: IFS=';'
11170: for lt_path in $LIB
11171: do
11172: IFS=$lt_save_ifs
11173: # Let DOS variable expansion print the short 8.3 style file name.
11174: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11175: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11176: done
11177: IFS=$lt_save_ifs
11178: # Convert to MSYS style.
11179: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11180: ;;
11181: cygwin*)
11182: # Convert to unix form, then to dos form, then back to unix form
11183: # but this time dos style (no spaces!) so that the unix form looks
11184: # like /cygdrive/c/PROGRA~1:/cygdr...
11185: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11186: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11187: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11188: ;;
11189: *)
11190: sys_lib_search_path_spec="$LIB"
11191: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11192: # It is most probably a Windows format PATH.
11193: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11194: else
11195: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11196: fi
11197: # FIXME: find the short name or the path components, as spaces are
11198: # common. (e.g. "Program Files" -> "PROGRA~1")
11199: ;;
11200: esac
11201:
11202: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11203: postinstall_cmds='base_file=`basename \${file}`~
11204: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11205: dldir=$destdir/`dirname \$dlpath`~
11206: test -d \$dldir || mkdir -p \$dldir~
11207: $install_prog $dir/$dlname \$dldir/$dlname'
11208: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11209: dlpath=$dir/\$dldll~
11210: $RM \$dlpath'
11211: shlibpath_overrides_runpath=yes
11212: dynamic_linker='Win32 link.exe'
11213: ;;
11214:
11215: *)
11216: # Assume MSVC wrapper
11217: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11218: dynamic_linker='Win32 ld.exe'
11219: ;;
11220: esac
11221: # FIXME: first we should search . and the directory the executable is in
11222: shlibpath_var=PATH
11223: ;;
11224:
11225: darwin* | rhapsody*)
11226: dynamic_linker="$host_os dyld"
11227: version_type=darwin
11228: need_lib_prefix=no
11229: need_version=no
11230: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11231: soname_spec='${libname}${release}${major}$shared_ext'
11232: shlibpath_overrides_runpath=yes
11233: shlibpath_var=DYLD_LIBRARY_PATH
11234: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1 misha 11235:
1.8 moko 11236: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11237: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11238: ;;
1.1 misha 11239:
1.8 moko 11240: dgux*)
11241: version_type=linux # correct to gnu/linux during the next big refactor
11242: need_lib_prefix=no
11243: need_version=no
11244: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11245: soname_spec='${libname}${release}${shared_ext}$major'
11246: shlibpath_var=LD_LIBRARY_PATH
11247: ;;
1.1 misha 11248:
1.8 moko 11249: freebsd* | dragonfly*)
11250: # DragonFly does not have aout. When/if they implement a new
11251: # versioning mechanism, adjust this.
11252: if test -x /usr/bin/objformat; then
11253: objformat=`/usr/bin/objformat`
1.1 misha 11254: else
1.8 moko 11255: case $host_os in
11256: freebsd[23].*) objformat=aout ;;
11257: *) objformat=elf ;;
11258: esac
1.1 misha 11259: fi
1.8 moko 11260: version_type=freebsd-$objformat
11261: case $version_type in
11262: freebsd-elf*)
11263: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11264: need_version=no
11265: need_lib_prefix=no
11266: ;;
11267: freebsd-*)
11268: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11269: need_version=yes
11270: ;;
11271: esac
11272: shlibpath_var=LD_LIBRARY_PATH
11273: case $host_os in
11274: freebsd2.*)
11275: shlibpath_overrides_runpath=yes
11276: ;;
11277: freebsd3.[01]* | freebsdelf3.[01]*)
11278: shlibpath_overrides_runpath=yes
11279: hardcode_into_libs=yes
11280: ;;
11281: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11282: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11283: shlibpath_overrides_runpath=no
11284: hardcode_into_libs=yes
11285: ;;
11286: *) # from 4.6 on, and DragonFly
11287: shlibpath_overrides_runpath=yes
11288: hardcode_into_libs=yes
11289: ;;
11290: esac
11291: ;;
11292:
11293: gnu*)
11294: version_type=linux # correct to gnu/linux during the next big refactor
11295: need_lib_prefix=no
11296: need_version=no
11297: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11298: soname_spec='${libname}${release}${shared_ext}$major'
11299: shlibpath_var=LD_LIBRARY_PATH
11300: shlibpath_overrides_runpath=no
11301: hardcode_into_libs=yes
11302: ;;
11303:
11304: haiku*)
11305: version_type=linux # correct to gnu/linux during the next big refactor
11306: need_lib_prefix=no
11307: need_version=no
11308: dynamic_linker="$host_os runtime_loader"
11309: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11310: soname_spec='${libname}${release}${shared_ext}$major'
11311: shlibpath_var=LIBRARY_PATH
11312: shlibpath_overrides_runpath=yes
11313: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11314: hardcode_into_libs=yes
11315: ;;
11316:
11317: hpux9* | hpux10* | hpux11*)
11318: # Give a soname corresponding to the major version so that dld.sl refuses to
11319: # link against other versions.
11320: version_type=sunos
11321: need_lib_prefix=no
11322: need_version=no
11323: case $host_cpu in
11324: ia64*)
11325: shrext_cmds='.so'
11326: hardcode_into_libs=yes
11327: dynamic_linker="$host_os dld.so"
11328: shlibpath_var=LD_LIBRARY_PATH
11329: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11330: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11331: soname_spec='${libname}${release}${shared_ext}$major'
11332: if test "X$HPUX_IA64_MODE" = X32; then
11333: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11334: else
11335: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11336: fi
11337: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11338: ;;
11339: hppa*64*)
11340: shrext_cmds='.sl'
11341: hardcode_into_libs=yes
11342: dynamic_linker="$host_os dld.sl"
11343: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11344: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11345: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346: soname_spec='${libname}${release}${shared_ext}$major'
11347: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11348: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11349: ;;
11350: *)
11351: shrext_cmds='.sl'
11352: dynamic_linker="$host_os dld.sl"
11353: shlibpath_var=SHLIB_PATH
11354: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11355: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356: soname_spec='${libname}${release}${shared_ext}$major'
11357: ;;
11358: esac
11359: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11360: postinstall_cmds='chmod 555 $lib'
11361: # or fails outright, so override atomically:
11362: install_override_mode=555
11363: ;;
11364:
11365: interix[3-9]*)
11366: version_type=linux # correct to gnu/linux during the next big refactor
11367: need_lib_prefix=no
11368: need_version=no
11369: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11370: soname_spec='${libname}${release}${shared_ext}$major'
11371: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11372: shlibpath_var=LD_LIBRARY_PATH
11373: shlibpath_overrides_runpath=no
11374: hardcode_into_libs=yes
11375: ;;
11376:
11377: irix5* | irix6* | nonstopux*)
11378: case $host_os in
11379: nonstopux*) version_type=nonstopux ;;
11380: *)
11381: if test "$lt_cv_prog_gnu_ld" = yes; then
11382: version_type=linux # correct to gnu/linux during the next big refactor
11383: else
11384: version_type=irix
11385: fi ;;
11386: esac
11387: need_lib_prefix=no
11388: need_version=no
11389: soname_spec='${libname}${release}${shared_ext}$major'
11390: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11391: case $host_os in
11392: irix5* | nonstopux*)
11393: libsuff= shlibsuff=
11394: ;;
11395: *)
11396: case $LD in # libtool.m4 will add one of these switches to LD
11397: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11398: libsuff= shlibsuff= libmagic=32-bit;;
11399: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11400: libsuff=32 shlibsuff=N32 libmagic=N32;;
11401: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11402: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11403: *) libsuff= shlibsuff= libmagic=never-match;;
11404: esac
11405: ;;
11406: esac
11407: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11408: shlibpath_overrides_runpath=no
11409: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11410: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11411: hardcode_into_libs=yes
11412: ;;
11413:
11414: # No shared lib support for Linux oldld, aout, or coff.
11415: linux*oldld* | linux*aout* | linux*coff*)
11416: dynamic_linker=no
11417: ;;
11418:
11419: # This must be glibc/ELF.
11420: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11421: version_type=linux # correct to gnu/linux during the next big refactor
11422: need_lib_prefix=no
11423: need_version=no
11424: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425: soname_spec='${libname}${release}${shared_ext}$major'
11426: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11427: shlibpath_var=LD_LIBRARY_PATH
11428: shlibpath_overrides_runpath=no
11429:
11430: # Some binutils ld are patched to set DT_RUNPATH
1.22 moko 11431: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11432: $as_echo_n "(cached) " >&6
1.8 moko 11433: else
11434: lt_cv_shlibpath_overrides_runpath=no
11435: save_LDFLAGS=$LDFLAGS
11436: save_libdir=$libdir
11437: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11438: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.22 moko 11439: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11440: /* end confdefs.h. */
11441:
11442: int
11443: main ()
11444: {
11445:
11446: ;
11447: return 0;
11448: }
11449: _ACEOF
1.22 moko 11450: if ac_fn_c_try_link "$LINENO"; then :
11451: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.8 moko 11452: lt_cv_shlibpath_overrides_runpath=yes
11453: fi
11454: fi
1.22 moko 11455: rm -f core conftest.err conftest.$ac_objext \
11456: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11457: LDFLAGS=$save_LDFLAGS
11458: libdir=$save_libdir
11459:
11460: fi
11461:
11462: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11463:
11464: # This implies no fast_install, which is unacceptable.
11465: # Some rework will be needed to allow for fast_install
11466: # before this can be enabled.
11467: hardcode_into_libs=yes
11468:
11469: # Append ld.so.conf contents to the search path
11470: if test -f /etc/ld.so.conf; then
11471: 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' ' '`
11472: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11473: fi
11474:
11475: # We used to test for /lib/ld.so.1 and disable shared libraries on
11476: # powerpc, because MkLinux only supported shared libraries with the
11477: # GNU dynamic linker. Since this was broken with cross compilers,
11478: # most powerpc-linux boxes support dynamic linking these days and
11479: # people can always --disable-shared, the test was removed, and we
11480: # assume the GNU/Linux dynamic linker is in use.
11481: dynamic_linker='GNU/Linux ld.so'
11482: ;;
11483:
11484: netbsd*)
11485: version_type=sunos
11486: need_lib_prefix=no
11487: need_version=no
11488: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11489: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11490: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11491: dynamic_linker='NetBSD (a.out) ld.so'
11492: else
11493: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11494: soname_spec='${libname}${release}${shared_ext}$major'
11495: dynamic_linker='NetBSD ld.elf_so'
11496: fi
11497: shlibpath_var=LD_LIBRARY_PATH
11498: shlibpath_overrides_runpath=yes
11499: hardcode_into_libs=yes
11500: ;;
11501:
11502: newsos6)
11503: version_type=linux # correct to gnu/linux during the next big refactor
11504: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505: shlibpath_var=LD_LIBRARY_PATH
11506: shlibpath_overrides_runpath=yes
11507: ;;
11508:
11509: *nto* | *qnx*)
11510: version_type=qnx
11511: need_lib_prefix=no
11512: need_version=no
11513: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514: soname_spec='${libname}${release}${shared_ext}$major'
11515: shlibpath_var=LD_LIBRARY_PATH
11516: shlibpath_overrides_runpath=no
11517: hardcode_into_libs=yes
11518: dynamic_linker='ldqnx.so'
11519: ;;
11520:
11521: openbsd*)
11522: version_type=sunos
11523: sys_lib_dlsearch_path_spec="/usr/lib"
11524: need_lib_prefix=no
11525: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11526: case $host_os in
11527: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11528: *) need_version=no ;;
11529: esac
11530: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11531: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11532: shlibpath_var=LD_LIBRARY_PATH
11533: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11534: case $host_os in
11535: openbsd2.[89] | openbsd2.[89].*)
11536: shlibpath_overrides_runpath=no
11537: ;;
11538: *)
11539: shlibpath_overrides_runpath=yes
11540: ;;
11541: esac
1.1 misha 11542: else
1.8 moko 11543: shlibpath_overrides_runpath=yes
11544: fi
11545: ;;
11546:
11547: os2*)
11548: libname_spec='$name'
11549: shrext_cmds=".dll"
11550: need_lib_prefix=no
11551: library_names_spec='$libname${shared_ext} $libname.a'
11552: dynamic_linker='OS/2 ld.exe'
11553: shlibpath_var=LIBPATH
11554: ;;
11555:
11556: osf3* | osf4* | osf5*)
11557: version_type=osf
11558: need_lib_prefix=no
11559: need_version=no
11560: soname_spec='${libname}${release}${shared_ext}$major'
11561: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562: shlibpath_var=LD_LIBRARY_PATH
11563: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11564: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11565: ;;
11566:
11567: rdos*)
11568: dynamic_linker=no
11569: ;;
11570:
11571: solaris*)
11572: version_type=linux # correct to gnu/linux during the next big refactor
11573: need_lib_prefix=no
11574: need_version=no
11575: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576: soname_spec='${libname}${release}${shared_ext}$major'
11577: shlibpath_var=LD_LIBRARY_PATH
11578: shlibpath_overrides_runpath=yes
11579: hardcode_into_libs=yes
11580: # ldd complains unless libraries are executable
11581: postinstall_cmds='chmod +x $lib'
11582: ;;
11583:
11584: sunos4*)
11585: version_type=sunos
11586: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11587: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11588: shlibpath_var=LD_LIBRARY_PATH
11589: shlibpath_overrides_runpath=yes
11590: if test "$with_gnu_ld" = yes; then
11591: need_lib_prefix=no
11592: fi
11593: need_version=yes
11594: ;;
11595:
11596: sysv4 | sysv4.3*)
11597: version_type=linux # correct to gnu/linux during the next big refactor
11598: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599: soname_spec='${libname}${release}${shared_ext}$major'
11600: shlibpath_var=LD_LIBRARY_PATH
11601: case $host_vendor in
11602: sni)
11603: shlibpath_overrides_runpath=no
11604: need_lib_prefix=no
11605: runpath_var=LD_RUN_PATH
11606: ;;
11607: siemens)
11608: need_lib_prefix=no
11609: ;;
11610: motorola)
11611: need_lib_prefix=no
11612: need_version=no
11613: shlibpath_overrides_runpath=no
11614: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11615: ;;
11616: esac
11617: ;;
11618:
11619: sysv4*MP*)
11620: if test -d /usr/nec ;then
11621: version_type=linux # correct to gnu/linux during the next big refactor
11622: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11623: soname_spec='$libname${shared_ext}.$major'
11624: shlibpath_var=LD_LIBRARY_PATH
11625: fi
11626: ;;
11627:
11628: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11629: version_type=freebsd-elf
11630: need_lib_prefix=no
11631: need_version=no
11632: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11633: soname_spec='${libname}${release}${shared_ext}$major'
11634: shlibpath_var=LD_LIBRARY_PATH
11635: shlibpath_overrides_runpath=yes
11636: hardcode_into_libs=yes
11637: if test "$with_gnu_ld" = yes; then
11638: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11639: else
11640: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11641: case $host_os in
11642: sco3.2v5*)
11643: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11644: ;;
11645: esac
11646: fi
11647: sys_lib_dlsearch_path_spec='/usr/lib'
11648: ;;
11649:
11650: tpf*)
11651: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11652: version_type=linux # correct to gnu/linux during the next big refactor
11653: need_lib_prefix=no
11654: need_version=no
11655: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656: shlibpath_var=LD_LIBRARY_PATH
11657: shlibpath_overrides_runpath=no
11658: hardcode_into_libs=yes
11659: ;;
11660:
11661: uts4*)
11662: version_type=linux # correct to gnu/linux during the next big refactor
11663: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664: soname_spec='${libname}${release}${shared_ext}$major'
11665: shlibpath_var=LD_LIBRARY_PATH
11666: ;;
11667:
11668: *)
11669: dynamic_linker=no
11670: ;;
11671: esac
1.22 moko 11672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11673: $as_echo "$dynamic_linker" >&6; }
1.8 moko 11674: test "$dynamic_linker" = no && can_build_shared=no
11675:
11676: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11677: if test "$GCC" = yes; then
11678: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11679: fi
11680:
11681: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11682: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11683: fi
11684: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11685: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11686: fi
11687:
11688:
11689:
11690:
11691:
11692:
11693:
11694:
11695:
11696:
11697:
11698:
11699:
11700:
11701:
11702:
11703:
11704:
11705:
11706:
11707:
11708:
11709:
11710:
11711:
11712:
11713:
11714:
11715:
11716:
11717:
11718:
11719:
11720:
11721:
11722:
11723:
11724:
11725:
11726:
11727:
11728:
11729:
11730:
11731:
11732:
11733:
11734:
11735:
11736:
11737:
11738:
11739:
11740:
11741:
11742:
11743:
11744:
11745:
11746:
11747:
11748:
11749:
11750:
11751:
11752:
11753:
11754:
11755:
11756:
11757:
11758:
11759:
11760:
11761:
11762:
11763:
11764:
11765:
11766:
11767:
11768:
11769:
11770:
11771:
11772:
11773:
11774:
11775:
11776:
11777:
11778:
1.22 moko 11779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11780: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.8 moko 11781: hardcode_action=
11782: if test -n "$hardcode_libdir_flag_spec" ||
11783: test -n "$runpath_var" ||
11784: test "X$hardcode_automatic" = "Xyes" ; then
11785:
11786: # We can hardcode non-existent directories.
11787: if test "$hardcode_direct" != no &&
11788: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11789: # have to relink, otherwise we might link with an installed library
11790: # when we should be linking with a yet-to-be-installed one
11791: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11792: test "$hardcode_minus_L" != no; then
11793: # Linking always hardcodes the temporary library directory.
11794: hardcode_action=relink
11795: else
11796: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11797: hardcode_action=immediate
11798: fi
11799: else
11800: # We cannot hardcode anything, or else we can only hardcode existing
11801: # directories.
11802: hardcode_action=unsupported
11803: fi
1.22 moko 11804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11805: $as_echo "$hardcode_action" >&6; }
1.8 moko 11806:
11807: if test "$hardcode_action" = relink ||
11808: test "$inherit_rpath" = yes; then
11809: # Fast installation is not supported
11810: enable_fast_install=no
11811: elif test "$shlibpath_overrides_runpath" = yes ||
11812: test "$enable_shared" = no; then
11813: # Fast installation is not necessary
11814: enable_fast_install=needless
11815: fi
11816:
11817:
11818:
11819:
11820:
11821:
11822: if test "x$enable_dlopen" != xyes; then
11823: enable_dlopen=unknown
11824: enable_dlopen_self=unknown
11825: enable_dlopen_self_static=unknown
11826: else
11827: lt_cv_dlopen=no
11828: lt_cv_dlopen_libs=
11829:
11830: case $host_os in
11831: beos*)
11832: lt_cv_dlopen="load_add_on"
11833: lt_cv_dlopen_libs=
11834: lt_cv_dlopen_self=yes
11835: ;;
11836:
11837: mingw* | pw32* | cegcc*)
11838: lt_cv_dlopen="LoadLibrary"
11839: lt_cv_dlopen_libs=
11840: ;;
11841:
11842: cygwin*)
11843: lt_cv_dlopen="dlopen"
11844: lt_cv_dlopen_libs=
11845: ;;
11846:
11847: darwin*)
11848: # if libdl is installed we need to link against it
1.22 moko 11849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11850: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11851: if ${ac_cv_lib_dl_dlopen+:} false; then :
11852: $as_echo_n "(cached) " >&6
1.8 moko 11853: else
11854: ac_check_lib_save_LIBS=$LIBS
11855: LIBS="-ldl $LIBS"
1.22 moko 11856: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11857: /* end confdefs.h. */
11858:
1.22 moko 11859: /* Override any GCC internal prototype to avoid an error.
11860: Use char because int might match the return type of a GCC
11861: builtin and then its argument prototype would still apply. */
1.8 moko 11862: #ifdef __cplusplus
11863: extern "C"
11864: #endif
11865: char dlopen ();
11866: int
11867: main ()
11868: {
1.22 moko 11869: return dlopen ();
1.8 moko 11870: ;
11871: return 0;
11872: }
11873: _ACEOF
1.22 moko 11874: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 11875: ac_cv_lib_dl_dlopen=yes
11876: else
1.22 moko 11877: ac_cv_lib_dl_dlopen=no
1.8 moko 11878: fi
1.22 moko 11879: rm -f core conftest.err conftest.$ac_objext \
11880: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11881: LIBS=$ac_check_lib_save_LIBS
11882: fi
1.22 moko 11883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11884: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11885: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.8 moko 11886: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11887: else
11888:
11889: lt_cv_dlopen="dyld"
11890: lt_cv_dlopen_libs=
11891: lt_cv_dlopen_self=yes
11892:
11893: fi
11894:
11895: ;;
11896:
11897: *)
1.22 moko 11898: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11899: if test "x$ac_cv_func_shl_load" = xyes; then :
1.8 moko 11900: lt_cv_dlopen="shl_load"
11901: else
1.22 moko 11902: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11903: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11904: if ${ac_cv_lib_dld_shl_load+:} false; then :
11905: $as_echo_n "(cached) " >&6
1.11 moko 11906: else
1.22 moko 11907: ac_check_lib_save_LIBS=$LIBS
11908: LIBS="-ldld $LIBS"
11909: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 moko 11910: /* end confdefs.h. */
11911:
1.22 moko 11912: /* Override any GCC internal prototype to avoid an error.
11913: Use char because int might match the return type of a GCC
11914: builtin and then its argument prototype would still apply. */
1.11 moko 11915: #ifdef __cplusplus
11916: extern "C"
11917: #endif
1.22 moko 11918: char shl_load ();
1.11 moko 11919: int
11920: main ()
11921: {
1.22 moko 11922: return shl_load ();
1.11 moko 11923: ;
11924: return 0;
11925: }
11926: _ACEOF
1.22 moko 11927: if ac_fn_c_try_link "$LINENO"; then :
11928: ac_cv_lib_dld_shl_load=yes
1.11 moko 11929: else
1.22 moko 11930: ac_cv_lib_dld_shl_load=no
1.11 moko 11931: fi
1.22 moko 11932: rm -f core conftest.err conftest.$ac_objext \
11933: conftest$ac_exeext conftest.$ac_ext
11934: LIBS=$ac_check_lib_save_LIBS
1.11 moko 11935: fi
1.22 moko 11936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11937: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11938: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11939: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11940: else
11941: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11942: if test "x$ac_cv_func_dlopen" = xyes; then :
1.8 moko 11943: lt_cv_dlopen="dlopen"
11944: else
1.22 moko 11945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11946: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11947: if ${ac_cv_lib_dl_dlopen+:} false; then :
11948: $as_echo_n "(cached) " >&6
1.8 moko 11949: else
11950: ac_check_lib_save_LIBS=$LIBS
11951: LIBS="-ldl $LIBS"
1.22 moko 11952: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11953: /* end confdefs.h. */
11954:
1.22 moko 11955: /* Override any GCC internal prototype to avoid an error.
11956: Use char because int might match the return type of a GCC
11957: builtin and then its argument prototype would still apply. */
1.8 moko 11958: #ifdef __cplusplus
11959: extern "C"
11960: #endif
11961: char dlopen ();
11962: int
11963: main ()
11964: {
1.22 moko 11965: return dlopen ();
1.8 moko 11966: ;
11967: return 0;
11968: }
11969: _ACEOF
1.22 moko 11970: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 11971: ac_cv_lib_dl_dlopen=yes
11972: else
1.22 moko 11973: ac_cv_lib_dl_dlopen=no
1.8 moko 11974: fi
1.22 moko 11975: rm -f core conftest.err conftest.$ac_objext \
11976: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11977: LIBS=$ac_check_lib_save_LIBS
11978: fi
1.22 moko 11979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11980: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11981: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.8 moko 11982: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11983: else
1.22 moko 11984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11985: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11986: if ${ac_cv_lib_svld_dlopen+:} false; then :
11987: $as_echo_n "(cached) " >&6
1.8 moko 11988: else
11989: ac_check_lib_save_LIBS=$LIBS
11990: LIBS="-lsvld $LIBS"
1.22 moko 11991: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11992: /* end confdefs.h. */
11993:
1.22 moko 11994: /* Override any GCC internal prototype to avoid an error.
11995: Use char because int might match the return type of a GCC
11996: builtin and then its argument prototype would still apply. */
1.8 moko 11997: #ifdef __cplusplus
11998: extern "C"
11999: #endif
12000: char dlopen ();
12001: int
12002: main ()
12003: {
1.22 moko 12004: return dlopen ();
1.8 moko 12005: ;
12006: return 0;
12007: }
12008: _ACEOF
1.22 moko 12009: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 12010: ac_cv_lib_svld_dlopen=yes
12011: else
1.22 moko 12012: ac_cv_lib_svld_dlopen=no
1.8 moko 12013: fi
1.22 moko 12014: rm -f core conftest.err conftest.$ac_objext \
12015: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12016: LIBS=$ac_check_lib_save_LIBS
12017: fi
1.22 moko 12018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12019: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12020: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.8 moko 12021: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12022: else
1.22 moko 12023: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12024: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12025: if ${ac_cv_lib_dld_dld_link+:} false; then :
12026: $as_echo_n "(cached) " >&6
1.8 moko 12027: else
12028: ac_check_lib_save_LIBS=$LIBS
12029: LIBS="-ldld $LIBS"
1.22 moko 12030: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12031: /* end confdefs.h. */
12032:
1.22 moko 12033: /* Override any GCC internal prototype to avoid an error.
12034: Use char because int might match the return type of a GCC
12035: builtin and then its argument prototype would still apply. */
1.8 moko 12036: #ifdef __cplusplus
12037: extern "C"
12038: #endif
12039: char dld_link ();
12040: int
12041: main ()
12042: {
1.22 moko 12043: return dld_link ();
1.8 moko 12044: ;
12045: return 0;
12046: }
12047: _ACEOF
1.22 moko 12048: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 12049: ac_cv_lib_dld_dld_link=yes
12050: else
1.22 moko 12051: ac_cv_lib_dld_dld_link=no
1.8 moko 12052: fi
1.22 moko 12053: rm -f core conftest.err conftest.$ac_objext \
12054: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12055: LIBS=$ac_check_lib_save_LIBS
12056: fi
1.22 moko 12057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12058: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12059: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.8 moko 12060: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12061: fi
12062:
12063:
12064: fi
12065:
12066:
12067: fi
12068:
12069:
12070: fi
12071:
12072:
12073: fi
12074:
12075:
12076: fi
12077:
12078: ;;
12079: esac
12080:
12081: if test "x$lt_cv_dlopen" != xno; then
12082: enable_dlopen=yes
12083: else
12084: enable_dlopen=no
12085: fi
12086:
12087: case $lt_cv_dlopen in
12088: dlopen)
12089: save_CPPFLAGS="$CPPFLAGS"
12090: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12091:
12092: save_LDFLAGS="$LDFLAGS"
12093: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12094:
12095: save_LIBS="$LIBS"
12096: LIBS="$lt_cv_dlopen_libs $LIBS"
12097:
1.22 moko 12098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12099: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12100: if ${lt_cv_dlopen_self+:} false; then :
12101: $as_echo_n "(cached) " >&6
1.8 moko 12102: else
12103: if test "$cross_compiling" = yes; then :
12104: lt_cv_dlopen_self=cross
12105: else
12106: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12107: lt_status=$lt_dlunknown
12108: cat > conftest.$ac_ext <<_LT_EOF
12109: #line $LINENO "configure"
12110: #include "confdefs.h"
12111:
12112: #if HAVE_DLFCN_H
12113: #include <dlfcn.h>
12114: #endif
12115:
12116: #include <stdio.h>
12117:
12118: #ifdef RTLD_GLOBAL
12119: # define LT_DLGLOBAL RTLD_GLOBAL
12120: #else
12121: # ifdef DL_GLOBAL
12122: # define LT_DLGLOBAL DL_GLOBAL
12123: # else
12124: # define LT_DLGLOBAL 0
12125: # endif
12126: #endif
12127:
12128: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12129: find out it does not work in some platform. */
12130: #ifndef LT_DLLAZY_OR_NOW
12131: # ifdef RTLD_LAZY
12132: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12133: # else
12134: # ifdef DL_LAZY
12135: # define LT_DLLAZY_OR_NOW DL_LAZY
12136: # else
12137: # ifdef RTLD_NOW
12138: # define LT_DLLAZY_OR_NOW RTLD_NOW
12139: # else
12140: # ifdef DL_NOW
12141: # define LT_DLLAZY_OR_NOW DL_NOW
12142: # else
12143: # define LT_DLLAZY_OR_NOW 0
12144: # endif
12145: # endif
12146: # endif
12147: # endif
12148: #endif
12149:
12150: /* When -fvisbility=hidden is used, assume the code has been annotated
12151: correspondingly for the symbols needed. */
12152: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12153: int fnord () __attribute__((visibility("default")));
12154: #endif
12155:
12156: int fnord () { return 42; }
12157: int main ()
12158: {
12159: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12160: int status = $lt_dlunknown;
12161:
12162: if (self)
12163: {
12164: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12165: else
12166: {
12167: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12168: else puts (dlerror ());
12169: }
12170: /* dlclose (self); */
12171: }
12172: else
12173: puts (dlerror ());
12174:
12175: return status;
12176: }
12177: _LT_EOF
1.22 moko 12178: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 12179: (eval $ac_link) 2>&5
12180: ac_status=$?
1.22 moko 12181: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12182: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 12183: (./conftest; exit; ) >&5 2>/dev/null
12184: lt_status=$?
12185: case x$lt_status in
12186: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12187: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12188: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12189: esac
12190: else :
12191: # compilation failed
12192: lt_cv_dlopen_self=no
12193: fi
12194: fi
12195: rm -fr conftest*
12196:
12197:
12198: fi
1.22 moko 12199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12200: $as_echo "$lt_cv_dlopen_self" >&6; }
1.8 moko 12201:
12202: if test "x$lt_cv_dlopen_self" = xyes; then
12203: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.22 moko 12204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12205: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12206: if ${lt_cv_dlopen_self_static+:} false; then :
12207: $as_echo_n "(cached) " >&6
1.8 moko 12208: else
12209: if test "$cross_compiling" = yes; then :
12210: lt_cv_dlopen_self_static=cross
12211: else
12212: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12213: lt_status=$lt_dlunknown
12214: cat > conftest.$ac_ext <<_LT_EOF
12215: #line $LINENO "configure"
12216: #include "confdefs.h"
12217:
12218: #if HAVE_DLFCN_H
12219: #include <dlfcn.h>
12220: #endif
12221:
12222: #include <stdio.h>
12223:
12224: #ifdef RTLD_GLOBAL
12225: # define LT_DLGLOBAL RTLD_GLOBAL
12226: #else
12227: # ifdef DL_GLOBAL
12228: # define LT_DLGLOBAL DL_GLOBAL
12229: # else
12230: # define LT_DLGLOBAL 0
12231: # endif
12232: #endif
12233:
12234: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12235: find out it does not work in some platform. */
12236: #ifndef LT_DLLAZY_OR_NOW
12237: # ifdef RTLD_LAZY
12238: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12239: # else
12240: # ifdef DL_LAZY
12241: # define LT_DLLAZY_OR_NOW DL_LAZY
12242: # else
12243: # ifdef RTLD_NOW
12244: # define LT_DLLAZY_OR_NOW RTLD_NOW
12245: # else
12246: # ifdef DL_NOW
12247: # define LT_DLLAZY_OR_NOW DL_NOW
12248: # else
12249: # define LT_DLLAZY_OR_NOW 0
12250: # endif
12251: # endif
12252: # endif
12253: # endif
12254: #endif
12255:
12256: /* When -fvisbility=hidden is used, assume the code has been annotated
12257: correspondingly for the symbols needed. */
12258: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12259: int fnord () __attribute__((visibility("default")));
12260: #endif
12261:
12262: int fnord () { return 42; }
12263: int main ()
12264: {
12265: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12266: int status = $lt_dlunknown;
12267:
12268: if (self)
12269: {
12270: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12271: else
12272: {
12273: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12274: else puts (dlerror ());
12275: }
12276: /* dlclose (self); */
12277: }
12278: else
12279: puts (dlerror ());
12280:
12281: return status;
12282: }
12283: _LT_EOF
1.22 moko 12284: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 12285: (eval $ac_link) 2>&5
12286: ac_status=$?
1.22 moko 12287: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12288: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 12289: (./conftest; exit; ) >&5 2>/dev/null
12290: lt_status=$?
12291: case x$lt_status in
12292: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12293: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12294: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12295: esac
12296: else :
12297: # compilation failed
12298: lt_cv_dlopen_self_static=no
12299: fi
12300: fi
12301: rm -fr conftest*
12302:
12303:
12304: fi
1.22 moko 12305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12306: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.8 moko 12307: fi
12308:
12309: CPPFLAGS="$save_CPPFLAGS"
12310: LDFLAGS="$save_LDFLAGS"
12311: LIBS="$save_LIBS"
12312: ;;
12313: esac
12314:
12315: case $lt_cv_dlopen_self in
12316: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12317: *) enable_dlopen_self=unknown ;;
12318: esac
12319:
12320: case $lt_cv_dlopen_self_static in
12321: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12322: *) enable_dlopen_self_static=unknown ;;
12323: esac
12324: fi
12325:
12326:
12327:
12328:
12329:
12330:
12331:
12332:
12333:
12334:
12335:
12336:
12337:
12338:
12339:
12340:
12341:
12342: striplib=
12343: old_striplib=
1.22 moko 12344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12345: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.8 moko 12346: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12347: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12348: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.22 moko 12349: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12350: $as_echo "yes" >&6; }
1.8 moko 12351: else
12352: # FIXME - insert some real tests, host_os isn't really good enough
12353: case $host_os in
12354: darwin*)
12355: if test -n "$STRIP" ; then
12356: striplib="$STRIP -x"
12357: old_striplib="$STRIP -S"
1.22 moko 12358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359: $as_echo "yes" >&6; }
1.8 moko 12360: else
1.22 moko 12361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362: $as_echo "no" >&6; }
1.8 moko 12363: fi
12364: ;;
12365: *)
1.22 moko 12366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367: $as_echo "no" >&6; }
1.8 moko 12368: ;;
12369: esac
12370: fi
12371:
12372:
12373:
12374:
12375:
12376:
12377:
12378:
12379:
12380:
12381:
12382:
12383: # Report which library types will actually be built
1.22 moko 12384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12385: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12387: $as_echo "$can_build_shared" >&6; }
1.8 moko 12388:
1.22 moko 12389: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12390: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.8 moko 12391: test "$can_build_shared" = "no" && enable_shared=no
12392:
12393: # On AIX, shared libraries and static libraries use the same namespace, and
12394: # are all built from PIC.
12395: case $host_os in
12396: aix3*)
12397: test "$enable_shared" = yes && enable_static=no
12398: if test -n "$RANLIB"; then
12399: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12400: postinstall_cmds='$RANLIB $lib'
12401: fi
12402: ;;
12403:
12404: aix[4-9]*)
12405: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12406: test "$enable_shared" = yes && enable_static=no
12407: fi
12408: ;;
12409: esac
1.22 moko 12410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12411: $as_echo "$enable_shared" >&6; }
1.8 moko 12412:
1.22 moko 12413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12414: $as_echo_n "checking whether to build static libraries... " >&6; }
1.8 moko 12415: # Make sure either enable_shared or enable_static is yes.
12416: test "$enable_shared" = yes || enable_static=yes
1.22 moko 12417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12418: $as_echo "$enable_static" >&6; }
1.8 moko 12419:
12420:
12421:
12422:
12423: fi
12424: ac_ext=c
12425: ac_cpp='$CPP $CPPFLAGS'
12426: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12429:
12430: CC="$lt_save_CC"
12431:
12432: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12433: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12434: (test "X$CXX" != "Xg++"))) ; then
1.22 moko 12435: ac_ext=cpp
1.8 moko 12436: ac_cpp='$CXXCPP $CPPFLAGS'
12437: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12438: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12439: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.22 moko 12440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12441: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.8 moko 12442: if test -z "$CXXCPP"; then
1.22 moko 12443: if ${ac_cv_prog_CXXCPP+:} false; then :
12444: $as_echo_n "(cached) " >&6
1.8 moko 12445: else
12446: # Double quotes because CXXCPP needs to be expanded
12447: for CXXCPP in "$CXX -E" "/lib/cpp"
12448: do
12449: ac_preproc_ok=false
12450: for ac_cxx_preproc_warn_flag in '' yes
12451: do
12452: # Use a header file that comes with gcc, so configuring glibc
12453: # with a fresh cross-compiler works.
12454: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455: # <limits.h> exists even on freestanding compilers.
12456: # On the NeXT, cc -E runs the code through the compiler's parser,
12457: # not just through cpp. "Syntax error" is here to catch this case.
1.22 moko 12458: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12459: /* end confdefs.h. */
12460: #ifdef __STDC__
12461: # include <limits.h>
12462: #else
12463: # include <assert.h>
12464: #endif
12465: Syntax error
12466: _ACEOF
1.22 moko 12467: if ac_fn_cxx_try_cpp "$LINENO"; then :
12468:
1.11 moko 12469: else
1.8 moko 12470: # Broken: fails on valid input.
12471: continue
12472: fi
1.22 moko 12473: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 12474:
1.22 moko 12475: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 12476: # can be detected and how.
1.22 moko 12477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12478: /* end confdefs.h. */
12479: #include <ac_nonexistent.h>
12480: _ACEOF
1.22 moko 12481: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.8 moko 12482: # Broken: success on invalid input.
12483: continue
12484: else
12485: # Passes both tests.
12486: ac_preproc_ok=:
12487: break
12488: fi
1.22 moko 12489: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 12490:
12491: done
12492: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.22 moko 12493: rm -f conftest.i conftest.err conftest.$ac_ext
12494: if $ac_preproc_ok; then :
1.8 moko 12495: break
12496: fi
12497:
12498: done
12499: ac_cv_prog_CXXCPP=$CXXCPP
12500:
12501: fi
12502: CXXCPP=$ac_cv_prog_CXXCPP
12503: else
12504: ac_cv_prog_CXXCPP=$CXXCPP
12505: fi
1.22 moko 12506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12507: $as_echo "$CXXCPP" >&6; }
1.8 moko 12508: ac_preproc_ok=false
12509: for ac_cxx_preproc_warn_flag in '' yes
12510: do
12511: # Use a header file that comes with gcc, so configuring glibc
12512: # with a fresh cross-compiler works.
12513: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12514: # <limits.h> exists even on freestanding compilers.
12515: # On the NeXT, cc -E runs the code through the compiler's parser,
12516: # not just through cpp. "Syntax error" is here to catch this case.
1.22 moko 12517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12518: /* end confdefs.h. */
12519: #ifdef __STDC__
12520: # include <limits.h>
12521: #else
12522: # include <assert.h>
12523: #endif
12524: Syntax error
12525: _ACEOF
1.22 moko 12526: if ac_fn_cxx_try_cpp "$LINENO"; then :
12527:
1.11 moko 12528: else
1.10 moko 12529: # Broken: fails on valid input.
1.8 moko 12530: continue
12531: fi
1.22 moko 12532: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 12533:
1.22 moko 12534: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 12535: # can be detected and how.
1.22 moko 12536: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12537: /* end confdefs.h. */
12538: #include <ac_nonexistent.h>
12539: _ACEOF
1.22 moko 12540: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.8 moko 12541: # Broken: success on invalid input.
12542: continue
12543: else
12544: # Passes both tests.
12545: ac_preproc_ok=:
12546: break
12547: fi
1.22 moko 12548: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 12549:
12550: done
12551: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.22 moko 12552: rm -f conftest.i conftest.err conftest.$ac_ext
12553: if $ac_preproc_ok; then :
12554:
1.8 moko 12555: else
1.22 moko 12556: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12557: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12558: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12559: See \`config.log' for more details" "$LINENO" 5; }
1.8 moko 12560: fi
12561:
12562: ac_ext=c
12563: ac_cpp='$CPP $CPPFLAGS'
12564: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12567:
12568: else
12569: _lt_caught_CXX_error=yes
12570: fi
12571:
1.22 moko 12572: ac_ext=cpp
1.8 moko 12573: ac_cpp='$CXXCPP $CPPFLAGS'
12574: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12575: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12576: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12577:
12578: archive_cmds_need_lc_CXX=no
12579: allow_undefined_flag_CXX=
12580: always_export_symbols_CXX=no
12581: archive_expsym_cmds_CXX=
12582: compiler_needs_object_CXX=no
12583: export_dynamic_flag_spec_CXX=
12584: hardcode_direct_CXX=no
12585: hardcode_direct_absolute_CXX=no
12586: hardcode_libdir_flag_spec_CXX=
12587: hardcode_libdir_separator_CXX=
12588: hardcode_minus_L_CXX=no
12589: hardcode_shlibpath_var_CXX=unsupported
12590: hardcode_automatic_CXX=no
12591: inherit_rpath_CXX=no
12592: module_cmds_CXX=
12593: module_expsym_cmds_CXX=
12594: link_all_deplibs_CXX=unknown
12595: old_archive_cmds_CXX=$old_archive_cmds
12596: reload_flag_CXX=$reload_flag
12597: reload_cmds_CXX=$reload_cmds
12598: no_undefined_flag_CXX=
12599: whole_archive_flag_spec_CXX=
12600: enable_shared_with_static_runtimes_CXX=no
12601:
12602: # Source file extension for C++ test sources.
12603: ac_ext=cpp
12604:
12605: # Object file extension for compiled C++ test sources.
12606: objext=o
12607: objext_CXX=$objext
12608:
12609: # No sense in running all these tests if we already determined that
12610: # the CXX compiler isn't working. Some variables (like enable_shared)
12611: # are currently assumed to apply to all compilers on this platform,
12612: # and will be corrupted by setting them based on a non-working compiler.
12613: if test "$_lt_caught_CXX_error" != yes; then
12614: # Code to be used in simple compile tests
12615: lt_simple_compile_test_code="int some_variable = 0;"
12616:
12617: # Code to be used in simple link tests
12618: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12619:
12620: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12621:
12622:
12623:
12624:
12625:
12626:
12627: # If no C compiler was specified, use CC.
12628: LTCC=${LTCC-"$CC"}
12629:
12630: # If no C compiler flags were specified, use CFLAGS.
12631: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12632:
12633: # Allow CC to be a program name with arguments.
12634: compiler=$CC
12635:
12636:
12637: # save warnings/boilerplate of simple test code
12638: ac_outfile=conftest.$ac_objext
12639: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12640: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12641: _lt_compiler_boilerplate=`cat conftest.err`
12642: $RM conftest*
12643:
12644: ac_outfile=conftest.$ac_objext
12645: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12646: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12647: _lt_linker_boilerplate=`cat conftest.err`
12648: $RM -r conftest*
12649:
12650:
12651: # Allow CC to be a program name with arguments.
12652: lt_save_CC=$CC
12653: lt_save_CFLAGS=$CFLAGS
12654: lt_save_LD=$LD
12655: lt_save_GCC=$GCC
12656: GCC=$GXX
12657: lt_save_with_gnu_ld=$with_gnu_ld
12658: lt_save_path_LD=$lt_cv_path_LD
12659: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12660: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12661: else
12662: $as_unset lt_cv_prog_gnu_ld
12663: fi
12664: if test -n "${lt_cv_path_LDCXX+set}"; then
12665: lt_cv_path_LD=$lt_cv_path_LDCXX
12666: else
12667: $as_unset lt_cv_path_LD
12668: fi
12669: test -z "${LDCXX+set}" || LD=$LDCXX
12670: CC=${CXX-"c++"}
12671: CFLAGS=$CXXFLAGS
12672: compiler=$CC
12673: compiler_CXX=$CC
12674: for cc_temp in $compiler""; do
12675: case $cc_temp in
12676: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12677: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12678: \-*) ;;
12679: *) break;;
12680: esac
12681: done
12682: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12683:
12684:
12685: if test -n "$compiler"; then
12686: # We don't want -fno-exception when compiling C++ code, so set the
12687: # no_builtin_flag separately
12688: if test "$GXX" = yes; then
12689: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12690: else
12691: lt_prog_compiler_no_builtin_flag_CXX=
12692: fi
12693:
12694: if test "$GXX" = yes; then
12695: # Set up default GNU C++ configuration
12696:
12697:
12698:
1.22 moko 12699: # Check whether --with-gnu-ld was given.
12700: if test "${with_gnu_ld+set}" = set; then :
12701: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.8 moko 12702: else
12703: with_gnu_ld=no
1.22 moko 12704: fi
12705:
1.8 moko 12706: ac_prog=ld
12707: if test "$GCC" = yes; then
12708: # Check if gcc -print-prog-name=ld gives a path.
1.22 moko 12709: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12710: $as_echo_n "checking for ld used by $CC... " >&6; }
1.8 moko 12711: case $host in
12712: *-*-mingw*)
12713: # gcc leaves a trailing carriage return which upsets mingw
12714: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12715: *)
12716: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12717: esac
12718: case $ac_prog in
12719: # Accept absolute paths.
12720: [\\/]* | ?:[\\/]*)
12721: re_direlt='/[^/][^/]*/\.\./'
12722: # Canonicalize the pathname of ld
12723: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12724: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12725: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12726: done
12727: test -z "$LD" && LD="$ac_prog"
12728: ;;
12729: "")
12730: # If it fails, then pretend we aren't using GCC.
12731: ac_prog=ld
12732: ;;
12733: *)
12734: # If it is relative, then search for the first ld in PATH.
12735: with_gnu_ld=unknown
12736: ;;
12737: esac
12738: elif test "$with_gnu_ld" = yes; then
1.22 moko 12739: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12740: $as_echo_n "checking for GNU ld... " >&6; }
1.8 moko 12741: else
1.22 moko 12742: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12743: $as_echo_n "checking for non-GNU ld... " >&6; }
1.8 moko 12744: fi
1.22 moko 12745: if ${lt_cv_path_LD+:} false; then :
12746: $as_echo_n "(cached) " >&6
1.8 moko 12747: else
12748: if test -z "$LD"; then
12749: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12750: for ac_dir in $PATH; do
12751: IFS="$lt_save_ifs"
12752: test -z "$ac_dir" && ac_dir=.
12753: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12754: lt_cv_path_LD="$ac_dir/$ac_prog"
12755: # Check to see if the program is GNU ld. I'd rather use --version,
12756: # but apparently some variants of GNU ld only accept -v.
12757: # Break only if it was the GNU/non-GNU ld that we prefer.
12758: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12759: *GNU* | *'with BFD'*)
12760: test "$with_gnu_ld" != no && break
12761: ;;
12762: *)
12763: test "$with_gnu_ld" != yes && break
12764: ;;
12765: esac
12766: fi
12767: done
12768: IFS="$lt_save_ifs"
12769: else
12770: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12771: fi
12772: fi
12773:
12774: LD="$lt_cv_path_LD"
12775: if test -n "$LD"; then
1.22 moko 12776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12777: $as_echo "$LD" >&6; }
1.8 moko 12778: else
1.22 moko 12779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780: $as_echo "no" >&6; }
1.8 moko 12781: fi
1.22 moko 12782: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12784: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12785: if ${lt_cv_prog_gnu_ld+:} false; then :
12786: $as_echo_n "(cached) " >&6
1.8 moko 12787: else
12788: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12789: case `$LD -v 2>&1 </dev/null` in
12790: *GNU* | *'with BFD'*)
12791: lt_cv_prog_gnu_ld=yes
12792: ;;
12793: *)
12794: lt_cv_prog_gnu_ld=no
12795: ;;
12796: esac
12797: fi
1.22 moko 12798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12799: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.8 moko 12800: with_gnu_ld=$lt_cv_prog_gnu_ld
12801:
12802:
12803:
12804:
12805:
12806:
12807:
12808: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12809: # archiving commands below assume that GNU ld is being used.
12810: if test "$with_gnu_ld" = yes; then
12811: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12812: 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'
12813:
12814: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12815: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12816:
12817: # If archive_cmds runs LD, not CC, wlarc should be empty
12818: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12819: # investigate it a little bit more. (MM)
12820: wlarc='${wl}'
12821:
12822: # ancient GNU ld didn't support --whole-archive et. al.
12823: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12824: $GREP 'no-whole-archive' > /dev/null; then
12825: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12826: else
12827: whole_archive_flag_spec_CXX=
12828: fi
12829: else
12830: with_gnu_ld=no
12831: wlarc=
12832:
12833: # A generic and very simple default shared library creation
12834: # command for GNU C++ for the case where it uses the native
12835: # linker, instead of GNU ld. If possible, this setting should
12836: # overridden to take advantage of the native linker features on
12837: # the platform it is being used on.
12838: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12839: fi
12840:
12841: # Commands to make compiler produce verbose output that lists
12842: # what "hidden" libraries, object files and flags are used when
12843: # linking a shared library.
12844: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12845:
12846: else
12847: GXX=no
12848: with_gnu_ld=no
12849: wlarc=
12850: fi
12851:
12852: # PORTME: fill in a description of your system's C++ link characteristics
1.22 moko 12853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12854: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.8 moko 12855: ld_shlibs_CXX=yes
12856: case $host_os in
12857: aix3*)
12858: # FIXME: insert proper C++ library support
12859: ld_shlibs_CXX=no
12860: ;;
12861: aix[4-9]*)
12862: if test "$host_cpu" = ia64; then
12863: # On IA64, the linker does run time linking by default, so we don't
12864: # have to do anything special.
12865: aix_use_runtimelinking=no
12866: exp_sym_flag='-Bexport'
12867: no_entry_flag=""
12868: else
12869: aix_use_runtimelinking=no
12870:
12871: # Test if we are trying to use run time linking or normal
12872: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12873: # need to do runtime linking.
12874: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12875: for ld_flag in $LDFLAGS; do
12876: case $ld_flag in
12877: *-brtl*)
12878: aix_use_runtimelinking=yes
12879: break
12880: ;;
12881: esac
12882: done
12883: ;;
12884: esac
12885:
12886: exp_sym_flag='-bexport'
12887: no_entry_flag='-bnoentry'
12888: fi
12889:
12890: # When large executables or shared objects are built, AIX ld can
12891: # have problems creating the table of contents. If linking a library
12892: # or program results in "error TOC overflow" add -mminimal-toc to
12893: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12894: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12895:
12896: archive_cmds_CXX=''
12897: hardcode_direct_CXX=yes
12898: hardcode_direct_absolute_CXX=yes
12899: hardcode_libdir_separator_CXX=':'
12900: link_all_deplibs_CXX=yes
12901: file_list_spec_CXX='${wl}-f,'
12902:
12903: if test "$GXX" = yes; then
12904: case $host_os in aix4.[012]|aix4.[012].*)
12905: # We only want to do this on AIX 4.2 and lower, the check
12906: # below for broken collect2 doesn't work under 4.3+
12907: collect2name=`${CC} -print-prog-name=collect2`
12908: if test -f "$collect2name" &&
12909: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12910: then
12911: # We have reworked collect2
12912: :
12913: else
12914: # We have old collect2
12915: hardcode_direct_CXX=unsupported
12916: # It fails to find uninstalled libraries when the uninstalled
12917: # path is not listed in the libpath. Setting hardcode_minus_L
12918: # to unsupported forces relinking
12919: hardcode_minus_L_CXX=yes
12920: hardcode_libdir_flag_spec_CXX='-L$libdir'
12921: hardcode_libdir_separator_CXX=
12922: fi
12923: esac
12924: shared_flag='-shared'
12925: if test "$aix_use_runtimelinking" = yes; then
12926: shared_flag="$shared_flag "'${wl}-G'
12927: fi
12928: else
12929: # not using gcc
12930: if test "$host_cpu" = ia64; then
12931: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12932: # chokes on -Wl,-G. The following line is correct:
12933: shared_flag='-G'
12934: else
12935: if test "$aix_use_runtimelinking" = yes; then
12936: shared_flag='${wl}-G'
12937: else
12938: shared_flag='${wl}-bM:SRE'
12939: fi
12940: fi
12941: fi
12942:
12943: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12944: # It seems that -bexpall does not export symbols beginning with
12945: # underscore (_), so it is better to generate a list of symbols to
12946: # export.
12947: always_export_symbols_CXX=yes
12948: if test "$aix_use_runtimelinking" = yes; then
12949: # Warning - without using the other runtime loading flags (-brtl),
12950: # -berok will link without error, but may produce a broken library.
12951: allow_undefined_flag_CXX='-berok'
12952: # Determine the default libpath from the value encoded in an empty
12953: # executable.
12954: if test "${lt_cv_aix_libpath+set}" = set; then
12955: aix_libpath=$lt_cv_aix_libpath
12956: else
1.22 moko 12957: if ${lt_cv_aix_libpath__CXX+:} false; then :
12958: $as_echo_n "(cached) " >&6
1.8 moko 12959: else
1.22 moko 12960: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12961: /* end confdefs.h. */
12962:
12963: int
12964: main ()
12965: {
12966:
12967: ;
12968: return 0;
12969: }
12970: _ACEOF
1.22 moko 12971: if ac_fn_cxx_try_link "$LINENO"; then :
1.8 moko 12972:
12973: lt_aix_libpath_sed='
12974: /Import File Strings/,/^$/ {
12975: /^0/ {
12976: s/^0 *\([^ ]*\) *$/\1/
12977: p
12978: }
12979: }'
12980: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12981: # Check for a 64-bit object if we didn't find anything.
12982: if test -z "$lt_cv_aix_libpath__CXX"; then
12983: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12984: fi
12985: fi
1.22 moko 12986: rm -f core conftest.err conftest.$ac_objext \
12987: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12988: if test -z "$lt_cv_aix_libpath__CXX"; then
12989: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12990: fi
12991:
12992: fi
12993:
12994: aix_libpath=$lt_cv_aix_libpath__CXX
12995: fi
12996:
12997: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12998:
12999: 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"
13000: else
13001: if test "$host_cpu" = ia64; then
13002: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13003: allow_undefined_flag_CXX="-z nodefs"
13004: 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"
13005: else
13006: # Determine the default libpath from the value encoded in an
13007: # empty executable.
13008: if test "${lt_cv_aix_libpath+set}" = set; then
13009: aix_libpath=$lt_cv_aix_libpath
13010: else
1.22 moko 13011: if ${lt_cv_aix_libpath__CXX+:} false; then :
13012: $as_echo_n "(cached) " >&6
1.8 moko 13013: else
1.22 moko 13014: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 13015: /* end confdefs.h. */
13016:
13017: int
13018: main ()
13019: {
13020:
13021: ;
13022: return 0;
13023: }
13024: _ACEOF
1.22 moko 13025: if ac_fn_cxx_try_link "$LINENO"; then :
1.8 moko 13026:
13027: lt_aix_libpath_sed='
13028: /Import File Strings/,/^$/ {
13029: /^0/ {
13030: s/^0 *\([^ ]*\) *$/\1/
13031: p
13032: }
13033: }'
13034: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13035: # Check for a 64-bit object if we didn't find anything.
13036: if test -z "$lt_cv_aix_libpath__CXX"; then
13037: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13038: fi
13039: fi
1.22 moko 13040: rm -f core conftest.err conftest.$ac_objext \
13041: conftest$ac_exeext conftest.$ac_ext
1.8 moko 13042: if test -z "$lt_cv_aix_libpath__CXX"; then
13043: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13044: fi
13045:
13046: fi
13047:
13048: aix_libpath=$lt_cv_aix_libpath__CXX
13049: fi
13050:
13051: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13052: # Warning - without using the other run time loading flags,
13053: # -berok will link without error, but may produce a broken library.
13054: no_undefined_flag_CXX=' ${wl}-bernotok'
13055: allow_undefined_flag_CXX=' ${wl}-berok'
13056: if test "$with_gnu_ld" = yes; then
13057: # We only use this code for GNU lds that support --whole-archive.
13058: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13059: else
13060: # Exported symbols can be pulled into shared objects from archives
13061: whole_archive_flag_spec_CXX='$convenience'
13062: fi
13063: archive_cmds_need_lc_CXX=yes
13064: # This is similar to how AIX traditionally builds its shared
13065: # libraries.
13066: 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'
13067: fi
13068: fi
13069: ;;
13070:
13071: beos*)
13072: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13073: allow_undefined_flag_CXX=unsupported
13074: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13075: # support --undefined. This deserves some investigation. FIXME
13076: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13077: else
13078: ld_shlibs_CXX=no
13079: fi
13080: ;;
13081:
13082: chorus*)
13083: case $cc_basename in
13084: *)
13085: # FIXME: insert proper C++ library support
13086: ld_shlibs_CXX=no
13087: ;;
13088: esac
13089: ;;
13090:
13091: cygwin* | mingw* | pw32* | cegcc*)
13092: case $GXX,$cc_basename in
13093: ,cl* | no,cl*)
13094: # Native MSVC
13095: # hardcode_libdir_flag_spec is actually meaningless, as there is
13096: # no search path for DLLs.
13097: hardcode_libdir_flag_spec_CXX=' '
13098: allow_undefined_flag_CXX=unsupported
13099: always_export_symbols_CXX=yes
13100: file_list_spec_CXX='@'
13101: # Tell ltmain to make .lib files, not .a files.
13102: libext=lib
13103: # Tell ltmain to make .dll files, not .so files.
13104: shrext_cmds=".dll"
13105: # FIXME: Setting linknames here is a bad hack.
13106: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13107: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13108: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13109: else
13110: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13111: fi~
13112: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13113: linknames='
13114: # The linker will not automatically build a static lib if we build a DLL.
13115: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13116: enable_shared_with_static_runtimes_CXX=yes
13117: # Don't use ranlib
13118: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13119: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13120: lt_tool_outputfile="@TOOL_OUTPUT@"~
13121: case $lt_outputfile in
13122: *.exe|*.EXE) ;;
13123: *)
13124: lt_outputfile="$lt_outputfile.exe"
13125: lt_tool_outputfile="$lt_tool_outputfile.exe"
13126: ;;
13127: esac~
13128: func_to_tool_file "$lt_outputfile"~
13129: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13130: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13131: $RM "$lt_outputfile.manifest";
13132: fi'
13133: ;;
13134: *)
13135: # g++
13136: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13137: # as there is no search path for DLLs.
13138: hardcode_libdir_flag_spec_CXX='-L$libdir'
13139: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13140: allow_undefined_flag_CXX=unsupported
13141: always_export_symbols_CXX=no
13142: enable_shared_with_static_runtimes_CXX=yes
13143:
13144: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13145: 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'
13146: # If the export-symbols file already is a .def file (1st line
13147: # is EXPORTS), use it as is; otherwise, prepend...
13148: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13149: cp $export_symbols $output_objdir/$soname.def;
13150: else
13151: echo EXPORTS > $output_objdir/$soname.def;
13152: cat $export_symbols >> $output_objdir/$soname.def;
13153: fi~
13154: $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'
13155: else
13156: ld_shlibs_CXX=no
13157: fi
13158: ;;
13159: esac
13160: ;;
13161: darwin* | rhapsody*)
13162:
13163:
13164: archive_cmds_need_lc_CXX=no
13165: hardcode_direct_CXX=no
13166: hardcode_automatic_CXX=yes
13167: hardcode_shlibpath_var_CXX=unsupported
13168: if test "$lt_cv_ld_force_load" = "yes"; then
13169: 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\"`'
13170:
13171: else
13172: whole_archive_flag_spec_CXX=''
13173: fi
13174: link_all_deplibs_CXX=yes
13175: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13176: case $cc_basename in
13177: ifort*) _lt_dar_can_shared=yes ;;
13178: *) _lt_dar_can_shared=$GCC ;;
13179: esac
13180: if test "$_lt_dar_can_shared" = "yes"; then
13181: output_verbose_link_cmd=func_echo_all
13182: 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}"
13183: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13184: 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}"
13185: 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}"
13186: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13187: 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}"
13188: 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}"
13189: fi
13190:
13191: else
13192: ld_shlibs_CXX=no
13193: fi
13194:
13195: ;;
13196:
13197: dgux*)
13198: case $cc_basename in
13199: ec++*)
13200: # FIXME: insert proper C++ library support
13201: ld_shlibs_CXX=no
13202: ;;
13203: ghcx*)
13204: # Green Hills C++ Compiler
13205: # FIXME: insert proper C++ library support
13206: ld_shlibs_CXX=no
13207: ;;
13208: *)
13209: # FIXME: insert proper C++ library support
13210: ld_shlibs_CXX=no
13211: ;;
13212: esac
13213: ;;
13214:
13215: freebsd2.*)
13216: # C++ shared libraries reported to be fairly broken before
13217: # switch to ELF
13218: ld_shlibs_CXX=no
13219: ;;
13220:
13221: freebsd-elf*)
13222: archive_cmds_need_lc_CXX=no
13223: ;;
13224:
13225: freebsd* | dragonfly*)
13226: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13227: # conventions
13228: ld_shlibs_CXX=yes
13229: ;;
13230:
13231: gnu*)
13232: ;;
13233:
13234: haiku*)
13235: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13236: link_all_deplibs_CXX=yes
13237: ;;
13238:
13239: hpux9*)
13240: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13241: hardcode_libdir_separator_CXX=:
13242: export_dynamic_flag_spec_CXX='${wl}-E'
13243: hardcode_direct_CXX=yes
13244: hardcode_minus_L_CXX=yes # Not in the search PATH,
13245: # but as the default
13246: # location of the library.
13247:
13248: case $cc_basename in
13249: CC*)
13250: # FIXME: insert proper C++ library support
13251: ld_shlibs_CXX=no
13252: ;;
13253: aCC*)
13254: 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'
13255: # Commands to make compiler produce verbose output that lists
13256: # what "hidden" libraries, object files and flags are used when
13257: # linking a shared library.
13258: #
13259: # There doesn't appear to be a way to prevent this compiler from
13260: # explicitly linking system object files so we need to strip them
13261: # from the output so that they don't get included in the library
13262: # dependencies.
13263: 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"'
13264: ;;
13265: *)
13266: if test "$GXX" = yes; then
13267: 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'
13268: else
13269: # FIXME: insert proper C++ library support
13270: ld_shlibs_CXX=no
13271: fi
13272: ;;
13273: esac
13274: ;;
13275:
13276: hpux10*|hpux11*)
13277: if test $with_gnu_ld = no; then
13278: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13279: hardcode_libdir_separator_CXX=:
13280:
13281: case $host_cpu in
13282: hppa*64*|ia64*)
13283: ;;
13284: *)
13285: export_dynamic_flag_spec_CXX='${wl}-E'
13286: ;;
13287: esac
13288: fi
13289: case $host_cpu in
13290: hppa*64*|ia64*)
13291: hardcode_direct_CXX=no
13292: hardcode_shlibpath_var_CXX=no
13293: ;;
13294: *)
13295: hardcode_direct_CXX=yes
13296: hardcode_direct_absolute_CXX=yes
13297: hardcode_minus_L_CXX=yes # Not in the search PATH,
13298: # but as the default
13299: # location of the library.
13300: ;;
13301: esac
13302:
13303: case $cc_basename in
13304: CC*)
13305: # FIXME: insert proper C++ library support
13306: ld_shlibs_CXX=no
13307: ;;
13308: aCC*)
13309: case $host_cpu in
13310: hppa*64*)
13311: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13312: ;;
13313: ia64*)
13314: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13315: ;;
13316: *)
13317: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13318: ;;
13319: esac
13320: # Commands to make compiler produce verbose output that lists
13321: # what "hidden" libraries, object files and flags are used when
13322: # linking a shared library.
13323: #
13324: # There doesn't appear to be a way to prevent this compiler from
13325: # explicitly linking system object files so we need to strip them
13326: # from the output so that they don't get included in the library
13327: # dependencies.
13328: 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"'
13329: ;;
13330: *)
13331: if test "$GXX" = yes; then
13332: if test $with_gnu_ld = no; then
13333: case $host_cpu in
13334: hppa*64*)
13335: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13336: ;;
13337: ia64*)
13338: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13339: ;;
13340: *)
13341: 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'
13342: ;;
13343: esac
13344: fi
13345: else
13346: # FIXME: insert proper C++ library support
13347: ld_shlibs_CXX=no
13348: fi
13349: ;;
13350: esac
13351: ;;
13352:
13353: interix[3-9]*)
13354: hardcode_direct_CXX=no
13355: hardcode_shlibpath_var_CXX=no
13356: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13357: export_dynamic_flag_spec_CXX='${wl}-E'
13358: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13359: # Instead, shared libraries are loaded at an image base (0x10000000 by
13360: # default) and relocated if they conflict, which is a slow very memory
13361: # consuming and fragmenting process. To avoid this, we pick a random,
13362: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13363: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13364: 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'
13365: 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'
13366: ;;
13367: irix5* | irix6*)
13368: case $cc_basename in
13369: CC*)
13370: # SGI C++
13371: 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'
13372:
13373: # Archives containing C++ object files must be created using
13374: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13375: # necessary to make sure instantiated templates are included
13376: # in the archive.
13377: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13378: ;;
13379: *)
13380: if test "$GXX" = yes; then
13381: if test "$with_gnu_ld" = no; then
13382: 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'
13383: else
13384: 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'
13385: fi
13386: fi
13387: link_all_deplibs_CXX=yes
13388: ;;
13389: esac
13390: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13391: hardcode_libdir_separator_CXX=:
13392: inherit_rpath_CXX=yes
13393: ;;
13394:
13395: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13396: case $cc_basename in
13397: KCC*)
13398: # Kuck and Associates, Inc. (KAI) C++ Compiler
13399:
13400: # KCC will only create a shared library if the output file
13401: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13402: # to its proper name (with version) after linking.
13403: 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'
13404: 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'
13405: # Commands to make compiler produce verbose output that lists
13406: # what "hidden" libraries, object files and flags are used when
13407: # linking a shared library.
13408: #
13409: # There doesn't appear to be a way to prevent this compiler from
13410: # explicitly linking system object files so we need to strip them
13411: # from the output so that they don't get included in the library
13412: # dependencies.
13413: 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"'
13414:
13415: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13416: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13417:
13418: # Archives containing C++ object files must be created using
13419: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13420: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13421: ;;
13422: icpc* | ecpc* )
13423: # Intel C++
13424: with_gnu_ld=yes
13425: # version 8.0 and above of icpc choke on multiply defined symbols
13426: # if we add $predep_objects and $postdep_objects, however 7.1 and
13427: # earlier do not add the objects themselves.
13428: case `$CC -V 2>&1` in
13429: *"Version 7."*)
13430: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13431: 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'
13432: ;;
13433: *) # Version 8.0 or newer
13434: tmp_idyn=
13435: case $host_cpu in
13436: ia64*) tmp_idyn=' -i_dynamic';;
13437: esac
13438: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13439: 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'
13440: ;;
13441: esac
13442: archive_cmds_need_lc_CXX=no
13443: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13444: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13445: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13446: ;;
13447: pgCC* | pgcpp*)
13448: # Portland Group C++ compiler
13449: case `$CC -V` in
13450: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13451: prelink_cmds_CXX='tpldir=Template.dir~
13452: rm -rf $tpldir~
13453: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13454: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13455: old_archive_cmds_CXX='tpldir=Template.dir~
13456: rm -rf $tpldir~
13457: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13458: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13459: $RANLIB $oldlib'
13460: archive_cmds_CXX='tpldir=Template.dir~
13461: rm -rf $tpldir~
13462: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13463: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13464: archive_expsym_cmds_CXX='tpldir=Template.dir~
13465: rm -rf $tpldir~
13466: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13467: $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'
13468: ;;
13469: *) # Version 6 and above use weak symbols
13470: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13471: 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'
13472: ;;
13473: esac
13474:
13475: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13476: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13477: 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'
13478: ;;
13479: cxx*)
13480: # Compaq C++
13481: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13482: 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'
13483:
13484: runpath_var=LD_RUN_PATH
13485: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13486: hardcode_libdir_separator_CXX=:
13487:
13488: # Commands to make compiler produce verbose output that lists
13489: # what "hidden" libraries, object files and flags are used when
13490: # linking a shared library.
13491: #
13492: # There doesn't appear to be a way to prevent this compiler from
13493: # explicitly linking system object files so we need to strip them
13494: # from the output so that they don't get included in the library
13495: # dependencies.
13496: 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'
13497: ;;
13498: xl* | mpixl* | bgxl*)
13499: # IBM XL 8.0 on PPC, with GNU ld
13500: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13501: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13502: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13503: if test "x$supports_anon_versioning" = xyes; then
13504: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13505: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13506: echo "local: *; };" >> $output_objdir/$libname.ver~
13507: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13508: fi
13509: ;;
13510: *)
13511: case `$CC -V 2>&1 | sed 5q` in
13512: *Sun\ C*)
13513: # Sun C++ 5.9
13514: no_undefined_flag_CXX=' -zdefs'
13515: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13516: 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'
13517: hardcode_libdir_flag_spec_CXX='-R$libdir'
13518: 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'
13519: compiler_needs_object_CXX=yes
13520:
13521: # Not sure whether something based on
13522: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13523: # would be better.
13524: output_verbose_link_cmd='func_echo_all'
13525:
13526: # Archives containing C++ object files must be created using
13527: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13528: # necessary to make sure instantiated templates are included
13529: # in the archive.
13530: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13531: ;;
13532: esac
13533: ;;
13534: esac
13535: ;;
13536:
13537: lynxos*)
13538: # FIXME: insert proper C++ library support
13539: ld_shlibs_CXX=no
13540: ;;
13541:
13542: m88k*)
13543: # FIXME: insert proper C++ library support
13544: ld_shlibs_CXX=no
13545: ;;
13546:
13547: mvs*)
13548: case $cc_basename in
13549: cxx*)
13550: # FIXME: insert proper C++ library support
13551: ld_shlibs_CXX=no
13552: ;;
13553: *)
13554: # FIXME: insert proper C++ library support
13555: ld_shlibs_CXX=no
13556: ;;
13557: esac
13558: ;;
13559:
13560: netbsd*)
13561: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13562: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13563: wlarc=
13564: hardcode_libdir_flag_spec_CXX='-R$libdir'
13565: hardcode_direct_CXX=yes
13566: hardcode_shlibpath_var_CXX=no
13567: fi
13568: # Workaround some broken pre-1.5 toolchains
13569: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13570: ;;
13571:
13572: *nto* | *qnx*)
13573: ld_shlibs_CXX=yes
13574: ;;
13575:
13576: openbsd2*)
13577: # C++ shared libraries are fairly broken
13578: ld_shlibs_CXX=no
13579: ;;
13580:
13581: openbsd*)
13582: if test -f /usr/libexec/ld.so; then
13583: hardcode_direct_CXX=yes
13584: hardcode_shlibpath_var_CXX=no
13585: hardcode_direct_absolute_CXX=yes
13586: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13587: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13588: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13589: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13590: export_dynamic_flag_spec_CXX='${wl}-E'
13591: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13592: fi
13593: output_verbose_link_cmd=func_echo_all
13594: else
13595: ld_shlibs_CXX=no
13596: fi
13597: ;;
13598:
13599: osf3* | osf4* | osf5*)
13600: case $cc_basename in
13601: KCC*)
13602: # Kuck and Associates, Inc. (KAI) C++ Compiler
13603:
13604: # KCC will only create a shared library if the output file
13605: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13606: # to its proper name (with version) after linking.
13607: 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'
13608:
13609: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13610: hardcode_libdir_separator_CXX=:
13611:
13612: # Archives containing C++ object files must be created using
13613: # the KAI C++ compiler.
13614: case $host in
13615: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13616: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13617: esac
13618: ;;
13619: RCC*)
13620: # Rational C++ 2.4.1
13621: # FIXME: insert proper C++ library support
13622: ld_shlibs_CXX=no
13623: ;;
13624: cxx*)
13625: case $host in
13626: osf3*)
13627: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13628: 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'
13629: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13630: ;;
13631: *)
13632: allow_undefined_flag_CXX=' -expect_unresolved \*'
13633: 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'
13634: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13635: echo "-hidden">> $lib.exp~
13636: $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~
13637: $RM $lib.exp'
13638: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13639: ;;
13640: esac
13641:
13642: hardcode_libdir_separator_CXX=:
13643:
13644: # Commands to make compiler produce verbose output that lists
13645: # what "hidden" libraries, object files and flags are used when
13646: # linking a shared library.
13647: #
13648: # There doesn't appear to be a way to prevent this compiler from
13649: # explicitly linking system object files so we need to strip them
13650: # from the output so that they don't get included in the library
13651: # dependencies.
13652: 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"'
13653: ;;
13654: *)
13655: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13656: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13657: case $host in
13658: osf3*)
13659: 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'
13660: ;;
13661: *)
13662: 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'
13663: ;;
13664: esac
13665:
13666: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13667: hardcode_libdir_separator_CXX=:
13668:
13669: # Commands to make compiler produce verbose output that lists
13670: # what "hidden" libraries, object files and flags are used when
13671: # linking a shared library.
13672: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13673:
13674: else
13675: # FIXME: insert proper C++ library support
13676: ld_shlibs_CXX=no
13677: fi
13678: ;;
13679: esac
13680: ;;
13681:
13682: psos*)
13683: # FIXME: insert proper C++ library support
13684: ld_shlibs_CXX=no
13685: ;;
13686:
13687: sunos4*)
13688: case $cc_basename in
13689: CC*)
13690: # Sun C++ 4.x
13691: # FIXME: insert proper C++ library support
13692: ld_shlibs_CXX=no
13693: ;;
13694: lcc*)
13695: # Lucid
13696: # FIXME: insert proper C++ library support
13697: ld_shlibs_CXX=no
13698: ;;
13699: *)
13700: # FIXME: insert proper C++ library support
13701: ld_shlibs_CXX=no
13702: ;;
13703: esac
13704: ;;
13705:
13706: solaris*)
13707: case $cc_basename in
13708: CC* | sunCC*)
13709: # Sun C++ 4.2, 5.x and Centerline C++
13710: archive_cmds_need_lc_CXX=yes
13711: no_undefined_flag_CXX=' -zdefs'
13712: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13713: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13714: $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'
13715:
13716: hardcode_libdir_flag_spec_CXX='-R$libdir'
13717: hardcode_shlibpath_var_CXX=no
13718: case $host_os in
13719: solaris2.[0-5] | solaris2.[0-5].*) ;;
13720: *)
13721: # The compiler driver will combine and reorder linker options,
13722: # but understands `-z linker_flag'.
13723: # Supported since Solaris 2.6 (maybe 2.5.1?)
13724: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13725: ;;
13726: esac
13727: link_all_deplibs_CXX=yes
13728:
13729: output_verbose_link_cmd='func_echo_all'
13730:
13731: # Archives containing C++ object files must be created using
13732: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13733: # necessary to make sure instantiated templates are included
13734: # in the archive.
13735: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13736: ;;
13737: gcx*)
13738: # Green Hills C++ Compiler
13739: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13740:
13741: # The C++ compiler must be used to create the archive.
13742: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13743: ;;
13744: *)
13745: # GNU C++ compiler with Solaris linker
13746: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13747: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13748: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13749: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13750: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13751: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13752:
13753: # Commands to make compiler produce verbose output that lists
13754: # what "hidden" libraries, object files and flags are used when
13755: # linking a shared library.
13756: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13757: else
13758: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13759: # platform.
13760: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13761: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13762: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13763:
13764: # Commands to make compiler produce verbose output that lists
13765: # what "hidden" libraries, object files and flags are used when
13766: # linking a shared library.
13767: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13768: fi
13769:
13770: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13771: case $host_os in
13772: solaris2.[0-5] | solaris2.[0-5].*) ;;
13773: *)
13774: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13775: ;;
13776: esac
13777: fi
13778: ;;
13779: esac
13780: ;;
13781:
13782: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13783: no_undefined_flag_CXX='${wl}-z,text'
13784: archive_cmds_need_lc_CXX=no
13785: hardcode_shlibpath_var_CXX=no
13786: runpath_var='LD_RUN_PATH'
13787:
13788: case $cc_basename in
13789: CC*)
13790: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13791: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13792: ;;
13793: *)
13794: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13795: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13796: ;;
13797: esac
13798: ;;
13799:
13800: sysv5* | sco3.2v5* | sco5v6*)
13801: # Note: We can NOT use -z defs as we might desire, because we do not
13802: # link with -lc, and that would cause any symbols used from libc to
13803: # always be unresolved, which means just about no library would
13804: # ever link correctly. If we're not using GNU ld we use -z text
13805: # though, which does catch some bad symbols but isn't as heavy-handed
13806: # as -z defs.
13807: no_undefined_flag_CXX='${wl}-z,text'
13808: allow_undefined_flag_CXX='${wl}-z,nodefs'
13809: archive_cmds_need_lc_CXX=no
13810: hardcode_shlibpath_var_CXX=no
13811: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13812: hardcode_libdir_separator_CXX=':'
13813: link_all_deplibs_CXX=yes
13814: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13815: runpath_var='LD_RUN_PATH'
13816:
13817: case $cc_basename in
13818: CC*)
13819: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13820: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13821: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13822: '"$old_archive_cmds_CXX"
13823: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13824: '"$reload_cmds_CXX"
13825: ;;
13826: *)
13827: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829: ;;
13830: esac
13831: ;;
13832:
13833: tandem*)
13834: case $cc_basename in
13835: NCC*)
13836: # NonStop-UX NCC 3.20
13837: # FIXME: insert proper C++ library support
13838: ld_shlibs_CXX=no
13839: ;;
13840: *)
13841: # FIXME: insert proper C++ library support
13842: ld_shlibs_CXX=no
13843: ;;
13844: esac
13845: ;;
13846:
13847: vxworks*)
13848: # FIXME: insert proper C++ library support
13849: ld_shlibs_CXX=no
13850: ;;
13851:
13852: *)
13853: # FIXME: insert proper C++ library support
13854: ld_shlibs_CXX=no
13855: ;;
13856: esac
13857:
1.22 moko 13858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13859: $as_echo "$ld_shlibs_CXX" >&6; }
1.8 moko 13860: test "$ld_shlibs_CXX" = no && can_build_shared=no
13861:
13862: GCC_CXX="$GXX"
13863: LD_CXX="$LD"
13864:
13865: ## CAVEAT EMPTOR:
13866: ## There is no encapsulation within the following macros, do not change
13867: ## the running order or otherwise move them around unless you know exactly
13868: ## what you are doing...
13869: # Dependencies to place before and after the object being linked:
13870: predep_objects_CXX=
13871: postdep_objects_CXX=
13872: predeps_CXX=
13873: postdeps_CXX=
13874: compiler_lib_search_path_CXX=
13875:
13876: cat > conftest.$ac_ext <<_LT_EOF
13877: class Foo
13878: {
13879: public:
13880: Foo (void) { a = 0; }
13881: private:
13882: int a;
13883: };
13884: _LT_EOF
13885:
13886:
13887: _lt_libdeps_save_CFLAGS=$CFLAGS
13888: case "$CC $CFLAGS " in #(
13889: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13890: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13891: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13892: esac
13893:
1.22 moko 13894: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 13895: (eval $ac_compile) 2>&5
13896: ac_status=$?
1.22 moko 13897: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13898: test $ac_status = 0; }; then
1.8 moko 13899: # Parse the compiler output and extract the necessary
13900: # objects, libraries and library flags.
13901:
13902: # Sentinel used to keep track of whether or not we are before
13903: # the conftest object file.
13904: pre_test_object_deps_done=no
13905:
13906: for p in `eval "$output_verbose_link_cmd"`; do
13907: case ${prev}${p} in
13908:
13909: -L* | -R* | -l*)
13910: # Some compilers place space between "-{L,R}" and the path.
13911: # Remove the space.
13912: if test $p = "-L" ||
13913: test $p = "-R"; then
13914: prev=$p
13915: continue
13916: fi
13917:
13918: # Expand the sysroot to ease extracting the directories later.
13919: if test -z "$prev"; then
13920: case $p in
13921: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13922: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13923: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13924: esac
13925: fi
13926: case $p in
13927: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13928: esac
13929: if test "$pre_test_object_deps_done" = no; then
13930: case ${prev} in
13931: -L | -R)
13932: # Internal compiler library paths should come after those
13933: # provided the user. The postdeps already come after the
13934: # user supplied libs so there is no need to process them.
13935: if test -z "$compiler_lib_search_path_CXX"; then
13936: compiler_lib_search_path_CXX="${prev}${p}"
13937: else
13938: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13939: fi
13940: ;;
13941: # The "-l" case would never come before the object being
13942: # linked, so don't bother handling this case.
13943: esac
13944: else
13945: if test -z "$postdeps_CXX"; then
13946: postdeps_CXX="${prev}${p}"
13947: else
13948: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13949: fi
13950: fi
13951: prev=
13952: ;;
13953:
13954: *.lto.$objext) ;; # Ignore GCC LTO objects
13955: *.$objext)
13956: # This assumes that the test object file only shows up
13957: # once in the compiler output.
13958: if test "$p" = "conftest.$objext"; then
13959: pre_test_object_deps_done=yes
13960: continue
13961: fi
13962:
13963: if test "$pre_test_object_deps_done" = no; then
13964: if test -z "$predep_objects_CXX"; then
13965: predep_objects_CXX="$p"
13966: else
13967: predep_objects_CXX="$predep_objects_CXX $p"
13968: fi
13969: else
13970: if test -z "$postdep_objects_CXX"; then
13971: postdep_objects_CXX="$p"
13972: else
13973: postdep_objects_CXX="$postdep_objects_CXX $p"
13974: fi
13975: fi
13976: ;;
13977:
13978: *) ;; # Ignore the rest.
13979:
13980: esac
13981: done
13982:
13983: # Clean up.
13984: rm -f a.out a.exe
13985: else
13986: echo "libtool.m4: error: problem compiling CXX test program"
13987: fi
13988:
13989: $RM -f confest.$objext
13990: CFLAGS=$_lt_libdeps_save_CFLAGS
13991:
13992: # PORTME: override above test on systems where it is broken
13993: case $host_os in
13994: interix[3-9]*)
13995: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13996: # hack all around it, let's just trust "g++" to DTRT.
13997: predep_objects_CXX=
13998: postdep_objects_CXX=
13999: postdeps_CXX=
14000: ;;
14001:
14002: linux*)
14003: case `$CC -V 2>&1 | sed 5q` in
14004: *Sun\ C*)
14005: # Sun C++ 5.9
14006:
14007: # The more standards-conforming stlport4 library is
14008: # incompatible with the Cstd library. Avoid specifying
14009: # it if it's in CXXFLAGS. Ignore libCrun as
14010: # -library=stlport4 depends on it.
14011: case " $CXX $CXXFLAGS " in
14012: *" -library=stlport4 "*)
14013: solaris_use_stlport4=yes
14014: ;;
14015: esac
14016:
14017: if test "$solaris_use_stlport4" != yes; then
14018: postdeps_CXX='-library=Cstd -library=Crun'
14019: fi
14020: ;;
14021: esac
14022: ;;
14023:
14024: solaris*)
14025: case $cc_basename in
14026: CC* | sunCC*)
14027: # The more standards-conforming stlport4 library is
14028: # incompatible with the Cstd library. Avoid specifying
14029: # it if it's in CXXFLAGS. Ignore libCrun as
14030: # -library=stlport4 depends on it.
14031: case " $CXX $CXXFLAGS " in
14032: *" -library=stlport4 "*)
14033: solaris_use_stlport4=yes
14034: ;;
14035: esac
14036:
14037: # Adding this requires a known-good setup of shared libraries for
14038: # Sun compiler versions before 5.6, else PIC objects from an old
14039: # archive will be linked into the output, leading to subtle bugs.
14040: if test "$solaris_use_stlport4" != yes; then
14041: postdeps_CXX='-library=Cstd -library=Crun'
14042: fi
14043: ;;
14044: esac
14045: ;;
14046: esac
14047:
14048:
14049: case " $postdeps_CXX " in
14050: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14051: esac
14052: compiler_lib_search_dirs_CXX=
14053: if test -n "${compiler_lib_search_path_CXX}"; then
14054: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14055: fi
14056:
14057:
14058:
14059:
14060:
14061:
14062:
14063:
14064:
14065:
14066:
14067:
14068:
14069:
14070:
14071:
14072:
14073:
14074:
14075:
14076:
14077:
14078:
14079:
14080:
14081:
14082:
14083:
14084:
14085:
14086:
14087: lt_prog_compiler_wl_CXX=
14088: lt_prog_compiler_pic_CXX=
14089: lt_prog_compiler_static_CXX=
14090:
14091:
14092: # C++ specific cases for pic, static, wl, etc.
14093: if test "$GXX" = yes; then
14094: lt_prog_compiler_wl_CXX='-Wl,'
14095: lt_prog_compiler_static_CXX='-static'
14096:
14097: case $host_os in
14098: aix*)
14099: # All AIX code is PIC.
14100: if test "$host_cpu" = ia64; then
14101: # AIX 5 now supports IA64 processor
14102: lt_prog_compiler_static_CXX='-Bstatic'
14103: fi
14104: ;;
14105:
14106: amigaos*)
14107: case $host_cpu in
14108: powerpc)
14109: # see comment about AmigaOS4 .so support
14110: lt_prog_compiler_pic_CXX='-fPIC'
14111: ;;
14112: m68k)
14113: # FIXME: we need at least 68020 code to build shared libraries, but
14114: # adding the `-m68020' flag to GCC prevents building anything better,
14115: # like `-m68040'.
14116: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14117: ;;
14118: esac
14119: ;;
14120:
14121: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14122: # PIC is the default for these OSes.
14123: ;;
14124: mingw* | cygwin* | os2* | pw32* | cegcc*)
14125: # This hack is so that the source file can tell whether it is being
14126: # built for inclusion in a dll (and should export symbols for example).
14127: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14128: # (--disable-auto-import) libraries
14129: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14130: ;;
14131: darwin* | rhapsody*)
14132: # PIC is the default on this platform
14133: # Common symbols not allowed in MH_DYLIB files
14134: lt_prog_compiler_pic_CXX='-fno-common'
14135: ;;
14136: *djgpp*)
14137: # DJGPP does not support shared libraries at all
14138: lt_prog_compiler_pic_CXX=
14139: ;;
14140: haiku*)
14141: # PIC is the default for Haiku.
14142: # The "-static" flag exists, but is broken.
14143: lt_prog_compiler_static_CXX=
14144: ;;
14145: interix[3-9]*)
14146: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14147: # Instead, we relocate shared libraries at runtime.
14148: ;;
14149: sysv4*MP*)
14150: if test -d /usr/nec; then
14151: lt_prog_compiler_pic_CXX=-Kconform_pic
14152: fi
14153: ;;
14154: hpux*)
14155: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14156: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14157: # sets the default TLS model and affects inlining.
14158: case $host_cpu in
14159: hppa*64*)
14160: ;;
14161: *)
14162: lt_prog_compiler_pic_CXX='-fPIC'
14163: ;;
14164: esac
14165: ;;
14166: *qnx* | *nto*)
14167: # QNX uses GNU C++, but need to define -shared option too, otherwise
14168: # it will coredump.
14169: lt_prog_compiler_pic_CXX='-fPIC -shared'
14170: ;;
14171: *)
14172: lt_prog_compiler_pic_CXX='-fPIC'
14173: ;;
14174: esac
14175: else
14176: case $host_os in
14177: aix[4-9]*)
14178: # All AIX code is PIC.
14179: if test "$host_cpu" = ia64; then
14180: # AIX 5 now supports IA64 processor
14181: lt_prog_compiler_static_CXX='-Bstatic'
14182: else
14183: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14184: fi
14185: ;;
14186: chorus*)
14187: case $cc_basename in
14188: cxch68*)
14189: # Green Hills C++ Compiler
14190: # _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"
14191: ;;
14192: esac
14193: ;;
14194: mingw* | cygwin* | os2* | pw32* | cegcc*)
14195: # This hack is so that the source file can tell whether it is being
14196: # built for inclusion in a dll (and should export symbols for example).
14197: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14198: ;;
14199: dgux*)
14200: case $cc_basename in
14201: ec++*)
14202: lt_prog_compiler_pic_CXX='-KPIC'
14203: ;;
14204: ghcx*)
14205: # Green Hills C++ Compiler
14206: lt_prog_compiler_pic_CXX='-pic'
14207: ;;
14208: *)
14209: ;;
14210: esac
14211: ;;
14212: freebsd* | dragonfly*)
14213: # FreeBSD uses GNU C++
14214: ;;
14215: hpux9* | hpux10* | hpux11*)
14216: case $cc_basename in
14217: CC*)
14218: lt_prog_compiler_wl_CXX='-Wl,'
14219: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14220: if test "$host_cpu" != ia64; then
14221: lt_prog_compiler_pic_CXX='+Z'
14222: fi
14223: ;;
14224: aCC*)
14225: lt_prog_compiler_wl_CXX='-Wl,'
14226: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14227: case $host_cpu in
14228: hppa*64*|ia64*)
14229: # +Z the default
14230: ;;
14231: *)
14232: lt_prog_compiler_pic_CXX='+Z'
14233: ;;
14234: esac
14235: ;;
14236: *)
14237: ;;
14238: esac
14239: ;;
14240: interix*)
14241: # This is c89, which is MS Visual C++ (no shared libs)
14242: # Anyone wants to do a port?
14243: ;;
14244: irix5* | irix6* | nonstopux*)
14245: case $cc_basename in
14246: CC*)
14247: lt_prog_compiler_wl_CXX='-Wl,'
14248: lt_prog_compiler_static_CXX='-non_shared'
14249: # CC pic flag -KPIC is the default.
14250: ;;
14251: *)
14252: ;;
14253: esac
14254: ;;
14255: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14256: case $cc_basename in
14257: KCC*)
14258: # KAI C++ Compiler
14259: lt_prog_compiler_wl_CXX='--backend -Wl,'
14260: lt_prog_compiler_pic_CXX='-fPIC'
14261: ;;
14262: ecpc* )
14263: # old Intel C++ for x86_64 which still supported -KPIC.
14264: lt_prog_compiler_wl_CXX='-Wl,'
14265: lt_prog_compiler_pic_CXX='-KPIC'
14266: lt_prog_compiler_static_CXX='-static'
14267: ;;
14268: icpc* )
14269: # Intel C++, used to be incompatible with GCC.
14270: # ICC 10 doesn't accept -KPIC any more.
14271: lt_prog_compiler_wl_CXX='-Wl,'
14272: lt_prog_compiler_pic_CXX='-fPIC'
14273: lt_prog_compiler_static_CXX='-static'
14274: ;;
14275: pgCC* | pgcpp*)
14276: # Portland Group C++ compiler
14277: lt_prog_compiler_wl_CXX='-Wl,'
14278: lt_prog_compiler_pic_CXX='-fpic'
14279: lt_prog_compiler_static_CXX='-Bstatic'
14280: ;;
14281: cxx*)
14282: # Compaq C++
14283: # Make sure the PIC flag is empty. It appears that all Alpha
14284: # Linux and Compaq Tru64 Unix objects are PIC.
14285: lt_prog_compiler_pic_CXX=
14286: lt_prog_compiler_static_CXX='-non_shared'
14287: ;;
14288: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14289: # IBM XL 8.0, 9.0 on PPC and BlueGene
14290: lt_prog_compiler_wl_CXX='-Wl,'
14291: lt_prog_compiler_pic_CXX='-qpic'
14292: lt_prog_compiler_static_CXX='-qstaticlink'
14293: ;;
14294: *)
14295: case `$CC -V 2>&1 | sed 5q` in
14296: *Sun\ C*)
14297: # Sun C++ 5.9
14298: lt_prog_compiler_pic_CXX='-KPIC'
14299: lt_prog_compiler_static_CXX='-Bstatic'
14300: lt_prog_compiler_wl_CXX='-Qoption ld '
14301: ;;
14302: esac
14303: ;;
14304: esac
14305: ;;
14306: lynxos*)
14307: ;;
14308: m88k*)
14309: ;;
14310: mvs*)
14311: case $cc_basename in
14312: cxx*)
14313: lt_prog_compiler_pic_CXX='-W c,exportall'
14314: ;;
14315: *)
14316: ;;
14317: esac
14318: ;;
14319: netbsd*)
14320: ;;
14321: *qnx* | *nto*)
14322: # QNX uses GNU C++, but need to define -shared option too, otherwise
14323: # it will coredump.
14324: lt_prog_compiler_pic_CXX='-fPIC -shared'
14325: ;;
14326: osf3* | osf4* | osf5*)
14327: case $cc_basename in
14328: KCC*)
14329: lt_prog_compiler_wl_CXX='--backend -Wl,'
14330: ;;
14331: RCC*)
14332: # Rational C++ 2.4.1
14333: lt_prog_compiler_pic_CXX='-pic'
14334: ;;
14335: cxx*)
14336: # Digital/Compaq C++
14337: lt_prog_compiler_wl_CXX='-Wl,'
14338: # Make sure the PIC flag is empty. It appears that all Alpha
14339: # Linux and Compaq Tru64 Unix objects are PIC.
14340: lt_prog_compiler_pic_CXX=
14341: lt_prog_compiler_static_CXX='-non_shared'
14342: ;;
14343: *)
14344: ;;
14345: esac
14346: ;;
14347: psos*)
14348: ;;
14349: solaris*)
14350: case $cc_basename in
14351: CC* | sunCC*)
14352: # Sun C++ 4.2, 5.x and Centerline C++
14353: lt_prog_compiler_pic_CXX='-KPIC'
14354: lt_prog_compiler_static_CXX='-Bstatic'
14355: lt_prog_compiler_wl_CXX='-Qoption ld '
14356: ;;
14357: gcx*)
14358: # Green Hills C++ Compiler
14359: lt_prog_compiler_pic_CXX='-PIC'
14360: ;;
14361: *)
14362: ;;
14363: esac
14364: ;;
14365: sunos4*)
14366: case $cc_basename in
14367: CC*)
14368: # Sun C++ 4.x
14369: lt_prog_compiler_pic_CXX='-pic'
14370: lt_prog_compiler_static_CXX='-Bstatic'
14371: ;;
14372: lcc*)
14373: # Lucid
14374: lt_prog_compiler_pic_CXX='-pic'
14375: ;;
14376: *)
14377: ;;
14378: esac
14379: ;;
14380: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14381: case $cc_basename in
14382: CC*)
14383: lt_prog_compiler_wl_CXX='-Wl,'
14384: lt_prog_compiler_pic_CXX='-KPIC'
14385: lt_prog_compiler_static_CXX='-Bstatic'
14386: ;;
14387: esac
14388: ;;
14389: tandem*)
14390: case $cc_basename in
14391: NCC*)
14392: # NonStop-UX NCC 3.20
14393: lt_prog_compiler_pic_CXX='-KPIC'
14394: ;;
14395: *)
14396: ;;
14397: esac
14398: ;;
14399: vxworks*)
14400: ;;
14401: *)
14402: lt_prog_compiler_can_build_shared_CXX=no
14403: ;;
14404: esac
14405: fi
14406:
14407: case $host_os in
14408: # For platforms which do not support PIC, -DPIC is meaningless:
14409: *djgpp*)
14410: lt_prog_compiler_pic_CXX=
14411: ;;
14412: *)
14413: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14414: ;;
14415: esac
14416:
1.22 moko 14417: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14418: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14419: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14420: $as_echo_n "(cached) " >&6
1.8 moko 14421: else
14422: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14423: fi
1.22 moko 14424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14425: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.8 moko 14426: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14427:
14428: #
14429: # Check to make sure the PIC flag actually works.
14430: #
14431: if test -n "$lt_prog_compiler_pic_CXX"; then
1.22 moko 14432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14433: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14434: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14435: $as_echo_n "(cached) " >&6
1.8 moko 14436: else
14437: lt_cv_prog_compiler_pic_works_CXX=no
14438: ac_outfile=conftest.$ac_objext
14439: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14440: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14441: # Insert the option either (1) after the last *FLAGS variable, or
14442: # (2) before a word containing "conftest.", or (3) at the end.
14443: # Note that $ac_compile itself does not contain backslashes and begins
14444: # with a dollar sign (not a hyphen), so the echo should work correctly.
14445: # The option is referenced via a variable to avoid confusing sed.
14446: lt_compile=`echo "$ac_compile" | $SED \
14447: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14448: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14449: -e 's:$: $lt_compiler_flag:'`
14450: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14451: (eval "$lt_compile" 2>conftest.err)
14452: ac_status=$?
14453: cat conftest.err >&5
14454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455: if (exit $ac_status) && test -s "$ac_outfile"; then
14456: # The compiler can only warn and ignore the option if not recognized
14457: # So say no if there are warnings other than the usual output.
14458: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14459: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14460: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14461: lt_cv_prog_compiler_pic_works_CXX=yes
14462: fi
14463: fi
14464: $RM conftest*
14465:
14466: fi
1.22 moko 14467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14468: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.8 moko 14469:
14470: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14471: case $lt_prog_compiler_pic_CXX in
14472: "" | " "*) ;;
14473: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14474: esac
14475: else
14476: lt_prog_compiler_pic_CXX=
14477: lt_prog_compiler_can_build_shared_CXX=no
14478: fi
14479:
14480: fi
14481:
14482:
14483:
14484:
14485:
14486: #
14487: # Check to make sure the static flag actually works.
14488: #
14489: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.22 moko 14490: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14491: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14492: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14493: $as_echo_n "(cached) " >&6
1.8 moko 14494: else
14495: lt_cv_prog_compiler_static_works_CXX=no
14496: save_LDFLAGS="$LDFLAGS"
14497: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14498: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14499: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14500: # The linker can only warn and ignore the option if not recognized
14501: # So say no if there are warnings
14502: if test -s conftest.err; then
14503: # Append any errors to the config.log.
14504: cat conftest.err 1>&5
14505: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14506: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14507: if diff conftest.exp conftest.er2 >/dev/null; then
14508: lt_cv_prog_compiler_static_works_CXX=yes
14509: fi
14510: else
14511: lt_cv_prog_compiler_static_works_CXX=yes
14512: fi
14513: fi
14514: $RM -r conftest*
14515: LDFLAGS="$save_LDFLAGS"
14516:
14517: fi
1.22 moko 14518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14519: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.8 moko 14520:
14521: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14522: :
14523: else
14524: lt_prog_compiler_static_CXX=
14525: fi
14526:
14527:
14528:
14529:
1.22 moko 14530: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14531: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14532: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14533: $as_echo_n "(cached) " >&6
1.8 moko 14534: else
14535: lt_cv_prog_compiler_c_o_CXX=no
14536: $RM -r conftest 2>/dev/null
14537: mkdir conftest
14538: cd conftest
14539: mkdir out
14540: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14541:
14542: lt_compiler_flag="-o out/conftest2.$ac_objext"
14543: # Insert the option either (1) after the last *FLAGS variable, or
14544: # (2) before a word containing "conftest.", or (3) at the end.
14545: # Note that $ac_compile itself does not contain backslashes and begins
14546: # with a dollar sign (not a hyphen), so the echo should work correctly.
14547: lt_compile=`echo "$ac_compile" | $SED \
14548: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14549: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14550: -e 's:$: $lt_compiler_flag:'`
14551: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14552: (eval "$lt_compile" 2>out/conftest.err)
14553: ac_status=$?
14554: cat out/conftest.err >&5
14555: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14557: then
14558: # The compiler can only warn and ignore the option if not recognized
14559: # So say no if there are warnings
14560: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14561: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14562: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14563: lt_cv_prog_compiler_c_o_CXX=yes
14564: fi
14565: fi
14566: chmod u+w . 2>&5
14567: $RM conftest*
14568: # SGI C++ compiler will create directory out/ii_files/ for
14569: # template instantiation
14570: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14571: $RM out/* && rmdir out
14572: cd ..
14573: $RM -r conftest
14574: $RM conftest*
14575:
14576: fi
1.22 moko 14577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14578: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.8 moko 14579:
14580:
14581:
1.22 moko 14582: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14583: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14584: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14585: $as_echo_n "(cached) " >&6
1.8 moko 14586: else
14587: lt_cv_prog_compiler_c_o_CXX=no
14588: $RM -r conftest 2>/dev/null
14589: mkdir conftest
14590: cd conftest
14591: mkdir out
14592: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14593:
14594: lt_compiler_flag="-o out/conftest2.$ac_objext"
14595: # Insert the option either (1) after the last *FLAGS variable, or
14596: # (2) before a word containing "conftest.", or (3) at the end.
14597: # Note that $ac_compile itself does not contain backslashes and begins
14598: # with a dollar sign (not a hyphen), so the echo should work correctly.
14599: lt_compile=`echo "$ac_compile" | $SED \
14600: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14601: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14602: -e 's:$: $lt_compiler_flag:'`
14603: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14604: (eval "$lt_compile" 2>out/conftest.err)
14605: ac_status=$?
14606: cat out/conftest.err >&5
14607: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14609: then
14610: # The compiler can only warn and ignore the option if not recognized
14611: # So say no if there are warnings
14612: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14613: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14614: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14615: lt_cv_prog_compiler_c_o_CXX=yes
14616: fi
14617: fi
14618: chmod u+w . 2>&5
14619: $RM conftest*
14620: # SGI C++ compiler will create directory out/ii_files/ for
14621: # template instantiation
14622: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14623: $RM out/* && rmdir out
14624: cd ..
14625: $RM -r conftest
14626: $RM conftest*
14627:
14628: fi
1.22 moko 14629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14630: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.8 moko 14631:
14632:
14633:
14634:
14635: hard_links="nottested"
14636: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14637: # do not overwrite the value of need_locks provided by the user
1.22 moko 14638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14639: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.8 moko 14640: hard_links=yes
14641: $RM conftest*
14642: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14643: touch conftest.a
14644: ln conftest.a conftest.b 2>&5 || hard_links=no
14645: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.22 moko 14646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14647: $as_echo "$hard_links" >&6; }
1.8 moko 14648: if test "$hard_links" = no; then
1.22 moko 14649: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14650: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 14651: need_locks=warn
14652: fi
14653: else
14654: need_locks=no
14655: fi
14656:
14657:
14658:
1.22 moko 14659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14660: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.8 moko 14661:
14662: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14663: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14664: case $host_os in
14665: aix[4-9]*)
14666: # If we're using GNU nm, then we don't want the "-C" option.
14667: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14668: # Also, AIX nm treats weak defined symbols like other global defined
14669: # symbols, whereas GNU nm marks them as "W".
14670: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14671: 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'
14672: else
14673: 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'
14674: fi
14675: ;;
14676: pw32*)
14677: export_symbols_cmds_CXX="$ltdll_cmds"
14678: ;;
14679: cygwin* | mingw* | cegcc*)
14680: case $cc_basename in
14681: cl*)
14682: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14683: ;;
14684: *)
14685: 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'
14686: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14687: ;;
14688: esac
14689: ;;
14690: *)
14691: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14692: ;;
14693: esac
14694:
1.22 moko 14695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14696: $as_echo "$ld_shlibs_CXX" >&6; }
1.8 moko 14697: test "$ld_shlibs_CXX" = no && can_build_shared=no
14698:
14699: with_gnu_ld_CXX=$with_gnu_ld
14700:
14701:
14702:
14703:
14704:
14705:
14706: #
14707: # Do we need to explicitly link libc?
14708: #
14709: case "x$archive_cmds_need_lc_CXX" in
14710: x|xyes)
14711: # Assume -lc should be added
14712: archive_cmds_need_lc_CXX=yes
14713:
14714: if test "$enable_shared" = yes && test "$GCC" = yes; then
14715: case $archive_cmds_CXX in
14716: *'~'*)
14717: # FIXME: we may have to deal with multi-command sequences.
14718: ;;
14719: '$CC '*)
14720: # Test whether the compiler implicitly links with -lc since on some
14721: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14722: # to ld, don't add -lc before -lgcc.
1.22 moko 14723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14724: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14725: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14726: $as_echo_n "(cached) " >&6
1.8 moko 14727: else
14728: $RM conftest*
14729: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14730:
1.22 moko 14731: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 14732: (eval $ac_compile) 2>&5
14733: ac_status=$?
1.22 moko 14734: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14735: test $ac_status = 0; } 2>conftest.err; then
1.8 moko 14736: soname=conftest
14737: lib=conftest
14738: libobjs=conftest.$ac_objext
14739: deplibs=
14740: wl=$lt_prog_compiler_wl_CXX
14741: pic_flag=$lt_prog_compiler_pic_CXX
14742: compiler_flags=-v
14743: linker_flags=-v
14744: verstring=
14745: output_objdir=.
14746: libname=conftest
14747: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14748: allow_undefined_flag_CXX=
1.22 moko 14749: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.8 moko 14750: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14751: ac_status=$?
1.22 moko 14752: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14753: test $ac_status = 0; }
1.8 moko 14754: then
14755: lt_cv_archive_cmds_need_lc_CXX=no
14756: else
14757: lt_cv_archive_cmds_need_lc_CXX=yes
14758: fi
14759: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14760: else
14761: cat conftest.err 1>&5
14762: fi
14763: $RM conftest*
14764:
14765: fi
1.22 moko 14766: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14767: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.8 moko 14768: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14769: ;;
14770: esac
14771: fi
14772: ;;
14773: esac
14774:
14775:
14776:
14777:
14778:
14779:
14780:
14781:
14782:
14783:
14784:
14785:
14786:
14787:
14788:
14789:
14790:
14791:
14792:
14793:
14794:
14795:
14796:
14797:
14798:
14799:
14800:
14801:
14802:
14803:
14804:
14805:
14806:
14807:
14808:
14809:
14810:
14811:
14812:
14813:
14814:
14815:
14816:
14817:
14818:
14819:
14820:
14821:
14822:
14823:
14824:
14825:
14826:
14827:
14828:
14829:
14830:
14831:
14832:
14833:
14834:
14835:
1.22 moko 14836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14837: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.8 moko 14838:
14839: library_names_spec=
14840: libname_spec='lib$name'
14841: soname_spec=
14842: shrext_cmds=".so"
14843: postinstall_cmds=
14844: postuninstall_cmds=
14845: finish_cmds=
14846: finish_eval=
14847: shlibpath_var=
14848: shlibpath_overrides_runpath=unknown
14849: version_type=none
14850: dynamic_linker="$host_os ld.so"
14851: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14852: need_lib_prefix=unknown
14853: hardcode_into_libs=no
14854:
14855: # when you set need_version to no, make sure it does not cause -set_version
14856: # flags to be left without arguments
14857: need_version=unknown
14858:
14859: case $host_os in
14860: aix3*)
14861: version_type=linux # correct to gnu/linux during the next big refactor
14862: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14863: shlibpath_var=LIBPATH
14864:
14865: # AIX 3 has no versioning support, so we append a major version to the name.
14866: soname_spec='${libname}${release}${shared_ext}$major'
14867: ;;
14868:
14869: aix[4-9]*)
14870: version_type=linux # correct to gnu/linux during the next big refactor
14871: need_lib_prefix=no
14872: need_version=no
14873: hardcode_into_libs=yes
14874: if test "$host_cpu" = ia64; then
14875: # AIX 5 supports IA64
14876: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14877: shlibpath_var=LD_LIBRARY_PATH
14878: else
14879: # With GCC up to 2.95.x, collect2 would create an import file
14880: # for dependence libraries. The import file would start with
14881: # the line `#! .'. This would cause the generated library to
14882: # depend on `.', always an invalid library. This was fixed in
14883: # development snapshots of GCC prior to 3.0.
14884: case $host_os in
14885: aix4 | aix4.[01] | aix4.[01].*)
14886: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14887: echo ' yes '
14888: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14889: :
14890: else
14891: can_build_shared=no
14892: fi
14893: ;;
14894: esac
14895: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14896: # soname into executable. Probably we can add versioning support to
14897: # collect2, so additional links can be useful in future.
14898: if test "$aix_use_runtimelinking" = yes; then
14899: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14900: # instead of lib<name>.a to let people know that these are not
14901: # typical AIX shared libraries.
14902: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903: else
14904: # We preserve .a as extension for shared libraries through AIX4.2
14905: # and later when we are not doing run time linking.
14906: library_names_spec='${libname}${release}.a $libname.a'
14907: soname_spec='${libname}${release}${shared_ext}$major'
14908: fi
14909: shlibpath_var=LIBPATH
14910: fi
14911: ;;
14912:
14913: amigaos*)
14914: case $host_cpu in
14915: powerpc)
14916: # Since July 2007 AmigaOS4 officially supports .so libraries.
14917: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14918: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919: ;;
14920: m68k)
14921: library_names_spec='$libname.ixlibrary $libname.a'
14922: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14923: 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'
14924: ;;
14925: esac
14926: ;;
14927:
14928: beos*)
14929: library_names_spec='${libname}${shared_ext}'
14930: dynamic_linker="$host_os ld.so"
14931: shlibpath_var=LIBRARY_PATH
14932: ;;
14933:
14934: bsdi[45]*)
14935: version_type=linux # correct to gnu/linux during the next big refactor
14936: need_version=no
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: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14940: shlibpath_var=LD_LIBRARY_PATH
14941: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14942: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14943: # the default ld.so.conf also contains /usr/contrib/lib and
14944: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14945: # libtool to hard-code these into programs
14946: ;;
14947:
14948: cygwin* | mingw* | pw32* | cegcc*)
14949: version_type=windows
14950: shrext_cmds=".dll"
14951: need_version=no
14952: need_lib_prefix=no
14953:
14954: case $GCC,$cc_basename in
14955: yes,*)
14956: # gcc
14957: library_names_spec='$libname.dll.a'
14958: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14959: postinstall_cmds='base_file=`basename \${file}`~
14960: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14961: dldir=$destdir/`dirname \$dlpath`~
14962: test -d \$dldir || mkdir -p \$dldir~
14963: $install_prog $dir/$dlname \$dldir/$dlname~
14964: chmod a+x \$dldir/$dlname~
14965: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14966: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14967: fi'
14968: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14969: dlpath=$dir/\$dldll~
14970: $RM \$dlpath'
14971: shlibpath_overrides_runpath=yes
14972:
14973: case $host_os in
14974: cygwin*)
14975: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14976: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14977:
14978: ;;
14979: mingw* | cegcc*)
14980: # MinGW DLLs use traditional 'lib' prefix
14981: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14982: ;;
14983: pw32*)
14984: # pw32 DLLs use 'pw' prefix rather than 'lib'
14985: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14986: ;;
14987: esac
14988: dynamic_linker='Win32 ld.exe'
14989: ;;
14990:
14991: *,cl*)
14992: # Native MSVC
14993: libname_spec='$name'
14994: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14995: library_names_spec='${libname}.dll.lib'
14996:
14997: case $build_os in
14998: mingw*)
14999: sys_lib_search_path_spec=
15000: lt_save_ifs=$IFS
15001: IFS=';'
15002: for lt_path in $LIB
15003: do
15004: IFS=$lt_save_ifs
15005: # Let DOS variable expansion print the short 8.3 style file name.
15006: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15007: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15008: done
15009: IFS=$lt_save_ifs
15010: # Convert to MSYS style.
15011: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15012: ;;
15013: cygwin*)
15014: # Convert to unix form, then to dos form, then back to unix form
15015: # but this time dos style (no spaces!) so that the unix form looks
15016: # like /cygdrive/c/PROGRA~1:/cygdr...
15017: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15018: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15019: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15020: ;;
15021: *)
15022: sys_lib_search_path_spec="$LIB"
15023: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15024: # It is most probably a Windows format PATH.
15025: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15026: else
15027: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15028: fi
15029: # FIXME: find the short name or the path components, as spaces are
15030: # common. (e.g. "Program Files" -> "PROGRA~1")
15031: ;;
15032: esac
15033:
15034: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15035: postinstall_cmds='base_file=`basename \${file}`~
15036: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15037: dldir=$destdir/`dirname \$dlpath`~
15038: test -d \$dldir || mkdir -p \$dldir~
15039: $install_prog $dir/$dlname \$dldir/$dlname'
15040: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15041: dlpath=$dir/\$dldll~
15042: $RM \$dlpath'
15043: shlibpath_overrides_runpath=yes
15044: dynamic_linker='Win32 link.exe'
15045: ;;
15046:
15047: *)
15048: # Assume MSVC wrapper
15049: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15050: dynamic_linker='Win32 ld.exe'
15051: ;;
15052: esac
15053: # FIXME: first we should search . and the directory the executable is in
15054: shlibpath_var=PATH
15055: ;;
15056:
15057: darwin* | rhapsody*)
15058: dynamic_linker="$host_os dyld"
15059: version_type=darwin
15060: need_lib_prefix=no
15061: need_version=no
15062: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15063: soname_spec='${libname}${release}${major}$shared_ext'
15064: shlibpath_overrides_runpath=yes
15065: shlibpath_var=DYLD_LIBRARY_PATH
15066: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15067:
15068: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15069: ;;
15070:
15071: dgux*)
15072: version_type=linux # correct to gnu/linux during the next big refactor
15073: need_lib_prefix=no
15074: need_version=no
15075: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15076: soname_spec='${libname}${release}${shared_ext}$major'
15077: shlibpath_var=LD_LIBRARY_PATH
15078: ;;
15079:
15080: freebsd* | dragonfly*)
15081: # DragonFly does not have aout. When/if they implement a new
15082: # versioning mechanism, adjust this.
15083: if test -x /usr/bin/objformat; then
15084: objformat=`/usr/bin/objformat`
15085: else
15086: case $host_os in
15087: freebsd[23].*) objformat=aout ;;
15088: *) objformat=elf ;;
15089: esac
15090: fi
15091: version_type=freebsd-$objformat
15092: case $version_type in
15093: freebsd-elf*)
15094: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15095: need_version=no
15096: need_lib_prefix=no
15097: ;;
15098: freebsd-*)
15099: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15100: need_version=yes
15101: ;;
15102: esac
15103: shlibpath_var=LD_LIBRARY_PATH
15104: case $host_os in
15105: freebsd2.*)
15106: shlibpath_overrides_runpath=yes
15107: ;;
15108: freebsd3.[01]* | freebsdelf3.[01]*)
15109: shlibpath_overrides_runpath=yes
15110: hardcode_into_libs=yes
15111: ;;
15112: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15113: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15114: shlibpath_overrides_runpath=no
15115: hardcode_into_libs=yes
15116: ;;
15117: *) # from 4.6 on, and DragonFly
15118: shlibpath_overrides_runpath=yes
15119: hardcode_into_libs=yes
15120: ;;
15121: esac
15122: ;;
15123:
15124: gnu*)
15125: version_type=linux # correct to gnu/linux during the next big refactor
15126: need_lib_prefix=no
15127: need_version=no
15128: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15129: soname_spec='${libname}${release}${shared_ext}$major'
15130: shlibpath_var=LD_LIBRARY_PATH
15131: shlibpath_overrides_runpath=no
15132: hardcode_into_libs=yes
15133: ;;
15134:
15135: haiku*)
15136: version_type=linux # correct to gnu/linux during the next big refactor
15137: need_lib_prefix=no
15138: need_version=no
15139: dynamic_linker="$host_os runtime_loader"
15140: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15141: soname_spec='${libname}${release}${shared_ext}$major'
15142: shlibpath_var=LIBRARY_PATH
15143: shlibpath_overrides_runpath=yes
15144: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15145: hardcode_into_libs=yes
15146: ;;
15147:
15148: hpux9* | hpux10* | hpux11*)
15149: # Give a soname corresponding to the major version so that dld.sl refuses to
15150: # link against other versions.
15151: version_type=sunos
15152: need_lib_prefix=no
15153: need_version=no
15154: case $host_cpu in
15155: ia64*)
15156: shrext_cmds='.so'
15157: hardcode_into_libs=yes
15158: dynamic_linker="$host_os dld.so"
15159: shlibpath_var=LD_LIBRARY_PATH
15160: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15161: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15162: soname_spec='${libname}${release}${shared_ext}$major'
15163: if test "X$HPUX_IA64_MODE" = X32; then
15164: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15165: else
15166: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15167: fi
15168: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15169: ;;
15170: hppa*64*)
15171: shrext_cmds='.sl'
15172: hardcode_into_libs=yes
15173: dynamic_linker="$host_os dld.sl"
15174: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15175: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15176: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177: soname_spec='${libname}${release}${shared_ext}$major'
15178: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15179: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15180: ;;
15181: *)
15182: shrext_cmds='.sl'
15183: dynamic_linker="$host_os dld.sl"
15184: shlibpath_var=SHLIB_PATH
15185: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15186: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187: soname_spec='${libname}${release}${shared_ext}$major'
15188: ;;
15189: esac
15190: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15191: postinstall_cmds='chmod 555 $lib'
15192: # or fails outright, so override atomically:
15193: install_override_mode=555
15194: ;;
15195:
15196: interix[3-9]*)
15197: version_type=linux # correct to gnu/linux during the next big refactor
15198: need_lib_prefix=no
15199: need_version=no
15200: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15201: soname_spec='${libname}${release}${shared_ext}$major'
15202: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15203: shlibpath_var=LD_LIBRARY_PATH
15204: shlibpath_overrides_runpath=no
15205: hardcode_into_libs=yes
15206: ;;
15207:
15208: irix5* | irix6* | nonstopux*)
15209: case $host_os in
15210: nonstopux*) version_type=nonstopux ;;
15211: *)
15212: if test "$lt_cv_prog_gnu_ld" = yes; then
15213: version_type=linux # correct to gnu/linux during the next big refactor
15214: else
15215: version_type=irix
15216: fi ;;
15217: esac
15218: need_lib_prefix=no
15219: need_version=no
15220: soname_spec='${libname}${release}${shared_ext}$major'
15221: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15222: case $host_os in
15223: irix5* | nonstopux*)
15224: libsuff= shlibsuff=
15225: ;;
15226: *)
15227: case $LD in # libtool.m4 will add one of these switches to LD
15228: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15229: libsuff= shlibsuff= libmagic=32-bit;;
15230: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15231: libsuff=32 shlibsuff=N32 libmagic=N32;;
15232: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15233: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15234: *) libsuff= shlibsuff= libmagic=never-match;;
15235: esac
15236: ;;
15237: esac
15238: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15239: shlibpath_overrides_runpath=no
15240: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15241: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15242: hardcode_into_libs=yes
15243: ;;
15244:
15245: # No shared lib support for Linux oldld, aout, or coff.
15246: linux*oldld* | linux*aout* | linux*coff*)
15247: dynamic_linker=no
15248: ;;
15249:
15250: # This must be glibc/ELF.
15251: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15252: version_type=linux # correct to gnu/linux during the next big refactor
15253: need_lib_prefix=no
15254: need_version=no
15255: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15256: soname_spec='${libname}${release}${shared_ext}$major'
15257: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15258: shlibpath_var=LD_LIBRARY_PATH
15259: shlibpath_overrides_runpath=no
15260:
15261: # Some binutils ld are patched to set DT_RUNPATH
1.22 moko 15262: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15263: $as_echo_n "(cached) " >&6
1.8 moko 15264: else
15265: lt_cv_shlibpath_overrides_runpath=no
15266: save_LDFLAGS=$LDFLAGS
15267: save_libdir=$libdir
15268: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15269: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.22 moko 15270: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15271: /* end confdefs.h. */
15272:
15273: int
15274: main ()
15275: {
15276:
15277: ;
15278: return 0;
15279: }
15280: _ACEOF
1.22 moko 15281: if ac_fn_cxx_try_link "$LINENO"; then :
15282: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.8 moko 15283: lt_cv_shlibpath_overrides_runpath=yes
15284: fi
15285: fi
1.22 moko 15286: rm -f core conftest.err conftest.$ac_objext \
15287: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15288: LDFLAGS=$save_LDFLAGS
15289: libdir=$save_libdir
15290:
15291: fi
15292:
15293: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15294:
15295: # This implies no fast_install, which is unacceptable.
15296: # Some rework will be needed to allow for fast_install
15297: # before this can be enabled.
15298: hardcode_into_libs=yes
15299:
15300: # Append ld.so.conf contents to the search path
15301: if test -f /etc/ld.so.conf; then
15302: 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' ' '`
15303: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15304: fi
15305:
15306: # We used to test for /lib/ld.so.1 and disable shared libraries on
15307: # powerpc, because MkLinux only supported shared libraries with the
15308: # GNU dynamic linker. Since this was broken with cross compilers,
15309: # most powerpc-linux boxes support dynamic linking these days and
15310: # people can always --disable-shared, the test was removed, and we
15311: # assume the GNU/Linux dynamic linker is in use.
15312: dynamic_linker='GNU/Linux ld.so'
15313: ;;
15314:
15315: netbsd*)
15316: version_type=sunos
15317: need_lib_prefix=no
15318: need_version=no
15319: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15320: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15321: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15322: dynamic_linker='NetBSD (a.out) ld.so'
15323: else
15324: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15325: soname_spec='${libname}${release}${shared_ext}$major'
15326: dynamic_linker='NetBSD ld.elf_so'
15327: fi
15328: shlibpath_var=LD_LIBRARY_PATH
15329: shlibpath_overrides_runpath=yes
15330: hardcode_into_libs=yes
15331: ;;
15332:
15333: newsos6)
15334: version_type=linux # correct to gnu/linux during the next big refactor
15335: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336: shlibpath_var=LD_LIBRARY_PATH
15337: shlibpath_overrides_runpath=yes
15338: ;;
15339:
15340: *nto* | *qnx*)
15341: version_type=qnx
15342: need_lib_prefix=no
15343: need_version=no
15344: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345: soname_spec='${libname}${release}${shared_ext}$major'
15346: shlibpath_var=LD_LIBRARY_PATH
15347: shlibpath_overrides_runpath=no
15348: hardcode_into_libs=yes
15349: dynamic_linker='ldqnx.so'
15350: ;;
15351:
15352: openbsd*)
15353: version_type=sunos
15354: sys_lib_dlsearch_path_spec="/usr/lib"
15355: need_lib_prefix=no
15356: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15357: case $host_os in
15358: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15359: *) need_version=no ;;
15360: esac
15361: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15362: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15363: shlibpath_var=LD_LIBRARY_PATH
15364: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15365: case $host_os in
15366: openbsd2.[89] | openbsd2.[89].*)
15367: shlibpath_overrides_runpath=no
15368: ;;
15369: *)
15370: shlibpath_overrides_runpath=yes
15371: ;;
15372: esac
15373: else
15374: shlibpath_overrides_runpath=yes
15375: fi
15376: ;;
15377:
15378: os2*)
15379: libname_spec='$name'
15380: shrext_cmds=".dll"
15381: need_lib_prefix=no
15382: library_names_spec='$libname${shared_ext} $libname.a'
15383: dynamic_linker='OS/2 ld.exe'
15384: shlibpath_var=LIBPATH
15385: ;;
15386:
15387: osf3* | osf4* | osf5*)
15388: version_type=osf
15389: need_lib_prefix=no
15390: need_version=no
15391: soname_spec='${libname}${release}${shared_ext}$major'
15392: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393: shlibpath_var=LD_LIBRARY_PATH
15394: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15395: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15396: ;;
15397:
15398: rdos*)
15399: dynamic_linker=no
15400: ;;
15401:
15402: solaris*)
15403: version_type=linux # correct to gnu/linux during the next big refactor
15404: need_lib_prefix=no
15405: need_version=no
15406: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407: soname_spec='${libname}${release}${shared_ext}$major'
15408: shlibpath_var=LD_LIBRARY_PATH
15409: shlibpath_overrides_runpath=yes
15410: hardcode_into_libs=yes
15411: # ldd complains unless libraries are executable
15412: postinstall_cmds='chmod +x $lib'
15413: ;;
15414:
15415: sunos4*)
15416: version_type=sunos
15417: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15418: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15419: shlibpath_var=LD_LIBRARY_PATH
15420: shlibpath_overrides_runpath=yes
15421: if test "$with_gnu_ld" = yes; then
15422: need_lib_prefix=no
15423: fi
15424: need_version=yes
15425: ;;
15426:
15427: sysv4 | sysv4.3*)
15428: version_type=linux # correct to gnu/linux during the next big refactor
15429: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430: soname_spec='${libname}${release}${shared_ext}$major'
15431: shlibpath_var=LD_LIBRARY_PATH
15432: case $host_vendor in
15433: sni)
15434: shlibpath_overrides_runpath=no
15435: need_lib_prefix=no
15436: runpath_var=LD_RUN_PATH
15437: ;;
15438: siemens)
15439: need_lib_prefix=no
15440: ;;
15441: motorola)
15442: need_lib_prefix=no
15443: need_version=no
15444: shlibpath_overrides_runpath=no
15445: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15446: ;;
15447: esac
15448: ;;
15449:
15450: sysv4*MP*)
15451: if test -d /usr/nec ;then
15452: version_type=linux # correct to gnu/linux during the next big refactor
15453: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15454: soname_spec='$libname${shared_ext}.$major'
15455: shlibpath_var=LD_LIBRARY_PATH
15456: fi
15457: ;;
15458:
15459: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15460: version_type=freebsd-elf
15461: need_lib_prefix=no
15462: need_version=no
15463: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15464: soname_spec='${libname}${release}${shared_ext}$major'
15465: shlibpath_var=LD_LIBRARY_PATH
15466: shlibpath_overrides_runpath=yes
15467: hardcode_into_libs=yes
15468: if test "$with_gnu_ld" = yes; then
15469: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15470: else
15471: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15472: case $host_os in
15473: sco3.2v5*)
15474: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15475: ;;
15476: esac
15477: fi
15478: sys_lib_dlsearch_path_spec='/usr/lib'
15479: ;;
15480:
15481: tpf*)
15482: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15483: version_type=linux # correct to gnu/linux during the next big refactor
15484: need_lib_prefix=no
15485: need_version=no
15486: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487: shlibpath_var=LD_LIBRARY_PATH
15488: shlibpath_overrides_runpath=no
15489: hardcode_into_libs=yes
15490: ;;
15491:
15492: uts4*)
15493: version_type=linux # correct to gnu/linux during the next big refactor
15494: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495: soname_spec='${libname}${release}${shared_ext}$major'
15496: shlibpath_var=LD_LIBRARY_PATH
15497: ;;
15498:
15499: *)
15500: dynamic_linker=no
15501: ;;
15502: esac
1.22 moko 15503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15504: $as_echo "$dynamic_linker" >&6; }
1.8 moko 15505: test "$dynamic_linker" = no && can_build_shared=no
15506:
15507: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15508: if test "$GCC" = yes; then
15509: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15510: fi
15511:
15512: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15513: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15514: fi
15515: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15516: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15517: fi
15518:
15519:
15520:
15521:
15522:
15523:
15524:
15525:
15526:
15527:
15528:
15529:
15530:
15531:
15532:
15533:
15534:
15535:
15536:
15537:
15538:
15539:
15540:
15541:
15542:
15543:
15544:
15545:
15546:
15547:
15548:
15549:
15550:
15551:
15552:
15553:
15554:
15555:
1.22 moko 15556: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15557: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.8 moko 15558: hardcode_action_CXX=
15559: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15560: test -n "$runpath_var_CXX" ||
15561: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15562:
15563: # We can hardcode non-existent directories.
15564: if test "$hardcode_direct_CXX" != no &&
15565: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15566: # have to relink, otherwise we might link with an installed library
15567: # when we should be linking with a yet-to-be-installed one
15568: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15569: test "$hardcode_minus_L_CXX" != no; then
15570: # Linking always hardcodes the temporary library directory.
15571: hardcode_action_CXX=relink
15572: else
15573: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15574: hardcode_action_CXX=immediate
15575: fi
15576: else
15577: # We cannot hardcode anything, or else we can only hardcode existing
15578: # directories.
15579: hardcode_action_CXX=unsupported
15580: fi
1.22 moko 15581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15582: $as_echo "$hardcode_action_CXX" >&6; }
1.8 moko 15583:
15584: if test "$hardcode_action_CXX" = relink ||
15585: test "$inherit_rpath_CXX" = yes; then
15586: # Fast installation is not supported
15587: enable_fast_install=no
15588: elif test "$shlibpath_overrides_runpath" = yes ||
15589: test "$enable_shared" = no; then
15590: # Fast installation is not necessary
15591: enable_fast_install=needless
15592: fi
15593:
15594:
15595:
15596:
15597:
15598:
15599:
15600: fi # test -n "$compiler"
15601:
15602: CC=$lt_save_CC
15603: CFLAGS=$lt_save_CFLAGS
15604: LDCXX=$LD
15605: LD=$lt_save_LD
15606: GCC=$lt_save_GCC
15607: with_gnu_ld=$lt_save_with_gnu_ld
15608: lt_cv_path_LDCXX=$lt_cv_path_LD
15609: lt_cv_path_LD=$lt_save_path_LD
15610: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15611: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15612: fi # test "$_lt_caught_CXX_error" != yes
15613:
15614: ac_ext=c
15615: ac_cpp='$CPP $CPPFLAGS'
15616: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15617: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15618: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15619:
15620:
15621:
15622:
15623:
15624:
15625:
15626:
15627:
15628:
15629:
15630:
15631:
15632:
15633:
1.22 moko 15634: ac_config_commands="$ac_config_commands libtool"
1.8 moko 15635:
15636:
15637:
15638:
15639: # Only expand once:
15640:
15641:
1.22 moko 15642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15643: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15644: if ${libltdl_cv_shlibext+:} false; then :
15645: $as_echo_n "(cached) " >&6
1.8 moko 15646: else
15647:
15648: module=yes
15649: eval libltdl_cv_shlibext=$shrext_cmds
15650: module=no
15651: eval libltdl_cv_shrext=$shrext_cmds
15652:
15653: fi
1.22 moko 15654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15655: $as_echo "$libltdl_cv_shlibext" >&6; }
1.8 moko 15656: if test -n "$libltdl_cv_shlibext"; then
15657:
15658: cat >>confdefs.h <<_ACEOF
15659: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15660: _ACEOF
15661:
15662: fi
15663: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15664:
15665: cat >>confdefs.h <<_ACEOF
15666: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15667: _ACEOF
15668:
15669: fi
15670:
1.22 moko 15671: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15672: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15673: if ${lt_cv_module_path_var+:} false; then :
15674: $as_echo_n "(cached) " >&6
1.8 moko 15675: else
15676: lt_cv_module_path_var="$shlibpath_var"
15677: fi
1.22 moko 15678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15679: $as_echo "$lt_cv_module_path_var" >&6; }
1.8 moko 15680: if test -n "$lt_cv_module_path_var"; then
15681:
15682: cat >>confdefs.h <<_ACEOF
15683: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15684: _ACEOF
15685:
15686: fi
15687:
1.22 moko 15688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15689: $as_echo_n "checking for the default library search path... " >&6; }
15690: if ${lt_cv_sys_dlsearch_path+:} false; then :
15691: $as_echo_n "(cached) " >&6
1.8 moko 15692: else
15693: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15694: fi
1.22 moko 15695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15696: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.8 moko 15697: if test -n "$lt_cv_sys_dlsearch_path"; then
15698: sys_dlsearch_path=
15699: for dir in $lt_cv_sys_dlsearch_path; do
15700: if test -z "$sys_dlsearch_path"; then
15701: sys_dlsearch_path="$dir"
15702: else
15703: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15704: fi
15705: done
15706:
15707: cat >>confdefs.h <<_ACEOF
15708: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15709: _ACEOF
15710:
15711: fi
15712:
15713:
15714: LT_DLLOADERS=
15715:
15716:
15717: ac_ext=c
15718: ac_cpp='$CPP $CPPFLAGS'
15719: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15720: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15721: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15722:
15723:
15724: LIBADD_DLOPEN=
1.22 moko 15725: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15726: $as_echo_n "checking for library containing dlopen... " >&6; }
15727: if ${ac_cv_search_dlopen+:} false; then :
15728: $as_echo_n "(cached) " >&6
1.8 moko 15729: else
15730: ac_func_search_save_LIBS=$LIBS
1.22 moko 15731: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15732: /* end confdefs.h. */
15733:
1.22 moko 15734: /* Override any GCC internal prototype to avoid an error.
15735: Use char because int might match the return type of a GCC
15736: builtin and then its argument prototype would still apply. */
1.8 moko 15737: #ifdef __cplusplus
15738: extern "C"
15739: #endif
15740: char dlopen ();
15741: int
15742: main ()
15743: {
1.22 moko 15744: return dlopen ();
1.8 moko 15745: ;
15746: return 0;
15747: }
15748: _ACEOF
1.22 moko 15749: for ac_lib in '' dl; do
15750: if test -z "$ac_lib"; then
15751: ac_res="none required"
15752: else
15753: ac_res=-l$ac_lib
15754: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15755: fi
15756: if ac_fn_c_try_link "$LINENO"; then :
15757: ac_cv_search_dlopen=$ac_res
15758: fi
15759: rm -f core conftest.err conftest.$ac_objext \
15760: conftest$ac_exeext
15761: if ${ac_cv_search_dlopen+:} false; then :
15762: break
1.11 moko 15763: fi
1.22 moko 15764: done
15765: if ${ac_cv_search_dlopen+:} false; then :
1.8 moko 15766:
15767: else
1.22 moko 15768: ac_cv_search_dlopen=no
1.8 moko 15769: fi
1.22 moko 15770: rm conftest.$ac_ext
1.8 moko 15771: LIBS=$ac_func_search_save_LIBS
15772: fi
1.22 moko 15773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15774: $as_echo "$ac_cv_search_dlopen" >&6; }
15775: ac_res=$ac_cv_search_dlopen
15776: if test "$ac_res" != no; then :
15777: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.8 moko 15778:
1.22 moko 15779: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.8 moko 15780:
15781: if test "$ac_cv_search_dlopen" != "none required" ; then
15782: LIBADD_DLOPEN="-ldl"
15783: fi
15784: libltdl_cv_lib_dl_dlopen="yes"
15785: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15786: else
1.22 moko 15787: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15788: /* end confdefs.h. */
15789: #if HAVE_DLFCN_H
15790: # include <dlfcn.h>
15791: #endif
15792:
15793: int
15794: main ()
15795: {
15796: dlopen(0, 0);
15797: ;
15798: return 0;
15799: }
15800: _ACEOF
1.22 moko 15801: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 15802:
1.22 moko 15803: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.8 moko 15804:
15805: libltdl_cv_func_dlopen="yes"
15806: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15807: else
1.22 moko 15808: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15809: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15810: if ${ac_cv_lib_svld_dlopen+:} false; then :
15811: $as_echo_n "(cached) " >&6
1.8 moko 15812: else
15813: ac_check_lib_save_LIBS=$LIBS
15814: LIBS="-lsvld $LIBS"
1.22 moko 15815: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 moko 15816: /* end confdefs.h. */
15817:
1.22 moko 15818: /* Override any GCC internal prototype to avoid an error.
15819: Use char because int might match the return type of a GCC
1.11 moko 15820: builtin and then its argument prototype would still apply. */
15821: #ifdef __cplusplus
1.22 moko 15822: extern "C"
1.11 moko 15823: #endif
1.22 moko 15824: char dlopen ();
1.11 moko 15825: int
15826: main ()
15827: {
1.22 moko 15828: return dlopen ();
1.11 moko 15829: ;
15830: return 0;
15831: }
15832: _ACEOF
1.22 moko 15833: if ac_fn_c_try_link "$LINENO"; then :
15834: ac_cv_lib_svld_dlopen=yes
1.11 moko 15835: else
1.22 moko 15836: ac_cv_lib_svld_dlopen=no
15837: fi
15838: rm -f core conftest.err conftest.$ac_objext \
15839: conftest$ac_exeext conftest.$ac_ext
15840: LIBS=$ac_check_lib_save_LIBS
15841: fi
15842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15843: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15844: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15845:
15846: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15847:
15848: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15849: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15850: fi
1.11 moko 15851:
15852: fi
1.22 moko 15853: rm -f core conftest.err conftest.$ac_objext \
15854: conftest$ac_exeext conftest.$ac_ext
1.11 moko 15855: fi
1.22 moko 15856:
15857: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15858: then
15859: lt_save_LIBS="$LIBS"
15860: LIBS="$LIBS $LIBADD_DLOPEN"
15861: for ac_func in dlerror
15862: do :
15863: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
15864: if test "x$ac_cv_func_dlerror" = xyes; then :
1.8 moko 15865: cat >>confdefs.h <<_ACEOF
1.22 moko 15866: #define HAVE_DLERROR 1
1.8 moko 15867: _ACEOF
15868:
15869: fi
15870: done
15871:
15872: LIBS="$lt_save_LIBS"
15873: fi
15874:
15875:
15876: LIBADD_SHL_LOAD=
1.22 moko 15877: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15878: if test "x$ac_cv_func_shl_load" = xyes; then :
1.8 moko 15879:
1.22 moko 15880: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.8 moko 15881:
15882: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15883: else
1.22 moko 15884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15885: $as_echo_n "checking for shl_load in -ldld... " >&6; }
15886: if ${ac_cv_lib_dld_shl_load+:} false; then :
15887: $as_echo_n "(cached) " >&6
1.8 moko 15888: else
15889: ac_check_lib_save_LIBS=$LIBS
15890: LIBS="-ldld $LIBS"
1.22 moko 15891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15892: /* end confdefs.h. */
15893:
1.22 moko 15894: /* Override any GCC internal prototype to avoid an error.
15895: Use char because int might match the return type of a GCC
15896: builtin and then its argument prototype would still apply. */
1.8 moko 15897: #ifdef __cplusplus
15898: extern "C"
15899: #endif
15900: char shl_load ();
15901: int
15902: main ()
15903: {
1.22 moko 15904: return shl_load ();
1.8 moko 15905: ;
15906: return 0;
15907: }
15908: _ACEOF
1.22 moko 15909: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 15910: ac_cv_lib_dld_shl_load=yes
15911: else
1.22 moko 15912: ac_cv_lib_dld_shl_load=no
1.8 moko 15913: fi
1.22 moko 15914: rm -f core conftest.err conftest.$ac_objext \
15915: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15916: LIBS=$ac_check_lib_save_LIBS
15917: fi
1.22 moko 15918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15919: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15920: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.8 moko 15921:
1.22 moko 15922: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.8 moko 15923:
15924: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15925: LIBADD_SHL_LOAD="-ldld"
15926: fi
15927:
15928: fi
15929:
15930:
15931:
15932: case $host_os in
15933: darwin[1567].*)
15934: # We only want this for pre-Mac OS X 10.4.
1.22 moko 15935: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
15936: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
1.11 moko 15937:
1.22 moko 15938: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.8 moko 15939:
15940: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15941: fi
15942:
15943: ;;
15944: beos*)
15945: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15946: ;;
15947: cygwin* | mingw* | os2* | pw32*)
1.22 moko 15948: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
15949: "
15950: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
15951: ac_have_decl=1
1.8 moko 15952: else
1.22 moko 15953: ac_have_decl=0
1.11 moko 15954: fi
1.8 moko 15955:
15956: cat >>confdefs.h <<_ACEOF
1.22 moko 15957: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.8 moko 15958: _ACEOF
15959:
15960: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15961: ;;
15962: esac
15963:
1.22 moko 15964: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15965: $as_echo_n "checking for dld_link in -ldld... " >&6; }
15966: if ${ac_cv_lib_dld_dld_link+:} false; then :
15967: $as_echo_n "(cached) " >&6
1.8 moko 15968: else
15969: ac_check_lib_save_LIBS=$LIBS
15970: LIBS="-ldld $LIBS"
1.22 moko 15971: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15972: /* end confdefs.h. */
15973:
1.22 moko 15974: /* Override any GCC internal prototype to avoid an error.
15975: Use char because int might match the return type of a GCC
15976: builtin and then its argument prototype would still apply. */
1.8 moko 15977: #ifdef __cplusplus
15978: extern "C"
15979: #endif
15980: char dld_link ();
15981: int
15982: main ()
15983: {
1.22 moko 15984: return dld_link ();
1.8 moko 15985: ;
15986: return 0;
15987: }
15988: _ACEOF
1.22 moko 15989: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 15990: ac_cv_lib_dld_dld_link=yes
15991: else
1.22 moko 15992: ac_cv_lib_dld_dld_link=no
1.8 moko 15993: fi
1.22 moko 15994: rm -f core conftest.err conftest.$ac_objext \
15995: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15996: LIBS=$ac_check_lib_save_LIBS
15997: fi
1.22 moko 15998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15999: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16000: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.8 moko 16001:
1.22 moko 16002: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.8 moko 16003:
16004: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16005: fi
16006:
16007:
16008:
16009:
16010: LT_DLPREOPEN=
16011: if test -n "$LT_DLLOADERS"
16012: then
16013: for lt_loader in $LT_DLLOADERS; do
16014: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16015: done
16016:
1.22 moko 16017: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.8 moko 16018:
16019: fi
16020:
16021:
16022: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16023:
16024:
16025: ac_ext=c
16026: ac_cpp='$CPP $CPPFLAGS'
16027: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16028: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16029: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16030:
16031:
1.22 moko 16032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16033: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16034: if ${lt_cv_sys_symbol_underscore+:} false; then :
16035: $as_echo_n "(cached) " >&6
1.8 moko 16036: else
16037: lt_cv_sys_symbol_underscore=no
16038: cat > conftest.$ac_ext <<_LT_EOF
16039: void nm_test_func(){}
16040: int main(){nm_test_func;return 0;}
16041: _LT_EOF
1.22 moko 16042: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 16043: (eval $ac_compile) 2>&5
16044: ac_status=$?
1.22 moko 16045: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16046: test $ac_status = 0; }; then
1.8 moko 16047: # Now try to grab the symbols.
16048: ac_nlist=conftest.nm
1.22 moko 16049: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.8 moko 16050: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16051: ac_status=$?
1.22 moko 16052: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16053: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.8 moko 16054: # See whether the symbols have a leading underscore.
16055: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16056: lt_cv_sys_symbol_underscore=yes
16057: else
16058: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16059: :
16060: else
16061: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16062: fi
16063: fi
16064: else
16065: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16066: fi
16067: else
16068: echo "configure: failed program was:" >&5
16069: cat conftest.c >&5
16070: fi
16071: rm -rf conftest*
16072:
16073: fi
1.22 moko 16074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16075: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.8 moko 16076: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16077:
16078:
16079: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16080: if test x"$libltdl_cv_func_dlopen" = xyes ||
16081: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.22 moko 16082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16083: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16084: if ${libltdl_cv_need_uscore+:} false; then :
16085: $as_echo_n "(cached) " >&6
1.8 moko 16086: else
16087: libltdl_cv_need_uscore=unknown
16088: save_LIBS="$LIBS"
16089: LIBS="$LIBS $LIBADD_DLOPEN"
16090: if test "$cross_compiling" = yes; then :
16091: libltdl_cv_need_uscore=cross
16092: else
16093: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16094: lt_status=$lt_dlunknown
16095: cat > conftest.$ac_ext <<_LT_EOF
16096: #line $LINENO "configure"
16097: #include "confdefs.h"
16098:
16099: #if HAVE_DLFCN_H
16100: #include <dlfcn.h>
16101: #endif
16102:
16103: #include <stdio.h>
16104:
16105: #ifdef RTLD_GLOBAL
16106: # define LT_DLGLOBAL RTLD_GLOBAL
16107: #else
16108: # ifdef DL_GLOBAL
16109: # define LT_DLGLOBAL DL_GLOBAL
16110: # else
16111: # define LT_DLGLOBAL 0
16112: # endif
16113: #endif
16114:
16115: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16116: find out it does not work in some platform. */
16117: #ifndef LT_DLLAZY_OR_NOW
16118: # ifdef RTLD_LAZY
16119: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16120: # else
16121: # ifdef DL_LAZY
16122: # define LT_DLLAZY_OR_NOW DL_LAZY
16123: # else
16124: # ifdef RTLD_NOW
16125: # define LT_DLLAZY_OR_NOW RTLD_NOW
16126: # else
16127: # ifdef DL_NOW
16128: # define LT_DLLAZY_OR_NOW DL_NOW
16129: # else
16130: # define LT_DLLAZY_OR_NOW 0
16131: # endif
16132: # endif
16133: # endif
16134: # endif
16135: #endif
16136:
16137: /* When -fvisbility=hidden is used, assume the code has been annotated
16138: correspondingly for the symbols needed. */
16139: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16140: int fnord () __attribute__((visibility("default")));
16141: #endif
16142:
16143: int fnord () { return 42; }
16144: int main ()
16145: {
16146: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16147: int status = $lt_dlunknown;
16148:
16149: if (self)
16150: {
16151: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16152: else
16153: {
16154: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16155: else puts (dlerror ());
16156: }
16157: /* dlclose (self); */
16158: }
16159: else
16160: puts (dlerror ());
16161:
16162: return status;
16163: }
16164: _LT_EOF
1.22 moko 16165: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 16166: (eval $ac_link) 2>&5
16167: ac_status=$?
1.22 moko 16168: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16169: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 16170: (./conftest; exit; ) >&5 2>/dev/null
16171: lt_status=$?
16172: case x$lt_status in
16173: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16174: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16175: x$lt_dlunknown|x*) ;;
16176: esac
16177: else :
16178: # compilation failed
16179:
16180: fi
16181: fi
16182: rm -fr conftest*
16183:
16184: LIBS="$save_LIBS"
16185:
16186: fi
1.22 moko 16187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16188: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.8 moko 16189: fi
16190: fi
16191:
16192: if test x"$libltdl_cv_need_uscore" = xyes; then
16193:
1.22 moko 16194: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.8 moko 16195:
16196: fi
16197:
1.22 moko 16198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16199: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16200: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16201: $as_echo_n "(cached) " >&6
1.8 moko 16202: else
16203: # PORTME does your system automatically load deplibs for dlopen?
16204: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16205: # For now, we just catch OSes we know something about -- in the
16206: # future, we'll try test this programmatically.
16207: lt_cv_sys_dlopen_deplibs=unknown
16208: case $host_os in
16209: aix3*|aix4.1.*|aix4.2.*)
16210: # Unknown whether this is true for these versions of AIX, but
16211: # we want this `case' here to explicitly catch those versions.
16212: lt_cv_sys_dlopen_deplibs=unknown
16213: ;;
16214: aix[4-9]*)
16215: lt_cv_sys_dlopen_deplibs=yes
16216: ;;
16217: amigaos*)
16218: case $host_cpu in
16219: powerpc)
16220: lt_cv_sys_dlopen_deplibs=no
16221: ;;
16222: esac
16223: ;;
16224: darwin*)
16225: # Assuming the user has installed a libdl from somewhere, this is true
16226: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16227: lt_cv_sys_dlopen_deplibs=yes
16228: ;;
16229: freebsd* | dragonfly*)
16230: lt_cv_sys_dlopen_deplibs=yes
16231: ;;
16232: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16233: # GNU and its variants, using gnu ld.so (Glibc)
16234: lt_cv_sys_dlopen_deplibs=yes
16235: ;;
16236: hpux10*|hpux11*)
16237: lt_cv_sys_dlopen_deplibs=yes
16238: ;;
16239: interix*)
16240: lt_cv_sys_dlopen_deplibs=yes
16241: ;;
16242: irix[12345]*|irix6.[01]*)
16243: # Catch all versions of IRIX before 6.2, and indicate that we don't
16244: # know how it worked for any of those versions.
16245: lt_cv_sys_dlopen_deplibs=unknown
16246: ;;
16247: irix*)
16248: # The case above catches anything before 6.2, and it's known that
16249: # at 6.2 and later dlopen does load deplibs.
16250: lt_cv_sys_dlopen_deplibs=yes
16251: ;;
16252: netbsd*)
16253: lt_cv_sys_dlopen_deplibs=yes
16254: ;;
16255: openbsd*)
16256: lt_cv_sys_dlopen_deplibs=yes
16257: ;;
16258: osf[1234]*)
16259: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16260: # it did *not* use an RPATH in a shared library to find objects the
16261: # library depends on, so we explicitly say `no'.
16262: lt_cv_sys_dlopen_deplibs=no
16263: ;;
16264: osf5.0|osf5.0a|osf5.1)
16265: # dlopen *does* load deplibs and with the right loader patch applied
16266: # it even uses RPATH in a shared library to search for shared objects
16267: # that the library depends on, but there's no easy way to know if that
16268: # patch is installed. Since this is the case, all we can really
16269: # say is unknown -- it depends on the patch being installed. If
16270: # it is, this changes to `yes'. Without it, it would be `no'.
16271: lt_cv_sys_dlopen_deplibs=unknown
16272: ;;
16273: osf*)
16274: # the two cases above should catch all versions of osf <= 5.1. Read
16275: # the comments above for what we know about them.
16276: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16277: # is used to find them so we can finally say `yes'.
16278: lt_cv_sys_dlopen_deplibs=yes
16279: ;;
16280: qnx*)
16281: lt_cv_sys_dlopen_deplibs=yes
16282: ;;
16283: solaris*)
16284: lt_cv_sys_dlopen_deplibs=yes
16285: ;;
16286: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16287: libltdl_cv_sys_dlopen_deplibs=yes
16288: ;;
16289: esac
16290:
16291: fi
1.22 moko 16292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16293: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.8 moko 16294: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16295:
1.22 moko 16296: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.8 moko 16297:
16298: fi
16299:
16300: :
16301:
16302: for ac_header in argz.h
1.22 moko 16303: do :
16304: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16305: "
16306: if test "x$ac_cv_header_argz_h" = xyes; then :
1.8 moko 16307: cat >>confdefs.h <<_ACEOF
1.22 moko 16308: #define HAVE_ARGZ_H 1
1.8 moko 16309: _ACEOF
16310:
16311: fi
16312:
16313: done
16314:
16315:
1.22 moko 16316: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
16317: # include <argz.h>
1.11 moko 16318: #endif
1.22 moko 16319: "
16320: if test "x$ac_cv_type_error_t" = xyes; then :
1.11 moko 16321:
1.22 moko 16322: cat >>confdefs.h <<_ACEOF
16323: #define HAVE_ERROR_T 1
1.11 moko 16324: _ACEOF
1.22 moko 16325:
16326:
1.11 moko 16327: else
16328:
1.22 moko 16329: $as_echo "#define error_t int" >>confdefs.h
16330:
16331:
16332: $as_echo "#define __error_t_defined 1" >>confdefs.h
16333:
1.11 moko 16334: fi
1.22 moko 16335:
16336:
16337: ARGZ_H=
16338: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16339: argz_next argz_stringify
16340: do :
16341: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16342: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16343: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.8 moko 16344: cat >>confdefs.h <<_ACEOF
1.22 moko 16345: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 16346: _ACEOF
16347:
16348: else
16349: ARGZ_H=argz.h;
16350:
16351: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16352:
16353: fi
16354: done
16355:
16356:
1.22 moko 16357: if test -z "$ARGZ_H"; then :
16358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16359: $as_echo_n "checking if argz actually works... " >&6; }
16360: if ${lt_cv_sys_argz_works+:} false; then :
16361: $as_echo_n "(cached) " >&6
1.8 moko 16362: else
16363: case $host_os in #(
16364: *cygwin*)
16365: lt_cv_sys_argz_works=no
16366: if test "$cross_compiling" != no; then
16367: lt_cv_sys_argz_works="guessing no"
16368: else
16369: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16370: save_IFS=$IFS
16371: IFS=-.
16372: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16373: IFS=$save_IFS
16374: lt_os_major=${2-0}
16375: lt_os_minor=${3-0}
16376: lt_os_micro=${4-0}
16377: if test "$lt_os_major" -gt 1 \
16378: || { test "$lt_os_major" -eq 1 \
16379: && { test "$lt_os_minor" -gt 5 \
16380: || { test "$lt_os_minor" -eq 5 \
16381: && test "$lt_os_micro" -gt 24; }; }; }; then
16382: lt_cv_sys_argz_works=yes
16383: fi
16384: fi
16385: ;; #(
16386: *) lt_cv_sys_argz_works=yes ;;
16387: esac
16388: fi
1.22 moko 16389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16390: $as_echo "$lt_cv_sys_argz_works" >&6; }
16391: if test "$lt_cv_sys_argz_works" = yes; then :
1.8 moko 16392:
1.22 moko 16393: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.8 moko 16394:
16395: else
16396: ARGZ_H=argz.h
16397:
16398:
16399: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16400:
16401: fi
16402: fi
16403:
16404:
16405:
1.22 moko 16406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16407: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16408: if ${libltdl_cv_preloaded_symbols+:} false; then :
16409: $as_echo_n "(cached) " >&6
1.8 moko 16410: else
16411: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16412: libltdl_cv_preloaded_symbols=yes
16413: else
16414: libltdl_cv_preloaded_symbols=no
16415: fi
16416:
16417: fi
1.22 moko 16418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16419: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.8 moko 16420: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16421:
1.22 moko 16422: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.8 moko 16423:
16424: fi
16425:
1.22 moko 16426:
16427:
1.8 moko 16428: # Set options
16429:
16430:
16431:
16432:
16433:
16434:
16435:
16436:
16437:
16438:
16439:
16440:
1.22 moko 16441: # Check whether --with-included_ltdl was given.
16442: if test "${with_included_ltdl+set}" = set; then :
16443: withval=$with_included_ltdl;
16444: fi
1.8 moko 16445:
16446:
16447: if test "x$with_included_ltdl" != xyes; then
16448: # We are not being forced to use the included libltdl sources, so
16449: # decide whether there is a useful installed version we can use.
1.22 moko 16450: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.8 moko 16451:
1.22 moko 16452: "
16453: if test "x$ac_cv_header_ltdl_h" = xyes; then :
16454: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.8 moko 16455: #include <ltdl.h>
1.22 moko 16456: "
16457: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16459: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16460: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16461: $as_echo_n "(cached) " >&6
1.8 moko 16462: else
16463: ac_check_lib_save_LIBS=$LIBS
16464: LIBS="-lltdl $LIBS"
1.22 moko 16465: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 16466: /* end confdefs.h. */
16467:
1.22 moko 16468: /* Override any GCC internal prototype to avoid an error.
16469: Use char because int might match the return type of a GCC
16470: builtin and then its argument prototype would still apply. */
1.8 moko 16471: #ifdef __cplusplus
16472: extern "C"
16473: #endif
16474: char lt_dladvise_preload ();
16475: int
16476: main ()
16477: {
1.22 moko 16478: return lt_dladvise_preload ();
1.8 moko 16479: ;
16480: return 0;
16481: }
16482: _ACEOF
1.22 moko 16483: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 16484: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16485: else
1.22 moko 16486: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.8 moko 16487: fi
1.22 moko 16488: rm -f core conftest.err conftest.$ac_objext \
16489: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16490: LIBS=$ac_check_lib_save_LIBS
16491: fi
1.22 moko 16492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16493: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16494: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.8 moko 16495: with_included_ltdl=no
16496: else
16497: with_included_ltdl=yes
16498: fi
16499:
16500: else
16501: with_included_ltdl=yes
16502: fi
16503:
16504: else
16505: with_included_ltdl=yes
16506: fi
16507:
16508:
16509: fi
16510:
16511:
16512:
16513:
1.22 moko 16514: # Check whether --with-ltdl_include was given.
16515: if test "${with_ltdl_include+set}" = set; then :
16516: withval=$with_ltdl_include;
16517: fi
1.8 moko 16518:
16519:
16520: if test -n "$with_ltdl_include"; then
16521: if test -f "$with_ltdl_include/ltdl.h"; then :
16522: else
1.22 moko 16523: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.8 moko 16524: fi
16525: else
16526: with_ltdl_include=no
16527: fi
16528:
16529:
1.22 moko 16530: # Check whether --with-ltdl_lib was given.
16531: if test "${with_ltdl_lib+set}" = set; then :
16532: withval=$with_ltdl_lib;
16533: fi
1.8 moko 16534:
16535:
16536: if test -n "$with_ltdl_lib"; then
16537: if test -f "$with_ltdl_lib/libltdl.la"; then :
16538: else
1.22 moko 16539: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.8 moko 16540: fi
16541: else
16542: with_ltdl_lib=no
16543: fi
16544:
16545: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16546: ,yes,no,no,)
16547: case $enable_ltdl_convenience in
1.22 moko 16548: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.8 moko 16549: "") enable_ltdl_convenience=yes
16550: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16551: esac
1.22 moko 16552: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.8 moko 16553: LTDLDEPS=$LIBLTDL
16554: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16555:
16556:
16557:
16558:
16559:
16560: # For backwards non-gettext consistent compatibility...
16561: INCLTDL="$LTDLINCL"
16562:
16563:
16564: ;;
16565: ,no,no,no,)
16566: # If the included ltdl is not to be used, then use the
16567: # preinstalled libltdl we found.
16568:
1.22 moko 16569: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.8 moko 16570:
16571: LIBLTDL=-lltdl
16572: LTDLDEPS=
16573: LTDLINCL=
16574: ;;
16575: ,no*,no,*)
1.22 moko 16576: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.8 moko 16577: ;;
16578: *) with_included_ltdl=no
16579: LIBLTDL="-L$with_ltdl_lib -lltdl"
16580: LTDLDEPS=
16581: LTDLINCL="-I$with_ltdl_include"
16582: ;;
16583: esac
16584: INCLTDL="$LTDLINCL"
16585:
16586: # Report our decision...
1.22 moko 16587: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
16588: $as_echo_n "checking where to find libltdl headers... " >&6; }
16589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
16590: $as_echo "$LTDLINCL" >&6; }
16591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
16592: $as_echo_n "checking where to find libltdl library... " >&6; }
16593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
16594: $as_echo "$LIBLTDL" >&6; }
1.8 moko 16595:
16596:
16597:
1.22 moko 16598: # Check whether --enable-ltdl-install was given.
16599: if test "${enable_ltdl_install+set}" = set; then :
16600: enableval=$enable_ltdl_install;
16601: fi
1.8 moko 16602:
16603:
16604: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16605: *yes*) ;;
16606: *) enable_ltdl_convenience=yes ;;
16607: esac
16608:
1.22 moko 16609: if test x"${enable_ltdl_install-no}" != xno; then
1.8 moko 16610: INSTALL_LTDL_TRUE=
16611: INSTALL_LTDL_FALSE='#'
16612: else
16613: INSTALL_LTDL_TRUE='#'
16614: INSTALL_LTDL_FALSE=
16615: fi
16616:
1.22 moko 16617: if test x"${enable_ltdl_convenience-no}" != xno; then
1.8 moko 16618: CONVENIENCE_LTDL_TRUE=
16619: CONVENIENCE_LTDL_FALSE='#'
16620: else
16621: CONVENIENCE_LTDL_TRUE='#'
16622: CONVENIENCE_LTDL_FALSE=
16623: fi
16624:
16625:
16626:
1.22 moko 16627: subdirs="$subdirs libltdl"
1.8 moko 16628:
16629:
16630:
16631:
16632: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16633: # the user used. This is so that ltdl.h can pick up the parent projects
16634: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16635: # definitions required by ltdl.c.
16636: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16637:
16638:
16639:
1.11 moko 16640: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
1.22 moko 16641: do :
16642: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16643: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16644: "
16645: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.11 moko 16646: cat >>confdefs.h <<_ACEOF
1.22 moko 16647: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.11 moko 16648: _ACEOF
16649:
16650: fi
16651:
16652: done
16653:
16654:
16655: for ac_func in closedir opendir readdir
1.22 moko 16656: do :
16657: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16658: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16659: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.11 moko 16660: cat >>confdefs.h <<_ACEOF
1.22 moko 16661: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.11 moko 16662: _ACEOF
1.8 moko 16663:
1.10 moko 16664: else
1.8 moko 16665:
16666:
1.10 moko 16667: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.8 moko 16668:
1.10 moko 16669: fi
1.8 moko 16670: done
16671:
16672: for ac_func in strlcat strlcpy
1.22 moko 16673: do :
16674: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16675: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16676: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.8 moko 16677: cat >>confdefs.h <<_ACEOF
1.22 moko 16678: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 16679: _ACEOF
16680:
16681: else
16682:
16683:
16684: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16685:
16686: fi
16687: done
16688:
16689:
16690:
16691: cat >>confdefs.h <<_ACEOF
16692: #define LT_LIBEXT "$libext"
16693: _ACEOF
16694:
16695:
16696: name=
16697: eval "lt_libprefix=\"$libname_spec\""
16698:
16699: cat >>confdefs.h <<_ACEOF
16700: #define LT_LIBPREFIX "$lt_libprefix"
16701: _ACEOF
16702:
16703:
16704: name=ltdl
16705: eval "LTDLOPEN=\"$libname_spec\""
16706:
16707:
16708:
16709:
16710:
16711:
16712:
16713:
16714: # Only expand once:
16715:
16716:
16717:
1.13 moko 16718:
1.22 moko 16719: for ac_header in stdio.h \
16720: stdlib.h \
16721: string.h \
16722: setjmp.h \
16723: ctype.h
1.8 moko 16724:
1.22 moko 16725: do :
16726: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16727: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16728: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.8 moko 16729: cat >>confdefs.h <<_ACEOF
1.22 moko 16730: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 16731: _ACEOF
16732:
16733: fi
16734:
16735: done
16736:
16737:
1.22 moko 16738: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16739: if test "x$ac_cv_type_size_t" = xyes; then :
1.8 moko 16740:
16741: else
16742:
16743: cat >>confdefs.h <<_ACEOF
1.22 moko 16744: #define size_t unsigned int
1.8 moko 16745: _ACEOF
16746:
16747: fi
16748:
16749:
16750:
1.22 moko 16751: ac_config_files="$ac_config_files Makefile"
16752:
1.8 moko 16753: cat >confcache <<\_ACEOF
16754: # This file is a shell script that caches the results of configure
16755: # tests run on this system so they can be shared between configure
16756: # scripts and configure runs, see configure's option --config-cache.
16757: # It is not useful on other systems. If it contains results you don't
16758: # want to keep, you may remove or edit it.
16759: #
16760: # config.status only pays attention to the cache file if you give it
16761: # the --recheck option to rerun configure.
16762: #
16763: # `ac_cv_env_foo' variables (set or unset) will be overridden when
16764: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16765: # following values.
16766:
16767: _ACEOF
16768:
16769: # The following way of writing the cache mishandles newlines in values,
16770: # but we know of no workaround that is simple, portable, and efficient.
1.22 moko 16771: # So, we kill variables containing newlines.
1.8 moko 16772: # Ultrix sh set writes to stderr and can't be redirected directly,
16773: # and sets the high bit in the cache file unless we assign to the vars.
1.22 moko 16774: (
16775: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16776: eval ac_val=\$$ac_var
16777: case $ac_val in #(
16778: *${as_nl}*)
16779: case $ac_var in #(
16780: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16781: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16782: esac
16783: case $ac_var in #(
16784: _ | IFS | as_nl) ;; #(
16785: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16786: *) { eval $ac_var=; unset $ac_var;} ;;
16787: esac ;;
16788: esac
16789: done
16790:
1.8 moko 16791: (set) 2>&1 |
1.22 moko 16792: case $as_nl`(ac_space=' '; set) 2>&1` in #(
16793: *${as_nl}ac_space=\ *)
16794: # `set' does not quote correctly, so add quotes: double-quote
16795: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.8 moko 16796: sed -n \
16797: "s/'/'\\\\''/g;
16798: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.22 moko 16799: ;; #(
1.8 moko 16800: *)
16801: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.22 moko 16802: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.8 moko 16803: ;;
1.22 moko 16804: esac |
16805: sort
16806: ) |
1.8 moko 16807: sed '
1.22 moko 16808: /^ac_cv_env_/b end
1.8 moko 16809: t clear
1.22 moko 16810: :clear
1.8 moko 16811: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16812: t end
1.22 moko 16813: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16814: :end' >>confcache
16815: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16816: if test -w "$cache_file"; then
16817: if test "x$cache_file" != "x/dev/null"; then
16818: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16819: $as_echo "$as_me: updating cache $cache_file" >&6;}
16820: if test ! -f "$cache_file" || test -h "$cache_file"; then
16821: cat confcache >"$cache_file"
16822: else
16823: case $cache_file in #(
16824: */* | ?:*)
16825: mv -f confcache "$cache_file"$$ &&
16826: mv -f "$cache_file"$$ "$cache_file" ;; #(
16827: *)
16828: mv -f confcache "$cache_file" ;;
16829: esac
16830: fi
16831: fi
1.8 moko 16832: else
1.22 moko 16833: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16834: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.8 moko 16835: fi
16836: fi
16837: rm -f confcache
16838:
16839: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16840: # Let make expand exec_prefix.
16841: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16842:
16843: DEFS=-DHAVE_CONFIG_H
16844:
16845: ac_libobjs=
16846: ac_ltlibobjs=
16847: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16848: # 1. Remove the extension, and $U if already installed.
1.22 moko 16849: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16850: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16851: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16852: # will be set to the directory where LIBOBJS objects are built.
16853: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16854: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.8 moko 16855: done
16856: LIBOBJS=$ac_libobjs
16857:
16858: LTLIBOBJS=$ac_ltlibobjs
16859:
16860:
1.30 moko 16861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16862: $as_echo_n "checking that generated files are newer than configure... " >&6; }
16863: if test -n "$am_sleep_pid"; then
16864: # Hide warnings about reused PIDs.
16865: wait $am_sleep_pid 2>/dev/null
16866: fi
16867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16868: $as_echo "done" >&6; }
1.22 moko 16869: if test -n "$EXEEXT"; then
16870: am__EXEEXT_TRUE=
16871: am__EXEEXT_FALSE='#'
16872: else
16873: am__EXEEXT_TRUE='#'
16874: am__EXEEXT_FALSE=
16875: fi
16876:
1.8 moko 16877: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.22 moko 16878: as_fn_error $? "conditional \"AMDEP\" was never defined.
16879: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16880: fi
16881: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.22 moko 16882: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16883: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16884: fi
16885: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.22 moko 16886: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16887: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16888: fi
16889: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.22 moko 16890: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
16891: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16892: fi
16893: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.22 moko 16894: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
16895: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16896: fi
1.22 moko 16897: LT_CONFIG_H=config_auto.h
1.8 moko 16898:
16899: _ltdl_libobjs=
16900: _ltdl_ltlibobjs=
16901: if test -n "$_LT_LIBOBJS"; then
16902: # Remove the extension.
16903: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16904: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16905: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16906: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16907: done
16908: fi
16909: ltdl_LIBOBJS=$_ltdl_libobjs
16910:
16911: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16912:
16913:
16914:
1.22 moko 16915: : "${CONFIG_STATUS=./config.status}"
16916: ac_write_fail=0
1.8 moko 16917: ac_clean_files_save=$ac_clean_files
16918: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.22 moko 16919: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16920: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16921: as_write_fail=0
16922: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.8 moko 16923: #! $SHELL
16924: # Generated by $as_me.
16925: # Run this file to recreate the current configuration.
16926: # Compiler output produced by configure, useful for debugging
16927: # configure, is in config.log if it exists.
16928:
16929: debug=false
16930: ac_cs_recheck=false
16931: ac_cs_silent=false
1.22 moko 16932:
1.11 moko 16933: SHELL=\${CONFIG_SHELL-$SHELL}
1.22 moko 16934: export SHELL
16935: _ASEOF
16936: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16937: ## -------------------- ##
16938: ## M4sh Initialization. ##
16939: ## -------------------- ##
1.10 moko 16940:
1.22 moko 16941: # Be more Bourne compatible
16942: DUALCASE=1; export DUALCASE # for MKS sh
16943: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.8 moko 16944: emulate sh
16945: NULLCMD=:
1.22 moko 16946: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.8 moko 16947: # is contrary to our usage. Disable this feature.
16948: alias -g '${1+"$@"}'='"$@"'
1.22 moko 16949: setopt NO_GLOB_SUBST
16950: else
16951: case `(set -o) 2>/dev/null` in #(
16952: *posix*) :
16953: set -o posix ;; #(
16954: *) :
16955: ;;
16956: esac
16957: fi
16958:
16959:
16960: as_nl='
16961: '
16962: export as_nl
16963: # Printing a long string crashes Solaris 7 /usr/bin/printf.
16964: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16965: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16966: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16967: # Prefer a ksh shell builtin over an external printf program on Solaris,
16968: # but without wasting forks for bash or zsh.
16969: if test -z "$BASH_VERSION$ZSH_VERSION" \
16970: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16971: as_echo='print -r --'
16972: as_echo_n='print -rn --'
16973: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16974: as_echo='printf %s\n'
16975: as_echo_n='printf %s'
16976: else
16977: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16978: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16979: as_echo_n='/usr/ucb/echo -n'
16980: else
16981: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16982: as_echo_n_body='eval
16983: arg=$1;
16984: case $arg in #(
16985: *"$as_nl"*)
16986: expr "X$arg" : "X\\(.*\\)$as_nl";
16987: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16988: esac;
16989: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16990: '
16991: export as_echo_n_body
16992: as_echo_n='sh -c $as_echo_n_body as_echo'
16993: fi
16994: export as_echo_body
16995: as_echo='sh -c $as_echo_body as_echo'
1.10 moko 16996: fi
16997:
1.22 moko 16998: # The user is always right.
16999: if test "${PATH_SEPARATOR+set}" != set; then
17000: PATH_SEPARATOR=:
17001: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17002: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17003: PATH_SEPARATOR=';'
17004: }
1.8 moko 17005: fi
17006:
17007:
1.22 moko 17008: # IFS
17009: # We need space, tab and new line, in precisely that order. Quoting is
17010: # there to prevent editors from complaining about space-tab.
17011: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17012: # splitting by setting IFS to empty value.)
17013: IFS=" "" $as_nl"
17014:
17015: # Find who we are. Look in the path if we contain no directory separator.
17016: as_myself=
17017: case $0 in #((
17018: *[\\/]* ) as_myself=$0 ;;
17019: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17020: for as_dir in $PATH
17021: do
17022: IFS=$as_save_IFS
17023: test -z "$as_dir" && as_dir=.
17024: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17025: done
17026: IFS=$as_save_IFS
17027:
17028: ;;
17029: esac
17030: # We did not find ourselves, most probably we were run as `sh COMMAND'
17031: # in which case we are not to be found in the path.
17032: if test "x$as_myself" = x; then
17033: as_myself=$0
17034: fi
17035: if test ! -f "$as_myself"; then
17036: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17037: exit 1
17038: fi
17039:
17040: # Unset variables that we do not need and which cause bugs (e.g. in
17041: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17042: # suppresses any "Segmentation fault" message there. '((' could
17043: # trigger a bug in pdksh 5.2.14.
17044: for as_var in BASH_ENV ENV MAIL MAILPATH
17045: do eval test x\${$as_var+set} = xset \
17046: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17047: done
1.8 moko 17048: PS1='$ '
17049: PS2='> '
17050: PS4='+ '
17051:
17052: # NLS nuisances.
1.22 moko 17053: LC_ALL=C
17054: export LC_ALL
17055: LANGUAGE=C
17056: export LANGUAGE
17057:
17058: # CDPATH.
17059: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17060:
17061:
17062: # as_fn_error STATUS ERROR [LINENO LOG_FD]
17063: # ----------------------------------------
17064: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17065: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17066: # script with STATUS, using 1 if that was 0.
17067: as_fn_error ()
17068: {
17069: as_status=$1; test $as_status -eq 0 && as_status=1
17070: if test "$4"; then
17071: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17072: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17073: fi
17074: $as_echo "$as_me: error: $2" >&2
17075: as_fn_exit $as_status
17076: } # as_fn_error
17077:
17078:
17079: # as_fn_set_status STATUS
17080: # -----------------------
17081: # Set $? to STATUS, without forking.
17082: as_fn_set_status ()
17083: {
17084: return $1
17085: } # as_fn_set_status
17086:
17087: # as_fn_exit STATUS
17088: # -----------------
17089: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17090: as_fn_exit ()
17091: {
17092: set +e
17093: as_fn_set_status $1
17094: exit $1
17095: } # as_fn_exit
17096:
17097: # as_fn_unset VAR
17098: # ---------------
17099: # Portably unset VAR.
17100: as_fn_unset ()
17101: {
17102: { eval $1=; unset $1;}
17103: }
17104: as_unset=as_fn_unset
17105: # as_fn_append VAR VALUE
17106: # ----------------------
17107: # Append the text in VALUE to the end of the definition contained in VAR. Take
17108: # advantage of any shell optimizations that allow amortized linear growth over
17109: # repeated appends, instead of the typical quadratic growth present in naive
17110: # implementations.
17111: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17112: eval 'as_fn_append ()
17113: {
17114: eval $1+=\$2
17115: }'
17116: else
17117: as_fn_append ()
17118: {
17119: eval $1=\$$1\$2
17120: }
17121: fi # as_fn_append
17122:
17123: # as_fn_arith ARG...
17124: # ------------------
17125: # Perform arithmetic evaluation on the ARGs, and store the result in the
17126: # global $as_val. Take advantage of shells that can avoid forks. The arguments
17127: # must be portable across $(()) and expr.
17128: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17129: eval 'as_fn_arith ()
17130: {
17131: as_val=$(( $* ))
17132: }'
17133: else
17134: as_fn_arith ()
17135: {
17136: as_val=`expr "$@" || test $? -eq 1`
17137: }
17138: fi # as_fn_arith
17139:
1.8 moko 17140:
1.22 moko 17141: if expr a : '\(a\)' >/dev/null 2>&1 &&
17142: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.8 moko 17143: as_expr=expr
17144: else
17145: as_expr=false
17146: fi
17147:
1.22 moko 17148: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.8 moko 17149: as_basename=basename
17150: else
17151: as_basename=false
17152: fi
17153:
1.22 moko 17154: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17155: as_dirname=dirname
17156: else
17157: as_dirname=false
17158: fi
1.8 moko 17159:
1.22 moko 17160: as_me=`$as_basename -- "$0" ||
1.8 moko 17161: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17162: X"$0" : 'X\(//\)$' \| \
1.22 moko 17163: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17164: $as_echo X/"$0" |
17165: sed '/^.*\/\([^/][^/]*\)\/*$/{
17166: s//\1/
17167: q
17168: }
17169: /^X\/\(\/\/\)$/{
17170: s//\1/
17171: q
17172: }
17173: /^X\/\(\/\).*/{
17174: s//\1/
17175: q
17176: }
17177: s/.*/./; q'`
1.11 moko 17178:
1.8 moko 17179: # Avoid depending upon Character Ranges.
17180: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17181: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17182: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17183: as_cr_digits='0123456789'
17184: as_cr_alnum=$as_cr_Letters$as_cr_digits
17185:
1.22 moko 17186: ECHO_C= ECHO_N= ECHO_T=
17187: case `echo -n x` in #(((((
17188: -n*)
17189: case `echo 'xy\c'` in
17190: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17191: xy) ECHO_C='\c';;
17192: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17193: ECHO_T=' ';;
17194: esac;;
17195: *)
17196: ECHO_N='-n';;
1.8 moko 17197: esac
17198:
1.22 moko 17199: rm -f conf$$ conf$$.exe conf$$.file
17200: if test -d conf$$.dir; then
17201: rm -f conf$$.dir/conf$$.file
1.8 moko 17202: else
1.22 moko 17203: rm -f conf$$.dir
17204: mkdir conf$$.dir 2>/dev/null
1.8 moko 17205: fi
1.22 moko 17206: if (echo >conf$$.file) 2>/dev/null; then
17207: if ln -s conf$$.file conf$$ 2>/dev/null; then
17208: as_ln_s='ln -s'
17209: # ... but there are two gotchas:
17210: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17211: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.25 moko 17212: # In both cases, we have to default to `cp -pR'.
1.22 moko 17213: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.25 moko 17214: as_ln_s='cp -pR'
1.22 moko 17215: elif ln conf$$.file conf$$ 2>/dev/null; then
17216: as_ln_s=ln
17217: else
1.25 moko 17218: as_ln_s='cp -pR'
1.8 moko 17219: fi
17220: else
1.25 moko 17221: as_ln_s='cp -pR'
1.8 moko 17222: fi
1.22 moko 17223: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17224: rmdir conf$$.dir 2>/dev/null
17225:
17226:
17227: # as_fn_mkdir_p
17228: # -------------
17229: # Create "$as_dir" as a directory, including parents if necessary.
17230: as_fn_mkdir_p ()
17231: {
17232:
17233: case $as_dir in #(
17234: -*) as_dir=./$as_dir;;
17235: esac
17236: test -d "$as_dir" || eval $as_mkdir_p || {
17237: as_dirs=
17238: while :; do
17239: case $as_dir in #(
17240: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17241: *) as_qdir=$as_dir;;
17242: esac
17243: as_dirs="'$as_qdir' $as_dirs"
17244: as_dir=`$as_dirname -- "$as_dir" ||
17245: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17246: X"$as_dir" : 'X\(//\)[^/]' \| \
17247: X"$as_dir" : 'X\(//\)$' \| \
17248: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17249: $as_echo X"$as_dir" |
17250: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17251: s//\1/
17252: q
17253: }
17254: /^X\(\/\/\)[^/].*/{
17255: s//\1/
17256: q
17257: }
17258: /^X\(\/\/\)$/{
17259: s//\1/
17260: q
17261: }
17262: /^X\(\/\).*/{
17263: s//\1/
17264: q
17265: }
17266: s/.*/./; q'`
17267: test -d "$as_dir" && break
17268: done
17269: test -z "$as_dirs" || eval "mkdir $as_dirs"
17270: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17271:
1.8 moko 17272:
1.22 moko 17273: } # as_fn_mkdir_p
1.8 moko 17274: if mkdir -p . 2>/dev/null; then
1.22 moko 17275: as_mkdir_p='mkdir -p "$as_dir"'
1.8 moko 17276: else
17277: test -d ./-p && rmdir ./-p
17278: as_mkdir_p=false
17279: fi
17280:
1.25 moko 17281:
17282: # as_fn_executable_p FILE
17283: # -----------------------
17284: # Test if FILE is an executable regular file.
17285: as_fn_executable_p ()
17286: {
17287: test -f "$1" && test -x "$1"
17288: } # as_fn_executable_p
17289: as_test_x='test -x'
17290: as_executable_p=as_fn_executable_p
1.8 moko 17291:
17292: # Sed expression to map a string onto a valid CPP name.
17293: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17294:
17295: # Sed expression to map a string onto a valid variable name.
17296: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17297:
17298:
17299: exec 6>&1
1.22 moko 17300: ## ----------------------------------- ##
17301: ## Main body of $CONFIG_STATUS script. ##
17302: ## ----------------------------------- ##
17303: _ASEOF
17304: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.8 moko 17305:
1.22 moko 17306: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17307: # Save the log message, to keep $0 and so on meaningful, and to
1.8 moko 17308: # report actual input values of CONFIG_FILES etc. instead of their
1.22 moko 17309: # values after options handling.
17310: ac_log="
1.31 ! moko 17311: This file was extended by parser3sqlite $as_me 10.5, which was
1.25 moko 17312: generated by GNU Autoconf 2.69. Invocation command line was
1.8 moko 17313:
17314: CONFIG_FILES = $CONFIG_FILES
17315: CONFIG_HEADERS = $CONFIG_HEADERS
17316: CONFIG_LINKS = $CONFIG_LINKS
17317: CONFIG_COMMANDS = $CONFIG_COMMANDS
17318: $ $0 $@
17319:
1.22 moko 17320: on `(hostname || uname -n) 2>/dev/null | sed 1q`
17321: "
17322:
1.8 moko 17323: _ACEOF
17324:
1.22 moko 17325: case $ac_config_files in *"
17326: "*) set x $ac_config_files; shift; ac_config_files=$*;;
17327: esac
1.8 moko 17328:
1.22 moko 17329: case $ac_config_headers in *"
17330: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17331: esac
1.8 moko 17332:
17333:
1.22 moko 17334: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17335: # Files that config.status was made for.
17336: config_files="$ac_config_files"
17337: config_headers="$ac_config_headers"
17338: config_commands="$ac_config_commands"
1.8 moko 17339:
1.22 moko 17340: _ACEOF
1.8 moko 17341:
1.22 moko 17342: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.8 moko 17343: ac_cs_usage="\
1.22 moko 17344: \`$as_me' instantiates files and other configuration actions
17345: from templates according to the current configuration. Unless the files
17346: and actions are specified as TAGs, all are instantiated by default.
1.8 moko 17347:
1.22 moko 17348: Usage: $0 [OPTION]... [TAG]...
1.8 moko 17349:
17350: -h, --help print this help, then exit
1.22 moko 17351: -V, --version print version number and configuration settings, then exit
17352: --config print configuration, then exit
17353: -q, --quiet, --silent
17354: do not print progress messages
1.8 moko 17355: -d, --debug don't remove temporary files
17356: --recheck update $as_me by reconfiguring in the same conditions
1.22 moko 17357: --file=FILE[:TEMPLATE]
17358: instantiate the configuration file FILE
17359: --header=FILE[:TEMPLATE]
17360: instantiate the configuration header FILE
1.8 moko 17361:
17362: Configuration files:
17363: $config_files
17364:
17365: Configuration headers:
17366: $config_headers
17367:
17368: Configuration commands:
17369: $config_commands
17370:
1.22 moko 17371: Report bugs to the package provider."
17372:
1.11 moko 17373: _ACEOF
1.22 moko 17374: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17375: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.8 moko 17376: ac_cs_version="\\
1.31 ! moko 17377: parser3sqlite config.status 10.5
1.25 moko 17378: configured by $0, generated by GNU Autoconf 2.69,
1.22 moko 17379: with options \\"\$ac_cs_config\\"
1.8 moko 17380:
1.25 moko 17381: Copyright (C) 2012 Free Software Foundation, Inc.
1.8 moko 17382: This config.status script is free software; the Free Software Foundation
17383: gives unlimited permission to copy, distribute and modify it."
1.22 moko 17384:
17385: ac_pwd='$ac_pwd'
17386: srcdir='$srcdir'
17387: INSTALL='$INSTALL'
17388: MKDIR_P='$MKDIR_P'
17389: AWK='$AWK'
17390: test -n "\$AWK" || AWK=awk
1.8 moko 17391: _ACEOF
17392:
1.22 moko 17393: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17394: # The default lists apply if the user does not specify any file.
1.8 moko 17395: ac_need_defaults=:
17396: while test $# != 0
17397: do
17398: case $1 in
1.22 moko 17399: --*=?*)
17400: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17401: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17402: ac_shift=:
17403: ;;
17404: --*=)
17405: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17406: ac_optarg=
1.8 moko 17407: ac_shift=:
17408: ;;
1.22 moko 17409: *)
1.8 moko 17410: ac_option=$1
17411: ac_optarg=$2
17412: ac_shift=shift
17413: ;;
17414: esac
17415:
17416: case $ac_option in
17417: # Handling of the options.
17418: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17419: ac_cs_recheck=: ;;
1.22 moko 17420: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17421: $as_echo "$ac_cs_version"; exit ;;
17422: --config | --confi | --conf | --con | --co | --c )
17423: $as_echo "$ac_cs_config"; exit ;;
17424: --debug | --debu | --deb | --de | --d | -d )
1.8 moko 17425: debug=: ;;
17426: --file | --fil | --fi | --f )
17427: $ac_shift
1.22 moko 17428: case $ac_optarg in
17429: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17430: '') as_fn_error $? "missing file argument" ;;
17431: esac
17432: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.8 moko 17433: ac_need_defaults=false;;
17434: --header | --heade | --head | --hea )
17435: $ac_shift
1.22 moko 17436: case $ac_optarg in
17437: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17438: esac
17439: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.8 moko 17440: ac_need_defaults=false;;
1.22 moko 17441: --he | --h)
17442: # Conflict between --help and --header
17443: as_fn_error $? "ambiguous option: \`$1'
17444: Try \`$0 --help' for more information.";;
17445: --help | --hel | -h )
17446: $as_echo "$ac_cs_usage"; exit ;;
1.8 moko 17447: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17448: | -silent | --silent | --silen | --sile | --sil | --si | --s)
17449: ac_cs_silent=: ;;
17450:
17451: # This is an error.
1.22 moko 17452: -*) as_fn_error $? "unrecognized option: \`$1'
17453: Try \`$0 --help' for more information." ;;
1.8 moko 17454:
1.22 moko 17455: *) as_fn_append ac_config_targets " $1"
17456: ac_need_defaults=false ;;
1.8 moko 17457:
17458: esac
17459: shift
17460: done
17461:
17462: ac_configure_extra_args=
17463:
17464: if $ac_cs_silent; then
17465: exec 6>/dev/null
17466: ac_configure_extra_args="$ac_configure_extra_args --silent"
1.10 moko 17467: fi
17468:
17469: _ACEOF
1.22 moko 17470: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.10 moko 17471: if \$ac_cs_recheck; then
1.25 moko 17472: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.22 moko 17473: shift
17474: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17475: CONFIG_SHELL='$SHELL'
17476: export CONFIG_SHELL
17477: exec "\$@"
1.10 moko 17478: fi
17479:
17480: _ACEOF
1.22 moko 17481: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17482: exec 5>>config.log
17483: {
17484: echo
17485: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17486: ## Running $as_me. ##
17487: _ASBOX
17488: $as_echo "$ac_log"
17489: } >&5
17490:
17491: _ACEOF
17492: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.8 moko 17493: #
1.22 moko 17494: # INIT-COMMANDS
1.8 moko 17495: #
1.30 moko 17496: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1.8 moko 17497:
17498:
17499: # The HP-UX ksh and POSIX shell print the target directory to stdout
17500: # if CDPATH is set.
17501: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17502:
17503: sed_quote_subst='$sed_quote_subst'
17504: double_quote_subst='$double_quote_subst'
17505: delay_variable_subst='$delay_variable_subst'
17506: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17507: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.20 moko 17508: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.13 moko 17509: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17510: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17511: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.8 moko 17512: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17513: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17514: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17515: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17516: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17517: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17518: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17519: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17520: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17521: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17522: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17523: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17524: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17525: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17526: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17527: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17528: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17529: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17530: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17531: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17532: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17533: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17534: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17535: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17536: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17537: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17538: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17539: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17540: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17541: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17542: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17543: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17544: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17545: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17546: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17547: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17548: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17549: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17550: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17551: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17552: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17553: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17554: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17555: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17556: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17557: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17558: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17559: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17560: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17561: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17562: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17563: 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"`'
17564: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17565: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17566: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17567: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17568: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17569: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17570: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17571: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17572: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17573: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17574: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17575: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17576: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17577: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17578: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17579: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17580: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17581: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17582: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17583: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17584: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17585: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17586: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17587: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17588: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17589: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17590: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17591: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17592: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17593: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17594: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17595: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17596: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17597: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17598: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17599: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17600: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17601: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17602: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17603: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17604: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17605: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17606: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17607: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17608: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17609: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17610: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17611: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17612: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17613: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17614: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17615: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17616: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17617: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17618: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17619: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17620: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17621: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17622: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17623: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17624: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17625: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17626: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17627: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17628: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17629: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17630: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17631: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17632: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17633: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17634: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17635: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17636: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17637: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17638: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17639: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17640: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17641: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17642: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17643: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17644: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17645: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17646: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17647: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17648: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17649: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17650: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17651: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17652: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17653: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17654: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17655: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17656: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17657: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17658: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17659: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17660: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17661: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17662: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17663: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17664: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17665: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17666: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17667: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17668: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17669: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17670: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17671: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17672: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17673: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17674: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17675: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17676: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17677: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17678: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17679: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17680: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17681: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17682: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17683: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17684: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17685: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17686: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17687: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17688: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17689: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17690: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17691:
17692: LTCC='$LTCC'
17693: LTCFLAGS='$LTCFLAGS'
17694: compiler='$compiler_DEFAULT'
17695:
17696: # A function that is used when there is no print builtin or printf.
17697: func_fallback_echo ()
17698: {
17699: eval 'cat <<_LTECHO_EOF
17700: \$1
17701: _LTECHO_EOF'
17702: }
17703:
17704: # Quote evaled strings.
1.13 moko 17705: for var in AS \
17706: DLLTOOL \
17707: OBJDUMP \
17708: SHELL \
1.8 moko 17709: ECHO \
17710: PATH_SEPARATOR \
17711: SED \
17712: GREP \
17713: EGREP \
17714: FGREP \
17715: LD \
17716: NM \
17717: LN_S \
17718: lt_SP2NL \
17719: lt_NL2SP \
17720: reload_flag \
17721: deplibs_check_method \
17722: file_magic_cmd \
17723: file_magic_glob \
17724: want_nocaseglob \
17725: sharedlib_from_linklib_cmd \
17726: AR \
17727: AR_FLAGS \
17728: archiver_list_spec \
17729: STRIP \
17730: RANLIB \
17731: CC \
17732: CFLAGS \
17733: compiler \
17734: lt_cv_sys_global_symbol_pipe \
17735: lt_cv_sys_global_symbol_to_cdecl \
17736: lt_cv_sys_global_symbol_to_c_name_address \
17737: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17738: nm_file_list_spec \
17739: lt_prog_compiler_no_builtin_flag \
17740: lt_prog_compiler_pic \
17741: lt_prog_compiler_wl \
17742: lt_prog_compiler_static \
17743: lt_cv_prog_compiler_c_o \
17744: need_locks \
17745: MANIFEST_TOOL \
17746: DSYMUTIL \
17747: NMEDIT \
17748: LIPO \
17749: OTOOL \
17750: OTOOL64 \
17751: shrext_cmds \
17752: export_dynamic_flag_spec \
17753: whole_archive_flag_spec \
17754: compiler_needs_object \
17755: with_gnu_ld \
17756: allow_undefined_flag \
17757: no_undefined_flag \
17758: hardcode_libdir_flag_spec \
17759: hardcode_libdir_separator \
17760: exclude_expsyms \
17761: include_expsyms \
17762: file_list_spec \
17763: variables_saved_for_relink \
17764: libname_spec \
17765: library_names_spec \
17766: soname_spec \
17767: install_override_mode \
17768: finish_eval \
17769: old_striplib \
17770: striplib \
17771: compiler_lib_search_dirs \
17772: predep_objects \
17773: postdep_objects \
17774: predeps \
17775: postdeps \
17776: compiler_lib_search_path \
17777: LD_CXX \
17778: reload_flag_CXX \
17779: compiler_CXX \
17780: lt_prog_compiler_no_builtin_flag_CXX \
17781: lt_prog_compiler_pic_CXX \
17782: lt_prog_compiler_wl_CXX \
17783: lt_prog_compiler_static_CXX \
17784: lt_cv_prog_compiler_c_o_CXX \
17785: export_dynamic_flag_spec_CXX \
17786: whole_archive_flag_spec_CXX \
17787: compiler_needs_object_CXX \
17788: with_gnu_ld_CXX \
17789: allow_undefined_flag_CXX \
17790: no_undefined_flag_CXX \
17791: hardcode_libdir_flag_spec_CXX \
17792: hardcode_libdir_separator_CXX \
17793: exclude_expsyms_CXX \
17794: include_expsyms_CXX \
17795: file_list_spec_CXX \
17796: compiler_lib_search_dirs_CXX \
17797: predep_objects_CXX \
17798: postdep_objects_CXX \
17799: predeps_CXX \
17800: postdeps_CXX \
17801: compiler_lib_search_path_CXX; do
17802: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17803: *[\\\\\\\`\\"\\\$]*)
17804: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17805: ;;
17806: *)
17807: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17808: ;;
17809: esac
17810: done
17811:
17812: # Double-quote double-evaled strings.
17813: for var in reload_cmds \
17814: old_postinstall_cmds \
17815: old_postuninstall_cmds \
17816: old_archive_cmds \
17817: extract_expsyms_cmds \
17818: old_archive_from_new_cmds \
17819: old_archive_from_expsyms_cmds \
17820: archive_cmds \
17821: archive_expsym_cmds \
17822: module_cmds \
17823: module_expsym_cmds \
17824: export_symbols_cmds \
17825: prelink_cmds \
17826: postlink_cmds \
17827: postinstall_cmds \
17828: postuninstall_cmds \
17829: finish_cmds \
17830: sys_lib_search_path_spec \
17831: sys_lib_dlsearch_path_spec \
17832: reload_cmds_CXX \
17833: old_archive_cmds_CXX \
17834: old_archive_from_new_cmds_CXX \
17835: old_archive_from_expsyms_cmds_CXX \
17836: archive_cmds_CXX \
17837: archive_expsym_cmds_CXX \
17838: module_cmds_CXX \
17839: module_expsym_cmds_CXX \
17840: export_symbols_cmds_CXX \
17841: prelink_cmds_CXX \
17842: postlink_cmds_CXX; do
17843: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17844: *[\\\\\\\`\\"\\\$]*)
17845: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17846: ;;
17847: *)
17848: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17849: ;;
17850: esac
17851: done
17852:
17853: ac_aux_dir='$ac_aux_dir'
17854: xsi_shell='$xsi_shell'
17855: lt_shell_append='$lt_shell_append'
17856:
17857: # See if we are running on zsh, and set the options which allow our
17858: # commands through without removal of \ escapes INIT.
17859: if test -n "\${ZSH_VERSION+set}" ; then
17860: setopt NO_GLOB_SUBST
17861: fi
17862:
17863:
17864: PACKAGE='$PACKAGE'
17865: VERSION='$VERSION'
17866: TIMESTAMP='$TIMESTAMP'
17867: RM='$RM'
17868: ofile='$ofile'
17869:
17870:
17871:
17872:
17873:
17874:
17875: _ACEOF
17876:
1.22 moko 17877: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.8 moko 17878:
1.22 moko 17879: # Handling of arguments.
1.8 moko 17880: for ac_config_target in $ac_config_targets
17881: do
1.22 moko 17882: case $ac_config_target in
17883: "config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
17884: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17885: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17886: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17887:
17888: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.8 moko 17889: esac
17890: done
17891:
1.22 moko 17892:
1.8 moko 17893: # If the user did not use the arguments to specify the items to instantiate,
17894: # then the envvar interface is used. Set only those that are not.
17895: # We use the long form for the default assignment because of an extremely
17896: # bizarre bug on SunOS 4.1.3.
17897: if $ac_need_defaults; then
17898: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17899: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17900: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17901: fi
17902:
17903: # Have a temporary directory for convenience. Make it in the build tree
1.22 moko 17904: # simply because there is no reason against having it here, and in addition,
1.8 moko 17905: # creating and moving files from /tmp can sometimes cause problems.
1.22 moko 17906: # Hook for its removal unless debugging.
17907: # Note that there is a small window in which the directory will not be cleaned:
17908: # after its creation but before its name has been assigned to `$tmp'.
1.8 moko 17909: $debug ||
17910: {
1.22 moko 17911: tmp= ac_tmp=
17912: trap 'exit_status=$?
17913: : "${ac_tmp:=$tmp}"
17914: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17915: ' 0
17916: trap 'as_fn_exit 1' 1 2 13 15
1.8 moko 17917: }
17918: # Create a (secure) tmp directory for tmp files.
17919:
17920: {
1.22 moko 17921: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17922: test -d "$tmp"
1.8 moko 17923: } ||
17924: {
1.22 moko 17925: tmp=./conf$$-$RANDOM
17926: (umask 077 && mkdir "$tmp")
17927: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17928: ac_tmp=$tmp
17929:
17930: # Set up the scripts for CONFIG_FILES section.
17931: # No need to generate them if there are no CONFIG_FILES.
17932: # This happens for instance with `./config.status config.h'.
17933: if test -n "$CONFIG_FILES"; then
17934:
17935:
17936: ac_cr=`echo X | tr X '\015'`
17937: # On cygwin, bash can eat \r inside `` if the user requested igncr.
17938: # But we know of no other shell where ac_cr would be empty at this
17939: # point, so we can use a bashism as a fallback.
17940: if test "x$ac_cr" = x; then
17941: eval ac_cr=\$\'\\r\'
17942: fi
17943: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17944: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17945: ac_cs_awk_cr='\\r'
17946: else
17947: ac_cs_awk_cr=$ac_cr
17948: fi
17949:
17950: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17951: _ACEOF
17952:
17953:
17954: {
17955: echo "cat >conf$$subs.awk <<_ACEOF" &&
17956: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17957: echo "_ACEOF"
17958: } >conf$$subs.sh ||
17959: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17960: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17961: ac_delim='%!_!# '
17962: for ac_last_try in false false false false false :; do
17963: . ./conf$$subs.sh ||
17964: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17965:
17966: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17967: if test $ac_delim_n = $ac_delim_num; then
17968: break
17969: elif $ac_last_try; then
17970: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17971: else
17972: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17973: fi
17974: done
17975: rm -f conf$$subs.sh
17976:
17977: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17978: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17979: _ACEOF
17980: sed -n '
17981: h
17982: s/^/S["/; s/!.*/"]=/
17983: p
17984: g
17985: s/^[^!]*!//
17986: :repl
17987: t repl
17988: s/'"$ac_delim"'$//
17989: t delim
17990: :nl
17991: h
17992: s/\(.\{148\}\)..*/\1/
17993: t more1
17994: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17995: p
17996: n
17997: b repl
17998: :more1
17999: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18000: p
18001: g
18002: s/.\{148\}//
18003: t nl
18004: :delim
18005: h
18006: s/\(.\{148\}\)..*/\1/
18007: t more2
18008: s/["\\]/\\&/g; s/^/"/; s/$/"/
18009: p
18010: b
18011: :more2
18012: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18013: p
18014: g
18015: s/.\{148\}//
18016: t delim
18017: ' <conf$$subs.awk | sed '
18018: /^[^""]/{
18019: N
18020: s/\n//
18021: }
18022: ' >>$CONFIG_STATUS || ac_write_fail=1
18023: rm -f conf$$subs.awk
18024: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18025: _ACAWK
18026: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18027: for (key in S) S_is_set[key] = 1
18028: FS = ""
18029:
18030: }
1.8 moko 18031: {
1.22 moko 18032: line = $ 0
18033: nfields = split(line, field, "@")
18034: substed = 0
18035: len = length(field[1])
18036: for (i = 2; i < nfields; i++) {
18037: key = field[i]
18038: keylen = length(key)
18039: if (S_is_set[key]) {
18040: value = S[key]
18041: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18042: len += length(value) + length(field[++i])
18043: substed = 1
18044: } else
18045: len += 1 + keylen
18046: }
18047:
18048: print line
1.8 moko 18049: }
18050:
1.22 moko 18051: _ACAWK
18052: _ACEOF
18053: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18054: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18055: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18056: else
18057: cat
18058: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18059: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.8 moko 18060: _ACEOF
18061:
1.22 moko 18062: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18063: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18064: # trailing colons and then remove the whole line if VPATH becomes empty
18065: # (actually we leave an empty line to preserve line numbers).
18066: if test "x$srcdir" = x.; then
18067: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18068: h
18069: s///
18070: s/^/:/
18071: s/[ ]*$/:/
18072: s/:\$(srcdir):/:/g
18073: s/:\${srcdir}:/:/g
18074: s/:@srcdir@:/:/g
18075: s/^:*//
18076: s/:*$//
18077: x
18078: s/\(=[ ]*\).*/\1/
18079: G
18080: s/\n//
18081: s/^[^=]*=[ ]*$//
18082: }'
18083: fi
1.8 moko 18084:
1.22 moko 18085: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18086: fi # test -n "$CONFIG_FILES"
1.8 moko 18087:
1.22 moko 18088: # Set up the scripts for CONFIG_HEADERS section.
18089: # No need to generate them if there are no CONFIG_HEADERS.
18090: # This happens for instance with `./config.status Makefile'.
18091: if test -n "$CONFIG_HEADERS"; then
18092: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18093: BEGIN {
18094: _ACEOF
18095:
18096: # Transform confdefs.h into an awk script `defines.awk', embedded as
18097: # here-document in config.status, that substitutes the proper values into
18098: # config.h.in to produce config.h.
18099:
18100: # Create a delimiter string that does not exist in confdefs.h, to ease
18101: # handling of long lines.
18102: ac_delim='%!_!# '
18103: for ac_last_try in false false :; do
18104: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18105: if test -z "$ac_tt"; then
18106: break
18107: elif $ac_last_try; then
18108: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18109: else
18110: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.8 moko 18111: fi
1.22 moko 18112: done
1.8 moko 18113:
1.22 moko 18114: # For the awk script, D is an array of macro values keyed by name,
18115: # likewise P contains macro parameters if any. Preserve backslash
18116: # newline sequences.
18117:
18118: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18119: sed -n '
18120: s/.\{148\}/&'"$ac_delim"'/g
18121: t rset
18122: :rset
18123: s/^[ ]*#[ ]*define[ ][ ]*/ /
18124: t def
18125: d
18126: :def
18127: s/\\$//
18128: t bsnl
18129: s/["\\]/\\&/g
18130: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18131: D["\1"]=" \3"/p
18132: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18133: d
18134: :bsnl
18135: s/["\\]/\\&/g
18136: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18137: D["\1"]=" \3\\\\\\n"\\/p
18138: t cont
18139: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18140: t cont
18141: d
18142: :cont
18143: n
18144: s/.\{148\}/&'"$ac_delim"'/g
18145: t clear
18146: :clear
18147: s/\\$//
18148: t bsnlc
18149: s/["\\]/\\&/g; s/^/"/; s/$/"/p
18150: d
18151: :bsnlc
18152: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18153: b cont
18154: ' <confdefs.h | sed '
18155: s/'"$ac_delim"'/"\\\
18156: "/g' >>$CONFIG_STATUS || ac_write_fail=1
18157:
18158: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18159: for (key in D) D_is_set[key] = 1
18160: FS = ""
18161: }
18162: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18163: line = \$ 0
18164: split(line, arg, " ")
18165: if (arg[1] == "#") {
18166: defundef = arg[2]
18167: mac1 = arg[3]
18168: } else {
18169: defundef = substr(arg[1], 2)
18170: mac1 = arg[2]
18171: }
18172: split(mac1, mac2, "(") #)
18173: macro = mac2[1]
18174: prefix = substr(line, 1, index(line, defundef) - 1)
18175: if (D_is_set[macro]) {
18176: # Preserve the white space surrounding the "#".
18177: print prefix "define", macro P[macro] D[macro]
18178: next
18179: } else {
18180: # Replace #undef with comments. This is necessary, for example,
18181: # in the case of _POSIX_SOURCE, which is predefined and required
18182: # on some systems where configure will not decide to define it.
18183: if (defundef == "undef") {
18184: print "/*", prefix defundef, macro, "*/"
18185: next
18186: }
18187: }
18188: }
18189: { print }
18190: _ACAWK
1.8 moko 18191: _ACEOF
1.22 moko 18192: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18193: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18194: fi # test -n "$CONFIG_HEADERS"
18195:
18196:
18197: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18198: shift
18199: for ac_tag
18200: do
18201: case $ac_tag in
18202: :[FHLC]) ac_mode=$ac_tag; continue;;
18203: esac
18204: case $ac_mode$ac_tag in
18205: :[FHL]*:*);;
18206: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18207: :[FH]-) ac_tag=-:-;;
18208: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18209: esac
18210: ac_save_IFS=$IFS
18211: IFS=:
18212: set x $ac_tag
18213: IFS=$ac_save_IFS
18214: shift
18215: ac_file=$1
18216: shift
18217:
18218: case $ac_mode in
18219: :L) ac_source=$1;;
18220: :[FH])
18221: ac_file_inputs=
18222: for ac_f
18223: do
18224: case $ac_f in
18225: -) ac_f="$ac_tmp/stdin";;
18226: *) # Look for the file first in the build tree, then in the source tree
18227: # (if the path is not absolute). The absolute path cannot be DOS-style,
18228: # because $ac_f cannot contain `:'.
18229: test -f "$ac_f" ||
18230: case $ac_f in
18231: [\\/$]*) false;;
18232: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18233: esac ||
18234: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18235: esac
18236: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18237: as_fn_append ac_file_inputs " '$ac_f'"
18238: done
18239:
18240: # Let's still pretend it is `configure' which instantiates (i.e., don't
18241: # use $as_me), people would be surprised to read:
18242: # /* config.h. Generated by config.status. */
18243: configure_input='Generated from '`
18244: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18245: `' by configure.'
18246: if test x"$ac_file" != x-; then
18247: configure_input="$ac_file. $configure_input"
18248: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18249: $as_echo "$as_me: creating $ac_file" >&6;}
18250: fi
18251: # Neutralize special characters interpreted by sed in replacement strings.
18252: case $configure_input in #(
18253: *\&* | *\|* | *\\* )
18254: ac_sed_conf_input=`$as_echo "$configure_input" |
18255: sed 's/[\\\\&|]/\\\\&/g'`;; #(
18256: *) ac_sed_conf_input=$configure_input;;
18257: esac
18258:
18259: case $ac_tag in
18260: *:-:* | *:-) cat >"$ac_tmp/stdin" \
18261: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18262: esac
18263: ;;
1.8 moko 18264: esac
18265:
1.22 moko 18266: ac_dir=`$as_dirname -- "$ac_file" ||
1.8 moko 18267: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18268: X"$ac_file" : 'X\(//\)[^/]' \| \
18269: X"$ac_file" : 'X\(//\)$' \| \
1.22 moko 18270: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18271: $as_echo X"$ac_file" |
18272: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18273: s//\1/
18274: q
18275: }
18276: /^X\(\/\/\)[^/].*/{
18277: s//\1/
18278: q
18279: }
18280: /^X\(\/\/\)$/{
18281: s//\1/
18282: q
18283: }
18284: /^X\(\/\).*/{
18285: s//\1/
18286: q
18287: }
18288: s/.*/./; q'`
18289: as_dir="$ac_dir"; as_fn_mkdir_p
1.8 moko 18290: ac_builddir=.
18291:
1.22 moko 18292: case "$ac_dir" in
18293: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18294: *)
18295: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18296: # A ".." for each directory in $ac_dir_suffix.
18297: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18298: case $ac_top_builddir_sub in
18299: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18300: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18301: esac ;;
18302: esac
18303: ac_abs_top_builddir=$ac_pwd
18304: ac_abs_builddir=$ac_pwd$ac_dir_suffix
18305: # for backward compatibility:
18306: ac_top_builddir=$ac_top_build_prefix
1.8 moko 18307:
18308: case $srcdir in
1.22 moko 18309: .) # We are building in place.
1.8 moko 18310: ac_srcdir=.
1.22 moko 18311: ac_top_srcdir=$ac_top_builddir_sub
18312: ac_abs_top_srcdir=$ac_pwd ;;
18313: [\\/]* | ?:[\\/]* ) # Absolute name.
1.8 moko 18314: ac_srcdir=$srcdir$ac_dir_suffix;
1.22 moko 18315: ac_top_srcdir=$srcdir
18316: ac_abs_top_srcdir=$srcdir ;;
18317: *) # Relative name.
18318: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18319: ac_top_srcdir=$ac_top_build_prefix$srcdir
18320: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.8 moko 18321: esac
1.22 moko 18322: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.8 moko 18323:
18324:
1.22 moko 18325: case $ac_mode in
18326: :F)
18327: #
18328: # CONFIG_FILE
18329: #
1.8 moko 18330:
18331: case $INSTALL in
18332: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.22 moko 18333: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18334: esac
18335: ac_MKDIR_P=$MKDIR_P
18336: case $MKDIR_P in
18337: [\\/$]* | ?:[\\/]* ) ;;
18338: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1.8 moko 18339: esac
1.22 moko 18340: _ACEOF
1.8 moko 18341:
1.22 moko 18342: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18343: # If the template does not know about datarootdir, expand it.
18344: # FIXME: This hack should be removed a few years after 2.60.
18345: ac_datarootdir_hack=; ac_datarootdir_seen=
18346: ac_sed_dataroot='
18347: /datarootdir/ {
18348: p
18349: q
18350: }
18351: /@datadir@/p
18352: /@docdir@/p
18353: /@infodir@/p
18354: /@localedir@/p
18355: /@mandir@/p'
18356: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18357: *datarootdir*) ac_datarootdir_seen=yes;;
18358: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18359: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18360: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18361: _ACEOF
18362: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18363: ac_datarootdir_hack='
18364: s&@datadir@&$datadir&g
18365: s&@docdir@&$docdir&g
18366: s&@infodir@&$infodir&g
18367: s&@localedir@&$localedir&g
18368: s&@mandir@&$mandir&g
18369: s&\\\${datarootdir}&$datarootdir&g' ;;
18370: esac
18371: _ACEOF
1.11 moko 18372:
1.22 moko 18373: # Neutralize VPATH when `$srcdir' = `.'.
18374: # Shell code in configure.ac might set extrasub.
18375: # FIXME: do we really want to maintain this feature?
18376: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18377: ac_sed_extra="$ac_vpsub
1.8 moko 18378: $extrasub
18379: _ACEOF
1.22 moko 18380: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.8 moko 18381: :t
18382: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.22 moko 18383: s|@configure_input@|$ac_sed_conf_input|;t t
18384: s&@top_builddir@&$ac_top_builddir_sub&;t t
18385: s&@top_build_prefix@&$ac_top_build_prefix&;t t
18386: s&@srcdir@&$ac_srcdir&;t t
18387: s&@abs_srcdir@&$ac_abs_srcdir&;t t
18388: s&@top_srcdir@&$ac_top_srcdir&;t t
18389: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18390: s&@builddir@&$ac_builddir&;t t
18391: s&@abs_builddir@&$ac_abs_builddir&;t t
18392: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18393: s&@INSTALL@&$ac_INSTALL&;t t
18394: s&@MKDIR_P@&$ac_MKDIR_P&;t t
18395: $ac_datarootdir_hack
18396: "
18397: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18398: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18399:
18400: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18401: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18402: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18403: "$ac_tmp/out"`; test -z "$ac_out"; } &&
18404: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18405: which seems to be undefined. Please make sure it is defined" >&5
18406: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18407: which seems to be undefined. Please make sure it is defined" >&2;}
1.11 moko 18408:
1.22 moko 18409: rm -f "$ac_tmp/stdin"
1.8 moko 18410: case $ac_file in
1.22 moko 18411: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18412: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18413: esac \
18414: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18415: ;;
18416: :H)
18417: #
18418: # CONFIG_HEADER
18419: #
1.8 moko 18420: if test x"$ac_file" != x-; then
1.22 moko 18421: {
18422: $as_echo "/* $configure_input */" \
18423: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18424: } >"$ac_tmp/config.h" \
18425: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18426: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18427: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18428: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.8 moko 18429: else
1.22 moko 18430: rm -f "$ac_file"
18431: mv "$ac_tmp/config.h" "$ac_file" \
18432: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.8 moko 18433: fi
18434: else
1.22 moko 18435: $as_echo "/* $configure_input */" \
18436: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18437: || as_fn_error $? "could not create -" "$LINENO" 5
1.8 moko 18438: fi
1.22 moko 18439: # Compute "$ac_file"'s index in $config_headers.
18440: _am_arg="$ac_file"
1.8 moko 18441: _am_stamp_count=1
18442: for _am_header in $config_headers :; do
18443: case $_am_header in
1.22 moko 18444: $_am_arg | $_am_arg:* )
1.8 moko 18445: break ;;
18446: * )
18447: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18448: esac
18449: done
1.22 moko 18450: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18451: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18452: X"$_am_arg" : 'X\(//\)[^/]' \| \
18453: X"$_am_arg" : 'X\(//\)$' \| \
18454: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18455: $as_echo X"$_am_arg" |
18456: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18457: s//\1/
18458: q
18459: }
18460: /^X\(\/\/\)[^/].*/{
18461: s//\1/
18462: q
18463: }
18464: /^X\(\/\/\)$/{
18465: s//\1/
18466: q
18467: }
18468: /^X\(\/\).*/{
18469: s//\1/
18470: q
18471: }
18472: s/.*/./; q'`/stamp-h$_am_stamp_count
18473: ;;
1.11 moko 18474:
1.22 moko 18475: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18476: $as_echo "$as_me: executing $ac_file commands" >&6;}
18477: ;;
18478: esac
1.11 moko 18479:
18480:
1.22 moko 18481: case $ac_file$ac_mode in
18482: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.30 moko 18483: # Older Autoconf quotes --file arguments for eval, but not when files
1.22 moko 18484: # are listed without --file. Let's play safe and only enable the eval
18485: # if we detect the quoting.
1.30 moko 18486: # TODO: see whether this extra hack can be removed once we start
18487: # requiring Autoconf 2.70 or later.
18488: case $CONFIG_FILES in #(
18489: *\'*) :
18490: eval set x "$CONFIG_FILES" ;; #(
18491: *) :
18492: set x $CONFIG_FILES ;; #(
18493: *) :
18494: ;;
18495: esac
1.22 moko 18496: shift
1.30 moko 18497: # Used to flag and report bootstrapping failures.
18498: am_rc=0
18499: for am_mf
1.22 moko 18500: do
18501: # Strip MF so we end up with the name of the file.
1.30 moko 18502: am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18503: # Check whether this is an Automake generated Makefile which includes
18504: # dependency-tracking related rules and includes.
18505: # Grep'ing the whole file directly is not great: AIX grep has a line
1.22 moko 18506: # limit of 2048, but all sed's we know have understand at least 4000.
1.30 moko 18507: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18508: || continue
18509: am_dirpart=`$as_dirname -- "$am_mf" ||
18510: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18511: X"$am_mf" : 'X\(//\)[^/]' \| \
18512: X"$am_mf" : 'X\(//\)$' \| \
18513: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18514: $as_echo X"$am_mf" |
1.22 moko 18515: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18516: s//\1/
18517: q
18518: }
18519: /^X\(\/\/\)[^/].*/{
18520: s//\1/
18521: q
18522: }
18523: /^X\(\/\/\)$/{
18524: s//\1/
18525: q
18526: }
18527: /^X\(\/\).*/{
18528: s//\1/
18529: q
18530: }
18531: s/.*/./; q'`
1.30 moko 18532: am_filepart=`$as_basename -- "$am_mf" ||
18533: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18534: X"$am_mf" : 'X\(//\)$' \| \
18535: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18536: $as_echo X/"$am_mf" |
18537: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.22 moko 18538: s//\1/
18539: q
18540: }
1.30 moko 18541: /^X\/\(\/\/\)$/{
1.22 moko 18542: s//\1/
18543: q
18544: }
1.30 moko 18545: /^X\/\(\/\).*/{
1.22 moko 18546: s//\1/
18547: q
18548: }
18549: s/.*/./; q'`
1.30 moko 18550: { echo "$as_me:$LINENO: cd "$am_dirpart" \
18551: && sed -e '/# am--include-marker/d' "$am_filepart" \
18552: | $MAKE -f - am--depfiles" >&5
18553: (cd "$am_dirpart" \
18554: && sed -e '/# am--include-marker/d' "$am_filepart" \
18555: | $MAKE -f - am--depfiles) >&5 2>&5
18556: ac_status=$?
18557: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558: (exit $ac_status); } || am_rc=$?
1.8 moko 18559: done
1.30 moko 18560: if test $am_rc -ne 0; then
18561: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18562: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18563: as_fn_error $? "Something went wrong bootstrapping makefile fragments
18564: for automatic dependency tracking. Try re-running configure with the
18565: '--disable-dependency-tracking' option to at least be able to build
18566: the package (albeit without support for automatic dependency tracking).
18567: See \`config.log' for more details" "$LINENO" 5; }
18568: fi
18569: { am_dirpart=; unset am_dirpart;}
18570: { am_filepart=; unset am_filepart;}
18571: { am_mf=; unset am_mf;}
18572: { am_rc=; unset am_rc;}
18573: rm -f conftest-deps.mk
1.22 moko 18574: }
1.8 moko 18575: ;;
1.22 moko 18576: "libtool":C)
1.8 moko 18577:
18578: # See if we are running on zsh, and set the options which allow our
18579: # commands through without removal of \ escapes.
18580: if test -n "${ZSH_VERSION+set}" ; then
18581: setopt NO_GLOB_SUBST
18582: fi
18583:
18584: cfgfile="${ofile}T"
18585: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18586: $RM "$cfgfile"
18587:
18588: cat <<_LT_EOF >> "$cfgfile"
18589: #! $SHELL
18590:
18591: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18592: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18593: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18594: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18595: #
18596: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18597: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18598: # Foundation, Inc.
18599: # Written by Gordon Matzigkeit, 1996
18600: #
18601: # This file is part of GNU Libtool.
18602: #
18603: # GNU Libtool is free software; you can redistribute it and/or
18604: # modify it under the terms of the GNU General Public License as
18605: # published by the Free Software Foundation; either version 2 of
18606: # the License, or (at your option) any later version.
18607: #
18608: # As a special exception to the GNU General Public License,
18609: # if you distribute this file as part of a program or library that
18610: # is built using GNU Libtool, you may include this file under the
18611: # same distribution terms that you use for the rest of that program.
18612: #
18613: # GNU Libtool is distributed in the hope that it will be useful,
18614: # but WITHOUT ANY WARRANTY; without even the implied warranty of
18615: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18616: # GNU General Public License for more details.
18617: #
18618: # You should have received a copy of the GNU General Public License
18619: # along with GNU Libtool; see the file COPYING. If not, a copy
18620: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18621: # obtained by writing to the Free Software Foundation, Inc.,
18622: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18623:
18624:
18625: # The names of the tagged configurations supported by this script.
18626: available_tags="CXX "
18627:
18628: # ### BEGIN LIBTOOL CONFIG
18629:
18630: # Which release of libtool.m4 was used?
18631: macro_version=$macro_version
18632: macro_revision=$macro_revision
18633:
1.20 moko 18634: # Whether or not to build static libraries.
18635: build_old_libs=$enable_static
18636:
1.13 moko 18637: # Assembler program.
18638: AS=$lt_AS
18639:
18640: # DLL creation program.
18641: DLLTOOL=$lt_DLLTOOL
18642:
18643: # Object dumper program.
18644: OBJDUMP=$lt_OBJDUMP
18645:
1.8 moko 18646: # Whether or not to build shared libraries.
18647: build_libtool_libs=$enable_shared
18648:
18649: # What type of objects to build.
18650: pic_mode=$pic_mode
18651:
18652: # Whether or not to optimize for fast installation.
18653: fast_install=$enable_fast_install
18654:
18655: # Shell to use when invoking shell scripts.
18656: SHELL=$lt_SHELL
18657:
18658: # An echo program that protects backslashes.
18659: ECHO=$lt_ECHO
18660:
18661: # The PATH separator for the build system.
18662: PATH_SEPARATOR=$lt_PATH_SEPARATOR
18663:
18664: # The host system.
18665: host_alias=$host_alias
18666: host=$host
18667: host_os=$host_os
18668:
18669: # The build system.
18670: build_alias=$build_alias
18671: build=$build
18672: build_os=$build_os
18673:
18674: # A sed program that does not truncate output.
18675: SED=$lt_SED
18676:
18677: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18678: Xsed="\$SED -e 1s/^X//"
18679:
18680: # A grep program that handles long lines.
18681: GREP=$lt_GREP
18682:
18683: # An ERE matcher.
18684: EGREP=$lt_EGREP
18685:
18686: # A literal string matcher.
18687: FGREP=$lt_FGREP
18688:
18689: # A BSD- or MS-compatible name lister.
18690: NM=$lt_NM
18691:
18692: # Whether we need soft or hard links.
18693: LN_S=$lt_LN_S
18694:
18695: # What is the maximum length of a command?
18696: max_cmd_len=$max_cmd_len
18697:
18698: # Object file suffix (normally "o").
18699: objext=$ac_objext
18700:
18701: # Executable file suffix (normally "").
18702: exeext=$exeext
18703:
18704: # whether the shell understands "unset".
18705: lt_unset=$lt_unset
18706:
18707: # turn spaces into newlines.
18708: SP2NL=$lt_lt_SP2NL
18709:
18710: # turn newlines into spaces.
18711: NL2SP=$lt_lt_NL2SP
18712:
18713: # convert \$build file names to \$host format.
18714: to_host_file_cmd=$lt_cv_to_host_file_cmd
18715:
18716: # convert \$build files to toolchain format.
18717: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18718:
18719: # Method to check whether dependent libraries are shared objects.
18720: deplibs_check_method=$lt_deplibs_check_method
18721:
18722: # Command to use when deplibs_check_method = "file_magic".
18723: file_magic_cmd=$lt_file_magic_cmd
18724:
18725: # How to find potential files when deplibs_check_method = "file_magic".
18726: file_magic_glob=$lt_file_magic_glob
18727:
18728: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18729: want_nocaseglob=$lt_want_nocaseglob
18730:
18731: # Command to associate shared and link libraries.
18732: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18733:
18734: # The archiver.
18735: AR=$lt_AR
18736:
18737: # Flags to create an archive.
18738: AR_FLAGS=$lt_AR_FLAGS
18739:
18740: # How to feed a file listing to the archiver.
18741: archiver_list_spec=$lt_archiver_list_spec
18742:
18743: # A symbol stripping program.
18744: STRIP=$lt_STRIP
18745:
18746: # Commands used to install an old-style archive.
18747: RANLIB=$lt_RANLIB
18748: old_postinstall_cmds=$lt_old_postinstall_cmds
18749: old_postuninstall_cmds=$lt_old_postuninstall_cmds
18750:
18751: # Whether to use a lock for old archive extraction.
18752: lock_old_archive_extraction=$lock_old_archive_extraction
18753:
18754: # A C compiler.
18755: LTCC=$lt_CC
18756:
18757: # LTCC compiler flags.
18758: LTCFLAGS=$lt_CFLAGS
18759:
18760: # Take the output of nm and produce a listing of raw symbols and C names.
18761: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18762:
18763: # Transform the output of nm in a proper C declaration.
18764: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18765:
18766: # Transform the output of nm in a C name address pair.
18767: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18768:
18769: # Transform the output of nm in a C name address pair when lib prefix is needed.
18770: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18771:
18772: # Specify filename containing input files for \$NM.
18773: nm_file_list_spec=$lt_nm_file_list_spec
18774:
18775: # The root where to search for dependent libraries,and in which our libraries should be installed.
18776: lt_sysroot=$lt_sysroot
18777:
18778: # The name of the directory that contains temporary libtool files.
18779: objdir=$objdir
18780:
18781: # Used to examine libraries when file_magic_cmd begins with "file".
18782: MAGIC_CMD=$MAGIC_CMD
18783:
18784: # Must we lock files when doing compilation?
18785: need_locks=$lt_need_locks
18786:
18787: # Manifest tool.
18788: MANIFEST_TOOL=$lt_MANIFEST_TOOL
18789:
18790: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18791: DSYMUTIL=$lt_DSYMUTIL
18792:
18793: # Tool to change global to local symbols on Mac OS X.
18794: NMEDIT=$lt_NMEDIT
18795:
18796: # Tool to manipulate fat objects and archives on Mac OS X.
18797: LIPO=$lt_LIPO
18798:
18799: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18800: OTOOL=$lt_OTOOL
18801:
18802: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18803: OTOOL64=$lt_OTOOL64
18804:
18805: # Old archive suffix (normally "a").
18806: libext=$libext
18807:
18808: # Shared library suffix (normally ".so").
18809: shrext_cmds=$lt_shrext_cmds
18810:
18811: # The commands to extract the exported symbol list from a shared archive.
18812: extract_expsyms_cmds=$lt_extract_expsyms_cmds
18813:
18814: # Variables whose values should be saved in libtool wrapper scripts and
18815: # restored at link time.
18816: variables_saved_for_relink=$lt_variables_saved_for_relink
18817:
18818: # Do we need the "lib" prefix for modules?
18819: need_lib_prefix=$need_lib_prefix
18820:
18821: # Do we need a version for libraries?
18822: need_version=$need_version
18823:
18824: # Library versioning type.
18825: version_type=$version_type
18826:
18827: # Shared library runtime path variable.
18828: runpath_var=$runpath_var
18829:
18830: # Shared library path variable.
18831: shlibpath_var=$shlibpath_var
18832:
18833: # Is shlibpath searched before the hard-coded library search path?
18834: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18835:
18836: # Format of library name prefix.
18837: libname_spec=$lt_libname_spec
18838:
18839: # List of archive names. First name is the real one, the rest are links.
18840: # The last name is the one that the linker finds with -lNAME
18841: library_names_spec=$lt_library_names_spec
18842:
18843: # The coded name of the library, if different from the real name.
18844: soname_spec=$lt_soname_spec
18845:
18846: # Permission mode override for installation of shared libraries.
18847: install_override_mode=$lt_install_override_mode
18848:
18849: # Command to use after installation of a shared archive.
18850: postinstall_cmds=$lt_postinstall_cmds
18851:
18852: # Command to use after uninstallation of a shared archive.
18853: postuninstall_cmds=$lt_postuninstall_cmds
18854:
18855: # Commands used to finish a libtool library installation in a directory.
18856: finish_cmds=$lt_finish_cmds
18857:
18858: # As "finish_cmds", except a single script fragment to be evaled but
18859: # not shown.
18860: finish_eval=$lt_finish_eval
18861:
18862: # Whether we should hardcode library paths into libraries.
18863: hardcode_into_libs=$hardcode_into_libs
18864:
18865: # Compile-time system search path for libraries.
18866: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18867:
18868: # Run-time system search path for libraries.
18869: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18870:
18871: # Whether dlopen is supported.
18872: dlopen_support=$enable_dlopen
18873:
18874: # Whether dlopen of programs is supported.
18875: dlopen_self=$enable_dlopen_self
18876:
18877: # Whether dlopen of statically linked programs is supported.
18878: dlopen_self_static=$enable_dlopen_self_static
18879:
18880: # Commands to strip libraries.
18881: old_striplib=$lt_old_striplib
18882: striplib=$lt_striplib
18883:
18884:
18885: # The linker used to build libraries.
18886: LD=$lt_LD
18887:
18888: # How to create reloadable object files.
18889: reload_flag=$lt_reload_flag
18890: reload_cmds=$lt_reload_cmds
18891:
18892: # Commands used to build an old-style archive.
18893: old_archive_cmds=$lt_old_archive_cmds
18894:
18895: # A language specific compiler.
18896: CC=$lt_compiler
18897:
18898: # Is the compiler the GNU compiler?
18899: with_gcc=$GCC
18900:
18901: # Compiler flag to turn off builtin functions.
18902: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18903:
18904: # Additional compiler flags for building library objects.
18905: pic_flag=$lt_lt_prog_compiler_pic
18906:
18907: # How to pass a linker flag through the compiler.
18908: wl=$lt_lt_prog_compiler_wl
18909:
18910: # Compiler flag to prevent dynamic linking.
18911: link_static_flag=$lt_lt_prog_compiler_static
18912:
18913: # Does compiler simultaneously support -c and -o options?
18914: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18915:
18916: # Whether or not to add -lc for building shared libraries.
18917: build_libtool_need_lc=$archive_cmds_need_lc
18918:
18919: # Whether or not to disallow shared libs when runtime libs are static.
18920: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18921:
18922: # Compiler flag to allow reflexive dlopens.
18923: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18924:
18925: # Compiler flag to generate shared objects directly from archives.
18926: whole_archive_flag_spec=$lt_whole_archive_flag_spec
18927:
18928: # Whether the compiler copes with passing no objects directly.
18929: compiler_needs_object=$lt_compiler_needs_object
18930:
18931: # Create an old-style archive from a shared archive.
18932: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18933:
18934: # Create a temporary old-style archive to link instead of a shared archive.
18935: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18936:
18937: # Commands used to build a shared archive.
18938: archive_cmds=$lt_archive_cmds
18939: archive_expsym_cmds=$lt_archive_expsym_cmds
18940:
18941: # Commands used to build a loadable module if different from building
18942: # a shared archive.
18943: module_cmds=$lt_module_cmds
18944: module_expsym_cmds=$lt_module_expsym_cmds
18945:
18946: # Whether we are building with GNU ld or not.
18947: with_gnu_ld=$lt_with_gnu_ld
18948:
18949: # Flag that allows shared libraries with undefined symbols to be built.
18950: allow_undefined_flag=$lt_allow_undefined_flag
18951:
18952: # Flag that enforces no undefined symbols.
18953: no_undefined_flag=$lt_no_undefined_flag
18954:
18955: # Flag to hardcode \$libdir into a binary during linking.
18956: # This must work even if \$libdir does not exist
18957: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18958:
18959: # Whether we need a single "-rpath" flag with a separated argument.
18960: hardcode_libdir_separator=$lt_hardcode_libdir_separator
18961:
18962: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18963: # DIR into the resulting binary.
18964: hardcode_direct=$hardcode_direct
18965:
18966: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18967: # DIR into the resulting binary and the resulting library dependency is
18968: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18969: # library is relocated.
18970: hardcode_direct_absolute=$hardcode_direct_absolute
18971:
18972: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18973: # into the resulting binary.
18974: hardcode_minus_L=$hardcode_minus_L
18975:
18976: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18977: # into the resulting binary.
18978: hardcode_shlibpath_var=$hardcode_shlibpath_var
18979:
18980: # Set to "yes" if building a shared library automatically hardcodes DIR
18981: # into the library and all subsequent libraries and executables linked
18982: # against it.
18983: hardcode_automatic=$hardcode_automatic
18984:
18985: # Set to yes if linker adds runtime paths of dependent libraries
18986: # to runtime path list.
18987: inherit_rpath=$inherit_rpath
18988:
18989: # Whether libtool must link a program against all its dependency libraries.
18990: link_all_deplibs=$link_all_deplibs
18991:
18992: # Set to "yes" if exported symbols are required.
18993: always_export_symbols=$always_export_symbols
18994:
18995: # The commands to list exported symbols.
18996: export_symbols_cmds=$lt_export_symbols_cmds
18997:
18998: # Symbols that should not be listed in the preloaded symbols.
18999: exclude_expsyms=$lt_exclude_expsyms
19000:
19001: # Symbols that must always be exported.
19002: include_expsyms=$lt_include_expsyms
19003:
19004: # Commands necessary for linking programs (against libraries) with templates.
19005: prelink_cmds=$lt_prelink_cmds
19006:
19007: # Commands necessary for finishing linking programs.
19008: postlink_cmds=$lt_postlink_cmds
19009:
19010: # Specify filename containing input files.
19011: file_list_spec=$lt_file_list_spec
19012:
19013: # How to hardcode a shared library path into an executable.
19014: hardcode_action=$hardcode_action
19015:
19016: # The directories searched by this compiler when creating a shared library.
19017: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19018:
19019: # Dependencies to place before and after the objects being linked to
19020: # create a shared library.
19021: predep_objects=$lt_predep_objects
19022: postdep_objects=$lt_postdep_objects
19023: predeps=$lt_predeps
19024: postdeps=$lt_postdeps
19025:
19026: # The library search path used internally by the compiler when linking
19027: # a shared library.
19028: compiler_lib_search_path=$lt_compiler_lib_search_path
19029:
19030: # ### END LIBTOOL CONFIG
19031:
19032: _LT_EOF
19033:
19034: case $host_os in
19035: aix3*)
19036: cat <<\_LT_EOF >> "$cfgfile"
19037: # AIX sometimes has problems with the GCC collect2 program. For some
19038: # reason, if we set the COLLECT_NAMES environment variable, the problems
19039: # vanish in a puff of smoke.
19040: if test "X${COLLECT_NAMES+set}" != Xset; then
19041: COLLECT_NAMES=
19042: export COLLECT_NAMES
19043: fi
19044: _LT_EOF
19045: ;;
19046: esac
19047:
19048:
19049: ltmain="$ac_aux_dir/ltmain.sh"
19050:
19051:
19052: # We use sed instead of cat because bash on DJGPP gets confused if
19053: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19054: # text mode, it properly converts lines to CR/LF. This bash problem
19055: # is reportedly fixed, but why not run on old versions too?
19056: sed '$q' "$ltmain" >> "$cfgfile" \
19057: || (rm -f "$cfgfile"; exit 1)
19058:
19059: if test x"$xsi_shell" = xyes; then
19060: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19061: func_dirname ()\
19062: {\
19063: \ case ${1} in\
19064: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19065: \ * ) func_dirname_result="${3}" ;;\
19066: \ esac\
19067: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19068: && mv -f "$cfgfile.tmp" "$cfgfile" \
19069: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19070: test 0 -eq $? || _lt_function_replace_fail=:
19071:
19072:
19073: sed -e '/^func_basename ()$/,/^} # func_basename /c\
19074: func_basename ()\
19075: {\
19076: \ func_basename_result="${1##*/}"\
19077: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19078: && mv -f "$cfgfile.tmp" "$cfgfile" \
19079: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19080: test 0 -eq $? || _lt_function_replace_fail=:
19081:
19082:
19083: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19084: func_dirname_and_basename ()\
19085: {\
19086: \ case ${1} in\
19087: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19088: \ * ) func_dirname_result="${3}" ;;\
19089: \ esac\
19090: \ func_basename_result="${1##*/}"\
19091: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19092: && mv -f "$cfgfile.tmp" "$cfgfile" \
19093: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19094: test 0 -eq $? || _lt_function_replace_fail=:
19095:
19096:
19097: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19098: func_stripname ()\
19099: {\
19100: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19101: \ # positional parameters, so assign one to ordinary parameter first.\
19102: \ func_stripname_result=${3}\
19103: \ func_stripname_result=${func_stripname_result#"${1}"}\
19104: \ func_stripname_result=${func_stripname_result%"${2}"}\
19105: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19106: && mv -f "$cfgfile.tmp" "$cfgfile" \
19107: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19108: test 0 -eq $? || _lt_function_replace_fail=:
19109:
19110:
19111: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19112: func_split_long_opt ()\
19113: {\
19114: \ func_split_long_opt_name=${1%%=*}\
19115: \ func_split_long_opt_arg=${1#*=}\
19116: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19117: && mv -f "$cfgfile.tmp" "$cfgfile" \
19118: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19119: test 0 -eq $? || _lt_function_replace_fail=:
19120:
19121:
19122: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19123: func_split_short_opt ()\
19124: {\
19125: \ func_split_short_opt_arg=${1#??}\
19126: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19127: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19128: && mv -f "$cfgfile.tmp" "$cfgfile" \
19129: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19130: test 0 -eq $? || _lt_function_replace_fail=:
19131:
19132:
19133: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19134: func_lo2o ()\
19135: {\
19136: \ case ${1} in\
19137: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19138: \ *) func_lo2o_result=${1} ;;\
19139: \ esac\
19140: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19141: && mv -f "$cfgfile.tmp" "$cfgfile" \
19142: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19143: test 0 -eq $? || _lt_function_replace_fail=:
19144:
19145:
19146: sed -e '/^func_xform ()$/,/^} # func_xform /c\
19147: func_xform ()\
19148: {\
19149: func_xform_result=${1%.*}.lo\
19150: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19151: && mv -f "$cfgfile.tmp" "$cfgfile" \
19152: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19153: test 0 -eq $? || _lt_function_replace_fail=:
19154:
19155:
19156: sed -e '/^func_arith ()$/,/^} # func_arith /c\
19157: func_arith ()\
19158: {\
19159: func_arith_result=$(( $* ))\
19160: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19161: && mv -f "$cfgfile.tmp" "$cfgfile" \
19162: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19163: test 0 -eq $? || _lt_function_replace_fail=:
19164:
19165:
19166: sed -e '/^func_len ()$/,/^} # func_len /c\
19167: func_len ()\
19168: {\
19169: func_len_result=${#1}\
19170: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19171: && mv -f "$cfgfile.tmp" "$cfgfile" \
19172: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19173: test 0 -eq $? || _lt_function_replace_fail=:
19174:
19175: fi
19176:
19177: if test x"$lt_shell_append" = xyes; then
19178: sed -e '/^func_append ()$/,/^} # func_append /c\
19179: func_append ()\
19180: {\
19181: eval "${1}+=\\${2}"\
19182: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19183: && mv -f "$cfgfile.tmp" "$cfgfile" \
19184: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19185: test 0 -eq $? || _lt_function_replace_fail=:
19186:
19187:
19188: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19189: func_append_quoted ()\
19190: {\
19191: \ func_quote_for_eval "${2}"\
19192: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19193: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19194: && mv -f "$cfgfile.tmp" "$cfgfile" \
19195: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19196: test 0 -eq $? || _lt_function_replace_fail=:
19197:
19198:
19199: # Save a `func_append' function call where possible by direct use of '+='
19200: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19201: && mv -f "$cfgfile.tmp" "$cfgfile" \
19202: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19203: test 0 -eq $? || _lt_function_replace_fail=:
19204: else
19205: # Save a `func_append' function call even when '+=' is not available
19206: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19207: && mv -f "$cfgfile.tmp" "$cfgfile" \
19208: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19209: test 0 -eq $? || _lt_function_replace_fail=:
19210: fi
19211:
19212: if test x"$_lt_function_replace_fail" = x":"; then
1.22 moko 19213: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19214: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.8 moko 19215: fi
19216:
19217:
19218: mv -f "$cfgfile" "$ofile" ||
19219: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19220: chmod +x "$ofile"
19221:
19222:
19223: cat <<_LT_EOF >> "$ofile"
19224:
19225: # ### BEGIN LIBTOOL TAG CONFIG: CXX
19226:
19227: # The linker used to build libraries.
19228: LD=$lt_LD_CXX
19229:
19230: # How to create reloadable object files.
19231: reload_flag=$lt_reload_flag_CXX
19232: reload_cmds=$lt_reload_cmds_CXX
19233:
19234: # Commands used to build an old-style archive.
19235: old_archive_cmds=$lt_old_archive_cmds_CXX
19236:
19237: # A language specific compiler.
19238: CC=$lt_compiler_CXX
19239:
19240: # Is the compiler the GNU compiler?
19241: with_gcc=$GCC_CXX
19242:
19243: # Compiler flag to turn off builtin functions.
19244: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19245:
19246: # Additional compiler flags for building library objects.
19247: pic_flag=$lt_lt_prog_compiler_pic_CXX
19248:
19249: # How to pass a linker flag through the compiler.
19250: wl=$lt_lt_prog_compiler_wl_CXX
19251:
19252: # Compiler flag to prevent dynamic linking.
19253: link_static_flag=$lt_lt_prog_compiler_static_CXX
19254:
19255: # Does compiler simultaneously support -c and -o options?
19256: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19257:
19258: # Whether or not to add -lc for building shared libraries.
19259: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19260:
19261: # Whether or not to disallow shared libs when runtime libs are static.
19262: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19263:
19264: # Compiler flag to allow reflexive dlopens.
19265: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19266:
19267: # Compiler flag to generate shared objects directly from archives.
19268: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19269:
19270: # Whether the compiler copes with passing no objects directly.
19271: compiler_needs_object=$lt_compiler_needs_object_CXX
19272:
19273: # Create an old-style archive from a shared archive.
19274: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19275:
19276: # Create a temporary old-style archive to link instead of a shared archive.
19277: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19278:
19279: # Commands used to build a shared archive.
19280: archive_cmds=$lt_archive_cmds_CXX
19281: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19282:
19283: # Commands used to build a loadable module if different from building
19284: # a shared archive.
19285: module_cmds=$lt_module_cmds_CXX
19286: module_expsym_cmds=$lt_module_expsym_cmds_CXX
19287:
19288: # Whether we are building with GNU ld or not.
19289: with_gnu_ld=$lt_with_gnu_ld_CXX
19290:
19291: # Flag that allows shared libraries with undefined symbols to be built.
19292: allow_undefined_flag=$lt_allow_undefined_flag_CXX
19293:
19294: # Flag that enforces no undefined symbols.
19295: no_undefined_flag=$lt_no_undefined_flag_CXX
19296:
19297: # Flag to hardcode \$libdir into a binary during linking.
19298: # This must work even if \$libdir does not exist
19299: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19300:
19301: # Whether we need a single "-rpath" flag with a separated argument.
19302: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19303:
19304: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19305: # DIR into the resulting binary.
19306: hardcode_direct=$hardcode_direct_CXX
19307:
19308: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19309: # DIR into the resulting binary and the resulting library dependency is
19310: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19311: # library is relocated.
19312: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19313:
19314: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19315: # into the resulting binary.
19316: hardcode_minus_L=$hardcode_minus_L_CXX
19317:
19318: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19319: # into the resulting binary.
19320: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19321:
19322: # Set to "yes" if building a shared library automatically hardcodes DIR
19323: # into the library and all subsequent libraries and executables linked
19324: # against it.
19325: hardcode_automatic=$hardcode_automatic_CXX
19326:
19327: # Set to yes if linker adds runtime paths of dependent libraries
19328: # to runtime path list.
19329: inherit_rpath=$inherit_rpath_CXX
19330:
19331: # Whether libtool must link a program against all its dependency libraries.
19332: link_all_deplibs=$link_all_deplibs_CXX
19333:
19334: # Set to "yes" if exported symbols are required.
19335: always_export_symbols=$always_export_symbols_CXX
19336:
19337: # The commands to list exported symbols.
19338: export_symbols_cmds=$lt_export_symbols_cmds_CXX
19339:
19340: # Symbols that should not be listed in the preloaded symbols.
19341: exclude_expsyms=$lt_exclude_expsyms_CXX
19342:
19343: # Symbols that must always be exported.
19344: include_expsyms=$lt_include_expsyms_CXX
19345:
19346: # Commands necessary for linking programs (against libraries) with templates.
19347: prelink_cmds=$lt_prelink_cmds_CXX
19348:
19349: # Commands necessary for finishing linking programs.
19350: postlink_cmds=$lt_postlink_cmds_CXX
19351:
19352: # Specify filename containing input files.
19353: file_list_spec=$lt_file_list_spec_CXX
19354:
19355: # How to hardcode a shared library path into an executable.
19356: hardcode_action=$hardcode_action_CXX
19357:
19358: # The directories searched by this compiler when creating a shared library.
19359: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19360:
19361: # Dependencies to place before and after the objects being linked to
19362: # create a shared library.
19363: predep_objects=$lt_predep_objects_CXX
19364: postdep_objects=$lt_postdep_objects_CXX
19365: predeps=$lt_predeps_CXX
19366: postdeps=$lt_postdeps_CXX
19367:
19368: # The library search path used internally by the compiler when linking
19369: # a shared library.
19370: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19371:
19372: # ### END LIBTOOL TAG CONFIG: CXX
19373: _LT_EOF
1.1 misha 19374:
19375: ;;
1.22 moko 19376:
1.1 misha 19377: esac
1.22 moko 19378: done # for ac_tag
1.1 misha 19379:
19380:
1.22 moko 19381: as_fn_exit 0
1.1 misha 19382: _ACEOF
19383: ac_clean_files=$ac_clean_files_save
19384:
1.22 moko 19385: test $ac_write_fail = 0 ||
19386: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19387:
1.1 misha 19388:
19389: # configure is writing to config.log, and then calls config.status.
19390: # config.status does its own redirection, appending to config.log.
19391: # Unfortunately, on DOS this fails, as config.log is still kept open
19392: # by configure, so config.status won't be able to write to it; its
19393: # output is simply discarded. So we exec the FD to /dev/null,
19394: # effectively closing config.log, so it can be properly (re)opened and
19395: # appended to by config.status. When coming back to configure, we
19396: # need to make the FD available again.
19397: if test "$no_create" != yes; then
19398: ac_cs_success=:
19399: ac_config_status_args=
19400: test "$silent" = yes &&
19401: ac_config_status_args="$ac_config_status_args --quiet"
19402: exec 5>/dev/null
19403: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19404: exec 5>>config.log
19405: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19406: # would make configure fail if this is the last instruction.
1.22 moko 19407: $ac_cs_success || as_fn_exit 1
1.1 misha 19408: fi
19409:
19410: #
19411: # CONFIG_SUBDIRS section.
19412: #
19413: if test "$no_recursion" != yes; then
19414:
1.22 moko 19415: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19416: # so they do not pile up.
1.1 misha 19417: ac_sub_configure_args=
19418: ac_prev=
1.22 moko 19419: eval "set x $ac_configure_args"
19420: shift
19421: for ac_arg
19422: do
1.1 misha 19423: if test -n "$ac_prev"; then
19424: ac_prev=
19425: continue
19426: fi
19427: case $ac_arg in
19428: -cache-file | --cache-file | --cache-fil | --cache-fi \
19429: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19430: ac_prev=cache_file ;;
19431: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19432: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19433: | --c=*)
19434: ;;
19435: --config-cache | -C)
19436: ;;
19437: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19438: ac_prev=srcdir ;;
19439: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19440: ;;
19441: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19442: ac_prev=prefix ;;
19443: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19444: ;;
1.22 moko 19445: --disable-option-checking)
19446: ;;
19447: *)
19448: case $ac_arg in
19449: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19450: esac
19451: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 misha 19452: esac
19453: done
19454:
19455: # Always prepend --prefix to ensure using the same prefix
19456: # in subdir configurations.
1.22 moko 19457: ac_arg="--prefix=$prefix"
19458: case $ac_arg in
19459: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19460: esac
19461: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19462:
19463: # Pass --silent
19464: if test "$silent" = yes; then
19465: ac_sub_configure_args="--silent $ac_sub_configure_args"
19466: fi
19467:
19468: # Always prepend --disable-option-checking to silence warnings, since
19469: # different subdirs can have different --enable and --with options.
19470: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.1 misha 19471:
19472: ac_popdir=`pwd`
19473: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19474:
19475: # Do not complain, so a configure script can configure whichever
19476: # parts of a large source tree are present.
1.22 moko 19477: test -d "$srcdir/$ac_dir" || continue
1.1 misha 19478:
1.22 moko 19479: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19480: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19481: $as_echo "$ac_msg" >&6
19482: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 misha 19483: ac_builddir=.
19484:
1.22 moko 19485: case "$ac_dir" in
19486: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19487: *)
19488: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19489: # A ".." for each directory in $ac_dir_suffix.
19490: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19491: case $ac_top_builddir_sub in
19492: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19493: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19494: esac ;;
19495: esac
19496: ac_abs_top_builddir=$ac_pwd
19497: ac_abs_builddir=$ac_pwd$ac_dir_suffix
19498: # for backward compatibility:
19499: ac_top_builddir=$ac_top_build_prefix
1.1 misha 19500:
19501: case $srcdir in
1.22 moko 19502: .) # We are building in place.
1.1 misha 19503: ac_srcdir=.
1.22 moko 19504: ac_top_srcdir=$ac_top_builddir_sub
19505: ac_abs_top_srcdir=$ac_pwd ;;
19506: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 misha 19507: ac_srcdir=$srcdir$ac_dir_suffix;
1.22 moko 19508: ac_top_srcdir=$srcdir
19509: ac_abs_top_srcdir=$srcdir ;;
19510: *) # Relative name.
19511: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19512: ac_top_srcdir=$ac_top_build_prefix$srcdir
19513: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1 misha 19514: esac
1.22 moko 19515: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 misha 19516:
19517:
1.22 moko 19518: cd "$ac_dir"
1.1 misha 19519:
19520: # Check for guested configure; otherwise get Cygnus style configure.
1.22 moko 19521: if test -f "$ac_srcdir/configure.gnu"; then
19522: ac_sub_configure=$ac_srcdir/configure.gnu
19523: elif test -f "$ac_srcdir/configure"; then
19524: ac_sub_configure=$ac_srcdir/configure
19525: elif test -f "$ac_srcdir/configure.in"; then
19526: # This should be Cygnus configure.
19527: ac_sub_configure=$ac_aux_dir/configure
1.1 misha 19528: else
1.22 moko 19529: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19530: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 misha 19531: ac_sub_configure=
19532: fi
19533:
19534: # The recursion is here.
19535: if test -n "$ac_sub_configure"; then
19536: # Make the cache file name correct relative to the subdirectory.
19537: case $cache_file in
19538: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.22 moko 19539: *) # Relative name.
19540: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 misha 19541: esac
19542:
1.22 moko 19543: { $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
19544: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 misha 19545: # The eval makes quoting arguments work.
1.22 moko 19546: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19547: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19548: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 misha 19549: fi
19550:
1.22 moko 19551: cd "$ac_popdir"
1.1 misha 19552: done
19553: fi
1.22 moko 19554: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19555: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19556: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19557: fi
1.1 misha 19558:
E-mail: