Annotation of sql/oracle/configure, revision 1.37
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.35 moko 3: # Generated by GNU Autoconf 2.69 for parser3oracle 10.4.
1.32 moko 4: #
5: #
1.35 moko 6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.32 moko 7: #
1.1 parser 8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
1.32 moko 11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
1.11 paf 14:
1.32 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.11 paf 18: emulate sh
19: NULLCMD=:
1.32 moko 20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.11 paf 21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
1.32 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.11 paf 70: fi
71:
1.32 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.11 paf 79: fi
80:
81:
1.32 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.11 paf 122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
1.32 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.35 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.32 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.35 moko 193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
1.32 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.11 paf 219: do
1.32 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.35 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.32 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.11 paf 274: else
1.32 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.11 paf 279: fi
1.32 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.35 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.32 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.11 paf 426:
1.32 moko 427: if expr a : '\(a\)' >/dev/null 2>&1 &&
428: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.11 paf 429: as_expr=expr
430: else
431: as_expr=false
432: fi
433:
1.32 moko 434: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.11 paf 435: as_basename=basename
436: else
437: as_basename=false
438: fi
439:
1.32 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.11 paf 445:
1.32 moko 446: as_me=`$as_basename -- "$0" ||
1.11 paf 447: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448: X"$0" : 'X\(//\)$' \| \
1.32 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 paf 464:
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.32 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.11 paf 482: sed '
1.32 moko 483: s/[$]LINENO.*/&-/
484: t lineno
485: b
486: :lineno
1.11 paf 487: N
1.32 moko 488: :loop
489: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.11 paf 490: t loop
1.32 moko 491: s/-\n.*//
1.11 paf 492: ' >$as_me.lineno &&
1.32 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.11 paf 495:
1.35 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.11 paf 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.32 moko 502: # original and so on. Autoconf is especially sensitive to this).
503: . "./$as_me.lineno"
1.11 paf 504: # Exit status is that of the last command.
505: exit
506: }
507:
1.32 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.11 paf 519: esac
520:
1.32 moko 521: rm -f conf$$ conf$$.exe conf$$.file
522: if test -d conf$$.dir; then
523: rm -f conf$$.dir/conf$$.file
1.11 paf 524: else
1.32 moko 525: rm -f conf$$.dir
526: mkdir conf$$.dir 2>/dev/null
1.11 paf 527: fi
1.32 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.35 moko 534: # In both cases, we have to default to `cp -pR'.
1.32 moko 535: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.35 moko 536: as_ln_s='cp -pR'
1.32 moko 537: elif ln conf$$.file conf$$ 2>/dev/null; then
538: as_ln_s=ln
539: else
1.35 moko 540: as_ln_s='cp -pR'
1.11 paf 541: fi
542: else
1.35 moko 543: as_ln_s='cp -pR'
1.11 paf 544: fi
1.32 moko 545: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546: rmdir conf$$.dir 2>/dev/null
1.11 paf 547:
548: if mkdir -p . 2>/dev/null; then
1.32 moko 549: as_mkdir_p='mkdir -p "$as_dir"'
1.11 paf 550: else
1.18 paf 551: test -d ./-p && rmdir ./-p
1.11 paf 552: as_mkdir_p=false
553: fi
554:
1.35 moko 555: as_test_x='test -x'
556: as_executable_p=as_fn_executable_p
1.11 paf 557:
558: # Sed expression to map a string onto a valid CPP name.
1.18 paf 559: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 560:
561: # Sed expression to map a string onto a valid variable name.
1.18 paf 562: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 563:
1.25 moko 564: lt_ltdl_dir='libltdl'
1.11 paf 565:
566: SHELL=${CONFIG_SHELL-/bin/sh}
567:
1.25 moko 568: lt_dlopen_dir="$lt_ltdl_dir"
1.11 paf 569:
570:
1.32 moko 571: test -n "$DJDIR" || exec 7<&0 </dev/null
572: exec 6>&1
573:
1.11 paf 574: # Name of the host.
1.32 moko 575: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.11 paf 576: # so uname gets run too.
577: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 578:
1.11 paf 579: #
580: # Initializations.
581: #
1.1 parser 582: ac_default_prefix=/usr/local
1.32 moko 583: ac_clean_files=
1.11 paf 584: ac_config_libobj_dir=.
1.32 moko 585: LIBOBJS=
1.11 paf 586: cross_compiling=no
587: subdirs=
588: MFLAGS=
589: MAKEFLAGS=
590:
591: # Identity of this package.
1.35 moko 592: PACKAGE_NAME='parser3oracle'
593: PACKAGE_TARNAME='parser3oracle'
594: PACKAGE_VERSION='10.4'
595: PACKAGE_STRING='parser3oracle 10.4'
1.25 moko 596: PACKAGE_BUGREPORT=''
1.32 moko 597: PACKAGE_URL=''
1.11 paf 598:
599: ac_unique_file="parser3oracle.C"
600: # Factoring default headers for most tests.
601: ac_includes_default="\
602: #include <stdio.h>
1.32 moko 603: #ifdef HAVE_SYS_TYPES_H
1.11 paf 604: # include <sys/types.h>
605: #endif
1.32 moko 606: #ifdef HAVE_SYS_STAT_H
1.11 paf 607: # include <sys/stat.h>
608: #endif
1.32 moko 609: #ifdef STDC_HEADERS
1.11 paf 610: # include <stdlib.h>
611: # include <stddef.h>
612: #else
1.32 moko 613: # ifdef HAVE_STDLIB_H
1.11 paf 614: # include <stdlib.h>
615: # endif
616: #endif
1.32 moko 617: #ifdef HAVE_STRING_H
618: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.11 paf 619: # include <memory.h>
620: # endif
621: # include <string.h>
622: #endif
1.32 moko 623: #ifdef HAVE_STRINGS_H
1.11 paf 624: # include <strings.h>
625: #endif
1.32 moko 626: #ifdef HAVE_INTTYPES_H
1.11 paf 627: # include <inttypes.h>
628: #endif
1.32 moko 629: #ifdef HAVE_STDINT_H
630: # include <stdint.h>
631: #endif
632: #ifdef HAVE_UNISTD_H
1.11 paf 633: # include <unistd.h>
634: #endif"
635:
1.32 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
703: AMDEPBACKSLASH
704: AMDEP_FALSE
705: AMDEP_TRUE
706: am__quote
707: am__include
708: DEPDIR
709: OBJEXT
710: EXEEXT
711: ac_ct_CXX
712: CPPFLAGS
713: LDFLAGS
714: CXXFLAGS
715: CXX
716: ORACLE_PUBLIC_INC
717: ORACLE_OCI_INC
718: am__untar
719: am__tar
720: AMTAR
721: am__leading_dot
722: SET_MAKE
723: AWK
724: mkdir_p
725: MKDIR_P
726: INSTALL_STRIP_PROGRAM
727: STRIP
728: install_sh
729: MAKEINFO
730: AUTOHEADER
731: AUTOMAKE
732: AUTOCONF
733: ACLOCAL
734: VERSION
735: PACKAGE
736: CYGPATH_W
737: am__isrc
738: INSTALL_DATA
739: INSTALL_SCRIPT
740: INSTALL_PROGRAM
741: target_alias
742: host_alias
743: build_alias
744: LIBS
745: ECHO_T
746: ECHO_N
747: ECHO_C
748: DEFS
749: mandir
750: localedir
751: libdir
752: psdir
753: pdfdir
754: dvidir
755: htmldir
756: infodir
757: docdir
758: oldincludedir
759: includedir
760: localstatedir
761: sharedstatedir
762: sysconfdir
763: datadir
764: datarootdir
765: libexecdir
766: sbindir
767: bindir
768: program_transform_name
769: prefix
770: exec_prefix
771: PACKAGE_URL
772: PACKAGE_BUGREPORT
773: PACKAGE_STRING
774: PACKAGE_VERSION
775: PACKAGE_TARNAME
776: PACKAGE_NAME
777: PATH_SEPARATOR
778: SHELL'
1.11 paf 779: ac_subst_files=''
1.32 moko 780: ac_user_opts='
781: enable_option_checking
782: with_oracleoci_inc
783: with_oraclepublic_inc
784: enable_dependency_tracking
785: enable_static
786: enable_shared
787: with_pic
788: enable_fast_install
789: with_gnu_ld
790: with_sysroot
791: enable_libtool_lock
792: with_included_ltdl
793: with_ltdl_include
794: with_ltdl_lib
795: enable_ltdl_install
796: '
797: ac_precious_vars='build_alias
798: host_alias
799: target_alias
800: CXX
801: CXXFLAGS
802: LDFLAGS
803: LIBS
804: CPPFLAGS
805: CCC
806: CC
807: CFLAGS
808: CPP
809: CXXCPP'
810: ac_subdirs_all='libltdl'
1.1 parser 811:
812: # Initialize some variables set by options.
1.11 paf 813: ac_init_help=
814: ac_init_version=false
1.32 moko 815: ac_unrecognized_opts=
816: ac_unrecognized_sep=
1.1 parser 817: # The variables have the same names as the options, with
818: # dashes changed to underlines.
1.11 paf 819: cache_file=/dev/null
1.1 parser 820: exec_prefix=NONE
821: no_create=
822: no_recursion=
823: prefix=NONE
824: program_prefix=NONE
825: program_suffix=NONE
826: program_transform_name=s,x,x,
827: silent=
828: site=
829: srcdir=
830: verbose=
831: x_includes=NONE
832: x_libraries=NONE
1.11 paf 833:
834: # Installation directory options.
835: # These are left unexpanded so users can "make install exec_prefix=/foo"
836: # and all the variables that are supposed to be based on exec_prefix
837: # by default will actually change.
838: # Use braces instead of parens because sh, perl, etc. also accept them.
1.32 moko 839: # (The list follows the same order as the GNU Coding Standards.)
1.1 parser 840: bindir='${exec_prefix}/bin'
841: sbindir='${exec_prefix}/sbin'
842: libexecdir='${exec_prefix}/libexec'
1.32 moko 843: datarootdir='${prefix}/share'
844: datadir='${datarootdir}'
1.1 parser 845: sysconfdir='${prefix}/etc'
846: sharedstatedir='${prefix}/com'
847: localstatedir='${prefix}/var'
848: includedir='${prefix}/include'
849: oldincludedir='/usr/include'
1.32 moko 850: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851: infodir='${datarootdir}/info'
852: htmldir='${docdir}'
853: dvidir='${docdir}'
854: pdfdir='${docdir}'
855: psdir='${docdir}'
856: libdir='${exec_prefix}/lib'
857: localedir='${datarootdir}/locale'
858: mandir='${datarootdir}/man'
1.1 parser 859:
860: ac_prev=
1.32 moko 861: ac_dashdash=
1.1 parser 862: for ac_option
863: do
864: # If the previous option needs an argument, assign it.
865: if test -n "$ac_prev"; then
1.32 moko 866: eval $ac_prev=\$ac_option
1.1 parser 867: ac_prev=
868: continue
869: fi
870:
1.32 moko 871: case $ac_option in
872: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873: *=) ac_optarg= ;;
874: *) ac_optarg=yes ;;
875: esac
1.1 parser 876:
877: # Accept the important Cygnus configure options, so we can diagnose typos.
878:
1.32 moko 879: case $ac_dashdash$ac_option in
880: --)
881: ac_dashdash=yes ;;
1.1 parser 882:
883: -bindir | --bindir | --bindi | --bind | --bin | --bi)
884: ac_prev=bindir ;;
885: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.11 paf 886: bindir=$ac_optarg ;;
1.1 parser 887:
888: -build | --build | --buil | --bui | --bu)
1.11 paf 889: ac_prev=build_alias ;;
1.1 parser 890: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.11 paf 891: build_alias=$ac_optarg ;;
1.1 parser 892:
893: -cache-file | --cache-file | --cache-fil | --cache-fi \
894: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895: ac_prev=cache_file ;;
896: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.11 paf 898: cache_file=$ac_optarg ;;
899:
900: --config-cache | -C)
901: cache_file=config.cache ;;
1.1 parser 902:
1.32 moko 903: -datadir | --datadir | --datadi | --datad)
1.1 parser 904: ac_prev=datadir ;;
1.32 moko 905: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.11 paf 906: datadir=$ac_optarg ;;
1.1 parser 907:
1.32 moko 908: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909: | --dataroo | --dataro | --datar)
910: ac_prev=datarootdir ;;
911: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913: datarootdir=$ac_optarg ;;
914:
1.1 parser 915: -disable-* | --disable-*)
1.32 moko 916: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 917: # Reject names that are not valid shell variable names.
1.32 moko 918: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919: as_fn_error $? "invalid feature name: $ac_useropt"
920: ac_useropt_orig=$ac_useropt
921: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922: case $ac_user_opts in
923: *"
924: "enable_$ac_useropt"
925: "*) ;;
926: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927: ac_unrecognized_sep=', ';;
928: esac
929: eval enable_$ac_useropt=no ;;
930:
931: -docdir | --docdir | --docdi | --doc | --do)
932: ac_prev=docdir ;;
933: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934: docdir=$ac_optarg ;;
935:
936: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937: ac_prev=dvidir ;;
938: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939: dvidir=$ac_optarg ;;
1.1 parser 940:
941: -enable-* | --enable-*)
1.32 moko 942: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 943: # Reject names that are not valid shell variable names.
1.32 moko 944: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945: as_fn_error $? "invalid feature name: $ac_useropt"
946: ac_useropt_orig=$ac_useropt
947: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948: case $ac_user_opts in
949: *"
950: "enable_$ac_useropt"
951: "*) ;;
952: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953: ac_unrecognized_sep=', ';;
1.1 parser 954: esac
1.32 moko 955: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 parser 956:
957: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959: | --exec | --exe | --ex)
960: ac_prev=exec_prefix ;;
961: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963: | --exec=* | --exe=* | --ex=*)
1.11 paf 964: exec_prefix=$ac_optarg ;;
1.1 parser 965:
966: -gas | --gas | --ga | --g)
967: # Obsolete; use --with-gas.
968: with_gas=yes ;;
969:
1.11 paf 970: -help | --help | --hel | --he | -h)
971: ac_init_help=long ;;
972: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973: ac_init_help=recursive ;;
974: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975: ac_init_help=short ;;
1.1 parser 976:
977: -host | --host | --hos | --ho)
1.11 paf 978: ac_prev=host_alias ;;
1.1 parser 979: -host=* | --host=* | --hos=* | --ho=*)
1.11 paf 980: host_alias=$ac_optarg ;;
1.1 parser 981:
1.32 moko 982: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983: ac_prev=htmldir ;;
984: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985: | --ht=*)
986: htmldir=$ac_optarg ;;
987:
1.1 parser 988: -includedir | --includedir | --includedi | --included | --include \
989: | --includ | --inclu | --incl | --inc)
990: ac_prev=includedir ;;
991: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.11 paf 993: includedir=$ac_optarg ;;
1.1 parser 994:
995: -infodir | --infodir | --infodi | --infod | --info | --inf)
996: ac_prev=infodir ;;
997: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.11 paf 998: infodir=$ac_optarg ;;
1.1 parser 999:
1000: -libdir | --libdir | --libdi | --libd)
1001: ac_prev=libdir ;;
1002: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.11 paf 1003: libdir=$ac_optarg ;;
1.1 parser 1004:
1005: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006: | --libexe | --libex | --libe)
1007: ac_prev=libexecdir ;;
1008: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009: | --libexe=* | --libex=* | --libe=*)
1.11 paf 1010: libexecdir=$ac_optarg ;;
1.1 parser 1011:
1.32 moko 1012: -localedir | --localedir | --localedi | --localed | --locale)
1013: ac_prev=localedir ;;
1014: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015: localedir=$ac_optarg ;;
1016:
1.1 parser 1017: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.32 moko 1018: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 parser 1019: ac_prev=localstatedir ;;
1020: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.32 moko 1021: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.11 paf 1022: localstatedir=$ac_optarg ;;
1.1 parser 1023:
1024: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025: ac_prev=mandir ;;
1026: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.11 paf 1027: mandir=$ac_optarg ;;
1.1 parser 1028:
1029: -nfp | --nfp | --nf)
1030: # Obsolete; use --without-fp.
1031: with_fp=no ;;
1032:
1033: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.11 paf 1034: | --no-cr | --no-c | -n)
1.1 parser 1035: no_create=yes ;;
1036:
1037: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039: no_recursion=yes ;;
1040:
1041: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043: | --oldin | --oldi | --old | --ol | --o)
1044: ac_prev=oldincludedir ;;
1045: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.11 paf 1048: oldincludedir=$ac_optarg ;;
1.1 parser 1049:
1050: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051: ac_prev=prefix ;;
1052: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.11 paf 1053: prefix=$ac_optarg ;;
1.1 parser 1054:
1055: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056: | --program-pre | --program-pr | --program-p)
1057: ac_prev=program_prefix ;;
1058: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.11 paf 1060: program_prefix=$ac_optarg ;;
1.1 parser 1061:
1062: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063: | --program-suf | --program-su | --program-s)
1064: ac_prev=program_suffix ;;
1065: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.11 paf 1067: program_suffix=$ac_optarg ;;
1.1 parser 1068:
1069: -program-transform-name | --program-transform-name \
1070: | --program-transform-nam | --program-transform-na \
1071: | --program-transform-n | --program-transform- \
1072: | --program-transform | --program-transfor \
1073: | --program-transfo | --program-transf \
1074: | --program-trans | --program-tran \
1075: | --progr-tra | --program-tr | --program-t)
1076: ac_prev=program_transform_name ;;
1077: -program-transform-name=* | --program-transform-name=* \
1078: | --program-transform-nam=* | --program-transform-na=* \
1079: | --program-transform-n=* | --program-transform-=* \
1080: | --program-transform=* | --program-transfor=* \
1081: | --program-transfo=* | --program-transf=* \
1082: | --program-trans=* | --program-tran=* \
1083: | --progr-tra=* | --program-tr=* | --program-t=*)
1.11 paf 1084: program_transform_name=$ac_optarg ;;
1.1 parser 1085:
1.32 moko 1086: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087: ac_prev=pdfdir ;;
1088: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089: pdfdir=$ac_optarg ;;
1090:
1091: -psdir | --psdir | --psdi | --psd | --ps)
1092: ac_prev=psdir ;;
1093: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094: psdir=$ac_optarg ;;
1095:
1.1 parser 1096: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097: | -silent | --silent | --silen | --sile | --sil)
1098: silent=yes ;;
1099:
1100: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101: ac_prev=sbindir ;;
1102: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103: | --sbi=* | --sb=*)
1.11 paf 1104: sbindir=$ac_optarg ;;
1.1 parser 1105:
1106: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108: | --sharedst | --shareds | --shared | --share | --shar \
1109: | --sha | --sh)
1110: ac_prev=sharedstatedir ;;
1111: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114: | --sha=* | --sh=*)
1.11 paf 1115: sharedstatedir=$ac_optarg ;;
1.1 parser 1116:
1117: -site | --site | --sit)
1118: ac_prev=site ;;
1119: -site=* | --site=* | --sit=*)
1.11 paf 1120: site=$ac_optarg ;;
1.1 parser 1121:
1122: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123: ac_prev=srcdir ;;
1124: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.11 paf 1125: srcdir=$ac_optarg ;;
1.1 parser 1126:
1127: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128: | --syscon | --sysco | --sysc | --sys | --sy)
1129: ac_prev=sysconfdir ;;
1130: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.11 paf 1132: sysconfdir=$ac_optarg ;;
1.1 parser 1133:
1134: -target | --target | --targe | --targ | --tar | --ta | --t)
1.11 paf 1135: ac_prev=target_alias ;;
1.1 parser 1136: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.11 paf 1137: target_alias=$ac_optarg ;;
1.1 parser 1138:
1139: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140: verbose=yes ;;
1141:
1.11 paf 1142: -version | --version | --versio | --versi | --vers | -V)
1143: ac_init_version=: ;;
1.1 parser 1144:
1145: -with-* | --with-*)
1.32 moko 1146: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 1147: # Reject names that are not valid shell variable names.
1.32 moko 1148: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149: as_fn_error $? "invalid package name: $ac_useropt"
1150: ac_useropt_orig=$ac_useropt
1151: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152: case $ac_user_opts in
1153: *"
1154: "with_$ac_useropt"
1155: "*) ;;
1156: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157: ac_unrecognized_sep=', ';;
1.1 parser 1158: esac
1.32 moko 1159: eval with_$ac_useropt=\$ac_optarg ;;
1.1 parser 1160:
1161: -without-* | --without-*)
1.32 moko 1162: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 1163: # Reject names that are not valid shell variable names.
1.32 moko 1164: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165: as_fn_error $? "invalid package name: $ac_useropt"
1166: ac_useropt_orig=$ac_useropt
1167: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168: case $ac_user_opts in
1169: *"
1170: "with_$ac_useropt"
1171: "*) ;;
1172: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173: ac_unrecognized_sep=', ';;
1174: esac
1175: eval with_$ac_useropt=no ;;
1.1 parser 1176:
1177: --x)
1178: # Obsolete; use --with-x.
1179: with_x=yes ;;
1180:
1181: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182: | --x-incl | --x-inc | --x-in | --x-i)
1183: ac_prev=x_includes ;;
1184: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.11 paf 1186: x_includes=$ac_optarg ;;
1.1 parser 1187:
1188: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190: ac_prev=x_libraries ;;
1191: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.11 paf 1193: x_libraries=$ac_optarg ;;
1.1 parser 1194:
1.32 moko 1195: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196: Try \`$0 --help' for more information"
1.1 parser 1197: ;;
1198:
1.11 paf 1199: *=*)
1200: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201: # Reject names that are not valid shell variable names.
1.32 moko 1202: case $ac_envvar in #(
1203: '' | [0-9]* | *[!_$as_cr_alnum]* )
1204: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205: esac
1206: eval $ac_envvar=\$ac_optarg
1.11 paf 1207: export $ac_envvar ;;
1208:
1.1 parser 1209: *)
1.11 paf 1210: # FIXME: should be removed in autoconf 3.0.
1.32 moko 1211: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.11 paf 1212: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.32 moko 1213: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 parser 1215: ;;
1216:
1217: esac
1218: done
1219:
1220: if test -n "$ac_prev"; then
1.11 paf 1221: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.32 moko 1222: as_fn_error $? "missing argument to $ac_option"
1.1 parser 1223: fi
1224:
1.32 moko 1225: if test -n "$ac_unrecognized_opts"; then
1226: case $enable_option_checking in
1227: no) ;;
1228: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230: esac
1231: fi
1232:
1233: # Check all directory arguments for consistency.
1234: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235: datadir sysconfdir sharedstatedir localstatedir includedir \
1236: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237: libdir localedir mandir
1.11 paf 1238: do
1.32 moko 1239: eval ac_val=\$$ac_var
1240: # Remove trailing slashes.
1.11 paf 1241: case $ac_val in
1.32 moko 1242: */ )
1243: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244: eval $ac_var=\$ac_val;;
1.11 paf 1245: esac
1.32 moko 1246: # Be sure to have absolute directory names.
1.11 paf 1247: case $ac_val in
1.32 moko 1248: [\\/$]* | ?:[\\/]* ) continue;;
1249: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 parser 1250: esac
1.32 moko 1251: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 parser 1252: done
1253:
1.11 paf 1254: # There might be people who depend on the old broken behavior: `$host'
1255: # used to hold the argument of --host etc.
1256: # FIXME: To remove some day.
1257: build=$build_alias
1258: host=$host_alias
1259: target=$target_alias
1260:
1261: # FIXME: To remove some day.
1262: if test "x$host_alias" != x; then
1263: if test "x$build_alias" = x; then
1264: cross_compiling=maybe
1265: elif test "x$build_alias" != "x$host_alias"; then
1266: cross_compiling=yes
1267: fi
1268: fi
1269:
1270: ac_tool_prefix=
1271: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 parser 1272:
1.11 paf 1273: test "$silent" = yes && exec 6>/dev/null
1.1 parser 1274:
1275:
1.32 moko 1276: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277: ac_ls_di=`ls -di .` &&
1278: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279: as_fn_error $? "working directory cannot be determined"
1280: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281: as_fn_error $? "pwd does not report name of working directory"
1282:
1283:
1.1 parser 1284: # Find the source files, if location was not specified.
1285: if test -z "$srcdir"; then
1286: ac_srcdir_defaulted=yes
1.32 moko 1287: # Try the directory containing this script, then the parent directory.
1288: ac_confdir=`$as_dirname -- "$as_myself" ||
1289: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290: X"$as_myself" : 'X\(//\)[^/]' \| \
1291: X"$as_myself" : 'X\(//\)$' \| \
1292: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293: $as_echo X"$as_myself" |
1294: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295: s//\1/
1296: q
1297: }
1298: /^X\(\/\/\)[^/].*/{
1299: s//\1/
1300: q
1301: }
1302: /^X\(\/\/\)$/{
1303: s//\1/
1304: q
1305: }
1306: /^X\(\/\).*/{
1307: s//\1/
1308: q
1309: }
1310: s/.*/./; q'`
1.1 parser 1311: srcdir=$ac_confdir
1.32 moko 1312: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 parser 1313: srcdir=..
1314: fi
1315: else
1316: ac_srcdir_defaulted=no
1317: fi
1.32 moko 1318: if test ! -r "$srcdir/$ac_unique_file"; then
1319: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321: fi
1322: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323: ac_abs_confdir=`(
1324: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325: pwd)`
1326: # When building in place, set srcdir=.
1327: if test "$ac_abs_confdir" = "$ac_pwd"; then
1328: srcdir=.
1329: fi
1330: # Remove unnecessary trailing slashes from srcdir.
1331: # Double slashes in file names in object file debugging info
1332: # mess up M-x gdb in Emacs.
1333: case $srcdir in
1334: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335: esac
1336: for ac_var in $ac_precious_vars; do
1337: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338: eval ac_env_${ac_var}_value=\$${ac_var}
1339: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341: done
1.11 paf 1342:
1343: #
1344: # Report the --help message.
1345: #
1346: if test "$ac_init_help" = "long"; then
1347: # Omit some internal or obsolete options to make the list less imposing.
1348: # This message is too long to be a string in the A/UX 3.1 sh.
1349: cat <<_ACEOF
1.35 moko 1350: \`configure' configures parser3oracle 10.4 to adapt to many kinds of systems.
1.11 paf 1351:
1352: Usage: $0 [OPTION]... [VAR=VALUE]...
1353:
1354: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355: VAR=VALUE. See below for descriptions of some of the useful variables.
1356:
1357: Defaults for the options are specified in brackets.
1358:
1359: Configuration:
1360: -h, --help display this help and exit
1361: --help=short display options specific to this package
1362: --help=recursive display the short help of all the included packages
1363: -V, --version display version information and exit
1.32 moko 1364: -q, --quiet, --silent do not print \`checking ...' messages
1.11 paf 1365: --cache-file=FILE cache test results in FILE [disabled]
1366: -C, --config-cache alias for \`--cache-file=config.cache'
1367: -n, --no-create do not create output files
1368: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369:
1370: Installation directories:
1371: --prefix=PREFIX install architecture-independent files in PREFIX
1.32 moko 1372: [$ac_default_prefix]
1.11 paf 1373: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.32 moko 1374: [PREFIX]
1.11 paf 1375:
1376: By default, \`make install' will install all the files in
1377: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379: for instance \`--prefix=\$HOME'.
1380:
1381: For better control, use the options below.
1382:
1383: Fine tuning of the installation directories:
1.32 moko 1384: --bindir=DIR user executables [EPREFIX/bin]
1385: --sbindir=DIR system admin executables [EPREFIX/sbin]
1386: --libexecdir=DIR program executables [EPREFIX/libexec]
1387: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390: --libdir=DIR object code libraries [EPREFIX/lib]
1391: --includedir=DIR C header files [PREFIX/include]
1392: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395: --infodir=DIR info documentation [DATAROOTDIR/info]
1396: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397: --mandir=DIR man documentation [DATAROOTDIR/man]
1.35 moko 1398: --docdir=DIR documentation root [DATAROOTDIR/doc/parser3oracle]
1.32 moko 1399: --htmldir=DIR html documentation [DOCDIR]
1400: --dvidir=DIR dvi documentation [DOCDIR]
1401: --pdfdir=DIR pdf documentation [DOCDIR]
1402: --psdir=DIR ps documentation [DOCDIR]
1.11 paf 1403: _ACEOF
1404:
1405: cat <<\_ACEOF
1406:
1407: Program names:
1408: --program-prefix=PREFIX prepend PREFIX to installed program names
1409: --program-suffix=SUFFIX append SUFFIX to installed program names
1410: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411:
1412: System types:
1413: --build=BUILD configure for building on BUILD [guessed]
1414: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415: _ACEOF
1416: fi
1417:
1418: if test -n "$ac_init_help"; then
1.25 moko 1419: case $ac_init_help in
1.35 moko 1420: short | recursive ) echo "Configuration of parser3oracle 10.4:";;
1.25 moko 1421: esac
1.11 paf 1422: cat <<\_ACEOF
1423:
1424: Optional Features:
1.32 moko 1425: --disable-option-checking ignore unrecognized --enable/--with options
1.11 paf 1426: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.18 paf 1428: --disable-dependency-tracking speeds up one-time build
1429: --enable-dependency-tracking do not reject slow dependency extractors
1.32 moko 1430: --enable-static[=PKGS] build static libraries [default=no]
1431: --enable-shared[=PKGS] build shared libraries [default=yes]
1.25 moko 1432: --enable-fast-install[=PKGS]
1433: optimize for fast installation [default=yes]
1.11 paf 1434: --disable-libtool-lock avoid locking (might break parallel builds)
1.25 moko 1435: --enable-ltdl-install install libltdl
1.11 paf 1436:
1437: Optional Packages:
1438: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440: --with-oracleoci-inc=DIR DIR is the Oracle OCI includes directory
1441: --with-oraclepublic-inc=DIR DIR is the Oracle public includes directory
1.32 moko 1442: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.25 moko 1443: both]
1444: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445: --with-sysroot=DIR Search for dependent libraries within DIR
1446: (or the compiler's sysroot if not specified).
1447: --with-included-ltdl use the GNU ltdl sources included here
1448: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1449: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.11 paf 1450:
1451: Some influential environment variables:
1452: CXX C++ compiler command
1453: CXXFLAGS C++ compiler flags
1454: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455: nonstandard directory <lib dir>
1.32 moko 1456: LIBS libraries to pass to the linker, e.g. -l<library>
1457: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458: you have headers in a nonstandard directory <include dir>
1.11 paf 1459: CC C compiler command
1460: CFLAGS C compiler flags
1.15 paf 1461: CPP C preprocessor
1.25 moko 1462: CXXCPP C++ preprocessor
1.11 paf 1463:
1464: Use these variables to override the choices made by `configure' or to help
1465: it to find libraries and programs with nonstandard names/locations.
1466:
1.32 moko 1467: Report bugs to the package provider.
1.11 paf 1468: _ACEOF
1.32 moko 1469: ac_status=$?
1.11 paf 1470: fi
1471:
1472: if test "$ac_init_help" = "recursive"; then
1473: # If there are subdirs, report their specific --help.
1474: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.32 moko 1475: test -d "$ac_dir" ||
1476: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477: continue
1.11 paf 1478: ac_builddir=.
1479:
1.32 moko 1480: case "$ac_dir" in
1481: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482: *)
1483: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484: # A ".." for each directory in $ac_dir_suffix.
1485: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486: case $ac_top_builddir_sub in
1487: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489: esac ;;
1490: esac
1491: ac_abs_top_builddir=$ac_pwd
1492: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493: # for backward compatibility:
1494: ac_top_builddir=$ac_top_build_prefix
1.11 paf 1495:
1496: case $srcdir in
1.32 moko 1497: .) # We are building in place.
1.11 paf 1498: ac_srcdir=.
1.32 moko 1499: ac_top_srcdir=$ac_top_builddir_sub
1500: ac_abs_top_srcdir=$ac_pwd ;;
1501: [\\/]* | ?:[\\/]* ) # Absolute name.
1.11 paf 1502: ac_srcdir=$srcdir$ac_dir_suffix;
1.32 moko 1503: ac_top_srcdir=$srcdir
1504: ac_abs_top_srcdir=$srcdir ;;
1505: *) # Relative name.
1506: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507: ac_top_srcdir=$ac_top_build_prefix$srcdir
1508: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.18 paf 1509: esac
1.32 moko 1510: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.11 paf 1511:
1.32 moko 1512: cd "$ac_dir" || { ac_status=$?; continue; }
1513: # Check for guested configure.
1514: if test -f "$ac_srcdir/configure.gnu"; then
1515: echo &&
1516: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517: elif test -f "$ac_srcdir/configure"; then
1518: echo &&
1519: $SHELL "$ac_srcdir/configure" --help=recursive
1.11 paf 1520: else
1.32 moko 1521: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522: fi || ac_status=$?
1523: cd "$ac_pwd" || { ac_status=$?; break; }
1.11 paf 1524: done
1525: fi
1.1 parser 1526:
1.32 moko 1527: test -n "$ac_init_help" && exit $ac_status
1.11 paf 1528: if $ac_init_version; then
1529: cat <<\_ACEOF
1.35 moko 1530: parser3oracle configure 10.4
1531: generated by GNU Autoconf 2.69
1.11 paf 1532:
1.35 moko 1533: Copyright (C) 2012 Free Software Foundation, Inc.
1.11 paf 1534: This configure script is free software; the Free Software Foundation
1535: gives unlimited permission to copy, distribute and modify it.
1536: _ACEOF
1.32 moko 1537: exit
1.11 paf 1538: fi
1539:
1.32 moko 1540: ## ------------------------ ##
1541: ## Autoconf initialization. ##
1542: ## ------------------------ ##
1543:
1544: # ac_fn_cxx_try_compile LINENO
1545: # ----------------------------
1546: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547: ac_fn_cxx_try_compile ()
1548: {
1549: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550: rm -f conftest.$ac_objext
1551: if { { ac_try="$ac_compile"
1552: case "(($ac_try" in
1553: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554: *) ac_try_echo=$ac_try;;
1555: esac
1556: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557: $as_echo "$ac_try_echo"; } >&5
1558: (eval "$ac_compile") 2>conftest.err
1559: ac_status=$?
1560: if test -s conftest.err; then
1561: grep -v '^ *+' conftest.err >conftest.er1
1562: cat conftest.er1 >&5
1563: mv -f conftest.er1 conftest.err
1564: fi
1565: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566: test $ac_status = 0; } && {
1567: test -z "$ac_cxx_werror_flag" ||
1568: test ! -s conftest.err
1569: } && test -s conftest.$ac_objext; then :
1570: ac_retval=0
1571: else
1572: $as_echo "$as_me: failed program was:" >&5
1573: sed 's/^/| /' conftest.$ac_ext >&5
1574:
1575: ac_retval=1
1576: fi
1577: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578: as_fn_set_status $ac_retval
1.11 paf 1579:
1.32 moko 1580: } # ac_fn_cxx_try_compile
1.11 paf 1581:
1.32 moko 1582: # ac_fn_c_try_compile LINENO
1583: # --------------------------
1584: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1585: ac_fn_c_try_compile ()
1.11 paf 1586: {
1.32 moko 1587: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588: rm -f conftest.$ac_objext
1589: if { { ac_try="$ac_compile"
1590: case "(($ac_try" in
1591: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592: *) ac_try_echo=$ac_try;;
1593: esac
1594: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595: $as_echo "$ac_try_echo"; } >&5
1596: (eval "$ac_compile") 2>conftest.err
1597: ac_status=$?
1598: if test -s conftest.err; then
1599: grep -v '^ *+' conftest.err >conftest.er1
1600: cat conftest.er1 >&5
1601: mv -f conftest.er1 conftest.err
1602: fi
1603: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604: test $ac_status = 0; } && {
1605: test -z "$ac_c_werror_flag" ||
1606: test ! -s conftest.err
1607: } && test -s conftest.$ac_objext; then :
1608: ac_retval=0
1609: else
1610: $as_echo "$as_me: failed program was:" >&5
1611: sed 's/^/| /' conftest.$ac_ext >&5
1612:
1613: ac_retval=1
1614: fi
1615: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616: as_fn_set_status $ac_retval
1617:
1618: } # ac_fn_c_try_compile
1619:
1620: # ac_fn_c_try_link LINENO
1621: # -----------------------
1622: # Try to link conftest.$ac_ext, and return whether this succeeded.
1623: ac_fn_c_try_link ()
1624: {
1625: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626: rm -f conftest.$ac_objext conftest$ac_exeext
1627: if { { ac_try="$ac_link"
1628: case "(($ac_try" in
1629: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630: *) ac_try_echo=$ac_try;;
1631: esac
1632: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633: $as_echo "$ac_try_echo"; } >&5
1634: (eval "$ac_link") 2>conftest.err
1635: ac_status=$?
1636: if test -s conftest.err; then
1637: grep -v '^ *+' conftest.err >conftest.er1
1638: cat conftest.er1 >&5
1639: mv -f conftest.er1 conftest.err
1640: fi
1641: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642: test $ac_status = 0; } && {
1643: test -z "$ac_c_werror_flag" ||
1644: test ! -s conftest.err
1645: } && test -s conftest$ac_exeext && {
1646: test "$cross_compiling" = yes ||
1.35 moko 1647: test -x conftest$ac_exeext
1.32 moko 1648: }; then :
1649: ac_retval=0
1650: else
1651: $as_echo "$as_me: failed program was:" >&5
1652: sed 's/^/| /' conftest.$ac_ext >&5
1653:
1654: ac_retval=1
1655: fi
1656: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1657: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1658: # interfere with the next link command; also delete a directory that is
1659: # left behind by Apple's compiler. We do this before executing the actions.
1660: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662: as_fn_set_status $ac_retval
1663:
1664: } # ac_fn_c_try_link
1665:
1666: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1667: # -------------------------------------------------------
1668: # Tests whether HEADER exists and can be compiled using the include files in
1669: # INCLUDES, setting the cache variable VAR accordingly.
1670: ac_fn_c_check_header_compile ()
1671: {
1672: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674: $as_echo_n "checking for $2... " >&6; }
1675: if eval \${$3+:} false; then :
1676: $as_echo_n "(cached) " >&6
1677: else
1678: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679: /* end confdefs.h. */
1680: $4
1681: #include <$2>
1682: _ACEOF
1683: if ac_fn_c_try_compile "$LINENO"; then :
1684: eval "$3=yes"
1685: else
1686: eval "$3=no"
1687: fi
1688: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689: fi
1690: eval ac_res=\$$3
1691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692: $as_echo "$ac_res" >&6; }
1693: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694:
1695: } # ac_fn_c_check_header_compile
1696:
1697: # ac_fn_c_try_cpp LINENO
1698: # ----------------------
1699: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1700: ac_fn_c_try_cpp ()
1701: {
1702: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703: if { { ac_try="$ac_cpp conftest.$ac_ext"
1704: case "(($ac_try" in
1705: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706: *) ac_try_echo=$ac_try;;
1707: esac
1708: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709: $as_echo "$ac_try_echo"; } >&5
1710: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1711: ac_status=$?
1712: if test -s conftest.err; then
1713: grep -v '^ *+' conftest.err >conftest.er1
1714: cat conftest.er1 >&5
1715: mv -f conftest.er1 conftest.err
1716: fi
1717: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718: test $ac_status = 0; } > conftest.i && {
1719: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1720: test ! -s conftest.err
1721: }; then :
1722: ac_retval=0
1723: else
1724: $as_echo "$as_me: failed program was:" >&5
1725: sed 's/^/| /' conftest.$ac_ext >&5
1726:
1727: ac_retval=1
1728: fi
1729: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730: as_fn_set_status $ac_retval
1731:
1732: } # ac_fn_c_try_cpp
1733:
1734: # ac_fn_c_try_run LINENO
1735: # ----------------------
1736: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737: # that executables *can* be run.
1738: ac_fn_c_try_run ()
1739: {
1740: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741: if { { ac_try="$ac_link"
1742: case "(($ac_try" in
1743: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744: *) ac_try_echo=$ac_try;;
1745: esac
1746: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747: $as_echo "$ac_try_echo"; } >&5
1748: (eval "$ac_link") 2>&5
1749: ac_status=$?
1750: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752: { { case "(($ac_try" in
1753: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754: *) ac_try_echo=$ac_try;;
1755: esac
1756: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757: $as_echo "$ac_try_echo"; } >&5
1758: (eval "$ac_try") 2>&5
1759: ac_status=$?
1760: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761: test $ac_status = 0; }; }; then :
1762: ac_retval=0
1763: else
1764: $as_echo "$as_me: program exited with status $ac_status" >&5
1765: $as_echo "$as_me: failed program was:" >&5
1766: sed 's/^/| /' conftest.$ac_ext >&5
1767:
1768: ac_retval=$ac_status
1769: fi
1770: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772: as_fn_set_status $ac_retval
1773:
1774: } # ac_fn_c_try_run
1775:
1776: # ac_fn_c_check_func LINENO FUNC VAR
1777: # ----------------------------------
1778: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1779: ac_fn_c_check_func ()
1780: {
1781: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783: $as_echo_n "checking for $2... " >&6; }
1784: if eval \${$3+:} false; then :
1785: $as_echo_n "(cached) " >&6
1786: else
1787: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788: /* end confdefs.h. */
1789: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1790: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1791: #define $2 innocuous_$2
1792:
1793: /* System header to define __stub macros and hopefully few prototypes,
1794: which can conflict with char $2 (); below.
1795: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1796: <limits.h> exists even on freestanding compilers. */
1797:
1798: #ifdef __STDC__
1799: # include <limits.h>
1800: #else
1801: # include <assert.h>
1802: #endif
1803:
1804: #undef $2
1805:
1806: /* Override any GCC internal prototype to avoid an error.
1807: Use char because int might match the return type of a GCC
1808: builtin and then its argument prototype would still apply. */
1809: #ifdef __cplusplus
1810: extern "C"
1811: #endif
1812: char $2 ();
1813: /* The GNU C library defines this for functions which it implements
1814: to always fail with ENOSYS. Some functions are actually named
1815: something starting with __ and the normal name is an alias. */
1816: #if defined __stub_$2 || defined __stub___$2
1817: choke me
1818: #endif
1819:
1820: int
1821: main ()
1822: {
1823: return $2 ();
1824: ;
1825: return 0;
1826: }
1827: _ACEOF
1828: if ac_fn_c_try_link "$LINENO"; then :
1829: eval "$3=yes"
1830: else
1831: eval "$3=no"
1832: fi
1833: rm -f core conftest.err conftest.$ac_objext \
1834: conftest$ac_exeext conftest.$ac_ext
1835: fi
1836: eval ac_res=\$$3
1837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838: $as_echo "$ac_res" >&6; }
1839: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840:
1841: } # ac_fn_c_check_func
1842:
1843: # ac_fn_cxx_try_cpp LINENO
1844: # ------------------------
1845: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1846: ac_fn_cxx_try_cpp ()
1847: {
1848: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849: if { { ac_try="$ac_cpp conftest.$ac_ext"
1850: case "(($ac_try" in
1851: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852: *) ac_try_echo=$ac_try;;
1853: esac
1854: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855: $as_echo "$ac_try_echo"; } >&5
1856: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857: ac_status=$?
1858: if test -s conftest.err; then
1859: grep -v '^ *+' conftest.err >conftest.er1
1860: cat conftest.er1 >&5
1861: mv -f conftest.er1 conftest.err
1862: fi
1863: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864: test $ac_status = 0; } > conftest.i && {
1865: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1866: test ! -s conftest.err
1867: }; then :
1868: ac_retval=0
1869: else
1870: $as_echo "$as_me: failed program was:" >&5
1871: sed 's/^/| /' conftest.$ac_ext >&5
1872:
1873: ac_retval=1
1874: fi
1875: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876: as_fn_set_status $ac_retval
1877:
1878: } # ac_fn_cxx_try_cpp
1879:
1880: # ac_fn_cxx_try_link LINENO
1881: # -------------------------
1882: # Try to link conftest.$ac_ext, and return whether this succeeded.
1883: ac_fn_cxx_try_link ()
1884: {
1885: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886: rm -f conftest.$ac_objext conftest$ac_exeext
1887: if { { ac_try="$ac_link"
1888: case "(($ac_try" in
1889: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890: *) ac_try_echo=$ac_try;;
1891: esac
1892: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893: $as_echo "$ac_try_echo"; } >&5
1894: (eval "$ac_link") 2>conftest.err
1895: ac_status=$?
1896: if test -s conftest.err; then
1897: grep -v '^ *+' conftest.err >conftest.er1
1898: cat conftest.er1 >&5
1899: mv -f conftest.er1 conftest.err
1900: fi
1901: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902: test $ac_status = 0; } && {
1903: test -z "$ac_cxx_werror_flag" ||
1904: test ! -s conftest.err
1905: } && test -s conftest$ac_exeext && {
1906: test "$cross_compiling" = yes ||
1.35 moko 1907: test -x conftest$ac_exeext
1.32 moko 1908: }; then :
1909: ac_retval=0
1910: else
1911: $as_echo "$as_me: failed program was:" >&5
1912: sed 's/^/| /' conftest.$ac_ext >&5
1913:
1914: ac_retval=1
1915: fi
1916: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918: # interfere with the next link command; also delete a directory that is
1919: # left behind by Apple's compiler. We do this before executing the actions.
1920: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922: as_fn_set_status $ac_retval
1923:
1924: } # ac_fn_cxx_try_link
1925:
1926: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1927: # ---------------------------------------------
1928: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1929: # accordingly.
1930: ac_fn_c_check_decl ()
1931: {
1932: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933: as_decl_name=`echo $2|sed 's/ *(.*//'`
1934: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1936: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1937: if eval \${$3+:} false; then :
1938: $as_echo_n "(cached) " >&6
1939: else
1940: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941: /* end confdefs.h. */
1942: $4
1943: int
1944: main ()
1945: {
1946: #ifndef $as_decl_name
1947: #ifdef __cplusplus
1948: (void) $as_decl_use;
1949: #else
1950: (void) $as_decl_name;
1951: #endif
1952: #endif
1953:
1954: ;
1955: return 0;
1956: }
1957: _ACEOF
1958: if ac_fn_c_try_compile "$LINENO"; then :
1959: eval "$3=yes"
1960: else
1961: eval "$3=no"
1962: fi
1963: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964: fi
1965: eval ac_res=\$$3
1966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967: $as_echo "$ac_res" >&6; }
1968: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969:
1970: } # ac_fn_c_check_decl
1971:
1972: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1973: # -------------------------------------------
1974: # Tests whether TYPE exists after having included INCLUDES, setting cache
1975: # variable VAR accordingly.
1976: ac_fn_c_check_type ()
1977: {
1978: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980: $as_echo_n "checking for $2... " >&6; }
1981: if eval \${$3+:} false; then :
1982: $as_echo_n "(cached) " >&6
1983: else
1984: eval "$3=no"
1985: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986: /* end confdefs.h. */
1987: $4
1988: int
1989: main ()
1990: {
1991: if (sizeof ($2))
1992: return 0;
1993: ;
1994: return 0;
1995: }
1996: _ACEOF
1997: if ac_fn_c_try_compile "$LINENO"; then :
1998: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999: /* end confdefs.h. */
2000: $4
2001: int
2002: main ()
2003: {
2004: if (sizeof (($2)))
2005: return 0;
2006: ;
2007: return 0;
2008: }
2009: _ACEOF
2010: if ac_fn_c_try_compile "$LINENO"; then :
2011:
2012: else
2013: eval "$3=yes"
2014: fi
2015: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016: fi
2017: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018: fi
2019: eval ac_res=\$$3
2020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021: $as_echo "$ac_res" >&6; }
2022: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023:
2024: } # ac_fn_c_check_type
2025:
2026: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2027: # -------------------------------------------------------
2028: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2029: # the include files in INCLUDES and setting the cache variable VAR
2030: # accordingly.
2031: ac_fn_c_check_header_mongrel ()
2032: {
2033: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034: if eval \${$3+:} false; then :
2035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036: $as_echo_n "checking for $2... " >&6; }
2037: if eval \${$3+:} false; then :
2038: $as_echo_n "(cached) " >&6
2039: fi
2040: eval ac_res=\$$3
2041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042: $as_echo "$ac_res" >&6; }
2043: else
2044: # Is the header compilable?
2045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2046: $as_echo_n "checking $2 usability... " >&6; }
2047: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048: /* end confdefs.h. */
2049: $4
2050: #include <$2>
2051: _ACEOF
2052: if ac_fn_c_try_compile "$LINENO"; then :
2053: ac_header_compiler=yes
2054: else
2055: ac_header_compiler=no
2056: fi
2057: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2059: $as_echo "$ac_header_compiler" >&6; }
2060:
2061: # Is the header present?
2062: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2063: $as_echo_n "checking $2 presence... " >&6; }
2064: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065: /* end confdefs.h. */
2066: #include <$2>
2067: _ACEOF
2068: if ac_fn_c_try_cpp "$LINENO"; then :
2069: ac_header_preproc=yes
2070: else
2071: ac_header_preproc=no
2072: fi
2073: rm -f conftest.err conftest.i conftest.$ac_ext
2074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2075: $as_echo "$ac_header_preproc" >&6; }
2076:
2077: # So? What about this header?
2078: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2079: yes:no: )
2080: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2081: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2082: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2083: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2084: ;;
2085: no:yes:* )
2086: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2087: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2088: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2089: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2090: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2091: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2092: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2093: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2094: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2095: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2096: ;;
2097: esac
2098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099: $as_echo_n "checking for $2... " >&6; }
2100: if eval \${$3+:} false; then :
2101: $as_echo_n "(cached) " >&6
2102: else
2103: eval "$3=\$ac_header_compiler"
2104: fi
2105: eval ac_res=\$$3
2106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107: $as_echo "$ac_res" >&6; }
2108: fi
2109: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110:
2111: } # ac_fn_c_check_header_mongrel
2112: cat >config.log <<_ACEOF
2113: This file contains any messages produced by compilers while
2114: running configure, to aid debugging if configure makes a mistake.
2115:
1.35 moko 2116: It was created by parser3oracle $as_me 10.4, which was
2117: generated by GNU Autoconf 2.69. Invocation command line was
1.32 moko 2118:
2119: $ $0 $@
2120:
2121: _ACEOF
2122: exec 5>>config.log
2123: {
2124: cat <<_ASUNAME
2125: ## --------- ##
2126: ## Platform. ##
2127: ## --------- ##
1.11 paf 2128:
2129: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2130: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2131: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2132: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2133: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2134:
2135: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2136: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2137:
2138: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2139: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2140: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.32 moko 2141: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.11 paf 2142: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2143: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2144: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2145:
2146: _ASUNAME
2147:
2148: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149: for as_dir in $PATH
2150: do
2151: IFS=$as_save_IFS
2152: test -z "$as_dir" && as_dir=.
1.32 moko 2153: $as_echo "PATH: $as_dir"
2154: done
2155: IFS=$as_save_IFS
1.11 paf 2156:
2157: } >&5
2158:
2159: cat >&5 <<_ACEOF
2160:
2161:
2162: ## ----------- ##
2163: ## Core tests. ##
2164: ## ----------- ##
2165:
2166: _ACEOF
2167:
2168:
2169: # Keep a trace of the command line.
2170: # Strip out --no-create and --no-recursion so they do not pile up.
2171: # Strip out --silent because we don't want to record it for future runs.
2172: # Also quote any args containing shell meta-characters.
2173: # Make two passes to allow for proper duplicate-argument suppression.
2174: ac_configure_args=
2175: ac_configure_args0=
2176: ac_configure_args1=
2177: ac_must_keep_next=false
2178: for ac_pass in 1 2
2179: do
2180: for ac_arg
2181: do
2182: case $ac_arg in
2183: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2184: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2185: | -silent | --silent | --silen | --sile | --sil)
2186: continue ;;
1.32 moko 2187: *\'*)
2188: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.11 paf 2189: esac
2190: case $ac_pass in
1.32 moko 2191: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.11 paf 2192: 2)
1.32 moko 2193: as_fn_append ac_configure_args1 " '$ac_arg'"
1.11 paf 2194: if test $ac_must_keep_next = true; then
1.18 paf 2195: ac_must_keep_next=false # Got value, back to normal.
1.11 paf 2196: else
1.18 paf 2197: case $ac_arg in
2198: *=* | --config-cache | -C | -disable-* | --disable-* \
2199: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2200: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2201: | -with-* | --with-* | -without-* | --without-* | --x)
2202: case "$ac_configure_args0 " in
2203: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2204: esac
2205: ;;
2206: -* ) ac_must_keep_next=true ;;
2207: esac
1.11 paf 2208: fi
1.32 moko 2209: as_fn_append ac_configure_args " '$ac_arg'"
1.11 paf 2210: ;;
2211: esac
2212: done
2213: done
1.32 moko 2214: { ac_configure_args0=; unset ac_configure_args0;}
2215: { ac_configure_args1=; unset ac_configure_args1;}
1.11 paf 2216:
2217: # When interrupted or exit'd, cleanup temporary files, and complete
2218: # config.log. We remove comments because anyway the quotes in there
2219: # would cause problems or look ugly.
1.32 moko 2220: # WARNING: Use '\'' to represent an apostrophe within the trap.
2221: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.11 paf 2222: trap 'exit_status=$?
2223: # Save into config.log some information that might help in debugging.
2224: {
2225: echo
2226:
1.32 moko 2227: $as_echo "## ---------------- ##
1.11 paf 2228: ## Cache variables. ##
1.32 moko 2229: ## ---------------- ##"
1.11 paf 2230: echo
2231: # The following way of writing the cache mishandles newlines in values,
1.32 moko 2232: (
2233: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2234: eval ac_val=\$$ac_var
2235: case $ac_val in #(
2236: *${as_nl}*)
2237: case $ac_var in #(
2238: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2239: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2240: esac
2241: case $ac_var in #(
2242: _ | IFS | as_nl) ;; #(
2243: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2244: *) { eval $ac_var=; unset $ac_var;} ;;
2245: esac ;;
2246: esac
2247: done
1.11 paf 2248: (set) 2>&1 |
1.32 moko 2249: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2250: *${as_nl}ac_space=\ *)
1.11 paf 2251: sed -n \
1.32 moko 2252: "s/'\''/'\''\\\\'\'''\''/g;
2253: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2254: ;; #(
1.11 paf 2255: *)
1.32 moko 2256: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.11 paf 2257: ;;
1.32 moko 2258: esac |
2259: sort
2260: )
1.11 paf 2261: echo
2262:
1.32 moko 2263: $as_echo "## ----------------- ##
1.11 paf 2264: ## Output variables. ##
1.32 moko 2265: ## ----------------- ##"
1.11 paf 2266: echo
2267: for ac_var in $ac_subst_vars
2268: do
1.32 moko 2269: eval ac_val=\$$ac_var
2270: case $ac_val in
2271: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272: esac
2273: $as_echo "$ac_var='\''$ac_val'\''"
1.11 paf 2274: done | sort
2275: echo
2276:
2277: if test -n "$ac_subst_files"; then
1.32 moko 2278: $as_echo "## ------------------- ##
2279: ## File substitutions. ##
2280: ## ------------------- ##"
1.11 paf 2281: echo
2282: for ac_var in $ac_subst_files
2283: do
1.32 moko 2284: eval ac_val=\$$ac_var
2285: case $ac_val in
2286: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287: esac
2288: $as_echo "$ac_var='\''$ac_val'\''"
1.11 paf 2289: done | sort
2290: echo
2291: fi
2292:
2293: if test -s confdefs.h; then
1.32 moko 2294: $as_echo "## ----------- ##
1.11 paf 2295: ## confdefs.h. ##
1.32 moko 2296: ## ----------- ##"
1.11 paf 2297: echo
1.32 moko 2298: cat confdefs.h
1.11 paf 2299: echo
2300: fi
2301: test "$ac_signal" != 0 &&
1.32 moko 2302: $as_echo "$as_me: caught signal $ac_signal"
2303: $as_echo "$as_me: exit $exit_status"
1.11 paf 2304: } >&5
1.32 moko 2305: rm -f core *.core core.conftest.* &&
2306: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.11 paf 2307: exit $exit_status
1.32 moko 2308: ' 0
1.11 paf 2309: for ac_signal in 1 2 13 15; do
1.32 moko 2310: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.11 paf 2311: done
2312: ac_signal=0
2313:
2314: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.32 moko 2315: rm -f -r conftest* confdefs.h
2316:
2317: $as_echo "/* confdefs.h */" > confdefs.h
1.11 paf 2318:
2319: # Predefined preprocessor variables.
2320:
2321: cat >>confdefs.h <<_ACEOF
2322: #define PACKAGE_NAME "$PACKAGE_NAME"
2323: _ACEOF
2324:
2325: cat >>confdefs.h <<_ACEOF
2326: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2327: _ACEOF
2328:
2329: cat >>confdefs.h <<_ACEOF
2330: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2331: _ACEOF
2332:
2333: cat >>confdefs.h <<_ACEOF
2334: #define PACKAGE_STRING "$PACKAGE_STRING"
2335: _ACEOF
2336:
1.32 moko 2337: cat >>confdefs.h <<_ACEOF
2338: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2339: _ACEOF
1.11 paf 2340:
2341: cat >>confdefs.h <<_ACEOF
1.32 moko 2342: #define PACKAGE_URL "$PACKAGE_URL"
1.11 paf 2343: _ACEOF
2344:
2345:
2346: # Let the site file select an alternate cache file if it wants to.
1.32 moko 2347: # Prefer an explicitly selected file to automatically selected ones.
2348: ac_site_file1=NONE
2349: ac_site_file2=NONE
2350: if test -n "$CONFIG_SITE"; then
2351: # We do not want a PATH search for config.site.
2352: case $CONFIG_SITE in #((
2353: -*) ac_site_file1=./$CONFIG_SITE;;
2354: */*) ac_site_file1=$CONFIG_SITE;;
2355: *) ac_site_file1=./$CONFIG_SITE;;
2356: esac
2357: elif test "x$prefix" != xNONE; then
2358: ac_site_file1=$prefix/share/config.site
2359: ac_site_file2=$prefix/etc/config.site
2360: else
2361: ac_site_file1=$ac_default_prefix/share/config.site
2362: ac_site_file2=$ac_default_prefix/etc/config.site
2363: fi
2364: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2365: do
2366: test "x$ac_site_file" = xNONE && continue
2367: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2368: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2369: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.11 paf 2370: sed 's/^/| /' "$ac_site_file" >&5
1.32 moko 2371: . "$ac_site_file" \
2372: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374: as_fn_error $? "failed to load site script $ac_site_file
2375: See \`config.log' for more details" "$LINENO" 5; }
1.1 parser 2376: fi
2377: done
2378:
2379: if test -r "$cache_file"; then
1.32 moko 2380: # Some versions of bash will fail to source /dev/null (special files
2381: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2382: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2383: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.11 paf 2385: case $cache_file in
1.32 moko 2386: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2387: *) . "./$cache_file";;
1.11 paf 2388: esac
2389: fi
1.1 parser 2390: else
1.32 moko 2391: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.11 paf 2393: >$cache_file
2394: fi
2395:
2396: # Check that the precious variables saved in the cache have kept the same
2397: # value.
2398: ac_cache_corrupted=false
1.32 moko 2399: for ac_var in $ac_precious_vars; do
1.11 paf 2400: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2401: eval ac_new_set=\$ac_env_${ac_var}_set
1.32 moko 2402: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2403: eval ac_new_val=\$ac_env_${ac_var}_value
1.11 paf 2404: case $ac_old_set,$ac_new_set in
2405: set,)
1.32 moko 2406: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2407: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.11 paf 2408: ac_cache_corrupted=: ;;
2409: ,set)
1.32 moko 2410: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2411: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.11 paf 2412: ac_cache_corrupted=: ;;
2413: ,);;
2414: *)
2415: if test "x$ac_old_val" != "x$ac_new_val"; then
1.32 moko 2416: # differences in whitespace do not lead to failure.
2417: ac_old_val_w=`echo x $ac_old_val`
2418: ac_new_val_w=`echo x $ac_new_val`
2419: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2420: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2421: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2422: ac_cache_corrupted=:
2423: else
2424: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2425: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2426: eval $ac_var=\$ac_old_val
2427: fi
2428: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2429: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2430: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2431: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.11 paf 2432: fi;;
2433: esac
2434: # Pass precious variables to config.status.
2435: if test "$ac_new_set" = set; then
2436: case $ac_new_val in
1.32 moko 2437: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.11 paf 2438: *) ac_arg=$ac_var=$ac_new_val ;;
2439: esac
2440: case " $ac_configure_args " in
2441: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.32 moko 2442: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.11 paf 2443: esac
2444: fi
2445: done
2446: if $ac_cache_corrupted; then
1.32 moko 2447: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2448: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2450: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2451: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2452: fi
2453: ## -------------------- ##
2454: ## Main body of script. ##
2455: ## -------------------- ##
1.1 parser 2456:
2457: ac_ext=c
2458: ac_cpp='$CPP $CPPFLAGS'
1.11 paf 2459: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 2462:
2463:
1.11 paf 2464:
1.32 moko 2465: ac_config_headers="$ac_config_headers config_auto.h"
1.11 paf 2466:
2467:
1.32 moko 2468: am__api_version='1.11'
1.11 paf 2469:
1.1 parser 2470: ac_aux_dir=
1.32 moko 2471: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2472: if test -f "$ac_dir/install-sh"; then
1.1 parser 2473: ac_aux_dir=$ac_dir
2474: ac_install_sh="$ac_aux_dir/install-sh -c"
2475: break
1.32 moko 2476: elif test -f "$ac_dir/install.sh"; then
1.1 parser 2477: ac_aux_dir=$ac_dir
2478: ac_install_sh="$ac_aux_dir/install.sh -c"
2479: break
1.32 moko 2480: elif test -f "$ac_dir/shtool"; then
1.11 paf 2481: ac_aux_dir=$ac_dir
2482: ac_install_sh="$ac_aux_dir/shtool install -c"
2483: break
1.1 parser 2484: fi
2485: done
2486: if test -z "$ac_aux_dir"; then
1.32 moko 2487: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2488: fi
2489:
2490: # These three variables are undocumented and unsupported,
2491: # and are intended to be withdrawn in a future Autoconf release.
2492: # They can cause serious problems if a builder's source tree is in a directory
2493: # whose full name contains unusual characters.
2494: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2495: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2496: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2497:
1.1 parser 2498:
2499: # Find a good install program. We prefer a C program (faster),
2500: # so one script is as good as another. But avoid the broken or
2501: # incompatible versions:
2502: # SysV /etc/install, /usr/sbin/install
2503: # SunOS /usr/etc/install
2504: # IRIX /sbin/install
2505: # AIX /bin/install
1.11 paf 2506: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 2507: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.18 paf 2510: # OS/2's system install, which has a completely different semantic
1.1 parser 2511: # ./install, which can be erroneously created by make from ./install.sh.
1.32 moko 2512: # Reject install programs that cannot install multiple files.
2513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 parser 2515: if test -z "$INSTALL"; then
1.32 moko 2516: if ${ac_cv_path_install+:} false; then :
2517: $as_echo_n "(cached) " >&6
1.1 parser 2518: else
1.11 paf 2519: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520: for as_dir in $PATH
2521: do
2522: IFS=$as_save_IFS
2523: test -z "$as_dir" && as_dir=.
1.32 moko 2524: # Account for people who put trailing slashes in PATH elements.
2525: case $as_dir/ in #((
2526: ./ | .// | /[cC]/* | \
1.11 paf 2527: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.32 moko 2528: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.11 paf 2529: /usr/ucb/* ) ;;
2530: *)
2531: # OSF1 and SCO ODT 3.0 have their own names for install.
2532: # Don't use installbsd from OSF since it installs stuff as root
2533: # by default.
2534: for ac_prog in ginstall scoinst install; do
2535: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 2536: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.18 paf 2537: if test $ac_prog = install &&
2538: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539: # AIX install. It has an incompatible calling convention.
2540: :
2541: elif test $ac_prog = install &&
2542: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543: # program-specific install script used by HP pwplus--don't use.
2544: :
2545: else
1.32 moko 2546: rm -rf conftest.one conftest.two conftest.dir
2547: echo one > conftest.one
2548: echo two > conftest.two
2549: mkdir conftest.dir
2550: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2551: test -s conftest.one && test -s conftest.two &&
2552: test -s conftest.dir/conftest.one &&
2553: test -s conftest.dir/conftest.two
2554: then
2555: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556: break 3
2557: fi
1.18 paf 2558: fi
2559: fi
1.1 parser 2560: done
1.11 paf 2561: done
2562: ;;
2563: esac
2564:
1.32 moko 2565: done
2566: IFS=$as_save_IFS
2567:
2568: rm -rf conftest.one conftest.two conftest.dir
1.1 parser 2569:
2570: fi
2571: if test "${ac_cv_path_install+set}" = set; then
1.11 paf 2572: INSTALL=$ac_cv_path_install
1.1 parser 2573: else
1.32 moko 2574: # As a last resort, use the slow shell script. Don't cache a
2575: # value for INSTALL within a source directory, because that will
1.1 parser 2576: # break other packages using the cache if that directory is
1.32 moko 2577: # removed, or if the value is a relative name.
1.11 paf 2578: INSTALL=$ac_install_sh
1.1 parser 2579: fi
2580: fi
1.32 moko 2581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2582: $as_echo "$INSTALL" >&6; }
1.1 parser 2583:
2584: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585: # It thinks the first close brace ends the variable substitution.
2586: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587:
1.11 paf 2588: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 2589:
2590: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591:
1.32 moko 2592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2593: $as_echo_n "checking whether build environment is sane... " >&6; }
1.1 parser 2594: # Just in case
2595: sleep 1
1.11 paf 2596: echo timestamp > conftest.file
1.32 moko 2597: # Reject unsafe characters in $srcdir or the absolute working directory
2598: # name. Accept space and tab only in the latter.
2599: am_lf='
2600: '
2601: case `pwd` in
2602: *[\\\"\#\$\&\'\`$am_lf]*)
2603: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2604: esac
2605: case $srcdir in
2606: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2607: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2608: esac
2609:
1.1 parser 2610: # Do `set' in a subshell so we don't clobber the current shell's
2611: # arguments. Must try -L first in case configure is actually a
2612: # symlink; some systems play weird games with the mod time of symlinks
2613: # (eg FreeBSD returns the mod time of the symlink's containing
2614: # directory).
2615: if (
1.32 moko 2616: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.1 parser 2617: if test "$*" = "X"; then
2618: # -L didn't work.
1.32 moko 2619: set X `ls -t "$srcdir/configure" conftest.file`
1.1 parser 2620: fi
1.11 paf 2621: rm -f conftest.file
2622: if test "$*" != "X $srcdir/configure conftest.file" \
2623: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 2624:
2625: # If neither matched, then we have a broken ls. This can happen
2626: # if, for instance, CONFIG_SHELL is bash and it inherits a
2627: # broken ls alias from the environment. This has actually
2628: # happened. Such a system could not be considered "sane".
1.32 moko 2629: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2630: alias in your environment" "$LINENO" 5
1.1 parser 2631: fi
2632:
1.11 paf 2633: test "$2" = conftest.file
1.1 parser 2634: )
2635: then
2636: # Ok.
2637: :
2638: else
1.32 moko 2639: as_fn_error $? "newly created file is older than distributed files!
2640: Check your system clock" "$LINENO" 5
1.1 parser 2641: fi
1.32 moko 2642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2643: $as_echo "yes" >&6; }
1.1 parser 2644: test "$program_prefix" != NONE &&
1.32 moko 2645: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 parser 2646: # Use a double $ so make ignores it.
2647: test "$program_suffix" != NONE &&
1.32 moko 2648: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2649: # Double any \ or $.
1.11 paf 2650: # By default was `s,x,x', remove it if useless.
1.32 moko 2651: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2652: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.11 paf 2653:
2654: # expand $ac_aux_dir to an absolute path
2655: am_aux_dir=`cd $ac_aux_dir && pwd`
2656:
1.32 moko 2657: if test x"${MISSING+set}" != xset; then
2658: case $am_aux_dir in
2659: *\ * | *\ *)
2660: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2661: *)
2662: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2663: esac
2664: fi
1.11 paf 2665: # Use eval to expand $SHELL
2666: if eval "$MISSING --run true"; then
2667: am_missing_run="$MISSING --run "
2668: else
2669: am_missing_run=
1.32 moko 2670: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2671: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.11 paf 2672: fi
2673:
1.32 moko 2674: if test x"${install_sh}" != xset; then
2675: case $am_aux_dir in
2676: *\ * | *\ *)
2677: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2678: *)
2679: install_sh="\${SHELL} $am_aux_dir/install-sh"
2680: esac
2681: fi
2682:
2683: # Installed binaries are usually stripped using `strip' when the user
2684: # run `make install-strip'. However `strip' might not be the right
2685: # tool to use in cross-compilation environments, therefore Automake
2686: # will honor the `STRIP' environment variable to overrule this program.
2687: if test "$cross_compiling" != no; then
2688: if test -n "$ac_tool_prefix"; then
2689: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2690: set dummy ${ac_tool_prefix}strip; ac_word=$2
2691: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692: $as_echo_n "checking for $ac_word... " >&6; }
2693: if ${ac_cv_prog_STRIP+:} false; then :
2694: $as_echo_n "(cached) " >&6
2695: else
2696: if test -n "$STRIP"; then
2697: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2698: else
2699: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700: for as_dir in $PATH
2701: do
2702: IFS=$as_save_IFS
2703: test -z "$as_dir" && as_dir=.
2704: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 2705: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.32 moko 2706: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2707: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708: break 2
2709: fi
2710: done
2711: done
2712: IFS=$as_save_IFS
2713:
2714: fi
2715: fi
2716: STRIP=$ac_cv_prog_STRIP
2717: if test -n "$STRIP"; then
2718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2719: $as_echo "$STRIP" >&6; }
2720: else
2721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722: $as_echo "no" >&6; }
2723: fi
2724:
2725:
2726: fi
2727: if test -z "$ac_cv_prog_STRIP"; then
2728: ac_ct_STRIP=$STRIP
2729: # Extract the first word of "strip", so it can be a program name with args.
2730: set dummy strip; ac_word=$2
2731: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732: $as_echo_n "checking for $ac_word... " >&6; }
2733: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2734: $as_echo_n "(cached) " >&6
2735: else
2736: if test -n "$ac_ct_STRIP"; then
2737: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2738: else
2739: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740: for as_dir in $PATH
2741: do
2742: IFS=$as_save_IFS
2743: test -z "$as_dir" && as_dir=.
2744: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 2745: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.32 moko 2746: ac_cv_prog_ac_ct_STRIP="strip"
2747: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748: break 2
2749: fi
2750: done
2751: done
2752: IFS=$as_save_IFS
2753:
2754: fi
2755: fi
2756: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2757: if test -n "$ac_ct_STRIP"; then
2758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2759: $as_echo "$ac_ct_STRIP" >&6; }
2760: else
2761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762: $as_echo "no" >&6; }
2763: fi
2764:
2765: if test "x$ac_ct_STRIP" = x; then
2766: STRIP=":"
2767: else
2768: case $cross_compiling:$ac_tool_warned in
2769: yes:)
2770: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2771: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2772: ac_tool_warned=yes ;;
2773: esac
2774: STRIP=$ac_ct_STRIP
2775: fi
2776: else
2777: STRIP="$ac_cv_prog_STRIP"
2778: fi
2779:
2780: fi
2781: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2782:
2783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2784: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2785: if test -z "$MKDIR_P"; then
2786: if ${ac_cv_path_mkdir+:} false; then :
2787: $as_echo_n "(cached) " >&6
2788: else
2789: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2791: do
2792: IFS=$as_save_IFS
2793: test -z "$as_dir" && as_dir=.
2794: for ac_prog in mkdir gmkdir; do
2795: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 2796: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.32 moko 2797: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2798: 'mkdir (GNU coreutils) '* | \
2799: 'mkdir (coreutils) '* | \
2800: 'mkdir (fileutils) '4.1*)
2801: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2802: break 3;;
2803: esac
2804: done
2805: done
1.18 paf 2806: done
1.32 moko 2807: IFS=$as_save_IFS
2808:
2809: fi
2810:
2811: test -d ./--version && rmdir ./--version
2812: if test "${ac_cv_path_mkdir+set}" = set; then
2813: MKDIR_P="$ac_cv_path_mkdir -p"
1.18 paf 2814: else
1.32 moko 2815: # As a last resort, use the slow shell script. Don't cache a
2816: # value for MKDIR_P within a source directory, because that will
2817: # break other packages using the cache if that directory is
2818: # removed, or if the value is a relative name.
2819: MKDIR_P="$ac_install_sh -d"
1.18 paf 2820: fi
2821: fi
1.32 moko 2822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2823: $as_echo "$MKDIR_P" >&6; }
2824:
2825: mkdir_p="$MKDIR_P"
2826: case $mkdir_p in
2827: [\\/$]* | ?:[\\/]*) ;;
2828: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2829: esac
1.18 paf 2830:
1.11 paf 2831: for ac_prog in gawk mawk nawk awk
2832: do
2833: # Extract the first word of "$ac_prog", so it can be a program name with args.
2834: set dummy $ac_prog; ac_word=$2
1.32 moko 2835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836: $as_echo_n "checking for $ac_word... " >&6; }
2837: if ${ac_cv_prog_AWK+:} false; then :
2838: $as_echo_n "(cached) " >&6
1.11 paf 2839: else
2840: if test -n "$AWK"; then
2841: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2842: else
2843: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844: for as_dir in $PATH
2845: do
2846: IFS=$as_save_IFS
2847: test -z "$as_dir" && as_dir=.
1.32 moko 2848: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 2849: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.11 paf 2850: ac_cv_prog_AWK="$ac_prog"
1.32 moko 2851: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 2852: break 2
2853: fi
2854: done
1.32 moko 2855: done
2856: IFS=$as_save_IFS
1.11 paf 2857:
2858: fi
2859: fi
2860: AWK=$ac_cv_prog_AWK
2861: if test -n "$AWK"; then
1.32 moko 2862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2863: $as_echo "$AWK" >&6; }
1.11 paf 2864: else
1.32 moko 2865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866: $as_echo "no" >&6; }
1.11 paf 2867: fi
1.1 parser 2868:
1.32 moko 2869:
1.11 paf 2870: test -n "$AWK" && break
2871: done
1.1 parser 2872:
1.32 moko 2873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2874: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2875: set x ${MAKE-make}
2876: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2877: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2878: $as_echo_n "(cached) " >&6
1.1 parser 2879: else
1.11 paf 2880: cat >conftest.make <<\_ACEOF
1.32 moko 2881: SHELL = /bin/sh
1.1 parser 2882: all:
1.32 moko 2883: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.11 paf 2884: _ACEOF
1.32 moko 2885: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2886: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2887: *@@@%%%=?*=@@@%%%*)
2888: eval ac_cv_prog_make_${ac_make}_set=yes;;
2889: *)
2890: eval ac_cv_prog_make_${ac_make}_set=no;;
2891: esac
1.11 paf 2892: rm -f conftest.make
1.1 parser 2893: fi
1.32 moko 2894: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2896: $as_echo "yes" >&6; }
1.1 parser 2897: SET_MAKE=
2898: else
1.32 moko 2899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900: $as_echo "no" >&6; }
1.1 parser 2901: SET_MAKE="MAKE=${MAKE-make}"
2902: fi
2903:
1.18 paf 2904: rm -rf .tst 2>/dev/null
2905: mkdir .tst 2>/dev/null
2906: if test -d .tst; then
2907: am__leading_dot=.
2908: else
2909: am__leading_dot=_
2910: fi
2911: rmdir .tst 2>/dev/null
2912:
1.32 moko 2913: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2914: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2915: # is not polluted with repeated "-I."
2916: am__isrc=' -I$(srcdir)'
2917: # test to see if srcdir already configured
2918: if test -f $srcdir/config.status; then
2919: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2920: fi
1.11 paf 2921: fi
2922:
2923: # test whether we have cygpath
2924: if test -z "$CYGPATH_W"; then
2925: if (cygpath --version) >/dev/null 2>/dev/null; then
2926: CYGPATH_W='cygpath -w'
2927: else
2928: CYGPATH_W=echo
2929: fi
2930: fi
2931:
2932:
2933: # Define the identity of the package.
1.35 moko 2934: PACKAGE='parser3oracle'
2935: VERSION='10.4'
1.1 parser 2936:
2937:
1.25 moko 2938: cat >>confdefs.h <<_ACEOF
2939: #define PACKAGE "$PACKAGE"
2940: _ACEOF
2941:
2942:
2943: cat >>confdefs.h <<_ACEOF
2944: #define VERSION "$VERSION"
2945: _ACEOF
2946:
1.11 paf 2947: # Some tools Automake needs.
2948:
2949: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2950:
2951:
2952: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2953:
2954:
2955: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2956:
2957:
2958: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2959:
2960:
2961: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 2962:
1.11 paf 2963: # We need awk for the "check" target. The system "awk" is bad on
2964: # some platforms.
1.18 paf 2965: # Always define AMTAR for backward compatibility.
2966:
2967: AMTAR=${AMTAR-"${am_missing_run}tar"}
2968:
2969: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2970:
2971:
1.1 parser 2972:
2973:
2974:
2975:
2976:
1.32 moko 2977: # Check whether --with-oracleoci-inc was given.
2978: if test "${with_oracleoci_inc+set}" = set; then :
2979: withval=$with_oracleoci_inc;
1.1 parser 2980: else
2981: withval="$ORACLE_HOME/rdbms/demo"
2982:
1.32 moko 2983: fi
2984:
1.25 moko 2985:
1.2 parser 2986: ORACLE_OCI_INC=$withval
1.1 parser 2987:
2988:
1.2 parser 2989: if test \! -f "$ORACLE_OCI_INC/oci.h"; then
1.32 moko 2990: as_fn_error $? "$ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory" "$LINENO" 5
1.2 parser 2991: fi
2992:
2993:
1.32 moko 2994: # Check whether --with-oraclepublic-inc was given.
2995: if test "${with_oraclepublic_inc+set}" = set; then :
2996: withval=$with_oraclepublic_inc;
1.1 parser 2997: else
2998: withval="$ORACLE_HOME/network/public"
2999:
1.32 moko 3000: fi
3001:
1.25 moko 3002:
1.2 parser 3003: ORACLE_PUBLIC_INC=$withval
1.1 parser 3004:
3005:
1.2 parser 3006: if test \! -f "$ORACLE_PUBLIC_INC/nzt.h"; then
1.32 moko 3007: as_fn_error $? "$ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory" "$LINENO" 5
1.2 parser 3008: fi
3009:
1.11 paf 3010:
1.32 moko 3011: ac_ext=cpp
1.1 parser 3012: ac_cpp='$CXXCPP $CPPFLAGS'
1.11 paf 3013: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.32 moko 3016: if test -z "$CXX"; then
3017: if test -n "$CCC"; then
3018: CXX=$CCC
3019: else
3020: if test -n "$ac_tool_prefix"; then
3021: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.11 paf 3022: do
3023: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3024: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.32 moko 3025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026: $as_echo_n "checking for $ac_word... " >&6; }
3027: if ${ac_cv_prog_CXX+:} false; then :
3028: $as_echo_n "(cached) " >&6
1.1 parser 3029: else
3030: if test -n "$CXX"; then
3031: ac_cv_prog_CXX="$CXX" # Let the user override the test.
3032: else
1.11 paf 3033: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034: for as_dir in $PATH
3035: do
3036: IFS=$as_save_IFS
3037: test -z "$as_dir" && as_dir=.
1.32 moko 3038: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 3039: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.11 paf 3040: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.32 moko 3041: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3042: break 2
3043: fi
3044: done
1.32 moko 3045: done
3046: IFS=$as_save_IFS
1.11 paf 3047:
1.1 parser 3048: fi
3049: fi
1.11 paf 3050: CXX=$ac_cv_prog_CXX
1.1 parser 3051: if test -n "$CXX"; then
1.32 moko 3052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3053: $as_echo "$CXX" >&6; }
1.1 parser 3054: else
1.32 moko 3055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056: $as_echo "no" >&6; }
1.1 parser 3057: fi
3058:
1.32 moko 3059:
1.11 paf 3060: test -n "$CXX" && break
3061: done
3062: fi
3063: if test -z "$CXX"; then
3064: ac_ct_CXX=$CXX
1.32 moko 3065: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.11 paf 3066: do
3067: # Extract the first word of "$ac_prog", so it can be a program name with args.
3068: set dummy $ac_prog; ac_word=$2
1.32 moko 3069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070: $as_echo_n "checking for $ac_word... " >&6; }
3071: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3072: $as_echo_n "(cached) " >&6
1.11 paf 3073: else
3074: if test -n "$ac_ct_CXX"; then
3075: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3076: else
3077: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078: for as_dir in $PATH
3079: do
3080: IFS=$as_save_IFS
3081: test -z "$as_dir" && as_dir=.
1.32 moko 3082: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 3083: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.11 paf 3084: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.32 moko 3085: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3086: break 2
3087: fi
3088: done
1.32 moko 3089: done
3090: IFS=$as_save_IFS
1.1 parser 3091:
1.11 paf 3092: fi
3093: fi
3094: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3095: if test -n "$ac_ct_CXX"; then
1.32 moko 3096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3097: $as_echo "$ac_ct_CXX" >&6; }
1.11 paf 3098: else
1.32 moko 3099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100: $as_echo "no" >&6; }
1.11 paf 3101: fi
1.1 parser 3102:
1.32 moko 3103:
1.11 paf 3104: test -n "$ac_ct_CXX" && break
3105: done
1.1 parser 3106:
1.32 moko 3107: if test "x$ac_ct_CXX" = x; then
3108: CXX="g++"
3109: else
3110: case $cross_compiling:$ac_tool_warned in
3111: yes:)
3112: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3113: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114: ac_tool_warned=yes ;;
3115: esac
3116: CXX=$ac_ct_CXX
3117: fi
1.11 paf 3118: fi
1.1 parser 3119:
1.32 moko 3120: fi
3121: fi
1.11 paf 3122: # Provide some information about the compiler.
1.32 moko 3123: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3124: set X $ac_compile
3125: ac_compiler=$2
3126: for ac_option in --version -v -V -qversion; do
3127: { { ac_try="$ac_compiler $ac_option >&5"
3128: case "(($ac_try" in
3129: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130: *) ac_try_echo=$ac_try;;
3131: esac
3132: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133: $as_echo "$ac_try_echo"; } >&5
3134: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.11 paf 3135: ac_status=$?
1.32 moko 3136: if test -s conftest.err; then
3137: sed '10a\
3138: ... rest of stderr output deleted ...
3139: 10q' conftest.err >conftest.er1
3140: cat conftest.er1 >&5
3141: fi
3142: rm -f conftest.er1 conftest.err
3143: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144: test $ac_status = 0; }
3145: done
1.11 paf 3146:
1.32 moko 3147: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 3148: /* end confdefs.h. */
3149:
3150: int
3151: main ()
3152: {
3153:
3154: ;
3155: return 0;
3156: }
3157: _ACEOF
3158: ac_clean_files_save=$ac_clean_files
1.32 moko 3159: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.11 paf 3160: # Try to create an executable without -o first, disregard a.out.
3161: # It will help us diagnose broken compilers, and finding out an intuition
3162: # of exeext.
1.32 moko 3163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3164: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3165: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3166:
3167: # The possible output files:
3168: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3169:
3170: ac_rmfiles=
3171: for ac_file in $ac_files
3172: do
3173: case $ac_file in
3174: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3175: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3176: esac
3177: done
3178: rm -f $ac_rmfiles
3179:
3180: if { { ac_try="$ac_link_default"
3181: case "(($ac_try" in
3182: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183: *) ac_try_echo=$ac_try;;
3184: esac
3185: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186: $as_echo "$ac_try_echo"; } >&5
3187: (eval "$ac_link_default") 2>&5
3188: ac_status=$?
3189: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190: test $ac_status = 0; }; then :
3191: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3192: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3193: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3194: # so that the user can short-circuit this test for compilers unknown to
3195: # Autoconf.
3196: for ac_file in $ac_files ''
1.11 paf 3197: do
3198: test -f "$ac_file" || continue
3199: case $ac_file in
1.32 moko 3200: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.18 paf 3201: ;;
1.11 paf 3202: [ab].out )
1.18 paf 3203: # We found the default executable, but exeext='' is most
3204: # certainly right.
3205: break;;
1.11 paf 3206: *.* )
1.32 moko 3207: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3208: then :; else
3209: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3210: fi
3211: # We set ac_cv_exeext here because the later test for it is not
3212: # safe: cross compilers may not add the suffix if given an `-o'
3213: # argument, so we may need to know it at that point already.
3214: # Even if this section looks crufty: it has the advantage of
3215: # actually working.
1.18 paf 3216: break;;
1.11 paf 3217: * )
1.18 paf 3218: break;;
1.11 paf 3219: esac
3220: done
1.32 moko 3221: test "$ac_cv_exeext" = no && ac_cv_exeext=
3222:
1.11 paf 3223: else
1.32 moko 3224: ac_file=''
3225: fi
3226: if test -z "$ac_file"; then :
3227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228: $as_echo "no" >&6; }
3229: $as_echo "$as_me: failed program was:" >&5
1.11 paf 3230: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3231:
1.32 moko 3232: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234: as_fn_error 77 "C++ compiler cannot create executables
3235: See \`config.log' for more details" "$LINENO" 5; }
3236: else
3237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238: $as_echo "yes" >&6; }
3239: fi
3240: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3241: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3243: $as_echo "$ac_file" >&6; }
1.11 paf 3244: ac_exeext=$ac_cv_exeext
3245:
1.32 moko 3246: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.11 paf 3247: ac_clean_files=$ac_clean_files_save
1.32 moko 3248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3249: $as_echo_n "checking for suffix of executables... " >&6; }
3250: if { { ac_try="$ac_link"
3251: case "(($ac_try" in
3252: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253: *) ac_try_echo=$ac_try;;
3254: esac
3255: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256: $as_echo "$ac_try_echo"; } >&5
3257: (eval "$ac_link") 2>&5
1.11 paf 3258: ac_status=$?
1.32 moko 3259: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260: test $ac_status = 0; }; then :
1.11 paf 3261: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3262: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3263: # work properly (i.e., refer to `conftest.exe'), while it won't with
3264: # `rm'.
3265: for ac_file in conftest.exe conftest conftest.*; do
3266: test -f "$ac_file" || continue
3267: case $ac_file in
1.32 moko 3268: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.11 paf 3269: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.18 paf 3270: break;;
1.11 paf 3271: * ) break;;
3272: esac
3273: done
1.1 parser 3274: else
1.32 moko 3275: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3278: See \`config.log' for more details" "$LINENO" 5; }
3279: fi
3280: rm -f conftest conftest$ac_cv_exeext
3281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3282: $as_echo "$ac_cv_exeext" >&6; }
1.11 paf 3283:
3284: rm -f conftest.$ac_ext
3285: EXEEXT=$ac_cv_exeext
3286: ac_exeext=$EXEEXT
1.32 moko 3287: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288: /* end confdefs.h. */
3289: #include <stdio.h>
3290: int
3291: main ()
3292: {
3293: FILE *f = fopen ("conftest.out", "w");
3294: return ferror (f) || fclose (f) != 0;
3295:
3296: ;
3297: return 0;
3298: }
3299: _ACEOF
3300: ac_clean_files="$ac_clean_files conftest.out"
3301: # Check that the compiler produces executables we can run. If not, either
3302: # the compiler is broken, or we cross compile.
3303: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3304: $as_echo_n "checking whether we are cross compiling... " >&6; }
3305: if test "$cross_compiling" != yes; then
3306: { { ac_try="$ac_link"
3307: case "(($ac_try" in
3308: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309: *) ac_try_echo=$ac_try;;
3310: esac
3311: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312: $as_echo "$ac_try_echo"; } >&5
3313: (eval "$ac_link") 2>&5
3314: ac_status=$?
3315: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316: test $ac_status = 0; }
3317: if { ac_try='./conftest$ac_cv_exeext'
3318: { { case "(($ac_try" in
3319: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320: *) ac_try_echo=$ac_try;;
3321: esac
3322: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323: $as_echo "$ac_try_echo"; } >&5
3324: (eval "$ac_try") 2>&5
3325: ac_status=$?
3326: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327: test $ac_status = 0; }; }; then
3328: cross_compiling=no
3329: else
3330: if test "$cross_compiling" = maybe; then
3331: cross_compiling=yes
3332: else
3333: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335: as_fn_error $? "cannot run C++ compiled programs.
3336: If you meant to cross compile, use \`--host'.
3337: See \`config.log' for more details" "$LINENO" 5; }
3338: fi
3339: fi
3340: fi
3341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3342: $as_echo "$cross_compiling" >&6; }
3343:
3344: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3345: ac_clean_files=$ac_clean_files_save
3346: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3347: $as_echo_n "checking for suffix of object files... " >&6; }
3348: if ${ac_cv_objext+:} false; then :
3349: $as_echo_n "(cached) " >&6
1.11 paf 3350: else
1.32 moko 3351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 3352: /* end confdefs.h. */
3353:
3354: int
3355: main ()
3356: {
3357:
3358: ;
3359: return 0;
3360: }
3361: _ACEOF
3362: rm -f conftest.o conftest.obj
1.32 moko 3363: if { { ac_try="$ac_compile"
3364: case "(($ac_try" in
3365: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366: *) ac_try_echo=$ac_try;;
3367: esac
3368: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369: $as_echo "$ac_try_echo"; } >&5
3370: (eval "$ac_compile") 2>&5
3371: ac_status=$?
3372: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373: test $ac_status = 0; }; then :
3374: for ac_file in conftest.o conftest.obj conftest.*; do
3375: test -f "$ac_file" || continue;
1.11 paf 3376: case $ac_file in
1.32 moko 3377: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.11 paf 3378: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3379: break;;
3380: esac
3381: done
1.1 parser 3382: else
1.32 moko 3383: $as_echo "$as_me: failed program was:" >&5
1.11 paf 3384: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3385:
1.32 moko 3386: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388: as_fn_error $? "cannot compute suffix of object files: cannot compile
3389: See \`config.log' for more details" "$LINENO" 5; }
1.11 paf 3390: fi
3391: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3392: fi
1.32 moko 3393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3394: $as_echo "$ac_cv_objext" >&6; }
1.11 paf 3395: OBJEXT=$ac_cv_objext
3396: ac_objext=$OBJEXT
1.32 moko 3397: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3398: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3399: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3400: $as_echo_n "(cached) " >&6
1.11 paf 3401: else
1.32 moko 3402: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 3403: /* end confdefs.h. */
3404:
3405: int
3406: main ()
3407: {
3408: #ifndef __GNUC__
3409: choke me
3410: #endif
1.1 parser 3411:
1.11 paf 3412: ;
3413: return 0;
3414: }
3415: _ACEOF
1.32 moko 3416: if ac_fn_cxx_try_compile "$LINENO"; then :
1.11 paf 3417: ac_compiler_gnu=yes
3418: else
1.32 moko 3419: ac_compiler_gnu=no
1.11 paf 3420: fi
1.32 moko 3421: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 3422: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3423:
3424: fi
1.32 moko 3425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3426: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3427: if test $ac_compiler_gnu = yes; then
3428: GXX=yes
3429: else
3430: GXX=
3431: fi
1.11 paf 3432: ac_test_CXXFLAGS=${CXXFLAGS+set}
3433: ac_save_CXXFLAGS=$CXXFLAGS
1.32 moko 3434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3435: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3436: if ${ac_cv_prog_cxx_g+:} false; then :
3437: $as_echo_n "(cached) " >&6
3438: else
3439: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3440: ac_cxx_werror_flag=yes
3441: ac_cv_prog_cxx_g=no
3442: CXXFLAGS="-g"
3443: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 3444: /* end confdefs.h. */
3445:
3446: int
3447: main ()
3448: {
3449:
3450: ;
3451: return 0;
3452: }
3453: _ACEOF
1.32 moko 3454: if ac_fn_cxx_try_compile "$LINENO"; then :
1.11 paf 3455: ac_cv_prog_cxx_g=yes
1.1 parser 3456: else
1.32 moko 3457: CXXFLAGS=""
3458: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459: /* end confdefs.h. */
1.1 parser 3460:
1.11 paf 3461: int
3462: main ()
3463: {
1.32 moko 3464:
1.11 paf 3465: ;
3466: return 0;
3467: }
3468: _ACEOF
1.32 moko 3469: if ac_fn_cxx_try_compile "$LINENO"; then :
3470:
1.11 paf 3471: else
1.32 moko 3472: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3473: CXXFLAGS="-g"
3474: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475: /* end confdefs.h. */
1.11 paf 3476:
3477: int
3478: main ()
3479: {
1.32 moko 3480:
1.11 paf 3481: ;
3482: return 0;
3483: }
3484: _ACEOF
1.32 moko 3485: if ac_fn_cxx_try_compile "$LINENO"; then :
3486: ac_cv_prog_cxx_g=yes
3487: fi
3488: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489: fi
3490: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491: fi
3492: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3494: fi
3495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3496: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3497: if test "$ac_test_CXXFLAGS" = set; then
3498: CXXFLAGS=$ac_save_CXXFLAGS
3499: elif test $ac_cv_prog_cxx_g = yes; then
3500: if test "$GXX" = yes; then
3501: CXXFLAGS="-g -O2"
3502: else
3503: CXXFLAGS="-g"
3504: fi
1.11 paf 3505: else
1.32 moko 3506: if test "$GXX" = yes; then
3507: CXXFLAGS="-O2"
3508: else
3509: CXXFLAGS=
3510: fi
1.11 paf 3511: fi
1.15 paf 3512: ac_ext=c
3513: ac_cpp='$CPP $CPPFLAGS'
3514: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.18 paf 3517: DEPDIR="${am__leading_dot}deps"
1.11 paf 3518:
1.32 moko 3519: ac_config_commands="$ac_config_commands depfiles"
1.11 paf 3520:
3521:
3522: am_make=${MAKE-make}
3523: cat > confinc << 'END'
1.18 paf 3524: am__doit:
1.32 moko 3525: @echo this is the am__doit target
1.18 paf 3526: .PHONY: am__doit
1.11 paf 3527: END
3528: # If we don't find an include directive, just comment out the code.
1.32 moko 3529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3530: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.11 paf 3531: am__include="#"
3532: am__quote=
3533: _am_result=none
3534: # First try GNU make style include.
3535: echo "include confinc" > confmf
1.32 moko 3536: # Ignore all kinds of additional output from `make'.
3537: case `$am_make -s -f confmf 2> /dev/null` in #(
3538: *the\ am__doit\ target*)
3539: am__include=include
3540: am__quote=
3541: _am_result=GNU
3542: ;;
3543: esac
1.11 paf 3544: # Now try BSD make style include.
3545: if test "$am__include" = "#"; then
3546: echo '.include "confinc"' > confmf
1.32 moko 3547: case `$am_make -s -f confmf 2> /dev/null` in #(
3548: *the\ am__doit\ target*)
3549: am__include=.include
3550: am__quote="\""
3551: _am_result=BSD
3552: ;;
3553: esac
1.11 paf 3554: fi
3555:
3556:
1.32 moko 3557: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3558: $as_echo "$_am_result" >&6; }
1.11 paf 3559: rm -f confinc confmf
3560:
1.32 moko 3561: # Check whether --enable-dependency-tracking was given.
3562: if test "${enable_dependency_tracking+set}" = set; then :
3563: enableval=$enable_dependency_tracking;
3564: fi
1.11 paf 3565:
3566: if test "x$enable_dependency_tracking" != xno; then
3567: am_depcomp="$ac_aux_dir/depcomp"
3568: AMDEPBACKSLASH='\'
3569: fi
1.32 moko 3570: if test "x$enable_dependency_tracking" != xno; then
1.11 paf 3571: AMDEP_TRUE=
3572: AMDEP_FALSE='#'
3573: else
3574: AMDEP_TRUE='#'
3575: AMDEP_FALSE=
3576: fi
3577:
3578:
3579:
3580: depcc="$CXX" am_compiler_list=
3581:
1.32 moko 3582: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3583: $as_echo_n "checking dependency style of $depcc... " >&6; }
3584: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3585: $as_echo_n "(cached) " >&6
1.11 paf 3586: else
3587: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3588: # We make a subdir and do the tests there. Otherwise we can end up
3589: # making bogus files that we don't know about and never remove. For
3590: # instance it was reported that on HP-UX the gcc test will end up
3591: # making a dummy file named `D' -- because `-MD' means `put the output
3592: # in D'.
3593: mkdir conftest.dir
3594: # Copy depcomp to subdir because otherwise we won't find it if we're
3595: # using a relative directory.
3596: cp "$am_depcomp" conftest.dir
3597: cd conftest.dir
1.18 paf 3598: # We will build objects and dependencies in a subdirectory because
3599: # it helps to detect inapplicable dependency modes. For instance
3600: # both Tru64's cc and ICC support -MD to output dependencies as a
3601: # side effect of compilation, but ICC will put the dependencies in
3602: # the current directory while Tru64 will put them in the object
3603: # directory.
3604: mkdir sub
1.11 paf 3605:
3606: am_cv_CXX_dependencies_compiler_type=none
3607: if test "$am_compiler_list" = ""; then
3608: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3609: fi
1.32 moko 3610: am__universal=false
3611: case " $depcc " in #(
3612: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3613: esac
3614:
1.11 paf 3615: for depmode in $am_compiler_list; do
1.18 paf 3616: # Setup a source with many dependencies, because some compilers
3617: # like to wrap large dependency lists on column 80 (with \), and
3618: # we should not choose a depcomp mode which is confused by this.
3619: #
1.11 paf 3620: # We need to recreate these files for each test, as the compiler may
3621: # overwrite some of them when testing with obscure command lines.
3622: # This happens at least with the AIX C compiler.
1.18 paf 3623: : > sub/conftest.c
3624: for i in 1 2 3 4 5 6; do
3625: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3626: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3627: # Solaris 8's {/usr,}/bin/sh.
3628: touch sub/conftst$i.h
3629: done
3630: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.11 paf 3631:
1.32 moko 3632: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3633: # mode. It turns out that the SunPro C++ compiler does not properly
3634: # handle `-M -o', and we need to detect this. Also, some Intel
3635: # versions had trouble with output in subdirs
3636: am__obj=sub/conftest.${OBJEXT-o}
3637: am__minus_obj="-o $am__obj"
1.11 paf 3638: case $depmode in
1.32 moko 3639: gcc)
3640: # This depmode causes a compiler race in universal mode.
3641: test "$am__universal" = false || continue
3642: ;;
1.11 paf 3643: nosideeffect)
3644: # after this tag, mechanisms are not by side-effect, so they'll
3645: # only be used when explicitly requested
3646: if test "x$enable_dependency_tracking" = xyes; then
3647: continue
3648: else
3649: break
3650: fi
3651: ;;
1.32 moko 3652: msvisualcpp | msvcmsys)
3653: # This compiler won't grok `-c -o', but also, the minuso test has
3654: # not run yet. These depmodes are late enough in the game, and
3655: # so weak that their functioning should not be impacted.
3656: am__obj=conftest.${OBJEXT-o}
3657: am__minus_obj=
3658: ;;
1.11 paf 3659: none) break ;;
3660: esac
3661: if depmode=$depmode \
1.32 moko 3662: source=sub/conftest.c object=$am__obj \
1.18 paf 3663: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.32 moko 3664: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.18 paf 3665: >/dev/null 2>conftest.err &&
1.32 moko 3666: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.18 paf 3667: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.32 moko 3668: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.11 paf 3669: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.18 paf 3670: # icc doesn't choke on unknown options, it will just issue warnings
3671: # or remarks (even with -Werror). So we grep stderr for any message
3672: # that says an option was ignored or not supported.
3673: # When given -MP, icc 7.0 and 7.1 complain thusly:
3674: # icc: Command line warning: ignoring option '-M'; no argument required
3675: # The diagnosis changed in icc 8.0:
3676: # icc: Command line remark: option '-MP' not supported
3677: if (grep 'ignoring option' conftest.err ||
3678: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3679: am_cv_CXX_dependencies_compiler_type=$depmode
3680: break
3681: fi
1.11 paf 3682: fi
3683: done
3684:
3685: cd ..
3686: rm -rf conftest.dir
3687: else
3688: am_cv_CXX_dependencies_compiler_type=none
3689: fi
3690:
3691: fi
1.32 moko 3692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3693: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.11 paf 3694: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3695:
1.32 moko 3696: if
1.11 paf 3697: test "x$enable_dependency_tracking" != xno \
3698: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3699: am__fastdepCXX_TRUE=
3700: am__fastdepCXX_FALSE='#'
3701: else
3702: am__fastdepCXX_TRUE='#'
3703: am__fastdepCXX_FALSE=
3704: fi
3705:
3706:
3707: ac_ext=c
3708: ac_cpp='$CPP $CPPFLAGS'
3709: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712: if test -n "$ac_tool_prefix"; then
3713: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3714: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.32 moko 3715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716: $as_echo_n "checking for $ac_word... " >&6; }
3717: if ${ac_cv_prog_CC+:} false; then :
3718: $as_echo_n "(cached) " >&6
1.11 paf 3719: else
3720: if test -n "$CC"; then
3721: ac_cv_prog_CC="$CC" # Let the user override the test.
3722: else
3723: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724: for as_dir in $PATH
3725: do
3726: IFS=$as_save_IFS
3727: test -z "$as_dir" && as_dir=.
1.32 moko 3728: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 3729: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.11 paf 3730: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.32 moko 3731: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3732: break 2
3733: fi
3734: done
1.32 moko 3735: done
3736: IFS=$as_save_IFS
1.1 parser 3737:
1.11 paf 3738: fi
3739: fi
3740: CC=$ac_cv_prog_CC
3741: if test -n "$CC"; then
1.32 moko 3742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3743: $as_echo "$CC" >&6; }
1.11 paf 3744: else
1.32 moko 3745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746: $as_echo "no" >&6; }
1.11 paf 3747: fi
1.1 parser 3748:
1.32 moko 3749:
1.11 paf 3750: fi
3751: if test -z "$ac_cv_prog_CC"; then
3752: ac_ct_CC=$CC
3753: # Extract the first word of "gcc", so it can be a program name with args.
3754: set dummy gcc; ac_word=$2
1.32 moko 3755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756: $as_echo_n "checking for $ac_word... " >&6; }
3757: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3758: $as_echo_n "(cached) " >&6
1.1 parser 3759: else
1.11 paf 3760: if test -n "$ac_ct_CC"; then
3761: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 3762: else
1.11 paf 3763: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764: for as_dir in $PATH
3765: do
3766: IFS=$as_save_IFS
3767: test -z "$as_dir" && as_dir=.
1.32 moko 3768: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 3769: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.11 paf 3770: ac_cv_prog_ac_ct_CC="gcc"
1.32 moko 3771: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3772: break 2
3773: fi
3774: done
1.32 moko 3775: done
3776: IFS=$as_save_IFS
1.11 paf 3777:
3778: fi
1.1 parser 3779: fi
1.11 paf 3780: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3781: if test -n "$ac_ct_CC"; then
1.32 moko 3782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3783: $as_echo "$ac_ct_CC" >&6; }
1.11 paf 3784: else
1.32 moko 3785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786: $as_echo "no" >&6; }
1.1 parser 3787: fi
1.11 paf 3788:
1.32 moko 3789: if test "x$ac_ct_CC" = x; then
3790: CC=""
3791: else
3792: case $cross_compiling:$ac_tool_warned in
3793: yes:)
3794: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796: ac_tool_warned=yes ;;
3797: esac
3798: CC=$ac_ct_CC
3799: fi
1.1 parser 3800: else
1.11 paf 3801: CC="$ac_cv_prog_CC"
1.1 parser 3802: fi
3803:
1.11 paf 3804: if test -z "$CC"; then
1.32 moko 3805: if test -n "$ac_tool_prefix"; then
3806: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.11 paf 3807: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.32 moko 3808: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809: $as_echo_n "checking for $ac_word... " >&6; }
3810: if ${ac_cv_prog_CC+:} false; then :
3811: $as_echo_n "(cached) " >&6
1.1 parser 3812: else
3813: if test -n "$CC"; then
3814: ac_cv_prog_CC="$CC" # Let the user override the test.
3815: else
1.11 paf 3816: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817: for as_dir in $PATH
3818: do
3819: IFS=$as_save_IFS
3820: test -z "$as_dir" && as_dir=.
1.32 moko 3821: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 3822: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.11 paf 3823: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.32 moko 3824: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3825: break 2
3826: fi
3827: done
1.32 moko 3828: done
3829: IFS=$as_save_IFS
1.11 paf 3830:
1.1 parser 3831: fi
3832: fi
1.11 paf 3833: CC=$ac_cv_prog_CC
1.1 parser 3834: if test -n "$CC"; then
1.32 moko 3835: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3836: $as_echo "$CC" >&6; }
1.11 paf 3837: else
1.32 moko 3838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839: $as_echo "no" >&6; }
1.11 paf 3840: fi
3841:
1.32 moko 3842:
1.11 paf 3843: fi
3844: fi
1.1 parser 3845: if test -z "$CC"; then
3846: # Extract the first word of "cc", so it can be a program name with args.
3847: set dummy cc; ac_word=$2
1.32 moko 3848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849: $as_echo_n "checking for $ac_word... " >&6; }
3850: if ${ac_cv_prog_CC+:} false; then :
3851: $as_echo_n "(cached) " >&6
1.1 parser 3852: else
3853: if test -n "$CC"; then
3854: ac_cv_prog_CC="$CC" # Let the user override the test.
3855: else
3856: ac_prog_rejected=no
1.11 paf 3857: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858: for as_dir in $PATH
3859: do
3860: IFS=$as_save_IFS
3861: test -z "$as_dir" && as_dir=.
1.32 moko 3862: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 3863: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.11 paf 3864: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3865: ac_prog_rejected=yes
3866: continue
3867: fi
3868: ac_cv_prog_CC="cc"
1.32 moko 3869: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3870: break 2
3871: fi
3872: done
1.32 moko 3873: done
3874: IFS=$as_save_IFS
1.11 paf 3875:
1.1 parser 3876: if test $ac_prog_rejected = yes; then
3877: # We found a bogon in the path, so make sure we never use it.
3878: set dummy $ac_cv_prog_CC
3879: shift
1.11 paf 3880: if test $# != 0; then
1.1 parser 3881: # We chose a different compiler from the bogus one.
3882: # However, it has the same basename, so the bogon will be chosen
3883: # first if we set CC to just the basename; use the full file name.
3884: shift
1.11 paf 3885: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3886: fi
3887: fi
3888: fi
3889: fi
1.11 paf 3890: CC=$ac_cv_prog_CC
1.1 parser 3891: if test -n "$CC"; then
1.32 moko 3892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3893: $as_echo "$CC" >&6; }
1.1 parser 3894: else
1.32 moko 3895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896: $as_echo "no" >&6; }
1.1 parser 3897: fi
3898:
1.32 moko 3899:
1.11 paf 3900: fi
3901: if test -z "$CC"; then
3902: if test -n "$ac_tool_prefix"; then
1.32 moko 3903: for ac_prog in cl.exe
1.11 paf 3904: do
3905: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3906: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.32 moko 3907: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908: $as_echo_n "checking for $ac_word... " >&6; }
3909: if ${ac_cv_prog_CC+:} false; then :
3910: $as_echo_n "(cached) " >&6
1.1 parser 3911: else
3912: if test -n "$CC"; then
3913: ac_cv_prog_CC="$CC" # Let the user override the test.
3914: else
1.11 paf 3915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916: for as_dir in $PATH
3917: do
3918: IFS=$as_save_IFS
3919: test -z "$as_dir" && as_dir=.
1.32 moko 3920: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 3921: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.11 paf 3922: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.32 moko 3923: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3924: break 2
3925: fi
3926: done
1.32 moko 3927: done
3928: IFS=$as_save_IFS
1.11 paf 3929:
1.1 parser 3930: fi
3931: fi
1.11 paf 3932: CC=$ac_cv_prog_CC
1.1 parser 3933: if test -n "$CC"; then
1.32 moko 3934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935: $as_echo "$CC" >&6; }
1.1 parser 3936: else
1.32 moko 3937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938: $as_echo "no" >&6; }
1.1 parser 3939: fi
1.11 paf 3940:
1.32 moko 3941:
1.11 paf 3942: test -n "$CC" && break
3943: done
3944: fi
3945: if test -z "$CC"; then
3946: ac_ct_CC=$CC
1.32 moko 3947: for ac_prog in cl.exe
1.11 paf 3948: do
3949: # Extract the first word of "$ac_prog", so it can be a program name with args.
3950: set dummy $ac_prog; ac_word=$2
1.32 moko 3951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952: $as_echo_n "checking for $ac_word... " >&6; }
3953: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3954: $as_echo_n "(cached) " >&6
1.11 paf 3955: else
3956: if test -n "$ac_ct_CC"; then
3957: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3958: else
3959: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960: for as_dir in $PATH
3961: do
3962: IFS=$as_save_IFS
3963: test -z "$as_dir" && as_dir=.
1.32 moko 3964: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 3965: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.11 paf 3966: ac_cv_prog_ac_ct_CC="$ac_prog"
1.32 moko 3967: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.11 paf 3968: break 2
1.1 parser 3969: fi
1.11 paf 3970: done
1.32 moko 3971: done
3972: IFS=$as_save_IFS
1.11 paf 3973:
3974: fi
3975: fi
3976: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3977: if test -n "$ac_ct_CC"; then
1.32 moko 3978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3979: $as_echo "$ac_ct_CC" >&6; }
1.11 paf 3980: else
1.32 moko 3981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982: $as_echo "no" >&6; }
1.1 parser 3983: fi
3984:
1.32 moko 3985:
1.11 paf 3986: test -n "$ac_ct_CC" && break
3987: done
1.1 parser 3988:
1.32 moko 3989: if test "x$ac_ct_CC" = x; then
3990: CC=""
3991: else
3992: case $cross_compiling:$ac_tool_warned in
3993: yes:)
3994: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996: ac_tool_warned=yes ;;
3997: esac
3998: CC=$ac_ct_CC
3999: fi
1.11 paf 4000: fi
1.1 parser 4001:
1.11 paf 4002: fi
1.1 parser 4003:
4004:
1.32 moko 4005: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007: as_fn_error $? "no acceptable C compiler found in \$PATH
4008: See \`config.log' for more details" "$LINENO" 5; }
1.11 paf 4009:
4010: # Provide some information about the compiler.
1.32 moko 4011: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4012: set X $ac_compile
4013: ac_compiler=$2
4014: for ac_option in --version -v -V -qversion; do
4015: { { ac_try="$ac_compiler $ac_option >&5"
4016: case "(($ac_try" in
4017: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018: *) ac_try_echo=$ac_try;;
4019: esac
4020: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021: $as_echo "$ac_try_echo"; } >&5
4022: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.11 paf 4023: ac_status=$?
1.32 moko 4024: if test -s conftest.err; then
4025: sed '10a\
4026: ... rest of stderr output deleted ...
4027: 10q' conftest.err >conftest.er1
4028: cat conftest.er1 >&5
4029: fi
4030: rm -f conftest.er1 conftest.err
4031: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032: test $ac_status = 0; }
4033: done
4034:
4035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4036: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4037: if ${ac_cv_c_compiler_gnu+:} false; then :
4038: $as_echo_n "(cached) " >&6
1.11 paf 4039: else
1.32 moko 4040: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 4041: /* end confdefs.h. */
4042:
4043: int
4044: main ()
4045: {
4046: #ifndef __GNUC__
4047: choke me
1.1 parser 4048: #endif
4049:
1.11 paf 4050: ;
4051: return 0;
4052: }
4053: _ACEOF
1.32 moko 4054: if ac_fn_c_try_compile "$LINENO"; then :
1.11 paf 4055: ac_compiler_gnu=yes
4056: else
1.32 moko 4057: ac_compiler_gnu=no
1.11 paf 4058: fi
1.32 moko 4059: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 4060: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4061:
4062: fi
1.32 moko 4063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4064: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4065: if test $ac_compiler_gnu = yes; then
4066: GCC=yes
4067: else
4068: GCC=
4069: fi
1.11 paf 4070: ac_test_CFLAGS=${CFLAGS+set}
4071: ac_save_CFLAGS=$CFLAGS
1.32 moko 4072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4073: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4074: if ${ac_cv_prog_cc_g+:} false; then :
4075: $as_echo_n "(cached) " >&6
4076: else
4077: ac_save_c_werror_flag=$ac_c_werror_flag
4078: ac_c_werror_flag=yes
4079: ac_cv_prog_cc_g=no
4080: CFLAGS="-g"
4081: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082: /* end confdefs.h. */
4083:
4084: int
4085: main ()
4086: {
4087:
4088: ;
4089: return 0;
4090: }
4091: _ACEOF
4092: if ac_fn_c_try_compile "$LINENO"; then :
4093: ac_cv_prog_cc_g=yes
1.11 paf 4094: else
1.32 moko 4095: CFLAGS=""
4096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097: /* end confdefs.h. */
4098:
4099: int
4100: main ()
4101: {
4102:
4103: ;
4104: return 0;
4105: }
1.11 paf 4106: _ACEOF
1.32 moko 4107: if ac_fn_c_try_compile "$LINENO"; then :
4108:
4109: else
4110: ac_c_werror_flag=$ac_save_c_werror_flag
4111: CFLAGS="-g"
4112: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 4113: /* end confdefs.h. */
4114:
4115: int
4116: main ()
4117: {
4118:
4119: ;
4120: return 0;
4121: }
4122: _ACEOF
1.32 moko 4123: if ac_fn_c_try_compile "$LINENO"; then :
1.11 paf 4124: ac_cv_prog_cc_g=yes
1.1 parser 4125: fi
1.32 moko 4126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127: fi
4128: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129: fi
4130: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 parser 4132: fi
1.32 moko 4133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4134: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 parser 4135: if test "$ac_test_CFLAGS" = set; then
1.11 paf 4136: CFLAGS=$ac_save_CFLAGS
1.1 parser 4137: elif test $ac_cv_prog_cc_g = yes; then
4138: if test "$GCC" = yes; then
4139: CFLAGS="-g -O2"
4140: else
4141: CFLAGS="-g"
4142: fi
4143: else
4144: if test "$GCC" = yes; then
4145: CFLAGS="-O2"
4146: else
4147: CFLAGS=
4148: fi
4149: fi
1.32 moko 4150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4151: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4152: if ${ac_cv_prog_cc_c89+:} false; then :
4153: $as_echo_n "(cached) " >&6
1.11 paf 4154: else
1.32 moko 4155: ac_cv_prog_cc_c89=no
1.11 paf 4156: ac_save_CC=$CC
1.32 moko 4157: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 4158: /* end confdefs.h. */
4159: #include <stdarg.h>
4160: #include <stdio.h>
1.35 moko 4161: struct stat;
1.11 paf 4162: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4163: struct buf { int x; };
4164: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4165: static char *e (p, i)
4166: char **p;
4167: int i;
4168: {
4169: return p[i];
4170: }
4171: static char *f (char * (*g) (char **, int), char **p, ...)
4172: {
4173: char *s;
4174: va_list v;
4175: va_start (v,p);
4176: s = g (p, va_arg (v,int));
4177: va_end (v);
4178: return s;
4179: }
1.18 paf 4180:
4181: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4182: function prototypes and stuff, but not '\xHH' hex character constants.
4183: These don't provoke an error unfortunately, instead are silently treated
1.32 moko 4184: as 'x'. The following induces an error, until -std is added to get
1.18 paf 4185: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4186: array size at least. It's necessary to write '\x00'==0 to get something
1.32 moko 4187: that's true only with -std. */
1.18 paf 4188: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4189:
1.32 moko 4190: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4191: inside strings and character constants. */
4192: #define FOO(x) 'x'
4193: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4194:
1.11 paf 4195: int test (int i, double x);
4196: struct s1 {int (*f) (int a);};
4197: struct s2 {int (*f) (double a);};
4198: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4199: int argc;
4200: char **argv;
4201: int
4202: main ()
4203: {
4204: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4205: ;
4206: return 0;
4207: }
4208: _ACEOF
1.32 moko 4209: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4210: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.11 paf 4211: do
4212: CC="$ac_save_CC $ac_arg"
1.32 moko 4213: if ac_fn_c_try_compile "$LINENO"; then :
4214: ac_cv_prog_cc_c89=$ac_arg
1.11 paf 4215: fi
1.32 moko 4216: rm -f core conftest.err conftest.$ac_objext
4217: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.11 paf 4218: done
1.32 moko 4219: rm -f conftest.$ac_ext
1.11 paf 4220: CC=$ac_save_CC
4221:
4222: fi
1.32 moko 4223: # AC_CACHE_VAL
4224: case "x$ac_cv_prog_cc_c89" in
4225: x)
4226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4227: $as_echo "none needed" >&6; } ;;
4228: xno)
4229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4230: $as_echo "unsupported" >&6; } ;;
1.11 paf 4231: *)
1.32 moko 4232: CC="$CC $ac_cv_prog_cc_c89"
4233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4234: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.11 paf 4235: esac
1.32 moko 4236: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.11 paf 4237:
4238: fi
4239:
1.15 paf 4240: ac_ext=c
4241: ac_cpp='$CPP $CPPFLAGS'
4242: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 4245:
4246: depcc="$CC" am_compiler_list=
4247:
1.32 moko 4248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4249: $as_echo_n "checking dependency style of $depcc... " >&6; }
4250: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4251: $as_echo_n "(cached) " >&6
1.11 paf 4252: else
4253: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4254: # We make a subdir and do the tests there. Otherwise we can end up
4255: # making bogus files that we don't know about and never remove. For
4256: # instance it was reported that on HP-UX the gcc test will end up
4257: # making a dummy file named `D' -- because `-MD' means `put the output
4258: # in D'.
4259: mkdir conftest.dir
4260: # Copy depcomp to subdir because otherwise we won't find it if we're
4261: # using a relative directory.
4262: cp "$am_depcomp" conftest.dir
4263: cd conftest.dir
1.18 paf 4264: # We will build objects and dependencies in a subdirectory because
4265: # it helps to detect inapplicable dependency modes. For instance
4266: # both Tru64's cc and ICC support -MD to output dependencies as a
4267: # side effect of compilation, but ICC will put the dependencies in
4268: # the current directory while Tru64 will put them in the object
4269: # directory.
4270: mkdir sub
1.11 paf 4271:
4272: am_cv_CC_dependencies_compiler_type=none
4273: if test "$am_compiler_list" = ""; then
4274: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4275: fi
1.32 moko 4276: am__universal=false
4277: case " $depcc " in #(
4278: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4279: esac
4280:
1.11 paf 4281: for depmode in $am_compiler_list; do
1.18 paf 4282: # Setup a source with many dependencies, because some compilers
4283: # like to wrap large dependency lists on column 80 (with \), and
4284: # we should not choose a depcomp mode which is confused by this.
4285: #
1.11 paf 4286: # We need to recreate these files for each test, as the compiler may
4287: # overwrite some of them when testing with obscure command lines.
4288: # This happens at least with the AIX C compiler.
1.18 paf 4289: : > sub/conftest.c
4290: for i in 1 2 3 4 5 6; do
4291: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4292: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4293: # Solaris 8's {/usr,}/bin/sh.
4294: touch sub/conftst$i.h
4295: done
4296: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.11 paf 4297:
1.32 moko 4298: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4299: # mode. It turns out that the SunPro C++ compiler does not properly
4300: # handle `-M -o', and we need to detect this. Also, some Intel
4301: # versions had trouble with output in subdirs
4302: am__obj=sub/conftest.${OBJEXT-o}
4303: am__minus_obj="-o $am__obj"
1.11 paf 4304: case $depmode in
1.32 moko 4305: gcc)
4306: # This depmode causes a compiler race in universal mode.
4307: test "$am__universal" = false || continue
4308: ;;
1.11 paf 4309: nosideeffect)
4310: # after this tag, mechanisms are not by side-effect, so they'll
4311: # only be used when explicitly requested
4312: if test "x$enable_dependency_tracking" = xyes; then
4313: continue
4314: else
4315: break
4316: fi
4317: ;;
1.32 moko 4318: msvisualcpp | msvcmsys)
4319: # This compiler won't grok `-c -o', but also, the minuso test has
4320: # not run yet. These depmodes are late enough in the game, and
4321: # so weak that their functioning should not be impacted.
4322: am__obj=conftest.${OBJEXT-o}
4323: am__minus_obj=
4324: ;;
1.11 paf 4325: none) break ;;
4326: esac
4327: if depmode=$depmode \
1.32 moko 4328: source=sub/conftest.c object=$am__obj \
1.18 paf 4329: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.32 moko 4330: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.18 paf 4331: >/dev/null 2>conftest.err &&
1.32 moko 4332: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.18 paf 4333: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.32 moko 4334: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.11 paf 4335: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.18 paf 4336: # icc doesn't choke on unknown options, it will just issue warnings
4337: # or remarks (even with -Werror). So we grep stderr for any message
4338: # that says an option was ignored or not supported.
4339: # When given -MP, icc 7.0 and 7.1 complain thusly:
4340: # icc: Command line warning: ignoring option '-M'; no argument required
4341: # The diagnosis changed in icc 8.0:
4342: # icc: Command line remark: option '-MP' not supported
4343: if (grep 'ignoring option' conftest.err ||
4344: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4345: am_cv_CC_dependencies_compiler_type=$depmode
4346: break
4347: fi
1.11 paf 4348: fi
4349: done
4350:
4351: cd ..
4352: rm -rf conftest.dir
4353: else
4354: am_cv_CC_dependencies_compiler_type=none
4355: fi
4356:
4357: fi
1.32 moko 4358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4359: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.11 paf 4360: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4361:
1.32 moko 4362: if
1.11 paf 4363: test "x$enable_dependency_tracking" != xno \
4364: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4365: am__fastdepCC_TRUE=
4366: am__fastdepCC_FALSE='#'
4367: else
4368: am__fastdepCC_TRUE='#'
4369: am__fastdepCC_FALSE=
4370: fi
4371:
4372:
1.15 paf 4373:
4374:
4375:
4376:
4377:
4378:
4379:
4380:
1.25 moko 4381: case `pwd` in
4382: *\ * | *\ *)
1.32 moko 4383: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4384: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.15 paf 4385: esac
4386:
1.25 moko 4387:
4388:
4389: macro_version='2.4.2'
4390: macro_revision='1.3337'
4391:
4392:
4393:
4394:
4395:
4396:
4397:
4398:
4399:
4400:
4401:
4402:
4403:
4404: ltmain="$ac_aux_dir/ltmain.sh"
4405:
1.15 paf 4406: # Make sure we can run config.sub.
1.32 moko 4407: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4408: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.15 paf 4409:
1.32 moko 4410: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4411: $as_echo_n "checking build system type... " >&6; }
4412: if ${ac_cv_build+:} false; then :
4413: $as_echo_n "(cached) " >&6
4414: else
4415: ac_build_alias=$build_alias
4416: test "x$ac_build_alias" = x &&
4417: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4418: test "x$ac_build_alias" = x &&
4419: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4420: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4421: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4422:
4423: fi
4424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4425: $as_echo "$ac_cv_build" >&6; }
4426: case $ac_cv_build in
4427: *-*-*) ;;
4428: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4429: esac
4430: build=$ac_cv_build
4431: ac_save_IFS=$IFS; IFS='-'
4432: set x $ac_cv_build
4433: shift
4434: build_cpu=$1
4435: build_vendor=$2
4436: shift; shift
4437: # Remember, the first character of IFS is used to create $*,
4438: # except with old shells:
4439: build_os=$*
4440: IFS=$ac_save_IFS
4441: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4442:
4443:
4444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4445: $as_echo_n "checking host system type... " >&6; }
4446: if ${ac_cv_host+:} false; then :
4447: $as_echo_n "(cached) " >&6
4448: else
4449: if test "x$host_alias" = x; then
4450: ac_cv_host=$ac_cv_build
4451: else
4452: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4453: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.15 paf 4454: fi
4455:
4456: fi
1.32 moko 4457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4458: $as_echo "$ac_cv_host" >&6; }
4459: case $ac_cv_host in
4460: *-*-*) ;;
4461: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4462: esac
1.15 paf 4463: host=$ac_cv_host
1.32 moko 4464: ac_save_IFS=$IFS; IFS='-'
4465: set x $ac_cv_host
4466: shift
4467: host_cpu=$1
4468: host_vendor=$2
4469: shift; shift
4470: # Remember, the first character of IFS is used to create $*,
4471: # except with old shells:
4472: host_os=$*
4473: IFS=$ac_save_IFS
4474: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.15 paf 4475:
4476:
1.25 moko 4477: # Backslashify metacharacters that are still active within
4478: # double-quoted strings.
4479: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4480:
4481: # Same as above, but do not quote variable references.
4482: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4483:
4484: # Sed substitution to delay expansion of an escaped shell variable in a
4485: # double_quote_subst'ed string.
4486: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4487:
4488: # Sed substitution to delay expansion of an escaped single quote.
4489: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4490:
4491: # Sed substitution to avoid accidental globbing in evaled expressions
4492: no_glob_subst='s/\*/\\\*/g'
4493:
4494: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4495: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4496: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4497:
1.32 moko 4498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4499: $as_echo_n "checking how to print strings... " >&6; }
1.25 moko 4500: # Test print first, because it will be a builtin if present.
4501: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4502: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4503: ECHO='print -r --'
4504: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4505: ECHO='printf %s\n'
4506: else
4507: # Use this function as a fallback that always works.
4508: func_fallback_echo ()
4509: {
4510: eval 'cat <<_LTECHO_EOF
4511: $1
4512: _LTECHO_EOF'
4513: }
4514: ECHO='func_fallback_echo'
1.11 paf 4515: fi
4516:
1.25 moko 4517: # func_echo_all arg...
4518: # Invoke $ECHO with all args, space-separated.
4519: func_echo_all ()
4520: {
4521: $ECHO ""
4522: }
4523:
4524: case "$ECHO" in
1.32 moko 4525: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4526: $as_echo "printf" >&6; } ;;
4527: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4528: $as_echo "print -r" >&6; } ;;
4529: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4530: $as_echo "cat" >&6; } ;;
1.25 moko 4531: esac
4532:
4533:
4534:
4535:
4536:
4537:
4538:
4539:
4540:
4541:
4542:
4543:
1.1 parser 4544:
1.25 moko 4545:
1.32 moko 4546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4547: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4548: if ${ac_cv_path_SED+:} false; then :
4549: $as_echo_n "(cached) " >&6
4550: else
4551: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4552: for ac_i in 1 2 3 4 5 6 7; do
4553: ac_script="$ac_script$as_nl$ac_script"
4554: done
4555: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4556: { ac_script=; unset ac_script;}
4557: if test -z "$SED"; then
4558: ac_path_SED_found=false
4559: # Loop through the user's path and test for each of PROGNAME-LIST
4560: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.25 moko 4561: for as_dir in $PATH
4562: do
4563: IFS=$as_save_IFS
4564: test -z "$as_dir" && as_dir=.
1.32 moko 4565: for ac_prog in sed gsed; do
1.25 moko 4566: for ac_exec_ext in '' $ac_executable_extensions; do
1.32 moko 4567: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.35 moko 4568: as_fn_executable_p "$ac_path_SED" || continue
1.32 moko 4569: # Check for GNU ac_path_SED and select it if it is found.
4570: # Check for GNU $ac_path_SED
4571: case `"$ac_path_SED" --version 2>&1` in
4572: *GNU*)
4573: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4574: *)
4575: ac_count=0
4576: $as_echo_n 0123456789 >"conftest.in"
4577: while :
4578: do
4579: cat "conftest.in" "conftest.in" >"conftest.tmp"
4580: mv "conftest.tmp" "conftest.in"
4581: cp "conftest.in" "conftest.nl"
4582: $as_echo '' >> "conftest.nl"
4583: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4584: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4585: as_fn_arith $ac_count + 1 && ac_count=$as_val
4586: if test $ac_count -gt ${ac_path_SED_max-0}; then
4587: # Best one so far, save it but keep looking for a better one
4588: ac_cv_path_SED="$ac_path_SED"
4589: ac_path_SED_max=$ac_count
4590: fi
4591: # 10*(2^10) chars as input seems more than enough
4592: test $ac_count -gt 10 && break
4593: done
4594: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4595: esac
4596:
4597: $ac_path_SED_found && break 3
1.25 moko 4598: done
4599: done
1.32 moko 4600: done
1.25 moko 4601: IFS=$as_save_IFS
1.32 moko 4602: if test -z "$ac_cv_path_SED"; then
4603: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.25 moko 4604: fi
1.32 moko 4605: else
4606: ac_cv_path_SED=$SED
1.25 moko 4607: fi
4608:
1.32 moko 4609: fi
4610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4611: $as_echo "$ac_cv_path_SED" >&6; }
4612: SED="$ac_cv_path_SED"
4613: rm -f conftest.sed
1.25 moko 4614:
4615: test -z "$SED" && SED=sed
4616: Xsed="$SED -e 1s/^X//"
4617:
4618:
4619:
4620:
4621:
4622:
4623:
4624:
4625:
4626:
4627:
1.32 moko 4628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4629: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4630: if ${ac_cv_path_GREP+:} false; then :
4631: $as_echo_n "(cached) " >&6
4632: else
4633: if test -z "$GREP"; then
4634: ac_path_GREP_found=false
4635: # Loop through the user's path and test for each of PROGNAME-LIST
4636: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4638: do
4639: IFS=$as_save_IFS
4640: test -z "$as_dir" && as_dir=.
4641: for ac_prog in grep ggrep; do
4642: for ac_exec_ext in '' $ac_executable_extensions; do
4643: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.35 moko 4644: as_fn_executable_p "$ac_path_GREP" || continue
1.32 moko 4645: # Check for GNU ac_path_GREP and select it if it is found.
4646: # Check for GNU $ac_path_GREP
4647: case `"$ac_path_GREP" --version 2>&1` in
4648: *GNU*)
4649: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4650: *)
4651: ac_count=0
4652: $as_echo_n 0123456789 >"conftest.in"
4653: while :
4654: do
4655: cat "conftest.in" "conftest.in" >"conftest.tmp"
4656: mv "conftest.tmp" "conftest.in"
4657: cp "conftest.in" "conftest.nl"
4658: $as_echo 'GREP' >> "conftest.nl"
4659: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4660: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4661: as_fn_arith $ac_count + 1 && ac_count=$as_val
4662: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4663: # Best one so far, save it but keep looking for a better one
4664: ac_cv_path_GREP="$ac_path_GREP"
4665: ac_path_GREP_max=$ac_count
1.25 moko 4666: fi
1.32 moko 4667: # 10*(2^10) chars as input seems more than enough
4668: test $ac_count -gt 10 && break
4669: done
4670: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4671: esac
4672:
4673: $ac_path_GREP_found && break 3
4674: done
4675: done
4676: done
4677: IFS=$as_save_IFS
4678: if test -z "$ac_cv_path_GREP"; then
4679: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4680: fi
4681: else
4682: ac_cv_path_GREP=$GREP
4683: fi
4684:
1.25 moko 4685: fi
1.32 moko 4686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4687: $as_echo "$ac_cv_path_GREP" >&6; }
4688: GREP="$ac_cv_path_GREP"
4689:
4690:
4691: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4692: $as_echo_n "checking for egrep... " >&6; }
4693: if ${ac_cv_path_EGREP+:} false; then :
4694: $as_echo_n "(cached) " >&6
4695: else
4696: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4697: then ac_cv_path_EGREP="$GREP -E"
4698: else
4699: if test -z "$EGREP"; then
4700: ac_path_EGREP_found=false
4701: # Loop through the user's path and test for each of PROGNAME-LIST
4702: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4704: do
4705: IFS=$as_save_IFS
4706: test -z "$as_dir" && as_dir=.
4707: for ac_prog in egrep; do
4708: for ac_exec_ext in '' $ac_executable_extensions; do
4709: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.35 moko 4710: as_fn_executable_p "$ac_path_EGREP" || continue
1.32 moko 4711: # Check for GNU ac_path_EGREP and select it if it is found.
4712: # Check for GNU $ac_path_EGREP
4713: case `"$ac_path_EGREP" --version 2>&1` in
4714: *GNU*)
4715: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4716: *)
4717: ac_count=0
4718: $as_echo_n 0123456789 >"conftest.in"
4719: while :
4720: do
4721: cat "conftest.in" "conftest.in" >"conftest.tmp"
4722: mv "conftest.tmp" "conftest.in"
4723: cp "conftest.in" "conftest.nl"
4724: $as_echo 'EGREP' >> "conftest.nl"
4725: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4726: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4727: as_fn_arith $ac_count + 1 && ac_count=$as_val
4728: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4729: # Best one so far, save it but keep looking for a better one
4730: ac_cv_path_EGREP="$ac_path_EGREP"
4731: ac_path_EGREP_max=$ac_count
4732: fi
4733: # 10*(2^10) chars as input seems more than enough
4734: test $ac_count -gt 10 && break
4735: done
4736: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4737: esac
1.25 moko 4738:
1.32 moko 4739: $ac_path_EGREP_found && break 3
4740: done
4741: done
4742: done
4743: IFS=$as_save_IFS
4744: if test -z "$ac_cv_path_EGREP"; then
4745: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4746: fi
4747: else
4748: ac_cv_path_EGREP=$EGREP
4749: fi
1.25 moko 4750:
1.32 moko 4751: fi
4752: fi
4753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4754: $as_echo "$ac_cv_path_EGREP" >&6; }
4755: EGREP="$ac_cv_path_EGREP"
4756:
4757:
4758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4759: $as_echo_n "checking for fgrep... " >&6; }
4760: if ${ac_cv_path_FGREP+:} false; then :
4761: $as_echo_n "(cached) " >&6
4762: else
4763: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4764: then ac_cv_path_FGREP="$GREP -F"
4765: else
4766: if test -z "$FGREP"; then
4767: ac_path_FGREP_found=false
4768: # Loop through the user's path and test for each of PROGNAME-LIST
4769: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4771: do
4772: IFS=$as_save_IFS
4773: test -z "$as_dir" && as_dir=.
4774: for ac_prog in fgrep; do
4775: for ac_exec_ext in '' $ac_executable_extensions; do
4776: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.35 moko 4777: as_fn_executable_p "$ac_path_FGREP" || continue
1.32 moko 4778: # Check for GNU ac_path_FGREP and select it if it is found.
4779: # Check for GNU $ac_path_FGREP
4780: case `"$ac_path_FGREP" --version 2>&1` in
4781: *GNU*)
4782: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4783: *)
4784: ac_count=0
4785: $as_echo_n 0123456789 >"conftest.in"
4786: while :
4787: do
4788: cat "conftest.in" "conftest.in" >"conftest.tmp"
4789: mv "conftest.tmp" "conftest.in"
4790: cp "conftest.in" "conftest.nl"
4791: $as_echo 'FGREP' >> "conftest.nl"
4792: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4793: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4794: as_fn_arith $ac_count + 1 && ac_count=$as_val
4795: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4796: # Best one so far, save it but keep looking for a better one
4797: ac_cv_path_FGREP="$ac_path_FGREP"
4798: ac_path_FGREP_max=$ac_count
1.25 moko 4799: fi
1.32 moko 4800: # 10*(2^10) chars as input seems more than enough
4801: test $ac_count -gt 10 && break
4802: done
4803: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4804: esac
4805:
4806: $ac_path_FGREP_found && break 3
4807: done
4808: done
4809: done
4810: IFS=$as_save_IFS
4811: if test -z "$ac_cv_path_FGREP"; then
4812: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4813: fi
4814: else
4815: ac_cv_path_FGREP=$FGREP
4816: fi
4817:
4818: fi
1.25 moko 4819: fi
1.32 moko 4820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4821: $as_echo "$ac_cv_path_FGREP" >&6; }
4822: FGREP="$ac_cv_path_FGREP"
1.25 moko 4823:
4824:
4825: test -z "$GREP" && GREP=grep
4826:
4827:
4828:
4829:
4830:
4831:
4832:
4833:
4834:
4835:
4836:
4837:
4838:
4839:
4840:
4841:
4842:
4843:
4844:
1.32 moko 4845: # Check whether --with-gnu-ld was given.
4846: if test "${with_gnu_ld+set}" = set; then :
4847: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.1 parser 4848: else
4849: with_gnu_ld=no
1.32 moko 4850: fi
4851:
1.1 parser 4852: ac_prog=ld
1.11 paf 4853: if test "$GCC" = yes; then
1.1 parser 4854: # Check if gcc -print-prog-name=ld gives a path.
1.32 moko 4855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4856: $as_echo_n "checking for ld used by $CC... " >&6; }
1.11 paf 4857: case $host in
4858: *-*-mingw*)
4859: # gcc leaves a trailing carriage return which upsets mingw
4860: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4861: *)
4862: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4863: esac
4864: case $ac_prog in
1.1 parser 4865: # Accept absolute paths.
1.25 moko 4866: [\\/]* | ?:[\\/]*)
1.1 parser 4867: re_direlt='/[^/][^/]*/\.\./'
1.25 moko 4868: # Canonicalize the pathname of ld
4869: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4870: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4871: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.1 parser 4872: done
4873: test -z "$LD" && LD="$ac_prog"
4874: ;;
4875: "")
4876: # If it fails, then pretend we aren't using GCC.
4877: ac_prog=ld
4878: ;;
4879: *)
4880: # If it is relative, then search for the first ld in PATH.
4881: with_gnu_ld=unknown
4882: ;;
4883: esac
4884: elif test "$with_gnu_ld" = yes; then
1.32 moko 4885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4886: $as_echo_n "checking for GNU ld... " >&6; }
1.1 parser 4887: else
1.32 moko 4888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4889: $as_echo_n "checking for non-GNU ld... " >&6; }
1.1 parser 4890: fi
1.32 moko 4891: if ${lt_cv_path_LD+:} false; then :
4892: $as_echo_n "(cached) " >&6
1.1 parser 4893: else
4894: if test -z "$LD"; then
1.25 moko 4895: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 4896: for ac_dir in $PATH; do
1.25 moko 4897: IFS="$lt_save_ifs"
1.1 parser 4898: test -z "$ac_dir" && ac_dir=.
4899: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.11 paf 4900: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 4901: # Check to see if the program is GNU ld. I'd rather use --version,
1.25 moko 4902: # but apparently some variants of GNU ld only accept -v.
1.1 parser 4903: # Break only if it was the GNU/non-GNU ld that we prefer.
1.25 moko 4904: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4905: *GNU* | *'with BFD'*)
1.1 parser 4906: test "$with_gnu_ld" != no && break
1.25 moko 4907: ;;
4908: *)
1.1 parser 4909: test "$with_gnu_ld" != yes && break
1.25 moko 4910: ;;
4911: esac
1.1 parser 4912: fi
4913: done
1.25 moko 4914: IFS="$lt_save_ifs"
1.1 parser 4915: else
1.11 paf 4916: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 4917: fi
4918: fi
4919:
1.11 paf 4920: LD="$lt_cv_path_LD"
1.1 parser 4921: if test -n "$LD"; then
1.32 moko 4922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4923: $as_echo "$LD" >&6; }
1.1 parser 4924: else
1.32 moko 4925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926: $as_echo "no" >&6; }
1.1 parser 4927: fi
1.32 moko 4928: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4929: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4930: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4931: if ${lt_cv_prog_gnu_ld+:} false; then :
4932: $as_echo_n "(cached) " >&6
1.1 parser 4933: else
1.25 moko 4934: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4935: case `$LD -v 2>&1 </dev/null` in
4936: *GNU* | *'with BFD'*)
1.11 paf 4937: lt_cv_prog_gnu_ld=yes
1.25 moko 4938: ;;
4939: *)
1.11 paf 4940: lt_cv_prog_gnu_ld=no
1.25 moko 4941: ;;
4942: esac
1.1 parser 4943: fi
1.32 moko 4944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4945: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.11 paf 4946: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 4947:
4948:
4949:
1.25 moko 4950:
4951:
4952:
4953:
4954:
4955:
1.32 moko 4956: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4957: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4958: if ${lt_cv_path_NM+:} false; then :
4959: $as_echo_n "(cached) " >&6
1.1 parser 4960: else
4961: if test -n "$NM"; then
4962: # Let the user override the test.
1.11 paf 4963: lt_cv_path_NM="$NM"
1.1 parser 4964: else
1.25 moko 4965: lt_nm_to_check="${ac_tool_prefix}nm"
4966: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4967: lt_nm_to_check="$lt_nm_to_check nm"
4968: fi
4969: for lt_tmp_nm in $lt_nm_to_check; do
4970: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4971: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4972: IFS="$lt_save_ifs"
4973: test -z "$ac_dir" && ac_dir=.
4974: tmp_nm="$ac_dir/$lt_tmp_nm"
4975: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4976: # Check to see if the nm accepts a BSD-compat flag.
4977: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4978: # nm: unknown option "B" ignored
4979: # Tru64's nm complains that /dev/null is an invalid object file
4980: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4981: */dev/null* | *'Invalid file or object type'*)
4982: lt_cv_path_NM="$tmp_nm -B"
4983: break
4984: ;;
4985: *)
4986: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4987: */dev/null*)
4988: lt_cv_path_NM="$tmp_nm -p"
4989: break
4990: ;;
4991: *)
4992: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4993: continue # so that we can try to find one that supports BSD flags
4994: ;;
4995: esac
4996: ;;
4997: esac
1.1 parser 4998: fi
1.25 moko 4999: done
5000: IFS="$lt_save_ifs"
1.1 parser 5001: done
1.25 moko 5002: : ${lt_cv_path_NM=no}
1.1 parser 5003: fi
5004: fi
1.32 moko 5005: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5006: $as_echo "$lt_cv_path_NM" >&6; }
1.25 moko 5007: if test "$lt_cv_path_NM" != "no"; then
5008: NM="$lt_cv_path_NM"
5009: else
5010: # Didn't find any BSD compatible name lister, look for dumpbin.
5011: if test -n "$DUMPBIN"; then :
5012: # Let the user override the test.
5013: else
5014: if test -n "$ac_tool_prefix"; then
5015: for ac_prog in dumpbin "link -dump"
5016: do
5017: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5018: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.32 moko 5019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020: $as_echo_n "checking for $ac_word... " >&6; }
5021: if ${ac_cv_prog_DUMPBIN+:} false; then :
5022: $as_echo_n "(cached) " >&6
1.25 moko 5023: else
5024: if test -n "$DUMPBIN"; then
5025: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5026: else
5027: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028: for as_dir in $PATH
5029: do
5030: IFS=$as_save_IFS
5031: test -z "$as_dir" && as_dir=.
1.32 moko 5032: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 5033: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 5034: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.32 moko 5035: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5036: break 2
5037: fi
5038: done
1.32 moko 5039: done
5040: IFS=$as_save_IFS
1.1 parser 5041:
1.25 moko 5042: fi
5043: fi
5044: DUMPBIN=$ac_cv_prog_DUMPBIN
5045: if test -n "$DUMPBIN"; then
1.32 moko 5046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5047: $as_echo "$DUMPBIN" >&6; }
1.25 moko 5048: else
1.32 moko 5049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050: $as_echo "no" >&6; }
1.25 moko 5051: fi
1.1 parser 5052:
1.32 moko 5053:
1.25 moko 5054: test -n "$DUMPBIN" && break
5055: done
5056: fi
5057: if test -z "$DUMPBIN"; then
5058: ac_ct_DUMPBIN=$DUMPBIN
5059: for ac_prog in dumpbin "link -dump"
5060: do
5061: # Extract the first word of "$ac_prog", so it can be a program name with args.
5062: set dummy $ac_prog; ac_word=$2
1.32 moko 5063: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064: $as_echo_n "checking for $ac_word... " >&6; }
5065: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5066: $as_echo_n "(cached) " >&6
1.1 parser 5067: else
1.25 moko 5068: if test -n "$ac_ct_DUMPBIN"; then
5069: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5070: else
1.11 paf 5071: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072: for as_dir in $PATH
5073: do
5074: IFS=$as_save_IFS
5075: test -z "$as_dir" && as_dir=.
1.32 moko 5076: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 5077: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 5078: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.32 moko 5079: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5080: break 2
5081: fi
5082: done
1.32 moko 5083: done
5084: IFS=$as_save_IFS
1.25 moko 5085:
5086: fi
5087: fi
5088: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5089: if test -n "$ac_ct_DUMPBIN"; then
1.32 moko 5090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5091: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.25 moko 5092: else
1.32 moko 5093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094: $as_echo "no" >&6; }
1.25 moko 5095: fi
5096:
1.32 moko 5097:
1.25 moko 5098: test -n "$ac_ct_DUMPBIN" && break
1.11 paf 5099: done
5100:
1.32 moko 5101: if test "x$ac_ct_DUMPBIN" = x; then
5102: DUMPBIN=":"
5103: else
5104: case $cross_compiling:$ac_tool_warned in
5105: yes:)
5106: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5107: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5108: ac_tool_warned=yes ;;
5109: esac
5110: DUMPBIN=$ac_ct_DUMPBIN
5111: fi
1.25 moko 5112: fi
1.11 paf 5113:
1.25 moko 5114: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5115: *COFF*)
5116: DUMPBIN="$DUMPBIN -symbols"
5117: ;;
5118: *)
5119: DUMPBIN=:
5120: ;;
5121: esac
5122: fi
1.11 paf 5123:
1.25 moko 5124: if test "$DUMPBIN" != ":"; then
5125: NM="$DUMPBIN"
5126: fi
1.1 parser 5127: fi
1.25 moko 5128: test -z "$NM" && NM=nm
5129:
5130:
5131:
5132:
5133:
1.1 parser 5134:
1.32 moko 5135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5136: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5137: if ${lt_cv_nm_interface+:} false; then :
5138: $as_echo_n "(cached) " >&6
1.7 paf 5139: else
1.25 moko 5140: lt_cv_nm_interface="BSD nm"
5141: echo "int some_variable = 0;" > conftest.$ac_ext
5142: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5143: (eval "$ac_compile" 2>conftest.err)
5144: cat conftest.err >&5
5145: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5146: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5147: cat conftest.err >&5
5148: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5149: cat conftest.out >&5
5150: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5151: lt_cv_nm_interface="MS dumpbin"
5152: fi
5153: rm -f conftest*
1.7 paf 5154: fi
1.32 moko 5155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5156: $as_echo "$lt_cv_nm_interface" >&6; }
1.11 paf 5157:
1.32 moko 5158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5159: $as_echo_n "checking whether ln -s works... " >&6; }
1.11 paf 5160: LN_S=$as_ln_s
5161: if test "$LN_S" = "ln -s"; then
1.32 moko 5162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5163: $as_echo "yes" >&6; }
1.11 paf 5164: else
1.32 moko 5165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5166: $as_echo "no, using $LN_S" >&6; }
1.11 paf 5167: fi
5168:
1.25 moko 5169: # find the maximum length of command line arguments
1.32 moko 5170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5171: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5172: if ${lt_cv_sys_max_cmd_len+:} false; then :
5173: $as_echo_n "(cached) " >&6
1.11 paf 5174: else
1.25 moko 5175: i=0
5176: teststring="ABCD"
5177:
5178: case $build_os in
5179: msdosdjgpp*)
5180: # On DJGPP, this test can blow up pretty badly due to problems in libc
5181: # (any single argument exceeding 2000 bytes causes a buffer overrun
5182: # during glob expansion). Even if it were fixed, the result of this
5183: # check would be larger than it should be.
5184: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5185: ;;
1.11 paf 5186:
1.25 moko 5187: gnu*)
5188: # Under GNU Hurd, this test is not required because there is
5189: # no limit to the length of command line arguments.
5190: # Libtool will interpret -1 as no limit whatsoever
5191: lt_cv_sys_max_cmd_len=-1;
5192: ;;
1.7 paf 5193:
1.25 moko 5194: cygwin* | mingw* | cegcc*)
5195: # On Win9x/ME, this test blows up -- it succeeds, but takes
5196: # about 5 minutes as the teststring grows exponentially.
5197: # Worse, since 9x/ME are not pre-emptively multitasking,
5198: # you end up with a "frozen" computer, even though with patience
5199: # the test eventually succeeds (with a max line length of 256k).
5200: # Instead, let's just punt: use the minimum linelength reported by
5201: # all of the supported platforms: 8192 (on NT/2K/XP).
5202: lt_cv_sys_max_cmd_len=8192;
5203: ;;
1.1 parser 5204:
1.25 moko 5205: mint*)
5206: # On MiNT this can take a long time and run out of memory.
5207: lt_cv_sys_max_cmd_len=8192;
5208: ;;
1.1 parser 5209:
1.25 moko 5210: amigaos*)
5211: # On AmigaOS with pdksh, this test takes hours, literally.
5212: # So we just punt and use a minimum line length of 8192.
5213: lt_cv_sys_max_cmd_len=8192;
5214: ;;
1.1 parser 5215:
1.25 moko 5216: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5217: # This has been around since 386BSD, at least. Likely further.
5218: if test -x /sbin/sysctl; then
5219: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5220: elif test -x /usr/sbin/sysctl; then
5221: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5222: else
5223: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5224: fi
5225: # And add a safety zone
5226: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5227: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1.11 paf 5228: ;;
1.25 moko 5229:
5230: interix*)
5231: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5232: lt_cv_sys_max_cmd_len=196608
1.11 paf 5233: ;;
1.1 parser 5234:
1.25 moko 5235: os2*)
5236: # The test takes a long time on OS/2.
5237: lt_cv_sys_max_cmd_len=8192
5238: ;;
5239:
5240: osf*)
5241: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5242: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5243: # nice to cause kernel panics so lets avoid the loop below.
5244: # First set a reasonable default.
5245: lt_cv_sys_max_cmd_len=16384
5246: #
5247: if test -x /sbin/sysconfig; then
5248: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5249: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5250: esac
5251: fi
5252: ;;
5253: sco3.2v5*)
5254: lt_cv_sys_max_cmd_len=102400
5255: ;;
5256: sysv5* | sco5v6* | sysv4.2uw2*)
5257: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5258: if test -n "$kargmax"; then
5259: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5260: else
5261: lt_cv_sys_max_cmd_len=32768
5262: fi
5263: ;;
5264: *)
5265: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5266: if test -n "$lt_cv_sys_max_cmd_len"; then
5267: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5268: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5269: else
5270: # Make teststring a little bigger before we do anything with it.
5271: # a 1K string should be a reasonable start.
5272: for i in 1 2 3 4 5 6 7 8 ; do
5273: teststring=$teststring$teststring
5274: done
5275: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5276: # If test is not a shell built-in, we'll probably end up computing a
5277: # maximum length that is only half of the actual maximum length, but
5278: # we can't tell.
5279: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5280: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5281: test $i != 17 # 1/2 MB should be enough
5282: do
5283: i=`expr $i + 1`
5284: teststring=$teststring$teststring
5285: done
5286: # Only check the string length outside the loop.
5287: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5288: teststring=
5289: # Add a significant safety factor because C++ compilers can tack on
5290: # massive amounts of additional arguments before passing them to the
5291: # linker. It appears as though 1/2 is a usable value.
5292: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5293: fi
5294: ;;
5295: esac
5296:
5297: fi
5298:
5299: if test -n $lt_cv_sys_max_cmd_len ; then
1.32 moko 5300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5301: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.25 moko 5302: else
1.32 moko 5303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5304: $as_echo "none" >&6; }
1.25 moko 5305: fi
5306: max_cmd_len=$lt_cv_sys_max_cmd_len
5307:
5308:
5309:
5310:
5311:
5312:
5313: : ${CP="cp -f"}
5314: : ${MV="mv -f"}
5315: : ${RM="rm -f"}
5316:
1.32 moko 5317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5318: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.25 moko 5319: # Try some XSI features
5320: xsi_shell=no
5321: ( _lt_dummy="a/b/c"
5322: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5323: = c,a/b,b/c, \
5324: && eval 'test $(( 1 + 1 )) -eq 2 \
5325: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5326: && xsi_shell=yes
1.32 moko 5327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5328: $as_echo "$xsi_shell" >&6; }
1.25 moko 5329:
5330:
1.32 moko 5331: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5332: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.25 moko 5333: lt_shell_append=no
5334: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5335: >/dev/null 2>&1 \
5336: && lt_shell_append=yes
1.32 moko 5337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5338: $as_echo "$lt_shell_append" >&6; }
1.25 moko 5339:
5340:
5341: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5342: lt_unset=unset
5343: else
5344: lt_unset=false
5345: fi
5346:
5347:
5348:
5349:
5350:
5351: # test EBCDIC or ASCII
5352: case `echo X|tr X '\101'` in
5353: A) # ASCII based system
5354: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5355: lt_SP2NL='tr \040 \012'
5356: lt_NL2SP='tr \015\012 \040\040'
5357: ;;
5358: *) # EBCDIC based system
5359: lt_SP2NL='tr \100 \n'
5360: lt_NL2SP='tr \r\n \100\100'
5361: ;;
5362: esac
5363:
5364:
5365:
5366:
5367:
5368:
5369:
5370:
5371:
1.32 moko 5372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5373: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5374: if ${lt_cv_to_host_file_cmd+:} false; then :
5375: $as_echo_n "(cached) " >&6
1.25 moko 5376: else
5377: case $host in
5378: *-*-mingw* )
5379: case $build in
5380: *-*-mingw* ) # actually msys
5381: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5382: ;;
5383: *-*-cygwin* )
5384: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5385: ;;
5386: * ) # otherwise, assume *nix
5387: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5388: ;;
5389: esac
5390: ;;
5391: *-*-cygwin* )
5392: case $build in
5393: *-*-mingw* ) # actually msys
5394: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5395: ;;
5396: *-*-cygwin* )
5397: lt_cv_to_host_file_cmd=func_convert_file_noop
5398: ;;
5399: * ) # otherwise, assume *nix
5400: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5401: ;;
5402: esac
5403: ;;
5404: * ) # unhandled hosts (and "normal" native builds)
5405: lt_cv_to_host_file_cmd=func_convert_file_noop
5406: ;;
5407: esac
5408:
5409: fi
5410:
5411: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.32 moko 5412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5413: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.25 moko 5414:
5415:
5416:
5417:
5418:
1.32 moko 5419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5420: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5421: if ${lt_cv_to_tool_file_cmd+:} false; then :
5422: $as_echo_n "(cached) " >&6
1.25 moko 5423: else
5424: #assume ordinary cross tools, or native build.
5425: lt_cv_to_tool_file_cmd=func_convert_file_noop
5426: case $host in
5427: *-*-mingw* )
5428: case $build in
5429: *-*-mingw* ) # actually msys
5430: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5431: ;;
5432: esac
5433: ;;
5434: esac
5435:
5436: fi
5437:
5438: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.32 moko 5439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5440: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.25 moko 5441:
5442:
5443:
5444:
5445:
1.32 moko 5446: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5447: $as_echo_n "checking for $LD option to reload object files... " >&6; }
5448: if ${lt_cv_ld_reload_flag+:} false; then :
5449: $as_echo_n "(cached) " >&6
1.25 moko 5450: else
5451: lt_cv_ld_reload_flag='-r'
5452: fi
1.32 moko 5453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5454: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.25 moko 5455: reload_flag=$lt_cv_ld_reload_flag
5456: case $reload_flag in
5457: "" | " "*) ;;
5458: *) reload_flag=" $reload_flag" ;;
5459: esac
5460: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5461: case $host_os in
5462: cygwin* | mingw* | pw32* | cegcc*)
5463: if test "$GCC" != yes; then
5464: reload_cmds=false
5465: fi
5466: ;;
5467: darwin*)
5468: if test "$GCC" = yes; then
5469: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5470: else
5471: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5472: fi
5473: ;;
5474: esac
5475:
5476:
5477:
5478:
5479:
5480:
5481:
5482:
5483:
5484: if test -n "$ac_tool_prefix"; then
5485: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5486: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.32 moko 5487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488: $as_echo_n "checking for $ac_word... " >&6; }
5489: if ${ac_cv_prog_OBJDUMP+:} false; then :
5490: $as_echo_n "(cached) " >&6
1.25 moko 5491: else
5492: if test -n "$OBJDUMP"; then
5493: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5494: else
5495: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496: for as_dir in $PATH
5497: do
5498: IFS=$as_save_IFS
5499: test -z "$as_dir" && as_dir=.
1.32 moko 5500: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 5501: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 5502: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.32 moko 5503: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5504: break 2
5505: fi
5506: done
1.32 moko 5507: done
5508: IFS=$as_save_IFS
1.25 moko 5509:
5510: fi
5511: fi
5512: OBJDUMP=$ac_cv_prog_OBJDUMP
5513: if test -n "$OBJDUMP"; then
1.32 moko 5514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5515: $as_echo "$OBJDUMP" >&6; }
1.25 moko 5516: else
1.32 moko 5517: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518: $as_echo "no" >&6; }
1.25 moko 5519: fi
5520:
1.32 moko 5521:
1.25 moko 5522: fi
5523: if test -z "$ac_cv_prog_OBJDUMP"; then
5524: ac_ct_OBJDUMP=$OBJDUMP
5525: # Extract the first word of "objdump", so it can be a program name with args.
5526: set dummy objdump; ac_word=$2
1.32 moko 5527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528: $as_echo_n "checking for $ac_word... " >&6; }
5529: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5530: $as_echo_n "(cached) " >&6
1.25 moko 5531: else
5532: if test -n "$ac_ct_OBJDUMP"; then
5533: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5534: else
5535: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536: for as_dir in $PATH
5537: do
5538: IFS=$as_save_IFS
5539: test -z "$as_dir" && as_dir=.
1.32 moko 5540: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 5541: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 5542: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.32 moko 5543: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5544: break 2
5545: fi
5546: done
1.32 moko 5547: done
5548: IFS=$as_save_IFS
1.25 moko 5549:
5550: fi
5551: fi
5552: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5553: if test -n "$ac_ct_OBJDUMP"; then
1.32 moko 5554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5555: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.25 moko 5556: else
1.32 moko 5557: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558: $as_echo "no" >&6; }
1.25 moko 5559: fi
5560:
1.32 moko 5561: if test "x$ac_ct_OBJDUMP" = x; then
5562: OBJDUMP="false"
5563: else
5564: case $cross_compiling:$ac_tool_warned in
5565: yes:)
5566: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5568: ac_tool_warned=yes ;;
5569: esac
5570: OBJDUMP=$ac_ct_OBJDUMP
5571: fi
1.25 moko 5572: else
5573: OBJDUMP="$ac_cv_prog_OBJDUMP"
5574: fi
5575:
5576: test -z "$OBJDUMP" && OBJDUMP=objdump
5577:
5578:
5579:
5580:
5581:
5582:
1.32 moko 5583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5584: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5585: if ${lt_cv_deplibs_check_method+:} false; then :
5586: $as_echo_n "(cached) " >&6
1.25 moko 5587: else
5588: lt_cv_file_magic_cmd='$MAGIC_CMD'
5589: lt_cv_file_magic_test_file=
5590: lt_cv_deplibs_check_method='unknown'
5591: # Need to set the preceding variable on all platforms that support
5592: # interlibrary dependencies.
5593: # 'none' -- dependencies not supported.
5594: # `unknown' -- same as none, but documents that we really don't know.
5595: # 'pass_all' -- all dependencies passed with no checks.
5596: # 'test_compile' -- check by making test program.
5597: # 'file_magic [[regex]]' -- check by looking for files in library path
5598: # which responds to the $file_magic_cmd with a given extended regex.
5599: # If you have `file' or equivalent on your system and you're not sure
5600: # whether `pass_all' will *always* work, you probably want this one.
5601:
5602: case $host_os in
5603: aix[4-9]*)
5604: lt_cv_deplibs_check_method=pass_all
5605: ;;
5606:
5607: beos*)
5608: lt_cv_deplibs_check_method=pass_all
5609: ;;
5610:
5611: bsdi[45]*)
5612: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5613: lt_cv_file_magic_cmd='/usr/bin/file -L'
5614: lt_cv_file_magic_test_file=/shlib/libc.so
5615: ;;
5616:
5617: cygwin*)
5618: # func_win32_libid is a shell function defined in ltmain.sh
5619: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5620: lt_cv_file_magic_cmd='func_win32_libid'
5621: ;;
5622:
5623: mingw* | pw32*)
5624: # Base MSYS/MinGW do not provide the 'file' command needed by
5625: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5626: # unless we find 'file', for example because we are cross-compiling.
5627: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5628: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5629: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5630: lt_cv_file_magic_cmd='func_win32_libid'
5631: else
5632: # Keep this pattern in sync with the one in func_win32_libid.
5633: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5634: lt_cv_file_magic_cmd='$OBJDUMP -f'
5635: fi
5636: ;;
5637:
5638: cegcc*)
5639: # use the weaker test based on 'objdump'. See mingw*.
5640: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5641: lt_cv_file_magic_cmd='$OBJDUMP -f'
5642: ;;
5643:
5644: darwin* | rhapsody*)
5645: lt_cv_deplibs_check_method=pass_all
5646: ;;
5647:
5648: freebsd* | dragonfly*)
5649: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.11 paf 5650: case $host_cpu in
5651: i*86 )
5652: # Not sure whether the presence of OpenBSD here was a mistake.
5653: # Let's accept both of them until this is cleared up.
1.25 moko 5654: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.11 paf 5655: lt_cv_file_magic_cmd=/usr/bin/file
5656: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 5657: ;;
5658: esac
1.11 paf 5659: else
5660: lt_cv_deplibs_check_method=pass_all
1.1 parser 5661: fi
5662: ;;
5663:
1.11 paf 5664: gnu*)
5665: lt_cv_deplibs_check_method=pass_all
5666: ;;
1.1 parser 5667:
1.25 moko 5668: haiku*)
5669: lt_cv_deplibs_check_method=pass_all
1.11 paf 5670: ;;
1.1 parser 5671:
1.25 moko 5672: hpux10.20* | hpux11*)
5673: lt_cv_file_magic_cmd=/usr/bin/file
5674: case $host_cpu in
5675: ia64*)
5676: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5677: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5678: ;;
5679: hppa*64*)
5680: 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]'
5681: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.11 paf 5682: ;;
5683: *)
1.25 moko 5684: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5685: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.11 paf 5686: ;;
5687: esac
1.25 moko 5688: ;;
5689:
5690: interix[3-9]*)
5691: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5692: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5693: ;;
5694:
5695: irix5* | irix6* | nonstopux*)
5696: case $LD in
5697: *-32|*"-32 ") libmagic=32-bit;;
5698: *-n32|*"-n32 ") libmagic=N32;;
5699: *-64|*"-64 ") libmagic=64-bit;;
5700: *) libmagic=never-match;;
5701: esac
1.11 paf 5702: lt_cv_deplibs_check_method=pass_all
5703: ;;
5704:
1.25 moko 5705: # This must be glibc/ELF.
5706: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5707: lt_cv_deplibs_check_method=pass_all
1.11 paf 5708: ;;
5709:
5710: netbsd*)
1.25 moko 5711: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5712: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.11 paf 5713: else
1.25 moko 5714: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.11 paf 5715: fi
5716: ;;
5717:
5718: newos6*)
5719: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5720: lt_cv_file_magic_cmd=/usr/bin/file
5721: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5722: ;;
5723:
1.25 moko 5724: *nto* | *qnx*)
5725: lt_cv_deplibs_check_method=pass_all
5726: ;;
5727:
1.11 paf 5728: openbsd*)
1.25 moko 5729: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5730: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.11 paf 5731: else
1.25 moko 5732: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.11 paf 5733: fi
5734: ;;
5735:
5736: osf3* | osf4* | osf5*)
5737: lt_cv_deplibs_check_method=pass_all
5738: ;;
5739:
1.25 moko 5740: rdos*)
1.11 paf 5741: lt_cv_deplibs_check_method=pass_all
5742: ;;
5743:
5744: solaris*)
5745: lt_cv_deplibs_check_method=pass_all
5746: ;;
5747:
1.25 moko 5748: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.11 paf 5749: lt_cv_deplibs_check_method=pass_all
5750: ;;
5751:
1.25 moko 5752: sysv4 | sysv4.3*)
1.11 paf 5753: case $host_vendor in
5754: motorola)
5755: 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]'
5756: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5757: ;;
5758: ncr)
5759: lt_cv_deplibs_check_method=pass_all
5760: ;;
5761: sequent)
5762: lt_cv_file_magic_cmd='/bin/file'
5763: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5764: ;;
5765: sni)
5766: lt_cv_file_magic_cmd='/bin/file'
5767: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5768: lt_cv_file_magic_test_file=/lib/libc.so
5769: ;;
5770: siemens)
5771: lt_cv_deplibs_check_method=pass_all
5772: ;;
1.25 moko 5773: pc)
5774: lt_cv_deplibs_check_method=pass_all
5775: ;;
1.11 paf 5776: esac
5777: ;;
1.25 moko 5778:
5779: tpf*)
5780: lt_cv_deplibs_check_method=pass_all
5781: ;;
5782: esac
1.11 paf 5783:
5784: fi
1.32 moko 5785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5786: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.25 moko 5787:
5788: file_magic_glob=
5789: want_nocaseglob=no
5790: if test "$build" = "$host"; then
5791: case $host_os in
5792: mingw* | pw32*)
5793: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5794: want_nocaseglob=yes
5795: else
5796: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5797: fi
5798: ;;
5799: esac
5800: fi
5801:
1.11 paf 5802: file_magic_cmd=$lt_cv_file_magic_cmd
5803: deplibs_check_method=$lt_cv_deplibs_check_method
1.25 moko 5804: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5805:
5806:
5807:
1.11 paf 5808:
5809:
5810:
5811:
5812:
5813:
5814:
5815:
1.25 moko 5816:
5817:
5818:
5819:
5820:
5821:
5822:
5823:
5824:
5825:
5826:
5827: if test -n "$ac_tool_prefix"; then
5828: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5829: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.32 moko 5830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831: $as_echo_n "checking for $ac_word... " >&6; }
5832: if ${ac_cv_prog_DLLTOOL+:} false; then :
5833: $as_echo_n "(cached) " >&6
1.25 moko 5834: else
5835: if test -n "$DLLTOOL"; then
5836: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5837: else
5838: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839: for as_dir in $PATH
5840: do
5841: IFS=$as_save_IFS
5842: test -z "$as_dir" && as_dir=.
1.32 moko 5843: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 5844: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 5845: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.32 moko 5846: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5847: break 2
5848: fi
5849: done
1.32 moko 5850: done
5851: IFS=$as_save_IFS
1.25 moko 5852:
5853: fi
5854: fi
5855: DLLTOOL=$ac_cv_prog_DLLTOOL
5856: if test -n "$DLLTOOL"; then
1.32 moko 5857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5858: $as_echo "$DLLTOOL" >&6; }
1.25 moko 5859: else
1.32 moko 5860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861: $as_echo "no" >&6; }
1.25 moko 5862: fi
5863:
1.32 moko 5864:
1.25 moko 5865: fi
5866: if test -z "$ac_cv_prog_DLLTOOL"; then
5867: ac_ct_DLLTOOL=$DLLTOOL
5868: # Extract the first word of "dlltool", so it can be a program name with args.
5869: set dummy dlltool; ac_word=$2
1.32 moko 5870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871: $as_echo_n "checking for $ac_word... " >&6; }
5872: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5873: $as_echo_n "(cached) " >&6
1.11 paf 5874: else
1.25 moko 5875: if test -n "$ac_ct_DLLTOOL"; then
5876: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5877: else
5878: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879: for as_dir in $PATH
5880: do
5881: IFS=$as_save_IFS
5882: test -z "$as_dir" && as_dir=.
1.32 moko 5883: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 5884: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 5885: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.32 moko 5886: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5887: break 2
5888: fi
5889: done
1.32 moko 5890: done
5891: IFS=$as_save_IFS
1.25 moko 5892:
5893: fi
5894: fi
5895: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5896: if test -n "$ac_ct_DLLTOOL"; then
1.32 moko 5897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5898: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.25 moko 5899: else
1.32 moko 5900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901: $as_echo "no" >&6; }
1.25 moko 5902: fi
5903:
1.32 moko 5904: if test "x$ac_ct_DLLTOOL" = x; then
5905: DLLTOOL="false"
5906: else
5907: case $cross_compiling:$ac_tool_warned in
5908: yes:)
5909: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5910: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5911: ac_tool_warned=yes ;;
5912: esac
5913: DLLTOOL=$ac_ct_DLLTOOL
5914: fi
1.25 moko 5915: else
5916: DLLTOOL="$ac_cv_prog_DLLTOOL"
5917: fi
5918:
5919: test -z "$DLLTOOL" && DLLTOOL=dlltool
5920:
1.11 paf 5921:
5922:
5923:
5924:
5925:
5926:
1.32 moko 5927: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5928: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5929: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5930: $as_echo_n "(cached) " >&6
1.25 moko 5931: else
5932: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.11 paf 5933:
5934: case $host_os in
1.25 moko 5935: cygwin* | mingw* | pw32* | cegcc*)
5936: # two different shell functions defined in ltmain.sh
5937: # decide which to use based on capabilities of $DLLTOOL
5938: case `$DLLTOOL --help 2>&1` in
5939: *--identify-strict*)
5940: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5941: ;;
5942: *)
5943: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5944: ;;
5945: esac
1.11 paf 5946: ;;
1.25 moko 5947: *)
5948: # fallback: assume linklib IS sharedlib
5949: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.11 paf 5950: ;;
5951: esac
5952:
5953: fi
1.32 moko 5954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5955: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.25 moko 5956: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5957: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.11 paf 5958:
5959:
5960:
5961:
5962:
5963:
5964:
5965:
1.25 moko 5966: if test -n "$ac_tool_prefix"; then
5967: for ac_prog in ar
5968: do
5969: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5970: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.32 moko 5971: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972: $as_echo_n "checking for $ac_word... " >&6; }
5973: if ${ac_cv_prog_AR+:} false; then :
5974: $as_echo_n "(cached) " >&6
1.25 moko 5975: else
5976: if test -n "$AR"; then
5977: ac_cv_prog_AR="$AR" # Let the user override the test.
5978: else
5979: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980: for as_dir in $PATH
5981: do
5982: IFS=$as_save_IFS
5983: test -z "$as_dir" && as_dir=.
1.32 moko 5984: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 5985: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 5986: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.32 moko 5987: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 5988: break 2
1.11 paf 5989: fi
5990: done
1.32 moko 5991: done
5992: IFS=$as_save_IFS
1.11 paf 5993:
5994: fi
5995: fi
1.25 moko 5996: AR=$ac_cv_prog_AR
5997: if test -n "$AR"; then
1.32 moko 5998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5999: $as_echo "$AR" >&6; }
1.11 paf 6000: else
1.32 moko 6001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002: $as_echo "no" >&6; }
1.11 paf 6003: fi
6004:
1.32 moko 6005:
1.25 moko 6006: test -n "$AR" && break
6007: done
1.15 paf 6008: fi
1.25 moko 6009: if test -z "$AR"; then
6010: ac_ct_AR=$AR
6011: for ac_prog in ar
6012: do
6013: # Extract the first word of "$ac_prog", so it can be a program name with args.
6014: set dummy $ac_prog; ac_word=$2
1.32 moko 6015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016: $as_echo_n "checking for $ac_word... " >&6; }
6017: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6018: $as_echo_n "(cached) " >&6
1.11 paf 6019: else
1.25 moko 6020: if test -n "$ac_ct_AR"; then
6021: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6022: else
6023: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024: for as_dir in $PATH
1.11 paf 6025: do
1.25 moko 6026: IFS=$as_save_IFS
6027: test -z "$as_dir" && as_dir=.
1.32 moko 6028: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 6029: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 6030: ac_cv_prog_ac_ct_AR="$ac_prog"
1.32 moko 6031: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6032: break 2
1.11 paf 6033: fi
1.25 moko 6034: done
1.32 moko 6035: done
6036: IFS=$as_save_IFS
1.11 paf 6037:
6038: fi
6039: fi
1.25 moko 6040: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6041: if test -n "$ac_ct_AR"; then
1.32 moko 6042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6043: $as_echo "$ac_ct_AR" >&6; }
1.1 parser 6044: else
1.32 moko 6045: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046: $as_echo "no" >&6; }
1.1 parser 6047: fi
1.11 paf 6048:
1.32 moko 6049:
1.25 moko 6050: test -n "$ac_ct_AR" && break
1.11 paf 6051: done
1.25 moko 6052:
1.32 moko 6053: if test "x$ac_ct_AR" = x; then
6054: AR="false"
6055: else
6056: case $cross_compiling:$ac_tool_warned in
6057: yes:)
6058: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6059: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6060: ac_tool_warned=yes ;;
6061: esac
6062: AR=$ac_ct_AR
6063: fi
1.1 parser 6064: fi
6065:
1.25 moko 6066: : ${AR=ar}
6067: : ${AR_FLAGS=cru}
6068:
1.11 paf 6069:
6070:
1.1 parser 6071:
1.11 paf 6072:
6073:
6074:
6075:
6076:
6077:
6078:
1.32 moko 6079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6080: $as_echo_n "checking for archiver @FILE support... " >&6; }
6081: if ${lt_cv_ar_at_file+:} false; then :
6082: $as_echo_n "(cached) " >&6
1.11 paf 6083: else
1.25 moko 6084: lt_cv_ar_at_file=no
1.32 moko 6085: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 6086: /* end confdefs.h. */
6087:
6088: int
6089: main ()
6090: {
6091:
6092: ;
6093: return 0;
6094: }
6095: _ACEOF
1.32 moko 6096: if ac_fn_c_try_compile "$LINENO"; then :
1.25 moko 6097: echo conftest.$ac_objext > conftest.lst
6098: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.32 moko 6099: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.25 moko 6100: (eval $lt_ar_try) 2>&5
6101: ac_status=$?
1.32 moko 6102: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6103: test $ac_status = 0; }
1.25 moko 6104: if test "$ac_status" -eq 0; then
6105: # Ensure the archiver fails upon bogus file names.
6106: rm -f conftest.$ac_objext libconftest.a
1.32 moko 6107: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.25 moko 6108: (eval $lt_ar_try) 2>&5
6109: ac_status=$?
1.32 moko 6110: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111: test $ac_status = 0; }
1.25 moko 6112: if test "$ac_status" -ne 0; then
6113: lt_cv_ar_at_file=@
6114: fi
6115: fi
6116: rm -f conftest.* libconftest.a
6117:
1.11 paf 6118: fi
1.32 moko 6119: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 6120:
1.25 moko 6121: fi
1.32 moko 6122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6123: $as_echo "$lt_cv_ar_at_file" >&6; }
1.11 paf 6124:
1.25 moko 6125: if test "x$lt_cv_ar_at_file" = xno; then
6126: archiver_list_spec=
1.11 paf 6127: else
1.25 moko 6128: archiver_list_spec=$lt_cv_ar_at_file
1.11 paf 6129: fi
6130:
6131:
6132:
1.25 moko 6133:
6134:
6135:
6136:
6137: if test -n "$ac_tool_prefix"; then
6138: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6139: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.32 moko 6140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141: $as_echo_n "checking for $ac_word... " >&6; }
6142: if ${ac_cv_prog_STRIP+:} false; then :
6143: $as_echo_n "(cached) " >&6
1.25 moko 6144: else
6145: if test -n "$STRIP"; then
6146: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6147: else
6148: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149: for as_dir in $PATH
6150: do
6151: IFS=$as_save_IFS
6152: test -z "$as_dir" && as_dir=.
1.32 moko 6153: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 6154: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 6155: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.32 moko 6156: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6157: break 2
6158: fi
6159: done
1.32 moko 6160: done
6161: IFS=$as_save_IFS
1.25 moko 6162:
6163: fi
6164: fi
6165: STRIP=$ac_cv_prog_STRIP
6166: if test -n "$STRIP"; then
1.32 moko 6167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6168: $as_echo "$STRIP" >&6; }
1.7 paf 6169: else
1.32 moko 6170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171: $as_echo "no" >&6; }
1.11 paf 6172: fi
6173:
1.32 moko 6174:
1.7 paf 6175: fi
1.25 moko 6176: if test -z "$ac_cv_prog_STRIP"; then
6177: ac_ct_STRIP=$STRIP
6178: # Extract the first word of "strip", so it can be a program name with args.
6179: set dummy strip; ac_word=$2
1.32 moko 6180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181: $as_echo_n "checking for $ac_word... " >&6; }
6182: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6183: $as_echo_n "(cached) " >&6
1.11 paf 6184: else
1.25 moko 6185: if test -n "$ac_ct_STRIP"; then
6186: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.7 paf 6187: else
1.25 moko 6188: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189: for as_dir in $PATH
6190: do
6191: IFS=$as_save_IFS
6192: test -z "$as_dir" && as_dir=.
1.32 moko 6193: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 6194: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 6195: ac_cv_prog_ac_ct_STRIP="strip"
1.32 moko 6196: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6197: break 2
6198: fi
6199: done
1.32 moko 6200: done
6201: IFS=$as_save_IFS
1.11 paf 6202:
6203: fi
6204: fi
1.25 moko 6205: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6206: if test -n "$ac_ct_STRIP"; then
1.32 moko 6207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6208: $as_echo "$ac_ct_STRIP" >&6; }
1.25 moko 6209: else
1.32 moko 6210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211: $as_echo "no" >&6; }
1.11 paf 6212: fi
6213:
1.32 moko 6214: if test "x$ac_ct_STRIP" = x; then
6215: STRIP=":"
6216: else
6217: case $cross_compiling:$ac_tool_warned in
6218: yes:)
6219: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221: ac_tool_warned=yes ;;
6222: esac
6223: STRIP=$ac_ct_STRIP
6224: fi
1.25 moko 6225: else
6226: STRIP="$ac_cv_prog_STRIP"
1.11 paf 6227: fi
6228:
1.25 moko 6229: test -z "$STRIP" && STRIP=:
1.11 paf 6230:
6231:
6232:
6233:
6234:
6235:
1.25 moko 6236: if test -n "$ac_tool_prefix"; then
6237: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6238: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.32 moko 6239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240: $as_echo_n "checking for $ac_word... " >&6; }
6241: if ${ac_cv_prog_RANLIB+:} false; then :
6242: $as_echo_n "(cached) " >&6
1.11 paf 6243: else
1.25 moko 6244: if test -n "$RANLIB"; then
6245: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.11 paf 6246: else
1.25 moko 6247: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248: for as_dir in $PATH
6249: do
6250: IFS=$as_save_IFS
6251: test -z "$as_dir" && as_dir=.
1.32 moko 6252: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 6253: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 6254: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.32 moko 6255: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6256: break 2
6257: fi
6258: done
1.32 moko 6259: done
6260: IFS=$as_save_IFS
1.11 paf 6261:
6262: fi
6263: fi
1.25 moko 6264: RANLIB=$ac_cv_prog_RANLIB
6265: if test -n "$RANLIB"; then
1.32 moko 6266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6267: $as_echo "$RANLIB" >&6; }
1.25 moko 6268: else
1.32 moko 6269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270: $as_echo "no" >&6; }
1.25 moko 6271: fi
1.11 paf 6272:
1.32 moko 6273:
1.11 paf 6274: fi
1.25 moko 6275: if test -z "$ac_cv_prog_RANLIB"; then
6276: ac_ct_RANLIB=$RANLIB
6277: # Extract the first word of "ranlib", so it can be a program name with args.
6278: set dummy ranlib; ac_word=$2
1.32 moko 6279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280: $as_echo_n "checking for $ac_word... " >&6; }
6281: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6282: $as_echo_n "(cached) " >&6
1.25 moko 6283: else
6284: if test -n "$ac_ct_RANLIB"; then
6285: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6286: else
6287: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288: for as_dir in $PATH
6289: do
6290: IFS=$as_save_IFS
6291: test -z "$as_dir" && as_dir=.
1.32 moko 6292: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 6293: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 6294: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.32 moko 6295: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6296: break 2
6297: fi
6298: done
1.32 moko 6299: done
6300: IFS=$as_save_IFS
1.11 paf 6301:
1.25 moko 6302: fi
6303: fi
6304: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6305: if test -n "$ac_ct_RANLIB"; then
1.32 moko 6306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6307: $as_echo "$ac_ct_RANLIB" >&6; }
1.11 paf 6308: else
1.32 moko 6309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310: $as_echo "no" >&6; }
1.11 paf 6311: fi
6312:
1.32 moko 6313: if test "x$ac_ct_RANLIB" = x; then
6314: RANLIB=":"
6315: else
6316: case $cross_compiling:$ac_tool_warned in
6317: yes:)
6318: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320: ac_tool_warned=yes ;;
6321: esac
6322: RANLIB=$ac_ct_RANLIB
6323: fi
1.7 paf 6324: else
1.25 moko 6325: RANLIB="$ac_cv_prog_RANLIB"
1.7 paf 6326: fi
1.11 paf 6327:
1.25 moko 6328: test -z "$RANLIB" && RANLIB=:
6329:
6330:
6331:
6332:
6333:
6334:
6335: # Determine commands to create old-style static archives.
6336: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6337: old_postinstall_cmds='chmod 644 $oldlib'
6338: old_postuninstall_cmds=
1.11 paf 6339:
1.25 moko 6340: if test -n "$RANLIB"; then
6341: case $host_os in
6342: openbsd*)
6343: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.11 paf 6344: ;;
1.25 moko 6345: *)
6346: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.11 paf 6347: ;;
1.25 moko 6348: esac
6349: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.11 paf 6350: fi
6351:
1.25 moko 6352: case $host_os in
6353: darwin*)
6354: lock_old_archive_extraction=yes ;;
6355: *)
6356: lock_old_archive_extraction=no ;;
6357: esac
1.11 paf 6358:
6359:
6360:
6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
6369:
6370:
6371:
6372:
6373:
6374:
6375:
6376:
6377:
6378:
6379:
6380:
6381:
6382:
6383:
6384:
6385:
6386:
6387:
6388:
6389:
6390:
6391:
6392:
6393:
6394:
6395:
6396:
1.25 moko 6397: # If no C compiler was specified, use CC.
6398: LTCC=${LTCC-"$CC"}
1.11 paf 6399:
1.25 moko 6400: # If no C compiler flags were specified, use CFLAGS.
6401: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.11 paf 6402:
1.25 moko 6403: # Allow CC to be a program name with arguments.
6404: compiler=$CC
1.11 paf 6405:
6406:
1.25 moko 6407: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.32 moko 6408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6409: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6410: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6411: $as_echo_n "(cached) " >&6
1.25 moko 6412: else
6413:
6414: # These are sane defaults that work on at least a few old systems.
6415: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.11 paf 6416:
1.25 moko 6417: # Character class describing NM global symbol codes.
6418: symcode='[BCDEGRST]'
1.11 paf 6419:
1.25 moko 6420: # Regexp to match symbols that can be accessed directly from C.
6421: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.11 paf 6422:
1.25 moko 6423: # Define system-specific variables.
6424: case $host_os in
6425: aix*)
6426: symcode='[BCDT]'
6427: ;;
6428: cygwin* | mingw* | pw32* | cegcc*)
6429: symcode='[ABCDGISTW]'
6430: ;;
6431: hpux*)
6432: if test "$host_cpu" = ia64; then
6433: symcode='[ABCDEGRST]'
6434: fi
6435: ;;
6436: irix* | nonstopux*)
6437: symcode='[BCDEGRST]'
6438: ;;
6439: osf*)
6440: symcode='[BCDEGQRST]'
6441: ;;
6442: solaris*)
6443: symcode='[BDRT]'
6444: ;;
6445: sco3.2v5*)
6446: symcode='[DT]'
6447: ;;
6448: sysv4.2uw2*)
6449: symcode='[DT]'
6450: ;;
6451: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6452: symcode='[ABDT]'
6453: ;;
6454: sysv4)
6455: symcode='[DFNSTU]'
6456: ;;
6457: esac
1.11 paf 6458:
1.25 moko 6459: # If we're using GNU nm, then use its standard symbol codes.
6460: case `$NM -V 2>&1` in
6461: *GNU* | *'with BFD'*)
6462: symcode='[ABCDGIRSTW]' ;;
6463: esac
1.11 paf 6464:
1.25 moko 6465: # Transform an extracted symbol line into a proper C declaration.
6466: # Some systems (esp. on ia64) link data and code symbols differently,
6467: # so use this general approach.
6468: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.11 paf 6469:
1.25 moko 6470: # Transform an extracted symbol line into symbol name and symbol address
6471: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6472: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1.11 paf 6473:
1.25 moko 6474: # Handle CRLF in mingw tool chain
6475: opt_cr=
6476: case $build_os in
6477: mingw*)
6478: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6479: ;;
6480: esac
1.11 paf 6481:
1.25 moko 6482: # Try without a prefix underscore, then with it.
6483: for ac_symprfx in "" "_"; do
1.11 paf 6484:
1.25 moko 6485: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6486: symxfrm="\\1 $ac_symprfx\\2 \\2"
1.11 paf 6487:
1.25 moko 6488: # Write the raw and C identifiers.
6489: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6490: # Fake it for dumpbin and say T for any non-static function
6491: # and D for any global variable.
6492: # Also find C++ and __fastcall symbols from MSVC++,
6493: # which start with @ or ?.
6494: lt_cv_sys_global_symbol_pipe="$AWK '"\
6495: " {last_section=section; section=\$ 3};"\
6496: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6497: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6498: " \$ 0!~/External *\|/{next};"\
6499: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6500: " {if(hide[section]) next};"\
6501: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6502: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6503: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6504: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6505: " ' prfx=^$ac_symprfx"
6506: else
6507: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.11 paf 6508: fi
1.25 moko 6509: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.11 paf 6510:
1.25 moko 6511: # Check to see that the pipe works correctly.
6512: pipe_works=no
1.11 paf 6513:
1.25 moko 6514: rm -f conftest*
6515: cat > conftest.$ac_ext <<_LT_EOF
6516: #ifdef __cplusplus
6517: extern "C" {
6518: #endif
6519: char nm_test_var;
6520: void nm_test_func(void);
6521: void nm_test_func(void){}
6522: #ifdef __cplusplus
6523: }
6524: #endif
6525: int main(){nm_test_var='a';nm_test_func();return(0);}
6526: _LT_EOF
1.11 paf 6527:
1.32 moko 6528: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 6529: (eval $ac_compile) 2>&5
6530: ac_status=$?
1.32 moko 6531: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532: test $ac_status = 0; }; then
1.25 moko 6533: # Now try to grab the symbols.
6534: nlist=conftest.nm
1.32 moko 6535: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.25 moko 6536: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6537: ac_status=$?
1.32 moko 6538: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539: test $ac_status = 0; } && test -s "$nlist"; then
1.25 moko 6540: # Try sorting and uniquifying the output.
6541: if sort "$nlist" | uniq > "$nlist"T; then
6542: mv -f "$nlist"T "$nlist"
6543: else
6544: rm -f "$nlist"T
6545: fi
1.11 paf 6546:
1.25 moko 6547: # Make sure that we snagged all the symbols we need.
6548: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6549: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6550: cat <<_LT_EOF > conftest.$ac_ext
6551: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6552: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6553: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6554: relocations are performed -- see ld's documentation on pseudo-relocs. */
6555: # define LT_DLSYM_CONST
6556: #elif defined(__osf__)
6557: /* This system does not cope well with relocations in const data. */
6558: # define LT_DLSYM_CONST
6559: #else
6560: # define LT_DLSYM_CONST const
6561: #endif
1.11 paf 6562:
1.25 moko 6563: #ifdef __cplusplus
6564: extern "C" {
6565: #endif
1.11 paf 6566:
1.25 moko 6567: _LT_EOF
6568: # Now generate the symbol file.
6569: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.11 paf 6570:
1.25 moko 6571: cat <<_LT_EOF >> conftest.$ac_ext
1.11 paf 6572:
1.25 moko 6573: /* The mapping between symbol names and symbols. */
6574: LT_DLSYM_CONST struct {
6575: const char *name;
6576: void *address;
6577: }
6578: lt__PROGRAM__LTX_preloaded_symbols[] =
6579: {
6580: { "@PROGRAM@", (void *) 0 },
6581: _LT_EOF
6582: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6583: cat <<\_LT_EOF >> conftest.$ac_ext
6584: {0, (void *) 0}
6585: };
1.11 paf 6586:
1.25 moko 6587: /* This works around a problem in FreeBSD linker */
6588: #ifdef FREEBSD_WORKAROUND
6589: static const void *lt_preloaded_setup() {
6590: return lt__PROGRAM__LTX_preloaded_symbols;
6591: }
6592: #endif
1.11 paf 6593:
1.25 moko 6594: #ifdef __cplusplus
6595: }
6596: #endif
6597: _LT_EOF
6598: # Now try linking the two files.
6599: mv conftest.$ac_objext conftstm.$ac_objext
6600: lt_globsym_save_LIBS=$LIBS
6601: lt_globsym_save_CFLAGS=$CFLAGS
6602: LIBS="conftstm.$ac_objext"
6603: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.32 moko 6604: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.25 moko 6605: (eval $ac_link) 2>&5
6606: ac_status=$?
1.32 moko 6607: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.25 moko 6609: pipe_works=yes
6610: fi
6611: LIBS=$lt_globsym_save_LIBS
6612: CFLAGS=$lt_globsym_save_CFLAGS
6613: else
6614: echo "cannot find nm_test_func in $nlist" >&5
6615: fi
6616: else
6617: echo "cannot find nm_test_var in $nlist" >&5
1.11 paf 6618: fi
1.25 moko 6619: else
6620: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6621: fi
6622: else
6623: echo "$progname: failed program was:" >&5
6624: cat conftest.$ac_ext >&5
6625: fi
6626: rm -rf conftest* conftst*
6627:
6628: # Do not use the global_symbol_pipe unless it works.
6629: if test "$pipe_works" = yes; then
6630: break
1.11 paf 6631: else
1.25 moko 6632: lt_cv_sys_global_symbol_pipe=
6633: fi
6634: done
6635:
6636: fi
1.11 paf 6637:
1.25 moko 6638: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6639: lt_cv_sys_global_symbol_to_cdecl=
6640: fi
6641: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.32 moko 6642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6643: $as_echo "failed" >&6; }
1.25 moko 6644: else
1.32 moko 6645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6646: $as_echo "ok" >&6; }
1.25 moko 6647: fi
1.11 paf 6648:
1.25 moko 6649: # Response file support.
6650: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6651: nm_file_list_spec='@'
6652: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6653: nm_file_list_spec='@'
6654: fi
1.11 paf 6655:
6656:
6657:
6658:
6659:
6660:
6661:
6662:
6663:
6664:
6665:
6666:
1.25 moko 6667:
6668:
6669:
6670:
6671:
6672:
6673:
6674:
6675:
6676:
6677:
6678:
6679:
6680:
6681:
1.32 moko 6682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6683: $as_echo_n "checking for sysroot... " >&6; }
1.25 moko 6684:
1.32 moko 6685: # Check whether --with-sysroot was given.
6686: if test "${with_sysroot+set}" = set; then :
6687: withval=$with_sysroot;
1.11 paf 6688: else
1.25 moko 6689: with_sysroot=no
1.32 moko 6690: fi
6691:
1.25 moko 6692:
6693: lt_sysroot=
6694: case ${with_sysroot} in #(
6695: yes)
6696: if test "$GCC" = yes; then
6697: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6698: fi
6699: ;; #(
6700: /*)
6701: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6702: ;; #(
6703: no|'')
6704: ;; #(
6705: *)
1.32 moko 6706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6707: $as_echo "${with_sysroot}" >&6; }
6708: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.25 moko 6709: ;;
6710: esac
6711:
1.32 moko 6712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6713: $as_echo "${lt_sysroot:-no}" >&6; }
1.25 moko 6714:
6715:
1.11 paf 6716:
6717:
6718:
1.32 moko 6719: # Check whether --enable-libtool-lock was given.
6720: if test "${enable_libtool_lock+set}" = set; then :
6721: enableval=$enable_libtool_lock;
6722: fi
1.25 moko 6723:
6724: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6725:
6726: # Some flags need to be propagated to the compiler or linker for good
6727: # libtool support.
6728: case $host in
6729: ia64-*-hpux*)
6730: # Find out which ABI we are using.
6731: echo 'int i;' > conftest.$ac_ext
1.32 moko 6732: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 6733: (eval $ac_compile) 2>&5
1.11 paf 6734: ac_status=$?
1.32 moko 6735: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6736: test $ac_status = 0; }; then
1.25 moko 6737: case `/usr/bin/file conftest.$ac_objext` in
6738: *ELF-32*)
6739: HPUX_IA64_MODE="32"
6740: ;;
6741: *ELF-64*)
6742: HPUX_IA64_MODE="64"
6743: ;;
6744: esac
6745: fi
6746: rm -rf conftest*
6747: ;;
6748: *-*-irix6*)
6749: # Find out which ABI we are using.
6750: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.32 moko 6751: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 6752: (eval $ac_compile) 2>&5
1.18 paf 6753: ac_status=$?
1.32 moko 6754: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6755: test $ac_status = 0; }; then
1.25 moko 6756: if test "$lt_cv_prog_gnu_ld" = yes; then
6757: case `/usr/bin/file conftest.$ac_objext` in
6758: *32-bit*)
6759: LD="${LD-ld} -melf32bsmip"
6760: ;;
6761: *N32*)
6762: LD="${LD-ld} -melf32bmipn32"
6763: ;;
6764: *64-bit*)
6765: LD="${LD-ld} -melf64bmip"
6766: ;;
6767: esac
6768: else
6769: case `/usr/bin/file conftest.$ac_objext` in
6770: *32-bit*)
6771: LD="${LD-ld} -32"
6772: ;;
6773: *N32*)
6774: LD="${LD-ld} -n32"
6775: ;;
6776: *64-bit*)
6777: LD="${LD-ld} -64"
6778: ;;
6779: esac
6780: fi
6781: fi
6782: rm -rf conftest*
6783: ;;
6784:
6785: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6786: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6787: # Find out which ABI we are using.
6788: echo 'int i;' > conftest.$ac_ext
1.32 moko 6789: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 6790: (eval $ac_compile) 2>&5
1.11 paf 6791: ac_status=$?
1.32 moko 6792: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793: test $ac_status = 0; }; then
1.25 moko 6794: case `/usr/bin/file conftest.o` in
6795: *32-bit*)
6796: case $host in
6797: x86_64-*kfreebsd*-gnu)
6798: LD="${LD-ld} -m elf_i386_fbsd"
6799: ;;
6800: x86_64-*linux*)
6801: LD="${LD-ld} -m elf_i386"
6802: ;;
6803: ppc64-*linux*|powerpc64-*linux*)
6804: LD="${LD-ld} -m elf32ppclinux"
6805: ;;
6806: s390x-*linux*)
6807: LD="${LD-ld} -m elf_s390"
6808: ;;
6809: sparc64-*linux*)
6810: LD="${LD-ld} -m elf32_sparc"
6811: ;;
6812: esac
1.11 paf 6813: ;;
1.25 moko 6814: *64-bit*)
6815: case $host in
6816: x86_64-*kfreebsd*-gnu)
6817: LD="${LD-ld} -m elf_x86_64_fbsd"
6818: ;;
6819: x86_64-*linux*)
6820: LD="${LD-ld} -m elf_x86_64"
6821: ;;
6822: ppc*-*linux*|powerpc*-*linux*)
6823: LD="${LD-ld} -m elf64ppc"
6824: ;;
6825: s390*-*linux*|s390*-*tpf*)
6826: LD="${LD-ld} -m elf64_s390"
6827: ;;
6828: sparc*-*linux*)
6829: LD="${LD-ld} -m elf64_sparc"
6830: ;;
6831: esac
1.11 paf 6832: ;;
1.25 moko 6833: esac
1.11 paf 6834: fi
1.25 moko 6835: rm -rf conftest*
6836: ;;
1.11 paf 6837:
1.25 moko 6838: *-*-sco3.2v5*)
6839: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6840: SAVE_CFLAGS="$CFLAGS"
6841: CFLAGS="$CFLAGS -belf"
1.32 moko 6842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6843: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6844: if ${lt_cv_cc_needs_belf+:} false; then :
6845: $as_echo_n "(cached) " >&6
1.11 paf 6846: else
1.25 moko 6847: ac_ext=c
6848: ac_cpp='$CPP $CPPFLAGS'
6849: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6850: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6851: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6852:
1.32 moko 6853: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 6854: /* end confdefs.h. */
6855:
6856: int
6857: main ()
6858: {
6859:
6860: ;
6861: return 0;
6862: }
6863: _ACEOF
1.32 moko 6864: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 6865: lt_cv_cc_needs_belf=yes
1.11 paf 6866: else
1.32 moko 6867: lt_cv_cc_needs_belf=no
1.11 paf 6868: fi
1.32 moko 6869: rm -f core conftest.err conftest.$ac_objext \
6870: conftest$ac_exeext conftest.$ac_ext
1.25 moko 6871: ac_ext=c
6872: ac_cpp='$CPP $CPPFLAGS'
6873: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 6876:
6877: fi
1.32 moko 6878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6879: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.25 moko 6880: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6881: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6882: CFLAGS="$SAVE_CFLAGS"
6883: fi
6884: ;;
6885: *-*solaris*)
6886: # Find out which ABI we are using.
6887: echo 'int i;' > conftest.$ac_ext
1.32 moko 6888: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 6889: (eval $ac_compile) 2>&5
6890: ac_status=$?
1.32 moko 6891: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892: test $ac_status = 0; }; then
1.25 moko 6893: case `/usr/bin/file conftest.o` in
6894: *64-bit*)
6895: case $lt_cv_prog_gnu_ld in
6896: yes*)
6897: case $host in
6898: i?86-*-solaris*)
6899: LD="${LD-ld} -m elf_x86_64"
6900: ;;
6901: sparc*-*-solaris*)
6902: LD="${LD-ld} -m elf64_sparc"
6903: ;;
6904: esac
6905: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6906: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6907: LD="${LD-ld}_sol2"
6908: fi
6909: ;;
6910: *)
6911: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6912: LD="${LD-ld} -64"
6913: fi
6914: ;;
6915: esac
6916: ;;
6917: esac
6918: fi
6919: rm -rf conftest*
6920: ;;
6921: esac
1.11 paf 6922:
1.25 moko 6923: need_locks="$enable_libtool_lock"
1.11 paf 6924:
1.25 moko 6925: if test -n "$ac_tool_prefix"; then
6926: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6927: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.32 moko 6928: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929: $as_echo_n "checking for $ac_word... " >&6; }
6930: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6931: $as_echo_n "(cached) " >&6
1.25 moko 6932: else
6933: if test -n "$MANIFEST_TOOL"; then
6934: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6935: else
6936: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937: for as_dir in $PATH
6938: do
6939: IFS=$as_save_IFS
6940: test -z "$as_dir" && as_dir=.
1.32 moko 6941: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 6942: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 6943: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.32 moko 6944: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6945: break 2
6946: fi
6947: done
1.32 moko 6948: done
6949: IFS=$as_save_IFS
1.11 paf 6950:
1.25 moko 6951: fi
6952: fi
6953: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6954: if test -n "$MANIFEST_TOOL"; then
1.32 moko 6955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6956: $as_echo "$MANIFEST_TOOL" >&6; }
1.25 moko 6957: else
1.32 moko 6958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959: $as_echo "no" >&6; }
1.25 moko 6960: fi
1.11 paf 6961:
1.32 moko 6962:
1.25 moko 6963: fi
6964: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6965: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6966: # Extract the first word of "mt", so it can be a program name with args.
6967: set dummy mt; ac_word=$2
1.32 moko 6968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969: $as_echo_n "checking for $ac_word... " >&6; }
6970: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6971: $as_echo_n "(cached) " >&6
1.11 paf 6972: else
1.25 moko 6973: if test -n "$ac_ct_MANIFEST_TOOL"; then
6974: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6975: else
6976: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977: for as_dir in $PATH
6978: do
6979: IFS=$as_save_IFS
6980: test -z "$as_dir" && as_dir=.
1.32 moko 6981: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 6982: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 6983: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.32 moko 6984: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 6985: break 2
6986: fi
6987: done
1.32 moko 6988: done
6989: IFS=$as_save_IFS
1.11 paf 6990:
1.25 moko 6991: fi
6992: fi
6993: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6994: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.32 moko 6995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6996: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.11 paf 6997: else
1.32 moko 6998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999: $as_echo "no" >&6; }
1.11 paf 7000: fi
7001:
1.32 moko 7002: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7003: MANIFEST_TOOL=":"
7004: else
7005: case $cross_compiling:$ac_tool_warned in
7006: yes:)
7007: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7008: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7009: ac_tool_warned=yes ;;
7010: esac
7011: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7012: fi
1.25 moko 7013: else
7014: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
1.11 paf 7015: fi
7016:
1.25 moko 7017: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.32 moko 7018: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7019: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7020: if ${lt_cv_path_mainfest_tool+:} false; then :
7021: $as_echo_n "(cached) " >&6
1.11 paf 7022: else
1.25 moko 7023: lt_cv_path_mainfest_tool=no
7024: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7025: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7026: cat conftest.err >&5
7027: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7028: lt_cv_path_mainfest_tool=yes
7029: fi
7030: rm -f conftest*
7031: fi
1.32 moko 7032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7033: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.25 moko 7034: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7035: MANIFEST_TOOL=:
7036: fi
7037:
7038:
7039:
7040:
1.11 paf 7041:
7042:
1.25 moko 7043: case $host_os in
7044: rhapsody* | darwin*)
7045: if test -n "$ac_tool_prefix"; then
7046: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7047: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.32 moko 7048: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049: $as_echo_n "checking for $ac_word... " >&6; }
7050: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7051: $as_echo_n "(cached) " >&6
1.25 moko 7052: else
7053: if test -n "$DSYMUTIL"; then
7054: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7055: else
7056: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057: for as_dir in $PATH
7058: do
7059: IFS=$as_save_IFS
7060: test -z "$as_dir" && as_dir=.
1.32 moko 7061: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 7062: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 7063: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.32 moko 7064: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7065: break 2
7066: fi
7067: done
1.32 moko 7068: done
7069: IFS=$as_save_IFS
1.11 paf 7070:
1.25 moko 7071: fi
7072: fi
7073: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7074: if test -n "$DSYMUTIL"; then
1.32 moko 7075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7076: $as_echo "$DSYMUTIL" >&6; }
1.11 paf 7077: else
1.32 moko 7078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079: $as_echo "no" >&6; }
1.25 moko 7080: fi
1.11 paf 7081:
1.32 moko 7082:
1.11 paf 7083: fi
1.25 moko 7084: if test -z "$ac_cv_prog_DSYMUTIL"; then
7085: ac_ct_DSYMUTIL=$DSYMUTIL
7086: # Extract the first word of "dsymutil", so it can be a program name with args.
7087: set dummy dsymutil; ac_word=$2
1.32 moko 7088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089: $as_echo_n "checking for $ac_word... " >&6; }
7090: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7091: $as_echo_n "(cached) " >&6
1.25 moko 7092: else
7093: if test -n "$ac_ct_DSYMUTIL"; then
7094: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7095: else
7096: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097: for as_dir in $PATH
7098: do
7099: IFS=$as_save_IFS
7100: test -z "$as_dir" && as_dir=.
1.32 moko 7101: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 7102: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 7103: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.32 moko 7104: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7105: break 2
7106: fi
7107: done
1.32 moko 7108: done
7109: IFS=$as_save_IFS
1.11 paf 7110:
1.25 moko 7111: fi
7112: fi
7113: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7114: if test -n "$ac_ct_DSYMUTIL"; then
1.32 moko 7115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7116: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.25 moko 7117: else
1.32 moko 7118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119: $as_echo "no" >&6; }
1.11 paf 7120: fi
7121:
1.32 moko 7122: if test "x$ac_ct_DSYMUTIL" = x; then
7123: DSYMUTIL=":"
7124: else
7125: case $cross_compiling:$ac_tool_warned in
7126: yes:)
7127: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7128: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7129: ac_tool_warned=yes ;;
7130: esac
7131: DSYMUTIL=$ac_ct_DSYMUTIL
7132: fi
1.11 paf 7133: else
1.25 moko 7134: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.11 paf 7135: fi
7136:
1.25 moko 7137: if test -n "$ac_tool_prefix"; then
7138: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7139: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.32 moko 7140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141: $as_echo_n "checking for $ac_word... " >&6; }
7142: if ${ac_cv_prog_NMEDIT+:} false; then :
7143: $as_echo_n "(cached) " >&6
1.25 moko 7144: else
7145: if test -n "$NMEDIT"; then
7146: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7147: else
7148: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149: for as_dir in $PATH
7150: do
7151: IFS=$as_save_IFS
7152: test -z "$as_dir" && as_dir=.
1.32 moko 7153: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 7154: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 7155: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.32 moko 7156: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7157: break 2
1.11 paf 7158: fi
1.25 moko 7159: done
1.32 moko 7160: done
7161: IFS=$as_save_IFS
1.25 moko 7162:
7163: fi
7164: fi
7165: NMEDIT=$ac_cv_prog_NMEDIT
7166: if test -n "$NMEDIT"; then
1.32 moko 7167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7168: $as_echo "$NMEDIT" >&6; }
1.11 paf 7169: else
1.32 moko 7170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171: $as_echo "no" >&6; }
1.11 paf 7172: fi
7173:
1.32 moko 7174:
1.25 moko 7175: fi
7176: if test -z "$ac_cv_prog_NMEDIT"; then
7177: ac_ct_NMEDIT=$NMEDIT
7178: # Extract the first word of "nmedit", so it can be a program name with args.
7179: set dummy nmedit; ac_word=$2
1.32 moko 7180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181: $as_echo_n "checking for $ac_word... " >&6; }
7182: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7183: $as_echo_n "(cached) " >&6
1.25 moko 7184: else
7185: if test -n "$ac_ct_NMEDIT"; then
7186: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7187: else
7188: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189: for as_dir in $PATH
7190: do
7191: IFS=$as_save_IFS
7192: test -z "$as_dir" && as_dir=.
1.32 moko 7193: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 7194: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 7195: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.32 moko 7196: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7197: break 2
7198: fi
7199: done
1.32 moko 7200: done
7201: IFS=$as_save_IFS
1.11 paf 7202:
1.25 moko 7203: fi
7204: fi
7205: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7206: if test -n "$ac_ct_NMEDIT"; then
1.32 moko 7207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7208: $as_echo "$ac_ct_NMEDIT" >&6; }
1.25 moko 7209: else
1.32 moko 7210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211: $as_echo "no" >&6; }
1.25 moko 7212: fi
1.11 paf 7213:
1.32 moko 7214: if test "x$ac_ct_NMEDIT" = x; then
7215: NMEDIT=":"
7216: else
7217: case $cross_compiling:$ac_tool_warned in
7218: yes:)
7219: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221: ac_tool_warned=yes ;;
7222: esac
7223: NMEDIT=$ac_ct_NMEDIT
7224: fi
1.11 paf 7225: else
1.25 moko 7226: NMEDIT="$ac_cv_prog_NMEDIT"
1.11 paf 7227: fi
7228:
1.25 moko 7229: if test -n "$ac_tool_prefix"; then
7230: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7231: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.32 moko 7232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233: $as_echo_n "checking for $ac_word... " >&6; }
7234: if ${ac_cv_prog_LIPO+:} false; then :
7235: $as_echo_n "(cached) " >&6
1.25 moko 7236: else
7237: if test -n "$LIPO"; then
7238: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7239: else
7240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241: for as_dir in $PATH
7242: do
7243: IFS=$as_save_IFS
7244: test -z "$as_dir" && as_dir=.
1.32 moko 7245: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 7246: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 7247: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.32 moko 7248: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7249: break 2
1.11 paf 7250: fi
1.25 moko 7251: done
1.32 moko 7252: done
7253: IFS=$as_save_IFS
1.25 moko 7254:
7255: fi
7256: fi
7257: LIPO=$ac_cv_prog_LIPO
7258: if test -n "$LIPO"; then
1.32 moko 7259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7260: $as_echo "$LIPO" >&6; }
1.25 moko 7261: else
1.32 moko 7262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263: $as_echo "no" >&6; }
1.11 paf 7264: fi
7265:
1.32 moko 7266:
1.25 moko 7267: fi
7268: if test -z "$ac_cv_prog_LIPO"; then
7269: ac_ct_LIPO=$LIPO
7270: # Extract the first word of "lipo", so it can be a program name with args.
7271: set dummy lipo; ac_word=$2
1.32 moko 7272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273: $as_echo_n "checking for $ac_word... " >&6; }
7274: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7275: $as_echo_n "(cached) " >&6
1.25 moko 7276: else
7277: if test -n "$ac_ct_LIPO"; then
7278: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7279: else
7280: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281: for as_dir in $PATH
7282: do
7283: IFS=$as_save_IFS
7284: test -z "$as_dir" && as_dir=.
1.32 moko 7285: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 7286: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 7287: ac_cv_prog_ac_ct_LIPO="lipo"
1.32 moko 7288: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7289: break 2
1.11 paf 7290: fi
1.25 moko 7291: done
1.32 moko 7292: done
7293: IFS=$as_save_IFS
1.11 paf 7294:
1.25 moko 7295: fi
7296: fi
7297: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7298: if test -n "$ac_ct_LIPO"; then
1.32 moko 7299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7300: $as_echo "$ac_ct_LIPO" >&6; }
1.25 moko 7301: else
1.32 moko 7302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303: $as_echo "no" >&6; }
1.25 moko 7304: fi
1.11 paf 7305:
1.32 moko 7306: if test "x$ac_ct_LIPO" = x; then
7307: LIPO=":"
7308: else
7309: case $cross_compiling:$ac_tool_warned in
7310: yes:)
7311: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7312: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7313: ac_tool_warned=yes ;;
7314: esac
7315: LIPO=$ac_ct_LIPO
7316: fi
1.25 moko 7317: else
7318: LIPO="$ac_cv_prog_LIPO"
7319: fi
1.11 paf 7320:
1.25 moko 7321: if test -n "$ac_tool_prefix"; then
7322: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7323: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.32 moko 7324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325: $as_echo_n "checking for $ac_word... " >&6; }
7326: if ${ac_cv_prog_OTOOL+:} false; then :
7327: $as_echo_n "(cached) " >&6
1.25 moko 7328: else
7329: if test -n "$OTOOL"; then
7330: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7331: else
7332: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333: for as_dir in $PATH
7334: do
7335: IFS=$as_save_IFS
7336: test -z "$as_dir" && as_dir=.
1.32 moko 7337: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 7338: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 7339: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.32 moko 7340: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7341: break 2
7342: fi
7343: done
1.32 moko 7344: done
7345: IFS=$as_save_IFS
1.11 paf 7346:
1.25 moko 7347: fi
7348: fi
7349: OTOOL=$ac_cv_prog_OTOOL
7350: if test -n "$OTOOL"; then
1.32 moko 7351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7352: $as_echo "$OTOOL" >&6; }
1.25 moko 7353: else
1.32 moko 7354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355: $as_echo "no" >&6; }
1.25 moko 7356: fi
1.11 paf 7357:
1.32 moko 7358:
1.25 moko 7359: fi
7360: if test -z "$ac_cv_prog_OTOOL"; then
7361: ac_ct_OTOOL=$OTOOL
7362: # Extract the first word of "otool", so it can be a program name with args.
7363: set dummy otool; ac_word=$2
1.32 moko 7364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365: $as_echo_n "checking for $ac_word... " >&6; }
7366: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7367: $as_echo_n "(cached) " >&6
1.25 moko 7368: else
7369: if test -n "$ac_ct_OTOOL"; then
7370: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7371: else
7372: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373: for as_dir in $PATH
7374: do
7375: IFS=$as_save_IFS
7376: test -z "$as_dir" && as_dir=.
1.32 moko 7377: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 7378: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 7379: ac_cv_prog_ac_ct_OTOOL="otool"
1.32 moko 7380: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7381: break 2
7382: fi
7383: done
1.32 moko 7384: done
7385: IFS=$as_save_IFS
1.11 paf 7386:
1.25 moko 7387: fi
7388: fi
7389: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7390: if test -n "$ac_ct_OTOOL"; then
1.32 moko 7391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7392: $as_echo "$ac_ct_OTOOL" >&6; }
1.25 moko 7393: else
1.32 moko 7394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395: $as_echo "no" >&6; }
1.25 moko 7396: fi
1.11 paf 7397:
1.32 moko 7398: if test "x$ac_ct_OTOOL" = x; then
7399: OTOOL=":"
7400: else
7401: case $cross_compiling:$ac_tool_warned in
7402: yes:)
7403: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7404: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7405: ac_tool_warned=yes ;;
7406: esac
7407: OTOOL=$ac_ct_OTOOL
7408: fi
1.25 moko 7409: else
7410: OTOOL="$ac_cv_prog_OTOOL"
7411: fi
1.11 paf 7412:
1.25 moko 7413: if test -n "$ac_tool_prefix"; then
7414: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7415: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.32 moko 7416: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417: $as_echo_n "checking for $ac_word... " >&6; }
7418: if ${ac_cv_prog_OTOOL64+:} false; then :
7419: $as_echo_n "(cached) " >&6
1.25 moko 7420: else
7421: if test -n "$OTOOL64"; then
7422: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7423: else
7424: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425: for as_dir in $PATH
7426: do
7427: IFS=$as_save_IFS
7428: test -z "$as_dir" && as_dir=.
1.32 moko 7429: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 7430: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 7431: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.32 moko 7432: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7433: break 2
7434: fi
7435: done
1.32 moko 7436: done
7437: IFS=$as_save_IFS
1.11 paf 7438:
1.25 moko 7439: fi
7440: fi
7441: OTOOL64=$ac_cv_prog_OTOOL64
7442: if test -n "$OTOOL64"; then
1.32 moko 7443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7444: $as_echo "$OTOOL64" >&6; }
1.25 moko 7445: else
1.32 moko 7446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447: $as_echo "no" >&6; }
1.25 moko 7448: fi
1.11 paf 7449:
1.32 moko 7450:
1.25 moko 7451: fi
7452: if test -z "$ac_cv_prog_OTOOL64"; then
7453: ac_ct_OTOOL64=$OTOOL64
7454: # Extract the first word of "otool64", so it can be a program name with args.
7455: set dummy otool64; ac_word=$2
1.32 moko 7456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457: $as_echo_n "checking for $ac_word... " >&6; }
7458: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7459: $as_echo_n "(cached) " >&6
1.25 moko 7460: else
7461: if test -n "$ac_ct_OTOOL64"; then
7462: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7463: else
7464: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465: for as_dir in $PATH
7466: do
7467: IFS=$as_save_IFS
7468: test -z "$as_dir" && as_dir=.
1.32 moko 7469: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 7470: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 7471: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.32 moko 7472: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 7473: break 2
7474: fi
7475: done
1.32 moko 7476: done
7477: IFS=$as_save_IFS
1.11 paf 7478:
1.25 moko 7479: fi
7480: fi
7481: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7482: if test -n "$ac_ct_OTOOL64"; then
1.32 moko 7483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7484: $as_echo "$ac_ct_OTOOL64" >&6; }
1.25 moko 7485: else
1.32 moko 7486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487: $as_echo "no" >&6; }
1.25 moko 7488: fi
1.11 paf 7489:
1.32 moko 7490: if test "x$ac_ct_OTOOL64" = x; then
7491: OTOOL64=":"
7492: else
7493: case $cross_compiling:$ac_tool_warned in
7494: yes:)
7495: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7496: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7497: ac_tool_warned=yes ;;
7498: esac
7499: OTOOL64=$ac_ct_OTOOL64
7500: fi
1.25 moko 7501: else
7502: OTOOL64="$ac_cv_prog_OTOOL64"
7503: fi
1.11 paf 7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
7530:
1.32 moko 7531: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7532: $as_echo_n "checking for -single_module linker flag... " >&6; }
7533: if ${lt_cv_apple_cc_single_mod+:} false; then :
7534: $as_echo_n "(cached) " >&6
1.25 moko 7535: else
7536: lt_cv_apple_cc_single_mod=no
7537: if test -z "${LT_MULTI_MODULE}"; then
7538: # By default we will add the -single_module flag. You can override
7539: # by either setting the environment variable LT_MULTI_MODULE
7540: # non-empty at configure time, or by adding -multi_module to the
7541: # link flags.
7542: rm -rf libconftest.dylib*
7543: echo "int foo(void){return 1;}" > conftest.c
7544: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7545: -dynamiclib -Wl,-single_module conftest.c" >&5
7546: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7547: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7548: _lt_result=$?
7549: # If there is a non-empty error log, and "single_module"
7550: # appears in it, assume the flag caused a linker warning
7551: if test -s conftest.err && $GREP single_module conftest.err; then
7552: cat conftest.err >&5
7553: # Otherwise, if the output was created with a 0 exit code from
7554: # the compiler, it worked.
7555: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7556: lt_cv_apple_cc_single_mod=yes
7557: else
7558: cat conftest.err >&5
7559: fi
7560: rm -rf libconftest.dylib*
7561: rm -f conftest.*
7562: fi
7563: fi
1.32 moko 7564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7565: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.11 paf 7566:
1.32 moko 7567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7568: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7569: if ${lt_cv_ld_exported_symbols_list+:} false; then :
7570: $as_echo_n "(cached) " >&6
1.25 moko 7571: else
7572: lt_cv_ld_exported_symbols_list=no
7573: save_LDFLAGS=$LDFLAGS
7574: echo "_main" > conftest.sym
7575: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.32 moko 7576: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7577: /* end confdefs.h. */
1.11 paf 7578:
1.25 moko 7579: int
7580: main ()
7581: {
1.11 paf 7582:
1.25 moko 7583: ;
7584: return 0;
7585: }
7586: _ACEOF
1.32 moko 7587: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 7588: lt_cv_ld_exported_symbols_list=yes
7589: else
1.32 moko 7590: lt_cv_ld_exported_symbols_list=no
1.25 moko 7591: fi
1.32 moko 7592: rm -f core conftest.err conftest.$ac_objext \
7593: conftest$ac_exeext conftest.$ac_ext
1.25 moko 7594: LDFLAGS="$save_LDFLAGS"
1.11 paf 7595:
1.25 moko 7596: fi
1.32 moko 7597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7598: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.11 paf 7599:
1.32 moko 7600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7601: $as_echo_n "checking for -force_load linker flag... " >&6; }
7602: if ${lt_cv_ld_force_load+:} false; then :
7603: $as_echo_n "(cached) " >&6
1.25 moko 7604: else
7605: lt_cv_ld_force_load=no
7606: cat > conftest.c << _LT_EOF
7607: int forced_loaded() { return 2;}
7608: _LT_EOF
7609: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7610: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7611: echo "$AR cru libconftest.a conftest.o" >&5
7612: $AR cru libconftest.a conftest.o 2>&5
7613: echo "$RANLIB libconftest.a" >&5
7614: $RANLIB libconftest.a 2>&5
7615: cat > conftest.c << _LT_EOF
7616: int main() { return 0;}
7617: _LT_EOF
7618: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7619: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7620: _lt_result=$?
7621: if test -s conftest.err && $GREP force_load conftest.err; then
7622: cat conftest.err >&5
7623: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7624: lt_cv_ld_force_load=yes
7625: else
7626: cat conftest.err >&5
7627: fi
7628: rm -f conftest.err libconftest.a conftest conftest.c
7629: rm -rf conftest.dSYM
1.11 paf 7630:
1.25 moko 7631: fi
1.32 moko 7632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7633: $as_echo "$lt_cv_ld_force_load" >&6; }
1.25 moko 7634: case $host_os in
7635: rhapsody* | darwin1.[012])
7636: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7637: darwin1.*)
7638: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7639: darwin*) # darwin 5.x on
7640: # if running on 10.5 or later, the deployment target defaults
7641: # to the OS version, if on x86, and 10.4, the deployment
7642: # target defaults to 10.4. Don't you love it?
7643: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7644: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7645: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7646: 10.[012]*)
7647: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7648: 10.*)
7649: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7650: esac
1.11 paf 7651: ;;
1.25 moko 7652: esac
7653: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7654: _lt_dar_single_mod='$single_module'
7655: fi
7656: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7657: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7658: else
7659: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.11 paf 7660: fi
1.25 moko 7661: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7662: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.11 paf 7663: else
1.25 moko 7664: _lt_dsymutil=
1.11 paf 7665: fi
7666: ;;
1.25 moko 7667: esac
1.11 paf 7668:
1.25 moko 7669: ac_ext=c
7670: ac_cpp='$CPP $CPPFLAGS'
7671: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7672: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7673: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.32 moko 7674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7675: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.25 moko 7676: # On Suns, sometimes $CPP names a directory.
7677: if test -n "$CPP" && test -d "$CPP"; then
7678: CPP=
7679: fi
7680: if test -z "$CPP"; then
1.32 moko 7681: if ${ac_cv_prog_CPP+:} false; then :
7682: $as_echo_n "(cached) " >&6
1.25 moko 7683: else
7684: # Double quotes because CPP needs to be expanded
7685: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7686: do
7687: ac_preproc_ok=false
7688: for ac_c_preproc_warn_flag in '' yes
7689: do
7690: # Use a header file that comes with gcc, so configuring glibc
7691: # with a fresh cross-compiler works.
7692: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7693: # <limits.h> exists even on freestanding compilers.
7694: # On the NeXT, cc -E runs the code through the compiler's parser,
7695: # not just through cpp. "Syntax error" is here to catch this case.
1.32 moko 7696: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7697: /* end confdefs.h. */
7698: #ifdef __STDC__
7699: # include <limits.h>
7700: #else
7701: # include <assert.h>
7702: #endif
7703: Syntax error
7704: _ACEOF
1.32 moko 7705: if ac_fn_c_try_cpp "$LINENO"; then :
7706:
1.25 moko 7707: else
7708: # Broken: fails on valid input.
7709: continue
7710: fi
1.32 moko 7711: rm -f conftest.err conftest.i conftest.$ac_ext
1.11 paf 7712:
1.32 moko 7713: # OK, works on sane cases. Now check whether nonexistent headers
1.25 moko 7714: # can be detected and how.
1.32 moko 7715: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7716: /* end confdefs.h. */
7717: #include <ac_nonexistent.h>
7718: _ACEOF
1.32 moko 7719: if ac_fn_c_try_cpp "$LINENO"; then :
1.25 moko 7720: # Broken: success on invalid input.
7721: continue
7722: else
7723: # Passes both tests.
7724: ac_preproc_ok=:
7725: break
1.11 paf 7726: fi
1.32 moko 7727: rm -f conftest.err conftest.i conftest.$ac_ext
1.11 paf 7728:
1.25 moko 7729: done
7730: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.32 moko 7731: rm -f conftest.i conftest.err conftest.$ac_ext
7732: if $ac_preproc_ok; then :
1.25 moko 7733: break
7734: fi
1.11 paf 7735:
1.25 moko 7736: done
7737: ac_cv_prog_CPP=$CPP
1.11 paf 7738:
1.25 moko 7739: fi
7740: CPP=$ac_cv_prog_CPP
7741: else
7742: ac_cv_prog_CPP=$CPP
7743: fi
1.32 moko 7744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7745: $as_echo "$CPP" >&6; }
1.25 moko 7746: ac_preproc_ok=false
7747: for ac_c_preproc_warn_flag in '' yes
7748: do
7749: # Use a header file that comes with gcc, so configuring glibc
7750: # with a fresh cross-compiler works.
7751: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7752: # <limits.h> exists even on freestanding compilers.
7753: # On the NeXT, cc -E runs the code through the compiler's parser,
7754: # not just through cpp. "Syntax error" is here to catch this case.
1.32 moko 7755: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7756: /* end confdefs.h. */
7757: #ifdef __STDC__
7758: # include <limits.h>
7759: #else
7760: # include <assert.h>
7761: #endif
7762: Syntax error
7763: _ACEOF
1.32 moko 7764: if ac_fn_c_try_cpp "$LINENO"; then :
7765:
1.25 moko 7766: else
7767: # Broken: fails on valid input.
7768: continue
7769: fi
1.32 moko 7770: rm -f conftest.err conftest.i conftest.$ac_ext
1.11 paf 7771:
1.32 moko 7772: # OK, works on sane cases. Now check whether nonexistent headers
1.25 moko 7773: # can be detected and how.
1.32 moko 7774: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7775: /* end confdefs.h. */
7776: #include <ac_nonexistent.h>
7777: _ACEOF
1.32 moko 7778: if ac_fn_c_try_cpp "$LINENO"; then :
1.25 moko 7779: # Broken: success on invalid input.
7780: continue
7781: else
7782: # Passes both tests.
7783: ac_preproc_ok=:
7784: break
7785: fi
1.32 moko 7786: rm -f conftest.err conftest.i conftest.$ac_ext
1.11 paf 7787:
1.25 moko 7788: done
7789: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.32 moko 7790: rm -f conftest.i conftest.err conftest.$ac_ext
7791: if $ac_preproc_ok; then :
7792:
1.25 moko 7793: else
1.32 moko 7794: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7795: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7796: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7797: See \`config.log' for more details" "$LINENO" 5; }
1.25 moko 7798: fi
1.11 paf 7799:
1.25 moko 7800: ac_ext=c
7801: ac_cpp='$CPP $CPPFLAGS'
7802: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 7805:
7806:
1.32 moko 7807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7808: $as_echo_n "checking for ANSI C header files... " >&6; }
7809: if ${ac_cv_header_stdc+:} false; then :
7810: $as_echo_n "(cached) " >&6
1.25 moko 7811: else
1.32 moko 7812: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7813: /* end confdefs.h. */
7814: #include <stdlib.h>
7815: #include <stdarg.h>
7816: #include <string.h>
7817: #include <float.h>
1.11 paf 7818:
1.25 moko 7819: int
7820: main ()
7821: {
1.11 paf 7822:
1.25 moko 7823: ;
7824: return 0;
7825: }
7826: _ACEOF
1.32 moko 7827: if ac_fn_c_try_compile "$LINENO"; then :
1.25 moko 7828: ac_cv_header_stdc=yes
7829: else
1.32 moko 7830: ac_cv_header_stdc=no
1.25 moko 7831: fi
1.32 moko 7832: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 7833:
1.25 moko 7834: if test $ac_cv_header_stdc = yes; then
7835: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.32 moko 7836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7837: /* end confdefs.h. */
7838: #include <string.h>
1.11 paf 7839:
1.25 moko 7840: _ACEOF
7841: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.32 moko 7842: $EGREP "memchr" >/dev/null 2>&1; then :
7843:
1.25 moko 7844: else
7845: ac_cv_header_stdc=no
7846: fi
7847: rm -f conftest*
1.11 paf 7848:
1.25 moko 7849: fi
1.11 paf 7850:
1.25 moko 7851: if test $ac_cv_header_stdc = yes; then
7852: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.32 moko 7853: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7854: /* end confdefs.h. */
7855: #include <stdlib.h>
1.11 paf 7856:
1.25 moko 7857: _ACEOF
7858: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.32 moko 7859: $EGREP "free" >/dev/null 2>&1; then :
7860:
1.25 moko 7861: else
7862: ac_cv_header_stdc=no
7863: fi
7864: rm -f conftest*
1.11 paf 7865:
1.25 moko 7866: fi
1.11 paf 7867:
1.25 moko 7868: if test $ac_cv_header_stdc = yes; then
7869: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.32 moko 7870: if test "$cross_compiling" = yes; then :
1.25 moko 7871: :
7872: else
1.32 moko 7873: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 7874: /* end confdefs.h. */
7875: #include <ctype.h>
1.32 moko 7876: #include <stdlib.h>
1.25 moko 7877: #if ((' ' & 0x0FF) == 0x020)
7878: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7879: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7880: #else
7881: # define ISLOWER(c) \
7882: (('a' <= (c) && (c) <= 'i') \
7883: || ('j' <= (c) && (c) <= 'r') \
7884: || ('s' <= (c) && (c) <= 'z'))
7885: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7886: #endif
1.11 paf 7887:
1.25 moko 7888: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7889: int
7890: main ()
7891: {
7892: int i;
7893: for (i = 0; i < 256; i++)
7894: if (XOR (islower (i), ISLOWER (i))
7895: || toupper (i) != TOUPPER (i))
1.32 moko 7896: return 2;
7897: return 0;
1.25 moko 7898: }
7899: _ACEOF
1.32 moko 7900: if ac_fn_c_try_run "$LINENO"; then :
7901:
1.25 moko 7902: else
1.32 moko 7903: ac_cv_header_stdc=no
1.25 moko 7904: fi
1.32 moko 7905: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7906: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.25 moko 7907: fi
1.32 moko 7908:
1.25 moko 7909: fi
7910: fi
1.32 moko 7911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7912: $as_echo "$ac_cv_header_stdc" >&6; }
1.25 moko 7913: if test $ac_cv_header_stdc = yes; then
1.11 paf 7914:
1.32 moko 7915: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.11 paf 7916:
1.25 moko 7917: fi
1.11 paf 7918:
1.25 moko 7919: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7920: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7921: inttypes.h stdint.h unistd.h
1.32 moko 7922: do :
7923: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7924: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7925: "
7926: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.25 moko 7927: cat >>confdefs.h <<_ACEOF
1.32 moko 7928: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.25 moko 7929: _ACEOF
7930:
1.11 paf 7931: fi
1.25 moko 7932:
7933: done
7934:
7935:
7936: for ac_header in dlfcn.h
1.32 moko 7937: do :
7938: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7939: "
7940: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.25 moko 7941: cat >>confdefs.h <<_ACEOF
1.32 moko 7942: #define HAVE_DLFCN_H 1
1.11 paf 7943: _ACEOF
1.18 paf 7944:
1.25 moko 7945: fi
7946:
7947: done
7948:
1.18 paf 7949:
7950:
7951:
1.25 moko 7952: func_stripname_cnf ()
1.11 paf 7953: {
1.25 moko 7954: case ${2} in
7955: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7956: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7957: esac
7958: } # func_stripname_cnf
7959:
7960:
7961:
7962:
7963:
7964: # Set options
1.32 moko 7965: # Check whether --enable-static was given.
7966: if test "${enable_static+set}" = set; then :
7967: enableval=$enable_static; p=${PACKAGE-default}
1.31 moko 7968: case $enableval in
7969: yes) enable_static=yes ;;
7970: no) enable_static=no ;;
7971: *)
7972: enable_static=no
7973: # Look at the argument we got. We use all the common list separators.
7974: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7975: for pkg in $enableval; do
7976: IFS="$lt_save_ifs"
7977: if test "X$pkg" = "X$p"; then
7978: enable_static=yes
7979: fi
7980: done
7981: IFS="$lt_save_ifs"
7982: ;;
7983: esac
7984: else
7985: enable_static=no
1.32 moko 7986: fi
7987:
1.31 moko 7988:
7989:
7990:
7991:
7992:
7993:
1.25 moko 7994: enable_dlopen=yes
7995: enable_win32_dll=yes
7996:
7997: case $host in
7998: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7999: if test -n "$ac_tool_prefix"; then
8000: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8001: set dummy ${ac_tool_prefix}as; ac_word=$2
1.32 moko 8002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003: $as_echo_n "checking for $ac_word... " >&6; }
8004: if ${ac_cv_prog_AS+:} false; then :
8005: $as_echo_n "(cached) " >&6
1.25 moko 8006: else
8007: if test -n "$AS"; then
8008: ac_cv_prog_AS="$AS" # Let the user override the test.
8009: else
8010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011: for as_dir in $PATH
8012: do
8013: IFS=$as_save_IFS
8014: test -z "$as_dir" && as_dir=.
1.32 moko 8015: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 8016: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 8017: ac_cv_prog_AS="${ac_tool_prefix}as"
1.32 moko 8018: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8019: break 2
8020: fi
8021: done
1.32 moko 8022: done
8023: IFS=$as_save_IFS
1.11 paf 8024:
1.25 moko 8025: fi
8026: fi
8027: AS=$ac_cv_prog_AS
8028: if test -n "$AS"; then
1.32 moko 8029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8030: $as_echo "$AS" >&6; }
1.25 moko 8031: else
1.32 moko 8032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033: $as_echo "no" >&6; }
1.25 moko 8034: fi
8035:
1.32 moko 8036:
1.25 moko 8037: fi
8038: if test -z "$ac_cv_prog_AS"; then
8039: ac_ct_AS=$AS
8040: # Extract the first word of "as", so it can be a program name with args.
8041: set dummy as; ac_word=$2
1.32 moko 8042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043: $as_echo_n "checking for $ac_word... " >&6; }
8044: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8045: $as_echo_n "(cached) " >&6
1.25 moko 8046: else
8047: if test -n "$ac_ct_AS"; then
8048: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
1.11 paf 8049: else
1.25 moko 8050: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051: for as_dir in $PATH
8052: do
8053: IFS=$as_save_IFS
8054: test -z "$as_dir" && as_dir=.
1.32 moko 8055: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 8056: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 8057: ac_cv_prog_ac_ct_AS="as"
1.32 moko 8058: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8059: break 2
8060: fi
8061: done
1.32 moko 8062: done
8063: IFS=$as_save_IFS
1.11 paf 8064:
1.25 moko 8065: fi
1.11 paf 8066: fi
1.25 moko 8067: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8068: if test -n "$ac_ct_AS"; then
1.32 moko 8069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8070: $as_echo "$ac_ct_AS" >&6; }
1.25 moko 8071: else
1.32 moko 8072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073: $as_echo "no" >&6; }
1.11 paf 8074: fi
1.25 moko 8075:
1.32 moko 8076: if test "x$ac_ct_AS" = x; then
8077: AS="false"
8078: else
8079: case $cross_compiling:$ac_tool_warned in
8080: yes:)
8081: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8082: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8083: ac_tool_warned=yes ;;
8084: esac
8085: AS=$ac_ct_AS
8086: fi
1.11 paf 8087: else
1.25 moko 8088: AS="$ac_cv_prog_AS"
8089: fi
8090:
8091: if test -n "$ac_tool_prefix"; then
8092: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8093: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.32 moko 8094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095: $as_echo_n "checking for $ac_word... " >&6; }
8096: if ${ac_cv_prog_DLLTOOL+:} false; then :
8097: $as_echo_n "(cached) " >&6
1.11 paf 8098: else
1.25 moko 8099: if test -n "$DLLTOOL"; then
8100: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.11 paf 8101: else
1.25 moko 8102: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103: for as_dir in $PATH
8104: do
8105: IFS=$as_save_IFS
8106: test -z "$as_dir" && as_dir=.
1.32 moko 8107: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 8108: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 8109: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.32 moko 8110: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8111: break 2
8112: fi
8113: done
1.32 moko 8114: done
8115: IFS=$as_save_IFS
1.11 paf 8116:
8117: fi
8118: fi
1.25 moko 8119: DLLTOOL=$ac_cv_prog_DLLTOOL
8120: if test -n "$DLLTOOL"; then
1.32 moko 8121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8122: $as_echo "$DLLTOOL" >&6; }
1.11 paf 8123: else
1.32 moko 8124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125: $as_echo "no" >&6; }
1.25 moko 8126: fi
8127:
1.32 moko 8128:
1.25 moko 8129: fi
8130: if test -z "$ac_cv_prog_DLLTOOL"; then
8131: ac_ct_DLLTOOL=$DLLTOOL
8132: # Extract the first word of "dlltool", so it can be a program name with args.
8133: set dummy dlltool; ac_word=$2
1.32 moko 8134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135: $as_echo_n "checking for $ac_word... " >&6; }
8136: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8137: $as_echo_n "(cached) " >&6
1.11 paf 8138: else
1.25 moko 8139: if test -n "$ac_ct_DLLTOOL"; then
8140: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
1.11 paf 8141: else
1.25 moko 8142: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143: for as_dir in $PATH
8144: do
8145: IFS=$as_save_IFS
8146: test -z "$as_dir" && as_dir=.
1.32 moko 8147: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 8148: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 8149: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.32 moko 8150: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8151: break 2
8152: fi
8153: done
1.32 moko 8154: done
8155: IFS=$as_save_IFS
1.11 paf 8156:
1.25 moko 8157: fi
1.11 paf 8158: fi
1.25 moko 8159: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8160: if test -n "$ac_ct_DLLTOOL"; then
1.32 moko 8161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8162: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.25 moko 8163: else
1.32 moko 8164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165: $as_echo "no" >&6; }
1.11 paf 8166: fi
1.25 moko 8167:
1.32 moko 8168: if test "x$ac_ct_DLLTOOL" = x; then
8169: DLLTOOL="false"
8170: else
8171: case $cross_compiling:$ac_tool_warned in
8172: yes:)
8173: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8174: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8175: ac_tool_warned=yes ;;
8176: esac
8177: DLLTOOL=$ac_ct_DLLTOOL
8178: fi
1.11 paf 8179: else
1.25 moko 8180: DLLTOOL="$ac_cv_prog_DLLTOOL"
8181: fi
8182:
8183: if test -n "$ac_tool_prefix"; then
8184: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8185: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.32 moko 8186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187: $as_echo_n "checking for $ac_word... " >&6; }
8188: if ${ac_cv_prog_OBJDUMP+:} false; then :
8189: $as_echo_n "(cached) " >&6
1.11 paf 8190: else
1.25 moko 8191: if test -n "$OBJDUMP"; then
8192: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8193: else
8194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195: for as_dir in $PATH
8196: do
8197: IFS=$as_save_IFS
8198: test -z "$as_dir" && as_dir=.
1.32 moko 8199: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 8200: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 8201: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.32 moko 8202: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8203: break 2
8204: fi
8205: done
1.32 moko 8206: done
8207: IFS=$as_save_IFS
1.25 moko 8208:
8209: fi
8210: fi
8211: OBJDUMP=$ac_cv_prog_OBJDUMP
8212: if test -n "$OBJDUMP"; then
1.32 moko 8213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8214: $as_echo "$OBJDUMP" >&6; }
1.25 moko 8215: else
1.32 moko 8216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217: $as_echo "no" >&6; }
1.25 moko 8218: fi
1.11 paf 8219:
1.32 moko 8220:
1.25 moko 8221: fi
8222: if test -z "$ac_cv_prog_OBJDUMP"; then
8223: ac_ct_OBJDUMP=$OBJDUMP
8224: # Extract the first word of "objdump", so it can be a program name with args.
8225: set dummy objdump; ac_word=$2
1.32 moko 8226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227: $as_echo_n "checking for $ac_word... " >&6; }
8228: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8229: $as_echo_n "(cached) " >&6
1.25 moko 8230: else
8231: if test -n "$ac_ct_OBJDUMP"; then
8232: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
1.11 paf 8233: else
1.25 moko 8234: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235: for as_dir in $PATH
8236: do
8237: IFS=$as_save_IFS
8238: test -z "$as_dir" && as_dir=.
1.32 moko 8239: for ac_exec_ext in '' $ac_executable_extensions; do
1.35 moko 8240: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.25 moko 8241: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.32 moko 8242: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.25 moko 8243: break 2
8244: fi
8245: done
1.32 moko 8246: done
8247: IFS=$as_save_IFS
1.11 paf 8248:
1.25 moko 8249: fi
1.11 paf 8250: fi
1.25 moko 8251: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8252: if test -n "$ac_ct_OBJDUMP"; then
1.32 moko 8253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8254: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.25 moko 8255: else
1.32 moko 8256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257: $as_echo "no" >&6; }
1.11 paf 8258: fi
1.25 moko 8259:
1.32 moko 8260: if test "x$ac_ct_OBJDUMP" = x; then
8261: OBJDUMP="false"
8262: else
8263: case $cross_compiling:$ac_tool_warned in
8264: yes:)
8265: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8266: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8267: ac_tool_warned=yes ;;
8268: esac
8269: OBJDUMP=$ac_ct_OBJDUMP
8270: fi
1.25 moko 8271: else
8272: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.11 paf 8273: fi
8274:
1.25 moko 8275: ;;
8276: esac
8277:
8278: test -z "$AS" && AS=as
8279:
1.11 paf 8280:
8281:
8282:
8283:
1.25 moko 8284: test -z "$DLLTOOL" && DLLTOOL=dlltool
1.11 paf 8285:
8286:
8287:
8288:
8289:
1.25 moko 8290: test -z "$OBJDUMP" && OBJDUMP=objdump
1.11 paf 8291:
8292:
8293:
8294:
8295:
8296:
8297:
8298:
8299:
1.32 moko 8300: # Check whether --enable-shared was given.
8301: if test "${enable_shared+set}" = set; then :
8302: enableval=$enable_shared; p=${PACKAGE-default}
1.25 moko 8303: case $enableval in
8304: yes) enable_shared=yes ;;
8305: no) enable_shared=no ;;
8306: *)
8307: enable_shared=no
8308: # Look at the argument we got. We use all the common list separators.
8309: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8310: for pkg in $enableval; do
8311: IFS="$lt_save_ifs"
8312: if test "X$pkg" = "X$p"; then
8313: enable_shared=yes
8314: fi
8315: done
8316: IFS="$lt_save_ifs"
8317: ;;
8318: esac
8319: else
8320: enable_shared=yes
1.32 moko 8321: fi
8322:
1.11 paf 8323:
8324:
8325:
8326:
8327:
8328:
8329:
8330:
8331:
8332:
1.32 moko 8333: # Check whether --with-pic was given.
8334: if test "${with_pic+set}" = set; then :
8335: withval=$with_pic; lt_p=${PACKAGE-default}
1.25 moko 8336: case $withval in
8337: yes|no) pic_mode=$withval ;;
8338: *)
8339: pic_mode=default
8340: # Look at the argument we got. We use all the common list separators.
8341: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8342: for lt_pkg in $withval; do
8343: IFS="$lt_save_ifs"
8344: if test "X$lt_pkg" = "X$lt_p"; then
8345: pic_mode=yes
8346: fi
8347: done
8348: IFS="$lt_save_ifs"
8349: ;;
1.11 paf 8350: esac
1.25 moko 8351: else
8352: pic_mode=default
1.32 moko 8353: fi
8354:
1.11 paf 8355:
1.25 moko 8356: test -z "$pic_mode" && pic_mode=default
1.11 paf 8357:
8358:
8359:
8360:
8361:
8362:
8363:
1.32 moko 8364: # Check whether --enable-fast-install was given.
8365: if test "${enable_fast_install+set}" = set; then :
8366: enableval=$enable_fast_install; p=${PACKAGE-default}
1.25 moko 8367: case $enableval in
8368: yes) enable_fast_install=yes ;;
8369: no) enable_fast_install=no ;;
1.11 paf 8370: *)
1.25 moko 8371: enable_fast_install=no
8372: # Look at the argument we got. We use all the common list separators.
8373: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8374: for pkg in $enableval; do
8375: IFS="$lt_save_ifs"
8376: if test "X$pkg" = "X$p"; then
8377: enable_fast_install=yes
8378: fi
8379: done
8380: IFS="$lt_save_ifs"
1.11 paf 8381: ;;
8382: esac
1.25 moko 8383: else
8384: enable_fast_install=yes
1.32 moko 8385: fi
8386:
1.11 paf 8387:
8388:
8389:
8390:
8391:
8392:
8393:
8394:
8395:
8396:
1.25 moko 8397: # This can be used to rebuild libtool when needed
8398: LIBTOOL_DEPS="$ltmain"
1.11 paf 8399:
1.25 moko 8400: # Always use our own libtool.
8401: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.11 paf 8402:
8403:
8404:
8405:
8406:
8407:
8408:
8409:
8410:
8411:
8412:
8413:
8414:
8415:
8416:
8417:
8418:
8419:
8420:
8421:
8422:
8423:
8424:
8425:
8426:
8427:
8428:
8429:
8430:
8431:
1.25 moko 8432: test -z "$LN_S" && LN_S="ln -s"
1.11 paf 8433:
8434:
8435:
8436:
8437:
8438:
8439:
8440:
8441:
8442:
8443:
8444:
8445:
8446:
1.25 moko 8447: if test -n "${ZSH_VERSION+set}" ; then
8448: setopt NO_GLOB_SUBST
8449: fi
1.11 paf 8450:
1.32 moko 8451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8452: $as_echo_n "checking for objdir... " >&6; }
8453: if ${lt_cv_objdir+:} false; then :
8454: $as_echo_n "(cached) " >&6
1.25 moko 8455: else
8456: rm -f .libs 2>/dev/null
8457: mkdir .libs 2>/dev/null
8458: if test -d .libs; then
8459: lt_cv_objdir=.libs
8460: else
8461: # MS-DOS does not allow filenames that begin with a dot.
8462: lt_cv_objdir=_libs
8463: fi
8464: rmdir .libs 2>/dev/null
8465: fi
1.32 moko 8466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8467: $as_echo "$lt_cv_objdir" >&6; }
1.25 moko 8468: objdir=$lt_cv_objdir
1.11 paf 8469:
8470:
8471:
8472:
8473:
1.25 moko 8474: cat >>confdefs.h <<_ACEOF
8475: #define LT_OBJDIR "$lt_cv_objdir/"
8476: _ACEOF
1.11 paf 8477:
8478:
8479:
8480:
1.25 moko 8481: case $host_os in
8482: aix3*)
8483: # AIX sometimes has problems with the GCC collect2 program. For some
8484: # reason, if we set the COLLECT_NAMES environment variable, the problems
8485: # vanish in a puff of smoke.
8486: if test "X${COLLECT_NAMES+set}" != Xset; then
8487: COLLECT_NAMES=
8488: export COLLECT_NAMES
8489: fi
8490: ;;
8491: esac
1.11 paf 8492:
1.25 moko 8493: # Global variables:
8494: ofile=libtool
8495: can_build_shared=yes
1.11 paf 8496:
1.25 moko 8497: # All known linkers require a `.a' archive for static linking (except MSVC,
8498: # which needs '.lib').
8499: libext=a
1.11 paf 8500:
1.25 moko 8501: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.11 paf 8502:
1.25 moko 8503: old_CC="$CC"
8504: old_CFLAGS="$CFLAGS"
1.11 paf 8505:
1.25 moko 8506: # Set sane defaults for various variables
8507: test -z "$CC" && CC=cc
8508: test -z "$LTCC" && LTCC=$CC
8509: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8510: test -z "$LD" && LD=ld
8511: test -z "$ac_objext" && ac_objext=o
1.11 paf 8512:
1.25 moko 8513: for cc_temp in $compiler""; do
8514: case $cc_temp in
8515: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8516: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8517: \-*) ;;
8518: *) break;;
8519: esac
8520: done
8521: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.11 paf 8522:
8523:
1.25 moko 8524: # Only perform the check for file, if the check method requires it
8525: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8526: case $deplibs_check_method in
8527: file_magic*)
8528: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.32 moko 8529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8530: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8531: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8532: $as_echo_n "(cached) " >&6
1.25 moko 8533: else
8534: case $MAGIC_CMD in
8535: [\\/*] | ?:[\\/]*)
8536: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8537: ;;
8538: *)
8539: lt_save_MAGIC_CMD="$MAGIC_CMD"
8540: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8541: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8542: for ac_dir in $ac_dummy; do
8543: IFS="$lt_save_ifs"
8544: test -z "$ac_dir" && ac_dir=.
8545: if test -f $ac_dir/${ac_tool_prefix}file; then
8546: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8547: if test -n "$file_magic_test_file"; then
8548: case $deplibs_check_method in
8549: "file_magic "*)
8550: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8551: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8552: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8553: $EGREP "$file_magic_regex" > /dev/null; then
8554: :
8555: else
8556: cat <<_LT_EOF 1>&2
1.11 paf 8557:
1.25 moko 8558: *** Warning: the command libtool uses to detect shared libraries,
8559: *** $file_magic_cmd, produces output that libtool cannot recognize.
8560: *** The result is that libtool may fail to recognize shared libraries
8561: *** as such. This will affect the creation of libtool libraries that
8562: *** depend on shared libraries, but programs linked with such libtool
8563: *** libraries will work regardless of this problem. Nevertheless, you
8564: *** may want to report the problem to your system manager and/or to
8565: *** bug-libtool@gnu.org
1.11 paf 8566:
1.25 moko 8567: _LT_EOF
8568: fi ;;
8569: esac
8570: fi
8571: break
8572: fi
8573: done
8574: IFS="$lt_save_ifs"
8575: MAGIC_CMD="$lt_save_MAGIC_CMD"
8576: ;;
8577: esac
8578: fi
1.7 paf 8579:
1.25 moko 8580: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8581: if test -n "$MAGIC_CMD"; then
1.32 moko 8582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8583: $as_echo "$MAGIC_CMD" >&6; }
1.25 moko 8584: else
1.32 moko 8585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586: $as_echo "no" >&6; }
1.25 moko 8587: fi
1.7 paf 8588:
8589:
8590:
8591:
8592:
1.25 moko 8593: if test -z "$lt_cv_path_MAGIC_CMD"; then
8594: if test -n "$ac_tool_prefix"; then
1.32 moko 8595: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8596: $as_echo_n "checking for file... " >&6; }
8597: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8598: $as_echo_n "(cached) " >&6
1.25 moko 8599: else
8600: case $MAGIC_CMD in
8601: [\\/*] | ?:[\\/]*)
8602: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8603: ;;
8604: *)
8605: lt_save_MAGIC_CMD="$MAGIC_CMD"
8606: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8607: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8608: for ac_dir in $ac_dummy; do
8609: IFS="$lt_save_ifs"
8610: test -z "$ac_dir" && ac_dir=.
8611: if test -f $ac_dir/file; then
8612: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8613: if test -n "$file_magic_test_file"; then
8614: case $deplibs_check_method in
8615: "file_magic "*)
8616: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8617: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8618: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8619: $EGREP "$file_magic_regex" > /dev/null; then
8620: :
8621: else
8622: cat <<_LT_EOF 1>&2
1.7 paf 8623:
1.25 moko 8624: *** Warning: the command libtool uses to detect shared libraries,
8625: *** $file_magic_cmd, produces output that libtool cannot recognize.
8626: *** The result is that libtool may fail to recognize shared libraries
8627: *** as such. This will affect the creation of libtool libraries that
8628: *** depend on shared libraries, but programs linked with such libtool
8629: *** libraries will work regardless of this problem. Nevertheless, you
8630: *** may want to report the problem to your system manager and/or to
8631: *** bug-libtool@gnu.org
1.7 paf 8632:
1.25 moko 8633: _LT_EOF
8634: fi ;;
8635: esac
8636: fi
8637: break
8638: fi
8639: done
8640: IFS="$lt_save_ifs"
8641: MAGIC_CMD="$lt_save_MAGIC_CMD"
8642: ;;
8643: esac
8644: fi
1.7 paf 8645:
1.25 moko 8646: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8647: if test -n "$MAGIC_CMD"; then
1.32 moko 8648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8649: $as_echo "$MAGIC_CMD" >&6; }
1.25 moko 8650: else
1.32 moko 8651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652: $as_echo "no" >&6; }
1.11 paf 8653: fi
8654:
8655:
1.25 moko 8656: else
8657: MAGIC_CMD=:
8658: fi
1.1 parser 8659: fi
8660:
1.25 moko 8661: fi
8662: ;;
8663: esac
1.1 parser 8664:
1.25 moko 8665: # Use C for the default configuration in the libtool script
1.1 parser 8666:
1.25 moko 8667: lt_save_CC="$CC"
8668: ac_ext=c
8669: ac_cpp='$CPP $CPPFLAGS'
8670: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8671: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8672: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 8673:
8674:
1.25 moko 8675: # Source file extension for C test sources.
8676: ac_ext=c
1.11 paf 8677:
1.25 moko 8678: # Object file extension for compiled C test sources.
8679: objext=o
8680: objext=$objext
1.11 paf 8681:
1.25 moko 8682: # Code to be used in simple compile tests
8683: lt_simple_compile_test_code="int some_variable = 0;"
1.11 paf 8684:
1.25 moko 8685: # Code to be used in simple link tests
8686: lt_simple_link_test_code='int main(){return(0);}'
1.11 paf 8687:
8688:
8689:
8690:
8691:
1.1 parser 8692:
8693:
1.25 moko 8694: # If no C compiler was specified, use CC.
8695: LTCC=${LTCC-"$CC"}
1.1 parser 8696:
1.25 moko 8697: # If no C compiler flags were specified, use CFLAGS.
8698: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 parser 8699:
1.25 moko 8700: # Allow CC to be a program name with arguments.
8701: compiler=$CC
1.1 parser 8702:
1.25 moko 8703: # Save the default compiler, since it gets overwritten when the other
8704: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8705: compiler_DEFAULT=$CC
8706:
8707: # save warnings/boilerplate of simple test code
8708: ac_outfile=conftest.$ac_objext
8709: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8710: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8711: _lt_compiler_boilerplate=`cat conftest.err`
8712: $RM conftest*
8713:
8714: ac_outfile=conftest.$ac_objext
8715: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8716: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8717: _lt_linker_boilerplate=`cat conftest.err`
8718: $RM -r conftest*
8719:
8720:
8721: ## CAVEAT EMPTOR:
8722: ## There is no encapsulation within the following macros, do not change
8723: ## the running order or otherwise move them around unless you know exactly
8724: ## what you are doing...
8725: if test -n "$compiler"; then
1.1 parser 8726:
1.25 moko 8727: lt_prog_compiler_no_builtin_flag=
1.1 parser 8728:
1.25 moko 8729: if test "$GCC" = yes; then
8730: case $cc_basename in
8731: nvcc*)
8732: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8733: *)
8734: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8735: esac
1.1 parser 8736:
1.32 moko 8737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8738: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8739: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8740: $as_echo_n "(cached) " >&6
1.11 paf 8741: else
1.25 moko 8742: lt_cv_prog_compiler_rtti_exceptions=no
8743: ac_outfile=conftest.$ac_objext
8744: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8745: lt_compiler_flag="-fno-rtti -fno-exceptions"
8746: # Insert the option either (1) after the last *FLAGS variable, or
8747: # (2) before a word containing "conftest.", or (3) at the end.
8748: # Note that $ac_compile itself does not contain backslashes and begins
8749: # with a dollar sign (not a hyphen), so the echo should work correctly.
8750: # The option is referenced via a variable to avoid confusing sed.
8751: lt_compile=`echo "$ac_compile" | $SED \
8752: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8753: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8754: -e 's:$: $lt_compiler_flag:'`
8755: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8756: (eval "$lt_compile" 2>conftest.err)
8757: ac_status=$?
8758: cat conftest.err >&5
8759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760: if (exit $ac_status) && test -s "$ac_outfile"; then
8761: # The compiler can only warn and ignore the option if not recognized
8762: # So say no if there are warnings other than the usual output.
8763: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8764: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8765: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8766: lt_cv_prog_compiler_rtti_exceptions=yes
8767: fi
8768: fi
8769: $RM conftest*
1.11 paf 8770:
8771: fi
1.32 moko 8772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8773: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.11 paf 8774:
1.25 moko 8775: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8776: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.11 paf 8777: else
1.25 moko 8778: :
1.11 paf 8779: fi
8780:
8781: fi
8782:
1.25 moko 8783:
8784:
8785:
8786:
8787:
8788: lt_prog_compiler_wl=
8789: lt_prog_compiler_pic=
8790: lt_prog_compiler_static=
8791:
8792:
8793: if test "$GCC" = yes; then
8794: lt_prog_compiler_wl='-Wl,'
8795: lt_prog_compiler_static='-static'
8796:
8797: case $host_os in
8798: aix*)
8799: # All AIX code is PIC.
8800: if test "$host_cpu" = ia64; then
8801: # AIX 5 now supports IA64 processor
8802: lt_prog_compiler_static='-Bstatic'
8803: fi
8804: ;;
8805:
8806: amigaos*)
8807: case $host_cpu in
8808: powerpc)
8809: # see comment about AmigaOS4 .so support
8810: lt_prog_compiler_pic='-fPIC'
8811: ;;
8812: m68k)
8813: # FIXME: we need at least 68020 code to build shared libraries, but
8814: # adding the `-m68020' flag to GCC prevents building anything better,
8815: # like `-m68040'.
8816: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8817: ;;
8818: esac
8819: ;;
8820:
8821: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8822: # PIC is the default for these OSes.
8823: ;;
8824:
8825: mingw* | cygwin* | pw32* | os2* | cegcc*)
8826: # This hack is so that the source file can tell whether it is being
8827: # built for inclusion in a dll (and should export symbols for example).
8828: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8829: # (--disable-auto-import) libraries
8830: lt_prog_compiler_pic='-DDLL_EXPORT'
8831: ;;
8832:
8833: darwin* | rhapsody*)
8834: # PIC is the default on this platform
8835: # Common symbols not allowed in MH_DYLIB files
8836: lt_prog_compiler_pic='-fno-common'
8837: ;;
8838:
8839: haiku*)
8840: # PIC is the default for Haiku.
8841: # The "-static" flag exists, but is broken.
8842: lt_prog_compiler_static=
8843: ;;
8844:
8845: hpux*)
8846: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8847: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8848: # sets the default TLS model and affects inlining.
8849: case $host_cpu in
8850: hppa*64*)
8851: # +Z the default
8852: ;;
8853: *)
8854: lt_prog_compiler_pic='-fPIC'
8855: ;;
8856: esac
8857: ;;
8858:
8859: interix[3-9]*)
8860: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8861: # Instead, we relocate shared libraries at runtime.
8862: ;;
8863:
8864: msdosdjgpp*)
8865: # Just because we use GCC doesn't mean we suddenly get shared libraries
8866: # on systems that don't support them.
8867: lt_prog_compiler_can_build_shared=no
8868: enable_shared=no
8869: ;;
8870:
8871: *nto* | *qnx*)
8872: # QNX uses GNU C++, but need to define -shared option too, otherwise
8873: # it will coredump.
8874: lt_prog_compiler_pic='-fPIC -shared'
8875: ;;
8876:
8877: sysv4*MP*)
8878: if test -d /usr/nec; then
8879: lt_prog_compiler_pic=-Kconform_pic
8880: fi
8881: ;;
8882:
8883: *)
8884: lt_prog_compiler_pic='-fPIC'
8885: ;;
8886: esac
8887:
8888: case $cc_basename in
8889: nvcc*) # Cuda Compiler Driver 2.2
8890: lt_prog_compiler_wl='-Xlinker '
8891: if test -n "$lt_prog_compiler_pic"; then
8892: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8893: fi
8894: ;;
8895: esac
8896: else
8897: # PORTME Check for flag to pass linker flags through the system compiler.
8898: case $host_os in
8899: aix*)
8900: lt_prog_compiler_wl='-Wl,'
8901: if test "$host_cpu" = ia64; then
8902: # AIX 5 now supports IA64 processor
8903: lt_prog_compiler_static='-Bstatic'
8904: else
8905: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8906: fi
8907: ;;
8908:
8909: mingw* | cygwin* | pw32* | os2* | cegcc*)
8910: # This hack is so that the source file can tell whether it is being
8911: # built for inclusion in a dll (and should export symbols for example).
8912: lt_prog_compiler_pic='-DDLL_EXPORT'
8913: ;;
8914:
8915: hpux9* | hpux10* | hpux11*)
8916: lt_prog_compiler_wl='-Wl,'
8917: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8918: # not for PA HP-UX.
8919: case $host_cpu in
8920: hppa*64*|ia64*)
8921: # +Z the default
8922: ;;
8923: *)
8924: lt_prog_compiler_pic='+Z'
8925: ;;
8926: esac
8927: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8928: lt_prog_compiler_static='${wl}-a ${wl}archive'
8929: ;;
8930:
8931: irix5* | irix6* | nonstopux*)
8932: lt_prog_compiler_wl='-Wl,'
8933: # PIC (with -KPIC) is the default.
8934: lt_prog_compiler_static='-non_shared'
8935: ;;
8936:
8937: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8938: case $cc_basename in
8939: # old Intel for x86_64 which still supported -KPIC.
8940: ecc*)
8941: lt_prog_compiler_wl='-Wl,'
8942: lt_prog_compiler_pic='-KPIC'
8943: lt_prog_compiler_static='-static'
8944: ;;
8945: # icc used to be incompatible with GCC.
8946: # ICC 10 doesn't accept -KPIC any more.
8947: icc* | ifort*)
8948: lt_prog_compiler_wl='-Wl,'
8949: lt_prog_compiler_pic='-fPIC'
8950: lt_prog_compiler_static='-static'
8951: ;;
8952: # Lahey Fortran 8.1.
8953: lf95*)
8954: lt_prog_compiler_wl='-Wl,'
8955: lt_prog_compiler_pic='--shared'
8956: lt_prog_compiler_static='--static'
8957: ;;
8958: nagfor*)
8959: # NAG Fortran compiler
8960: lt_prog_compiler_wl='-Wl,-Wl,,'
8961: lt_prog_compiler_pic='-PIC'
8962: lt_prog_compiler_static='-Bstatic'
8963: ;;
8964: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8965: # Portland Group compilers (*not* the Pentium gcc compiler,
8966: # which looks to be a dead project)
8967: lt_prog_compiler_wl='-Wl,'
8968: lt_prog_compiler_pic='-fpic'
8969: lt_prog_compiler_static='-Bstatic'
8970: ;;
8971: ccc*)
8972: lt_prog_compiler_wl='-Wl,'
8973: # All Alpha code is PIC.
8974: lt_prog_compiler_static='-non_shared'
8975: ;;
8976: xl* | bgxl* | bgf* | mpixl*)
8977: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8978: lt_prog_compiler_wl='-Wl,'
8979: lt_prog_compiler_pic='-qpic'
8980: lt_prog_compiler_static='-qstaticlink'
8981: ;;
8982: *)
8983: case `$CC -V 2>&1 | sed 5q` in
8984: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8985: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8986: lt_prog_compiler_pic='-KPIC'
8987: lt_prog_compiler_static='-Bstatic'
8988: lt_prog_compiler_wl=''
8989: ;;
8990: *Sun\ F* | *Sun*Fortran*)
8991: lt_prog_compiler_pic='-KPIC'
8992: lt_prog_compiler_static='-Bstatic'
8993: lt_prog_compiler_wl='-Qoption ld '
8994: ;;
8995: *Sun\ C*)
8996: # Sun C 5.9
8997: lt_prog_compiler_pic='-KPIC'
8998: lt_prog_compiler_static='-Bstatic'
8999: lt_prog_compiler_wl='-Wl,'
9000: ;;
9001: *Intel*\ [CF]*Compiler*)
9002: lt_prog_compiler_wl='-Wl,'
9003: lt_prog_compiler_pic='-fPIC'
9004: lt_prog_compiler_static='-static'
9005: ;;
9006: *Portland\ Group*)
9007: lt_prog_compiler_wl='-Wl,'
9008: lt_prog_compiler_pic='-fpic'
9009: lt_prog_compiler_static='-Bstatic'
9010: ;;
9011: esac
9012: ;;
9013: esac
9014: ;;
9015:
9016: newsos6)
9017: lt_prog_compiler_pic='-KPIC'
9018: lt_prog_compiler_static='-Bstatic'
9019: ;;
9020:
9021: *nto* | *qnx*)
9022: # QNX uses GNU C++, but need to define -shared option too, otherwise
9023: # it will coredump.
9024: lt_prog_compiler_pic='-fPIC -shared'
9025: ;;
9026:
9027: osf3* | osf4* | osf5*)
9028: lt_prog_compiler_wl='-Wl,'
9029: # All OSF/1 code is PIC.
9030: lt_prog_compiler_static='-non_shared'
9031: ;;
9032:
9033: rdos*)
9034: lt_prog_compiler_static='-non_shared'
9035: ;;
9036:
9037: solaris*)
9038: lt_prog_compiler_pic='-KPIC'
9039: lt_prog_compiler_static='-Bstatic'
9040: case $cc_basename in
9041: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9042: lt_prog_compiler_wl='-Qoption ld ';;
9043: *)
9044: lt_prog_compiler_wl='-Wl,';;
9045: esac
9046: ;;
9047:
9048: sunos4*)
9049: lt_prog_compiler_wl='-Qoption ld '
9050: lt_prog_compiler_pic='-PIC'
9051: lt_prog_compiler_static='-Bstatic'
9052: ;;
9053:
9054: sysv4 | sysv4.2uw2* | sysv4.3*)
9055: lt_prog_compiler_wl='-Wl,'
9056: lt_prog_compiler_pic='-KPIC'
9057: lt_prog_compiler_static='-Bstatic'
9058: ;;
9059:
9060: sysv4*MP*)
9061: if test -d /usr/nec ;then
9062: lt_prog_compiler_pic='-Kconform_pic'
9063: lt_prog_compiler_static='-Bstatic'
9064: fi
9065: ;;
9066:
9067: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9068: lt_prog_compiler_wl='-Wl,'
9069: lt_prog_compiler_pic='-KPIC'
9070: lt_prog_compiler_static='-Bstatic'
9071: ;;
9072:
9073: unicos*)
9074: lt_prog_compiler_wl='-Wl,'
9075: lt_prog_compiler_can_build_shared=no
9076: ;;
9077:
9078: uts4*)
9079: lt_prog_compiler_pic='-pic'
9080: lt_prog_compiler_static='-Bstatic'
9081: ;;
9082:
9083: *)
9084: lt_prog_compiler_can_build_shared=no
9085: ;;
9086: esac
9087: fi
9088:
9089: case $host_os in
9090: # For platforms which do not support PIC, -DPIC is meaningless:
9091: *djgpp*)
9092: lt_prog_compiler_pic=
1.11 paf 9093: ;;
1.25 moko 9094: *)
9095: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.11 paf 9096: ;;
9097: esac
1.25 moko 9098:
1.32 moko 9099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9100: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9101: if ${lt_cv_prog_compiler_pic+:} false; then :
9102: $as_echo_n "(cached) " >&6
1.25 moko 9103: else
9104: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9105: fi
1.32 moko 9106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9107: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.25 moko 9108: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9109:
9110: #
9111: # Check to make sure the PIC flag actually works.
9112: #
9113: if test -n "$lt_prog_compiler_pic"; then
1.32 moko 9114: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9115: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9116: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9117: $as_echo_n "(cached) " >&6
1.1 parser 9118: else
1.25 moko 9119: lt_cv_prog_compiler_pic_works=no
9120: ac_outfile=conftest.$ac_objext
9121: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9122: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9123: # Insert the option either (1) after the last *FLAGS variable, or
9124: # (2) before a word containing "conftest.", or (3) at the end.
9125: # Note that $ac_compile itself does not contain backslashes and begins
9126: # with a dollar sign (not a hyphen), so the echo should work correctly.
9127: # The option is referenced via a variable to avoid confusing sed.
9128: lt_compile=`echo "$ac_compile" | $SED \
9129: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9130: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9131: -e 's:$: $lt_compiler_flag:'`
9132: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9133: (eval "$lt_compile" 2>conftest.err)
9134: ac_status=$?
9135: cat conftest.err >&5
9136: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137: if (exit $ac_status) && test -s "$ac_outfile"; then
9138: # The compiler can only warn and ignore the option if not recognized
9139: # So say no if there are warnings other than the usual output.
9140: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9141: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9142: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9143: lt_cv_prog_compiler_pic_works=yes
9144: fi
9145: fi
9146: $RM conftest*
9147:
1.1 parser 9148: fi
1.32 moko 9149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9150: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.11 paf 9151:
1.25 moko 9152: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9153: case $lt_prog_compiler_pic in
9154: "" | " "*) ;;
9155: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9156: esac
9157: else
9158: lt_prog_compiler_pic=
9159: lt_prog_compiler_can_build_shared=no
1.1 parser 9160: fi
1.11 paf 9161:
1.1 parser 9162: fi
1.11 paf 9163:
1.1 parser 9164:
9165:
1.4 paf 9166:
9167:
1.11 paf 9168:
9169:
1.4 paf 9170:
9171:
1.25 moko 9172:
9173:
9174: #
9175: # Check to make sure the static flag actually works.
9176: #
9177: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.32 moko 9178: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9179: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9180: if ${lt_cv_prog_compiler_static_works+:} false; then :
9181: $as_echo_n "(cached) " >&6
1.25 moko 9182: else
9183: lt_cv_prog_compiler_static_works=no
9184: save_LDFLAGS="$LDFLAGS"
9185: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9186: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9187: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9188: # The linker can only warn and ignore the option if not recognized
9189: # So say no if there are warnings
9190: if test -s conftest.err; then
9191: # Append any errors to the config.log.
9192: cat conftest.err 1>&5
9193: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9194: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9195: if diff conftest.exp conftest.er2 >/dev/null; then
9196: lt_cv_prog_compiler_static_works=yes
9197: fi
9198: else
9199: lt_cv_prog_compiler_static_works=yes
9200: fi
9201: fi
9202: $RM -r conftest*
9203: LDFLAGS="$save_LDFLAGS"
9204:
9205: fi
1.32 moko 9206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9207: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.25 moko 9208:
9209: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9210: :
1.4 paf 9211: else
1.25 moko 9212: lt_prog_compiler_static=
9213: fi
1.11 paf 9214:
9215:
1.25 moko 9216:
9217:
9218:
9219:
9220:
1.32 moko 9221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9222: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9223: if ${lt_cv_prog_compiler_c_o+:} false; then :
9224: $as_echo_n "(cached) " >&6
1.25 moko 9225: else
9226: lt_cv_prog_compiler_c_o=no
9227: $RM -r conftest 2>/dev/null
9228: mkdir conftest
9229: cd conftest
9230: mkdir out
9231: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9232:
9233: lt_compiler_flag="-o out/conftest2.$ac_objext"
9234: # Insert the option either (1) after the last *FLAGS variable, or
9235: # (2) before a word containing "conftest.", or (3) at the end.
9236: # Note that $ac_compile itself does not contain backslashes and begins
9237: # with a dollar sign (not a hyphen), so the echo should work correctly.
9238: lt_compile=`echo "$ac_compile" | $SED \
9239: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9240: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9241: -e 's:$: $lt_compiler_flag:'`
9242: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9243: (eval "$lt_compile" 2>out/conftest.err)
9244: ac_status=$?
9245: cat out/conftest.err >&5
9246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9248: then
9249: # The compiler can only warn and ignore the option if not recognized
9250: # So say no if there are warnings
9251: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9252: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9253: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9254: lt_cv_prog_compiler_c_o=yes
9255: fi
9256: fi
9257: chmod u+w . 2>&5
9258: $RM conftest*
9259: # SGI C++ compiler will create directory out/ii_files/ for
9260: # template instantiation
9261: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9262: $RM out/* && rmdir out
9263: cd ..
9264: $RM -r conftest
9265: $RM conftest*
9266:
9267: fi
1.32 moko 9268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9269: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.25 moko 9270:
9271:
9272:
9273:
9274:
9275:
1.32 moko 9276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9277: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9278: if ${lt_cv_prog_compiler_c_o+:} false; then :
9279: $as_echo_n "(cached) " >&6
1.25 moko 9280: else
9281: lt_cv_prog_compiler_c_o=no
9282: $RM -r conftest 2>/dev/null
9283: mkdir conftest
9284: cd conftest
9285: mkdir out
9286: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9287:
9288: lt_compiler_flag="-o out/conftest2.$ac_objext"
9289: # Insert the option either (1) after the last *FLAGS variable, or
9290: # (2) before a word containing "conftest.", or (3) at the end.
9291: # Note that $ac_compile itself does not contain backslashes and begins
9292: # with a dollar sign (not a hyphen), so the echo should work correctly.
9293: lt_compile=`echo "$ac_compile" | $SED \
9294: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9295: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9296: -e 's:$: $lt_compiler_flag:'`
9297: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9298: (eval "$lt_compile" 2>out/conftest.err)
9299: ac_status=$?
9300: cat out/conftest.err >&5
9301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9303: then
9304: # The compiler can only warn and ignore the option if not recognized
9305: # So say no if there are warnings
9306: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9307: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9308: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9309: lt_cv_prog_compiler_c_o=yes
9310: fi
9311: fi
9312: chmod u+w . 2>&5
9313: $RM conftest*
9314: # SGI C++ compiler will create directory out/ii_files/ for
9315: # template instantiation
9316: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9317: $RM out/* && rmdir out
9318: cd ..
9319: $RM -r conftest
9320: $RM conftest*
9321:
9322: fi
1.32 moko 9323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9324: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.25 moko 9325:
9326:
9327:
9328:
9329: hard_links="nottested"
9330: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9331: # do not overwrite the value of need_locks provided by the user
1.32 moko 9332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9333: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.25 moko 9334: hard_links=yes
9335: $RM conftest*
9336: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9337: touch conftest.a
9338: ln conftest.a conftest.b 2>&5 || hard_links=no
9339: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.32 moko 9340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9341: $as_echo "$hard_links" >&6; }
1.25 moko 9342: if test "$hard_links" = no; then
1.32 moko 9343: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9344: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.25 moko 9345: need_locks=warn
9346: fi
9347: else
9348: need_locks=no
9349: fi
9350:
9351:
9352:
9353:
9354:
9355:
1.32 moko 9356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9357: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.25 moko 9358:
9359: runpath_var=
9360: allow_undefined_flag=
9361: always_export_symbols=no
9362: archive_cmds=
9363: archive_expsym_cmds=
9364: compiler_needs_object=no
9365: enable_shared_with_static_runtimes=no
9366: export_dynamic_flag_spec=
9367: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9368: hardcode_automatic=no
9369: hardcode_direct=no
9370: hardcode_direct_absolute=no
9371: hardcode_libdir_flag_spec=
9372: hardcode_libdir_separator=
9373: hardcode_minus_L=no
9374: hardcode_shlibpath_var=unsupported
9375: inherit_rpath=no
9376: link_all_deplibs=unknown
9377: module_cmds=
9378: module_expsym_cmds=
9379: old_archive_from_new_cmds=
9380: old_archive_from_expsyms_cmds=
9381: thread_safe_flag_spec=
9382: whole_archive_flag_spec=
9383: # include_expsyms should be a list of space-separated symbols to be *always*
9384: # included in the symbol list
9385: include_expsyms=
9386: # exclude_expsyms can be an extended regexp of symbols to exclude
9387: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9388: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9389: # as well as any symbol that contains `d'.
9390: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9391: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9392: # platforms (ab)use it in PIC code, but their linkers get confused if
9393: # the symbol is explicitly referenced. Since portable code cannot
9394: # rely on this symbol name, it's probably fine to never include it in
9395: # preloaded symbol tables.
9396: # Exclude shared library initialization/finalization symbols.
9397: extract_expsyms_cmds=
9398:
9399: case $host_os in
9400: cygwin* | mingw* | pw32* | cegcc*)
9401: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9402: # When not using gcc, we currently assume that we are using
9403: # Microsoft Visual C++.
9404: if test "$GCC" != yes; then
9405: with_gnu_ld=no
9406: fi
9407: ;;
9408: interix*)
9409: # we just hope/assume this is gcc and not c89 (= MSVC++)
9410: with_gnu_ld=yes
9411: ;;
9412: openbsd*)
9413: with_gnu_ld=no
9414: ;;
9415: esac
9416:
9417: ld_shlibs=yes
9418:
9419: # On some targets, GNU ld is compatible enough with the native linker
9420: # that we're better off using the native interface for both.
9421: lt_use_gnu_ld_interface=no
9422: if test "$with_gnu_ld" = yes; then
9423: case $host_os in
9424: aix*)
9425: # The AIX port of GNU ld has always aspired to compatibility
9426: # with the native linker. However, as the warning in the GNU ld
9427: # block says, versions before 2.19.5* couldn't really create working
9428: # shared libraries, regardless of the interface used.
9429: case `$LD -v 2>&1` in
9430: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9431: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9432: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9433: *)
9434: lt_use_gnu_ld_interface=yes
9435: ;;
9436: esac
9437: ;;
9438: *)
9439: lt_use_gnu_ld_interface=yes
9440: ;;
9441: esac
9442: fi
9443:
9444: if test "$lt_use_gnu_ld_interface" = yes; then
9445: # If archive_cmds runs LD, not CC, wlarc should be empty
9446: wlarc='${wl}'
9447:
9448: # Set some defaults for GNU ld with shared library support. These
9449: # are reset later if shared libraries are not supported. Putting them
9450: # here allows them to be overridden if necessary.
9451: runpath_var=LD_RUN_PATH
9452: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9453: export_dynamic_flag_spec='${wl}--export-dynamic'
9454: # ancient GNU ld didn't support --whole-archive et. al.
9455: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9456: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9457: else
9458: whole_archive_flag_spec=
9459: fi
9460: supports_anon_versioning=no
9461: case `$LD -v 2>&1` in
9462: *GNU\ gold*) supports_anon_versioning=yes ;;
9463: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9464: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9465: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9466: *\ 2.11.*) ;; # other 2.11 versions
9467: *) supports_anon_versioning=yes ;;
9468: esac
9469:
9470: # See if GNU ld supports shared libraries.
9471: case $host_os in
9472: aix[3-9]*)
9473: # On AIX/PPC, the GNU linker is very broken
9474: if test "$host_cpu" != ia64; then
9475: ld_shlibs=no
9476: cat <<_LT_EOF 1>&2
9477:
9478: *** Warning: the GNU linker, at least up to release 2.19, is reported
9479: *** to be unable to reliably create shared libraries on AIX.
9480: *** Therefore, libtool is disabling shared libraries support. If you
9481: *** really care for shared libraries, you may want to install binutils
9482: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9483: *** You will then need to restart the configuration process.
9484:
9485: _LT_EOF
9486: fi
9487: ;;
9488:
9489: amigaos*)
9490: case $host_cpu in
9491: powerpc)
9492: # see comment about AmigaOS4 .so support
9493: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9494: archive_expsym_cmds=''
9495: ;;
9496: m68k)
9497: 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)'
9498: hardcode_libdir_flag_spec='-L$libdir'
9499: hardcode_minus_L=yes
9500: ;;
9501: esac
9502: ;;
9503:
9504: beos*)
9505: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9506: allow_undefined_flag=unsupported
9507: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9508: # support --undefined. This deserves some investigation. FIXME
9509: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9510: else
9511: ld_shlibs=no
9512: fi
9513: ;;
9514:
9515: cygwin* | mingw* | pw32* | cegcc*)
9516: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9517: # as there is no search path for DLLs.
9518: hardcode_libdir_flag_spec='-L$libdir'
9519: export_dynamic_flag_spec='${wl}--export-all-symbols'
9520: allow_undefined_flag=unsupported
9521: always_export_symbols=no
9522: enable_shared_with_static_runtimes=yes
9523: 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'
9524: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9525:
9526: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9527: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9528: # If the export-symbols file already is a .def file (1st line
9529: # is EXPORTS), use it as is; otherwise, prepend...
9530: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9531: cp $export_symbols $output_objdir/$soname.def;
9532: else
9533: echo EXPORTS > $output_objdir/$soname.def;
9534: cat $export_symbols >> $output_objdir/$soname.def;
9535: fi~
9536: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9537: else
9538: ld_shlibs=no
9539: fi
9540: ;;
9541:
9542: haiku*)
9543: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544: link_all_deplibs=yes
9545: ;;
9546:
9547: interix[3-9]*)
9548: hardcode_direct=no
9549: hardcode_shlibpath_var=no
9550: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9551: export_dynamic_flag_spec='${wl}-E'
9552: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9553: # Instead, shared libraries are loaded at an image base (0x10000000 by
9554: # default) and relocated if they conflict, which is a slow very memory
9555: # consuming and fragmenting process. To avoid this, we pick a random,
9556: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9557: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9558: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9559: 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'
9560: ;;
9561:
9562: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9563: tmp_diet=no
9564: if test "$host_os" = linux-dietlibc; then
9565: case $cc_basename in
9566: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9567: esac
9568: fi
9569: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9570: && test "$tmp_diet" = no
9571: then
9572: tmp_addflag=' $pic_flag'
9573: tmp_sharedflag='-shared'
9574: case $cc_basename,$host_cpu in
9575: pgcc*) # Portland Group C compiler
9576: 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'
9577: tmp_addflag=' $pic_flag'
9578: ;;
9579: pgf77* | pgf90* | pgf95* | pgfortran*)
9580: # Portland Group f77 and f90 compilers
9581: 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'
9582: tmp_addflag=' $pic_flag -Mnomain' ;;
9583: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9584: tmp_addflag=' -i_dynamic' ;;
9585: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9586: tmp_addflag=' -i_dynamic -nofor_main' ;;
9587: ifc* | ifort*) # Intel Fortran compiler
9588: tmp_addflag=' -nofor_main' ;;
9589: lf95*) # Lahey Fortran 8.1
9590: whole_archive_flag_spec=
9591: tmp_sharedflag='--shared' ;;
9592: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9593: tmp_sharedflag='-qmkshrobj'
9594: tmp_addflag= ;;
9595: nvcc*) # Cuda Compiler Driver 2.2
9596: 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'
9597: compiler_needs_object=yes
9598: ;;
9599: esac
9600: case `$CC -V 2>&1 | sed 5q` in
9601: *Sun\ C*) # Sun C 5.9
9602: 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'
9603: compiler_needs_object=yes
9604: tmp_sharedflag='-G' ;;
9605: *Sun\ F*) # Sun Fortran 8.3
9606: tmp_sharedflag='-G' ;;
9607: esac
9608: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9609:
9610: if test "x$supports_anon_versioning" = xyes; then
9611: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9612: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9613: echo "local: *; };" >> $output_objdir/$libname.ver~
9614: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9615: fi
9616:
9617: case $cc_basename in
9618: xlf* | bgf* | bgxlf* | mpixlf*)
9619: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9620: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9621: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9622: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9623: if test "x$supports_anon_versioning" = xyes; then
9624: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9625: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9626: echo "local: *; };" >> $output_objdir/$libname.ver~
9627: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9628: fi
9629: ;;
9630: esac
9631: else
9632: ld_shlibs=no
9633: fi
9634: ;;
9635:
9636: netbsd*)
9637: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9638: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9639: wlarc=
9640: else
9641: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9643: fi
9644: ;;
9645:
9646: solaris*)
9647: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9648: ld_shlibs=no
9649: cat <<_LT_EOF 1>&2
9650:
9651: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9652: *** create shared libraries on Solaris systems. Therefore, libtool
9653: *** is disabling shared libraries support. We urge you to upgrade GNU
9654: *** binutils to release 2.9.1 or newer. Another option is to modify
9655: *** your PATH or compiler configuration so that the native linker is
9656: *** used, and then restart.
9657:
9658: _LT_EOF
9659: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9660: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9661: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9662: else
9663: ld_shlibs=no
9664: fi
9665: ;;
9666:
9667: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9668: case `$LD -v 2>&1` in
9669: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9670: ld_shlibs=no
9671: cat <<_LT_EOF 1>&2
9672:
9673: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9674: *** reliably create shared libraries on SCO systems. Therefore, libtool
9675: *** is disabling shared libraries support. We urge you to upgrade GNU
9676: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9677: *** your PATH or compiler configuration so that the native linker is
9678: *** used, and then restart.
9679:
9680: _LT_EOF
9681: ;;
9682: *)
9683: # For security reasons, it is highly recommended that you always
9684: # use absolute paths for naming shared libraries, and exclude the
9685: # DT_RUNPATH tag from executables and libraries. But doing so
9686: # requires that you compile everything twice, which is a pain.
9687: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9688: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9689: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9690: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9691: else
9692: ld_shlibs=no
9693: fi
9694: ;;
9695: esac
9696: ;;
9697:
9698: sunos4*)
9699: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9700: wlarc=
9701: hardcode_direct=yes
9702: hardcode_shlibpath_var=no
9703: ;;
9704:
9705: *)
9706: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9707: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9708: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9709: else
9710: ld_shlibs=no
9711: fi
9712: ;;
9713: esac
9714:
9715: if test "$ld_shlibs" = no; then
9716: runpath_var=
9717: hardcode_libdir_flag_spec=
9718: export_dynamic_flag_spec=
9719: whole_archive_flag_spec=
9720: fi
9721: else
9722: # PORTME fill in a description of your system's linker (not GNU ld)
9723: case $host_os in
9724: aix3*)
9725: allow_undefined_flag=unsupported
9726: always_export_symbols=yes
9727: 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'
9728: # Note: this linker hardcodes the directories in LIBPATH if there
9729: # are no directories specified by -L.
9730: hardcode_minus_L=yes
9731: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9732: # Neither direct hardcoding nor static linking is supported with a
9733: # broken collect2.
9734: hardcode_direct=unsupported
9735: fi
9736: ;;
9737:
9738: aix[4-9]*)
9739: if test "$host_cpu" = ia64; then
9740: # On IA64, the linker does run time linking by default, so we don't
9741: # have to do anything special.
9742: aix_use_runtimelinking=no
9743: exp_sym_flag='-Bexport'
9744: no_entry_flag=""
9745: else
9746: # If we're using GNU nm, then we don't want the "-C" option.
9747: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9748: # Also, AIX nm treats weak defined symbols like other global
9749: # defined symbols, whereas GNU nm marks them as "W".
9750: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9751: 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'
9752: else
9753: 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'
9754: fi
9755: aix_use_runtimelinking=no
9756:
9757: # Test if we are trying to use run time linking or normal
9758: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9759: # need to do runtime linking.
9760: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9761: for ld_flag in $LDFLAGS; do
9762: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9763: aix_use_runtimelinking=yes
9764: break
9765: fi
9766: done
9767: ;;
9768: esac
9769:
9770: exp_sym_flag='-bexport'
9771: no_entry_flag='-bnoentry'
9772: fi
9773:
9774: # When large executables or shared objects are built, AIX ld can
9775: # have problems creating the table of contents. If linking a library
9776: # or program results in "error TOC overflow" add -mminimal-toc to
9777: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9778: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9779:
9780: archive_cmds=''
9781: hardcode_direct=yes
9782: hardcode_direct_absolute=yes
9783: hardcode_libdir_separator=':'
9784: link_all_deplibs=yes
9785: file_list_spec='${wl}-f,'
9786:
9787: if test "$GCC" = yes; then
9788: case $host_os in aix4.[012]|aix4.[012].*)
9789: # We only want to do this on AIX 4.2 and lower, the check
9790: # below for broken collect2 doesn't work under 4.3+
9791: collect2name=`${CC} -print-prog-name=collect2`
9792: if test -f "$collect2name" &&
9793: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9794: then
9795: # We have reworked collect2
9796: :
9797: else
9798: # We have old collect2
9799: hardcode_direct=unsupported
9800: # It fails to find uninstalled libraries when the uninstalled
9801: # path is not listed in the libpath. Setting hardcode_minus_L
9802: # to unsupported forces relinking
9803: hardcode_minus_L=yes
9804: hardcode_libdir_flag_spec='-L$libdir'
9805: hardcode_libdir_separator=
9806: fi
9807: ;;
9808: esac
9809: shared_flag='-shared'
9810: if test "$aix_use_runtimelinking" = yes; then
9811: shared_flag="$shared_flag "'${wl}-G'
9812: fi
9813: else
9814: # not using gcc
9815: if test "$host_cpu" = ia64; then
9816: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9817: # chokes on -Wl,-G. The following line is correct:
9818: shared_flag='-G'
9819: else
9820: if test "$aix_use_runtimelinking" = yes; then
9821: shared_flag='${wl}-G'
9822: else
9823: shared_flag='${wl}-bM:SRE'
9824: fi
9825: fi
9826: fi
9827:
9828: export_dynamic_flag_spec='${wl}-bexpall'
9829: # It seems that -bexpall does not export symbols beginning with
9830: # underscore (_), so it is better to generate a list of symbols to export.
9831: always_export_symbols=yes
9832: if test "$aix_use_runtimelinking" = yes; then
9833: # Warning - without using the other runtime loading flags (-brtl),
9834: # -berok will link without error, but may produce a broken library.
9835: allow_undefined_flag='-berok'
9836: # Determine the default libpath from the value encoded in an
9837: # empty executable.
9838: if test "${lt_cv_aix_libpath+set}" = set; then
9839: aix_libpath=$lt_cv_aix_libpath
9840: else
1.32 moko 9841: if ${lt_cv_aix_libpath_+:} false; then :
9842: $as_echo_n "(cached) " >&6
1.25 moko 9843: else
1.32 moko 9844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 9845: /* end confdefs.h. */
1.1 parser 9846:
1.11 paf 9847: int
9848: main ()
9849: {
1.1 parser 9850:
1.11 paf 9851: ;
9852: return 0;
9853: }
9854: _ACEOF
1.32 moko 9855: if ac_fn_c_try_link "$LINENO"; then :
1.11 paf 9856:
1.25 moko 9857: lt_aix_libpath_sed='
9858: /Import File Strings/,/^$/ {
9859: /^0/ {
9860: s/^0 *\([^ ]*\) *$/\1/
9861: p
9862: }
9863: }'
9864: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9865: # Check for a 64-bit object if we didn't find anything.
9866: if test -z "$lt_cv_aix_libpath_"; then
9867: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9868: fi
1.11 paf 9869: fi
1.32 moko 9870: rm -f core conftest.err conftest.$ac_objext \
9871: conftest$ac_exeext conftest.$ac_ext
1.25 moko 9872: if test -z "$lt_cv_aix_libpath_"; then
9873: lt_cv_aix_libpath_="/usr/lib:/lib"
9874: fi
1.11 paf 9875:
9876: fi
9877:
1.25 moko 9878: aix_libpath=$lt_cv_aix_libpath_
9879: fi
1.11 paf 9880:
1.25 moko 9881: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9882: 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"
9883: else
9884: if test "$host_cpu" = ia64; then
9885: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9886: allow_undefined_flag="-z nodefs"
9887: 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"
9888: else
9889: # Determine the default libpath from the value encoded in an
9890: # empty executable.
9891: if test "${lt_cv_aix_libpath+set}" = set; then
9892: aix_libpath=$lt_cv_aix_libpath
9893: else
1.32 moko 9894: if ${lt_cv_aix_libpath_+:} false; then :
9895: $as_echo_n "(cached) " >&6
1.11 paf 9896: else
1.32 moko 9897: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.11 paf 9898: /* end confdefs.h. */
1.25 moko 9899:
1.11 paf 9900: int
9901: main ()
9902: {
1.25 moko 9903:
1.11 paf 9904: ;
9905: return 0;
9906: }
9907: _ACEOF
1.32 moko 9908: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 9909:
9910: lt_aix_libpath_sed='
9911: /Import File Strings/,/^$/ {
9912: /^0/ {
9913: s/^0 *\([^ ]*\) *$/\1/
9914: p
9915: }
9916: }'
9917: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9918: # Check for a 64-bit object if we didn't find anything.
9919: if test -z "$lt_cv_aix_libpath_"; then
9920: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9921: fi
1.11 paf 9922: fi
1.32 moko 9923: rm -f core conftest.err conftest.$ac_objext \
9924: conftest$ac_exeext conftest.$ac_ext
1.25 moko 9925: if test -z "$lt_cv_aix_libpath_"; then
9926: lt_cv_aix_libpath_="/usr/lib:/lib"
9927: fi
9928:
9929: fi
9930:
9931: aix_libpath=$lt_cv_aix_libpath_
1.1 parser 9932: fi
9933:
1.25 moko 9934: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9935: # Warning - without using the other run time loading flags,
9936: # -berok will link without error, but may produce a broken library.
9937: no_undefined_flag=' ${wl}-bernotok'
9938: allow_undefined_flag=' ${wl}-berok'
9939: if test "$with_gnu_ld" = yes; then
9940: # We only use this code for GNU lds that support --whole-archive.
9941: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9942: else
9943: # Exported symbols can be pulled into shared objects from archives
9944: whole_archive_flag_spec='$convenience'
9945: fi
9946: archive_cmds_need_lc=yes
9947: # This is similar to how AIX traditionally builds its shared libraries.
9948: 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'
9949: fi
9950: fi
9951: ;;
1.1 parser 9952:
1.25 moko 9953: amigaos*)
9954: case $host_cpu in
9955: powerpc)
9956: # see comment about AmigaOS4 .so support
9957: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958: archive_expsym_cmds=''
9959: ;;
9960: m68k)
9961: 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)'
9962: hardcode_libdir_flag_spec='-L$libdir'
9963: hardcode_minus_L=yes
9964: ;;
9965: esac
9966: ;;
1.1 parser 9967:
1.25 moko 9968: bsdi[45]*)
9969: export_dynamic_flag_spec=-rdynamic
9970: ;;
1.1 parser 9971:
1.25 moko 9972: cygwin* | mingw* | pw32* | cegcc*)
9973: # When not using gcc, we currently assume that we are using
9974: # Microsoft Visual C++.
9975: # hardcode_libdir_flag_spec is actually meaningless, as there is
9976: # no search path for DLLs.
9977: case $cc_basename in
9978: cl*)
9979: # Native MSVC
9980: hardcode_libdir_flag_spec=' '
9981: allow_undefined_flag=unsupported
9982: always_export_symbols=yes
9983: file_list_spec='@'
9984: # Tell ltmain to make .lib files, not .a files.
9985: libext=lib
9986: # Tell ltmain to make .dll files, not .so files.
9987: shrext_cmds=".dll"
9988: # FIXME: Setting linknames here is a bad hack.
9989: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9990: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9991: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9992: else
9993: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9994: fi~
9995: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9996: linknames='
9997: # The linker will not automatically build a static lib if we build a DLL.
9998: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9999: enable_shared_with_static_runtimes=yes
10000: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10001: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10002: # Don't use ranlib
10003: old_postinstall_cmds='chmod 644 $oldlib'
10004: postlink_cmds='lt_outputfile="@OUTPUT@"~
10005: lt_tool_outputfile="@TOOL_OUTPUT@"~
10006: case $lt_outputfile in
10007: *.exe|*.EXE) ;;
10008: *)
10009: lt_outputfile="$lt_outputfile.exe"
10010: lt_tool_outputfile="$lt_tool_outputfile.exe"
10011: ;;
10012: esac~
10013: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10014: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10015: $RM "$lt_outputfile.manifest";
10016: fi'
10017: ;;
10018: *)
10019: # Assume MSVC wrapper
10020: hardcode_libdir_flag_spec=' '
10021: allow_undefined_flag=unsupported
10022: # Tell ltmain to make .lib files, not .a files.
10023: libext=lib
10024: # Tell ltmain to make .dll files, not .so files.
10025: shrext_cmds=".dll"
10026: # FIXME: Setting linknames here is a bad hack.
10027: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10028: # The linker will automatically build a .lib file if we build a DLL.
10029: old_archive_from_new_cmds='true'
10030: # FIXME: Should let the user specify the lib program.
10031: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10032: enable_shared_with_static_runtimes=yes
10033: ;;
10034: esac
10035: ;;
1.1 parser 10036:
1.25 moko 10037: darwin* | rhapsody*)
1.1 parser 10038:
1.11 paf 10039:
1.25 moko 10040: archive_cmds_need_lc=no
10041: hardcode_direct=no
10042: hardcode_automatic=yes
10043: hardcode_shlibpath_var=unsupported
10044: if test "$lt_cv_ld_force_load" = "yes"; then
10045: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.11 paf 10046:
1.1 parser 10047: else
1.25 moko 10048: whole_archive_flag_spec=''
1.1 parser 10049: fi
1.25 moko 10050: link_all_deplibs=yes
10051: allow_undefined_flag="$_lt_dar_allow_undefined"
10052: case $cc_basename in
10053: ifort*) _lt_dar_can_shared=yes ;;
10054: *) _lt_dar_can_shared=$GCC ;;
10055: esac
10056: if test "$_lt_dar_can_shared" = "yes"; then
10057: output_verbose_link_cmd=func_echo_all
10058: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10059: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10060: 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}"
10061: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1.1 parser 10062:
1.25 moko 10063: else
10064: ld_shlibs=no
10065: fi
1.1 parser 10066:
1.25 moko 10067: ;;
1.1 parser 10068:
1.25 moko 10069: dgux*)
10070: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071: hardcode_libdir_flag_spec='-L$libdir'
10072: hardcode_shlibpath_var=no
10073: ;;
1.11 paf 10074:
1.25 moko 10075: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10076: # support. Future versions do this automatically, but an explicit c++rt0.o
10077: # does not break anything, and helps significantly (at the cost of a little
10078: # extra space).
10079: freebsd2.2*)
10080: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10081: hardcode_libdir_flag_spec='-R$libdir'
10082: hardcode_direct=yes
10083: hardcode_shlibpath_var=no
10084: ;;
1.11 paf 10085:
1.25 moko 10086: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10087: freebsd2.*)
10088: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10089: hardcode_direct=yes
10090: hardcode_minus_L=yes
10091: hardcode_shlibpath_var=no
10092: ;;
1.11 paf 10093:
1.25 moko 10094: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10095: freebsd* | dragonfly*)
10096: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10097: hardcode_libdir_flag_spec='-R$libdir'
10098: hardcode_direct=yes
10099: hardcode_shlibpath_var=no
10100: ;;
1.1 parser 10101:
1.25 moko 10102: hpux9*)
10103: if test "$GCC" = yes; then
10104: 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'
10105: else
10106: 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'
10107: fi
10108: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10109: hardcode_libdir_separator=:
10110: hardcode_direct=yes
10111:
10112: # hardcode_minus_L: Not really in the search PATH,
10113: # but as the default location of the library.
10114: hardcode_minus_L=yes
10115: export_dynamic_flag_spec='${wl}-E'
10116: ;;
1.1 parser 10117:
1.25 moko 10118: hpux10*)
10119: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10120: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10121: else
10122: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10123: fi
10124: if test "$with_gnu_ld" = no; then
10125: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10126: hardcode_libdir_separator=:
10127: hardcode_direct=yes
10128: hardcode_direct_absolute=yes
10129: export_dynamic_flag_spec='${wl}-E'
10130: # hardcode_minus_L: Not really in the search PATH,
10131: # but as the default location of the library.
10132: hardcode_minus_L=yes
10133: fi
10134: ;;
1.11 paf 10135:
1.25 moko 10136: hpux11*)
10137: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10138: case $host_cpu in
10139: hppa*64*)
10140: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10141: ;;
10142: ia64*)
10143: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10144: ;;
10145: *)
10146: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10147: ;;
10148: esac
10149: else
10150: case $host_cpu in
10151: hppa*64*)
10152: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10153: ;;
10154: ia64*)
10155: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10156: ;;
10157: *)
1.11 paf 10158:
1.25 moko 10159: # Older versions of the 11.00 compiler do not understand -b yet
10160: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.32 moko 10161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10162: $as_echo_n "checking if $CC understands -b... " >&6; }
10163: if ${lt_cv_prog_compiler__b+:} false; then :
10164: $as_echo_n "(cached) " >&6
1.25 moko 10165: else
10166: lt_cv_prog_compiler__b=no
10167: save_LDFLAGS="$LDFLAGS"
10168: LDFLAGS="$LDFLAGS -b"
10169: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10170: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10171: # The linker can only warn and ignore the option if not recognized
10172: # So say no if there are warnings
10173: if test -s conftest.err; then
10174: # Append any errors to the config.log.
10175: cat conftest.err 1>&5
10176: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10177: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10178: if diff conftest.exp conftest.er2 >/dev/null; then
10179: lt_cv_prog_compiler__b=yes
10180: fi
10181: else
10182: lt_cv_prog_compiler__b=yes
10183: fi
10184: fi
10185: $RM -r conftest*
10186: LDFLAGS="$save_LDFLAGS"
1.11 paf 10187:
10188: fi
1.32 moko 10189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10190: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.11 paf 10191:
1.25 moko 10192: if test x"$lt_cv_prog_compiler__b" = xyes; then
10193: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.11 paf 10194: else
1.25 moko 10195: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.11 paf 10196: fi
10197:
1.25 moko 10198: ;;
10199: esac
10200: fi
10201: if test "$with_gnu_ld" = no; then
10202: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10203: hardcode_libdir_separator=:
10204:
10205: case $host_cpu in
10206: hppa*64*|ia64*)
10207: hardcode_direct=no
10208: hardcode_shlibpath_var=no
10209: ;;
10210: *)
10211: hardcode_direct=yes
10212: hardcode_direct_absolute=yes
10213: export_dynamic_flag_spec='${wl}-E'
1.11 paf 10214:
1.25 moko 10215: # hardcode_minus_L: Not really in the search PATH,
10216: # but as the default location of the library.
10217: hardcode_minus_L=yes
10218: ;;
10219: esac
10220: fi
10221: ;;
1.11 paf 10222:
1.25 moko 10223: irix5* | irix6* | nonstopux*)
10224: if test "$GCC" = yes; then
10225: 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'
10226: # Try to use the -exported_symbol ld option, if it does not
10227: # work, assume that -exports_file does not work either and
10228: # implicitly export all symbols.
10229: # This should be the same for all languages, so no per-tag cache variable.
1.32 moko 10230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10231: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10232: if ${lt_cv_irix_exported_symbol+:} false; then :
10233: $as_echo_n "(cached) " >&6
1.25 moko 10234: else
10235: save_LDFLAGS="$LDFLAGS"
10236: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.32 moko 10237: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 10238: /* end confdefs.h. */
10239: int foo (void) { return 0; }
10240: _ACEOF
1.32 moko 10241: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 10242: lt_cv_irix_exported_symbol=yes
10243: else
1.32 moko 10244: lt_cv_irix_exported_symbol=no
1.11 paf 10245: fi
1.32 moko 10246: rm -f core conftest.err conftest.$ac_objext \
10247: conftest$ac_exeext conftest.$ac_ext
1.25 moko 10248: LDFLAGS="$save_LDFLAGS"
1.11 paf 10249: fi
1.32 moko 10250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10251: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.25 moko 10252: if test "$lt_cv_irix_exported_symbol" = yes; then
10253: 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'
10254: fi
10255: else
10256: 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'
10257: 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'
10258: fi
10259: archive_cmds_need_lc='no'
10260: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10261: hardcode_libdir_separator=:
10262: inherit_rpath=yes
10263: link_all_deplibs=yes
10264: ;;
1.11 paf 10265:
1.25 moko 10266: netbsd*)
10267: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10268: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10269: else
10270: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10271: fi
10272: hardcode_libdir_flag_spec='-R$libdir'
10273: hardcode_direct=yes
10274: hardcode_shlibpath_var=no
10275: ;;
1.11 paf 10276:
1.25 moko 10277: newsos6)
10278: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279: hardcode_direct=yes
10280: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10281: hardcode_libdir_separator=:
10282: hardcode_shlibpath_var=no
10283: ;;
1.11 paf 10284:
1.25 moko 10285: *nto* | *qnx*)
10286: ;;
1.11 paf 10287:
1.25 moko 10288: openbsd*)
10289: if test -f /usr/libexec/ld.so; then
10290: hardcode_direct=yes
10291: hardcode_shlibpath_var=no
10292: hardcode_direct_absolute=yes
10293: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10294: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10295: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10296: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10297: export_dynamic_flag_spec='${wl}-E'
10298: else
10299: case $host_os in
10300: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10301: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10302: hardcode_libdir_flag_spec='-R$libdir'
10303: ;;
10304: *)
10305: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10306: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10307: ;;
10308: esac
10309: fi
10310: else
10311: ld_shlibs=no
10312: fi
10313: ;;
10314:
10315: os2*)
10316: hardcode_libdir_flag_spec='-L$libdir'
10317: hardcode_minus_L=yes
10318: allow_undefined_flag=unsupported
10319: 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'
10320: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10321: ;;
10322:
10323: osf3*)
10324: if test "$GCC" = yes; then
10325: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10326: 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'
10327: else
10328: allow_undefined_flag=' -expect_unresolved \*'
10329: 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'
10330: fi
10331: archive_cmds_need_lc='no'
10332: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10333: hardcode_libdir_separator=:
10334: ;;
10335:
10336: osf4* | osf5*) # as osf3* with the addition of -msym flag
10337: if test "$GCC" = yes; then
10338: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10339: 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'
10340: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10341: else
10342: allow_undefined_flag=' -expect_unresolved \*'
10343: 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'
10344: 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~
10345: $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'
10346:
10347: # Both c and cxx compiler support -rpath directly
10348: hardcode_libdir_flag_spec='-rpath $libdir'
10349: fi
10350: archive_cmds_need_lc='no'
10351: hardcode_libdir_separator=:
10352: ;;
10353:
10354: solaris*)
10355: no_undefined_flag=' -z defs'
10356: if test "$GCC" = yes; then
10357: wlarc='${wl}'
10358: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10359: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10360: $CC -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'
10361: else
10362: case `$CC -V 2>&1` in
10363: *"Compilers 5.0"*)
10364: wlarc=''
10365: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10367: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10368: ;;
10369: *)
10370: wlarc='${wl}'
10371: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10372: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10373: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10374: ;;
10375: esac
10376: fi
10377: hardcode_libdir_flag_spec='-R$libdir'
10378: hardcode_shlibpath_var=no
10379: case $host_os in
10380: solaris2.[0-5] | solaris2.[0-5].*) ;;
10381: *)
10382: # The compiler driver will combine and reorder linker options,
10383: # but understands `-z linker_flag'. GCC discards it without `$wl',
10384: # but is careful enough not to reorder.
10385: # Supported since Solaris 2.6 (maybe 2.5.1?)
10386: if test "$GCC" = yes; then
10387: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10388: else
10389: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10390: fi
10391: ;;
10392: esac
10393: link_all_deplibs=yes
10394: ;;
10395:
10396: sunos4*)
10397: if test "x$host_vendor" = xsequent; then
10398: # Use $CC to link under sequent, because it throws in some extra .o
10399: # files that make .init and .fini sections work.
10400: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10401: else
10402: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10403: fi
10404: hardcode_libdir_flag_spec='-L$libdir'
10405: hardcode_direct=yes
10406: hardcode_minus_L=yes
10407: hardcode_shlibpath_var=no
10408: ;;
10409:
10410: sysv4)
10411: case $host_vendor in
10412: sni)
10413: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414: hardcode_direct=yes # is this really true???
10415: ;;
10416: siemens)
10417: ## LD is ld it makes a PLAMLIB
10418: ## CC just makes a GrossModule.
10419: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10420: reload_cmds='$CC -r -o $output$reload_objs'
10421: hardcode_direct=no
10422: ;;
10423: motorola)
10424: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10426: ;;
10427: esac
10428: runpath_var='LD_RUN_PATH'
10429: hardcode_shlibpath_var=no
10430: ;;
10431:
10432: sysv4.3*)
10433: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434: hardcode_shlibpath_var=no
10435: export_dynamic_flag_spec='-Bexport'
10436: ;;
10437:
10438: sysv4*MP*)
10439: if test -d /usr/nec; then
10440: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10441: hardcode_shlibpath_var=no
10442: runpath_var=LD_RUN_PATH
10443: hardcode_runpath_var=yes
10444: ld_shlibs=yes
10445: fi
10446: ;;
10447:
10448: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10449: no_undefined_flag='${wl}-z,text'
10450: archive_cmds_need_lc=no
10451: hardcode_shlibpath_var=no
10452: runpath_var='LD_RUN_PATH'
10453:
10454: if test "$GCC" = yes; then
10455: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457: else
10458: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10460: fi
10461: ;;
10462:
10463: sysv5* | sco3.2v5* | sco5v6*)
10464: # Note: We can NOT use -z defs as we might desire, because we do not
10465: # link with -lc, and that would cause any symbols used from libc to
10466: # always be unresolved, which means just about no library would
10467: # ever link correctly. If we're not using GNU ld we use -z text
10468: # though, which does catch some bad symbols but isn't as heavy-handed
10469: # as -z defs.
10470: no_undefined_flag='${wl}-z,text'
10471: allow_undefined_flag='${wl}-z,nodefs'
10472: archive_cmds_need_lc=no
10473: hardcode_shlibpath_var=no
10474: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10475: hardcode_libdir_separator=':'
10476: link_all_deplibs=yes
10477: export_dynamic_flag_spec='${wl}-Bexport'
10478: runpath_var='LD_RUN_PATH'
10479:
10480: if test "$GCC" = yes; then
10481: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483: else
10484: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486: fi
10487: ;;
10488:
10489: uts4*)
10490: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10491: hardcode_libdir_flag_spec='-L$libdir'
10492: hardcode_shlibpath_var=no
10493: ;;
10494:
10495: *)
10496: ld_shlibs=no
10497: ;;
10498: esac
10499:
10500: if test x$host_vendor = xsni; then
10501: case $host in
10502: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10503: export_dynamic_flag_spec='${wl}-Blargedynsym'
10504: ;;
10505: esac
10506: fi
10507: fi
10508:
1.32 moko 10509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10510: $as_echo "$ld_shlibs" >&6; }
1.25 moko 10511: test "$ld_shlibs" = no && can_build_shared=no
10512:
10513: with_gnu_ld=$with_gnu_ld
10514:
10515:
10516:
10517:
10518:
10519:
10520:
10521:
10522:
10523:
10524:
10525:
10526:
10527:
10528:
10529: #
10530: # Do we need to explicitly link libc?
10531: #
10532: case "x$archive_cmds_need_lc" in
10533: x|xyes)
10534: # Assume -lc should be added
10535: archive_cmds_need_lc=yes
10536:
10537: if test "$enable_shared" = yes && test "$GCC" = yes; then
10538: case $archive_cmds in
10539: *'~'*)
10540: # FIXME: we may have to deal with multi-command sequences.
10541: ;;
10542: '$CC '*)
10543: # Test whether the compiler implicitly links with -lc since on some
10544: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10545: # to ld, don't add -lc before -lgcc.
1.32 moko 10546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10547: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10548: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10549: $as_echo_n "(cached) " >&6
1.25 moko 10550: else
10551: $RM conftest*
10552: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10553:
1.32 moko 10554: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 10555: (eval $ac_compile) 2>&5
10556: ac_status=$?
1.32 moko 10557: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10558: test $ac_status = 0; } 2>conftest.err; then
1.25 moko 10559: soname=conftest
10560: lib=conftest
10561: libobjs=conftest.$ac_objext
10562: deplibs=
10563: wl=$lt_prog_compiler_wl
10564: pic_flag=$lt_prog_compiler_pic
10565: compiler_flags=-v
10566: linker_flags=-v
10567: verstring=
10568: output_objdir=.
10569: libname=conftest
10570: lt_save_allow_undefined_flag=$allow_undefined_flag
10571: allow_undefined_flag=
1.32 moko 10572: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.25 moko 10573: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10574: ac_status=$?
1.32 moko 10575: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10576: test $ac_status = 0; }
1.25 moko 10577: then
10578: lt_cv_archive_cmds_need_lc=no
10579: else
10580: lt_cv_archive_cmds_need_lc=yes
10581: fi
10582: allow_undefined_flag=$lt_save_allow_undefined_flag
10583: else
10584: cat conftest.err 1>&5
10585: fi
10586: $RM conftest*
10587:
10588: fi
1.32 moko 10589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10590: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.25 moko 10591: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10592: ;;
10593: esac
10594: fi
10595: ;;
10596: esac
1.11 paf 10597:
10598:
10599:
10600:
10601:
10602:
10603:
10604:
10605:
10606:
10607:
10608:
10609:
10610:
10611:
10612:
10613:
10614:
10615:
10616:
10617:
10618:
10619:
10620:
10621:
10622:
10623:
10624:
10625:
10626:
10627:
10628:
10629:
10630:
10631:
10632:
10633:
10634:
10635:
10636:
1.1 parser 10637:
1.11 paf 10638:
10639:
10640:
10641:
10642:
1.1 parser 10643:
1.11 paf 10644:
10645:
10646:
10647:
1.1 parser 10648:
1.11 paf 10649:
10650:
10651:
10652:
1.1 parser 10653:
10654:
10655:
10656:
10657:
10658:
10659:
1.11 paf 10660:
10661:
10662:
1.18 paf 10663:
1.11 paf 10664:
10665:
1.1 parser 10666:
1.11 paf 10667:
10668:
10669:
1.1 parser 10670:
10671:
10672:
10673:
1.11 paf 10674:
10675:
1.1 parser 10676:
1.11 paf 10677:
10678:
10679:
1.25 moko 10680:
10681:
10682:
10683:
10684:
10685:
10686:
10687:
10688:
10689:
10690:
10691:
10692:
10693:
10694:
10695:
10696:
10697:
10698:
10699:
10700:
10701:
10702:
10703:
10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
10716:
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741:
10742:
10743:
10744:
10745:
10746:
10747:
10748:
1.32 moko 10749: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10750: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.25 moko 10751:
10752: if test "$GCC" = yes; then
10753: case $host_os in
10754: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10755: *) lt_awk_arg="/^libraries:/" ;;
10756: esac
10757: case $host_os in
10758: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10759: *) lt_sed_strip_eq="s,=/,/,g" ;;
10760: esac
10761: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10762: case $lt_search_path_spec in
10763: *\;*)
10764: # if the path contains ";" then we assume it to be the separator
10765: # otherwise default to the standard path separator (i.e. ":") - it is
10766: # assumed that no part of a normal pathname contains ";" but that should
10767: # okay in the real world where ";" in dirpaths is itself problematic.
10768: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10769: ;;
10770: *)
10771: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10772: ;;
10773: esac
10774: # Ok, now we have the path, separated by spaces, we can step through it
10775: # and add multilib dir if necessary.
10776: lt_tmp_lt_search_path_spec=
10777: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10778: for lt_sys_path in $lt_search_path_spec; do
10779: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10780: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10781: else
10782: test -d "$lt_sys_path" && \
10783: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10784: fi
10785: done
10786: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10787: BEGIN {RS=" "; FS="/|\n";} {
10788: lt_foo="";
10789: lt_count=0;
10790: for (lt_i = NF; lt_i > 0; lt_i--) {
10791: if ($lt_i != "" && $lt_i != ".") {
10792: if ($lt_i == "..") {
10793: lt_count++;
10794: } else {
10795: if (lt_count == 0) {
10796: lt_foo="/" $lt_i lt_foo;
10797: } else {
10798: lt_count--;
10799: }
10800: }
10801: }
10802: }
10803: if (lt_foo != "") { lt_freq[lt_foo]++; }
10804: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10805: }'`
10806: # AWK program above erroneously prepends '/' to C:/dos/paths
10807: # for these hosts.
10808: case $host_os in
10809: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10810: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10811: esac
10812: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10813: else
10814: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10815: fi
10816: library_names_spec=
10817: libname_spec='lib$name'
10818: soname_spec=
10819: shrext_cmds=".so"
10820: postinstall_cmds=
10821: postuninstall_cmds=
10822: finish_cmds=
10823: finish_eval=
10824: shlibpath_var=
10825: shlibpath_overrides_runpath=unknown
10826: version_type=none
10827: dynamic_linker="$host_os ld.so"
10828: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10829: need_lib_prefix=unknown
10830: hardcode_into_libs=no
10831:
10832: # when you set need_version to no, make sure it does not cause -set_version
10833: # flags to be left without arguments
10834: need_version=unknown
10835:
10836: case $host_os in
10837: aix3*)
10838: version_type=linux # correct to gnu/linux during the next big refactor
10839: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10840: shlibpath_var=LIBPATH
10841:
10842: # AIX 3 has no versioning support, so we append a major version to the name.
10843: soname_spec='${libname}${release}${shared_ext}$major'
10844: ;;
10845:
10846: aix[4-9]*)
10847: version_type=linux # correct to gnu/linux during the next big refactor
10848: need_lib_prefix=no
10849: need_version=no
10850: hardcode_into_libs=yes
10851: if test "$host_cpu" = ia64; then
10852: # AIX 5 supports IA64
10853: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10854: shlibpath_var=LD_LIBRARY_PATH
10855: else
10856: # With GCC up to 2.95.x, collect2 would create an import file
10857: # for dependence libraries. The import file would start with
10858: # the line `#! .'. This would cause the generated library to
10859: # depend on `.', always an invalid library. This was fixed in
10860: # development snapshots of GCC prior to 3.0.
10861: case $host_os in
10862: aix4 | aix4.[01] | aix4.[01].*)
10863: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10864: echo ' yes '
10865: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10866: :
10867: else
10868: can_build_shared=no
10869: fi
10870: ;;
10871: esac
10872: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10873: # soname into executable. Probably we can add versioning support to
10874: # collect2, so additional links can be useful in future.
10875: if test "$aix_use_runtimelinking" = yes; then
10876: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10877: # instead of lib<name>.a to let people know that these are not
10878: # typical AIX shared libraries.
10879: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880: else
10881: # We preserve .a as extension for shared libraries through AIX4.2
10882: # and later when we are not doing run time linking.
10883: library_names_spec='${libname}${release}.a $libname.a'
10884: soname_spec='${libname}${release}${shared_ext}$major'
10885: fi
10886: shlibpath_var=LIBPATH
10887: fi
10888: ;;
10889:
10890: amigaos*)
10891: case $host_cpu in
10892: powerpc)
10893: # Since July 2007 AmigaOS4 officially supports .so libraries.
10894: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10895: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896: ;;
10897: m68k)
10898: library_names_spec='$libname.ixlibrary $libname.a'
10899: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10900: 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'
10901: ;;
10902: esac
10903: ;;
10904:
10905: beos*)
10906: library_names_spec='${libname}${shared_ext}'
10907: dynamic_linker="$host_os ld.so"
10908: shlibpath_var=LIBRARY_PATH
10909: ;;
10910:
10911: bsdi[45]*)
10912: version_type=linux # correct to gnu/linux during the next big refactor
10913: need_version=no
10914: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915: soname_spec='${libname}${release}${shared_ext}$major'
10916: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10917: shlibpath_var=LD_LIBRARY_PATH
10918: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10919: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10920: # the default ld.so.conf also contains /usr/contrib/lib and
10921: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10922: # libtool to hard-code these into programs
10923: ;;
10924:
10925: cygwin* | mingw* | pw32* | cegcc*)
10926: version_type=windows
10927: shrext_cmds=".dll"
10928: need_version=no
10929: need_lib_prefix=no
10930:
10931: case $GCC,$cc_basename in
10932: yes,*)
10933: # gcc
10934: library_names_spec='$libname.dll.a'
10935: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10936: postinstall_cmds='base_file=`basename \${file}`~
10937: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10938: dldir=$destdir/`dirname \$dlpath`~
10939: test -d \$dldir || mkdir -p \$dldir~
10940: $install_prog $dir/$dlname \$dldir/$dlname~
10941: chmod a+x \$dldir/$dlname~
10942: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10943: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10944: fi'
10945: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10946: dlpath=$dir/\$dldll~
10947: $RM \$dlpath'
10948: shlibpath_overrides_runpath=yes
10949:
10950: case $host_os in
10951: cygwin*)
10952: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10953: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10954:
10955: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10956: ;;
10957: mingw* | cegcc*)
10958: # MinGW DLLs use traditional 'lib' prefix
10959: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10960: ;;
10961: pw32*)
10962: # pw32 DLLs use 'pw' prefix rather than 'lib'
10963: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10964: ;;
10965: esac
10966: dynamic_linker='Win32 ld.exe'
10967: ;;
10968:
10969: *,cl*)
10970: # Native MSVC
10971: libname_spec='$name'
10972: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10973: library_names_spec='${libname}.dll.lib'
10974:
10975: case $build_os in
10976: mingw*)
10977: sys_lib_search_path_spec=
10978: lt_save_ifs=$IFS
10979: IFS=';'
10980: for lt_path in $LIB
10981: do
10982: IFS=$lt_save_ifs
10983: # Let DOS variable expansion print the short 8.3 style file name.
10984: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10985: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10986: done
10987: IFS=$lt_save_ifs
10988: # Convert to MSYS style.
10989: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10990: ;;
10991: cygwin*)
10992: # Convert to unix form, then to dos form, then back to unix form
10993: # but this time dos style (no spaces!) so that the unix form looks
10994: # like /cygdrive/c/PROGRA~1:/cygdr...
10995: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10996: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10997: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10998: ;;
10999: *)
11000: sys_lib_search_path_spec="$LIB"
11001: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11002: # It is most probably a Windows format PATH.
11003: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11004: else
11005: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11006: fi
11007: # FIXME: find the short name or the path components, as spaces are
11008: # common. (e.g. "Program Files" -> "PROGRA~1")
11009: ;;
11010: esac
11011:
11012: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11013: postinstall_cmds='base_file=`basename \${file}`~
11014: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11015: dldir=$destdir/`dirname \$dlpath`~
11016: test -d \$dldir || mkdir -p \$dldir~
11017: $install_prog $dir/$dlname \$dldir/$dlname'
11018: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11019: dlpath=$dir/\$dldll~
11020: $RM \$dlpath'
11021: shlibpath_overrides_runpath=yes
11022: dynamic_linker='Win32 link.exe'
11023: ;;
11024:
11025: *)
11026: # Assume MSVC wrapper
11027: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11028: dynamic_linker='Win32 ld.exe'
11029: ;;
11030: esac
11031: # FIXME: first we should search . and the directory the executable is in
11032: shlibpath_var=PATH
11033: ;;
11034:
11035: darwin* | rhapsody*)
11036: dynamic_linker="$host_os dyld"
11037: version_type=darwin
11038: need_lib_prefix=no
11039: need_version=no
11040: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11041: soname_spec='${libname}${release}${major}$shared_ext'
11042: shlibpath_overrides_runpath=yes
11043: shlibpath_var=DYLD_LIBRARY_PATH
11044: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11045:
11046: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11047: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11048: ;;
11049:
11050: dgux*)
11051: version_type=linux # correct to gnu/linux during the next big refactor
11052: need_lib_prefix=no
11053: need_version=no
11054: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11055: soname_spec='${libname}${release}${shared_ext}$major'
11056: shlibpath_var=LD_LIBRARY_PATH
11057: ;;
11058:
11059: freebsd* | dragonfly*)
11060: # DragonFly does not have aout. When/if they implement a new
11061: # versioning mechanism, adjust this.
11062: if test -x /usr/bin/objformat; then
11063: objformat=`/usr/bin/objformat`
1.11 paf 11064: else
1.25 moko 11065: case $host_os in
11066: freebsd[23].*) objformat=aout ;;
11067: *) objformat=elf ;;
11068: esac
1.11 paf 11069: fi
1.25 moko 11070: version_type=freebsd-$objformat
11071: case $version_type in
11072: freebsd-elf*)
11073: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11074: need_version=no
11075: need_lib_prefix=no
11076: ;;
11077: freebsd-*)
11078: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11079: need_version=yes
11080: ;;
11081: esac
11082: shlibpath_var=LD_LIBRARY_PATH
11083: case $host_os in
11084: freebsd2.*)
11085: shlibpath_overrides_runpath=yes
11086: ;;
11087: freebsd3.[01]* | freebsdelf3.[01]*)
11088: shlibpath_overrides_runpath=yes
11089: hardcode_into_libs=yes
11090: ;;
11091: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11092: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11093: shlibpath_overrides_runpath=no
11094: hardcode_into_libs=yes
11095: ;;
11096: *) # from 4.6 on, and DragonFly
11097: shlibpath_overrides_runpath=yes
11098: hardcode_into_libs=yes
11099: ;;
11100: esac
11101: ;;
11102:
11103: gnu*)
11104: version_type=linux # correct to gnu/linux during the next big refactor
11105: need_lib_prefix=no
11106: need_version=no
11107: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11108: soname_spec='${libname}${release}${shared_ext}$major'
11109: shlibpath_var=LD_LIBRARY_PATH
11110: shlibpath_overrides_runpath=no
11111: hardcode_into_libs=yes
11112: ;;
11113:
11114: haiku*)
11115: version_type=linux # correct to gnu/linux during the next big refactor
11116: need_lib_prefix=no
11117: need_version=no
11118: dynamic_linker="$host_os runtime_loader"
11119: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11120: soname_spec='${libname}${release}${shared_ext}$major'
11121: shlibpath_var=LIBRARY_PATH
11122: shlibpath_overrides_runpath=yes
11123: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11124: hardcode_into_libs=yes
11125: ;;
11126:
11127: hpux9* | hpux10* | hpux11*)
11128: # Give a soname corresponding to the major version so that dld.sl refuses to
11129: # link against other versions.
11130: version_type=sunos
11131: need_lib_prefix=no
11132: need_version=no
11133: case $host_cpu in
11134: ia64*)
11135: shrext_cmds='.so'
11136: hardcode_into_libs=yes
11137: dynamic_linker="$host_os dld.so"
11138: shlibpath_var=LD_LIBRARY_PATH
11139: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11140: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141: soname_spec='${libname}${release}${shared_ext}$major'
11142: if test "X$HPUX_IA64_MODE" = X32; then
11143: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.11 paf 11144: else
1.25 moko 11145: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11146: fi
11147: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11148: ;;
11149: hppa*64*)
11150: shrext_cmds='.sl'
11151: hardcode_into_libs=yes
11152: dynamic_linker="$host_os dld.sl"
11153: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11154: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11155: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11156: soname_spec='${libname}${release}${shared_ext}$major'
11157: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11158: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11159: ;;
11160: *)
11161: shrext_cmds='.sl'
11162: dynamic_linker="$host_os dld.sl"
11163: shlibpath_var=SHLIB_PATH
11164: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11165: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166: soname_spec='${libname}${release}${shared_ext}$major'
11167: ;;
11168: esac
11169: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11170: postinstall_cmds='chmod 555 $lib'
11171: # or fails outright, so override atomically:
11172: install_override_mode=555
11173: ;;
11174:
11175: interix[3-9]*)
11176: version_type=linux # correct to gnu/linux during the next big refactor
11177: need_lib_prefix=no
11178: need_version=no
11179: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11180: soname_spec='${libname}${release}${shared_ext}$major'
11181: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11182: shlibpath_var=LD_LIBRARY_PATH
11183: shlibpath_overrides_runpath=no
11184: hardcode_into_libs=yes
11185: ;;
11186:
11187: irix5* | irix6* | nonstopux*)
11188: case $host_os in
11189: nonstopux*) version_type=nonstopux ;;
11190: *)
11191: if test "$lt_cv_prog_gnu_ld" = yes; then
11192: version_type=linux # correct to gnu/linux during the next big refactor
11193: else
11194: version_type=irix
11195: fi ;;
11196: esac
11197: need_lib_prefix=no
11198: need_version=no
11199: soname_spec='${libname}${release}${shared_ext}$major'
11200: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11201: case $host_os in
11202: irix5* | nonstopux*)
11203: libsuff= shlibsuff=
11204: ;;
11205: *)
11206: case $LD in # libtool.m4 will add one of these switches to LD
11207: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11208: libsuff= shlibsuff= libmagic=32-bit;;
11209: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11210: libsuff=32 shlibsuff=N32 libmagic=N32;;
11211: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11212: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11213: *) libsuff= shlibsuff= libmagic=never-match;;
11214: esac
11215: ;;
11216: esac
11217: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11218: shlibpath_overrides_runpath=no
11219: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11220: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11221: hardcode_into_libs=yes
11222: ;;
11223:
11224: # No shared lib support for Linux oldld, aout, or coff.
11225: linux*oldld* | linux*aout* | linux*coff*)
11226: dynamic_linker=no
11227: ;;
11228:
11229: # This must be glibc/ELF.
11230: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11231: version_type=linux # correct to gnu/linux during the next big refactor
11232: need_lib_prefix=no
11233: need_version=no
11234: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11235: soname_spec='${libname}${release}${shared_ext}$major'
11236: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11237: shlibpath_var=LD_LIBRARY_PATH
11238: shlibpath_overrides_runpath=no
11239:
11240: # Some binutils ld are patched to set DT_RUNPATH
1.32 moko 11241: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11242: $as_echo_n "(cached) " >&6
1.25 moko 11243: else
11244: lt_cv_shlibpath_overrides_runpath=no
11245: save_LDFLAGS=$LDFLAGS
11246: save_libdir=$libdir
11247: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11248: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.32 moko 11249: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11250: /* end confdefs.h. */
11251:
11252: int
11253: main ()
11254: {
11255:
11256: ;
11257: return 0;
11258: }
11259: _ACEOF
1.32 moko 11260: if ac_fn_c_try_link "$LINENO"; then :
11261: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.25 moko 11262: lt_cv_shlibpath_overrides_runpath=yes
11263: fi
11264: fi
1.32 moko 11265: rm -f core conftest.err conftest.$ac_objext \
11266: conftest$ac_exeext conftest.$ac_ext
1.25 moko 11267: LDFLAGS=$save_LDFLAGS
11268: libdir=$save_libdir
11269:
11270: fi
11271:
11272: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11273:
11274: # This implies no fast_install, which is unacceptable.
11275: # Some rework will be needed to allow for fast_install
11276: # before this can be enabled.
11277: hardcode_into_libs=yes
11278:
11279: # Append ld.so.conf contents to the search path
11280: if test -f /etc/ld.so.conf; then
11281: 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' ' '`
11282: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11283: fi
11284:
11285: # We used to test for /lib/ld.so.1 and disable shared libraries on
11286: # powerpc, because MkLinux only supported shared libraries with the
11287: # GNU dynamic linker. Since this was broken with cross compilers,
11288: # most powerpc-linux boxes support dynamic linking these days and
11289: # people can always --disable-shared, the test was removed, and we
11290: # assume the GNU/Linux dynamic linker is in use.
11291: dynamic_linker='GNU/Linux ld.so'
11292: ;;
11293:
11294: netbsd*)
11295: version_type=sunos
11296: need_lib_prefix=no
11297: need_version=no
11298: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11299: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11300: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11301: dynamic_linker='NetBSD (a.out) ld.so'
11302: else
11303: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11304: soname_spec='${libname}${release}${shared_ext}$major'
11305: dynamic_linker='NetBSD ld.elf_so'
11306: fi
11307: shlibpath_var=LD_LIBRARY_PATH
11308: shlibpath_overrides_runpath=yes
11309: hardcode_into_libs=yes
11310: ;;
11311:
11312: newsos6)
11313: version_type=linux # correct to gnu/linux during the next big refactor
11314: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11315: shlibpath_var=LD_LIBRARY_PATH
11316: shlibpath_overrides_runpath=yes
11317: ;;
11318:
11319: *nto* | *qnx*)
11320: version_type=qnx
11321: need_lib_prefix=no
11322: need_version=no
11323: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324: soname_spec='${libname}${release}${shared_ext}$major'
11325: shlibpath_var=LD_LIBRARY_PATH
11326: shlibpath_overrides_runpath=no
11327: hardcode_into_libs=yes
11328: dynamic_linker='ldqnx.so'
11329: ;;
11330:
11331: openbsd*)
11332: version_type=sunos
11333: sys_lib_dlsearch_path_spec="/usr/lib"
11334: need_lib_prefix=no
11335: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11336: case $host_os in
11337: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11338: *) need_version=no ;;
11339: esac
11340: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11341: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11342: shlibpath_var=LD_LIBRARY_PATH
11343: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11344: case $host_os in
11345: openbsd2.[89] | openbsd2.[89].*)
11346: shlibpath_overrides_runpath=no
11347: ;;
11348: *)
11349: shlibpath_overrides_runpath=yes
11350: ;;
11351: esac
11352: else
11353: shlibpath_overrides_runpath=yes
11354: fi
11355: ;;
11356:
11357: os2*)
11358: libname_spec='$name'
11359: shrext_cmds=".dll"
11360: need_lib_prefix=no
11361: library_names_spec='$libname${shared_ext} $libname.a'
11362: dynamic_linker='OS/2 ld.exe'
11363: shlibpath_var=LIBPATH
11364: ;;
11365:
11366: osf3* | osf4* | osf5*)
11367: version_type=osf
11368: need_lib_prefix=no
11369: need_version=no
11370: soname_spec='${libname}${release}${shared_ext}$major'
11371: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372: shlibpath_var=LD_LIBRARY_PATH
11373: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11374: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11375: ;;
11376:
11377: rdos*)
11378: dynamic_linker=no
11379: ;;
11380:
11381: solaris*)
11382: version_type=linux # correct to gnu/linux during the next big refactor
11383: need_lib_prefix=no
11384: need_version=no
11385: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386: soname_spec='${libname}${release}${shared_ext}$major'
11387: shlibpath_var=LD_LIBRARY_PATH
11388: shlibpath_overrides_runpath=yes
11389: hardcode_into_libs=yes
11390: # ldd complains unless libraries are executable
11391: postinstall_cmds='chmod +x $lib'
11392: ;;
11393:
11394: sunos4*)
11395: version_type=sunos
11396: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11397: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11398: shlibpath_var=LD_LIBRARY_PATH
11399: shlibpath_overrides_runpath=yes
11400: if test "$with_gnu_ld" = yes; then
11401: need_lib_prefix=no
11402: fi
11403: need_version=yes
11404: ;;
11405:
11406: sysv4 | sysv4.3*)
11407: version_type=linux # correct to gnu/linux during the next big refactor
11408: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11409: soname_spec='${libname}${release}${shared_ext}$major'
11410: shlibpath_var=LD_LIBRARY_PATH
11411: case $host_vendor in
11412: sni)
11413: shlibpath_overrides_runpath=no
11414: need_lib_prefix=no
11415: runpath_var=LD_RUN_PATH
11416: ;;
11417: siemens)
11418: need_lib_prefix=no
11419: ;;
11420: motorola)
11421: need_lib_prefix=no
11422: need_version=no
11423: shlibpath_overrides_runpath=no
11424: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11425: ;;
11426: esac
11427: ;;
11428:
11429: sysv4*MP*)
11430: if test -d /usr/nec ;then
11431: version_type=linux # correct to gnu/linux during the next big refactor
11432: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11433: soname_spec='$libname${shared_ext}.$major'
11434: shlibpath_var=LD_LIBRARY_PATH
11435: fi
11436: ;;
11437:
11438: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11439: version_type=freebsd-elf
11440: need_lib_prefix=no
11441: need_version=no
11442: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11443: soname_spec='${libname}${release}${shared_ext}$major'
11444: shlibpath_var=LD_LIBRARY_PATH
11445: shlibpath_overrides_runpath=yes
11446: hardcode_into_libs=yes
11447: if test "$with_gnu_ld" = yes; then
11448: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11449: else
11450: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11451: case $host_os in
11452: sco3.2v5*)
11453: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11454: ;;
11455: esac
11456: fi
11457: sys_lib_dlsearch_path_spec='/usr/lib'
11458: ;;
11459:
11460: tpf*)
11461: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11462: version_type=linux # correct to gnu/linux during the next big refactor
11463: need_lib_prefix=no
11464: need_version=no
11465: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466: shlibpath_var=LD_LIBRARY_PATH
11467: shlibpath_overrides_runpath=no
11468: hardcode_into_libs=yes
11469: ;;
11470:
11471: uts4*)
11472: version_type=linux # correct to gnu/linux during the next big refactor
11473: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474: soname_spec='${libname}${release}${shared_ext}$major'
11475: shlibpath_var=LD_LIBRARY_PATH
11476: ;;
11477:
11478: *)
11479: dynamic_linker=no
11480: ;;
11481: esac
1.32 moko 11482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11483: $as_echo "$dynamic_linker" >&6; }
1.25 moko 11484: test "$dynamic_linker" = no && can_build_shared=no
11485:
11486: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11487: if test "$GCC" = yes; then
11488: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11489: fi
11490:
11491: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11492: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11493: fi
11494: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11495: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11496: fi
11497:
11498:
11499:
11500:
11501:
11502:
11503:
11504:
11505:
11506:
11507:
11508:
11509:
11510:
11511:
11512:
11513:
11514:
11515:
11516:
11517:
11518:
11519:
11520:
11521:
11522:
11523:
11524:
11525:
11526:
11527:
11528:
11529:
11530:
11531:
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
11547:
11548:
11549:
11550:
11551:
11552:
11553:
11554:
11555:
11556:
11557:
11558:
11559:
11560:
11561:
11562:
11563:
11564:
11565:
11566:
11567:
11568:
11569:
11570:
11571:
11572:
11573:
11574:
11575:
11576:
11577:
11578:
11579:
11580:
11581:
11582:
11583:
11584:
11585:
11586:
11587:
11588:
1.32 moko 11589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11590: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.25 moko 11591: hardcode_action=
11592: if test -n "$hardcode_libdir_flag_spec" ||
11593: test -n "$runpath_var" ||
11594: test "X$hardcode_automatic" = "Xyes" ; then
11595:
11596: # We can hardcode non-existent directories.
11597: if test "$hardcode_direct" != no &&
11598: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11599: # have to relink, otherwise we might link with an installed library
11600: # when we should be linking with a yet-to-be-installed one
11601: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11602: test "$hardcode_minus_L" != no; then
11603: # Linking always hardcodes the temporary library directory.
11604: hardcode_action=relink
11605: else
11606: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11607: hardcode_action=immediate
11608: fi
11609: else
11610: # We cannot hardcode anything, or else we can only hardcode existing
11611: # directories.
11612: hardcode_action=unsupported
11613: fi
1.32 moko 11614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11615: $as_echo "$hardcode_action" >&6; }
1.25 moko 11616:
11617: if test "$hardcode_action" = relink ||
11618: test "$inherit_rpath" = yes; then
11619: # Fast installation is not supported
11620: enable_fast_install=no
11621: elif test "$shlibpath_overrides_runpath" = yes ||
11622: test "$enable_shared" = no; then
11623: # Fast installation is not necessary
11624: enable_fast_install=needless
11625: fi
11626:
11627:
11628:
11629:
11630:
11631:
11632: if test "x$enable_dlopen" != xyes; then
11633: enable_dlopen=unknown
11634: enable_dlopen_self=unknown
11635: enable_dlopen_self_static=unknown
11636: else
11637: lt_cv_dlopen=no
11638: lt_cv_dlopen_libs=
11639:
11640: case $host_os in
11641: beos*)
11642: lt_cv_dlopen="load_add_on"
11643: lt_cv_dlopen_libs=
11644: lt_cv_dlopen_self=yes
11645: ;;
11646:
11647: mingw* | pw32* | cegcc*)
11648: lt_cv_dlopen="LoadLibrary"
11649: lt_cv_dlopen_libs=
11650: ;;
11651:
11652: cygwin*)
11653: lt_cv_dlopen="dlopen"
11654: lt_cv_dlopen_libs=
11655: ;;
11656:
11657: darwin*)
11658: # if libdl is installed we need to link against it
1.32 moko 11659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11660: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11661: if ${ac_cv_lib_dl_dlopen+:} false; then :
11662: $as_echo_n "(cached) " >&6
1.25 moko 11663: else
11664: ac_check_lib_save_LIBS=$LIBS
11665: LIBS="-ldl $LIBS"
1.32 moko 11666: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11667: /* end confdefs.h. */
11668:
1.32 moko 11669: /* Override any GCC internal prototype to avoid an error.
11670: Use char because int might match the return type of a GCC
11671: builtin and then its argument prototype would still apply. */
1.25 moko 11672: #ifdef __cplusplus
11673: extern "C"
11674: #endif
11675: char dlopen ();
11676: int
11677: main ()
11678: {
1.32 moko 11679: return dlopen ();
1.25 moko 11680: ;
11681: return 0;
11682: }
11683: _ACEOF
1.32 moko 11684: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 11685: ac_cv_lib_dl_dlopen=yes
11686: else
1.32 moko 11687: ac_cv_lib_dl_dlopen=no
1.25 moko 11688: fi
1.32 moko 11689: rm -f core conftest.err conftest.$ac_objext \
11690: conftest$ac_exeext conftest.$ac_ext
1.25 moko 11691: LIBS=$ac_check_lib_save_LIBS
11692: fi
1.32 moko 11693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11694: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11695: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.25 moko 11696: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11697: else
11698:
11699: lt_cv_dlopen="dyld"
11700: lt_cv_dlopen_libs=
11701: lt_cv_dlopen_self=yes
11702:
11703: fi
11704:
11705: ;;
11706:
11707: *)
1.32 moko 11708: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11709: if test "x$ac_cv_func_shl_load" = xyes; then :
1.25 moko 11710: lt_cv_dlopen="shl_load"
11711: else
1.32 moko 11712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11713: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11714: if ${ac_cv_lib_dld_shl_load+:} false; then :
11715: $as_echo_n "(cached) " >&6
1.25 moko 11716: else
1.32 moko 11717: ac_check_lib_save_LIBS=$LIBS
11718: LIBS="-ldld $LIBS"
11719: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11720: /* end confdefs.h. */
11721:
1.32 moko 11722: /* Override any GCC internal prototype to avoid an error.
11723: Use char because int might match the return type of a GCC
11724: builtin and then its argument prototype would still apply. */
1.25 moko 11725: #ifdef __cplusplus
11726: extern "C"
11727: #endif
1.32 moko 11728: char shl_load ();
1.25 moko 11729: int
11730: main ()
11731: {
1.32 moko 11732: return shl_load ();
1.25 moko 11733: ;
11734: return 0;
11735: }
11736: _ACEOF
1.32 moko 11737: if ac_fn_c_try_link "$LINENO"; then :
11738: ac_cv_lib_dld_shl_load=yes
1.25 moko 11739: else
1.32 moko 11740: ac_cv_lib_dld_shl_load=no
1.25 moko 11741: fi
1.32 moko 11742: rm -f core conftest.err conftest.$ac_objext \
11743: conftest$ac_exeext conftest.$ac_ext
11744: LIBS=$ac_check_lib_save_LIBS
1.25 moko 11745: fi
1.32 moko 11746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11747: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11748: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11749: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11750: else
11751: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11752: if test "x$ac_cv_func_dlopen" = xyes; then :
1.25 moko 11753: lt_cv_dlopen="dlopen"
11754: else
1.32 moko 11755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11756: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11757: if ${ac_cv_lib_dl_dlopen+:} false; then :
11758: $as_echo_n "(cached) " >&6
1.25 moko 11759: else
11760: ac_check_lib_save_LIBS=$LIBS
11761: LIBS="-ldl $LIBS"
1.32 moko 11762: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11763: /* end confdefs.h. */
11764:
1.32 moko 11765: /* Override any GCC internal prototype to avoid an error.
11766: Use char because int might match the return type of a GCC
11767: builtin and then its argument prototype would still apply. */
1.25 moko 11768: #ifdef __cplusplus
11769: extern "C"
11770: #endif
11771: char dlopen ();
11772: int
11773: main ()
11774: {
1.32 moko 11775: return dlopen ();
1.25 moko 11776: ;
11777: return 0;
11778: }
11779: _ACEOF
1.32 moko 11780: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 11781: ac_cv_lib_dl_dlopen=yes
11782: else
1.32 moko 11783: ac_cv_lib_dl_dlopen=no
1.25 moko 11784: fi
1.32 moko 11785: rm -f core conftest.err conftest.$ac_objext \
11786: conftest$ac_exeext conftest.$ac_ext
1.25 moko 11787: LIBS=$ac_check_lib_save_LIBS
11788: fi
1.32 moko 11789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11790: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11791: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.25 moko 11792: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11793: else
1.32 moko 11794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11795: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11796: if ${ac_cv_lib_svld_dlopen+:} false; then :
11797: $as_echo_n "(cached) " >&6
1.25 moko 11798: else
11799: ac_check_lib_save_LIBS=$LIBS
11800: LIBS="-lsvld $LIBS"
1.32 moko 11801: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11802: /* end confdefs.h. */
11803:
1.32 moko 11804: /* Override any GCC internal prototype to avoid an error.
11805: Use char because int might match the return type of a GCC
11806: builtin and then its argument prototype would still apply. */
1.25 moko 11807: #ifdef __cplusplus
11808: extern "C"
11809: #endif
11810: char dlopen ();
11811: int
11812: main ()
11813: {
1.32 moko 11814: return dlopen ();
1.25 moko 11815: ;
11816: return 0;
11817: }
11818: _ACEOF
1.32 moko 11819: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 11820: ac_cv_lib_svld_dlopen=yes
11821: else
1.32 moko 11822: ac_cv_lib_svld_dlopen=no
1.25 moko 11823: fi
1.32 moko 11824: rm -f core conftest.err conftest.$ac_objext \
11825: conftest$ac_exeext conftest.$ac_ext
1.25 moko 11826: LIBS=$ac_check_lib_save_LIBS
11827: fi
1.32 moko 11828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11829: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11830: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.25 moko 11831: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11832: else
1.32 moko 11833: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11834: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11835: if ${ac_cv_lib_dld_dld_link+:} false; then :
11836: $as_echo_n "(cached) " >&6
1.25 moko 11837: else
11838: ac_check_lib_save_LIBS=$LIBS
11839: LIBS="-ldld $LIBS"
1.32 moko 11840: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 11841: /* end confdefs.h. */
11842:
1.32 moko 11843: /* Override any GCC internal prototype to avoid an error.
11844: Use char because int might match the return type of a GCC
11845: builtin and then its argument prototype would still apply. */
1.25 moko 11846: #ifdef __cplusplus
11847: extern "C"
11848: #endif
11849: char dld_link ();
11850: int
11851: main ()
11852: {
1.32 moko 11853: return dld_link ();
1.25 moko 11854: ;
11855: return 0;
11856: }
11857: _ACEOF
1.32 moko 11858: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 11859: ac_cv_lib_dld_dld_link=yes
11860: else
1.32 moko 11861: ac_cv_lib_dld_dld_link=no
1.25 moko 11862: fi
1.32 moko 11863: rm -f core conftest.err conftest.$ac_objext \
11864: conftest$ac_exeext conftest.$ac_ext
1.25 moko 11865: LIBS=$ac_check_lib_save_LIBS
11866: fi
1.32 moko 11867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11868: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11869: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.25 moko 11870: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11871: fi
11872:
11873:
11874: fi
11875:
11876:
11877: fi
11878:
11879:
11880: fi
11881:
11882:
11883: fi
11884:
11885:
11886: fi
11887:
11888: ;;
11889: esac
11890:
11891: if test "x$lt_cv_dlopen" != xno; then
11892: enable_dlopen=yes
11893: else
11894: enable_dlopen=no
11895: fi
11896:
11897: case $lt_cv_dlopen in
11898: dlopen)
11899: save_CPPFLAGS="$CPPFLAGS"
11900: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11901:
11902: save_LDFLAGS="$LDFLAGS"
11903: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11904:
11905: save_LIBS="$LIBS"
11906: LIBS="$lt_cv_dlopen_libs $LIBS"
11907:
1.32 moko 11908: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11909: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11910: if ${lt_cv_dlopen_self+:} false; then :
11911: $as_echo_n "(cached) " >&6
1.25 moko 11912: else
11913: if test "$cross_compiling" = yes; then :
11914: lt_cv_dlopen_self=cross
11915: else
11916: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11917: lt_status=$lt_dlunknown
11918: cat > conftest.$ac_ext <<_LT_EOF
11919: #line $LINENO "configure"
11920: #include "confdefs.h"
11921:
11922: #if HAVE_DLFCN_H
11923: #include <dlfcn.h>
11924: #endif
11925:
11926: #include <stdio.h>
11927:
11928: #ifdef RTLD_GLOBAL
11929: # define LT_DLGLOBAL RTLD_GLOBAL
11930: #else
11931: # ifdef DL_GLOBAL
11932: # define LT_DLGLOBAL DL_GLOBAL
11933: # else
11934: # define LT_DLGLOBAL 0
11935: # endif
11936: #endif
11937:
11938: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11939: find out it does not work in some platform. */
11940: #ifndef LT_DLLAZY_OR_NOW
11941: # ifdef RTLD_LAZY
11942: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11943: # else
11944: # ifdef DL_LAZY
11945: # define LT_DLLAZY_OR_NOW DL_LAZY
11946: # else
11947: # ifdef RTLD_NOW
11948: # define LT_DLLAZY_OR_NOW RTLD_NOW
11949: # else
11950: # ifdef DL_NOW
11951: # define LT_DLLAZY_OR_NOW DL_NOW
11952: # else
11953: # define LT_DLLAZY_OR_NOW 0
11954: # endif
11955: # endif
11956: # endif
11957: # endif
11958: #endif
11959:
11960: /* When -fvisbility=hidden is used, assume the code has been annotated
11961: correspondingly for the symbols needed. */
11962: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11963: int fnord () __attribute__((visibility("default")));
11964: #endif
11965:
11966: int fnord () { return 42; }
11967: int main ()
11968: {
11969: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11970: int status = $lt_dlunknown;
11971:
11972: if (self)
11973: {
11974: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11975: else
11976: {
11977: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11978: else puts (dlerror ());
11979: }
11980: /* dlclose (self); */
11981: }
11982: else
11983: puts (dlerror ());
11984:
11985: return status;
11986: }
11987: _LT_EOF
1.32 moko 11988: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.25 moko 11989: (eval $ac_link) 2>&5
11990: ac_status=$?
1.32 moko 11991: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11992: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.25 moko 11993: (./conftest; exit; ) >&5 2>/dev/null
11994: lt_status=$?
11995: case x$lt_status in
11996: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11997: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11998: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11999: esac
12000: else :
12001: # compilation failed
12002: lt_cv_dlopen_self=no
12003: fi
12004: fi
12005: rm -fr conftest*
12006:
12007:
12008: fi
1.32 moko 12009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12010: $as_echo "$lt_cv_dlopen_self" >&6; }
1.25 moko 12011:
12012: if test "x$lt_cv_dlopen_self" = xyes; then
12013: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.32 moko 12014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12015: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12016: if ${lt_cv_dlopen_self_static+:} false; then :
12017: $as_echo_n "(cached) " >&6
1.25 moko 12018: else
12019: if test "$cross_compiling" = yes; then :
12020: lt_cv_dlopen_self_static=cross
12021: else
12022: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12023: lt_status=$lt_dlunknown
12024: cat > conftest.$ac_ext <<_LT_EOF
12025: #line $LINENO "configure"
12026: #include "confdefs.h"
12027:
12028: #if HAVE_DLFCN_H
12029: #include <dlfcn.h>
12030: #endif
12031:
12032: #include <stdio.h>
12033:
12034: #ifdef RTLD_GLOBAL
12035: # define LT_DLGLOBAL RTLD_GLOBAL
12036: #else
12037: # ifdef DL_GLOBAL
12038: # define LT_DLGLOBAL DL_GLOBAL
12039: # else
12040: # define LT_DLGLOBAL 0
12041: # endif
12042: #endif
12043:
12044: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12045: find out it does not work in some platform. */
12046: #ifndef LT_DLLAZY_OR_NOW
12047: # ifdef RTLD_LAZY
12048: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12049: # else
12050: # ifdef DL_LAZY
12051: # define LT_DLLAZY_OR_NOW DL_LAZY
12052: # else
12053: # ifdef RTLD_NOW
12054: # define LT_DLLAZY_OR_NOW RTLD_NOW
12055: # else
12056: # ifdef DL_NOW
12057: # define LT_DLLAZY_OR_NOW DL_NOW
12058: # else
12059: # define LT_DLLAZY_OR_NOW 0
12060: # endif
12061: # endif
12062: # endif
12063: # endif
12064: #endif
12065:
12066: /* When -fvisbility=hidden is used, assume the code has been annotated
12067: correspondingly for the symbols needed. */
12068: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12069: int fnord () __attribute__((visibility("default")));
12070: #endif
12071:
12072: int fnord () { return 42; }
12073: int main ()
12074: {
12075: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12076: int status = $lt_dlunknown;
12077:
12078: if (self)
12079: {
12080: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12081: else
12082: {
12083: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12084: else puts (dlerror ());
12085: }
12086: /* dlclose (self); */
12087: }
12088: else
12089: puts (dlerror ());
12090:
12091: return status;
12092: }
12093: _LT_EOF
1.32 moko 12094: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.25 moko 12095: (eval $ac_link) 2>&5
12096: ac_status=$?
1.32 moko 12097: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12098: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.25 moko 12099: (./conftest; exit; ) >&5 2>/dev/null
12100: lt_status=$?
12101: case x$lt_status in
12102: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12103: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12104: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12105: esac
12106: else :
12107: # compilation failed
12108: lt_cv_dlopen_self_static=no
12109: fi
12110: fi
12111: rm -fr conftest*
12112:
12113:
12114: fi
1.32 moko 12115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12116: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.25 moko 12117: fi
12118:
12119: CPPFLAGS="$save_CPPFLAGS"
12120: LDFLAGS="$save_LDFLAGS"
12121: LIBS="$save_LIBS"
12122: ;;
12123: esac
12124:
12125: case $lt_cv_dlopen_self in
12126: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12127: *) enable_dlopen_self=unknown ;;
12128: esac
12129:
12130: case $lt_cv_dlopen_self_static in
12131: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12132: *) enable_dlopen_self_static=unknown ;;
12133: esac
12134: fi
12135:
12136:
12137:
12138:
12139:
12140:
12141:
12142:
12143:
12144:
12145:
12146:
12147:
12148:
12149:
12150:
12151:
12152: striplib=
12153: old_striplib=
1.32 moko 12154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12155: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.25 moko 12156: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12157: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12158: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.32 moko 12159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12160: $as_echo "yes" >&6; }
1.25 moko 12161: else
12162: # FIXME - insert some real tests, host_os isn't really good enough
12163: case $host_os in
12164: darwin*)
12165: if test -n "$STRIP" ; then
12166: striplib="$STRIP -x"
12167: old_striplib="$STRIP -S"
1.32 moko 12168: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12169: $as_echo "yes" >&6; }
1.25 moko 12170: else
1.32 moko 12171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172: $as_echo "no" >&6; }
1.25 moko 12173: fi
12174: ;;
12175: *)
1.32 moko 12176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177: $as_echo "no" >&6; }
1.25 moko 12178: ;;
12179: esac
12180: fi
12181:
12182:
12183:
12184:
12185:
12186:
12187:
12188:
12189:
12190:
12191:
12192:
12193: # Report which library types will actually be built
1.32 moko 12194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12195: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12197: $as_echo "$can_build_shared" >&6; }
1.25 moko 12198:
1.32 moko 12199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12200: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.25 moko 12201: test "$can_build_shared" = "no" && enable_shared=no
12202:
12203: # On AIX, shared libraries and static libraries use the same namespace, and
12204: # are all built from PIC.
12205: case $host_os in
12206: aix3*)
12207: test "$enable_shared" = yes && enable_static=no
12208: if test -n "$RANLIB"; then
12209: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12210: postinstall_cmds='$RANLIB $lib'
12211: fi
12212: ;;
12213:
12214: aix[4-9]*)
12215: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12216: test "$enable_shared" = yes && enable_static=no
12217: fi
12218: ;;
12219: esac
1.32 moko 12220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12221: $as_echo "$enable_shared" >&6; }
1.25 moko 12222:
1.32 moko 12223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12224: $as_echo_n "checking whether to build static libraries... " >&6; }
1.25 moko 12225: # Make sure either enable_shared or enable_static is yes.
12226: test "$enable_shared" = yes || enable_static=yes
1.32 moko 12227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12228: $as_echo "$enable_static" >&6; }
1.25 moko 12229:
12230:
12231:
12232:
12233: fi
12234: ac_ext=c
12235: ac_cpp='$CPP $CPPFLAGS'
12236: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12237: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12238: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12239:
12240: CC="$lt_save_CC"
12241:
12242: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12243: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12244: (test "X$CXX" != "Xg++"))) ; then
1.32 moko 12245: ac_ext=cpp
1.25 moko 12246: ac_cpp='$CXXCPP $CPPFLAGS'
12247: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12248: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12249: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.32 moko 12250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12251: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.25 moko 12252: if test -z "$CXXCPP"; then
1.32 moko 12253: if ${ac_cv_prog_CXXCPP+:} false; then :
12254: $as_echo_n "(cached) " >&6
1.25 moko 12255: else
12256: # Double quotes because CXXCPP needs to be expanded
12257: for CXXCPP in "$CXX -E" "/lib/cpp"
12258: do
12259: ac_preproc_ok=false
12260: for ac_cxx_preproc_warn_flag in '' yes
12261: do
12262: # Use a header file that comes with gcc, so configuring glibc
12263: # with a fresh cross-compiler works.
12264: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12265: # <limits.h> exists even on freestanding compilers.
12266: # On the NeXT, cc -E runs the code through the compiler's parser,
12267: # not just through cpp. "Syntax error" is here to catch this case.
1.32 moko 12268: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12269: /* end confdefs.h. */
12270: #ifdef __STDC__
12271: # include <limits.h>
12272: #else
12273: # include <assert.h>
12274: #endif
12275: Syntax error
12276: _ACEOF
1.32 moko 12277: if ac_fn_cxx_try_cpp "$LINENO"; then :
12278:
1.25 moko 12279: else
12280: # Broken: fails on valid input.
12281: continue
12282: fi
1.32 moko 12283: rm -f conftest.err conftest.i conftest.$ac_ext
1.25 moko 12284:
1.32 moko 12285: # OK, works on sane cases. Now check whether nonexistent headers
1.25 moko 12286: # can be detected and how.
1.32 moko 12287: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12288: /* end confdefs.h. */
12289: #include <ac_nonexistent.h>
12290: _ACEOF
1.32 moko 12291: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.25 moko 12292: # Broken: success on invalid input.
12293: continue
12294: else
12295: # Passes both tests.
12296: ac_preproc_ok=:
12297: break
12298: fi
1.32 moko 12299: rm -f conftest.err conftest.i conftest.$ac_ext
1.25 moko 12300:
12301: done
12302: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.32 moko 12303: rm -f conftest.i conftest.err conftest.$ac_ext
12304: if $ac_preproc_ok; then :
1.25 moko 12305: break
12306: fi
12307:
12308: done
12309: ac_cv_prog_CXXCPP=$CXXCPP
12310:
12311: fi
12312: CXXCPP=$ac_cv_prog_CXXCPP
12313: else
12314: ac_cv_prog_CXXCPP=$CXXCPP
12315: fi
1.32 moko 12316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12317: $as_echo "$CXXCPP" >&6; }
1.25 moko 12318: ac_preproc_ok=false
12319: for ac_cxx_preproc_warn_flag in '' yes
12320: do
12321: # Use a header file that comes with gcc, so configuring glibc
12322: # with a fresh cross-compiler works.
12323: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12324: # <limits.h> exists even on freestanding compilers.
12325: # On the NeXT, cc -E runs the code through the compiler's parser,
12326: # not just through cpp. "Syntax error" is here to catch this case.
1.32 moko 12327: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12328: /* end confdefs.h. */
12329: #ifdef __STDC__
12330: # include <limits.h>
12331: #else
12332: # include <assert.h>
12333: #endif
12334: Syntax error
12335: _ACEOF
1.32 moko 12336: if ac_fn_cxx_try_cpp "$LINENO"; then :
12337:
1.25 moko 12338: else
12339: # Broken: fails on valid input.
12340: continue
12341: fi
1.32 moko 12342: rm -f conftest.err conftest.i conftest.$ac_ext
1.25 moko 12343:
1.32 moko 12344: # OK, works on sane cases. Now check whether nonexistent headers
1.25 moko 12345: # can be detected and how.
1.32 moko 12346: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12347: /* end confdefs.h. */
12348: #include <ac_nonexistent.h>
12349: _ACEOF
1.32 moko 12350: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.25 moko 12351: # Broken: success on invalid input.
12352: continue
12353: else
12354: # Passes both tests.
12355: ac_preproc_ok=:
12356: break
12357: fi
1.32 moko 12358: rm -f conftest.err conftest.i conftest.$ac_ext
1.25 moko 12359:
12360: done
12361: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.32 moko 12362: rm -f conftest.i conftest.err conftest.$ac_ext
12363: if $ac_preproc_ok; then :
12364:
1.25 moko 12365: else
1.32 moko 12366: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12367: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12368: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12369: See \`config.log' for more details" "$LINENO" 5; }
1.25 moko 12370: fi
12371:
12372: ac_ext=c
12373: ac_cpp='$CPP $CPPFLAGS'
12374: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12375: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12376: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12377:
12378: else
12379: _lt_caught_CXX_error=yes
12380: fi
12381:
1.32 moko 12382: ac_ext=cpp
1.25 moko 12383: ac_cpp='$CXXCPP $CPPFLAGS'
12384: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12385: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12386: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12387:
12388: archive_cmds_need_lc_CXX=no
12389: allow_undefined_flag_CXX=
12390: always_export_symbols_CXX=no
12391: archive_expsym_cmds_CXX=
12392: compiler_needs_object_CXX=no
12393: export_dynamic_flag_spec_CXX=
12394: hardcode_direct_CXX=no
12395: hardcode_direct_absolute_CXX=no
12396: hardcode_libdir_flag_spec_CXX=
12397: hardcode_libdir_separator_CXX=
12398: hardcode_minus_L_CXX=no
12399: hardcode_shlibpath_var_CXX=unsupported
12400: hardcode_automatic_CXX=no
12401: inherit_rpath_CXX=no
12402: module_cmds_CXX=
12403: module_expsym_cmds_CXX=
12404: link_all_deplibs_CXX=unknown
12405: old_archive_cmds_CXX=$old_archive_cmds
12406: reload_flag_CXX=$reload_flag
12407: reload_cmds_CXX=$reload_cmds
12408: no_undefined_flag_CXX=
12409: whole_archive_flag_spec_CXX=
12410: enable_shared_with_static_runtimes_CXX=no
12411:
12412: # Source file extension for C++ test sources.
12413: ac_ext=cpp
12414:
12415: # Object file extension for compiled C++ test sources.
12416: objext=o
12417: objext_CXX=$objext
12418:
12419: # No sense in running all these tests if we already determined that
12420: # the CXX compiler isn't working. Some variables (like enable_shared)
12421: # are currently assumed to apply to all compilers on this platform,
12422: # and will be corrupted by setting them based on a non-working compiler.
12423: if test "$_lt_caught_CXX_error" != yes; then
12424: # Code to be used in simple compile tests
12425: lt_simple_compile_test_code="int some_variable = 0;"
12426:
12427: # Code to be used in simple link tests
12428: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12429:
12430: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12431:
12432:
12433:
12434:
12435:
12436:
12437: # If no C compiler was specified, use CC.
12438: LTCC=${LTCC-"$CC"}
12439:
12440: # If no C compiler flags were specified, use CFLAGS.
12441: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12442:
12443: # Allow CC to be a program name with arguments.
12444: compiler=$CC
12445:
12446:
12447: # save warnings/boilerplate of simple test code
12448: ac_outfile=conftest.$ac_objext
12449: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12450: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12451: _lt_compiler_boilerplate=`cat conftest.err`
12452: $RM conftest*
12453:
12454: ac_outfile=conftest.$ac_objext
12455: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12456: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12457: _lt_linker_boilerplate=`cat conftest.err`
12458: $RM -r conftest*
12459:
12460:
12461: # Allow CC to be a program name with arguments.
12462: lt_save_CC=$CC
12463: lt_save_CFLAGS=$CFLAGS
12464: lt_save_LD=$LD
12465: lt_save_GCC=$GCC
12466: GCC=$GXX
12467: lt_save_with_gnu_ld=$with_gnu_ld
12468: lt_save_path_LD=$lt_cv_path_LD
12469: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12470: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12471: else
12472: $as_unset lt_cv_prog_gnu_ld
12473: fi
12474: if test -n "${lt_cv_path_LDCXX+set}"; then
12475: lt_cv_path_LD=$lt_cv_path_LDCXX
12476: else
12477: $as_unset lt_cv_path_LD
12478: fi
12479: test -z "${LDCXX+set}" || LD=$LDCXX
12480: CC=${CXX-"c++"}
12481: CFLAGS=$CXXFLAGS
12482: compiler=$CC
12483: compiler_CXX=$CC
12484: for cc_temp in $compiler""; do
12485: case $cc_temp in
12486: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12487: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12488: \-*) ;;
12489: *) break;;
12490: esac
12491: done
12492: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12493:
12494:
12495: if test -n "$compiler"; then
12496: # We don't want -fno-exception when compiling C++ code, so set the
12497: # no_builtin_flag separately
12498: if test "$GXX" = yes; then
12499: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12500: else
12501: lt_prog_compiler_no_builtin_flag_CXX=
12502: fi
12503:
12504: if test "$GXX" = yes; then
12505: # Set up default GNU C++ configuration
12506:
12507:
12508:
1.32 moko 12509: # Check whether --with-gnu-ld was given.
12510: if test "${with_gnu_ld+set}" = set; then :
12511: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.25 moko 12512: else
12513: with_gnu_ld=no
1.32 moko 12514: fi
12515:
1.25 moko 12516: ac_prog=ld
12517: if test "$GCC" = yes; then
12518: # Check if gcc -print-prog-name=ld gives a path.
1.32 moko 12519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12520: $as_echo_n "checking for ld used by $CC... " >&6; }
1.25 moko 12521: case $host in
12522: *-*-mingw*)
12523: # gcc leaves a trailing carriage return which upsets mingw
12524: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12525: *)
12526: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12527: esac
12528: case $ac_prog in
12529: # Accept absolute paths.
12530: [\\/]* | ?:[\\/]*)
12531: re_direlt='/[^/][^/]*/\.\./'
12532: # Canonicalize the pathname of ld
12533: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12534: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12535: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12536: done
12537: test -z "$LD" && LD="$ac_prog"
12538: ;;
12539: "")
12540: # If it fails, then pretend we aren't using GCC.
12541: ac_prog=ld
12542: ;;
12543: *)
12544: # If it is relative, then search for the first ld in PATH.
12545: with_gnu_ld=unknown
12546: ;;
12547: esac
12548: elif test "$with_gnu_ld" = yes; then
1.32 moko 12549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12550: $as_echo_n "checking for GNU ld... " >&6; }
1.25 moko 12551: else
1.32 moko 12552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12553: $as_echo_n "checking for non-GNU ld... " >&6; }
1.25 moko 12554: fi
1.32 moko 12555: if ${lt_cv_path_LD+:} false; then :
12556: $as_echo_n "(cached) " >&6
1.25 moko 12557: else
12558: if test -z "$LD"; then
12559: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12560: for ac_dir in $PATH; do
12561: IFS="$lt_save_ifs"
12562: test -z "$ac_dir" && ac_dir=.
12563: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12564: lt_cv_path_LD="$ac_dir/$ac_prog"
12565: # Check to see if the program is GNU ld. I'd rather use --version,
12566: # but apparently some variants of GNU ld only accept -v.
12567: # Break only if it was the GNU/non-GNU ld that we prefer.
12568: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12569: *GNU* | *'with BFD'*)
12570: test "$with_gnu_ld" != no && break
12571: ;;
12572: *)
12573: test "$with_gnu_ld" != yes && break
12574: ;;
12575: esac
12576: fi
12577: done
12578: IFS="$lt_save_ifs"
12579: else
12580: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12581: fi
12582: fi
12583:
12584: LD="$lt_cv_path_LD"
12585: if test -n "$LD"; then
1.32 moko 12586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12587: $as_echo "$LD" >&6; }
1.25 moko 12588: else
1.32 moko 12589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590: $as_echo "no" >&6; }
1.25 moko 12591: fi
1.32 moko 12592: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12594: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12595: if ${lt_cv_prog_gnu_ld+:} false; then :
12596: $as_echo_n "(cached) " >&6
1.25 moko 12597: else
12598: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12599: case `$LD -v 2>&1 </dev/null` in
12600: *GNU* | *'with BFD'*)
12601: lt_cv_prog_gnu_ld=yes
12602: ;;
12603: *)
12604: lt_cv_prog_gnu_ld=no
12605: ;;
12606: esac
12607: fi
1.32 moko 12608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12609: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.25 moko 12610: with_gnu_ld=$lt_cv_prog_gnu_ld
12611:
12612:
12613:
12614:
12615:
12616:
12617:
12618: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12619: # archiving commands below assume that GNU ld is being used.
12620: if test "$with_gnu_ld" = yes; then
12621: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12622: 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'
12623:
12624: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12625: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12626:
12627: # If archive_cmds runs LD, not CC, wlarc should be empty
12628: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12629: # investigate it a little bit more. (MM)
12630: wlarc='${wl}'
12631:
12632: # ancient GNU ld didn't support --whole-archive et. al.
12633: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12634: $GREP 'no-whole-archive' > /dev/null; then
12635: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12636: else
12637: whole_archive_flag_spec_CXX=
12638: fi
12639: else
12640: with_gnu_ld=no
12641: wlarc=
12642:
12643: # A generic and very simple default shared library creation
12644: # command for GNU C++ for the case where it uses the native
12645: # linker, instead of GNU ld. If possible, this setting should
12646: # overridden to take advantage of the native linker features on
12647: # the platform it is being used on.
12648: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12649: fi
12650:
12651: # Commands to make compiler produce verbose output that lists
12652: # what "hidden" libraries, object files and flags are used when
12653: # linking a shared library.
12654: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12655:
12656: else
12657: GXX=no
12658: with_gnu_ld=no
12659: wlarc=
12660: fi
12661:
12662: # PORTME: fill in a description of your system's C++ link characteristics
1.32 moko 12663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12664: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.25 moko 12665: ld_shlibs_CXX=yes
12666: case $host_os in
12667: aix3*)
12668: # FIXME: insert proper C++ library support
12669: ld_shlibs_CXX=no
12670: ;;
12671: aix[4-9]*)
12672: if test "$host_cpu" = ia64; then
12673: # On IA64, the linker does run time linking by default, so we don't
12674: # have to do anything special.
12675: aix_use_runtimelinking=no
12676: exp_sym_flag='-Bexport'
12677: no_entry_flag=""
12678: else
12679: aix_use_runtimelinking=no
12680:
12681: # Test if we are trying to use run time linking or normal
12682: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12683: # need to do runtime linking.
12684: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12685: for ld_flag in $LDFLAGS; do
12686: case $ld_flag in
12687: *-brtl*)
12688: aix_use_runtimelinking=yes
12689: break
12690: ;;
12691: esac
12692: done
12693: ;;
12694: esac
12695:
12696: exp_sym_flag='-bexport'
12697: no_entry_flag='-bnoentry'
12698: fi
12699:
12700: # When large executables or shared objects are built, AIX ld can
12701: # have problems creating the table of contents. If linking a library
12702: # or program results in "error TOC overflow" add -mminimal-toc to
12703: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12704: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12705:
12706: archive_cmds_CXX=''
12707: hardcode_direct_CXX=yes
12708: hardcode_direct_absolute_CXX=yes
12709: hardcode_libdir_separator_CXX=':'
12710: link_all_deplibs_CXX=yes
12711: file_list_spec_CXX='${wl}-f,'
12712:
12713: if test "$GXX" = yes; then
12714: case $host_os in aix4.[012]|aix4.[012].*)
12715: # We only want to do this on AIX 4.2 and lower, the check
12716: # below for broken collect2 doesn't work under 4.3+
12717: collect2name=`${CC} -print-prog-name=collect2`
12718: if test -f "$collect2name" &&
12719: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12720: then
12721: # We have reworked collect2
12722: :
12723: else
12724: # We have old collect2
12725: hardcode_direct_CXX=unsupported
12726: # It fails to find uninstalled libraries when the uninstalled
12727: # path is not listed in the libpath. Setting hardcode_minus_L
12728: # to unsupported forces relinking
12729: hardcode_minus_L_CXX=yes
12730: hardcode_libdir_flag_spec_CXX='-L$libdir'
12731: hardcode_libdir_separator_CXX=
12732: fi
12733: esac
12734: shared_flag='-shared'
12735: if test "$aix_use_runtimelinking" = yes; then
12736: shared_flag="$shared_flag "'${wl}-G'
12737: fi
12738: else
12739: # not using gcc
12740: if test "$host_cpu" = ia64; then
12741: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12742: # chokes on -Wl,-G. The following line is correct:
12743: shared_flag='-G'
12744: else
12745: if test "$aix_use_runtimelinking" = yes; then
12746: shared_flag='${wl}-G'
12747: else
12748: shared_flag='${wl}-bM:SRE'
12749: fi
12750: fi
12751: fi
12752:
12753: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12754: # It seems that -bexpall does not export symbols beginning with
12755: # underscore (_), so it is better to generate a list of symbols to
12756: # export.
12757: always_export_symbols_CXX=yes
12758: if test "$aix_use_runtimelinking" = yes; then
12759: # Warning - without using the other runtime loading flags (-brtl),
12760: # -berok will link without error, but may produce a broken library.
12761: allow_undefined_flag_CXX='-berok'
12762: # Determine the default libpath from the value encoded in an empty
12763: # executable.
12764: if test "${lt_cv_aix_libpath+set}" = set; then
12765: aix_libpath=$lt_cv_aix_libpath
12766: else
1.32 moko 12767: if ${lt_cv_aix_libpath__CXX+:} false; then :
12768: $as_echo_n "(cached) " >&6
1.25 moko 12769: else
1.32 moko 12770: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12771: /* end confdefs.h. */
12772:
12773: int
12774: main ()
12775: {
12776:
12777: ;
12778: return 0;
12779: }
12780: _ACEOF
1.32 moko 12781: if ac_fn_cxx_try_link "$LINENO"; then :
1.25 moko 12782:
12783: lt_aix_libpath_sed='
12784: /Import File Strings/,/^$/ {
12785: /^0/ {
12786: s/^0 *\([^ ]*\) *$/\1/
12787: p
12788: }
12789: }'
12790: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12791: # Check for a 64-bit object if we didn't find anything.
12792: if test -z "$lt_cv_aix_libpath__CXX"; then
12793: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12794: fi
12795: fi
1.32 moko 12796: rm -f core conftest.err conftest.$ac_objext \
12797: conftest$ac_exeext conftest.$ac_ext
1.25 moko 12798: if test -z "$lt_cv_aix_libpath__CXX"; then
12799: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12800: fi
12801:
12802: fi
12803:
12804: aix_libpath=$lt_cv_aix_libpath__CXX
12805: fi
12806:
12807: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12808:
12809: 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"
12810: else
12811: if test "$host_cpu" = ia64; then
12812: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12813: allow_undefined_flag_CXX="-z nodefs"
12814: 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"
12815: else
12816: # Determine the default libpath from the value encoded in an
12817: # empty executable.
12818: if test "${lt_cv_aix_libpath+set}" = set; then
12819: aix_libpath=$lt_cv_aix_libpath
12820: else
1.32 moko 12821: if ${lt_cv_aix_libpath__CXX+:} false; then :
12822: $as_echo_n "(cached) " >&6
1.25 moko 12823: else
1.32 moko 12824: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 12825: /* end confdefs.h. */
12826:
12827: int
12828: main ()
12829: {
12830:
12831: ;
12832: return 0;
12833: }
12834: _ACEOF
1.32 moko 12835: if ac_fn_cxx_try_link "$LINENO"; then :
1.25 moko 12836:
12837: lt_aix_libpath_sed='
12838: /Import File Strings/,/^$/ {
12839: /^0/ {
12840: s/^0 *\([^ ]*\) *$/\1/
12841: p
12842: }
12843: }'
12844: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12845: # Check for a 64-bit object if we didn't find anything.
12846: if test -z "$lt_cv_aix_libpath__CXX"; then
12847: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12848: fi
12849: fi
1.32 moko 12850: rm -f core conftest.err conftest.$ac_objext \
12851: conftest$ac_exeext conftest.$ac_ext
1.25 moko 12852: if test -z "$lt_cv_aix_libpath__CXX"; then
12853: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12854: fi
12855:
12856: fi
12857:
12858: aix_libpath=$lt_cv_aix_libpath__CXX
12859: fi
12860:
12861: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12862: # Warning - without using the other run time loading flags,
12863: # -berok will link without error, but may produce a broken library.
12864: no_undefined_flag_CXX=' ${wl}-bernotok'
12865: allow_undefined_flag_CXX=' ${wl}-berok'
12866: if test "$with_gnu_ld" = yes; then
12867: # We only use this code for GNU lds that support --whole-archive.
12868: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12869: else
12870: # Exported symbols can be pulled into shared objects from archives
12871: whole_archive_flag_spec_CXX='$convenience'
12872: fi
12873: archive_cmds_need_lc_CXX=yes
12874: # This is similar to how AIX traditionally builds its shared
12875: # libraries.
12876: 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'
12877: fi
12878: fi
12879: ;;
12880:
12881: beos*)
12882: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12883: allow_undefined_flag_CXX=unsupported
12884: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12885: # support --undefined. This deserves some investigation. FIXME
12886: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12887: else
12888: ld_shlibs_CXX=no
12889: fi
12890: ;;
12891:
12892: chorus*)
12893: case $cc_basename in
12894: *)
12895: # FIXME: insert proper C++ library support
12896: ld_shlibs_CXX=no
12897: ;;
12898: esac
12899: ;;
12900:
12901: cygwin* | mingw* | pw32* | cegcc*)
12902: case $GXX,$cc_basename in
12903: ,cl* | no,cl*)
12904: # Native MSVC
12905: # hardcode_libdir_flag_spec is actually meaningless, as there is
12906: # no search path for DLLs.
12907: hardcode_libdir_flag_spec_CXX=' '
12908: allow_undefined_flag_CXX=unsupported
12909: always_export_symbols_CXX=yes
12910: file_list_spec_CXX='@'
12911: # Tell ltmain to make .lib files, not .a files.
12912: libext=lib
12913: # Tell ltmain to make .dll files, not .so files.
12914: shrext_cmds=".dll"
12915: # FIXME: Setting linknames here is a bad hack.
12916: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12917: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12918: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12919: else
12920: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12921: fi~
12922: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12923: linknames='
12924: # The linker will not automatically build a static lib if we build a DLL.
12925: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12926: enable_shared_with_static_runtimes_CXX=yes
12927: # Don't use ranlib
12928: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12929: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12930: lt_tool_outputfile="@TOOL_OUTPUT@"~
12931: case $lt_outputfile in
12932: *.exe|*.EXE) ;;
12933: *)
12934: lt_outputfile="$lt_outputfile.exe"
12935: lt_tool_outputfile="$lt_tool_outputfile.exe"
12936: ;;
12937: esac~
12938: func_to_tool_file "$lt_outputfile"~
12939: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12940: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12941: $RM "$lt_outputfile.manifest";
12942: fi'
12943: ;;
12944: *)
12945: # g++
12946: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12947: # as there is no search path for DLLs.
12948: hardcode_libdir_flag_spec_CXX='-L$libdir'
12949: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12950: allow_undefined_flag_CXX=unsupported
12951: always_export_symbols_CXX=no
12952: enable_shared_with_static_runtimes_CXX=yes
12953:
12954: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12955: 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'
12956: # If the export-symbols file already is a .def file (1st line
12957: # is EXPORTS), use it as is; otherwise, prepend...
12958: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12959: cp $export_symbols $output_objdir/$soname.def;
12960: else
12961: echo EXPORTS > $output_objdir/$soname.def;
12962: cat $export_symbols >> $output_objdir/$soname.def;
12963: fi~
12964: $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'
12965: else
12966: ld_shlibs_CXX=no
12967: fi
12968: ;;
12969: esac
12970: ;;
12971: darwin* | rhapsody*)
12972:
12973:
12974: archive_cmds_need_lc_CXX=no
12975: hardcode_direct_CXX=no
12976: hardcode_automatic_CXX=yes
12977: hardcode_shlibpath_var_CXX=unsupported
12978: if test "$lt_cv_ld_force_load" = "yes"; then
12979: 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\"`'
12980:
12981: else
12982: whole_archive_flag_spec_CXX=''
12983: fi
12984: link_all_deplibs_CXX=yes
12985: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12986: case $cc_basename in
12987: ifort*) _lt_dar_can_shared=yes ;;
12988: *) _lt_dar_can_shared=$GCC ;;
12989: esac
12990: if test "$_lt_dar_can_shared" = "yes"; then
12991: output_verbose_link_cmd=func_echo_all
12992: 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}"
12993: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12994: 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}"
12995: 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}"
12996: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12997: 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}"
12998: 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}"
12999: fi
13000:
13001: else
13002: ld_shlibs_CXX=no
13003: fi
13004:
13005: ;;
13006:
13007: dgux*)
13008: case $cc_basename in
13009: ec++*)
13010: # FIXME: insert proper C++ library support
13011: ld_shlibs_CXX=no
13012: ;;
13013: ghcx*)
13014: # Green Hills C++ Compiler
13015: # FIXME: insert proper C++ library support
13016: ld_shlibs_CXX=no
13017: ;;
13018: *)
13019: # FIXME: insert proper C++ library support
13020: ld_shlibs_CXX=no
13021: ;;
13022: esac
13023: ;;
13024:
13025: freebsd2.*)
13026: # C++ shared libraries reported to be fairly broken before
13027: # switch to ELF
13028: ld_shlibs_CXX=no
13029: ;;
13030:
13031: freebsd-elf*)
13032: archive_cmds_need_lc_CXX=no
13033: ;;
13034:
13035: freebsd* | dragonfly*)
13036: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13037: # conventions
13038: ld_shlibs_CXX=yes
13039: ;;
13040:
13041: gnu*)
13042: ;;
13043:
13044: haiku*)
13045: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13046: link_all_deplibs_CXX=yes
13047: ;;
13048:
13049: hpux9*)
13050: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13051: hardcode_libdir_separator_CXX=:
13052: export_dynamic_flag_spec_CXX='${wl}-E'
13053: hardcode_direct_CXX=yes
13054: hardcode_minus_L_CXX=yes # Not in the search PATH,
13055: # but as the default
13056: # location of the library.
13057:
13058: case $cc_basename in
13059: CC*)
13060: # FIXME: insert proper C++ library support
13061: ld_shlibs_CXX=no
13062: ;;
13063: aCC*)
13064: 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'
13065: # Commands to make compiler produce verbose output that lists
13066: # what "hidden" libraries, object files and flags are used when
13067: # linking a shared library.
13068: #
13069: # There doesn't appear to be a way to prevent this compiler from
13070: # explicitly linking system object files so we need to strip them
13071: # from the output so that they don't get included in the library
13072: # dependencies.
13073: 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"'
13074: ;;
13075: *)
13076: if test "$GXX" = yes; then
13077: 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'
13078: else
13079: # FIXME: insert proper C++ library support
13080: ld_shlibs_CXX=no
13081: fi
13082: ;;
13083: esac
13084: ;;
13085:
13086: hpux10*|hpux11*)
13087: if test $with_gnu_ld = no; then
13088: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13089: hardcode_libdir_separator_CXX=:
13090:
13091: case $host_cpu in
13092: hppa*64*|ia64*)
13093: ;;
13094: *)
13095: export_dynamic_flag_spec_CXX='${wl}-E'
13096: ;;
13097: esac
13098: fi
13099: case $host_cpu in
13100: hppa*64*|ia64*)
13101: hardcode_direct_CXX=no
13102: hardcode_shlibpath_var_CXX=no
13103: ;;
13104: *)
13105: hardcode_direct_CXX=yes
13106: hardcode_direct_absolute_CXX=yes
13107: hardcode_minus_L_CXX=yes # Not in the search PATH,
13108: # but as the default
13109: # location of the library.
13110: ;;
13111: esac
13112:
13113: case $cc_basename in
13114: CC*)
13115: # FIXME: insert proper C++ library support
13116: ld_shlibs_CXX=no
13117: ;;
13118: aCC*)
13119: case $host_cpu in
13120: hppa*64*)
13121: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13122: ;;
13123: ia64*)
13124: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13125: ;;
13126: *)
13127: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13128: ;;
13129: esac
13130: # Commands to make compiler produce verbose output that lists
13131: # what "hidden" libraries, object files and flags are used when
13132: # linking a shared library.
13133: #
13134: # There doesn't appear to be a way to prevent this compiler from
13135: # explicitly linking system object files so we need to strip them
13136: # from the output so that they don't get included in the library
13137: # dependencies.
13138: 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"'
13139: ;;
13140: *)
13141: if test "$GXX" = yes; then
13142: if test $with_gnu_ld = no; then
13143: case $host_cpu in
13144: hppa*64*)
13145: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13146: ;;
13147: ia64*)
13148: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13149: ;;
13150: *)
13151: 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'
13152: ;;
13153: esac
13154: fi
13155: else
13156: # FIXME: insert proper C++ library support
13157: ld_shlibs_CXX=no
13158: fi
13159: ;;
13160: esac
13161: ;;
13162:
13163: interix[3-9]*)
13164: hardcode_direct_CXX=no
13165: hardcode_shlibpath_var_CXX=no
13166: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13167: export_dynamic_flag_spec_CXX='${wl}-E'
13168: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13169: # Instead, shared libraries are loaded at an image base (0x10000000 by
13170: # default) and relocated if they conflict, which is a slow very memory
13171: # consuming and fragmenting process. To avoid this, we pick a random,
13172: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13173: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13174: 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'
13175: 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'
13176: ;;
13177: irix5* | irix6*)
13178: case $cc_basename in
13179: CC*)
13180: # SGI C++
13181: 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'
13182:
13183: # Archives containing C++ object files must be created using
13184: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13185: # necessary to make sure instantiated templates are included
13186: # in the archive.
13187: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13188: ;;
13189: *)
13190: if test "$GXX" = yes; then
13191: if test "$with_gnu_ld" = no; then
13192: 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'
13193: else
13194: 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'
13195: fi
13196: fi
13197: link_all_deplibs_CXX=yes
13198: ;;
13199: esac
13200: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13201: hardcode_libdir_separator_CXX=:
13202: inherit_rpath_CXX=yes
13203: ;;
13204:
13205: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13206: case $cc_basename in
13207: KCC*)
13208: # Kuck and Associates, Inc. (KAI) C++ Compiler
13209:
13210: # KCC will only create a shared library if the output file
13211: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13212: # to its proper name (with version) after linking.
13213: 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'
13214: 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'
13215: # Commands to make compiler produce verbose output that lists
13216: # what "hidden" libraries, object files and flags are used when
13217: # linking a shared library.
13218: #
13219: # There doesn't appear to be a way to prevent this compiler from
13220: # explicitly linking system object files so we need to strip them
13221: # from the output so that they don't get included in the library
13222: # dependencies.
13223: 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"'
13224:
13225: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13226: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13227:
13228: # Archives containing C++ object files must be created using
13229: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13230: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13231: ;;
13232: icpc* | ecpc* )
13233: # Intel C++
13234: with_gnu_ld=yes
13235: # version 8.0 and above of icpc choke on multiply defined symbols
13236: # if we add $predep_objects and $postdep_objects, however 7.1 and
13237: # earlier do not add the objects themselves.
13238: case `$CC -V 2>&1` in
13239: *"Version 7."*)
13240: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241: 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'
13242: ;;
13243: *) # Version 8.0 or newer
13244: tmp_idyn=
13245: case $host_cpu in
13246: ia64*) tmp_idyn=' -i_dynamic';;
13247: esac
13248: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13249: 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'
13250: ;;
13251: esac
13252: archive_cmds_need_lc_CXX=no
13253: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13254: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13255: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13256: ;;
13257: pgCC* | pgcpp*)
13258: # Portland Group C++ compiler
13259: case `$CC -V` in
13260: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13261: prelink_cmds_CXX='tpldir=Template.dir~
13262: rm -rf $tpldir~
13263: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13264: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13265: old_archive_cmds_CXX='tpldir=Template.dir~
13266: rm -rf $tpldir~
13267: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13268: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13269: $RANLIB $oldlib'
13270: archive_cmds_CXX='tpldir=Template.dir~
13271: rm -rf $tpldir~
13272: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13273: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13274: archive_expsym_cmds_CXX='tpldir=Template.dir~
13275: rm -rf $tpldir~
13276: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13277: $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'
13278: ;;
13279: *) # Version 6 and above use weak symbols
13280: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13281: 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'
13282: ;;
13283: esac
13284:
13285: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13286: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13287: 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'
13288: ;;
13289: cxx*)
13290: # Compaq C++
13291: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13292: 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'
13293:
13294: runpath_var=LD_RUN_PATH
13295: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13296: hardcode_libdir_separator_CXX=:
13297:
13298: # Commands to make compiler produce verbose output that lists
13299: # what "hidden" libraries, object files and flags are used when
13300: # linking a shared library.
13301: #
13302: # There doesn't appear to be a way to prevent this compiler from
13303: # explicitly linking system object files so we need to strip them
13304: # from the output so that they don't get included in the library
13305: # dependencies.
13306: 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'
13307: ;;
13308: xl* | mpixl* | bgxl*)
13309: # IBM XL 8.0 on PPC, with GNU ld
13310: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13311: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13312: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13313: if test "x$supports_anon_versioning" = xyes; then
13314: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13315: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13316: echo "local: *; };" >> $output_objdir/$libname.ver~
13317: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13318: fi
13319: ;;
13320: *)
13321: case `$CC -V 2>&1 | sed 5q` in
13322: *Sun\ C*)
13323: # Sun C++ 5.9
13324: no_undefined_flag_CXX=' -zdefs'
13325: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13326: 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'
13327: hardcode_libdir_flag_spec_CXX='-R$libdir'
13328: 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'
13329: compiler_needs_object_CXX=yes
13330:
13331: # Not sure whether something based on
13332: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13333: # would be better.
13334: output_verbose_link_cmd='func_echo_all'
13335:
13336: # Archives containing C++ object files must be created using
13337: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13338: # necessary to make sure instantiated templates are included
13339: # in the archive.
13340: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13341: ;;
13342: esac
13343: ;;
13344: esac
13345: ;;
13346:
13347: lynxos*)
13348: # FIXME: insert proper C++ library support
13349: ld_shlibs_CXX=no
13350: ;;
13351:
13352: m88k*)
13353: # FIXME: insert proper C++ library support
13354: ld_shlibs_CXX=no
13355: ;;
13356:
13357: mvs*)
13358: case $cc_basename in
13359: cxx*)
13360: # FIXME: insert proper C++ library support
13361: ld_shlibs_CXX=no
13362: ;;
13363: *)
13364: # FIXME: insert proper C++ library support
13365: ld_shlibs_CXX=no
13366: ;;
13367: esac
13368: ;;
13369:
13370: netbsd*)
13371: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13372: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13373: wlarc=
13374: hardcode_libdir_flag_spec_CXX='-R$libdir'
13375: hardcode_direct_CXX=yes
13376: hardcode_shlibpath_var_CXX=no
13377: fi
13378: # Workaround some broken pre-1.5 toolchains
13379: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13380: ;;
13381:
13382: *nto* | *qnx*)
13383: ld_shlibs_CXX=yes
13384: ;;
13385:
13386: openbsd2*)
13387: # C++ shared libraries are fairly broken
13388: ld_shlibs_CXX=no
13389: ;;
13390:
13391: openbsd*)
13392: if test -f /usr/libexec/ld.so; then
13393: hardcode_direct_CXX=yes
13394: hardcode_shlibpath_var_CXX=no
13395: hardcode_direct_absolute_CXX=yes
13396: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13397: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13398: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13399: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13400: export_dynamic_flag_spec_CXX='${wl}-E'
13401: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13402: fi
13403: output_verbose_link_cmd=func_echo_all
13404: else
13405: ld_shlibs_CXX=no
13406: fi
13407: ;;
13408:
13409: osf3* | osf4* | osf5*)
13410: case $cc_basename in
13411: KCC*)
13412: # Kuck and Associates, Inc. (KAI) C++ Compiler
13413:
13414: # KCC will only create a shared library if the output file
13415: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13416: # to its proper name (with version) after linking.
13417: 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'
13418:
13419: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13420: hardcode_libdir_separator_CXX=:
13421:
13422: # Archives containing C++ object files must be created using
13423: # the KAI C++ compiler.
13424: case $host in
13425: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13426: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13427: esac
13428: ;;
13429: RCC*)
13430: # Rational C++ 2.4.1
13431: # FIXME: insert proper C++ library support
13432: ld_shlibs_CXX=no
13433: ;;
13434: cxx*)
13435: case $host in
13436: osf3*)
13437: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13438: 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'
13439: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13440: ;;
13441: *)
13442: allow_undefined_flag_CXX=' -expect_unresolved \*'
13443: 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'
13444: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13445: echo "-hidden">> $lib.exp~
13446: $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~
13447: $RM $lib.exp'
13448: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13449: ;;
13450: esac
13451:
13452: hardcode_libdir_separator_CXX=:
13453:
13454: # Commands to make compiler produce verbose output that lists
13455: # what "hidden" libraries, object files and flags are used when
13456: # linking a shared library.
13457: #
13458: # There doesn't appear to be a way to prevent this compiler from
13459: # explicitly linking system object files so we need to strip them
13460: # from the output so that they don't get included in the library
13461: # dependencies.
13462: 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"'
13463: ;;
13464: *)
13465: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13466: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13467: case $host in
13468: osf3*)
13469: 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'
13470: ;;
13471: *)
13472: 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'
13473: ;;
13474: esac
13475:
13476: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13477: hardcode_libdir_separator_CXX=:
13478:
13479: # Commands to make compiler produce verbose output that lists
13480: # what "hidden" libraries, object files and flags are used when
13481: # linking a shared library.
13482: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13483:
13484: else
13485: # FIXME: insert proper C++ library support
13486: ld_shlibs_CXX=no
13487: fi
13488: ;;
13489: esac
13490: ;;
13491:
13492: psos*)
13493: # FIXME: insert proper C++ library support
13494: ld_shlibs_CXX=no
13495: ;;
13496:
13497: sunos4*)
13498: case $cc_basename in
13499: CC*)
13500: # Sun C++ 4.x
13501: # FIXME: insert proper C++ library support
13502: ld_shlibs_CXX=no
13503: ;;
13504: lcc*)
13505: # Lucid
13506: # FIXME: insert proper C++ library support
13507: ld_shlibs_CXX=no
13508: ;;
13509: *)
13510: # FIXME: insert proper C++ library support
13511: ld_shlibs_CXX=no
13512: ;;
13513: esac
13514: ;;
13515:
13516: solaris*)
13517: case $cc_basename in
13518: CC* | sunCC*)
13519: # Sun C++ 4.2, 5.x and Centerline C++
13520: archive_cmds_need_lc_CXX=yes
13521: no_undefined_flag_CXX=' -zdefs'
13522: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13523: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13524: $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'
13525:
13526: hardcode_libdir_flag_spec_CXX='-R$libdir'
13527: hardcode_shlibpath_var_CXX=no
13528: case $host_os in
13529: solaris2.[0-5] | solaris2.[0-5].*) ;;
13530: *)
13531: # The compiler driver will combine and reorder linker options,
13532: # but understands `-z linker_flag'.
13533: # Supported since Solaris 2.6 (maybe 2.5.1?)
13534: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13535: ;;
13536: esac
13537: link_all_deplibs_CXX=yes
13538:
13539: output_verbose_link_cmd='func_echo_all'
13540:
13541: # Archives containing C++ object files must be created using
13542: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13543: # necessary to make sure instantiated templates are included
13544: # in the archive.
13545: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13546: ;;
13547: gcx*)
13548: # Green Hills C++ Compiler
13549: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13550:
13551: # The C++ compiler must be used to create the archive.
13552: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13553: ;;
13554: *)
13555: # GNU C++ compiler with Solaris linker
13556: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13557: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13558: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13559: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13560: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13561: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13562:
13563: # Commands to make compiler produce verbose output that lists
13564: # what "hidden" libraries, object files and flags are used when
13565: # linking a shared library.
13566: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13567: else
13568: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13569: # platform.
13570: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13571: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13572: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13573:
13574: # Commands to make compiler produce verbose output that lists
13575: # what "hidden" libraries, object files and flags are used when
13576: # linking a shared library.
13577: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13578: fi
13579:
13580: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13581: case $host_os in
13582: solaris2.[0-5] | solaris2.[0-5].*) ;;
13583: *)
13584: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13585: ;;
13586: esac
13587: fi
13588: ;;
13589: esac
13590: ;;
13591:
13592: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13593: no_undefined_flag_CXX='${wl}-z,text'
13594: archive_cmds_need_lc_CXX=no
13595: hardcode_shlibpath_var_CXX=no
13596: runpath_var='LD_RUN_PATH'
13597:
13598: case $cc_basename in
13599: CC*)
13600: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13601: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13602: ;;
13603: *)
13604: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13605: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13606: ;;
13607: esac
13608: ;;
13609:
13610: sysv5* | sco3.2v5* | sco5v6*)
13611: # Note: We can NOT use -z defs as we might desire, because we do not
13612: # link with -lc, and that would cause any symbols used from libc to
13613: # always be unresolved, which means just about no library would
13614: # ever link correctly. If we're not using GNU ld we use -z text
13615: # though, which does catch some bad symbols but isn't as heavy-handed
13616: # as -z defs.
13617: no_undefined_flag_CXX='${wl}-z,text'
13618: allow_undefined_flag_CXX='${wl}-z,nodefs'
13619: archive_cmds_need_lc_CXX=no
13620: hardcode_shlibpath_var_CXX=no
13621: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13622: hardcode_libdir_separator_CXX=':'
13623: link_all_deplibs_CXX=yes
13624: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13625: runpath_var='LD_RUN_PATH'
13626:
13627: case $cc_basename in
13628: CC*)
13629: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13630: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13631: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13632: '"$old_archive_cmds_CXX"
13633: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13634: '"$reload_cmds_CXX"
13635: ;;
13636: *)
13637: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13638: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13639: ;;
13640: esac
13641: ;;
13642:
13643: tandem*)
13644: case $cc_basename in
13645: NCC*)
13646: # NonStop-UX NCC 3.20
13647: # FIXME: insert proper C++ library support
13648: ld_shlibs_CXX=no
13649: ;;
13650: *)
13651: # FIXME: insert proper C++ library support
13652: ld_shlibs_CXX=no
13653: ;;
13654: esac
13655: ;;
13656:
13657: vxworks*)
13658: # FIXME: insert proper C++ library support
13659: ld_shlibs_CXX=no
13660: ;;
13661:
13662: *)
13663: # FIXME: insert proper C++ library support
13664: ld_shlibs_CXX=no
13665: ;;
13666: esac
13667:
1.32 moko 13668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13669: $as_echo "$ld_shlibs_CXX" >&6; }
1.25 moko 13670: test "$ld_shlibs_CXX" = no && can_build_shared=no
13671:
13672: GCC_CXX="$GXX"
13673: LD_CXX="$LD"
13674:
13675: ## CAVEAT EMPTOR:
13676: ## There is no encapsulation within the following macros, do not change
13677: ## the running order or otherwise move them around unless you know exactly
13678: ## what you are doing...
13679: # Dependencies to place before and after the object being linked:
13680: predep_objects_CXX=
13681: postdep_objects_CXX=
13682: predeps_CXX=
13683: postdeps_CXX=
13684: compiler_lib_search_path_CXX=
13685:
13686: cat > conftest.$ac_ext <<_LT_EOF
13687: class Foo
13688: {
13689: public:
13690: Foo (void) { a = 0; }
13691: private:
13692: int a;
13693: };
13694: _LT_EOF
13695:
13696:
13697: _lt_libdeps_save_CFLAGS=$CFLAGS
13698: case "$CC $CFLAGS " in #(
13699: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13700: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13701: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13702: esac
13703:
1.32 moko 13704: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 13705: (eval $ac_compile) 2>&5
13706: ac_status=$?
1.32 moko 13707: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13708: test $ac_status = 0; }; then
1.25 moko 13709: # Parse the compiler output and extract the necessary
13710: # objects, libraries and library flags.
13711:
13712: # Sentinel used to keep track of whether or not we are before
13713: # the conftest object file.
13714: pre_test_object_deps_done=no
13715:
13716: for p in `eval "$output_verbose_link_cmd"`; do
13717: case ${prev}${p} in
13718:
13719: -L* | -R* | -l*)
13720: # Some compilers place space between "-{L,R}" and the path.
13721: # Remove the space.
13722: if test $p = "-L" ||
13723: test $p = "-R"; then
13724: prev=$p
13725: continue
13726: fi
13727:
13728: # Expand the sysroot to ease extracting the directories later.
13729: if test -z "$prev"; then
13730: case $p in
13731: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13732: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13733: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13734: esac
13735: fi
13736: case $p in
13737: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13738: esac
13739: if test "$pre_test_object_deps_done" = no; then
13740: case ${prev} in
13741: -L | -R)
13742: # Internal compiler library paths should come after those
13743: # provided the user. The postdeps already come after the
13744: # user supplied libs so there is no need to process them.
13745: if test -z "$compiler_lib_search_path_CXX"; then
13746: compiler_lib_search_path_CXX="${prev}${p}"
13747: else
13748: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13749: fi
13750: ;;
13751: # The "-l" case would never come before the object being
13752: # linked, so don't bother handling this case.
13753: esac
13754: else
13755: if test -z "$postdeps_CXX"; then
13756: postdeps_CXX="${prev}${p}"
13757: else
13758: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13759: fi
13760: fi
13761: prev=
13762: ;;
13763:
13764: *.lto.$objext) ;; # Ignore GCC LTO objects
13765: *.$objext)
13766: # This assumes that the test object file only shows up
13767: # once in the compiler output.
13768: if test "$p" = "conftest.$objext"; then
13769: pre_test_object_deps_done=yes
13770: continue
13771: fi
13772:
13773: if test "$pre_test_object_deps_done" = no; then
13774: if test -z "$predep_objects_CXX"; then
13775: predep_objects_CXX="$p"
13776: else
13777: predep_objects_CXX="$predep_objects_CXX $p"
13778: fi
13779: else
13780: if test -z "$postdep_objects_CXX"; then
13781: postdep_objects_CXX="$p"
13782: else
13783: postdep_objects_CXX="$postdep_objects_CXX $p"
13784: fi
13785: fi
13786: ;;
13787:
13788: *) ;; # Ignore the rest.
13789:
13790: esac
13791: done
13792:
13793: # Clean up.
13794: rm -f a.out a.exe
13795: else
13796: echo "libtool.m4: error: problem compiling CXX test program"
13797: fi
13798:
13799: $RM -f confest.$objext
13800: CFLAGS=$_lt_libdeps_save_CFLAGS
13801:
13802: # PORTME: override above test on systems where it is broken
13803: case $host_os in
13804: interix[3-9]*)
13805: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13806: # hack all around it, let's just trust "g++" to DTRT.
13807: predep_objects_CXX=
13808: postdep_objects_CXX=
13809: postdeps_CXX=
13810: ;;
13811:
13812: linux*)
13813: case `$CC -V 2>&1 | sed 5q` in
13814: *Sun\ C*)
13815: # Sun C++ 5.9
13816:
13817: # The more standards-conforming stlport4 library is
13818: # incompatible with the Cstd library. Avoid specifying
13819: # it if it's in CXXFLAGS. Ignore libCrun as
13820: # -library=stlport4 depends on it.
13821: case " $CXX $CXXFLAGS " in
13822: *" -library=stlport4 "*)
13823: solaris_use_stlport4=yes
13824: ;;
13825: esac
13826:
13827: if test "$solaris_use_stlport4" != yes; then
13828: postdeps_CXX='-library=Cstd -library=Crun'
13829: fi
13830: ;;
13831: esac
13832: ;;
13833:
13834: solaris*)
13835: case $cc_basename in
13836: CC* | sunCC*)
13837: # The more standards-conforming stlport4 library is
13838: # incompatible with the Cstd library. Avoid specifying
13839: # it if it's in CXXFLAGS. Ignore libCrun as
13840: # -library=stlport4 depends on it.
13841: case " $CXX $CXXFLAGS " in
13842: *" -library=stlport4 "*)
13843: solaris_use_stlport4=yes
13844: ;;
13845: esac
13846:
13847: # Adding this requires a known-good setup of shared libraries for
13848: # Sun compiler versions before 5.6, else PIC objects from an old
13849: # archive will be linked into the output, leading to subtle bugs.
13850: if test "$solaris_use_stlport4" != yes; then
13851: postdeps_CXX='-library=Cstd -library=Crun'
13852: fi
13853: ;;
13854: esac
13855: ;;
13856: esac
13857:
13858:
13859: case " $postdeps_CXX " in
13860: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13861: esac
13862: compiler_lib_search_dirs_CXX=
13863: if test -n "${compiler_lib_search_path_CXX}"; then
13864: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13865: fi
13866:
13867:
13868:
13869:
13870:
13871:
13872:
13873:
13874:
13875:
13876:
13877:
13878:
13879:
13880:
13881:
13882:
13883:
13884:
13885:
13886:
13887:
13888:
13889:
13890:
13891:
13892:
13893:
13894:
13895:
13896:
13897: lt_prog_compiler_wl_CXX=
13898: lt_prog_compiler_pic_CXX=
13899: lt_prog_compiler_static_CXX=
13900:
13901:
13902: # C++ specific cases for pic, static, wl, etc.
13903: if test "$GXX" = yes; then
13904: lt_prog_compiler_wl_CXX='-Wl,'
13905: lt_prog_compiler_static_CXX='-static'
13906:
13907: case $host_os in
13908: aix*)
13909: # All AIX code is PIC.
13910: if test "$host_cpu" = ia64; then
13911: # AIX 5 now supports IA64 processor
13912: lt_prog_compiler_static_CXX='-Bstatic'
13913: fi
13914: ;;
13915:
13916: amigaos*)
13917: case $host_cpu in
13918: powerpc)
13919: # see comment about AmigaOS4 .so support
13920: lt_prog_compiler_pic_CXX='-fPIC'
13921: ;;
13922: m68k)
13923: # FIXME: we need at least 68020 code to build shared libraries, but
13924: # adding the `-m68020' flag to GCC prevents building anything better,
13925: # like `-m68040'.
13926: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13927: ;;
13928: esac
13929: ;;
13930:
13931: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13932: # PIC is the default for these OSes.
13933: ;;
13934: mingw* | cygwin* | os2* | pw32* | cegcc*)
13935: # This hack is so that the source file can tell whether it is being
13936: # built for inclusion in a dll (and should export symbols for example).
13937: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13938: # (--disable-auto-import) libraries
13939: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13940: ;;
13941: darwin* | rhapsody*)
13942: # PIC is the default on this platform
13943: # Common symbols not allowed in MH_DYLIB files
13944: lt_prog_compiler_pic_CXX='-fno-common'
13945: ;;
13946: *djgpp*)
13947: # DJGPP does not support shared libraries at all
13948: lt_prog_compiler_pic_CXX=
13949: ;;
13950: haiku*)
13951: # PIC is the default for Haiku.
13952: # The "-static" flag exists, but is broken.
13953: lt_prog_compiler_static_CXX=
13954: ;;
13955: interix[3-9]*)
13956: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13957: # Instead, we relocate shared libraries at runtime.
13958: ;;
13959: sysv4*MP*)
13960: if test -d /usr/nec; then
13961: lt_prog_compiler_pic_CXX=-Kconform_pic
13962: fi
13963: ;;
13964: hpux*)
13965: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13966: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13967: # sets the default TLS model and affects inlining.
13968: case $host_cpu in
13969: hppa*64*)
13970: ;;
13971: *)
13972: lt_prog_compiler_pic_CXX='-fPIC'
13973: ;;
13974: esac
13975: ;;
13976: *qnx* | *nto*)
13977: # QNX uses GNU C++, but need to define -shared option too, otherwise
13978: # it will coredump.
13979: lt_prog_compiler_pic_CXX='-fPIC -shared'
13980: ;;
13981: *)
13982: lt_prog_compiler_pic_CXX='-fPIC'
13983: ;;
13984: esac
13985: else
13986: case $host_os in
13987: aix[4-9]*)
13988: # All AIX code is PIC.
13989: if test "$host_cpu" = ia64; then
13990: # AIX 5 now supports IA64 processor
13991: lt_prog_compiler_static_CXX='-Bstatic'
13992: else
13993: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13994: fi
13995: ;;
13996: chorus*)
13997: case $cc_basename in
13998: cxch68*)
13999: # Green Hills C++ Compiler
14000: # _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"
14001: ;;
14002: esac
14003: ;;
14004: mingw* | cygwin* | os2* | pw32* | cegcc*)
14005: # This hack is so that the source file can tell whether it is being
14006: # built for inclusion in a dll (and should export symbols for example).
14007: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14008: ;;
14009: dgux*)
14010: case $cc_basename in
14011: ec++*)
14012: lt_prog_compiler_pic_CXX='-KPIC'
14013: ;;
14014: ghcx*)
14015: # Green Hills C++ Compiler
14016: lt_prog_compiler_pic_CXX='-pic'
14017: ;;
14018: *)
14019: ;;
14020: esac
14021: ;;
14022: freebsd* | dragonfly*)
14023: # FreeBSD uses GNU C++
14024: ;;
14025: hpux9* | hpux10* | hpux11*)
14026: case $cc_basename in
14027: CC*)
14028: lt_prog_compiler_wl_CXX='-Wl,'
14029: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14030: if test "$host_cpu" != ia64; then
14031: lt_prog_compiler_pic_CXX='+Z'
14032: fi
14033: ;;
14034: aCC*)
14035: lt_prog_compiler_wl_CXX='-Wl,'
14036: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14037: case $host_cpu in
14038: hppa*64*|ia64*)
14039: # +Z the default
14040: ;;
14041: *)
14042: lt_prog_compiler_pic_CXX='+Z'
14043: ;;
14044: esac
14045: ;;
14046: *)
14047: ;;
14048: esac
14049: ;;
14050: interix*)
14051: # This is c89, which is MS Visual C++ (no shared libs)
14052: # Anyone wants to do a port?
14053: ;;
14054: irix5* | irix6* | nonstopux*)
14055: case $cc_basename in
14056: CC*)
14057: lt_prog_compiler_wl_CXX='-Wl,'
14058: lt_prog_compiler_static_CXX='-non_shared'
14059: # CC pic flag -KPIC is the default.
14060: ;;
14061: *)
14062: ;;
14063: esac
14064: ;;
14065: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14066: case $cc_basename in
14067: KCC*)
14068: # KAI C++ Compiler
14069: lt_prog_compiler_wl_CXX='--backend -Wl,'
14070: lt_prog_compiler_pic_CXX='-fPIC'
14071: ;;
14072: ecpc* )
14073: # old Intel C++ for x86_64 which still supported -KPIC.
14074: lt_prog_compiler_wl_CXX='-Wl,'
14075: lt_prog_compiler_pic_CXX='-KPIC'
14076: lt_prog_compiler_static_CXX='-static'
14077: ;;
14078: icpc* )
14079: # Intel C++, used to be incompatible with GCC.
14080: # ICC 10 doesn't accept -KPIC any more.
14081: lt_prog_compiler_wl_CXX='-Wl,'
14082: lt_prog_compiler_pic_CXX='-fPIC'
14083: lt_prog_compiler_static_CXX='-static'
14084: ;;
14085: pgCC* | pgcpp*)
14086: # Portland Group C++ compiler
14087: lt_prog_compiler_wl_CXX='-Wl,'
14088: lt_prog_compiler_pic_CXX='-fpic'
14089: lt_prog_compiler_static_CXX='-Bstatic'
14090: ;;
14091: cxx*)
14092: # Compaq C++
14093: # Make sure the PIC flag is empty. It appears that all Alpha
14094: # Linux and Compaq Tru64 Unix objects are PIC.
14095: lt_prog_compiler_pic_CXX=
14096: lt_prog_compiler_static_CXX='-non_shared'
14097: ;;
14098: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14099: # IBM XL 8.0, 9.0 on PPC and BlueGene
14100: lt_prog_compiler_wl_CXX='-Wl,'
14101: lt_prog_compiler_pic_CXX='-qpic'
14102: lt_prog_compiler_static_CXX='-qstaticlink'
14103: ;;
14104: *)
14105: case `$CC -V 2>&1 | sed 5q` in
14106: *Sun\ C*)
14107: # Sun C++ 5.9
14108: lt_prog_compiler_pic_CXX='-KPIC'
14109: lt_prog_compiler_static_CXX='-Bstatic'
14110: lt_prog_compiler_wl_CXX='-Qoption ld '
14111: ;;
14112: esac
14113: ;;
14114: esac
14115: ;;
14116: lynxos*)
14117: ;;
14118: m88k*)
14119: ;;
14120: mvs*)
14121: case $cc_basename in
14122: cxx*)
14123: lt_prog_compiler_pic_CXX='-W c,exportall'
14124: ;;
14125: *)
14126: ;;
14127: esac
14128: ;;
14129: netbsd*)
14130: ;;
14131: *qnx* | *nto*)
14132: # QNX uses GNU C++, but need to define -shared option too, otherwise
14133: # it will coredump.
14134: lt_prog_compiler_pic_CXX='-fPIC -shared'
14135: ;;
14136: osf3* | osf4* | osf5*)
14137: case $cc_basename in
14138: KCC*)
14139: lt_prog_compiler_wl_CXX='--backend -Wl,'
14140: ;;
14141: RCC*)
14142: # Rational C++ 2.4.1
14143: lt_prog_compiler_pic_CXX='-pic'
14144: ;;
14145: cxx*)
14146: # Digital/Compaq C++
14147: lt_prog_compiler_wl_CXX='-Wl,'
14148: # Make sure the PIC flag is empty. It appears that all Alpha
14149: # Linux and Compaq Tru64 Unix objects are PIC.
14150: lt_prog_compiler_pic_CXX=
14151: lt_prog_compiler_static_CXX='-non_shared'
14152: ;;
14153: *)
14154: ;;
14155: esac
14156: ;;
14157: psos*)
14158: ;;
14159: solaris*)
14160: case $cc_basename in
14161: CC* | sunCC*)
14162: # Sun C++ 4.2, 5.x and Centerline C++
14163: lt_prog_compiler_pic_CXX='-KPIC'
14164: lt_prog_compiler_static_CXX='-Bstatic'
14165: lt_prog_compiler_wl_CXX='-Qoption ld '
14166: ;;
14167: gcx*)
14168: # Green Hills C++ Compiler
14169: lt_prog_compiler_pic_CXX='-PIC'
14170: ;;
14171: *)
14172: ;;
14173: esac
14174: ;;
14175: sunos4*)
14176: case $cc_basename in
14177: CC*)
14178: # Sun C++ 4.x
14179: lt_prog_compiler_pic_CXX='-pic'
14180: lt_prog_compiler_static_CXX='-Bstatic'
14181: ;;
14182: lcc*)
14183: # Lucid
14184: lt_prog_compiler_pic_CXX='-pic'
14185: ;;
14186: *)
14187: ;;
14188: esac
14189: ;;
14190: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14191: case $cc_basename in
14192: CC*)
14193: lt_prog_compiler_wl_CXX='-Wl,'
14194: lt_prog_compiler_pic_CXX='-KPIC'
14195: lt_prog_compiler_static_CXX='-Bstatic'
14196: ;;
14197: esac
14198: ;;
14199: tandem*)
14200: case $cc_basename in
14201: NCC*)
14202: # NonStop-UX NCC 3.20
14203: lt_prog_compiler_pic_CXX='-KPIC'
14204: ;;
14205: *)
14206: ;;
14207: esac
14208: ;;
14209: vxworks*)
14210: ;;
14211: *)
14212: lt_prog_compiler_can_build_shared_CXX=no
14213: ;;
14214: esac
14215: fi
14216:
14217: case $host_os in
14218: # For platforms which do not support PIC, -DPIC is meaningless:
14219: *djgpp*)
14220: lt_prog_compiler_pic_CXX=
14221: ;;
14222: *)
14223: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14224: ;;
14225: esac
14226:
1.32 moko 14227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14228: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14229: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14230: $as_echo_n "(cached) " >&6
1.25 moko 14231: else
14232: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14233: fi
1.32 moko 14234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14235: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.25 moko 14236: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14237:
14238: #
14239: # Check to make sure the PIC flag actually works.
14240: #
14241: if test -n "$lt_prog_compiler_pic_CXX"; then
1.32 moko 14242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14243: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14244: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14245: $as_echo_n "(cached) " >&6
1.25 moko 14246: else
14247: lt_cv_prog_compiler_pic_works_CXX=no
14248: ac_outfile=conftest.$ac_objext
14249: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14250: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14251: # Insert the option either (1) after the last *FLAGS variable, or
14252: # (2) before a word containing "conftest.", or (3) at the end.
14253: # Note that $ac_compile itself does not contain backslashes and begins
14254: # with a dollar sign (not a hyphen), so the echo should work correctly.
14255: # The option is referenced via a variable to avoid confusing sed.
14256: lt_compile=`echo "$ac_compile" | $SED \
14257: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14258: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14259: -e 's:$: $lt_compiler_flag:'`
14260: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14261: (eval "$lt_compile" 2>conftest.err)
14262: ac_status=$?
14263: cat conftest.err >&5
14264: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265: if (exit $ac_status) && test -s "$ac_outfile"; then
14266: # The compiler can only warn and ignore the option if not recognized
14267: # So say no if there are warnings other than the usual output.
14268: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14269: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14270: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14271: lt_cv_prog_compiler_pic_works_CXX=yes
14272: fi
14273: fi
14274: $RM conftest*
14275:
14276: fi
1.32 moko 14277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14278: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.25 moko 14279:
14280: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14281: case $lt_prog_compiler_pic_CXX in
14282: "" | " "*) ;;
14283: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14284: esac
14285: else
14286: lt_prog_compiler_pic_CXX=
14287: lt_prog_compiler_can_build_shared_CXX=no
14288: fi
14289:
14290: fi
14291:
14292:
14293:
14294:
14295:
14296: #
14297: # Check to make sure the static flag actually works.
14298: #
14299: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.32 moko 14300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14301: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14302: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14303: $as_echo_n "(cached) " >&6
1.25 moko 14304: else
14305: lt_cv_prog_compiler_static_works_CXX=no
14306: save_LDFLAGS="$LDFLAGS"
14307: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14308: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14309: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14310: # The linker can only warn and ignore the option if not recognized
14311: # So say no if there are warnings
14312: if test -s conftest.err; then
14313: # Append any errors to the config.log.
14314: cat conftest.err 1>&5
14315: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14316: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14317: if diff conftest.exp conftest.er2 >/dev/null; then
14318: lt_cv_prog_compiler_static_works_CXX=yes
14319: fi
14320: else
14321: lt_cv_prog_compiler_static_works_CXX=yes
14322: fi
14323: fi
14324: $RM -r conftest*
14325: LDFLAGS="$save_LDFLAGS"
14326:
14327: fi
1.32 moko 14328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14329: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.25 moko 14330:
14331: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14332: :
14333: else
14334: lt_prog_compiler_static_CXX=
14335: fi
14336:
14337:
14338:
14339:
1.32 moko 14340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14341: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14342: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14343: $as_echo_n "(cached) " >&6
1.25 moko 14344: else
14345: lt_cv_prog_compiler_c_o_CXX=no
14346: $RM -r conftest 2>/dev/null
14347: mkdir conftest
14348: cd conftest
14349: mkdir out
14350: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14351:
14352: lt_compiler_flag="-o out/conftest2.$ac_objext"
14353: # Insert the option either (1) after the last *FLAGS variable, or
14354: # (2) before a word containing "conftest.", or (3) at the end.
14355: # Note that $ac_compile itself does not contain backslashes and begins
14356: # with a dollar sign (not a hyphen), so the echo should work correctly.
14357: lt_compile=`echo "$ac_compile" | $SED \
14358: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14359: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14360: -e 's:$: $lt_compiler_flag:'`
14361: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14362: (eval "$lt_compile" 2>out/conftest.err)
14363: ac_status=$?
14364: cat out/conftest.err >&5
14365: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14367: then
14368: # The compiler can only warn and ignore the option if not recognized
14369: # So say no if there are warnings
14370: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14371: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14372: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14373: lt_cv_prog_compiler_c_o_CXX=yes
14374: fi
14375: fi
14376: chmod u+w . 2>&5
14377: $RM conftest*
14378: # SGI C++ compiler will create directory out/ii_files/ for
14379: # template instantiation
14380: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14381: $RM out/* && rmdir out
14382: cd ..
14383: $RM -r conftest
14384: $RM conftest*
14385:
14386: fi
1.32 moko 14387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14388: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.25 moko 14389:
14390:
14391:
1.32 moko 14392: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14393: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14394: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14395: $as_echo_n "(cached) " >&6
1.25 moko 14396: else
14397: lt_cv_prog_compiler_c_o_CXX=no
14398: $RM -r conftest 2>/dev/null
14399: mkdir conftest
14400: cd conftest
14401: mkdir out
14402: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14403:
14404: lt_compiler_flag="-o out/conftest2.$ac_objext"
14405: # Insert the option either (1) after the last *FLAGS variable, or
14406: # (2) before a word containing "conftest.", or (3) at the end.
14407: # Note that $ac_compile itself does not contain backslashes and begins
14408: # with a dollar sign (not a hyphen), so the echo should work correctly.
14409: lt_compile=`echo "$ac_compile" | $SED \
14410: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14411: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14412: -e 's:$: $lt_compiler_flag:'`
14413: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14414: (eval "$lt_compile" 2>out/conftest.err)
14415: ac_status=$?
14416: cat out/conftest.err >&5
14417: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14419: then
14420: # The compiler can only warn and ignore the option if not recognized
14421: # So say no if there are warnings
14422: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14423: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14424: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14425: lt_cv_prog_compiler_c_o_CXX=yes
14426: fi
14427: fi
14428: chmod u+w . 2>&5
14429: $RM conftest*
14430: # SGI C++ compiler will create directory out/ii_files/ for
14431: # template instantiation
14432: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14433: $RM out/* && rmdir out
14434: cd ..
14435: $RM -r conftest
14436: $RM conftest*
14437:
14438: fi
1.32 moko 14439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14440: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.25 moko 14441:
14442:
14443:
14444:
14445: hard_links="nottested"
14446: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14447: # do not overwrite the value of need_locks provided by the user
1.32 moko 14448: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14449: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.25 moko 14450: hard_links=yes
14451: $RM conftest*
14452: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14453: touch conftest.a
14454: ln conftest.a conftest.b 2>&5 || hard_links=no
14455: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.32 moko 14456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14457: $as_echo "$hard_links" >&6; }
1.25 moko 14458: if test "$hard_links" = no; then
1.32 moko 14459: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14460: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.25 moko 14461: need_locks=warn
14462: fi
14463: else
14464: need_locks=no
14465: fi
14466:
14467:
14468:
1.32 moko 14469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14470: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.25 moko 14471:
14472: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14473: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14474: case $host_os in
14475: aix[4-9]*)
14476: # If we're using GNU nm, then we don't want the "-C" option.
14477: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14478: # Also, AIX nm treats weak defined symbols like other global defined
14479: # symbols, whereas GNU nm marks them as "W".
14480: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14481: 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'
14482: else
14483: 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'
14484: fi
14485: ;;
14486: pw32*)
14487: export_symbols_cmds_CXX="$ltdll_cmds"
14488: ;;
14489: cygwin* | mingw* | cegcc*)
14490: case $cc_basename in
14491: cl*)
14492: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14493: ;;
14494: *)
14495: 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'
14496: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14497: ;;
14498: esac
14499: ;;
14500: *)
14501: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14502: ;;
14503: esac
14504:
1.32 moko 14505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14506: $as_echo "$ld_shlibs_CXX" >&6; }
1.25 moko 14507: test "$ld_shlibs_CXX" = no && can_build_shared=no
14508:
14509: with_gnu_ld_CXX=$with_gnu_ld
14510:
14511:
14512:
14513:
14514:
14515:
14516: #
14517: # Do we need to explicitly link libc?
14518: #
14519: case "x$archive_cmds_need_lc_CXX" in
14520: x|xyes)
14521: # Assume -lc should be added
14522: archive_cmds_need_lc_CXX=yes
14523:
14524: if test "$enable_shared" = yes && test "$GCC" = yes; then
14525: case $archive_cmds_CXX in
14526: *'~'*)
14527: # FIXME: we may have to deal with multi-command sequences.
14528: ;;
14529: '$CC '*)
14530: # Test whether the compiler implicitly links with -lc since on some
14531: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14532: # to ld, don't add -lc before -lgcc.
1.32 moko 14533: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14534: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14535: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14536: $as_echo_n "(cached) " >&6
1.25 moko 14537: else
14538: $RM conftest*
14539: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14540:
1.32 moko 14541: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 14542: (eval $ac_compile) 2>&5
14543: ac_status=$?
1.32 moko 14544: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14545: test $ac_status = 0; } 2>conftest.err; then
1.25 moko 14546: soname=conftest
14547: lib=conftest
14548: libobjs=conftest.$ac_objext
14549: deplibs=
14550: wl=$lt_prog_compiler_wl_CXX
14551: pic_flag=$lt_prog_compiler_pic_CXX
14552: compiler_flags=-v
14553: linker_flags=-v
14554: verstring=
14555: output_objdir=.
14556: libname=conftest
14557: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14558: allow_undefined_flag_CXX=
1.32 moko 14559: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.25 moko 14560: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14561: ac_status=$?
1.32 moko 14562: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14563: test $ac_status = 0; }
1.25 moko 14564: then
14565: lt_cv_archive_cmds_need_lc_CXX=no
14566: else
14567: lt_cv_archive_cmds_need_lc_CXX=yes
14568: fi
14569: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14570: else
14571: cat conftest.err 1>&5
14572: fi
14573: $RM conftest*
14574:
14575: fi
1.32 moko 14576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14577: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.25 moko 14578: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14579: ;;
14580: esac
14581: fi
14582: ;;
14583: esac
14584:
14585:
14586:
14587:
14588:
14589:
14590:
14591:
14592:
14593:
14594:
14595:
14596:
14597:
14598:
14599:
14600:
14601:
14602:
14603:
14604:
14605:
14606:
14607:
14608:
14609:
14610:
14611:
14612:
14613:
14614:
14615:
14616:
14617:
14618:
14619:
14620:
14621:
14622:
14623:
14624:
14625:
14626:
14627:
14628:
14629:
14630:
14631:
14632:
14633:
14634:
14635:
14636:
14637:
14638:
14639:
14640:
14641:
14642:
14643:
14644:
14645:
1.32 moko 14646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14647: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.25 moko 14648:
14649: library_names_spec=
14650: libname_spec='lib$name'
14651: soname_spec=
14652: shrext_cmds=".so"
14653: postinstall_cmds=
14654: postuninstall_cmds=
14655: finish_cmds=
14656: finish_eval=
14657: shlibpath_var=
14658: shlibpath_overrides_runpath=unknown
14659: version_type=none
14660: dynamic_linker="$host_os ld.so"
14661: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14662: need_lib_prefix=unknown
14663: hardcode_into_libs=no
14664:
14665: # when you set need_version to no, make sure it does not cause -set_version
14666: # flags to be left without arguments
14667: need_version=unknown
14668:
14669: case $host_os in
14670: aix3*)
14671: version_type=linux # correct to gnu/linux during the next big refactor
14672: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14673: shlibpath_var=LIBPATH
14674:
14675: # AIX 3 has no versioning support, so we append a major version to the name.
14676: soname_spec='${libname}${release}${shared_ext}$major'
14677: ;;
14678:
14679: aix[4-9]*)
14680: version_type=linux # correct to gnu/linux during the next big refactor
14681: need_lib_prefix=no
14682: need_version=no
14683: hardcode_into_libs=yes
14684: if test "$host_cpu" = ia64; then
14685: # AIX 5 supports IA64
14686: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14687: shlibpath_var=LD_LIBRARY_PATH
14688: else
14689: # With GCC up to 2.95.x, collect2 would create an import file
14690: # for dependence libraries. The import file would start with
14691: # the line `#! .'. This would cause the generated library to
14692: # depend on `.', always an invalid library. This was fixed in
14693: # development snapshots of GCC prior to 3.0.
14694: case $host_os in
14695: aix4 | aix4.[01] | aix4.[01].*)
14696: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14697: echo ' yes '
14698: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14699: :
14700: else
14701: can_build_shared=no
14702: fi
14703: ;;
14704: esac
14705: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14706: # soname into executable. Probably we can add versioning support to
14707: # collect2, so additional links can be useful in future.
14708: if test "$aix_use_runtimelinking" = yes; then
14709: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14710: # instead of lib<name>.a to let people know that these are not
14711: # typical AIX shared libraries.
14712: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713: else
14714: # We preserve .a as extension for shared libraries through AIX4.2
14715: # and later when we are not doing run time linking.
14716: library_names_spec='${libname}${release}.a $libname.a'
14717: soname_spec='${libname}${release}${shared_ext}$major'
14718: fi
14719: shlibpath_var=LIBPATH
14720: fi
14721: ;;
14722:
14723: amigaos*)
14724: case $host_cpu in
14725: powerpc)
14726: # Since July 2007 AmigaOS4 officially supports .so libraries.
14727: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14728: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729: ;;
14730: m68k)
14731: library_names_spec='$libname.ixlibrary $libname.a'
14732: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14733: 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'
14734: ;;
14735: esac
14736: ;;
14737:
14738: beos*)
14739: library_names_spec='${libname}${shared_ext}'
14740: dynamic_linker="$host_os ld.so"
14741: shlibpath_var=LIBRARY_PATH
14742: ;;
14743:
14744: bsdi[45]*)
14745: version_type=linux # correct to gnu/linux during the next big refactor
14746: need_version=no
14747: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14748: soname_spec='${libname}${release}${shared_ext}$major'
14749: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14750: shlibpath_var=LD_LIBRARY_PATH
14751: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14752: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14753: # the default ld.so.conf also contains /usr/contrib/lib and
14754: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14755: # libtool to hard-code these into programs
14756: ;;
14757:
14758: cygwin* | mingw* | pw32* | cegcc*)
14759: version_type=windows
14760: shrext_cmds=".dll"
14761: need_version=no
14762: need_lib_prefix=no
14763:
14764: case $GCC,$cc_basename in
14765: yes,*)
14766: # gcc
14767: library_names_spec='$libname.dll.a'
14768: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14769: postinstall_cmds='base_file=`basename \${file}`~
14770: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14771: dldir=$destdir/`dirname \$dlpath`~
14772: test -d \$dldir || mkdir -p \$dldir~
14773: $install_prog $dir/$dlname \$dldir/$dlname~
14774: chmod a+x \$dldir/$dlname~
14775: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14776: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14777: fi'
14778: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14779: dlpath=$dir/\$dldll~
14780: $RM \$dlpath'
14781: shlibpath_overrides_runpath=yes
14782:
14783: case $host_os in
14784: cygwin*)
14785: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14786: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14787:
14788: ;;
14789: mingw* | cegcc*)
14790: # MinGW DLLs use traditional 'lib' prefix
14791: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14792: ;;
14793: pw32*)
14794: # pw32 DLLs use 'pw' prefix rather than 'lib'
14795: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14796: ;;
14797: esac
14798: dynamic_linker='Win32 ld.exe'
14799: ;;
14800:
14801: *,cl*)
14802: # Native MSVC
14803: libname_spec='$name'
14804: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14805: library_names_spec='${libname}.dll.lib'
14806:
14807: case $build_os in
14808: mingw*)
14809: sys_lib_search_path_spec=
14810: lt_save_ifs=$IFS
14811: IFS=';'
14812: for lt_path in $LIB
14813: do
14814: IFS=$lt_save_ifs
14815: # Let DOS variable expansion print the short 8.3 style file name.
14816: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14817: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14818: done
14819: IFS=$lt_save_ifs
14820: # Convert to MSYS style.
14821: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14822: ;;
14823: cygwin*)
14824: # Convert to unix form, then to dos form, then back to unix form
14825: # but this time dos style (no spaces!) so that the unix form looks
14826: # like /cygdrive/c/PROGRA~1:/cygdr...
14827: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14828: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14829: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14830: ;;
14831: *)
14832: sys_lib_search_path_spec="$LIB"
14833: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14834: # It is most probably a Windows format PATH.
14835: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14836: else
14837: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14838: fi
14839: # FIXME: find the short name or the path components, as spaces are
14840: # common. (e.g. "Program Files" -> "PROGRA~1")
14841: ;;
14842: esac
14843:
14844: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14845: postinstall_cmds='base_file=`basename \${file}`~
14846: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14847: dldir=$destdir/`dirname \$dlpath`~
14848: test -d \$dldir || mkdir -p \$dldir~
14849: $install_prog $dir/$dlname \$dldir/$dlname'
14850: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14851: dlpath=$dir/\$dldll~
14852: $RM \$dlpath'
14853: shlibpath_overrides_runpath=yes
14854: dynamic_linker='Win32 link.exe'
14855: ;;
14856:
14857: *)
14858: # Assume MSVC wrapper
14859: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14860: dynamic_linker='Win32 ld.exe'
14861: ;;
14862: esac
14863: # FIXME: first we should search . and the directory the executable is in
14864: shlibpath_var=PATH
14865: ;;
14866:
14867: darwin* | rhapsody*)
14868: dynamic_linker="$host_os dyld"
14869: version_type=darwin
14870: need_lib_prefix=no
14871: need_version=no
14872: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14873: soname_spec='${libname}${release}${major}$shared_ext'
14874: shlibpath_overrides_runpath=yes
14875: shlibpath_var=DYLD_LIBRARY_PATH
14876: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14877:
14878: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14879: ;;
14880:
14881: dgux*)
14882: version_type=linux # correct to gnu/linux during the next big refactor
14883: need_lib_prefix=no
14884: need_version=no
14885: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14886: soname_spec='${libname}${release}${shared_ext}$major'
14887: shlibpath_var=LD_LIBRARY_PATH
14888: ;;
14889:
14890: freebsd* | dragonfly*)
14891: # DragonFly does not have aout. When/if they implement a new
14892: # versioning mechanism, adjust this.
14893: if test -x /usr/bin/objformat; then
14894: objformat=`/usr/bin/objformat`
14895: else
14896: case $host_os in
14897: freebsd[23].*) objformat=aout ;;
14898: *) objformat=elf ;;
14899: esac
14900: fi
14901: version_type=freebsd-$objformat
14902: case $version_type in
14903: freebsd-elf*)
14904: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14905: need_version=no
14906: need_lib_prefix=no
14907: ;;
14908: freebsd-*)
14909: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14910: need_version=yes
14911: ;;
14912: esac
14913: shlibpath_var=LD_LIBRARY_PATH
14914: case $host_os in
14915: freebsd2.*)
14916: shlibpath_overrides_runpath=yes
14917: ;;
14918: freebsd3.[01]* | freebsdelf3.[01]*)
14919: shlibpath_overrides_runpath=yes
14920: hardcode_into_libs=yes
14921: ;;
14922: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14923: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14924: shlibpath_overrides_runpath=no
14925: hardcode_into_libs=yes
14926: ;;
14927: *) # from 4.6 on, and DragonFly
14928: shlibpath_overrides_runpath=yes
14929: hardcode_into_libs=yes
14930: ;;
14931: esac
14932: ;;
14933:
14934: gnu*)
14935: version_type=linux # correct to gnu/linux during the next big refactor
14936: need_lib_prefix=no
14937: need_version=no
14938: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14939: soname_spec='${libname}${release}${shared_ext}$major'
14940: shlibpath_var=LD_LIBRARY_PATH
14941: shlibpath_overrides_runpath=no
14942: hardcode_into_libs=yes
14943: ;;
14944:
14945: haiku*)
14946: version_type=linux # correct to gnu/linux during the next big refactor
14947: need_lib_prefix=no
14948: need_version=no
14949: dynamic_linker="$host_os runtime_loader"
14950: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14951: soname_spec='${libname}${release}${shared_ext}$major'
14952: shlibpath_var=LIBRARY_PATH
14953: shlibpath_overrides_runpath=yes
14954: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14955: hardcode_into_libs=yes
14956: ;;
14957:
14958: hpux9* | hpux10* | hpux11*)
14959: # Give a soname corresponding to the major version so that dld.sl refuses to
14960: # link against other versions.
14961: version_type=sunos
14962: need_lib_prefix=no
14963: need_version=no
14964: case $host_cpu in
14965: ia64*)
14966: shrext_cmds='.so'
14967: hardcode_into_libs=yes
14968: dynamic_linker="$host_os dld.so"
14969: shlibpath_var=LD_LIBRARY_PATH
14970: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14971: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972: soname_spec='${libname}${release}${shared_ext}$major'
14973: if test "X$HPUX_IA64_MODE" = X32; then
14974: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14975: else
14976: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14977: fi
14978: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14979: ;;
14980: hppa*64*)
14981: shrext_cmds='.sl'
14982: hardcode_into_libs=yes
14983: dynamic_linker="$host_os dld.sl"
14984: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14985: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14986: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987: soname_spec='${libname}${release}${shared_ext}$major'
14988: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14989: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14990: ;;
14991: *)
14992: shrext_cmds='.sl'
14993: dynamic_linker="$host_os dld.sl"
14994: shlibpath_var=SHLIB_PATH
14995: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14996: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997: soname_spec='${libname}${release}${shared_ext}$major'
14998: ;;
14999: esac
15000: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15001: postinstall_cmds='chmod 555 $lib'
15002: # or fails outright, so override atomically:
15003: install_override_mode=555
15004: ;;
15005:
15006: interix[3-9]*)
15007: version_type=linux # correct to gnu/linux during the next big refactor
15008: need_lib_prefix=no
15009: need_version=no
15010: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15011: soname_spec='${libname}${release}${shared_ext}$major'
15012: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15013: shlibpath_var=LD_LIBRARY_PATH
15014: shlibpath_overrides_runpath=no
15015: hardcode_into_libs=yes
15016: ;;
15017:
15018: irix5* | irix6* | nonstopux*)
15019: case $host_os in
15020: nonstopux*) version_type=nonstopux ;;
15021: *)
15022: if test "$lt_cv_prog_gnu_ld" = yes; then
15023: version_type=linux # correct to gnu/linux during the next big refactor
15024: else
15025: version_type=irix
15026: fi ;;
15027: esac
15028: need_lib_prefix=no
15029: need_version=no
15030: soname_spec='${libname}${release}${shared_ext}$major'
15031: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15032: case $host_os in
15033: irix5* | nonstopux*)
15034: libsuff= shlibsuff=
15035: ;;
15036: *)
15037: case $LD in # libtool.m4 will add one of these switches to LD
15038: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15039: libsuff= shlibsuff= libmagic=32-bit;;
15040: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15041: libsuff=32 shlibsuff=N32 libmagic=N32;;
15042: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15043: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15044: *) libsuff= shlibsuff= libmagic=never-match;;
15045: esac
15046: ;;
15047: esac
15048: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15049: shlibpath_overrides_runpath=no
15050: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15051: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15052: hardcode_into_libs=yes
15053: ;;
15054:
15055: # No shared lib support for Linux oldld, aout, or coff.
15056: linux*oldld* | linux*aout* | linux*coff*)
15057: dynamic_linker=no
15058: ;;
15059:
15060: # This must be glibc/ELF.
15061: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15062: version_type=linux # correct to gnu/linux during the next big refactor
15063: need_lib_prefix=no
15064: need_version=no
15065: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15066: soname_spec='${libname}${release}${shared_ext}$major'
15067: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15068: shlibpath_var=LD_LIBRARY_PATH
15069: shlibpath_overrides_runpath=no
15070:
15071: # Some binutils ld are patched to set DT_RUNPATH
1.32 moko 15072: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15073: $as_echo_n "(cached) " >&6
1.25 moko 15074: else
15075: lt_cv_shlibpath_overrides_runpath=no
15076: save_LDFLAGS=$LDFLAGS
15077: save_libdir=$libdir
15078: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15079: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.32 moko 15080: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15081: /* end confdefs.h. */
15082:
15083: int
15084: main ()
15085: {
15086:
15087: ;
15088: return 0;
15089: }
15090: _ACEOF
1.32 moko 15091: if ac_fn_cxx_try_link "$LINENO"; then :
15092: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.25 moko 15093: lt_cv_shlibpath_overrides_runpath=yes
15094: fi
15095: fi
1.32 moko 15096: rm -f core conftest.err conftest.$ac_objext \
15097: conftest$ac_exeext conftest.$ac_ext
1.25 moko 15098: LDFLAGS=$save_LDFLAGS
15099: libdir=$save_libdir
15100:
15101: fi
15102:
15103: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15104:
15105: # This implies no fast_install, which is unacceptable.
15106: # Some rework will be needed to allow for fast_install
15107: # before this can be enabled.
15108: hardcode_into_libs=yes
15109:
15110: # Append ld.so.conf contents to the search path
15111: if test -f /etc/ld.so.conf; then
15112: 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' ' '`
15113: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15114: fi
15115:
15116: # We used to test for /lib/ld.so.1 and disable shared libraries on
15117: # powerpc, because MkLinux only supported shared libraries with the
15118: # GNU dynamic linker. Since this was broken with cross compilers,
15119: # most powerpc-linux boxes support dynamic linking these days and
15120: # people can always --disable-shared, the test was removed, and we
15121: # assume the GNU/Linux dynamic linker is in use.
15122: dynamic_linker='GNU/Linux ld.so'
15123: ;;
15124:
15125: netbsd*)
15126: version_type=sunos
15127: need_lib_prefix=no
15128: need_version=no
15129: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15130: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15131: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15132: dynamic_linker='NetBSD (a.out) ld.so'
15133: else
15134: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15135: soname_spec='${libname}${release}${shared_ext}$major'
15136: dynamic_linker='NetBSD ld.elf_so'
15137: fi
15138: shlibpath_var=LD_LIBRARY_PATH
15139: shlibpath_overrides_runpath=yes
15140: hardcode_into_libs=yes
15141: ;;
15142:
15143: newsos6)
15144: version_type=linux # correct to gnu/linux during the next big refactor
15145: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15146: shlibpath_var=LD_LIBRARY_PATH
15147: shlibpath_overrides_runpath=yes
15148: ;;
15149:
15150: *nto* | *qnx*)
15151: version_type=qnx
15152: need_lib_prefix=no
15153: need_version=no
15154: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155: soname_spec='${libname}${release}${shared_ext}$major'
15156: shlibpath_var=LD_LIBRARY_PATH
15157: shlibpath_overrides_runpath=no
15158: hardcode_into_libs=yes
15159: dynamic_linker='ldqnx.so'
15160: ;;
15161:
15162: openbsd*)
15163: version_type=sunos
15164: sys_lib_dlsearch_path_spec="/usr/lib"
15165: need_lib_prefix=no
15166: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15167: case $host_os in
15168: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15169: *) need_version=no ;;
15170: esac
15171: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15172: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15173: shlibpath_var=LD_LIBRARY_PATH
15174: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15175: case $host_os in
15176: openbsd2.[89] | openbsd2.[89].*)
15177: shlibpath_overrides_runpath=no
15178: ;;
15179: *)
15180: shlibpath_overrides_runpath=yes
15181: ;;
15182: esac
15183: else
15184: shlibpath_overrides_runpath=yes
15185: fi
15186: ;;
15187:
15188: os2*)
15189: libname_spec='$name'
15190: shrext_cmds=".dll"
15191: need_lib_prefix=no
15192: library_names_spec='$libname${shared_ext} $libname.a'
15193: dynamic_linker='OS/2 ld.exe'
15194: shlibpath_var=LIBPATH
15195: ;;
15196:
15197: osf3* | osf4* | osf5*)
15198: version_type=osf
15199: need_lib_prefix=no
15200: need_version=no
15201: soname_spec='${libname}${release}${shared_ext}$major'
15202: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203: shlibpath_var=LD_LIBRARY_PATH
15204: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15205: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15206: ;;
15207:
15208: rdos*)
15209: dynamic_linker=no
15210: ;;
15211:
15212: solaris*)
15213: version_type=linux # correct to gnu/linux during the next big refactor
15214: need_lib_prefix=no
15215: need_version=no
15216: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217: soname_spec='${libname}${release}${shared_ext}$major'
15218: shlibpath_var=LD_LIBRARY_PATH
15219: shlibpath_overrides_runpath=yes
15220: hardcode_into_libs=yes
15221: # ldd complains unless libraries are executable
15222: postinstall_cmds='chmod +x $lib'
15223: ;;
15224:
15225: sunos4*)
15226: version_type=sunos
15227: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15228: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15229: shlibpath_var=LD_LIBRARY_PATH
15230: shlibpath_overrides_runpath=yes
15231: if test "$with_gnu_ld" = yes; then
15232: need_lib_prefix=no
15233: fi
15234: need_version=yes
15235: ;;
15236:
15237: sysv4 | sysv4.3*)
15238: version_type=linux # correct to gnu/linux during the next big refactor
15239: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240: soname_spec='${libname}${release}${shared_ext}$major'
15241: shlibpath_var=LD_LIBRARY_PATH
15242: case $host_vendor in
15243: sni)
15244: shlibpath_overrides_runpath=no
15245: need_lib_prefix=no
15246: runpath_var=LD_RUN_PATH
15247: ;;
15248: siemens)
15249: need_lib_prefix=no
15250: ;;
15251: motorola)
15252: need_lib_prefix=no
15253: need_version=no
15254: shlibpath_overrides_runpath=no
15255: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15256: ;;
15257: esac
15258: ;;
15259:
15260: sysv4*MP*)
15261: if test -d /usr/nec ;then
15262: version_type=linux # correct to gnu/linux during the next big refactor
15263: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15264: soname_spec='$libname${shared_ext}.$major'
15265: shlibpath_var=LD_LIBRARY_PATH
15266: fi
15267: ;;
15268:
15269: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15270: version_type=freebsd-elf
15271: need_lib_prefix=no
15272: need_version=no
15273: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15274: soname_spec='${libname}${release}${shared_ext}$major'
15275: shlibpath_var=LD_LIBRARY_PATH
15276: shlibpath_overrides_runpath=yes
15277: hardcode_into_libs=yes
15278: if test "$with_gnu_ld" = yes; then
15279: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15280: else
15281: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15282: case $host_os in
15283: sco3.2v5*)
15284: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15285: ;;
15286: esac
15287: fi
15288: sys_lib_dlsearch_path_spec='/usr/lib'
15289: ;;
15290:
15291: tpf*)
15292: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15293: version_type=linux # correct to gnu/linux during the next big refactor
15294: need_lib_prefix=no
15295: need_version=no
15296: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297: shlibpath_var=LD_LIBRARY_PATH
15298: shlibpath_overrides_runpath=no
15299: hardcode_into_libs=yes
15300: ;;
15301:
15302: uts4*)
15303: version_type=linux # correct to gnu/linux during the next big refactor
15304: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305: soname_spec='${libname}${release}${shared_ext}$major'
15306: shlibpath_var=LD_LIBRARY_PATH
15307: ;;
15308:
15309: *)
15310: dynamic_linker=no
15311: ;;
15312: esac
1.32 moko 15313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15314: $as_echo "$dynamic_linker" >&6; }
1.25 moko 15315: test "$dynamic_linker" = no && can_build_shared=no
15316:
15317: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15318: if test "$GCC" = yes; then
15319: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15320: fi
15321:
15322: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15323: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15324: fi
15325: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15326: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15327: fi
15328:
15329:
15330:
15331:
15332:
15333:
15334:
15335:
15336:
15337:
15338:
15339:
15340:
15341:
15342:
15343:
15344:
15345:
15346:
15347:
15348:
15349:
15350:
15351:
15352:
15353:
15354:
15355:
15356:
15357:
15358:
15359:
15360:
15361:
15362:
15363:
15364:
15365:
1.32 moko 15366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15367: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.25 moko 15368: hardcode_action_CXX=
15369: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15370: test -n "$runpath_var_CXX" ||
15371: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15372:
15373: # We can hardcode non-existent directories.
15374: if test "$hardcode_direct_CXX" != no &&
15375: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15376: # have to relink, otherwise we might link with an installed library
15377: # when we should be linking with a yet-to-be-installed one
15378: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15379: test "$hardcode_minus_L_CXX" != no; then
15380: # Linking always hardcodes the temporary library directory.
15381: hardcode_action_CXX=relink
15382: else
15383: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15384: hardcode_action_CXX=immediate
15385: fi
15386: else
15387: # We cannot hardcode anything, or else we can only hardcode existing
15388: # directories.
15389: hardcode_action_CXX=unsupported
15390: fi
1.32 moko 15391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15392: $as_echo "$hardcode_action_CXX" >&6; }
1.25 moko 15393:
15394: if test "$hardcode_action_CXX" = relink ||
15395: test "$inherit_rpath_CXX" = yes; then
15396: # Fast installation is not supported
15397: enable_fast_install=no
15398: elif test "$shlibpath_overrides_runpath" = yes ||
15399: test "$enable_shared" = no; then
15400: # Fast installation is not necessary
15401: enable_fast_install=needless
15402: fi
15403:
15404:
15405:
15406:
15407:
15408:
15409:
15410: fi # test -n "$compiler"
15411:
15412: CC=$lt_save_CC
15413: CFLAGS=$lt_save_CFLAGS
15414: LDCXX=$LD
15415: LD=$lt_save_LD
15416: GCC=$lt_save_GCC
15417: with_gnu_ld=$lt_save_with_gnu_ld
15418: lt_cv_path_LDCXX=$lt_cv_path_LD
15419: lt_cv_path_LD=$lt_save_path_LD
15420: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15421: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15422: fi # test "$_lt_caught_CXX_error" != yes
15423:
15424: ac_ext=c
15425: ac_cpp='$CPP $CPPFLAGS'
15426: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15427: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15428: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15429:
15430:
15431:
15432:
15433:
15434:
15435:
15436:
15437:
15438:
15439:
15440:
15441:
15442:
15443:
1.32 moko 15444: ac_config_commands="$ac_config_commands libtool"
1.25 moko 15445:
15446:
15447:
15448:
15449: # Only expand once:
15450:
15451:
1.32 moko 15452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15453: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15454: if ${libltdl_cv_shlibext+:} false; then :
15455: $as_echo_n "(cached) " >&6
1.25 moko 15456: else
15457:
15458: module=yes
15459: eval libltdl_cv_shlibext=$shrext_cmds
15460: module=no
15461: eval libltdl_cv_shrext=$shrext_cmds
15462:
15463: fi
1.32 moko 15464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15465: $as_echo "$libltdl_cv_shlibext" >&6; }
1.25 moko 15466: if test -n "$libltdl_cv_shlibext"; then
15467:
15468: cat >>confdefs.h <<_ACEOF
15469: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15470: _ACEOF
15471:
15472: fi
15473: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15474:
15475: cat >>confdefs.h <<_ACEOF
15476: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15477: _ACEOF
15478:
15479: fi
15480:
1.32 moko 15481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15482: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15483: if ${lt_cv_module_path_var+:} false; then :
15484: $as_echo_n "(cached) " >&6
1.25 moko 15485: else
15486: lt_cv_module_path_var="$shlibpath_var"
15487: fi
1.32 moko 15488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15489: $as_echo "$lt_cv_module_path_var" >&6; }
1.25 moko 15490: if test -n "$lt_cv_module_path_var"; then
15491:
15492: cat >>confdefs.h <<_ACEOF
15493: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15494: _ACEOF
15495:
15496: fi
15497:
1.32 moko 15498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15499: $as_echo_n "checking for the default library search path... " >&6; }
15500: if ${lt_cv_sys_dlsearch_path+:} false; then :
15501: $as_echo_n "(cached) " >&6
1.25 moko 15502: else
15503: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15504: fi
1.32 moko 15505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15506: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.25 moko 15507: if test -n "$lt_cv_sys_dlsearch_path"; then
15508: sys_dlsearch_path=
15509: for dir in $lt_cv_sys_dlsearch_path; do
15510: if test -z "$sys_dlsearch_path"; then
15511: sys_dlsearch_path="$dir"
15512: else
15513: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15514: fi
15515: done
15516:
15517: cat >>confdefs.h <<_ACEOF
15518: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15519: _ACEOF
15520:
15521: fi
15522:
15523:
15524: LT_DLLOADERS=
15525:
15526:
15527: ac_ext=c
15528: ac_cpp='$CPP $CPPFLAGS'
15529: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15530: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15531: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15532:
15533:
15534: LIBADD_DLOPEN=
1.32 moko 15535: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15536: $as_echo_n "checking for library containing dlopen... " >&6; }
15537: if ${ac_cv_search_dlopen+:} false; then :
15538: $as_echo_n "(cached) " >&6
1.25 moko 15539: else
15540: ac_func_search_save_LIBS=$LIBS
1.32 moko 15541: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15542: /* end confdefs.h. */
15543:
1.32 moko 15544: /* Override any GCC internal prototype to avoid an error.
15545: Use char because int might match the return type of a GCC
15546: builtin and then its argument prototype would still apply. */
1.25 moko 15547: #ifdef __cplusplus
15548: extern "C"
15549: #endif
15550: char dlopen ();
15551: int
15552: main ()
15553: {
1.32 moko 15554: return dlopen ();
1.25 moko 15555: ;
15556: return 0;
15557: }
15558: _ACEOF
1.32 moko 15559: for ac_lib in '' dl; do
15560: if test -z "$ac_lib"; then
15561: ac_res="none required"
15562: else
15563: ac_res=-l$ac_lib
15564: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15565: fi
15566: if ac_fn_c_try_link "$LINENO"; then :
15567: ac_cv_search_dlopen=$ac_res
15568: fi
15569: rm -f core conftest.err conftest.$ac_objext \
15570: conftest$ac_exeext
15571: if ${ac_cv_search_dlopen+:} false; then :
15572: break
1.25 moko 15573: fi
1.32 moko 15574: done
15575: if ${ac_cv_search_dlopen+:} false; then :
1.25 moko 15576:
15577: else
1.32 moko 15578: ac_cv_search_dlopen=no
1.25 moko 15579: fi
1.32 moko 15580: rm conftest.$ac_ext
1.25 moko 15581: LIBS=$ac_func_search_save_LIBS
15582: fi
1.32 moko 15583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15584: $as_echo "$ac_cv_search_dlopen" >&6; }
15585: ac_res=$ac_cv_search_dlopen
15586: if test "$ac_res" != no; then :
15587: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.25 moko 15588:
1.32 moko 15589: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.25 moko 15590:
15591: if test "$ac_cv_search_dlopen" != "none required" ; then
15592: LIBADD_DLOPEN="-ldl"
15593: fi
15594: libltdl_cv_lib_dl_dlopen="yes"
15595: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15596: else
1.32 moko 15597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15598: /* end confdefs.h. */
15599: #if HAVE_DLFCN_H
15600: # include <dlfcn.h>
15601: #endif
15602:
15603: int
15604: main ()
15605: {
15606: dlopen(0, 0);
15607: ;
15608: return 0;
15609: }
15610: _ACEOF
1.32 moko 15611: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 15612:
1.32 moko 15613: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.25 moko 15614:
15615: libltdl_cv_func_dlopen="yes"
15616: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15617: else
1.32 moko 15618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15619: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15620: if ${ac_cv_lib_svld_dlopen+:} false; then :
15621: $as_echo_n "(cached) " >&6
1.25 moko 15622: else
15623: ac_check_lib_save_LIBS=$LIBS
15624: LIBS="-lsvld $LIBS"
1.32 moko 15625: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15626: /* end confdefs.h. */
15627:
1.32 moko 15628: /* Override any GCC internal prototype to avoid an error.
15629: Use char because int might match the return type of a GCC
1.25 moko 15630: builtin and then its argument prototype would still apply. */
15631: #ifdef __cplusplus
1.32 moko 15632: extern "C"
1.25 moko 15633: #endif
1.32 moko 15634: char dlopen ();
1.25 moko 15635: int
15636: main ()
15637: {
1.32 moko 15638: return dlopen ();
1.25 moko 15639: ;
15640: return 0;
15641: }
15642: _ACEOF
1.32 moko 15643: if ac_fn_c_try_link "$LINENO"; then :
15644: ac_cv_lib_svld_dlopen=yes
1.25 moko 15645: else
1.32 moko 15646: ac_cv_lib_svld_dlopen=no
15647: fi
15648: rm -f core conftest.err conftest.$ac_objext \
15649: conftest$ac_exeext conftest.$ac_ext
15650: LIBS=$ac_check_lib_save_LIBS
15651: fi
15652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15653: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15654: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15655:
15656: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15657:
15658: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15659: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15660: fi
1.25 moko 15661:
15662: fi
1.32 moko 15663: rm -f core conftest.err conftest.$ac_objext \
15664: conftest$ac_exeext conftest.$ac_ext
1.25 moko 15665: fi
1.32 moko 15666:
15667: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15668: then
15669: lt_save_LIBS="$LIBS"
15670: LIBS="$LIBS $LIBADD_DLOPEN"
15671: for ac_func in dlerror
15672: do :
15673: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
15674: if test "x$ac_cv_func_dlerror" = xyes; then :
1.25 moko 15675: cat >>confdefs.h <<_ACEOF
1.32 moko 15676: #define HAVE_DLERROR 1
1.25 moko 15677: _ACEOF
15678:
15679: fi
15680: done
15681:
15682: LIBS="$lt_save_LIBS"
15683: fi
15684:
15685:
15686: LIBADD_SHL_LOAD=
1.32 moko 15687: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15688: if test "x$ac_cv_func_shl_load" = xyes; then :
1.25 moko 15689:
1.32 moko 15690: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.25 moko 15691:
15692: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15693: else
1.32 moko 15694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15695: $as_echo_n "checking for shl_load in -ldld... " >&6; }
15696: if ${ac_cv_lib_dld_shl_load+:} false; then :
15697: $as_echo_n "(cached) " >&6
1.25 moko 15698: else
15699: ac_check_lib_save_LIBS=$LIBS
15700: LIBS="-ldld $LIBS"
1.32 moko 15701: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15702: /* end confdefs.h. */
15703:
1.32 moko 15704: /* Override any GCC internal prototype to avoid an error.
15705: Use char because int might match the return type of a GCC
15706: builtin and then its argument prototype would still apply. */
1.25 moko 15707: #ifdef __cplusplus
15708: extern "C"
15709: #endif
15710: char shl_load ();
15711: int
15712: main ()
15713: {
1.32 moko 15714: return shl_load ();
1.25 moko 15715: ;
15716: return 0;
15717: }
15718: _ACEOF
1.32 moko 15719: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 15720: ac_cv_lib_dld_shl_load=yes
15721: else
1.32 moko 15722: ac_cv_lib_dld_shl_load=no
1.25 moko 15723: fi
1.32 moko 15724: rm -f core conftest.err conftest.$ac_objext \
15725: conftest$ac_exeext conftest.$ac_ext
1.25 moko 15726: LIBS=$ac_check_lib_save_LIBS
15727: fi
1.32 moko 15728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15729: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15730: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.25 moko 15731:
1.32 moko 15732: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.25 moko 15733:
15734: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15735: LIBADD_SHL_LOAD="-ldld"
15736: fi
15737:
15738: fi
15739:
15740:
15741:
15742: case $host_os in
15743: darwin[1567].*)
15744: # We only want this for pre-Mac OS X 10.4.
1.32 moko 15745: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
15746: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
1.25 moko 15747:
1.32 moko 15748: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.25 moko 15749:
15750: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15751: fi
15752:
15753: ;;
15754: beos*)
15755: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15756: ;;
15757: cygwin* | mingw* | os2* | pw32*)
1.32 moko 15758: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
15759: "
15760: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
15761: ac_have_decl=1
1.25 moko 15762: else
1.32 moko 15763: ac_have_decl=0
1.25 moko 15764: fi
15765:
15766: cat >>confdefs.h <<_ACEOF
1.32 moko 15767: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.25 moko 15768: _ACEOF
15769:
15770: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15771: ;;
15772: esac
15773:
1.32 moko 15774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15775: $as_echo_n "checking for dld_link in -ldld... " >&6; }
15776: if ${ac_cv_lib_dld_dld_link+:} false; then :
15777: $as_echo_n "(cached) " >&6
1.25 moko 15778: else
15779: ac_check_lib_save_LIBS=$LIBS
15780: LIBS="-ldld $LIBS"
1.32 moko 15781: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 15782: /* end confdefs.h. */
15783:
1.32 moko 15784: /* Override any GCC internal prototype to avoid an error.
15785: Use char because int might match the return type of a GCC
15786: builtin and then its argument prototype would still apply. */
1.25 moko 15787: #ifdef __cplusplus
15788: extern "C"
15789: #endif
15790: char dld_link ();
15791: int
15792: main ()
15793: {
1.32 moko 15794: return dld_link ();
1.25 moko 15795: ;
15796: return 0;
15797: }
15798: _ACEOF
1.32 moko 15799: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 15800: ac_cv_lib_dld_dld_link=yes
15801: else
1.32 moko 15802: ac_cv_lib_dld_dld_link=no
1.25 moko 15803: fi
1.32 moko 15804: rm -f core conftest.err conftest.$ac_objext \
15805: conftest$ac_exeext conftest.$ac_ext
1.25 moko 15806: LIBS=$ac_check_lib_save_LIBS
15807: fi
1.32 moko 15808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15809: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15810: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.25 moko 15811:
1.32 moko 15812: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.25 moko 15813:
15814: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15815: fi
15816:
15817:
15818:
15819:
15820: LT_DLPREOPEN=
15821: if test -n "$LT_DLLOADERS"
15822: then
15823: for lt_loader in $LT_DLLOADERS; do
15824: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15825: done
15826:
1.32 moko 15827: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.25 moko 15828:
15829: fi
15830:
15831:
15832: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15833:
15834:
15835: ac_ext=c
15836: ac_cpp='$CPP $CPPFLAGS'
15837: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15838: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15839: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15840:
15841:
1.32 moko 15842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15843: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15844: if ${lt_cv_sys_symbol_underscore+:} false; then :
15845: $as_echo_n "(cached) " >&6
1.25 moko 15846: else
15847: lt_cv_sys_symbol_underscore=no
15848: cat > conftest.$ac_ext <<_LT_EOF
15849: void nm_test_func(){}
15850: int main(){nm_test_func;return 0;}
15851: _LT_EOF
1.32 moko 15852: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.25 moko 15853: (eval $ac_compile) 2>&5
15854: ac_status=$?
1.32 moko 15855: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15856: test $ac_status = 0; }; then
1.25 moko 15857: # Now try to grab the symbols.
15858: ac_nlist=conftest.nm
1.32 moko 15859: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.25 moko 15860: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15861: ac_status=$?
1.32 moko 15862: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15863: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.25 moko 15864: # See whether the symbols have a leading underscore.
15865: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15866: lt_cv_sys_symbol_underscore=yes
15867: else
15868: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15869: :
15870: else
15871: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15872: fi
15873: fi
15874: else
15875: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15876: fi
15877: else
15878: echo "configure: failed program was:" >&5
15879: cat conftest.c >&5
15880: fi
15881: rm -rf conftest*
15882:
15883: fi
1.32 moko 15884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
15885: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.25 moko 15886: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15887:
15888:
15889: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15890: if test x"$libltdl_cv_func_dlopen" = xyes ||
15891: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.32 moko 15892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
15893: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
15894: if ${libltdl_cv_need_uscore+:} false; then :
15895: $as_echo_n "(cached) " >&6
1.25 moko 15896: else
15897: libltdl_cv_need_uscore=unknown
15898: save_LIBS="$LIBS"
15899: LIBS="$LIBS $LIBADD_DLOPEN"
15900: if test "$cross_compiling" = yes; then :
15901: libltdl_cv_need_uscore=cross
15902: else
15903: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15904: lt_status=$lt_dlunknown
15905: cat > conftest.$ac_ext <<_LT_EOF
15906: #line $LINENO "configure"
15907: #include "confdefs.h"
15908:
15909: #if HAVE_DLFCN_H
15910: #include <dlfcn.h>
15911: #endif
15912:
15913: #include <stdio.h>
15914:
15915: #ifdef RTLD_GLOBAL
15916: # define LT_DLGLOBAL RTLD_GLOBAL
15917: #else
15918: # ifdef DL_GLOBAL
15919: # define LT_DLGLOBAL DL_GLOBAL
15920: # else
15921: # define LT_DLGLOBAL 0
15922: # endif
15923: #endif
15924:
15925: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15926: find out it does not work in some platform. */
15927: #ifndef LT_DLLAZY_OR_NOW
15928: # ifdef RTLD_LAZY
15929: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15930: # else
15931: # ifdef DL_LAZY
15932: # define LT_DLLAZY_OR_NOW DL_LAZY
15933: # else
15934: # ifdef RTLD_NOW
15935: # define LT_DLLAZY_OR_NOW RTLD_NOW
15936: # else
15937: # ifdef DL_NOW
15938: # define LT_DLLAZY_OR_NOW DL_NOW
15939: # else
15940: # define LT_DLLAZY_OR_NOW 0
15941: # endif
15942: # endif
15943: # endif
15944: # endif
15945: #endif
15946:
15947: /* When -fvisbility=hidden is used, assume the code has been annotated
15948: correspondingly for the symbols needed. */
15949: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15950: int fnord () __attribute__((visibility("default")));
15951: #endif
15952:
15953: int fnord () { return 42; }
15954: int main ()
15955: {
15956: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15957: int status = $lt_dlunknown;
15958:
15959: if (self)
15960: {
15961: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15962: else
15963: {
15964: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15965: else puts (dlerror ());
15966: }
15967: /* dlclose (self); */
15968: }
15969: else
15970: puts (dlerror ());
15971:
15972: return status;
15973: }
15974: _LT_EOF
1.32 moko 15975: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.25 moko 15976: (eval $ac_link) 2>&5
15977: ac_status=$?
1.32 moko 15978: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15979: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.25 moko 15980: (./conftest; exit; ) >&5 2>/dev/null
15981: lt_status=$?
15982: case x$lt_status in
15983: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15984: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15985: x$lt_dlunknown|x*) ;;
15986: esac
15987: else :
15988: # compilation failed
15989:
15990: fi
15991: fi
15992: rm -fr conftest*
15993:
15994: LIBS="$save_LIBS"
15995:
15996: fi
1.32 moko 15997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
15998: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.25 moko 15999: fi
16000: fi
16001:
16002: if test x"$libltdl_cv_need_uscore" = xyes; then
16003:
1.32 moko 16004: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.25 moko 16005:
16006: fi
16007:
1.32 moko 16008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16009: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16010: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16011: $as_echo_n "(cached) " >&6
1.25 moko 16012: else
16013: # PORTME does your system automatically load deplibs for dlopen?
16014: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16015: # For now, we just catch OSes we know something about -- in the
16016: # future, we'll try test this programmatically.
16017: lt_cv_sys_dlopen_deplibs=unknown
16018: case $host_os in
16019: aix3*|aix4.1.*|aix4.2.*)
16020: # Unknown whether this is true for these versions of AIX, but
16021: # we want this `case' here to explicitly catch those versions.
16022: lt_cv_sys_dlopen_deplibs=unknown
16023: ;;
16024: aix[4-9]*)
16025: lt_cv_sys_dlopen_deplibs=yes
16026: ;;
16027: amigaos*)
16028: case $host_cpu in
16029: powerpc)
16030: lt_cv_sys_dlopen_deplibs=no
16031: ;;
16032: esac
16033: ;;
16034: darwin*)
16035: # Assuming the user has installed a libdl from somewhere, this is true
16036: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16037: lt_cv_sys_dlopen_deplibs=yes
16038: ;;
16039: freebsd* | dragonfly*)
16040: lt_cv_sys_dlopen_deplibs=yes
16041: ;;
16042: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16043: # GNU and its variants, using gnu ld.so (Glibc)
16044: lt_cv_sys_dlopen_deplibs=yes
16045: ;;
16046: hpux10*|hpux11*)
16047: lt_cv_sys_dlopen_deplibs=yes
16048: ;;
16049: interix*)
16050: lt_cv_sys_dlopen_deplibs=yes
16051: ;;
16052: irix[12345]*|irix6.[01]*)
16053: # Catch all versions of IRIX before 6.2, and indicate that we don't
16054: # know how it worked for any of those versions.
16055: lt_cv_sys_dlopen_deplibs=unknown
16056: ;;
16057: irix*)
16058: # The case above catches anything before 6.2, and it's known that
16059: # at 6.2 and later dlopen does load deplibs.
16060: lt_cv_sys_dlopen_deplibs=yes
16061: ;;
16062: netbsd*)
16063: lt_cv_sys_dlopen_deplibs=yes
16064: ;;
16065: openbsd*)
16066: lt_cv_sys_dlopen_deplibs=yes
16067: ;;
16068: osf[1234]*)
16069: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16070: # it did *not* use an RPATH in a shared library to find objects the
16071: # library depends on, so we explicitly say `no'.
16072: lt_cv_sys_dlopen_deplibs=no
16073: ;;
16074: osf5.0|osf5.0a|osf5.1)
16075: # dlopen *does* load deplibs and with the right loader patch applied
16076: # it even uses RPATH in a shared library to search for shared objects
16077: # that the library depends on, but there's no easy way to know if that
16078: # patch is installed. Since this is the case, all we can really
16079: # say is unknown -- it depends on the patch being installed. If
16080: # it is, this changes to `yes'. Without it, it would be `no'.
16081: lt_cv_sys_dlopen_deplibs=unknown
16082: ;;
16083: osf*)
16084: # the two cases above should catch all versions of osf <= 5.1. Read
16085: # the comments above for what we know about them.
16086: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16087: # is used to find them so we can finally say `yes'.
16088: lt_cv_sys_dlopen_deplibs=yes
16089: ;;
16090: qnx*)
16091: lt_cv_sys_dlopen_deplibs=yes
16092: ;;
16093: solaris*)
16094: lt_cv_sys_dlopen_deplibs=yes
16095: ;;
16096: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16097: libltdl_cv_sys_dlopen_deplibs=yes
16098: ;;
16099: esac
16100:
16101: fi
1.32 moko 16102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16103: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.25 moko 16104: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16105:
1.32 moko 16106: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.25 moko 16107:
16108: fi
16109:
16110: :
16111:
16112: for ac_header in argz.h
1.32 moko 16113: do :
16114: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16115: "
16116: if test "x$ac_cv_header_argz_h" = xyes; then :
1.25 moko 16117: cat >>confdefs.h <<_ACEOF
1.32 moko 16118: #define HAVE_ARGZ_H 1
1.25 moko 16119: _ACEOF
16120:
16121: fi
16122:
16123: done
16124:
16125:
1.32 moko 16126: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.25 moko 16127: # include <argz.h>
16128: #endif
1.32 moko 16129: "
16130: if test "x$ac_cv_type_error_t" = xyes; then :
1.25 moko 16131:
1.32 moko 16132: cat >>confdefs.h <<_ACEOF
16133: #define HAVE_ERROR_T 1
1.25 moko 16134: _ACEOF
1.32 moko 16135:
16136:
1.25 moko 16137: else
16138:
1.32 moko 16139: $as_echo "#define error_t int" >>confdefs.h
16140:
16141:
16142: $as_echo "#define __error_t_defined 1" >>confdefs.h
16143:
1.25 moko 16144: fi
1.32 moko 16145:
16146:
16147: ARGZ_H=
16148: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16149: argz_next argz_stringify
16150: do :
16151: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16152: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16153: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.25 moko 16154: cat >>confdefs.h <<_ACEOF
1.32 moko 16155: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.25 moko 16156: _ACEOF
16157:
16158: else
16159: ARGZ_H=argz.h;
16160:
16161: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16162:
16163: fi
16164: done
16165:
16166:
1.32 moko 16167: if test -z "$ARGZ_H"; then :
16168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16169: $as_echo_n "checking if argz actually works... " >&6; }
16170: if ${lt_cv_sys_argz_works+:} false; then :
16171: $as_echo_n "(cached) " >&6
1.25 moko 16172: else
16173: case $host_os in #(
16174: *cygwin*)
16175: lt_cv_sys_argz_works=no
16176: if test "$cross_compiling" != no; then
16177: lt_cv_sys_argz_works="guessing no"
16178: else
16179: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16180: save_IFS=$IFS
16181: IFS=-.
16182: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16183: IFS=$save_IFS
16184: lt_os_major=${2-0}
16185: lt_os_minor=${3-0}
16186: lt_os_micro=${4-0}
16187: if test "$lt_os_major" -gt 1 \
16188: || { test "$lt_os_major" -eq 1 \
16189: && { test "$lt_os_minor" -gt 5 \
16190: || { test "$lt_os_minor" -eq 5 \
16191: && test "$lt_os_micro" -gt 24; }; }; }; then
16192: lt_cv_sys_argz_works=yes
16193: fi
16194: fi
16195: ;; #(
16196: *) lt_cv_sys_argz_works=yes ;;
16197: esac
16198: fi
1.32 moko 16199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16200: $as_echo "$lt_cv_sys_argz_works" >&6; }
16201: if test "$lt_cv_sys_argz_works" = yes; then :
1.25 moko 16202:
1.32 moko 16203: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.25 moko 16204:
16205: else
16206: ARGZ_H=argz.h
16207:
16208:
16209: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16210:
16211: fi
16212: fi
16213:
16214:
16215:
1.32 moko 16216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16217: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16218: if ${libltdl_cv_preloaded_symbols+:} false; then :
16219: $as_echo_n "(cached) " >&6
1.25 moko 16220: else
16221: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16222: libltdl_cv_preloaded_symbols=yes
16223: else
16224: libltdl_cv_preloaded_symbols=no
16225: fi
16226:
16227: fi
1.32 moko 16228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16229: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.25 moko 16230: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16231:
1.32 moko 16232: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.25 moko 16233:
16234: fi
16235:
1.32 moko 16236:
16237:
1.25 moko 16238: # Set options
16239:
16240:
16241:
16242:
16243:
16244:
16245:
16246:
16247:
16248:
16249:
16250:
1.32 moko 16251: # Check whether --with-included_ltdl was given.
16252: if test "${with_included_ltdl+set}" = set; then :
16253: withval=$with_included_ltdl;
16254: fi
1.25 moko 16255:
16256:
16257: if test "x$with_included_ltdl" != xyes; then
16258: # We are not being forced to use the included libltdl sources, so
16259: # decide whether there is a useful installed version we can use.
1.32 moko 16260: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.25 moko 16261:
1.32 moko 16262: "
16263: if test "x$ac_cv_header_ltdl_h" = xyes; then :
16264: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.25 moko 16265: #include <ltdl.h>
1.32 moko 16266: "
16267: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16269: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16270: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16271: $as_echo_n "(cached) " >&6
1.25 moko 16272: else
16273: ac_check_lib_save_LIBS=$LIBS
16274: LIBS="-lltdl $LIBS"
1.32 moko 16275: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 16276: /* end confdefs.h. */
16277:
1.32 moko 16278: /* Override any GCC internal prototype to avoid an error.
16279: Use char because int might match the return type of a GCC
16280: builtin and then its argument prototype would still apply. */
1.25 moko 16281: #ifdef __cplusplus
16282: extern "C"
16283: #endif
16284: char lt_dladvise_preload ();
16285: int
16286: main ()
16287: {
1.32 moko 16288: return lt_dladvise_preload ();
1.25 moko 16289: ;
16290: return 0;
16291: }
16292: _ACEOF
1.32 moko 16293: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 16294: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16295: else
1.32 moko 16296: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.25 moko 16297: fi
1.32 moko 16298: rm -f core conftest.err conftest.$ac_objext \
16299: conftest$ac_exeext conftest.$ac_ext
1.25 moko 16300: LIBS=$ac_check_lib_save_LIBS
16301: fi
1.32 moko 16302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16303: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16304: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.25 moko 16305: with_included_ltdl=no
16306: else
16307: with_included_ltdl=yes
16308: fi
16309:
16310: else
16311: with_included_ltdl=yes
16312: fi
16313:
16314: else
16315: with_included_ltdl=yes
16316: fi
16317:
16318:
16319: fi
16320:
16321:
16322:
16323:
1.32 moko 16324: # Check whether --with-ltdl_include was given.
16325: if test "${with_ltdl_include+set}" = set; then :
16326: withval=$with_ltdl_include;
16327: fi
1.25 moko 16328:
16329:
16330: if test -n "$with_ltdl_include"; then
16331: if test -f "$with_ltdl_include/ltdl.h"; then :
16332: else
1.32 moko 16333: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.25 moko 16334: fi
16335: else
16336: with_ltdl_include=no
16337: fi
16338:
16339:
1.32 moko 16340: # Check whether --with-ltdl_lib was given.
16341: if test "${with_ltdl_lib+set}" = set; then :
16342: withval=$with_ltdl_lib;
16343: fi
1.25 moko 16344:
16345:
16346: if test -n "$with_ltdl_lib"; then
16347: if test -f "$with_ltdl_lib/libltdl.la"; then :
16348: else
1.32 moko 16349: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.25 moko 16350: fi
16351: else
16352: with_ltdl_lib=no
16353: fi
16354:
16355: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16356: ,yes,no,no,)
16357: case $enable_ltdl_convenience in
1.32 moko 16358: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.25 moko 16359: "") enable_ltdl_convenience=yes
16360: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16361: esac
1.32 moko 16362: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.25 moko 16363: LTDLDEPS=$LIBLTDL
16364: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16365:
16366:
16367:
16368:
16369:
16370: # For backwards non-gettext consistent compatibility...
16371: INCLTDL="$LTDLINCL"
16372:
16373:
16374: ;;
16375: ,no,no,no,)
16376: # If the included ltdl is not to be used, then use the
16377: # preinstalled libltdl we found.
16378:
1.32 moko 16379: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.25 moko 16380:
16381: LIBLTDL=-lltdl
16382: LTDLDEPS=
16383: LTDLINCL=
16384: ;;
16385: ,no*,no,*)
1.32 moko 16386: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.25 moko 16387: ;;
16388: *) with_included_ltdl=no
16389: LIBLTDL="-L$with_ltdl_lib -lltdl"
16390: LTDLDEPS=
16391: LTDLINCL="-I$with_ltdl_include"
16392: ;;
16393: esac
16394: INCLTDL="$LTDLINCL"
16395:
16396: # Report our decision...
1.32 moko 16397: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
16398: $as_echo_n "checking where to find libltdl headers... " >&6; }
16399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
16400: $as_echo "$LTDLINCL" >&6; }
16401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
16402: $as_echo_n "checking where to find libltdl library... " >&6; }
16403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
16404: $as_echo "$LIBLTDL" >&6; }
1.25 moko 16405:
16406:
16407:
1.32 moko 16408: # Check whether --enable-ltdl-install was given.
16409: if test "${enable_ltdl_install+set}" = set; then :
16410: enableval=$enable_ltdl_install;
16411: fi
1.25 moko 16412:
16413:
16414: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16415: *yes*) ;;
16416: *) enable_ltdl_convenience=yes ;;
16417: esac
16418:
1.32 moko 16419: if test x"${enable_ltdl_install-no}" != xno; then
1.25 moko 16420: INSTALL_LTDL_TRUE=
16421: INSTALL_LTDL_FALSE='#'
16422: else
16423: INSTALL_LTDL_TRUE='#'
16424: INSTALL_LTDL_FALSE=
16425: fi
16426:
1.32 moko 16427: if test x"${enable_ltdl_convenience-no}" != xno; then
1.25 moko 16428: CONVENIENCE_LTDL_TRUE=
16429: CONVENIENCE_LTDL_FALSE='#'
16430: else
16431: CONVENIENCE_LTDL_TRUE='#'
16432: CONVENIENCE_LTDL_FALSE=
16433: fi
16434:
16435:
16436:
1.32 moko 16437: subdirs="$subdirs libltdl"
1.25 moko 16438:
16439:
16440:
16441:
16442: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16443: # the user used. This is so that ltdl.h can pick up the parent projects
16444: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16445: # definitions required by ltdl.c.
16446: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16447:
16448:
16449:
16450: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
1.32 moko 16451: do :
16452: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16453: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16454: "
16455: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.25 moko 16456: cat >>confdefs.h <<_ACEOF
1.32 moko 16457: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.25 moko 16458: _ACEOF
16459:
16460: fi
16461:
16462: done
16463:
16464:
16465: for ac_func in closedir opendir readdir
1.32 moko 16466: do :
16467: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16468: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16469: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.25 moko 16470: cat >>confdefs.h <<_ACEOF
1.32 moko 16471: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.25 moko 16472: _ACEOF
16473:
16474: else
16475:
16476:
16477: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16478:
16479: fi
16480: done
16481:
16482: for ac_func in strlcat strlcpy
1.32 moko 16483: do :
16484: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16485: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16486: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.25 moko 16487: cat >>confdefs.h <<_ACEOF
1.32 moko 16488: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.25 moko 16489: _ACEOF
16490:
16491: else
16492:
16493:
16494: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16495:
16496: fi
16497: done
16498:
16499:
16500:
16501: cat >>confdefs.h <<_ACEOF
16502: #define LT_LIBEXT "$libext"
16503: _ACEOF
16504:
16505:
16506: name=
16507: eval "lt_libprefix=\"$libname_spec\""
16508:
16509: cat >>confdefs.h <<_ACEOF
16510: #define LT_LIBPREFIX "$lt_libprefix"
16511: _ACEOF
16512:
16513:
16514: name=ltdl
16515: eval "LTDLOPEN=\"$libname_spec\""
16516:
16517:
16518:
16519:
16520:
16521:
16522:
16523:
16524: # Only expand once:
16525:
16526:
16527:
16528:
16529: for ac_header in stdio.h \
16530: stdlib.h \
16531: string.h \
16532: setjmp.h \
16533: ctype.h \
16534: setjmp.h
16535:
1.32 moko 16536: do :
16537: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16538: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16539: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.25 moko 16540: cat >>confdefs.h <<_ACEOF
1.32 moko 16541: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.25 moko 16542: _ACEOF
16543:
16544: fi
16545:
16546: done
16547:
16548:
1.32 moko 16549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD setenv/getenv/unsetenv" >&5
16550: $as_echo_n "checking for BSD setenv/getenv/unsetenv... " >&6; }
16551: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 16552: /* end confdefs.h. */
16553: #ifdef HAVE_STDLIB_H
16554: # include <stdlib.h>
16555: #endif
16556: #ifdef HAVE_STRING_H
16557: # include <string.h>
16558: #endif
16559:
16560: int
16561: main ()
16562: {
16563: #define TEST_NAME "oracle-configure-test-var"
16564: #define TEST_VALUE "oracle-configure-test-value"
16565: int result=setenv(TEST_NAME, TEST_VALUE, 1/*overwrite*/);
16566: char *getenv_value=getenv(TEST_NAME);
16567: if(!getenv_value)
16568: return 1;
16569: if(strcmp(getenv_value, TEST_VALUE)!=0)
16570: return 2;
16571: unsetenv(TEST_NAME);
16572:
16573: ;
16574: return 0;
16575: }
16576: _ACEOF
1.32 moko 16577: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 16578:
1.32 moko 16579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16580: $as_echo "yes" >&6; }
1.25 moko 16581:
1.32 moko 16582: $as_echo "#define HAVE_SETENV /**/" >>confdefs.h
1.25 moko 16583:
16584:
16585: else
1.32 moko 16586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16587: $as_echo "no" >&6; }
1.25 moko 16588:
1.32 moko 16589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX putenv/getenv" >&5
16590: $as_echo_n "checking for POSIX putenv/getenv... " >&6; }
16591: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.25 moko 16592: /* end confdefs.h. */
16593: #ifdef HAVE_STDLIB_H
16594: # include <stdlib.h>
16595: #endif
16596: #ifdef HAVE_STRING_H
16597: # include <string.h>
16598: #endif
16599:
16600: int
16601: main ()
16602: {
16603: #define TEST_NAME "oracle-configure-test-var"
16604: #define TEST_VALUE "oracle-configure-test-value"
16605: int result=putenv(TEST_NAME"="TEST_VALUE);
16606: char *getenv_value=getenv(TEST_NAME);
16607: if(!getenv_value)
16608: return 1;
16609: if(strcmp(getenv_value, TEST_NAME)!=0)
16610: return 2;
16611:
16612: ;
16613: return 0;
16614: }
16615: _ACEOF
1.32 moko 16616: if ac_fn_c_try_link "$LINENO"; then :
1.25 moko 16617:
1.32 moko 16618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16619: $as_echo "yes" >&6; }
1.25 moko 16620:
1.32 moko 16621: $as_echo "#define HAVE_PUTENV /**/" >>confdefs.h
1.25 moko 16622:
16623:
16624: else
1.32 moko 16625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16626: $as_echo "no" >&6; }
16627: as_fn_error $? "\"there must be some function to modify environment\"" "$LINENO" 5
1.25 moko 16628:
16629: fi
1.32 moko 16630: rm -f core conftest.err conftest.$ac_objext \
16631: conftest$ac_exeext conftest.$ac_ext
1.25 moko 16632:
16633: fi
1.32 moko 16634: rm -f core conftest.err conftest.$ac_objext \
16635: conftest$ac_exeext conftest.$ac_ext
1.25 moko 16636:
1.32 moko 16637: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16638: if test "x$ac_cv_type_size_t" = xyes; then :
1.25 moko 16639:
16640: else
16641:
16642: cat >>confdefs.h <<_ACEOF
1.32 moko 16643: #define size_t unsigned int
1.25 moko 16644: _ACEOF
16645:
16646: fi
16647:
16648:
16649:
1.32 moko 16650: ac_config_files="$ac_config_files Makefile"
16651:
1.25 moko 16652: cat >confcache <<\_ACEOF
16653: # This file is a shell script that caches the results of configure
16654: # tests run on this system so they can be shared between configure
16655: # scripts and configure runs, see configure's option --config-cache.
16656: # It is not useful on other systems. If it contains results you don't
16657: # want to keep, you may remove or edit it.
16658: #
16659: # config.status only pays attention to the cache file if you give it
16660: # the --recheck option to rerun configure.
16661: #
16662: # `ac_cv_env_foo' variables (set or unset) will be overridden when
16663: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16664: # following values.
16665:
16666: _ACEOF
16667:
16668: # The following way of writing the cache mishandles newlines in values,
16669: # but we know of no workaround that is simple, portable, and efficient.
1.32 moko 16670: # So, we kill variables containing newlines.
1.25 moko 16671: # Ultrix sh set writes to stderr and can't be redirected directly,
16672: # and sets the high bit in the cache file unless we assign to the vars.
1.32 moko 16673: (
16674: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16675: eval ac_val=\$$ac_var
16676: case $ac_val in #(
16677: *${as_nl}*)
16678: case $ac_var in #(
16679: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16680: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16681: esac
16682: case $ac_var in #(
16683: _ | IFS | as_nl) ;; #(
16684: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16685: *) { eval $ac_var=; unset $ac_var;} ;;
16686: esac ;;
16687: esac
16688: done
16689:
1.25 moko 16690: (set) 2>&1 |
1.32 moko 16691: case $as_nl`(ac_space=' '; set) 2>&1` in #(
16692: *${as_nl}ac_space=\ *)
16693: # `set' does not quote correctly, so add quotes: double-quote
16694: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.25 moko 16695: sed -n \
16696: "s/'/'\\\\''/g;
16697: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.32 moko 16698: ;; #(
1.25 moko 16699: *)
16700: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.32 moko 16701: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.25 moko 16702: ;;
1.32 moko 16703: esac |
16704: sort
16705: ) |
1.25 moko 16706: sed '
1.32 moko 16707: /^ac_cv_env_/b end
1.25 moko 16708: t clear
1.32 moko 16709: :clear
1.25 moko 16710: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16711: t end
1.32 moko 16712: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16713: :end' >>confcache
16714: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16715: if test -w "$cache_file"; then
16716: if test "x$cache_file" != "x/dev/null"; then
16717: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16718: $as_echo "$as_me: updating cache $cache_file" >&6;}
16719: if test ! -f "$cache_file" || test -h "$cache_file"; then
16720: cat confcache >"$cache_file"
16721: else
16722: case $cache_file in #(
16723: */* | ?:*)
16724: mv -f confcache "$cache_file"$$ &&
16725: mv -f "$cache_file"$$ "$cache_file" ;; #(
16726: *)
16727: mv -f confcache "$cache_file" ;;
16728: esac
16729: fi
16730: fi
1.25 moko 16731: else
1.32 moko 16732: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16733: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.25 moko 16734: fi
16735: fi
16736: rm -f confcache
16737:
16738: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16739: # Let make expand exec_prefix.
16740: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16741:
16742: DEFS=-DHAVE_CONFIG_H
16743:
16744: ac_libobjs=
16745: ac_ltlibobjs=
1.32 moko 16746: U=
1.25 moko 16747: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16748: # 1. Remove the extension, and $U if already installed.
1.32 moko 16749: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16750: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16751: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16752: # will be set to the directory where LIBOBJS objects are built.
16753: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16754: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.25 moko 16755: done
16756: LIBOBJS=$ac_libobjs
16757:
16758: LTLIBOBJS=$ac_ltlibobjs
16759:
16760:
1.32 moko 16761: if test -n "$EXEEXT"; then
16762: am__EXEEXT_TRUE=
16763: am__EXEEXT_FALSE='#'
16764: else
16765: am__EXEEXT_TRUE='#'
16766: am__EXEEXT_FALSE=
16767: fi
16768:
1.25 moko 16769: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.32 moko 16770: as_fn_error $? "conditional \"AMDEP\" was never defined.
16771: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.25 moko 16772: fi
16773: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.32 moko 16774: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16775: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.25 moko 16776: fi
16777: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.32 moko 16778: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16779: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.25 moko 16780: fi
16781: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.32 moko 16782: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
16783: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.25 moko 16784: fi
16785: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.32 moko 16786: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
16787: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.25 moko 16788: fi
1.32 moko 16789: LT_CONFIG_H=config_auto.h
1.25 moko 16790:
16791: _ltdl_libobjs=
16792: _ltdl_ltlibobjs=
16793: if test -n "$_LT_LIBOBJS"; then
16794: # Remove the extension.
16795: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16796: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16797: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16798: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16799: done
16800: fi
16801: ltdl_LIBOBJS=$_ltdl_libobjs
16802:
16803: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16804:
16805:
16806:
1.32 moko 16807: : "${CONFIG_STATUS=./config.status}"
16808: ac_write_fail=0
1.25 moko 16809: ac_clean_files_save=$ac_clean_files
16810: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.32 moko 16811: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16812: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16813: as_write_fail=0
16814: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.25 moko 16815: #! $SHELL
16816: # Generated by $as_me.
16817: # Run this file to recreate the current configuration.
16818: # Compiler output produced by configure, useful for debugging
16819: # configure, is in config.log if it exists.
16820:
16821: debug=false
16822: ac_cs_recheck=false
16823: ac_cs_silent=false
1.32 moko 16824:
1.25 moko 16825: SHELL=\${CONFIG_SHELL-$SHELL}
1.32 moko 16826: export SHELL
16827: _ASEOF
16828: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16829: ## -------------------- ##
16830: ## M4sh Initialization. ##
16831: ## -------------------- ##
1.25 moko 16832:
1.32 moko 16833: # Be more Bourne compatible
16834: DUALCASE=1; export DUALCASE # for MKS sh
16835: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.25 moko 16836: emulate sh
16837: NULLCMD=:
1.32 moko 16838: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.25 moko 16839: # is contrary to our usage. Disable this feature.
16840: alias -g '${1+"$@"}'='"$@"'
1.32 moko 16841: setopt NO_GLOB_SUBST
16842: else
16843: case `(set -o) 2>/dev/null` in #(
16844: *posix*) :
16845: set -o posix ;; #(
16846: *) :
16847: ;;
16848: esac
16849: fi
16850:
16851:
16852: as_nl='
16853: '
16854: export as_nl
16855: # Printing a long string crashes Solaris 7 /usr/bin/printf.
16856: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16857: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16858: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16859: # Prefer a ksh shell builtin over an external printf program on Solaris,
16860: # but without wasting forks for bash or zsh.
16861: if test -z "$BASH_VERSION$ZSH_VERSION" \
16862: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16863: as_echo='print -r --'
16864: as_echo_n='print -rn --'
16865: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16866: as_echo='printf %s\n'
16867: as_echo_n='printf %s'
16868: else
16869: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16870: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16871: as_echo_n='/usr/ucb/echo -n'
16872: else
16873: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16874: as_echo_n_body='eval
16875: arg=$1;
16876: case $arg in #(
16877: *"$as_nl"*)
16878: expr "X$arg" : "X\\(.*\\)$as_nl";
16879: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16880: esac;
16881: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16882: '
16883: export as_echo_n_body
16884: as_echo_n='sh -c $as_echo_n_body as_echo'
16885: fi
16886: export as_echo_body
16887: as_echo='sh -c $as_echo_body as_echo'
1.25 moko 16888: fi
16889:
1.32 moko 16890: # The user is always right.
16891: if test "${PATH_SEPARATOR+set}" != set; then
16892: PATH_SEPARATOR=:
16893: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16894: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16895: PATH_SEPARATOR=';'
16896: }
1.25 moko 16897: fi
16898:
16899:
1.32 moko 16900: # IFS
16901: # We need space, tab and new line, in precisely that order. Quoting is
16902: # there to prevent editors from complaining about space-tab.
16903: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16904: # splitting by setting IFS to empty value.)
16905: IFS=" "" $as_nl"
16906:
16907: # Find who we are. Look in the path if we contain no directory separator.
16908: as_myself=
16909: case $0 in #((
16910: *[\\/]* ) as_myself=$0 ;;
16911: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912: for as_dir in $PATH
16913: do
16914: IFS=$as_save_IFS
16915: test -z "$as_dir" && as_dir=.
16916: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16917: done
16918: IFS=$as_save_IFS
16919:
16920: ;;
16921: esac
16922: # We did not find ourselves, most probably we were run as `sh COMMAND'
16923: # in which case we are not to be found in the path.
16924: if test "x$as_myself" = x; then
16925: as_myself=$0
16926: fi
16927: if test ! -f "$as_myself"; then
16928: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16929: exit 1
16930: fi
16931:
16932: # Unset variables that we do not need and which cause bugs (e.g. in
16933: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16934: # suppresses any "Segmentation fault" message there. '((' could
16935: # trigger a bug in pdksh 5.2.14.
16936: for as_var in BASH_ENV ENV MAIL MAILPATH
16937: do eval test x\${$as_var+set} = xset \
16938: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16939: done
1.25 moko 16940: PS1='$ '
16941: PS2='> '
16942: PS4='+ '
16943:
16944: # NLS nuisances.
1.32 moko 16945: LC_ALL=C
16946: export LC_ALL
16947: LANGUAGE=C
16948: export LANGUAGE
16949:
16950: # CDPATH.
16951: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16952:
16953:
16954: # as_fn_error STATUS ERROR [LINENO LOG_FD]
16955: # ----------------------------------------
16956: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16957: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16958: # script with STATUS, using 1 if that was 0.
16959: as_fn_error ()
16960: {
16961: as_status=$1; test $as_status -eq 0 && as_status=1
16962: if test "$4"; then
16963: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16964: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16965: fi
16966: $as_echo "$as_me: error: $2" >&2
16967: as_fn_exit $as_status
16968: } # as_fn_error
16969:
16970:
16971: # as_fn_set_status STATUS
16972: # -----------------------
16973: # Set $? to STATUS, without forking.
16974: as_fn_set_status ()
16975: {
16976: return $1
16977: } # as_fn_set_status
16978:
16979: # as_fn_exit STATUS
16980: # -----------------
16981: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16982: as_fn_exit ()
16983: {
16984: set +e
16985: as_fn_set_status $1
16986: exit $1
16987: } # as_fn_exit
16988:
16989: # as_fn_unset VAR
16990: # ---------------
16991: # Portably unset VAR.
16992: as_fn_unset ()
16993: {
16994: { eval $1=; unset $1;}
16995: }
16996: as_unset=as_fn_unset
16997: # as_fn_append VAR VALUE
16998: # ----------------------
16999: # Append the text in VALUE to the end of the definition contained in VAR. Take
17000: # advantage of any shell optimizations that allow amortized linear growth over
17001: # repeated appends, instead of the typical quadratic growth present in naive
17002: # implementations.
17003: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17004: eval 'as_fn_append ()
17005: {
17006: eval $1+=\$2
17007: }'
17008: else
17009: as_fn_append ()
17010: {
17011: eval $1=\$$1\$2
17012: }
17013: fi # as_fn_append
17014:
17015: # as_fn_arith ARG...
17016: # ------------------
17017: # Perform arithmetic evaluation on the ARGs, and store the result in the
17018: # global $as_val. Take advantage of shells that can avoid forks. The arguments
17019: # must be portable across $(()) and expr.
17020: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17021: eval 'as_fn_arith ()
17022: {
17023: as_val=$(( $* ))
17024: }'
17025: else
17026: as_fn_arith ()
17027: {
17028: as_val=`expr "$@" || test $? -eq 1`
17029: }
17030: fi # as_fn_arith
17031:
1.25 moko 17032:
1.32 moko 17033: if expr a : '\(a\)' >/dev/null 2>&1 &&
17034: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.25 moko 17035: as_expr=expr
17036: else
17037: as_expr=false
17038: fi
17039:
1.32 moko 17040: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.25 moko 17041: as_basename=basename
17042: else
17043: as_basename=false
17044: fi
17045:
1.32 moko 17046: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17047: as_dirname=dirname
17048: else
17049: as_dirname=false
17050: fi
1.25 moko 17051:
1.32 moko 17052: as_me=`$as_basename -- "$0" ||
1.25 moko 17053: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17054: X"$0" : 'X\(//\)$' \| \
1.32 moko 17055: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17056: $as_echo X/"$0" |
17057: sed '/^.*\/\([^/][^/]*\)\/*$/{
17058: s//\1/
17059: q
17060: }
17061: /^X\/\(\/\/\)$/{
17062: s//\1/
17063: q
17064: }
17065: /^X\/\(\/\).*/{
17066: s//\1/
17067: q
17068: }
17069: s/.*/./; q'`
1.25 moko 17070:
17071: # Avoid depending upon Character Ranges.
17072: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17073: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17074: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17075: as_cr_digits='0123456789'
17076: as_cr_alnum=$as_cr_Letters$as_cr_digits
17077:
1.32 moko 17078: ECHO_C= ECHO_N= ECHO_T=
17079: case `echo -n x` in #(((((
17080: -n*)
17081: case `echo 'xy\c'` in
17082: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17083: xy) ECHO_C='\c';;
17084: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17085: ECHO_T=' ';;
17086: esac;;
17087: *)
17088: ECHO_N='-n';;
1.25 moko 17089: esac
17090:
1.32 moko 17091: rm -f conf$$ conf$$.exe conf$$.file
17092: if test -d conf$$.dir; then
17093: rm -f conf$$.dir/conf$$.file
1.25 moko 17094: else
1.32 moko 17095: rm -f conf$$.dir
17096: mkdir conf$$.dir 2>/dev/null
1.25 moko 17097: fi
1.32 moko 17098: if (echo >conf$$.file) 2>/dev/null; then
17099: if ln -s conf$$.file conf$$ 2>/dev/null; then
17100: as_ln_s='ln -s'
17101: # ... but there are two gotchas:
17102: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17103: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.35 moko 17104: # In both cases, we have to default to `cp -pR'.
1.32 moko 17105: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.35 moko 17106: as_ln_s='cp -pR'
1.32 moko 17107: elif ln conf$$.file conf$$ 2>/dev/null; then
17108: as_ln_s=ln
17109: else
1.35 moko 17110: as_ln_s='cp -pR'
1.25 moko 17111: fi
17112: else
1.35 moko 17113: as_ln_s='cp -pR'
1.25 moko 17114: fi
1.32 moko 17115: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17116: rmdir conf$$.dir 2>/dev/null
17117:
17118:
17119: # as_fn_mkdir_p
17120: # -------------
17121: # Create "$as_dir" as a directory, including parents if necessary.
17122: as_fn_mkdir_p ()
17123: {
17124:
17125: case $as_dir in #(
17126: -*) as_dir=./$as_dir;;
17127: esac
17128: test -d "$as_dir" || eval $as_mkdir_p || {
17129: as_dirs=
17130: while :; do
17131: case $as_dir in #(
17132: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17133: *) as_qdir=$as_dir;;
17134: esac
17135: as_dirs="'$as_qdir' $as_dirs"
17136: as_dir=`$as_dirname -- "$as_dir" ||
17137: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17138: X"$as_dir" : 'X\(//\)[^/]' \| \
17139: X"$as_dir" : 'X\(//\)$' \| \
17140: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17141: $as_echo X"$as_dir" |
17142: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17143: s//\1/
17144: q
17145: }
17146: /^X\(\/\/\)[^/].*/{
17147: s//\1/
17148: q
17149: }
17150: /^X\(\/\/\)$/{
17151: s//\1/
17152: q
17153: }
17154: /^X\(\/\).*/{
17155: s//\1/
17156: q
17157: }
17158: s/.*/./; q'`
17159: test -d "$as_dir" && break
17160: done
17161: test -z "$as_dirs" || eval "mkdir $as_dirs"
17162: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17163:
1.25 moko 17164:
1.32 moko 17165: } # as_fn_mkdir_p
1.25 moko 17166: if mkdir -p . 2>/dev/null; then
1.32 moko 17167: as_mkdir_p='mkdir -p "$as_dir"'
1.25 moko 17168: else
17169: test -d ./-p && rmdir ./-p
17170: as_mkdir_p=false
17171: fi
17172:
1.35 moko 17173:
17174: # as_fn_executable_p FILE
17175: # -----------------------
17176: # Test if FILE is an executable regular file.
17177: as_fn_executable_p ()
17178: {
17179: test -f "$1" && test -x "$1"
17180: } # as_fn_executable_p
17181: as_test_x='test -x'
17182: as_executable_p=as_fn_executable_p
1.25 moko 17183:
17184: # Sed expression to map a string onto a valid CPP name.
17185: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17186:
17187: # Sed expression to map a string onto a valid variable name.
17188: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17189:
17190:
17191: exec 6>&1
1.32 moko 17192: ## ----------------------------------- ##
17193: ## Main body of $CONFIG_STATUS script. ##
17194: ## ----------------------------------- ##
17195: _ASEOF
17196: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.25 moko 17197:
1.32 moko 17198: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17199: # Save the log message, to keep $0 and so on meaningful, and to
1.25 moko 17200: # report actual input values of CONFIG_FILES etc. instead of their
1.32 moko 17201: # values after options handling.
17202: ac_log="
1.35 moko 17203: This file was extended by parser3oracle $as_me 10.4, which was
17204: generated by GNU Autoconf 2.69. Invocation command line was
1.25 moko 17205:
17206: CONFIG_FILES = $CONFIG_FILES
17207: CONFIG_HEADERS = $CONFIG_HEADERS
17208: CONFIG_LINKS = $CONFIG_LINKS
17209: CONFIG_COMMANDS = $CONFIG_COMMANDS
17210: $ $0 $@
17211:
1.32 moko 17212: on `(hostname || uname -n) 2>/dev/null | sed 1q`
17213: "
17214:
1.25 moko 17215: _ACEOF
17216:
1.32 moko 17217: case $ac_config_files in *"
17218: "*) set x $ac_config_files; shift; ac_config_files=$*;;
17219: esac
1.25 moko 17220:
1.32 moko 17221: case $ac_config_headers in *"
17222: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17223: esac
1.25 moko 17224:
17225:
1.32 moko 17226: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17227: # Files that config.status was made for.
17228: config_files="$ac_config_files"
17229: config_headers="$ac_config_headers"
17230: config_commands="$ac_config_commands"
1.25 moko 17231:
1.32 moko 17232: _ACEOF
1.25 moko 17233:
1.32 moko 17234: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.25 moko 17235: ac_cs_usage="\
1.32 moko 17236: \`$as_me' instantiates files and other configuration actions
17237: from templates according to the current configuration. Unless the files
17238: and actions are specified as TAGs, all are instantiated by default.
1.25 moko 17239:
1.32 moko 17240: Usage: $0 [OPTION]... [TAG]...
1.25 moko 17241:
17242: -h, --help print this help, then exit
1.32 moko 17243: -V, --version print version number and configuration settings, then exit
17244: --config print configuration, then exit
17245: -q, --quiet, --silent
17246: do not print progress messages
1.25 moko 17247: -d, --debug don't remove temporary files
17248: --recheck update $as_me by reconfiguring in the same conditions
1.32 moko 17249: --file=FILE[:TEMPLATE]
17250: instantiate the configuration file FILE
17251: --header=FILE[:TEMPLATE]
17252: instantiate the configuration header FILE
1.25 moko 17253:
17254: Configuration files:
17255: $config_files
17256:
17257: Configuration headers:
17258: $config_headers
17259:
17260: Configuration commands:
17261: $config_commands
17262:
1.32 moko 17263: Report bugs to the package provider."
17264:
1.25 moko 17265: _ACEOF
1.32 moko 17266: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17267: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.25 moko 17268: ac_cs_version="\\
1.35 moko 17269: parser3oracle config.status 10.4
17270: configured by $0, generated by GNU Autoconf 2.69,
1.32 moko 17271: with options \\"\$ac_cs_config\\"
1.25 moko 17272:
1.35 moko 17273: Copyright (C) 2012 Free Software Foundation, Inc.
1.25 moko 17274: This config.status script is free software; the Free Software Foundation
17275: gives unlimited permission to copy, distribute and modify it."
1.32 moko 17276:
17277: ac_pwd='$ac_pwd'
17278: srcdir='$srcdir'
17279: INSTALL='$INSTALL'
17280: MKDIR_P='$MKDIR_P'
17281: AWK='$AWK'
17282: test -n "\$AWK" || AWK=awk
1.25 moko 17283: _ACEOF
17284:
1.32 moko 17285: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17286: # The default lists apply if the user does not specify any file.
1.25 moko 17287: ac_need_defaults=:
17288: while test $# != 0
17289: do
17290: case $1 in
1.32 moko 17291: --*=?*)
17292: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17293: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17294: ac_shift=:
17295: ;;
17296: --*=)
17297: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17298: ac_optarg=
1.25 moko 17299: ac_shift=:
17300: ;;
1.32 moko 17301: *)
1.25 moko 17302: ac_option=$1
17303: ac_optarg=$2
17304: ac_shift=shift
17305: ;;
17306: esac
17307:
17308: case $ac_option in
17309: # Handling of the options.
17310: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17311: ac_cs_recheck=: ;;
1.32 moko 17312: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17313: $as_echo "$ac_cs_version"; exit ;;
17314: --config | --confi | --conf | --con | --co | --c )
17315: $as_echo "$ac_cs_config"; exit ;;
17316: --debug | --debu | --deb | --de | --d | -d )
1.25 moko 17317: debug=: ;;
17318: --file | --fil | --fi | --f )
17319: $ac_shift
1.32 moko 17320: case $ac_optarg in
17321: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17322: '') as_fn_error $? "missing file argument" ;;
17323: esac
17324: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.25 moko 17325: ac_need_defaults=false;;
17326: --header | --heade | --head | --hea )
17327: $ac_shift
1.32 moko 17328: case $ac_optarg in
17329: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17330: esac
17331: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.25 moko 17332: ac_need_defaults=false;;
1.32 moko 17333: --he | --h)
17334: # Conflict between --help and --header
17335: as_fn_error $? "ambiguous option: \`$1'
17336: Try \`$0 --help' for more information.";;
17337: --help | --hel | -h )
17338: $as_echo "$ac_cs_usage"; exit ;;
1.25 moko 17339: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17340: | -silent | --silent | --silen | --sile | --sil | --si | --s)
17341: ac_cs_silent=: ;;
17342:
17343: # This is an error.
1.32 moko 17344: -*) as_fn_error $? "unrecognized option: \`$1'
17345: Try \`$0 --help' for more information." ;;
1.25 moko 17346:
1.32 moko 17347: *) as_fn_append ac_config_targets " $1"
17348: ac_need_defaults=false ;;
1.25 moko 17349:
17350: esac
17351: shift
17352: done
17353:
17354: ac_configure_extra_args=
17355:
17356: if $ac_cs_silent; then
17357: exec 6>/dev/null
17358: ac_configure_extra_args="$ac_configure_extra_args --silent"
17359: fi
17360:
17361: _ACEOF
1.32 moko 17362: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.25 moko 17363: if \$ac_cs_recheck; then
1.35 moko 17364: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.32 moko 17365: shift
17366: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17367: CONFIG_SHELL='$SHELL'
17368: export CONFIG_SHELL
17369: exec "\$@"
1.25 moko 17370: fi
17371:
17372: _ACEOF
1.32 moko 17373: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17374: exec 5>>config.log
17375: {
17376: echo
17377: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17378: ## Running $as_me. ##
17379: _ASBOX
17380: $as_echo "$ac_log"
17381: } >&5
17382:
17383: _ACEOF
17384: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.25 moko 17385: #
1.32 moko 17386: # INIT-COMMANDS
1.25 moko 17387: #
17388: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17389:
17390:
17391: # The HP-UX ksh and POSIX shell print the target directory to stdout
17392: # if CDPATH is set.
17393: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17394:
17395: sed_quote_subst='$sed_quote_subst'
17396: double_quote_subst='$double_quote_subst'
17397: delay_variable_subst='$delay_variable_subst'
17398: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17399: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.31 moko 17400: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.25 moko 17401: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17402: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17403: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17404: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17405: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17406: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17407: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17408: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17409: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17410: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17411: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17412: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17413: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17414: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17415: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17416: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17417: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17418: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17419: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17420: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17421: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17422: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17423: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17424: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17425: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17426: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17427: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17428: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17429: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17430: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17431: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17432: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17433: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17434: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17435: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17436: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17437: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17438: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17439: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17440: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17441: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17442: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17443: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17444: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17445: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17446: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17447: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17448: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17449: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17450: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17451: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17452: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17453: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17454: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17455: 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"`'
17456: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17457: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17458: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17459: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17460: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17461: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17462: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17463: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17464: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17465: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17466: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17467: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17468: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17469: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17470: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17471: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17472: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17473: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17474: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17475: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17476: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17477: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17478: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17479: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17480: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17481: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17482: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17483: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17484: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17485: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17486: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17487: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17488: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17489: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17490: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17491: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17492: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17493: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17494: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17495: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17496: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17497: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17498: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17499: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17500: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17501: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17502: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17503: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17504: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17505: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17506: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17507: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17508: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17509: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17510: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17511: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17512: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17513: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17514: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17515: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17516: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17517: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17518: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17519: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17520: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17521: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17522: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17523: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17524: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17525: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17526: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17527: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17528: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17529: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17530: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17531: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17532: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17533: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17534: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17535: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17536: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17537: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17538: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17539: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17540: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17541: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17542: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17543: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17544: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17545: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17546: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17547: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17548: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17549: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17550: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17551: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17552: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17553: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17554: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17555: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17556: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17557: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17558: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17559: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17560: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17561: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17562: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17563: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17564: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17565: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17566: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17567: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17568: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17569: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17570: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17571: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17572: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17573: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17574: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17575: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17576: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17577: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17578: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17579: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17580: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17581: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17582: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17583:
17584: LTCC='$LTCC'
17585: LTCFLAGS='$LTCFLAGS'
17586: compiler='$compiler_DEFAULT'
17587:
17588: # A function that is used when there is no print builtin or printf.
17589: func_fallback_echo ()
17590: {
17591: eval 'cat <<_LTECHO_EOF
17592: \$1
17593: _LTECHO_EOF'
17594: }
17595:
17596: # Quote evaled strings.
17597: for var in AS \
17598: DLLTOOL \
17599: OBJDUMP \
17600: SHELL \
17601: ECHO \
17602: PATH_SEPARATOR \
17603: SED \
17604: GREP \
17605: EGREP \
17606: FGREP \
17607: LD \
17608: NM \
17609: LN_S \
17610: lt_SP2NL \
17611: lt_NL2SP \
17612: reload_flag \
17613: deplibs_check_method \
17614: file_magic_cmd \
17615: file_magic_glob \
17616: want_nocaseglob \
17617: sharedlib_from_linklib_cmd \
17618: AR \
17619: AR_FLAGS \
17620: archiver_list_spec \
17621: STRIP \
17622: RANLIB \
17623: CC \
17624: CFLAGS \
17625: compiler \
17626: lt_cv_sys_global_symbol_pipe \
17627: lt_cv_sys_global_symbol_to_cdecl \
17628: lt_cv_sys_global_symbol_to_c_name_address \
17629: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17630: nm_file_list_spec \
17631: lt_prog_compiler_no_builtin_flag \
17632: lt_prog_compiler_pic \
17633: lt_prog_compiler_wl \
17634: lt_prog_compiler_static \
17635: lt_cv_prog_compiler_c_o \
17636: need_locks \
17637: MANIFEST_TOOL \
17638: DSYMUTIL \
17639: NMEDIT \
17640: LIPO \
17641: OTOOL \
17642: OTOOL64 \
17643: shrext_cmds \
17644: export_dynamic_flag_spec \
17645: whole_archive_flag_spec \
17646: compiler_needs_object \
17647: with_gnu_ld \
17648: allow_undefined_flag \
17649: no_undefined_flag \
17650: hardcode_libdir_flag_spec \
17651: hardcode_libdir_separator \
17652: exclude_expsyms \
17653: include_expsyms \
17654: file_list_spec \
17655: variables_saved_for_relink \
17656: libname_spec \
17657: library_names_spec \
17658: soname_spec \
17659: install_override_mode \
17660: finish_eval \
17661: old_striplib \
17662: striplib \
17663: compiler_lib_search_dirs \
17664: predep_objects \
17665: postdep_objects \
17666: predeps \
17667: postdeps \
17668: compiler_lib_search_path \
17669: LD_CXX \
17670: reload_flag_CXX \
17671: compiler_CXX \
17672: lt_prog_compiler_no_builtin_flag_CXX \
17673: lt_prog_compiler_pic_CXX \
17674: lt_prog_compiler_wl_CXX \
17675: lt_prog_compiler_static_CXX \
17676: lt_cv_prog_compiler_c_o_CXX \
17677: export_dynamic_flag_spec_CXX \
17678: whole_archive_flag_spec_CXX \
17679: compiler_needs_object_CXX \
17680: with_gnu_ld_CXX \
17681: allow_undefined_flag_CXX \
17682: no_undefined_flag_CXX \
17683: hardcode_libdir_flag_spec_CXX \
17684: hardcode_libdir_separator_CXX \
17685: exclude_expsyms_CXX \
17686: include_expsyms_CXX \
17687: file_list_spec_CXX \
17688: compiler_lib_search_dirs_CXX \
17689: predep_objects_CXX \
17690: postdep_objects_CXX \
17691: predeps_CXX \
17692: postdeps_CXX \
17693: compiler_lib_search_path_CXX; do
17694: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17695: *[\\\\\\\`\\"\\\$]*)
17696: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17697: ;;
17698: *)
17699: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17700: ;;
17701: esac
17702: done
17703:
17704: # Double-quote double-evaled strings.
17705: for var in reload_cmds \
17706: old_postinstall_cmds \
17707: old_postuninstall_cmds \
17708: old_archive_cmds \
17709: extract_expsyms_cmds \
17710: old_archive_from_new_cmds \
17711: old_archive_from_expsyms_cmds \
17712: archive_cmds \
17713: archive_expsym_cmds \
17714: module_cmds \
17715: module_expsym_cmds \
17716: export_symbols_cmds \
17717: prelink_cmds \
17718: postlink_cmds \
17719: postinstall_cmds \
17720: postuninstall_cmds \
17721: finish_cmds \
17722: sys_lib_search_path_spec \
17723: sys_lib_dlsearch_path_spec \
17724: reload_cmds_CXX \
17725: old_archive_cmds_CXX \
17726: old_archive_from_new_cmds_CXX \
17727: old_archive_from_expsyms_cmds_CXX \
17728: archive_cmds_CXX \
17729: archive_expsym_cmds_CXX \
17730: module_cmds_CXX \
17731: module_expsym_cmds_CXX \
17732: export_symbols_cmds_CXX \
17733: prelink_cmds_CXX \
17734: postlink_cmds_CXX; do
17735: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17736: *[\\\\\\\`\\"\\\$]*)
17737: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17738: ;;
17739: *)
17740: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17741: ;;
17742: esac
17743: done
17744:
17745: ac_aux_dir='$ac_aux_dir'
17746: xsi_shell='$xsi_shell'
17747: lt_shell_append='$lt_shell_append'
17748:
17749: # See if we are running on zsh, and set the options which allow our
17750: # commands through without removal of \ escapes INIT.
17751: if test -n "\${ZSH_VERSION+set}" ; then
17752: setopt NO_GLOB_SUBST
17753: fi
17754:
17755:
17756: PACKAGE='$PACKAGE'
17757: VERSION='$VERSION'
17758: TIMESTAMP='$TIMESTAMP'
17759: RM='$RM'
17760: ofile='$ofile'
17761:
17762:
17763:
17764:
17765:
17766:
17767: _ACEOF
17768:
1.32 moko 17769: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.25 moko 17770:
1.32 moko 17771: # Handling of arguments.
1.25 moko 17772: for ac_config_target in $ac_config_targets
17773: do
1.32 moko 17774: case $ac_config_target in
17775: "config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
17776: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17777: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17778: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17779:
17780: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.25 moko 17781: esac
17782: done
17783:
1.32 moko 17784:
1.25 moko 17785: # If the user did not use the arguments to specify the items to instantiate,
17786: # then the envvar interface is used. Set only those that are not.
17787: # We use the long form for the default assignment because of an extremely
17788: # bizarre bug on SunOS 4.1.3.
17789: if $ac_need_defaults; then
17790: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17791: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17792: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17793: fi
17794:
17795: # Have a temporary directory for convenience. Make it in the build tree
1.32 moko 17796: # simply because there is no reason against having it here, and in addition,
1.25 moko 17797: # creating and moving files from /tmp can sometimes cause problems.
1.32 moko 17798: # Hook for its removal unless debugging.
17799: # Note that there is a small window in which the directory will not be cleaned:
17800: # after its creation but before its name has been assigned to `$tmp'.
1.25 moko 17801: $debug ||
17802: {
1.32 moko 17803: tmp= ac_tmp=
17804: trap 'exit_status=$?
17805: : "${ac_tmp:=$tmp}"
17806: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17807: ' 0
17808: trap 'as_fn_exit 1' 1 2 13 15
1.25 moko 17809: }
17810: # Create a (secure) tmp directory for tmp files.
17811:
17812: {
1.32 moko 17813: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17814: test -d "$tmp"
1.25 moko 17815: } ||
17816: {
1.32 moko 17817: tmp=./conf$$-$RANDOM
17818: (umask 077 && mkdir "$tmp")
17819: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17820: ac_tmp=$tmp
17821:
17822: # Set up the scripts for CONFIG_FILES section.
17823: # No need to generate them if there are no CONFIG_FILES.
17824: # This happens for instance with `./config.status config.h'.
17825: if test -n "$CONFIG_FILES"; then
17826:
17827:
17828: ac_cr=`echo X | tr X '\015'`
17829: # On cygwin, bash can eat \r inside `` if the user requested igncr.
17830: # But we know of no other shell where ac_cr would be empty at this
17831: # point, so we can use a bashism as a fallback.
17832: if test "x$ac_cr" = x; then
17833: eval ac_cr=\$\'\\r\'
17834: fi
17835: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17836: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17837: ac_cs_awk_cr='\\r'
17838: else
17839: ac_cs_awk_cr=$ac_cr
17840: fi
17841:
17842: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17843: _ACEOF
17844:
17845:
17846: {
17847: echo "cat >conf$$subs.awk <<_ACEOF" &&
17848: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17849: echo "_ACEOF"
17850: } >conf$$subs.sh ||
17851: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17852: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17853: ac_delim='%!_!# '
17854: for ac_last_try in false false false false false :; do
17855: . ./conf$$subs.sh ||
17856: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17857:
17858: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17859: if test $ac_delim_n = $ac_delim_num; then
17860: break
17861: elif $ac_last_try; then
17862: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17863: else
17864: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17865: fi
17866: done
17867: rm -f conf$$subs.sh
17868:
17869: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17870: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17871: _ACEOF
17872: sed -n '
17873: h
17874: s/^/S["/; s/!.*/"]=/
17875: p
17876: g
17877: s/^[^!]*!//
17878: :repl
17879: t repl
17880: s/'"$ac_delim"'$//
17881: t delim
17882: :nl
17883: h
17884: s/\(.\{148\}\)..*/\1/
17885: t more1
17886: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17887: p
17888: n
17889: b repl
17890: :more1
17891: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17892: p
17893: g
17894: s/.\{148\}//
17895: t nl
17896: :delim
17897: h
17898: s/\(.\{148\}\)..*/\1/
17899: t more2
17900: s/["\\]/\\&/g; s/^/"/; s/$/"/
17901: p
17902: b
17903: :more2
17904: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17905: p
17906: g
17907: s/.\{148\}//
17908: t delim
17909: ' <conf$$subs.awk | sed '
17910: /^[^""]/{
17911: N
17912: s/\n//
17913: }
17914: ' >>$CONFIG_STATUS || ac_write_fail=1
17915: rm -f conf$$subs.awk
17916: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17917: _ACAWK
17918: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17919: for (key in S) S_is_set[key] = 1
17920: FS = ""
17921:
17922: }
1.25 moko 17923: {
1.32 moko 17924: line = $ 0
17925: nfields = split(line, field, "@")
17926: substed = 0
17927: len = length(field[1])
17928: for (i = 2; i < nfields; i++) {
17929: key = field[i]
17930: keylen = length(key)
17931: if (S_is_set[key]) {
17932: value = S[key]
17933: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17934: len += length(value) + length(field[++i])
17935: substed = 1
17936: } else
17937: len += 1 + keylen
17938: }
17939:
17940: print line
1.25 moko 17941: }
17942:
1.32 moko 17943: _ACAWK
17944: _ACEOF
17945: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17946: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17947: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17948: else
17949: cat
17950: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17951: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.25 moko 17952: _ACEOF
17953:
1.32 moko 17954: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17955: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17956: # trailing colons and then remove the whole line if VPATH becomes empty
17957: # (actually we leave an empty line to preserve line numbers).
17958: if test "x$srcdir" = x.; then
17959: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17960: h
17961: s///
17962: s/^/:/
17963: s/[ ]*$/:/
17964: s/:\$(srcdir):/:/g
17965: s/:\${srcdir}:/:/g
17966: s/:@srcdir@:/:/g
17967: s/^:*//
17968: s/:*$//
17969: x
17970: s/\(=[ ]*\).*/\1/
17971: G
17972: s/\n//
17973: s/^[^=]*=[ ]*$//
17974: }'
17975: fi
1.25 moko 17976:
1.32 moko 17977: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17978: fi # test -n "$CONFIG_FILES"
1.25 moko 17979:
1.32 moko 17980: # Set up the scripts for CONFIG_HEADERS section.
17981: # No need to generate them if there are no CONFIG_HEADERS.
17982: # This happens for instance with `./config.status Makefile'.
17983: if test -n "$CONFIG_HEADERS"; then
17984: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17985: BEGIN {
17986: _ACEOF
17987:
17988: # Transform confdefs.h into an awk script `defines.awk', embedded as
17989: # here-document in config.status, that substitutes the proper values into
17990: # config.h.in to produce config.h.
17991:
17992: # Create a delimiter string that does not exist in confdefs.h, to ease
17993: # handling of long lines.
17994: ac_delim='%!_!# '
17995: for ac_last_try in false false :; do
17996: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17997: if test -z "$ac_tt"; then
17998: break
17999: elif $ac_last_try; then
18000: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18001: else
18002: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.25 moko 18003: fi
1.32 moko 18004: done
1.25 moko 18005:
1.32 moko 18006: # For the awk script, D is an array of macro values keyed by name,
18007: # likewise P contains macro parameters if any. Preserve backslash
18008: # newline sequences.
18009:
18010: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18011: sed -n '
18012: s/.\{148\}/&'"$ac_delim"'/g
18013: t rset
18014: :rset
18015: s/^[ ]*#[ ]*define[ ][ ]*/ /
18016: t def
18017: d
18018: :def
18019: s/\\$//
18020: t bsnl
18021: s/["\\]/\\&/g
18022: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18023: D["\1"]=" \3"/p
18024: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18025: d
18026: :bsnl
18027: s/["\\]/\\&/g
18028: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18029: D["\1"]=" \3\\\\\\n"\\/p
18030: t cont
18031: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18032: t cont
18033: d
18034: :cont
18035: n
18036: s/.\{148\}/&'"$ac_delim"'/g
18037: t clear
18038: :clear
18039: s/\\$//
18040: t bsnlc
18041: s/["\\]/\\&/g; s/^/"/; s/$/"/p
18042: d
18043: :bsnlc
18044: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18045: b cont
18046: ' <confdefs.h | sed '
18047: s/'"$ac_delim"'/"\\\
18048: "/g' >>$CONFIG_STATUS || ac_write_fail=1
18049:
18050: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18051: for (key in D) D_is_set[key] = 1
18052: FS = ""
18053: }
18054: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18055: line = \$ 0
18056: split(line, arg, " ")
18057: if (arg[1] == "#") {
18058: defundef = arg[2]
18059: mac1 = arg[3]
18060: } else {
18061: defundef = substr(arg[1], 2)
18062: mac1 = arg[2]
18063: }
18064: split(mac1, mac2, "(") #)
18065: macro = mac2[1]
18066: prefix = substr(line, 1, index(line, defundef) - 1)
18067: if (D_is_set[macro]) {
18068: # Preserve the white space surrounding the "#".
18069: print prefix "define", macro P[macro] D[macro]
18070: next
18071: } else {
18072: # Replace #undef with comments. This is necessary, for example,
18073: # in the case of _POSIX_SOURCE, which is predefined and required
18074: # on some systems where configure will not decide to define it.
18075: if (defundef == "undef") {
18076: print "/*", prefix defundef, macro, "*/"
18077: next
18078: }
18079: }
18080: }
18081: { print }
18082: _ACAWK
1.25 moko 18083: _ACEOF
1.32 moko 18084: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18085: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18086: fi # test -n "$CONFIG_HEADERS"
18087:
18088:
18089: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18090: shift
18091: for ac_tag
18092: do
18093: case $ac_tag in
18094: :[FHLC]) ac_mode=$ac_tag; continue;;
18095: esac
18096: case $ac_mode$ac_tag in
18097: :[FHL]*:*);;
18098: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18099: :[FH]-) ac_tag=-:-;;
18100: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18101: esac
18102: ac_save_IFS=$IFS
18103: IFS=:
18104: set x $ac_tag
18105: IFS=$ac_save_IFS
18106: shift
18107: ac_file=$1
18108: shift
18109:
18110: case $ac_mode in
18111: :L) ac_source=$1;;
18112: :[FH])
18113: ac_file_inputs=
18114: for ac_f
18115: do
18116: case $ac_f in
18117: -) ac_f="$ac_tmp/stdin";;
18118: *) # Look for the file first in the build tree, then in the source tree
18119: # (if the path is not absolute). The absolute path cannot be DOS-style,
18120: # because $ac_f cannot contain `:'.
18121: test -f "$ac_f" ||
18122: case $ac_f in
18123: [\\/$]*) false;;
18124: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18125: esac ||
18126: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18127: esac
18128: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18129: as_fn_append ac_file_inputs " '$ac_f'"
18130: done
18131:
18132: # Let's still pretend it is `configure' which instantiates (i.e., don't
18133: # use $as_me), people would be surprised to read:
18134: # /* config.h. Generated by config.status. */
18135: configure_input='Generated from '`
18136: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18137: `' by configure.'
18138: if test x"$ac_file" != x-; then
18139: configure_input="$ac_file. $configure_input"
18140: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18141: $as_echo "$as_me: creating $ac_file" >&6;}
18142: fi
18143: # Neutralize special characters interpreted by sed in replacement strings.
18144: case $configure_input in #(
18145: *\&* | *\|* | *\\* )
18146: ac_sed_conf_input=`$as_echo "$configure_input" |
18147: sed 's/[\\\\&|]/\\\\&/g'`;; #(
18148: *) ac_sed_conf_input=$configure_input;;
18149: esac
18150:
18151: case $ac_tag in
18152: *:-:* | *:-) cat >"$ac_tmp/stdin" \
18153: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18154: esac
18155: ;;
1.25 moko 18156: esac
18157:
1.32 moko 18158: ac_dir=`$as_dirname -- "$ac_file" ||
1.25 moko 18159: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18160: X"$ac_file" : 'X\(//\)[^/]' \| \
18161: X"$ac_file" : 'X\(//\)$' \| \
1.32 moko 18162: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18163: $as_echo X"$ac_file" |
18164: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18165: s//\1/
18166: q
18167: }
18168: /^X\(\/\/\)[^/].*/{
18169: s//\1/
18170: q
18171: }
18172: /^X\(\/\/\)$/{
18173: s//\1/
18174: q
18175: }
18176: /^X\(\/\).*/{
18177: s//\1/
18178: q
18179: }
18180: s/.*/./; q'`
18181: as_dir="$ac_dir"; as_fn_mkdir_p
1.25 moko 18182: ac_builddir=.
18183:
1.32 moko 18184: case "$ac_dir" in
18185: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18186: *)
18187: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18188: # A ".." for each directory in $ac_dir_suffix.
18189: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18190: case $ac_top_builddir_sub in
18191: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18192: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18193: esac ;;
18194: esac
18195: ac_abs_top_builddir=$ac_pwd
18196: ac_abs_builddir=$ac_pwd$ac_dir_suffix
18197: # for backward compatibility:
18198: ac_top_builddir=$ac_top_build_prefix
1.25 moko 18199:
18200: case $srcdir in
1.32 moko 18201: .) # We are building in place.
1.25 moko 18202: ac_srcdir=.
1.32 moko 18203: ac_top_srcdir=$ac_top_builddir_sub
18204: ac_abs_top_srcdir=$ac_pwd ;;
18205: [\\/]* | ?:[\\/]* ) # Absolute name.
1.25 moko 18206: ac_srcdir=$srcdir$ac_dir_suffix;
1.32 moko 18207: ac_top_srcdir=$srcdir
18208: ac_abs_top_srcdir=$srcdir ;;
18209: *) # Relative name.
18210: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18211: ac_top_srcdir=$ac_top_build_prefix$srcdir
18212: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.25 moko 18213: esac
1.32 moko 18214: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.25 moko 18215:
18216:
1.32 moko 18217: case $ac_mode in
18218: :F)
18219: #
18220: # CONFIG_FILE
18221: #
1.25 moko 18222:
18223: case $INSTALL in
18224: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.32 moko 18225: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18226: esac
18227: ac_MKDIR_P=$MKDIR_P
18228: case $MKDIR_P in
18229: [\\/$]* | ?:[\\/]* ) ;;
18230: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1.25 moko 18231: esac
1.32 moko 18232: _ACEOF
1.25 moko 18233:
1.32 moko 18234: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18235: # If the template does not know about datarootdir, expand it.
18236: # FIXME: This hack should be removed a few years after 2.60.
18237: ac_datarootdir_hack=; ac_datarootdir_seen=
18238: ac_sed_dataroot='
18239: /datarootdir/ {
18240: p
18241: q
18242: }
18243: /@datadir@/p
18244: /@docdir@/p
18245: /@infodir@/p
18246: /@localedir@/p
18247: /@mandir@/p'
18248: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18249: *datarootdir*) ac_datarootdir_seen=yes;;
18250: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18251: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18252: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18253: _ACEOF
18254: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18255: ac_datarootdir_hack='
18256: s&@datadir@&$datadir&g
18257: s&@docdir@&$docdir&g
18258: s&@infodir@&$infodir&g
18259: s&@localedir@&$localedir&g
18260: s&@mandir@&$mandir&g
18261: s&\\\${datarootdir}&$datarootdir&g' ;;
18262: esac
18263: _ACEOF
1.25 moko 18264:
1.32 moko 18265: # Neutralize VPATH when `$srcdir' = `.'.
18266: # Shell code in configure.ac might set extrasub.
18267: # FIXME: do we really want to maintain this feature?
18268: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18269: ac_sed_extra="$ac_vpsub
1.25 moko 18270: $extrasub
18271: _ACEOF
1.32 moko 18272: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.25 moko 18273: :t
18274: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.32 moko 18275: s|@configure_input@|$ac_sed_conf_input|;t t
18276: s&@top_builddir@&$ac_top_builddir_sub&;t t
18277: s&@top_build_prefix@&$ac_top_build_prefix&;t t
18278: s&@srcdir@&$ac_srcdir&;t t
18279: s&@abs_srcdir@&$ac_abs_srcdir&;t t
18280: s&@top_srcdir@&$ac_top_srcdir&;t t
18281: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18282: s&@builddir@&$ac_builddir&;t t
18283: s&@abs_builddir@&$ac_abs_builddir&;t t
18284: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18285: s&@INSTALL@&$ac_INSTALL&;t t
18286: s&@MKDIR_P@&$ac_MKDIR_P&;t t
18287: $ac_datarootdir_hack
18288: "
18289: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18290: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18291:
18292: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18293: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18294: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18295: "$ac_tmp/out"`; test -z "$ac_out"; } &&
18296: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18297: which seems to be undefined. Please make sure it is defined" >&5
18298: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18299: which seems to be undefined. Please make sure it is defined" >&2;}
1.25 moko 18300:
1.32 moko 18301: rm -f "$ac_tmp/stdin"
1.25 moko 18302: case $ac_file in
1.32 moko 18303: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18304: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18305: esac \
18306: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18307: ;;
18308: :H)
18309: #
18310: # CONFIG_HEADER
18311: #
1.25 moko 18312: if test x"$ac_file" != x-; then
1.32 moko 18313: {
18314: $as_echo "/* $configure_input */" \
18315: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18316: } >"$ac_tmp/config.h" \
18317: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18318: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18319: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18320: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.25 moko 18321: else
1.32 moko 18322: rm -f "$ac_file"
18323: mv "$ac_tmp/config.h" "$ac_file" \
18324: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.25 moko 18325: fi
18326: else
1.32 moko 18327: $as_echo "/* $configure_input */" \
18328: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18329: || as_fn_error $? "could not create -" "$LINENO" 5
1.25 moko 18330: fi
1.32 moko 18331: # Compute "$ac_file"'s index in $config_headers.
18332: _am_arg="$ac_file"
1.25 moko 18333: _am_stamp_count=1
18334: for _am_header in $config_headers :; do
18335: case $_am_header in
1.32 moko 18336: $_am_arg | $_am_arg:* )
1.25 moko 18337: break ;;
18338: * )
18339: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18340: esac
18341: done
1.32 moko 18342: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18343: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18344: X"$_am_arg" : 'X\(//\)[^/]' \| \
18345: X"$_am_arg" : 'X\(//\)$' \| \
18346: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18347: $as_echo X"$_am_arg" |
18348: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18349: s//\1/
18350: q
18351: }
18352: /^X\(\/\/\)[^/].*/{
18353: s//\1/
18354: q
18355: }
18356: /^X\(\/\/\)$/{
18357: s//\1/
18358: q
18359: }
18360: /^X\(\/\).*/{
18361: s//\1/
18362: q
18363: }
18364: s/.*/./; q'`/stamp-h$_am_stamp_count
18365: ;;
1.25 moko 18366:
1.32 moko 18367: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18368: $as_echo "$as_me: executing $ac_file commands" >&6;}
18369: ;;
18370: esac
1.25 moko 18371:
18372:
1.32 moko 18373: case $ac_file$ac_mode in
18374: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18375: # Autoconf 2.62 quotes --file arguments for eval, but not when files
18376: # are listed without --file. Let's play safe and only enable the eval
18377: # if we detect the quoting.
18378: case $CONFIG_FILES in
18379: *\'*) eval set x "$CONFIG_FILES" ;;
18380: *) set x $CONFIG_FILES ;;
18381: esac
18382: shift
18383: for mf
18384: do
18385: # Strip MF so we end up with the name of the file.
18386: mf=`echo "$mf" | sed -e 's/:.*$//'`
18387: # Check whether this is an Automake generated Makefile or not.
18388: # We used to match only the files named `Makefile.in', but
18389: # some people rename them; so instead we look at the file content.
18390: # Grep'ing the first line is not enough: some people post-process
18391: # each Makefile.in and add a new line on top of each file to say so.
18392: # Grep'ing the whole file is not good either: AIX grep has a line
18393: # limit of 2048, but all sed's we know have understand at least 4000.
18394: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18395: dirpart=`$as_dirname -- "$mf" ||
1.25 moko 18396: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18397: X"$mf" : 'X\(//\)[^/]' \| \
18398: X"$mf" : 'X\(//\)$' \| \
1.32 moko 18399: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18400: $as_echo X"$mf" |
18401: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18402: s//\1/
18403: q
18404: }
18405: /^X\(\/\/\)[^/].*/{
18406: s//\1/
18407: q
18408: }
18409: /^X\(\/\/\)$/{
18410: s//\1/
18411: q
18412: }
18413: /^X\(\/\).*/{
18414: s//\1/
18415: q
18416: }
18417: s/.*/./; q'`
18418: else
18419: continue
18420: fi
18421: # Extract the definition of DEPDIR, am__include, and am__quote
18422: # from the Makefile without running `make'.
18423: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18424: test -z "$DEPDIR" && continue
18425: am__include=`sed -n 's/^am__include = //p' < "$mf"`
18426: test -z "am__include" && continue
18427: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18428: # When using ansi2knr, U may be empty or an underscore; expand it
18429: U=`sed -n 's/^U = //p' < "$mf"`
18430: # Find all dependency output files, they are included files with
18431: # $(DEPDIR) in their names. We invoke sed twice because it is the
18432: # simplest approach to changing $(DEPDIR) to its actual value in the
18433: # expansion.
18434: for file in `sed -n "
18435: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18436: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18437: # Make sure the directory exists.
18438: test -f "$dirpart/$file" && continue
18439: fdir=`$as_dirname -- "$file" ||
1.25 moko 18440: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18441: X"$file" : 'X\(//\)[^/]' \| \
18442: X"$file" : 'X\(//\)$' \| \
1.32 moko 18443: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18444: $as_echo X"$file" |
18445: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18446: s//\1/
18447: q
18448: }
18449: /^X\(\/\/\)[^/].*/{
18450: s//\1/
18451: q
18452: }
18453: /^X\(\/\/\)$/{
18454: s//\1/
18455: q
18456: }
18457: /^X\(\/\).*/{
18458: s//\1/
18459: q
18460: }
18461: s/.*/./; q'`
18462: as_dir=$dirpart/$fdir; as_fn_mkdir_p
18463: # echo "creating $dirpart/$file"
18464: echo '# dummy' > "$dirpart/$file"
1.25 moko 18465: done
18466: done
1.32 moko 18467: }
1.25 moko 18468: ;;
1.32 moko 18469: "libtool":C)
1.25 moko 18470:
18471: # See if we are running on zsh, and set the options which allow our
18472: # commands through without removal of \ escapes.
18473: if test -n "${ZSH_VERSION+set}" ; then
18474: setopt NO_GLOB_SUBST
18475: fi
18476:
18477: cfgfile="${ofile}T"
18478: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18479: $RM "$cfgfile"
18480:
18481: cat <<_LT_EOF >> "$cfgfile"
18482: #! $SHELL
18483:
18484: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18485: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18486: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18487: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18488: #
18489: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18490: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18491: # Foundation, Inc.
18492: # Written by Gordon Matzigkeit, 1996
18493: #
18494: # This file is part of GNU Libtool.
18495: #
18496: # GNU Libtool is free software; you can redistribute it and/or
18497: # modify it under the terms of the GNU General Public License as
18498: # published by the Free Software Foundation; either version 2 of
18499: # the License, or (at your option) any later version.
18500: #
18501: # As a special exception to the GNU General Public License,
18502: # if you distribute this file as part of a program or library that
18503: # is built using GNU Libtool, you may include this file under the
18504: # same distribution terms that you use for the rest of that program.
18505: #
18506: # GNU Libtool is distributed in the hope that it will be useful,
18507: # but WITHOUT ANY WARRANTY; without even the implied warranty of
18508: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18509: # GNU General Public License for more details.
18510: #
18511: # You should have received a copy of the GNU General Public License
18512: # along with GNU Libtool; see the file COPYING. If not, a copy
18513: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18514: # obtained by writing to the Free Software Foundation, Inc.,
18515: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18516:
18517:
18518: # The names of the tagged configurations supported by this script.
18519: available_tags="CXX "
18520:
18521: # ### BEGIN LIBTOOL CONFIG
18522:
18523: # Which release of libtool.m4 was used?
18524: macro_version=$macro_version
18525: macro_revision=$macro_revision
18526:
1.31 moko 18527: # Whether or not to build static libraries.
18528: build_old_libs=$enable_static
18529:
1.25 moko 18530: # Assembler program.
18531: AS=$lt_AS
18532:
18533: # DLL creation program.
18534: DLLTOOL=$lt_DLLTOOL
18535:
18536: # Object dumper program.
18537: OBJDUMP=$lt_OBJDUMP
18538:
18539: # Whether or not to build shared libraries.
18540: build_libtool_libs=$enable_shared
18541:
18542: # What type of objects to build.
18543: pic_mode=$pic_mode
18544:
18545: # Whether or not to optimize for fast installation.
18546: fast_install=$enable_fast_install
18547:
18548: # Shell to use when invoking shell scripts.
18549: SHELL=$lt_SHELL
18550:
18551: # An echo program that protects backslashes.
18552: ECHO=$lt_ECHO
18553:
18554: # The PATH separator for the build system.
18555: PATH_SEPARATOR=$lt_PATH_SEPARATOR
18556:
18557: # The host system.
18558: host_alias=$host_alias
18559: host=$host
18560: host_os=$host_os
18561:
18562: # The build system.
18563: build_alias=$build_alias
18564: build=$build
18565: build_os=$build_os
18566:
18567: # A sed program that does not truncate output.
18568: SED=$lt_SED
18569:
18570: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18571: Xsed="\$SED -e 1s/^X//"
18572:
18573: # A grep program that handles long lines.
18574: GREP=$lt_GREP
18575:
18576: # An ERE matcher.
18577: EGREP=$lt_EGREP
18578:
18579: # A literal string matcher.
18580: FGREP=$lt_FGREP
18581:
18582: # A BSD- or MS-compatible name lister.
18583: NM=$lt_NM
18584:
18585: # Whether we need soft or hard links.
18586: LN_S=$lt_LN_S
18587:
18588: # What is the maximum length of a command?
18589: max_cmd_len=$max_cmd_len
18590:
18591: # Object file suffix (normally "o").
18592: objext=$ac_objext
18593:
18594: # Executable file suffix (normally "").
18595: exeext=$exeext
18596:
18597: # whether the shell understands "unset".
18598: lt_unset=$lt_unset
18599:
18600: # turn spaces into newlines.
18601: SP2NL=$lt_lt_SP2NL
18602:
18603: # turn newlines into spaces.
18604: NL2SP=$lt_lt_NL2SP
18605:
18606: # convert \$build file names to \$host format.
18607: to_host_file_cmd=$lt_cv_to_host_file_cmd
18608:
18609: # convert \$build files to toolchain format.
18610: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18611:
18612: # Method to check whether dependent libraries are shared objects.
18613: deplibs_check_method=$lt_deplibs_check_method
18614:
18615: # Command to use when deplibs_check_method = "file_magic".
18616: file_magic_cmd=$lt_file_magic_cmd
18617:
18618: # How to find potential files when deplibs_check_method = "file_magic".
18619: file_magic_glob=$lt_file_magic_glob
18620:
18621: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18622: want_nocaseglob=$lt_want_nocaseglob
18623:
18624: # Command to associate shared and link libraries.
18625: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18626:
18627: # The archiver.
18628: AR=$lt_AR
18629:
18630: # Flags to create an archive.
18631: AR_FLAGS=$lt_AR_FLAGS
18632:
18633: # How to feed a file listing to the archiver.
18634: archiver_list_spec=$lt_archiver_list_spec
18635:
18636: # A symbol stripping program.
18637: STRIP=$lt_STRIP
18638:
18639: # Commands used to install an old-style archive.
18640: RANLIB=$lt_RANLIB
18641: old_postinstall_cmds=$lt_old_postinstall_cmds
18642: old_postuninstall_cmds=$lt_old_postuninstall_cmds
18643:
18644: # Whether to use a lock for old archive extraction.
18645: lock_old_archive_extraction=$lock_old_archive_extraction
18646:
18647: # A C compiler.
18648: LTCC=$lt_CC
18649:
18650: # LTCC compiler flags.
18651: LTCFLAGS=$lt_CFLAGS
18652:
18653: # Take the output of nm and produce a listing of raw symbols and C names.
18654: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18655:
18656: # Transform the output of nm in a proper C declaration.
18657: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18658:
18659: # Transform the output of nm in a C name address pair.
18660: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18661:
18662: # Transform the output of nm in a C name address pair when lib prefix is needed.
18663: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18664:
18665: # Specify filename containing input files for \$NM.
18666: nm_file_list_spec=$lt_nm_file_list_spec
18667:
18668: # The root where to search for dependent libraries,and in which our libraries should be installed.
18669: lt_sysroot=$lt_sysroot
18670:
18671: # The name of the directory that contains temporary libtool files.
18672: objdir=$objdir
18673:
18674: # Used to examine libraries when file_magic_cmd begins with "file".
18675: MAGIC_CMD=$MAGIC_CMD
18676:
18677: # Must we lock files when doing compilation?
18678: need_locks=$lt_need_locks
18679:
18680: # Manifest tool.
18681: MANIFEST_TOOL=$lt_MANIFEST_TOOL
18682:
18683: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18684: DSYMUTIL=$lt_DSYMUTIL
18685:
18686: # Tool to change global to local symbols on Mac OS X.
18687: NMEDIT=$lt_NMEDIT
18688:
18689: # Tool to manipulate fat objects and archives on Mac OS X.
18690: LIPO=$lt_LIPO
18691:
18692: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18693: OTOOL=$lt_OTOOL
18694:
18695: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18696: OTOOL64=$lt_OTOOL64
18697:
18698: # Old archive suffix (normally "a").
18699: libext=$libext
18700:
18701: # Shared library suffix (normally ".so").
18702: shrext_cmds=$lt_shrext_cmds
18703:
18704: # The commands to extract the exported symbol list from a shared archive.
18705: extract_expsyms_cmds=$lt_extract_expsyms_cmds
18706:
18707: # Variables whose values should be saved in libtool wrapper scripts and
18708: # restored at link time.
18709: variables_saved_for_relink=$lt_variables_saved_for_relink
18710:
18711: # Do we need the "lib" prefix for modules?
18712: need_lib_prefix=$need_lib_prefix
18713:
18714: # Do we need a version for libraries?
18715: need_version=$need_version
18716:
18717: # Library versioning type.
18718: version_type=$version_type
18719:
18720: # Shared library runtime path variable.
18721: runpath_var=$runpath_var
18722:
18723: # Shared library path variable.
18724: shlibpath_var=$shlibpath_var
18725:
18726: # Is shlibpath searched before the hard-coded library search path?
18727: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18728:
18729: # Format of library name prefix.
18730: libname_spec=$lt_libname_spec
18731:
18732: # List of archive names. First name is the real one, the rest are links.
18733: # The last name is the one that the linker finds with -lNAME
18734: library_names_spec=$lt_library_names_spec
18735:
18736: # The coded name of the library, if different from the real name.
18737: soname_spec=$lt_soname_spec
18738:
18739: # Permission mode override for installation of shared libraries.
18740: install_override_mode=$lt_install_override_mode
18741:
18742: # Command to use after installation of a shared archive.
18743: postinstall_cmds=$lt_postinstall_cmds
18744:
18745: # Command to use after uninstallation of a shared archive.
18746: postuninstall_cmds=$lt_postuninstall_cmds
18747:
18748: # Commands used to finish a libtool library installation in a directory.
18749: finish_cmds=$lt_finish_cmds
18750:
18751: # As "finish_cmds", except a single script fragment to be evaled but
18752: # not shown.
18753: finish_eval=$lt_finish_eval
18754:
18755: # Whether we should hardcode library paths into libraries.
18756: hardcode_into_libs=$hardcode_into_libs
18757:
18758: # Compile-time system search path for libraries.
18759: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18760:
18761: # Run-time system search path for libraries.
18762: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18763:
18764: # Whether dlopen is supported.
18765: dlopen_support=$enable_dlopen
18766:
18767: # Whether dlopen of programs is supported.
18768: dlopen_self=$enable_dlopen_self
18769:
18770: # Whether dlopen of statically linked programs is supported.
18771: dlopen_self_static=$enable_dlopen_self_static
18772:
18773: # Commands to strip libraries.
18774: old_striplib=$lt_old_striplib
18775: striplib=$lt_striplib
18776:
18777:
18778: # The linker used to build libraries.
18779: LD=$lt_LD
18780:
18781: # How to create reloadable object files.
18782: reload_flag=$lt_reload_flag
18783: reload_cmds=$lt_reload_cmds
18784:
18785: # Commands used to build an old-style archive.
18786: old_archive_cmds=$lt_old_archive_cmds
18787:
18788: # A language specific compiler.
18789: CC=$lt_compiler
18790:
18791: # Is the compiler the GNU compiler?
18792: with_gcc=$GCC
18793:
18794: # Compiler flag to turn off builtin functions.
18795: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18796:
18797: # Additional compiler flags for building library objects.
18798: pic_flag=$lt_lt_prog_compiler_pic
18799:
18800: # How to pass a linker flag through the compiler.
18801: wl=$lt_lt_prog_compiler_wl
18802:
18803: # Compiler flag to prevent dynamic linking.
18804: link_static_flag=$lt_lt_prog_compiler_static
18805:
18806: # Does compiler simultaneously support -c and -o options?
18807: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18808:
18809: # Whether or not to add -lc for building shared libraries.
18810: build_libtool_need_lc=$archive_cmds_need_lc
18811:
18812: # Whether or not to disallow shared libs when runtime libs are static.
18813: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18814:
18815: # Compiler flag to allow reflexive dlopens.
18816: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18817:
18818: # Compiler flag to generate shared objects directly from archives.
18819: whole_archive_flag_spec=$lt_whole_archive_flag_spec
18820:
18821: # Whether the compiler copes with passing no objects directly.
18822: compiler_needs_object=$lt_compiler_needs_object
18823:
18824: # Create an old-style archive from a shared archive.
18825: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18826:
18827: # Create a temporary old-style archive to link instead of a shared archive.
18828: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18829:
18830: # Commands used to build a shared archive.
18831: archive_cmds=$lt_archive_cmds
18832: archive_expsym_cmds=$lt_archive_expsym_cmds
18833:
18834: # Commands used to build a loadable module if different from building
18835: # a shared archive.
18836: module_cmds=$lt_module_cmds
18837: module_expsym_cmds=$lt_module_expsym_cmds
18838:
18839: # Whether we are building with GNU ld or not.
18840: with_gnu_ld=$lt_with_gnu_ld
18841:
18842: # Flag that allows shared libraries with undefined symbols to be built.
18843: allow_undefined_flag=$lt_allow_undefined_flag
18844:
18845: # Flag that enforces no undefined symbols.
18846: no_undefined_flag=$lt_no_undefined_flag
18847:
18848: # Flag to hardcode \$libdir into a binary during linking.
18849: # This must work even if \$libdir does not exist
18850: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18851:
18852: # Whether we need a single "-rpath" flag with a separated argument.
18853: hardcode_libdir_separator=$lt_hardcode_libdir_separator
18854:
18855: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18856: # DIR into the resulting binary.
18857: hardcode_direct=$hardcode_direct
18858:
18859: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18860: # DIR into the resulting binary and the resulting library dependency is
18861: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18862: # library is relocated.
18863: hardcode_direct_absolute=$hardcode_direct_absolute
18864:
18865: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18866: # into the resulting binary.
18867: hardcode_minus_L=$hardcode_minus_L
18868:
18869: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18870: # into the resulting binary.
18871: hardcode_shlibpath_var=$hardcode_shlibpath_var
18872:
18873: # Set to "yes" if building a shared library automatically hardcodes DIR
18874: # into the library and all subsequent libraries and executables linked
18875: # against it.
18876: hardcode_automatic=$hardcode_automatic
18877:
18878: # Set to yes if linker adds runtime paths of dependent libraries
18879: # to runtime path list.
18880: inherit_rpath=$inherit_rpath
18881:
18882: # Whether libtool must link a program against all its dependency libraries.
18883: link_all_deplibs=$link_all_deplibs
18884:
18885: # Set to "yes" if exported symbols are required.
18886: always_export_symbols=$always_export_symbols
18887:
18888: # The commands to list exported symbols.
18889: export_symbols_cmds=$lt_export_symbols_cmds
18890:
18891: # Symbols that should not be listed in the preloaded symbols.
18892: exclude_expsyms=$lt_exclude_expsyms
18893:
18894: # Symbols that must always be exported.
18895: include_expsyms=$lt_include_expsyms
18896:
18897: # Commands necessary for linking programs (against libraries) with templates.
18898: prelink_cmds=$lt_prelink_cmds
18899:
18900: # Commands necessary for finishing linking programs.
18901: postlink_cmds=$lt_postlink_cmds
18902:
18903: # Specify filename containing input files.
18904: file_list_spec=$lt_file_list_spec
18905:
18906: # How to hardcode a shared library path into an executable.
18907: hardcode_action=$hardcode_action
18908:
18909: # The directories searched by this compiler when creating a shared library.
18910: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18911:
18912: # Dependencies to place before and after the objects being linked to
18913: # create a shared library.
18914: predep_objects=$lt_predep_objects
18915: postdep_objects=$lt_postdep_objects
18916: predeps=$lt_predeps
18917: postdeps=$lt_postdeps
18918:
18919: # The library search path used internally by the compiler when linking
18920: # a shared library.
18921: compiler_lib_search_path=$lt_compiler_lib_search_path
18922:
18923: # ### END LIBTOOL CONFIG
18924:
18925: _LT_EOF
18926:
18927: case $host_os in
18928: aix3*)
18929: cat <<\_LT_EOF >> "$cfgfile"
18930: # AIX sometimes has problems with the GCC collect2 program. For some
18931: # reason, if we set the COLLECT_NAMES environment variable, the problems
18932: # vanish in a puff of smoke.
18933: if test "X${COLLECT_NAMES+set}" != Xset; then
18934: COLLECT_NAMES=
18935: export COLLECT_NAMES
18936: fi
18937: _LT_EOF
18938: ;;
18939: esac
18940:
18941:
18942: ltmain="$ac_aux_dir/ltmain.sh"
18943:
18944:
18945: # We use sed instead of cat because bash on DJGPP gets confused if
18946: # if finds mixed CR/LF and LF-only lines. Since sed operates in
18947: # text mode, it properly converts lines to CR/LF. This bash problem
18948: # is reportedly fixed, but why not run on old versions too?
18949: sed '$q' "$ltmain" >> "$cfgfile" \
18950: || (rm -f "$cfgfile"; exit 1)
18951:
18952: if test x"$xsi_shell" = xyes; then
18953: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18954: func_dirname ()\
18955: {\
18956: \ case ${1} in\
18957: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18958: \ * ) func_dirname_result="${3}" ;;\
18959: \ esac\
18960: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18961: && mv -f "$cfgfile.tmp" "$cfgfile" \
18962: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18963: test 0 -eq $? || _lt_function_replace_fail=:
18964:
18965:
18966: sed -e '/^func_basename ()$/,/^} # func_basename /c\
18967: func_basename ()\
18968: {\
18969: \ func_basename_result="${1##*/}"\
18970: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18971: && mv -f "$cfgfile.tmp" "$cfgfile" \
18972: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18973: test 0 -eq $? || _lt_function_replace_fail=:
18974:
18975:
18976: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18977: func_dirname_and_basename ()\
18978: {\
18979: \ case ${1} in\
18980: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18981: \ * ) func_dirname_result="${3}" ;;\
18982: \ esac\
18983: \ func_basename_result="${1##*/}"\
18984: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18985: && mv -f "$cfgfile.tmp" "$cfgfile" \
18986: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18987: test 0 -eq $? || _lt_function_replace_fail=:
18988:
18989:
18990: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18991: func_stripname ()\
18992: {\
18993: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18994: \ # positional parameters, so assign one to ordinary parameter first.\
18995: \ func_stripname_result=${3}\
18996: \ func_stripname_result=${func_stripname_result#"${1}"}\
18997: \ func_stripname_result=${func_stripname_result%"${2}"}\
18998: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18999: && mv -f "$cfgfile.tmp" "$cfgfile" \
19000: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19001: test 0 -eq $? || _lt_function_replace_fail=:
19002:
19003:
19004: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19005: func_split_long_opt ()\
19006: {\
19007: \ func_split_long_opt_name=${1%%=*}\
19008: \ func_split_long_opt_arg=${1#*=}\
19009: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19010: && mv -f "$cfgfile.tmp" "$cfgfile" \
19011: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19012: test 0 -eq $? || _lt_function_replace_fail=:
19013:
19014:
19015: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19016: func_split_short_opt ()\
19017: {\
19018: \ func_split_short_opt_arg=${1#??}\
19019: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19020: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19021: && mv -f "$cfgfile.tmp" "$cfgfile" \
19022: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19023: test 0 -eq $? || _lt_function_replace_fail=:
19024:
19025:
19026: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19027: func_lo2o ()\
19028: {\
19029: \ case ${1} in\
19030: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19031: \ *) func_lo2o_result=${1} ;;\
19032: \ esac\
19033: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19034: && mv -f "$cfgfile.tmp" "$cfgfile" \
19035: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19036: test 0 -eq $? || _lt_function_replace_fail=:
19037:
19038:
19039: sed -e '/^func_xform ()$/,/^} # func_xform /c\
19040: func_xform ()\
19041: {\
19042: func_xform_result=${1%.*}.lo\
19043: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19044: && mv -f "$cfgfile.tmp" "$cfgfile" \
19045: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19046: test 0 -eq $? || _lt_function_replace_fail=:
19047:
19048:
19049: sed -e '/^func_arith ()$/,/^} # func_arith /c\
19050: func_arith ()\
19051: {\
19052: func_arith_result=$(( $* ))\
19053: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19054: && mv -f "$cfgfile.tmp" "$cfgfile" \
19055: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19056: test 0 -eq $? || _lt_function_replace_fail=:
19057:
19058:
19059: sed -e '/^func_len ()$/,/^} # func_len /c\
19060: func_len ()\
19061: {\
19062: func_len_result=${#1}\
19063: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19064: && mv -f "$cfgfile.tmp" "$cfgfile" \
19065: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19066: test 0 -eq $? || _lt_function_replace_fail=:
19067:
19068: fi
19069:
19070: if test x"$lt_shell_append" = xyes; then
19071: sed -e '/^func_append ()$/,/^} # func_append /c\
19072: func_append ()\
19073: {\
19074: eval "${1}+=\\${2}"\
19075: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19076: && mv -f "$cfgfile.tmp" "$cfgfile" \
19077: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19078: test 0 -eq $? || _lt_function_replace_fail=:
19079:
19080:
19081: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19082: func_append_quoted ()\
19083: {\
19084: \ func_quote_for_eval "${2}"\
19085: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19086: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19087: && mv -f "$cfgfile.tmp" "$cfgfile" \
19088: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19089: test 0 -eq $? || _lt_function_replace_fail=:
19090:
19091:
19092: # Save a `func_append' function call where possible by direct use of '+='
19093: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19094: && mv -f "$cfgfile.tmp" "$cfgfile" \
19095: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19096: test 0 -eq $? || _lt_function_replace_fail=:
19097: else
19098: # Save a `func_append' function call even when '+=' is not available
19099: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19100: && mv -f "$cfgfile.tmp" "$cfgfile" \
19101: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19102: test 0 -eq $? || _lt_function_replace_fail=:
19103: fi
19104:
19105: if test x"$_lt_function_replace_fail" = x":"; then
1.32 moko 19106: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19107: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.25 moko 19108: fi
19109:
19110:
19111: mv -f "$cfgfile" "$ofile" ||
19112: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19113: chmod +x "$ofile"
19114:
19115:
19116: cat <<_LT_EOF >> "$ofile"
19117:
19118: # ### BEGIN LIBTOOL TAG CONFIG: CXX
19119:
19120: # The linker used to build libraries.
19121: LD=$lt_LD_CXX
19122:
19123: # How to create reloadable object files.
19124: reload_flag=$lt_reload_flag_CXX
19125: reload_cmds=$lt_reload_cmds_CXX
19126:
19127: # Commands used to build an old-style archive.
19128: old_archive_cmds=$lt_old_archive_cmds_CXX
19129:
19130: # A language specific compiler.
19131: CC=$lt_compiler_CXX
19132:
19133: # Is the compiler the GNU compiler?
19134: with_gcc=$GCC_CXX
19135:
19136: # Compiler flag to turn off builtin functions.
19137: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19138:
19139: # Additional compiler flags for building library objects.
19140: pic_flag=$lt_lt_prog_compiler_pic_CXX
19141:
19142: # How to pass a linker flag through the compiler.
19143: wl=$lt_lt_prog_compiler_wl_CXX
19144:
19145: # Compiler flag to prevent dynamic linking.
19146: link_static_flag=$lt_lt_prog_compiler_static_CXX
19147:
19148: # Does compiler simultaneously support -c and -o options?
19149: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19150:
19151: # Whether or not to add -lc for building shared libraries.
19152: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19153:
19154: # Whether or not to disallow shared libs when runtime libs are static.
19155: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19156:
19157: # Compiler flag to allow reflexive dlopens.
19158: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19159:
19160: # Compiler flag to generate shared objects directly from archives.
19161: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19162:
19163: # Whether the compiler copes with passing no objects directly.
19164: compiler_needs_object=$lt_compiler_needs_object_CXX
19165:
19166: # Create an old-style archive from a shared archive.
19167: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19168:
19169: # Create a temporary old-style archive to link instead of a shared archive.
19170: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19171:
19172: # Commands used to build a shared archive.
19173: archive_cmds=$lt_archive_cmds_CXX
19174: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19175:
19176: # Commands used to build a loadable module if different from building
19177: # a shared archive.
19178: module_cmds=$lt_module_cmds_CXX
19179: module_expsym_cmds=$lt_module_expsym_cmds_CXX
19180:
19181: # Whether we are building with GNU ld or not.
19182: with_gnu_ld=$lt_with_gnu_ld_CXX
19183:
19184: # Flag that allows shared libraries with undefined symbols to be built.
19185: allow_undefined_flag=$lt_allow_undefined_flag_CXX
19186:
19187: # Flag that enforces no undefined symbols.
19188: no_undefined_flag=$lt_no_undefined_flag_CXX
19189:
19190: # Flag to hardcode \$libdir into a binary during linking.
19191: # This must work even if \$libdir does not exist
19192: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19193:
19194: # Whether we need a single "-rpath" flag with a separated argument.
19195: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19196:
19197: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19198: # DIR into the resulting binary.
19199: hardcode_direct=$hardcode_direct_CXX
19200:
19201: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19202: # DIR into the resulting binary and the resulting library dependency is
19203: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19204: # library is relocated.
19205: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19206:
19207: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19208: # into the resulting binary.
19209: hardcode_minus_L=$hardcode_minus_L_CXX
19210:
19211: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19212: # into the resulting binary.
19213: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19214:
19215: # Set to "yes" if building a shared library automatically hardcodes DIR
19216: # into the library and all subsequent libraries and executables linked
19217: # against it.
19218: hardcode_automatic=$hardcode_automatic_CXX
19219:
19220: # Set to yes if linker adds runtime paths of dependent libraries
19221: # to runtime path list.
19222: inherit_rpath=$inherit_rpath_CXX
19223:
19224: # Whether libtool must link a program against all its dependency libraries.
19225: link_all_deplibs=$link_all_deplibs_CXX
19226:
19227: # Set to "yes" if exported symbols are required.
19228: always_export_symbols=$always_export_symbols_CXX
19229:
19230: # The commands to list exported symbols.
19231: export_symbols_cmds=$lt_export_symbols_cmds_CXX
19232:
19233: # Symbols that should not be listed in the preloaded symbols.
19234: exclude_expsyms=$lt_exclude_expsyms_CXX
1.11 paf 19235:
1.25 moko 19236: # Symbols that must always be exported.
19237: include_expsyms=$lt_include_expsyms_CXX
1.1 parser 19238:
1.25 moko 19239: # Commands necessary for linking programs (against libraries) with templates.
19240: prelink_cmds=$lt_prelink_cmds_CXX
1.18 paf 19241:
1.25 moko 19242: # Commands necessary for finishing linking programs.
19243: postlink_cmds=$lt_postlink_cmds_CXX
1.11 paf 19244:
1.25 moko 19245: # Specify filename containing input files.
19246: file_list_spec=$lt_file_list_spec_CXX
1.11 paf 19247:
1.25 moko 19248: # How to hardcode a shared library path into an executable.
19249: hardcode_action=$hardcode_action_CXX
1.18 paf 19250:
1.25 moko 19251: # The directories searched by this compiler when creating a shared library.
19252: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
1.11 paf 19253:
1.25 moko 19254: # Dependencies to place before and after the objects being linked to
19255: # create a shared library.
19256: predep_objects=$lt_predep_objects_CXX
19257: postdep_objects=$lt_postdep_objects_CXX
19258: predeps=$lt_predeps_CXX
19259: postdeps=$lt_postdeps_CXX
19260:
19261: # The library search path used internally by the compiler when linking
19262: # a shared library.
19263: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1.11 paf 19264:
1.25 moko 19265: # ### END LIBTOOL TAG CONFIG: CXX
19266: _LT_EOF
1.1 parser 19267:
1.11 paf 19268: ;;
1.32 moko 19269:
1.11 paf 19270: esac
1.32 moko 19271: done # for ac_tag
1.1 parser 19272:
19273:
1.32 moko 19274: as_fn_exit 0
1.11 paf 19275: _ACEOF
19276: ac_clean_files=$ac_clean_files_save
19277:
1.32 moko 19278: test $ac_write_fail = 0 ||
19279: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19280:
1.11 paf 19281:
19282: # configure is writing to config.log, and then calls config.status.
19283: # config.status does its own redirection, appending to config.log.
19284: # Unfortunately, on DOS this fails, as config.log is still kept open
19285: # by configure, so config.status won't be able to write to it; its
19286: # output is simply discarded. So we exec the FD to /dev/null,
19287: # effectively closing config.log, so it can be properly (re)opened and
19288: # appended to by config.status. When coming back to configure, we
19289: # need to make the FD available again.
19290: if test "$no_create" != yes; then
19291: ac_cs_success=:
19292: ac_config_status_args=
19293: test "$silent" = yes &&
19294: ac_config_status_args="$ac_config_status_args --quiet"
19295: exec 5>/dev/null
19296: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19297: exec 5>>config.log
19298: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19299: # would make configure fail if this is the last instruction.
1.32 moko 19300: $ac_cs_success || as_fn_exit 1
1.11 paf 19301: fi
1.1 parser 19302:
1.11 paf 19303: #
19304: # CONFIG_SUBDIRS section.
19305: #
1.1 parser 19306: if test "$no_recursion" != yes; then
19307:
1.32 moko 19308: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19309: # so they do not pile up.
1.1 parser 19310: ac_sub_configure_args=
19311: ac_prev=
1.32 moko 19312: eval "set x $ac_configure_args"
19313: shift
19314: for ac_arg
19315: do
1.1 parser 19316: if test -n "$ac_prev"; then
19317: ac_prev=
19318: continue
19319: fi
1.11 paf 19320: case $ac_arg in
1.1 parser 19321: -cache-file | --cache-file | --cache-fil | --cache-fi \
19322: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19323: ac_prev=cache_file ;;
19324: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.11 paf 19325: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19326: | --c=*)
19327: ;;
19328: --config-cache | -C)
1.1 parser 19329: ;;
19330: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19331: ac_prev=srcdir ;;
19332: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19333: ;;
1.11 paf 19334: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19335: ac_prev=prefix ;;
19336: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19337: ;;
1.32 moko 19338: --disable-option-checking)
19339: ;;
19340: *)
19341: case $ac_arg in
19342: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19343: esac
19344: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 parser 19345: esac
19346: done
19347:
1.11 paf 19348: # Always prepend --prefix to ensure using the same prefix
19349: # in subdir configurations.
1.32 moko 19350: ac_arg="--prefix=$prefix"
19351: case $ac_arg in
19352: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19353: esac
19354: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19355:
19356: # Pass --silent
19357: if test "$silent" = yes; then
19358: ac_sub_configure_args="--silent $ac_sub_configure_args"
19359: fi
19360:
19361: # Always prepend --disable-option-checking to silence warnings, since
19362: # different subdirs can have different --enable and --with options.
19363: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.11 paf 19364:
19365: ac_popdir=`pwd`
19366: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 19367:
19368: # Do not complain, so a configure script can configure whichever
19369: # parts of a large source tree are present.
1.32 moko 19370: test -d "$srcdir/$ac_dir" || continue
1.11 paf 19371:
1.32 moko 19372: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19373: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19374: $as_echo "$ac_msg" >&6
19375: as_dir="$ac_dir"; as_fn_mkdir_p
1.11 paf 19376: ac_builddir=.
19377:
1.32 moko 19378: case "$ac_dir" in
19379: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19380: *)
19381: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19382: # A ".." for each directory in $ac_dir_suffix.
19383: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19384: case $ac_top_builddir_sub in
19385: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19386: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19387: esac ;;
19388: esac
19389: ac_abs_top_builddir=$ac_pwd
19390: ac_abs_builddir=$ac_pwd$ac_dir_suffix
19391: # for backward compatibility:
19392: ac_top_builddir=$ac_top_build_prefix
1.11 paf 19393:
19394: case $srcdir in
1.32 moko 19395: .) # We are building in place.
1.11 paf 19396: ac_srcdir=.
1.32 moko 19397: ac_top_srcdir=$ac_top_builddir_sub
19398: ac_abs_top_srcdir=$ac_pwd ;;
19399: [\\/]* | ?:[\\/]* ) # Absolute name.
1.11 paf 19400: ac_srcdir=$srcdir$ac_dir_suffix;
1.32 moko 19401: ac_top_srcdir=$srcdir
19402: ac_abs_top_srcdir=$srcdir ;;
19403: *) # Relative name.
19404: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19405: ac_top_srcdir=$ac_top_build_prefix$srcdir
19406: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.18 paf 19407: esac
1.32 moko 19408: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 parser 19409:
19410:
1.32 moko 19411: cd "$ac_dir"
1.1 parser 19412:
19413: # Check for guested configure; otherwise get Cygnus style configure.
1.32 moko 19414: if test -f "$ac_srcdir/configure.gnu"; then
19415: ac_sub_configure=$ac_srcdir/configure.gnu
19416: elif test -f "$ac_srcdir/configure"; then
19417: ac_sub_configure=$ac_srcdir/configure
19418: elif test -f "$ac_srcdir/configure.in"; then
19419: # This should be Cygnus configure.
19420: ac_sub_configure=$ac_aux_dir/configure
1.1 parser 19421: else
1.32 moko 19422: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19423: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 19424: ac_sub_configure=
19425: fi
19426:
19427: # The recursion is here.
19428: if test -n "$ac_sub_configure"; then
19429: # Make the cache file name correct relative to the subdirectory.
1.11 paf 19430: case $cache_file in
19431: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.32 moko 19432: *) # Relative name.
19433: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 parser 19434: esac
19435:
1.32 moko 19436: { $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
19437: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 19438: # The eval makes quoting arguments work.
1.32 moko 19439: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19440: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19441: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 parser 19442: fi
19443:
1.32 moko 19444: cd "$ac_popdir"
1.1 parser 19445: done
19446: fi
1.32 moko 19447: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19448: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19449: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19450: fi
1.1 parser 19451:
E-mail: