Annotation of sql/pgsql/configure, revision 1.37
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.36 moko 3: # Generated by GNU Autoconf 2.69 for parser3pgsql 10.5.
1.31 moko 4: #
5: #
1.34 moko 6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.31 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.31 moko 11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
1.10 paf 14:
1.31 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.10 paf 18: emulate sh
19: NULLCMD=:
1.31 moko 20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.10 paf 21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
1.31 moko 23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
1.10 paf 70: fi
71:
1.31 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.10 paf 79: fi
80:
81:
1.31 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.10 paf 122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
1.31 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.34 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.31 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.34 moko 193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
1.31 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.10 paf 219: do
1.31 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.34 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.31 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.10 paf 274: else
1.31 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.10 paf 279: fi
1.31 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.34 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.31 moko 375: # as_fn_append VAR VALUE
376: # ----------------------
377: # Append the text in VALUE to the end of the definition contained in VAR. Take
378: # advantage of any shell optimizations that allow amortized linear growth over
379: # repeated appends, instead of the typical quadratic growth present in naive
380: # implementations.
381: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382: eval 'as_fn_append ()
383: {
384: eval $1+=\$2
385: }'
386: else
387: as_fn_append ()
388: {
389: eval $1=\$$1\$2
390: }
391: fi # as_fn_append
392:
393: # as_fn_arith ARG...
394: # ------------------
395: # Perform arithmetic evaluation on the ARGs, and store the result in the
396: # global $as_val. Take advantage of shells that can avoid forks. The arguments
397: # must be portable across $(()) and expr.
398: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399: eval 'as_fn_arith ()
400: {
401: as_val=$(( $* ))
402: }'
403: else
404: as_fn_arith ()
405: {
406: as_val=`expr "$@" || test $? -eq 1`
407: }
408: fi # as_fn_arith
409:
410:
411: # as_fn_error STATUS ERROR [LINENO LOG_FD]
412: # ----------------------------------------
413: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415: # script with STATUS, using 1 if that was 0.
416: as_fn_error ()
417: {
418: as_status=$1; test $as_status -eq 0 && as_status=1
419: if test "$4"; then
420: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422: fi
423: $as_echo "$as_me: error: $2" >&2
424: as_fn_exit $as_status
425: } # as_fn_error
1.10 paf 426:
1.31 moko 427: if expr a : '\(a\)' >/dev/null 2>&1 &&
428: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.10 paf 429: as_expr=expr
430: else
431: as_expr=false
432: fi
433:
1.31 moko 434: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.10 paf 435: as_basename=basename
436: else
437: as_basename=false
438: fi
439:
1.31 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.10 paf 445:
1.31 moko 446: as_me=`$as_basename -- "$0" ||
1.10 paf 447: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448: X"$0" : 'X\(//\)$' \| \
1.31 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.10 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.31 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.10 paf 482: sed '
1.31 moko 483: s/[$]LINENO.*/&-/
484: t lineno
485: b
486: :lineno
1.10 paf 487: N
1.31 moko 488: :loop
489: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.10 paf 490: t loop
1.31 moko 491: s/-\n.*//
1.10 paf 492: ' >$as_me.lineno &&
1.31 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.10 paf 495:
1.34 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.10 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.31 moko 502: # original and so on. Autoconf is especially sensitive to this).
503: . "./$as_me.lineno"
1.10 paf 504: # Exit status is that of the last command.
505: exit
506: }
507:
1.31 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.10 paf 519: esac
520:
1.31 moko 521: rm -f conf$$ conf$$.exe conf$$.file
522: if test -d conf$$.dir; then
523: rm -f conf$$.dir/conf$$.file
1.10 paf 524: else
1.31 moko 525: rm -f conf$$.dir
526: mkdir conf$$.dir 2>/dev/null
1.10 paf 527: fi
1.31 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.34 moko 534: # In both cases, we have to default to `cp -pR'.
1.31 moko 535: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.34 moko 536: as_ln_s='cp -pR'
1.31 moko 537: elif ln conf$$.file conf$$ 2>/dev/null; then
538: as_ln_s=ln
539: else
1.34 moko 540: as_ln_s='cp -pR'
1.10 paf 541: fi
542: else
1.34 moko 543: as_ln_s='cp -pR'
1.10 paf 544: fi
1.31 moko 545: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546: rmdir conf$$.dir 2>/dev/null
1.10 paf 547:
548: if mkdir -p . 2>/dev/null; then
1.31 moko 549: as_mkdir_p='mkdir -p "$as_dir"'
1.10 paf 550: else
1.16 paf 551: test -d ./-p && rmdir ./-p
1.10 paf 552: as_mkdir_p=false
553: fi
554:
1.34 moko 555: as_test_x='test -x'
556: as_executable_p=as_fn_executable_p
1.10 paf 557:
558: # Sed expression to map a string onto a valid CPP name.
1.16 paf 559: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 560:
561: # Sed expression to map a string onto a valid variable name.
1.16 paf 562: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 563:
1.23 moko 564: lt_ltdl_dir='libltdl'
1.10 paf 565:
566: SHELL=${CONFIG_SHELL-/bin/sh}
567:
1.23 moko 568: lt_dlopen_dir="$lt_ltdl_dir"
1.10 paf 569:
570:
1.31 moko 571: test -n "$DJDIR" || exec 7<&0 </dev/null
572: exec 6>&1
573:
1.10 paf 574: # Name of the host.
1.31 moko 575: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.10 paf 576: # so uname gets run too.
577: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 578:
1.10 paf 579: #
580: # Initializations.
581: #
1.1 parser 582: ac_default_prefix=/usr/local
1.31 moko 583: ac_clean_files=
1.10 paf 584: ac_config_libobj_dir=.
1.31 moko 585: LIBOBJS=
1.10 paf 586: cross_compiling=no
587: subdirs=
588: MFLAGS=
589: MAKEFLAGS=
590:
591: # Identity of this package.
1.35 moko 592: PACKAGE_NAME='parser3pgsql'
593: PACKAGE_TARNAME='parser3pgsql'
1.36 moko 594: PACKAGE_VERSION='10.5'
595: PACKAGE_STRING='parser3pgsql 10.5'
1.23 moko 596: PACKAGE_BUGREPORT=''
1.31 moko 597: PACKAGE_URL=''
1.10 paf 598:
599: ac_unique_file="parser3pgsql.C"
600: # Factoring default headers for most tests.
601: ac_includes_default="\
602: #include <stdio.h>
1.31 moko 603: #ifdef HAVE_SYS_TYPES_H
1.10 paf 604: # include <sys/types.h>
605: #endif
1.31 moko 606: #ifdef HAVE_SYS_STAT_H
1.10 paf 607: # include <sys/stat.h>
608: #endif
1.31 moko 609: #ifdef STDC_HEADERS
1.10 paf 610: # include <stdlib.h>
611: # include <stddef.h>
612: #else
1.31 moko 613: # ifdef HAVE_STDLIB_H
1.10 paf 614: # include <stdlib.h>
615: # endif
616: #endif
1.31 moko 617: #ifdef HAVE_STRING_H
618: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.10 paf 619: # include <memory.h>
620: # endif
621: # include <string.h>
622: #endif
1.31 moko 623: #ifdef HAVE_STRINGS_H
1.10 paf 624: # include <strings.h>
625: #endif
1.31 moko 626: #ifdef HAVE_INTTYPES_H
1.10 paf 627: # include <inttypes.h>
628: #endif
1.31 moko 629: #ifdef HAVE_STDINT_H
630: # include <stdint.h>
631: #endif
632: #ifdef HAVE_UNISTD_H
1.10 paf 633: # include <unistd.h>
634: #endif"
635:
1.31 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: PGSQL_INC
717: am__untar
718: am__tar
719: AMTAR
720: am__leading_dot
721: SET_MAKE
722: AWK
723: mkdir_p
724: MKDIR_P
725: INSTALL_STRIP_PROGRAM
726: STRIP
727: install_sh
728: MAKEINFO
729: AUTOHEADER
730: AUTOMAKE
731: AUTOCONF
732: ACLOCAL
733: VERSION
734: PACKAGE
735: CYGPATH_W
736: am__isrc
737: INSTALL_DATA
738: INSTALL_SCRIPT
739: INSTALL_PROGRAM
740: target_alias
741: host_alias
742: build_alias
743: LIBS
744: ECHO_T
745: ECHO_N
746: ECHO_C
747: DEFS
748: mandir
749: localedir
750: libdir
751: psdir
752: pdfdir
753: dvidir
754: htmldir
755: infodir
756: docdir
757: oldincludedir
758: includedir
759: localstatedir
760: sharedstatedir
761: sysconfdir
762: datadir
763: datarootdir
764: libexecdir
765: sbindir
766: bindir
767: program_transform_name
768: prefix
769: exec_prefix
770: PACKAGE_URL
771: PACKAGE_BUGREPORT
772: PACKAGE_STRING
773: PACKAGE_VERSION
774: PACKAGE_TARNAME
775: PACKAGE_NAME
776: PATH_SEPARATOR
777: SHELL'
1.10 paf 778: ac_subst_files=''
1.31 moko 779: ac_user_opts='
780: enable_option_checking
781: with_pgsql_inc
782: enable_dependency_tracking
783: enable_static
784: enable_shared
785: with_pic
786: enable_fast_install
787: with_gnu_ld
788: with_sysroot
789: enable_libtool_lock
790: with_included_ltdl
791: with_ltdl_include
792: with_ltdl_lib
793: enable_ltdl_install
794: '
795: ac_precious_vars='build_alias
796: host_alias
797: target_alias
798: CXX
799: CXXFLAGS
800: LDFLAGS
801: LIBS
802: CPPFLAGS
803: CCC
804: CC
805: CFLAGS
806: CPP
807: CXXCPP'
808: ac_subdirs_all='libltdl'
1.1 parser 809:
810: # Initialize some variables set by options.
1.10 paf 811: ac_init_help=
812: ac_init_version=false
1.31 moko 813: ac_unrecognized_opts=
814: ac_unrecognized_sep=
1.1 parser 815: # The variables have the same names as the options, with
816: # dashes changed to underlines.
1.10 paf 817: cache_file=/dev/null
1.1 parser 818: exec_prefix=NONE
819: no_create=
820: no_recursion=
821: prefix=NONE
822: program_prefix=NONE
823: program_suffix=NONE
824: program_transform_name=s,x,x,
825: silent=
826: site=
827: srcdir=
828: verbose=
829: x_includes=NONE
830: x_libraries=NONE
1.10 paf 831:
832: # Installation directory options.
833: # These are left unexpanded so users can "make install exec_prefix=/foo"
834: # and all the variables that are supposed to be based on exec_prefix
835: # by default will actually change.
836: # Use braces instead of parens because sh, perl, etc. also accept them.
1.31 moko 837: # (The list follows the same order as the GNU Coding Standards.)
1.1 parser 838: bindir='${exec_prefix}/bin'
839: sbindir='${exec_prefix}/sbin'
840: libexecdir='${exec_prefix}/libexec'
1.31 moko 841: datarootdir='${prefix}/share'
842: datadir='${datarootdir}'
1.1 parser 843: sysconfdir='${prefix}/etc'
844: sharedstatedir='${prefix}/com'
845: localstatedir='${prefix}/var'
846: includedir='${prefix}/include'
847: oldincludedir='/usr/include'
1.31 moko 848: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849: infodir='${datarootdir}/info'
850: htmldir='${docdir}'
851: dvidir='${docdir}'
852: pdfdir='${docdir}'
853: psdir='${docdir}'
854: libdir='${exec_prefix}/lib'
855: localedir='${datarootdir}/locale'
856: mandir='${datarootdir}/man'
1.1 parser 857:
858: ac_prev=
1.31 moko 859: ac_dashdash=
1.1 parser 860: for ac_option
861: do
862: # If the previous option needs an argument, assign it.
863: if test -n "$ac_prev"; then
1.31 moko 864: eval $ac_prev=\$ac_option
1.1 parser 865: ac_prev=
866: continue
867: fi
868:
1.31 moko 869: case $ac_option in
870: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871: *=) ac_optarg= ;;
872: *) ac_optarg=yes ;;
873: esac
1.1 parser 874:
875: # Accept the important Cygnus configure options, so we can diagnose typos.
876:
1.31 moko 877: case $ac_dashdash$ac_option in
878: --)
879: ac_dashdash=yes ;;
1.1 parser 880:
881: -bindir | --bindir | --bindi | --bind | --bin | --bi)
882: ac_prev=bindir ;;
883: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.10 paf 884: bindir=$ac_optarg ;;
1.1 parser 885:
886: -build | --build | --buil | --bui | --bu)
1.10 paf 887: ac_prev=build_alias ;;
1.1 parser 888: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.10 paf 889: build_alias=$ac_optarg ;;
1.1 parser 890:
891: -cache-file | --cache-file | --cache-fil | --cache-fi \
892: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893: ac_prev=cache_file ;;
894: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.10 paf 896: cache_file=$ac_optarg ;;
897:
898: --config-cache | -C)
899: cache_file=config.cache ;;
1.1 parser 900:
1.31 moko 901: -datadir | --datadir | --datadi | --datad)
1.1 parser 902: ac_prev=datadir ;;
1.31 moko 903: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.10 paf 904: datadir=$ac_optarg ;;
1.1 parser 905:
1.31 moko 906: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907: | --dataroo | --dataro | --datar)
908: ac_prev=datarootdir ;;
909: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911: datarootdir=$ac_optarg ;;
912:
1.1 parser 913: -disable-* | --disable-*)
1.31 moko 914: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 915: # Reject names that are not valid shell variable names.
1.31 moko 916: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917: as_fn_error $? "invalid feature name: $ac_useropt"
918: ac_useropt_orig=$ac_useropt
919: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920: case $ac_user_opts in
921: *"
922: "enable_$ac_useropt"
923: "*) ;;
924: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925: ac_unrecognized_sep=', ';;
926: esac
927: eval enable_$ac_useropt=no ;;
928:
929: -docdir | --docdir | --docdi | --doc | --do)
930: ac_prev=docdir ;;
931: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932: docdir=$ac_optarg ;;
933:
934: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935: ac_prev=dvidir ;;
936: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937: dvidir=$ac_optarg ;;
1.1 parser 938:
939: -enable-* | --enable-*)
1.31 moko 940: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 941: # Reject names that are not valid shell variable names.
1.31 moko 942: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943: as_fn_error $? "invalid feature name: $ac_useropt"
944: ac_useropt_orig=$ac_useropt
945: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946: case $ac_user_opts in
947: *"
948: "enable_$ac_useropt"
949: "*) ;;
950: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951: ac_unrecognized_sep=', ';;
1.1 parser 952: esac
1.31 moko 953: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 parser 954:
955: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957: | --exec | --exe | --ex)
958: ac_prev=exec_prefix ;;
959: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961: | --exec=* | --exe=* | --ex=*)
1.10 paf 962: exec_prefix=$ac_optarg ;;
1.1 parser 963:
964: -gas | --gas | --ga | --g)
965: # Obsolete; use --with-gas.
966: with_gas=yes ;;
967:
1.10 paf 968: -help | --help | --hel | --he | -h)
969: ac_init_help=long ;;
970: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971: ac_init_help=recursive ;;
972: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973: ac_init_help=short ;;
1.1 parser 974:
975: -host | --host | --hos | --ho)
1.10 paf 976: ac_prev=host_alias ;;
1.1 parser 977: -host=* | --host=* | --hos=* | --ho=*)
1.10 paf 978: host_alias=$ac_optarg ;;
1.1 parser 979:
1.31 moko 980: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981: ac_prev=htmldir ;;
982: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983: | --ht=*)
984: htmldir=$ac_optarg ;;
985:
1.1 parser 986: -includedir | --includedir | --includedi | --included | --include \
987: | --includ | --inclu | --incl | --inc)
988: ac_prev=includedir ;;
989: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.10 paf 991: includedir=$ac_optarg ;;
1.1 parser 992:
993: -infodir | --infodir | --infodi | --infod | --info | --inf)
994: ac_prev=infodir ;;
995: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.10 paf 996: infodir=$ac_optarg ;;
1.1 parser 997:
998: -libdir | --libdir | --libdi | --libd)
999: ac_prev=libdir ;;
1000: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.10 paf 1001: libdir=$ac_optarg ;;
1.1 parser 1002:
1003: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004: | --libexe | --libex | --libe)
1005: ac_prev=libexecdir ;;
1006: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007: | --libexe=* | --libex=* | --libe=*)
1.10 paf 1008: libexecdir=$ac_optarg ;;
1.1 parser 1009:
1.31 moko 1010: -localedir | --localedir | --localedi | --localed | --locale)
1011: ac_prev=localedir ;;
1012: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013: localedir=$ac_optarg ;;
1014:
1.1 parser 1015: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.31 moko 1016: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 parser 1017: ac_prev=localstatedir ;;
1018: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.31 moko 1019: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.10 paf 1020: localstatedir=$ac_optarg ;;
1.1 parser 1021:
1022: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023: ac_prev=mandir ;;
1024: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.10 paf 1025: mandir=$ac_optarg ;;
1.1 parser 1026:
1027: -nfp | --nfp | --nf)
1028: # Obsolete; use --without-fp.
1029: with_fp=no ;;
1030:
1031: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.10 paf 1032: | --no-cr | --no-c | -n)
1.1 parser 1033: no_create=yes ;;
1034:
1035: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037: no_recursion=yes ;;
1038:
1039: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041: | --oldin | --oldi | --old | --ol | --o)
1042: ac_prev=oldincludedir ;;
1043: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.10 paf 1046: oldincludedir=$ac_optarg ;;
1.1 parser 1047:
1048: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049: ac_prev=prefix ;;
1050: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.10 paf 1051: prefix=$ac_optarg ;;
1.1 parser 1052:
1053: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054: | --program-pre | --program-pr | --program-p)
1055: ac_prev=program_prefix ;;
1056: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.10 paf 1058: program_prefix=$ac_optarg ;;
1.1 parser 1059:
1060: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061: | --program-suf | --program-su | --program-s)
1062: ac_prev=program_suffix ;;
1063: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.10 paf 1065: program_suffix=$ac_optarg ;;
1.1 parser 1066:
1067: -program-transform-name | --program-transform-name \
1068: | --program-transform-nam | --program-transform-na \
1069: | --program-transform-n | --program-transform- \
1070: | --program-transform | --program-transfor \
1071: | --program-transfo | --program-transf \
1072: | --program-trans | --program-tran \
1073: | --progr-tra | --program-tr | --program-t)
1074: ac_prev=program_transform_name ;;
1075: -program-transform-name=* | --program-transform-name=* \
1076: | --program-transform-nam=* | --program-transform-na=* \
1077: | --program-transform-n=* | --program-transform-=* \
1078: | --program-transform=* | --program-transfor=* \
1079: | --program-transfo=* | --program-transf=* \
1080: | --program-trans=* | --program-tran=* \
1081: | --progr-tra=* | --program-tr=* | --program-t=*)
1.10 paf 1082: program_transform_name=$ac_optarg ;;
1.1 parser 1083:
1.31 moko 1084: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085: ac_prev=pdfdir ;;
1086: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087: pdfdir=$ac_optarg ;;
1088:
1089: -psdir | --psdir | --psdi | --psd | --ps)
1090: ac_prev=psdir ;;
1091: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092: psdir=$ac_optarg ;;
1093:
1.1 parser 1094: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095: | -silent | --silent | --silen | --sile | --sil)
1096: silent=yes ;;
1097:
1098: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099: ac_prev=sbindir ;;
1100: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101: | --sbi=* | --sb=*)
1.10 paf 1102: sbindir=$ac_optarg ;;
1.1 parser 1103:
1104: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106: | --sharedst | --shareds | --shared | --share | --shar \
1107: | --sha | --sh)
1108: ac_prev=sharedstatedir ;;
1109: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112: | --sha=* | --sh=*)
1.10 paf 1113: sharedstatedir=$ac_optarg ;;
1.1 parser 1114:
1115: -site | --site | --sit)
1116: ac_prev=site ;;
1117: -site=* | --site=* | --sit=*)
1.10 paf 1118: site=$ac_optarg ;;
1.1 parser 1119:
1120: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121: ac_prev=srcdir ;;
1122: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.10 paf 1123: srcdir=$ac_optarg ;;
1.1 parser 1124:
1125: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126: | --syscon | --sysco | --sysc | --sys | --sy)
1127: ac_prev=sysconfdir ;;
1128: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.10 paf 1130: sysconfdir=$ac_optarg ;;
1.1 parser 1131:
1132: -target | --target | --targe | --targ | --tar | --ta | --t)
1.10 paf 1133: ac_prev=target_alias ;;
1.1 parser 1134: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.10 paf 1135: target_alias=$ac_optarg ;;
1.1 parser 1136:
1137: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138: verbose=yes ;;
1139:
1.10 paf 1140: -version | --version | --versio | --versi | --vers | -V)
1141: ac_init_version=: ;;
1.1 parser 1142:
1143: -with-* | --with-*)
1.31 moko 1144: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 1145: # Reject names that are not valid shell variable names.
1.31 moko 1146: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147: as_fn_error $? "invalid package name: $ac_useropt"
1148: ac_useropt_orig=$ac_useropt
1149: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150: case $ac_user_opts in
1151: *"
1152: "with_$ac_useropt"
1153: "*) ;;
1154: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155: ac_unrecognized_sep=', ';;
1.1 parser 1156: esac
1.31 moko 1157: eval with_$ac_useropt=\$ac_optarg ;;
1.1 parser 1158:
1159: -without-* | --without-*)
1.31 moko 1160: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 1161: # Reject names that are not valid shell variable names.
1.31 moko 1162: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163: as_fn_error $? "invalid package name: $ac_useropt"
1164: ac_useropt_orig=$ac_useropt
1165: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166: case $ac_user_opts in
1167: *"
1168: "with_$ac_useropt"
1169: "*) ;;
1170: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171: ac_unrecognized_sep=', ';;
1172: esac
1173: eval with_$ac_useropt=no ;;
1.1 parser 1174:
1175: --x)
1176: # Obsolete; use --with-x.
1177: with_x=yes ;;
1178:
1179: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180: | --x-incl | --x-inc | --x-in | --x-i)
1181: ac_prev=x_includes ;;
1182: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.10 paf 1184: x_includes=$ac_optarg ;;
1.1 parser 1185:
1186: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188: ac_prev=x_libraries ;;
1189: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.10 paf 1191: x_libraries=$ac_optarg ;;
1.1 parser 1192:
1.31 moko 1193: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194: Try \`$0 --help' for more information"
1.1 parser 1195: ;;
1196:
1.10 paf 1197: *=*)
1198: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199: # Reject names that are not valid shell variable names.
1.31 moko 1200: case $ac_envvar in #(
1201: '' | [0-9]* | *[!_$as_cr_alnum]* )
1202: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203: esac
1204: eval $ac_envvar=\$ac_optarg
1.10 paf 1205: export $ac_envvar ;;
1206:
1.1 parser 1207: *)
1.10 paf 1208: # FIXME: should be removed in autoconf 3.0.
1.31 moko 1209: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.10 paf 1210: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.31 moko 1211: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 parser 1213: ;;
1214:
1215: esac
1216: done
1217:
1218: if test -n "$ac_prev"; then
1.10 paf 1219: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.31 moko 1220: as_fn_error $? "missing argument to $ac_option"
1221: fi
1222:
1223: if test -n "$ac_unrecognized_opts"; then
1224: case $enable_option_checking in
1225: no) ;;
1226: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228: esac
1.1 parser 1229: fi
1230:
1.31 moko 1231: # Check all directory arguments for consistency.
1232: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233: datadir sysconfdir sharedstatedir localstatedir includedir \
1234: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235: libdir localedir mandir
1.10 paf 1236: do
1.31 moko 1237: eval ac_val=\$$ac_var
1238: # Remove trailing slashes.
1.10 paf 1239: case $ac_val in
1.31 moko 1240: */ )
1241: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242: eval $ac_var=\$ac_val;;
1.10 paf 1243: esac
1.31 moko 1244: # Be sure to have absolute directory names.
1.10 paf 1245: case $ac_val in
1.31 moko 1246: [\\/$]* | ?:[\\/]* ) continue;;
1247: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 parser 1248: esac
1.31 moko 1249: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 parser 1250: done
1251:
1.10 paf 1252: # There might be people who depend on the old broken behavior: `$host'
1253: # used to hold the argument of --host etc.
1254: # FIXME: To remove some day.
1255: build=$build_alias
1256: host=$host_alias
1257: target=$target_alias
1258:
1259: # FIXME: To remove some day.
1260: if test "x$host_alias" != x; then
1261: if test "x$build_alias" = x; then
1262: cross_compiling=maybe
1263: elif test "x$build_alias" != "x$host_alias"; then
1264: cross_compiling=yes
1265: fi
1266: fi
1267:
1268: ac_tool_prefix=
1269: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 parser 1270:
1.10 paf 1271: test "$silent" = yes && exec 6>/dev/null
1.1 parser 1272:
1273:
1.31 moko 1274: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275: ac_ls_di=`ls -di .` &&
1276: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277: as_fn_error $? "working directory cannot be determined"
1278: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279: as_fn_error $? "pwd does not report name of working directory"
1280:
1281:
1.1 parser 1282: # Find the source files, if location was not specified.
1283: if test -z "$srcdir"; then
1284: ac_srcdir_defaulted=yes
1.31 moko 1285: # Try the directory containing this script, then the parent directory.
1286: ac_confdir=`$as_dirname -- "$as_myself" ||
1287: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288: X"$as_myself" : 'X\(//\)[^/]' \| \
1289: X"$as_myself" : 'X\(//\)$' \| \
1290: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291: $as_echo X"$as_myself" |
1292: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293: s//\1/
1294: q
1295: }
1296: /^X\(\/\/\)[^/].*/{
1297: s//\1/
1298: q
1299: }
1300: /^X\(\/\/\)$/{
1301: s//\1/
1302: q
1303: }
1304: /^X\(\/\).*/{
1305: s//\1/
1306: q
1307: }
1308: s/.*/./; q'`
1.1 parser 1309: srcdir=$ac_confdir
1.31 moko 1310: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 parser 1311: srcdir=..
1312: fi
1313: else
1314: ac_srcdir_defaulted=no
1315: fi
1.31 moko 1316: if test ! -r "$srcdir/$ac_unique_file"; then
1317: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319: fi
1320: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321: ac_abs_confdir=`(
1322: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323: pwd)`
1324: # When building in place, set srcdir=.
1325: if test "$ac_abs_confdir" = "$ac_pwd"; then
1326: srcdir=.
1327: fi
1328: # Remove unnecessary trailing slashes from srcdir.
1329: # Double slashes in file names in object file debugging info
1330: # mess up M-x gdb in Emacs.
1331: case $srcdir in
1332: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333: esac
1334: for ac_var in $ac_precious_vars; do
1335: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336: eval ac_env_${ac_var}_value=\$${ac_var}
1337: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339: done
1.10 paf 1340:
1341: #
1342: # Report the --help message.
1343: #
1344: if test "$ac_init_help" = "long"; then
1345: # Omit some internal or obsolete options to make the list less imposing.
1346: # This message is too long to be a string in the A/UX 3.1 sh.
1347: cat <<_ACEOF
1.36 moko 1348: \`configure' configures parser3pgsql 10.5 to adapt to many kinds of systems.
1.10 paf 1349:
1350: Usage: $0 [OPTION]... [VAR=VALUE]...
1351:
1352: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353: VAR=VALUE. See below for descriptions of some of the useful variables.
1354:
1355: Defaults for the options are specified in brackets.
1356:
1357: Configuration:
1358: -h, --help display this help and exit
1359: --help=short display options specific to this package
1360: --help=recursive display the short help of all the included packages
1361: -V, --version display version information and exit
1.31 moko 1362: -q, --quiet, --silent do not print \`checking ...' messages
1.10 paf 1363: --cache-file=FILE cache test results in FILE [disabled]
1364: -C, --config-cache alias for \`--cache-file=config.cache'
1365: -n, --no-create do not create output files
1366: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367:
1368: Installation directories:
1369: --prefix=PREFIX install architecture-independent files in PREFIX
1.31 moko 1370: [$ac_default_prefix]
1.10 paf 1371: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.31 moko 1372: [PREFIX]
1.10 paf 1373:
1374: By default, \`make install' will install all the files in
1375: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377: for instance \`--prefix=\$HOME'.
1378:
1379: For better control, use the options below.
1380:
1381: Fine tuning of the installation directories:
1.31 moko 1382: --bindir=DIR user executables [EPREFIX/bin]
1383: --sbindir=DIR system admin executables [EPREFIX/sbin]
1384: --libexecdir=DIR program executables [EPREFIX/libexec]
1385: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388: --libdir=DIR object code libraries [EPREFIX/lib]
1389: --includedir=DIR C header files [PREFIX/include]
1390: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393: --infodir=DIR info documentation [DATAROOTDIR/info]
1394: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395: --mandir=DIR man documentation [DATAROOTDIR/man]
1.35 moko 1396: --docdir=DIR documentation root [DATAROOTDIR/doc/parser3pgsql]
1.31 moko 1397: --htmldir=DIR html documentation [DOCDIR]
1398: --dvidir=DIR dvi documentation [DOCDIR]
1399: --pdfdir=DIR pdf documentation [DOCDIR]
1400: --psdir=DIR ps documentation [DOCDIR]
1.10 paf 1401: _ACEOF
1402:
1403: cat <<\_ACEOF
1404:
1405: Program names:
1406: --program-prefix=PREFIX prepend PREFIX to installed program names
1407: --program-suffix=SUFFIX append SUFFIX to installed program names
1408: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409:
1410: System types:
1411: --build=BUILD configure for building on BUILD [guessed]
1412: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413: _ACEOF
1414: fi
1415:
1416: if test -n "$ac_init_help"; then
1.23 moko 1417: case $ac_init_help in
1.36 moko 1418: short | recursive ) echo "Configuration of parser3pgsql 10.5:";;
1.23 moko 1419: esac
1.10 paf 1420: cat <<\_ACEOF
1421:
1422: Optional Features:
1.31 moko 1423: --disable-option-checking ignore unrecognized --enable/--with options
1.10 paf 1424: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.16 paf 1426: --disable-dependency-tracking speeds up one-time build
1427: --enable-dependency-tracking do not reject slow dependency extractors
1.31 moko 1428: --enable-static[=PKGS] build static libraries [default=no]
1429: --enable-shared[=PKGS] build shared libraries [default=yes]
1.23 moko 1430: --enable-fast-install[=PKGS]
1431: optimize for fast installation [default=yes]
1.10 paf 1432: --disable-libtool-lock avoid locking (might break parallel builds)
1.23 moko 1433: --enable-ltdl-install install libltdl
1.10 paf 1434:
1435: Optional Packages:
1436: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.23 moko 1438: --with-pgsql-inc=DIR DIR is the PgSql includes directory
1.31 moko 1439: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.23 moko 1440: both]
1441: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1442: --with-sysroot=DIR Search for dependent libraries within DIR
1443: (or the compiler's sysroot if not specified).
1444: --with-included-ltdl use the GNU ltdl sources included here
1445: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1446: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.10 paf 1447:
1448: Some influential environment variables:
1449: CXX C++ compiler command
1450: CXXFLAGS C++ compiler flags
1451: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452: nonstandard directory <lib dir>
1.31 moko 1453: LIBS libraries to pass to the linker, e.g. -l<library>
1454: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455: you have headers in a nonstandard directory <include dir>
1.10 paf 1456: CC C compiler command
1457: CFLAGS C compiler flags
1.15 paf 1458: CPP C preprocessor
1.23 moko 1459: CXXCPP C++ preprocessor
1.10 paf 1460:
1461: Use these variables to override the choices made by `configure' or to help
1462: it to find libraries and programs with nonstandard names/locations.
1463:
1.31 moko 1464: Report bugs to the package provider.
1.10 paf 1465: _ACEOF
1.31 moko 1466: ac_status=$?
1.10 paf 1467: fi
1468:
1469: if test "$ac_init_help" = "recursive"; then
1470: # If there are subdirs, report their specific --help.
1471: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.31 moko 1472: test -d "$ac_dir" ||
1473: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474: continue
1.10 paf 1475: ac_builddir=.
1476:
1.31 moko 1477: case "$ac_dir" in
1478: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479: *)
1480: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481: # A ".." for each directory in $ac_dir_suffix.
1482: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483: case $ac_top_builddir_sub in
1484: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486: esac ;;
1487: esac
1488: ac_abs_top_builddir=$ac_pwd
1489: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490: # for backward compatibility:
1491: ac_top_builddir=$ac_top_build_prefix
1.10 paf 1492:
1493: case $srcdir in
1.31 moko 1494: .) # We are building in place.
1.10 paf 1495: ac_srcdir=.
1.31 moko 1496: ac_top_srcdir=$ac_top_builddir_sub
1497: ac_abs_top_srcdir=$ac_pwd ;;
1498: [\\/]* | ?:[\\/]* ) # Absolute name.
1.10 paf 1499: ac_srcdir=$srcdir$ac_dir_suffix;
1.31 moko 1500: ac_top_srcdir=$srcdir
1501: ac_abs_top_srcdir=$srcdir ;;
1502: *) # Relative name.
1503: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504: ac_top_srcdir=$ac_top_build_prefix$srcdir
1505: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.10 paf 1506: esac
1.31 moko 1507: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.16 paf 1508:
1.31 moko 1509: cd "$ac_dir" || { ac_status=$?; continue; }
1510: # Check for guested configure.
1511: if test -f "$ac_srcdir/configure.gnu"; then
1512: echo &&
1513: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514: elif test -f "$ac_srcdir/configure"; then
1515: echo &&
1516: $SHELL "$ac_srcdir/configure" --help=recursive
1.10 paf 1517: else
1.31 moko 1518: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519: fi || ac_status=$?
1520: cd "$ac_pwd" || { ac_status=$?; break; }
1.10 paf 1521: done
1522: fi
1.1 parser 1523:
1.31 moko 1524: test -n "$ac_init_help" && exit $ac_status
1.10 paf 1525: if $ac_init_version; then
1526: cat <<\_ACEOF
1.36 moko 1527: parser3pgsql configure 10.5
1.34 moko 1528: generated by GNU Autoconf 2.69
1.10 paf 1529:
1.34 moko 1530: Copyright (C) 2012 Free Software Foundation, Inc.
1.10 paf 1531: This configure script is free software; the Free Software Foundation
1532: gives unlimited permission to copy, distribute and modify it.
1533: _ACEOF
1.31 moko 1534: exit
1.10 paf 1535: fi
1536:
1.31 moko 1537: ## ------------------------ ##
1538: ## Autoconf initialization. ##
1539: ## ------------------------ ##
1540:
1541: # ac_fn_cxx_try_compile LINENO
1542: # ----------------------------
1543: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544: ac_fn_cxx_try_compile ()
1545: {
1546: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547: rm -f conftest.$ac_objext
1548: if { { ac_try="$ac_compile"
1549: case "(($ac_try" in
1550: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551: *) ac_try_echo=$ac_try;;
1552: esac
1553: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554: $as_echo "$ac_try_echo"; } >&5
1555: (eval "$ac_compile") 2>conftest.err
1556: ac_status=$?
1557: if test -s conftest.err; then
1558: grep -v '^ *+' conftest.err >conftest.er1
1559: cat conftest.er1 >&5
1560: mv -f conftest.er1 conftest.err
1561: fi
1562: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563: test $ac_status = 0; } && {
1564: test -z "$ac_cxx_werror_flag" ||
1565: test ! -s conftest.err
1566: } && test -s conftest.$ac_objext; then :
1567: ac_retval=0
1568: else
1569: $as_echo "$as_me: failed program was:" >&5
1570: sed 's/^/| /' conftest.$ac_ext >&5
1571:
1572: ac_retval=1
1573: fi
1574: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575: as_fn_set_status $ac_retval
1.10 paf 1576:
1.31 moko 1577: } # ac_fn_cxx_try_compile
1.10 paf 1578:
1.31 moko 1579: # ac_fn_c_try_compile LINENO
1580: # --------------------------
1581: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582: ac_fn_c_try_compile ()
1.10 paf 1583: {
1.31 moko 1584: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585: rm -f conftest.$ac_objext
1586: if { { ac_try="$ac_compile"
1587: case "(($ac_try" in
1588: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589: *) ac_try_echo=$ac_try;;
1590: esac
1591: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592: $as_echo "$ac_try_echo"; } >&5
1593: (eval "$ac_compile") 2>conftest.err
1594: ac_status=$?
1595: if test -s conftest.err; then
1596: grep -v '^ *+' conftest.err >conftest.er1
1597: cat conftest.er1 >&5
1598: mv -f conftest.er1 conftest.err
1599: fi
1600: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601: test $ac_status = 0; } && {
1602: test -z "$ac_c_werror_flag" ||
1603: test ! -s conftest.err
1604: } && test -s conftest.$ac_objext; then :
1605: ac_retval=0
1606: else
1607: $as_echo "$as_me: failed program was:" >&5
1608: sed 's/^/| /' conftest.$ac_ext >&5
1609:
1610: ac_retval=1
1611: fi
1612: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613: as_fn_set_status $ac_retval
1614:
1615: } # ac_fn_c_try_compile
1616:
1617: # ac_fn_c_try_link LINENO
1618: # -----------------------
1619: # Try to link conftest.$ac_ext, and return whether this succeeded.
1620: ac_fn_c_try_link ()
1621: {
1622: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623: rm -f conftest.$ac_objext conftest$ac_exeext
1624: if { { ac_try="$ac_link"
1625: case "(($ac_try" in
1626: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627: *) ac_try_echo=$ac_try;;
1628: esac
1629: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630: $as_echo "$ac_try_echo"; } >&5
1631: (eval "$ac_link") 2>conftest.err
1632: ac_status=$?
1633: if test -s conftest.err; then
1634: grep -v '^ *+' conftest.err >conftest.er1
1635: cat conftest.er1 >&5
1636: mv -f conftest.er1 conftest.err
1637: fi
1638: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639: test $ac_status = 0; } && {
1640: test -z "$ac_c_werror_flag" ||
1641: test ! -s conftest.err
1642: } && test -s conftest$ac_exeext && {
1643: test "$cross_compiling" = yes ||
1.34 moko 1644: test -x conftest$ac_exeext
1.31 moko 1645: }; then :
1646: ac_retval=0
1647: else
1648: $as_echo "$as_me: failed program was:" >&5
1649: sed 's/^/| /' conftest.$ac_ext >&5
1650:
1651: ac_retval=1
1652: fi
1653: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1654: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1655: # interfere with the next link command; also delete a directory that is
1656: # left behind by Apple's compiler. We do this before executing the actions.
1657: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659: as_fn_set_status $ac_retval
1660:
1661: } # ac_fn_c_try_link
1662:
1663: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664: # -------------------------------------------------------
1665: # Tests whether HEADER exists and can be compiled using the include files in
1666: # INCLUDES, setting the cache variable VAR accordingly.
1667: ac_fn_c_check_header_compile ()
1668: {
1669: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671: $as_echo_n "checking for $2... " >&6; }
1672: if eval \${$3+:} false; then :
1673: $as_echo_n "(cached) " >&6
1674: else
1675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676: /* end confdefs.h. */
1677: $4
1678: #include <$2>
1679: _ACEOF
1680: if ac_fn_c_try_compile "$LINENO"; then :
1681: eval "$3=yes"
1682: else
1683: eval "$3=no"
1684: fi
1685: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686: fi
1687: eval ac_res=\$$3
1688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689: $as_echo "$ac_res" >&6; }
1690: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691:
1692: } # ac_fn_c_check_header_compile
1693:
1694: # ac_fn_c_try_cpp LINENO
1695: # ----------------------
1696: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697: ac_fn_c_try_cpp ()
1698: {
1699: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700: if { { ac_try="$ac_cpp conftest.$ac_ext"
1701: case "(($ac_try" in
1702: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703: *) ac_try_echo=$ac_try;;
1704: esac
1705: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706: $as_echo "$ac_try_echo"; } >&5
1707: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708: ac_status=$?
1709: if test -s conftest.err; then
1710: grep -v '^ *+' conftest.err >conftest.er1
1711: cat conftest.er1 >&5
1712: mv -f conftest.er1 conftest.err
1713: fi
1714: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715: test $ac_status = 0; } > conftest.i && {
1716: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717: test ! -s conftest.err
1718: }; then :
1719: ac_retval=0
1720: else
1721: $as_echo "$as_me: failed program was:" >&5
1722: sed 's/^/| /' conftest.$ac_ext >&5
1723:
1724: ac_retval=1
1725: fi
1726: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727: as_fn_set_status $ac_retval
1728:
1729: } # ac_fn_c_try_cpp
1730:
1731: # ac_fn_c_try_run LINENO
1732: # ----------------------
1733: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734: # that executables *can* be run.
1735: ac_fn_c_try_run ()
1736: {
1737: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738: if { { ac_try="$ac_link"
1739: case "(($ac_try" in
1740: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741: *) ac_try_echo=$ac_try;;
1742: esac
1743: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744: $as_echo "$ac_try_echo"; } >&5
1745: (eval "$ac_link") 2>&5
1746: ac_status=$?
1747: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749: { { case "(($ac_try" in
1750: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751: *) ac_try_echo=$ac_try;;
1752: esac
1753: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754: $as_echo "$ac_try_echo"; } >&5
1755: (eval "$ac_try") 2>&5
1756: ac_status=$?
1757: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758: test $ac_status = 0; }; }; then :
1759: ac_retval=0
1760: else
1761: $as_echo "$as_me: program exited with status $ac_status" >&5
1762: $as_echo "$as_me: failed program was:" >&5
1763: sed 's/^/| /' conftest.$ac_ext >&5
1764:
1765: ac_retval=$ac_status
1766: fi
1767: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769: as_fn_set_status $ac_retval
1770:
1771: } # ac_fn_c_try_run
1772:
1773: # ac_fn_c_check_func LINENO FUNC VAR
1774: # ----------------------------------
1775: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776: ac_fn_c_check_func ()
1777: {
1778: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780: $as_echo_n "checking for $2... " >&6; }
1781: if eval \${$3+:} false; then :
1782: $as_echo_n "(cached) " >&6
1783: else
1784: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785: /* end confdefs.h. */
1786: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788: #define $2 innocuous_$2
1789:
1790: /* System header to define __stub macros and hopefully few prototypes,
1791: which can conflict with char $2 (); below.
1792: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793: <limits.h> exists even on freestanding compilers. */
1794:
1795: #ifdef __STDC__
1796: # include <limits.h>
1797: #else
1798: # include <assert.h>
1799: #endif
1800:
1801: #undef $2
1802:
1803: /* Override any GCC internal prototype to avoid an error.
1804: Use char because int might match the return type of a GCC
1805: builtin and then its argument prototype would still apply. */
1806: #ifdef __cplusplus
1807: extern "C"
1808: #endif
1809: char $2 ();
1810: /* The GNU C library defines this for functions which it implements
1811: to always fail with ENOSYS. Some functions are actually named
1812: something starting with __ and the normal name is an alias. */
1813: #if defined __stub_$2 || defined __stub___$2
1814: choke me
1815: #endif
1816:
1817: int
1818: main ()
1819: {
1820: return $2 ();
1821: ;
1822: return 0;
1823: }
1824: _ACEOF
1825: if ac_fn_c_try_link "$LINENO"; then :
1826: eval "$3=yes"
1827: else
1828: eval "$3=no"
1829: fi
1830: rm -f core conftest.err conftest.$ac_objext \
1831: conftest$ac_exeext conftest.$ac_ext
1832: fi
1833: eval ac_res=\$$3
1834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835: $as_echo "$ac_res" >&6; }
1836: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837:
1838: } # ac_fn_c_check_func
1839:
1840: # ac_fn_cxx_try_cpp LINENO
1841: # ------------------------
1842: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843: ac_fn_cxx_try_cpp ()
1844: {
1845: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846: if { { ac_try="$ac_cpp conftest.$ac_ext"
1847: case "(($ac_try" in
1848: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849: *) ac_try_echo=$ac_try;;
1850: esac
1851: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852: $as_echo "$ac_try_echo"; } >&5
1853: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854: ac_status=$?
1855: if test -s conftest.err; then
1856: grep -v '^ *+' conftest.err >conftest.er1
1857: cat conftest.er1 >&5
1858: mv -f conftest.er1 conftest.err
1859: fi
1860: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861: test $ac_status = 0; } > conftest.i && {
1862: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1863: test ! -s conftest.err
1864: }; then :
1865: ac_retval=0
1866: else
1867: $as_echo "$as_me: failed program was:" >&5
1868: sed 's/^/| /' conftest.$ac_ext >&5
1869:
1870: ac_retval=1
1871: fi
1872: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873: as_fn_set_status $ac_retval
1874:
1875: } # ac_fn_cxx_try_cpp
1876:
1877: # ac_fn_cxx_try_link LINENO
1878: # -------------------------
1879: # Try to link conftest.$ac_ext, and return whether this succeeded.
1880: ac_fn_cxx_try_link ()
1881: {
1882: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883: rm -f conftest.$ac_objext conftest$ac_exeext
1884: if { { ac_try="$ac_link"
1885: case "(($ac_try" in
1886: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887: *) ac_try_echo=$ac_try;;
1888: esac
1889: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890: $as_echo "$ac_try_echo"; } >&5
1891: (eval "$ac_link") 2>conftest.err
1892: ac_status=$?
1893: if test -s conftest.err; then
1894: grep -v '^ *+' conftest.err >conftest.er1
1895: cat conftest.er1 >&5
1896: mv -f conftest.er1 conftest.err
1897: fi
1898: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899: test $ac_status = 0; } && {
1900: test -z "$ac_cxx_werror_flag" ||
1901: test ! -s conftest.err
1902: } && test -s conftest$ac_exeext && {
1903: test "$cross_compiling" = yes ||
1.34 moko 1904: test -x conftest$ac_exeext
1.31 moko 1905: }; then :
1906: ac_retval=0
1907: else
1908: $as_echo "$as_me: failed program was:" >&5
1909: sed 's/^/| /' conftest.$ac_ext >&5
1910:
1911: ac_retval=1
1912: fi
1913: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915: # interfere with the next link command; also delete a directory that is
1916: # left behind by Apple's compiler. We do this before executing the actions.
1917: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919: as_fn_set_status $ac_retval
1920:
1921: } # ac_fn_cxx_try_link
1922:
1923: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1924: # ---------------------------------------------
1925: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1926: # accordingly.
1927: ac_fn_c_check_decl ()
1928: {
1929: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930: as_decl_name=`echo $2|sed 's/ *(.*//'`
1931: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1932: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1933: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1934: if eval \${$3+:} false; then :
1935: $as_echo_n "(cached) " >&6
1936: else
1937: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938: /* end confdefs.h. */
1939: $4
1940: int
1941: main ()
1942: {
1943: #ifndef $as_decl_name
1944: #ifdef __cplusplus
1945: (void) $as_decl_use;
1946: #else
1947: (void) $as_decl_name;
1948: #endif
1949: #endif
1950:
1951: ;
1952: return 0;
1953: }
1954: _ACEOF
1955: if ac_fn_c_try_compile "$LINENO"; then :
1956: eval "$3=yes"
1957: else
1958: eval "$3=no"
1959: fi
1960: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961: fi
1962: eval ac_res=\$$3
1963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964: $as_echo "$ac_res" >&6; }
1965: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966:
1967: } # ac_fn_c_check_decl
1968:
1969: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1970: # -------------------------------------------
1971: # Tests whether TYPE exists after having included INCLUDES, setting cache
1972: # variable VAR accordingly.
1973: ac_fn_c_check_type ()
1974: {
1975: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977: $as_echo_n "checking for $2... " >&6; }
1978: if eval \${$3+:} false; then :
1979: $as_echo_n "(cached) " >&6
1980: else
1981: eval "$3=no"
1982: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983: /* end confdefs.h. */
1984: $4
1985: int
1986: main ()
1987: {
1988: if (sizeof ($2))
1989: return 0;
1990: ;
1991: return 0;
1992: }
1993: _ACEOF
1994: if ac_fn_c_try_compile "$LINENO"; then :
1995: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996: /* end confdefs.h. */
1997: $4
1998: int
1999: main ()
2000: {
2001: if (sizeof (($2)))
2002: return 0;
2003: ;
2004: return 0;
2005: }
2006: _ACEOF
2007: if ac_fn_c_try_compile "$LINENO"; then :
2008:
2009: else
2010: eval "$3=yes"
2011: fi
2012: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013: fi
2014: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015: fi
2016: eval ac_res=\$$3
2017: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018: $as_echo "$ac_res" >&6; }
2019: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020:
2021: } # ac_fn_c_check_type
2022:
2023: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2024: # -------------------------------------------------------
2025: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2026: # the include files in INCLUDES and setting the cache variable VAR
2027: # accordingly.
2028: ac_fn_c_check_header_mongrel ()
2029: {
2030: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031: if eval \${$3+:} false; then :
2032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033: $as_echo_n "checking for $2... " >&6; }
2034: if eval \${$3+:} false; then :
2035: $as_echo_n "(cached) " >&6
2036: fi
2037: eval ac_res=\$$3
2038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039: $as_echo "$ac_res" >&6; }
2040: else
2041: # Is the header compilable?
2042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2043: $as_echo_n "checking $2 usability... " >&6; }
2044: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045: /* end confdefs.h. */
2046: $4
2047: #include <$2>
2048: _ACEOF
2049: if ac_fn_c_try_compile "$LINENO"; then :
2050: ac_header_compiler=yes
2051: else
2052: ac_header_compiler=no
2053: fi
2054: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2056: $as_echo "$ac_header_compiler" >&6; }
2057:
2058: # Is the header present?
2059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2060: $as_echo_n "checking $2 presence... " >&6; }
2061: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062: /* end confdefs.h. */
2063: #include <$2>
2064: _ACEOF
2065: if ac_fn_c_try_cpp "$LINENO"; then :
2066: ac_header_preproc=yes
2067: else
2068: ac_header_preproc=no
2069: fi
2070: rm -f conftest.err conftest.i conftest.$ac_ext
2071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2072: $as_echo "$ac_header_preproc" >&6; }
2073:
2074: # So? What about this header?
2075: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2076: yes:no: )
2077: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2078: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2079: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2080: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2081: ;;
2082: no:yes:* )
2083: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2084: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2085: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2086: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2087: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2088: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2089: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2090: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2091: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2093: ;;
2094: esac
2095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096: $as_echo_n "checking for $2... " >&6; }
2097: if eval \${$3+:} false; then :
2098: $as_echo_n "(cached) " >&6
2099: else
2100: eval "$3=\$ac_header_compiler"
2101: fi
2102: eval ac_res=\$$3
2103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104: $as_echo "$ac_res" >&6; }
2105: fi
2106: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107:
2108: } # ac_fn_c_check_header_mongrel
2109: cat >config.log <<_ACEOF
2110: This file contains any messages produced by compilers while
2111: running configure, to aid debugging if configure makes a mistake.
2112:
1.36 moko 2113: It was created by parser3pgsql $as_me 10.5, which was
1.34 moko 2114: generated by GNU Autoconf 2.69. Invocation command line was
1.31 moko 2115:
2116: $ $0 $@
2117:
2118: _ACEOF
2119: exec 5>>config.log
2120: {
2121: cat <<_ASUNAME
2122: ## --------- ##
2123: ## Platform. ##
2124: ## --------- ##
1.10 paf 2125:
2126: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2127: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2128: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2129: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2130: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2131:
2132: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2133: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2134:
2135: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2136: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2137: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.31 moko 2138: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.10 paf 2139: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2140: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2141: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2142:
2143: _ASUNAME
2144:
2145: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146: for as_dir in $PATH
2147: do
2148: IFS=$as_save_IFS
2149: test -z "$as_dir" && as_dir=.
1.31 moko 2150: $as_echo "PATH: $as_dir"
2151: done
2152: IFS=$as_save_IFS
1.10 paf 2153:
2154: } >&5
2155:
2156: cat >&5 <<_ACEOF
2157:
2158:
2159: ## ----------- ##
2160: ## Core tests. ##
2161: ## ----------- ##
2162:
2163: _ACEOF
2164:
2165:
2166: # Keep a trace of the command line.
2167: # Strip out --no-create and --no-recursion so they do not pile up.
2168: # Strip out --silent because we don't want to record it for future runs.
2169: # Also quote any args containing shell meta-characters.
2170: # Make two passes to allow for proper duplicate-argument suppression.
2171: ac_configure_args=
2172: ac_configure_args0=
2173: ac_configure_args1=
2174: ac_must_keep_next=false
2175: for ac_pass in 1 2
2176: do
2177: for ac_arg
2178: do
2179: case $ac_arg in
2180: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2181: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2182: | -silent | --silent | --silen | --sile | --sil)
2183: continue ;;
1.31 moko 2184: *\'*)
2185: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.10 paf 2186: esac
2187: case $ac_pass in
1.31 moko 2188: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.10 paf 2189: 2)
1.31 moko 2190: as_fn_append ac_configure_args1 " '$ac_arg'"
1.10 paf 2191: if test $ac_must_keep_next = true; then
1.16 paf 2192: ac_must_keep_next=false # Got value, back to normal.
1.10 paf 2193: else
1.16 paf 2194: case $ac_arg in
2195: *=* | --config-cache | -C | -disable-* | --disable-* \
2196: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2197: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2198: | -with-* | --with-* | -without-* | --without-* | --x)
2199: case "$ac_configure_args0 " in
2200: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2201: esac
2202: ;;
2203: -* ) ac_must_keep_next=true ;;
2204: esac
1.10 paf 2205: fi
1.31 moko 2206: as_fn_append ac_configure_args " '$ac_arg'"
1.10 paf 2207: ;;
2208: esac
2209: done
2210: done
1.31 moko 2211: { ac_configure_args0=; unset ac_configure_args0;}
2212: { ac_configure_args1=; unset ac_configure_args1;}
1.10 paf 2213:
2214: # When interrupted or exit'd, cleanup temporary files, and complete
2215: # config.log. We remove comments because anyway the quotes in there
2216: # would cause problems or look ugly.
1.31 moko 2217: # WARNING: Use '\'' to represent an apostrophe within the trap.
2218: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.10 paf 2219: trap 'exit_status=$?
2220: # Save into config.log some information that might help in debugging.
2221: {
2222: echo
2223:
1.31 moko 2224: $as_echo "## ---------------- ##
1.10 paf 2225: ## Cache variables. ##
1.31 moko 2226: ## ---------------- ##"
1.10 paf 2227: echo
2228: # The following way of writing the cache mishandles newlines in values,
1.31 moko 2229: (
2230: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2231: eval ac_val=\$$ac_var
2232: case $ac_val in #(
2233: *${as_nl}*)
2234: case $ac_var in #(
2235: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2236: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2237: esac
2238: case $ac_var in #(
2239: _ | IFS | as_nl) ;; #(
2240: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2241: *) { eval $ac_var=; unset $ac_var;} ;;
2242: esac ;;
2243: esac
2244: done
1.10 paf 2245: (set) 2>&1 |
1.31 moko 2246: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2247: *${as_nl}ac_space=\ *)
1.10 paf 2248: sed -n \
1.31 moko 2249: "s/'\''/'\''\\\\'\'''\''/g;
2250: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2251: ;; #(
1.10 paf 2252: *)
1.31 moko 2253: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.10 paf 2254: ;;
1.31 moko 2255: esac |
2256: sort
2257: )
1.10 paf 2258: echo
2259:
1.31 moko 2260: $as_echo "## ----------------- ##
1.10 paf 2261: ## Output variables. ##
1.31 moko 2262: ## ----------------- ##"
1.10 paf 2263: echo
2264: for ac_var in $ac_subst_vars
2265: do
1.31 moko 2266: eval ac_val=\$$ac_var
2267: case $ac_val in
2268: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269: esac
2270: $as_echo "$ac_var='\''$ac_val'\''"
1.10 paf 2271: done | sort
2272: echo
2273:
2274: if test -n "$ac_subst_files"; then
1.31 moko 2275: $as_echo "## ------------------- ##
2276: ## File substitutions. ##
2277: ## ------------------- ##"
1.10 paf 2278: echo
2279: for ac_var in $ac_subst_files
2280: do
1.31 moko 2281: eval ac_val=\$$ac_var
2282: case $ac_val in
2283: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2284: esac
2285: $as_echo "$ac_var='\''$ac_val'\''"
1.10 paf 2286: done | sort
2287: echo
2288: fi
2289:
2290: if test -s confdefs.h; then
1.31 moko 2291: $as_echo "## ----------- ##
1.10 paf 2292: ## confdefs.h. ##
1.31 moko 2293: ## ----------- ##"
1.10 paf 2294: echo
1.31 moko 2295: cat confdefs.h
1.10 paf 2296: echo
2297: fi
2298: test "$ac_signal" != 0 &&
1.31 moko 2299: $as_echo "$as_me: caught signal $ac_signal"
2300: $as_echo "$as_me: exit $exit_status"
1.10 paf 2301: } >&5
1.31 moko 2302: rm -f core *.core core.conftest.* &&
2303: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.10 paf 2304: exit $exit_status
1.31 moko 2305: ' 0
1.10 paf 2306: for ac_signal in 1 2 13 15; do
1.31 moko 2307: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.10 paf 2308: done
2309: ac_signal=0
2310:
2311: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.31 moko 2312: rm -f -r conftest* confdefs.h
2313:
2314: $as_echo "/* confdefs.h */" > confdefs.h
1.10 paf 2315:
2316: # Predefined preprocessor variables.
2317:
2318: cat >>confdefs.h <<_ACEOF
2319: #define PACKAGE_NAME "$PACKAGE_NAME"
2320: _ACEOF
2321:
2322: cat >>confdefs.h <<_ACEOF
2323: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2324: _ACEOF
2325:
2326: cat >>confdefs.h <<_ACEOF
2327: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2328: _ACEOF
2329:
2330: cat >>confdefs.h <<_ACEOF
2331: #define PACKAGE_STRING "$PACKAGE_STRING"
2332: _ACEOF
2333:
1.31 moko 2334: cat >>confdefs.h <<_ACEOF
2335: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2336: _ACEOF
1.10 paf 2337:
2338: cat >>confdefs.h <<_ACEOF
1.31 moko 2339: #define PACKAGE_URL "$PACKAGE_URL"
1.10 paf 2340: _ACEOF
2341:
2342:
2343: # Let the site file select an alternate cache file if it wants to.
1.31 moko 2344: # Prefer an explicitly selected file to automatically selected ones.
2345: ac_site_file1=NONE
2346: ac_site_file2=NONE
2347: if test -n "$CONFIG_SITE"; then
2348: # We do not want a PATH search for config.site.
2349: case $CONFIG_SITE in #((
2350: -*) ac_site_file1=./$CONFIG_SITE;;
2351: */*) ac_site_file1=$CONFIG_SITE;;
2352: *) ac_site_file1=./$CONFIG_SITE;;
2353: esac
2354: elif test "x$prefix" != xNONE; then
2355: ac_site_file1=$prefix/share/config.site
2356: ac_site_file2=$prefix/etc/config.site
2357: else
2358: ac_site_file1=$ac_default_prefix/share/config.site
2359: ac_site_file2=$ac_default_prefix/etc/config.site
2360: fi
2361: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2362: do
2363: test "x$ac_site_file" = xNONE && continue
2364: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2365: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2366: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.10 paf 2367: sed 's/^/| /' "$ac_site_file" >&5
1.31 moko 2368: . "$ac_site_file" \
2369: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2370: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2371: as_fn_error $? "failed to load site script $ac_site_file
2372: See \`config.log' for more details" "$LINENO" 5; }
1.1 parser 2373: fi
2374: done
2375:
2376: if test -r "$cache_file"; then
1.31 moko 2377: # Some versions of bash will fail to source /dev/null (special files
2378: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2379: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2380: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2381: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.10 paf 2382: case $cache_file in
1.31 moko 2383: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2384: *) . "./$cache_file";;
1.10 paf 2385: esac
2386: fi
1.1 parser 2387: else
1.31 moko 2388: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2389: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.10 paf 2390: >$cache_file
2391: fi
2392:
2393: # Check that the precious variables saved in the cache have kept the same
2394: # value.
2395: ac_cache_corrupted=false
1.31 moko 2396: for ac_var in $ac_precious_vars; do
1.10 paf 2397: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2398: eval ac_new_set=\$ac_env_${ac_var}_set
1.31 moko 2399: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2400: eval ac_new_val=\$ac_env_${ac_var}_value
1.10 paf 2401: case $ac_old_set,$ac_new_set in
2402: set,)
1.31 moko 2403: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2404: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.10 paf 2405: ac_cache_corrupted=: ;;
2406: ,set)
1.31 moko 2407: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2408: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.10 paf 2409: ac_cache_corrupted=: ;;
2410: ,);;
2411: *)
2412: if test "x$ac_old_val" != "x$ac_new_val"; then
1.31 moko 2413: # differences in whitespace do not lead to failure.
2414: ac_old_val_w=`echo x $ac_old_val`
2415: ac_new_val_w=`echo x $ac_new_val`
2416: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2417: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2418: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2419: ac_cache_corrupted=:
2420: else
2421: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2422: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2423: eval $ac_var=\$ac_old_val
2424: fi
2425: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2426: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2427: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2428: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.10 paf 2429: fi;;
2430: esac
2431: # Pass precious variables to config.status.
2432: if test "$ac_new_set" = set; then
2433: case $ac_new_val in
1.31 moko 2434: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.10 paf 2435: *) ac_arg=$ac_var=$ac_new_val ;;
2436: esac
2437: case " $ac_configure_args " in
2438: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.31 moko 2439: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.10 paf 2440: esac
2441: fi
2442: done
2443: if $ac_cache_corrupted; then
1.31 moko 2444: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2445: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2446: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2447: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2448: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2449: fi
2450: ## -------------------- ##
2451: ## Main body of script. ##
2452: ## -------------------- ##
1.1 parser 2453:
2454: ac_ext=c
2455: ac_cpp='$CPP $CPPFLAGS'
1.10 paf 2456: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 2459:
2460:
1.10 paf 2461:
1.31 moko 2462: ac_config_headers="$ac_config_headers config_auto.h"
1.10 paf 2463:
2464:
1.31 moko 2465: am__api_version='1.11'
1.10 paf 2466:
1.1 parser 2467: ac_aux_dir=
1.31 moko 2468: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2469: if test -f "$ac_dir/install-sh"; then
1.1 parser 2470: ac_aux_dir=$ac_dir
2471: ac_install_sh="$ac_aux_dir/install-sh -c"
2472: break
1.31 moko 2473: elif test -f "$ac_dir/install.sh"; then
1.1 parser 2474: ac_aux_dir=$ac_dir
2475: ac_install_sh="$ac_aux_dir/install.sh -c"
2476: break
1.31 moko 2477: elif test -f "$ac_dir/shtool"; then
1.10 paf 2478: ac_aux_dir=$ac_dir
2479: ac_install_sh="$ac_aux_dir/shtool install -c"
2480: break
1.1 parser 2481: fi
2482: done
2483: if test -z "$ac_aux_dir"; then
1.31 moko 2484: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2485: fi
2486:
2487: # These three variables are undocumented and unsupported,
2488: # and are intended to be withdrawn in a future Autoconf release.
2489: # They can cause serious problems if a builder's source tree is in a directory
2490: # whose full name contains unusual characters.
2491: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2492: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2493: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2494:
1.1 parser 2495:
2496: # Find a good install program. We prefer a C program (faster),
2497: # so one script is as good as another. But avoid the broken or
2498: # incompatible versions:
2499: # SysV /etc/install, /usr/sbin/install
2500: # SunOS /usr/etc/install
2501: # IRIX /sbin/install
2502: # AIX /bin/install
1.10 paf 2503: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 2504: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2505: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2506: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.16 paf 2507: # OS/2's system install, which has a completely different semantic
1.1 parser 2508: # ./install, which can be erroneously created by make from ./install.sh.
1.31 moko 2509: # Reject install programs that cannot install multiple files.
2510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2511: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 parser 2512: if test -z "$INSTALL"; then
1.31 moko 2513: if ${ac_cv_path_install+:} false; then :
2514: $as_echo_n "(cached) " >&6
1.1 parser 2515: else
1.10 paf 2516: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517: for as_dir in $PATH
2518: do
2519: IFS=$as_save_IFS
2520: test -z "$as_dir" && as_dir=.
1.31 moko 2521: # Account for people who put trailing slashes in PATH elements.
2522: case $as_dir/ in #((
2523: ./ | .// | /[cC]/* | \
1.10 paf 2524: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.31 moko 2525: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.10 paf 2526: /usr/ucb/* ) ;;
2527: *)
2528: # OSF1 and SCO ODT 3.0 have their own names for install.
2529: # Don't use installbsd from OSF since it installs stuff as root
2530: # by default.
2531: for ac_prog in ginstall scoinst install; do
2532: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 2533: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.16 paf 2534: if test $ac_prog = install &&
2535: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536: # AIX install. It has an incompatible calling convention.
2537: :
2538: elif test $ac_prog = install &&
2539: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2540: # program-specific install script used by HP pwplus--don't use.
2541: :
2542: else
1.31 moko 2543: rm -rf conftest.one conftest.two conftest.dir
2544: echo one > conftest.one
2545: echo two > conftest.two
2546: mkdir conftest.dir
2547: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2548: test -s conftest.one && test -s conftest.two &&
2549: test -s conftest.dir/conftest.one &&
2550: test -s conftest.dir/conftest.two
2551: then
2552: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2553: break 3
2554: fi
1.16 paf 2555: fi
2556: fi
1.1 parser 2557: done
1.10 paf 2558: done
2559: ;;
2560: esac
2561:
1.31 moko 2562: done
2563: IFS=$as_save_IFS
2564:
2565: rm -rf conftest.one conftest.two conftest.dir
1.1 parser 2566:
2567: fi
2568: if test "${ac_cv_path_install+set}" = set; then
1.10 paf 2569: INSTALL=$ac_cv_path_install
1.1 parser 2570: else
1.31 moko 2571: # As a last resort, use the slow shell script. Don't cache a
2572: # value for INSTALL within a source directory, because that will
1.1 parser 2573: # break other packages using the cache if that directory is
1.31 moko 2574: # removed, or if the value is a relative name.
1.10 paf 2575: INSTALL=$ac_install_sh
1.1 parser 2576: fi
2577: fi
1.31 moko 2578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2579: $as_echo "$INSTALL" >&6; }
1.1 parser 2580:
2581: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2582: # It thinks the first close brace ends the variable substitution.
2583: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2584:
1.10 paf 2585: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 2586:
2587: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2588:
1.31 moko 2589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2590: $as_echo_n "checking whether build environment is sane... " >&6; }
1.1 parser 2591: # Just in case
2592: sleep 1
1.10 paf 2593: echo timestamp > conftest.file
1.31 moko 2594: # Reject unsafe characters in $srcdir or the absolute working directory
2595: # name. Accept space and tab only in the latter.
2596: am_lf='
2597: '
2598: case `pwd` in
2599: *[\\\"\#\$\&\'\`$am_lf]*)
2600: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2601: esac
2602: case $srcdir in
2603: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2604: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2605: esac
2606:
1.1 parser 2607: # Do `set' in a subshell so we don't clobber the current shell's
2608: # arguments. Must try -L first in case configure is actually a
2609: # symlink; some systems play weird games with the mod time of symlinks
2610: # (eg FreeBSD returns the mod time of the symlink's containing
2611: # directory).
2612: if (
1.31 moko 2613: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.1 parser 2614: if test "$*" = "X"; then
2615: # -L didn't work.
1.31 moko 2616: set X `ls -t "$srcdir/configure" conftest.file`
1.1 parser 2617: fi
1.10 paf 2618: rm -f conftest.file
2619: if test "$*" != "X $srcdir/configure conftest.file" \
2620: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 2621:
2622: # If neither matched, then we have a broken ls. This can happen
2623: # if, for instance, CONFIG_SHELL is bash and it inherits a
2624: # broken ls alias from the environment. This has actually
2625: # happened. Such a system could not be considered "sane".
1.31 moko 2626: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2627: alias in your environment" "$LINENO" 5
1.1 parser 2628: fi
2629:
1.10 paf 2630: test "$2" = conftest.file
1.1 parser 2631: )
2632: then
2633: # Ok.
2634: :
2635: else
1.31 moko 2636: as_fn_error $? "newly created file is older than distributed files!
2637: Check your system clock" "$LINENO" 5
1.1 parser 2638: fi
1.31 moko 2639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2640: $as_echo "yes" >&6; }
1.1 parser 2641: test "$program_prefix" != NONE &&
1.31 moko 2642: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 parser 2643: # Use a double $ so make ignores it.
2644: test "$program_suffix" != NONE &&
1.31 moko 2645: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2646: # Double any \ or $.
1.10 paf 2647: # By default was `s,x,x', remove it if useless.
1.31 moko 2648: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2649: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.10 paf 2650:
2651: # expand $ac_aux_dir to an absolute path
2652: am_aux_dir=`cd $ac_aux_dir && pwd`
2653:
1.31 moko 2654: if test x"${MISSING+set}" != xset; then
2655: case $am_aux_dir in
2656: *\ * | *\ *)
2657: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2658: *)
2659: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2660: esac
2661: fi
1.10 paf 2662: # Use eval to expand $SHELL
2663: if eval "$MISSING --run true"; then
2664: am_missing_run="$MISSING --run "
2665: else
2666: am_missing_run=
1.31 moko 2667: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2668: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.10 paf 2669: fi
2670:
1.31 moko 2671: if test x"${install_sh}" != xset; then
2672: case $am_aux_dir in
2673: *\ * | *\ *)
2674: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2675: *)
2676: install_sh="\${SHELL} $am_aux_dir/install-sh"
2677: esac
2678: fi
2679:
2680: # Installed binaries are usually stripped using `strip' when the user
2681: # run `make install-strip'. However `strip' might not be the right
2682: # tool to use in cross-compilation environments, therefore Automake
2683: # will honor the `STRIP' environment variable to overrule this program.
2684: if test "$cross_compiling" != no; then
2685: if test -n "$ac_tool_prefix"; then
2686: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2687: set dummy ${ac_tool_prefix}strip; ac_word=$2
2688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689: $as_echo_n "checking for $ac_word... " >&6; }
2690: if ${ac_cv_prog_STRIP+:} false; then :
2691: $as_echo_n "(cached) " >&6
2692: else
2693: if test -n "$STRIP"; then
2694: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2695: else
2696: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697: for as_dir in $PATH
2698: do
2699: IFS=$as_save_IFS
2700: test -z "$as_dir" && as_dir=.
2701: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 2702: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.31 moko 2703: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2704: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705: break 2
2706: fi
2707: done
2708: done
2709: IFS=$as_save_IFS
2710:
2711: fi
2712: fi
2713: STRIP=$ac_cv_prog_STRIP
2714: if test -n "$STRIP"; then
2715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2716: $as_echo "$STRIP" >&6; }
2717: else
2718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719: $as_echo "no" >&6; }
2720: fi
2721:
2722:
2723: fi
2724: if test -z "$ac_cv_prog_STRIP"; then
2725: ac_ct_STRIP=$STRIP
2726: # Extract the first word of "strip", so it can be a program name with args.
2727: set dummy strip; ac_word=$2
2728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729: $as_echo_n "checking for $ac_word... " >&6; }
2730: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2731: $as_echo_n "(cached) " >&6
2732: else
2733: if test -n "$ac_ct_STRIP"; then
2734: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2735: else
2736: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737: for as_dir in $PATH
2738: do
2739: IFS=$as_save_IFS
2740: test -z "$as_dir" && as_dir=.
2741: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 2742: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.31 moko 2743: ac_cv_prog_ac_ct_STRIP="strip"
2744: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745: break 2
2746: fi
2747: done
2748: done
2749: IFS=$as_save_IFS
2750:
2751: fi
2752: fi
2753: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2754: if test -n "$ac_ct_STRIP"; then
2755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2756: $as_echo "$ac_ct_STRIP" >&6; }
2757: else
2758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759: $as_echo "no" >&6; }
2760: fi
2761:
2762: if test "x$ac_ct_STRIP" = x; then
2763: STRIP=":"
2764: else
2765: case $cross_compiling:$ac_tool_warned in
2766: yes:)
2767: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2768: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2769: ac_tool_warned=yes ;;
2770: esac
2771: STRIP=$ac_ct_STRIP
2772: fi
2773: else
2774: STRIP="$ac_cv_prog_STRIP"
2775: fi
2776:
2777: fi
2778: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2779:
2780: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2781: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2782: if test -z "$MKDIR_P"; then
2783: if ${ac_cv_path_mkdir+:} false; then :
2784: $as_echo_n "(cached) " >&6
2785: else
2786: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2788: do
2789: IFS=$as_save_IFS
2790: test -z "$as_dir" && as_dir=.
2791: for ac_prog in mkdir gmkdir; do
2792: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 2793: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.31 moko 2794: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2795: 'mkdir (GNU coreutils) '* | \
2796: 'mkdir (coreutils) '* | \
2797: 'mkdir (fileutils) '4.1*)
2798: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2799: break 3;;
2800: esac
2801: done
2802: done
1.16 paf 2803: done
1.31 moko 2804: IFS=$as_save_IFS
2805:
2806: fi
2807:
2808: test -d ./--version && rmdir ./--version
2809: if test "${ac_cv_path_mkdir+set}" = set; then
2810: MKDIR_P="$ac_cv_path_mkdir -p"
1.16 paf 2811: else
1.31 moko 2812: # As a last resort, use the slow shell script. Don't cache a
2813: # value for MKDIR_P within a source directory, because that will
2814: # break other packages using the cache if that directory is
2815: # removed, or if the value is a relative name.
2816: MKDIR_P="$ac_install_sh -d"
1.16 paf 2817: fi
2818: fi
1.31 moko 2819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2820: $as_echo "$MKDIR_P" >&6; }
2821:
2822: mkdir_p="$MKDIR_P"
2823: case $mkdir_p in
2824: [\\/$]* | ?:[\\/]*) ;;
2825: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2826: esac
1.16 paf 2827:
1.10 paf 2828: for ac_prog in gawk mawk nawk awk
2829: do
2830: # Extract the first word of "$ac_prog", so it can be a program name with args.
2831: set dummy $ac_prog; ac_word=$2
1.31 moko 2832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833: $as_echo_n "checking for $ac_word... " >&6; }
2834: if ${ac_cv_prog_AWK+:} false; then :
2835: $as_echo_n "(cached) " >&6
1.10 paf 2836: else
2837: if test -n "$AWK"; then
2838: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2839: else
2840: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841: for as_dir in $PATH
2842: do
2843: IFS=$as_save_IFS
2844: test -z "$as_dir" && as_dir=.
1.31 moko 2845: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 2846: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 2847: ac_cv_prog_AWK="$ac_prog"
1.31 moko 2848: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 2849: break 2
2850: fi
2851: done
1.31 moko 2852: done
2853: IFS=$as_save_IFS
1.10 paf 2854:
2855: fi
2856: fi
2857: AWK=$ac_cv_prog_AWK
2858: if test -n "$AWK"; then
1.31 moko 2859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2860: $as_echo "$AWK" >&6; }
1.10 paf 2861: else
1.31 moko 2862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863: $as_echo "no" >&6; }
1.10 paf 2864: fi
1.1 parser 2865:
1.31 moko 2866:
1.10 paf 2867: test -n "$AWK" && break
2868: done
1.1 parser 2869:
1.31 moko 2870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2871: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2872: set x ${MAKE-make}
2873: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2874: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2875: $as_echo_n "(cached) " >&6
1.1 parser 2876: else
1.10 paf 2877: cat >conftest.make <<\_ACEOF
1.31 moko 2878: SHELL = /bin/sh
1.1 parser 2879: all:
1.31 moko 2880: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.10 paf 2881: _ACEOF
1.31 moko 2882: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2883: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2884: *@@@%%%=?*=@@@%%%*)
2885: eval ac_cv_prog_make_${ac_make}_set=yes;;
2886: *)
2887: eval ac_cv_prog_make_${ac_make}_set=no;;
2888: esac
1.10 paf 2889: rm -f conftest.make
1.1 parser 2890: fi
1.31 moko 2891: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2893: $as_echo "yes" >&6; }
1.1 parser 2894: SET_MAKE=
2895: else
1.31 moko 2896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897: $as_echo "no" >&6; }
1.1 parser 2898: SET_MAKE="MAKE=${MAKE-make}"
2899: fi
2900:
1.16 paf 2901: rm -rf .tst 2>/dev/null
2902: mkdir .tst 2>/dev/null
2903: if test -d .tst; then
2904: am__leading_dot=.
2905: else
2906: am__leading_dot=_
2907: fi
2908: rmdir .tst 2>/dev/null
2909:
1.31 moko 2910: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2911: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2912: # is not polluted with repeated "-I."
2913: am__isrc=' -I$(srcdir)'
2914: # test to see if srcdir already configured
2915: if test -f $srcdir/config.status; then
2916: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2917: fi
1.10 paf 2918: fi
2919:
2920: # test whether we have cygpath
2921: if test -z "$CYGPATH_W"; then
2922: if (cygpath --version) >/dev/null 2>/dev/null; then
2923: CYGPATH_W='cygpath -w'
2924: else
2925: CYGPATH_W=echo
2926: fi
2927: fi
2928:
2929:
2930: # Define the identity of the package.
1.35 moko 2931: PACKAGE='parser3pgsql'
1.36 moko 2932: VERSION='10.5'
1.23 moko 2933:
2934:
2935: cat >>confdefs.h <<_ACEOF
2936: #define PACKAGE "$PACKAGE"
2937: _ACEOF
2938:
1.1 parser 2939:
1.23 moko 2940: cat >>confdefs.h <<_ACEOF
2941: #define VERSION "$VERSION"
2942: _ACEOF
1.1 parser 2943:
1.10 paf 2944: # Some tools Automake needs.
2945:
2946: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2947:
2948:
2949: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2950:
2951:
2952: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2953:
2954:
2955: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2956:
2957:
2958: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 2959:
1.10 paf 2960: # We need awk for the "check" target. The system "awk" is bad on
2961: # some platforms.
1.16 paf 2962: # Always define AMTAR for backward compatibility.
2963:
2964: AMTAR=${AMTAR-"${am_missing_run}tar"}
2965:
2966: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2967:
2968:
1.1 parser 2969:
2970:
2971:
2972:
1.23 moko 2973:
1.10 paf 2974:
1.1 parser 2975:
1.31 moko 2976: # Check whether --with-pgsql-inc was given.
2977: if test "${with_pgsql_inc+set}" = set; then :
2978: withval=$with_pgsql_inc;
1.23 moko 2979: if test -r "$withval/libpq-fe.h"; then
2980: PGSQL_INC=$withval
2981: fi
2982:
2983:
2984: if test -z "$PGSQL_INC"; then
1.31 moko 2985: as_fn_error $? "$PGSQL_INC does not seem to be valid PgSql includes directory" "$LINENO" 5
1.23 moko 2986: fi
2987:
1.1 parser 2988: else
1.31 moko 2989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PGSQL_INC directory" >&5
2990: $as_echo_n "checking for PGSQL_INC directory... " >&6; }
1.23 moko 2991: for d in \
1.34 moko 2992: /usr/include \
2993: /usr/include/postgresql \
2994: /usr/local/include \
1.23 moko 2995: /usr/local/include/postgresql \
2996: /usr/local/pgsql/include ; do
1.1 parser 2997:
1.23 moko 2998: if test -r "$d/libpq-fe.h"; then
2999: PGSQL_INC=$d
3000: fi
1.1 parser 3001:
1.23 moko 3002: done
1.1 parser 3003:
1.23 moko 3004: if test -z "$PGSQL_INC"; then
1.31 moko 3005: as_fn_error $? "use --with-pgsql-inc=DIR to specify PgSql includes directory" "$LINENO" 5
1.23 moko 3006: fi
3007:
1.31 moko 3008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_INC" >&5
3009: $as_echo "$PGSQL_INC" >&6; }
1.23 moko 3010:
1.31 moko 3011: fi
1.10 paf 3012:
1.1 parser 3013:
3014:
3015:
3016:
1.31 moko 3017: ac_ext=cpp
1.10 paf 3018: ac_cpp='$CXXCPP $CPPFLAGS'
3019: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.31 moko 3022: if test -z "$CXX"; then
3023: if test -n "$CCC"; then
3024: CXX=$CCC
3025: else
3026: if test -n "$ac_tool_prefix"; then
3027: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.10 paf 3028: do
3029: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 moko 3031: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032: $as_echo_n "checking for $ac_word... " >&6; }
3033: if ${ac_cv_prog_CXX+:} false; then :
3034: $as_echo_n "(cached) " >&6
1.1 parser 3035: else
3036: if test -n "$CXX"; then
3037: ac_cv_prog_CXX="$CXX" # Let the user override the test.
3038: else
1.10 paf 3039: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040: for as_dir in $PATH
3041: do
3042: IFS=$as_save_IFS
3043: test -z "$as_dir" && as_dir=.
1.31 moko 3044: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3045: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3046: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.31 moko 3047: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3048: break 2
3049: fi
3050: done
1.31 moko 3051: done
3052: IFS=$as_save_IFS
1.10 paf 3053:
1.1 parser 3054: fi
3055: fi
1.10 paf 3056: CXX=$ac_cv_prog_CXX
1.1 parser 3057: if test -n "$CXX"; then
1.31 moko 3058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3059: $as_echo "$CXX" >&6; }
1.1 parser 3060: else
1.31 moko 3061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062: $as_echo "no" >&6; }
1.1 parser 3063: fi
3064:
1.31 moko 3065:
1.10 paf 3066: test -n "$CXX" && break
3067: done
3068: fi
3069: if test -z "$CXX"; then
3070: ac_ct_CXX=$CXX
1.31 moko 3071: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.10 paf 3072: do
3073: # Extract the first word of "$ac_prog", so it can be a program name with args.
3074: set dummy $ac_prog; ac_word=$2
1.31 moko 3075: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076: $as_echo_n "checking for $ac_word... " >&6; }
3077: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3078: $as_echo_n "(cached) " >&6
1.10 paf 3079: else
3080: if test -n "$ac_ct_CXX"; then
3081: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3082: else
3083: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084: for as_dir in $PATH
3085: do
3086: IFS=$as_save_IFS
3087: test -z "$as_dir" && as_dir=.
1.31 moko 3088: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3089: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3090: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.31 moko 3091: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3092: break 2
3093: fi
3094: done
1.31 moko 3095: done
3096: IFS=$as_save_IFS
1.1 parser 3097:
1.10 paf 3098: fi
3099: fi
3100: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3101: if test -n "$ac_ct_CXX"; then
1.31 moko 3102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3103: $as_echo "$ac_ct_CXX" >&6; }
1.10 paf 3104: else
1.31 moko 3105: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106: $as_echo "no" >&6; }
1.10 paf 3107: fi
1.1 parser 3108:
1.31 moko 3109:
1.10 paf 3110: test -n "$ac_ct_CXX" && break
3111: done
1.1 parser 3112:
1.31 moko 3113: if test "x$ac_ct_CXX" = x; then
3114: CXX="g++"
3115: else
3116: case $cross_compiling:$ac_tool_warned in
3117: yes:)
3118: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120: ac_tool_warned=yes ;;
3121: esac
3122: CXX=$ac_ct_CXX
3123: fi
1.10 paf 3124: fi
1.1 parser 3125:
1.31 moko 3126: fi
3127: fi
1.10 paf 3128: # Provide some information about the compiler.
1.31 moko 3129: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3130: set X $ac_compile
3131: ac_compiler=$2
3132: for ac_option in --version -v -V -qversion; do
3133: { { ac_try="$ac_compiler $ac_option >&5"
3134: case "(($ac_try" in
3135: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136: *) ac_try_echo=$ac_try;;
3137: esac
3138: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139: $as_echo "$ac_try_echo"; } >&5
3140: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.10 paf 3141: ac_status=$?
1.31 moko 3142: if test -s conftest.err; then
3143: sed '10a\
3144: ... rest of stderr output deleted ...
3145: 10q' conftest.err >conftest.er1
3146: cat conftest.er1 >&5
3147: fi
3148: rm -f conftest.er1 conftest.err
3149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150: test $ac_status = 0; }
3151: done
1.10 paf 3152:
1.31 moko 3153: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3154: /* end confdefs.h. */
3155:
3156: int
3157: main ()
3158: {
3159:
3160: ;
3161: return 0;
3162: }
3163: _ACEOF
3164: ac_clean_files_save=$ac_clean_files
1.31 moko 3165: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.10 paf 3166: # Try to create an executable without -o first, disregard a.out.
3167: # It will help us diagnose broken compilers, and finding out an intuition
3168: # of exeext.
1.31 moko 3169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3170: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3171: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172:
3173: # The possible output files:
3174: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3175:
3176: ac_rmfiles=
3177: for ac_file in $ac_files
3178: do
3179: case $ac_file in
3180: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182: esac
3183: done
3184: rm -f $ac_rmfiles
3185:
3186: if { { ac_try="$ac_link_default"
3187: case "(($ac_try" in
3188: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189: *) ac_try_echo=$ac_try;;
3190: esac
3191: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192: $as_echo "$ac_try_echo"; } >&5
3193: (eval "$ac_link_default") 2>&5
3194: ac_status=$?
3195: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196: test $ac_status = 0; }; then :
3197: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3198: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3199: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3200: # so that the user can short-circuit this test for compilers unknown to
3201: # Autoconf.
3202: for ac_file in $ac_files ''
1.10 paf 3203: do
3204: test -f "$ac_file" || continue
3205: case $ac_file in
1.31 moko 3206: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.16 paf 3207: ;;
1.10 paf 3208: [ab].out )
1.16 paf 3209: # We found the default executable, but exeext='' is most
3210: # certainly right.
3211: break;;
1.10 paf 3212: *.* )
1.31 moko 3213: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3214: then :; else
3215: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216: fi
3217: # We set ac_cv_exeext here because the later test for it is not
3218: # safe: cross compilers may not add the suffix if given an `-o'
3219: # argument, so we may need to know it at that point already.
3220: # Even if this section looks crufty: it has the advantage of
3221: # actually working.
1.16 paf 3222: break;;
1.10 paf 3223: * )
1.16 paf 3224: break;;
1.10 paf 3225: esac
3226: done
1.31 moko 3227: test "$ac_cv_exeext" = no && ac_cv_exeext=
3228:
1.10 paf 3229: else
1.31 moko 3230: ac_file=''
3231: fi
3232: if test -z "$ac_file"; then :
3233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234: $as_echo "no" >&6; }
3235: $as_echo "$as_me: failed program was:" >&5
1.10 paf 3236: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3237:
1.31 moko 3238: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240: as_fn_error 77 "C++ compiler cannot create executables
3241: See \`config.log' for more details" "$LINENO" 5; }
3242: else
3243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244: $as_echo "yes" >&6; }
3245: fi
3246: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3247: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3249: $as_echo "$ac_file" >&6; }
1.10 paf 3250: ac_exeext=$ac_cv_exeext
3251:
1.31 moko 3252: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.10 paf 3253: ac_clean_files=$ac_clean_files_save
1.31 moko 3254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3255: $as_echo_n "checking for suffix of executables... " >&6; }
3256: if { { ac_try="$ac_link"
3257: case "(($ac_try" in
3258: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259: *) ac_try_echo=$ac_try;;
3260: esac
3261: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262: $as_echo "$ac_try_echo"; } >&5
3263: (eval "$ac_link") 2>&5
1.10 paf 3264: ac_status=$?
1.31 moko 3265: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266: test $ac_status = 0; }; then :
1.10 paf 3267: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3268: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3269: # work properly (i.e., refer to `conftest.exe'), while it won't with
3270: # `rm'.
3271: for ac_file in conftest.exe conftest conftest.*; do
3272: test -f "$ac_file" || continue
3273: case $ac_file in
1.31 moko 3274: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.10 paf 3275: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.16 paf 3276: break;;
1.10 paf 3277: * ) break;;
3278: esac
3279: done
1.1 parser 3280: else
1.31 moko 3281: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3284: See \`config.log' for more details" "$LINENO" 5; }
3285: fi
3286: rm -f conftest conftest$ac_cv_exeext
3287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3288: $as_echo "$ac_cv_exeext" >&6; }
1.10 paf 3289:
3290: rm -f conftest.$ac_ext
3291: EXEEXT=$ac_cv_exeext
3292: ac_exeext=$EXEEXT
1.31 moko 3293: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294: /* end confdefs.h. */
3295: #include <stdio.h>
3296: int
3297: main ()
3298: {
3299: FILE *f = fopen ("conftest.out", "w");
3300: return ferror (f) || fclose (f) != 0;
3301:
3302: ;
3303: return 0;
3304: }
3305: _ACEOF
3306: ac_clean_files="$ac_clean_files conftest.out"
3307: # Check that the compiler produces executables we can run. If not, either
3308: # the compiler is broken, or we cross compile.
3309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3310: $as_echo_n "checking whether we are cross compiling... " >&6; }
3311: if test "$cross_compiling" != yes; then
3312: { { ac_try="$ac_link"
3313: case "(($ac_try" in
3314: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315: *) ac_try_echo=$ac_try;;
3316: esac
3317: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318: $as_echo "$ac_try_echo"; } >&5
3319: (eval "$ac_link") 2>&5
3320: ac_status=$?
3321: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322: test $ac_status = 0; }
3323: if { ac_try='./conftest$ac_cv_exeext'
3324: { { case "(($ac_try" in
3325: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326: *) ac_try_echo=$ac_try;;
3327: esac
3328: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329: $as_echo "$ac_try_echo"; } >&5
3330: (eval "$ac_try") 2>&5
3331: ac_status=$?
3332: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333: test $ac_status = 0; }; }; then
3334: cross_compiling=no
3335: else
3336: if test "$cross_compiling" = maybe; then
3337: cross_compiling=yes
3338: else
3339: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341: as_fn_error $? "cannot run C++ compiled programs.
3342: If you meant to cross compile, use \`--host'.
3343: See \`config.log' for more details" "$LINENO" 5; }
3344: fi
3345: fi
3346: fi
3347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3348: $as_echo "$cross_compiling" >&6; }
3349:
3350: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3351: ac_clean_files=$ac_clean_files_save
3352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3353: $as_echo_n "checking for suffix of object files... " >&6; }
3354: if ${ac_cv_objext+:} false; then :
3355: $as_echo_n "(cached) " >&6
1.10 paf 3356: else
1.31 moko 3357: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3358: /* end confdefs.h. */
3359:
3360: int
3361: main ()
3362: {
3363:
3364: ;
3365: return 0;
3366: }
3367: _ACEOF
3368: rm -f conftest.o conftest.obj
1.31 moko 3369: if { { ac_try="$ac_compile"
3370: case "(($ac_try" in
3371: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372: *) ac_try_echo=$ac_try;;
3373: esac
3374: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375: $as_echo "$ac_try_echo"; } >&5
3376: (eval "$ac_compile") 2>&5
3377: ac_status=$?
3378: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379: test $ac_status = 0; }; then :
3380: for ac_file in conftest.o conftest.obj conftest.*; do
3381: test -f "$ac_file" || continue;
1.10 paf 3382: case $ac_file in
1.31 moko 3383: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.10 paf 3384: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3385: break;;
3386: esac
3387: done
1.1 parser 3388: else
1.31 moko 3389: $as_echo "$as_me: failed program was:" >&5
1.10 paf 3390: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3391:
1.31 moko 3392: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394: as_fn_error $? "cannot compute suffix of object files: cannot compile
3395: See \`config.log' for more details" "$LINENO" 5; }
1.10 paf 3396: fi
3397: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3398: fi
1.31 moko 3399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3400: $as_echo "$ac_cv_objext" >&6; }
1.10 paf 3401: OBJEXT=$ac_cv_objext
3402: ac_objext=$OBJEXT
1.31 moko 3403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3404: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3405: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3406: $as_echo_n "(cached) " >&6
1.10 paf 3407: else
1.31 moko 3408: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3409: /* end confdefs.h. */
3410:
3411: int
3412: main ()
3413: {
3414: #ifndef __GNUC__
3415: choke me
3416: #endif
1.1 parser 3417:
1.10 paf 3418: ;
3419: return 0;
3420: }
3421: _ACEOF
1.31 moko 3422: if ac_fn_cxx_try_compile "$LINENO"; then :
1.10 paf 3423: ac_compiler_gnu=yes
3424: else
1.31 moko 3425: ac_compiler_gnu=no
1.10 paf 3426: fi
1.31 moko 3427: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3428: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3429:
3430: fi
1.31 moko 3431: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3432: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3433: if test $ac_compiler_gnu = yes; then
3434: GXX=yes
3435: else
3436: GXX=
3437: fi
1.10 paf 3438: ac_test_CXXFLAGS=${CXXFLAGS+set}
3439: ac_save_CXXFLAGS=$CXXFLAGS
1.31 moko 3440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3441: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3442: if ${ac_cv_prog_cxx_g+:} false; then :
3443: $as_echo_n "(cached) " >&6
3444: else
3445: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3446: ac_cxx_werror_flag=yes
3447: ac_cv_prog_cxx_g=no
3448: CXXFLAGS="-g"
3449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3450: /* end confdefs.h. */
3451:
3452: int
3453: main ()
3454: {
3455:
3456: ;
3457: return 0;
3458: }
3459: _ACEOF
1.31 moko 3460: if ac_fn_cxx_try_compile "$LINENO"; then :
1.10 paf 3461: ac_cv_prog_cxx_g=yes
1.1 parser 3462: else
1.31 moko 3463: CXXFLAGS=""
3464: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465: /* end confdefs.h. */
1.1 parser 3466:
1.10 paf 3467: int
3468: main ()
3469: {
1.31 moko 3470:
1.10 paf 3471: ;
3472: return 0;
3473: }
3474: _ACEOF
1.31 moko 3475: if ac_fn_cxx_try_compile "$LINENO"; then :
3476:
1.10 paf 3477: else
1.31 moko 3478: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3479: CXXFLAGS="-g"
3480: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 3481: /* end confdefs.h. */
1.31 moko 3482:
1.10 paf 3483: int
3484: main ()
3485: {
1.31 moko 3486:
1.10 paf 3487: ;
3488: return 0;
3489: }
3490: _ACEOF
1.31 moko 3491: if ac_fn_cxx_try_compile "$LINENO"; then :
3492: ac_cv_prog_cxx_g=yes
3493: fi
3494: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495: fi
3496: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497: fi
3498: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3500: fi
3501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3502: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3503: if test "$ac_test_CXXFLAGS" = set; then
3504: CXXFLAGS=$ac_save_CXXFLAGS
3505: elif test $ac_cv_prog_cxx_g = yes; then
3506: if test "$GXX" = yes; then
3507: CXXFLAGS="-g -O2"
3508: else
3509: CXXFLAGS="-g"
3510: fi
1.10 paf 3511: else
1.31 moko 3512: if test "$GXX" = yes; then
3513: CXXFLAGS="-O2"
3514: else
3515: CXXFLAGS=
3516: fi
1.10 paf 3517: fi
1.15 paf 3518: ac_ext=c
3519: ac_cpp='$CPP $CPPFLAGS'
3520: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 paf 3523: DEPDIR="${am__leading_dot}deps"
1.10 paf 3524:
1.31 moko 3525: ac_config_commands="$ac_config_commands depfiles"
1.10 paf 3526:
3527:
3528: am_make=${MAKE-make}
3529: cat > confinc << 'END'
1.16 paf 3530: am__doit:
1.31 moko 3531: @echo this is the am__doit target
1.16 paf 3532: .PHONY: am__doit
1.10 paf 3533: END
3534: # If we don't find an include directive, just comment out the code.
1.31 moko 3535: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3536: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.10 paf 3537: am__include="#"
3538: am__quote=
3539: _am_result=none
3540: # First try GNU make style include.
3541: echo "include confinc" > confmf
1.31 moko 3542: # Ignore all kinds of additional output from `make'.
3543: case `$am_make -s -f confmf 2> /dev/null` in #(
3544: *the\ am__doit\ target*)
3545: am__include=include
3546: am__quote=
3547: _am_result=GNU
3548: ;;
3549: esac
1.10 paf 3550: # Now try BSD make style include.
3551: if test "$am__include" = "#"; then
3552: echo '.include "confinc"' > confmf
1.31 moko 3553: case `$am_make -s -f confmf 2> /dev/null` in #(
3554: *the\ am__doit\ target*)
3555: am__include=.include
3556: am__quote="\""
3557: _am_result=BSD
3558: ;;
3559: esac
1.10 paf 3560: fi
3561:
3562:
1.31 moko 3563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3564: $as_echo "$_am_result" >&6; }
1.10 paf 3565: rm -f confinc confmf
3566:
1.31 moko 3567: # Check whether --enable-dependency-tracking was given.
3568: if test "${enable_dependency_tracking+set}" = set; then :
3569: enableval=$enable_dependency_tracking;
3570: fi
1.10 paf 3571:
3572: if test "x$enable_dependency_tracking" != xno; then
3573: am_depcomp="$ac_aux_dir/depcomp"
3574: AMDEPBACKSLASH='\'
3575: fi
1.31 moko 3576: if test "x$enable_dependency_tracking" != xno; then
1.10 paf 3577: AMDEP_TRUE=
3578: AMDEP_FALSE='#'
3579: else
3580: AMDEP_TRUE='#'
3581: AMDEP_FALSE=
3582: fi
3583:
3584:
3585:
3586: depcc="$CXX" am_compiler_list=
3587:
1.31 moko 3588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3589: $as_echo_n "checking dependency style of $depcc... " >&6; }
3590: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3591: $as_echo_n "(cached) " >&6
1.10 paf 3592: else
3593: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3594: # We make a subdir and do the tests there. Otherwise we can end up
3595: # making bogus files that we don't know about and never remove. For
3596: # instance it was reported that on HP-UX the gcc test will end up
3597: # making a dummy file named `D' -- because `-MD' means `put the output
3598: # in D'.
3599: mkdir conftest.dir
3600: # Copy depcomp to subdir because otherwise we won't find it if we're
3601: # using a relative directory.
3602: cp "$am_depcomp" conftest.dir
3603: cd conftest.dir
1.16 paf 3604: # We will build objects and dependencies in a subdirectory because
3605: # it helps to detect inapplicable dependency modes. For instance
3606: # both Tru64's cc and ICC support -MD to output dependencies as a
3607: # side effect of compilation, but ICC will put the dependencies in
3608: # the current directory while Tru64 will put them in the object
3609: # directory.
3610: mkdir sub
1.10 paf 3611:
3612: am_cv_CXX_dependencies_compiler_type=none
3613: if test "$am_compiler_list" = ""; then
3614: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3615: fi
1.31 moko 3616: am__universal=false
3617: case " $depcc " in #(
3618: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3619: esac
3620:
1.10 paf 3621: for depmode in $am_compiler_list; do
1.16 paf 3622: # Setup a source with many dependencies, because some compilers
3623: # like to wrap large dependency lists on column 80 (with \), and
3624: # we should not choose a depcomp mode which is confused by this.
3625: #
1.10 paf 3626: # We need to recreate these files for each test, as the compiler may
3627: # overwrite some of them when testing with obscure command lines.
3628: # This happens at least with the AIX C compiler.
1.16 paf 3629: : > sub/conftest.c
3630: for i in 1 2 3 4 5 6; do
3631: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3632: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3633: # Solaris 8's {/usr,}/bin/sh.
3634: touch sub/conftst$i.h
3635: done
3636: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 3637:
1.31 moko 3638: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3639: # mode. It turns out that the SunPro C++ compiler does not properly
3640: # handle `-M -o', and we need to detect this. Also, some Intel
3641: # versions had trouble with output in subdirs
3642: am__obj=sub/conftest.${OBJEXT-o}
3643: am__minus_obj="-o $am__obj"
1.10 paf 3644: case $depmode in
1.31 moko 3645: gcc)
3646: # This depmode causes a compiler race in universal mode.
3647: test "$am__universal" = false || continue
3648: ;;
1.10 paf 3649: nosideeffect)
3650: # after this tag, mechanisms are not by side-effect, so they'll
3651: # only be used when explicitly requested
3652: if test "x$enable_dependency_tracking" = xyes; then
3653: continue
3654: else
3655: break
3656: fi
3657: ;;
1.31 moko 3658: msvisualcpp | msvcmsys)
3659: # This compiler won't grok `-c -o', but also, the minuso test has
3660: # not run yet. These depmodes are late enough in the game, and
3661: # so weak that their functioning should not be impacted.
3662: am__obj=conftest.${OBJEXT-o}
3663: am__minus_obj=
3664: ;;
1.10 paf 3665: none) break ;;
3666: esac
3667: if depmode=$depmode \
1.31 moko 3668: source=sub/conftest.c object=$am__obj \
1.16 paf 3669: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.31 moko 3670: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.16 paf 3671: >/dev/null 2>conftest.err &&
1.31 moko 3672: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.16 paf 3673: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.31 moko 3674: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 3675: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 3676: # icc doesn't choke on unknown options, it will just issue warnings
3677: # or remarks (even with -Werror). So we grep stderr for any message
3678: # that says an option was ignored or not supported.
3679: # When given -MP, icc 7.0 and 7.1 complain thusly:
3680: # icc: Command line warning: ignoring option '-M'; no argument required
3681: # The diagnosis changed in icc 8.0:
3682: # icc: Command line remark: option '-MP' not supported
3683: if (grep 'ignoring option' conftest.err ||
3684: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3685: am_cv_CXX_dependencies_compiler_type=$depmode
3686: break
3687: fi
1.10 paf 3688: fi
3689: done
3690:
3691: cd ..
3692: rm -rf conftest.dir
3693: else
3694: am_cv_CXX_dependencies_compiler_type=none
3695: fi
3696:
3697: fi
1.31 moko 3698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3699: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.10 paf 3700: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3701:
1.31 moko 3702: if
1.10 paf 3703: test "x$enable_dependency_tracking" != xno \
3704: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3705: am__fastdepCXX_TRUE=
3706: am__fastdepCXX_FALSE='#'
3707: else
3708: am__fastdepCXX_TRUE='#'
3709: am__fastdepCXX_FALSE=
3710: fi
3711:
1.1 parser 3712:
1.10 paf 3713: ac_ext=c
3714: ac_cpp='$CPP $CPPFLAGS'
3715: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718: if test -n "$ac_tool_prefix"; then
3719: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3720: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.31 moko 3721: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722: $as_echo_n "checking for $ac_word... " >&6; }
3723: if ${ac_cv_prog_CC+:} false; then :
3724: $as_echo_n "(cached) " >&6
1.10 paf 3725: else
3726: if test -n "$CC"; then
3727: ac_cv_prog_CC="$CC" # Let the user override the test.
3728: else
3729: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730: for as_dir in $PATH
3731: do
3732: IFS=$as_save_IFS
3733: test -z "$as_dir" && as_dir=.
1.31 moko 3734: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3735: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3736: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.31 moko 3737: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3738: break 2
3739: fi
3740: done
1.31 moko 3741: done
3742: IFS=$as_save_IFS
1.1 parser 3743:
1.10 paf 3744: fi
3745: fi
3746: CC=$ac_cv_prog_CC
3747: if test -n "$CC"; then
1.31 moko 3748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749: $as_echo "$CC" >&6; }
1.10 paf 3750: else
1.31 moko 3751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752: $as_echo "no" >&6; }
1.10 paf 3753: fi
1.1 parser 3754:
1.31 moko 3755:
1.10 paf 3756: fi
3757: if test -z "$ac_cv_prog_CC"; then
3758: ac_ct_CC=$CC
3759: # Extract the first word of "gcc", so it can be a program name with args.
3760: set dummy gcc; ac_word=$2
1.31 moko 3761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762: $as_echo_n "checking for $ac_word... " >&6; }
3763: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3764: $as_echo_n "(cached) " >&6
1.1 parser 3765: else
1.10 paf 3766: if test -n "$ac_ct_CC"; then
3767: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 3768: else
1.10 paf 3769: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770: for as_dir in $PATH
3771: do
3772: IFS=$as_save_IFS
3773: test -z "$as_dir" && as_dir=.
1.31 moko 3774: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3775: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3776: ac_cv_prog_ac_ct_CC="gcc"
1.31 moko 3777: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3778: break 2
3779: fi
3780: done
1.31 moko 3781: done
3782: IFS=$as_save_IFS
1.10 paf 3783:
3784: fi
1.1 parser 3785: fi
1.10 paf 3786: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3787: if test -n "$ac_ct_CC"; then
1.31 moko 3788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3789: $as_echo "$ac_ct_CC" >&6; }
1.10 paf 3790: else
1.31 moko 3791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792: $as_echo "no" >&6; }
1.1 parser 3793: fi
1.10 paf 3794:
1.31 moko 3795: if test "x$ac_ct_CC" = x; then
3796: CC=""
3797: else
3798: case $cross_compiling:$ac_tool_warned in
3799: yes:)
3800: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802: ac_tool_warned=yes ;;
3803: esac
3804: CC=$ac_ct_CC
3805: fi
1.1 parser 3806: else
1.10 paf 3807: CC="$ac_cv_prog_CC"
1.1 parser 3808: fi
3809:
1.10 paf 3810: if test -z "$CC"; then
1.31 moko 3811: if test -n "$ac_tool_prefix"; then
3812: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.10 paf 3813: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.31 moko 3814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815: $as_echo_n "checking for $ac_word... " >&6; }
3816: if ${ac_cv_prog_CC+:} false; then :
3817: $as_echo_n "(cached) " >&6
1.1 parser 3818: else
3819: if test -n "$CC"; then
3820: ac_cv_prog_CC="$CC" # Let the user override the test.
3821: else
1.10 paf 3822: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823: for as_dir in $PATH
3824: do
3825: IFS=$as_save_IFS
3826: test -z "$as_dir" && as_dir=.
1.31 moko 3827: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3828: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3829: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.31 moko 3830: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3831: break 2
3832: fi
3833: done
1.31 moko 3834: done
3835: IFS=$as_save_IFS
1.10 paf 3836:
1.1 parser 3837: fi
3838: fi
1.10 paf 3839: CC=$ac_cv_prog_CC
1.1 parser 3840: if test -n "$CC"; then
1.31 moko 3841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842: $as_echo "$CC" >&6; }
1.10 paf 3843: else
1.31 moko 3844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845: $as_echo "no" >&6; }
1.10 paf 3846: fi
3847:
1.31 moko 3848:
1.10 paf 3849: fi
3850: fi
1.1 parser 3851: if test -z "$CC"; then
3852: # Extract the first word of "cc", so it can be a program name with args.
3853: set dummy cc; ac_word=$2
1.31 moko 3854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855: $as_echo_n "checking for $ac_word... " >&6; }
3856: if ${ac_cv_prog_CC+:} false; then :
3857: $as_echo_n "(cached) " >&6
1.1 parser 3858: else
3859: if test -n "$CC"; then
3860: ac_cv_prog_CC="$CC" # Let the user override the test.
3861: else
3862: ac_prog_rejected=no
1.10 paf 3863: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864: for as_dir in $PATH
3865: do
3866: IFS=$as_save_IFS
3867: test -z "$as_dir" && as_dir=.
1.31 moko 3868: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3869: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3870: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3871: ac_prog_rejected=yes
3872: continue
3873: fi
3874: ac_cv_prog_CC="cc"
1.31 moko 3875: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3876: break 2
3877: fi
3878: done
1.31 moko 3879: done
3880: IFS=$as_save_IFS
1.10 paf 3881:
1.1 parser 3882: if test $ac_prog_rejected = yes; then
3883: # We found a bogon in the path, so make sure we never use it.
3884: set dummy $ac_cv_prog_CC
3885: shift
1.10 paf 3886: if test $# != 0; then
1.1 parser 3887: # We chose a different compiler from the bogus one.
3888: # However, it has the same basename, so the bogon will be chosen
3889: # first if we set CC to just the basename; use the full file name.
3890: shift
1.10 paf 3891: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3892: fi
3893: fi
3894: fi
3895: fi
1.10 paf 3896: CC=$ac_cv_prog_CC
1.1 parser 3897: if test -n "$CC"; then
1.31 moko 3898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899: $as_echo "$CC" >&6; }
1.1 parser 3900: else
1.31 moko 3901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902: $as_echo "no" >&6; }
1.1 parser 3903: fi
3904:
1.31 moko 3905:
1.10 paf 3906: fi
3907: if test -z "$CC"; then
3908: if test -n "$ac_tool_prefix"; then
1.31 moko 3909: for ac_prog in cl.exe
1.10 paf 3910: do
3911: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3912: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 moko 3913: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914: $as_echo_n "checking for $ac_word... " >&6; }
3915: if ${ac_cv_prog_CC+:} false; then :
3916: $as_echo_n "(cached) " >&6
1.1 parser 3917: else
3918: if test -n "$CC"; then
3919: ac_cv_prog_CC="$CC" # Let the user override the test.
3920: else
1.10 paf 3921: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922: for as_dir in $PATH
3923: do
3924: IFS=$as_save_IFS
3925: test -z "$as_dir" && as_dir=.
1.31 moko 3926: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3927: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3928: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.31 moko 3929: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3930: break 2
3931: fi
3932: done
1.31 moko 3933: done
3934: IFS=$as_save_IFS
1.10 paf 3935:
1.1 parser 3936: fi
3937: fi
1.10 paf 3938: CC=$ac_cv_prog_CC
1.1 parser 3939: if test -n "$CC"; then
1.31 moko 3940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941: $as_echo "$CC" >&6; }
1.1 parser 3942: else
1.31 moko 3943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944: $as_echo "no" >&6; }
1.10 paf 3945: fi
3946:
1.31 moko 3947:
1.10 paf 3948: test -n "$CC" && break
3949: done
1.1 parser 3950: fi
1.10 paf 3951: if test -z "$CC"; then
3952: ac_ct_CC=$CC
1.31 moko 3953: for ac_prog in cl.exe
1.10 paf 3954: do
3955: # Extract the first word of "$ac_prog", so it can be a program name with args.
3956: set dummy $ac_prog; ac_word=$2
1.31 moko 3957: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958: $as_echo_n "checking for $ac_word... " >&6; }
3959: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3960: $as_echo_n "(cached) " >&6
1.10 paf 3961: else
3962: if test -n "$ac_ct_CC"; then
3963: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3964: else
3965: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966: for as_dir in $PATH
3967: do
3968: IFS=$as_save_IFS
3969: test -z "$as_dir" && as_dir=.
1.31 moko 3970: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 3971: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.10 paf 3972: ac_cv_prog_ac_ct_CC="$ac_prog"
1.31 moko 3973: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.10 paf 3974: break 2
1.1 parser 3975: fi
1.10 paf 3976: done
1.31 moko 3977: done
3978: IFS=$as_save_IFS
1.10 paf 3979:
3980: fi
3981: fi
3982: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3983: if test -n "$ac_ct_CC"; then
1.31 moko 3984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3985: $as_echo "$ac_ct_CC" >&6; }
1.10 paf 3986: else
1.31 moko 3987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988: $as_echo "no" >&6; }
1.1 parser 3989: fi
3990:
1.31 moko 3991:
1.10 paf 3992: test -n "$ac_ct_CC" && break
3993: done
1.1 parser 3994:
1.31 moko 3995: if test "x$ac_ct_CC" = x; then
3996: CC=""
3997: else
3998: case $cross_compiling:$ac_tool_warned in
3999: yes:)
4000: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002: ac_tool_warned=yes ;;
4003: esac
4004: CC=$ac_ct_CC
4005: fi
1.10 paf 4006: fi
1.1 parser 4007:
1.10 paf 4008: fi
1.1 parser 4009:
4010:
1.31 moko 4011: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013: as_fn_error $? "no acceptable C compiler found in \$PATH
4014: See \`config.log' for more details" "$LINENO" 5; }
1.10 paf 4015:
4016: # Provide some information about the compiler.
1.31 moko 4017: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4018: set X $ac_compile
4019: ac_compiler=$2
4020: for ac_option in --version -v -V -qversion; do
4021: { { ac_try="$ac_compiler $ac_option >&5"
4022: case "(($ac_try" in
4023: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024: *) ac_try_echo=$ac_try;;
4025: esac
4026: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027: $as_echo "$ac_try_echo"; } >&5
4028: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.10 paf 4029: ac_status=$?
1.31 moko 4030: if test -s conftest.err; then
4031: sed '10a\
4032: ... rest of stderr output deleted ...
4033: 10q' conftest.err >conftest.er1
4034: cat conftest.er1 >&5
4035: fi
4036: rm -f conftest.er1 conftest.err
4037: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038: test $ac_status = 0; }
4039: done
4040:
4041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043: if ${ac_cv_c_compiler_gnu+:} false; then :
4044: $as_echo_n "(cached) " >&6
1.10 paf 4045: else
1.31 moko 4046: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 4047: /* end confdefs.h. */
4048:
4049: int
4050: main ()
4051: {
4052: #ifndef __GNUC__
4053: choke me
1.1 parser 4054: #endif
4055:
1.10 paf 4056: ;
4057: return 0;
4058: }
4059: _ACEOF
1.31 moko 4060: if ac_fn_c_try_compile "$LINENO"; then :
1.10 paf 4061: ac_compiler_gnu=yes
4062: else
1.31 moko 4063: ac_compiler_gnu=no
1.10 paf 4064: fi
1.31 moko 4065: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 4066: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067:
4068: fi
1.31 moko 4069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071: if test $ac_compiler_gnu = yes; then
4072: GCC=yes
4073: else
4074: GCC=
4075: fi
1.10 paf 4076: ac_test_CFLAGS=${CFLAGS+set}
4077: ac_save_CFLAGS=$CFLAGS
1.31 moko 4078: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080: if ${ac_cv_prog_cc_g+:} false; then :
4081: $as_echo_n "(cached) " >&6
4082: else
4083: ac_save_c_werror_flag=$ac_c_werror_flag
4084: ac_c_werror_flag=yes
4085: ac_cv_prog_cc_g=no
4086: CFLAGS="-g"
4087: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088: /* end confdefs.h. */
4089:
4090: int
4091: main ()
4092: {
4093:
4094: ;
4095: return 0;
4096: }
4097: _ACEOF
4098: if ac_fn_c_try_compile "$LINENO"; then :
4099: ac_cv_prog_cc_g=yes
1.10 paf 4100: else
1.31 moko 4101: CFLAGS=""
4102: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103: /* end confdefs.h. */
4104:
4105: int
4106: main ()
4107: {
4108:
4109: ;
4110: return 0;
4111: }
1.10 paf 4112: _ACEOF
1.31 moko 4113: if ac_fn_c_try_compile "$LINENO"; then :
4114:
4115: else
4116: ac_c_werror_flag=$ac_save_c_werror_flag
4117: CFLAGS="-g"
4118: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 4119: /* end confdefs.h. */
4120:
4121: int
4122: main ()
4123: {
4124:
4125: ;
4126: return 0;
4127: }
4128: _ACEOF
1.31 moko 4129: if ac_fn_c_try_compile "$LINENO"; then :
1.10 paf 4130: ac_cv_prog_cc_g=yes
1.1 parser 4131: fi
1.31 moko 4132: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133: fi
4134: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135: fi
4136: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 parser 4138: fi
1.31 moko 4139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 parser 4141: if test "$ac_test_CFLAGS" = set; then
1.10 paf 4142: CFLAGS=$ac_save_CFLAGS
1.1 parser 4143: elif test $ac_cv_prog_cc_g = yes; then
4144: if test "$GCC" = yes; then
4145: CFLAGS="-g -O2"
4146: else
4147: CFLAGS="-g"
4148: fi
4149: else
4150: if test "$GCC" = yes; then
4151: CFLAGS="-O2"
4152: else
4153: CFLAGS=
4154: fi
4155: fi
1.31 moko 4156: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158: if ${ac_cv_prog_cc_c89+:} false; then :
4159: $as_echo_n "(cached) " >&6
1.10 paf 4160: else
1.31 moko 4161: ac_cv_prog_cc_c89=no
1.10 paf 4162: ac_save_CC=$CC
1.31 moko 4163: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 4164: /* end confdefs.h. */
4165: #include <stdarg.h>
4166: #include <stdio.h>
1.34 moko 4167: struct stat;
1.10 paf 4168: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4169: struct buf { int x; };
4170: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4171: static char *e (p, i)
4172: char **p;
4173: int i;
4174: {
4175: return p[i];
4176: }
4177: static char *f (char * (*g) (char **, int), char **p, ...)
4178: {
4179: char *s;
4180: va_list v;
4181: va_start (v,p);
4182: s = g (p, va_arg (v,int));
4183: va_end (v);
4184: return s;
4185: }
1.16 paf 4186:
4187: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4188: function prototypes and stuff, but not '\xHH' hex character constants.
4189: These don't provoke an error unfortunately, instead are silently treated
1.31 moko 4190: as 'x'. The following induces an error, until -std is added to get
1.16 paf 4191: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4192: array size at least. It's necessary to write '\x00'==0 to get something
1.31 moko 4193: that's true only with -std. */
1.16 paf 4194: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4195:
1.31 moko 4196: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4197: inside strings and character constants. */
4198: #define FOO(x) 'x'
4199: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4200:
1.10 paf 4201: int test (int i, double x);
4202: struct s1 {int (*f) (int a);};
4203: struct s2 {int (*f) (double a);};
4204: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4205: int argc;
4206: char **argv;
4207: int
4208: main ()
4209: {
4210: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4211: ;
4212: return 0;
4213: }
4214: _ACEOF
1.31 moko 4215: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4216: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.10 paf 4217: do
4218: CC="$ac_save_CC $ac_arg"
1.31 moko 4219: if ac_fn_c_try_compile "$LINENO"; then :
4220: ac_cv_prog_cc_c89=$ac_arg
1.10 paf 4221: fi
1.31 moko 4222: rm -f core conftest.err conftest.$ac_objext
4223: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.10 paf 4224: done
1.31 moko 4225: rm -f conftest.$ac_ext
1.10 paf 4226: CC=$ac_save_CC
4227:
4228: fi
1.31 moko 4229: # AC_CACHE_VAL
4230: case "x$ac_cv_prog_cc_c89" in
4231: x)
4232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233: $as_echo "none needed" >&6; } ;;
4234: xno)
4235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236: $as_echo "unsupported" >&6; } ;;
1.10 paf 4237: *)
1.31 moko 4238: CC="$CC $ac_cv_prog_cc_c89"
4239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4240: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.10 paf 4241: esac
1.31 moko 4242: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.10 paf 4243:
4244: fi
4245:
1.15 paf 4246: ac_ext=c
4247: ac_cpp='$CPP $CPPFLAGS'
4248: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 4251:
4252: depcc="$CC" am_compiler_list=
4253:
1.31 moko 4254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4255: $as_echo_n "checking dependency style of $depcc... " >&6; }
4256: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4257: $as_echo_n "(cached) " >&6
1.10 paf 4258: else
4259: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4260: # We make a subdir and do the tests there. Otherwise we can end up
4261: # making bogus files that we don't know about and never remove. For
4262: # instance it was reported that on HP-UX the gcc test will end up
4263: # making a dummy file named `D' -- because `-MD' means `put the output
4264: # in D'.
4265: mkdir conftest.dir
4266: # Copy depcomp to subdir because otherwise we won't find it if we're
4267: # using a relative directory.
4268: cp "$am_depcomp" conftest.dir
4269: cd conftest.dir
1.16 paf 4270: # We will build objects and dependencies in a subdirectory because
4271: # it helps to detect inapplicable dependency modes. For instance
4272: # both Tru64's cc and ICC support -MD to output dependencies as a
4273: # side effect of compilation, but ICC will put the dependencies in
4274: # the current directory while Tru64 will put them in the object
4275: # directory.
4276: mkdir sub
1.10 paf 4277:
4278: am_cv_CC_dependencies_compiler_type=none
4279: if test "$am_compiler_list" = ""; then
4280: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4281: fi
1.31 moko 4282: am__universal=false
4283: case " $depcc " in #(
4284: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4285: esac
4286:
1.10 paf 4287: for depmode in $am_compiler_list; do
1.16 paf 4288: # Setup a source with many dependencies, because some compilers
4289: # like to wrap large dependency lists on column 80 (with \), and
4290: # we should not choose a depcomp mode which is confused by this.
4291: #
1.10 paf 4292: # We need to recreate these files for each test, as the compiler may
4293: # overwrite some of them when testing with obscure command lines.
4294: # This happens at least with the AIX C compiler.
1.16 paf 4295: : > sub/conftest.c
4296: for i in 1 2 3 4 5 6; do
4297: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4298: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4299: # Solaris 8's {/usr,}/bin/sh.
4300: touch sub/conftst$i.h
4301: done
4302: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 4303:
1.31 moko 4304: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4305: # mode. It turns out that the SunPro C++ compiler does not properly
4306: # handle `-M -o', and we need to detect this. Also, some Intel
4307: # versions had trouble with output in subdirs
4308: am__obj=sub/conftest.${OBJEXT-o}
4309: am__minus_obj="-o $am__obj"
1.10 paf 4310: case $depmode in
1.31 moko 4311: gcc)
4312: # This depmode causes a compiler race in universal mode.
4313: test "$am__universal" = false || continue
4314: ;;
1.10 paf 4315: nosideeffect)
4316: # after this tag, mechanisms are not by side-effect, so they'll
4317: # only be used when explicitly requested
4318: if test "x$enable_dependency_tracking" = xyes; then
4319: continue
4320: else
4321: break
4322: fi
4323: ;;
1.31 moko 4324: msvisualcpp | msvcmsys)
4325: # This compiler won't grok `-c -o', but also, the minuso test has
4326: # not run yet. These depmodes are late enough in the game, and
4327: # so weak that their functioning should not be impacted.
4328: am__obj=conftest.${OBJEXT-o}
4329: am__minus_obj=
4330: ;;
1.10 paf 4331: none) break ;;
4332: esac
4333: if depmode=$depmode \
1.31 moko 4334: source=sub/conftest.c object=$am__obj \
1.16 paf 4335: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.31 moko 4336: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.16 paf 4337: >/dev/null 2>conftest.err &&
1.31 moko 4338: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.16 paf 4339: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.31 moko 4340: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 4341: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 4342: # icc doesn't choke on unknown options, it will just issue warnings
4343: # or remarks (even with -Werror). So we grep stderr for any message
4344: # that says an option was ignored or not supported.
4345: # When given -MP, icc 7.0 and 7.1 complain thusly:
4346: # icc: Command line warning: ignoring option '-M'; no argument required
4347: # The diagnosis changed in icc 8.0:
4348: # icc: Command line remark: option '-MP' not supported
4349: if (grep 'ignoring option' conftest.err ||
4350: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4351: am_cv_CC_dependencies_compiler_type=$depmode
4352: break
4353: fi
1.10 paf 4354: fi
4355: done
4356:
4357: cd ..
4358: rm -rf conftest.dir
4359: else
4360: am_cv_CC_dependencies_compiler_type=none
4361: fi
4362:
4363: fi
1.31 moko 4364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4365: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.10 paf 4366: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4367:
1.31 moko 4368: if
1.10 paf 4369: test "x$enable_dependency_tracking" != xno \
4370: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4371: am__fastdepCC_TRUE=
4372: am__fastdepCC_FALSE='#'
4373: else
4374: am__fastdepCC_TRUE='#'
4375: am__fastdepCC_FALSE=
4376: fi
4377:
4378:
1.15 paf 4379:
4380:
4381:
4382:
4383:
4384:
4385:
1.23 moko 4386:
4387: case `pwd` in
4388: *\ * | *\ *)
1.31 moko 4389: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4390: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.15 paf 4391: esac
4392:
1.23 moko 4393:
4394:
4395: macro_version='2.4.2'
4396: macro_revision='1.3337'
4397:
4398:
4399:
4400:
4401:
4402:
4403:
4404:
4405:
4406:
4407:
4408:
4409:
4410: ltmain="$ac_aux_dir/ltmain.sh"
4411:
1.15 paf 4412: # Make sure we can run config.sub.
1.31 moko 4413: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4414: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.15 paf 4415:
1.31 moko 4416: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4417: $as_echo_n "checking build system type... " >&6; }
4418: if ${ac_cv_build+:} false; then :
4419: $as_echo_n "(cached) " >&6
4420: else
4421: ac_build_alias=$build_alias
4422: test "x$ac_build_alias" = x &&
4423: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4424: test "x$ac_build_alias" = x &&
4425: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4426: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4427: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4428:
4429: fi
4430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4431: $as_echo "$ac_cv_build" >&6; }
4432: case $ac_cv_build in
4433: *-*-*) ;;
4434: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4435: esac
4436: build=$ac_cv_build
4437: ac_save_IFS=$IFS; IFS='-'
4438: set x $ac_cv_build
4439: shift
4440: build_cpu=$1
4441: build_vendor=$2
4442: shift; shift
4443: # Remember, the first character of IFS is used to create $*,
4444: # except with old shells:
4445: build_os=$*
4446: IFS=$ac_save_IFS
4447: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4448:
4449:
4450: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4451: $as_echo_n "checking host system type... " >&6; }
4452: if ${ac_cv_host+:} false; then :
4453: $as_echo_n "(cached) " >&6
4454: else
4455: if test "x$host_alias" = x; then
4456: ac_cv_host=$ac_cv_build
4457: else
4458: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4459: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.15 paf 4460: fi
4461:
4462: fi
1.31 moko 4463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4464: $as_echo "$ac_cv_host" >&6; }
4465: case $ac_cv_host in
4466: *-*-*) ;;
4467: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4468: esac
1.15 paf 4469: host=$ac_cv_host
1.31 moko 4470: ac_save_IFS=$IFS; IFS='-'
4471: set x $ac_cv_host
4472: shift
4473: host_cpu=$1
4474: host_vendor=$2
4475: shift; shift
4476: # Remember, the first character of IFS is used to create $*,
4477: # except with old shells:
4478: host_os=$*
4479: IFS=$ac_save_IFS
4480: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.15 paf 4481:
4482:
1.23 moko 4483: # Backslashify metacharacters that are still active within
4484: # double-quoted strings.
4485: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4486:
4487: # Same as above, but do not quote variable references.
4488: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4489:
4490: # Sed substitution to delay expansion of an escaped shell variable in a
4491: # double_quote_subst'ed string.
4492: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4493:
4494: # Sed substitution to delay expansion of an escaped single quote.
4495: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4496:
4497: # Sed substitution to avoid accidental globbing in evaled expressions
4498: no_glob_subst='s/\*/\\\*/g'
4499:
4500: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4501: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4502: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4503:
1.31 moko 4504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4505: $as_echo_n "checking how to print strings... " >&6; }
1.23 moko 4506: # Test print first, because it will be a builtin if present.
4507: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4508: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4509: ECHO='print -r --'
4510: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4511: ECHO='printf %s\n'
4512: else
4513: # Use this function as a fallback that always works.
4514: func_fallback_echo ()
4515: {
4516: eval 'cat <<_LTECHO_EOF
4517: $1
4518: _LTECHO_EOF'
4519: }
4520: ECHO='func_fallback_echo'
1.10 paf 4521: fi
4522:
1.23 moko 4523: # func_echo_all arg...
4524: # Invoke $ECHO with all args, space-separated.
4525: func_echo_all ()
4526: {
4527: $ECHO ""
4528: }
4529:
4530: case "$ECHO" in
1.31 moko 4531: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4532: $as_echo "printf" >&6; } ;;
4533: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4534: $as_echo "print -r" >&6; } ;;
4535: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4536: $as_echo "cat" >&6; } ;;
1.23 moko 4537: esac
4538:
4539:
4540:
4541:
4542:
4543:
4544:
4545:
4546:
4547:
4548:
4549:
4550:
4551:
1.31 moko 4552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4553: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4554: if ${ac_cv_path_SED+:} false; then :
4555: $as_echo_n "(cached) " >&6
4556: else
4557: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4558: for ac_i in 1 2 3 4 5 6 7; do
4559: ac_script="$ac_script$as_nl$ac_script"
4560: done
4561: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4562: { ac_script=; unset ac_script;}
4563: if test -z "$SED"; then
4564: ac_path_SED_found=false
4565: # Loop through the user's path and test for each of PROGNAME-LIST
4566: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.23 moko 4567: for as_dir in $PATH
4568: do
4569: IFS=$as_save_IFS
4570: test -z "$as_dir" && as_dir=.
1.31 moko 4571: for ac_prog in sed gsed; do
1.23 moko 4572: for ac_exec_ext in '' $ac_executable_extensions; do
1.31 moko 4573: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.34 moko 4574: as_fn_executable_p "$ac_path_SED" || continue
1.31 moko 4575: # Check for GNU ac_path_SED and select it if it is found.
4576: # Check for GNU $ac_path_SED
4577: case `"$ac_path_SED" --version 2>&1` in
4578: *GNU*)
4579: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4580: *)
4581: ac_count=0
4582: $as_echo_n 0123456789 >"conftest.in"
4583: while :
4584: do
4585: cat "conftest.in" "conftest.in" >"conftest.tmp"
4586: mv "conftest.tmp" "conftest.in"
4587: cp "conftest.in" "conftest.nl"
4588: $as_echo '' >> "conftest.nl"
4589: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4590: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4591: as_fn_arith $ac_count + 1 && ac_count=$as_val
4592: if test $ac_count -gt ${ac_path_SED_max-0}; then
4593: # Best one so far, save it but keep looking for a better one
4594: ac_cv_path_SED="$ac_path_SED"
4595: ac_path_SED_max=$ac_count
4596: fi
4597: # 10*(2^10) chars as input seems more than enough
4598: test $ac_count -gt 10 && break
4599: done
4600: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4601: esac
4602:
4603: $ac_path_SED_found && break 3
1.23 moko 4604: done
4605: done
1.31 moko 4606: done
1.23 moko 4607: IFS=$as_save_IFS
1.31 moko 4608: if test -z "$ac_cv_path_SED"; then
4609: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4610: fi
4611: else
4612: ac_cv_path_SED=$SED
4613: fi
1.23 moko 4614:
4615: fi
1.31 moko 4616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4617: $as_echo "$ac_cv_path_SED" >&6; }
4618: SED="$ac_cv_path_SED"
4619: rm -f conftest.sed
1.23 moko 4620:
4621: test -z "$SED" && SED=sed
4622: Xsed="$SED -e 1s/^X//"
4623:
4624:
4625:
4626:
4627:
4628:
4629:
4630:
4631:
4632:
4633:
1.31 moko 4634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4635: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4636: if ${ac_cv_path_GREP+:} false; then :
4637: $as_echo_n "(cached) " >&6
4638: else
4639: if test -z "$GREP"; then
4640: ac_path_GREP_found=false
4641: # Loop through the user's path and test for each of PROGNAME-LIST
4642: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4644: do
4645: IFS=$as_save_IFS
4646: test -z "$as_dir" && as_dir=.
4647: for ac_prog in grep ggrep; do
4648: for ac_exec_ext in '' $ac_executable_extensions; do
4649: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.34 moko 4650: as_fn_executable_p "$ac_path_GREP" || continue
1.31 moko 4651: # Check for GNU ac_path_GREP and select it if it is found.
4652: # Check for GNU $ac_path_GREP
4653: case `"$ac_path_GREP" --version 2>&1` in
4654: *GNU*)
4655: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4656: *)
4657: ac_count=0
4658: $as_echo_n 0123456789 >"conftest.in"
4659: while :
4660: do
4661: cat "conftest.in" "conftest.in" >"conftest.tmp"
4662: mv "conftest.tmp" "conftest.in"
4663: cp "conftest.in" "conftest.nl"
4664: $as_echo 'GREP' >> "conftest.nl"
4665: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667: as_fn_arith $ac_count + 1 && ac_count=$as_val
4668: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4669: # Best one so far, save it but keep looking for a better one
4670: ac_cv_path_GREP="$ac_path_GREP"
4671: ac_path_GREP_max=$ac_count
1.23 moko 4672: fi
1.31 moko 4673: # 10*(2^10) chars as input seems more than enough
4674: test $ac_count -gt 10 && break
4675: done
4676: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677: esac
4678:
4679: $ac_path_GREP_found && break 3
4680: done
4681: done
4682: done
4683: IFS=$as_save_IFS
4684: if test -z "$ac_cv_path_GREP"; then
4685: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4686: fi
4687: else
4688: ac_cv_path_GREP=$GREP
4689: fi
4690:
1.23 moko 4691: fi
1.31 moko 4692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4693: $as_echo "$ac_cv_path_GREP" >&6; }
4694: GREP="$ac_cv_path_GREP"
4695:
4696:
4697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4698: $as_echo_n "checking for egrep... " >&6; }
4699: if ${ac_cv_path_EGREP+:} false; then :
4700: $as_echo_n "(cached) " >&6
4701: else
4702: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4703: then ac_cv_path_EGREP="$GREP -E"
4704: else
4705: if test -z "$EGREP"; then
4706: ac_path_EGREP_found=false
4707: # Loop through the user's path and test for each of PROGNAME-LIST
4708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4710: do
4711: IFS=$as_save_IFS
4712: test -z "$as_dir" && as_dir=.
4713: for ac_prog in egrep; do
4714: for ac_exec_ext in '' $ac_executable_extensions; do
4715: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.34 moko 4716: as_fn_executable_p "$ac_path_EGREP" || continue
1.31 moko 4717: # Check for GNU ac_path_EGREP and select it if it is found.
4718: # Check for GNU $ac_path_EGREP
4719: case `"$ac_path_EGREP" --version 2>&1` in
4720: *GNU*)
4721: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4722: *)
4723: ac_count=0
4724: $as_echo_n 0123456789 >"conftest.in"
4725: while :
4726: do
4727: cat "conftest.in" "conftest.in" >"conftest.tmp"
4728: mv "conftest.tmp" "conftest.in"
4729: cp "conftest.in" "conftest.nl"
4730: $as_echo 'EGREP' >> "conftest.nl"
4731: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4733: as_fn_arith $ac_count + 1 && ac_count=$as_val
4734: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4735: # Best one so far, save it but keep looking for a better one
4736: ac_cv_path_EGREP="$ac_path_EGREP"
4737: ac_path_EGREP_max=$ac_count
4738: fi
4739: # 10*(2^10) chars as input seems more than enough
4740: test $ac_count -gt 10 && break
4741: done
4742: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4743: esac
1.23 moko 4744:
1.31 moko 4745: $ac_path_EGREP_found && break 3
4746: done
4747: done
4748: done
4749: IFS=$as_save_IFS
4750: if test -z "$ac_cv_path_EGREP"; then
4751: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4752: fi
4753: else
4754: ac_cv_path_EGREP=$EGREP
4755: fi
1.23 moko 4756:
1.31 moko 4757: fi
4758: fi
4759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4760: $as_echo "$ac_cv_path_EGREP" >&6; }
4761: EGREP="$ac_cv_path_EGREP"
4762:
4763:
4764: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4765: $as_echo_n "checking for fgrep... " >&6; }
4766: if ${ac_cv_path_FGREP+:} false; then :
4767: $as_echo_n "(cached) " >&6
4768: else
4769: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4770: then ac_cv_path_FGREP="$GREP -F"
4771: else
4772: if test -z "$FGREP"; then
4773: ac_path_FGREP_found=false
4774: # Loop through the user's path and test for each of PROGNAME-LIST
4775: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4777: do
4778: IFS=$as_save_IFS
4779: test -z "$as_dir" && as_dir=.
4780: for ac_prog in fgrep; do
4781: for ac_exec_ext in '' $ac_executable_extensions; do
4782: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.34 moko 4783: as_fn_executable_p "$ac_path_FGREP" || continue
1.31 moko 4784: # Check for GNU ac_path_FGREP and select it if it is found.
4785: # Check for GNU $ac_path_FGREP
4786: case `"$ac_path_FGREP" --version 2>&1` in
4787: *GNU*)
4788: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4789: *)
4790: ac_count=0
4791: $as_echo_n 0123456789 >"conftest.in"
4792: while :
4793: do
4794: cat "conftest.in" "conftest.in" >"conftest.tmp"
4795: mv "conftest.tmp" "conftest.in"
4796: cp "conftest.in" "conftest.nl"
4797: $as_echo 'FGREP' >> "conftest.nl"
4798: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4799: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4800: as_fn_arith $ac_count + 1 && ac_count=$as_val
4801: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4802: # Best one so far, save it but keep looking for a better one
4803: ac_cv_path_FGREP="$ac_path_FGREP"
4804: ac_path_FGREP_max=$ac_count
1.23 moko 4805: fi
1.31 moko 4806: # 10*(2^10) chars as input seems more than enough
4807: test $ac_count -gt 10 && break
4808: done
4809: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4810: esac
4811:
4812: $ac_path_FGREP_found && break 3
4813: done
4814: done
4815: done
4816: IFS=$as_save_IFS
4817: if test -z "$ac_cv_path_FGREP"; then
4818: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4819: fi
4820: else
4821: ac_cv_path_FGREP=$FGREP
4822: fi
4823:
4824: fi
1.23 moko 4825: fi
1.31 moko 4826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4827: $as_echo "$ac_cv_path_FGREP" >&6; }
4828: FGREP="$ac_cv_path_FGREP"
1.23 moko 4829:
4830:
4831: test -z "$GREP" && GREP=grep
4832:
4833:
4834:
4835:
4836:
4837:
4838:
4839:
4840:
4841:
4842:
4843:
4844:
4845:
4846:
4847:
4848:
4849:
1.1 parser 4850:
1.31 moko 4851: # Check whether --with-gnu-ld was given.
4852: if test "${with_gnu_ld+set}" = set; then :
4853: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.1 parser 4854: else
4855: with_gnu_ld=no
1.31 moko 4856: fi
4857:
1.1 parser 4858: ac_prog=ld
1.10 paf 4859: if test "$GCC" = yes; then
1.1 parser 4860: # Check if gcc -print-prog-name=ld gives a path.
1.31 moko 4861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4862: $as_echo_n "checking for ld used by $CC... " >&6; }
1.10 paf 4863: case $host in
4864: *-*-mingw*)
4865: # gcc leaves a trailing carriage return which upsets mingw
4866: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4867: *)
4868: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4869: esac
4870: case $ac_prog in
1.1 parser 4871: # Accept absolute paths.
1.23 moko 4872: [\\/]* | ?:[\\/]*)
1.1 parser 4873: re_direlt='/[^/][^/]*/\.\./'
1.23 moko 4874: # Canonicalize the pathname of ld
4875: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4876: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4877: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.1 parser 4878: done
4879: test -z "$LD" && LD="$ac_prog"
4880: ;;
4881: "")
4882: # If it fails, then pretend we aren't using GCC.
4883: ac_prog=ld
4884: ;;
4885: *)
4886: # If it is relative, then search for the first ld in PATH.
4887: with_gnu_ld=unknown
4888: ;;
4889: esac
4890: elif test "$with_gnu_ld" = yes; then
1.31 moko 4891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4892: $as_echo_n "checking for GNU ld... " >&6; }
1.1 parser 4893: else
1.31 moko 4894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4895: $as_echo_n "checking for non-GNU ld... " >&6; }
1.1 parser 4896: fi
1.31 moko 4897: if ${lt_cv_path_LD+:} false; then :
4898: $as_echo_n "(cached) " >&6
1.1 parser 4899: else
4900: if test -z "$LD"; then
1.23 moko 4901: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 4902: for ac_dir in $PATH; do
1.23 moko 4903: IFS="$lt_save_ifs"
1.1 parser 4904: test -z "$ac_dir" && ac_dir=.
4905: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.10 paf 4906: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 4907: # Check to see if the program is GNU ld. I'd rather use --version,
1.23 moko 4908: # but apparently some variants of GNU ld only accept -v.
1.1 parser 4909: # Break only if it was the GNU/non-GNU ld that we prefer.
1.23 moko 4910: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4911: *GNU* | *'with BFD'*)
1.1 parser 4912: test "$with_gnu_ld" != no && break
1.23 moko 4913: ;;
4914: *)
1.1 parser 4915: test "$with_gnu_ld" != yes && break
1.23 moko 4916: ;;
4917: esac
1.1 parser 4918: fi
4919: done
1.23 moko 4920: IFS="$lt_save_ifs"
1.1 parser 4921: else
1.10 paf 4922: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 4923: fi
4924: fi
4925:
1.10 paf 4926: LD="$lt_cv_path_LD"
1.1 parser 4927: if test -n "$LD"; then
1.31 moko 4928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4929: $as_echo "$LD" >&6; }
1.1 parser 4930: else
1.31 moko 4931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932: $as_echo "no" >&6; }
1.1 parser 4933: fi
1.31 moko 4934: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4936: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4937: if ${lt_cv_prog_gnu_ld+:} false; then :
4938: $as_echo_n "(cached) " >&6
1.1 parser 4939: else
1.23 moko 4940: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4941: case `$LD -v 2>&1 </dev/null` in
4942: *GNU* | *'with BFD'*)
1.10 paf 4943: lt_cv_prog_gnu_ld=yes
1.23 moko 4944: ;;
4945: *)
1.10 paf 4946: lt_cv_prog_gnu_ld=no
1.23 moko 4947: ;;
4948: esac
1.1 parser 4949: fi
1.31 moko 4950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4951: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.10 paf 4952: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 4953:
4954:
4955:
1.23 moko 4956:
4957:
4958:
4959:
4960:
4961:
1.31 moko 4962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4963: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4964: if ${lt_cv_path_NM+:} false; then :
4965: $as_echo_n "(cached) " >&6
1.1 parser 4966: else
4967: if test -n "$NM"; then
4968: # Let the user override the test.
1.10 paf 4969: lt_cv_path_NM="$NM"
1.1 parser 4970: else
1.23 moko 4971: lt_nm_to_check="${ac_tool_prefix}nm"
4972: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4973: lt_nm_to_check="$lt_nm_to_check nm"
4974: fi
4975: for lt_tmp_nm in $lt_nm_to_check; do
4976: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4977: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4978: IFS="$lt_save_ifs"
4979: test -z "$ac_dir" && ac_dir=.
4980: tmp_nm="$ac_dir/$lt_tmp_nm"
4981: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4982: # Check to see if the nm accepts a BSD-compat flag.
4983: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4984: # nm: unknown option "B" ignored
4985: # Tru64's nm complains that /dev/null is an invalid object file
4986: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4987: */dev/null* | *'Invalid file or object type'*)
4988: lt_cv_path_NM="$tmp_nm -B"
4989: break
4990: ;;
4991: *)
4992: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4993: */dev/null*)
4994: lt_cv_path_NM="$tmp_nm -p"
4995: break
4996: ;;
4997: *)
4998: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4999: continue # so that we can try to find one that supports BSD flags
5000: ;;
5001: esac
5002: ;;
5003: esac
1.1 parser 5004: fi
1.23 moko 5005: done
5006: IFS="$lt_save_ifs"
1.1 parser 5007: done
1.23 moko 5008: : ${lt_cv_path_NM=no}
1.1 parser 5009: fi
5010: fi
1.31 moko 5011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5012: $as_echo "$lt_cv_path_NM" >&6; }
1.23 moko 5013: if test "$lt_cv_path_NM" != "no"; then
5014: NM="$lt_cv_path_NM"
5015: else
5016: # Didn't find any BSD compatible name lister, look for dumpbin.
5017: if test -n "$DUMPBIN"; then :
5018: # Let the user override the test.
5019: else
5020: if test -n "$ac_tool_prefix"; then
5021: for ac_prog in dumpbin "link -dump"
5022: do
5023: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5024: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 moko 5025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026: $as_echo_n "checking for $ac_word... " >&6; }
5027: if ${ac_cv_prog_DUMPBIN+:} false; then :
5028: $as_echo_n "(cached) " >&6
1.23 moko 5029: else
5030: if test -n "$DUMPBIN"; then
5031: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5032: else
5033: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034: for as_dir in $PATH
5035: do
5036: IFS=$as_save_IFS
5037: test -z "$as_dir" && as_dir=.
1.31 moko 5038: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5039: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5040: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.31 moko 5041: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5042: break 2
5043: fi
5044: done
1.31 moko 5045: done
5046: IFS=$as_save_IFS
1.1 parser 5047:
1.23 moko 5048: fi
5049: fi
5050: DUMPBIN=$ac_cv_prog_DUMPBIN
5051: if test -n "$DUMPBIN"; then
1.31 moko 5052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5053: $as_echo "$DUMPBIN" >&6; }
1.23 moko 5054: else
1.31 moko 5055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056: $as_echo "no" >&6; }
1.23 moko 5057: fi
1.1 parser 5058:
1.31 moko 5059:
1.23 moko 5060: test -n "$DUMPBIN" && break
5061: done
5062: fi
5063: if test -z "$DUMPBIN"; then
5064: ac_ct_DUMPBIN=$DUMPBIN
5065: for ac_prog in dumpbin "link -dump"
5066: do
5067: # Extract the first word of "$ac_prog", so it can be a program name with args.
5068: set dummy $ac_prog; ac_word=$2
1.31 moko 5069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070: $as_echo_n "checking for $ac_word... " >&6; }
5071: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5072: $as_echo_n "(cached) " >&6
1.1 parser 5073: else
1.23 moko 5074: if test -n "$ac_ct_DUMPBIN"; then
5075: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5076: else
1.10 paf 5077: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078: for as_dir in $PATH
5079: do
5080: IFS=$as_save_IFS
5081: test -z "$as_dir" && as_dir=.
1.31 moko 5082: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5083: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5084: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.31 moko 5085: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5086: break 2
5087: fi
5088: done
1.31 moko 5089: done
5090: IFS=$as_save_IFS
1.23 moko 5091:
5092: fi
5093: fi
5094: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5095: if test -n "$ac_ct_DUMPBIN"; then
1.31 moko 5096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5097: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.23 moko 5098: else
1.31 moko 5099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100: $as_echo "no" >&6; }
1.23 moko 5101: fi
5102:
1.31 moko 5103:
1.23 moko 5104: test -n "$ac_ct_DUMPBIN" && break
1.10 paf 5105: done
5106:
1.31 moko 5107: if test "x$ac_ct_DUMPBIN" = x; then
5108: DUMPBIN=":"
5109: else
5110: case $cross_compiling:$ac_tool_warned in
5111: yes:)
5112: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5113: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5114: ac_tool_warned=yes ;;
5115: esac
5116: DUMPBIN=$ac_ct_DUMPBIN
5117: fi
1.23 moko 5118: fi
1.10 paf 5119:
1.23 moko 5120: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5121: *COFF*)
5122: DUMPBIN="$DUMPBIN -symbols"
5123: ;;
5124: *)
5125: DUMPBIN=:
5126: ;;
5127: esac
5128: fi
1.10 paf 5129:
1.23 moko 5130: if test "$DUMPBIN" != ":"; then
5131: NM="$DUMPBIN"
5132: fi
1.1 parser 5133: fi
1.23 moko 5134: test -z "$NM" && NM=nm
5135:
1.1 parser 5136:
1.23 moko 5137:
5138:
5139:
5140:
1.31 moko 5141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5142: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5143: if ${lt_cv_nm_interface+:} false; then :
5144: $as_echo_n "(cached) " >&6
1.6 paf 5145: else
1.23 moko 5146: lt_cv_nm_interface="BSD nm"
5147: echo "int some_variable = 0;" > conftest.$ac_ext
5148: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5149: (eval "$ac_compile" 2>conftest.err)
5150: cat conftest.err >&5
5151: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5152: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5153: cat conftest.err >&5
5154: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5155: cat conftest.out >&5
5156: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5157: lt_cv_nm_interface="MS dumpbin"
5158: fi
5159: rm -f conftest*
1.6 paf 5160: fi
1.31 moko 5161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5162: $as_echo "$lt_cv_nm_interface" >&6; }
1.10 paf 5163:
1.31 moko 5164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5165: $as_echo_n "checking whether ln -s works... " >&6; }
1.10 paf 5166: LN_S=$as_ln_s
5167: if test "$LN_S" = "ln -s"; then
1.31 moko 5168: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5169: $as_echo "yes" >&6; }
1.10 paf 5170: else
1.31 moko 5171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5172: $as_echo "no, using $LN_S" >&6; }
1.10 paf 5173: fi
5174:
1.23 moko 5175: # find the maximum length of command line arguments
1.31 moko 5176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5177: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5178: if ${lt_cv_sys_max_cmd_len+:} false; then :
5179: $as_echo_n "(cached) " >&6
1.10 paf 5180: else
1.23 moko 5181: i=0
5182: teststring="ABCD"
1.10 paf 5183:
1.23 moko 5184: case $build_os in
5185: msdosdjgpp*)
5186: # On DJGPP, this test can blow up pretty badly due to problems in libc
5187: # (any single argument exceeding 2000 bytes causes a buffer overrun
5188: # during glob expansion). Even if it were fixed, the result of this
5189: # check would be larger than it should be.
5190: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5191: ;;
1.6 paf 5192:
1.23 moko 5193: gnu*)
5194: # Under GNU Hurd, this test is not required because there is
5195: # no limit to the length of command line arguments.
5196: # Libtool will interpret -1 as no limit whatsoever
5197: lt_cv_sys_max_cmd_len=-1;
5198: ;;
1.1 parser 5199:
1.23 moko 5200: cygwin* | mingw* | cegcc*)
5201: # On Win9x/ME, this test blows up -- it succeeds, but takes
5202: # about 5 minutes as the teststring grows exponentially.
5203: # Worse, since 9x/ME are not pre-emptively multitasking,
5204: # you end up with a "frozen" computer, even though with patience
5205: # the test eventually succeeds (with a max line length of 256k).
5206: # Instead, let's just punt: use the minimum linelength reported by
5207: # all of the supported platforms: 8192 (on NT/2K/XP).
5208: lt_cv_sys_max_cmd_len=8192;
5209: ;;
1.1 parser 5210:
1.23 moko 5211: mint*)
5212: # On MiNT this can take a long time and run out of memory.
5213: lt_cv_sys_max_cmd_len=8192;
5214: ;;
1.1 parser 5215:
1.23 moko 5216: amigaos*)
5217: # On AmigaOS with pdksh, this test takes hours, literally.
5218: # So we just punt and use a minimum line length of 8192.
5219: lt_cv_sys_max_cmd_len=8192;
1.10 paf 5220: ;;
1.23 moko 5221:
5222: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5223: # This has been around since 386BSD, at least. Likely further.
5224: if test -x /sbin/sysctl; then
5225: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5226: elif test -x /usr/sbin/sysctl; then
5227: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5228: else
5229: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5230: fi
5231: # And add a safety zone
5232: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5233: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5234: ;;
5235:
5236: interix*)
5237: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5238: lt_cv_sys_max_cmd_len=196608
5239: ;;
5240:
5241: os2*)
5242: # The test takes a long time on OS/2.
5243: lt_cv_sys_max_cmd_len=8192
5244: ;;
5245:
5246: osf*)
5247: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5248: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5249: # nice to cause kernel panics so lets avoid the loop below.
5250: # First set a reasonable default.
5251: lt_cv_sys_max_cmd_len=16384
5252: #
5253: if test -x /sbin/sysconfig; then
5254: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5255: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5256: esac
5257: fi
5258: ;;
5259: sco3.2v5*)
5260: lt_cv_sys_max_cmd_len=102400
5261: ;;
5262: sysv5* | sco5v6* | sysv4.2uw2*)
5263: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5264: if test -n "$kargmax"; then
5265: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5266: else
5267: lt_cv_sys_max_cmd_len=32768
5268: fi
5269: ;;
5270: *)
5271: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5272: if test -n "$lt_cv_sys_max_cmd_len"; then
5273: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5274: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5275: else
5276: # Make teststring a little bigger before we do anything with it.
5277: # a 1K string should be a reasonable start.
5278: for i in 1 2 3 4 5 6 7 8 ; do
5279: teststring=$teststring$teststring
5280: done
5281: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5282: # If test is not a shell built-in, we'll probably end up computing a
5283: # maximum length that is only half of the actual maximum length, but
5284: # we can't tell.
5285: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5286: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5287: test $i != 17 # 1/2 MB should be enough
5288: do
5289: i=`expr $i + 1`
5290: teststring=$teststring$teststring
5291: done
5292: # Only check the string length outside the loop.
5293: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5294: teststring=
5295: # Add a significant safety factor because C++ compilers can tack on
5296: # massive amounts of additional arguments before passing them to the
5297: # linker. It appears as though 1/2 is a usable value.
5298: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5299: fi
1.10 paf 5300: ;;
5301: esac
1.23 moko 5302:
5303: fi
5304:
5305: if test -n $lt_cv_sys_max_cmd_len ; then
1.31 moko 5306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5307: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.23 moko 5308: else
1.31 moko 5309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5310: $as_echo "none" >&6; }
1.23 moko 5311: fi
5312: max_cmd_len=$lt_cv_sys_max_cmd_len
5313:
5314:
5315:
5316:
5317:
5318:
5319: : ${CP="cp -f"}
5320: : ${MV="mv -f"}
5321: : ${RM="rm -f"}
5322:
1.31 moko 5323: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5324: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.23 moko 5325: # Try some XSI features
5326: xsi_shell=no
5327: ( _lt_dummy="a/b/c"
5328: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5329: = c,a/b,b/c, \
5330: && eval 'test $(( 1 + 1 )) -eq 2 \
5331: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5332: && xsi_shell=yes
1.31 moko 5333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5334: $as_echo "$xsi_shell" >&6; }
1.23 moko 5335:
5336:
1.31 moko 5337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5338: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.23 moko 5339: lt_shell_append=no
5340: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5341: >/dev/null 2>&1 \
5342: && lt_shell_append=yes
1.31 moko 5343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5344: $as_echo "$lt_shell_append" >&6; }
1.23 moko 5345:
5346:
5347: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5348: lt_unset=unset
5349: else
5350: lt_unset=false
5351: fi
5352:
5353:
5354:
5355:
5356:
5357: # test EBCDIC or ASCII
5358: case `echo X|tr X '\101'` in
5359: A) # ASCII based system
5360: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5361: lt_SP2NL='tr \040 \012'
5362: lt_NL2SP='tr \015\012 \040\040'
5363: ;;
5364: *) # EBCDIC based system
5365: lt_SP2NL='tr \100 \n'
5366: lt_NL2SP='tr \r\n \100\100'
5367: ;;
5368: esac
5369:
5370:
5371:
5372:
5373:
5374:
5375:
5376:
5377:
1.31 moko 5378: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5379: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5380: if ${lt_cv_to_host_file_cmd+:} false; then :
5381: $as_echo_n "(cached) " >&6
1.23 moko 5382: else
5383: case $host in
5384: *-*-mingw* )
5385: case $build in
5386: *-*-mingw* ) # actually msys
5387: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5388: ;;
5389: *-*-cygwin* )
5390: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5391: ;;
5392: * ) # otherwise, assume *nix
5393: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5394: ;;
5395: esac
5396: ;;
5397: *-*-cygwin* )
5398: case $build in
5399: *-*-mingw* ) # actually msys
5400: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5401: ;;
5402: *-*-cygwin* )
5403: lt_cv_to_host_file_cmd=func_convert_file_noop
5404: ;;
5405: * ) # otherwise, assume *nix
5406: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5407: ;;
5408: esac
5409: ;;
5410: * ) # unhandled hosts (and "normal" native builds)
5411: lt_cv_to_host_file_cmd=func_convert_file_noop
5412: ;;
5413: esac
5414:
5415: fi
5416:
5417: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.31 moko 5418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5419: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.23 moko 5420:
5421:
5422:
5423:
5424:
1.31 moko 5425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5426: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5427: if ${lt_cv_to_tool_file_cmd+:} false; then :
5428: $as_echo_n "(cached) " >&6
1.23 moko 5429: else
5430: #assume ordinary cross tools, or native build.
5431: lt_cv_to_tool_file_cmd=func_convert_file_noop
5432: case $host in
5433: *-*-mingw* )
5434: case $build in
5435: *-*-mingw* ) # actually msys
5436: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5437: ;;
5438: esac
5439: ;;
5440: esac
5441:
5442: fi
5443:
5444: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.31 moko 5445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5446: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.23 moko 5447:
5448:
5449:
5450:
5451:
1.31 moko 5452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5453: $as_echo_n "checking for $LD option to reload object files... " >&6; }
5454: if ${lt_cv_ld_reload_flag+:} false; then :
5455: $as_echo_n "(cached) " >&6
1.23 moko 5456: else
5457: lt_cv_ld_reload_flag='-r'
5458: fi
1.31 moko 5459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5460: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.23 moko 5461: reload_flag=$lt_cv_ld_reload_flag
5462: case $reload_flag in
5463: "" | " "*) ;;
5464: *) reload_flag=" $reload_flag" ;;
5465: esac
5466: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5467: case $host_os in
5468: cygwin* | mingw* | pw32* | cegcc*)
5469: if test "$GCC" != yes; then
5470: reload_cmds=false
5471: fi
5472: ;;
5473: darwin*)
5474: if test "$GCC" = yes; then
5475: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5476: else
5477: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5478: fi
5479: ;;
5480: esac
5481:
5482:
5483:
5484:
5485:
5486:
5487:
5488:
5489:
5490: if test -n "$ac_tool_prefix"; then
5491: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5492: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.31 moko 5493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494: $as_echo_n "checking for $ac_word... " >&6; }
5495: if ${ac_cv_prog_OBJDUMP+:} false; then :
5496: $as_echo_n "(cached) " >&6
1.23 moko 5497: else
5498: if test -n "$OBJDUMP"; then
5499: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5500: else
5501: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502: for as_dir in $PATH
5503: do
5504: IFS=$as_save_IFS
5505: test -z "$as_dir" && as_dir=.
1.31 moko 5506: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5507: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5508: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.31 moko 5509: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5510: break 2
5511: fi
5512: done
1.31 moko 5513: done
5514: IFS=$as_save_IFS
1.23 moko 5515:
5516: fi
5517: fi
5518: OBJDUMP=$ac_cv_prog_OBJDUMP
5519: if test -n "$OBJDUMP"; then
1.31 moko 5520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5521: $as_echo "$OBJDUMP" >&6; }
1.23 moko 5522: else
1.31 moko 5523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524: $as_echo "no" >&6; }
1.23 moko 5525: fi
5526:
1.31 moko 5527:
1.23 moko 5528: fi
5529: if test -z "$ac_cv_prog_OBJDUMP"; then
5530: ac_ct_OBJDUMP=$OBJDUMP
5531: # Extract the first word of "objdump", so it can be a program name with args.
5532: set dummy objdump; ac_word=$2
1.31 moko 5533: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534: $as_echo_n "checking for $ac_word... " >&6; }
5535: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5536: $as_echo_n "(cached) " >&6
1.23 moko 5537: else
5538: if test -n "$ac_ct_OBJDUMP"; then
5539: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5540: else
5541: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542: for as_dir in $PATH
5543: do
5544: IFS=$as_save_IFS
5545: test -z "$as_dir" && as_dir=.
1.31 moko 5546: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5547: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5548: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.31 moko 5549: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5550: break 2
5551: fi
5552: done
1.31 moko 5553: done
5554: IFS=$as_save_IFS
1.23 moko 5555:
5556: fi
5557: fi
5558: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5559: if test -n "$ac_ct_OBJDUMP"; then
1.31 moko 5560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5561: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.23 moko 5562: else
1.31 moko 5563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564: $as_echo "no" >&6; }
1.23 moko 5565: fi
5566:
1.31 moko 5567: if test "x$ac_ct_OBJDUMP" = x; then
5568: OBJDUMP="false"
5569: else
5570: case $cross_compiling:$ac_tool_warned in
5571: yes:)
5572: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574: ac_tool_warned=yes ;;
5575: esac
5576: OBJDUMP=$ac_ct_OBJDUMP
5577: fi
1.23 moko 5578: else
5579: OBJDUMP="$ac_cv_prog_OBJDUMP"
5580: fi
5581:
5582: test -z "$OBJDUMP" && OBJDUMP=objdump
5583:
5584:
5585:
5586:
5587:
5588:
1.31 moko 5589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5590: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5591: if ${lt_cv_deplibs_check_method+:} false; then :
5592: $as_echo_n "(cached) " >&6
1.23 moko 5593: else
5594: lt_cv_file_magic_cmd='$MAGIC_CMD'
5595: lt_cv_file_magic_test_file=
5596: lt_cv_deplibs_check_method='unknown'
5597: # Need to set the preceding variable on all platforms that support
5598: # interlibrary dependencies.
5599: # 'none' -- dependencies not supported.
5600: # `unknown' -- same as none, but documents that we really don't know.
5601: # 'pass_all' -- all dependencies passed with no checks.
5602: # 'test_compile' -- check by making test program.
5603: # 'file_magic [[regex]]' -- check by looking for files in library path
5604: # which responds to the $file_magic_cmd with a given extended regex.
5605: # If you have `file' or equivalent on your system and you're not sure
5606: # whether `pass_all' will *always* work, you probably want this one.
5607:
5608: case $host_os in
5609: aix[4-9]*)
5610: lt_cv_deplibs_check_method=pass_all
5611: ;;
5612:
5613: beos*)
5614: lt_cv_deplibs_check_method=pass_all
5615: ;;
5616:
5617: bsdi[45]*)
5618: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5619: lt_cv_file_magic_cmd='/usr/bin/file -L'
5620: lt_cv_file_magic_test_file=/shlib/libc.so
5621: ;;
5622:
5623: cygwin*)
5624: # func_win32_libid is a shell function defined in ltmain.sh
5625: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5626: lt_cv_file_magic_cmd='func_win32_libid'
5627: ;;
5628:
5629: mingw* | pw32*)
5630: # Base MSYS/MinGW do not provide the 'file' command needed by
5631: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5632: # unless we find 'file', for example because we are cross-compiling.
5633: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5634: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5635: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5636: lt_cv_file_magic_cmd='func_win32_libid'
5637: else
5638: # Keep this pattern in sync with the one in func_win32_libid.
5639: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5640: lt_cv_file_magic_cmd='$OBJDUMP -f'
5641: fi
5642: ;;
5643:
5644: cegcc*)
5645: # use the weaker test based on 'objdump'. See mingw*.
5646: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5647: lt_cv_file_magic_cmd='$OBJDUMP -f'
1.10 paf 5648: ;;
1.1 parser 5649:
1.23 moko 5650: darwin* | rhapsody*)
5651: lt_cv_deplibs_check_method=pass_all
5652: ;;
5653:
5654: freebsd* | dragonfly*)
5655: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.10 paf 5656: case $host_cpu in
5657: i*86 )
5658: # Not sure whether the presence of OpenBSD here was a mistake.
5659: # Let's accept both of them until this is cleared up.
1.23 moko 5660: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.10 paf 5661: lt_cv_file_magic_cmd=/usr/bin/file
5662: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 5663: ;;
5664: esac
1.10 paf 5665: else
5666: lt_cv_deplibs_check_method=pass_all
1.1 parser 5667: fi
5668: ;;
5669:
1.10 paf 5670: gnu*)
5671: lt_cv_deplibs_check_method=pass_all
5672: ;;
5673:
1.23 moko 5674: haiku*)
5675: lt_cv_deplibs_check_method=pass_all
1.10 paf 5676: ;;
1.1 parser 5677:
1.23 moko 5678: hpux10.20* | hpux11*)
5679: lt_cv_file_magic_cmd=/usr/bin/file
5680: case $host_cpu in
5681: ia64*)
5682: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5683: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5684: ;;
5685: hppa*64*)
5686: 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]'
5687: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.10 paf 5688: ;;
5689: *)
1.23 moko 5690: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5691: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.10 paf 5692: ;;
5693: esac
1.23 moko 5694: ;;
5695:
5696: interix[3-9]*)
5697: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5698: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5699: ;;
5700:
5701: irix5* | irix6* | nonstopux*)
5702: case $LD in
5703: *-32|*"-32 ") libmagic=32-bit;;
5704: *-n32|*"-n32 ") libmagic=N32;;
5705: *-64|*"-64 ") libmagic=64-bit;;
5706: *) libmagic=never-match;;
5707: esac
1.10 paf 5708: lt_cv_deplibs_check_method=pass_all
5709: ;;
1.1 parser 5710:
1.23 moko 5711: # This must be glibc/ELF.
5712: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5713: lt_cv_deplibs_check_method=pass_all
1.10 paf 5714: ;;
5715:
5716: netbsd*)
1.23 moko 5717: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5718: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.10 paf 5719: else
1.23 moko 5720: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.10 paf 5721: fi
5722: ;;
5723:
5724: newos6*)
5725: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5726: lt_cv_file_magic_cmd=/usr/bin/file
5727: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5728: ;;
1.1 parser 5729:
1.23 moko 5730: *nto* | *qnx*)
5731: lt_cv_deplibs_check_method=pass_all
5732: ;;
5733:
1.10 paf 5734: openbsd*)
1.23 moko 5735: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5736: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.10 paf 5737: else
1.23 moko 5738: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 parser 5739: fi
5740: ;;
5741:
1.10 paf 5742: osf3* | osf4* | osf5*)
5743: lt_cv_deplibs_check_method=pass_all
5744: ;;
5745:
1.23 moko 5746: rdos*)
1.10 paf 5747: lt_cv_deplibs_check_method=pass_all
5748: ;;
5749:
5750: solaris*)
5751: lt_cv_deplibs_check_method=pass_all
5752: ;;
5753:
1.23 moko 5754: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.10 paf 5755: lt_cv_deplibs_check_method=pass_all
5756: ;;
5757:
1.23 moko 5758: sysv4 | sysv4.3*)
1.10 paf 5759: case $host_vendor in
5760: motorola)
5761: 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]'
5762: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5763: ;;
5764: ncr)
5765: lt_cv_deplibs_check_method=pass_all
5766: ;;
5767: sequent)
5768: lt_cv_file_magic_cmd='/bin/file'
5769: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5770: ;;
5771: sni)
5772: lt_cv_file_magic_cmd='/bin/file'
5773: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5774: lt_cv_file_magic_test_file=/lib/libc.so
5775: ;;
5776: siemens)
5777: lt_cv_deplibs_check_method=pass_all
5778: ;;
1.23 moko 5779: pc)
5780: lt_cv_deplibs_check_method=pass_all
5781: ;;
1.10 paf 5782: esac
5783: ;;
1.23 moko 5784:
5785: tpf*)
5786: lt_cv_deplibs_check_method=pass_all
5787: ;;
5788: esac
1.10 paf 5789:
5790: fi
1.31 moko 5791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5792: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.23 moko 5793:
5794: file_magic_glob=
5795: want_nocaseglob=no
5796: if test "$build" = "$host"; then
5797: case $host_os in
5798: mingw* | pw32*)
5799: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5800: want_nocaseglob=yes
5801: else
5802: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5803: fi
5804: ;;
5805: esac
5806: fi
5807:
1.10 paf 5808: file_magic_cmd=$lt_cv_file_magic_cmd
5809: deplibs_check_method=$lt_cv_deplibs_check_method
1.23 moko 5810: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5811:
5812:
5813:
1.10 paf 5814:
5815:
5816:
5817:
5818:
5819:
5820:
5821:
1.23 moko 5822:
5823:
5824:
5825:
5826:
5827:
5828:
5829:
5830:
5831:
5832:
5833: if test -n "$ac_tool_prefix"; then
5834: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5835: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.31 moko 5836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837: $as_echo_n "checking for $ac_word... " >&6; }
5838: if ${ac_cv_prog_DLLTOOL+:} false; then :
5839: $as_echo_n "(cached) " >&6
1.23 moko 5840: else
5841: if test -n "$DLLTOOL"; then
5842: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5843: else
5844: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845: for as_dir in $PATH
5846: do
5847: IFS=$as_save_IFS
5848: test -z "$as_dir" && as_dir=.
1.31 moko 5849: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5850: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5851: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.31 moko 5852: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5853: break 2
5854: fi
5855: done
1.31 moko 5856: done
5857: IFS=$as_save_IFS
1.23 moko 5858:
5859: fi
5860: fi
5861: DLLTOOL=$ac_cv_prog_DLLTOOL
5862: if test -n "$DLLTOOL"; then
1.31 moko 5863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5864: $as_echo "$DLLTOOL" >&6; }
1.23 moko 5865: else
1.31 moko 5866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867: $as_echo "no" >&6; }
1.23 moko 5868: fi
5869:
1.31 moko 5870:
1.23 moko 5871: fi
5872: if test -z "$ac_cv_prog_DLLTOOL"; then
5873: ac_ct_DLLTOOL=$DLLTOOL
5874: # Extract the first word of "dlltool", so it can be a program name with args.
5875: set dummy dlltool; ac_word=$2
1.31 moko 5876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877: $as_echo_n "checking for $ac_word... " >&6; }
5878: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5879: $as_echo_n "(cached) " >&6
1.6 paf 5880: else
1.23 moko 5881: if test -n "$ac_ct_DLLTOOL"; then
5882: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5883: else
5884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885: for as_dir in $PATH
5886: do
5887: IFS=$as_save_IFS
5888: test -z "$as_dir" && as_dir=.
1.31 moko 5889: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5890: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5891: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.31 moko 5892: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5893: break 2
5894: fi
5895: done
1.31 moko 5896: done
5897: IFS=$as_save_IFS
1.23 moko 5898:
5899: fi
5900: fi
5901: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5902: if test -n "$ac_ct_DLLTOOL"; then
1.31 moko 5903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5904: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.23 moko 5905: else
1.31 moko 5906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907: $as_echo "no" >&6; }
1.23 moko 5908: fi
5909:
1.31 moko 5910: if test "x$ac_ct_DLLTOOL" = x; then
5911: DLLTOOL="false"
5912: else
5913: case $cross_compiling:$ac_tool_warned in
5914: yes:)
5915: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5916: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5917: ac_tool_warned=yes ;;
5918: esac
5919: DLLTOOL=$ac_ct_DLLTOOL
5920: fi
1.23 moko 5921: else
5922: DLLTOOL="$ac_cv_prog_DLLTOOL"
5923: fi
5924:
5925: test -z "$DLLTOOL" && DLLTOOL=dlltool
5926:
1.10 paf 5927:
5928:
5929:
5930:
5931:
5932:
1.31 moko 5933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5934: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5935: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5936: $as_echo_n "(cached) " >&6
1.23 moko 5937: else
5938: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.10 paf 5939:
5940: case $host_os in
1.23 moko 5941: cygwin* | mingw* | pw32* | cegcc*)
5942: # two different shell functions defined in ltmain.sh
5943: # decide which to use based on capabilities of $DLLTOOL
5944: case `$DLLTOOL --help 2>&1` in
5945: *--identify-strict*)
5946: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5947: ;;
5948: *)
5949: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5950: ;;
5951: esac
1.10 paf 5952: ;;
1.23 moko 5953: *)
5954: # fallback: assume linklib IS sharedlib
5955: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.10 paf 5956: ;;
5957: esac
5958:
5959: fi
1.31 moko 5960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5961: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.23 moko 5962: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5963: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.10 paf 5964:
5965:
5966:
5967:
5968:
5969:
5970:
5971:
1.23 moko 5972: if test -n "$ac_tool_prefix"; then
5973: for ac_prog in ar
5974: do
5975: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5976: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.31 moko 5977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978: $as_echo_n "checking for $ac_word... " >&6; }
5979: if ${ac_cv_prog_AR+:} false; then :
5980: $as_echo_n "(cached) " >&6
1.23 moko 5981: else
5982: if test -n "$AR"; then
5983: ac_cv_prog_AR="$AR" # Let the user override the test.
5984: else
5985: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986: for as_dir in $PATH
5987: do
5988: IFS=$as_save_IFS
5989: test -z "$as_dir" && as_dir=.
1.31 moko 5990: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 5991: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 5992: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.31 moko 5993: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 5994: break 2
1.10 paf 5995: fi
5996: done
1.31 moko 5997: done
5998: IFS=$as_save_IFS
1.10 paf 5999:
1.6 paf 6000: fi
6001: fi
1.23 moko 6002: AR=$ac_cv_prog_AR
6003: if test -n "$AR"; then
1.31 moko 6004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6005: $as_echo "$AR" >&6; }
1.6 paf 6006: else
1.31 moko 6007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008: $as_echo "no" >&6; }
1.6 paf 6009: fi
6010:
1.31 moko 6011:
1.23 moko 6012: test -n "$AR" && break
6013: done
1.15 paf 6014: fi
1.23 moko 6015: if test -z "$AR"; then
6016: ac_ct_AR=$AR
6017: for ac_prog in ar
6018: do
6019: # Extract the first word of "$ac_prog", so it can be a program name with args.
6020: set dummy $ac_prog; ac_word=$2
1.31 moko 6021: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022: $as_echo_n "checking for $ac_word... " >&6; }
6023: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6024: $as_echo_n "(cached) " >&6
1.6 paf 6025: else
1.23 moko 6026: if test -n "$ac_ct_AR"; then
6027: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6028: else
6029: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030: for as_dir in $PATH
1.10 paf 6031: do
1.23 moko 6032: IFS=$as_save_IFS
6033: test -z "$as_dir" && as_dir=.
1.31 moko 6034: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6035: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6036: ac_cv_prog_ac_ct_AR="$ac_prog"
1.31 moko 6037: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6038: break 2
1.10 paf 6039: fi
1.23 moko 6040: done
1.31 moko 6041: done
6042: IFS=$as_save_IFS
1.10 paf 6043:
1.6 paf 6044: fi
6045: fi
1.23 moko 6046: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6047: if test -n "$ac_ct_AR"; then
1.31 moko 6048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6049: $as_echo "$ac_ct_AR" >&6; }
1.10 paf 6050: else
1.31 moko 6051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052: $as_echo "no" >&6; }
1.6 paf 6053: fi
1.10 paf 6054:
1.31 moko 6055:
1.23 moko 6056: test -n "$ac_ct_AR" && break
1.10 paf 6057: done
1.23 moko 6058:
1.31 moko 6059: if test "x$ac_ct_AR" = x; then
6060: AR="false"
6061: else
6062: case $cross_compiling:$ac_tool_warned in
6063: yes:)
6064: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066: ac_tool_warned=yes ;;
6067: esac
6068: AR=$ac_ct_AR
6069: fi
1.6 paf 6070: fi
6071:
1.23 moko 6072: : ${AR=ar}
6073: : ${AR_FLAGS=cru}
6074:
1.10 paf 6075:
6076:
1.6 paf 6077:
1.10 paf 6078:
1.6 paf 6079:
6080:
1.10 paf 6081:
6082:
6083:
6084:
1.31 moko 6085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6086: $as_echo_n "checking for archiver @FILE support... " >&6; }
6087: if ${lt_cv_ar_at_file+:} false; then :
6088: $as_echo_n "(cached) " >&6
1.10 paf 6089: else
1.23 moko 6090: lt_cv_ar_at_file=no
1.31 moko 6091: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 6092: /* end confdefs.h. */
6093:
6094: int
6095: main ()
6096: {
6097:
6098: ;
6099: return 0;
6100: }
6101: _ACEOF
1.31 moko 6102: if ac_fn_c_try_compile "$LINENO"; then :
1.23 moko 6103: echo conftest.$ac_objext > conftest.lst
6104: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.31 moko 6105: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.23 moko 6106: (eval $lt_ar_try) 2>&5
6107: ac_status=$?
1.31 moko 6108: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109: test $ac_status = 0; }
1.23 moko 6110: if test "$ac_status" -eq 0; then
6111: # Ensure the archiver fails upon bogus file names.
6112: rm -f conftest.$ac_objext libconftest.a
1.31 moko 6113: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.23 moko 6114: (eval $lt_ar_try) 2>&5
6115: ac_status=$?
1.31 moko 6116: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117: test $ac_status = 0; }
1.23 moko 6118: if test "$ac_status" -ne 0; then
6119: lt_cv_ar_at_file=@
6120: fi
6121: fi
6122: rm -f conftest.* libconftest.a
6123:
1.6 paf 6124: fi
1.31 moko 6125: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.6 paf 6126:
1.23 moko 6127: fi
1.31 moko 6128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6129: $as_echo "$lt_cv_ar_at_file" >&6; }
1.6 paf 6130:
1.23 moko 6131: if test "x$lt_cv_ar_at_file" = xno; then
6132: archiver_list_spec=
1.6 paf 6133: else
1.23 moko 6134: archiver_list_spec=$lt_cv_ar_at_file
1.6 paf 6135: fi
1.10 paf 6136:
6137:
6138:
1.23 moko 6139:
6140:
6141:
6142:
6143: if test -n "$ac_tool_prefix"; then
6144: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6145: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.31 moko 6146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147: $as_echo_n "checking for $ac_word... " >&6; }
6148: if ${ac_cv_prog_STRIP+:} false; then :
6149: $as_echo_n "(cached) " >&6
1.23 moko 6150: else
6151: if test -n "$STRIP"; then
6152: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6153: else
6154: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155: for as_dir in $PATH
6156: do
6157: IFS=$as_save_IFS
6158: test -z "$as_dir" && as_dir=.
1.31 moko 6159: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6160: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6161: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.31 moko 6162: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6163: break 2
6164: fi
6165: done
1.31 moko 6166: done
6167: IFS=$as_save_IFS
1.23 moko 6168:
6169: fi
6170: fi
6171: STRIP=$ac_cv_prog_STRIP
6172: if test -n "$STRIP"; then
1.31 moko 6173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6174: $as_echo "$STRIP" >&6; }
1.6 paf 6175: else
1.31 moko 6176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177: $as_echo "no" >&6; }
1.6 paf 6178: fi
6179:
1.31 moko 6180:
1.6 paf 6181: fi
1.23 moko 6182: if test -z "$ac_cv_prog_STRIP"; then
6183: ac_ct_STRIP=$STRIP
6184: # Extract the first word of "strip", so it can be a program name with args.
6185: set dummy strip; ac_word=$2
1.31 moko 6186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187: $as_echo_n "checking for $ac_word... " >&6; }
6188: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6189: $as_echo_n "(cached) " >&6
1.10 paf 6190: else
1.23 moko 6191: if test -n "$ac_ct_STRIP"; then
6192: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 6193: else
1.23 moko 6194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195: for as_dir in $PATH
6196: do
6197: IFS=$as_save_IFS
6198: test -z "$as_dir" && as_dir=.
1.31 moko 6199: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6200: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6201: ac_cv_prog_ac_ct_STRIP="strip"
1.31 moko 6202: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6203: break 2
6204: fi
6205: done
1.31 moko 6206: done
6207: IFS=$as_save_IFS
1.10 paf 6208:
6209: fi
6210: fi
1.23 moko 6211: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6212: if test -n "$ac_ct_STRIP"; then
1.31 moko 6213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6214: $as_echo "$ac_ct_STRIP" >&6; }
1.23 moko 6215: else
1.31 moko 6216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217: $as_echo "no" >&6; }
1.1 parser 6218: fi
6219:
1.31 moko 6220: if test "x$ac_ct_STRIP" = x; then
6221: STRIP=":"
6222: else
6223: case $cross_compiling:$ac_tool_warned in
6224: yes:)
6225: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227: ac_tool_warned=yes ;;
6228: esac
6229: STRIP=$ac_ct_STRIP
6230: fi
1.23 moko 6231: else
6232: STRIP="$ac_cv_prog_STRIP"
1.10 paf 6233: fi
1.1 parser 6234:
1.23 moko 6235: test -z "$STRIP" && STRIP=:
1.1 parser 6236:
6237:
6238:
6239:
6240:
6241:
1.23 moko 6242: if test -n "$ac_tool_prefix"; then
6243: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6244: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.31 moko 6245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246: $as_echo_n "checking for $ac_word... " >&6; }
6247: if ${ac_cv_prog_RANLIB+:} false; then :
6248: $as_echo_n "(cached) " >&6
1.10 paf 6249: else
1.23 moko 6250: if test -n "$RANLIB"; then
6251: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.10 paf 6252: else
1.23 moko 6253: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254: for as_dir in $PATH
6255: do
6256: IFS=$as_save_IFS
6257: test -z "$as_dir" && as_dir=.
1.31 moko 6258: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6259: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6260: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.31 moko 6261: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6262: break 2
6263: fi
6264: done
1.31 moko 6265: done
6266: IFS=$as_save_IFS
1.10 paf 6267:
6268: fi
6269: fi
1.23 moko 6270: RANLIB=$ac_cv_prog_RANLIB
6271: if test -n "$RANLIB"; then
1.31 moko 6272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6273: $as_echo "$RANLIB" >&6; }
1.23 moko 6274: else
1.31 moko 6275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276: $as_echo "no" >&6; }
1.23 moko 6277: fi
1.1 parser 6278:
1.31 moko 6279:
1.10 paf 6280: fi
1.23 moko 6281: if test -z "$ac_cv_prog_RANLIB"; then
6282: ac_ct_RANLIB=$RANLIB
6283: # Extract the first word of "ranlib", so it can be a program name with args.
6284: set dummy ranlib; ac_word=$2
1.31 moko 6285: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286: $as_echo_n "checking for $ac_word... " >&6; }
6287: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6288: $as_echo_n "(cached) " >&6
1.23 moko 6289: else
6290: if test -n "$ac_ct_RANLIB"; then
6291: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6292: else
6293: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294: for as_dir in $PATH
6295: do
6296: IFS=$as_save_IFS
6297: test -z "$as_dir" && as_dir=.
1.31 moko 6298: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6299: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6300: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.31 moko 6301: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6302: break 2
6303: fi
6304: done
1.31 moko 6305: done
6306: IFS=$as_save_IFS
1.10 paf 6307:
1.23 moko 6308: fi
6309: fi
6310: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6311: if test -n "$ac_ct_RANLIB"; then
1.31 moko 6312: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6313: $as_echo "$ac_ct_RANLIB" >&6; }
1.10 paf 6314: else
1.31 moko 6315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316: $as_echo "no" >&6; }
1.10 paf 6317: fi
6318:
1.31 moko 6319: if test "x$ac_ct_RANLIB" = x; then
6320: RANLIB=":"
6321: else
6322: case $cross_compiling:$ac_tool_warned in
6323: yes:)
6324: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326: ac_tool_warned=yes ;;
6327: esac
6328: RANLIB=$ac_ct_RANLIB
6329: fi
1.10 paf 6330: else
1.23 moko 6331: RANLIB="$ac_cv_prog_RANLIB"
1.10 paf 6332: fi
6333:
1.23 moko 6334: test -z "$RANLIB" && RANLIB=:
6335:
6336:
6337:
6338:
6339:
6340:
6341: # Determine commands to create old-style static archives.
6342: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6343: old_postinstall_cmds='chmod 644 $oldlib'
6344: old_postuninstall_cmds=
1.10 paf 6345:
1.23 moko 6346: if test -n "$RANLIB"; then
6347: case $host_os in
6348: openbsd*)
6349: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.10 paf 6350: ;;
1.23 moko 6351: *)
6352: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.10 paf 6353: ;;
1.23 moko 6354: esac
6355: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.10 paf 6356: fi
6357:
1.23 moko 6358: case $host_os in
6359: darwin*)
6360: lock_old_archive_extraction=yes ;;
6361: *)
6362: lock_old_archive_extraction=no ;;
6363: esac
1.10 paf 6364:
6365:
6366:
6367:
6368:
6369:
6370:
6371:
6372:
6373:
6374:
6375:
6376:
6377:
6378:
6379:
1.1 parser 6380:
6381:
1.10 paf 6382:
6383:
6384:
6385:
6386:
1.1 parser 6387:
1.10 paf 6388:
1.1 parser 6389:
6390:
1.10 paf 6391:
6392:
6393:
6394:
6395:
6396:
1.1 parser 6397:
1.10 paf 6398:
6399:
6400:
6401:
6402:
1.23 moko 6403: # If no C compiler was specified, use CC.
6404: LTCC=${LTCC-"$CC"}
1.1 parser 6405:
1.23 moko 6406: # If no C compiler flags were specified, use CFLAGS.
6407: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.10 paf 6408:
1.23 moko 6409: # Allow CC to be a program name with arguments.
6410: compiler=$CC
1.10 paf 6411:
1.1 parser 6412:
1.23 moko 6413: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.31 moko 6414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6415: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6416: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6417: $as_echo_n "(cached) " >&6
1.23 moko 6418: else
6419:
6420: # These are sane defaults that work on at least a few old systems.
6421: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.10 paf 6422:
1.23 moko 6423: # Character class describing NM global symbol codes.
6424: symcode='[BCDEGRST]'
1.10 paf 6425:
1.23 moko 6426: # Regexp to match symbols that can be accessed directly from C.
6427: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.10 paf 6428:
1.23 moko 6429: # Define system-specific variables.
6430: case $host_os in
6431: aix*)
6432: symcode='[BCDT]'
6433: ;;
6434: cygwin* | mingw* | pw32* | cegcc*)
6435: symcode='[ABCDGISTW]'
6436: ;;
6437: hpux*)
6438: if test "$host_cpu" = ia64; then
6439: symcode='[ABCDEGRST]'
6440: fi
6441: ;;
6442: irix* | nonstopux*)
6443: symcode='[BCDEGRST]'
6444: ;;
6445: osf*)
6446: symcode='[BCDEGQRST]'
6447: ;;
6448: solaris*)
6449: symcode='[BDRT]'
6450: ;;
6451: sco3.2v5*)
6452: symcode='[DT]'
6453: ;;
6454: sysv4.2uw2*)
6455: symcode='[DT]'
6456: ;;
6457: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6458: symcode='[ABDT]'
6459: ;;
6460: sysv4)
6461: symcode='[DFNSTU]'
6462: ;;
6463: esac
1.10 paf 6464:
1.23 moko 6465: # If we're using GNU nm, then use its standard symbol codes.
6466: case `$NM -V 2>&1` in
6467: *GNU* | *'with BFD'*)
6468: symcode='[ABCDGIRSTW]' ;;
6469: esac
1.10 paf 6470:
1.23 moko 6471: # Transform an extracted symbol line into a proper C declaration.
6472: # Some systems (esp. on ia64) link data and code symbols differently,
6473: # so use this general approach.
6474: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.10 paf 6475:
1.23 moko 6476: # Transform an extracted symbol line into symbol name and symbol address
6477: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6478: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1.10 paf 6479:
1.23 moko 6480: # Handle CRLF in mingw tool chain
6481: opt_cr=
6482: case $build_os in
6483: mingw*)
6484: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6485: ;;
6486: esac
1.10 paf 6487:
1.23 moko 6488: # Try without a prefix underscore, then with it.
6489: for ac_symprfx in "" "_"; do
1.1 parser 6490:
1.23 moko 6491: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6492: symxfrm="\\1 $ac_symprfx\\2 \\2"
1.10 paf 6493:
1.23 moko 6494: # Write the raw and C identifiers.
6495: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6496: # Fake it for dumpbin and say T for any non-static function
6497: # and D for any global variable.
6498: # Also find C++ and __fastcall symbols from MSVC++,
6499: # which start with @ or ?.
6500: lt_cv_sys_global_symbol_pipe="$AWK '"\
6501: " {last_section=section; section=\$ 3};"\
6502: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6503: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6504: " \$ 0!~/External *\|/{next};"\
6505: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6506: " {if(hide[section]) next};"\
6507: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6508: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6509: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6510: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6511: " ' prfx=^$ac_symprfx"
6512: else
6513: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.10 paf 6514: fi
1.23 moko 6515: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.10 paf 6516:
1.23 moko 6517: # Check to see that the pipe works correctly.
6518: pipe_works=no
1.10 paf 6519:
1.23 moko 6520: rm -f conftest*
6521: cat > conftest.$ac_ext <<_LT_EOF
6522: #ifdef __cplusplus
6523: extern "C" {
6524: #endif
6525: char nm_test_var;
6526: void nm_test_func(void);
6527: void nm_test_func(void){}
6528: #ifdef __cplusplus
6529: }
6530: #endif
6531: int main(){nm_test_var='a';nm_test_func();return(0);}
6532: _LT_EOF
1.1 parser 6533:
1.31 moko 6534: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6535: (eval $ac_compile) 2>&5
6536: ac_status=$?
1.31 moko 6537: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6538: test $ac_status = 0; }; then
1.23 moko 6539: # Now try to grab the symbols.
6540: nlist=conftest.nm
1.31 moko 6541: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.23 moko 6542: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6543: ac_status=$?
1.31 moko 6544: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545: test $ac_status = 0; } && test -s "$nlist"; then
1.23 moko 6546: # Try sorting and uniquifying the output.
6547: if sort "$nlist" | uniq > "$nlist"T; then
6548: mv -f "$nlist"T "$nlist"
6549: else
6550: rm -f "$nlist"T
6551: fi
1.10 paf 6552:
1.23 moko 6553: # Make sure that we snagged all the symbols we need.
6554: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6555: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6556: cat <<_LT_EOF > conftest.$ac_ext
6557: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6558: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6559: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6560: relocations are performed -- see ld's documentation on pseudo-relocs. */
6561: # define LT_DLSYM_CONST
6562: #elif defined(__osf__)
6563: /* This system does not cope well with relocations in const data. */
6564: # define LT_DLSYM_CONST
6565: #else
6566: # define LT_DLSYM_CONST const
6567: #endif
1.10 paf 6568:
1.23 moko 6569: #ifdef __cplusplus
6570: extern "C" {
6571: #endif
1.10 paf 6572:
1.23 moko 6573: _LT_EOF
6574: # Now generate the symbol file.
6575: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.10 paf 6576:
1.23 moko 6577: cat <<_LT_EOF >> conftest.$ac_ext
1.10 paf 6578:
1.23 moko 6579: /* The mapping between symbol names and symbols. */
6580: LT_DLSYM_CONST struct {
6581: const char *name;
6582: void *address;
6583: }
6584: lt__PROGRAM__LTX_preloaded_symbols[] =
6585: {
6586: { "@PROGRAM@", (void *) 0 },
6587: _LT_EOF
6588: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6589: cat <<\_LT_EOF >> conftest.$ac_ext
6590: {0, (void *) 0}
6591: };
1.10 paf 6592:
1.23 moko 6593: /* This works around a problem in FreeBSD linker */
6594: #ifdef FREEBSD_WORKAROUND
6595: static const void *lt_preloaded_setup() {
6596: return lt__PROGRAM__LTX_preloaded_symbols;
6597: }
6598: #endif
1.1 parser 6599:
1.23 moko 6600: #ifdef __cplusplus
6601: }
6602: #endif
6603: _LT_EOF
6604: # Now try linking the two files.
6605: mv conftest.$ac_objext conftstm.$ac_objext
6606: lt_globsym_save_LIBS=$LIBS
6607: lt_globsym_save_CFLAGS=$CFLAGS
6608: LIBS="conftstm.$ac_objext"
6609: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.31 moko 6610: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 6611: (eval $ac_link) 2>&5
6612: ac_status=$?
1.31 moko 6613: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6614: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.23 moko 6615: pipe_works=yes
6616: fi
6617: LIBS=$lt_globsym_save_LIBS
6618: CFLAGS=$lt_globsym_save_CFLAGS
6619: else
6620: echo "cannot find nm_test_func in $nlist" >&5
6621: fi
6622: else
6623: echo "cannot find nm_test_var in $nlist" >&5
1.10 paf 6624: fi
1.23 moko 6625: else
6626: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6627: fi
6628: else
6629: echo "$progname: failed program was:" >&5
6630: cat conftest.$ac_ext >&5
6631: fi
6632: rm -rf conftest* conftst*
6633:
6634: # Do not use the global_symbol_pipe unless it works.
6635: if test "$pipe_works" = yes; then
6636: break
1.10 paf 6637: else
1.23 moko 6638: lt_cv_sys_global_symbol_pipe=
6639: fi
6640: done
6641:
6642: fi
1.10 paf 6643:
1.23 moko 6644: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6645: lt_cv_sys_global_symbol_to_cdecl=
6646: fi
6647: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.31 moko 6648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6649: $as_echo "failed" >&6; }
1.23 moko 6650: else
1.31 moko 6651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6652: $as_echo "ok" >&6; }
1.23 moko 6653: fi
1.10 paf 6654:
1.23 moko 6655: # Response file support.
6656: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6657: nm_file_list_spec='@'
6658: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6659: nm_file_list_spec='@'
6660: fi
1.10 paf 6661:
6662:
6663:
6664:
6665:
6666:
6667:
6668:
6669:
6670:
6671:
6672:
1.23 moko 6673:
6674:
6675:
6676:
6677:
6678:
6679:
6680:
6681:
6682:
6683:
6684:
6685:
6686:
6687:
1.31 moko 6688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6689: $as_echo_n "checking for sysroot... " >&6; }
1.23 moko 6690:
1.31 moko 6691: # Check whether --with-sysroot was given.
6692: if test "${with_sysroot+set}" = set; then :
6693: withval=$with_sysroot;
1.10 paf 6694: else
1.23 moko 6695: with_sysroot=no
1.31 moko 6696: fi
6697:
1.23 moko 6698:
6699: lt_sysroot=
6700: case ${with_sysroot} in #(
6701: yes)
6702: if test "$GCC" = yes; then
6703: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6704: fi
6705: ;; #(
6706: /*)
6707: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6708: ;; #(
6709: no|'')
6710: ;; #(
6711: *)
1.31 moko 6712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6713: $as_echo "${with_sysroot}" >&6; }
6714: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.23 moko 6715: ;;
6716: esac
6717:
1.31 moko 6718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6719: $as_echo "${lt_sysroot:-no}" >&6; }
1.23 moko 6720:
6721:
1.10 paf 6722:
6723:
6724:
1.31 moko 6725: # Check whether --enable-libtool-lock was given.
6726: if test "${enable_libtool_lock+set}" = set; then :
6727: enableval=$enable_libtool_lock;
6728: fi
1.23 moko 6729:
6730: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6731:
6732: # Some flags need to be propagated to the compiler or linker for good
6733: # libtool support.
6734: case $host in
6735: ia64-*-hpux*)
6736: # Find out which ABI we are using.
6737: echo 'int i;' > conftest.$ac_ext
1.31 moko 6738: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6739: (eval $ac_compile) 2>&5
1.10 paf 6740: ac_status=$?
1.31 moko 6741: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6742: test $ac_status = 0; }; then
1.23 moko 6743: case `/usr/bin/file conftest.$ac_objext` in
6744: *ELF-32*)
6745: HPUX_IA64_MODE="32"
6746: ;;
6747: *ELF-64*)
6748: HPUX_IA64_MODE="64"
6749: ;;
6750: esac
6751: fi
6752: rm -rf conftest*
6753: ;;
6754: *-*-irix6*)
6755: # Find out which ABI we are using.
6756: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.31 moko 6757: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6758: (eval $ac_compile) 2>&5
1.16 paf 6759: ac_status=$?
1.31 moko 6760: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761: test $ac_status = 0; }; then
1.23 moko 6762: if test "$lt_cv_prog_gnu_ld" = yes; then
6763: case `/usr/bin/file conftest.$ac_objext` in
6764: *32-bit*)
6765: LD="${LD-ld} -melf32bsmip"
6766: ;;
6767: *N32*)
6768: LD="${LD-ld} -melf32bmipn32"
6769: ;;
6770: *64-bit*)
6771: LD="${LD-ld} -melf64bmip"
6772: ;;
6773: esac
6774: else
6775: case `/usr/bin/file conftest.$ac_objext` in
6776: *32-bit*)
6777: LD="${LD-ld} -32"
6778: ;;
6779: *N32*)
6780: LD="${LD-ld} -n32"
6781: ;;
6782: *64-bit*)
6783: LD="${LD-ld} -64"
6784: ;;
6785: esac
6786: fi
6787: fi
6788: rm -rf conftest*
6789: ;;
6790:
6791: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6792: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6793: # Find out which ABI we are using.
6794: echo 'int i;' > conftest.$ac_ext
1.31 moko 6795: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6796: (eval $ac_compile) 2>&5
1.10 paf 6797: ac_status=$?
1.31 moko 6798: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6799: test $ac_status = 0; }; then
1.23 moko 6800: case `/usr/bin/file conftest.o` in
6801: *32-bit*)
6802: case $host in
6803: x86_64-*kfreebsd*-gnu)
6804: LD="${LD-ld} -m elf_i386_fbsd"
6805: ;;
6806: x86_64-*linux*)
6807: LD="${LD-ld} -m elf_i386"
6808: ;;
6809: ppc64-*linux*|powerpc64-*linux*)
6810: LD="${LD-ld} -m elf32ppclinux"
6811: ;;
6812: s390x-*linux*)
6813: LD="${LD-ld} -m elf_s390"
6814: ;;
6815: sparc64-*linux*)
6816: LD="${LD-ld} -m elf32_sparc"
6817: ;;
6818: esac
1.10 paf 6819: ;;
1.23 moko 6820: *64-bit*)
6821: case $host in
6822: x86_64-*kfreebsd*-gnu)
6823: LD="${LD-ld} -m elf_x86_64_fbsd"
6824: ;;
6825: x86_64-*linux*)
6826: LD="${LD-ld} -m elf_x86_64"
6827: ;;
6828: ppc*-*linux*|powerpc*-*linux*)
6829: LD="${LD-ld} -m elf64ppc"
6830: ;;
6831: s390*-*linux*|s390*-*tpf*)
6832: LD="${LD-ld} -m elf64_s390"
6833: ;;
6834: sparc*-*linux*)
6835: LD="${LD-ld} -m elf64_sparc"
6836: ;;
6837: esac
1.10 paf 6838: ;;
1.23 moko 6839: esac
1.10 paf 6840: fi
1.23 moko 6841: rm -rf conftest*
6842: ;;
1.10 paf 6843:
1.23 moko 6844: *-*-sco3.2v5*)
6845: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6846: SAVE_CFLAGS="$CFLAGS"
6847: CFLAGS="$CFLAGS -belf"
1.31 moko 6848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6849: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6850: if ${lt_cv_cc_needs_belf+:} false; then :
6851: $as_echo_n "(cached) " >&6
1.10 paf 6852: else
1.23 moko 6853: ac_ext=c
6854: ac_cpp='$CPP $CPPFLAGS'
6855: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6856: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6857: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6858:
1.31 moko 6859: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.10 paf 6860: /* end confdefs.h. */
6861:
6862: int
6863: main ()
6864: {
6865:
6866: ;
6867: return 0;
6868: }
6869: _ACEOF
1.31 moko 6870: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 6871: lt_cv_cc_needs_belf=yes
1.10 paf 6872: else
1.31 moko 6873: lt_cv_cc_needs_belf=no
1.10 paf 6874: fi
1.31 moko 6875: rm -f core conftest.err conftest.$ac_objext \
6876: conftest$ac_exeext conftest.$ac_ext
1.23 moko 6877: ac_ext=c
6878: ac_cpp='$CPP $CPPFLAGS'
6879: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 6882:
6883: fi
1.31 moko 6884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6885: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.23 moko 6886: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6887: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6888: CFLAGS="$SAVE_CFLAGS"
6889: fi
6890: ;;
6891: *-*solaris*)
6892: # Find out which ABI we are using.
6893: echo 'int i;' > conftest.$ac_ext
1.31 moko 6894: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 6895: (eval $ac_compile) 2>&5
6896: ac_status=$?
1.31 moko 6897: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898: test $ac_status = 0; }; then
1.23 moko 6899: case `/usr/bin/file conftest.o` in
6900: *64-bit*)
6901: case $lt_cv_prog_gnu_ld in
6902: yes*)
6903: case $host in
6904: i?86-*-solaris*)
6905: LD="${LD-ld} -m elf_x86_64"
6906: ;;
6907: sparc*-*-solaris*)
6908: LD="${LD-ld} -m elf64_sparc"
6909: ;;
6910: esac
6911: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6912: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6913: LD="${LD-ld}_sol2"
6914: fi
6915: ;;
6916: *)
6917: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6918: LD="${LD-ld} -64"
6919: fi
6920: ;;
6921: esac
6922: ;;
6923: esac
6924: fi
6925: rm -rf conftest*
6926: ;;
6927: esac
1.10 paf 6928:
1.23 moko 6929: need_locks="$enable_libtool_lock"
1.10 paf 6930:
1.23 moko 6931: if test -n "$ac_tool_prefix"; then
6932: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6933: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.31 moko 6934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935: $as_echo_n "checking for $ac_word... " >&6; }
6936: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6937: $as_echo_n "(cached) " >&6
1.23 moko 6938: else
6939: if test -n "$MANIFEST_TOOL"; then
6940: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6941: else
6942: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943: for as_dir in $PATH
6944: do
6945: IFS=$as_save_IFS
6946: test -z "$as_dir" && as_dir=.
1.31 moko 6947: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6948: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6949: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.31 moko 6950: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6951: break 2
6952: fi
6953: done
1.31 moko 6954: done
6955: IFS=$as_save_IFS
1.10 paf 6956:
1.23 moko 6957: fi
6958: fi
6959: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6960: if test -n "$MANIFEST_TOOL"; then
1.31 moko 6961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6962: $as_echo "$MANIFEST_TOOL" >&6; }
1.23 moko 6963: else
1.31 moko 6964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965: $as_echo "no" >&6; }
1.23 moko 6966: fi
1.10 paf 6967:
1.31 moko 6968:
1.23 moko 6969: fi
6970: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6971: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6972: # Extract the first word of "mt", so it can be a program name with args.
6973: set dummy mt; ac_word=$2
1.31 moko 6974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975: $as_echo_n "checking for $ac_word... " >&6; }
6976: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6977: $as_echo_n "(cached) " >&6
1.10 paf 6978: else
1.23 moko 6979: if test -n "$ac_ct_MANIFEST_TOOL"; then
6980: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6981: else
6982: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983: for as_dir in $PATH
6984: do
6985: IFS=$as_save_IFS
6986: test -z "$as_dir" && as_dir=.
1.31 moko 6987: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 6988: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 6989: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.31 moko 6990: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 6991: break 2
6992: fi
6993: done
1.31 moko 6994: done
6995: IFS=$as_save_IFS
1.10 paf 6996:
1.23 moko 6997: fi
6998: fi
6999: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7000: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.31 moko 7001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7002: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.10 paf 7003: else
1.31 moko 7004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005: $as_echo "no" >&6; }
1.10 paf 7006: fi
7007:
1.31 moko 7008: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7009: MANIFEST_TOOL=":"
7010: else
7011: case $cross_compiling:$ac_tool_warned in
7012: yes:)
7013: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015: ac_tool_warned=yes ;;
7016: esac
7017: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7018: fi
1.23 moko 7019: else
7020: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
1.10 paf 7021: fi
7022:
1.23 moko 7023: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.31 moko 7024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7025: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7026: if ${lt_cv_path_mainfest_tool+:} false; then :
7027: $as_echo_n "(cached) " >&6
1.10 paf 7028: else
1.23 moko 7029: lt_cv_path_mainfest_tool=no
7030: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7031: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7032: cat conftest.err >&5
7033: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7034: lt_cv_path_mainfest_tool=yes
7035: fi
7036: rm -f conftest*
7037: fi
1.31 moko 7038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7039: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.23 moko 7040: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7041: MANIFEST_TOOL=:
7042: fi
7043:
7044:
7045:
7046:
1.10 paf 7047:
7048:
1.23 moko 7049: case $host_os in
7050: rhapsody* | darwin*)
7051: if test -n "$ac_tool_prefix"; then
7052: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7053: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.31 moko 7054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055: $as_echo_n "checking for $ac_word... " >&6; }
7056: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7057: $as_echo_n "(cached) " >&6
1.23 moko 7058: else
7059: if test -n "$DSYMUTIL"; then
7060: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7061: else
7062: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063: for as_dir in $PATH
7064: do
7065: IFS=$as_save_IFS
7066: test -z "$as_dir" && as_dir=.
1.31 moko 7067: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7068: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7069: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.31 moko 7070: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7071: break 2
7072: fi
7073: done
1.31 moko 7074: done
7075: IFS=$as_save_IFS
1.10 paf 7076:
1.23 moko 7077: fi
7078: fi
7079: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7080: if test -n "$DSYMUTIL"; then
1.31 moko 7081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7082: $as_echo "$DSYMUTIL" >&6; }
1.10 paf 7083: else
1.31 moko 7084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085: $as_echo "no" >&6; }
1.23 moko 7086: fi
1.10 paf 7087:
1.31 moko 7088:
1.10 paf 7089: fi
1.23 moko 7090: if test -z "$ac_cv_prog_DSYMUTIL"; then
7091: ac_ct_DSYMUTIL=$DSYMUTIL
7092: # Extract the first word of "dsymutil", so it can be a program name with args.
7093: set dummy dsymutil; ac_word=$2
1.31 moko 7094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095: $as_echo_n "checking for $ac_word... " >&6; }
7096: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7097: $as_echo_n "(cached) " >&6
1.23 moko 7098: else
7099: if test -n "$ac_ct_DSYMUTIL"; then
7100: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7101: else
7102: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103: for as_dir in $PATH
7104: do
7105: IFS=$as_save_IFS
7106: test -z "$as_dir" && as_dir=.
1.31 moko 7107: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7108: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7109: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.31 moko 7110: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7111: break 2
7112: fi
7113: done
1.31 moko 7114: done
7115: IFS=$as_save_IFS
1.10 paf 7116:
1.23 moko 7117: fi
7118: fi
7119: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7120: if test -n "$ac_ct_DSYMUTIL"; then
1.31 moko 7121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7122: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.23 moko 7123: else
1.31 moko 7124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125: $as_echo "no" >&6; }
1.10 paf 7126: fi
7127:
1.31 moko 7128: if test "x$ac_ct_DSYMUTIL" = x; then
7129: DSYMUTIL=":"
7130: else
7131: case $cross_compiling:$ac_tool_warned in
7132: yes:)
7133: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135: ac_tool_warned=yes ;;
7136: esac
7137: DSYMUTIL=$ac_ct_DSYMUTIL
7138: fi
1.10 paf 7139: else
1.23 moko 7140: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.10 paf 7141: fi
7142:
1.23 moko 7143: if test -n "$ac_tool_prefix"; then
7144: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7145: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.31 moko 7146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147: $as_echo_n "checking for $ac_word... " >&6; }
7148: if ${ac_cv_prog_NMEDIT+:} false; then :
7149: $as_echo_n "(cached) " >&6
1.23 moko 7150: else
7151: if test -n "$NMEDIT"; then
7152: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7153: else
7154: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155: for as_dir in $PATH
7156: do
7157: IFS=$as_save_IFS
7158: test -z "$as_dir" && as_dir=.
1.31 moko 7159: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7160: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7161: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.31 moko 7162: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7163: break 2
1.10 paf 7164: fi
1.23 moko 7165: done
1.31 moko 7166: done
7167: IFS=$as_save_IFS
1.23 moko 7168:
7169: fi
7170: fi
7171: NMEDIT=$ac_cv_prog_NMEDIT
7172: if test -n "$NMEDIT"; then
1.31 moko 7173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7174: $as_echo "$NMEDIT" >&6; }
1.10 paf 7175: else
1.31 moko 7176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177: $as_echo "no" >&6; }
1.10 paf 7178: fi
7179:
1.31 moko 7180:
1.23 moko 7181: fi
7182: if test -z "$ac_cv_prog_NMEDIT"; then
7183: ac_ct_NMEDIT=$NMEDIT
7184: # Extract the first word of "nmedit", so it can be a program name with args.
7185: set dummy nmedit; ac_word=$2
1.31 moko 7186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187: $as_echo_n "checking for $ac_word... " >&6; }
7188: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7189: $as_echo_n "(cached) " >&6
1.23 moko 7190: else
7191: if test -n "$ac_ct_NMEDIT"; then
7192: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7193: else
7194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195: for as_dir in $PATH
7196: do
7197: IFS=$as_save_IFS
7198: test -z "$as_dir" && as_dir=.
1.31 moko 7199: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7200: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7201: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.31 moko 7202: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7203: break 2
7204: fi
7205: done
1.31 moko 7206: done
7207: IFS=$as_save_IFS
1.10 paf 7208:
1.23 moko 7209: fi
7210: fi
7211: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7212: if test -n "$ac_ct_NMEDIT"; then
1.31 moko 7213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7214: $as_echo "$ac_ct_NMEDIT" >&6; }
1.23 moko 7215: else
1.31 moko 7216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217: $as_echo "no" >&6; }
1.23 moko 7218: fi
1.10 paf 7219:
1.31 moko 7220: if test "x$ac_ct_NMEDIT" = x; then
7221: NMEDIT=":"
7222: else
7223: case $cross_compiling:$ac_tool_warned in
7224: yes:)
7225: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227: ac_tool_warned=yes ;;
7228: esac
7229: NMEDIT=$ac_ct_NMEDIT
7230: fi
1.10 paf 7231: else
1.23 moko 7232: NMEDIT="$ac_cv_prog_NMEDIT"
1.10 paf 7233: fi
7234:
1.23 moko 7235: if test -n "$ac_tool_prefix"; then
7236: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7237: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.31 moko 7238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239: $as_echo_n "checking for $ac_word... " >&6; }
7240: if ${ac_cv_prog_LIPO+:} false; then :
7241: $as_echo_n "(cached) " >&6
1.23 moko 7242: else
7243: if test -n "$LIPO"; then
7244: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7245: else
7246: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247: for as_dir in $PATH
7248: do
7249: IFS=$as_save_IFS
7250: test -z "$as_dir" && as_dir=.
1.31 moko 7251: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7252: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7253: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.31 moko 7254: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7255: break 2
1.10 paf 7256: fi
1.23 moko 7257: done
1.31 moko 7258: done
7259: IFS=$as_save_IFS
1.23 moko 7260:
7261: fi
7262: fi
7263: LIPO=$ac_cv_prog_LIPO
7264: if test -n "$LIPO"; then
1.31 moko 7265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7266: $as_echo "$LIPO" >&6; }
1.23 moko 7267: else
1.31 moko 7268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269: $as_echo "no" >&6; }
1.10 paf 7270: fi
7271:
1.31 moko 7272:
1.23 moko 7273: fi
7274: if test -z "$ac_cv_prog_LIPO"; then
7275: ac_ct_LIPO=$LIPO
7276: # Extract the first word of "lipo", so it can be a program name with args.
7277: set dummy lipo; ac_word=$2
1.31 moko 7278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279: $as_echo_n "checking for $ac_word... " >&6; }
7280: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7281: $as_echo_n "(cached) " >&6
1.23 moko 7282: else
7283: if test -n "$ac_ct_LIPO"; then
7284: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7285: else
7286: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287: for as_dir in $PATH
7288: do
7289: IFS=$as_save_IFS
7290: test -z "$as_dir" && as_dir=.
1.31 moko 7291: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7292: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7293: ac_cv_prog_ac_ct_LIPO="lipo"
1.31 moko 7294: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7295: break 2
1.10 paf 7296: fi
1.23 moko 7297: done
1.31 moko 7298: done
7299: IFS=$as_save_IFS
1.10 paf 7300:
1.23 moko 7301: fi
7302: fi
7303: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7304: if test -n "$ac_ct_LIPO"; then
1.31 moko 7305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7306: $as_echo "$ac_ct_LIPO" >&6; }
1.23 moko 7307: else
1.31 moko 7308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309: $as_echo "no" >&6; }
1.23 moko 7310: fi
1.10 paf 7311:
1.31 moko 7312: if test "x$ac_ct_LIPO" = x; then
7313: LIPO=":"
7314: else
7315: case $cross_compiling:$ac_tool_warned in
7316: yes:)
7317: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319: ac_tool_warned=yes ;;
7320: esac
7321: LIPO=$ac_ct_LIPO
7322: fi
1.23 moko 7323: else
7324: LIPO="$ac_cv_prog_LIPO"
7325: fi
1.10 paf 7326:
1.23 moko 7327: if test -n "$ac_tool_prefix"; then
7328: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7329: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.31 moko 7330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331: $as_echo_n "checking for $ac_word... " >&6; }
7332: if ${ac_cv_prog_OTOOL+:} false; then :
7333: $as_echo_n "(cached) " >&6
1.23 moko 7334: else
7335: if test -n "$OTOOL"; then
7336: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7337: else
7338: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339: for as_dir in $PATH
7340: do
7341: IFS=$as_save_IFS
7342: test -z "$as_dir" && as_dir=.
1.31 moko 7343: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7344: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7345: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.31 moko 7346: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7347: break 2
7348: fi
7349: done
1.31 moko 7350: done
7351: IFS=$as_save_IFS
1.10 paf 7352:
1.23 moko 7353: fi
7354: fi
7355: OTOOL=$ac_cv_prog_OTOOL
7356: if test -n "$OTOOL"; then
1.31 moko 7357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7358: $as_echo "$OTOOL" >&6; }
1.23 moko 7359: else
1.31 moko 7360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361: $as_echo "no" >&6; }
1.23 moko 7362: fi
1.10 paf 7363:
1.31 moko 7364:
1.23 moko 7365: fi
7366: if test -z "$ac_cv_prog_OTOOL"; then
7367: ac_ct_OTOOL=$OTOOL
7368: # Extract the first word of "otool", so it can be a program name with args.
7369: set dummy otool; ac_word=$2
1.31 moko 7370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371: $as_echo_n "checking for $ac_word... " >&6; }
7372: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7373: $as_echo_n "(cached) " >&6
1.23 moko 7374: else
7375: if test -n "$ac_ct_OTOOL"; then
7376: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7377: else
7378: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379: for as_dir in $PATH
7380: do
7381: IFS=$as_save_IFS
7382: test -z "$as_dir" && as_dir=.
1.31 moko 7383: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7384: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7385: ac_cv_prog_ac_ct_OTOOL="otool"
1.31 moko 7386: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7387: break 2
7388: fi
7389: done
1.31 moko 7390: done
7391: IFS=$as_save_IFS
1.10 paf 7392:
1.23 moko 7393: fi
7394: fi
7395: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7396: if test -n "$ac_ct_OTOOL"; then
1.31 moko 7397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7398: $as_echo "$ac_ct_OTOOL" >&6; }
1.23 moko 7399: else
1.31 moko 7400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401: $as_echo "no" >&6; }
1.23 moko 7402: fi
1.10 paf 7403:
1.31 moko 7404: if test "x$ac_ct_OTOOL" = x; then
7405: OTOOL=":"
7406: else
7407: case $cross_compiling:$ac_tool_warned in
7408: yes:)
7409: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411: ac_tool_warned=yes ;;
7412: esac
7413: OTOOL=$ac_ct_OTOOL
7414: fi
1.23 moko 7415: else
7416: OTOOL="$ac_cv_prog_OTOOL"
7417: fi
1.10 paf 7418:
1.23 moko 7419: if test -n "$ac_tool_prefix"; then
7420: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7421: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.31 moko 7422: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423: $as_echo_n "checking for $ac_word... " >&6; }
7424: if ${ac_cv_prog_OTOOL64+:} false; then :
7425: $as_echo_n "(cached) " >&6
1.23 moko 7426: else
7427: if test -n "$OTOOL64"; then
7428: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7429: else
7430: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431: for as_dir in $PATH
7432: do
7433: IFS=$as_save_IFS
7434: test -z "$as_dir" && as_dir=.
1.31 moko 7435: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7436: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7437: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.31 moko 7438: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7439: break 2
7440: fi
7441: done
1.31 moko 7442: done
7443: IFS=$as_save_IFS
1.10 paf 7444:
1.23 moko 7445: fi
7446: fi
7447: OTOOL64=$ac_cv_prog_OTOOL64
7448: if test -n "$OTOOL64"; then
1.31 moko 7449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7450: $as_echo "$OTOOL64" >&6; }
1.23 moko 7451: else
1.31 moko 7452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453: $as_echo "no" >&6; }
1.23 moko 7454: fi
1.10 paf 7455:
1.31 moko 7456:
1.23 moko 7457: fi
7458: if test -z "$ac_cv_prog_OTOOL64"; then
7459: ac_ct_OTOOL64=$OTOOL64
7460: # Extract the first word of "otool64", so it can be a program name with args.
7461: set dummy otool64; ac_word=$2
1.31 moko 7462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463: $as_echo_n "checking for $ac_word... " >&6; }
7464: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7465: $as_echo_n "(cached) " >&6
1.23 moko 7466: else
7467: if test -n "$ac_ct_OTOOL64"; then
7468: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7469: else
7470: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471: for as_dir in $PATH
7472: do
7473: IFS=$as_save_IFS
7474: test -z "$as_dir" && as_dir=.
1.31 moko 7475: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 7476: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 7477: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.31 moko 7478: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 7479: break 2
7480: fi
7481: done
1.31 moko 7482: done
7483: IFS=$as_save_IFS
1.10 paf 7484:
1.23 moko 7485: fi
7486: fi
7487: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7488: if test -n "$ac_ct_OTOOL64"; then
1.31 moko 7489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7490: $as_echo "$ac_ct_OTOOL64" >&6; }
1.23 moko 7491: else
1.31 moko 7492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493: $as_echo "no" >&6; }
1.23 moko 7494: fi
1.10 paf 7495:
1.31 moko 7496: if test "x$ac_ct_OTOOL64" = x; then
7497: OTOOL64=":"
7498: else
7499: case $cross_compiling:$ac_tool_warned in
7500: yes:)
7501: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503: ac_tool_warned=yes ;;
7504: esac
7505: OTOOL64=$ac_ct_OTOOL64
7506: fi
1.23 moko 7507: else
7508: OTOOL64="$ac_cv_prog_OTOOL64"
7509: fi
1.10 paf 7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
7530:
7531:
7532:
7533:
7534:
7535:
7536:
1.31 moko 7537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7538: $as_echo_n "checking for -single_module linker flag... " >&6; }
7539: if ${lt_cv_apple_cc_single_mod+:} false; then :
7540: $as_echo_n "(cached) " >&6
1.23 moko 7541: else
7542: lt_cv_apple_cc_single_mod=no
7543: if test -z "${LT_MULTI_MODULE}"; then
7544: # By default we will add the -single_module flag. You can override
7545: # by either setting the environment variable LT_MULTI_MODULE
7546: # non-empty at configure time, or by adding -multi_module to the
7547: # link flags.
7548: rm -rf libconftest.dylib*
7549: echo "int foo(void){return 1;}" > conftest.c
7550: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7551: -dynamiclib -Wl,-single_module conftest.c" >&5
7552: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7553: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7554: _lt_result=$?
7555: # If there is a non-empty error log, and "single_module"
7556: # appears in it, assume the flag caused a linker warning
7557: if test -s conftest.err && $GREP single_module conftest.err; then
7558: cat conftest.err >&5
7559: # Otherwise, if the output was created with a 0 exit code from
7560: # the compiler, it worked.
7561: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7562: lt_cv_apple_cc_single_mod=yes
7563: else
7564: cat conftest.err >&5
7565: fi
7566: rm -rf libconftest.dylib*
7567: rm -f conftest.*
7568: fi
7569: fi
1.31 moko 7570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7571: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.10 paf 7572:
1.31 moko 7573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7574: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7575: if ${lt_cv_ld_exported_symbols_list+:} false; then :
7576: $as_echo_n "(cached) " >&6
1.23 moko 7577: else
7578: lt_cv_ld_exported_symbols_list=no
7579: save_LDFLAGS=$LDFLAGS
7580: echo "_main" > conftest.sym
7581: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.31 moko 7582: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7583: /* end confdefs.h. */
1.10 paf 7584:
1.23 moko 7585: int
7586: main ()
7587: {
1.10 paf 7588:
1.23 moko 7589: ;
7590: return 0;
7591: }
7592: _ACEOF
1.31 moko 7593: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 7594: lt_cv_ld_exported_symbols_list=yes
7595: else
1.31 moko 7596: lt_cv_ld_exported_symbols_list=no
1.23 moko 7597: fi
1.31 moko 7598: rm -f core conftest.err conftest.$ac_objext \
7599: conftest$ac_exeext conftest.$ac_ext
1.23 moko 7600: LDFLAGS="$save_LDFLAGS"
1.10 paf 7601:
1.23 moko 7602: fi
1.31 moko 7603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7604: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.10 paf 7605:
1.31 moko 7606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7607: $as_echo_n "checking for -force_load linker flag... " >&6; }
7608: if ${lt_cv_ld_force_load+:} false; then :
7609: $as_echo_n "(cached) " >&6
1.23 moko 7610: else
7611: lt_cv_ld_force_load=no
7612: cat > conftest.c << _LT_EOF
7613: int forced_loaded() { return 2;}
7614: _LT_EOF
7615: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7616: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7617: echo "$AR cru libconftest.a conftest.o" >&5
7618: $AR cru libconftest.a conftest.o 2>&5
7619: echo "$RANLIB libconftest.a" >&5
7620: $RANLIB libconftest.a 2>&5
7621: cat > conftest.c << _LT_EOF
7622: int main() { return 0;}
7623: _LT_EOF
7624: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7625: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7626: _lt_result=$?
7627: if test -s conftest.err && $GREP force_load conftest.err; then
7628: cat conftest.err >&5
7629: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7630: lt_cv_ld_force_load=yes
7631: else
7632: cat conftest.err >&5
7633: fi
7634: rm -f conftest.err libconftest.a conftest conftest.c
7635: rm -rf conftest.dSYM
1.10 paf 7636:
1.23 moko 7637: fi
1.31 moko 7638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7639: $as_echo "$lt_cv_ld_force_load" >&6; }
1.23 moko 7640: case $host_os in
7641: rhapsody* | darwin1.[012])
7642: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7643: darwin1.*)
7644: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7645: darwin*) # darwin 5.x on
7646: # if running on 10.5 or later, the deployment target defaults
7647: # to the OS version, if on x86, and 10.4, the deployment
7648: # target defaults to 10.4. Don't you love it?
7649: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7650: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7651: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7652: 10.[012]*)
7653: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7654: 10.*)
7655: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7656: esac
1.10 paf 7657: ;;
1.23 moko 7658: esac
7659: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7660: _lt_dar_single_mod='$single_module'
7661: fi
7662: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7663: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7664: else
7665: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.10 paf 7666: fi
1.23 moko 7667: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7668: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.10 paf 7669: else
1.23 moko 7670: _lt_dsymutil=
1.10 paf 7671: fi
7672: ;;
1.23 moko 7673: esac
1.10 paf 7674:
1.23 moko 7675: ac_ext=c
7676: ac_cpp='$CPP $CPPFLAGS'
7677: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7678: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7679: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.31 moko 7680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7681: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.23 moko 7682: # On Suns, sometimes $CPP names a directory.
7683: if test -n "$CPP" && test -d "$CPP"; then
7684: CPP=
7685: fi
7686: if test -z "$CPP"; then
1.31 moko 7687: if ${ac_cv_prog_CPP+:} false; then :
7688: $as_echo_n "(cached) " >&6
1.23 moko 7689: else
7690: # Double quotes because CPP needs to be expanded
7691: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7692: do
7693: ac_preproc_ok=false
7694: for ac_c_preproc_warn_flag in '' yes
7695: do
7696: # Use a header file that comes with gcc, so configuring glibc
7697: # with a fresh cross-compiler works.
7698: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7699: # <limits.h> exists even on freestanding compilers.
7700: # On the NeXT, cc -E runs the code through the compiler's parser,
7701: # not just through cpp. "Syntax error" is here to catch this case.
1.31 moko 7702: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7703: /* end confdefs.h. */
7704: #ifdef __STDC__
7705: # include <limits.h>
7706: #else
7707: # include <assert.h>
7708: #endif
7709: Syntax error
7710: _ACEOF
1.31 moko 7711: if ac_fn_c_try_cpp "$LINENO"; then :
7712:
1.23 moko 7713: else
7714: # Broken: fails on valid input.
7715: continue
7716: fi
1.31 moko 7717: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7718:
1.31 moko 7719: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 7720: # can be detected and how.
1.31 moko 7721: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7722: /* end confdefs.h. */
7723: #include <ac_nonexistent.h>
7724: _ACEOF
1.31 moko 7725: if ac_fn_c_try_cpp "$LINENO"; then :
1.23 moko 7726: # Broken: success on invalid input.
7727: continue
7728: else
7729: # Passes both tests.
7730: ac_preproc_ok=:
7731: break
1.10 paf 7732: fi
1.31 moko 7733: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7734:
1.23 moko 7735: done
7736: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 moko 7737: rm -f conftest.i conftest.err conftest.$ac_ext
7738: if $ac_preproc_ok; then :
1.23 moko 7739: break
7740: fi
1.10 paf 7741:
1.23 moko 7742: done
7743: ac_cv_prog_CPP=$CPP
1.10 paf 7744:
1.23 moko 7745: fi
7746: CPP=$ac_cv_prog_CPP
7747: else
7748: ac_cv_prog_CPP=$CPP
7749: fi
1.31 moko 7750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7751: $as_echo "$CPP" >&6; }
1.23 moko 7752: ac_preproc_ok=false
7753: for ac_c_preproc_warn_flag in '' yes
7754: do
7755: # Use a header file that comes with gcc, so configuring glibc
7756: # with a fresh cross-compiler works.
7757: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7758: # <limits.h> exists even on freestanding compilers.
7759: # On the NeXT, cc -E runs the code through the compiler's parser,
7760: # not just through cpp. "Syntax error" is here to catch this case.
1.31 moko 7761: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7762: /* end confdefs.h. */
7763: #ifdef __STDC__
7764: # include <limits.h>
7765: #else
7766: # include <assert.h>
7767: #endif
7768: Syntax error
7769: _ACEOF
1.31 moko 7770: if ac_fn_c_try_cpp "$LINENO"; then :
7771:
1.23 moko 7772: else
7773: # Broken: fails on valid input.
7774: continue
7775: fi
1.31 moko 7776: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7777:
1.31 moko 7778: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 7779: # can be detected and how.
1.31 moko 7780: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7781: /* end confdefs.h. */
7782: #include <ac_nonexistent.h>
7783: _ACEOF
1.31 moko 7784: if ac_fn_c_try_cpp "$LINENO"; then :
1.23 moko 7785: # Broken: success on invalid input.
7786: continue
7787: else
7788: # Passes both tests.
7789: ac_preproc_ok=:
7790: break
7791: fi
1.31 moko 7792: rm -f conftest.err conftest.i conftest.$ac_ext
1.10 paf 7793:
1.23 moko 7794: done
7795: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 moko 7796: rm -f conftest.i conftest.err conftest.$ac_ext
7797: if $ac_preproc_ok; then :
7798:
1.23 moko 7799: else
1.31 moko 7800: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7801: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7802: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7803: See \`config.log' for more details" "$LINENO" 5; }
1.23 moko 7804: fi
1.10 paf 7805:
1.23 moko 7806: ac_ext=c
7807: ac_cpp='$CPP $CPPFLAGS'
7808: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 7811:
7812:
1.31 moko 7813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7814: $as_echo_n "checking for ANSI C header files... " >&6; }
7815: if ${ac_cv_header_stdc+:} false; then :
7816: $as_echo_n "(cached) " >&6
1.23 moko 7817: else
1.31 moko 7818: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7819: /* end confdefs.h. */
7820: #include <stdlib.h>
7821: #include <stdarg.h>
7822: #include <string.h>
7823: #include <float.h>
1.10 paf 7824:
1.23 moko 7825: int
7826: main ()
7827: {
1.10 paf 7828:
1.23 moko 7829: ;
7830: return 0;
7831: }
7832: _ACEOF
1.31 moko 7833: if ac_fn_c_try_compile "$LINENO"; then :
1.23 moko 7834: ac_cv_header_stdc=yes
7835: else
1.31 moko 7836: ac_cv_header_stdc=no
1.23 moko 7837: fi
1.31 moko 7838: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 7839:
1.23 moko 7840: if test $ac_cv_header_stdc = yes; then
7841: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.31 moko 7842: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7843: /* end confdefs.h. */
7844: #include <string.h>
1.10 paf 7845:
1.23 moko 7846: _ACEOF
7847: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.31 moko 7848: $EGREP "memchr" >/dev/null 2>&1; then :
7849:
1.23 moko 7850: else
7851: ac_cv_header_stdc=no
7852: fi
7853: rm -f conftest*
7854:
7855: fi
1.10 paf 7856:
1.23 moko 7857: if test $ac_cv_header_stdc = yes; then
7858: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.31 moko 7859: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7860: /* end confdefs.h. */
7861: #include <stdlib.h>
1.10 paf 7862:
1.23 moko 7863: _ACEOF
7864: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.31 moko 7865: $EGREP "free" >/dev/null 2>&1; then :
7866:
1.23 moko 7867: else
7868: ac_cv_header_stdc=no
7869: fi
7870: rm -f conftest*
1.10 paf 7871:
1.23 moko 7872: fi
1.10 paf 7873:
1.23 moko 7874: if test $ac_cv_header_stdc = yes; then
7875: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.31 moko 7876: if test "$cross_compiling" = yes; then :
1.23 moko 7877: :
7878: else
1.31 moko 7879: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 7880: /* end confdefs.h. */
7881: #include <ctype.h>
1.31 moko 7882: #include <stdlib.h>
1.23 moko 7883: #if ((' ' & 0x0FF) == 0x020)
7884: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7885: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7886: #else
7887: # define ISLOWER(c) \
7888: (('a' <= (c) && (c) <= 'i') \
7889: || ('j' <= (c) && (c) <= 'r') \
7890: || ('s' <= (c) && (c) <= 'z'))
7891: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7892: #endif
1.10 paf 7893:
1.23 moko 7894: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7895: int
7896: main ()
7897: {
7898: int i;
7899: for (i = 0; i < 256; i++)
7900: if (XOR (islower (i), ISLOWER (i))
7901: || toupper (i) != TOUPPER (i))
1.31 moko 7902: return 2;
7903: return 0;
1.23 moko 7904: }
7905: _ACEOF
1.31 moko 7906: if ac_fn_c_try_run "$LINENO"; then :
7907:
1.23 moko 7908: else
1.31 moko 7909: ac_cv_header_stdc=no
1.23 moko 7910: fi
1.31 moko 7911: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7912: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.23 moko 7913: fi
1.31 moko 7914:
1.23 moko 7915: fi
7916: fi
1.31 moko 7917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7918: $as_echo "$ac_cv_header_stdc" >&6; }
1.23 moko 7919: if test $ac_cv_header_stdc = yes; then
1.10 paf 7920:
1.31 moko 7921: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.10 paf 7922:
1.23 moko 7923: fi
1.10 paf 7924:
1.23 moko 7925: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7926: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7927: inttypes.h stdint.h unistd.h
1.31 moko 7928: do :
7929: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7930: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7931: "
7932: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.23 moko 7933: cat >>confdefs.h <<_ACEOF
1.31 moko 7934: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 moko 7935: _ACEOF
7936:
1.10 paf 7937: fi
1.23 moko 7938:
7939: done
7940:
7941:
7942: for ac_header in dlfcn.h
1.31 moko 7943: do :
7944: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7945: "
7946: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.23 moko 7947: cat >>confdefs.h <<_ACEOF
1.31 moko 7948: #define HAVE_DLFCN_H 1
1.10 paf 7949: _ACEOF
1.16 paf 7950:
1.23 moko 7951: fi
7952:
7953: done
7954:
1.16 paf 7955:
7956:
7957:
1.23 moko 7958: func_stripname_cnf ()
1.10 paf 7959: {
1.23 moko 7960: case ${2} in
7961: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7962: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7963: esac
7964: } # func_stripname_cnf
7965:
7966:
7967:
7968:
7969:
7970: # Set options
1.31 moko 7971: # Check whether --enable-static was given.
7972: if test "${enable_static+set}" = set; then :
7973: enableval=$enable_static; p=${PACKAGE-default}
1.30 moko 7974: case $enableval in
7975: yes) enable_static=yes ;;
7976: no) enable_static=no ;;
7977: *)
7978: enable_static=no
7979: # Look at the argument we got. We use all the common list separators.
7980: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7981: for pkg in $enableval; do
7982: IFS="$lt_save_ifs"
7983: if test "X$pkg" = "X$p"; then
7984: enable_static=yes
7985: fi
7986: done
7987: IFS="$lt_save_ifs"
7988: ;;
7989: esac
7990: else
7991: enable_static=no
1.31 moko 7992: fi
7993:
1.30 moko 7994:
7995:
7996:
7997:
7998:
7999:
1.23 moko 8000: enable_dlopen=yes
8001: enable_win32_dll=yes
1.10 paf 8002:
1.23 moko 8003: case $host in
8004: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8005: if test -n "$ac_tool_prefix"; then
8006: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8007: set dummy ${ac_tool_prefix}as; ac_word=$2
1.31 moko 8008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009: $as_echo_n "checking for $ac_word... " >&6; }
8010: if ${ac_cv_prog_AS+:} false; then :
8011: $as_echo_n "(cached) " >&6
1.23 moko 8012: else
8013: if test -n "$AS"; then
8014: ac_cv_prog_AS="$AS" # Let the user override the test.
8015: else
8016: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017: for as_dir in $PATH
8018: do
8019: IFS=$as_save_IFS
8020: test -z "$as_dir" && as_dir=.
1.31 moko 8021: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8022: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8023: ac_cv_prog_AS="${ac_tool_prefix}as"
1.31 moko 8024: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8025: break 2
8026: fi
8027: done
1.31 moko 8028: done
8029: IFS=$as_save_IFS
1.23 moko 8030:
8031: fi
8032: fi
8033: AS=$ac_cv_prog_AS
8034: if test -n "$AS"; then
1.31 moko 8035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8036: $as_echo "$AS" >&6; }
1.23 moko 8037: else
1.31 moko 8038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039: $as_echo "no" >&6; }
1.23 moko 8040: fi
8041:
1.31 moko 8042:
1.23 moko 8043: fi
8044: if test -z "$ac_cv_prog_AS"; then
8045: ac_ct_AS=$AS
8046: # Extract the first word of "as", so it can be a program name with args.
8047: set dummy as; ac_word=$2
1.31 moko 8048: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049: $as_echo_n "checking for $ac_word... " >&6; }
8050: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8051: $as_echo_n "(cached) " >&6
1.23 moko 8052: else
8053: if test -n "$ac_ct_AS"; then
8054: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
1.10 paf 8055: else
1.23 moko 8056: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057: for as_dir in $PATH
8058: do
8059: IFS=$as_save_IFS
8060: test -z "$as_dir" && as_dir=.
1.31 moko 8061: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8062: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8063: ac_cv_prog_ac_ct_AS="as"
1.31 moko 8064: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8065: break 2
8066: fi
8067: done
1.31 moko 8068: done
8069: IFS=$as_save_IFS
1.10 paf 8070:
1.23 moko 8071: fi
1.10 paf 8072: fi
1.23 moko 8073: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8074: if test -n "$ac_ct_AS"; then
1.31 moko 8075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8076: $as_echo "$ac_ct_AS" >&6; }
1.23 moko 8077: else
1.31 moko 8078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079: $as_echo "no" >&6; }
1.10 paf 8080: fi
1.23 moko 8081:
1.31 moko 8082: if test "x$ac_ct_AS" = x; then
8083: AS="false"
8084: else
8085: case $cross_compiling:$ac_tool_warned in
8086: yes:)
8087: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8088: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8089: ac_tool_warned=yes ;;
8090: esac
8091: AS=$ac_ct_AS
8092: fi
1.10 paf 8093: else
1.23 moko 8094: AS="$ac_cv_prog_AS"
8095: fi
8096:
8097: if test -n "$ac_tool_prefix"; then
8098: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8099: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.31 moko 8100: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101: $as_echo_n "checking for $ac_word... " >&6; }
8102: if ${ac_cv_prog_DLLTOOL+:} false; then :
8103: $as_echo_n "(cached) " >&6
1.10 paf 8104: else
1.23 moko 8105: if test -n "$DLLTOOL"; then
8106: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.10 paf 8107: else
1.23 moko 8108: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109: for as_dir in $PATH
8110: do
8111: IFS=$as_save_IFS
8112: test -z "$as_dir" && as_dir=.
1.31 moko 8113: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8114: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8115: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.31 moko 8116: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8117: break 2
8118: fi
8119: done
1.31 moko 8120: done
8121: IFS=$as_save_IFS
1.10 paf 8122:
8123: fi
8124: fi
1.23 moko 8125: DLLTOOL=$ac_cv_prog_DLLTOOL
8126: if test -n "$DLLTOOL"; then
1.31 moko 8127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8128: $as_echo "$DLLTOOL" >&6; }
1.10 paf 8129: else
1.31 moko 8130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131: $as_echo "no" >&6; }
1.23 moko 8132: fi
8133:
1.31 moko 8134:
1.23 moko 8135: fi
8136: if test -z "$ac_cv_prog_DLLTOOL"; then
8137: ac_ct_DLLTOOL=$DLLTOOL
8138: # Extract the first word of "dlltool", so it can be a program name with args.
8139: set dummy dlltool; ac_word=$2
1.31 moko 8140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141: $as_echo_n "checking for $ac_word... " >&6; }
8142: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8143: $as_echo_n "(cached) " >&6
1.10 paf 8144: else
1.23 moko 8145: if test -n "$ac_ct_DLLTOOL"; then
8146: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
1.10 paf 8147: else
1.23 moko 8148: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149: for as_dir in $PATH
8150: do
8151: IFS=$as_save_IFS
8152: test -z "$as_dir" && as_dir=.
1.31 moko 8153: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8154: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8155: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.31 moko 8156: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8157: break 2
8158: fi
8159: done
1.31 moko 8160: done
8161: IFS=$as_save_IFS
1.10 paf 8162:
1.23 moko 8163: fi
1.10 paf 8164: fi
1.23 moko 8165: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8166: if test -n "$ac_ct_DLLTOOL"; then
1.31 moko 8167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8168: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.23 moko 8169: else
1.31 moko 8170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171: $as_echo "no" >&6; }
1.10 paf 8172: fi
1.23 moko 8173:
1.31 moko 8174: if test "x$ac_ct_DLLTOOL" = x; then
8175: DLLTOOL="false"
8176: else
8177: case $cross_compiling:$ac_tool_warned in
8178: yes:)
8179: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8180: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8181: ac_tool_warned=yes ;;
8182: esac
8183: DLLTOOL=$ac_ct_DLLTOOL
8184: fi
1.10 paf 8185: else
1.23 moko 8186: DLLTOOL="$ac_cv_prog_DLLTOOL"
8187: fi
8188:
8189: if test -n "$ac_tool_prefix"; then
8190: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8191: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.31 moko 8192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193: $as_echo_n "checking for $ac_word... " >&6; }
8194: if ${ac_cv_prog_OBJDUMP+:} false; then :
8195: $as_echo_n "(cached) " >&6
1.10 paf 8196: else
1.23 moko 8197: if test -n "$OBJDUMP"; then
8198: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8199: else
8200: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201: for as_dir in $PATH
8202: do
8203: IFS=$as_save_IFS
8204: test -z "$as_dir" && as_dir=.
1.31 moko 8205: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8206: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8207: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.31 moko 8208: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8209: break 2
8210: fi
8211: done
1.31 moko 8212: done
8213: IFS=$as_save_IFS
1.23 moko 8214:
8215: fi
8216: fi
8217: OBJDUMP=$ac_cv_prog_OBJDUMP
8218: if test -n "$OBJDUMP"; then
1.31 moko 8219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8220: $as_echo "$OBJDUMP" >&6; }
1.23 moko 8221: else
1.31 moko 8222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223: $as_echo "no" >&6; }
1.23 moko 8224: fi
1.10 paf 8225:
1.31 moko 8226:
1.23 moko 8227: fi
8228: if test -z "$ac_cv_prog_OBJDUMP"; then
8229: ac_ct_OBJDUMP=$OBJDUMP
8230: # Extract the first word of "objdump", so it can be a program name with args.
8231: set dummy objdump; ac_word=$2
1.31 moko 8232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233: $as_echo_n "checking for $ac_word... " >&6; }
8234: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8235: $as_echo_n "(cached) " >&6
1.23 moko 8236: else
8237: if test -n "$ac_ct_OBJDUMP"; then
8238: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
1.10 paf 8239: else
1.23 moko 8240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241: for as_dir in $PATH
8242: do
8243: IFS=$as_save_IFS
8244: test -z "$as_dir" && as_dir=.
1.31 moko 8245: for ac_exec_ext in '' $ac_executable_extensions; do
1.34 moko 8246: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 moko 8247: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.31 moko 8248: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.23 moko 8249: break 2
8250: fi
8251: done
1.31 moko 8252: done
8253: IFS=$as_save_IFS
1.10 paf 8254:
1.23 moko 8255: fi
1.10 paf 8256: fi
1.23 moko 8257: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8258: if test -n "$ac_ct_OBJDUMP"; then
1.31 moko 8259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8260: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.23 moko 8261: else
1.31 moko 8262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263: $as_echo "no" >&6; }
1.10 paf 8264: fi
1.23 moko 8265:
1.31 moko 8266: if test "x$ac_ct_OBJDUMP" = x; then
8267: OBJDUMP="false"
8268: else
8269: case $cross_compiling:$ac_tool_warned in
8270: yes:)
8271: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8272: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8273: ac_tool_warned=yes ;;
8274: esac
8275: OBJDUMP=$ac_ct_OBJDUMP
8276: fi
1.23 moko 8277: else
8278: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.10 paf 8279: fi
8280:
1.23 moko 8281: ;;
8282: esac
8283:
8284: test -z "$AS" && AS=as
8285:
8286:
8287:
8288:
1.10 paf 8289:
1.23 moko 8290: test -z "$DLLTOOL" && DLLTOOL=dlltool
1.10 paf 8291:
8292:
8293:
8294:
8295:
1.23 moko 8296: test -z "$OBJDUMP" && OBJDUMP=objdump
1.10 paf 8297:
8298:
8299:
8300:
8301:
8302:
8303:
8304:
8305:
1.31 moko 8306: # Check whether --enable-shared was given.
8307: if test "${enable_shared+set}" = set; then :
8308: enableval=$enable_shared; p=${PACKAGE-default}
1.23 moko 8309: case $enableval in
8310: yes) enable_shared=yes ;;
8311: no) enable_shared=no ;;
8312: *)
8313: enable_shared=no
8314: # Look at the argument we got. We use all the common list separators.
8315: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8316: for pkg in $enableval; do
8317: IFS="$lt_save_ifs"
8318: if test "X$pkg" = "X$p"; then
8319: enable_shared=yes
8320: fi
8321: done
8322: IFS="$lt_save_ifs"
8323: ;;
8324: esac
1.10 paf 8325: else
1.23 moko 8326: enable_shared=yes
1.31 moko 8327: fi
1.10 paf 8328:
8329:
8330:
8331:
8332:
8333:
8334:
8335:
8336:
8337:
1.31 moko 8338:
8339: # Check whether --with-pic was given.
8340: if test "${with_pic+set}" = set; then :
8341: withval=$with_pic; lt_p=${PACKAGE-default}
1.23 moko 8342: case $withval in
8343: yes|no) pic_mode=$withval ;;
8344: *)
8345: pic_mode=default
8346: # Look at the argument we got. We use all the common list separators.
8347: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8348: for lt_pkg in $withval; do
8349: IFS="$lt_save_ifs"
8350: if test "X$lt_pkg" = "X$lt_p"; then
8351: pic_mode=yes
8352: fi
8353: done
8354: IFS="$lt_save_ifs"
8355: ;;
1.10 paf 8356: esac
1.23 moko 8357: else
8358: pic_mode=default
1.31 moko 8359: fi
8360:
1.10 paf 8361:
1.23 moko 8362: test -z "$pic_mode" && pic_mode=default
1.10 paf 8363:
8364:
8365:
8366:
8367:
8368:
8369:
1.31 moko 8370: # Check whether --enable-fast-install was given.
8371: if test "${enable_fast_install+set}" = set; then :
8372: enableval=$enable_fast_install; p=${PACKAGE-default}
1.23 moko 8373: case $enableval in
8374: yes) enable_fast_install=yes ;;
8375: no) enable_fast_install=no ;;
1.10 paf 8376: *)
1.23 moko 8377: enable_fast_install=no
8378: # Look at the argument we got. We use all the common list separators.
8379: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8380: for pkg in $enableval; do
8381: IFS="$lt_save_ifs"
8382: if test "X$pkg" = "X$p"; then
8383: enable_fast_install=yes
8384: fi
8385: done
8386: IFS="$lt_save_ifs"
1.10 paf 8387: ;;
8388: esac
1.23 moko 8389: else
8390: enable_fast_install=yes
1.31 moko 8391: fi
8392:
1.10 paf 8393:
8394:
8395:
8396:
8397:
8398:
8399:
8400:
8401:
8402:
1.23 moko 8403: # This can be used to rebuild libtool when needed
8404: LIBTOOL_DEPS="$ltmain"
1.10 paf 8405:
1.23 moko 8406: # Always use our own libtool.
8407: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.10 paf 8408:
8409:
8410:
8411:
8412:
8413:
8414:
8415:
8416:
8417:
8418:
8419:
8420:
8421:
8422:
8423:
8424:
8425:
8426:
8427:
8428:
8429:
8430:
8431:
8432:
8433:
8434:
8435:
8436:
8437:
1.23 moko 8438: test -z "$LN_S" && LN_S="ln -s"
1.10 paf 8439:
8440:
8441:
8442:
8443:
8444:
8445:
8446:
8447:
8448:
8449:
8450:
8451:
8452:
1.23 moko 8453: if test -n "${ZSH_VERSION+set}" ; then
8454: setopt NO_GLOB_SUBST
8455: fi
1.10 paf 8456:
1.31 moko 8457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8458: $as_echo_n "checking for objdir... " >&6; }
8459: if ${lt_cv_objdir+:} false; then :
8460: $as_echo_n "(cached) " >&6
1.23 moko 8461: else
8462: rm -f .libs 2>/dev/null
8463: mkdir .libs 2>/dev/null
8464: if test -d .libs; then
8465: lt_cv_objdir=.libs
8466: else
8467: # MS-DOS does not allow filenames that begin with a dot.
8468: lt_cv_objdir=_libs
8469: fi
8470: rmdir .libs 2>/dev/null
8471: fi
1.31 moko 8472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8473: $as_echo "$lt_cv_objdir" >&6; }
1.23 moko 8474: objdir=$lt_cv_objdir
1.10 paf 8475:
8476:
8477:
8478:
8479:
1.23 moko 8480: cat >>confdefs.h <<_ACEOF
8481: #define LT_OBJDIR "$lt_cv_objdir/"
8482: _ACEOF
1.10 paf 8483:
8484:
8485:
8486:
1.23 moko 8487: case $host_os in
8488: aix3*)
8489: # AIX sometimes has problems with the GCC collect2 program. For some
8490: # reason, if we set the COLLECT_NAMES environment variable, the problems
8491: # vanish in a puff of smoke.
8492: if test "X${COLLECT_NAMES+set}" != Xset; then
8493: COLLECT_NAMES=
8494: export COLLECT_NAMES
8495: fi
8496: ;;
8497: esac
1.10 paf 8498:
1.23 moko 8499: # Global variables:
8500: ofile=libtool
8501: can_build_shared=yes
1.10 paf 8502:
1.23 moko 8503: # All known linkers require a `.a' archive for static linking (except MSVC,
8504: # which needs '.lib').
8505: libext=a
1.10 paf 8506:
1.23 moko 8507: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.10 paf 8508:
1.23 moko 8509: old_CC="$CC"
8510: old_CFLAGS="$CFLAGS"
1.10 paf 8511:
1.23 moko 8512: # Set sane defaults for various variables
8513: test -z "$CC" && CC=cc
8514: test -z "$LTCC" && LTCC=$CC
8515: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8516: test -z "$LD" && LD=ld
8517: test -z "$ac_objext" && ac_objext=o
1.10 paf 8518:
1.23 moko 8519: for cc_temp in $compiler""; do
8520: case $cc_temp in
8521: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8522: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8523: \-*) ;;
8524: *) break;;
8525: esac
8526: done
8527: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.10 paf 8528:
8529:
1.23 moko 8530: # Only perform the check for file, if the check method requires it
8531: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8532: case $deplibs_check_method in
8533: file_magic*)
8534: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.31 moko 8535: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8536: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8537: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8538: $as_echo_n "(cached) " >&6
1.23 moko 8539: else
8540: case $MAGIC_CMD in
8541: [\\/*] | ?:[\\/]*)
8542: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8543: ;;
8544: *)
8545: lt_save_MAGIC_CMD="$MAGIC_CMD"
8546: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8547: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8548: for ac_dir in $ac_dummy; do
8549: IFS="$lt_save_ifs"
8550: test -z "$ac_dir" && ac_dir=.
8551: if test -f $ac_dir/${ac_tool_prefix}file; then
8552: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8553: if test -n "$file_magic_test_file"; then
8554: case $deplibs_check_method in
8555: "file_magic "*)
8556: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8557: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8558: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8559: $EGREP "$file_magic_regex" > /dev/null; then
8560: :
8561: else
8562: cat <<_LT_EOF 1>&2
1.10 paf 8563:
1.23 moko 8564: *** Warning: the command libtool uses to detect shared libraries,
8565: *** $file_magic_cmd, produces output that libtool cannot recognize.
8566: *** The result is that libtool may fail to recognize shared libraries
8567: *** as such. This will affect the creation of libtool libraries that
8568: *** depend on shared libraries, but programs linked with such libtool
8569: *** libraries will work regardless of this problem. Nevertheless, you
8570: *** may want to report the problem to your system manager and/or to
8571: *** bug-libtool@gnu.org
1.10 paf 8572:
1.23 moko 8573: _LT_EOF
8574: fi ;;
8575: esac
8576: fi
8577: break
8578: fi
8579: done
8580: IFS="$lt_save_ifs"
8581: MAGIC_CMD="$lt_save_MAGIC_CMD"
8582: ;;
8583: esac
8584: fi
1.10 paf 8585:
1.23 moko 8586: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8587: if test -n "$MAGIC_CMD"; then
1.31 moko 8588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8589: $as_echo "$MAGIC_CMD" >&6; }
1.23 moko 8590: else
1.31 moko 8591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592: $as_echo "no" >&6; }
1.23 moko 8593: fi
1.10 paf 8594:
8595:
8596:
8597:
8598:
1.23 moko 8599: if test -z "$lt_cv_path_MAGIC_CMD"; then
8600: if test -n "$ac_tool_prefix"; then
1.31 moko 8601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8602: $as_echo_n "checking for file... " >&6; }
8603: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8604: $as_echo_n "(cached) " >&6
1.23 moko 8605: else
8606: case $MAGIC_CMD in
8607: [\\/*] | ?:[\\/]*)
8608: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8609: ;;
8610: *)
8611: lt_save_MAGIC_CMD="$MAGIC_CMD"
8612: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8613: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8614: for ac_dir in $ac_dummy; do
8615: IFS="$lt_save_ifs"
8616: test -z "$ac_dir" && ac_dir=.
8617: if test -f $ac_dir/file; then
8618: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8619: if test -n "$file_magic_test_file"; then
8620: case $deplibs_check_method in
8621: "file_magic "*)
8622: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8623: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8624: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8625: $EGREP "$file_magic_regex" > /dev/null; then
8626: :
8627: else
8628: cat <<_LT_EOF 1>&2
1.10 paf 8629:
1.23 moko 8630: *** Warning: the command libtool uses to detect shared libraries,
8631: *** $file_magic_cmd, produces output that libtool cannot recognize.
8632: *** The result is that libtool may fail to recognize shared libraries
8633: *** as such. This will affect the creation of libtool libraries that
8634: *** depend on shared libraries, but programs linked with such libtool
8635: *** libraries will work regardless of this problem. Nevertheless, you
8636: *** may want to report the problem to your system manager and/or to
8637: *** bug-libtool@gnu.org
1.10 paf 8638:
1.23 moko 8639: _LT_EOF
8640: fi ;;
8641: esac
8642: fi
8643: break
8644: fi
8645: done
8646: IFS="$lt_save_ifs"
8647: MAGIC_CMD="$lt_save_MAGIC_CMD"
8648: ;;
8649: esac
8650: fi
1.10 paf 8651:
1.23 moko 8652: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8653: if test -n "$MAGIC_CMD"; then
1.31 moko 8654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8655: $as_echo "$MAGIC_CMD" >&6; }
1.23 moko 8656: else
1.31 moko 8657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658: $as_echo "no" >&6; }
1.10 paf 8659: fi
8660:
8661:
1.23 moko 8662: else
8663: MAGIC_CMD=:
8664: fi
1.10 paf 8665: fi
8666:
1.23 moko 8667: fi
8668: ;;
8669: esac
1.10 paf 8670:
1.23 moko 8671: # Use C for the default configuration in the libtool script
1.10 paf 8672:
1.23 moko 8673: lt_save_CC="$CC"
8674: ac_ext=c
8675: ac_cpp='$CPP $CPPFLAGS'
8676: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8677: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8678: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 8679:
8680:
1.23 moko 8681: # Source file extension for C test sources.
8682: ac_ext=c
1.10 paf 8683:
1.23 moko 8684: # Object file extension for compiled C test sources.
8685: objext=o
8686: objext=$objext
1.10 paf 8687:
1.23 moko 8688: # Code to be used in simple compile tests
8689: lt_simple_compile_test_code="int some_variable = 0;"
1.10 paf 8690:
1.23 moko 8691: # Code to be used in simple link tests
8692: lt_simple_link_test_code='int main(){return(0);}'
1.10 paf 8693:
8694:
8695:
8696:
8697:
8698:
8699:
1.23 moko 8700: # If no C compiler was specified, use CC.
8701: LTCC=${LTCC-"$CC"}
1.10 paf 8702:
1.23 moko 8703: # If no C compiler flags were specified, use CFLAGS.
8704: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.10 paf 8705:
1.23 moko 8706: # Allow CC to be a program name with arguments.
8707: compiler=$CC
1.10 paf 8708:
1.23 moko 8709: # Save the default compiler, since it gets overwritten when the other
8710: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8711: compiler_DEFAULT=$CC
8712:
8713: # save warnings/boilerplate of simple test code
8714: ac_outfile=conftest.$ac_objext
8715: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8716: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8717: _lt_compiler_boilerplate=`cat conftest.err`
8718: $RM conftest*
8719:
8720: ac_outfile=conftest.$ac_objext
8721: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8722: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8723: _lt_linker_boilerplate=`cat conftest.err`
8724: $RM -r conftest*
8725:
8726:
8727: ## CAVEAT EMPTOR:
8728: ## There is no encapsulation within the following macros, do not change
8729: ## the running order or otherwise move them around unless you know exactly
8730: ## what you are doing...
8731: if test -n "$compiler"; then
1.10 paf 8732:
1.23 moko 8733: lt_prog_compiler_no_builtin_flag=
1.13 paf 8734:
1.23 moko 8735: if test "$GCC" = yes; then
8736: case $cc_basename in
8737: nvcc*)
8738: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8739: *)
8740: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8741: esac
1.10 paf 8742:
1.31 moko 8743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8744: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8745: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8746: $as_echo_n "(cached) " >&6
1.10 paf 8747: else
1.23 moko 8748: lt_cv_prog_compiler_rtti_exceptions=no
8749: ac_outfile=conftest.$ac_objext
8750: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8751: lt_compiler_flag="-fno-rtti -fno-exceptions"
8752: # Insert the option either (1) after the last *FLAGS variable, or
8753: # (2) before a word containing "conftest.", or (3) at the end.
8754: # Note that $ac_compile itself does not contain backslashes and begins
8755: # with a dollar sign (not a hyphen), so the echo should work correctly.
8756: # The option is referenced via a variable to avoid confusing sed.
8757: lt_compile=`echo "$ac_compile" | $SED \
8758: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8759: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8760: -e 's:$: $lt_compiler_flag:'`
8761: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8762: (eval "$lt_compile" 2>conftest.err)
8763: ac_status=$?
8764: cat conftest.err >&5
8765: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766: if (exit $ac_status) && test -s "$ac_outfile"; then
8767: # The compiler can only warn and ignore the option if not recognized
8768: # So say no if there are warnings other than the usual output.
8769: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8770: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8771: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8772: lt_cv_prog_compiler_rtti_exceptions=yes
8773: fi
8774: fi
8775: $RM conftest*
1.10 paf 8776:
8777: fi
1.31 moko 8778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8779: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.10 paf 8780:
1.23 moko 8781: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8782: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.10 paf 8783: else
1.23 moko 8784: :
1.10 paf 8785: fi
8786:
8787: fi
8788:
1.23 moko 8789:
8790:
8791:
8792:
8793:
8794: lt_prog_compiler_wl=
8795: lt_prog_compiler_pic=
8796: lt_prog_compiler_static=
8797:
8798:
8799: if test "$GCC" = yes; then
8800: lt_prog_compiler_wl='-Wl,'
8801: lt_prog_compiler_static='-static'
8802:
8803: case $host_os in
8804: aix*)
8805: # All AIX code is PIC.
8806: if test "$host_cpu" = ia64; then
8807: # AIX 5 now supports IA64 processor
8808: lt_prog_compiler_static='-Bstatic'
8809: fi
8810: ;;
8811:
8812: amigaos*)
8813: case $host_cpu in
8814: powerpc)
8815: # see comment about AmigaOS4 .so support
8816: lt_prog_compiler_pic='-fPIC'
8817: ;;
8818: m68k)
8819: # FIXME: we need at least 68020 code to build shared libraries, but
8820: # adding the `-m68020' flag to GCC prevents building anything better,
8821: # like `-m68040'.
8822: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8823: ;;
8824: esac
8825: ;;
8826:
8827: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8828: # PIC is the default for these OSes.
8829: ;;
8830:
8831: mingw* | cygwin* | pw32* | os2* | cegcc*)
8832: # This hack is so that the source file can tell whether it is being
8833: # built for inclusion in a dll (and should export symbols for example).
8834: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8835: # (--disable-auto-import) libraries
8836: lt_prog_compiler_pic='-DDLL_EXPORT'
8837: ;;
8838:
8839: darwin* | rhapsody*)
8840: # PIC is the default on this platform
8841: # Common symbols not allowed in MH_DYLIB files
8842: lt_prog_compiler_pic='-fno-common'
8843: ;;
8844:
8845: haiku*)
8846: # PIC is the default for Haiku.
8847: # The "-static" flag exists, but is broken.
8848: lt_prog_compiler_static=
8849: ;;
8850:
8851: hpux*)
8852: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8853: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8854: # sets the default TLS model and affects inlining.
8855: case $host_cpu in
8856: hppa*64*)
8857: # +Z the default
8858: ;;
8859: *)
8860: lt_prog_compiler_pic='-fPIC'
8861: ;;
8862: esac
8863: ;;
8864:
8865: interix[3-9]*)
8866: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8867: # Instead, we relocate shared libraries at runtime.
8868: ;;
8869:
8870: msdosdjgpp*)
8871: # Just because we use GCC doesn't mean we suddenly get shared libraries
8872: # on systems that don't support them.
8873: lt_prog_compiler_can_build_shared=no
8874: enable_shared=no
8875: ;;
8876:
8877: *nto* | *qnx*)
8878: # QNX uses GNU C++, but need to define -shared option too, otherwise
8879: # it will coredump.
8880: lt_prog_compiler_pic='-fPIC -shared'
8881: ;;
8882:
8883: sysv4*MP*)
8884: if test -d /usr/nec; then
8885: lt_prog_compiler_pic=-Kconform_pic
8886: fi
8887: ;;
8888:
8889: *)
8890: lt_prog_compiler_pic='-fPIC'
8891: ;;
8892: esac
8893:
8894: case $cc_basename in
8895: nvcc*) # Cuda Compiler Driver 2.2
8896: lt_prog_compiler_wl='-Xlinker '
8897: if test -n "$lt_prog_compiler_pic"; then
8898: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8899: fi
8900: ;;
8901: esac
8902: else
8903: # PORTME Check for flag to pass linker flags through the system compiler.
8904: case $host_os in
8905: aix*)
8906: lt_prog_compiler_wl='-Wl,'
8907: if test "$host_cpu" = ia64; then
8908: # AIX 5 now supports IA64 processor
8909: lt_prog_compiler_static='-Bstatic'
8910: else
8911: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8912: fi
8913: ;;
8914:
8915: mingw* | cygwin* | pw32* | os2* | cegcc*)
8916: # This hack is so that the source file can tell whether it is being
8917: # built for inclusion in a dll (and should export symbols for example).
8918: lt_prog_compiler_pic='-DDLL_EXPORT'
8919: ;;
8920:
8921: hpux9* | hpux10* | hpux11*)
8922: lt_prog_compiler_wl='-Wl,'
8923: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8924: # not for PA HP-UX.
8925: case $host_cpu in
8926: hppa*64*|ia64*)
8927: # +Z the default
8928: ;;
8929: *)
8930: lt_prog_compiler_pic='+Z'
8931: ;;
8932: esac
8933: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8934: lt_prog_compiler_static='${wl}-a ${wl}archive'
8935: ;;
8936:
8937: irix5* | irix6* | nonstopux*)
8938: lt_prog_compiler_wl='-Wl,'
8939: # PIC (with -KPIC) is the default.
8940: lt_prog_compiler_static='-non_shared'
8941: ;;
8942:
8943: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8944: case $cc_basename in
8945: # old Intel for x86_64 which still supported -KPIC.
8946: ecc*)
8947: lt_prog_compiler_wl='-Wl,'
8948: lt_prog_compiler_pic='-KPIC'
8949: lt_prog_compiler_static='-static'
8950: ;;
8951: # icc used to be incompatible with GCC.
8952: # ICC 10 doesn't accept -KPIC any more.
8953: icc* | ifort*)
8954: lt_prog_compiler_wl='-Wl,'
8955: lt_prog_compiler_pic='-fPIC'
8956: lt_prog_compiler_static='-static'
8957: ;;
8958: # Lahey Fortran 8.1.
8959: lf95*)
8960: lt_prog_compiler_wl='-Wl,'
8961: lt_prog_compiler_pic='--shared'
8962: lt_prog_compiler_static='--static'
8963: ;;
8964: nagfor*)
8965: # NAG Fortran compiler
8966: lt_prog_compiler_wl='-Wl,-Wl,,'
8967: lt_prog_compiler_pic='-PIC'
8968: lt_prog_compiler_static='-Bstatic'
8969: ;;
8970: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8971: # Portland Group compilers (*not* the Pentium gcc compiler,
8972: # which looks to be a dead project)
8973: lt_prog_compiler_wl='-Wl,'
8974: lt_prog_compiler_pic='-fpic'
8975: lt_prog_compiler_static='-Bstatic'
8976: ;;
8977: ccc*)
8978: lt_prog_compiler_wl='-Wl,'
8979: # All Alpha code is PIC.
8980: lt_prog_compiler_static='-non_shared'
8981: ;;
8982: xl* | bgxl* | bgf* | mpixl*)
8983: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8984: lt_prog_compiler_wl='-Wl,'
8985: lt_prog_compiler_pic='-qpic'
8986: lt_prog_compiler_static='-qstaticlink'
8987: ;;
8988: *)
8989: case `$CC -V 2>&1 | sed 5q` in
8990: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8991: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8992: lt_prog_compiler_pic='-KPIC'
8993: lt_prog_compiler_static='-Bstatic'
8994: lt_prog_compiler_wl=''
8995: ;;
8996: *Sun\ F* | *Sun*Fortran*)
8997: lt_prog_compiler_pic='-KPIC'
8998: lt_prog_compiler_static='-Bstatic'
8999: lt_prog_compiler_wl='-Qoption ld '
9000: ;;
9001: *Sun\ C*)
9002: # Sun C 5.9
9003: lt_prog_compiler_pic='-KPIC'
9004: lt_prog_compiler_static='-Bstatic'
9005: lt_prog_compiler_wl='-Wl,'
9006: ;;
9007: *Intel*\ [CF]*Compiler*)
9008: lt_prog_compiler_wl='-Wl,'
9009: lt_prog_compiler_pic='-fPIC'
9010: lt_prog_compiler_static='-static'
9011: ;;
9012: *Portland\ Group*)
9013: lt_prog_compiler_wl='-Wl,'
9014: lt_prog_compiler_pic='-fpic'
9015: lt_prog_compiler_static='-Bstatic'
9016: ;;
9017: esac
9018: ;;
9019: esac
9020: ;;
9021:
9022: newsos6)
9023: lt_prog_compiler_pic='-KPIC'
9024: lt_prog_compiler_static='-Bstatic'
9025: ;;
9026:
9027: *nto* | *qnx*)
9028: # QNX uses GNU C++, but need to define -shared option too, otherwise
9029: # it will coredump.
9030: lt_prog_compiler_pic='-fPIC -shared'
9031: ;;
9032:
9033: osf3* | osf4* | osf5*)
9034: lt_prog_compiler_wl='-Wl,'
9035: # All OSF/1 code is PIC.
9036: lt_prog_compiler_static='-non_shared'
9037: ;;
9038:
9039: rdos*)
9040: lt_prog_compiler_static='-non_shared'
9041: ;;
9042:
9043: solaris*)
9044: lt_prog_compiler_pic='-KPIC'
9045: lt_prog_compiler_static='-Bstatic'
9046: case $cc_basename in
9047: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9048: lt_prog_compiler_wl='-Qoption ld ';;
9049: *)
9050: lt_prog_compiler_wl='-Wl,';;
9051: esac
9052: ;;
9053:
9054: sunos4*)
9055: lt_prog_compiler_wl='-Qoption ld '
9056: lt_prog_compiler_pic='-PIC'
9057: lt_prog_compiler_static='-Bstatic'
9058: ;;
9059:
9060: sysv4 | sysv4.2uw2* | sysv4.3*)
9061: lt_prog_compiler_wl='-Wl,'
9062: lt_prog_compiler_pic='-KPIC'
9063: lt_prog_compiler_static='-Bstatic'
9064: ;;
9065:
9066: sysv4*MP*)
9067: if test -d /usr/nec ;then
9068: lt_prog_compiler_pic='-Kconform_pic'
9069: lt_prog_compiler_static='-Bstatic'
9070: fi
9071: ;;
9072:
9073: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9074: lt_prog_compiler_wl='-Wl,'
9075: lt_prog_compiler_pic='-KPIC'
9076: lt_prog_compiler_static='-Bstatic'
9077: ;;
9078:
9079: unicos*)
9080: lt_prog_compiler_wl='-Wl,'
9081: lt_prog_compiler_can_build_shared=no
9082: ;;
9083:
9084: uts4*)
9085: lt_prog_compiler_pic='-pic'
9086: lt_prog_compiler_static='-Bstatic'
9087: ;;
9088:
9089: *)
9090: lt_prog_compiler_can_build_shared=no
9091: ;;
9092: esac
9093: fi
9094:
9095: case $host_os in
9096: # For platforms which do not support PIC, -DPIC is meaningless:
9097: *djgpp*)
9098: lt_prog_compiler_pic=
1.10 paf 9099: ;;
1.23 moko 9100: *)
9101: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.10 paf 9102: ;;
9103: esac
1.23 moko 9104:
1.31 moko 9105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9106: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9107: if ${lt_cv_prog_compiler_pic+:} false; then :
9108: $as_echo_n "(cached) " >&6
1.23 moko 9109: else
9110: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9111: fi
1.31 moko 9112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9113: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.23 moko 9114: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9115:
9116: #
9117: # Check to make sure the PIC flag actually works.
9118: #
9119: if test -n "$lt_prog_compiler_pic"; then
1.31 moko 9120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9121: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9122: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9123: $as_echo_n "(cached) " >&6
1.10 paf 9124: else
1.23 moko 9125: lt_cv_prog_compiler_pic_works=no
9126: ac_outfile=conftest.$ac_objext
9127: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9128: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9129: # Insert the option either (1) after the last *FLAGS variable, or
9130: # (2) before a word containing "conftest.", or (3) at the end.
9131: # Note that $ac_compile itself does not contain backslashes and begins
9132: # with a dollar sign (not a hyphen), so the echo should work correctly.
9133: # The option is referenced via a variable to avoid confusing sed.
9134: lt_compile=`echo "$ac_compile" | $SED \
9135: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9136: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9137: -e 's:$: $lt_compiler_flag:'`
9138: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9139: (eval "$lt_compile" 2>conftest.err)
9140: ac_status=$?
9141: cat conftest.err >&5
9142: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143: if (exit $ac_status) && test -s "$ac_outfile"; then
9144: # The compiler can only warn and ignore the option if not recognized
9145: # So say no if there are warnings other than the usual output.
9146: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9147: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9148: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9149: lt_cv_prog_compiler_pic_works=yes
9150: fi
9151: fi
9152: $RM conftest*
9153:
1.1 parser 9154: fi
1.31 moko 9155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9156: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.10 paf 9157:
1.23 moko 9158: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9159: case $lt_prog_compiler_pic in
9160: "" | " "*) ;;
9161: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9162: esac
9163: else
9164: lt_prog_compiler_pic=
9165: lt_prog_compiler_can_build_shared=no
1.1 parser 9166: fi
9167:
9168: fi
9169:
1.10 paf 9170:
1.1 parser 9171:
9172:
1.10 paf 9173:
1.1 parser 9174:
9175:
9176:
9177:
9178:
9179:
1.23 moko 9180: #
9181: # Check to make sure the static flag actually works.
9182: #
9183: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.31 moko 9184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9185: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9186: if ${lt_cv_prog_compiler_static_works+:} false; then :
9187: $as_echo_n "(cached) " >&6
1.23 moko 9188: else
9189: lt_cv_prog_compiler_static_works=no
9190: save_LDFLAGS="$LDFLAGS"
9191: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9192: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9193: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9194: # The linker can only warn and ignore the option if not recognized
9195: # So say no if there are warnings
9196: if test -s conftest.err; then
9197: # Append any errors to the config.log.
9198: cat conftest.err 1>&5
9199: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9200: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201: if diff conftest.exp conftest.er2 >/dev/null; then
9202: lt_cv_prog_compiler_static_works=yes
9203: fi
9204: else
9205: lt_cv_prog_compiler_static_works=yes
9206: fi
9207: fi
9208: $RM -r conftest*
9209: LDFLAGS="$save_LDFLAGS"
1.10 paf 9210:
1.23 moko 9211: fi
1.31 moko 9212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9213: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.10 paf 9214:
1.23 moko 9215: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9216: :
9217: else
9218: lt_prog_compiler_static=
1.1 parser 9219: fi
9220:
9221:
9222:
1.10 paf 9223:
9224:
9225:
1.1 parser 9226:
1.31 moko 9227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9228: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9229: if ${lt_cv_prog_compiler_c_o+:} false; then :
9230: $as_echo_n "(cached) " >&6
1.23 moko 9231: else
9232: lt_cv_prog_compiler_c_o=no
9233: $RM -r conftest 2>/dev/null
9234: mkdir conftest
9235: cd conftest
9236: mkdir out
9237: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9238:
9239: lt_compiler_flag="-o out/conftest2.$ac_objext"
9240: # Insert the option either (1) after the last *FLAGS variable, or
9241: # (2) before a word containing "conftest.", or (3) at the end.
9242: # Note that $ac_compile itself does not contain backslashes and begins
9243: # with a dollar sign (not a hyphen), so the echo should work correctly.
9244: lt_compile=`echo "$ac_compile" | $SED \
9245: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9246: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9247: -e 's:$: $lt_compiler_flag:'`
9248: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9249: (eval "$lt_compile" 2>out/conftest.err)
9250: ac_status=$?
9251: cat out/conftest.err >&5
9252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9254: then
9255: # The compiler can only warn and ignore the option if not recognized
9256: # So say no if there are warnings
9257: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9258: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9259: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9260: lt_cv_prog_compiler_c_o=yes
9261: fi
9262: fi
9263: chmod u+w . 2>&5
9264: $RM conftest*
9265: # SGI C++ compiler will create directory out/ii_files/ for
9266: # template instantiation
9267: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9268: $RM out/* && rmdir out
9269: cd ..
9270: $RM -r conftest
9271: $RM conftest*
9272:
1.10 paf 9273: fi
1.31 moko 9274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9275: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.23 moko 9276:
1.1 parser 9277:
1.10 paf 9278:
9279:
9280:
9281:
1.31 moko 9282: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9283: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9284: if ${lt_cv_prog_compiler_c_o+:} false; then :
9285: $as_echo_n "(cached) " >&6
1.10 paf 9286: else
1.23 moko 9287: lt_cv_prog_compiler_c_o=no
9288: $RM -r conftest 2>/dev/null
9289: mkdir conftest
9290: cd conftest
9291: mkdir out
9292: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9293:
9294: lt_compiler_flag="-o out/conftest2.$ac_objext"
9295: # Insert the option either (1) after the last *FLAGS variable, or
9296: # (2) before a word containing "conftest.", or (3) at the end.
9297: # Note that $ac_compile itself does not contain backslashes and begins
9298: # with a dollar sign (not a hyphen), so the echo should work correctly.
9299: lt_compile=`echo "$ac_compile" | $SED \
9300: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9301: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9302: -e 's:$: $lt_compiler_flag:'`
9303: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9304: (eval "$lt_compile" 2>out/conftest.err)
9305: ac_status=$?
9306: cat out/conftest.err >&5
9307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9309: then
9310: # The compiler can only warn and ignore the option if not recognized
9311: # So say no if there are warnings
9312: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9313: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9314: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9315: lt_cv_prog_compiler_c_o=yes
9316: fi
9317: fi
9318: chmod u+w . 2>&5
9319: $RM conftest*
9320: # SGI C++ compiler will create directory out/ii_files/ for
9321: # template instantiation
9322: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9323: $RM out/* && rmdir out
9324: cd ..
9325: $RM -r conftest
9326: $RM conftest*
9327:
1.10 paf 9328: fi
1.31 moko 9329: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9330: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.23 moko 9331:
1.10 paf 9332:
9333:
9334:
1.23 moko 9335: hard_links="nottested"
9336: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9337: # do not overwrite the value of need_locks provided by the user
1.31 moko 9338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9339: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.23 moko 9340: hard_links=yes
9341: $RM conftest*
9342: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9343: touch conftest.a
9344: ln conftest.a conftest.b 2>&5 || hard_links=no
9345: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.31 moko 9346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9347: $as_echo "$hard_links" >&6; }
1.23 moko 9348: if test "$hard_links" = no; then
1.31 moko 9349: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9350: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.23 moko 9351: need_locks=warn
1.10 paf 9352: fi
9353: else
1.23 moko 9354: need_locks=no
1.10 paf 9355: fi
9356:
9357:
9358:
9359:
9360:
9361:
1.31 moko 9362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9363: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.23 moko 9364:
9365: runpath_var=
9366: allow_undefined_flag=
9367: always_export_symbols=no
9368: archive_cmds=
9369: archive_expsym_cmds=
9370: compiler_needs_object=no
9371: enable_shared_with_static_runtimes=no
9372: export_dynamic_flag_spec=
9373: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9374: hardcode_automatic=no
9375: hardcode_direct=no
9376: hardcode_direct_absolute=no
9377: hardcode_libdir_flag_spec=
9378: hardcode_libdir_separator=
9379: hardcode_minus_L=no
9380: hardcode_shlibpath_var=unsupported
9381: inherit_rpath=no
9382: link_all_deplibs=unknown
9383: module_cmds=
9384: module_expsym_cmds=
9385: old_archive_from_new_cmds=
9386: old_archive_from_expsyms_cmds=
9387: thread_safe_flag_spec=
9388: whole_archive_flag_spec=
9389: # include_expsyms should be a list of space-separated symbols to be *always*
9390: # included in the symbol list
9391: include_expsyms=
9392: # exclude_expsyms can be an extended regexp of symbols to exclude
9393: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9394: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9395: # as well as any symbol that contains `d'.
9396: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9397: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9398: # platforms (ab)use it in PIC code, but their linkers get confused if
9399: # the symbol is explicitly referenced. Since portable code cannot
9400: # rely on this symbol name, it's probably fine to never include it in
9401: # preloaded symbol tables.
9402: # Exclude shared library initialization/finalization symbols.
9403: extract_expsyms_cmds=
9404:
9405: case $host_os in
9406: cygwin* | mingw* | pw32* | cegcc*)
9407: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9408: # When not using gcc, we currently assume that we are using
9409: # Microsoft Visual C++.
9410: if test "$GCC" != yes; then
9411: with_gnu_ld=no
9412: fi
9413: ;;
9414: interix*)
9415: # we just hope/assume this is gcc and not c89 (= MSVC++)
9416: with_gnu_ld=yes
9417: ;;
9418: openbsd*)
9419: with_gnu_ld=no
9420: ;;
9421: esac
9422:
9423: ld_shlibs=yes
9424:
9425: # On some targets, GNU ld is compatible enough with the native linker
9426: # that we're better off using the native interface for both.
9427: lt_use_gnu_ld_interface=no
9428: if test "$with_gnu_ld" = yes; then
9429: case $host_os in
9430: aix*)
9431: # The AIX port of GNU ld has always aspired to compatibility
9432: # with the native linker. However, as the warning in the GNU ld
9433: # block says, versions before 2.19.5* couldn't really create working
9434: # shared libraries, regardless of the interface used.
9435: case `$LD -v 2>&1` in
9436: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9437: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9438: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9439: *)
9440: lt_use_gnu_ld_interface=yes
9441: ;;
9442: esac
9443: ;;
9444: *)
9445: lt_use_gnu_ld_interface=yes
9446: ;;
9447: esac
1.10 paf 9448: fi
9449:
1.23 moko 9450: if test "$lt_use_gnu_ld_interface" = yes; then
9451: # If archive_cmds runs LD, not CC, wlarc should be empty
9452: wlarc='${wl}'
9453:
9454: # Set some defaults for GNU ld with shared library support. These
9455: # are reset later if shared libraries are not supported. Putting them
9456: # here allows them to be overridden if necessary.
9457: runpath_var=LD_RUN_PATH
9458: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9459: export_dynamic_flag_spec='${wl}--export-dynamic'
9460: # ancient GNU ld didn't support --whole-archive et. al.
9461: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9462: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9463: else
9464: whole_archive_flag_spec=
9465: fi
9466: supports_anon_versioning=no
9467: case `$LD -v 2>&1` in
9468: *GNU\ gold*) supports_anon_versioning=yes ;;
9469: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9470: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9471: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9472: *\ 2.11.*) ;; # other 2.11 versions
9473: *) supports_anon_versioning=yes ;;
9474: esac
9475:
9476: # See if GNU ld supports shared libraries.
9477: case $host_os in
9478: aix[3-9]*)
9479: # On AIX/PPC, the GNU linker is very broken
9480: if test "$host_cpu" != ia64; then
9481: ld_shlibs=no
9482: cat <<_LT_EOF 1>&2
1.10 paf 9483:
1.23 moko 9484: *** Warning: the GNU linker, at least up to release 2.19, is reported
9485: *** to be unable to reliably create shared libraries on AIX.
9486: *** Therefore, libtool is disabling shared libraries support. If you
9487: *** really care for shared libraries, you may want to install binutils
9488: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9489: *** You will then need to restart the configuration process.
1.10 paf 9490:
1.23 moko 9491: _LT_EOF
9492: fi
9493: ;;
1.10 paf 9494:
1.23 moko 9495: amigaos*)
9496: case $host_cpu in
9497: powerpc)
9498: # see comment about AmigaOS4 .so support
9499: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9500: archive_expsym_cmds=''
9501: ;;
9502: m68k)
9503: 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)'
9504: hardcode_libdir_flag_spec='-L$libdir'
9505: hardcode_minus_L=yes
9506: ;;
9507: esac
9508: ;;
1.10 paf 9509:
1.23 moko 9510: beos*)
9511: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9512: allow_undefined_flag=unsupported
9513: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9514: # support --undefined. This deserves some investigation. FIXME
9515: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516: else
9517: ld_shlibs=no
9518: fi
9519: ;;
1.10 paf 9520:
1.23 moko 9521: cygwin* | mingw* | pw32* | cegcc*)
9522: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9523: # as there is no search path for DLLs.
9524: hardcode_libdir_flag_spec='-L$libdir'
9525: export_dynamic_flag_spec='${wl}--export-all-symbols'
9526: allow_undefined_flag=unsupported
9527: always_export_symbols=no
9528: enable_shared_with_static_runtimes=yes
9529: 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'
9530: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9531:
9532: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9533: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9534: # If the export-symbols file already is a .def file (1st line
9535: # is EXPORTS), use it as is; otherwise, prepend...
9536: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9537: cp $export_symbols $output_objdir/$soname.def;
9538: else
9539: echo EXPORTS > $output_objdir/$soname.def;
9540: cat $export_symbols >> $output_objdir/$soname.def;
9541: fi~
9542: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9543: else
9544: ld_shlibs=no
9545: fi
9546: ;;
1.10 paf 9547:
1.23 moko 9548: haiku*)
9549: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550: link_all_deplibs=yes
9551: ;;
1.10 paf 9552:
1.23 moko 9553: interix[3-9]*)
9554: hardcode_direct=no
9555: hardcode_shlibpath_var=no
9556: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9557: export_dynamic_flag_spec='${wl}-E'
9558: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9559: # Instead, shared libraries are loaded at an image base (0x10000000 by
9560: # default) and relocated if they conflict, which is a slow very memory
9561: # consuming and fragmenting process. To avoid this, we pick a random,
9562: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9563: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9564: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9565: 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'
9566: ;;
1.10 paf 9567:
1.23 moko 9568: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9569: tmp_diet=no
9570: if test "$host_os" = linux-dietlibc; then
9571: case $cc_basename in
9572: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9573: esac
9574: fi
9575: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9576: && test "$tmp_diet" = no
9577: then
9578: tmp_addflag=' $pic_flag'
9579: tmp_sharedflag='-shared'
9580: case $cc_basename,$host_cpu in
9581: pgcc*) # Portland Group C compiler
9582: 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'
9583: tmp_addflag=' $pic_flag'
9584: ;;
9585: pgf77* | pgf90* | pgf95* | pgfortran*)
9586: # Portland Group f77 and f90 compilers
9587: 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'
9588: tmp_addflag=' $pic_flag -Mnomain' ;;
9589: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9590: tmp_addflag=' -i_dynamic' ;;
9591: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9592: tmp_addflag=' -i_dynamic -nofor_main' ;;
9593: ifc* | ifort*) # Intel Fortran compiler
9594: tmp_addflag=' -nofor_main' ;;
9595: lf95*) # Lahey Fortran 8.1
9596: whole_archive_flag_spec=
9597: tmp_sharedflag='--shared' ;;
9598: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9599: tmp_sharedflag='-qmkshrobj'
9600: tmp_addflag= ;;
9601: nvcc*) # Cuda Compiler Driver 2.2
9602: 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'
9603: compiler_needs_object=yes
9604: ;;
9605: esac
9606: case `$CC -V 2>&1 | sed 5q` in
9607: *Sun\ C*) # Sun C 5.9
9608: 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'
9609: compiler_needs_object=yes
9610: tmp_sharedflag='-G' ;;
9611: *Sun\ F*) # Sun Fortran 8.3
9612: tmp_sharedflag='-G' ;;
9613: esac
9614: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.10 paf 9615:
1.23 moko 9616: if test "x$supports_anon_versioning" = xyes; then
9617: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9618: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9619: echo "local: *; };" >> $output_objdir/$libname.ver~
9620: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9621: fi
9622:
9623: case $cc_basename in
9624: xlf* | bgf* | bgxlf* | mpixlf*)
9625: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9626: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9627: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9629: if test "x$supports_anon_versioning" = xyes; then
9630: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9631: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9632: echo "local: *; };" >> $output_objdir/$libname.ver~
9633: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9634: fi
9635: ;;
9636: esac
9637: else
9638: ld_shlibs=no
9639: fi
9640: ;;
1.10 paf 9641:
1.23 moko 9642: netbsd*)
9643: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9644: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9645: wlarc=
9646: else
9647: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9649: fi
9650: ;;
1.10 paf 9651:
1.23 moko 9652: solaris*)
9653: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9654: ld_shlibs=no
9655: cat <<_LT_EOF 1>&2
1.10 paf 9656:
1.23 moko 9657: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9658: *** create shared libraries on Solaris systems. Therefore, libtool
9659: *** is disabling shared libraries support. We urge you to upgrade GNU
9660: *** binutils to release 2.9.1 or newer. Another option is to modify
9661: *** your PATH or compiler configuration so that the native linker is
9662: *** used, and then restart.
1.10 paf 9663:
1.23 moko 9664: _LT_EOF
9665: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9666: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9667: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9668: else
9669: ld_shlibs=no
9670: fi
9671: ;;
1.10 paf 9672:
1.23 moko 9673: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9674: case `$LD -v 2>&1` in
9675: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9676: ld_shlibs=no
9677: cat <<_LT_EOF 1>&2
1.10 paf 9678:
1.23 moko 9679: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9680: *** reliably create shared libraries on SCO systems. Therefore, libtool
9681: *** is disabling shared libraries support. We urge you to upgrade GNU
9682: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9683: *** your PATH or compiler configuration so that the native linker is
9684: *** used, and then restart.
1.10 paf 9685:
1.23 moko 9686: _LT_EOF
9687: ;;
9688: *)
9689: # For security reasons, it is highly recommended that you always
9690: # use absolute paths for naming shared libraries, and exclude the
9691: # DT_RUNPATH tag from executables and libraries. But doing so
9692: # requires that you compile everything twice, which is a pain.
9693: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9694: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9696: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9697: else
9698: ld_shlibs=no
9699: fi
9700: ;;
9701: esac
9702: ;;
1.10 paf 9703:
1.23 moko 9704: sunos4*)
9705: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9706: wlarc=
9707: hardcode_direct=yes
9708: hardcode_shlibpath_var=no
9709: ;;
1.10 paf 9710:
1.23 moko 9711: *)
9712: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9713: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9714: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9715: else
9716: ld_shlibs=no
9717: fi
9718: ;;
9719: esac
1.10 paf 9720:
1.23 moko 9721: if test "$ld_shlibs" = no; then
9722: runpath_var=
9723: hardcode_libdir_flag_spec=
9724: export_dynamic_flag_spec=
9725: whole_archive_flag_spec=
9726: fi
9727: else
9728: # PORTME fill in a description of your system's linker (not GNU ld)
9729: case $host_os in
9730: aix3*)
9731: allow_undefined_flag=unsupported
9732: always_export_symbols=yes
9733: 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'
9734: # Note: this linker hardcodes the directories in LIBPATH if there
9735: # are no directories specified by -L.
9736: hardcode_minus_L=yes
9737: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9738: # Neither direct hardcoding nor static linking is supported with a
9739: # broken collect2.
9740: hardcode_direct=unsupported
9741: fi
9742: ;;
1.10 paf 9743:
1.23 moko 9744: aix[4-9]*)
9745: if test "$host_cpu" = ia64; then
9746: # On IA64, the linker does run time linking by default, so we don't
9747: # have to do anything special.
9748: aix_use_runtimelinking=no
9749: exp_sym_flag='-Bexport'
9750: no_entry_flag=""
9751: else
9752: # If we're using GNU nm, then we don't want the "-C" option.
9753: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9754: # Also, AIX nm treats weak defined symbols like other global
9755: # defined symbols, whereas GNU nm marks them as "W".
9756: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9757: 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'
9758: else
9759: 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'
9760: fi
9761: aix_use_runtimelinking=no
1.10 paf 9762:
1.23 moko 9763: # Test if we are trying to use run time linking or normal
9764: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9765: # need to do runtime linking.
9766: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9767: for ld_flag in $LDFLAGS; do
9768: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9769: aix_use_runtimelinking=yes
9770: break
9771: fi
9772: done
9773: ;;
9774: esac
1.10 paf 9775:
1.23 moko 9776: exp_sym_flag='-bexport'
9777: no_entry_flag='-bnoentry'
9778: fi
1.10 paf 9779:
1.23 moko 9780: # When large executables or shared objects are built, AIX ld can
9781: # have problems creating the table of contents. If linking a library
9782: # or program results in "error TOC overflow" add -mminimal-toc to
9783: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9784: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9785:
9786: archive_cmds=''
9787: hardcode_direct=yes
9788: hardcode_direct_absolute=yes
9789: hardcode_libdir_separator=':'
9790: link_all_deplibs=yes
9791: file_list_spec='${wl}-f,'
9792:
9793: if test "$GCC" = yes; then
9794: case $host_os in aix4.[012]|aix4.[012].*)
9795: # We only want to do this on AIX 4.2 and lower, the check
9796: # below for broken collect2 doesn't work under 4.3+
9797: collect2name=`${CC} -print-prog-name=collect2`
9798: if test -f "$collect2name" &&
9799: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9800: then
9801: # We have reworked collect2
9802: :
9803: else
9804: # We have old collect2
9805: hardcode_direct=unsupported
9806: # It fails to find uninstalled libraries when the uninstalled
9807: # path is not listed in the libpath. Setting hardcode_minus_L
9808: # to unsupported forces relinking
9809: hardcode_minus_L=yes
9810: hardcode_libdir_flag_spec='-L$libdir'
9811: hardcode_libdir_separator=
9812: fi
9813: ;;
9814: esac
9815: shared_flag='-shared'
9816: if test "$aix_use_runtimelinking" = yes; then
9817: shared_flag="$shared_flag "'${wl}-G'
9818: fi
9819: else
9820: # not using gcc
9821: if test "$host_cpu" = ia64; then
9822: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9823: # chokes on -Wl,-G. The following line is correct:
9824: shared_flag='-G'
9825: else
9826: if test "$aix_use_runtimelinking" = yes; then
9827: shared_flag='${wl}-G'
9828: else
9829: shared_flag='${wl}-bM:SRE'
9830: fi
9831: fi
9832: fi
9833:
9834: export_dynamic_flag_spec='${wl}-bexpall'
9835: # It seems that -bexpall does not export symbols beginning with
9836: # underscore (_), so it is better to generate a list of symbols to export.
9837: always_export_symbols=yes
9838: if test "$aix_use_runtimelinking" = yes; then
9839: # Warning - without using the other runtime loading flags (-brtl),
9840: # -berok will link without error, but may produce a broken library.
9841: allow_undefined_flag='-berok'
9842: # Determine the default libpath from the value encoded in an
9843: # empty executable.
9844: if test "${lt_cv_aix_libpath+set}" = set; then
9845: aix_libpath=$lt_cv_aix_libpath
9846: else
1.31 moko 9847: if ${lt_cv_aix_libpath_+:} false; then :
9848: $as_echo_n "(cached) " >&6
1.23 moko 9849: else
1.31 moko 9850: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 9851: /* end confdefs.h. */
1.10 paf 9852:
1.23 moko 9853: int
9854: main ()
9855: {
1.10 paf 9856:
1.23 moko 9857: ;
9858: return 0;
9859: }
9860: _ACEOF
1.31 moko 9861: if ac_fn_c_try_link "$LINENO"; then :
1.10 paf 9862:
1.23 moko 9863: lt_aix_libpath_sed='
9864: /Import File Strings/,/^$/ {
9865: /^0/ {
9866: s/^0 *\([^ ]*\) *$/\1/
9867: p
9868: }
9869: }'
9870: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9871: # Check for a 64-bit object if we didn't find anything.
9872: if test -z "$lt_cv_aix_libpath_"; then
9873: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9874: fi
9875: fi
1.31 moko 9876: rm -f core conftest.err conftest.$ac_objext \
9877: conftest$ac_exeext conftest.$ac_ext
1.23 moko 9878: if test -z "$lt_cv_aix_libpath_"; then
9879: lt_cv_aix_libpath_="/usr/lib:/lib"
9880: fi
1.10 paf 9881:
1.23 moko 9882: fi
1.10 paf 9883:
1.23 moko 9884: aix_libpath=$lt_cv_aix_libpath_
9885: fi
1.10 paf 9886:
1.23 moko 9887: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9888: 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"
9889: else
9890: if test "$host_cpu" = ia64; then
9891: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9892: allow_undefined_flag="-z nodefs"
9893: 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"
9894: else
9895: # Determine the default libpath from the value encoded in an
9896: # empty executable.
9897: if test "${lt_cv_aix_libpath+set}" = set; then
9898: aix_libpath=$lt_cv_aix_libpath
9899: else
1.31 moko 9900: if ${lt_cv_aix_libpath_+:} false; then :
9901: $as_echo_n "(cached) " >&6
1.23 moko 9902: else
1.31 moko 9903: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 9904: /* end confdefs.h. */
1.10 paf 9905:
1.23 moko 9906: int
9907: main ()
9908: {
1.10 paf 9909:
1.23 moko 9910: ;
9911: return 0;
9912: }
1.10 paf 9913: _ACEOF
1.31 moko 9914: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 9915:
9916: lt_aix_libpath_sed='
9917: /Import File Strings/,/^$/ {
9918: /^0/ {
9919: s/^0 *\([^ ]*\) *$/\1/
9920: p
9921: }
9922: }'
9923: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9924: # Check for a 64-bit object if we didn't find anything.
9925: if test -z "$lt_cv_aix_libpath_"; then
9926: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9927: fi
9928: fi
1.31 moko 9929: rm -f core conftest.err conftest.$ac_objext \
9930: conftest$ac_exeext conftest.$ac_ext
1.23 moko 9931: if test -z "$lt_cv_aix_libpath_"; then
9932: lt_cv_aix_libpath_="/usr/lib:/lib"
9933: fi
1.10 paf 9934:
1.23 moko 9935: fi
1.10 paf 9936:
1.23 moko 9937: aix_libpath=$lt_cv_aix_libpath_
9938: fi
1.10 paf 9939:
1.23 moko 9940: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9941: # Warning - without using the other run time loading flags,
9942: # -berok will link without error, but may produce a broken library.
9943: no_undefined_flag=' ${wl}-bernotok'
9944: allow_undefined_flag=' ${wl}-berok'
9945: if test "$with_gnu_ld" = yes; then
9946: # We only use this code for GNU lds that support --whole-archive.
9947: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9948: else
9949: # Exported symbols can be pulled into shared objects from archives
9950: whole_archive_flag_spec='$convenience'
9951: fi
9952: archive_cmds_need_lc=yes
9953: # This is similar to how AIX traditionally builds its shared libraries.
9954: 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'
9955: fi
9956: fi
9957: ;;
1.10 paf 9958:
1.23 moko 9959: amigaos*)
9960: case $host_cpu in
9961: powerpc)
9962: # see comment about AmigaOS4 .so support
9963: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9964: archive_expsym_cmds=''
9965: ;;
9966: m68k)
9967: 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)'
9968: hardcode_libdir_flag_spec='-L$libdir'
9969: hardcode_minus_L=yes
9970: ;;
9971: esac
9972: ;;
1.10 paf 9973:
1.23 moko 9974: bsdi[45]*)
9975: export_dynamic_flag_spec=-rdynamic
9976: ;;
1.1 parser 9977:
1.23 moko 9978: cygwin* | mingw* | pw32* | cegcc*)
9979: # When not using gcc, we currently assume that we are using
9980: # Microsoft Visual C++.
9981: # hardcode_libdir_flag_spec is actually meaningless, as there is
9982: # no search path for DLLs.
9983: case $cc_basename in
9984: cl*)
9985: # Native MSVC
9986: hardcode_libdir_flag_spec=' '
9987: allow_undefined_flag=unsupported
9988: always_export_symbols=yes
9989: file_list_spec='@'
9990: # Tell ltmain to make .lib files, not .a files.
9991: libext=lib
9992: # Tell ltmain to make .dll files, not .so files.
9993: shrext_cmds=".dll"
9994: # FIXME: Setting linknames here is a bad hack.
9995: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9996: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9997: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9998: else
9999: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10000: fi~
10001: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10002: linknames='
10003: # The linker will not automatically build a static lib if we build a DLL.
10004: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10005: enable_shared_with_static_runtimes=yes
10006: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10007: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10008: # Don't use ranlib
10009: old_postinstall_cmds='chmod 644 $oldlib'
10010: postlink_cmds='lt_outputfile="@OUTPUT@"~
10011: lt_tool_outputfile="@TOOL_OUTPUT@"~
10012: case $lt_outputfile in
10013: *.exe|*.EXE) ;;
10014: *)
10015: lt_outputfile="$lt_outputfile.exe"
10016: lt_tool_outputfile="$lt_tool_outputfile.exe"
10017: ;;
10018: esac~
10019: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10020: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10021: $RM "$lt_outputfile.manifest";
10022: fi'
10023: ;;
10024: *)
10025: # Assume MSVC wrapper
10026: hardcode_libdir_flag_spec=' '
10027: allow_undefined_flag=unsupported
10028: # Tell ltmain to make .lib files, not .a files.
10029: libext=lib
10030: # Tell ltmain to make .dll files, not .so files.
10031: shrext_cmds=".dll"
10032: # FIXME: Setting linknames here is a bad hack.
10033: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10034: # The linker will automatically build a .lib file if we build a DLL.
10035: old_archive_from_new_cmds='true'
10036: # FIXME: Should let the user specify the lib program.
10037: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10038: enable_shared_with_static_runtimes=yes
10039: ;;
10040: esac
10041: ;;
1.10 paf 10042:
1.23 moko 10043: darwin* | rhapsody*)
1.10 paf 10044:
10045:
1.23 moko 10046: archive_cmds_need_lc=no
10047: hardcode_direct=no
10048: hardcode_automatic=yes
10049: hardcode_shlibpath_var=unsupported
10050: if test "$lt_cv_ld_force_load" = "yes"; then
10051: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.10 paf 10052:
1.23 moko 10053: else
10054: whole_archive_flag_spec=''
10055: fi
10056: link_all_deplibs=yes
10057: allow_undefined_flag="$_lt_dar_allow_undefined"
10058: case $cc_basename in
10059: ifort*) _lt_dar_can_shared=yes ;;
10060: *) _lt_dar_can_shared=$GCC ;;
10061: esac
10062: if test "$_lt_dar_can_shared" = "yes"; then
10063: output_verbose_link_cmd=func_echo_all
10064: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10065: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10066: 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}"
10067: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1.10 paf 10068:
1.23 moko 10069: else
10070: ld_shlibs=no
10071: fi
1.1 parser 10072:
1.23 moko 10073: ;;
1.10 paf 10074:
1.23 moko 10075: dgux*)
10076: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077: hardcode_libdir_flag_spec='-L$libdir'
10078: hardcode_shlibpath_var=no
10079: ;;
1.10 paf 10080:
1.23 moko 10081: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10082: # support. Future versions do this automatically, but an explicit c++rt0.o
10083: # does not break anything, and helps significantly (at the cost of a little
10084: # extra space).
10085: freebsd2.2*)
10086: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10087: hardcode_libdir_flag_spec='-R$libdir'
10088: hardcode_direct=yes
10089: hardcode_shlibpath_var=no
10090: ;;
1.10 paf 10091:
1.23 moko 10092: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10093: freebsd2.*)
10094: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10095: hardcode_direct=yes
10096: hardcode_minus_L=yes
10097: hardcode_shlibpath_var=no
10098: ;;
1.10 paf 10099:
1.23 moko 10100: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10101: freebsd* | dragonfly*)
10102: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10103: hardcode_libdir_flag_spec='-R$libdir'
10104: hardcode_direct=yes
10105: hardcode_shlibpath_var=no
10106: ;;
1.1 parser 10107:
1.23 moko 10108: hpux9*)
10109: if test "$GCC" = yes; then
10110: 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'
10111: else
10112: 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'
10113: fi
10114: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10115: hardcode_libdir_separator=:
10116: hardcode_direct=yes
10117:
10118: # hardcode_minus_L: Not really in the search PATH,
10119: # but as the default location of the library.
10120: hardcode_minus_L=yes
10121: export_dynamic_flag_spec='${wl}-E'
10122: ;;
1.10 paf 10123:
1.23 moko 10124: hpux10*)
10125: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10126: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10127: else
10128: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10129: fi
10130: if test "$with_gnu_ld" = no; then
10131: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10132: hardcode_libdir_separator=:
10133: hardcode_direct=yes
10134: hardcode_direct_absolute=yes
10135: export_dynamic_flag_spec='${wl}-E'
10136: # hardcode_minus_L: Not really in the search PATH,
10137: # but as the default location of the library.
10138: hardcode_minus_L=yes
10139: fi
10140: ;;
1.10 paf 10141:
1.23 moko 10142: hpux11*)
10143: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10144: case $host_cpu in
10145: hppa*64*)
10146: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10147: ;;
10148: ia64*)
10149: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10150: ;;
10151: *)
10152: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10153: ;;
10154: esac
10155: else
10156: case $host_cpu in
10157: hppa*64*)
10158: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10159: ;;
10160: ia64*)
10161: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10162: ;;
10163: *)
1.10 paf 10164:
1.23 moko 10165: # Older versions of the 11.00 compiler do not understand -b yet
10166: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.31 moko 10167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10168: $as_echo_n "checking if $CC understands -b... " >&6; }
10169: if ${lt_cv_prog_compiler__b+:} false; then :
10170: $as_echo_n "(cached) " >&6
1.23 moko 10171: else
10172: lt_cv_prog_compiler__b=no
10173: save_LDFLAGS="$LDFLAGS"
10174: LDFLAGS="$LDFLAGS -b"
10175: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10176: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10177: # The linker can only warn and ignore the option if not recognized
10178: # So say no if there are warnings
10179: if test -s conftest.err; then
10180: # Append any errors to the config.log.
10181: cat conftest.err 1>&5
10182: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10183: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10184: if diff conftest.exp conftest.er2 >/dev/null; then
10185: lt_cv_prog_compiler__b=yes
10186: fi
10187: else
10188: lt_cv_prog_compiler__b=yes
10189: fi
10190: fi
10191: $RM -r conftest*
10192: LDFLAGS="$save_LDFLAGS"
1.10 paf 10193:
1.23 moko 10194: fi
1.31 moko 10195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10196: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.1 parser 10197:
1.23 moko 10198: if test x"$lt_cv_prog_compiler__b" = xyes; then
10199: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10200: else
10201: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10202: fi
1.1 parser 10203:
1.23 moko 10204: ;;
10205: esac
10206: fi
10207: if test "$with_gnu_ld" = no; then
10208: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10209: hardcode_libdir_separator=:
10210:
10211: case $host_cpu in
10212: hppa*64*|ia64*)
10213: hardcode_direct=no
10214: hardcode_shlibpath_var=no
10215: ;;
10216: *)
10217: hardcode_direct=yes
10218: hardcode_direct_absolute=yes
10219: export_dynamic_flag_spec='${wl}-E'
1.1 parser 10220:
1.23 moko 10221: # hardcode_minus_L: Not really in the search PATH,
10222: # but as the default location of the library.
10223: hardcode_minus_L=yes
10224: ;;
10225: esac
10226: fi
10227: ;;
1.1 parser 10228:
1.23 moko 10229: irix5* | irix6* | nonstopux*)
10230: if test "$GCC" = yes; then
10231: 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'
10232: # Try to use the -exported_symbol ld option, if it does not
10233: # work, assume that -exports_file does not work either and
10234: # implicitly export all symbols.
10235: # This should be the same for all languages, so no per-tag cache variable.
1.31 moko 10236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10237: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10238: if ${lt_cv_irix_exported_symbol+:} false; then :
10239: $as_echo_n "(cached) " >&6
1.23 moko 10240: else
10241: save_LDFLAGS="$LDFLAGS"
10242: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.31 moko 10243: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 10244: /* end confdefs.h. */
10245: int foo (void) { return 0; }
1.10 paf 10246: _ACEOF
1.31 moko 10247: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 10248: lt_cv_irix_exported_symbol=yes
10249: else
1.31 moko 10250: lt_cv_irix_exported_symbol=no
1.23 moko 10251: fi
1.31 moko 10252: rm -f core conftest.err conftest.$ac_objext \
10253: conftest$ac_exeext conftest.$ac_ext
1.23 moko 10254: LDFLAGS="$save_LDFLAGS"
10255: fi
1.31 moko 10256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10257: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.23 moko 10258: if test "$lt_cv_irix_exported_symbol" = yes; then
10259: 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'
10260: fi
1.10 paf 10261: else
1.23 moko 10262: 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'
10263: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1.10 paf 10264: fi
1.23 moko 10265: archive_cmds_need_lc='no'
10266: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10267: hardcode_libdir_separator=:
10268: inherit_rpath=yes
10269: link_all_deplibs=yes
10270: ;;
10271:
10272: netbsd*)
10273: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10274: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10275: else
10276: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10277: fi
10278: hardcode_libdir_flag_spec='-R$libdir'
10279: hardcode_direct=yes
10280: hardcode_shlibpath_var=no
10281: ;;
1.1 parser 10282:
1.23 moko 10283: newsos6)
10284: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285: hardcode_direct=yes
10286: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10287: hardcode_libdir_separator=:
10288: hardcode_shlibpath_var=no
10289: ;;
1.1 parser 10290:
1.23 moko 10291: *nto* | *qnx*)
10292: ;;
1.10 paf 10293:
1.23 moko 10294: openbsd*)
10295: if test -f /usr/libexec/ld.so; then
10296: hardcode_direct=yes
10297: hardcode_shlibpath_var=no
10298: hardcode_direct_absolute=yes
10299: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10300: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10301: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10302: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10303: export_dynamic_flag_spec='${wl}-E'
10304: else
10305: case $host_os in
10306: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10307: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10308: hardcode_libdir_flag_spec='-R$libdir'
10309: ;;
10310: *)
10311: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10312: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10313: ;;
10314: esac
10315: fi
10316: else
10317: ld_shlibs=no
10318: fi
10319: ;;
1.10 paf 10320:
1.23 moko 10321: os2*)
10322: hardcode_libdir_flag_spec='-L$libdir'
10323: hardcode_minus_L=yes
10324: allow_undefined_flag=unsupported
10325: 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'
10326: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10327: ;;
1.10 paf 10328:
1.23 moko 10329: osf3*)
10330: if test "$GCC" = yes; then
10331: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10332: 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'
10333: else
10334: allow_undefined_flag=' -expect_unresolved \*'
10335: 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'
10336: fi
10337: archive_cmds_need_lc='no'
10338: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10339: hardcode_libdir_separator=:
10340: ;;
1.16 paf 10341:
1.23 moko 10342: osf4* | osf5*) # as osf3* with the addition of -msym flag
10343: if test "$GCC" = yes; then
10344: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10345: 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'
10346: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10347: else
10348: allow_undefined_flag=' -expect_unresolved \*'
10349: 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'
10350: 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~
10351: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1.10 paf 10352:
1.23 moko 10353: # Both c and cxx compiler support -rpath directly
10354: hardcode_libdir_flag_spec='-rpath $libdir'
10355: fi
10356: archive_cmds_need_lc='no'
10357: hardcode_libdir_separator=:
10358: ;;
1.10 paf 10359:
1.23 moko 10360: solaris*)
10361: no_undefined_flag=' -z defs'
10362: if test "$GCC" = yes; then
10363: wlarc='${wl}'
10364: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10365: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10366: $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'
10367: else
10368: case `$CC -V 2>&1` in
10369: *"Compilers 5.0"*)
10370: wlarc=''
10371: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10372: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10373: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10374: ;;
10375: *)
10376: wlarc='${wl}'
10377: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10378: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10379: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10380: ;;
10381: esac
10382: fi
10383: hardcode_libdir_flag_spec='-R$libdir'
10384: hardcode_shlibpath_var=no
10385: case $host_os in
10386: solaris2.[0-5] | solaris2.[0-5].*) ;;
10387: *)
10388: # The compiler driver will combine and reorder linker options,
10389: # but understands `-z linker_flag'. GCC discards it without `$wl',
10390: # but is careful enough not to reorder.
10391: # Supported since Solaris 2.6 (maybe 2.5.1?)
10392: if test "$GCC" = yes; then
10393: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10394: else
10395: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10396: fi
10397: ;;
10398: esac
10399: link_all_deplibs=yes
10400: ;;
1.1 parser 10401:
1.23 moko 10402: sunos4*)
10403: if test "x$host_vendor" = xsequent; then
10404: # Use $CC to link under sequent, because it throws in some extra .o
10405: # files that make .init and .fini sections work.
10406: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10407: else
10408: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10409: fi
10410: hardcode_libdir_flag_spec='-L$libdir'
10411: hardcode_direct=yes
10412: hardcode_minus_L=yes
10413: hardcode_shlibpath_var=no
10414: ;;
1.10 paf 10415:
1.23 moko 10416: sysv4)
10417: case $host_vendor in
10418: sni)
10419: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10420: hardcode_direct=yes # is this really true???
10421: ;;
10422: siemens)
10423: ## LD is ld it makes a PLAMLIB
10424: ## CC just makes a GrossModule.
10425: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10426: reload_cmds='$CC -r -o $output$reload_objs'
10427: hardcode_direct=no
10428: ;;
10429: motorola)
10430: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10431: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10432: ;;
1.10 paf 10433: esac
1.23 moko 10434: runpath_var='LD_RUN_PATH'
10435: hardcode_shlibpath_var=no
10436: ;;
10437:
10438: sysv4.3*)
10439: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10440: hardcode_shlibpath_var=no
10441: export_dynamic_flag_spec='-Bexport'
10442: ;;
1.10 paf 10443:
1.23 moko 10444: sysv4*MP*)
10445: if test -d /usr/nec; then
10446: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10447: hardcode_shlibpath_var=no
10448: runpath_var=LD_RUN_PATH
10449: hardcode_runpath_var=yes
10450: ld_shlibs=yes
10451: fi
10452: ;;
1.10 paf 10453:
1.23 moko 10454: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10455: no_undefined_flag='${wl}-z,text'
10456: archive_cmds_need_lc=no
10457: hardcode_shlibpath_var=no
10458: runpath_var='LD_RUN_PATH'
1.1 parser 10459:
1.23 moko 10460: if test "$GCC" = yes; then
10461: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10462: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10463: else
10464: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10465: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10466: fi
10467: ;;
10468:
10469: sysv5* | sco3.2v5* | sco5v6*)
10470: # Note: We can NOT use -z defs as we might desire, because we do not
10471: # link with -lc, and that would cause any symbols used from libc to
10472: # always be unresolved, which means just about no library would
10473: # ever link correctly. If we're not using GNU ld we use -z text
10474: # though, which does catch some bad symbols but isn't as heavy-handed
10475: # as -z defs.
10476: no_undefined_flag='${wl}-z,text'
10477: allow_undefined_flag='${wl}-z,nodefs'
10478: archive_cmds_need_lc=no
10479: hardcode_shlibpath_var=no
10480: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10481: hardcode_libdir_separator=':'
10482: link_all_deplibs=yes
10483: export_dynamic_flag_spec='${wl}-Bexport'
10484: runpath_var='LD_RUN_PATH'
10485:
10486: if test "$GCC" = yes; then
10487: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10488: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10489: else
10490: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10491: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10492: fi
10493: ;;
1.1 parser 10494:
1.23 moko 10495: uts4*)
10496: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10497: hardcode_libdir_flag_spec='-L$libdir'
10498: hardcode_shlibpath_var=no
10499: ;;
1.1 parser 10500:
1.23 moko 10501: *)
10502: ld_shlibs=no
10503: ;;
10504: esac
1.1 parser 10505:
1.23 moko 10506: if test x$host_vendor = xsni; then
10507: case $host in
10508: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10509: export_dynamic_flag_spec='${wl}-Blargedynsym'
10510: ;;
1.10 paf 10511: esac
1.23 moko 10512: fi
10513: fi
10514:
1.31 moko 10515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10516: $as_echo "$ld_shlibs" >&6; }
1.23 moko 10517: test "$ld_shlibs" = no && can_build_shared=no
10518:
10519: with_gnu_ld=$with_gnu_ld
10520:
10521:
10522:
10523:
10524:
10525:
10526:
10527:
10528:
10529:
10530:
10531:
10532:
1.10 paf 10533:
10534:
10535: #
1.23 moko 10536: # Do we need to explicitly link libc?
10537: #
10538: case "x$archive_cmds_need_lc" in
10539: x|xyes)
10540: # Assume -lc should be added
10541: archive_cmds_need_lc=yes
10542:
10543: if test "$enable_shared" = yes && test "$GCC" = yes; then
10544: case $archive_cmds in
10545: *'~'*)
10546: # FIXME: we may have to deal with multi-command sequences.
10547: ;;
10548: '$CC '*)
10549: # Test whether the compiler implicitly links with -lc since on some
10550: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10551: # to ld, don't add -lc before -lgcc.
1.31 moko 10552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10553: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10554: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10555: $as_echo_n "(cached) " >&6
1.23 moko 10556: else
10557: $RM conftest*
10558: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10559:
1.31 moko 10560: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 10561: (eval $ac_compile) 2>&5
10562: ac_status=$?
1.31 moko 10563: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10564: test $ac_status = 0; } 2>conftest.err; then
1.23 moko 10565: soname=conftest
10566: lib=conftest
10567: libobjs=conftest.$ac_objext
10568: deplibs=
10569: wl=$lt_prog_compiler_wl
10570: pic_flag=$lt_prog_compiler_pic
10571: compiler_flags=-v
10572: linker_flags=-v
10573: verstring=
10574: output_objdir=.
10575: libname=conftest
10576: lt_save_allow_undefined_flag=$allow_undefined_flag
10577: allow_undefined_flag=
1.31 moko 10578: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.23 moko 10579: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10580: ac_status=$?
1.31 moko 10581: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10582: test $ac_status = 0; }
1.23 moko 10583: then
10584: lt_cv_archive_cmds_need_lc=no
10585: else
10586: lt_cv_archive_cmds_need_lc=yes
10587: fi
10588: allow_undefined_flag=$lt_save_allow_undefined_flag
10589: else
10590: cat conftest.err 1>&5
10591: fi
10592: $RM conftest*
10593:
10594: fi
1.31 moko 10595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10596: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.23 moko 10597: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10598: ;;
10599: esac
10600: fi
10601: ;;
10602: esac
10603:
1.1 parser 10604:
1.10 paf 10605:
10606:
10607:
10608:
1.23 moko 10609:
10610:
10611:
10612:
10613:
10614:
10615:
10616:
10617:
10618:
10619:
10620:
10621:
10622:
10623:
10624:
10625:
10626:
10627:
10628:
10629:
10630:
10631:
10632:
10633:
10634:
10635:
10636:
10637:
10638:
10639:
10640:
10641:
10642:
10643:
10644:
10645:
10646:
10647:
10648:
10649:
10650:
10651:
10652:
10653:
10654:
10655:
10656:
10657:
10658:
10659:
10660:
10661:
10662:
10663:
10664:
10665:
10666:
10667:
10668:
10669:
10670:
10671:
10672:
10673:
10674:
10675:
10676:
10677:
10678:
10679:
10680:
10681:
10682:
10683:
10684:
10685:
10686:
10687:
10688:
10689:
10690:
10691:
10692:
10693:
10694:
10695:
10696:
10697:
10698:
10699:
10700:
10701:
10702:
10703:
10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
10716:
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741:
10742:
10743:
10744:
10745:
10746:
10747:
10748:
10749:
10750:
10751:
10752:
10753:
10754:
1.31 moko 10755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10756: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.23 moko 10757:
10758: if test "$GCC" = yes; then
10759: case $host_os in
10760: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10761: *) lt_awk_arg="/^libraries:/" ;;
10762: esac
10763: case $host_os in
10764: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10765: *) lt_sed_strip_eq="s,=/,/,g" ;;
10766: esac
10767: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10768: case $lt_search_path_spec in
10769: *\;*)
10770: # if the path contains ";" then we assume it to be the separator
10771: # otherwise default to the standard path separator (i.e. ":") - it is
10772: # assumed that no part of a normal pathname contains ";" but that should
10773: # okay in the real world where ";" in dirpaths is itself problematic.
10774: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10775: ;;
10776: *)
10777: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10778: ;;
10779: esac
10780: # Ok, now we have the path, separated by spaces, we can step through it
10781: # and add multilib dir if necessary.
10782: lt_tmp_lt_search_path_spec=
10783: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10784: for lt_sys_path in $lt_search_path_spec; do
10785: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10786: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10787: else
10788: test -d "$lt_sys_path" && \
10789: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1.1 parser 10790: fi
1.23 moko 10791: done
10792: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10793: BEGIN {RS=" "; FS="/|\n";} {
10794: lt_foo="";
10795: lt_count=0;
10796: for (lt_i = NF; lt_i > 0; lt_i--) {
10797: if ($lt_i != "" && $lt_i != ".") {
10798: if ($lt_i == "..") {
10799: lt_count++;
10800: } else {
10801: if (lt_count == 0) {
10802: lt_foo="/" $lt_i lt_foo;
10803: } else {
10804: lt_count--;
10805: }
10806: }
10807: }
10808: }
10809: if (lt_foo != "") { lt_freq[lt_foo]++; }
10810: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10811: }'`
10812: # AWK program above erroneously prepends '/' to C:/dos/paths
10813: # for these hosts.
10814: case $host_os in
10815: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10816: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10817: esac
10818: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10819: else
10820: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10821: fi
10822: library_names_spec=
10823: libname_spec='lib$name'
10824: soname_spec=
10825: shrext_cmds=".so"
10826: postinstall_cmds=
10827: postuninstall_cmds=
10828: finish_cmds=
10829: finish_eval=
10830: shlibpath_var=
10831: shlibpath_overrides_runpath=unknown
10832: version_type=none
10833: dynamic_linker="$host_os ld.so"
10834: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10835: need_lib_prefix=unknown
10836: hardcode_into_libs=no
10837:
10838: # when you set need_version to no, make sure it does not cause -set_version
10839: # flags to be left without arguments
10840: need_version=unknown
10841:
10842: case $host_os in
10843: aix3*)
10844: version_type=linux # correct to gnu/linux during the next big refactor
10845: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10846: shlibpath_var=LIBPATH
10847:
10848: # AIX 3 has no versioning support, so we append a major version to the name.
10849: soname_spec='${libname}${release}${shared_ext}$major'
10850: ;;
10851:
10852: aix[4-9]*)
10853: version_type=linux # correct to gnu/linux during the next big refactor
10854: need_lib_prefix=no
10855: need_version=no
10856: hardcode_into_libs=yes
10857: if test "$host_cpu" = ia64; then
10858: # AIX 5 supports IA64
10859: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10860: shlibpath_var=LD_LIBRARY_PATH
1.10 paf 10861: else
1.23 moko 10862: # With GCC up to 2.95.x, collect2 would create an import file
10863: # for dependence libraries. The import file would start with
10864: # the line `#! .'. This would cause the generated library to
10865: # depend on `.', always an invalid library. This was fixed in
10866: # development snapshots of GCC prior to 3.0.
10867: case $host_os in
10868: aix4 | aix4.[01] | aix4.[01].*)
10869: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10870: echo ' yes '
10871: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10872: :
10873: else
10874: can_build_shared=no
10875: fi
10876: ;;
10877: esac
10878: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10879: # soname into executable. Probably we can add versioning support to
10880: # collect2, so additional links can be useful in future.
10881: if test "$aix_use_runtimelinking" = yes; then
10882: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10883: # instead of lib<name>.a to let people know that these are not
10884: # typical AIX shared libraries.
10885: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886: else
10887: # We preserve .a as extension for shared libraries through AIX4.2
10888: # and later when we are not doing run time linking.
10889: library_names_spec='${libname}${release}.a $libname.a'
10890: soname_spec='${libname}${release}${shared_ext}$major'
10891: fi
10892: shlibpath_var=LIBPATH
1.1 parser 10893: fi
1.23 moko 10894: ;;
10895:
10896: amigaos*)
10897: case $host_cpu in
10898: powerpc)
10899: # Since July 2007 AmigaOS4 officially supports .so libraries.
10900: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10901: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902: ;;
10903: m68k)
10904: library_names_spec='$libname.ixlibrary $libname.a'
10905: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10906: 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'
10907: ;;
1.16 paf 10908: esac
1.23 moko 10909: ;;
10910:
10911: beos*)
10912: library_names_spec='${libname}${shared_ext}'
10913: dynamic_linker="$host_os ld.so"
10914: shlibpath_var=LIBRARY_PATH
10915: ;;
10916:
10917: bsdi[45]*)
10918: version_type=linux # correct to gnu/linux during the next big refactor
10919: need_version=no
10920: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10921: soname_spec='${libname}${release}${shared_ext}$major'
10922: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10923: shlibpath_var=LD_LIBRARY_PATH
10924: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10925: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10926: # the default ld.so.conf also contains /usr/contrib/lib and
10927: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10928: # libtool to hard-code these into programs
10929: ;;
10930:
10931: cygwin* | mingw* | pw32* | cegcc*)
10932: version_type=windows
10933: shrext_cmds=".dll"
10934: need_version=no
10935: need_lib_prefix=no
10936:
10937: case $GCC,$cc_basename in
10938: yes,*)
10939: # gcc
10940: library_names_spec='$libname.dll.a'
10941: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10942: postinstall_cmds='base_file=`basename \${file}`~
10943: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10944: dldir=$destdir/`dirname \$dlpath`~
10945: test -d \$dldir || mkdir -p \$dldir~
10946: $install_prog $dir/$dlname \$dldir/$dlname~
10947: chmod a+x \$dldir/$dlname~
10948: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10949: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10950: fi'
10951: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10952: dlpath=$dir/\$dldll~
10953: $RM \$dlpath'
10954: shlibpath_overrides_runpath=yes
10955:
10956: case $host_os in
10957: cygwin*)
10958: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10959: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10960:
10961: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10962: ;;
10963: mingw* | cegcc*)
10964: # MinGW DLLs use traditional 'lib' prefix
10965: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10966: ;;
10967: pw32*)
10968: # pw32 DLLs use 'pw' prefix rather than 'lib'
10969: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10970: ;;
10971: esac
10972: dynamic_linker='Win32 ld.exe'
10973: ;;
10974:
10975: *,cl*)
10976: # Native MSVC
10977: libname_spec='$name'
10978: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10979: library_names_spec='${libname}.dll.lib'
10980:
10981: case $build_os in
10982: mingw*)
10983: sys_lib_search_path_spec=
10984: lt_save_ifs=$IFS
10985: IFS=';'
10986: for lt_path in $LIB
10987: do
10988: IFS=$lt_save_ifs
10989: # Let DOS variable expansion print the short 8.3 style file name.
10990: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10991: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10992: done
10993: IFS=$lt_save_ifs
10994: # Convert to MSYS style.
10995: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10996: ;;
10997: cygwin*)
10998: # Convert to unix form, then to dos form, then back to unix form
10999: # but this time dos style (no spaces!) so that the unix form looks
11000: # like /cygdrive/c/PROGRA~1:/cygdr...
11001: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11002: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11003: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11004: ;;
11005: *)
11006: sys_lib_search_path_spec="$LIB"
11007: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11008: # It is most probably a Windows format PATH.
11009: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11010: else
11011: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11012: fi
11013: # FIXME: find the short name or the path components, as spaces are
11014: # common. (e.g. "Program Files" -> "PROGRA~1")
11015: ;;
11016: esac
11017:
11018: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11019: postinstall_cmds='base_file=`basename \${file}`~
11020: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11021: dldir=$destdir/`dirname \$dlpath`~
11022: test -d \$dldir || mkdir -p \$dldir~
11023: $install_prog $dir/$dlname \$dldir/$dlname'
11024: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11025: dlpath=$dir/\$dldll~
11026: $RM \$dlpath'
11027: shlibpath_overrides_runpath=yes
11028: dynamic_linker='Win32 link.exe'
11029: ;;
11030:
11031: *)
11032: # Assume MSVC wrapper
11033: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11034: dynamic_linker='Win32 ld.exe'
11035: ;;
11036: esac
11037: # FIXME: first we should search . and the directory the executable is in
11038: shlibpath_var=PATH
11039: ;;
11040:
11041: darwin* | rhapsody*)
11042: dynamic_linker="$host_os dyld"
11043: version_type=darwin
11044: need_lib_prefix=no
11045: need_version=no
11046: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11047: soname_spec='${libname}${release}${major}$shared_ext'
11048: shlibpath_overrides_runpath=yes
11049: shlibpath_var=DYLD_LIBRARY_PATH
11050: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11051:
11052: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11053: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11054: ;;
11055:
11056: dgux*)
11057: version_type=linux # correct to gnu/linux during the next big refactor
11058: need_lib_prefix=no
11059: need_version=no
11060: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11061: soname_spec='${libname}${release}${shared_ext}$major'
11062: shlibpath_var=LD_LIBRARY_PATH
11063: ;;
11064:
11065: freebsd* | dragonfly*)
11066: # DragonFly does not have aout. When/if they implement a new
11067: # versioning mechanism, adjust this.
11068: if test -x /usr/bin/objformat; then
11069: objformat=`/usr/bin/objformat`
11070: else
11071: case $host_os in
11072: freebsd[23].*) objformat=aout ;;
11073: *) objformat=elf ;;
11074: esac
11075: fi
11076: version_type=freebsd-$objformat
11077: case $version_type in
11078: freebsd-elf*)
11079: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11080: need_version=no
11081: need_lib_prefix=no
11082: ;;
11083: freebsd-*)
11084: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11085: need_version=yes
11086: ;;
11087: esac
11088: shlibpath_var=LD_LIBRARY_PATH
11089: case $host_os in
11090: freebsd2.*)
11091: shlibpath_overrides_runpath=yes
11092: ;;
11093: freebsd3.[01]* | freebsdelf3.[01]*)
11094: shlibpath_overrides_runpath=yes
11095: hardcode_into_libs=yes
11096: ;;
11097: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11098: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11099: shlibpath_overrides_runpath=no
11100: hardcode_into_libs=yes
11101: ;;
11102: *) # from 4.6 on, and DragonFly
11103: shlibpath_overrides_runpath=yes
11104: hardcode_into_libs=yes
11105: ;;
11106: esac
11107: ;;
11108:
11109: gnu*)
11110: version_type=linux # correct to gnu/linux during the next big refactor
11111: need_lib_prefix=no
11112: need_version=no
11113: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11114: soname_spec='${libname}${release}${shared_ext}$major'
11115: shlibpath_var=LD_LIBRARY_PATH
11116: shlibpath_overrides_runpath=no
11117: hardcode_into_libs=yes
11118: ;;
11119:
11120: haiku*)
11121: version_type=linux # correct to gnu/linux during the next big refactor
11122: need_lib_prefix=no
11123: need_version=no
11124: dynamic_linker="$host_os runtime_loader"
11125: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11126: soname_spec='${libname}${release}${shared_ext}$major'
11127: shlibpath_var=LIBRARY_PATH
11128: shlibpath_overrides_runpath=yes
11129: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11130: hardcode_into_libs=yes
11131: ;;
11132:
11133: hpux9* | hpux10* | hpux11*)
11134: # Give a soname corresponding to the major version so that dld.sl refuses to
11135: # link against other versions.
11136: version_type=sunos
11137: need_lib_prefix=no
11138: need_version=no
11139: case $host_cpu in
11140: ia64*)
11141: shrext_cmds='.so'
11142: hardcode_into_libs=yes
11143: dynamic_linker="$host_os dld.so"
11144: shlibpath_var=LD_LIBRARY_PATH
11145: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11146: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147: soname_spec='${libname}${release}${shared_ext}$major'
11148: if test "X$HPUX_IA64_MODE" = X32; then
11149: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11150: else
11151: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11152: fi
11153: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11154: ;;
11155: hppa*64*)
11156: shrext_cmds='.sl'
11157: hardcode_into_libs=yes
11158: dynamic_linker="$host_os dld.sl"
11159: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11160: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11161: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162: soname_spec='${libname}${release}${shared_ext}$major'
11163: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11164: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11165: ;;
11166: *)
11167: shrext_cmds='.sl'
11168: dynamic_linker="$host_os dld.sl"
11169: shlibpath_var=SHLIB_PATH
11170: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11171: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172: soname_spec='${libname}${release}${shared_ext}$major'
11173: ;;
11174: esac
11175: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11176: postinstall_cmds='chmod 555 $lib'
11177: # or fails outright, so override atomically:
11178: install_override_mode=555
11179: ;;
11180:
11181: interix[3-9]*)
11182: version_type=linux # correct to gnu/linux during the next big refactor
11183: need_lib_prefix=no
11184: need_version=no
11185: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11186: soname_spec='${libname}${release}${shared_ext}$major'
11187: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11188: shlibpath_var=LD_LIBRARY_PATH
11189: shlibpath_overrides_runpath=no
11190: hardcode_into_libs=yes
11191: ;;
11192:
11193: irix5* | irix6* | nonstopux*)
11194: case $host_os in
11195: nonstopux*) version_type=nonstopux ;;
11196: *)
11197: if test "$lt_cv_prog_gnu_ld" = yes; then
11198: version_type=linux # correct to gnu/linux during the next big refactor
11199: else
11200: version_type=irix
11201: fi ;;
11202: esac
11203: need_lib_prefix=no
11204: need_version=no
11205: soname_spec='${libname}${release}${shared_ext}$major'
11206: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11207: case $host_os in
11208: irix5* | nonstopux*)
11209: libsuff= shlibsuff=
11210: ;;
11211: *)
11212: case $LD in # libtool.m4 will add one of these switches to LD
11213: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11214: libsuff= shlibsuff= libmagic=32-bit;;
11215: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11216: libsuff=32 shlibsuff=N32 libmagic=N32;;
11217: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11218: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11219: *) libsuff= shlibsuff= libmagic=never-match;;
11220: esac
11221: ;;
11222: esac
11223: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11224: shlibpath_overrides_runpath=no
11225: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11226: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11227: hardcode_into_libs=yes
11228: ;;
11229:
11230: # No shared lib support for Linux oldld, aout, or coff.
11231: linux*oldld* | linux*aout* | linux*coff*)
11232: dynamic_linker=no
11233: ;;
11234:
11235: # This must be glibc/ELF.
11236: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11237: version_type=linux # correct to gnu/linux during the next big refactor
11238: need_lib_prefix=no
11239: need_version=no
11240: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241: soname_spec='${libname}${release}${shared_ext}$major'
11242: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11243: shlibpath_var=LD_LIBRARY_PATH
11244: shlibpath_overrides_runpath=no
11245:
11246: # Some binutils ld are patched to set DT_RUNPATH
1.31 moko 11247: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11248: $as_echo_n "(cached) " >&6
1.23 moko 11249: else
11250: lt_cv_shlibpath_overrides_runpath=no
11251: save_LDFLAGS=$LDFLAGS
11252: save_libdir=$libdir
11253: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11254: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.31 moko 11255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11256: /* end confdefs.h. */
11257:
11258: int
11259: main ()
11260: {
11261:
11262: ;
11263: return 0;
11264: }
11265: _ACEOF
1.31 moko 11266: if ac_fn_c_try_link "$LINENO"; then :
11267: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.23 moko 11268: lt_cv_shlibpath_overrides_runpath=yes
11269: fi
11270: fi
1.31 moko 11271: rm -f core conftest.err conftest.$ac_objext \
11272: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11273: LDFLAGS=$save_LDFLAGS
11274: libdir=$save_libdir
11275:
11276: fi
11277:
11278: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11279:
11280: # This implies no fast_install, which is unacceptable.
11281: # Some rework will be needed to allow for fast_install
11282: # before this can be enabled.
11283: hardcode_into_libs=yes
11284:
11285: # Append ld.so.conf contents to the search path
11286: if test -f /etc/ld.so.conf; then
11287: 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' ' '`
11288: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11289: fi
11290:
11291: # We used to test for /lib/ld.so.1 and disable shared libraries on
11292: # powerpc, because MkLinux only supported shared libraries with the
11293: # GNU dynamic linker. Since this was broken with cross compilers,
11294: # most powerpc-linux boxes support dynamic linking these days and
11295: # people can always --disable-shared, the test was removed, and we
11296: # assume the GNU/Linux dynamic linker is in use.
11297: dynamic_linker='GNU/Linux ld.so'
11298: ;;
11299:
11300: netbsd*)
11301: version_type=sunos
11302: need_lib_prefix=no
11303: need_version=no
11304: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11305: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11306: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11307: dynamic_linker='NetBSD (a.out) ld.so'
11308: else
11309: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11310: soname_spec='${libname}${release}${shared_ext}$major'
11311: dynamic_linker='NetBSD ld.elf_so'
11312: fi
11313: shlibpath_var=LD_LIBRARY_PATH
11314: shlibpath_overrides_runpath=yes
11315: hardcode_into_libs=yes
11316: ;;
11317:
11318: newsos6)
11319: version_type=linux # correct to gnu/linux during the next big refactor
11320: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321: shlibpath_var=LD_LIBRARY_PATH
11322: shlibpath_overrides_runpath=yes
11323: ;;
11324:
11325: *nto* | *qnx*)
11326: version_type=qnx
11327: need_lib_prefix=no
11328: need_version=no
11329: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11330: soname_spec='${libname}${release}${shared_ext}$major'
11331: shlibpath_var=LD_LIBRARY_PATH
11332: shlibpath_overrides_runpath=no
11333: hardcode_into_libs=yes
11334: dynamic_linker='ldqnx.so'
11335: ;;
11336:
11337: openbsd*)
11338: version_type=sunos
11339: sys_lib_dlsearch_path_spec="/usr/lib"
11340: need_lib_prefix=no
11341: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11342: case $host_os in
11343: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11344: *) need_version=no ;;
11345: esac
11346: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11347: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11348: shlibpath_var=LD_LIBRARY_PATH
11349: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11350: case $host_os in
11351: openbsd2.[89] | openbsd2.[89].*)
11352: shlibpath_overrides_runpath=no
11353: ;;
11354: *)
11355: shlibpath_overrides_runpath=yes
11356: ;;
11357: esac
11358: else
11359: shlibpath_overrides_runpath=yes
11360: fi
11361: ;;
11362:
11363: os2*)
11364: libname_spec='$name'
11365: shrext_cmds=".dll"
11366: need_lib_prefix=no
11367: library_names_spec='$libname${shared_ext} $libname.a'
11368: dynamic_linker='OS/2 ld.exe'
11369: shlibpath_var=LIBPATH
11370: ;;
11371:
11372: osf3* | osf4* | osf5*)
11373: version_type=osf
11374: need_lib_prefix=no
11375: need_version=no
11376: soname_spec='${libname}${release}${shared_ext}$major'
11377: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378: shlibpath_var=LD_LIBRARY_PATH
11379: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11380: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11381: ;;
11382:
11383: rdos*)
11384: dynamic_linker=no
11385: ;;
11386:
11387: solaris*)
11388: version_type=linux # correct to gnu/linux during the next big refactor
11389: need_lib_prefix=no
11390: need_version=no
11391: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392: soname_spec='${libname}${release}${shared_ext}$major'
11393: shlibpath_var=LD_LIBRARY_PATH
11394: shlibpath_overrides_runpath=yes
11395: hardcode_into_libs=yes
11396: # ldd complains unless libraries are executable
11397: postinstall_cmds='chmod +x $lib'
11398: ;;
11399:
11400: sunos4*)
11401: version_type=sunos
11402: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11403: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11404: shlibpath_var=LD_LIBRARY_PATH
11405: shlibpath_overrides_runpath=yes
11406: if test "$with_gnu_ld" = yes; then
11407: need_lib_prefix=no
11408: fi
11409: need_version=yes
11410: ;;
11411:
11412: sysv4 | sysv4.3*)
11413: version_type=linux # correct to gnu/linux during the next big refactor
11414: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415: soname_spec='${libname}${release}${shared_ext}$major'
11416: shlibpath_var=LD_LIBRARY_PATH
11417: case $host_vendor in
11418: sni)
11419: shlibpath_overrides_runpath=no
11420: need_lib_prefix=no
11421: runpath_var=LD_RUN_PATH
11422: ;;
11423: siemens)
11424: need_lib_prefix=no
11425: ;;
11426: motorola)
11427: need_lib_prefix=no
11428: need_version=no
11429: shlibpath_overrides_runpath=no
11430: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11431: ;;
11432: esac
11433: ;;
11434:
11435: sysv4*MP*)
11436: if test -d /usr/nec ;then
11437: version_type=linux # correct to gnu/linux during the next big refactor
11438: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11439: soname_spec='$libname${shared_ext}.$major'
11440: shlibpath_var=LD_LIBRARY_PATH
11441: fi
11442: ;;
11443:
11444: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11445: version_type=freebsd-elf
11446: need_lib_prefix=no
11447: need_version=no
11448: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11449: soname_spec='${libname}${release}${shared_ext}$major'
11450: shlibpath_var=LD_LIBRARY_PATH
11451: shlibpath_overrides_runpath=yes
11452: hardcode_into_libs=yes
11453: if test "$with_gnu_ld" = yes; then
11454: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11455: else
11456: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11457: case $host_os in
11458: sco3.2v5*)
11459: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11460: ;;
11461: esac
11462: fi
11463: sys_lib_dlsearch_path_spec='/usr/lib'
11464: ;;
11465:
11466: tpf*)
11467: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11468: version_type=linux # correct to gnu/linux during the next big refactor
11469: need_lib_prefix=no
11470: need_version=no
11471: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472: shlibpath_var=LD_LIBRARY_PATH
11473: shlibpath_overrides_runpath=no
11474: hardcode_into_libs=yes
11475: ;;
11476:
11477: uts4*)
11478: version_type=linux # correct to gnu/linux during the next big refactor
11479: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480: soname_spec='${libname}${release}${shared_ext}$major'
11481: shlibpath_var=LD_LIBRARY_PATH
11482: ;;
11483:
11484: *)
11485: dynamic_linker=no
11486: ;;
11487: esac
1.31 moko 11488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11489: $as_echo "$dynamic_linker" >&6; }
1.23 moko 11490: test "$dynamic_linker" = no && can_build_shared=no
11491:
11492: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11493: if test "$GCC" = yes; then
11494: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11495: fi
11496:
11497: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11498: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11499: fi
11500: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11501: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11502: fi
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:
11589:
11590:
11591:
11592:
11593:
11594:
1.31 moko 11595: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11596: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.23 moko 11597: hardcode_action=
11598: if test -n "$hardcode_libdir_flag_spec" ||
11599: test -n "$runpath_var" ||
11600: test "X$hardcode_automatic" = "Xyes" ; then
11601:
11602: # We can hardcode non-existent directories.
11603: if test "$hardcode_direct" != no &&
11604: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11605: # have to relink, otherwise we might link with an installed library
11606: # when we should be linking with a yet-to-be-installed one
11607: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11608: test "$hardcode_minus_L" != no; then
11609: # Linking always hardcodes the temporary library directory.
11610: hardcode_action=relink
11611: else
11612: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11613: hardcode_action=immediate
11614: fi
11615: else
11616: # We cannot hardcode anything, or else we can only hardcode existing
11617: # directories.
11618: hardcode_action=unsupported
11619: fi
1.31 moko 11620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11621: $as_echo "$hardcode_action" >&6; }
1.23 moko 11622:
11623: if test "$hardcode_action" = relink ||
11624: test "$inherit_rpath" = yes; then
11625: # Fast installation is not supported
11626: enable_fast_install=no
11627: elif test "$shlibpath_overrides_runpath" = yes ||
11628: test "$enable_shared" = no; then
11629: # Fast installation is not necessary
11630: enable_fast_install=needless
11631: fi
11632:
11633:
11634:
11635:
11636:
11637:
11638: if test "x$enable_dlopen" != xyes; then
11639: enable_dlopen=unknown
11640: enable_dlopen_self=unknown
11641: enable_dlopen_self_static=unknown
11642: else
11643: lt_cv_dlopen=no
11644: lt_cv_dlopen_libs=
11645:
11646: case $host_os in
11647: beos*)
11648: lt_cv_dlopen="load_add_on"
11649: lt_cv_dlopen_libs=
11650: lt_cv_dlopen_self=yes
11651: ;;
11652:
11653: mingw* | pw32* | cegcc*)
11654: lt_cv_dlopen="LoadLibrary"
11655: lt_cv_dlopen_libs=
11656: ;;
11657:
11658: cygwin*)
11659: lt_cv_dlopen="dlopen"
11660: lt_cv_dlopen_libs=
11661: ;;
11662:
11663: darwin*)
11664: # if libdl is installed we need to link against it
1.31 moko 11665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11666: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11667: if ${ac_cv_lib_dl_dlopen+:} false; then :
11668: $as_echo_n "(cached) " >&6
1.23 moko 11669: else
11670: ac_check_lib_save_LIBS=$LIBS
11671: LIBS="-ldl $LIBS"
1.31 moko 11672: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11673: /* end confdefs.h. */
11674:
1.31 moko 11675: /* Override any GCC internal prototype to avoid an error.
11676: Use char because int might match the return type of a GCC
11677: builtin and then its argument prototype would still apply. */
1.23 moko 11678: #ifdef __cplusplus
11679: extern "C"
11680: #endif
11681: char dlopen ();
11682: int
11683: main ()
11684: {
1.31 moko 11685: return dlopen ();
1.23 moko 11686: ;
11687: return 0;
11688: }
11689: _ACEOF
1.31 moko 11690: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11691: ac_cv_lib_dl_dlopen=yes
11692: else
1.31 moko 11693: ac_cv_lib_dl_dlopen=no
1.23 moko 11694: fi
1.31 moko 11695: rm -f core conftest.err conftest.$ac_objext \
11696: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11697: LIBS=$ac_check_lib_save_LIBS
11698: fi
1.31 moko 11699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11700: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11701: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.23 moko 11702: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11703: else
11704:
11705: lt_cv_dlopen="dyld"
11706: lt_cv_dlopen_libs=
11707: lt_cv_dlopen_self=yes
11708:
11709: fi
11710:
11711: ;;
11712:
11713: *)
1.31 moko 11714: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11715: if test "x$ac_cv_func_shl_load" = xyes; then :
1.23 moko 11716: lt_cv_dlopen="shl_load"
11717: else
1.31 moko 11718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11719: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11720: if ${ac_cv_lib_dld_shl_load+:} false; then :
11721: $as_echo_n "(cached) " >&6
1.23 moko 11722: else
1.31 moko 11723: ac_check_lib_save_LIBS=$LIBS
11724: LIBS="-ldld $LIBS"
11725: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11726: /* end confdefs.h. */
11727:
1.31 moko 11728: /* Override any GCC internal prototype to avoid an error.
11729: Use char because int might match the return type of a GCC
11730: builtin and then its argument prototype would still apply. */
1.23 moko 11731: #ifdef __cplusplus
11732: extern "C"
11733: #endif
1.31 moko 11734: char shl_load ();
1.23 moko 11735: int
11736: main ()
11737: {
1.31 moko 11738: return shl_load ();
1.23 moko 11739: ;
11740: return 0;
11741: }
11742: _ACEOF
1.31 moko 11743: if ac_fn_c_try_link "$LINENO"; then :
11744: ac_cv_lib_dld_shl_load=yes
1.23 moko 11745: else
1.31 moko 11746: ac_cv_lib_dld_shl_load=no
1.23 moko 11747: fi
1.31 moko 11748: rm -f core conftest.err conftest.$ac_objext \
11749: conftest$ac_exeext conftest.$ac_ext
11750: LIBS=$ac_check_lib_save_LIBS
1.23 moko 11751: fi
1.31 moko 11752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11753: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11754: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11755: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11756: else
11757: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11758: if test "x$ac_cv_func_dlopen" = xyes; then :
1.23 moko 11759: lt_cv_dlopen="dlopen"
11760: else
1.31 moko 11761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11762: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11763: if ${ac_cv_lib_dl_dlopen+:} false; then :
11764: $as_echo_n "(cached) " >&6
1.23 moko 11765: else
11766: ac_check_lib_save_LIBS=$LIBS
11767: LIBS="-ldl $LIBS"
1.31 moko 11768: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11769: /* end confdefs.h. */
11770:
1.31 moko 11771: /* Override any GCC internal prototype to avoid an error.
11772: Use char because int might match the return type of a GCC
11773: builtin and then its argument prototype would still apply. */
1.23 moko 11774: #ifdef __cplusplus
11775: extern "C"
11776: #endif
11777: char dlopen ();
11778: int
11779: main ()
11780: {
1.31 moko 11781: return dlopen ();
1.23 moko 11782: ;
11783: return 0;
11784: }
11785: _ACEOF
1.31 moko 11786: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11787: ac_cv_lib_dl_dlopen=yes
11788: else
1.31 moko 11789: ac_cv_lib_dl_dlopen=no
1.23 moko 11790: fi
1.31 moko 11791: rm -f core conftest.err conftest.$ac_objext \
11792: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11793: LIBS=$ac_check_lib_save_LIBS
11794: fi
1.31 moko 11795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11796: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11797: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.23 moko 11798: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11799: else
1.31 moko 11800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11801: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11802: if ${ac_cv_lib_svld_dlopen+:} false; then :
11803: $as_echo_n "(cached) " >&6
1.23 moko 11804: else
11805: ac_check_lib_save_LIBS=$LIBS
11806: LIBS="-lsvld $LIBS"
1.31 moko 11807: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11808: /* end confdefs.h. */
11809:
1.31 moko 11810: /* Override any GCC internal prototype to avoid an error.
11811: Use char because int might match the return type of a GCC
11812: builtin and then its argument prototype would still apply. */
1.23 moko 11813: #ifdef __cplusplus
11814: extern "C"
11815: #endif
11816: char dlopen ();
11817: int
11818: main ()
11819: {
1.31 moko 11820: return dlopen ();
1.23 moko 11821: ;
11822: return 0;
11823: }
11824: _ACEOF
1.31 moko 11825: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11826: ac_cv_lib_svld_dlopen=yes
11827: else
1.31 moko 11828: ac_cv_lib_svld_dlopen=no
1.23 moko 11829: fi
1.31 moko 11830: rm -f core conftest.err conftest.$ac_objext \
11831: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11832: LIBS=$ac_check_lib_save_LIBS
11833: fi
1.31 moko 11834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11835: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11836: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.23 moko 11837: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11838: else
1.31 moko 11839: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11840: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11841: if ${ac_cv_lib_dld_dld_link+:} false; then :
11842: $as_echo_n "(cached) " >&6
1.23 moko 11843: else
11844: ac_check_lib_save_LIBS=$LIBS
11845: LIBS="-ldld $LIBS"
1.31 moko 11846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 11847: /* end confdefs.h. */
11848:
1.31 moko 11849: /* Override any GCC internal prototype to avoid an error.
11850: Use char because int might match the return type of a GCC
11851: builtin and then its argument prototype would still apply. */
1.23 moko 11852: #ifdef __cplusplus
11853: extern "C"
11854: #endif
11855: char dld_link ();
11856: int
11857: main ()
11858: {
1.31 moko 11859: return dld_link ();
1.23 moko 11860: ;
11861: return 0;
11862: }
11863: _ACEOF
1.31 moko 11864: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 11865: ac_cv_lib_dld_dld_link=yes
11866: else
1.31 moko 11867: ac_cv_lib_dld_dld_link=no
1.23 moko 11868: fi
1.31 moko 11869: rm -f core conftest.err conftest.$ac_objext \
11870: conftest$ac_exeext conftest.$ac_ext
1.23 moko 11871: LIBS=$ac_check_lib_save_LIBS
11872: fi
1.31 moko 11873: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11874: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11875: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.23 moko 11876: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11877: fi
11878:
11879:
11880: fi
11881:
11882:
11883: fi
11884:
11885:
11886: fi
11887:
11888:
11889: fi
11890:
11891:
11892: fi
11893:
11894: ;;
11895: esac
11896:
11897: if test "x$lt_cv_dlopen" != xno; then
11898: enable_dlopen=yes
11899: else
11900: enable_dlopen=no
11901: fi
11902:
11903: case $lt_cv_dlopen in
11904: dlopen)
11905: save_CPPFLAGS="$CPPFLAGS"
11906: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11907:
11908: save_LDFLAGS="$LDFLAGS"
11909: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11910:
11911: save_LIBS="$LIBS"
11912: LIBS="$lt_cv_dlopen_libs $LIBS"
11913:
1.31 moko 11914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11915: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11916: if ${lt_cv_dlopen_self+:} false; then :
11917: $as_echo_n "(cached) " >&6
1.23 moko 11918: else
11919: if test "$cross_compiling" = yes; then :
11920: lt_cv_dlopen_self=cross
11921: else
11922: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11923: lt_status=$lt_dlunknown
11924: cat > conftest.$ac_ext <<_LT_EOF
11925: #line $LINENO "configure"
11926: #include "confdefs.h"
11927:
11928: #if HAVE_DLFCN_H
11929: #include <dlfcn.h>
11930: #endif
11931:
11932: #include <stdio.h>
11933:
11934: #ifdef RTLD_GLOBAL
11935: # define LT_DLGLOBAL RTLD_GLOBAL
11936: #else
11937: # ifdef DL_GLOBAL
11938: # define LT_DLGLOBAL DL_GLOBAL
11939: # else
11940: # define LT_DLGLOBAL 0
11941: # endif
11942: #endif
11943:
11944: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11945: find out it does not work in some platform. */
11946: #ifndef LT_DLLAZY_OR_NOW
11947: # ifdef RTLD_LAZY
11948: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11949: # else
11950: # ifdef DL_LAZY
11951: # define LT_DLLAZY_OR_NOW DL_LAZY
11952: # else
11953: # ifdef RTLD_NOW
11954: # define LT_DLLAZY_OR_NOW RTLD_NOW
11955: # else
11956: # ifdef DL_NOW
11957: # define LT_DLLAZY_OR_NOW DL_NOW
11958: # else
11959: # define LT_DLLAZY_OR_NOW 0
11960: # endif
11961: # endif
11962: # endif
11963: # endif
11964: #endif
11965:
11966: /* When -fvisbility=hidden is used, assume the code has been annotated
11967: correspondingly for the symbols needed. */
11968: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11969: int fnord () __attribute__((visibility("default")));
11970: #endif
11971:
11972: int fnord () { return 42; }
11973: int main ()
11974: {
11975: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11976: int status = $lt_dlunknown;
11977:
11978: if (self)
11979: {
11980: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11981: else
11982: {
11983: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11984: else puts (dlerror ());
11985: }
11986: /* dlclose (self); */
11987: }
11988: else
11989: puts (dlerror ());
11990:
11991: return status;
11992: }
11993: _LT_EOF
1.31 moko 11994: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 11995: (eval $ac_link) 2>&5
11996: ac_status=$?
1.31 moko 11997: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11998: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.23 moko 11999: (./conftest; exit; ) >&5 2>/dev/null
12000: lt_status=$?
12001: case x$lt_status in
12002: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12003: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12004: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12005: esac
12006: else :
12007: # compilation failed
12008: lt_cv_dlopen_self=no
12009: fi
12010: fi
12011: rm -fr conftest*
12012:
12013:
12014: fi
1.31 moko 12015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12016: $as_echo "$lt_cv_dlopen_self" >&6; }
1.23 moko 12017:
12018: if test "x$lt_cv_dlopen_self" = xyes; then
12019: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.31 moko 12020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12021: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12022: if ${lt_cv_dlopen_self_static+:} false; then :
12023: $as_echo_n "(cached) " >&6
1.23 moko 12024: else
12025: if test "$cross_compiling" = yes; then :
12026: lt_cv_dlopen_self_static=cross
12027: else
12028: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12029: lt_status=$lt_dlunknown
12030: cat > conftest.$ac_ext <<_LT_EOF
12031: #line $LINENO "configure"
12032: #include "confdefs.h"
12033:
12034: #if HAVE_DLFCN_H
12035: #include <dlfcn.h>
12036: #endif
12037:
12038: #include <stdio.h>
12039:
12040: #ifdef RTLD_GLOBAL
12041: # define LT_DLGLOBAL RTLD_GLOBAL
12042: #else
12043: # ifdef DL_GLOBAL
12044: # define LT_DLGLOBAL DL_GLOBAL
12045: # else
12046: # define LT_DLGLOBAL 0
12047: # endif
12048: #endif
12049:
12050: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12051: find out it does not work in some platform. */
12052: #ifndef LT_DLLAZY_OR_NOW
12053: # ifdef RTLD_LAZY
12054: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12055: # else
12056: # ifdef DL_LAZY
12057: # define LT_DLLAZY_OR_NOW DL_LAZY
12058: # else
12059: # ifdef RTLD_NOW
12060: # define LT_DLLAZY_OR_NOW RTLD_NOW
12061: # else
12062: # ifdef DL_NOW
12063: # define LT_DLLAZY_OR_NOW DL_NOW
12064: # else
12065: # define LT_DLLAZY_OR_NOW 0
12066: # endif
12067: # endif
12068: # endif
12069: # endif
12070: #endif
12071:
12072: /* When -fvisbility=hidden is used, assume the code has been annotated
12073: correspondingly for the symbols needed. */
12074: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12075: int fnord () __attribute__((visibility("default")));
12076: #endif
12077:
12078: int fnord () { return 42; }
12079: int main ()
12080: {
12081: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12082: int status = $lt_dlunknown;
12083:
12084: if (self)
12085: {
12086: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12087: else
12088: {
12089: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12090: else puts (dlerror ());
12091: }
12092: /* dlclose (self); */
12093: }
12094: else
12095: puts (dlerror ());
12096:
12097: return status;
12098: }
12099: _LT_EOF
1.31 moko 12100: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 12101: (eval $ac_link) 2>&5
12102: ac_status=$?
1.31 moko 12103: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12104: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.23 moko 12105: (./conftest; exit; ) >&5 2>/dev/null
12106: lt_status=$?
12107: case x$lt_status in
12108: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12109: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12110: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12111: esac
12112: else :
12113: # compilation failed
12114: lt_cv_dlopen_self_static=no
12115: fi
12116: fi
12117: rm -fr conftest*
12118:
12119:
12120: fi
1.31 moko 12121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12122: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.23 moko 12123: fi
12124:
12125: CPPFLAGS="$save_CPPFLAGS"
12126: LDFLAGS="$save_LDFLAGS"
12127: LIBS="$save_LIBS"
12128: ;;
12129: esac
12130:
12131: case $lt_cv_dlopen_self in
12132: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12133: *) enable_dlopen_self=unknown ;;
12134: esac
12135:
12136: case $lt_cv_dlopen_self_static in
12137: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12138: *) enable_dlopen_self_static=unknown ;;
12139: esac
12140: fi
12141:
12142:
12143:
12144:
12145:
12146:
12147:
12148:
12149:
12150:
12151:
12152:
12153:
12154:
12155:
12156:
12157:
12158: striplib=
12159: old_striplib=
1.31 moko 12160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12161: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.23 moko 12162: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12163: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12164: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.31 moko 12165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12166: $as_echo "yes" >&6; }
1.23 moko 12167: else
12168: # FIXME - insert some real tests, host_os isn't really good enough
12169: case $host_os in
12170: darwin*)
12171: if test -n "$STRIP" ; then
12172: striplib="$STRIP -x"
12173: old_striplib="$STRIP -S"
1.31 moko 12174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12175: $as_echo "yes" >&6; }
1.23 moko 12176: else
1.31 moko 12177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178: $as_echo "no" >&6; }
1.23 moko 12179: fi
12180: ;;
12181: *)
1.31 moko 12182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183: $as_echo "no" >&6; }
1.23 moko 12184: ;;
12185: esac
12186: fi
12187:
12188:
12189:
12190:
12191:
12192:
12193:
12194:
12195:
12196:
12197:
12198:
12199: # Report which library types will actually be built
1.31 moko 12200: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12201: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12203: $as_echo "$can_build_shared" >&6; }
1.23 moko 12204:
1.31 moko 12205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12206: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.23 moko 12207: test "$can_build_shared" = "no" && enable_shared=no
12208:
12209: # On AIX, shared libraries and static libraries use the same namespace, and
12210: # are all built from PIC.
12211: case $host_os in
12212: aix3*)
12213: test "$enable_shared" = yes && enable_static=no
12214: if test -n "$RANLIB"; then
12215: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12216: postinstall_cmds='$RANLIB $lib'
12217: fi
12218: ;;
12219:
12220: aix[4-9]*)
12221: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12222: test "$enable_shared" = yes && enable_static=no
12223: fi
12224: ;;
12225: esac
1.31 moko 12226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12227: $as_echo "$enable_shared" >&6; }
1.23 moko 12228:
1.31 moko 12229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12230: $as_echo_n "checking whether to build static libraries... " >&6; }
1.23 moko 12231: # Make sure either enable_shared or enable_static is yes.
12232: test "$enable_shared" = yes || enable_static=yes
1.31 moko 12233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12234: $as_echo "$enable_static" >&6; }
1.23 moko 12235:
12236:
12237:
12238:
12239: fi
12240: ac_ext=c
12241: ac_cpp='$CPP $CPPFLAGS'
12242: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12243: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12244: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12245:
12246: CC="$lt_save_CC"
12247:
12248: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12249: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12250: (test "X$CXX" != "Xg++"))) ; then
1.31 moko 12251: ac_ext=cpp
1.23 moko 12252: ac_cpp='$CXXCPP $CPPFLAGS'
12253: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12254: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12255: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.31 moko 12256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12257: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.23 moko 12258: if test -z "$CXXCPP"; then
1.31 moko 12259: if ${ac_cv_prog_CXXCPP+:} false; then :
12260: $as_echo_n "(cached) " >&6
1.23 moko 12261: else
12262: # Double quotes because CXXCPP needs to be expanded
12263: for CXXCPP in "$CXX -E" "/lib/cpp"
12264: do
12265: ac_preproc_ok=false
12266: for ac_cxx_preproc_warn_flag in '' yes
12267: do
12268: # Use a header file that comes with gcc, so configuring glibc
12269: # with a fresh cross-compiler works.
12270: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12271: # <limits.h> exists even on freestanding compilers.
12272: # On the NeXT, cc -E runs the code through the compiler's parser,
12273: # not just through cpp. "Syntax error" is here to catch this case.
1.31 moko 12274: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12275: /* end confdefs.h. */
12276: #ifdef __STDC__
12277: # include <limits.h>
12278: #else
12279: # include <assert.h>
12280: #endif
12281: Syntax error
12282: _ACEOF
1.31 moko 12283: if ac_fn_cxx_try_cpp "$LINENO"; then :
12284:
1.23 moko 12285: else
12286: # Broken: fails on valid input.
12287: continue
12288: fi
1.31 moko 12289: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12290:
1.31 moko 12291: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 12292: # can be detected and how.
1.31 moko 12293: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12294: /* end confdefs.h. */
12295: #include <ac_nonexistent.h>
12296: _ACEOF
1.31 moko 12297: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.23 moko 12298: # Broken: success on invalid input.
12299: continue
12300: else
12301: # Passes both tests.
12302: ac_preproc_ok=:
12303: break
12304: fi
1.31 moko 12305: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12306:
12307: done
12308: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 moko 12309: rm -f conftest.i conftest.err conftest.$ac_ext
12310: if $ac_preproc_ok; then :
1.23 moko 12311: break
12312: fi
12313:
12314: done
12315: ac_cv_prog_CXXCPP=$CXXCPP
12316:
12317: fi
12318: CXXCPP=$ac_cv_prog_CXXCPP
12319: else
12320: ac_cv_prog_CXXCPP=$CXXCPP
12321: fi
1.31 moko 12322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12323: $as_echo "$CXXCPP" >&6; }
1.23 moko 12324: ac_preproc_ok=false
12325: for ac_cxx_preproc_warn_flag in '' yes
12326: do
12327: # Use a header file that comes with gcc, so configuring glibc
12328: # with a fresh cross-compiler works.
12329: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12330: # <limits.h> exists even on freestanding compilers.
12331: # On the NeXT, cc -E runs the code through the compiler's parser,
12332: # not just through cpp. "Syntax error" is here to catch this case.
1.31 moko 12333: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12334: /* end confdefs.h. */
12335: #ifdef __STDC__
12336: # include <limits.h>
12337: #else
12338: # include <assert.h>
12339: #endif
12340: Syntax error
12341: _ACEOF
1.31 moko 12342: if ac_fn_cxx_try_cpp "$LINENO"; then :
12343:
1.23 moko 12344: else
12345: # Broken: fails on valid input.
12346: continue
12347: fi
1.31 moko 12348: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12349:
1.31 moko 12350: # OK, works on sane cases. Now check whether nonexistent headers
1.23 moko 12351: # can be detected and how.
1.31 moko 12352: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12353: /* end confdefs.h. */
12354: #include <ac_nonexistent.h>
12355: _ACEOF
1.31 moko 12356: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.23 moko 12357: # Broken: success on invalid input.
12358: continue
12359: else
12360: # Passes both tests.
12361: ac_preproc_ok=:
12362: break
12363: fi
1.31 moko 12364: rm -f conftest.err conftest.i conftest.$ac_ext
1.23 moko 12365:
12366: done
12367: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.31 moko 12368: rm -f conftest.i conftest.err conftest.$ac_ext
12369: if $ac_preproc_ok; then :
12370:
1.23 moko 12371: else
1.31 moko 12372: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12373: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12374: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12375: See \`config.log' for more details" "$LINENO" 5; }
1.23 moko 12376: fi
12377:
12378: ac_ext=c
12379: ac_cpp='$CPP $CPPFLAGS'
12380: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12381: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12382: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12383:
12384: else
12385: _lt_caught_CXX_error=yes
12386: fi
12387:
1.31 moko 12388: ac_ext=cpp
1.23 moko 12389: ac_cpp='$CXXCPP $CPPFLAGS'
12390: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12391: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12392: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12393:
12394: archive_cmds_need_lc_CXX=no
12395: allow_undefined_flag_CXX=
12396: always_export_symbols_CXX=no
12397: archive_expsym_cmds_CXX=
12398: compiler_needs_object_CXX=no
12399: export_dynamic_flag_spec_CXX=
12400: hardcode_direct_CXX=no
12401: hardcode_direct_absolute_CXX=no
12402: hardcode_libdir_flag_spec_CXX=
12403: hardcode_libdir_separator_CXX=
12404: hardcode_minus_L_CXX=no
12405: hardcode_shlibpath_var_CXX=unsupported
12406: hardcode_automatic_CXX=no
12407: inherit_rpath_CXX=no
12408: module_cmds_CXX=
12409: module_expsym_cmds_CXX=
12410: link_all_deplibs_CXX=unknown
12411: old_archive_cmds_CXX=$old_archive_cmds
12412: reload_flag_CXX=$reload_flag
12413: reload_cmds_CXX=$reload_cmds
12414: no_undefined_flag_CXX=
12415: whole_archive_flag_spec_CXX=
12416: enable_shared_with_static_runtimes_CXX=no
12417:
12418: # Source file extension for C++ test sources.
12419: ac_ext=cpp
12420:
12421: # Object file extension for compiled C++ test sources.
12422: objext=o
12423: objext_CXX=$objext
12424:
12425: # No sense in running all these tests if we already determined that
12426: # the CXX compiler isn't working. Some variables (like enable_shared)
12427: # are currently assumed to apply to all compilers on this platform,
12428: # and will be corrupted by setting them based on a non-working compiler.
12429: if test "$_lt_caught_CXX_error" != yes; then
12430: # Code to be used in simple compile tests
12431: lt_simple_compile_test_code="int some_variable = 0;"
12432:
12433: # Code to be used in simple link tests
12434: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12435:
12436: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12437:
12438:
12439:
12440:
12441:
12442:
12443: # If no C compiler was specified, use CC.
12444: LTCC=${LTCC-"$CC"}
12445:
12446: # If no C compiler flags were specified, use CFLAGS.
12447: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12448:
12449: # Allow CC to be a program name with arguments.
12450: compiler=$CC
12451:
12452:
12453: # save warnings/boilerplate of simple test code
12454: ac_outfile=conftest.$ac_objext
12455: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12456: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12457: _lt_compiler_boilerplate=`cat conftest.err`
12458: $RM conftest*
12459:
12460: ac_outfile=conftest.$ac_objext
12461: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12462: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12463: _lt_linker_boilerplate=`cat conftest.err`
12464: $RM -r conftest*
12465:
12466:
12467: # Allow CC to be a program name with arguments.
12468: lt_save_CC=$CC
12469: lt_save_CFLAGS=$CFLAGS
12470: lt_save_LD=$LD
12471: lt_save_GCC=$GCC
12472: GCC=$GXX
12473: lt_save_with_gnu_ld=$with_gnu_ld
12474: lt_save_path_LD=$lt_cv_path_LD
12475: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12476: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12477: else
12478: $as_unset lt_cv_prog_gnu_ld
12479: fi
12480: if test -n "${lt_cv_path_LDCXX+set}"; then
12481: lt_cv_path_LD=$lt_cv_path_LDCXX
12482: else
12483: $as_unset lt_cv_path_LD
12484: fi
12485: test -z "${LDCXX+set}" || LD=$LDCXX
12486: CC=${CXX-"c++"}
12487: CFLAGS=$CXXFLAGS
12488: compiler=$CC
12489: compiler_CXX=$CC
12490: for cc_temp in $compiler""; do
12491: case $cc_temp in
12492: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12493: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12494: \-*) ;;
12495: *) break;;
12496: esac
12497: done
12498: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12499:
12500:
12501: if test -n "$compiler"; then
12502: # We don't want -fno-exception when compiling C++ code, so set the
12503: # no_builtin_flag separately
12504: if test "$GXX" = yes; then
12505: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12506: else
12507: lt_prog_compiler_no_builtin_flag_CXX=
12508: fi
12509:
12510: if test "$GXX" = yes; then
12511: # Set up default GNU C++ configuration
12512:
12513:
12514:
1.31 moko 12515: # Check whether --with-gnu-ld was given.
12516: if test "${with_gnu_ld+set}" = set; then :
12517: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.23 moko 12518: else
12519: with_gnu_ld=no
1.31 moko 12520: fi
12521:
1.23 moko 12522: ac_prog=ld
12523: if test "$GCC" = yes; then
12524: # Check if gcc -print-prog-name=ld gives a path.
1.31 moko 12525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12526: $as_echo_n "checking for ld used by $CC... " >&6; }
1.23 moko 12527: case $host in
12528: *-*-mingw*)
12529: # gcc leaves a trailing carriage return which upsets mingw
12530: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12531: *)
12532: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12533: esac
12534: case $ac_prog in
12535: # Accept absolute paths.
12536: [\\/]* | ?:[\\/]*)
12537: re_direlt='/[^/][^/]*/\.\./'
12538: # Canonicalize the pathname of ld
12539: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12540: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12541: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12542: done
12543: test -z "$LD" && LD="$ac_prog"
12544: ;;
12545: "")
12546: # If it fails, then pretend we aren't using GCC.
12547: ac_prog=ld
12548: ;;
12549: *)
12550: # If it is relative, then search for the first ld in PATH.
12551: with_gnu_ld=unknown
12552: ;;
12553: esac
12554: elif test "$with_gnu_ld" = yes; then
1.31 moko 12555: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12556: $as_echo_n "checking for GNU ld... " >&6; }
1.23 moko 12557: else
1.31 moko 12558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12559: $as_echo_n "checking for non-GNU ld... " >&6; }
1.23 moko 12560: fi
1.31 moko 12561: if ${lt_cv_path_LD+:} false; then :
12562: $as_echo_n "(cached) " >&6
1.23 moko 12563: else
12564: if test -z "$LD"; then
12565: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12566: for ac_dir in $PATH; do
12567: IFS="$lt_save_ifs"
12568: test -z "$ac_dir" && ac_dir=.
12569: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12570: lt_cv_path_LD="$ac_dir/$ac_prog"
12571: # Check to see if the program is GNU ld. I'd rather use --version,
12572: # but apparently some variants of GNU ld only accept -v.
12573: # Break only if it was the GNU/non-GNU ld that we prefer.
12574: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12575: *GNU* | *'with BFD'*)
12576: test "$with_gnu_ld" != no && break
12577: ;;
12578: *)
12579: test "$with_gnu_ld" != yes && break
12580: ;;
12581: esac
12582: fi
12583: done
12584: IFS="$lt_save_ifs"
12585: else
12586: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12587: fi
12588: fi
12589:
12590: LD="$lt_cv_path_LD"
12591: if test -n "$LD"; then
1.31 moko 12592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12593: $as_echo "$LD" >&6; }
1.23 moko 12594: else
1.31 moko 12595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596: $as_echo "no" >&6; }
1.23 moko 12597: fi
1.31 moko 12598: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12600: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12601: if ${lt_cv_prog_gnu_ld+:} false; then :
12602: $as_echo_n "(cached) " >&6
1.23 moko 12603: else
12604: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12605: case `$LD -v 2>&1 </dev/null` in
12606: *GNU* | *'with BFD'*)
12607: lt_cv_prog_gnu_ld=yes
12608: ;;
12609: *)
12610: lt_cv_prog_gnu_ld=no
12611: ;;
12612: esac
12613: fi
1.31 moko 12614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12615: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.23 moko 12616: with_gnu_ld=$lt_cv_prog_gnu_ld
12617:
12618:
12619:
12620:
12621:
12622:
12623:
12624: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12625: # archiving commands below assume that GNU ld is being used.
12626: if test "$with_gnu_ld" = yes; then
12627: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12628: 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'
12629:
12630: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12631: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12632:
12633: # If archive_cmds runs LD, not CC, wlarc should be empty
12634: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12635: # investigate it a little bit more. (MM)
12636: wlarc='${wl}'
12637:
12638: # ancient GNU ld didn't support --whole-archive et. al.
12639: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12640: $GREP 'no-whole-archive' > /dev/null; then
12641: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12642: else
12643: whole_archive_flag_spec_CXX=
12644: fi
12645: else
12646: with_gnu_ld=no
12647: wlarc=
12648:
12649: # A generic and very simple default shared library creation
12650: # command for GNU C++ for the case where it uses the native
12651: # linker, instead of GNU ld. If possible, this setting should
12652: # overridden to take advantage of the native linker features on
12653: # the platform it is being used on.
12654: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12655: fi
12656:
12657: # Commands to make compiler produce verbose output that lists
12658: # what "hidden" libraries, object files and flags are used when
12659: # linking a shared library.
12660: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12661:
12662: else
12663: GXX=no
12664: with_gnu_ld=no
12665: wlarc=
12666: fi
12667:
12668: # PORTME: fill in a description of your system's C++ link characteristics
1.31 moko 12669: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12670: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.23 moko 12671: ld_shlibs_CXX=yes
12672: case $host_os in
12673: aix3*)
12674: # FIXME: insert proper C++ library support
12675: ld_shlibs_CXX=no
12676: ;;
12677: aix[4-9]*)
12678: if test "$host_cpu" = ia64; then
12679: # On IA64, the linker does run time linking by default, so we don't
12680: # have to do anything special.
12681: aix_use_runtimelinking=no
12682: exp_sym_flag='-Bexport'
12683: no_entry_flag=""
12684: else
12685: aix_use_runtimelinking=no
12686:
12687: # Test if we are trying to use run time linking or normal
12688: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12689: # need to do runtime linking.
12690: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12691: for ld_flag in $LDFLAGS; do
12692: case $ld_flag in
12693: *-brtl*)
12694: aix_use_runtimelinking=yes
12695: break
12696: ;;
12697: esac
12698: done
12699: ;;
12700: esac
12701:
12702: exp_sym_flag='-bexport'
12703: no_entry_flag='-bnoentry'
12704: fi
12705:
12706: # When large executables or shared objects are built, AIX ld can
12707: # have problems creating the table of contents. If linking a library
12708: # or program results in "error TOC overflow" add -mminimal-toc to
12709: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12710: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12711:
12712: archive_cmds_CXX=''
12713: hardcode_direct_CXX=yes
12714: hardcode_direct_absolute_CXX=yes
12715: hardcode_libdir_separator_CXX=':'
12716: link_all_deplibs_CXX=yes
12717: file_list_spec_CXX='${wl}-f,'
12718:
12719: if test "$GXX" = yes; then
12720: case $host_os in aix4.[012]|aix4.[012].*)
12721: # We only want to do this on AIX 4.2 and lower, the check
12722: # below for broken collect2 doesn't work under 4.3+
12723: collect2name=`${CC} -print-prog-name=collect2`
12724: if test -f "$collect2name" &&
12725: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12726: then
12727: # We have reworked collect2
12728: :
12729: else
12730: # We have old collect2
12731: hardcode_direct_CXX=unsupported
12732: # It fails to find uninstalled libraries when the uninstalled
12733: # path is not listed in the libpath. Setting hardcode_minus_L
12734: # to unsupported forces relinking
12735: hardcode_minus_L_CXX=yes
12736: hardcode_libdir_flag_spec_CXX='-L$libdir'
12737: hardcode_libdir_separator_CXX=
12738: fi
12739: esac
12740: shared_flag='-shared'
12741: if test "$aix_use_runtimelinking" = yes; then
12742: shared_flag="$shared_flag "'${wl}-G'
12743: fi
12744: else
12745: # not using gcc
12746: if test "$host_cpu" = ia64; then
12747: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12748: # chokes on -Wl,-G. The following line is correct:
12749: shared_flag='-G'
12750: else
12751: if test "$aix_use_runtimelinking" = yes; then
12752: shared_flag='${wl}-G'
12753: else
12754: shared_flag='${wl}-bM:SRE'
12755: fi
12756: fi
12757: fi
12758:
12759: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12760: # It seems that -bexpall does not export symbols beginning with
12761: # underscore (_), so it is better to generate a list of symbols to
12762: # export.
12763: always_export_symbols_CXX=yes
12764: if test "$aix_use_runtimelinking" = yes; then
12765: # Warning - without using the other runtime loading flags (-brtl),
12766: # -berok will link without error, but may produce a broken library.
12767: allow_undefined_flag_CXX='-berok'
12768: # Determine the default libpath from the value encoded in an empty
12769: # executable.
12770: if test "${lt_cv_aix_libpath+set}" = set; then
12771: aix_libpath=$lt_cv_aix_libpath
12772: else
1.31 moko 12773: if ${lt_cv_aix_libpath__CXX+:} false; then :
12774: $as_echo_n "(cached) " >&6
1.23 moko 12775: else
1.31 moko 12776: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12777: /* end confdefs.h. */
12778:
12779: int
12780: main ()
12781: {
12782:
12783: ;
12784: return 0;
12785: }
12786: _ACEOF
1.31 moko 12787: if ac_fn_cxx_try_link "$LINENO"; then :
1.23 moko 12788:
12789: lt_aix_libpath_sed='
12790: /Import File Strings/,/^$/ {
12791: /^0/ {
12792: s/^0 *\([^ ]*\) *$/\1/
12793: p
12794: }
12795: }'
12796: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12797: # Check for a 64-bit object if we didn't find anything.
12798: if test -z "$lt_cv_aix_libpath__CXX"; then
12799: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12800: fi
12801: fi
1.31 moko 12802: rm -f core conftest.err conftest.$ac_objext \
12803: conftest$ac_exeext conftest.$ac_ext
1.23 moko 12804: if test -z "$lt_cv_aix_libpath__CXX"; then
12805: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12806: fi
12807:
12808: fi
12809:
12810: aix_libpath=$lt_cv_aix_libpath__CXX
12811: fi
12812:
12813: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12814:
12815: 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"
12816: else
12817: if test "$host_cpu" = ia64; then
12818: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12819: allow_undefined_flag_CXX="-z nodefs"
12820: 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"
12821: else
12822: # Determine the default libpath from the value encoded in an
12823: # empty executable.
12824: if test "${lt_cv_aix_libpath+set}" = set; then
12825: aix_libpath=$lt_cv_aix_libpath
12826: else
1.31 moko 12827: if ${lt_cv_aix_libpath__CXX+:} false; then :
12828: $as_echo_n "(cached) " >&6
1.23 moko 12829: else
1.31 moko 12830: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 12831: /* end confdefs.h. */
12832:
12833: int
12834: main ()
12835: {
12836:
12837: ;
12838: return 0;
12839: }
12840: _ACEOF
1.31 moko 12841: if ac_fn_cxx_try_link "$LINENO"; then :
1.23 moko 12842:
12843: lt_aix_libpath_sed='
12844: /Import File Strings/,/^$/ {
12845: /^0/ {
12846: s/^0 *\([^ ]*\) *$/\1/
12847: p
12848: }
12849: }'
12850: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12851: # Check for a 64-bit object if we didn't find anything.
12852: if test -z "$lt_cv_aix_libpath__CXX"; then
12853: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12854: fi
12855: fi
1.31 moko 12856: rm -f core conftest.err conftest.$ac_objext \
12857: conftest$ac_exeext conftest.$ac_ext
1.23 moko 12858: if test -z "$lt_cv_aix_libpath__CXX"; then
12859: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12860: fi
12861:
12862: fi
12863:
12864: aix_libpath=$lt_cv_aix_libpath__CXX
12865: fi
12866:
12867: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12868: # Warning - without using the other run time loading flags,
12869: # -berok will link without error, but may produce a broken library.
12870: no_undefined_flag_CXX=' ${wl}-bernotok'
12871: allow_undefined_flag_CXX=' ${wl}-berok'
12872: if test "$with_gnu_ld" = yes; then
12873: # We only use this code for GNU lds that support --whole-archive.
12874: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12875: else
12876: # Exported symbols can be pulled into shared objects from archives
12877: whole_archive_flag_spec_CXX='$convenience'
12878: fi
12879: archive_cmds_need_lc_CXX=yes
12880: # This is similar to how AIX traditionally builds its shared
12881: # libraries.
12882: 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'
12883: fi
12884: fi
12885: ;;
12886:
12887: beos*)
12888: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12889: allow_undefined_flag_CXX=unsupported
12890: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12891: # support --undefined. This deserves some investigation. FIXME
12892: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12893: else
12894: ld_shlibs_CXX=no
12895: fi
12896: ;;
12897:
12898: chorus*)
12899: case $cc_basename in
12900: *)
12901: # FIXME: insert proper C++ library support
12902: ld_shlibs_CXX=no
12903: ;;
12904: esac
12905: ;;
12906:
12907: cygwin* | mingw* | pw32* | cegcc*)
12908: case $GXX,$cc_basename in
12909: ,cl* | no,cl*)
12910: # Native MSVC
12911: # hardcode_libdir_flag_spec is actually meaningless, as there is
12912: # no search path for DLLs.
12913: hardcode_libdir_flag_spec_CXX=' '
12914: allow_undefined_flag_CXX=unsupported
12915: always_export_symbols_CXX=yes
12916: file_list_spec_CXX='@'
12917: # Tell ltmain to make .lib files, not .a files.
12918: libext=lib
12919: # Tell ltmain to make .dll files, not .so files.
12920: shrext_cmds=".dll"
12921: # FIXME: Setting linknames here is a bad hack.
12922: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12923: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12924: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12925: else
12926: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12927: fi~
12928: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12929: linknames='
12930: # The linker will not automatically build a static lib if we build a DLL.
12931: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12932: enable_shared_with_static_runtimes_CXX=yes
12933: # Don't use ranlib
12934: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12935: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12936: lt_tool_outputfile="@TOOL_OUTPUT@"~
12937: case $lt_outputfile in
12938: *.exe|*.EXE) ;;
12939: *)
12940: lt_outputfile="$lt_outputfile.exe"
12941: lt_tool_outputfile="$lt_tool_outputfile.exe"
12942: ;;
12943: esac~
12944: func_to_tool_file "$lt_outputfile"~
12945: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12946: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12947: $RM "$lt_outputfile.manifest";
12948: fi'
12949: ;;
12950: *)
12951: # g++
12952: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12953: # as there is no search path for DLLs.
12954: hardcode_libdir_flag_spec_CXX='-L$libdir'
12955: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12956: allow_undefined_flag_CXX=unsupported
12957: always_export_symbols_CXX=no
12958: enable_shared_with_static_runtimes_CXX=yes
12959:
12960: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12961: 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'
12962: # If the export-symbols file already is a .def file (1st line
12963: # is EXPORTS), use it as is; otherwise, prepend...
12964: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12965: cp $export_symbols $output_objdir/$soname.def;
12966: else
12967: echo EXPORTS > $output_objdir/$soname.def;
12968: cat $export_symbols >> $output_objdir/$soname.def;
12969: fi~
12970: $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'
12971: else
12972: ld_shlibs_CXX=no
12973: fi
12974: ;;
12975: esac
12976: ;;
12977: darwin* | rhapsody*)
12978:
12979:
12980: archive_cmds_need_lc_CXX=no
12981: hardcode_direct_CXX=no
12982: hardcode_automatic_CXX=yes
12983: hardcode_shlibpath_var_CXX=unsupported
12984: if test "$lt_cv_ld_force_load" = "yes"; then
12985: 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\"`'
12986:
12987: else
12988: whole_archive_flag_spec_CXX=''
12989: fi
12990: link_all_deplibs_CXX=yes
12991: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12992: case $cc_basename in
12993: ifort*) _lt_dar_can_shared=yes ;;
12994: *) _lt_dar_can_shared=$GCC ;;
12995: esac
12996: if test "$_lt_dar_can_shared" = "yes"; then
12997: output_verbose_link_cmd=func_echo_all
12998: 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}"
12999: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13000: 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}"
13001: 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}"
13002: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13003: 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}"
13004: 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}"
13005: fi
13006:
13007: else
13008: ld_shlibs_CXX=no
13009: fi
13010:
13011: ;;
13012:
13013: dgux*)
13014: case $cc_basename in
13015: ec++*)
13016: # FIXME: insert proper C++ library support
13017: ld_shlibs_CXX=no
13018: ;;
13019: ghcx*)
13020: # Green Hills C++ Compiler
13021: # FIXME: insert proper C++ library support
13022: ld_shlibs_CXX=no
13023: ;;
13024: *)
13025: # FIXME: insert proper C++ library support
13026: ld_shlibs_CXX=no
13027: ;;
13028: esac
13029: ;;
13030:
13031: freebsd2.*)
13032: # C++ shared libraries reported to be fairly broken before
13033: # switch to ELF
13034: ld_shlibs_CXX=no
13035: ;;
13036:
13037: freebsd-elf*)
13038: archive_cmds_need_lc_CXX=no
13039: ;;
13040:
13041: freebsd* | dragonfly*)
13042: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13043: # conventions
13044: ld_shlibs_CXX=yes
13045: ;;
13046:
13047: gnu*)
13048: ;;
13049:
13050: haiku*)
13051: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13052: link_all_deplibs_CXX=yes
13053: ;;
13054:
13055: hpux9*)
13056: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13057: hardcode_libdir_separator_CXX=:
13058: export_dynamic_flag_spec_CXX='${wl}-E'
13059: hardcode_direct_CXX=yes
13060: hardcode_minus_L_CXX=yes # Not in the search PATH,
13061: # but as the default
13062: # location of the library.
13063:
13064: case $cc_basename in
13065: CC*)
13066: # FIXME: insert proper C++ library support
13067: ld_shlibs_CXX=no
13068: ;;
13069: aCC*)
13070: 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'
13071: # Commands to make compiler produce verbose output that lists
13072: # what "hidden" libraries, object files and flags are used when
13073: # linking a shared library.
13074: #
13075: # There doesn't appear to be a way to prevent this compiler from
13076: # explicitly linking system object files so we need to strip them
13077: # from the output so that they don't get included in the library
13078: # dependencies.
13079: 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"'
13080: ;;
13081: *)
13082: if test "$GXX" = yes; then
13083: 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'
13084: else
13085: # FIXME: insert proper C++ library support
13086: ld_shlibs_CXX=no
13087: fi
13088: ;;
13089: esac
13090: ;;
13091:
13092: hpux10*|hpux11*)
13093: if test $with_gnu_ld = no; then
13094: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13095: hardcode_libdir_separator_CXX=:
13096:
13097: case $host_cpu in
13098: hppa*64*|ia64*)
13099: ;;
13100: *)
13101: export_dynamic_flag_spec_CXX='${wl}-E'
13102: ;;
13103: esac
13104: fi
13105: case $host_cpu in
13106: hppa*64*|ia64*)
13107: hardcode_direct_CXX=no
13108: hardcode_shlibpath_var_CXX=no
13109: ;;
13110: *)
13111: hardcode_direct_CXX=yes
13112: hardcode_direct_absolute_CXX=yes
13113: hardcode_minus_L_CXX=yes # Not in the search PATH,
13114: # but as the default
13115: # location of the library.
13116: ;;
13117: esac
13118:
13119: case $cc_basename in
13120: CC*)
13121: # FIXME: insert proper C++ library support
13122: ld_shlibs_CXX=no
13123: ;;
13124: aCC*)
13125: case $host_cpu in
13126: hppa*64*)
13127: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13128: ;;
13129: ia64*)
13130: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13131: ;;
13132: *)
13133: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13134: ;;
13135: esac
13136: # Commands to make compiler produce verbose output that lists
13137: # what "hidden" libraries, object files and flags are used when
13138: # linking a shared library.
13139: #
13140: # There doesn't appear to be a way to prevent this compiler from
13141: # explicitly linking system object files so we need to strip them
13142: # from the output so that they don't get included in the library
13143: # dependencies.
13144: 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"'
13145: ;;
13146: *)
13147: if test "$GXX" = yes; then
13148: if test $with_gnu_ld = no; then
13149: case $host_cpu in
13150: hppa*64*)
13151: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13152: ;;
13153: ia64*)
13154: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13155: ;;
13156: *)
13157: 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'
13158: ;;
13159: esac
13160: fi
13161: else
13162: # FIXME: insert proper C++ library support
13163: ld_shlibs_CXX=no
13164: fi
13165: ;;
13166: esac
13167: ;;
13168:
13169: interix[3-9]*)
13170: hardcode_direct_CXX=no
13171: hardcode_shlibpath_var_CXX=no
13172: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13173: export_dynamic_flag_spec_CXX='${wl}-E'
13174: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13175: # Instead, shared libraries are loaded at an image base (0x10000000 by
13176: # default) and relocated if they conflict, which is a slow very memory
13177: # consuming and fragmenting process. To avoid this, we pick a random,
13178: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13179: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13180: 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'
13181: 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'
13182: ;;
13183: irix5* | irix6*)
13184: case $cc_basename in
13185: CC*)
13186: # SGI C++
13187: 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'
13188:
13189: # Archives containing C++ object files must be created using
13190: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13191: # necessary to make sure instantiated templates are included
13192: # in the archive.
13193: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13194: ;;
13195: *)
13196: if test "$GXX" = yes; then
13197: if test "$with_gnu_ld" = no; then
13198: 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'
13199: else
13200: 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'
13201: fi
13202: fi
13203: link_all_deplibs_CXX=yes
13204: ;;
13205: esac
13206: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13207: hardcode_libdir_separator_CXX=:
13208: inherit_rpath_CXX=yes
13209: ;;
13210:
13211: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13212: case $cc_basename in
13213: KCC*)
13214: # Kuck and Associates, Inc. (KAI) C++ Compiler
13215:
13216: # KCC will only create a shared library if the output file
13217: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13218: # to its proper name (with version) after linking.
13219: 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'
13220: 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'
13221: # Commands to make compiler produce verbose output that lists
13222: # what "hidden" libraries, object files and flags are used when
13223: # linking a shared library.
13224: #
13225: # There doesn't appear to be a way to prevent this compiler from
13226: # explicitly linking system object files so we need to strip them
13227: # from the output so that they don't get included in the library
13228: # dependencies.
13229: 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"'
13230:
13231: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13232: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13233:
13234: # Archives containing C++ object files must be created using
13235: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13236: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13237: ;;
13238: icpc* | ecpc* )
13239: # Intel C++
13240: with_gnu_ld=yes
13241: # version 8.0 and above of icpc choke on multiply defined symbols
13242: # if we add $predep_objects and $postdep_objects, however 7.1 and
13243: # earlier do not add the objects themselves.
13244: case `$CC -V 2>&1` in
13245: *"Version 7."*)
13246: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13247: 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'
13248: ;;
13249: *) # Version 8.0 or newer
13250: tmp_idyn=
13251: case $host_cpu in
13252: ia64*) tmp_idyn=' -i_dynamic';;
13253: esac
13254: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13255: 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'
13256: ;;
13257: esac
13258: archive_cmds_need_lc_CXX=no
13259: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13260: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13261: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13262: ;;
13263: pgCC* | pgcpp*)
13264: # Portland Group C++ compiler
13265: case `$CC -V` in
13266: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13267: prelink_cmds_CXX='tpldir=Template.dir~
13268: rm -rf $tpldir~
13269: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13270: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13271: old_archive_cmds_CXX='tpldir=Template.dir~
13272: rm -rf $tpldir~
13273: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13274: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13275: $RANLIB $oldlib'
13276: archive_cmds_CXX='tpldir=Template.dir~
13277: rm -rf $tpldir~
13278: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13279: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13280: archive_expsym_cmds_CXX='tpldir=Template.dir~
13281: rm -rf $tpldir~
13282: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13283: $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'
13284: ;;
13285: *) # Version 6 and above use weak symbols
13286: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13287: 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'
13288: ;;
13289: esac
13290:
13291: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13292: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13293: 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'
13294: ;;
13295: cxx*)
13296: # Compaq C++
13297: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298: 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'
13299:
13300: runpath_var=LD_RUN_PATH
13301: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13302: hardcode_libdir_separator_CXX=:
13303:
13304: # Commands to make compiler produce verbose output that lists
13305: # what "hidden" libraries, object files and flags are used when
13306: # linking a shared library.
13307: #
13308: # There doesn't appear to be a way to prevent this compiler from
13309: # explicitly linking system object files so we need to strip them
13310: # from the output so that they don't get included in the library
13311: # dependencies.
13312: 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'
13313: ;;
13314: xl* | mpixl* | bgxl*)
13315: # IBM XL 8.0 on PPC, with GNU ld
13316: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13317: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13318: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13319: if test "x$supports_anon_versioning" = xyes; then
13320: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13321: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13322: echo "local: *; };" >> $output_objdir/$libname.ver~
13323: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13324: fi
13325: ;;
13326: *)
13327: case `$CC -V 2>&1 | sed 5q` in
13328: *Sun\ C*)
13329: # Sun C++ 5.9
13330: no_undefined_flag_CXX=' -zdefs'
13331: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13332: 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'
13333: hardcode_libdir_flag_spec_CXX='-R$libdir'
13334: 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'
13335: compiler_needs_object_CXX=yes
13336:
13337: # Not sure whether something based on
13338: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13339: # would be better.
13340: output_verbose_link_cmd='func_echo_all'
13341:
13342: # Archives containing C++ object files must be created using
13343: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13344: # necessary to make sure instantiated templates are included
13345: # in the archive.
13346: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13347: ;;
13348: esac
13349: ;;
13350: esac
13351: ;;
13352:
13353: lynxos*)
13354: # FIXME: insert proper C++ library support
13355: ld_shlibs_CXX=no
13356: ;;
13357:
13358: m88k*)
13359: # FIXME: insert proper C++ library support
13360: ld_shlibs_CXX=no
13361: ;;
13362:
13363: mvs*)
13364: case $cc_basename in
13365: cxx*)
13366: # FIXME: insert proper C++ library support
13367: ld_shlibs_CXX=no
13368: ;;
13369: *)
13370: # FIXME: insert proper C++ library support
13371: ld_shlibs_CXX=no
13372: ;;
13373: esac
13374: ;;
13375:
13376: netbsd*)
13377: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13378: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13379: wlarc=
13380: hardcode_libdir_flag_spec_CXX='-R$libdir'
13381: hardcode_direct_CXX=yes
13382: hardcode_shlibpath_var_CXX=no
13383: fi
13384: # Workaround some broken pre-1.5 toolchains
13385: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13386: ;;
13387:
13388: *nto* | *qnx*)
13389: ld_shlibs_CXX=yes
13390: ;;
13391:
13392: openbsd2*)
13393: # C++ shared libraries are fairly broken
13394: ld_shlibs_CXX=no
13395: ;;
13396:
13397: openbsd*)
13398: if test -f /usr/libexec/ld.so; then
13399: hardcode_direct_CXX=yes
13400: hardcode_shlibpath_var_CXX=no
13401: hardcode_direct_absolute_CXX=yes
13402: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13403: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13404: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13405: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13406: export_dynamic_flag_spec_CXX='${wl}-E'
13407: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13408: fi
13409: output_verbose_link_cmd=func_echo_all
13410: else
13411: ld_shlibs_CXX=no
13412: fi
13413: ;;
13414:
13415: osf3* | osf4* | osf5*)
13416: case $cc_basename in
13417: KCC*)
13418: # Kuck and Associates, Inc. (KAI) C++ Compiler
13419:
13420: # KCC will only create a shared library if the output file
13421: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13422: # to its proper name (with version) after linking.
13423: 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'
13424:
13425: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13426: hardcode_libdir_separator_CXX=:
13427:
13428: # Archives containing C++ object files must be created using
13429: # the KAI C++ compiler.
13430: case $host in
13431: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13432: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13433: esac
13434: ;;
13435: RCC*)
13436: # Rational C++ 2.4.1
13437: # FIXME: insert proper C++ library support
13438: ld_shlibs_CXX=no
13439: ;;
13440: cxx*)
13441: case $host in
13442: osf3*)
13443: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13444: 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'
13445: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13446: ;;
13447: *)
13448: allow_undefined_flag_CXX=' -expect_unresolved \*'
13449: 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'
13450: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13451: echo "-hidden">> $lib.exp~
13452: $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~
13453: $RM $lib.exp'
13454: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13455: ;;
13456: esac
13457:
13458: hardcode_libdir_separator_CXX=:
13459:
13460: # Commands to make compiler produce verbose output that lists
13461: # what "hidden" libraries, object files and flags are used when
13462: # linking a shared library.
13463: #
13464: # There doesn't appear to be a way to prevent this compiler from
13465: # explicitly linking system object files so we need to strip them
13466: # from the output so that they don't get included in the library
13467: # dependencies.
13468: 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"'
13469: ;;
13470: *)
13471: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13472: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13473: case $host in
13474: osf3*)
13475: 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'
13476: ;;
13477: *)
13478: 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'
13479: ;;
13480: esac
13481:
13482: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13483: hardcode_libdir_separator_CXX=:
13484:
13485: # Commands to make compiler produce verbose output that lists
13486: # what "hidden" libraries, object files and flags are used when
13487: # linking a shared library.
13488: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13489:
13490: else
13491: # FIXME: insert proper C++ library support
13492: ld_shlibs_CXX=no
13493: fi
13494: ;;
13495: esac
13496: ;;
13497:
13498: psos*)
13499: # FIXME: insert proper C++ library support
13500: ld_shlibs_CXX=no
13501: ;;
13502:
13503: sunos4*)
13504: case $cc_basename in
13505: CC*)
13506: # Sun C++ 4.x
13507: # FIXME: insert proper C++ library support
13508: ld_shlibs_CXX=no
13509: ;;
13510: lcc*)
13511: # Lucid
13512: # FIXME: insert proper C++ library support
13513: ld_shlibs_CXX=no
13514: ;;
13515: *)
13516: # FIXME: insert proper C++ library support
13517: ld_shlibs_CXX=no
13518: ;;
13519: esac
13520: ;;
13521:
13522: solaris*)
13523: case $cc_basename in
13524: CC* | sunCC*)
13525: # Sun C++ 4.2, 5.x and Centerline C++
13526: archive_cmds_need_lc_CXX=yes
13527: no_undefined_flag_CXX=' -zdefs'
13528: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13529: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13530: $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'
13531:
13532: hardcode_libdir_flag_spec_CXX='-R$libdir'
13533: hardcode_shlibpath_var_CXX=no
13534: case $host_os in
13535: solaris2.[0-5] | solaris2.[0-5].*) ;;
13536: *)
13537: # The compiler driver will combine and reorder linker options,
13538: # but understands `-z linker_flag'.
13539: # Supported since Solaris 2.6 (maybe 2.5.1?)
13540: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13541: ;;
13542: esac
13543: link_all_deplibs_CXX=yes
13544:
13545: output_verbose_link_cmd='func_echo_all'
13546:
13547: # Archives containing C++ object files must be created using
13548: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13549: # necessary to make sure instantiated templates are included
13550: # in the archive.
13551: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13552: ;;
13553: gcx*)
13554: # Green Hills C++ Compiler
13555: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13556:
13557: # The C++ compiler must be used to create the archive.
13558: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13559: ;;
13560: *)
13561: # GNU C++ compiler with Solaris linker
13562: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13563: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13564: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13565: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13566: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13567: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13568:
13569: # Commands to make compiler produce verbose output that lists
13570: # what "hidden" libraries, object files and flags are used when
13571: # linking a shared library.
13572: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13573: else
13574: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13575: # platform.
13576: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13577: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13578: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13579:
13580: # Commands to make compiler produce verbose output that lists
13581: # what "hidden" libraries, object files and flags are used when
13582: # linking a shared library.
13583: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13584: fi
13585:
13586: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13587: case $host_os in
13588: solaris2.[0-5] | solaris2.[0-5].*) ;;
13589: *)
13590: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13591: ;;
13592: esac
13593: fi
13594: ;;
13595: esac
13596: ;;
13597:
13598: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13599: no_undefined_flag_CXX='${wl}-z,text'
13600: archive_cmds_need_lc_CXX=no
13601: hardcode_shlibpath_var_CXX=no
13602: runpath_var='LD_RUN_PATH'
13603:
13604: case $cc_basename in
13605: CC*)
13606: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13607: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13608: ;;
13609: *)
13610: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13611: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13612: ;;
13613: esac
13614: ;;
13615:
13616: sysv5* | sco3.2v5* | sco5v6*)
13617: # Note: We can NOT use -z defs as we might desire, because we do not
13618: # link with -lc, and that would cause any symbols used from libc to
13619: # always be unresolved, which means just about no library would
13620: # ever link correctly. If we're not using GNU ld we use -z text
13621: # though, which does catch some bad symbols but isn't as heavy-handed
13622: # as -z defs.
13623: no_undefined_flag_CXX='${wl}-z,text'
13624: allow_undefined_flag_CXX='${wl}-z,nodefs'
13625: archive_cmds_need_lc_CXX=no
13626: hardcode_shlibpath_var_CXX=no
13627: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13628: hardcode_libdir_separator_CXX=':'
13629: link_all_deplibs_CXX=yes
13630: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13631: runpath_var='LD_RUN_PATH'
13632:
13633: case $cc_basename in
13634: CC*)
13635: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13636: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13637: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13638: '"$old_archive_cmds_CXX"
13639: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13640: '"$reload_cmds_CXX"
13641: ;;
13642: *)
13643: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645: ;;
13646: esac
13647: ;;
13648:
13649: tandem*)
13650: case $cc_basename in
13651: NCC*)
13652: # NonStop-UX NCC 3.20
13653: # FIXME: insert proper C++ library support
13654: ld_shlibs_CXX=no
13655: ;;
13656: *)
13657: # FIXME: insert proper C++ library support
13658: ld_shlibs_CXX=no
13659: ;;
13660: esac
13661: ;;
13662:
13663: vxworks*)
13664: # FIXME: insert proper C++ library support
13665: ld_shlibs_CXX=no
13666: ;;
13667:
13668: *)
13669: # FIXME: insert proper C++ library support
13670: ld_shlibs_CXX=no
13671: ;;
13672: esac
13673:
1.31 moko 13674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13675: $as_echo "$ld_shlibs_CXX" >&6; }
1.23 moko 13676: test "$ld_shlibs_CXX" = no && can_build_shared=no
13677:
13678: GCC_CXX="$GXX"
13679: LD_CXX="$LD"
13680:
13681: ## CAVEAT EMPTOR:
13682: ## There is no encapsulation within the following macros, do not change
13683: ## the running order or otherwise move them around unless you know exactly
13684: ## what you are doing...
13685: # Dependencies to place before and after the object being linked:
13686: predep_objects_CXX=
13687: postdep_objects_CXX=
13688: predeps_CXX=
13689: postdeps_CXX=
13690: compiler_lib_search_path_CXX=
13691:
13692: cat > conftest.$ac_ext <<_LT_EOF
13693: class Foo
13694: {
13695: public:
13696: Foo (void) { a = 0; }
13697: private:
13698: int a;
13699: };
13700: _LT_EOF
13701:
13702:
13703: _lt_libdeps_save_CFLAGS=$CFLAGS
13704: case "$CC $CFLAGS " in #(
13705: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13706: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13707: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13708: esac
13709:
1.31 moko 13710: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 13711: (eval $ac_compile) 2>&5
13712: ac_status=$?
1.31 moko 13713: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13714: test $ac_status = 0; }; then
1.23 moko 13715: # Parse the compiler output and extract the necessary
13716: # objects, libraries and library flags.
13717:
13718: # Sentinel used to keep track of whether or not we are before
13719: # the conftest object file.
13720: pre_test_object_deps_done=no
13721:
13722: for p in `eval "$output_verbose_link_cmd"`; do
13723: case ${prev}${p} in
13724:
13725: -L* | -R* | -l*)
13726: # Some compilers place space between "-{L,R}" and the path.
13727: # Remove the space.
13728: if test $p = "-L" ||
13729: test $p = "-R"; then
13730: prev=$p
13731: continue
13732: fi
13733:
13734: # Expand the sysroot to ease extracting the directories later.
13735: if test -z "$prev"; then
13736: case $p in
13737: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13738: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13739: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13740: esac
13741: fi
13742: case $p in
13743: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13744: esac
13745: if test "$pre_test_object_deps_done" = no; then
13746: case ${prev} in
13747: -L | -R)
13748: # Internal compiler library paths should come after those
13749: # provided the user. The postdeps already come after the
13750: # user supplied libs so there is no need to process them.
13751: if test -z "$compiler_lib_search_path_CXX"; then
13752: compiler_lib_search_path_CXX="${prev}${p}"
13753: else
13754: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13755: fi
13756: ;;
13757: # The "-l" case would never come before the object being
13758: # linked, so don't bother handling this case.
13759: esac
13760: else
13761: if test -z "$postdeps_CXX"; then
13762: postdeps_CXX="${prev}${p}"
13763: else
13764: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13765: fi
13766: fi
13767: prev=
13768: ;;
13769:
13770: *.lto.$objext) ;; # Ignore GCC LTO objects
13771: *.$objext)
13772: # This assumes that the test object file only shows up
13773: # once in the compiler output.
13774: if test "$p" = "conftest.$objext"; then
13775: pre_test_object_deps_done=yes
13776: continue
13777: fi
13778:
13779: if test "$pre_test_object_deps_done" = no; then
13780: if test -z "$predep_objects_CXX"; then
13781: predep_objects_CXX="$p"
13782: else
13783: predep_objects_CXX="$predep_objects_CXX $p"
13784: fi
13785: else
13786: if test -z "$postdep_objects_CXX"; then
13787: postdep_objects_CXX="$p"
13788: else
13789: postdep_objects_CXX="$postdep_objects_CXX $p"
13790: fi
13791: fi
13792: ;;
13793:
13794: *) ;; # Ignore the rest.
13795:
13796: esac
13797: done
13798:
13799: # Clean up.
13800: rm -f a.out a.exe
13801: else
13802: echo "libtool.m4: error: problem compiling CXX test program"
13803: fi
13804:
13805: $RM -f confest.$objext
13806: CFLAGS=$_lt_libdeps_save_CFLAGS
13807:
13808: # PORTME: override above test on systems where it is broken
13809: case $host_os in
13810: interix[3-9]*)
13811: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13812: # hack all around it, let's just trust "g++" to DTRT.
13813: predep_objects_CXX=
13814: postdep_objects_CXX=
13815: postdeps_CXX=
13816: ;;
13817:
13818: linux*)
13819: case `$CC -V 2>&1 | sed 5q` in
13820: *Sun\ C*)
13821: # Sun C++ 5.9
13822:
13823: # The more standards-conforming stlport4 library is
13824: # incompatible with the Cstd library. Avoid specifying
13825: # it if it's in CXXFLAGS. Ignore libCrun as
13826: # -library=stlport4 depends on it.
13827: case " $CXX $CXXFLAGS " in
13828: *" -library=stlport4 "*)
13829: solaris_use_stlport4=yes
13830: ;;
13831: esac
13832:
13833: if test "$solaris_use_stlport4" != yes; then
13834: postdeps_CXX='-library=Cstd -library=Crun'
13835: fi
13836: ;;
13837: esac
13838: ;;
13839:
13840: solaris*)
13841: case $cc_basename in
13842: CC* | sunCC*)
13843: # The more standards-conforming stlport4 library is
13844: # incompatible with the Cstd library. Avoid specifying
13845: # it if it's in CXXFLAGS. Ignore libCrun as
13846: # -library=stlport4 depends on it.
13847: case " $CXX $CXXFLAGS " in
13848: *" -library=stlport4 "*)
13849: solaris_use_stlport4=yes
13850: ;;
13851: esac
13852:
13853: # Adding this requires a known-good setup of shared libraries for
13854: # Sun compiler versions before 5.6, else PIC objects from an old
13855: # archive will be linked into the output, leading to subtle bugs.
13856: if test "$solaris_use_stlport4" != yes; then
13857: postdeps_CXX='-library=Cstd -library=Crun'
13858: fi
13859: ;;
13860: esac
13861: ;;
13862: esac
13863:
13864:
13865: case " $postdeps_CXX " in
13866: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13867: esac
13868: compiler_lib_search_dirs_CXX=
13869: if test -n "${compiler_lib_search_path_CXX}"; then
13870: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13871: fi
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:
13898:
13899:
13900:
13901:
13902:
13903: lt_prog_compiler_wl_CXX=
13904: lt_prog_compiler_pic_CXX=
13905: lt_prog_compiler_static_CXX=
13906:
13907:
13908: # C++ specific cases for pic, static, wl, etc.
13909: if test "$GXX" = yes; then
13910: lt_prog_compiler_wl_CXX='-Wl,'
13911: lt_prog_compiler_static_CXX='-static'
13912:
13913: case $host_os in
13914: aix*)
13915: # All AIX code is PIC.
13916: if test "$host_cpu" = ia64; then
13917: # AIX 5 now supports IA64 processor
13918: lt_prog_compiler_static_CXX='-Bstatic'
13919: fi
13920: ;;
13921:
13922: amigaos*)
13923: case $host_cpu in
13924: powerpc)
13925: # see comment about AmigaOS4 .so support
13926: lt_prog_compiler_pic_CXX='-fPIC'
13927: ;;
13928: m68k)
13929: # FIXME: we need at least 68020 code to build shared libraries, but
13930: # adding the `-m68020' flag to GCC prevents building anything better,
13931: # like `-m68040'.
13932: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13933: ;;
13934: esac
13935: ;;
13936:
13937: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13938: # PIC is the default for these OSes.
13939: ;;
13940: mingw* | cygwin* | os2* | pw32* | cegcc*)
13941: # This hack is so that the source file can tell whether it is being
13942: # built for inclusion in a dll (and should export symbols for example).
13943: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13944: # (--disable-auto-import) libraries
13945: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13946: ;;
13947: darwin* | rhapsody*)
13948: # PIC is the default on this platform
13949: # Common symbols not allowed in MH_DYLIB files
13950: lt_prog_compiler_pic_CXX='-fno-common'
13951: ;;
13952: *djgpp*)
13953: # DJGPP does not support shared libraries at all
13954: lt_prog_compiler_pic_CXX=
13955: ;;
13956: haiku*)
13957: # PIC is the default for Haiku.
13958: # The "-static" flag exists, but is broken.
13959: lt_prog_compiler_static_CXX=
13960: ;;
13961: interix[3-9]*)
13962: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13963: # Instead, we relocate shared libraries at runtime.
13964: ;;
13965: sysv4*MP*)
13966: if test -d /usr/nec; then
13967: lt_prog_compiler_pic_CXX=-Kconform_pic
13968: fi
13969: ;;
13970: hpux*)
13971: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13972: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13973: # sets the default TLS model and affects inlining.
13974: case $host_cpu in
13975: hppa*64*)
13976: ;;
13977: *)
13978: lt_prog_compiler_pic_CXX='-fPIC'
13979: ;;
13980: esac
13981: ;;
13982: *qnx* | *nto*)
13983: # QNX uses GNU C++, but need to define -shared option too, otherwise
13984: # it will coredump.
13985: lt_prog_compiler_pic_CXX='-fPIC -shared'
13986: ;;
13987: *)
13988: lt_prog_compiler_pic_CXX='-fPIC'
13989: ;;
13990: esac
13991: else
13992: case $host_os in
13993: aix[4-9]*)
13994: # All AIX code is PIC.
13995: if test "$host_cpu" = ia64; then
13996: # AIX 5 now supports IA64 processor
13997: lt_prog_compiler_static_CXX='-Bstatic'
13998: else
13999: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14000: fi
14001: ;;
14002: chorus*)
14003: case $cc_basename in
14004: cxch68*)
14005: # Green Hills C++ Compiler
14006: # _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"
14007: ;;
14008: esac
14009: ;;
14010: mingw* | cygwin* | os2* | pw32* | cegcc*)
14011: # This hack is so that the source file can tell whether it is being
14012: # built for inclusion in a dll (and should export symbols for example).
14013: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14014: ;;
14015: dgux*)
14016: case $cc_basename in
14017: ec++*)
14018: lt_prog_compiler_pic_CXX='-KPIC'
14019: ;;
14020: ghcx*)
14021: # Green Hills C++ Compiler
14022: lt_prog_compiler_pic_CXX='-pic'
14023: ;;
14024: *)
14025: ;;
14026: esac
14027: ;;
14028: freebsd* | dragonfly*)
14029: # FreeBSD uses GNU C++
14030: ;;
14031: hpux9* | hpux10* | hpux11*)
14032: case $cc_basename in
14033: CC*)
14034: lt_prog_compiler_wl_CXX='-Wl,'
14035: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14036: if test "$host_cpu" != ia64; then
14037: lt_prog_compiler_pic_CXX='+Z'
14038: fi
14039: ;;
14040: aCC*)
14041: lt_prog_compiler_wl_CXX='-Wl,'
14042: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14043: case $host_cpu in
14044: hppa*64*|ia64*)
14045: # +Z the default
14046: ;;
14047: *)
14048: lt_prog_compiler_pic_CXX='+Z'
14049: ;;
14050: esac
14051: ;;
14052: *)
14053: ;;
14054: esac
14055: ;;
14056: interix*)
14057: # This is c89, which is MS Visual C++ (no shared libs)
14058: # Anyone wants to do a port?
14059: ;;
14060: irix5* | irix6* | nonstopux*)
14061: case $cc_basename in
14062: CC*)
14063: lt_prog_compiler_wl_CXX='-Wl,'
14064: lt_prog_compiler_static_CXX='-non_shared'
14065: # CC pic flag -KPIC is the default.
14066: ;;
14067: *)
14068: ;;
14069: esac
14070: ;;
14071: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14072: case $cc_basename in
14073: KCC*)
14074: # KAI C++ Compiler
14075: lt_prog_compiler_wl_CXX='--backend -Wl,'
14076: lt_prog_compiler_pic_CXX='-fPIC'
14077: ;;
14078: ecpc* )
14079: # old Intel C++ for x86_64 which still supported -KPIC.
14080: lt_prog_compiler_wl_CXX='-Wl,'
14081: lt_prog_compiler_pic_CXX='-KPIC'
14082: lt_prog_compiler_static_CXX='-static'
14083: ;;
14084: icpc* )
14085: # Intel C++, used to be incompatible with GCC.
14086: # ICC 10 doesn't accept -KPIC any more.
14087: lt_prog_compiler_wl_CXX='-Wl,'
14088: lt_prog_compiler_pic_CXX='-fPIC'
14089: lt_prog_compiler_static_CXX='-static'
14090: ;;
14091: pgCC* | pgcpp*)
14092: # Portland Group C++ compiler
14093: lt_prog_compiler_wl_CXX='-Wl,'
14094: lt_prog_compiler_pic_CXX='-fpic'
14095: lt_prog_compiler_static_CXX='-Bstatic'
14096: ;;
14097: cxx*)
14098: # Compaq C++
14099: # Make sure the PIC flag is empty. It appears that all Alpha
14100: # Linux and Compaq Tru64 Unix objects are PIC.
14101: lt_prog_compiler_pic_CXX=
14102: lt_prog_compiler_static_CXX='-non_shared'
14103: ;;
14104: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14105: # IBM XL 8.0, 9.0 on PPC and BlueGene
14106: lt_prog_compiler_wl_CXX='-Wl,'
14107: lt_prog_compiler_pic_CXX='-qpic'
14108: lt_prog_compiler_static_CXX='-qstaticlink'
14109: ;;
14110: *)
14111: case `$CC -V 2>&1 | sed 5q` in
14112: *Sun\ C*)
14113: # Sun C++ 5.9
14114: lt_prog_compiler_pic_CXX='-KPIC'
14115: lt_prog_compiler_static_CXX='-Bstatic'
14116: lt_prog_compiler_wl_CXX='-Qoption ld '
14117: ;;
14118: esac
14119: ;;
14120: esac
14121: ;;
14122: lynxos*)
14123: ;;
14124: m88k*)
14125: ;;
14126: mvs*)
14127: case $cc_basename in
14128: cxx*)
14129: lt_prog_compiler_pic_CXX='-W c,exportall'
14130: ;;
14131: *)
14132: ;;
14133: esac
14134: ;;
14135: netbsd*)
14136: ;;
14137: *qnx* | *nto*)
14138: # QNX uses GNU C++, but need to define -shared option too, otherwise
14139: # it will coredump.
14140: lt_prog_compiler_pic_CXX='-fPIC -shared'
14141: ;;
14142: osf3* | osf4* | osf5*)
14143: case $cc_basename in
14144: KCC*)
14145: lt_prog_compiler_wl_CXX='--backend -Wl,'
14146: ;;
14147: RCC*)
14148: # Rational C++ 2.4.1
14149: lt_prog_compiler_pic_CXX='-pic'
14150: ;;
14151: cxx*)
14152: # Digital/Compaq C++
14153: lt_prog_compiler_wl_CXX='-Wl,'
14154: # Make sure the PIC flag is empty. It appears that all Alpha
14155: # Linux and Compaq Tru64 Unix objects are PIC.
14156: lt_prog_compiler_pic_CXX=
14157: lt_prog_compiler_static_CXX='-non_shared'
14158: ;;
14159: *)
14160: ;;
14161: esac
14162: ;;
14163: psos*)
14164: ;;
14165: solaris*)
14166: case $cc_basename in
14167: CC* | sunCC*)
14168: # Sun C++ 4.2, 5.x and Centerline C++
14169: lt_prog_compiler_pic_CXX='-KPIC'
14170: lt_prog_compiler_static_CXX='-Bstatic'
14171: lt_prog_compiler_wl_CXX='-Qoption ld '
14172: ;;
14173: gcx*)
14174: # Green Hills C++ Compiler
14175: lt_prog_compiler_pic_CXX='-PIC'
14176: ;;
14177: *)
14178: ;;
14179: esac
14180: ;;
14181: sunos4*)
14182: case $cc_basename in
14183: CC*)
14184: # Sun C++ 4.x
14185: lt_prog_compiler_pic_CXX='-pic'
14186: lt_prog_compiler_static_CXX='-Bstatic'
14187: ;;
14188: lcc*)
14189: # Lucid
14190: lt_prog_compiler_pic_CXX='-pic'
14191: ;;
14192: *)
14193: ;;
14194: esac
14195: ;;
14196: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14197: case $cc_basename in
14198: CC*)
14199: lt_prog_compiler_wl_CXX='-Wl,'
14200: lt_prog_compiler_pic_CXX='-KPIC'
14201: lt_prog_compiler_static_CXX='-Bstatic'
14202: ;;
14203: esac
14204: ;;
14205: tandem*)
14206: case $cc_basename in
14207: NCC*)
14208: # NonStop-UX NCC 3.20
14209: lt_prog_compiler_pic_CXX='-KPIC'
14210: ;;
14211: *)
14212: ;;
14213: esac
14214: ;;
14215: vxworks*)
14216: ;;
14217: *)
14218: lt_prog_compiler_can_build_shared_CXX=no
14219: ;;
14220: esac
14221: fi
14222:
14223: case $host_os in
14224: # For platforms which do not support PIC, -DPIC is meaningless:
14225: *djgpp*)
14226: lt_prog_compiler_pic_CXX=
14227: ;;
14228: *)
14229: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14230: ;;
14231: esac
14232:
1.31 moko 14233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14234: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14235: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14236: $as_echo_n "(cached) " >&6
1.23 moko 14237: else
14238: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14239: fi
1.31 moko 14240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14241: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.23 moko 14242: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14243:
14244: #
14245: # Check to make sure the PIC flag actually works.
14246: #
14247: if test -n "$lt_prog_compiler_pic_CXX"; then
1.31 moko 14248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14249: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14250: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14251: $as_echo_n "(cached) " >&6
1.23 moko 14252: else
14253: lt_cv_prog_compiler_pic_works_CXX=no
14254: ac_outfile=conftest.$ac_objext
14255: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14256: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14257: # Insert the option either (1) after the last *FLAGS variable, or
14258: # (2) before a word containing "conftest.", or (3) at the end.
14259: # Note that $ac_compile itself does not contain backslashes and begins
14260: # with a dollar sign (not a hyphen), so the echo should work correctly.
14261: # The option is referenced via a variable to avoid confusing sed.
14262: lt_compile=`echo "$ac_compile" | $SED \
14263: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14264: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14265: -e 's:$: $lt_compiler_flag:'`
14266: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14267: (eval "$lt_compile" 2>conftest.err)
14268: ac_status=$?
14269: cat conftest.err >&5
14270: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271: if (exit $ac_status) && test -s "$ac_outfile"; then
14272: # The compiler can only warn and ignore the option if not recognized
14273: # So say no if there are warnings other than the usual output.
14274: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14275: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14276: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14277: lt_cv_prog_compiler_pic_works_CXX=yes
14278: fi
14279: fi
14280: $RM conftest*
14281:
14282: fi
1.31 moko 14283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14284: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.23 moko 14285:
14286: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14287: case $lt_prog_compiler_pic_CXX in
14288: "" | " "*) ;;
14289: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14290: esac
14291: else
14292: lt_prog_compiler_pic_CXX=
14293: lt_prog_compiler_can_build_shared_CXX=no
14294: fi
14295:
14296: fi
14297:
14298:
14299:
14300:
14301:
14302: #
14303: # Check to make sure the static flag actually works.
14304: #
14305: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.31 moko 14306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14307: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14308: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14309: $as_echo_n "(cached) " >&6
1.23 moko 14310: else
14311: lt_cv_prog_compiler_static_works_CXX=no
14312: save_LDFLAGS="$LDFLAGS"
14313: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14314: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14315: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14316: # The linker can only warn and ignore the option if not recognized
14317: # So say no if there are warnings
14318: if test -s conftest.err; then
14319: # Append any errors to the config.log.
14320: cat conftest.err 1>&5
14321: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14322: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14323: if diff conftest.exp conftest.er2 >/dev/null; then
14324: lt_cv_prog_compiler_static_works_CXX=yes
14325: fi
14326: else
14327: lt_cv_prog_compiler_static_works_CXX=yes
14328: fi
14329: fi
14330: $RM -r conftest*
14331: LDFLAGS="$save_LDFLAGS"
14332:
14333: fi
1.31 moko 14334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14335: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.23 moko 14336:
14337: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14338: :
14339: else
14340: lt_prog_compiler_static_CXX=
14341: fi
14342:
14343:
14344:
14345:
1.31 moko 14346: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14347: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14348: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14349: $as_echo_n "(cached) " >&6
1.23 moko 14350: else
14351: lt_cv_prog_compiler_c_o_CXX=no
14352: $RM -r conftest 2>/dev/null
14353: mkdir conftest
14354: cd conftest
14355: mkdir out
14356: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14357:
14358: lt_compiler_flag="-o out/conftest2.$ac_objext"
14359: # Insert the option either (1) after the last *FLAGS variable, or
14360: # (2) before a word containing "conftest.", or (3) at the end.
14361: # Note that $ac_compile itself does not contain backslashes and begins
14362: # with a dollar sign (not a hyphen), so the echo should work correctly.
14363: lt_compile=`echo "$ac_compile" | $SED \
14364: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14365: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14366: -e 's:$: $lt_compiler_flag:'`
14367: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14368: (eval "$lt_compile" 2>out/conftest.err)
14369: ac_status=$?
14370: cat out/conftest.err >&5
14371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14373: then
14374: # The compiler can only warn and ignore the option if not recognized
14375: # So say no if there are warnings
14376: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14377: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14378: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14379: lt_cv_prog_compiler_c_o_CXX=yes
14380: fi
14381: fi
14382: chmod u+w . 2>&5
14383: $RM conftest*
14384: # SGI C++ compiler will create directory out/ii_files/ for
14385: # template instantiation
14386: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14387: $RM out/* && rmdir out
14388: cd ..
14389: $RM -r conftest
14390: $RM conftest*
14391:
14392: fi
1.31 moko 14393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14394: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.23 moko 14395:
14396:
14397:
1.31 moko 14398: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14399: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14400: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14401: $as_echo_n "(cached) " >&6
1.23 moko 14402: else
14403: lt_cv_prog_compiler_c_o_CXX=no
14404: $RM -r conftest 2>/dev/null
14405: mkdir conftest
14406: cd conftest
14407: mkdir out
14408: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14409:
14410: lt_compiler_flag="-o out/conftest2.$ac_objext"
14411: # Insert the option either (1) after the last *FLAGS variable, or
14412: # (2) before a word containing "conftest.", or (3) at the end.
14413: # Note that $ac_compile itself does not contain backslashes and begins
14414: # with a dollar sign (not a hyphen), so the echo should work correctly.
14415: lt_compile=`echo "$ac_compile" | $SED \
14416: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14417: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14418: -e 's:$: $lt_compiler_flag:'`
14419: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14420: (eval "$lt_compile" 2>out/conftest.err)
14421: ac_status=$?
14422: cat out/conftest.err >&5
14423: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14425: then
14426: # The compiler can only warn and ignore the option if not recognized
14427: # So say no if there are warnings
14428: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14429: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14430: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14431: lt_cv_prog_compiler_c_o_CXX=yes
14432: fi
14433: fi
14434: chmod u+w . 2>&5
14435: $RM conftest*
14436: # SGI C++ compiler will create directory out/ii_files/ for
14437: # template instantiation
14438: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14439: $RM out/* && rmdir out
14440: cd ..
14441: $RM -r conftest
14442: $RM conftest*
14443:
14444: fi
1.31 moko 14445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14446: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.23 moko 14447:
14448:
14449:
14450:
14451: hard_links="nottested"
14452: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14453: # do not overwrite the value of need_locks provided by the user
1.31 moko 14454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14455: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.23 moko 14456: hard_links=yes
14457: $RM conftest*
14458: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14459: touch conftest.a
14460: ln conftest.a conftest.b 2>&5 || hard_links=no
14461: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.31 moko 14462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14463: $as_echo "$hard_links" >&6; }
1.23 moko 14464: if test "$hard_links" = no; then
1.31 moko 14465: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14466: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.23 moko 14467: need_locks=warn
14468: fi
14469: else
14470: need_locks=no
14471: fi
14472:
14473:
14474:
1.31 moko 14475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14476: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.23 moko 14477:
14478: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14479: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14480: case $host_os in
14481: aix[4-9]*)
14482: # If we're using GNU nm, then we don't want the "-C" option.
14483: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14484: # Also, AIX nm treats weak defined symbols like other global defined
14485: # symbols, whereas GNU nm marks them as "W".
14486: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14487: 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'
14488: else
14489: 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'
14490: fi
14491: ;;
14492: pw32*)
14493: export_symbols_cmds_CXX="$ltdll_cmds"
14494: ;;
14495: cygwin* | mingw* | cegcc*)
14496: case $cc_basename in
14497: cl*)
14498: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14499: ;;
14500: *)
14501: 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'
14502: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14503: ;;
14504: esac
14505: ;;
14506: *)
14507: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14508: ;;
14509: esac
14510:
1.31 moko 14511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14512: $as_echo "$ld_shlibs_CXX" >&6; }
1.23 moko 14513: test "$ld_shlibs_CXX" = no && can_build_shared=no
14514:
14515: with_gnu_ld_CXX=$with_gnu_ld
14516:
14517:
14518:
14519:
14520:
14521:
14522: #
14523: # Do we need to explicitly link libc?
14524: #
14525: case "x$archive_cmds_need_lc_CXX" in
14526: x|xyes)
14527: # Assume -lc should be added
14528: archive_cmds_need_lc_CXX=yes
14529:
14530: if test "$enable_shared" = yes && test "$GCC" = yes; then
14531: case $archive_cmds_CXX in
14532: *'~'*)
14533: # FIXME: we may have to deal with multi-command sequences.
14534: ;;
14535: '$CC '*)
14536: # Test whether the compiler implicitly links with -lc since on some
14537: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14538: # to ld, don't add -lc before -lgcc.
1.31 moko 14539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14540: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14541: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14542: $as_echo_n "(cached) " >&6
1.23 moko 14543: else
14544: $RM conftest*
14545: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14546:
1.31 moko 14547: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 14548: (eval $ac_compile) 2>&5
14549: ac_status=$?
1.31 moko 14550: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14551: test $ac_status = 0; } 2>conftest.err; then
1.23 moko 14552: soname=conftest
14553: lib=conftest
14554: libobjs=conftest.$ac_objext
14555: deplibs=
14556: wl=$lt_prog_compiler_wl_CXX
14557: pic_flag=$lt_prog_compiler_pic_CXX
14558: compiler_flags=-v
14559: linker_flags=-v
14560: verstring=
14561: output_objdir=.
14562: libname=conftest
14563: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14564: allow_undefined_flag_CXX=
1.31 moko 14565: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.23 moko 14566: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14567: ac_status=$?
1.31 moko 14568: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14569: test $ac_status = 0; }
1.23 moko 14570: then
14571: lt_cv_archive_cmds_need_lc_CXX=no
14572: else
14573: lt_cv_archive_cmds_need_lc_CXX=yes
14574: fi
14575: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14576: else
14577: cat conftest.err 1>&5
14578: fi
14579: $RM conftest*
14580:
14581: fi
1.31 moko 14582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14583: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.23 moko 14584: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14585: ;;
14586: esac
14587: fi
14588: ;;
14589: esac
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:
14646:
14647:
14648:
14649:
14650:
14651:
1.31 moko 14652: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14653: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.23 moko 14654:
14655: library_names_spec=
14656: libname_spec='lib$name'
14657: soname_spec=
14658: shrext_cmds=".so"
14659: postinstall_cmds=
14660: postuninstall_cmds=
14661: finish_cmds=
14662: finish_eval=
14663: shlibpath_var=
14664: shlibpath_overrides_runpath=unknown
14665: version_type=none
14666: dynamic_linker="$host_os ld.so"
14667: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14668: need_lib_prefix=unknown
14669: hardcode_into_libs=no
14670:
14671: # when you set need_version to no, make sure it does not cause -set_version
14672: # flags to be left without arguments
14673: need_version=unknown
14674:
14675: case $host_os in
14676: aix3*)
14677: version_type=linux # correct to gnu/linux during the next big refactor
14678: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14679: shlibpath_var=LIBPATH
14680:
14681: # AIX 3 has no versioning support, so we append a major version to the name.
14682: soname_spec='${libname}${release}${shared_ext}$major'
14683: ;;
14684:
14685: aix[4-9]*)
14686: version_type=linux # correct to gnu/linux during the next big refactor
14687: need_lib_prefix=no
14688: need_version=no
14689: hardcode_into_libs=yes
14690: if test "$host_cpu" = ia64; then
14691: # AIX 5 supports IA64
14692: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14693: shlibpath_var=LD_LIBRARY_PATH
14694: else
14695: # With GCC up to 2.95.x, collect2 would create an import file
14696: # for dependence libraries. The import file would start with
14697: # the line `#! .'. This would cause the generated library to
14698: # depend on `.', always an invalid library. This was fixed in
14699: # development snapshots of GCC prior to 3.0.
14700: case $host_os in
14701: aix4 | aix4.[01] | aix4.[01].*)
14702: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14703: echo ' yes '
14704: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14705: :
14706: else
14707: can_build_shared=no
14708: fi
14709: ;;
14710: esac
14711: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14712: # soname into executable. Probably we can add versioning support to
14713: # collect2, so additional links can be useful in future.
14714: if test "$aix_use_runtimelinking" = yes; then
14715: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14716: # instead of lib<name>.a to let people know that these are not
14717: # typical AIX shared libraries.
14718: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719: else
14720: # We preserve .a as extension for shared libraries through AIX4.2
14721: # and later when we are not doing run time linking.
14722: library_names_spec='${libname}${release}.a $libname.a'
14723: soname_spec='${libname}${release}${shared_ext}$major'
14724: fi
14725: shlibpath_var=LIBPATH
14726: fi
14727: ;;
14728:
14729: amigaos*)
14730: case $host_cpu in
14731: powerpc)
14732: # Since July 2007 AmigaOS4 officially supports .so libraries.
14733: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14734: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735: ;;
14736: m68k)
14737: library_names_spec='$libname.ixlibrary $libname.a'
14738: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14739: 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'
14740: ;;
14741: esac
14742: ;;
14743:
14744: beos*)
14745: library_names_spec='${libname}${shared_ext}'
14746: dynamic_linker="$host_os ld.so"
14747: shlibpath_var=LIBRARY_PATH
14748: ;;
14749:
14750: bsdi[45]*)
14751: version_type=linux # correct to gnu/linux during the next big refactor
14752: need_version=no
14753: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754: soname_spec='${libname}${release}${shared_ext}$major'
14755: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14756: shlibpath_var=LD_LIBRARY_PATH
14757: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14758: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14759: # the default ld.so.conf also contains /usr/contrib/lib and
14760: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14761: # libtool to hard-code these into programs
14762: ;;
14763:
14764: cygwin* | mingw* | pw32* | cegcc*)
14765: version_type=windows
14766: shrext_cmds=".dll"
14767: need_version=no
14768: need_lib_prefix=no
14769:
14770: case $GCC,$cc_basename in
14771: yes,*)
14772: # gcc
14773: library_names_spec='$libname.dll.a'
14774: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14775: postinstall_cmds='base_file=`basename \${file}`~
14776: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14777: dldir=$destdir/`dirname \$dlpath`~
14778: test -d \$dldir || mkdir -p \$dldir~
14779: $install_prog $dir/$dlname \$dldir/$dlname~
14780: chmod a+x \$dldir/$dlname~
14781: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14782: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14783: fi'
14784: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14785: dlpath=$dir/\$dldll~
14786: $RM \$dlpath'
14787: shlibpath_overrides_runpath=yes
14788:
14789: case $host_os in
14790: cygwin*)
14791: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14792: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14793:
14794: ;;
14795: mingw* | cegcc*)
14796: # MinGW DLLs use traditional 'lib' prefix
14797: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14798: ;;
14799: pw32*)
14800: # pw32 DLLs use 'pw' prefix rather than 'lib'
14801: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14802: ;;
14803: esac
14804: dynamic_linker='Win32 ld.exe'
14805: ;;
14806:
14807: *,cl*)
14808: # Native MSVC
14809: libname_spec='$name'
14810: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14811: library_names_spec='${libname}.dll.lib'
14812:
14813: case $build_os in
14814: mingw*)
14815: sys_lib_search_path_spec=
14816: lt_save_ifs=$IFS
14817: IFS=';'
14818: for lt_path in $LIB
14819: do
14820: IFS=$lt_save_ifs
14821: # Let DOS variable expansion print the short 8.3 style file name.
14822: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14823: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14824: done
14825: IFS=$lt_save_ifs
14826: # Convert to MSYS style.
14827: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14828: ;;
14829: cygwin*)
14830: # Convert to unix form, then to dos form, then back to unix form
14831: # but this time dos style (no spaces!) so that the unix form looks
14832: # like /cygdrive/c/PROGRA~1:/cygdr...
14833: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14834: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14835: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14836: ;;
14837: *)
14838: sys_lib_search_path_spec="$LIB"
14839: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14840: # It is most probably a Windows format PATH.
14841: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14842: else
14843: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14844: fi
14845: # FIXME: find the short name or the path components, as spaces are
14846: # common. (e.g. "Program Files" -> "PROGRA~1")
14847: ;;
14848: esac
14849:
14850: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14851: postinstall_cmds='base_file=`basename \${file}`~
14852: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14853: dldir=$destdir/`dirname \$dlpath`~
14854: test -d \$dldir || mkdir -p \$dldir~
14855: $install_prog $dir/$dlname \$dldir/$dlname'
14856: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14857: dlpath=$dir/\$dldll~
14858: $RM \$dlpath'
14859: shlibpath_overrides_runpath=yes
14860: dynamic_linker='Win32 link.exe'
14861: ;;
14862:
14863: *)
14864: # Assume MSVC wrapper
14865: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14866: dynamic_linker='Win32 ld.exe'
14867: ;;
14868: esac
14869: # FIXME: first we should search . and the directory the executable is in
14870: shlibpath_var=PATH
14871: ;;
14872:
14873: darwin* | rhapsody*)
14874: dynamic_linker="$host_os dyld"
14875: version_type=darwin
14876: need_lib_prefix=no
14877: need_version=no
14878: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14879: soname_spec='${libname}${release}${major}$shared_ext'
14880: shlibpath_overrides_runpath=yes
14881: shlibpath_var=DYLD_LIBRARY_PATH
14882: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14883:
14884: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14885: ;;
14886:
14887: dgux*)
14888: version_type=linux # correct to gnu/linux during the next big refactor
14889: need_lib_prefix=no
14890: need_version=no
14891: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14892: soname_spec='${libname}${release}${shared_ext}$major'
14893: shlibpath_var=LD_LIBRARY_PATH
14894: ;;
14895:
14896: freebsd* | dragonfly*)
14897: # DragonFly does not have aout. When/if they implement a new
14898: # versioning mechanism, adjust this.
14899: if test -x /usr/bin/objformat; then
14900: objformat=`/usr/bin/objformat`
14901: else
14902: case $host_os in
14903: freebsd[23].*) objformat=aout ;;
14904: *) objformat=elf ;;
14905: esac
14906: fi
14907: version_type=freebsd-$objformat
14908: case $version_type in
14909: freebsd-elf*)
14910: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14911: need_version=no
14912: need_lib_prefix=no
14913: ;;
14914: freebsd-*)
14915: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14916: need_version=yes
14917: ;;
14918: esac
14919: shlibpath_var=LD_LIBRARY_PATH
14920: case $host_os in
14921: freebsd2.*)
14922: shlibpath_overrides_runpath=yes
14923: ;;
14924: freebsd3.[01]* | freebsdelf3.[01]*)
14925: shlibpath_overrides_runpath=yes
14926: hardcode_into_libs=yes
14927: ;;
14928: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14929: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14930: shlibpath_overrides_runpath=no
14931: hardcode_into_libs=yes
14932: ;;
14933: *) # from 4.6 on, and DragonFly
14934: shlibpath_overrides_runpath=yes
14935: hardcode_into_libs=yes
14936: ;;
14937: esac
14938: ;;
14939:
14940: gnu*)
14941: version_type=linux # correct to gnu/linux during the next big refactor
14942: need_lib_prefix=no
14943: need_version=no
14944: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14945: soname_spec='${libname}${release}${shared_ext}$major'
14946: shlibpath_var=LD_LIBRARY_PATH
14947: shlibpath_overrides_runpath=no
14948: hardcode_into_libs=yes
14949: ;;
14950:
14951: haiku*)
14952: version_type=linux # correct to gnu/linux during the next big refactor
14953: need_lib_prefix=no
14954: need_version=no
14955: dynamic_linker="$host_os runtime_loader"
14956: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14957: soname_spec='${libname}${release}${shared_ext}$major'
14958: shlibpath_var=LIBRARY_PATH
14959: shlibpath_overrides_runpath=yes
14960: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14961: hardcode_into_libs=yes
14962: ;;
14963:
14964: hpux9* | hpux10* | hpux11*)
14965: # Give a soname corresponding to the major version so that dld.sl refuses to
14966: # link against other versions.
14967: version_type=sunos
14968: need_lib_prefix=no
14969: need_version=no
14970: case $host_cpu in
14971: ia64*)
14972: shrext_cmds='.so'
14973: hardcode_into_libs=yes
14974: dynamic_linker="$host_os dld.so"
14975: shlibpath_var=LD_LIBRARY_PATH
14976: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14977: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978: soname_spec='${libname}${release}${shared_ext}$major'
14979: if test "X$HPUX_IA64_MODE" = X32; then
14980: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14981: else
14982: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14983: fi
14984: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14985: ;;
14986: hppa*64*)
14987: shrext_cmds='.sl'
14988: hardcode_into_libs=yes
14989: dynamic_linker="$host_os dld.sl"
14990: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14991: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14992: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14993: soname_spec='${libname}${release}${shared_ext}$major'
14994: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14995: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14996: ;;
14997: *)
14998: shrext_cmds='.sl'
14999: dynamic_linker="$host_os dld.sl"
15000: shlibpath_var=SHLIB_PATH
15001: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15002: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003: soname_spec='${libname}${release}${shared_ext}$major'
15004: ;;
15005: esac
15006: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15007: postinstall_cmds='chmod 555 $lib'
15008: # or fails outright, so override atomically:
15009: install_override_mode=555
15010: ;;
15011:
15012: interix[3-9]*)
15013: version_type=linux # correct to gnu/linux during the next big refactor
15014: need_lib_prefix=no
15015: need_version=no
15016: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15017: soname_spec='${libname}${release}${shared_ext}$major'
15018: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15019: shlibpath_var=LD_LIBRARY_PATH
15020: shlibpath_overrides_runpath=no
15021: hardcode_into_libs=yes
15022: ;;
15023:
15024: irix5* | irix6* | nonstopux*)
15025: case $host_os in
15026: nonstopux*) version_type=nonstopux ;;
15027: *)
15028: if test "$lt_cv_prog_gnu_ld" = yes; then
15029: version_type=linux # correct to gnu/linux during the next big refactor
15030: else
15031: version_type=irix
15032: fi ;;
15033: esac
15034: need_lib_prefix=no
15035: need_version=no
15036: soname_spec='${libname}${release}${shared_ext}$major'
15037: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15038: case $host_os in
15039: irix5* | nonstopux*)
15040: libsuff= shlibsuff=
15041: ;;
15042: *)
15043: case $LD in # libtool.m4 will add one of these switches to LD
15044: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15045: libsuff= shlibsuff= libmagic=32-bit;;
15046: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15047: libsuff=32 shlibsuff=N32 libmagic=N32;;
15048: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15049: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15050: *) libsuff= shlibsuff= libmagic=never-match;;
15051: esac
15052: ;;
15053: esac
15054: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15055: shlibpath_overrides_runpath=no
15056: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15057: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15058: hardcode_into_libs=yes
15059: ;;
15060:
15061: # No shared lib support for Linux oldld, aout, or coff.
15062: linux*oldld* | linux*aout* | linux*coff*)
15063: dynamic_linker=no
15064: ;;
15065:
15066: # This must be glibc/ELF.
15067: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15068: version_type=linux # correct to gnu/linux during the next big refactor
15069: need_lib_prefix=no
15070: need_version=no
15071: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15072: soname_spec='${libname}${release}${shared_ext}$major'
15073: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15074: shlibpath_var=LD_LIBRARY_PATH
15075: shlibpath_overrides_runpath=no
15076:
15077: # Some binutils ld are patched to set DT_RUNPATH
1.31 moko 15078: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15079: $as_echo_n "(cached) " >&6
1.23 moko 15080: else
15081: lt_cv_shlibpath_overrides_runpath=no
15082: save_LDFLAGS=$LDFLAGS
15083: save_libdir=$libdir
15084: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15085: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.31 moko 15086: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15087: /* end confdefs.h. */
15088:
15089: int
15090: main ()
15091: {
15092:
15093: ;
15094: return 0;
15095: }
15096: _ACEOF
1.31 moko 15097: if ac_fn_cxx_try_link "$LINENO"; then :
15098: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.23 moko 15099: lt_cv_shlibpath_overrides_runpath=yes
15100: fi
15101: fi
1.31 moko 15102: rm -f core conftest.err conftest.$ac_objext \
15103: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15104: LDFLAGS=$save_LDFLAGS
15105: libdir=$save_libdir
15106:
15107: fi
15108:
15109: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15110:
15111: # This implies no fast_install, which is unacceptable.
15112: # Some rework will be needed to allow for fast_install
15113: # before this can be enabled.
15114: hardcode_into_libs=yes
15115:
15116: # Append ld.so.conf contents to the search path
15117: if test -f /etc/ld.so.conf; then
15118: 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' ' '`
15119: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15120: fi
15121:
15122: # We used to test for /lib/ld.so.1 and disable shared libraries on
15123: # powerpc, because MkLinux only supported shared libraries with the
15124: # GNU dynamic linker. Since this was broken with cross compilers,
15125: # most powerpc-linux boxes support dynamic linking these days and
15126: # people can always --disable-shared, the test was removed, and we
15127: # assume the GNU/Linux dynamic linker is in use.
15128: dynamic_linker='GNU/Linux ld.so'
15129: ;;
15130:
15131: netbsd*)
15132: version_type=sunos
15133: need_lib_prefix=no
15134: need_version=no
15135: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15136: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15137: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15138: dynamic_linker='NetBSD (a.out) ld.so'
15139: else
15140: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15141: soname_spec='${libname}${release}${shared_ext}$major'
15142: dynamic_linker='NetBSD ld.elf_so'
15143: fi
15144: shlibpath_var=LD_LIBRARY_PATH
15145: shlibpath_overrides_runpath=yes
15146: hardcode_into_libs=yes
15147: ;;
15148:
15149: newsos6)
15150: version_type=linux # correct to gnu/linux during the next big refactor
15151: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152: shlibpath_var=LD_LIBRARY_PATH
15153: shlibpath_overrides_runpath=yes
15154: ;;
15155:
15156: *nto* | *qnx*)
15157: version_type=qnx
15158: need_lib_prefix=no
15159: need_version=no
15160: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161: soname_spec='${libname}${release}${shared_ext}$major'
15162: shlibpath_var=LD_LIBRARY_PATH
15163: shlibpath_overrides_runpath=no
15164: hardcode_into_libs=yes
15165: dynamic_linker='ldqnx.so'
15166: ;;
15167:
15168: openbsd*)
15169: version_type=sunos
15170: sys_lib_dlsearch_path_spec="/usr/lib"
15171: need_lib_prefix=no
15172: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15173: case $host_os in
15174: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15175: *) need_version=no ;;
15176: esac
15177: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15178: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15179: shlibpath_var=LD_LIBRARY_PATH
15180: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15181: case $host_os in
15182: openbsd2.[89] | openbsd2.[89].*)
15183: shlibpath_overrides_runpath=no
15184: ;;
15185: *)
15186: shlibpath_overrides_runpath=yes
15187: ;;
15188: esac
15189: else
15190: shlibpath_overrides_runpath=yes
15191: fi
15192: ;;
15193:
15194: os2*)
15195: libname_spec='$name'
15196: shrext_cmds=".dll"
15197: need_lib_prefix=no
15198: library_names_spec='$libname${shared_ext} $libname.a'
15199: dynamic_linker='OS/2 ld.exe'
15200: shlibpath_var=LIBPATH
15201: ;;
15202:
15203: osf3* | osf4* | osf5*)
15204: version_type=osf
15205: need_lib_prefix=no
15206: need_version=no
15207: soname_spec='${libname}${release}${shared_ext}$major'
15208: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15209: shlibpath_var=LD_LIBRARY_PATH
15210: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15211: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15212: ;;
15213:
15214: rdos*)
15215: dynamic_linker=no
15216: ;;
15217:
15218: solaris*)
15219: version_type=linux # correct to gnu/linux during the next big refactor
15220: need_lib_prefix=no
15221: need_version=no
15222: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223: soname_spec='${libname}${release}${shared_ext}$major'
15224: shlibpath_var=LD_LIBRARY_PATH
15225: shlibpath_overrides_runpath=yes
15226: hardcode_into_libs=yes
15227: # ldd complains unless libraries are executable
15228: postinstall_cmds='chmod +x $lib'
15229: ;;
15230:
15231: sunos4*)
15232: version_type=sunos
15233: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15234: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15235: shlibpath_var=LD_LIBRARY_PATH
15236: shlibpath_overrides_runpath=yes
15237: if test "$with_gnu_ld" = yes; then
15238: need_lib_prefix=no
15239: fi
15240: need_version=yes
15241: ;;
15242:
15243: sysv4 | sysv4.3*)
15244: version_type=linux # correct to gnu/linux during the next big refactor
15245: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246: soname_spec='${libname}${release}${shared_ext}$major'
15247: shlibpath_var=LD_LIBRARY_PATH
15248: case $host_vendor in
15249: sni)
15250: shlibpath_overrides_runpath=no
15251: need_lib_prefix=no
15252: runpath_var=LD_RUN_PATH
15253: ;;
15254: siemens)
15255: need_lib_prefix=no
15256: ;;
15257: motorola)
15258: need_lib_prefix=no
15259: need_version=no
15260: shlibpath_overrides_runpath=no
15261: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15262: ;;
15263: esac
15264: ;;
15265:
15266: sysv4*MP*)
15267: if test -d /usr/nec ;then
15268: version_type=linux # correct to gnu/linux during the next big refactor
15269: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15270: soname_spec='$libname${shared_ext}.$major'
15271: shlibpath_var=LD_LIBRARY_PATH
15272: fi
15273: ;;
15274:
15275: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15276: version_type=freebsd-elf
15277: need_lib_prefix=no
15278: need_version=no
15279: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15280: soname_spec='${libname}${release}${shared_ext}$major'
15281: shlibpath_var=LD_LIBRARY_PATH
15282: shlibpath_overrides_runpath=yes
15283: hardcode_into_libs=yes
15284: if test "$with_gnu_ld" = yes; then
15285: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15286: else
15287: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15288: case $host_os in
15289: sco3.2v5*)
15290: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15291: ;;
15292: esac
15293: fi
15294: sys_lib_dlsearch_path_spec='/usr/lib'
15295: ;;
15296:
15297: tpf*)
15298: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15299: version_type=linux # correct to gnu/linux during the next big refactor
15300: need_lib_prefix=no
15301: need_version=no
15302: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303: shlibpath_var=LD_LIBRARY_PATH
15304: shlibpath_overrides_runpath=no
15305: hardcode_into_libs=yes
15306: ;;
15307:
15308: uts4*)
15309: version_type=linux # correct to gnu/linux during the next big refactor
15310: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311: soname_spec='${libname}${release}${shared_ext}$major'
15312: shlibpath_var=LD_LIBRARY_PATH
15313: ;;
15314:
15315: *)
15316: dynamic_linker=no
15317: ;;
15318: esac
1.31 moko 15319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15320: $as_echo "$dynamic_linker" >&6; }
1.23 moko 15321: test "$dynamic_linker" = no && can_build_shared=no
15322:
15323: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15324: if test "$GCC" = yes; then
15325: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15326: fi
15327:
15328: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15329: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15330: fi
15331: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15332: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15333: fi
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:
15366:
15367:
15368:
15369:
15370:
15371:
1.31 moko 15372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15373: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.23 moko 15374: hardcode_action_CXX=
15375: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15376: test -n "$runpath_var_CXX" ||
15377: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15378:
15379: # We can hardcode non-existent directories.
15380: if test "$hardcode_direct_CXX" != no &&
15381: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15382: # have to relink, otherwise we might link with an installed library
15383: # when we should be linking with a yet-to-be-installed one
15384: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15385: test "$hardcode_minus_L_CXX" != no; then
15386: # Linking always hardcodes the temporary library directory.
15387: hardcode_action_CXX=relink
15388: else
15389: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15390: hardcode_action_CXX=immediate
15391: fi
15392: else
15393: # We cannot hardcode anything, or else we can only hardcode existing
15394: # directories.
15395: hardcode_action_CXX=unsupported
15396: fi
1.31 moko 15397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15398: $as_echo "$hardcode_action_CXX" >&6; }
1.23 moko 15399:
15400: if test "$hardcode_action_CXX" = relink ||
15401: test "$inherit_rpath_CXX" = yes; then
15402: # Fast installation is not supported
15403: enable_fast_install=no
15404: elif test "$shlibpath_overrides_runpath" = yes ||
15405: test "$enable_shared" = no; then
15406: # Fast installation is not necessary
15407: enable_fast_install=needless
15408: fi
15409:
15410:
15411:
15412:
15413:
15414:
15415:
15416: fi # test -n "$compiler"
15417:
15418: CC=$lt_save_CC
15419: CFLAGS=$lt_save_CFLAGS
15420: LDCXX=$LD
15421: LD=$lt_save_LD
15422: GCC=$lt_save_GCC
15423: with_gnu_ld=$lt_save_with_gnu_ld
15424: lt_cv_path_LDCXX=$lt_cv_path_LD
15425: lt_cv_path_LD=$lt_save_path_LD
15426: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15427: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15428: fi # test "$_lt_caught_CXX_error" != yes
15429:
15430: ac_ext=c
15431: ac_cpp='$CPP $CPPFLAGS'
15432: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15433: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15434: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15435:
15436:
15437:
15438:
15439:
15440:
15441:
15442:
15443:
15444:
15445:
15446:
15447:
15448:
15449:
1.31 moko 15450: ac_config_commands="$ac_config_commands libtool"
1.23 moko 15451:
15452:
15453:
15454:
15455: # Only expand once:
15456:
15457:
1.31 moko 15458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15459: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15460: if ${libltdl_cv_shlibext+:} false; then :
15461: $as_echo_n "(cached) " >&6
1.23 moko 15462: else
15463:
15464: module=yes
15465: eval libltdl_cv_shlibext=$shrext_cmds
15466: module=no
15467: eval libltdl_cv_shrext=$shrext_cmds
15468:
15469: fi
1.31 moko 15470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15471: $as_echo "$libltdl_cv_shlibext" >&6; }
1.23 moko 15472: if test -n "$libltdl_cv_shlibext"; then
15473:
15474: cat >>confdefs.h <<_ACEOF
15475: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15476: _ACEOF
15477:
15478: fi
15479: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15480:
15481: cat >>confdefs.h <<_ACEOF
15482: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15483: _ACEOF
15484:
15485: fi
15486:
1.31 moko 15487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15488: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15489: if ${lt_cv_module_path_var+:} false; then :
15490: $as_echo_n "(cached) " >&6
1.23 moko 15491: else
15492: lt_cv_module_path_var="$shlibpath_var"
15493: fi
1.31 moko 15494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15495: $as_echo "$lt_cv_module_path_var" >&6; }
1.23 moko 15496: if test -n "$lt_cv_module_path_var"; then
15497:
15498: cat >>confdefs.h <<_ACEOF
15499: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15500: _ACEOF
15501:
15502: fi
15503:
1.31 moko 15504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15505: $as_echo_n "checking for the default library search path... " >&6; }
15506: if ${lt_cv_sys_dlsearch_path+:} false; then :
15507: $as_echo_n "(cached) " >&6
1.23 moko 15508: else
15509: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15510: fi
1.31 moko 15511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15512: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.23 moko 15513: if test -n "$lt_cv_sys_dlsearch_path"; then
15514: sys_dlsearch_path=
15515: for dir in $lt_cv_sys_dlsearch_path; do
15516: if test -z "$sys_dlsearch_path"; then
15517: sys_dlsearch_path="$dir"
15518: else
15519: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15520: fi
15521: done
15522:
15523: cat >>confdefs.h <<_ACEOF
15524: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15525: _ACEOF
15526:
15527: fi
15528:
15529:
15530: LT_DLLOADERS=
15531:
15532:
15533: ac_ext=c
15534: ac_cpp='$CPP $CPPFLAGS'
15535: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15536: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15537: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15538:
15539:
15540: LIBADD_DLOPEN=
1.31 moko 15541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15542: $as_echo_n "checking for library containing dlopen... " >&6; }
15543: if ${ac_cv_search_dlopen+:} false; then :
15544: $as_echo_n "(cached) " >&6
1.23 moko 15545: else
15546: ac_func_search_save_LIBS=$LIBS
1.31 moko 15547: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15548: /* end confdefs.h. */
15549:
1.31 moko 15550: /* Override any GCC internal prototype to avoid an error.
15551: Use char because int might match the return type of a GCC
15552: builtin and then its argument prototype would still apply. */
1.23 moko 15553: #ifdef __cplusplus
15554: extern "C"
15555: #endif
15556: char dlopen ();
15557: int
15558: main ()
15559: {
1.31 moko 15560: return dlopen ();
1.23 moko 15561: ;
15562: return 0;
15563: }
15564: _ACEOF
1.31 moko 15565: for ac_lib in '' dl; do
15566: if test -z "$ac_lib"; then
15567: ac_res="none required"
15568: else
15569: ac_res=-l$ac_lib
15570: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15571: fi
15572: if ac_fn_c_try_link "$LINENO"; then :
15573: ac_cv_search_dlopen=$ac_res
15574: fi
15575: rm -f core conftest.err conftest.$ac_objext \
15576: conftest$ac_exeext
15577: if ${ac_cv_search_dlopen+:} false; then :
15578: break
1.23 moko 15579: fi
1.31 moko 15580: done
15581: if ${ac_cv_search_dlopen+:} false; then :
1.23 moko 15582:
15583: else
1.31 moko 15584: ac_cv_search_dlopen=no
1.23 moko 15585: fi
1.31 moko 15586: rm conftest.$ac_ext
1.23 moko 15587: LIBS=$ac_func_search_save_LIBS
15588: fi
1.31 moko 15589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15590: $as_echo "$ac_cv_search_dlopen" >&6; }
15591: ac_res=$ac_cv_search_dlopen
15592: if test "$ac_res" != no; then :
15593: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.23 moko 15594:
1.31 moko 15595: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.23 moko 15596:
15597: if test "$ac_cv_search_dlopen" != "none required" ; then
15598: LIBADD_DLOPEN="-ldl"
15599: fi
15600: libltdl_cv_lib_dl_dlopen="yes"
15601: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15602: else
1.31 moko 15603: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15604: /* end confdefs.h. */
15605: #if HAVE_DLFCN_H
15606: # include <dlfcn.h>
15607: #endif
15608:
15609: int
15610: main ()
15611: {
15612: dlopen(0, 0);
15613: ;
15614: return 0;
15615: }
15616: _ACEOF
1.31 moko 15617: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 15618:
1.31 moko 15619: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.23 moko 15620:
15621: libltdl_cv_func_dlopen="yes"
15622: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15623: else
1.31 moko 15624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15625: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15626: if ${ac_cv_lib_svld_dlopen+:} false; then :
15627: $as_echo_n "(cached) " >&6
1.23 moko 15628: else
15629: ac_check_lib_save_LIBS=$LIBS
15630: LIBS="-lsvld $LIBS"
1.31 moko 15631: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15632: /* end confdefs.h. */
15633:
1.31 moko 15634: /* Override any GCC internal prototype to avoid an error.
15635: Use char because int might match the return type of a GCC
1.23 moko 15636: builtin and then its argument prototype would still apply. */
15637: #ifdef __cplusplus
1.31 moko 15638: extern "C"
1.23 moko 15639: #endif
1.31 moko 15640: char dlopen ();
1.23 moko 15641: int
15642: main ()
15643: {
1.31 moko 15644: return dlopen ();
1.23 moko 15645: ;
15646: return 0;
15647: }
15648: _ACEOF
1.31 moko 15649: if ac_fn_c_try_link "$LINENO"; then :
15650: ac_cv_lib_svld_dlopen=yes
1.23 moko 15651: else
1.31 moko 15652: ac_cv_lib_svld_dlopen=no
15653: fi
15654: rm -f core conftest.err conftest.$ac_objext \
15655: conftest$ac_exeext conftest.$ac_ext
15656: LIBS=$ac_check_lib_save_LIBS
15657: fi
15658: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15659: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15660: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15661:
15662: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15663:
15664: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15665: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15666: fi
1.23 moko 15667:
15668: fi
1.31 moko 15669: rm -f core conftest.err conftest.$ac_objext \
15670: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15671: fi
1.31 moko 15672:
15673: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15674: then
15675: lt_save_LIBS="$LIBS"
15676: LIBS="$LIBS $LIBADD_DLOPEN"
15677: for ac_func in dlerror
15678: do :
15679: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
15680: if test "x$ac_cv_func_dlerror" = xyes; then :
1.23 moko 15681: cat >>confdefs.h <<_ACEOF
1.31 moko 15682: #define HAVE_DLERROR 1
1.23 moko 15683: _ACEOF
15684:
15685: fi
15686: done
15687:
15688: LIBS="$lt_save_LIBS"
15689: fi
15690:
15691:
15692: LIBADD_SHL_LOAD=
1.31 moko 15693: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15694: if test "x$ac_cv_func_shl_load" = xyes; then :
1.23 moko 15695:
1.31 moko 15696: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.23 moko 15697:
15698: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15699: else
1.31 moko 15700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15701: $as_echo_n "checking for shl_load in -ldld... " >&6; }
15702: if ${ac_cv_lib_dld_shl_load+:} false; then :
15703: $as_echo_n "(cached) " >&6
1.23 moko 15704: else
15705: ac_check_lib_save_LIBS=$LIBS
15706: LIBS="-ldld $LIBS"
1.31 moko 15707: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15708: /* end confdefs.h. */
15709:
1.31 moko 15710: /* Override any GCC internal prototype to avoid an error.
15711: Use char because int might match the return type of a GCC
15712: builtin and then its argument prototype would still apply. */
1.23 moko 15713: #ifdef __cplusplus
15714: extern "C"
15715: #endif
15716: char shl_load ();
15717: int
15718: main ()
15719: {
1.31 moko 15720: return shl_load ();
1.23 moko 15721: ;
15722: return 0;
15723: }
15724: _ACEOF
1.31 moko 15725: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 15726: ac_cv_lib_dld_shl_load=yes
15727: else
1.31 moko 15728: ac_cv_lib_dld_shl_load=no
1.23 moko 15729: fi
1.31 moko 15730: rm -f core conftest.err conftest.$ac_objext \
15731: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15732: LIBS=$ac_check_lib_save_LIBS
15733: fi
1.31 moko 15734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15735: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15736: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.23 moko 15737:
1.31 moko 15738: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.23 moko 15739:
15740: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15741: LIBADD_SHL_LOAD="-ldld"
15742: fi
15743:
15744: fi
15745:
15746:
15747:
15748: case $host_os in
15749: darwin[1567].*)
15750: # We only want this for pre-Mac OS X 10.4.
1.31 moko 15751: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
15752: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
1.23 moko 15753:
1.31 moko 15754: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.23 moko 15755:
15756: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15757: fi
15758:
15759: ;;
15760: beos*)
15761: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15762: ;;
15763: cygwin* | mingw* | os2* | pw32*)
1.31 moko 15764: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
15765: "
15766: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
15767: ac_have_decl=1
1.23 moko 15768: else
1.31 moko 15769: ac_have_decl=0
1.23 moko 15770: fi
15771:
15772: cat >>confdefs.h <<_ACEOF
1.31 moko 15773: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.23 moko 15774: _ACEOF
15775:
15776: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15777: ;;
15778: esac
15779:
1.31 moko 15780: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15781: $as_echo_n "checking for dld_link in -ldld... " >&6; }
15782: if ${ac_cv_lib_dld_dld_link+:} false; then :
15783: $as_echo_n "(cached) " >&6
1.23 moko 15784: else
15785: ac_check_lib_save_LIBS=$LIBS
15786: LIBS="-ldld $LIBS"
1.31 moko 15787: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 15788: /* end confdefs.h. */
15789:
1.31 moko 15790: /* Override any GCC internal prototype to avoid an error.
15791: Use char because int might match the return type of a GCC
15792: builtin and then its argument prototype would still apply. */
1.23 moko 15793: #ifdef __cplusplus
15794: extern "C"
15795: #endif
15796: char dld_link ();
15797: int
15798: main ()
15799: {
1.31 moko 15800: return dld_link ();
1.23 moko 15801: ;
15802: return 0;
15803: }
15804: _ACEOF
1.31 moko 15805: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 15806: ac_cv_lib_dld_dld_link=yes
15807: else
1.31 moko 15808: ac_cv_lib_dld_dld_link=no
1.23 moko 15809: fi
1.31 moko 15810: rm -f core conftest.err conftest.$ac_objext \
15811: conftest$ac_exeext conftest.$ac_ext
1.23 moko 15812: LIBS=$ac_check_lib_save_LIBS
15813: fi
1.31 moko 15814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15815: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15816: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.23 moko 15817:
1.31 moko 15818: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.23 moko 15819:
15820: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15821: fi
15822:
15823:
15824:
15825:
15826: LT_DLPREOPEN=
15827: if test -n "$LT_DLLOADERS"
15828: then
15829: for lt_loader in $LT_DLLOADERS; do
15830: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15831: done
15832:
1.31 moko 15833: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.23 moko 15834:
15835: fi
15836:
15837:
15838: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15839:
15840:
15841: ac_ext=c
15842: ac_cpp='$CPP $CPPFLAGS'
15843: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15844: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15845: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15846:
15847:
1.31 moko 15848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15849: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15850: if ${lt_cv_sys_symbol_underscore+:} false; then :
15851: $as_echo_n "(cached) " >&6
1.23 moko 15852: else
15853: lt_cv_sys_symbol_underscore=no
15854: cat > conftest.$ac_ext <<_LT_EOF
15855: void nm_test_func(){}
15856: int main(){nm_test_func;return 0;}
15857: _LT_EOF
1.31 moko 15858: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.23 moko 15859: (eval $ac_compile) 2>&5
15860: ac_status=$?
1.31 moko 15861: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15862: test $ac_status = 0; }; then
1.23 moko 15863: # Now try to grab the symbols.
15864: ac_nlist=conftest.nm
1.31 moko 15865: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.23 moko 15866: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15867: ac_status=$?
1.31 moko 15868: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15869: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.23 moko 15870: # See whether the symbols have a leading underscore.
15871: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15872: lt_cv_sys_symbol_underscore=yes
15873: else
15874: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15875: :
15876: else
15877: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15878: fi
15879: fi
15880: else
15881: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15882: fi
15883: else
15884: echo "configure: failed program was:" >&5
15885: cat conftest.c >&5
15886: fi
15887: rm -rf conftest*
15888:
15889: fi
1.31 moko 15890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
15891: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.23 moko 15892: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15893:
15894:
15895: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15896: if test x"$libltdl_cv_func_dlopen" = xyes ||
15897: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.31 moko 15898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
15899: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
15900: if ${libltdl_cv_need_uscore+:} false; then :
15901: $as_echo_n "(cached) " >&6
1.23 moko 15902: else
15903: libltdl_cv_need_uscore=unknown
15904: save_LIBS="$LIBS"
15905: LIBS="$LIBS $LIBADD_DLOPEN"
15906: if test "$cross_compiling" = yes; then :
15907: libltdl_cv_need_uscore=cross
15908: else
15909: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15910: lt_status=$lt_dlunknown
15911: cat > conftest.$ac_ext <<_LT_EOF
15912: #line $LINENO "configure"
15913: #include "confdefs.h"
15914:
15915: #if HAVE_DLFCN_H
15916: #include <dlfcn.h>
15917: #endif
15918:
15919: #include <stdio.h>
15920:
15921: #ifdef RTLD_GLOBAL
15922: # define LT_DLGLOBAL RTLD_GLOBAL
15923: #else
15924: # ifdef DL_GLOBAL
15925: # define LT_DLGLOBAL DL_GLOBAL
15926: # else
15927: # define LT_DLGLOBAL 0
15928: # endif
15929: #endif
15930:
15931: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15932: find out it does not work in some platform. */
15933: #ifndef LT_DLLAZY_OR_NOW
15934: # ifdef RTLD_LAZY
15935: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15936: # else
15937: # ifdef DL_LAZY
15938: # define LT_DLLAZY_OR_NOW DL_LAZY
15939: # else
15940: # ifdef RTLD_NOW
15941: # define LT_DLLAZY_OR_NOW RTLD_NOW
15942: # else
15943: # ifdef DL_NOW
15944: # define LT_DLLAZY_OR_NOW DL_NOW
15945: # else
15946: # define LT_DLLAZY_OR_NOW 0
15947: # endif
15948: # endif
15949: # endif
15950: # endif
15951: #endif
15952:
15953: /* When -fvisbility=hidden is used, assume the code has been annotated
15954: correspondingly for the symbols needed. */
15955: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15956: int fnord () __attribute__((visibility("default")));
15957: #endif
15958:
15959: int fnord () { return 42; }
15960: int main ()
15961: {
15962: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15963: int status = $lt_dlunknown;
15964:
15965: if (self)
15966: {
15967: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15968: else
15969: {
15970: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15971: else puts (dlerror ());
15972: }
15973: /* dlclose (self); */
15974: }
15975: else
15976: puts (dlerror ());
15977:
15978: return status;
15979: }
15980: _LT_EOF
1.31 moko 15981: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.23 moko 15982: (eval $ac_link) 2>&5
15983: ac_status=$?
1.31 moko 15984: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15985: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.23 moko 15986: (./conftest; exit; ) >&5 2>/dev/null
15987: lt_status=$?
15988: case x$lt_status in
15989: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15990: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15991: x$lt_dlunknown|x*) ;;
15992: esac
15993: else :
15994: # compilation failed
15995:
15996: fi
15997: fi
15998: rm -fr conftest*
15999:
16000: LIBS="$save_LIBS"
16001:
16002: fi
1.31 moko 16003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16004: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.23 moko 16005: fi
16006: fi
16007:
16008: if test x"$libltdl_cv_need_uscore" = xyes; then
16009:
1.31 moko 16010: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.23 moko 16011:
16012: fi
16013:
1.31 moko 16014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16015: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16016: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16017: $as_echo_n "(cached) " >&6
1.23 moko 16018: else
16019: # PORTME does your system automatically load deplibs for dlopen?
16020: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16021: # For now, we just catch OSes we know something about -- in the
16022: # future, we'll try test this programmatically.
16023: lt_cv_sys_dlopen_deplibs=unknown
16024: case $host_os in
16025: aix3*|aix4.1.*|aix4.2.*)
16026: # Unknown whether this is true for these versions of AIX, but
16027: # we want this `case' here to explicitly catch those versions.
16028: lt_cv_sys_dlopen_deplibs=unknown
16029: ;;
16030: aix[4-9]*)
16031: lt_cv_sys_dlopen_deplibs=yes
16032: ;;
16033: amigaos*)
16034: case $host_cpu in
16035: powerpc)
16036: lt_cv_sys_dlopen_deplibs=no
16037: ;;
16038: esac
16039: ;;
16040: darwin*)
16041: # Assuming the user has installed a libdl from somewhere, this is true
16042: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16043: lt_cv_sys_dlopen_deplibs=yes
16044: ;;
16045: freebsd* | dragonfly*)
16046: lt_cv_sys_dlopen_deplibs=yes
16047: ;;
16048: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16049: # GNU and its variants, using gnu ld.so (Glibc)
16050: lt_cv_sys_dlopen_deplibs=yes
16051: ;;
16052: hpux10*|hpux11*)
16053: lt_cv_sys_dlopen_deplibs=yes
16054: ;;
16055: interix*)
16056: lt_cv_sys_dlopen_deplibs=yes
16057: ;;
16058: irix[12345]*|irix6.[01]*)
16059: # Catch all versions of IRIX before 6.2, and indicate that we don't
16060: # know how it worked for any of those versions.
16061: lt_cv_sys_dlopen_deplibs=unknown
16062: ;;
16063: irix*)
16064: # The case above catches anything before 6.2, and it's known that
16065: # at 6.2 and later dlopen does load deplibs.
16066: lt_cv_sys_dlopen_deplibs=yes
16067: ;;
16068: netbsd*)
16069: lt_cv_sys_dlopen_deplibs=yes
16070: ;;
16071: openbsd*)
16072: lt_cv_sys_dlopen_deplibs=yes
16073: ;;
16074: osf[1234]*)
16075: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16076: # it did *not* use an RPATH in a shared library to find objects the
16077: # library depends on, so we explicitly say `no'.
16078: lt_cv_sys_dlopen_deplibs=no
16079: ;;
16080: osf5.0|osf5.0a|osf5.1)
16081: # dlopen *does* load deplibs and with the right loader patch applied
16082: # it even uses RPATH in a shared library to search for shared objects
16083: # that the library depends on, but there's no easy way to know if that
16084: # patch is installed. Since this is the case, all we can really
16085: # say is unknown -- it depends on the patch being installed. If
16086: # it is, this changes to `yes'. Without it, it would be `no'.
16087: lt_cv_sys_dlopen_deplibs=unknown
16088: ;;
16089: osf*)
16090: # the two cases above should catch all versions of osf <= 5.1. Read
16091: # the comments above for what we know about them.
16092: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16093: # is used to find them so we can finally say `yes'.
16094: lt_cv_sys_dlopen_deplibs=yes
16095: ;;
16096: qnx*)
16097: lt_cv_sys_dlopen_deplibs=yes
16098: ;;
16099: solaris*)
16100: lt_cv_sys_dlopen_deplibs=yes
16101: ;;
16102: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16103: libltdl_cv_sys_dlopen_deplibs=yes
16104: ;;
16105: esac
16106:
16107: fi
1.31 moko 16108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16109: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.23 moko 16110: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16111:
1.31 moko 16112: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.23 moko 16113:
16114: fi
16115:
16116: :
16117:
16118: for ac_header in argz.h
1.31 moko 16119: do :
16120: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16121: "
16122: if test "x$ac_cv_header_argz_h" = xyes; then :
1.23 moko 16123: cat >>confdefs.h <<_ACEOF
1.31 moko 16124: #define HAVE_ARGZ_H 1
1.23 moko 16125: _ACEOF
16126:
16127: fi
16128:
16129: done
16130:
16131:
1.31 moko 16132: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
16133: # include <argz.h>
1.23 moko 16134: #endif
1.31 moko 16135: "
16136: if test "x$ac_cv_type_error_t" = xyes; then :
1.23 moko 16137:
1.31 moko 16138: cat >>confdefs.h <<_ACEOF
16139: #define HAVE_ERROR_T 1
1.23 moko 16140: _ACEOF
1.31 moko 16141:
16142:
1.23 moko 16143: else
16144:
1.31 moko 16145: $as_echo "#define error_t int" >>confdefs.h
16146:
16147:
16148: $as_echo "#define __error_t_defined 1" >>confdefs.h
16149:
1.23 moko 16150: fi
1.31 moko 16151:
16152:
16153: ARGZ_H=
16154: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16155: argz_next argz_stringify
16156: do :
16157: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16158: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16159: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.23 moko 16160: cat >>confdefs.h <<_ACEOF
1.31 moko 16161: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 moko 16162: _ACEOF
16163:
16164: else
16165: ARGZ_H=argz.h;
16166:
16167: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16168:
16169: fi
16170: done
16171:
16172:
1.31 moko 16173: if test -z "$ARGZ_H"; then :
16174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16175: $as_echo_n "checking if argz actually works... " >&6; }
16176: if ${lt_cv_sys_argz_works+:} false; then :
16177: $as_echo_n "(cached) " >&6
1.23 moko 16178: else
16179: case $host_os in #(
16180: *cygwin*)
16181: lt_cv_sys_argz_works=no
16182: if test "$cross_compiling" != no; then
16183: lt_cv_sys_argz_works="guessing no"
16184: else
16185: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16186: save_IFS=$IFS
16187: IFS=-.
16188: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16189: IFS=$save_IFS
16190: lt_os_major=${2-0}
16191: lt_os_minor=${3-0}
16192: lt_os_micro=${4-0}
16193: if test "$lt_os_major" -gt 1 \
16194: || { test "$lt_os_major" -eq 1 \
16195: && { test "$lt_os_minor" -gt 5 \
16196: || { test "$lt_os_minor" -eq 5 \
16197: && test "$lt_os_micro" -gt 24; }; }; }; then
16198: lt_cv_sys_argz_works=yes
16199: fi
16200: fi
16201: ;; #(
16202: *) lt_cv_sys_argz_works=yes ;;
16203: esac
16204: fi
1.31 moko 16205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16206: $as_echo "$lt_cv_sys_argz_works" >&6; }
16207: if test "$lt_cv_sys_argz_works" = yes; then :
1.23 moko 16208:
1.31 moko 16209: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.23 moko 16210:
16211: else
16212: ARGZ_H=argz.h
16213:
16214:
16215: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16216:
16217: fi
16218: fi
16219:
16220:
16221:
1.31 moko 16222: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16223: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16224: if ${libltdl_cv_preloaded_symbols+:} false; then :
16225: $as_echo_n "(cached) " >&6
1.23 moko 16226: else
16227: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16228: libltdl_cv_preloaded_symbols=yes
16229: else
16230: libltdl_cv_preloaded_symbols=no
16231: fi
16232:
16233: fi
1.31 moko 16234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16235: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.23 moko 16236: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16237:
1.31 moko 16238: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.23 moko 16239:
16240: fi
16241:
1.31 moko 16242:
16243:
1.23 moko 16244: # Set options
16245:
16246:
16247:
16248:
16249:
16250:
16251:
16252:
16253:
16254:
16255:
16256:
1.31 moko 16257: # Check whether --with-included_ltdl was given.
16258: if test "${with_included_ltdl+set}" = set; then :
16259: withval=$with_included_ltdl;
16260: fi
1.23 moko 16261:
16262:
16263: if test "x$with_included_ltdl" != xyes; then
16264: # We are not being forced to use the included libltdl sources, so
16265: # decide whether there is a useful installed version we can use.
1.31 moko 16266: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.23 moko 16267:
1.31 moko 16268: "
16269: if test "x$ac_cv_header_ltdl_h" = xyes; then :
16270: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.23 moko 16271: #include <ltdl.h>
1.31 moko 16272: "
16273: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16275: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16276: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16277: $as_echo_n "(cached) " >&6
1.23 moko 16278: else
16279: ac_check_lib_save_LIBS=$LIBS
16280: LIBS="-lltdl $LIBS"
1.31 moko 16281: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.23 moko 16282: /* end confdefs.h. */
16283:
1.31 moko 16284: /* Override any GCC internal prototype to avoid an error.
16285: Use char because int might match the return type of a GCC
16286: builtin and then its argument prototype would still apply. */
1.23 moko 16287: #ifdef __cplusplus
16288: extern "C"
16289: #endif
16290: char lt_dladvise_preload ();
16291: int
16292: main ()
16293: {
1.31 moko 16294: return lt_dladvise_preload ();
1.23 moko 16295: ;
16296: return 0;
16297: }
16298: _ACEOF
1.31 moko 16299: if ac_fn_c_try_link "$LINENO"; then :
1.23 moko 16300: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16301: else
1.31 moko 16302: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.23 moko 16303: fi
1.31 moko 16304: rm -f core conftest.err conftest.$ac_objext \
16305: conftest$ac_exeext conftest.$ac_ext
1.23 moko 16306: LIBS=$ac_check_lib_save_LIBS
16307: fi
1.31 moko 16308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16309: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16310: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.23 moko 16311: with_included_ltdl=no
16312: else
16313: with_included_ltdl=yes
16314: fi
16315:
16316: else
16317: with_included_ltdl=yes
16318: fi
16319:
16320: else
16321: with_included_ltdl=yes
16322: fi
16323:
16324:
16325: fi
16326:
16327:
16328:
16329:
1.31 moko 16330: # Check whether --with-ltdl_include was given.
16331: if test "${with_ltdl_include+set}" = set; then :
16332: withval=$with_ltdl_include;
16333: fi
1.23 moko 16334:
16335:
16336: if test -n "$with_ltdl_include"; then
16337: if test -f "$with_ltdl_include/ltdl.h"; then :
16338: else
1.31 moko 16339: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.23 moko 16340: fi
16341: else
16342: with_ltdl_include=no
16343: fi
16344:
16345:
1.31 moko 16346: # Check whether --with-ltdl_lib was given.
16347: if test "${with_ltdl_lib+set}" = set; then :
16348: withval=$with_ltdl_lib;
16349: fi
1.23 moko 16350:
16351:
16352: if test -n "$with_ltdl_lib"; then
16353: if test -f "$with_ltdl_lib/libltdl.la"; then :
16354: else
1.31 moko 16355: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.23 moko 16356: fi
16357: else
16358: with_ltdl_lib=no
16359: fi
16360:
16361: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16362: ,yes,no,no,)
16363: case $enable_ltdl_convenience in
1.31 moko 16364: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.23 moko 16365: "") enable_ltdl_convenience=yes
16366: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16367: esac
1.31 moko 16368: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.23 moko 16369: LTDLDEPS=$LIBLTDL
16370: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16371:
16372:
16373:
16374:
16375:
16376: # For backwards non-gettext consistent compatibility...
16377: INCLTDL="$LTDLINCL"
16378:
16379:
16380: ;;
16381: ,no,no,no,)
16382: # If the included ltdl is not to be used, then use the
16383: # preinstalled libltdl we found.
16384:
1.31 moko 16385: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.23 moko 16386:
16387: LIBLTDL=-lltdl
16388: LTDLDEPS=
16389: LTDLINCL=
16390: ;;
16391: ,no*,no,*)
1.31 moko 16392: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.23 moko 16393: ;;
16394: *) with_included_ltdl=no
16395: LIBLTDL="-L$with_ltdl_lib -lltdl"
16396: LTDLDEPS=
16397: LTDLINCL="-I$with_ltdl_include"
16398: ;;
16399: esac
16400: INCLTDL="$LTDLINCL"
16401:
16402: # Report our decision...
1.31 moko 16403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
16404: $as_echo_n "checking where to find libltdl headers... " >&6; }
16405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
16406: $as_echo "$LTDLINCL" >&6; }
16407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
16408: $as_echo_n "checking where to find libltdl library... " >&6; }
16409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
16410: $as_echo "$LIBLTDL" >&6; }
1.23 moko 16411:
16412:
16413:
1.31 moko 16414: # Check whether --enable-ltdl-install was given.
16415: if test "${enable_ltdl_install+set}" = set; then :
16416: enableval=$enable_ltdl_install;
16417: fi
1.23 moko 16418:
16419:
16420: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16421: *yes*) ;;
16422: *) enable_ltdl_convenience=yes ;;
16423: esac
16424:
1.31 moko 16425: if test x"${enable_ltdl_install-no}" != xno; then
1.23 moko 16426: INSTALL_LTDL_TRUE=
16427: INSTALL_LTDL_FALSE='#'
16428: else
16429: INSTALL_LTDL_TRUE='#'
16430: INSTALL_LTDL_FALSE=
16431: fi
16432:
1.31 moko 16433: if test x"${enable_ltdl_convenience-no}" != xno; then
1.23 moko 16434: CONVENIENCE_LTDL_TRUE=
16435: CONVENIENCE_LTDL_FALSE='#'
16436: else
16437: CONVENIENCE_LTDL_TRUE='#'
16438: CONVENIENCE_LTDL_FALSE=
16439: fi
16440:
16441:
16442:
1.31 moko 16443: subdirs="$subdirs libltdl"
1.23 moko 16444:
16445:
16446:
16447:
16448: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16449: # the user used. This is so that ltdl.h can pick up the parent projects
16450: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16451: # definitions required by ltdl.c.
16452: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16453:
16454:
16455:
16456: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
1.31 moko 16457: do :
16458: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16459: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16460: "
16461: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.23 moko 16462: cat >>confdefs.h <<_ACEOF
1.31 moko 16463: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 moko 16464: _ACEOF
16465:
16466: fi
16467:
16468: done
16469:
16470:
16471: for ac_func in closedir opendir readdir
1.31 moko 16472: do :
16473: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16474: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16475: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.23 moko 16476: cat >>confdefs.h <<_ACEOF
1.31 moko 16477: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 moko 16478: _ACEOF
16479:
16480: else
16481:
16482:
16483: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16484:
16485: fi
16486: done
16487:
16488: for ac_func in strlcat strlcpy
1.31 moko 16489: do :
16490: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16491: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16492: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.23 moko 16493: cat >>confdefs.h <<_ACEOF
1.31 moko 16494: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 moko 16495: _ACEOF
16496:
16497: else
16498:
16499:
16500: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16501:
16502: fi
16503: done
16504:
16505:
16506:
16507: cat >>confdefs.h <<_ACEOF
16508: #define LT_LIBEXT "$libext"
16509: _ACEOF
16510:
16511:
16512: name=
16513: eval "lt_libprefix=\"$libname_spec\""
16514:
16515: cat >>confdefs.h <<_ACEOF
16516: #define LT_LIBPREFIX "$lt_libprefix"
16517: _ACEOF
16518:
16519:
16520: name=ltdl
16521: eval "LTDLOPEN=\"$libname_spec\""
16522:
16523:
16524:
16525:
16526:
16527:
16528:
16529:
16530: # Only expand once:
16531:
16532:
16533:
16534:
1.31 moko 16535: for ac_header in stdio.h \
16536: stdlib.h \
16537: string.h \
16538: setjmp.h \
16539: ctype.h
1.23 moko 16540:
1.31 moko 16541: do :
16542: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16543: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16544: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.23 moko 16545: cat >>confdefs.h <<_ACEOF
1.31 moko 16546: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 moko 16547: _ACEOF
16548:
16549: fi
16550:
16551: done
16552:
16553:
1.31 moko 16554: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16555: if test "x$ac_cv_type_size_t" = xyes; then :
1.23 moko 16556:
16557: else
16558:
16559: cat >>confdefs.h <<_ACEOF
1.31 moko 16560: #define size_t unsigned int
1.23 moko 16561: _ACEOF
16562:
16563: fi
16564:
16565:
16566:
1.31 moko 16567: ac_config_files="$ac_config_files Makefile"
16568:
1.23 moko 16569: cat >confcache <<\_ACEOF
16570: # This file is a shell script that caches the results of configure
16571: # tests run on this system so they can be shared between configure
16572: # scripts and configure runs, see configure's option --config-cache.
16573: # It is not useful on other systems. If it contains results you don't
16574: # want to keep, you may remove or edit it.
16575: #
16576: # config.status only pays attention to the cache file if you give it
16577: # the --recheck option to rerun configure.
16578: #
16579: # `ac_cv_env_foo' variables (set or unset) will be overridden when
16580: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16581: # following values.
16582:
16583: _ACEOF
16584:
16585: # The following way of writing the cache mishandles newlines in values,
16586: # but we know of no workaround that is simple, portable, and efficient.
1.31 moko 16587: # So, we kill variables containing newlines.
1.23 moko 16588: # Ultrix sh set writes to stderr and can't be redirected directly,
16589: # and sets the high bit in the cache file unless we assign to the vars.
1.31 moko 16590: (
16591: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16592: eval ac_val=\$$ac_var
16593: case $ac_val in #(
16594: *${as_nl}*)
16595: case $ac_var in #(
16596: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16597: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16598: esac
16599: case $ac_var in #(
16600: _ | IFS | as_nl) ;; #(
16601: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16602: *) { eval $ac_var=; unset $ac_var;} ;;
16603: esac ;;
16604: esac
16605: done
16606:
1.23 moko 16607: (set) 2>&1 |
1.31 moko 16608: case $as_nl`(ac_space=' '; set) 2>&1` in #(
16609: *${as_nl}ac_space=\ *)
16610: # `set' does not quote correctly, so add quotes: double-quote
16611: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.23 moko 16612: sed -n \
16613: "s/'/'\\\\''/g;
16614: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.31 moko 16615: ;; #(
1.23 moko 16616: *)
16617: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.31 moko 16618: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.23 moko 16619: ;;
1.31 moko 16620: esac |
16621: sort
16622: ) |
1.23 moko 16623: sed '
1.31 moko 16624: /^ac_cv_env_/b end
1.23 moko 16625: t clear
1.31 moko 16626: :clear
1.23 moko 16627: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16628: t end
1.31 moko 16629: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16630: :end' >>confcache
16631: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16632: if test -w "$cache_file"; then
16633: if test "x$cache_file" != "x/dev/null"; then
16634: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16635: $as_echo "$as_me: updating cache $cache_file" >&6;}
16636: if test ! -f "$cache_file" || test -h "$cache_file"; then
16637: cat confcache >"$cache_file"
16638: else
16639: case $cache_file in #(
16640: */* | ?:*)
16641: mv -f confcache "$cache_file"$$ &&
16642: mv -f "$cache_file"$$ "$cache_file" ;; #(
16643: *)
16644: mv -f confcache "$cache_file" ;;
16645: esac
16646: fi
16647: fi
1.23 moko 16648: else
1.31 moko 16649: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16650: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.23 moko 16651: fi
16652: fi
16653: rm -f confcache
16654:
16655: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16656: # Let make expand exec_prefix.
16657: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16658:
16659: DEFS=-DHAVE_CONFIG_H
16660:
16661: ac_libobjs=
16662: ac_ltlibobjs=
1.31 moko 16663: U=
1.23 moko 16664: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16665: # 1. Remove the extension, and $U if already installed.
1.31 moko 16666: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16667: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16668: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16669: # will be set to the directory where LIBOBJS objects are built.
16670: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16671: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.23 moko 16672: done
16673: LIBOBJS=$ac_libobjs
16674:
16675: LTLIBOBJS=$ac_ltlibobjs
16676:
16677:
1.31 moko 16678: if test -n "$EXEEXT"; then
16679: am__EXEEXT_TRUE=
16680: am__EXEEXT_FALSE='#'
16681: else
16682: am__EXEEXT_TRUE='#'
16683: am__EXEEXT_FALSE=
16684: fi
16685:
1.23 moko 16686: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.31 moko 16687: as_fn_error $? "conditional \"AMDEP\" was never defined.
16688: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16689: fi
16690: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.31 moko 16691: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16692: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16693: fi
16694: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.31 moko 16695: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16696: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16697: fi
16698: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.31 moko 16699: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
16700: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16701: fi
16702: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.31 moko 16703: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
16704: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.23 moko 16705: fi
1.31 moko 16706: LT_CONFIG_H=config_auto.h
1.23 moko 16707:
16708: _ltdl_libobjs=
16709: _ltdl_ltlibobjs=
16710: if test -n "$_LT_LIBOBJS"; then
16711: # Remove the extension.
16712: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16713: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16714: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16715: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16716: done
16717: fi
16718: ltdl_LIBOBJS=$_ltdl_libobjs
16719:
16720: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16721:
16722:
16723:
1.31 moko 16724: : "${CONFIG_STATUS=./config.status}"
16725: ac_write_fail=0
1.23 moko 16726: ac_clean_files_save=$ac_clean_files
16727: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.31 moko 16728: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16729: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16730: as_write_fail=0
16731: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.23 moko 16732: #! $SHELL
16733: # Generated by $as_me.
16734: # Run this file to recreate the current configuration.
16735: # Compiler output produced by configure, useful for debugging
16736: # configure, is in config.log if it exists.
16737:
16738: debug=false
16739: ac_cs_recheck=false
16740: ac_cs_silent=false
1.31 moko 16741:
1.23 moko 16742: SHELL=\${CONFIG_SHELL-$SHELL}
1.31 moko 16743: export SHELL
16744: _ASEOF
16745: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16746: ## -------------------- ##
16747: ## M4sh Initialization. ##
16748: ## -------------------- ##
1.23 moko 16749:
1.31 moko 16750: # Be more Bourne compatible
16751: DUALCASE=1; export DUALCASE # for MKS sh
16752: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.23 moko 16753: emulate sh
16754: NULLCMD=:
1.31 moko 16755: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.23 moko 16756: # is contrary to our usage. Disable this feature.
16757: alias -g '${1+"$@"}'='"$@"'
1.31 moko 16758: setopt NO_GLOB_SUBST
16759: else
16760: case `(set -o) 2>/dev/null` in #(
16761: *posix*) :
16762: set -o posix ;; #(
16763: *) :
16764: ;;
16765: esac
16766: fi
16767:
16768:
16769: as_nl='
16770: '
16771: export as_nl
16772: # Printing a long string crashes Solaris 7 /usr/bin/printf.
16773: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16774: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16775: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16776: # Prefer a ksh shell builtin over an external printf program on Solaris,
16777: # but without wasting forks for bash or zsh.
16778: if test -z "$BASH_VERSION$ZSH_VERSION" \
16779: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16780: as_echo='print -r --'
16781: as_echo_n='print -rn --'
16782: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16783: as_echo='printf %s\n'
16784: as_echo_n='printf %s'
16785: else
16786: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16787: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16788: as_echo_n='/usr/ucb/echo -n'
16789: else
16790: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16791: as_echo_n_body='eval
16792: arg=$1;
16793: case $arg in #(
16794: *"$as_nl"*)
16795: expr "X$arg" : "X\\(.*\\)$as_nl";
16796: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16797: esac;
16798: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16799: '
16800: export as_echo_n_body
16801: as_echo_n='sh -c $as_echo_n_body as_echo'
16802: fi
16803: export as_echo_body
16804: as_echo='sh -c $as_echo_body as_echo'
1.23 moko 16805: fi
16806:
1.31 moko 16807: # The user is always right.
16808: if test "${PATH_SEPARATOR+set}" != set; then
16809: PATH_SEPARATOR=:
16810: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16811: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16812: PATH_SEPARATOR=';'
16813: }
1.23 moko 16814: fi
16815:
16816:
1.31 moko 16817: # IFS
16818: # We need space, tab and new line, in precisely that order. Quoting is
16819: # there to prevent editors from complaining about space-tab.
16820: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16821: # splitting by setting IFS to empty value.)
16822: IFS=" "" $as_nl"
16823:
16824: # Find who we are. Look in the path if we contain no directory separator.
16825: as_myself=
16826: case $0 in #((
16827: *[\\/]* ) as_myself=$0 ;;
16828: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16829: for as_dir in $PATH
16830: do
16831: IFS=$as_save_IFS
16832: test -z "$as_dir" && as_dir=.
16833: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16834: done
16835: IFS=$as_save_IFS
16836:
16837: ;;
16838: esac
16839: # We did not find ourselves, most probably we were run as `sh COMMAND'
16840: # in which case we are not to be found in the path.
16841: if test "x$as_myself" = x; then
16842: as_myself=$0
16843: fi
16844: if test ! -f "$as_myself"; then
16845: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16846: exit 1
16847: fi
16848:
16849: # Unset variables that we do not need and which cause bugs (e.g. in
16850: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16851: # suppresses any "Segmentation fault" message there. '((' could
16852: # trigger a bug in pdksh 5.2.14.
16853: for as_var in BASH_ENV ENV MAIL MAILPATH
16854: do eval test x\${$as_var+set} = xset \
16855: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16856: done
1.23 moko 16857: PS1='$ '
16858: PS2='> '
16859: PS4='+ '
16860:
16861: # NLS nuisances.
1.31 moko 16862: LC_ALL=C
16863: export LC_ALL
16864: LANGUAGE=C
16865: export LANGUAGE
16866:
16867: # CDPATH.
16868: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16869:
16870:
16871: # as_fn_error STATUS ERROR [LINENO LOG_FD]
16872: # ----------------------------------------
16873: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16874: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16875: # script with STATUS, using 1 if that was 0.
16876: as_fn_error ()
16877: {
16878: as_status=$1; test $as_status -eq 0 && as_status=1
16879: if test "$4"; then
16880: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16881: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16882: fi
16883: $as_echo "$as_me: error: $2" >&2
16884: as_fn_exit $as_status
16885: } # as_fn_error
16886:
16887:
16888: # as_fn_set_status STATUS
16889: # -----------------------
16890: # Set $? to STATUS, without forking.
16891: as_fn_set_status ()
16892: {
16893: return $1
16894: } # as_fn_set_status
16895:
16896: # as_fn_exit STATUS
16897: # -----------------
16898: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16899: as_fn_exit ()
16900: {
16901: set +e
16902: as_fn_set_status $1
16903: exit $1
16904: } # as_fn_exit
16905:
16906: # as_fn_unset VAR
16907: # ---------------
16908: # Portably unset VAR.
16909: as_fn_unset ()
16910: {
16911: { eval $1=; unset $1;}
16912: }
16913: as_unset=as_fn_unset
16914: # as_fn_append VAR VALUE
16915: # ----------------------
16916: # Append the text in VALUE to the end of the definition contained in VAR. Take
16917: # advantage of any shell optimizations that allow amortized linear growth over
16918: # repeated appends, instead of the typical quadratic growth present in naive
16919: # implementations.
16920: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16921: eval 'as_fn_append ()
16922: {
16923: eval $1+=\$2
16924: }'
16925: else
16926: as_fn_append ()
16927: {
16928: eval $1=\$$1\$2
16929: }
16930: fi # as_fn_append
16931:
16932: # as_fn_arith ARG...
16933: # ------------------
16934: # Perform arithmetic evaluation on the ARGs, and store the result in the
16935: # global $as_val. Take advantage of shells that can avoid forks. The arguments
16936: # must be portable across $(()) and expr.
16937: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16938: eval 'as_fn_arith ()
16939: {
16940: as_val=$(( $* ))
16941: }'
16942: else
16943: as_fn_arith ()
16944: {
16945: as_val=`expr "$@" || test $? -eq 1`
16946: }
16947: fi # as_fn_arith
16948:
1.23 moko 16949:
1.31 moko 16950: if expr a : '\(a\)' >/dev/null 2>&1 &&
16951: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.23 moko 16952: as_expr=expr
16953: else
16954: as_expr=false
16955: fi
16956:
1.31 moko 16957: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.23 moko 16958: as_basename=basename
16959: else
16960: as_basename=false
16961: fi
16962:
1.31 moko 16963: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16964: as_dirname=dirname
16965: else
16966: as_dirname=false
16967: fi
1.23 moko 16968:
1.31 moko 16969: as_me=`$as_basename -- "$0" ||
1.23 moko 16970: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16971: X"$0" : 'X\(//\)$' \| \
1.31 moko 16972: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16973: $as_echo X/"$0" |
16974: sed '/^.*\/\([^/][^/]*\)\/*$/{
16975: s//\1/
16976: q
16977: }
16978: /^X\/\(\/\/\)$/{
16979: s//\1/
16980: q
16981: }
16982: /^X\/\(\/\).*/{
16983: s//\1/
16984: q
16985: }
16986: s/.*/./; q'`
1.23 moko 16987:
16988: # Avoid depending upon Character Ranges.
16989: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16990: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16991: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16992: as_cr_digits='0123456789'
16993: as_cr_alnum=$as_cr_Letters$as_cr_digits
16994:
1.31 moko 16995: ECHO_C= ECHO_N= ECHO_T=
16996: case `echo -n x` in #(((((
16997: -n*)
16998: case `echo 'xy\c'` in
16999: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17000: xy) ECHO_C='\c';;
17001: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17002: ECHO_T=' ';;
17003: esac;;
17004: *)
17005: ECHO_N='-n';;
1.23 moko 17006: esac
17007:
1.31 moko 17008: rm -f conf$$ conf$$.exe conf$$.file
17009: if test -d conf$$.dir; then
17010: rm -f conf$$.dir/conf$$.file
1.23 moko 17011: else
1.31 moko 17012: rm -f conf$$.dir
17013: mkdir conf$$.dir 2>/dev/null
1.23 moko 17014: fi
1.31 moko 17015: if (echo >conf$$.file) 2>/dev/null; then
17016: if ln -s conf$$.file conf$$ 2>/dev/null; then
17017: as_ln_s='ln -s'
17018: # ... but there are two gotchas:
17019: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17020: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.34 moko 17021: # In both cases, we have to default to `cp -pR'.
1.31 moko 17022: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.34 moko 17023: as_ln_s='cp -pR'
1.31 moko 17024: elif ln conf$$.file conf$$ 2>/dev/null; then
17025: as_ln_s=ln
17026: else
1.34 moko 17027: as_ln_s='cp -pR'
1.23 moko 17028: fi
17029: else
1.34 moko 17030: as_ln_s='cp -pR'
1.23 moko 17031: fi
1.31 moko 17032: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17033: rmdir conf$$.dir 2>/dev/null
17034:
17035:
17036: # as_fn_mkdir_p
17037: # -------------
17038: # Create "$as_dir" as a directory, including parents if necessary.
17039: as_fn_mkdir_p ()
17040: {
17041:
17042: case $as_dir in #(
17043: -*) as_dir=./$as_dir;;
17044: esac
17045: test -d "$as_dir" || eval $as_mkdir_p || {
17046: as_dirs=
17047: while :; do
17048: case $as_dir in #(
17049: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17050: *) as_qdir=$as_dir;;
17051: esac
17052: as_dirs="'$as_qdir' $as_dirs"
17053: as_dir=`$as_dirname -- "$as_dir" ||
17054: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17055: X"$as_dir" : 'X\(//\)[^/]' \| \
17056: X"$as_dir" : 'X\(//\)$' \| \
17057: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17058: $as_echo X"$as_dir" |
17059: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17060: s//\1/
17061: q
17062: }
17063: /^X\(\/\/\)[^/].*/{
17064: s//\1/
17065: q
17066: }
17067: /^X\(\/\/\)$/{
17068: s//\1/
17069: q
17070: }
17071: /^X\(\/\).*/{
17072: s//\1/
17073: q
17074: }
17075: s/.*/./; q'`
17076: test -d "$as_dir" && break
17077: done
17078: test -z "$as_dirs" || eval "mkdir $as_dirs"
17079: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17080:
1.23 moko 17081:
1.31 moko 17082: } # as_fn_mkdir_p
1.23 moko 17083: if mkdir -p . 2>/dev/null; then
1.31 moko 17084: as_mkdir_p='mkdir -p "$as_dir"'
1.23 moko 17085: else
17086: test -d ./-p && rmdir ./-p
17087: as_mkdir_p=false
17088: fi
17089:
1.34 moko 17090:
17091: # as_fn_executable_p FILE
17092: # -----------------------
17093: # Test if FILE is an executable regular file.
17094: as_fn_executable_p ()
17095: {
17096: test -f "$1" && test -x "$1"
17097: } # as_fn_executable_p
17098: as_test_x='test -x'
17099: as_executable_p=as_fn_executable_p
1.23 moko 17100:
17101: # Sed expression to map a string onto a valid CPP name.
17102: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17103:
17104: # Sed expression to map a string onto a valid variable name.
17105: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17106:
17107:
17108: exec 6>&1
1.31 moko 17109: ## ----------------------------------- ##
17110: ## Main body of $CONFIG_STATUS script. ##
17111: ## ----------------------------------- ##
17112: _ASEOF
17113: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.23 moko 17114:
1.31 moko 17115: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17116: # Save the log message, to keep $0 and so on meaningful, and to
1.23 moko 17117: # report actual input values of CONFIG_FILES etc. instead of their
1.31 moko 17118: # values after options handling.
17119: ac_log="
1.36 moko 17120: This file was extended by parser3pgsql $as_me 10.5, which was
1.34 moko 17121: generated by GNU Autoconf 2.69. Invocation command line was
1.23 moko 17122:
17123: CONFIG_FILES = $CONFIG_FILES
17124: CONFIG_HEADERS = $CONFIG_HEADERS
17125: CONFIG_LINKS = $CONFIG_LINKS
17126: CONFIG_COMMANDS = $CONFIG_COMMANDS
17127: $ $0 $@
17128:
1.31 moko 17129: on `(hostname || uname -n) 2>/dev/null | sed 1q`
17130: "
17131:
1.23 moko 17132: _ACEOF
17133:
1.31 moko 17134: case $ac_config_files in *"
17135: "*) set x $ac_config_files; shift; ac_config_files=$*;;
17136: esac
1.23 moko 17137:
1.31 moko 17138: case $ac_config_headers in *"
17139: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17140: esac
1.23 moko 17141:
17142:
1.31 moko 17143: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17144: # Files that config.status was made for.
17145: config_files="$ac_config_files"
17146: config_headers="$ac_config_headers"
17147: config_commands="$ac_config_commands"
1.23 moko 17148:
1.31 moko 17149: _ACEOF
1.23 moko 17150:
1.31 moko 17151: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.23 moko 17152: ac_cs_usage="\
1.31 moko 17153: \`$as_me' instantiates files and other configuration actions
17154: from templates according to the current configuration. Unless the files
17155: and actions are specified as TAGs, all are instantiated by default.
1.23 moko 17156:
1.31 moko 17157: Usage: $0 [OPTION]... [TAG]...
1.23 moko 17158:
17159: -h, --help print this help, then exit
1.31 moko 17160: -V, --version print version number and configuration settings, then exit
17161: --config print configuration, then exit
17162: -q, --quiet, --silent
17163: do not print progress messages
1.23 moko 17164: -d, --debug don't remove temporary files
17165: --recheck update $as_me by reconfiguring in the same conditions
1.31 moko 17166: --file=FILE[:TEMPLATE]
17167: instantiate the configuration file FILE
17168: --header=FILE[:TEMPLATE]
17169: instantiate the configuration header FILE
1.23 moko 17170:
17171: Configuration files:
17172: $config_files
17173:
17174: Configuration headers:
17175: $config_headers
17176:
17177: Configuration commands:
17178: $config_commands
17179:
1.31 moko 17180: Report bugs to the package provider."
17181:
1.23 moko 17182: _ACEOF
1.31 moko 17183: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17184: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.23 moko 17185: ac_cs_version="\\
1.36 moko 17186: parser3pgsql config.status 10.5
1.34 moko 17187: configured by $0, generated by GNU Autoconf 2.69,
1.31 moko 17188: with options \\"\$ac_cs_config\\"
1.23 moko 17189:
1.34 moko 17190: Copyright (C) 2012 Free Software Foundation, Inc.
1.23 moko 17191: This config.status script is free software; the Free Software Foundation
17192: gives unlimited permission to copy, distribute and modify it."
1.31 moko 17193:
17194: ac_pwd='$ac_pwd'
17195: srcdir='$srcdir'
17196: INSTALL='$INSTALL'
17197: MKDIR_P='$MKDIR_P'
17198: AWK='$AWK'
17199: test -n "\$AWK" || AWK=awk
1.23 moko 17200: _ACEOF
17201:
1.31 moko 17202: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17203: # The default lists apply if the user does not specify any file.
1.23 moko 17204: ac_need_defaults=:
17205: while test $# != 0
17206: do
17207: case $1 in
1.31 moko 17208: --*=?*)
17209: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17210: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17211: ac_shift=:
17212: ;;
17213: --*=)
17214: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17215: ac_optarg=
1.23 moko 17216: ac_shift=:
17217: ;;
1.31 moko 17218: *)
1.23 moko 17219: ac_option=$1
17220: ac_optarg=$2
17221: ac_shift=shift
17222: ;;
17223: esac
17224:
17225: case $ac_option in
17226: # Handling of the options.
17227: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17228: ac_cs_recheck=: ;;
1.31 moko 17229: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17230: $as_echo "$ac_cs_version"; exit ;;
17231: --config | --confi | --conf | --con | --co | --c )
17232: $as_echo "$ac_cs_config"; exit ;;
17233: --debug | --debu | --deb | --de | --d | -d )
1.23 moko 17234: debug=: ;;
17235: --file | --fil | --fi | --f )
17236: $ac_shift
1.31 moko 17237: case $ac_optarg in
17238: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17239: '') as_fn_error $? "missing file argument" ;;
17240: esac
17241: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.23 moko 17242: ac_need_defaults=false;;
17243: --header | --heade | --head | --hea )
17244: $ac_shift
1.31 moko 17245: case $ac_optarg in
17246: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17247: esac
17248: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.23 moko 17249: ac_need_defaults=false;;
1.31 moko 17250: --he | --h)
17251: # Conflict between --help and --header
17252: as_fn_error $? "ambiguous option: \`$1'
17253: Try \`$0 --help' for more information.";;
17254: --help | --hel | -h )
17255: $as_echo "$ac_cs_usage"; exit ;;
1.23 moko 17256: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17257: | -silent | --silent | --silen | --sile | --sil | --si | --s)
17258: ac_cs_silent=: ;;
17259:
17260: # This is an error.
1.31 moko 17261: -*) as_fn_error $? "unrecognized option: \`$1'
17262: Try \`$0 --help' for more information." ;;
1.23 moko 17263:
1.31 moko 17264: *) as_fn_append ac_config_targets " $1"
17265: ac_need_defaults=false ;;
1.23 moko 17266:
17267: esac
17268: shift
17269: done
17270:
17271: ac_configure_extra_args=
17272:
17273: if $ac_cs_silent; then
17274: exec 6>/dev/null
17275: ac_configure_extra_args="$ac_configure_extra_args --silent"
17276: fi
17277:
17278: _ACEOF
1.31 moko 17279: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.23 moko 17280: if \$ac_cs_recheck; then
1.34 moko 17281: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.31 moko 17282: shift
17283: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17284: CONFIG_SHELL='$SHELL'
17285: export CONFIG_SHELL
17286: exec "\$@"
1.23 moko 17287: fi
17288:
17289: _ACEOF
1.31 moko 17290: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17291: exec 5>>config.log
17292: {
17293: echo
17294: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17295: ## Running $as_me. ##
17296: _ASBOX
17297: $as_echo "$ac_log"
17298: } >&5
17299:
17300: _ACEOF
17301: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.23 moko 17302: #
1.31 moko 17303: # INIT-COMMANDS
1.23 moko 17304: #
17305: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17306:
17307:
17308: # The HP-UX ksh and POSIX shell print the target directory to stdout
17309: # if CDPATH is set.
17310: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17311:
17312: sed_quote_subst='$sed_quote_subst'
17313: double_quote_subst='$double_quote_subst'
17314: delay_variable_subst='$delay_variable_subst'
17315: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17316: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.30 moko 17317: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.23 moko 17318: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17319: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17320: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17321: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17322: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17323: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17324: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17325: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17326: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17327: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17328: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17329: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17330: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17331: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17332: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17333: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17334: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17335: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17336: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17337: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17338: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17339: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17340: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17341: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17342: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17343: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17344: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17345: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17346: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17347: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17348: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17349: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17350: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17351: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17352: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17353: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17354: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17355: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17356: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17357: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17358: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17359: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17360: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17361: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17362: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17363: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17364: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17365: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17366: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17367: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17368: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17369: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17370: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17371: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17372: 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"`'
17373: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17374: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17375: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17376: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17377: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17378: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17379: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17380: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17381: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17382: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17383: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17384: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17385: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17386: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17387: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17388: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17389: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17390: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17391: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17392: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17393: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17394: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17395: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17396: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17397: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17398: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17399: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17400: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17401: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17402: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17403: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17404: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17405: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17406: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17407: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17408: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17409: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17410: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17411: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17412: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17413: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17414: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17415: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17416: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17417: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17418: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17419: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17420: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17421: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17422: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17423: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17424: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17425: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17426: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17427: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17428: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17429: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17430: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17431: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17432: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17433: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17434: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17435: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17436: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17437: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17438: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17439: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17440: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17441: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17442: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17443: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17444: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17445: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17446: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17447: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17448: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17449: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17450: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17451: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17452: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17453: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17454: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17455: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17456: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17457: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17458: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17459: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17460: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17461: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17462: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17463: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17464: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17465: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17466: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17467: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17468: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17469: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17470: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17471: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17472: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17473: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17474: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17475: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17476: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17477: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17478: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17479: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17480: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17481: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17482: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17483: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17484: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17485: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17486: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17487: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17488: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17489: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17490: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17491: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17492: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17493: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17494: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17495: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17496: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17497: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17498: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17499: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17500:
17501: LTCC='$LTCC'
17502: LTCFLAGS='$LTCFLAGS'
17503: compiler='$compiler_DEFAULT'
17504:
17505: # A function that is used when there is no print builtin or printf.
17506: func_fallback_echo ()
17507: {
17508: eval 'cat <<_LTECHO_EOF
17509: \$1
17510: _LTECHO_EOF'
17511: }
17512:
17513: # Quote evaled strings.
17514: for var in AS \
17515: DLLTOOL \
17516: OBJDUMP \
17517: SHELL \
17518: ECHO \
17519: PATH_SEPARATOR \
17520: SED \
17521: GREP \
17522: EGREP \
17523: FGREP \
17524: LD \
17525: NM \
17526: LN_S \
17527: lt_SP2NL \
17528: lt_NL2SP \
17529: reload_flag \
17530: deplibs_check_method \
17531: file_magic_cmd \
17532: file_magic_glob \
17533: want_nocaseglob \
17534: sharedlib_from_linklib_cmd \
17535: AR \
17536: AR_FLAGS \
17537: archiver_list_spec \
17538: STRIP \
17539: RANLIB \
17540: CC \
17541: CFLAGS \
17542: compiler \
17543: lt_cv_sys_global_symbol_pipe \
17544: lt_cv_sys_global_symbol_to_cdecl \
17545: lt_cv_sys_global_symbol_to_c_name_address \
17546: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17547: nm_file_list_spec \
17548: lt_prog_compiler_no_builtin_flag \
17549: lt_prog_compiler_pic \
17550: lt_prog_compiler_wl \
17551: lt_prog_compiler_static \
17552: lt_cv_prog_compiler_c_o \
17553: need_locks \
17554: MANIFEST_TOOL \
17555: DSYMUTIL \
17556: NMEDIT \
17557: LIPO \
17558: OTOOL \
17559: OTOOL64 \
17560: shrext_cmds \
17561: export_dynamic_flag_spec \
17562: whole_archive_flag_spec \
17563: compiler_needs_object \
17564: with_gnu_ld \
17565: allow_undefined_flag \
17566: no_undefined_flag \
17567: hardcode_libdir_flag_spec \
17568: hardcode_libdir_separator \
17569: exclude_expsyms \
17570: include_expsyms \
17571: file_list_spec \
17572: variables_saved_for_relink \
17573: libname_spec \
17574: library_names_spec \
17575: soname_spec \
17576: install_override_mode \
17577: finish_eval \
17578: old_striplib \
17579: striplib \
17580: compiler_lib_search_dirs \
17581: predep_objects \
17582: postdep_objects \
17583: predeps \
17584: postdeps \
17585: compiler_lib_search_path \
17586: LD_CXX \
17587: reload_flag_CXX \
17588: compiler_CXX \
17589: lt_prog_compiler_no_builtin_flag_CXX \
17590: lt_prog_compiler_pic_CXX \
17591: lt_prog_compiler_wl_CXX \
17592: lt_prog_compiler_static_CXX \
17593: lt_cv_prog_compiler_c_o_CXX \
17594: export_dynamic_flag_spec_CXX \
17595: whole_archive_flag_spec_CXX \
17596: compiler_needs_object_CXX \
17597: with_gnu_ld_CXX \
17598: allow_undefined_flag_CXX \
17599: no_undefined_flag_CXX \
17600: hardcode_libdir_flag_spec_CXX \
17601: hardcode_libdir_separator_CXX \
17602: exclude_expsyms_CXX \
17603: include_expsyms_CXX \
17604: file_list_spec_CXX \
17605: compiler_lib_search_dirs_CXX \
17606: predep_objects_CXX \
17607: postdep_objects_CXX \
17608: predeps_CXX \
17609: postdeps_CXX \
17610: compiler_lib_search_path_CXX; do
17611: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17612: *[\\\\\\\`\\"\\\$]*)
17613: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17614: ;;
17615: *)
17616: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17617: ;;
17618: esac
17619: done
17620:
17621: # Double-quote double-evaled strings.
17622: for var in reload_cmds \
17623: old_postinstall_cmds \
17624: old_postuninstall_cmds \
17625: old_archive_cmds \
17626: extract_expsyms_cmds \
17627: old_archive_from_new_cmds \
17628: old_archive_from_expsyms_cmds \
17629: archive_cmds \
17630: archive_expsym_cmds \
17631: module_cmds \
17632: module_expsym_cmds \
17633: export_symbols_cmds \
17634: prelink_cmds \
17635: postlink_cmds \
17636: postinstall_cmds \
17637: postuninstall_cmds \
17638: finish_cmds \
17639: sys_lib_search_path_spec \
17640: sys_lib_dlsearch_path_spec \
17641: reload_cmds_CXX \
17642: old_archive_cmds_CXX \
17643: old_archive_from_new_cmds_CXX \
17644: old_archive_from_expsyms_cmds_CXX \
17645: archive_cmds_CXX \
17646: archive_expsym_cmds_CXX \
17647: module_cmds_CXX \
17648: module_expsym_cmds_CXX \
17649: export_symbols_cmds_CXX \
17650: prelink_cmds_CXX \
17651: postlink_cmds_CXX; do
17652: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17653: *[\\\\\\\`\\"\\\$]*)
17654: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17655: ;;
17656: *)
17657: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17658: ;;
17659: esac
17660: done
17661:
17662: ac_aux_dir='$ac_aux_dir'
17663: xsi_shell='$xsi_shell'
17664: lt_shell_append='$lt_shell_append'
17665:
17666: # See if we are running on zsh, and set the options which allow our
17667: # commands through without removal of \ escapes INIT.
17668: if test -n "\${ZSH_VERSION+set}" ; then
17669: setopt NO_GLOB_SUBST
17670: fi
17671:
17672:
17673: PACKAGE='$PACKAGE'
17674: VERSION='$VERSION'
17675: TIMESTAMP='$TIMESTAMP'
17676: RM='$RM'
17677: ofile='$ofile'
17678:
17679:
17680:
17681:
17682:
17683:
17684: _ACEOF
17685:
1.31 moko 17686: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.23 moko 17687:
1.31 moko 17688: # Handling of arguments.
1.23 moko 17689: for ac_config_target in $ac_config_targets
17690: do
1.31 moko 17691: case $ac_config_target in
17692: "config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
17693: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17694: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17695: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17696:
17697: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.23 moko 17698: esac
17699: done
17700:
1.31 moko 17701:
1.23 moko 17702: # If the user did not use the arguments to specify the items to instantiate,
17703: # then the envvar interface is used. Set only those that are not.
17704: # We use the long form for the default assignment because of an extremely
17705: # bizarre bug on SunOS 4.1.3.
17706: if $ac_need_defaults; then
17707: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17708: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17709: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17710: fi
17711:
17712: # Have a temporary directory for convenience. Make it in the build tree
1.31 moko 17713: # simply because there is no reason against having it here, and in addition,
1.23 moko 17714: # creating and moving files from /tmp can sometimes cause problems.
1.31 moko 17715: # Hook for its removal unless debugging.
17716: # Note that there is a small window in which the directory will not be cleaned:
17717: # after its creation but before its name has been assigned to `$tmp'.
1.23 moko 17718: $debug ||
17719: {
1.31 moko 17720: tmp= ac_tmp=
17721: trap 'exit_status=$?
17722: : "${ac_tmp:=$tmp}"
17723: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17724: ' 0
17725: trap 'as_fn_exit 1' 1 2 13 15
1.23 moko 17726: }
17727: # Create a (secure) tmp directory for tmp files.
17728:
17729: {
1.31 moko 17730: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17731: test -d "$tmp"
1.23 moko 17732: } ||
17733: {
1.31 moko 17734: tmp=./conf$$-$RANDOM
17735: (umask 077 && mkdir "$tmp")
17736: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17737: ac_tmp=$tmp
17738:
17739: # Set up the scripts for CONFIG_FILES section.
17740: # No need to generate them if there are no CONFIG_FILES.
17741: # This happens for instance with `./config.status config.h'.
17742: if test -n "$CONFIG_FILES"; then
17743:
17744:
17745: ac_cr=`echo X | tr X '\015'`
17746: # On cygwin, bash can eat \r inside `` if the user requested igncr.
17747: # But we know of no other shell where ac_cr would be empty at this
17748: # point, so we can use a bashism as a fallback.
17749: if test "x$ac_cr" = x; then
17750: eval ac_cr=\$\'\\r\'
17751: fi
17752: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17753: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17754: ac_cs_awk_cr='\\r'
17755: else
17756: ac_cs_awk_cr=$ac_cr
17757: fi
17758:
17759: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17760: _ACEOF
17761:
17762:
17763: {
17764: echo "cat >conf$$subs.awk <<_ACEOF" &&
17765: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17766: echo "_ACEOF"
17767: } >conf$$subs.sh ||
17768: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17769: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17770: ac_delim='%!_!# '
17771: for ac_last_try in false false false false false :; do
17772: . ./conf$$subs.sh ||
17773: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17774:
17775: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17776: if test $ac_delim_n = $ac_delim_num; then
17777: break
17778: elif $ac_last_try; then
17779: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17780: else
17781: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17782: fi
17783: done
17784: rm -f conf$$subs.sh
17785:
17786: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17787: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17788: _ACEOF
17789: sed -n '
17790: h
17791: s/^/S["/; s/!.*/"]=/
17792: p
17793: g
17794: s/^[^!]*!//
17795: :repl
17796: t repl
17797: s/'"$ac_delim"'$//
17798: t delim
17799: :nl
17800: h
17801: s/\(.\{148\}\)..*/\1/
17802: t more1
17803: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17804: p
17805: n
17806: b repl
17807: :more1
17808: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17809: p
17810: g
17811: s/.\{148\}//
17812: t nl
17813: :delim
17814: h
17815: s/\(.\{148\}\)..*/\1/
17816: t more2
17817: s/["\\]/\\&/g; s/^/"/; s/$/"/
17818: p
17819: b
17820: :more2
17821: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17822: p
17823: g
17824: s/.\{148\}//
17825: t delim
17826: ' <conf$$subs.awk | sed '
17827: /^[^""]/{
17828: N
17829: s/\n//
17830: }
17831: ' >>$CONFIG_STATUS || ac_write_fail=1
17832: rm -f conf$$subs.awk
17833: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17834: _ACAWK
17835: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17836: for (key in S) S_is_set[key] = 1
17837: FS = ""
17838:
17839: }
1.23 moko 17840: {
1.31 moko 17841: line = $ 0
17842: nfields = split(line, field, "@")
17843: substed = 0
17844: len = length(field[1])
17845: for (i = 2; i < nfields; i++) {
17846: key = field[i]
17847: keylen = length(key)
17848: if (S_is_set[key]) {
17849: value = S[key]
17850: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17851: len += length(value) + length(field[++i])
17852: substed = 1
17853: } else
17854: len += 1 + keylen
17855: }
17856:
17857: print line
1.23 moko 17858: }
17859:
1.31 moko 17860: _ACAWK
17861: _ACEOF
17862: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17863: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17864: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17865: else
17866: cat
17867: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17868: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.23 moko 17869: _ACEOF
17870:
1.31 moko 17871: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17872: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17873: # trailing colons and then remove the whole line if VPATH becomes empty
17874: # (actually we leave an empty line to preserve line numbers).
17875: if test "x$srcdir" = x.; then
17876: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17877: h
17878: s///
17879: s/^/:/
17880: s/[ ]*$/:/
17881: s/:\$(srcdir):/:/g
17882: s/:\${srcdir}:/:/g
17883: s/:@srcdir@:/:/g
17884: s/^:*//
17885: s/:*$//
17886: x
17887: s/\(=[ ]*\).*/\1/
17888: G
17889: s/\n//
17890: s/^[^=]*=[ ]*$//
17891: }'
17892: fi
1.23 moko 17893:
1.31 moko 17894: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17895: fi # test -n "$CONFIG_FILES"
1.23 moko 17896:
1.31 moko 17897: # Set up the scripts for CONFIG_HEADERS section.
17898: # No need to generate them if there are no CONFIG_HEADERS.
17899: # This happens for instance with `./config.status Makefile'.
17900: if test -n "$CONFIG_HEADERS"; then
17901: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17902: BEGIN {
17903: _ACEOF
17904:
17905: # Transform confdefs.h into an awk script `defines.awk', embedded as
17906: # here-document in config.status, that substitutes the proper values into
17907: # config.h.in to produce config.h.
17908:
17909: # Create a delimiter string that does not exist in confdefs.h, to ease
17910: # handling of long lines.
17911: ac_delim='%!_!# '
17912: for ac_last_try in false false :; do
17913: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17914: if test -z "$ac_tt"; then
17915: break
17916: elif $ac_last_try; then
17917: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17918: else
17919: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.23 moko 17920: fi
1.31 moko 17921: done
1.23 moko 17922:
1.31 moko 17923: # For the awk script, D is an array of macro values keyed by name,
17924: # likewise P contains macro parameters if any. Preserve backslash
17925: # newline sequences.
17926:
17927: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17928: sed -n '
17929: s/.\{148\}/&'"$ac_delim"'/g
17930: t rset
17931: :rset
17932: s/^[ ]*#[ ]*define[ ][ ]*/ /
17933: t def
17934: d
17935: :def
17936: s/\\$//
17937: t bsnl
17938: s/["\\]/\\&/g
17939: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17940: D["\1"]=" \3"/p
17941: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17942: d
17943: :bsnl
17944: s/["\\]/\\&/g
17945: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17946: D["\1"]=" \3\\\\\\n"\\/p
17947: t cont
17948: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17949: t cont
17950: d
17951: :cont
17952: n
17953: s/.\{148\}/&'"$ac_delim"'/g
17954: t clear
17955: :clear
17956: s/\\$//
17957: t bsnlc
17958: s/["\\]/\\&/g; s/^/"/; s/$/"/p
17959: d
17960: :bsnlc
17961: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17962: b cont
17963: ' <confdefs.h | sed '
17964: s/'"$ac_delim"'/"\\\
17965: "/g' >>$CONFIG_STATUS || ac_write_fail=1
17966:
17967: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17968: for (key in D) D_is_set[key] = 1
17969: FS = ""
17970: }
17971: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17972: line = \$ 0
17973: split(line, arg, " ")
17974: if (arg[1] == "#") {
17975: defundef = arg[2]
17976: mac1 = arg[3]
17977: } else {
17978: defundef = substr(arg[1], 2)
17979: mac1 = arg[2]
17980: }
17981: split(mac1, mac2, "(") #)
17982: macro = mac2[1]
17983: prefix = substr(line, 1, index(line, defundef) - 1)
17984: if (D_is_set[macro]) {
17985: # Preserve the white space surrounding the "#".
17986: print prefix "define", macro P[macro] D[macro]
17987: next
17988: } else {
17989: # Replace #undef with comments. This is necessary, for example,
17990: # in the case of _POSIX_SOURCE, which is predefined and required
17991: # on some systems where configure will not decide to define it.
17992: if (defundef == "undef") {
17993: print "/*", prefix defundef, macro, "*/"
17994: next
17995: }
17996: }
17997: }
17998: { print }
17999: _ACAWK
1.23 moko 18000: _ACEOF
1.31 moko 18001: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18002: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18003: fi # test -n "$CONFIG_HEADERS"
18004:
18005:
18006: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18007: shift
18008: for ac_tag
18009: do
18010: case $ac_tag in
18011: :[FHLC]) ac_mode=$ac_tag; continue;;
18012: esac
18013: case $ac_mode$ac_tag in
18014: :[FHL]*:*);;
18015: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18016: :[FH]-) ac_tag=-:-;;
18017: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18018: esac
18019: ac_save_IFS=$IFS
18020: IFS=:
18021: set x $ac_tag
18022: IFS=$ac_save_IFS
18023: shift
18024: ac_file=$1
18025: shift
18026:
18027: case $ac_mode in
18028: :L) ac_source=$1;;
18029: :[FH])
18030: ac_file_inputs=
18031: for ac_f
18032: do
18033: case $ac_f in
18034: -) ac_f="$ac_tmp/stdin";;
18035: *) # Look for the file first in the build tree, then in the source tree
18036: # (if the path is not absolute). The absolute path cannot be DOS-style,
18037: # because $ac_f cannot contain `:'.
18038: test -f "$ac_f" ||
18039: case $ac_f in
18040: [\\/$]*) false;;
18041: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18042: esac ||
18043: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18044: esac
18045: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18046: as_fn_append ac_file_inputs " '$ac_f'"
18047: done
18048:
18049: # Let's still pretend it is `configure' which instantiates (i.e., don't
18050: # use $as_me), people would be surprised to read:
18051: # /* config.h. Generated by config.status. */
18052: configure_input='Generated from '`
18053: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18054: `' by configure.'
18055: if test x"$ac_file" != x-; then
18056: configure_input="$ac_file. $configure_input"
18057: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18058: $as_echo "$as_me: creating $ac_file" >&6;}
18059: fi
18060: # Neutralize special characters interpreted by sed in replacement strings.
18061: case $configure_input in #(
18062: *\&* | *\|* | *\\* )
18063: ac_sed_conf_input=`$as_echo "$configure_input" |
18064: sed 's/[\\\\&|]/\\\\&/g'`;; #(
18065: *) ac_sed_conf_input=$configure_input;;
18066: esac
18067:
18068: case $ac_tag in
18069: *:-:* | *:-) cat >"$ac_tmp/stdin" \
18070: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18071: esac
18072: ;;
1.23 moko 18073: esac
18074:
1.31 moko 18075: ac_dir=`$as_dirname -- "$ac_file" ||
1.23 moko 18076: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18077: X"$ac_file" : 'X\(//\)[^/]' \| \
18078: X"$ac_file" : 'X\(//\)$' \| \
1.31 moko 18079: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18080: $as_echo X"$ac_file" |
18081: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18082: s//\1/
18083: q
18084: }
18085: /^X\(\/\/\)[^/].*/{
18086: s//\1/
18087: q
18088: }
18089: /^X\(\/\/\)$/{
18090: s//\1/
18091: q
18092: }
18093: /^X\(\/\).*/{
18094: s//\1/
18095: q
18096: }
18097: s/.*/./; q'`
18098: as_dir="$ac_dir"; as_fn_mkdir_p
1.23 moko 18099: ac_builddir=.
18100:
1.31 moko 18101: case "$ac_dir" in
18102: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18103: *)
18104: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18105: # A ".." for each directory in $ac_dir_suffix.
18106: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18107: case $ac_top_builddir_sub in
18108: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18109: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18110: esac ;;
18111: esac
18112: ac_abs_top_builddir=$ac_pwd
18113: ac_abs_builddir=$ac_pwd$ac_dir_suffix
18114: # for backward compatibility:
18115: ac_top_builddir=$ac_top_build_prefix
1.23 moko 18116:
18117: case $srcdir in
1.31 moko 18118: .) # We are building in place.
1.23 moko 18119: ac_srcdir=.
1.31 moko 18120: ac_top_srcdir=$ac_top_builddir_sub
18121: ac_abs_top_srcdir=$ac_pwd ;;
18122: [\\/]* | ?:[\\/]* ) # Absolute name.
1.23 moko 18123: ac_srcdir=$srcdir$ac_dir_suffix;
1.31 moko 18124: ac_top_srcdir=$srcdir
18125: ac_abs_top_srcdir=$srcdir ;;
18126: *) # Relative name.
18127: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18128: ac_top_srcdir=$ac_top_build_prefix$srcdir
18129: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.23 moko 18130: esac
1.31 moko 18131: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.23 moko 18132:
18133:
1.31 moko 18134: case $ac_mode in
18135: :F)
18136: #
18137: # CONFIG_FILE
18138: #
1.23 moko 18139:
18140: case $INSTALL in
18141: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.31 moko 18142: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18143: esac
18144: ac_MKDIR_P=$MKDIR_P
18145: case $MKDIR_P in
18146: [\\/$]* | ?:[\\/]* ) ;;
18147: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1.23 moko 18148: esac
1.31 moko 18149: _ACEOF
1.23 moko 18150:
1.31 moko 18151: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18152: # If the template does not know about datarootdir, expand it.
18153: # FIXME: This hack should be removed a few years after 2.60.
18154: ac_datarootdir_hack=; ac_datarootdir_seen=
18155: ac_sed_dataroot='
18156: /datarootdir/ {
18157: p
18158: q
18159: }
18160: /@datadir@/p
18161: /@docdir@/p
18162: /@infodir@/p
18163: /@localedir@/p
18164: /@mandir@/p'
18165: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18166: *datarootdir*) ac_datarootdir_seen=yes;;
18167: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18168: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18169: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18170: _ACEOF
18171: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18172: ac_datarootdir_hack='
18173: s&@datadir@&$datadir&g
18174: s&@docdir@&$docdir&g
18175: s&@infodir@&$infodir&g
18176: s&@localedir@&$localedir&g
18177: s&@mandir@&$mandir&g
18178: s&\\\${datarootdir}&$datarootdir&g' ;;
18179: esac
18180: _ACEOF
1.23 moko 18181:
1.31 moko 18182: # Neutralize VPATH when `$srcdir' = `.'.
18183: # Shell code in configure.ac might set extrasub.
18184: # FIXME: do we really want to maintain this feature?
18185: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18186: ac_sed_extra="$ac_vpsub
1.23 moko 18187: $extrasub
18188: _ACEOF
1.31 moko 18189: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.23 moko 18190: :t
18191: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.31 moko 18192: s|@configure_input@|$ac_sed_conf_input|;t t
18193: s&@top_builddir@&$ac_top_builddir_sub&;t t
18194: s&@top_build_prefix@&$ac_top_build_prefix&;t t
18195: s&@srcdir@&$ac_srcdir&;t t
18196: s&@abs_srcdir@&$ac_abs_srcdir&;t t
18197: s&@top_srcdir@&$ac_top_srcdir&;t t
18198: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18199: s&@builddir@&$ac_builddir&;t t
18200: s&@abs_builddir@&$ac_abs_builddir&;t t
18201: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18202: s&@INSTALL@&$ac_INSTALL&;t t
18203: s&@MKDIR_P@&$ac_MKDIR_P&;t t
18204: $ac_datarootdir_hack
18205: "
18206: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18207: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18208:
18209: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18210: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18211: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18212: "$ac_tmp/out"`; test -z "$ac_out"; } &&
18213: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18214: which seems to be undefined. Please make sure it is defined" >&5
18215: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18216: which seems to be undefined. Please make sure it is defined" >&2;}
1.23 moko 18217:
1.31 moko 18218: rm -f "$ac_tmp/stdin"
1.23 moko 18219: case $ac_file in
1.31 moko 18220: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18221: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18222: esac \
18223: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18224: ;;
18225: :H)
18226: #
18227: # CONFIG_HEADER
18228: #
1.23 moko 18229: if test x"$ac_file" != x-; then
1.31 moko 18230: {
18231: $as_echo "/* $configure_input */" \
18232: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18233: } >"$ac_tmp/config.h" \
18234: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18235: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18236: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18237: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.23 moko 18238: else
1.31 moko 18239: rm -f "$ac_file"
18240: mv "$ac_tmp/config.h" "$ac_file" \
18241: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.23 moko 18242: fi
18243: else
1.31 moko 18244: $as_echo "/* $configure_input */" \
18245: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18246: || as_fn_error $? "could not create -" "$LINENO" 5
1.23 moko 18247: fi
1.31 moko 18248: # Compute "$ac_file"'s index in $config_headers.
18249: _am_arg="$ac_file"
1.23 moko 18250: _am_stamp_count=1
18251: for _am_header in $config_headers :; do
18252: case $_am_header in
1.31 moko 18253: $_am_arg | $_am_arg:* )
1.23 moko 18254: break ;;
18255: * )
18256: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18257: esac
18258: done
1.31 moko 18259: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18260: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18261: X"$_am_arg" : 'X\(//\)[^/]' \| \
18262: X"$_am_arg" : 'X\(//\)$' \| \
18263: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18264: $as_echo X"$_am_arg" |
18265: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18266: s//\1/
18267: q
18268: }
18269: /^X\(\/\/\)[^/].*/{
18270: s//\1/
18271: q
18272: }
18273: /^X\(\/\/\)$/{
18274: s//\1/
18275: q
18276: }
18277: /^X\(\/\).*/{
18278: s//\1/
18279: q
18280: }
18281: s/.*/./; q'`/stamp-h$_am_stamp_count
18282: ;;
1.23 moko 18283:
1.31 moko 18284: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18285: $as_echo "$as_me: executing $ac_file commands" >&6;}
18286: ;;
18287: esac
1.23 moko 18288:
18289:
1.31 moko 18290: case $ac_file$ac_mode in
18291: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18292: # Autoconf 2.62 quotes --file arguments for eval, but not when files
18293: # are listed without --file. Let's play safe and only enable the eval
18294: # if we detect the quoting.
18295: case $CONFIG_FILES in
18296: *\'*) eval set x "$CONFIG_FILES" ;;
18297: *) set x $CONFIG_FILES ;;
18298: esac
18299: shift
18300: for mf
18301: do
18302: # Strip MF so we end up with the name of the file.
18303: mf=`echo "$mf" | sed -e 's/:.*$//'`
18304: # Check whether this is an Automake generated Makefile or not.
18305: # We used to match only the files named `Makefile.in', but
18306: # some people rename them; so instead we look at the file content.
18307: # Grep'ing the first line is not enough: some people post-process
18308: # each Makefile.in and add a new line on top of each file to say so.
18309: # Grep'ing the whole file is not good either: AIX grep has a line
18310: # limit of 2048, but all sed's we know have understand at least 4000.
18311: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18312: dirpart=`$as_dirname -- "$mf" ||
1.23 moko 18313: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18314: X"$mf" : 'X\(//\)[^/]' \| \
18315: X"$mf" : 'X\(//\)$' \| \
1.31 moko 18316: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18317: $as_echo X"$mf" |
18318: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18319: s//\1/
18320: q
18321: }
18322: /^X\(\/\/\)[^/].*/{
18323: s//\1/
18324: q
18325: }
18326: /^X\(\/\/\)$/{
18327: s//\1/
18328: q
18329: }
18330: /^X\(\/\).*/{
18331: s//\1/
18332: q
18333: }
18334: s/.*/./; q'`
18335: else
18336: continue
18337: fi
18338: # Extract the definition of DEPDIR, am__include, and am__quote
18339: # from the Makefile without running `make'.
18340: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18341: test -z "$DEPDIR" && continue
18342: am__include=`sed -n 's/^am__include = //p' < "$mf"`
18343: test -z "am__include" && continue
18344: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18345: # When using ansi2knr, U may be empty or an underscore; expand it
18346: U=`sed -n 's/^U = //p' < "$mf"`
18347: # Find all dependency output files, they are included files with
18348: # $(DEPDIR) in their names. We invoke sed twice because it is the
18349: # simplest approach to changing $(DEPDIR) to its actual value in the
18350: # expansion.
18351: for file in `sed -n "
18352: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18353: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18354: # Make sure the directory exists.
18355: test -f "$dirpart/$file" && continue
18356: fdir=`$as_dirname -- "$file" ||
1.23 moko 18357: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18358: X"$file" : 'X\(//\)[^/]' \| \
18359: X"$file" : 'X\(//\)$' \| \
1.31 moko 18360: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18361: $as_echo X"$file" |
18362: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18363: s//\1/
18364: q
18365: }
18366: /^X\(\/\/\)[^/].*/{
18367: s//\1/
18368: q
18369: }
18370: /^X\(\/\/\)$/{
18371: s//\1/
18372: q
18373: }
18374: /^X\(\/\).*/{
18375: s//\1/
18376: q
18377: }
18378: s/.*/./; q'`
18379: as_dir=$dirpart/$fdir; as_fn_mkdir_p
18380: # echo "creating $dirpart/$file"
18381: echo '# dummy' > "$dirpart/$file"
1.23 moko 18382: done
18383: done
1.31 moko 18384: }
1.23 moko 18385: ;;
1.31 moko 18386: "libtool":C)
1.23 moko 18387:
18388: # See if we are running on zsh, and set the options which allow our
18389: # commands through without removal of \ escapes.
18390: if test -n "${ZSH_VERSION+set}" ; then
18391: setopt NO_GLOB_SUBST
18392: fi
18393:
18394: cfgfile="${ofile}T"
18395: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18396: $RM "$cfgfile"
18397:
18398: cat <<_LT_EOF >> "$cfgfile"
18399: #! $SHELL
18400:
18401: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18402: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18403: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18404: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18405: #
18406: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18407: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18408: # Foundation, Inc.
18409: # Written by Gordon Matzigkeit, 1996
18410: #
18411: # This file is part of GNU Libtool.
18412: #
18413: # GNU Libtool is free software; you can redistribute it and/or
18414: # modify it under the terms of the GNU General Public License as
18415: # published by the Free Software Foundation; either version 2 of
18416: # the License, or (at your option) any later version.
18417: #
18418: # As a special exception to the GNU General Public License,
18419: # if you distribute this file as part of a program or library that
18420: # is built using GNU Libtool, you may include this file under the
18421: # same distribution terms that you use for the rest of that program.
18422: #
18423: # GNU Libtool is distributed in the hope that it will be useful,
18424: # but WITHOUT ANY WARRANTY; without even the implied warranty of
18425: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18426: # GNU General Public License for more details.
18427: #
18428: # You should have received a copy of the GNU General Public License
18429: # along with GNU Libtool; see the file COPYING. If not, a copy
18430: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18431: # obtained by writing to the Free Software Foundation, Inc.,
18432: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18433:
18434:
18435: # The names of the tagged configurations supported by this script.
18436: available_tags="CXX "
18437:
18438: # ### BEGIN LIBTOOL CONFIG
18439:
18440: # Which release of libtool.m4 was used?
18441: macro_version=$macro_version
18442: macro_revision=$macro_revision
18443:
1.30 moko 18444: # Whether or not to build static libraries.
18445: build_old_libs=$enable_static
18446:
1.23 moko 18447: # Assembler program.
18448: AS=$lt_AS
18449:
18450: # DLL creation program.
18451: DLLTOOL=$lt_DLLTOOL
18452:
18453: # Object dumper program.
18454: OBJDUMP=$lt_OBJDUMP
18455:
18456: # Whether or not to build shared libraries.
18457: build_libtool_libs=$enable_shared
18458:
18459: # What type of objects to build.
18460: pic_mode=$pic_mode
18461:
18462: # Whether or not to optimize for fast installation.
18463: fast_install=$enable_fast_install
18464:
18465: # Shell to use when invoking shell scripts.
18466: SHELL=$lt_SHELL
18467:
18468: # An echo program that protects backslashes.
18469: ECHO=$lt_ECHO
18470:
18471: # The PATH separator for the build system.
18472: PATH_SEPARATOR=$lt_PATH_SEPARATOR
18473:
18474: # The host system.
18475: host_alias=$host_alias
18476: host=$host
18477: host_os=$host_os
18478:
18479: # The build system.
18480: build_alias=$build_alias
18481: build=$build
18482: build_os=$build_os
18483:
18484: # A sed program that does not truncate output.
18485: SED=$lt_SED
18486:
18487: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18488: Xsed="\$SED -e 1s/^X//"
18489:
18490: # A grep program that handles long lines.
18491: GREP=$lt_GREP
18492:
18493: # An ERE matcher.
18494: EGREP=$lt_EGREP
18495:
18496: # A literal string matcher.
18497: FGREP=$lt_FGREP
18498:
18499: # A BSD- or MS-compatible name lister.
18500: NM=$lt_NM
18501:
18502: # Whether we need soft or hard links.
18503: LN_S=$lt_LN_S
18504:
18505: # What is the maximum length of a command?
18506: max_cmd_len=$max_cmd_len
18507:
18508: # Object file suffix (normally "o").
18509: objext=$ac_objext
18510:
18511: # Executable file suffix (normally "").
18512: exeext=$exeext
18513:
18514: # whether the shell understands "unset".
18515: lt_unset=$lt_unset
18516:
18517: # turn spaces into newlines.
18518: SP2NL=$lt_lt_SP2NL
18519:
18520: # turn newlines into spaces.
18521: NL2SP=$lt_lt_NL2SP
18522:
18523: # convert \$build file names to \$host format.
18524: to_host_file_cmd=$lt_cv_to_host_file_cmd
18525:
18526: # convert \$build files to toolchain format.
18527: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18528:
18529: # Method to check whether dependent libraries are shared objects.
18530: deplibs_check_method=$lt_deplibs_check_method
18531:
18532: # Command to use when deplibs_check_method = "file_magic".
18533: file_magic_cmd=$lt_file_magic_cmd
18534:
18535: # How to find potential files when deplibs_check_method = "file_magic".
18536: file_magic_glob=$lt_file_magic_glob
18537:
18538: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18539: want_nocaseglob=$lt_want_nocaseglob
18540:
18541: # Command to associate shared and link libraries.
18542: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18543:
18544: # The archiver.
18545: AR=$lt_AR
18546:
18547: # Flags to create an archive.
18548: AR_FLAGS=$lt_AR_FLAGS
18549:
18550: # How to feed a file listing to the archiver.
18551: archiver_list_spec=$lt_archiver_list_spec
18552:
18553: # A symbol stripping program.
18554: STRIP=$lt_STRIP
18555:
18556: # Commands used to install an old-style archive.
18557: RANLIB=$lt_RANLIB
18558: old_postinstall_cmds=$lt_old_postinstall_cmds
18559: old_postuninstall_cmds=$lt_old_postuninstall_cmds
18560:
18561: # Whether to use a lock for old archive extraction.
18562: lock_old_archive_extraction=$lock_old_archive_extraction
18563:
18564: # A C compiler.
18565: LTCC=$lt_CC
18566:
18567: # LTCC compiler flags.
18568: LTCFLAGS=$lt_CFLAGS
18569:
18570: # Take the output of nm and produce a listing of raw symbols and C names.
18571: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18572:
18573: # Transform the output of nm in a proper C declaration.
18574: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18575:
18576: # Transform the output of nm in a C name address pair.
18577: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18578:
18579: # Transform the output of nm in a C name address pair when lib prefix is needed.
18580: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18581:
18582: # Specify filename containing input files for \$NM.
18583: nm_file_list_spec=$lt_nm_file_list_spec
18584:
18585: # The root where to search for dependent libraries,and in which our libraries should be installed.
18586: lt_sysroot=$lt_sysroot
18587:
18588: # The name of the directory that contains temporary libtool files.
18589: objdir=$objdir
18590:
18591: # Used to examine libraries when file_magic_cmd begins with "file".
18592: MAGIC_CMD=$MAGIC_CMD
18593:
18594: # Must we lock files when doing compilation?
18595: need_locks=$lt_need_locks
18596:
18597: # Manifest tool.
18598: MANIFEST_TOOL=$lt_MANIFEST_TOOL
18599:
18600: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18601: DSYMUTIL=$lt_DSYMUTIL
18602:
18603: # Tool to change global to local symbols on Mac OS X.
18604: NMEDIT=$lt_NMEDIT
18605:
18606: # Tool to manipulate fat objects and archives on Mac OS X.
18607: LIPO=$lt_LIPO
18608:
18609: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18610: OTOOL=$lt_OTOOL
18611:
18612: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18613: OTOOL64=$lt_OTOOL64
18614:
18615: # Old archive suffix (normally "a").
18616: libext=$libext
18617:
18618: # Shared library suffix (normally ".so").
18619: shrext_cmds=$lt_shrext_cmds
18620:
18621: # The commands to extract the exported symbol list from a shared archive.
18622: extract_expsyms_cmds=$lt_extract_expsyms_cmds
18623:
18624: # Variables whose values should be saved in libtool wrapper scripts and
18625: # restored at link time.
18626: variables_saved_for_relink=$lt_variables_saved_for_relink
18627:
18628: # Do we need the "lib" prefix for modules?
18629: need_lib_prefix=$need_lib_prefix
18630:
18631: # Do we need a version for libraries?
18632: need_version=$need_version
18633:
18634: # Library versioning type.
18635: version_type=$version_type
18636:
18637: # Shared library runtime path variable.
18638: runpath_var=$runpath_var
18639:
18640: # Shared library path variable.
18641: shlibpath_var=$shlibpath_var
18642:
18643: # Is shlibpath searched before the hard-coded library search path?
18644: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18645:
18646: # Format of library name prefix.
18647: libname_spec=$lt_libname_spec
18648:
18649: # List of archive names. First name is the real one, the rest are links.
18650: # The last name is the one that the linker finds with -lNAME
18651: library_names_spec=$lt_library_names_spec
18652:
18653: # The coded name of the library, if different from the real name.
18654: soname_spec=$lt_soname_spec
18655:
18656: # Permission mode override for installation of shared libraries.
18657: install_override_mode=$lt_install_override_mode
18658:
18659: # Command to use after installation of a shared archive.
18660: postinstall_cmds=$lt_postinstall_cmds
18661:
18662: # Command to use after uninstallation of a shared archive.
18663: postuninstall_cmds=$lt_postuninstall_cmds
18664:
18665: # Commands used to finish a libtool library installation in a directory.
18666: finish_cmds=$lt_finish_cmds
18667:
18668: # As "finish_cmds", except a single script fragment to be evaled but
18669: # not shown.
18670: finish_eval=$lt_finish_eval
18671:
18672: # Whether we should hardcode library paths into libraries.
18673: hardcode_into_libs=$hardcode_into_libs
18674:
18675: # Compile-time system search path for libraries.
18676: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18677:
18678: # Run-time system search path for libraries.
18679: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18680:
18681: # Whether dlopen is supported.
18682: dlopen_support=$enable_dlopen
18683:
18684: # Whether dlopen of programs is supported.
18685: dlopen_self=$enable_dlopen_self
18686:
18687: # Whether dlopen of statically linked programs is supported.
18688: dlopen_self_static=$enable_dlopen_self_static
18689:
18690: # Commands to strip libraries.
18691: old_striplib=$lt_old_striplib
18692: striplib=$lt_striplib
18693:
18694:
18695: # The linker used to build libraries.
18696: LD=$lt_LD
18697:
18698: # How to create reloadable object files.
18699: reload_flag=$lt_reload_flag
18700: reload_cmds=$lt_reload_cmds
18701:
18702: # Commands used to build an old-style archive.
18703: old_archive_cmds=$lt_old_archive_cmds
18704:
18705: # A language specific compiler.
18706: CC=$lt_compiler
18707:
18708: # Is the compiler the GNU compiler?
18709: with_gcc=$GCC
18710:
18711: # Compiler flag to turn off builtin functions.
18712: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18713:
18714: # Additional compiler flags for building library objects.
18715: pic_flag=$lt_lt_prog_compiler_pic
18716:
18717: # How to pass a linker flag through the compiler.
18718: wl=$lt_lt_prog_compiler_wl
18719:
18720: # Compiler flag to prevent dynamic linking.
18721: link_static_flag=$lt_lt_prog_compiler_static
18722:
18723: # Does compiler simultaneously support -c and -o options?
18724: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18725:
18726: # Whether or not to add -lc for building shared libraries.
18727: build_libtool_need_lc=$archive_cmds_need_lc
18728:
18729: # Whether or not to disallow shared libs when runtime libs are static.
18730: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18731:
18732: # Compiler flag to allow reflexive dlopens.
18733: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18734:
18735: # Compiler flag to generate shared objects directly from archives.
18736: whole_archive_flag_spec=$lt_whole_archive_flag_spec
18737:
18738: # Whether the compiler copes with passing no objects directly.
18739: compiler_needs_object=$lt_compiler_needs_object
18740:
18741: # Create an old-style archive from a shared archive.
18742: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18743:
18744: # Create a temporary old-style archive to link instead of a shared archive.
18745: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18746:
18747: # Commands used to build a shared archive.
18748: archive_cmds=$lt_archive_cmds
18749: archive_expsym_cmds=$lt_archive_expsym_cmds
18750:
18751: # Commands used to build a loadable module if different from building
18752: # a shared archive.
18753: module_cmds=$lt_module_cmds
18754: module_expsym_cmds=$lt_module_expsym_cmds
18755:
18756: # Whether we are building with GNU ld or not.
18757: with_gnu_ld=$lt_with_gnu_ld
18758:
18759: # Flag that allows shared libraries with undefined symbols to be built.
18760: allow_undefined_flag=$lt_allow_undefined_flag
18761:
18762: # Flag that enforces no undefined symbols.
18763: no_undefined_flag=$lt_no_undefined_flag
18764:
18765: # Flag to hardcode \$libdir into a binary during linking.
18766: # This must work even if \$libdir does not exist
18767: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18768:
18769: # Whether we need a single "-rpath" flag with a separated argument.
18770: hardcode_libdir_separator=$lt_hardcode_libdir_separator
18771:
18772: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18773: # DIR into the resulting binary.
18774: hardcode_direct=$hardcode_direct
18775:
18776: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18777: # DIR into the resulting binary and the resulting library dependency is
18778: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18779: # library is relocated.
18780: hardcode_direct_absolute=$hardcode_direct_absolute
18781:
18782: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18783: # into the resulting binary.
18784: hardcode_minus_L=$hardcode_minus_L
18785:
18786: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18787: # into the resulting binary.
18788: hardcode_shlibpath_var=$hardcode_shlibpath_var
18789:
18790: # Set to "yes" if building a shared library automatically hardcodes DIR
18791: # into the library and all subsequent libraries and executables linked
18792: # against it.
18793: hardcode_automatic=$hardcode_automatic
18794:
18795: # Set to yes if linker adds runtime paths of dependent libraries
18796: # to runtime path list.
18797: inherit_rpath=$inherit_rpath
18798:
18799: # Whether libtool must link a program against all its dependency libraries.
18800: link_all_deplibs=$link_all_deplibs
18801:
18802: # Set to "yes" if exported symbols are required.
18803: always_export_symbols=$always_export_symbols
18804:
18805: # The commands to list exported symbols.
18806: export_symbols_cmds=$lt_export_symbols_cmds
18807:
18808: # Symbols that should not be listed in the preloaded symbols.
18809: exclude_expsyms=$lt_exclude_expsyms
18810:
18811: # Symbols that must always be exported.
18812: include_expsyms=$lt_include_expsyms
18813:
18814: # Commands necessary for linking programs (against libraries) with templates.
18815: prelink_cmds=$lt_prelink_cmds
18816:
18817: # Commands necessary for finishing linking programs.
18818: postlink_cmds=$lt_postlink_cmds
18819:
18820: # Specify filename containing input files.
18821: file_list_spec=$lt_file_list_spec
18822:
18823: # How to hardcode a shared library path into an executable.
18824: hardcode_action=$hardcode_action
18825:
18826: # The directories searched by this compiler when creating a shared library.
18827: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18828:
18829: # Dependencies to place before and after the objects being linked to
18830: # create a shared library.
18831: predep_objects=$lt_predep_objects
18832: postdep_objects=$lt_postdep_objects
18833: predeps=$lt_predeps
18834: postdeps=$lt_postdeps
18835:
18836: # The library search path used internally by the compiler when linking
18837: # a shared library.
18838: compiler_lib_search_path=$lt_compiler_lib_search_path
18839:
18840: # ### END LIBTOOL CONFIG
18841:
18842: _LT_EOF
18843:
18844: case $host_os in
18845: aix3*)
18846: cat <<\_LT_EOF >> "$cfgfile"
18847: # AIX sometimes has problems with the GCC collect2 program. For some
18848: # reason, if we set the COLLECT_NAMES environment variable, the problems
18849: # vanish in a puff of smoke.
18850: if test "X${COLLECT_NAMES+set}" != Xset; then
18851: COLLECT_NAMES=
18852: export COLLECT_NAMES
18853: fi
18854: _LT_EOF
18855: ;;
18856: esac
18857:
18858:
18859: ltmain="$ac_aux_dir/ltmain.sh"
1.1 parser 18860:
1.16 paf 18861:
1.23 moko 18862: # We use sed instead of cat because bash on DJGPP gets confused if
18863: # if finds mixed CR/LF and LF-only lines. Since sed operates in
18864: # text mode, it properly converts lines to CR/LF. This bash problem
18865: # is reportedly fixed, but why not run on old versions too?
18866: sed '$q' "$ltmain" >> "$cfgfile" \
18867: || (rm -f "$cfgfile"; exit 1)
1.10 paf 18868:
1.23 moko 18869: if test x"$xsi_shell" = xyes; then
18870: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18871: func_dirname ()\
18872: {\
18873: \ case ${1} in\
18874: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18875: \ * ) func_dirname_result="${3}" ;;\
18876: \ esac\
18877: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18878: && mv -f "$cfgfile.tmp" "$cfgfile" \
18879: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18880: test 0 -eq $? || _lt_function_replace_fail=:
18881:
18882:
18883: sed -e '/^func_basename ()$/,/^} # func_basename /c\
18884: func_basename ()\
18885: {\
18886: \ func_basename_result="${1##*/}"\
18887: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18888: && mv -f "$cfgfile.tmp" "$cfgfile" \
18889: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18890: test 0 -eq $? || _lt_function_replace_fail=:
18891:
18892:
18893: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18894: func_dirname_and_basename ()\
18895: {\
18896: \ case ${1} in\
18897: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18898: \ * ) func_dirname_result="${3}" ;;\
18899: \ esac\
18900: \ func_basename_result="${1##*/}"\
18901: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18902: && mv -f "$cfgfile.tmp" "$cfgfile" \
18903: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18904: test 0 -eq $? || _lt_function_replace_fail=:
18905:
18906:
18907: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18908: func_stripname ()\
18909: {\
18910: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18911: \ # positional parameters, so assign one to ordinary parameter first.\
18912: \ func_stripname_result=${3}\
18913: \ func_stripname_result=${func_stripname_result#"${1}"}\
18914: \ func_stripname_result=${func_stripname_result%"${2}"}\
18915: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18916: && mv -f "$cfgfile.tmp" "$cfgfile" \
18917: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18918: test 0 -eq $? || _lt_function_replace_fail=:
18919:
18920:
18921: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18922: func_split_long_opt ()\
18923: {\
18924: \ func_split_long_opt_name=${1%%=*}\
18925: \ func_split_long_opt_arg=${1#*=}\
18926: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18927: && mv -f "$cfgfile.tmp" "$cfgfile" \
18928: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18929: test 0 -eq $? || _lt_function_replace_fail=:
18930:
18931:
18932: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18933: func_split_short_opt ()\
18934: {\
18935: \ func_split_short_opt_arg=${1#??}\
18936: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18937: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18938: && mv -f "$cfgfile.tmp" "$cfgfile" \
18939: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18940: test 0 -eq $? || _lt_function_replace_fail=:
18941:
18942:
18943: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18944: func_lo2o ()\
18945: {\
18946: \ case ${1} in\
18947: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18948: \ *) func_lo2o_result=${1} ;;\
18949: \ esac\
18950: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18951: && mv -f "$cfgfile.tmp" "$cfgfile" \
18952: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18953: test 0 -eq $? || _lt_function_replace_fail=:
18954:
18955:
18956: sed -e '/^func_xform ()$/,/^} # func_xform /c\
18957: func_xform ()\
18958: {\
18959: func_xform_result=${1%.*}.lo\
18960: } # Extended-shell func_xform 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_arith ()$/,/^} # func_arith /c\
18967: func_arith ()\
18968: {\
18969: func_arith_result=$(( $* ))\
18970: } # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
18977: func_len ()\
18978: {\
18979: func_len_result=${#1}\
18980: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18981: && mv -f "$cfgfile.tmp" "$cfgfile" \
18982: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18983: test 0 -eq $? || _lt_function_replace_fail=:
18984:
18985: fi
18986:
18987: if test x"$lt_shell_append" = xyes; then
18988: sed -e '/^func_append ()$/,/^} # func_append /c\
18989: func_append ()\
18990: {\
18991: eval "${1}+=\\${2}"\
18992: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18993: && mv -f "$cfgfile.tmp" "$cfgfile" \
18994: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18995: test 0 -eq $? || _lt_function_replace_fail=:
18996:
18997:
18998: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18999: func_append_quoted ()\
19000: {\
19001: \ func_quote_for_eval "${2}"\
19002: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19003: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19004: && mv -f "$cfgfile.tmp" "$cfgfile" \
19005: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19006: test 0 -eq $? || _lt_function_replace_fail=:
19007:
19008:
19009: # Save a `func_append' function call where possible by direct use of '+='
19010: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19011: && mv -f "$cfgfile.tmp" "$cfgfile" \
19012: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19013: test 0 -eq $? || _lt_function_replace_fail=:
19014: else
19015: # Save a `func_append' function call even when '+=' is not available
19016: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19017: && mv -f "$cfgfile.tmp" "$cfgfile" \
19018: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19019: test 0 -eq $? || _lt_function_replace_fail=:
19020: fi
19021:
19022: if test x"$_lt_function_replace_fail" = x":"; then
1.31 moko 19023: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19024: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.10 paf 19025: fi
19026:
1.16 paf 19027:
1.23 moko 19028: mv -f "$cfgfile" "$ofile" ||
19029: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19030: chmod +x "$ofile"
19031:
19032:
19033: cat <<_LT_EOF >> "$ofile"
19034:
19035: # ### BEGIN LIBTOOL TAG CONFIG: CXX
19036:
19037: # The linker used to build libraries.
19038: LD=$lt_LD_CXX
19039:
19040: # How to create reloadable object files.
19041: reload_flag=$lt_reload_flag_CXX
19042: reload_cmds=$lt_reload_cmds_CXX
19043:
19044: # Commands used to build an old-style archive.
19045: old_archive_cmds=$lt_old_archive_cmds_CXX
19046:
19047: # A language specific compiler.
19048: CC=$lt_compiler_CXX
19049:
19050: # Is the compiler the GNU compiler?
19051: with_gcc=$GCC_CXX
19052:
19053: # Compiler flag to turn off builtin functions.
19054: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19055:
19056: # Additional compiler flags for building library objects.
19057: pic_flag=$lt_lt_prog_compiler_pic_CXX
19058:
19059: # How to pass a linker flag through the compiler.
19060: wl=$lt_lt_prog_compiler_wl_CXX
19061:
19062: # Compiler flag to prevent dynamic linking.
19063: link_static_flag=$lt_lt_prog_compiler_static_CXX
19064:
19065: # Does compiler simultaneously support -c and -o options?
19066: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19067:
19068: # Whether or not to add -lc for building shared libraries.
19069: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19070:
19071: # Whether or not to disallow shared libs when runtime libs are static.
19072: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19073:
19074: # Compiler flag to allow reflexive dlopens.
19075: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19076:
19077: # Compiler flag to generate shared objects directly from archives.
19078: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19079:
19080: # Whether the compiler copes with passing no objects directly.
19081: compiler_needs_object=$lt_compiler_needs_object_CXX
19082:
19083: # Create an old-style archive from a shared archive.
19084: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19085:
19086: # Create a temporary old-style archive to link instead of a shared archive.
19087: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19088:
19089: # Commands used to build a shared archive.
19090: archive_cmds=$lt_archive_cmds_CXX
19091: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19092:
19093: # Commands used to build a loadable module if different from building
19094: # a shared archive.
19095: module_cmds=$lt_module_cmds_CXX
19096: module_expsym_cmds=$lt_module_expsym_cmds_CXX
19097:
19098: # Whether we are building with GNU ld or not.
19099: with_gnu_ld=$lt_with_gnu_ld_CXX
19100:
19101: # Flag that allows shared libraries with undefined symbols to be built.
19102: allow_undefined_flag=$lt_allow_undefined_flag_CXX
19103:
19104: # Flag that enforces no undefined symbols.
19105: no_undefined_flag=$lt_no_undefined_flag_CXX
19106:
19107: # Flag to hardcode \$libdir into a binary during linking.
19108: # This must work even if \$libdir does not exist
19109: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19110:
19111: # Whether we need a single "-rpath" flag with a separated argument.
19112: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19113:
19114: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19115: # DIR into the resulting binary.
19116: hardcode_direct=$hardcode_direct_CXX
19117:
19118: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19119: # DIR into the resulting binary and the resulting library dependency is
19120: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19121: # library is relocated.
19122: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19123:
19124: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19125: # into the resulting binary.
19126: hardcode_minus_L=$hardcode_minus_L_CXX
19127:
19128: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19129: # into the resulting binary.
19130: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19131:
19132: # Set to "yes" if building a shared library automatically hardcodes DIR
19133: # into the library and all subsequent libraries and executables linked
19134: # against it.
19135: hardcode_automatic=$hardcode_automatic_CXX
19136:
19137: # Set to yes if linker adds runtime paths of dependent libraries
19138: # to runtime path list.
19139: inherit_rpath=$inherit_rpath_CXX
19140:
19141: # Whether libtool must link a program against all its dependency libraries.
19142: link_all_deplibs=$link_all_deplibs_CXX
19143:
19144: # Set to "yes" if exported symbols are required.
19145: always_export_symbols=$always_export_symbols_CXX
19146:
19147: # The commands to list exported symbols.
19148: export_symbols_cmds=$lt_export_symbols_cmds_CXX
19149:
19150: # Symbols that should not be listed in the preloaded symbols.
19151: exclude_expsyms=$lt_exclude_expsyms_CXX
19152:
19153: # Symbols that must always be exported.
19154: include_expsyms=$lt_include_expsyms_CXX
19155:
19156: # Commands necessary for linking programs (against libraries) with templates.
19157: prelink_cmds=$lt_prelink_cmds_CXX
19158:
19159: # Commands necessary for finishing linking programs.
19160: postlink_cmds=$lt_postlink_cmds_CXX
19161:
19162: # Specify filename containing input files.
19163: file_list_spec=$lt_file_list_spec_CXX
19164:
19165: # How to hardcode a shared library path into an executable.
19166: hardcode_action=$hardcode_action_CXX
19167:
19168: # The directories searched by this compiler when creating a shared library.
19169: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
1.10 paf 19170:
1.23 moko 19171: # Dependencies to place before and after the objects being linked to
19172: # create a shared library.
19173: predep_objects=$lt_predep_objects_CXX
19174: postdep_objects=$lt_postdep_objects_CXX
19175: predeps=$lt_predeps_CXX
19176: postdeps=$lt_postdeps_CXX
19177:
19178: # The library search path used internally by the compiler when linking
19179: # a shared library.
19180: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1.10 paf 19181:
1.23 moko 19182: # ### END LIBTOOL TAG CONFIG: CXX
19183: _LT_EOF
1.1 parser 19184:
1.10 paf 19185: ;;
1.31 moko 19186:
1.10 paf 19187: esac
1.31 moko 19188: done # for ac_tag
1.1 parser 19189:
19190:
1.31 moko 19191: as_fn_exit 0
1.10 paf 19192: _ACEOF
19193: ac_clean_files=$ac_clean_files_save
19194:
1.31 moko 19195: test $ac_write_fail = 0 ||
19196: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19197:
1.10 paf 19198:
19199: # configure is writing to config.log, and then calls config.status.
19200: # config.status does its own redirection, appending to config.log.
19201: # Unfortunately, on DOS this fails, as config.log is still kept open
19202: # by configure, so config.status won't be able to write to it; its
19203: # output is simply discarded. So we exec the FD to /dev/null,
19204: # effectively closing config.log, so it can be properly (re)opened and
19205: # appended to by config.status. When coming back to configure, we
19206: # need to make the FD available again.
19207: if test "$no_create" != yes; then
19208: ac_cs_success=:
19209: ac_config_status_args=
19210: test "$silent" = yes &&
19211: ac_config_status_args="$ac_config_status_args --quiet"
19212: exec 5>/dev/null
19213: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19214: exec 5>>config.log
19215: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19216: # would make configure fail if this is the last instruction.
1.31 moko 19217: $ac_cs_success || as_fn_exit 1
1.10 paf 19218: fi
1.1 parser 19219:
1.10 paf 19220: #
19221: # CONFIG_SUBDIRS section.
19222: #
1.1 parser 19223: if test "$no_recursion" != yes; then
19224:
1.31 moko 19225: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19226: # so they do not pile up.
1.1 parser 19227: ac_sub_configure_args=
19228: ac_prev=
1.31 moko 19229: eval "set x $ac_configure_args"
19230: shift
19231: for ac_arg
19232: do
1.1 parser 19233: if test -n "$ac_prev"; then
19234: ac_prev=
19235: continue
19236: fi
1.10 paf 19237: case $ac_arg in
1.1 parser 19238: -cache-file | --cache-file | --cache-fil | --cache-fi \
19239: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19240: ac_prev=cache_file ;;
19241: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.10 paf 19242: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19243: | --c=*)
19244: ;;
19245: --config-cache | -C)
1.1 parser 19246: ;;
19247: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19248: ac_prev=srcdir ;;
19249: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19250: ;;
1.10 paf 19251: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19252: ac_prev=prefix ;;
19253: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19254: ;;
1.31 moko 19255: --disable-option-checking)
19256: ;;
19257: *)
19258: case $ac_arg in
19259: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19260: esac
19261: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 parser 19262: esac
19263: done
19264:
1.10 paf 19265: # Always prepend --prefix to ensure using the same prefix
19266: # in subdir configurations.
1.31 moko 19267: ac_arg="--prefix=$prefix"
19268: case $ac_arg in
19269: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19270: esac
19271: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19272:
19273: # Pass --silent
19274: if test "$silent" = yes; then
19275: ac_sub_configure_args="--silent $ac_sub_configure_args"
19276: fi
19277:
19278: # Always prepend --disable-option-checking to silence warnings, since
19279: # different subdirs can have different --enable and --with options.
19280: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.10 paf 19281:
19282: ac_popdir=`pwd`
19283: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 19284:
19285: # Do not complain, so a configure script can configure whichever
19286: # parts of a large source tree are present.
1.31 moko 19287: test -d "$srcdir/$ac_dir" || continue
1.10 paf 19288:
1.31 moko 19289: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19290: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19291: $as_echo "$ac_msg" >&6
19292: as_dir="$ac_dir"; as_fn_mkdir_p
1.10 paf 19293: ac_builddir=.
19294:
1.31 moko 19295: case "$ac_dir" in
19296: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19297: *)
19298: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19299: # A ".." for each directory in $ac_dir_suffix.
19300: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19301: case $ac_top_builddir_sub in
19302: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19303: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19304: esac ;;
19305: esac
19306: ac_abs_top_builddir=$ac_pwd
19307: ac_abs_builddir=$ac_pwd$ac_dir_suffix
19308: # for backward compatibility:
19309: ac_top_builddir=$ac_top_build_prefix
1.10 paf 19310:
19311: case $srcdir in
1.31 moko 19312: .) # We are building in place.
1.10 paf 19313: ac_srcdir=.
1.31 moko 19314: ac_top_srcdir=$ac_top_builddir_sub
19315: ac_abs_top_srcdir=$ac_pwd ;;
19316: [\\/]* | ?:[\\/]* ) # Absolute name.
1.10 paf 19317: ac_srcdir=$srcdir$ac_dir_suffix;
1.31 moko 19318: ac_top_srcdir=$srcdir
19319: ac_abs_top_srcdir=$srcdir ;;
19320: *) # Relative name.
19321: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19322: ac_top_srcdir=$ac_top_build_prefix$srcdir
19323: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.16 paf 19324: esac
1.31 moko 19325: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 parser 19326:
19327:
1.31 moko 19328: cd "$ac_dir"
1.1 parser 19329:
19330: # Check for guested configure; otherwise get Cygnus style configure.
1.31 moko 19331: if test -f "$ac_srcdir/configure.gnu"; then
19332: ac_sub_configure=$ac_srcdir/configure.gnu
19333: elif test -f "$ac_srcdir/configure"; then
19334: ac_sub_configure=$ac_srcdir/configure
19335: elif test -f "$ac_srcdir/configure.in"; then
19336: # This should be Cygnus configure.
19337: ac_sub_configure=$ac_aux_dir/configure
1.1 parser 19338: else
1.31 moko 19339: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19340: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 19341: ac_sub_configure=
19342: fi
19343:
19344: # The recursion is here.
19345: if test -n "$ac_sub_configure"; then
19346: # Make the cache file name correct relative to the subdirectory.
1.10 paf 19347: case $cache_file in
19348: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.31 moko 19349: *) # Relative name.
19350: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 parser 19351: esac
19352:
1.31 moko 19353: { $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
19354: $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 19355: # The eval makes quoting arguments work.
1.31 moko 19356: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19357: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19358: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 parser 19359: fi
19360:
1.31 moko 19361: cd "$ac_popdir"
1.1 parser 19362: done
19363: fi
1.31 moko 19364: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19365: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19366: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19367: fi
1.1 parser 19368:
E-mail: