Annotation of sql/mysql/configure, revision 1.45
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.44 moko 3: # Generated by GNU Autoconf 2.68 for parser3mysql.C 10.4.
1.43 moko 4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
1.1 parser 10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.43 moko 13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
1.15 paf 16:
1.43 moko 17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.15 paf 20: emulate sh
21: NULLCMD=:
1.43 moko 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.15 paf 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
1.43 moko 25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
1.15 paf 72: fi
73:
1.43 moko 74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
1.15 paf 81: fi
82:
83:
1.43 moko 84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
1.15 paf 124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.43 moko 129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: if test "x$CONFIG_SHELL" = x; then
138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
145: else
146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
152: fi
153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
159:
160: exitcode=0
161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175:
176: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180: PATH=/empty FPATH=/empty; export PATH FPATH
181: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183: test \$(( 1 + 1 )) = 2 || exit 1"
184: if (eval "$as_required") 2>/dev/null; then :
185: as_have_required=yes
186: else
187: as_have_required=no
188: fi
189: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190:
191: else
192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193: as_found=false
194: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.15 paf 195: do
1.43 moko 196: IFS=$as_save_IFS
197: test -z "$as_dir" && as_dir=.
198: as_found=:
199: case $as_dir in #(
200: /*)
201: for as_base in sh bash ksh sh5; do
202: # Try only shells that exist, to save several forks.
203: as_shell=$as_dir/$as_base
204: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206: CONFIG_SHELL=$as_shell as_have_required=yes
207: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208: break 2
209: fi
210: fi
211: done;;
212: esac
213: as_found=false
214: done
215: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217: CONFIG_SHELL=$SHELL as_have_required=yes
218: fi; }
219: IFS=$as_save_IFS
220:
221:
222: if test "x$CONFIG_SHELL" != x; then :
223: # We cannot yet assume a decent shell, so we have to provide a
224: # neutralization value for shells without unset; and this also
225: # works around shells that cannot unset nonexistent variables.
226: # Preserve -v and -x to the replacement shell.
227: BASH_ENV=/dev/null
228: ENV=/dev/null
229: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230: export CONFIG_SHELL
231: case $- in # ((((
232: *v*x* | *x*v* ) as_opts=-vx ;;
233: *v* ) as_opts=-v ;;
234: *x* ) as_opts=-x ;;
235: * ) as_opts= ;;
236: esac
237: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238: fi
239:
240: if test x$as_have_required = xno; then :
241: $as_echo "$0: This script requires a shell more modern than all"
242: $as_echo "$0: the shells that I found on your system."
243: if test x${ZSH_VERSION+set} = xset ; then
244: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1.15 paf 246: else
1.43 moko 247: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248: $0: including any error possibly output before this
249: $0: message. Then install a modern shell, or manually run
250: $0: the script under such a shell if you do have one."
1.15 paf 251: fi
1.43 moko 252: exit 1
253: fi
254: fi
255: fi
256: SHELL=${CONFIG_SHELL-/bin/sh}
257: export SHELL
258: # Unset more variables known to interfere with behavior of common tools.
259: CLICOLOR_FORCE= GREP_OPTIONS=
260: unset CLICOLOR_FORCE GREP_OPTIONS
261:
262: ## --------------------- ##
263: ## M4sh Shell Functions. ##
264: ## --------------------- ##
265: # as_fn_unset VAR
266: # ---------------
267: # Portably unset VAR.
268: as_fn_unset ()
269: {
270: { eval $1=; unset $1;}
271: }
272: as_unset=as_fn_unset
273:
274: # as_fn_set_status STATUS
275: # -----------------------
276: # Set $? to STATUS, without forking.
277: as_fn_set_status ()
278: {
279: return $1
280: } # as_fn_set_status
281:
282: # as_fn_exit STATUS
283: # -----------------
284: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285: as_fn_exit ()
286: {
287: set +e
288: as_fn_set_status $1
289: exit $1
290: } # as_fn_exit
291:
292: # as_fn_mkdir_p
293: # -------------
294: # Create "$as_dir" as a directory, including parents if necessary.
295: as_fn_mkdir_p ()
296: {
297:
298: case $as_dir in #(
299: -*) as_dir=./$as_dir;;
300: esac
301: test -d "$as_dir" || eval $as_mkdir_p || {
302: as_dirs=
303: while :; do
304: case $as_dir in #(
305: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306: *) as_qdir=$as_dir;;
307: esac
308: as_dirs="'$as_qdir' $as_dirs"
309: as_dir=`$as_dirname -- "$as_dir" ||
310: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311: X"$as_dir" : 'X\(//\)[^/]' \| \
312: X"$as_dir" : 'X\(//\)$' \| \
313: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314: $as_echo X"$as_dir" |
315: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\/\)[^/].*/{
320: s//\1/
321: q
322: }
323: /^X\(\/\/\)$/{
324: s//\1/
325: q
326: }
327: /^X\(\/\).*/{
328: s//\1/
329: q
330: }
331: s/.*/./; q'`
332: test -d "$as_dir" && break
333: done
334: test -z "$as_dirs" || eval "mkdir $as_dirs"
335: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336:
337:
338: } # as_fn_mkdir_p
339: # as_fn_append VAR VALUE
340: # ----------------------
341: # Append the text in VALUE to the end of the definition contained in VAR. Take
342: # advantage of any shell optimizations that allow amortized linear growth over
343: # repeated appends, instead of the typical quadratic growth present in naive
344: # implementations.
345: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346: eval 'as_fn_append ()
347: {
348: eval $1+=\$2
349: }'
350: else
351: as_fn_append ()
352: {
353: eval $1=\$$1\$2
354: }
355: fi # as_fn_append
356:
357: # as_fn_arith ARG...
358: # ------------------
359: # Perform arithmetic evaluation on the ARGs, and store the result in the
360: # global $as_val. Take advantage of shells that can avoid forks. The arguments
361: # must be portable across $(()) and expr.
362: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363: eval 'as_fn_arith ()
364: {
365: as_val=$(( $* ))
366: }'
367: else
368: as_fn_arith ()
369: {
370: as_val=`expr "$@" || test $? -eq 1`
371: }
372: fi # as_fn_arith
373:
374:
375: # as_fn_error STATUS ERROR [LINENO LOG_FD]
376: # ----------------------------------------
377: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379: # script with STATUS, using 1 if that was 0.
380: as_fn_error ()
381: {
382: as_status=$1; test $as_status -eq 0 && as_status=1
383: if test "$4"; then
384: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386: fi
387: $as_echo "$as_me: error: $2" >&2
388: as_fn_exit $as_status
389: } # as_fn_error
1.15 paf 390:
1.43 moko 391: if expr a : '\(a\)' >/dev/null 2>&1 &&
392: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.15 paf 393: as_expr=expr
394: else
395: as_expr=false
396: fi
397:
1.43 moko 398: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.15 paf 399: as_basename=basename
400: else
401: as_basename=false
402: fi
403:
1.43 moko 404: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405: as_dirname=dirname
406: else
407: as_dirname=false
408: fi
1.15 paf 409:
1.43 moko 410: as_me=`$as_basename -- "$0" ||
1.15 paf 411: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412: X"$0" : 'X\(//\)$' \| \
1.43 moko 413: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414: $as_echo X/"$0" |
415: sed '/^.*\/\([^/][^/]*\)\/*$/{
416: s//\1/
417: q
418: }
419: /^X\/\(\/\/\)$/{
420: s//\1/
421: q
422: }
423: /^X\/\(\/\).*/{
424: s//\1/
425: q
426: }
427: s/.*/./; q'`
1.15 paf 428:
429: # Avoid depending upon Character Ranges.
430: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433: as_cr_digits='0123456789'
434: as_cr_alnum=$as_cr_Letters$as_cr_digits
435:
436:
1.43 moko 437: as_lineno_1=$LINENO as_lineno_1a=$LINENO
438: as_lineno_2=$LINENO as_lineno_2a=$LINENO
439: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442: sed -n '
443: p
444: /[$]LINENO/=
445: ' <$as_myself |
1.15 paf 446: sed '
1.43 moko 447: s/[$]LINENO.*/&-/
448: t lineno
449: b
450: :lineno
1.15 paf 451: N
1.43 moko 452: :loop
453: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.15 paf 454: t loop
1.43 moko 455: s/-\n.*//
1.15 paf 456: ' >$as_me.lineno &&
1.43 moko 457: chmod +x "$as_me.lineno" ||
458: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.15 paf 459:
460: # Don't try to exec as it changes $[0], causing all sort of problems
461: # (the dirname of $[0] is not the place where we might find the
1.43 moko 462: # original and so on. Autoconf is especially sensitive to this).
463: . "./$as_me.lineno"
1.15 paf 464: # Exit status is that of the last command.
465: exit
466: }
467:
1.43 moko 468: ECHO_C= ECHO_N= ECHO_T=
469: case `echo -n x` in #(((((
470: -n*)
471: case `echo 'xy\c'` in
472: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473: xy) ECHO_C='\c';;
474: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475: ECHO_T=' ';;
476: esac;;
477: *)
478: ECHO_N='-n';;
1.15 paf 479: esac
480:
1.43 moko 481: rm -f conf$$ conf$$.exe conf$$.file
482: if test -d conf$$.dir; then
483: rm -f conf$$.dir/conf$$.file
1.15 paf 484: else
1.43 moko 485: rm -f conf$$.dir
486: mkdir conf$$.dir 2>/dev/null
1.15 paf 487: fi
1.43 moko 488: if (echo >conf$$.file) 2>/dev/null; then
489: if ln -s conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s='ln -s'
491: # ... but there are two gotchas:
492: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494: # In both cases, we have to default to `cp -p'.
495: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496: as_ln_s='cp -p'
497: elif ln conf$$.file conf$$ 2>/dev/null; then
498: as_ln_s=ln
499: else
1.15 paf 500: as_ln_s='cp -p'
501: fi
502: else
503: as_ln_s='cp -p'
504: fi
1.43 moko 505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506: rmdir conf$$.dir 2>/dev/null
1.15 paf 507:
508: if mkdir -p . 2>/dev/null; then
1.43 moko 509: as_mkdir_p='mkdir -p "$as_dir"'
1.15 paf 510: else
1.25 paf 511: test -d ./-p && rmdir ./-p
1.15 paf 512: as_mkdir_p=false
513: fi
514:
1.43 moko 515: if test -x / >/dev/null 2>&1; then
516: as_test_x='test -x'
517: else
518: if ls -dL / >/dev/null 2>&1; then
519: as_ls_L_option=L
520: else
521: as_ls_L_option=
522: fi
523: as_test_x='
524: eval sh -c '\''
525: if test -d "$1"; then
526: test -d "$1/.";
527: else
528: case $1 in #(
529: -*)set "./$1";;
530: esac;
531: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532: ???[sx]*):;;*)false;;esac;fi
533: '\'' sh
534: '
535: fi
536: as_executable_p=$as_test_x
1.15 paf 537:
538: # Sed expression to map a string onto a valid CPP name.
1.25 paf 539: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.15 paf 540:
541: # Sed expression to map a string onto a valid variable name.
1.25 paf 542: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.15 paf 543:
1.36 moko 544: lt_ltdl_dir='libltdl'
545:
1.15 paf 546: SHELL=${CONFIG_SHELL-/bin/sh}
547:
1.35 moko 548: lt_dlopen_dir="$lt_ltdl_dir"
1.15 paf 549:
1.1 parser 550:
1.43 moko 551: test -n "$DJDIR" || exec 7<&0 </dev/null
552: exec 6>&1
553:
1.15 paf 554: # Name of the host.
1.43 moko 555: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.15 paf 556: # so uname gets run too.
557: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558:
559: #
560: # Initializations.
561: #
1.1 parser 562: ac_default_prefix=/usr/local
1.43 moko 563: ac_clean_files=
1.15 paf 564: ac_config_libobj_dir=.
1.43 moko 565: LIBOBJS=
1.15 paf 566: cross_compiling=no
567: subdirs=
568: MFLAGS=
569: MAKEFLAGS=
570:
571: # Identity of this package.
1.36 moko 572: PACKAGE_NAME='parser3mysql.C'
573: PACKAGE_TARNAME='parser3mysql-c'
1.44 moko 574: PACKAGE_VERSION='10.4'
575: PACKAGE_STRING='parser3mysql.C 10.4'
1.36 moko 576: PACKAGE_BUGREPORT=''
1.43 moko 577: PACKAGE_URL=''
1.15 paf 578:
579: ac_unique_file="parser3mysql.C"
580: # Factoring default headers for most tests.
581: ac_includes_default="\
582: #include <stdio.h>
1.43 moko 583: #ifdef HAVE_SYS_TYPES_H
1.15 paf 584: # include <sys/types.h>
585: #endif
1.43 moko 586: #ifdef HAVE_SYS_STAT_H
1.15 paf 587: # include <sys/stat.h>
588: #endif
1.43 moko 589: #ifdef STDC_HEADERS
1.15 paf 590: # include <stdlib.h>
591: # include <stddef.h>
592: #else
1.43 moko 593: # ifdef HAVE_STDLIB_H
1.15 paf 594: # include <stdlib.h>
595: # endif
596: #endif
1.43 moko 597: #ifdef HAVE_STRING_H
598: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.15 paf 599: # include <memory.h>
600: # endif
601: # include <string.h>
602: #endif
1.43 moko 603: #ifdef HAVE_STRINGS_H
1.15 paf 604: # include <strings.h>
605: #endif
1.43 moko 606: #ifdef HAVE_INTTYPES_H
1.15 paf 607: # include <inttypes.h>
608: #endif
1.43 moko 609: #ifdef HAVE_STDINT_H
610: # include <stdint.h>
611: #endif
612: #ifdef HAVE_UNISTD_H
1.15 paf 613: # include <unistd.h>
614: #endif"
615:
1.43 moko 616: enable_option_checking=no
617: ac_subst_vars='ltdl_LTLIBOBJS
618: ltdl_LIBOBJS
619: am__EXEEXT_FALSE
620: am__EXEEXT_TRUE
621: LTLIBOBJS
622: LIBOBJS
623: LTDLOPEN
624: LT_CONFIG_H
625: subdirs
626: CONVENIENCE_LTDL_FALSE
627: CONVENIENCE_LTDL_TRUE
628: INSTALL_LTDL_FALSE
629: INSTALL_LTDL_TRUE
630: ARGZ_H
631: sys_symbol_underscore
632: LIBADD_DL
633: LT_DLPREOPEN
634: LIBADD_DLD_LINK
635: LIBADD_SHL_LOAD
636: LIBADD_DLOPEN
637: LT_DLLOADERS
638: INCLTDL
639: LTDLINCL
640: LTDLDEPS
641: LIBLTDL
642: CXXCPP
643: CPP
644: OTOOL64
645: OTOOL
646: LIPO
647: NMEDIT
648: DSYMUTIL
649: MANIFEST_TOOL
650: RANLIB
651: ac_ct_AR
652: AR
653: LN_S
654: NM
655: ac_ct_DUMPBIN
656: DUMPBIN
657: LD
658: FGREP
659: EGREP
660: GREP
661: SED
662: host_os
663: host_vendor
664: host_cpu
665: host
666: build_os
667: build_vendor
668: build_cpu
669: build
670: LIBTOOL
671: OBJDUMP
672: DLLTOOL
673: AS
674: am__fastdepCC_FALSE
675: am__fastdepCC_TRUE
676: CCDEPMODE
677: ac_ct_CC
678: CFLAGS
679: CC
680: am__fastdepCXX_FALSE
681: am__fastdepCXX_TRUE
682: CXXDEPMODE
683: AMDEPBACKSLASH
684: AMDEP_FALSE
685: AMDEP_TRUE
686: am__quote
687: am__include
688: DEPDIR
689: OBJEXT
690: EXEEXT
691: ac_ct_CXX
692: CPPFLAGS
693: LDFLAGS
694: CXXFLAGS
695: CXX
696: MYSQL_INC
697: am__untar
698: am__tar
699: AMTAR
700: am__leading_dot
701: SET_MAKE
702: AWK
703: mkdir_p
704: MKDIR_P
705: INSTALL_STRIP_PROGRAM
706: STRIP
707: install_sh
708: MAKEINFO
709: AUTOHEADER
710: AUTOMAKE
711: AUTOCONF
712: ACLOCAL
713: VERSION
714: PACKAGE
715: CYGPATH_W
716: am__isrc
717: INSTALL_DATA
718: INSTALL_SCRIPT
719: INSTALL_PROGRAM
720: target_alias
721: host_alias
722: build_alias
723: LIBS
724: ECHO_T
725: ECHO_N
726: ECHO_C
727: DEFS
728: mandir
729: localedir
730: libdir
731: psdir
732: pdfdir
733: dvidir
734: htmldir
735: infodir
736: docdir
737: oldincludedir
738: includedir
739: localstatedir
740: sharedstatedir
741: sysconfdir
742: datadir
743: datarootdir
744: libexecdir
745: sbindir
746: bindir
747: program_transform_name
748: prefix
749: exec_prefix
750: PACKAGE_URL
751: PACKAGE_BUGREPORT
752: PACKAGE_STRING
753: PACKAGE_VERSION
754: PACKAGE_TARNAME
755: PACKAGE_NAME
756: PATH_SEPARATOR
757: SHELL'
1.15 paf 758: ac_subst_files=''
1.43 moko 759: ac_user_opts='
760: enable_option_checking
761: with_mysql_inc
762: enable_dependency_tracking
763: enable_static
764: enable_shared
765: with_pic
766: enable_fast_install
767: with_gnu_ld
768: with_sysroot
769: enable_libtool_lock
770: with_included_ltdl
771: with_ltdl_include
772: with_ltdl_lib
773: enable_ltdl_install
774: '
775: ac_precious_vars='build_alias
776: host_alias
777: target_alias
778: CXX
779: CXXFLAGS
780: LDFLAGS
781: LIBS
782: CPPFLAGS
783: CCC
784: CC
785: CFLAGS
786: CPP
787: CXXCPP'
788: ac_subdirs_all='libltdl'
1.1 parser 789:
790: # Initialize some variables set by options.
1.15 paf 791: ac_init_help=
792: ac_init_version=false
1.43 moko 793: ac_unrecognized_opts=
794: ac_unrecognized_sep=
1.1 parser 795: # The variables have the same names as the options, with
796: # dashes changed to underlines.
1.15 paf 797: cache_file=/dev/null
1.1 parser 798: exec_prefix=NONE
799: no_create=
800: no_recursion=
801: prefix=NONE
802: program_prefix=NONE
803: program_suffix=NONE
804: program_transform_name=s,x,x,
805: silent=
806: site=
807: srcdir=
808: verbose=
809: x_includes=NONE
810: x_libraries=NONE
1.15 paf 811:
812: # Installation directory options.
813: # These are left unexpanded so users can "make install exec_prefix=/foo"
814: # and all the variables that are supposed to be based on exec_prefix
815: # by default will actually change.
816: # Use braces instead of parens because sh, perl, etc. also accept them.
1.43 moko 817: # (The list follows the same order as the GNU Coding Standards.)
1.1 parser 818: bindir='${exec_prefix}/bin'
819: sbindir='${exec_prefix}/sbin'
820: libexecdir='${exec_prefix}/libexec'
1.43 moko 821: datarootdir='${prefix}/share'
822: datadir='${datarootdir}'
1.1 parser 823: sysconfdir='${prefix}/etc'
824: sharedstatedir='${prefix}/com'
825: localstatedir='${prefix}/var'
826: includedir='${prefix}/include'
827: oldincludedir='/usr/include'
1.43 moko 828: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829: infodir='${datarootdir}/info'
830: htmldir='${docdir}'
831: dvidir='${docdir}'
832: pdfdir='${docdir}'
833: psdir='${docdir}'
834: libdir='${exec_prefix}/lib'
835: localedir='${datarootdir}/locale'
836: mandir='${datarootdir}/man'
1.1 parser 837:
838: ac_prev=
1.43 moko 839: ac_dashdash=
1.1 parser 840: for ac_option
841: do
842: # If the previous option needs an argument, assign it.
843: if test -n "$ac_prev"; then
1.43 moko 844: eval $ac_prev=\$ac_option
1.1 parser 845: ac_prev=
846: continue
847: fi
848:
1.43 moko 849: case $ac_option in
850: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851: *=) ac_optarg= ;;
852: *) ac_optarg=yes ;;
853: esac
1.1 parser 854:
855: # Accept the important Cygnus configure options, so we can diagnose typos.
856:
1.43 moko 857: case $ac_dashdash$ac_option in
858: --)
859: ac_dashdash=yes ;;
1.1 parser 860:
861: -bindir | --bindir | --bindi | --bind | --bin | --bi)
862: ac_prev=bindir ;;
863: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.15 paf 864: bindir=$ac_optarg ;;
1.1 parser 865:
866: -build | --build | --buil | --bui | --bu)
1.15 paf 867: ac_prev=build_alias ;;
1.1 parser 868: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.15 paf 869: build_alias=$ac_optarg ;;
1.1 parser 870:
871: -cache-file | --cache-file | --cache-fil | --cache-fi \
872: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873: ac_prev=cache_file ;;
874: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.15 paf 876: cache_file=$ac_optarg ;;
877:
878: --config-cache | -C)
879: cache_file=config.cache ;;
1.1 parser 880:
1.43 moko 881: -datadir | --datadir | --datadi | --datad)
1.1 parser 882: ac_prev=datadir ;;
1.43 moko 883: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.15 paf 884: datadir=$ac_optarg ;;
1.1 parser 885:
1.43 moko 886: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887: | --dataroo | --dataro | --datar)
888: ac_prev=datarootdir ;;
889: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891: datarootdir=$ac_optarg ;;
892:
1.1 parser 893: -disable-* | --disable-*)
1.43 moko 894: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 895: # Reject names that are not valid shell variable names.
1.43 moko 896: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897: as_fn_error $? "invalid feature name: $ac_useropt"
898: ac_useropt_orig=$ac_useropt
899: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900: case $ac_user_opts in
901: *"
902: "enable_$ac_useropt"
903: "*) ;;
904: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905: ac_unrecognized_sep=', ';;
906: esac
907: eval enable_$ac_useropt=no ;;
908:
909: -docdir | --docdir | --docdi | --doc | --do)
910: ac_prev=docdir ;;
911: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912: docdir=$ac_optarg ;;
913:
914: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915: ac_prev=dvidir ;;
916: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917: dvidir=$ac_optarg ;;
1.1 parser 918:
919: -enable-* | --enable-*)
1.43 moko 920: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 921: # Reject names that are not valid shell variable names.
1.43 moko 922: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923: as_fn_error $? "invalid feature name: $ac_useropt"
924: ac_useropt_orig=$ac_useropt
925: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926: case $ac_user_opts in
927: *"
928: "enable_$ac_useropt"
929: "*) ;;
930: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931: ac_unrecognized_sep=', ';;
1.1 parser 932: esac
1.43 moko 933: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 parser 934:
935: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937: | --exec | --exe | --ex)
938: ac_prev=exec_prefix ;;
939: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941: | --exec=* | --exe=* | --ex=*)
1.15 paf 942: exec_prefix=$ac_optarg ;;
1.1 parser 943:
944: -gas | --gas | --ga | --g)
945: # Obsolete; use --with-gas.
946: with_gas=yes ;;
947:
1.15 paf 948: -help | --help | --hel | --he | -h)
949: ac_init_help=long ;;
950: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951: ac_init_help=recursive ;;
952: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953: ac_init_help=short ;;
1.1 parser 954:
955: -host | --host | --hos | --ho)
1.15 paf 956: ac_prev=host_alias ;;
1.1 parser 957: -host=* | --host=* | --hos=* | --ho=*)
1.15 paf 958: host_alias=$ac_optarg ;;
1.1 parser 959:
1.43 moko 960: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961: ac_prev=htmldir ;;
962: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963: | --ht=*)
964: htmldir=$ac_optarg ;;
965:
1.1 parser 966: -includedir | --includedir | --includedi | --included | --include \
967: | --includ | --inclu | --incl | --inc)
968: ac_prev=includedir ;;
969: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.15 paf 971: includedir=$ac_optarg ;;
1.1 parser 972:
973: -infodir | --infodir | --infodi | --infod | --info | --inf)
974: ac_prev=infodir ;;
975: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.15 paf 976: infodir=$ac_optarg ;;
1.1 parser 977:
978: -libdir | --libdir | --libdi | --libd)
979: ac_prev=libdir ;;
980: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.15 paf 981: libdir=$ac_optarg ;;
1.1 parser 982:
983: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984: | --libexe | --libex | --libe)
985: ac_prev=libexecdir ;;
986: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987: | --libexe=* | --libex=* | --libe=*)
1.15 paf 988: libexecdir=$ac_optarg ;;
1.1 parser 989:
1.43 moko 990: -localedir | --localedir | --localedi | --localed | --locale)
991: ac_prev=localedir ;;
992: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993: localedir=$ac_optarg ;;
994:
1.1 parser 995: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.43 moko 996: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 parser 997: ac_prev=localstatedir ;;
998: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.43 moko 999: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.15 paf 1000: localstatedir=$ac_optarg ;;
1.1 parser 1001:
1002: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003: ac_prev=mandir ;;
1004: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.15 paf 1005: mandir=$ac_optarg ;;
1.1 parser 1006:
1007: -nfp | --nfp | --nf)
1008: # Obsolete; use --without-fp.
1009: with_fp=no ;;
1010:
1011: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.15 paf 1012: | --no-cr | --no-c | -n)
1.1 parser 1013: no_create=yes ;;
1014:
1015: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017: no_recursion=yes ;;
1018:
1019: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021: | --oldin | --oldi | --old | --ol | --o)
1022: ac_prev=oldincludedir ;;
1023: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.15 paf 1026: oldincludedir=$ac_optarg ;;
1.1 parser 1027:
1028: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029: ac_prev=prefix ;;
1030: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.15 paf 1031: prefix=$ac_optarg ;;
1.1 parser 1032:
1033: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034: | --program-pre | --program-pr | --program-p)
1035: ac_prev=program_prefix ;;
1036: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.15 paf 1038: program_prefix=$ac_optarg ;;
1.1 parser 1039:
1040: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041: | --program-suf | --program-su | --program-s)
1042: ac_prev=program_suffix ;;
1043: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.15 paf 1045: program_suffix=$ac_optarg ;;
1.1 parser 1046:
1047: -program-transform-name | --program-transform-name \
1048: | --program-transform-nam | --program-transform-na \
1049: | --program-transform-n | --program-transform- \
1050: | --program-transform | --program-transfor \
1051: | --program-transfo | --program-transf \
1052: | --program-trans | --program-tran \
1053: | --progr-tra | --program-tr | --program-t)
1054: ac_prev=program_transform_name ;;
1055: -program-transform-name=* | --program-transform-name=* \
1056: | --program-transform-nam=* | --program-transform-na=* \
1057: | --program-transform-n=* | --program-transform-=* \
1058: | --program-transform=* | --program-transfor=* \
1059: | --program-transfo=* | --program-transf=* \
1060: | --program-trans=* | --program-tran=* \
1061: | --progr-tra=* | --program-tr=* | --program-t=*)
1.15 paf 1062: program_transform_name=$ac_optarg ;;
1.1 parser 1063:
1.43 moko 1064: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065: ac_prev=pdfdir ;;
1066: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067: pdfdir=$ac_optarg ;;
1068:
1069: -psdir | --psdir | --psdi | --psd | --ps)
1070: ac_prev=psdir ;;
1071: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072: psdir=$ac_optarg ;;
1073:
1.1 parser 1074: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075: | -silent | --silent | --silen | --sile | --sil)
1076: silent=yes ;;
1077:
1078: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079: ac_prev=sbindir ;;
1080: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081: | --sbi=* | --sb=*)
1.15 paf 1082: sbindir=$ac_optarg ;;
1.1 parser 1083:
1084: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086: | --sharedst | --shareds | --shared | --share | --shar \
1087: | --sha | --sh)
1088: ac_prev=sharedstatedir ;;
1089: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092: | --sha=* | --sh=*)
1.15 paf 1093: sharedstatedir=$ac_optarg ;;
1.1 parser 1094:
1095: -site | --site | --sit)
1096: ac_prev=site ;;
1097: -site=* | --site=* | --sit=*)
1.15 paf 1098: site=$ac_optarg ;;
1.1 parser 1099:
1100: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101: ac_prev=srcdir ;;
1102: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.15 paf 1103: srcdir=$ac_optarg ;;
1.1 parser 1104:
1105: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106: | --syscon | --sysco | --sysc | --sys | --sy)
1107: ac_prev=sysconfdir ;;
1108: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.15 paf 1110: sysconfdir=$ac_optarg ;;
1.1 parser 1111:
1112: -target | --target | --targe | --targ | --tar | --ta | --t)
1.15 paf 1113: ac_prev=target_alias ;;
1.1 parser 1114: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.15 paf 1115: target_alias=$ac_optarg ;;
1.1 parser 1116:
1117: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118: verbose=yes ;;
1119:
1.15 paf 1120: -version | --version | --versio | --versi | --vers | -V)
1121: ac_init_version=: ;;
1.1 parser 1122:
1123: -with-* | --with-*)
1.43 moko 1124: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 1125: # Reject names that are not valid shell variable names.
1.43 moko 1126: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127: as_fn_error $? "invalid package name: $ac_useropt"
1128: ac_useropt_orig=$ac_useropt
1129: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130: case $ac_user_opts in
1131: *"
1132: "with_$ac_useropt"
1133: "*) ;;
1134: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135: ac_unrecognized_sep=', ';;
1.1 parser 1136: esac
1.43 moko 1137: eval with_$ac_useropt=\$ac_optarg ;;
1.1 parser 1138:
1139: -without-* | --without-*)
1.43 moko 1140: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 1141: # Reject names that are not valid shell variable names.
1.43 moko 1142: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143: as_fn_error $? "invalid package name: $ac_useropt"
1144: ac_useropt_orig=$ac_useropt
1145: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146: case $ac_user_opts in
1147: *"
1148: "with_$ac_useropt"
1149: "*) ;;
1150: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151: ac_unrecognized_sep=', ';;
1152: esac
1153: eval with_$ac_useropt=no ;;
1.1 parser 1154:
1155: --x)
1156: # Obsolete; use --with-x.
1157: with_x=yes ;;
1158:
1159: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160: | --x-incl | --x-inc | --x-in | --x-i)
1161: ac_prev=x_includes ;;
1162: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.15 paf 1164: x_includes=$ac_optarg ;;
1.1 parser 1165:
1166: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168: ac_prev=x_libraries ;;
1169: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.15 paf 1171: x_libraries=$ac_optarg ;;
1.1 parser 1172:
1.43 moko 1173: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174: Try \`$0 --help' for more information"
1.1 parser 1175: ;;
1176:
1.15 paf 1177: *=*)
1178: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179: # Reject names that are not valid shell variable names.
1.43 moko 1180: case $ac_envvar in #(
1181: '' | [0-9]* | *[!_$as_cr_alnum]* )
1182: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183: esac
1184: eval $ac_envvar=\$ac_optarg
1.15 paf 1185: export $ac_envvar ;;
1186:
1.1 parser 1187: *)
1.15 paf 1188: # FIXME: should be removed in autoconf 3.0.
1.43 moko 1189: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.15 paf 1190: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.43 moko 1191: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 parser 1193: ;;
1194:
1195: esac
1196: done
1197:
1198: if test -n "$ac_prev"; then
1.15 paf 1199: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.43 moko 1200: as_fn_error $? "missing argument to $ac_option"
1201: fi
1202:
1203: if test -n "$ac_unrecognized_opts"; then
1204: case $enable_option_checking in
1205: no) ;;
1206: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208: esac
1.1 parser 1209: fi
1210:
1.43 moko 1211: # Check all directory arguments for consistency.
1212: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213: datadir sysconfdir sharedstatedir localstatedir includedir \
1214: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215: libdir localedir mandir
1.15 paf 1216: do
1.43 moko 1217: eval ac_val=\$$ac_var
1218: # Remove trailing slashes.
1.15 paf 1219: case $ac_val in
1.43 moko 1220: */ )
1221: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222: eval $ac_var=\$ac_val;;
1.15 paf 1223: esac
1.43 moko 1224: # Be sure to have absolute directory names.
1.15 paf 1225: case $ac_val in
1.43 moko 1226: [\\/$]* | ?:[\\/]* ) continue;;
1227: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 parser 1228: esac
1.43 moko 1229: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 parser 1230: done
1231:
1.15 paf 1232: # There might be people who depend on the old broken behavior: `$host'
1233: # used to hold the argument of --host etc.
1234: # FIXME: To remove some day.
1235: build=$build_alias
1236: host=$host_alias
1237: target=$target_alias
1238:
1239: # FIXME: To remove some day.
1240: if test "x$host_alias" != x; then
1241: if test "x$build_alias" = x; then
1242: cross_compiling=maybe
1.43 moko 1243: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1244: If a cross compiler is detected then cross compile mode will be used" >&2
1.15 paf 1245: elif test "x$build_alias" != "x$host_alias"; then
1246: cross_compiling=yes
1247: fi
1248: fi
1249:
1250: ac_tool_prefix=
1251: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 parser 1252:
1.15 paf 1253: test "$silent" = yes && exec 6>/dev/null
1.1 parser 1254:
1255:
1.43 moko 1256: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257: ac_ls_di=`ls -di .` &&
1258: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259: as_fn_error $? "working directory cannot be determined"
1260: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261: as_fn_error $? "pwd does not report name of working directory"
1262:
1263:
1.1 parser 1264: # Find the source files, if location was not specified.
1265: if test -z "$srcdir"; then
1266: ac_srcdir_defaulted=yes
1.43 moko 1267: # Try the directory containing this script, then the parent directory.
1268: ac_confdir=`$as_dirname -- "$as_myself" ||
1269: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270: X"$as_myself" : 'X\(//\)[^/]' \| \
1271: X"$as_myself" : 'X\(//\)$' \| \
1272: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273: $as_echo X"$as_myself" |
1274: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275: s//\1/
1276: q
1277: }
1278: /^X\(\/\/\)[^/].*/{
1279: s//\1/
1280: q
1281: }
1282: /^X\(\/\/\)$/{
1283: s//\1/
1284: q
1285: }
1286: /^X\(\/\).*/{
1287: s//\1/
1288: q
1289: }
1290: s/.*/./; q'`
1.1 parser 1291: srcdir=$ac_confdir
1.43 moko 1292: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 parser 1293: srcdir=..
1294: fi
1295: else
1296: ac_srcdir_defaulted=no
1297: fi
1.43 moko 1298: if test ! -r "$srcdir/$ac_unique_file"; then
1299: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301: fi
1302: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303: ac_abs_confdir=`(
1304: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305: pwd)`
1306: # When building in place, set srcdir=.
1307: if test "$ac_abs_confdir" = "$ac_pwd"; then
1308: srcdir=.
1309: fi
1310: # Remove unnecessary trailing slashes from srcdir.
1311: # Double slashes in file names in object file debugging info
1312: # mess up M-x gdb in Emacs.
1313: case $srcdir in
1314: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315: esac
1316: for ac_var in $ac_precious_vars; do
1317: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318: eval ac_env_${ac_var}_value=\$${ac_var}
1319: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321: done
1.15 paf 1322:
1323: #
1324: # Report the --help message.
1325: #
1326: if test "$ac_init_help" = "long"; then
1327: # Omit some internal or obsolete options to make the list less imposing.
1328: # This message is too long to be a string in the A/UX 3.1 sh.
1329: cat <<_ACEOF
1.44 moko 1330: \`configure' configures parser3mysql.C 10.4 to adapt to many kinds of systems.
1.15 paf 1331:
1332: Usage: $0 [OPTION]... [VAR=VALUE]...
1333:
1334: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335: VAR=VALUE. See below for descriptions of some of the useful variables.
1336:
1337: Defaults for the options are specified in brackets.
1338:
1339: Configuration:
1340: -h, --help display this help and exit
1341: --help=short display options specific to this package
1342: --help=recursive display the short help of all the included packages
1343: -V, --version display version information and exit
1.43 moko 1344: -q, --quiet, --silent do not print \`checking ...' messages
1.15 paf 1345: --cache-file=FILE cache test results in FILE [disabled]
1346: -C, --config-cache alias for \`--cache-file=config.cache'
1347: -n, --no-create do not create output files
1348: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349:
1350: Installation directories:
1351: --prefix=PREFIX install architecture-independent files in PREFIX
1.43 moko 1352: [$ac_default_prefix]
1.15 paf 1353: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.43 moko 1354: [PREFIX]
1.15 paf 1355:
1356: By default, \`make install' will install all the files in
1357: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359: for instance \`--prefix=\$HOME'.
1360:
1361: For better control, use the options below.
1362:
1363: Fine tuning of the installation directories:
1.43 moko 1364: --bindir=DIR user executables [EPREFIX/bin]
1365: --sbindir=DIR system admin executables [EPREFIX/sbin]
1366: --libexecdir=DIR program executables [EPREFIX/libexec]
1367: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370: --libdir=DIR object code libraries [EPREFIX/lib]
1371: --includedir=DIR C header files [PREFIX/include]
1372: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375: --infodir=DIR info documentation [DATAROOTDIR/info]
1376: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377: --mandir=DIR man documentation [DATAROOTDIR/man]
1378: --docdir=DIR documentation root [DATAROOTDIR/doc/parser3mysql-c]
1379: --htmldir=DIR html documentation [DOCDIR]
1380: --dvidir=DIR dvi documentation [DOCDIR]
1381: --pdfdir=DIR pdf documentation [DOCDIR]
1382: --psdir=DIR ps documentation [DOCDIR]
1.15 paf 1383: _ACEOF
1384:
1385: cat <<\_ACEOF
1386:
1387: Program names:
1388: --program-prefix=PREFIX prepend PREFIX to installed program names
1389: --program-suffix=SUFFIX append SUFFIX to installed program names
1390: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391:
1392: System types:
1393: --build=BUILD configure for building on BUILD [guessed]
1394: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395: _ACEOF
1396: fi
1397:
1398: if test -n "$ac_init_help"; then
1.36 moko 1399: case $ac_init_help in
1.44 moko 1400: short | recursive ) echo "Configuration of parser3mysql.C 10.4:";;
1.36 moko 1401: esac
1.15 paf 1402: cat <<\_ACEOF
1403:
1404: Optional Features:
1.43 moko 1405: --disable-option-checking ignore unrecognized --enable/--with options
1.15 paf 1406: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.25 paf 1408: --disable-dependency-tracking speeds up one-time build
1409: --enable-dependency-tracking do not reject slow dependency extractors
1.43 moko 1410: --enable-static[=PKGS] build static libraries [default=no]
1411: --enable-shared[=PKGS] build shared libraries [default=yes]
1.35 moko 1412: --enable-fast-install[=PKGS]
1413: optimize for fast installation [default=yes]
1.15 paf 1414: --disable-libtool-lock avoid locking (might break parallel builds)
1.35 moko 1415: --enable-ltdl-install install libltdl
1.15 paf 1416:
1417: Optional Packages:
1418: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420: --with-mysql-inc=DIR DIR is the MySQL includes directory
1.43 moko 1421: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.35 moko 1422: both]
1423: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1424: --with-sysroot=DIR Search for dependent libraries within DIR
1425: (or the compiler's sysroot if not specified).
1426: --with-included-ltdl use the GNU ltdl sources included here
1427: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1428: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.15 paf 1429:
1430: Some influential environment variables:
1431: CXX C++ compiler command
1432: CXXFLAGS C++ compiler flags
1433: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434: nonstandard directory <lib dir>
1.43 moko 1435: LIBS libraries to pass to the linker, e.g. -l<library>
1436: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437: you have headers in a nonstandard directory <include dir>
1.15 paf 1438: CC C compiler command
1439: CFLAGS C compiler flags
1.24 paf 1440: CPP C preprocessor
1.35 moko 1441: CXXCPP C++ preprocessor
1.15 paf 1442:
1443: Use these variables to override the choices made by `configure' or to help
1444: it to find libraries and programs with nonstandard names/locations.
1445:
1.43 moko 1446: Report bugs to the package provider.
1.15 paf 1447: _ACEOF
1.43 moko 1448: ac_status=$?
1.15 paf 1449: fi
1450:
1451: if test "$ac_init_help" = "recursive"; then
1452: # If there are subdirs, report their specific --help.
1453: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.43 moko 1454: test -d "$ac_dir" ||
1455: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456: continue
1.15 paf 1457: ac_builddir=.
1458:
1.43 moko 1459: case "$ac_dir" in
1460: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461: *)
1462: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463: # A ".." for each directory in $ac_dir_suffix.
1464: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465: case $ac_top_builddir_sub in
1466: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468: esac ;;
1469: esac
1470: ac_abs_top_builddir=$ac_pwd
1471: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472: # for backward compatibility:
1473: ac_top_builddir=$ac_top_build_prefix
1.15 paf 1474:
1475: case $srcdir in
1.43 moko 1476: .) # We are building in place.
1.15 paf 1477: ac_srcdir=.
1.43 moko 1478: ac_top_srcdir=$ac_top_builddir_sub
1479: ac_abs_top_srcdir=$ac_pwd ;;
1480: [\\/]* | ?:[\\/]* ) # Absolute name.
1.15 paf 1481: ac_srcdir=$srcdir$ac_dir_suffix;
1.43 moko 1482: ac_top_srcdir=$srcdir
1483: ac_abs_top_srcdir=$srcdir ;;
1484: *) # Relative name.
1485: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486: ac_top_srcdir=$ac_top_build_prefix$srcdir
1487: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.15 paf 1488: esac
1.43 moko 1489: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.25 paf 1490:
1.43 moko 1491: cd "$ac_dir" || { ac_status=$?; continue; }
1492: # Check for guested configure.
1493: if test -f "$ac_srcdir/configure.gnu"; then
1494: echo &&
1495: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496: elif test -f "$ac_srcdir/configure"; then
1497: echo &&
1498: $SHELL "$ac_srcdir/configure" --help=recursive
1.15 paf 1499: else
1.43 moko 1500: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501: fi || ac_status=$?
1502: cd "$ac_pwd" || { ac_status=$?; break; }
1.15 paf 1503: done
1504: fi
1505:
1.43 moko 1506: test -n "$ac_init_help" && exit $ac_status
1.15 paf 1507: if $ac_init_version; then
1508: cat <<\_ACEOF
1.44 moko 1509: parser3mysql.C configure 10.4
1.43 moko 1510: generated by GNU Autoconf 2.68
1.15 paf 1511:
1.43 moko 1512: Copyright (C) 2010 Free Software Foundation, Inc.
1.15 paf 1513: This configure script is free software; the Free Software Foundation
1514: gives unlimited permission to copy, distribute and modify it.
1515: _ACEOF
1.43 moko 1516: exit
1.15 paf 1517: fi
1518:
1.43 moko 1519: ## ------------------------ ##
1520: ## Autoconf initialization. ##
1521: ## ------------------------ ##
1522:
1523: # ac_fn_cxx_try_compile LINENO
1524: # ----------------------------
1525: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526: ac_fn_cxx_try_compile ()
1527: {
1528: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529: rm -f conftest.$ac_objext
1530: if { { ac_try="$ac_compile"
1531: case "(($ac_try" in
1532: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533: *) ac_try_echo=$ac_try;;
1534: esac
1535: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536: $as_echo "$ac_try_echo"; } >&5
1537: (eval "$ac_compile") 2>conftest.err
1538: ac_status=$?
1539: if test -s conftest.err; then
1540: grep -v '^ *+' conftest.err >conftest.er1
1541: cat conftest.er1 >&5
1542: mv -f conftest.er1 conftest.err
1543: fi
1544: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545: test $ac_status = 0; } && {
1546: test -z "$ac_cxx_werror_flag" ||
1547: test ! -s conftest.err
1548: } && test -s conftest.$ac_objext; then :
1549: ac_retval=0
1550: else
1551: $as_echo "$as_me: failed program was:" >&5
1552: sed 's/^/| /' conftest.$ac_ext >&5
1553:
1554: ac_retval=1
1555: fi
1556: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557: as_fn_set_status $ac_retval
1.15 paf 1558:
1.43 moko 1559: } # ac_fn_cxx_try_compile
1.15 paf 1560:
1.43 moko 1561: # ac_fn_c_try_compile LINENO
1562: # --------------------------
1563: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564: ac_fn_c_try_compile ()
1.15 paf 1565: {
1.43 moko 1566: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567: rm -f conftest.$ac_objext
1568: if { { ac_try="$ac_compile"
1569: case "(($ac_try" in
1570: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571: *) ac_try_echo=$ac_try;;
1572: esac
1573: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574: $as_echo "$ac_try_echo"; } >&5
1575: (eval "$ac_compile") 2>conftest.err
1576: ac_status=$?
1577: if test -s conftest.err; then
1578: grep -v '^ *+' conftest.err >conftest.er1
1579: cat conftest.er1 >&5
1580: mv -f conftest.er1 conftest.err
1581: fi
1582: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583: test $ac_status = 0; } && {
1584: test -z "$ac_c_werror_flag" ||
1585: test ! -s conftest.err
1586: } && test -s conftest.$ac_objext; then :
1587: ac_retval=0
1588: else
1589: $as_echo "$as_me: failed program was:" >&5
1590: sed 's/^/| /' conftest.$ac_ext >&5
1591:
1592: ac_retval=1
1593: fi
1594: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595: as_fn_set_status $ac_retval
1596:
1597: } # ac_fn_c_try_compile
1598:
1599: # ac_fn_c_try_link LINENO
1600: # -----------------------
1601: # Try to link conftest.$ac_ext, and return whether this succeeded.
1602: ac_fn_c_try_link ()
1603: {
1604: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605: rm -f conftest.$ac_objext conftest$ac_exeext
1606: if { { ac_try="$ac_link"
1607: case "(($ac_try" in
1608: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609: *) ac_try_echo=$ac_try;;
1610: esac
1611: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612: $as_echo "$ac_try_echo"; } >&5
1613: (eval "$ac_link") 2>conftest.err
1614: ac_status=$?
1615: if test -s conftest.err; then
1616: grep -v '^ *+' conftest.err >conftest.er1
1617: cat conftest.er1 >&5
1618: mv -f conftest.er1 conftest.err
1619: fi
1620: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621: test $ac_status = 0; } && {
1622: test -z "$ac_c_werror_flag" ||
1623: test ! -s conftest.err
1624: } && test -s conftest$ac_exeext && {
1625: test "$cross_compiling" = yes ||
1626: $as_test_x conftest$ac_exeext
1627: }; then :
1628: ac_retval=0
1629: else
1630: $as_echo "$as_me: failed program was:" >&5
1631: sed 's/^/| /' conftest.$ac_ext >&5
1632:
1633: ac_retval=1
1634: fi
1635: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1636: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1637: # interfere with the next link command; also delete a directory that is
1638: # left behind by Apple's compiler. We do this before executing the actions.
1639: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641: as_fn_set_status $ac_retval
1642:
1643: } # ac_fn_c_try_link
1644:
1645: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646: # -------------------------------------------------------
1647: # Tests whether HEADER exists and can be compiled using the include files in
1648: # INCLUDES, setting the cache variable VAR accordingly.
1649: ac_fn_c_check_header_compile ()
1650: {
1651: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653: $as_echo_n "checking for $2... " >&6; }
1654: if eval \${$3+:} false; then :
1655: $as_echo_n "(cached) " >&6
1656: else
1657: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658: /* end confdefs.h. */
1659: $4
1660: #include <$2>
1661: _ACEOF
1662: if ac_fn_c_try_compile "$LINENO"; then :
1663: eval "$3=yes"
1664: else
1665: eval "$3=no"
1666: fi
1667: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668: fi
1669: eval ac_res=\$$3
1670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671: $as_echo "$ac_res" >&6; }
1672: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673:
1674: } # ac_fn_c_check_header_compile
1675:
1676: # ac_fn_c_try_cpp LINENO
1677: # ----------------------
1678: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679: ac_fn_c_try_cpp ()
1680: {
1681: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682: if { { ac_try="$ac_cpp conftest.$ac_ext"
1683: case "(($ac_try" in
1684: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685: *) ac_try_echo=$ac_try;;
1686: esac
1687: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688: $as_echo "$ac_try_echo"; } >&5
1689: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690: ac_status=$?
1691: if test -s conftest.err; then
1692: grep -v '^ *+' conftest.err >conftest.er1
1693: cat conftest.er1 >&5
1694: mv -f conftest.er1 conftest.err
1695: fi
1696: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697: test $ac_status = 0; } > conftest.i && {
1698: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699: test ! -s conftest.err
1700: }; then :
1701: ac_retval=0
1702: else
1703: $as_echo "$as_me: failed program was:" >&5
1704: sed 's/^/| /' conftest.$ac_ext >&5
1705:
1706: ac_retval=1
1707: fi
1708: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709: as_fn_set_status $ac_retval
1710:
1711: } # ac_fn_c_try_cpp
1712:
1713: # ac_fn_c_try_run LINENO
1714: # ----------------------
1715: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716: # that executables *can* be run.
1717: ac_fn_c_try_run ()
1718: {
1719: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720: if { { ac_try="$ac_link"
1721: case "(($ac_try" in
1722: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723: *) ac_try_echo=$ac_try;;
1724: esac
1725: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726: $as_echo "$ac_try_echo"; } >&5
1727: (eval "$ac_link") 2>&5
1728: ac_status=$?
1729: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731: { { case "(($ac_try" in
1732: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733: *) ac_try_echo=$ac_try;;
1734: esac
1735: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736: $as_echo "$ac_try_echo"; } >&5
1737: (eval "$ac_try") 2>&5
1738: ac_status=$?
1739: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740: test $ac_status = 0; }; }; then :
1741: ac_retval=0
1742: else
1743: $as_echo "$as_me: program exited with status $ac_status" >&5
1744: $as_echo "$as_me: failed program was:" >&5
1745: sed 's/^/| /' conftest.$ac_ext >&5
1746:
1747: ac_retval=$ac_status
1748: fi
1749: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751: as_fn_set_status $ac_retval
1752:
1753: } # ac_fn_c_try_run
1754:
1755: # ac_fn_c_check_func LINENO FUNC VAR
1756: # ----------------------------------
1757: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758: ac_fn_c_check_func ()
1759: {
1760: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762: $as_echo_n "checking for $2... " >&6; }
1763: if eval \${$3+:} false; then :
1764: $as_echo_n "(cached) " >&6
1765: else
1766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767: /* end confdefs.h. */
1768: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770: #define $2 innocuous_$2
1771:
1772: /* System header to define __stub macros and hopefully few prototypes,
1773: which can conflict with char $2 (); below.
1774: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775: <limits.h> exists even on freestanding compilers. */
1776:
1777: #ifdef __STDC__
1778: # include <limits.h>
1779: #else
1780: # include <assert.h>
1781: #endif
1782:
1783: #undef $2
1784:
1785: /* Override any GCC internal prototype to avoid an error.
1786: Use char because int might match the return type of a GCC
1787: builtin and then its argument prototype would still apply. */
1788: #ifdef __cplusplus
1789: extern "C"
1790: #endif
1791: char $2 ();
1792: /* The GNU C library defines this for functions which it implements
1793: to always fail with ENOSYS. Some functions are actually named
1794: something starting with __ and the normal name is an alias. */
1795: #if defined __stub_$2 || defined __stub___$2
1796: choke me
1797: #endif
1798:
1799: int
1800: main ()
1801: {
1802: return $2 ();
1803: ;
1804: return 0;
1805: }
1806: _ACEOF
1807: if ac_fn_c_try_link "$LINENO"; then :
1808: eval "$3=yes"
1809: else
1810: eval "$3=no"
1811: fi
1812: rm -f core conftest.err conftest.$ac_objext \
1813: conftest$ac_exeext conftest.$ac_ext
1814: fi
1815: eval ac_res=\$$3
1816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817: $as_echo "$ac_res" >&6; }
1818: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819:
1820: } # ac_fn_c_check_func
1821:
1822: # ac_fn_cxx_try_cpp LINENO
1823: # ------------------------
1824: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1825: ac_fn_cxx_try_cpp ()
1826: {
1827: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828: if { { ac_try="$ac_cpp conftest.$ac_ext"
1829: case "(($ac_try" in
1830: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831: *) ac_try_echo=$ac_try;;
1832: esac
1833: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834: $as_echo "$ac_try_echo"; } >&5
1835: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1836: ac_status=$?
1837: if test -s conftest.err; then
1838: grep -v '^ *+' conftest.err >conftest.er1
1839: cat conftest.er1 >&5
1840: mv -f conftest.er1 conftest.err
1841: fi
1842: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843: test $ac_status = 0; } > conftest.i && {
1844: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1845: test ! -s conftest.err
1846: }; then :
1847: ac_retval=0
1848: else
1849: $as_echo "$as_me: failed program was:" >&5
1850: sed 's/^/| /' conftest.$ac_ext >&5
1851:
1852: ac_retval=1
1853: fi
1854: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855: as_fn_set_status $ac_retval
1856:
1857: } # ac_fn_cxx_try_cpp
1858:
1859: # ac_fn_cxx_try_link LINENO
1860: # -------------------------
1861: # Try to link conftest.$ac_ext, and return whether this succeeded.
1862: ac_fn_cxx_try_link ()
1863: {
1864: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865: rm -f conftest.$ac_objext conftest$ac_exeext
1866: if { { ac_try="$ac_link"
1867: case "(($ac_try" in
1868: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869: *) ac_try_echo=$ac_try;;
1870: esac
1871: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872: $as_echo "$ac_try_echo"; } >&5
1873: (eval "$ac_link") 2>conftest.err
1874: ac_status=$?
1875: if test -s conftest.err; then
1876: grep -v '^ *+' conftest.err >conftest.er1
1877: cat conftest.er1 >&5
1878: mv -f conftest.er1 conftest.err
1879: fi
1880: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881: test $ac_status = 0; } && {
1882: test -z "$ac_cxx_werror_flag" ||
1883: test ! -s conftest.err
1884: } && test -s conftest$ac_exeext && {
1885: test "$cross_compiling" = yes ||
1886: $as_test_x conftest$ac_exeext
1887: }; then :
1888: ac_retval=0
1889: else
1890: $as_echo "$as_me: failed program was:" >&5
1891: sed 's/^/| /' conftest.$ac_ext >&5
1892:
1893: ac_retval=1
1894: fi
1895: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1896: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1897: # interfere with the next link command; also delete a directory that is
1898: # left behind by Apple's compiler. We do this before executing the actions.
1899: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901: as_fn_set_status $ac_retval
1902:
1903: } # ac_fn_cxx_try_link
1904:
1905: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1906: # ---------------------------------------------
1907: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1908: # accordingly.
1909: ac_fn_c_check_decl ()
1910: {
1911: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912: as_decl_name=`echo $2|sed 's/ *(.*//'`
1913: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1915: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1916: if eval \${$3+:} false; then :
1917: $as_echo_n "(cached) " >&6
1918: else
1919: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920: /* end confdefs.h. */
1921: $4
1922: int
1923: main ()
1924: {
1925: #ifndef $as_decl_name
1926: #ifdef __cplusplus
1927: (void) $as_decl_use;
1928: #else
1929: (void) $as_decl_name;
1930: #endif
1931: #endif
1932:
1933: ;
1934: return 0;
1935: }
1936: _ACEOF
1937: if ac_fn_c_try_compile "$LINENO"; then :
1938: eval "$3=yes"
1939: else
1940: eval "$3=no"
1941: fi
1942: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943: fi
1944: eval ac_res=\$$3
1945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946: $as_echo "$ac_res" >&6; }
1947: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948:
1949: } # ac_fn_c_check_decl
1950:
1951: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1952: # -------------------------------------------
1953: # Tests whether TYPE exists after having included INCLUDES, setting cache
1954: # variable VAR accordingly.
1955: ac_fn_c_check_type ()
1956: {
1957: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959: $as_echo_n "checking for $2... " >&6; }
1960: if eval \${$3+:} false; then :
1961: $as_echo_n "(cached) " >&6
1962: else
1963: eval "$3=no"
1964: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965: /* end confdefs.h. */
1966: $4
1967: int
1968: main ()
1969: {
1970: if (sizeof ($2))
1971: return 0;
1972: ;
1973: return 0;
1974: }
1975: _ACEOF
1976: if ac_fn_c_try_compile "$LINENO"; then :
1977: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978: /* end confdefs.h. */
1979: $4
1980: int
1981: main ()
1982: {
1983: if (sizeof (($2)))
1984: return 0;
1985: ;
1986: return 0;
1987: }
1988: _ACEOF
1989: if ac_fn_c_try_compile "$LINENO"; then :
1990:
1991: else
1992: eval "$3=yes"
1993: fi
1994: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995: fi
1996: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997: fi
1998: eval ac_res=\$$3
1999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000: $as_echo "$ac_res" >&6; }
2001: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002:
2003: } # ac_fn_c_check_type
2004:
2005: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2006: # -------------------------------------------------------
2007: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2008: # the include files in INCLUDES and setting the cache variable VAR
2009: # accordingly.
2010: ac_fn_c_check_header_mongrel ()
2011: {
2012: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013: if eval \${$3+:} false; then :
2014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015: $as_echo_n "checking for $2... " >&6; }
2016: if eval \${$3+:} false; then :
2017: $as_echo_n "(cached) " >&6
2018: fi
2019: eval ac_res=\$$3
2020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021: $as_echo "$ac_res" >&6; }
2022: else
2023: # Is the header compilable?
2024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2025: $as_echo_n "checking $2 usability... " >&6; }
2026: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027: /* end confdefs.h. */
2028: $4
2029: #include <$2>
2030: _ACEOF
2031: if ac_fn_c_try_compile "$LINENO"; then :
2032: ac_header_compiler=yes
2033: else
2034: ac_header_compiler=no
2035: fi
2036: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2038: $as_echo "$ac_header_compiler" >&6; }
2039:
2040: # Is the header present?
2041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2042: $as_echo_n "checking $2 presence... " >&6; }
2043: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044: /* end confdefs.h. */
2045: #include <$2>
2046: _ACEOF
2047: if ac_fn_c_try_cpp "$LINENO"; then :
2048: ac_header_preproc=yes
2049: else
2050: ac_header_preproc=no
2051: fi
2052: rm -f conftest.err conftest.i conftest.$ac_ext
2053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2054: $as_echo "$ac_header_preproc" >&6; }
2055:
2056: # So? What about this header?
2057: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2058: yes:no: )
2059: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2060: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2061: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063: ;;
2064: no:yes:* )
2065: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2066: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2067: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2068: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2069: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2070: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2071: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2072: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2073: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2074: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075: ;;
2076: esac
2077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078: $as_echo_n "checking for $2... " >&6; }
2079: if eval \${$3+:} false; then :
2080: $as_echo_n "(cached) " >&6
2081: else
2082: eval "$3=\$ac_header_compiler"
2083: fi
2084: eval ac_res=\$$3
2085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086: $as_echo "$ac_res" >&6; }
2087: fi
2088: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089:
2090: } # ac_fn_c_check_header_mongrel
2091: cat >config.log <<_ACEOF
2092: This file contains any messages produced by compilers while
2093: running configure, to aid debugging if configure makes a mistake.
2094:
1.44 moko 2095: It was created by parser3mysql.C $as_me 10.4, which was
1.43 moko 2096: generated by GNU Autoconf 2.68. Invocation command line was
2097:
2098: $ $0 $@
2099:
2100: _ACEOF
2101: exec 5>>config.log
2102: {
2103: cat <<_ASUNAME
2104: ## --------- ##
2105: ## Platform. ##
2106: ## --------- ##
1.15 paf 2107:
2108: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2109: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2110: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2111: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2112: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113:
2114: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2115: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116:
2117: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2118: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2119: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.43 moko 2120: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.15 paf 2121: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2122: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2123: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2124:
2125: _ASUNAME
2126:
2127: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128: for as_dir in $PATH
2129: do
2130: IFS=$as_save_IFS
2131: test -z "$as_dir" && as_dir=.
1.43 moko 2132: $as_echo "PATH: $as_dir"
2133: done
2134: IFS=$as_save_IFS
1.15 paf 2135:
2136: } >&5
2137:
2138: cat >&5 <<_ACEOF
2139:
2140:
2141: ## ----------- ##
2142: ## Core tests. ##
2143: ## ----------- ##
2144:
2145: _ACEOF
2146:
2147:
2148: # Keep a trace of the command line.
2149: # Strip out --no-create and --no-recursion so they do not pile up.
2150: # Strip out --silent because we don't want to record it for future runs.
2151: # Also quote any args containing shell meta-characters.
2152: # Make two passes to allow for proper duplicate-argument suppression.
2153: ac_configure_args=
2154: ac_configure_args0=
2155: ac_configure_args1=
2156: ac_must_keep_next=false
2157: for ac_pass in 1 2
2158: do
2159: for ac_arg
2160: do
2161: case $ac_arg in
2162: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2163: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2164: | -silent | --silent | --silen | --sile | --sil)
2165: continue ;;
1.43 moko 2166: *\'*)
2167: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.15 paf 2168: esac
2169: case $ac_pass in
1.43 moko 2170: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.15 paf 2171: 2)
1.43 moko 2172: as_fn_append ac_configure_args1 " '$ac_arg'"
1.15 paf 2173: if test $ac_must_keep_next = true; then
1.25 paf 2174: ac_must_keep_next=false # Got value, back to normal.
1.15 paf 2175: else
1.25 paf 2176: case $ac_arg in
2177: *=* | --config-cache | -C | -disable-* | --disable-* \
2178: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2179: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2180: | -with-* | --with-* | -without-* | --without-* | --x)
2181: case "$ac_configure_args0 " in
2182: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183: esac
2184: ;;
2185: -* ) ac_must_keep_next=true ;;
2186: esac
1.15 paf 2187: fi
1.43 moko 2188: as_fn_append ac_configure_args " '$ac_arg'"
1.15 paf 2189: ;;
2190: esac
2191: done
2192: done
1.43 moko 2193: { ac_configure_args0=; unset ac_configure_args0;}
2194: { ac_configure_args1=; unset ac_configure_args1;}
1.15 paf 2195:
2196: # When interrupted or exit'd, cleanup temporary files, and complete
2197: # config.log. We remove comments because anyway the quotes in there
2198: # would cause problems or look ugly.
1.43 moko 2199: # WARNING: Use '\'' to represent an apostrophe within the trap.
2200: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.15 paf 2201: trap 'exit_status=$?
2202: # Save into config.log some information that might help in debugging.
2203: {
2204: echo
2205:
1.43 moko 2206: $as_echo "## ---------------- ##
1.15 paf 2207: ## Cache variables. ##
1.43 moko 2208: ## ---------------- ##"
1.15 paf 2209: echo
2210: # The following way of writing the cache mishandles newlines in values,
1.43 moko 2211: (
2212: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2213: eval ac_val=\$$ac_var
2214: case $ac_val in #(
2215: *${as_nl}*)
2216: case $ac_var in #(
2217: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2218: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2219: esac
2220: case $ac_var in #(
2221: _ | IFS | as_nl) ;; #(
2222: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2223: *) { eval $ac_var=; unset $ac_var;} ;;
2224: esac ;;
2225: esac
2226: done
1.15 paf 2227: (set) 2>&1 |
1.43 moko 2228: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2229: *${as_nl}ac_space=\ *)
1.15 paf 2230: sed -n \
1.43 moko 2231: "s/'\''/'\''\\\\'\'''\''/g;
2232: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2233: ;; #(
1.15 paf 2234: *)
1.43 moko 2235: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.15 paf 2236: ;;
1.43 moko 2237: esac |
2238: sort
2239: )
1.15 paf 2240: echo
2241:
1.43 moko 2242: $as_echo "## ----------------- ##
1.15 paf 2243: ## Output variables. ##
1.43 moko 2244: ## ----------------- ##"
1.15 paf 2245: echo
2246: for ac_var in $ac_subst_vars
2247: do
1.43 moko 2248: eval ac_val=\$$ac_var
2249: case $ac_val in
2250: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251: esac
2252: $as_echo "$ac_var='\''$ac_val'\''"
1.15 paf 2253: done | sort
2254: echo
2255:
2256: if test -n "$ac_subst_files"; then
1.43 moko 2257: $as_echo "## ------------------- ##
2258: ## File substitutions. ##
2259: ## ------------------- ##"
1.15 paf 2260: echo
2261: for ac_var in $ac_subst_files
2262: do
1.43 moko 2263: eval ac_val=\$$ac_var
2264: case $ac_val in
2265: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266: esac
2267: $as_echo "$ac_var='\''$ac_val'\''"
1.15 paf 2268: done | sort
2269: echo
2270: fi
2271:
2272: if test -s confdefs.h; then
1.43 moko 2273: $as_echo "## ----------- ##
1.15 paf 2274: ## confdefs.h. ##
1.43 moko 2275: ## ----------- ##"
1.15 paf 2276: echo
1.43 moko 2277: cat confdefs.h
1.15 paf 2278: echo
2279: fi
2280: test "$ac_signal" != 0 &&
1.43 moko 2281: $as_echo "$as_me: caught signal $ac_signal"
2282: $as_echo "$as_me: exit $exit_status"
1.15 paf 2283: } >&5
1.43 moko 2284: rm -f core *.core core.conftest.* &&
2285: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.15 paf 2286: exit $exit_status
1.43 moko 2287: ' 0
1.15 paf 2288: for ac_signal in 1 2 13 15; do
1.43 moko 2289: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.15 paf 2290: done
2291: ac_signal=0
2292:
2293: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.43 moko 2294: rm -f -r conftest* confdefs.h
2295:
2296: $as_echo "/* confdefs.h */" > confdefs.h
1.15 paf 2297:
2298: # Predefined preprocessor variables.
2299:
2300: cat >>confdefs.h <<_ACEOF
2301: #define PACKAGE_NAME "$PACKAGE_NAME"
2302: _ACEOF
2303:
2304: cat >>confdefs.h <<_ACEOF
2305: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2306: _ACEOF
2307:
2308: cat >>confdefs.h <<_ACEOF
2309: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2310: _ACEOF
1.1 parser 2311:
1.15 paf 2312: cat >>confdefs.h <<_ACEOF
2313: #define PACKAGE_STRING "$PACKAGE_STRING"
2314: _ACEOF
2315:
1.43 moko 2316: cat >>confdefs.h <<_ACEOF
2317: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2318: _ACEOF
1.15 paf 2319:
2320: cat >>confdefs.h <<_ACEOF
1.43 moko 2321: #define PACKAGE_URL "$PACKAGE_URL"
1.15 paf 2322: _ACEOF
2323:
2324:
2325: # Let the site file select an alternate cache file if it wants to.
1.43 moko 2326: # Prefer an explicitly selected file to automatically selected ones.
2327: ac_site_file1=NONE
2328: ac_site_file2=NONE
2329: if test -n "$CONFIG_SITE"; then
2330: # We do not want a PATH search for config.site.
2331: case $CONFIG_SITE in #((
2332: -*) ac_site_file1=./$CONFIG_SITE;;
2333: */*) ac_site_file1=$CONFIG_SITE;;
2334: *) ac_site_file1=./$CONFIG_SITE;;
2335: esac
2336: elif test "x$prefix" != xNONE; then
2337: ac_site_file1=$prefix/share/config.site
2338: ac_site_file2=$prefix/etc/config.site
2339: else
2340: ac_site_file1=$ac_default_prefix/share/config.site
2341: ac_site_file2=$ac_default_prefix/etc/config.site
2342: fi
2343: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2344: do
2345: test "x$ac_site_file" = xNONE && continue
2346: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2347: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2348: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.15 paf 2349: sed 's/^/| /' "$ac_site_file" >&5
1.43 moko 2350: . "$ac_site_file" \
2351: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2352: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353: as_fn_error $? "failed to load site script $ac_site_file
2354: See \`config.log' for more details" "$LINENO" 5; }
1.1 parser 2355: fi
2356: done
2357:
2358: if test -r "$cache_file"; then
1.43 moko 2359: # Some versions of bash will fail to source /dev/null (special files
2360: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2361: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2362: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2363: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.15 paf 2364: case $cache_file in
1.43 moko 2365: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2366: *) . "./$cache_file";;
1.15 paf 2367: esac
2368: fi
1.1 parser 2369: else
1.43 moko 2370: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2371: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.15 paf 2372: >$cache_file
2373: fi
2374:
2375: # Check that the precious variables saved in the cache have kept the same
2376: # value.
2377: ac_cache_corrupted=false
1.43 moko 2378: for ac_var in $ac_precious_vars; do
1.15 paf 2379: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2380: eval ac_new_set=\$ac_env_${ac_var}_set
1.43 moko 2381: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2382: eval ac_new_val=\$ac_env_${ac_var}_value
1.15 paf 2383: case $ac_old_set,$ac_new_set in
2384: set,)
1.43 moko 2385: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2386: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.15 paf 2387: ac_cache_corrupted=: ;;
2388: ,set)
1.43 moko 2389: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2390: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.15 paf 2391: ac_cache_corrupted=: ;;
2392: ,);;
2393: *)
2394: if test "x$ac_old_val" != "x$ac_new_val"; then
1.43 moko 2395: # differences in whitespace do not lead to failure.
2396: ac_old_val_w=`echo x $ac_old_val`
2397: ac_new_val_w=`echo x $ac_new_val`
2398: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2399: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2400: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2401: ac_cache_corrupted=:
2402: else
2403: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2404: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2405: eval $ac_var=\$ac_old_val
2406: fi
2407: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2408: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2409: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2410: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.15 paf 2411: fi;;
2412: esac
2413: # Pass precious variables to config.status.
2414: if test "$ac_new_set" = set; then
2415: case $ac_new_val in
1.43 moko 2416: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.15 paf 2417: *) ac_arg=$ac_var=$ac_new_val ;;
2418: esac
2419: case " $ac_configure_args " in
2420: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.43 moko 2421: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.15 paf 2422: esac
2423: fi
2424: done
2425: if $ac_cache_corrupted; then
1.43 moko 2426: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2429: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2430: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2431: fi
2432: ## -------------------- ##
2433: ## Main body of script. ##
2434: ## -------------------- ##
1.1 parser 2435:
2436: ac_ext=c
2437: ac_cpp='$CPP $CPPFLAGS'
1.15 paf 2438: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441:
2442:
2443:
1.43 moko 2444: ac_config_headers="$ac_config_headers config_auto.h"
1.15 paf 2445:
2446:
1.43 moko 2447: am__api_version='1.11'
1.15 paf 2448:
1.1 parser 2449: ac_aux_dir=
1.43 moko 2450: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2451: if test -f "$ac_dir/install-sh"; then
1.1 parser 2452: ac_aux_dir=$ac_dir
2453: ac_install_sh="$ac_aux_dir/install-sh -c"
2454: break
1.43 moko 2455: elif test -f "$ac_dir/install.sh"; then
1.1 parser 2456: ac_aux_dir=$ac_dir
2457: ac_install_sh="$ac_aux_dir/install.sh -c"
2458: break
1.43 moko 2459: elif test -f "$ac_dir/shtool"; then
1.15 paf 2460: ac_aux_dir=$ac_dir
2461: ac_install_sh="$ac_aux_dir/shtool install -c"
2462: break
1.1 parser 2463: fi
2464: done
2465: if test -z "$ac_aux_dir"; then
1.43 moko 2466: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2467: fi
2468:
2469: # These three variables are undocumented and unsupported,
2470: # and are intended to be withdrawn in a future Autoconf release.
2471: # They can cause serious problems if a builder's source tree is in a directory
2472: # whose full name contains unusual characters.
2473: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2474: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2475: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2476:
1.1 parser 2477:
2478: # Find a good install program. We prefer a C program (faster),
2479: # so one script is as good as another. But avoid the broken or
2480: # incompatible versions:
2481: # SysV /etc/install, /usr/sbin/install
2482: # SunOS /usr/etc/install
2483: # IRIX /sbin/install
2484: # AIX /bin/install
1.15 paf 2485: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 2486: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2487: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2488: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.25 paf 2489: # OS/2's system install, which has a completely different semantic
1.1 parser 2490: # ./install, which can be erroneously created by make from ./install.sh.
1.43 moko 2491: # Reject install programs that cannot install multiple files.
2492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2493: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 parser 2494: if test -z "$INSTALL"; then
1.43 moko 2495: if ${ac_cv_path_install+:} false; then :
2496: $as_echo_n "(cached) " >&6
1.1 parser 2497: else
1.15 paf 2498: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499: for as_dir in $PATH
2500: do
2501: IFS=$as_save_IFS
2502: test -z "$as_dir" && as_dir=.
1.43 moko 2503: # Account for people who put trailing slashes in PATH elements.
2504: case $as_dir/ in #((
2505: ./ | .// | /[cC]/* | \
1.15 paf 2506: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.43 moko 2507: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.15 paf 2508: /usr/ucb/* ) ;;
2509: *)
2510: # OSF1 and SCO ODT 3.0 have their own names for install.
2511: # Don't use installbsd from OSF since it installs stuff as root
2512: # by default.
2513: for ac_prog in ginstall scoinst install; do
2514: for ac_exec_ext in '' $ac_executable_extensions; do
1.43 moko 2515: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.25 paf 2516: if test $ac_prog = install &&
2517: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2518: # AIX install. It has an incompatible calling convention.
2519: :
2520: elif test $ac_prog = install &&
2521: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522: # program-specific install script used by HP pwplus--don't use.
2523: :
2524: else
1.43 moko 2525: rm -rf conftest.one conftest.two conftest.dir
2526: echo one > conftest.one
2527: echo two > conftest.two
2528: mkdir conftest.dir
2529: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2530: test -s conftest.one && test -s conftest.two &&
2531: test -s conftest.dir/conftest.one &&
2532: test -s conftest.dir/conftest.two
2533: then
2534: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535: break 3
2536: fi
1.25 paf 2537: fi
2538: fi
1.1 parser 2539: done
1.15 paf 2540: done
2541: ;;
2542: esac
2543:
1.43 moko 2544: done
2545: IFS=$as_save_IFS
2546:
2547: rm -rf conftest.one conftest.two conftest.dir
1.1 parser 2548:
2549: fi
2550: if test "${ac_cv_path_install+set}" = set; then
1.15 paf 2551: INSTALL=$ac_cv_path_install
1.1 parser 2552: else
1.43 moko 2553: # As a last resort, use the slow shell script. Don't cache a
2554: # value for INSTALL within a source directory, because that will
1.1 parser 2555: # break other packages using the cache if that directory is
1.43 moko 2556: # removed, or if the value is a relative name.
1.15 paf 2557: INSTALL=$ac_install_sh
1.1 parser 2558: fi
2559: fi
1.43 moko 2560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2561: $as_echo "$INSTALL" >&6; }
1.1 parser 2562:
2563: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564: # It thinks the first close brace ends the variable substitution.
2565: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566:
1.15 paf 2567: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 2568:
2569: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570:
1.43 moko 2571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2572: $as_echo_n "checking whether build environment is sane... " >&6; }
1.1 parser 2573: # Just in case
2574: sleep 1
1.15 paf 2575: echo timestamp > conftest.file
1.43 moko 2576: # Reject unsafe characters in $srcdir or the absolute working directory
2577: # name. Accept space and tab only in the latter.
2578: am_lf='
2579: '
2580: case `pwd` in
2581: *[\\\"\#\$\&\'\`$am_lf]*)
2582: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2583: esac
2584: case $srcdir in
2585: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2586: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2587: esac
2588:
1.1 parser 2589: # Do `set' in a subshell so we don't clobber the current shell's
2590: # arguments. Must try -L first in case configure is actually a
2591: # symlink; some systems play weird games with the mod time of symlinks
2592: # (eg FreeBSD returns the mod time of the symlink's containing
2593: # directory).
2594: if (
1.43 moko 2595: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.1 parser 2596: if test "$*" = "X"; then
2597: # -L didn't work.
1.43 moko 2598: set X `ls -t "$srcdir/configure" conftest.file`
1.1 parser 2599: fi
1.15 paf 2600: rm -f conftest.file
2601: if test "$*" != "X $srcdir/configure conftest.file" \
2602: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 2603:
2604: # If neither matched, then we have a broken ls. This can happen
2605: # if, for instance, CONFIG_SHELL is bash and it inherits a
2606: # broken ls alias from the environment. This has actually
2607: # happened. Such a system could not be considered "sane".
1.43 moko 2608: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2609: alias in your environment" "$LINENO" 5
1.1 parser 2610: fi
2611:
1.15 paf 2612: test "$2" = conftest.file
1.1 parser 2613: )
2614: then
2615: # Ok.
2616: :
2617: else
1.43 moko 2618: as_fn_error $? "newly created file is older than distributed files!
2619: Check your system clock" "$LINENO" 5
1.1 parser 2620: fi
1.43 moko 2621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2622: $as_echo "yes" >&6; }
1.1 parser 2623: test "$program_prefix" != NONE &&
1.43 moko 2624: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 parser 2625: # Use a double $ so make ignores it.
2626: test "$program_suffix" != NONE &&
1.43 moko 2627: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2628: # Double any \ or $.
1.15 paf 2629: # By default was `s,x,x', remove it if useless.
1.43 moko 2630: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2631: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.15 paf 2632:
2633: # expand $ac_aux_dir to an absolute path
2634: am_aux_dir=`cd $ac_aux_dir && pwd`
2635:
1.43 moko 2636: if test x"${MISSING+set}" != xset; then
2637: case $am_aux_dir in
2638: *\ * | *\ *)
2639: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2640: *)
2641: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2642: esac
2643: fi
1.15 paf 2644: # Use eval to expand $SHELL
2645: if eval "$MISSING --run true"; then
2646: am_missing_run="$MISSING --run "
2647: else
2648: am_missing_run=
1.43 moko 2649: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2650: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.15 paf 2651: fi
2652:
1.43 moko 2653: if test x"${install_sh}" != xset; then
2654: case $am_aux_dir in
2655: *\ * | *\ *)
2656: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2657: *)
2658: install_sh="\${SHELL} $am_aux_dir/install-sh"
2659: esac
2660: fi
2661:
2662: # Installed binaries are usually stripped using `strip' when the user
2663: # run `make install-strip'. However `strip' might not be the right
2664: # tool to use in cross-compilation environments, therefore Automake
2665: # will honor the `STRIP' environment variable to overrule this program.
2666: if test "$cross_compiling" != no; then
2667: if test -n "$ac_tool_prefix"; then
2668: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2669: set dummy ${ac_tool_prefix}strip; ac_word=$2
2670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671: $as_echo_n "checking for $ac_word... " >&6; }
2672: if ${ac_cv_prog_STRIP+:} false; then :
2673: $as_echo_n "(cached) " >&6
2674: else
2675: if test -n "$STRIP"; then
2676: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2677: else
2678: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679: for as_dir in $PATH
2680: do
2681: IFS=$as_save_IFS
2682: test -z "$as_dir" && as_dir=.
2683: for ac_exec_ext in '' $ac_executable_extensions; do
2684: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2686: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687: break 2
2688: fi
2689: done
2690: done
2691: IFS=$as_save_IFS
2692:
2693: fi
2694: fi
2695: STRIP=$ac_cv_prog_STRIP
2696: if test -n "$STRIP"; then
2697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2698: $as_echo "$STRIP" >&6; }
2699: else
2700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701: $as_echo "no" >&6; }
2702: fi
2703:
2704:
2705: fi
2706: if test -z "$ac_cv_prog_STRIP"; then
2707: ac_ct_STRIP=$STRIP
2708: # Extract the first word of "strip", so it can be a program name with args.
2709: set dummy strip; ac_word=$2
2710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711: $as_echo_n "checking for $ac_word... " >&6; }
2712: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2713: $as_echo_n "(cached) " >&6
2714: else
2715: if test -n "$ac_ct_STRIP"; then
2716: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2717: else
2718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719: for as_dir in $PATH
2720: do
2721: IFS=$as_save_IFS
2722: test -z "$as_dir" && as_dir=.
2723: for ac_exec_ext in '' $ac_executable_extensions; do
2724: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725: ac_cv_prog_ac_ct_STRIP="strip"
2726: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727: break 2
2728: fi
2729: done
2730: done
2731: IFS=$as_save_IFS
2732:
2733: fi
2734: fi
2735: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2736: if test -n "$ac_ct_STRIP"; then
2737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2738: $as_echo "$ac_ct_STRIP" >&6; }
2739: else
2740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741: $as_echo "no" >&6; }
2742: fi
2743:
2744: if test "x$ac_ct_STRIP" = x; then
2745: STRIP=":"
2746: else
2747: case $cross_compiling:$ac_tool_warned in
2748: yes:)
2749: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2750: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2751: ac_tool_warned=yes ;;
2752: esac
2753: STRIP=$ac_ct_STRIP
2754: fi
2755: else
2756: STRIP="$ac_cv_prog_STRIP"
2757: fi
2758:
2759: fi
2760: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2761:
2762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2763: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2764: if test -z "$MKDIR_P"; then
2765: if ${ac_cv_path_mkdir+:} false; then :
2766: $as_echo_n "(cached) " >&6
2767: else
2768: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2770: do
2771: IFS=$as_save_IFS
2772: test -z "$as_dir" && as_dir=.
2773: for ac_prog in mkdir gmkdir; do
2774: for ac_exec_ext in '' $ac_executable_extensions; do
2775: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2776: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2777: 'mkdir (GNU coreutils) '* | \
2778: 'mkdir (coreutils) '* | \
2779: 'mkdir (fileutils) '4.1*)
2780: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2781: break 3;;
2782: esac
2783: done
2784: done
1.25 paf 2785: done
1.43 moko 2786: IFS=$as_save_IFS
2787:
2788: fi
2789:
2790: test -d ./--version && rmdir ./--version
2791: if test "${ac_cv_path_mkdir+set}" = set; then
2792: MKDIR_P="$ac_cv_path_mkdir -p"
1.25 paf 2793: else
1.43 moko 2794: # As a last resort, use the slow shell script. Don't cache a
2795: # value for MKDIR_P within a source directory, because that will
2796: # break other packages using the cache if that directory is
2797: # removed, or if the value is a relative name.
2798: MKDIR_P="$ac_install_sh -d"
1.25 paf 2799: fi
2800: fi
1.43 moko 2801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2802: $as_echo "$MKDIR_P" >&6; }
2803:
2804: mkdir_p="$MKDIR_P"
2805: case $mkdir_p in
2806: [\\/$]* | ?:[\\/]*) ;;
2807: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2808: esac
1.25 paf 2809:
1.15 paf 2810: for ac_prog in gawk mawk nawk awk
2811: do
2812: # Extract the first word of "$ac_prog", so it can be a program name with args.
2813: set dummy $ac_prog; ac_word=$2
1.43 moko 2814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815: $as_echo_n "checking for $ac_word... " >&6; }
2816: if ${ac_cv_prog_AWK+:} false; then :
2817: $as_echo_n "(cached) " >&6
1.15 paf 2818: else
2819: if test -n "$AWK"; then
2820: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2821: else
2822: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823: for as_dir in $PATH
2824: do
2825: IFS=$as_save_IFS
2826: test -z "$as_dir" && as_dir=.
1.43 moko 2827: for ac_exec_ext in '' $ac_executable_extensions; do
2828: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 paf 2829: ac_cv_prog_AWK="$ac_prog"
1.43 moko 2830: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.15 paf 2831: break 2
2832: fi
2833: done
1.43 moko 2834: done
2835: IFS=$as_save_IFS
1.15 paf 2836:
2837: fi
2838: fi
2839: AWK=$ac_cv_prog_AWK
2840: if test -n "$AWK"; then
1.43 moko 2841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2842: $as_echo "$AWK" >&6; }
1.15 paf 2843: else
1.43 moko 2844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845: $as_echo "no" >&6; }
1.15 paf 2846: fi
1.1 parser 2847:
1.43 moko 2848:
1.15 paf 2849: test -n "$AWK" && break
2850: done
1.1 parser 2851:
1.43 moko 2852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2853: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2854: set x ${MAKE-make}
2855: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2856: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2857: $as_echo_n "(cached) " >&6
1.1 parser 2858: else
1.15 paf 2859: cat >conftest.make <<\_ACEOF
1.43 moko 2860: SHELL = /bin/sh
1.1 parser 2861: all:
1.43 moko 2862: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.15 paf 2863: _ACEOF
1.43 moko 2864: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2865: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2866: *@@@%%%=?*=@@@%%%*)
2867: eval ac_cv_prog_make_${ac_make}_set=yes;;
2868: *)
2869: eval ac_cv_prog_make_${ac_make}_set=no;;
2870: esac
1.15 paf 2871: rm -f conftest.make
1.1 parser 2872: fi
1.43 moko 2873: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2875: $as_echo "yes" >&6; }
1.1 parser 2876: SET_MAKE=
2877: else
1.43 moko 2878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879: $as_echo "no" >&6; }
1.1 parser 2880: SET_MAKE="MAKE=${MAKE-make}"
2881: fi
2882:
1.25 paf 2883: rm -rf .tst 2>/dev/null
2884: mkdir .tst 2>/dev/null
2885: if test -d .tst; then
2886: am__leading_dot=.
2887: else
2888: am__leading_dot=_
2889: fi
2890: rmdir .tst 2>/dev/null
2891:
1.43 moko 2892: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2893: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2894: # is not polluted with repeated "-I."
2895: am__isrc=' -I$(srcdir)'
2896: # test to see if srcdir already configured
2897: if test -f $srcdir/config.status; then
2898: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2899: fi
1.15 paf 2900: fi
2901:
2902: # test whether we have cygpath
2903: if test -z "$CYGPATH_W"; then
2904: if (cygpath --version) >/dev/null 2>/dev/null; then
2905: CYGPATH_W='cygpath -w'
2906: else
2907: CYGPATH_W=echo
2908: fi
2909: fi
2910:
2911:
2912: # Define the identity of the package.
1.36 moko 2913: PACKAGE='parser3mysql-c'
1.44 moko 2914: VERSION='10.4'
1.15 paf 2915:
2916:
1.36 moko 2917: cat >>confdefs.h <<_ACEOF
2918: #define PACKAGE "$PACKAGE"
2919: _ACEOF
2920:
2921:
2922: cat >>confdefs.h <<_ACEOF
2923: #define VERSION "$VERSION"
2924: _ACEOF
2925:
1.15 paf 2926: # Some tools Automake needs.
2927:
2928: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2929:
2930:
2931: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1.1 parser 2932:
2933:
1.15 paf 2934: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2935:
2936:
2937: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2938:
2939:
2940: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 2941:
1.15 paf 2942: # We need awk for the "check" target. The system "awk" is bad on
2943: # some platforms.
1.25 paf 2944: # Always define AMTAR for backward compatibility.
2945:
2946: AMTAR=${AMTAR-"${am_missing_run}tar"}
2947:
2948: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2949:
2950:
1.1 parser 2951:
2952:
2953:
2954:
2955:
2956:
2957:
1.43 moko 2958: # Check whether --with-mysql-inc was given.
2959: if test "${with_mysql_inc+set}" = set; then :
2960: withval=$with_mysql_inc;
1.8 paf 2961: if test -r "$withval/mysql.h"; then
2962: MYSQL_INC=$withval
2963: fi
2964:
2965:
1.33 misha 2966: if test -z "$MYSQL_INC"; then
1.43 moko 2967: as_fn_error $? "$MYSQL_INC does not seem to be valid MySQL includes directory" "$LINENO" 5
1.33 misha 2968: fi
1.8 paf 2969:
1.1 parser 2970: else
1.43 moko 2971: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MYSQL_INC directory" >&5
2972: $as_echo_n "checking for MYSQL_INC directory... " >&6; }
1.8 paf 2973: for d in \
2974: /usr/local/include/mysql \
2975: /usr/include/mysql ; do
1.15 paf 2976:
1.8 paf 2977: if test -r "$d/mysql.h"; then
2978: MYSQL_INC=$d
2979: fi
2980:
2981: done
2982:
1.33 misha 2983: if test -z "$MYSQL_INC"; then
1.43 moko 2984: as_fn_error $? "use --with-mysql-inc=DIR to specify MySQL includes directory" "$LINENO" 5
1.33 misha 2985: fi
1.8 paf 2986:
1.43 moko 2987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INC" >&5
2988: $as_echo "$MYSQL_INC" >&6; }
1.1 parser 2989:
1.43 moko 2990: fi
1.3 parser 2991:
1.1 parser 2992:
2993:
1.15 paf 2994:
1.1 parser 2995:
1.43 moko 2996: ac_ext=cpp
1.15 paf 2997: ac_cpp='$CXXCPP $CPPFLAGS'
2998: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.43 moko 3001: if test -z "$CXX"; then
3002: if test -n "$CCC"; then
3003: CXX=$CCC
3004: else
3005: if test -n "$ac_tool_prefix"; then
3006: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.15 paf 3007: do
3008: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3009: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.43 moko 3010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011: $as_echo_n "checking for $ac_word... " >&6; }
3012: if ${ac_cv_prog_CXX+:} false; then :
3013: $as_echo_n "(cached) " >&6
1.1 parser 3014: else
3015: if test -n "$CXX"; then
3016: ac_cv_prog_CXX="$CXX" # Let the user override the test.
3017: else
1.15 paf 3018: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019: for as_dir in $PATH
3020: do
3021: IFS=$as_save_IFS
3022: test -z "$as_dir" && as_dir=.
1.43 moko 3023: for ac_exec_ext in '' $ac_executable_extensions; do
3024: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 paf 3025: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.43 moko 3026: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.15 paf 3027: break 2
3028: fi
3029: done
1.43 moko 3030: done
3031: IFS=$as_save_IFS
1.15 paf 3032:
1.1 parser 3033: fi
3034: fi
1.15 paf 3035: CXX=$ac_cv_prog_CXX
1.1 parser 3036: if test -n "$CXX"; then
1.43 moko 3037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3038: $as_echo "$CXX" >&6; }
1.1 parser 3039: else
1.43 moko 3040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041: $as_echo "no" >&6; }
1.1 parser 3042: fi
3043:
1.43 moko 3044:
1.15 paf 3045: test -n "$CXX" && break
3046: done
3047: fi
3048: if test -z "$CXX"; then
3049: ac_ct_CXX=$CXX
1.43 moko 3050: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.15 paf 3051: do
3052: # Extract the first word of "$ac_prog", so it can be a program name with args.
3053: set dummy $ac_prog; ac_word=$2
1.43 moko 3054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055: $as_echo_n "checking for $ac_word... " >&6; }
3056: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3057: $as_echo_n "(cached) " >&6
1.15 paf 3058: else
3059: if test -n "$ac_ct_CXX"; then
3060: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3061: else
3062: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063: for as_dir in $PATH
3064: do
3065: IFS=$as_save_IFS
3066: test -z "$as_dir" && as_dir=.
1.43 moko 3067: for ac_exec_ext in '' $ac_executable_extensions; do
3068: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 paf 3069: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.43 moko 3070: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.15 paf 3071: break 2
3072: fi
3073: done
1.43 moko 3074: done
3075: IFS=$as_save_IFS
1.1 parser 3076:
1.15 paf 3077: fi
3078: fi
3079: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3080: if test -n "$ac_ct_CXX"; then
1.43 moko 3081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3082: $as_echo "$ac_ct_CXX" >&6; }
1.15 paf 3083: else
1.43 moko 3084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085: $as_echo "no" >&6; }
1.15 paf 3086: fi
1.1 parser 3087:
1.43 moko 3088:
1.15 paf 3089: test -n "$ac_ct_CXX" && break
3090: done
1.1 parser 3091:
1.43 moko 3092: if test "x$ac_ct_CXX" = x; then
3093: CXX="g++"
3094: else
3095: case $cross_compiling:$ac_tool_warned in
3096: yes:)
3097: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3098: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099: ac_tool_warned=yes ;;
3100: esac
3101: CXX=$ac_ct_CXX
3102: fi
1.15 paf 3103: fi
1.1 parser 3104:
1.43 moko 3105: fi
3106: fi
1.15 paf 3107: # Provide some information about the compiler.
1.43 moko 3108: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3109: set X $ac_compile
3110: ac_compiler=$2
3111: for ac_option in --version -v -V -qversion; do
3112: { { ac_try="$ac_compiler $ac_option >&5"
3113: case "(($ac_try" in
3114: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115: *) ac_try_echo=$ac_try;;
3116: esac
3117: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118: $as_echo "$ac_try_echo"; } >&5
3119: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.15 paf 3120: ac_status=$?
1.43 moko 3121: if test -s conftest.err; then
3122: sed '10a\
3123: ... rest of stderr output deleted ...
3124: 10q' conftest.err >conftest.er1
3125: cat conftest.er1 >&5
3126: fi
3127: rm -f conftest.er1 conftest.err
3128: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129: test $ac_status = 0; }
3130: done
1.15 paf 3131:
1.43 moko 3132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 3133: /* end confdefs.h. */
3134:
3135: int
3136: main ()
3137: {
3138:
3139: ;
3140: return 0;
3141: }
3142: _ACEOF
3143: ac_clean_files_save=$ac_clean_files
1.43 moko 3144: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.15 paf 3145: # Try to create an executable without -o first, disregard a.out.
3146: # It will help us diagnose broken compilers, and finding out an intuition
3147: # of exeext.
1.43 moko 3148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3149: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3150: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3151:
3152: # The possible output files:
3153: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3154:
3155: ac_rmfiles=
3156: for ac_file in $ac_files
3157: do
3158: case $ac_file in
3159: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3160: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3161: esac
3162: done
3163: rm -f $ac_rmfiles
3164:
3165: if { { ac_try="$ac_link_default"
3166: case "(($ac_try" in
3167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168: *) ac_try_echo=$ac_try;;
3169: esac
3170: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171: $as_echo "$ac_try_echo"; } >&5
3172: (eval "$ac_link_default") 2>&5
3173: ac_status=$?
3174: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175: test $ac_status = 0; }; then :
3176: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3177: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3178: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3179: # so that the user can short-circuit this test for compilers unknown to
3180: # Autoconf.
3181: for ac_file in $ac_files ''
1.15 paf 3182: do
3183: test -f "$ac_file" || continue
3184: case $ac_file in
1.43 moko 3185: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.25 paf 3186: ;;
1.15 paf 3187: [ab].out )
1.25 paf 3188: # We found the default executable, but exeext='' is most
3189: # certainly right.
3190: break;;
1.15 paf 3191: *.* )
1.43 moko 3192: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3193: then :; else
3194: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195: fi
3196: # We set ac_cv_exeext here because the later test for it is not
3197: # safe: cross compilers may not add the suffix if given an `-o'
3198: # argument, so we may need to know it at that point already.
3199: # Even if this section looks crufty: it has the advantage of
3200: # actually working.
1.25 paf 3201: break;;
1.15 paf 3202: * )
1.25 paf 3203: break;;
1.15 paf 3204: esac
3205: done
1.43 moko 3206: test "$ac_cv_exeext" = no && ac_cv_exeext=
3207:
1.15 paf 3208: else
1.43 moko 3209: ac_file=''
3210: fi
3211: if test -z "$ac_file"; then :
3212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213: $as_echo "no" >&6; }
3214: $as_echo "$as_me: failed program was:" >&5
1.15 paf 3215: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3216:
1.43 moko 3217: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219: as_fn_error 77 "C++ compiler cannot create executables
3220: See \`config.log' for more details" "$LINENO" 5; }
3221: else
3222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223: $as_echo "yes" >&6; }
3224: fi
3225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3226: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3228: $as_echo "$ac_file" >&6; }
1.15 paf 3229: ac_exeext=$ac_cv_exeext
3230:
1.43 moko 3231: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.15 paf 3232: ac_clean_files=$ac_clean_files_save
1.43 moko 3233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3234: $as_echo_n "checking for suffix of executables... " >&6; }
3235: if { { ac_try="$ac_link"
3236: case "(($ac_try" in
3237: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238: *) ac_try_echo=$ac_try;;
3239: esac
3240: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241: $as_echo "$ac_try_echo"; } >&5
3242: (eval "$ac_link") 2>&5
1.15 paf 3243: ac_status=$?
1.43 moko 3244: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245: test $ac_status = 0; }; then :
1.15 paf 3246: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3247: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3248: # work properly (i.e., refer to `conftest.exe'), while it won't with
3249: # `rm'.
3250: for ac_file in conftest.exe conftest conftest.*; do
3251: test -f "$ac_file" || continue
3252: case $ac_file in
1.43 moko 3253: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.15 paf 3254: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25 paf 3255: break;;
1.15 paf 3256: * ) break;;
3257: esac
3258: done
1.1 parser 3259: else
1.43 moko 3260: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3263: See \`config.log' for more details" "$LINENO" 5; }
3264: fi
3265: rm -f conftest conftest$ac_cv_exeext
3266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3267: $as_echo "$ac_cv_exeext" >&6; }
1.15 paf 3268:
3269: rm -f conftest.$ac_ext
3270: EXEEXT=$ac_cv_exeext
3271: ac_exeext=$EXEEXT
1.43 moko 3272: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273: /* end confdefs.h. */
3274: #include <stdio.h>
3275: int
3276: main ()
3277: {
3278: FILE *f = fopen ("conftest.out", "w");
3279: return ferror (f) || fclose (f) != 0;
3280:
3281: ;
3282: return 0;
3283: }
3284: _ACEOF
3285: ac_clean_files="$ac_clean_files conftest.out"
3286: # Check that the compiler produces executables we can run. If not, either
3287: # the compiler is broken, or we cross compile.
3288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3289: $as_echo_n "checking whether we are cross compiling... " >&6; }
3290: if test "$cross_compiling" != yes; then
3291: { { ac_try="$ac_link"
3292: case "(($ac_try" in
3293: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294: *) ac_try_echo=$ac_try;;
3295: esac
3296: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297: $as_echo "$ac_try_echo"; } >&5
3298: (eval "$ac_link") 2>&5
3299: ac_status=$?
3300: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301: test $ac_status = 0; }
3302: if { ac_try='./conftest$ac_cv_exeext'
3303: { { case "(($ac_try" in
3304: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305: *) ac_try_echo=$ac_try;;
3306: esac
3307: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308: $as_echo "$ac_try_echo"; } >&5
3309: (eval "$ac_try") 2>&5
3310: ac_status=$?
3311: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312: test $ac_status = 0; }; }; then
3313: cross_compiling=no
3314: else
3315: if test "$cross_compiling" = maybe; then
3316: cross_compiling=yes
3317: else
3318: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320: as_fn_error $? "cannot run C++ compiled programs.
3321: If you meant to cross compile, use \`--host'.
3322: See \`config.log' for more details" "$LINENO" 5; }
3323: fi
3324: fi
3325: fi
3326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3327: $as_echo "$cross_compiling" >&6; }
3328:
3329: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3330: ac_clean_files=$ac_clean_files_save
3331: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3332: $as_echo_n "checking for suffix of object files... " >&6; }
3333: if ${ac_cv_objext+:} false; then :
3334: $as_echo_n "(cached) " >&6
1.15 paf 3335: else
1.43 moko 3336: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 3337: /* end confdefs.h. */
3338:
3339: int
3340: main ()
3341: {
3342:
3343: ;
3344: return 0;
3345: }
3346: _ACEOF
3347: rm -f conftest.o conftest.obj
1.43 moko 3348: if { { ac_try="$ac_compile"
3349: case "(($ac_try" in
3350: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351: *) ac_try_echo=$ac_try;;
3352: esac
3353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354: $as_echo "$ac_try_echo"; } >&5
3355: (eval "$ac_compile") 2>&5
3356: ac_status=$?
3357: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358: test $ac_status = 0; }; then :
3359: for ac_file in conftest.o conftest.obj conftest.*; do
3360: test -f "$ac_file" || continue;
1.15 paf 3361: case $ac_file in
1.43 moko 3362: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.15 paf 3363: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3364: break;;
3365: esac
3366: done
1.1 parser 3367: else
1.43 moko 3368: $as_echo "$as_me: failed program was:" >&5
1.15 paf 3369: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3370:
1.43 moko 3371: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373: as_fn_error $? "cannot compute suffix of object files: cannot compile
3374: See \`config.log' for more details" "$LINENO" 5; }
1.15 paf 3375: fi
3376: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3377: fi
1.43 moko 3378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3379: $as_echo "$ac_cv_objext" >&6; }
1.15 paf 3380: OBJEXT=$ac_cv_objext
3381: ac_objext=$OBJEXT
1.43 moko 3382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3383: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3384: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3385: $as_echo_n "(cached) " >&6
1.15 paf 3386: else
1.43 moko 3387: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 3388: /* end confdefs.h. */
3389:
3390: int
3391: main ()
3392: {
3393: #ifndef __GNUC__
3394: choke me
3395: #endif
1.1 parser 3396:
1.15 paf 3397: ;
3398: return 0;
3399: }
3400: _ACEOF
1.43 moko 3401: if ac_fn_cxx_try_compile "$LINENO"; then :
1.15 paf 3402: ac_compiler_gnu=yes
3403: else
1.43 moko 3404: ac_compiler_gnu=no
1.15 paf 3405: fi
1.43 moko 3406: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3407: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3408:
3409: fi
1.43 moko 3410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3411: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3412: if test $ac_compiler_gnu = yes; then
3413: GXX=yes
3414: else
3415: GXX=
3416: fi
1.15 paf 3417: ac_test_CXXFLAGS=${CXXFLAGS+set}
3418: ac_save_CXXFLAGS=$CXXFLAGS
1.43 moko 3419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3420: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3421: if ${ac_cv_prog_cxx_g+:} false; then :
3422: $as_echo_n "(cached) " >&6
3423: else
3424: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3425: ac_cxx_werror_flag=yes
3426: ac_cv_prog_cxx_g=no
3427: CXXFLAGS="-g"
3428: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 3429: /* end confdefs.h. */
3430:
3431: int
3432: main ()
3433: {
3434:
3435: ;
3436: return 0;
3437: }
3438: _ACEOF
1.43 moko 3439: if ac_fn_cxx_try_compile "$LINENO"; then :
1.15 paf 3440: ac_cv_prog_cxx_g=yes
1.1 parser 3441: else
1.43 moko 3442: CXXFLAGS=""
3443: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444: /* end confdefs.h. */
1.1 parser 3445:
1.15 paf 3446: int
3447: main ()
3448: {
1.43 moko 3449:
1.15 paf 3450: ;
3451: return 0;
3452: }
3453: _ACEOF
1.43 moko 3454: if ac_fn_cxx_try_compile "$LINENO"; then :
3455:
1.15 paf 3456: else
1.43 moko 3457: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3458: CXXFLAGS="-g"
3459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 3460: /* end confdefs.h. */
1.43 moko 3461:
1.15 paf 3462: int
3463: main ()
3464: {
1.43 moko 3465:
1.15 paf 3466: ;
3467: return 0;
3468: }
3469: _ACEOF
1.43 moko 3470: if ac_fn_cxx_try_compile "$LINENO"; then :
3471: ac_cv_prog_cxx_g=yes
3472: fi
3473: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474: fi
3475: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476: fi
3477: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3479: fi
3480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3481: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3482: if test "$ac_test_CXXFLAGS" = set; then
3483: CXXFLAGS=$ac_save_CXXFLAGS
3484: elif test $ac_cv_prog_cxx_g = yes; then
3485: if test "$GXX" = yes; then
3486: CXXFLAGS="-g -O2"
3487: else
3488: CXXFLAGS="-g"
3489: fi
1.15 paf 3490: else
1.43 moko 3491: if test "$GXX" = yes; then
3492: CXXFLAGS="-O2"
3493: else
3494: CXXFLAGS=
3495: fi
1.15 paf 3496: fi
1.24 paf 3497: ac_ext=c
3498: ac_cpp='$CPP $CPPFLAGS'
3499: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.25 paf 3502: DEPDIR="${am__leading_dot}deps"
1.15 paf 3503:
1.43 moko 3504: ac_config_commands="$ac_config_commands depfiles"
1.15 paf 3505:
3506:
3507: am_make=${MAKE-make}
3508: cat > confinc << 'END'
1.25 paf 3509: am__doit:
1.43 moko 3510: @echo this is the am__doit target
1.25 paf 3511: .PHONY: am__doit
1.15 paf 3512: END
3513: # If we don't find an include directive, just comment out the code.
1.43 moko 3514: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3515: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.15 paf 3516: am__include="#"
3517: am__quote=
3518: _am_result=none
3519: # First try GNU make style include.
3520: echo "include confinc" > confmf
1.43 moko 3521: # Ignore all kinds of additional output from `make'.
3522: case `$am_make -s -f confmf 2> /dev/null` in #(
3523: *the\ am__doit\ target*)
3524: am__include=include
3525: am__quote=
3526: _am_result=GNU
3527: ;;
3528: esac
1.15 paf 3529: # Now try BSD make style include.
3530: if test "$am__include" = "#"; then
3531: echo '.include "confinc"' > confmf
1.43 moko 3532: case `$am_make -s -f confmf 2> /dev/null` in #(
3533: *the\ am__doit\ target*)
3534: am__include=.include
3535: am__quote="\""
3536: _am_result=BSD
3537: ;;
3538: esac
1.15 paf 3539: fi
3540:
3541:
1.43 moko 3542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3543: $as_echo "$_am_result" >&6; }
1.15 paf 3544: rm -f confinc confmf
3545:
1.43 moko 3546: # Check whether --enable-dependency-tracking was given.
3547: if test "${enable_dependency_tracking+set}" = set; then :
3548: enableval=$enable_dependency_tracking;
3549: fi
1.15 paf 3550:
3551: if test "x$enable_dependency_tracking" != xno; then
3552: am_depcomp="$ac_aux_dir/depcomp"
3553: AMDEPBACKSLASH='\'
3554: fi
1.43 moko 3555: if test "x$enable_dependency_tracking" != xno; then
1.15 paf 3556: AMDEP_TRUE=
3557: AMDEP_FALSE='#'
3558: else
3559: AMDEP_TRUE='#'
3560: AMDEP_FALSE=
3561: fi
3562:
3563:
3564:
3565: depcc="$CXX" am_compiler_list=
3566:
1.43 moko 3567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3568: $as_echo_n "checking dependency style of $depcc... " >&6; }
3569: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3570: $as_echo_n "(cached) " >&6
1.15 paf 3571: else
3572: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3573: # We make a subdir and do the tests there. Otherwise we can end up
3574: # making bogus files that we don't know about and never remove. For
3575: # instance it was reported that on HP-UX the gcc test will end up
3576: # making a dummy file named `D' -- because `-MD' means `put the output
3577: # in D'.
3578: mkdir conftest.dir
3579: # Copy depcomp to subdir because otherwise we won't find it if we're
3580: # using a relative directory.
3581: cp "$am_depcomp" conftest.dir
3582: cd conftest.dir
1.25 paf 3583: # We will build objects and dependencies in a subdirectory because
3584: # it helps to detect inapplicable dependency modes. For instance
3585: # both Tru64's cc and ICC support -MD to output dependencies as a
3586: # side effect of compilation, but ICC will put the dependencies in
3587: # the current directory while Tru64 will put them in the object
3588: # directory.
3589: mkdir sub
1.15 paf 3590:
3591: am_cv_CXX_dependencies_compiler_type=none
3592: if test "$am_compiler_list" = ""; then
3593: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3594: fi
1.43 moko 3595: am__universal=false
3596: case " $depcc " in #(
3597: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3598: esac
3599:
1.15 paf 3600: for depmode in $am_compiler_list; do
1.25 paf 3601: # Setup a source with many dependencies, because some compilers
3602: # like to wrap large dependency lists on column 80 (with \), and
3603: # we should not choose a depcomp mode which is confused by this.
3604: #
1.15 paf 3605: # We need to recreate these files for each test, as the compiler may
3606: # overwrite some of them when testing with obscure command lines.
3607: # This happens at least with the AIX C compiler.
1.25 paf 3608: : > sub/conftest.c
3609: for i in 1 2 3 4 5 6; do
3610: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3611: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3612: # Solaris 8's {/usr,}/bin/sh.
3613: touch sub/conftst$i.h
3614: done
3615: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.15 paf 3616:
1.43 moko 3617: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3618: # mode. It turns out that the SunPro C++ compiler does not properly
3619: # handle `-M -o', and we need to detect this. Also, some Intel
3620: # versions had trouble with output in subdirs
3621: am__obj=sub/conftest.${OBJEXT-o}
3622: am__minus_obj="-o $am__obj"
1.15 paf 3623: case $depmode in
1.43 moko 3624: gcc)
3625: # This depmode causes a compiler race in universal mode.
3626: test "$am__universal" = false || continue
3627: ;;
1.15 paf 3628: nosideeffect)
3629: # after this tag, mechanisms are not by side-effect, so they'll
3630: # only be used when explicitly requested
3631: if test "x$enable_dependency_tracking" = xyes; then
3632: continue
3633: else
3634: break
3635: fi
3636: ;;
1.43 moko 3637: msvisualcpp | msvcmsys)
3638: # This compiler won't grok `-c -o', but also, the minuso test has
3639: # not run yet. These depmodes are late enough in the game, and
3640: # so weak that their functioning should not be impacted.
3641: am__obj=conftest.${OBJEXT-o}
3642: am__minus_obj=
3643: ;;
1.15 paf 3644: none) break ;;
3645: esac
3646: if depmode=$depmode \
1.43 moko 3647: source=sub/conftest.c object=$am__obj \
1.25 paf 3648: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.43 moko 3649: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.25 paf 3650: >/dev/null 2>conftest.err &&
1.43 moko 3651: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.25 paf 3652: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.43 moko 3653: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.15 paf 3654: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.25 paf 3655: # icc doesn't choke on unknown options, it will just issue warnings
3656: # or remarks (even with -Werror). So we grep stderr for any message
3657: # that says an option was ignored or not supported.
3658: # When given -MP, icc 7.0 and 7.1 complain thusly:
3659: # icc: Command line warning: ignoring option '-M'; no argument required
3660: # The diagnosis changed in icc 8.0:
3661: # icc: Command line remark: option '-MP' not supported
3662: if (grep 'ignoring option' conftest.err ||
3663: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3664: am_cv_CXX_dependencies_compiler_type=$depmode
3665: break
3666: fi
1.15 paf 3667: fi
3668: done
3669:
3670: cd ..
3671: rm -rf conftest.dir
3672: else
3673: am_cv_CXX_dependencies_compiler_type=none
3674: fi
3675:
3676: fi
1.43 moko 3677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3678: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.15 paf 3679: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3680:
1.43 moko 3681: if
1.15 paf 3682: test "x$enable_dependency_tracking" != xno \
3683: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3684: am__fastdepCXX_TRUE=
3685: am__fastdepCXX_FALSE='#'
3686: else
3687: am__fastdepCXX_TRUE='#'
3688: am__fastdepCXX_FALSE=
3689: fi
3690:
1.1 parser 3691:
1.15 paf 3692: ac_ext=c
3693: ac_cpp='$CPP $CPPFLAGS'
3694: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697: if test -n "$ac_tool_prefix"; then
3698: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3699: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.43 moko 3700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701: $as_echo_n "checking for $ac_word... " >&6; }
3702: if ${ac_cv_prog_CC+:} false; then :
3703: $as_echo_n "(cached) " >&6
1.15 paf 3704: else
3705: if test -n "$CC"; then
3706: ac_cv_prog_CC="$CC" # Let the user override the test.
3707: else
3708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709: for as_dir in $PATH
3710: do
3711: IFS=$as_save_IFS
3712: test -z "$as_dir" && as_dir=.
1.43 moko 3713: for ac_exec_ext in '' $ac_executable_extensions; do
3714: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 paf 3715: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.43 moko 3716: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.15 paf 3717: break 2
3718: fi
3719: done
1.43 moko 3720: done
3721: IFS=$as_save_IFS
1.1 parser 3722:
1.15 paf 3723: fi
3724: fi
3725: CC=$ac_cv_prog_CC
3726: if test -n "$CC"; then
1.43 moko 3727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728: $as_echo "$CC" >&6; }
1.15 paf 3729: else
1.43 moko 3730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731: $as_echo "no" >&6; }
1.15 paf 3732: fi
1.1 parser 3733:
1.43 moko 3734:
1.15 paf 3735: fi
3736: if test -z "$ac_cv_prog_CC"; then
3737: ac_ct_CC=$CC
3738: # Extract the first word of "gcc", so it can be a program name with args.
3739: set dummy gcc; ac_word=$2
1.43 moko 3740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741: $as_echo_n "checking for $ac_word... " >&6; }
3742: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3743: $as_echo_n "(cached) " >&6
1.1 parser 3744: else
1.15 paf 3745: if test -n "$ac_ct_CC"; then
3746: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 3747: else
1.15 paf 3748: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749: for as_dir in $PATH
3750: do
3751: IFS=$as_save_IFS
3752: test -z "$as_dir" && as_dir=.
1.43 moko 3753: for ac_exec_ext in '' $ac_executable_extensions; do
3754: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 paf 3755: ac_cv_prog_ac_ct_CC="gcc"
1.43 moko 3756: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.15 paf 3757: break 2
3758: fi
3759: done
1.43 moko 3760: done
3761: IFS=$as_save_IFS
1.15 paf 3762:
3763: fi
1.1 parser 3764: fi
1.15 paf 3765: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3766: if test -n "$ac_ct_CC"; then
1.43 moko 3767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3768: $as_echo "$ac_ct_CC" >&6; }
1.15 paf 3769: else
1.43 moko 3770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771: $as_echo "no" >&6; }
1.1 parser 3772: fi
1.15 paf 3773:
1.43 moko 3774: if test "x$ac_ct_CC" = x; then
3775: CC=""
3776: else
3777: case $cross_compiling:$ac_tool_warned in
3778: yes:)
3779: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781: ac_tool_warned=yes ;;
3782: esac
3783: CC=$ac_ct_CC
3784: fi
1.1 parser 3785: else
1.15 paf 3786: CC="$ac_cv_prog_CC"
1.1 parser 3787: fi
3788:
1.15 paf 3789: if test -z "$CC"; then
1.43 moko 3790: if test -n "$ac_tool_prefix"; then
3791: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.15 paf 3792: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.43 moko 3793: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794: $as_echo_n "checking for $ac_word... " >&6; }
3795: if ${ac_cv_prog_CC+:} false; then :
3796: $as_echo_n "(cached) " >&6
1.1 parser 3797: else
3798: if test -n "$CC"; then
3799: ac_cv_prog_CC="$CC" # Let the user override the test.
3800: else
1.15 paf 3801: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802: for as_dir in $PATH
3803: do
3804: IFS=$as_save_IFS
3805: test -z "$as_dir" && as_dir=.
1.43 moko 3806: for ac_exec_ext in '' $ac_executable_extensions; do
3807: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 paf 3808: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.43 moko 3809: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.15 paf 3810: break 2
3811: fi
3812: done
1.43 moko 3813: done
3814: IFS=$as_save_IFS
1.15 paf 3815:
1.1 parser 3816: fi
3817: fi
1.15 paf 3818: CC=$ac_cv_prog_CC
1.1 parser 3819: if test -n "$CC"; then
1.43 moko 3820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3821: $as_echo "$CC" >&6; }
1.15 paf 3822: else
1.43 moko 3823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824: $as_echo "no" >&6; }
1.15 paf 3825: fi
3826:
1.43 moko 3827:
1.15 paf 3828: fi
3829: fi
1.1 parser 3830: if test -z "$CC"; then
3831: # Extract the first word of "cc", so it can be a program name with args.
3832: set dummy cc; ac_word=$2
1.43 moko 3833: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834: $as_echo_n "checking for $ac_word... " >&6; }
3835: if ${ac_cv_prog_CC+:} false; then :
3836: $as_echo_n "(cached) " >&6
1.1 parser 3837: else
3838: if test -n "$CC"; then
3839: ac_cv_prog_CC="$CC" # Let the user override the test.
3840: else
3841: ac_prog_rejected=no
1.15 paf 3842: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843: for as_dir in $PATH
3844: do
3845: IFS=$as_save_IFS
3846: test -z "$as_dir" && as_dir=.
1.43 moko 3847: for ac_exec_ext in '' $ac_executable_extensions; do
3848: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 paf 3849: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3850: ac_prog_rejected=yes
3851: continue
3852: fi
3853: ac_cv_prog_CC="cc"
1.43 moko 3854: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.15 paf 3855: break 2
3856: fi
3857: done
1.43 moko 3858: done
3859: IFS=$as_save_IFS
1.15 paf 3860:
1.1 parser 3861: if test $ac_prog_rejected = yes; then
3862: # We found a bogon in the path, so make sure we never use it.
3863: set dummy $ac_cv_prog_CC
3864: shift
1.15 paf 3865: if test $# != 0; then
1.1 parser 3866: # We chose a different compiler from the bogus one.
3867: # However, it has the same basename, so the bogon will be chosen
3868: # first if we set CC to just the basename; use the full file name.
3869: shift
1.15 paf 3870: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3871: fi
3872: fi
3873: fi
3874: fi
1.15 paf 3875: CC=$ac_cv_prog_CC
1.1 parser 3876: if test -n "$CC"; then
1.43 moko 3877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878: $as_echo "$CC" >&6; }
1.1 parser 3879: else
1.43 moko 3880: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881: $as_echo "no" >&6; }
1.1 parser 3882: fi
3883:
1.43 moko 3884:
1.15 paf 3885: fi
3886: if test -z "$CC"; then
3887: if test -n "$ac_tool_prefix"; then
1.43 moko 3888: for ac_prog in cl.exe
1.15 paf 3889: do
3890: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3891: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.43 moko 3892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893: $as_echo_n "checking for $ac_word... " >&6; }
3894: if ${ac_cv_prog_CC+:} false; then :
3895: $as_echo_n "(cached) " >&6
1.1 parser 3896: else
3897: if test -n "$CC"; then
3898: ac_cv_prog_CC="$CC" # Let the user override the test.
3899: else
1.15 paf 3900: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901: for as_dir in $PATH
3902: do
3903: IFS=$as_save_IFS
3904: test -z "$as_dir" && as_dir=.
1.43 moko 3905: for ac_exec_ext in '' $ac_executable_extensions; do
3906: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 paf 3907: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.43 moko 3908: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.15 paf 3909: break 2
3910: fi
3911: done
1.43 moko 3912: done
3913: IFS=$as_save_IFS
1.15 paf 3914:
1.1 parser 3915: fi
3916: fi
1.15 paf 3917: CC=$ac_cv_prog_CC
1.1 parser 3918: if test -n "$CC"; then
1.43 moko 3919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920: $as_echo "$CC" >&6; }
1.1 parser 3921: else
1.43 moko 3922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923: $as_echo "no" >&6; }
1.15 paf 3924: fi
3925:
1.43 moko 3926:
1.15 paf 3927: test -n "$CC" && break
3928: done
1.1 parser 3929: fi
1.15 paf 3930: if test -z "$CC"; then
3931: ac_ct_CC=$CC
1.43 moko 3932: for ac_prog in cl.exe
1.15 paf 3933: do
3934: # Extract the first word of "$ac_prog", so it can be a program name with args.
3935: set dummy $ac_prog; ac_word=$2
1.43 moko 3936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937: $as_echo_n "checking for $ac_word... " >&6; }
3938: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3939: $as_echo_n "(cached) " >&6
1.15 paf 3940: else
3941: if test -n "$ac_ct_CC"; then
3942: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3943: else
3944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945: for as_dir in $PATH
3946: do
3947: IFS=$as_save_IFS
3948: test -z "$as_dir" && as_dir=.
1.43 moko 3949: for ac_exec_ext in '' $ac_executable_extensions; do
3950: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 paf 3951: ac_cv_prog_ac_ct_CC="$ac_prog"
1.43 moko 3952: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.15 paf 3953: break 2
1.1 parser 3954: fi
1.15 paf 3955: done
1.43 moko 3956: done
3957: IFS=$as_save_IFS
1.15 paf 3958:
3959: fi
3960: fi
3961: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3962: if test -n "$ac_ct_CC"; then
1.43 moko 3963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3964: $as_echo "$ac_ct_CC" >&6; }
1.15 paf 3965: else
1.43 moko 3966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967: $as_echo "no" >&6; }
1.1 parser 3968: fi
3969:
1.43 moko 3970:
1.15 paf 3971: test -n "$ac_ct_CC" && break
3972: done
1.1 parser 3973:
1.43 moko 3974: if test "x$ac_ct_CC" = x; then
3975: CC=""
3976: else
3977: case $cross_compiling:$ac_tool_warned in
3978: yes:)
3979: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3980: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3981: ac_tool_warned=yes ;;
3982: esac
3983: CC=$ac_ct_CC
3984: fi
1.15 paf 3985: fi
1.1 parser 3986:
1.15 paf 3987: fi
1.1 parser 3988:
3989:
1.43 moko 3990: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992: as_fn_error $? "no acceptable C compiler found in \$PATH
3993: See \`config.log' for more details" "$LINENO" 5; }
1.15 paf 3994:
3995: # Provide some information about the compiler.
1.43 moko 3996: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3997: set X $ac_compile
3998: ac_compiler=$2
3999: for ac_option in --version -v -V -qversion; do
4000: { { ac_try="$ac_compiler $ac_option >&5"
4001: case "(($ac_try" in
4002: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003: *) ac_try_echo=$ac_try;;
4004: esac
4005: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006: $as_echo "$ac_try_echo"; } >&5
4007: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.15 paf 4008: ac_status=$?
1.43 moko 4009: if test -s conftest.err; then
4010: sed '10a\
4011: ... rest of stderr output deleted ...
4012: 10q' conftest.err >conftest.er1
4013: cat conftest.er1 >&5
4014: fi
4015: rm -f conftest.er1 conftest.err
4016: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017: test $ac_status = 0; }
4018: done
4019:
4020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4021: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4022: if ${ac_cv_c_compiler_gnu+:} false; then :
4023: $as_echo_n "(cached) " >&6
1.15 paf 4024: else
1.43 moko 4025: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 4026: /* end confdefs.h. */
4027:
4028: int
4029: main ()
4030: {
4031: #ifndef __GNUC__
4032: choke me
1.1 parser 4033: #endif
4034:
1.15 paf 4035: ;
4036: return 0;
4037: }
4038: _ACEOF
1.43 moko 4039: if ac_fn_c_try_compile "$LINENO"; then :
1.15 paf 4040: ac_compiler_gnu=yes
4041: else
1.43 moko 4042: ac_compiler_gnu=no
1.15 paf 4043: fi
1.43 moko 4044: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 4045: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4046:
4047: fi
1.43 moko 4048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4049: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4050: if test $ac_compiler_gnu = yes; then
4051: GCC=yes
4052: else
4053: GCC=
4054: fi
1.15 paf 4055: ac_test_CFLAGS=${CFLAGS+set}
4056: ac_save_CFLAGS=$CFLAGS
1.43 moko 4057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4058: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4059: if ${ac_cv_prog_cc_g+:} false; then :
4060: $as_echo_n "(cached) " >&6
4061: else
4062: ac_save_c_werror_flag=$ac_c_werror_flag
4063: ac_c_werror_flag=yes
4064: ac_cv_prog_cc_g=no
4065: CFLAGS="-g"
4066: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067: /* end confdefs.h. */
4068:
4069: int
4070: main ()
4071: {
4072:
4073: ;
4074: return 0;
4075: }
4076: _ACEOF
4077: if ac_fn_c_try_compile "$LINENO"; then :
4078: ac_cv_prog_cc_g=yes
1.15 paf 4079: else
1.43 moko 4080: CFLAGS=""
4081: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082: /* end confdefs.h. */
4083:
4084: int
4085: main ()
4086: {
4087:
4088: ;
4089: return 0;
4090: }
1.15 paf 4091: _ACEOF
1.43 moko 4092: if ac_fn_c_try_compile "$LINENO"; then :
4093:
4094: else
4095: ac_c_werror_flag=$ac_save_c_werror_flag
4096: CFLAGS="-g"
4097: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 4098: /* end confdefs.h. */
4099:
4100: int
4101: main ()
4102: {
4103:
4104: ;
4105: return 0;
4106: }
4107: _ACEOF
1.43 moko 4108: if ac_fn_c_try_compile "$LINENO"; then :
1.15 paf 4109: ac_cv_prog_cc_g=yes
1.1 parser 4110: fi
1.43 moko 4111: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112: fi
4113: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114: fi
4115: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 parser 4117: fi
1.43 moko 4118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4119: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 parser 4120: if test "$ac_test_CFLAGS" = set; then
1.15 paf 4121: CFLAGS=$ac_save_CFLAGS
1.1 parser 4122: elif test $ac_cv_prog_cc_g = yes; then
4123: if test "$GCC" = yes; then
4124: CFLAGS="-g -O2"
4125: else
4126: CFLAGS="-g"
4127: fi
4128: else
4129: if test "$GCC" = yes; then
4130: CFLAGS="-O2"
4131: else
4132: CFLAGS=
4133: fi
4134: fi
1.43 moko 4135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4136: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4137: if ${ac_cv_prog_cc_c89+:} false; then :
4138: $as_echo_n "(cached) " >&6
1.15 paf 4139: else
1.43 moko 4140: ac_cv_prog_cc_c89=no
1.15 paf 4141: ac_save_CC=$CC
1.43 moko 4142: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 4143: /* end confdefs.h. */
4144: #include <stdarg.h>
4145: #include <stdio.h>
4146: #include <sys/types.h>
4147: #include <sys/stat.h>
4148: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4149: struct buf { int x; };
4150: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4151: static char *e (p, i)
4152: char **p;
4153: int i;
4154: {
4155: return p[i];
4156: }
4157: static char *f (char * (*g) (char **, int), char **p, ...)
4158: {
4159: char *s;
4160: va_list v;
4161: va_start (v,p);
4162: s = g (p, va_arg (v,int));
4163: va_end (v);
4164: return s;
4165: }
1.25 paf 4166:
4167: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4168: function prototypes and stuff, but not '\xHH' hex character constants.
4169: These don't provoke an error unfortunately, instead are silently treated
1.43 moko 4170: as 'x'. The following induces an error, until -std is added to get
1.25 paf 4171: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4172: array size at least. It's necessary to write '\x00'==0 to get something
1.43 moko 4173: that's true only with -std. */
1.25 paf 4174: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4175:
1.43 moko 4176: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4177: inside strings and character constants. */
4178: #define FOO(x) 'x'
4179: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4180:
1.15 paf 4181: int test (int i, double x);
4182: struct s1 {int (*f) (int a);};
4183: struct s2 {int (*f) (double a);};
4184: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4185: int argc;
4186: char **argv;
4187: int
4188: main ()
4189: {
4190: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4191: ;
4192: return 0;
4193: }
4194: _ACEOF
1.43 moko 4195: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4196: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.15 paf 4197: do
4198: CC="$ac_save_CC $ac_arg"
1.43 moko 4199: if ac_fn_c_try_compile "$LINENO"; then :
4200: ac_cv_prog_cc_c89=$ac_arg
1.15 paf 4201: fi
1.43 moko 4202: rm -f core conftest.err conftest.$ac_objext
4203: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.15 paf 4204: done
1.43 moko 4205: rm -f conftest.$ac_ext
1.15 paf 4206: CC=$ac_save_CC
4207:
4208: fi
1.43 moko 4209: # AC_CACHE_VAL
4210: case "x$ac_cv_prog_cc_c89" in
4211: x)
4212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4213: $as_echo "none needed" >&6; } ;;
4214: xno)
4215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4216: $as_echo "unsupported" >&6; } ;;
1.15 paf 4217: *)
1.43 moko 4218: CC="$CC $ac_cv_prog_cc_c89"
4219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4220: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.15 paf 4221: esac
1.43 moko 4222: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.15 paf 4223:
4224: fi
4225:
1.24 paf 4226: ac_ext=c
4227: ac_cpp='$CPP $CPPFLAGS'
4228: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 4231:
4232: depcc="$CC" am_compiler_list=
4233:
1.43 moko 4234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4235: $as_echo_n "checking dependency style of $depcc... " >&6; }
4236: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4237: $as_echo_n "(cached) " >&6
1.15 paf 4238: else
4239: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4240: # We make a subdir and do the tests there. Otherwise we can end up
4241: # making bogus files that we don't know about and never remove. For
4242: # instance it was reported that on HP-UX the gcc test will end up
4243: # making a dummy file named `D' -- because `-MD' means `put the output
4244: # in D'.
4245: mkdir conftest.dir
4246: # Copy depcomp to subdir because otherwise we won't find it if we're
4247: # using a relative directory.
4248: cp "$am_depcomp" conftest.dir
4249: cd conftest.dir
1.25 paf 4250: # We will build objects and dependencies in a subdirectory because
4251: # it helps to detect inapplicable dependency modes. For instance
4252: # both Tru64's cc and ICC support -MD to output dependencies as a
4253: # side effect of compilation, but ICC will put the dependencies in
4254: # the current directory while Tru64 will put them in the object
4255: # directory.
4256: mkdir sub
1.15 paf 4257:
4258: am_cv_CC_dependencies_compiler_type=none
4259: if test "$am_compiler_list" = ""; then
4260: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4261: fi
1.43 moko 4262: am__universal=false
4263: case " $depcc " in #(
4264: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4265: esac
4266:
1.15 paf 4267: for depmode in $am_compiler_list; do
1.25 paf 4268: # Setup a source with many dependencies, because some compilers
4269: # like to wrap large dependency lists on column 80 (with \), and
4270: # we should not choose a depcomp mode which is confused by this.
4271: #
1.15 paf 4272: # We need to recreate these files for each test, as the compiler may
4273: # overwrite some of them when testing with obscure command lines.
4274: # This happens at least with the AIX C compiler.
1.25 paf 4275: : > sub/conftest.c
4276: for i in 1 2 3 4 5 6; do
4277: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4278: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4279: # Solaris 8's {/usr,}/bin/sh.
4280: touch sub/conftst$i.h
4281: done
4282: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.15 paf 4283:
1.43 moko 4284: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4285: # mode. It turns out that the SunPro C++ compiler does not properly
4286: # handle `-M -o', and we need to detect this. Also, some Intel
4287: # versions had trouble with output in subdirs
4288: am__obj=sub/conftest.${OBJEXT-o}
4289: am__minus_obj="-o $am__obj"
1.15 paf 4290: case $depmode in
1.43 moko 4291: gcc)
4292: # This depmode causes a compiler race in universal mode.
4293: test "$am__universal" = false || continue
4294: ;;
1.15 paf 4295: nosideeffect)
4296: # after this tag, mechanisms are not by side-effect, so they'll
4297: # only be used when explicitly requested
4298: if test "x$enable_dependency_tracking" = xyes; then
4299: continue
4300: else
4301: break
4302: fi
4303: ;;
1.43 moko 4304: msvisualcpp | msvcmsys)
4305: # This compiler won't grok `-c -o', but also, the minuso test has
4306: # not run yet. These depmodes are late enough in the game, and
4307: # so weak that their functioning should not be impacted.
4308: am__obj=conftest.${OBJEXT-o}
4309: am__minus_obj=
4310: ;;
1.15 paf 4311: none) break ;;
4312: esac
4313: if depmode=$depmode \
1.43 moko 4314: source=sub/conftest.c object=$am__obj \
1.25 paf 4315: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.43 moko 4316: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.25 paf 4317: >/dev/null 2>conftest.err &&
1.43 moko 4318: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.25 paf 4319: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.43 moko 4320: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.15 paf 4321: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.25 paf 4322: # icc doesn't choke on unknown options, it will just issue warnings
4323: # or remarks (even with -Werror). So we grep stderr for any message
4324: # that says an option was ignored or not supported.
4325: # When given -MP, icc 7.0 and 7.1 complain thusly:
4326: # icc: Command line warning: ignoring option '-M'; no argument required
4327: # The diagnosis changed in icc 8.0:
4328: # icc: Command line remark: option '-MP' not supported
4329: if (grep 'ignoring option' conftest.err ||
4330: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4331: am_cv_CC_dependencies_compiler_type=$depmode
4332: break
4333: fi
1.15 paf 4334: fi
4335: done
4336:
4337: cd ..
4338: rm -rf conftest.dir
4339: else
4340: am_cv_CC_dependencies_compiler_type=none
4341: fi
4342:
4343: fi
1.43 moko 4344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4345: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.15 paf 4346: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4347:
1.43 moko 4348: if
1.15 paf 4349: test "x$enable_dependency_tracking" != xno \
4350: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4351: am__fastdepCC_TRUE=
4352: am__fastdepCC_FALSE='#'
4353: else
4354: am__fastdepCC_TRUE='#'
4355: am__fastdepCC_FALSE=
4356: fi
4357:
4358:
1.24 paf 4359:
1.35 moko 4360:
1.36 moko 4361:
4362:
4363:
4364:
4365:
4366:
1.35 moko 4367: case `pwd` in
4368: *\ * | *\ *)
1.43 moko 4369: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4370: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.35 moko 4371: esac
4372:
4373:
4374:
4375: macro_version='2.4.2'
4376: macro_revision='1.3337'
4377:
4378:
4379:
4380:
4381:
4382:
4383:
1.24 paf 4384:
4385:
4386:
4387:
4388:
4389:
1.35 moko 4390: ltmain="$ac_aux_dir/ltmain.sh"
1.24 paf 4391:
4392: # Make sure we can run config.sub.
1.43 moko 4393: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4394: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.24 paf 4395:
1.43 moko 4396: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4397: $as_echo_n "checking build system type... " >&6; }
4398: if ${ac_cv_build+:} false; then :
4399: $as_echo_n "(cached) " >&6
4400: else
4401: ac_build_alias=$build_alias
4402: test "x$ac_build_alias" = x &&
4403: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4404: test "x$ac_build_alias" = x &&
4405: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4406: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4407: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4408:
4409: fi
4410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4411: $as_echo "$ac_cv_build" >&6; }
4412: case $ac_cv_build in
4413: *-*-*) ;;
4414: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4415: esac
4416: build=$ac_cv_build
4417: ac_save_IFS=$IFS; IFS='-'
4418: set x $ac_cv_build
4419: shift
4420: build_cpu=$1
4421: build_vendor=$2
4422: shift; shift
4423: # Remember, the first character of IFS is used to create $*,
4424: # except with old shells:
4425: build_os=$*
4426: IFS=$ac_save_IFS
4427: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4428:
4429:
4430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4431: $as_echo_n "checking host system type... " >&6; }
4432: if ${ac_cv_host+:} false; then :
4433: $as_echo_n "(cached) " >&6
4434: else
4435: if test "x$host_alias" = x; then
4436: ac_cv_host=$ac_cv_build
4437: else
4438: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4439: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.24 paf 4440: fi
4441:
4442: fi
1.43 moko 4443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4444: $as_echo "$ac_cv_host" >&6; }
4445: case $ac_cv_host in
4446: *-*-*) ;;
4447: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4448: esac
1.24 paf 4449: host=$ac_cv_host
1.43 moko 4450: ac_save_IFS=$IFS; IFS='-'
4451: set x $ac_cv_host
4452: shift
4453: host_cpu=$1
4454: host_vendor=$2
4455: shift; shift
4456: # Remember, the first character of IFS is used to create $*,
4457: # except with old shells:
4458: host_os=$*
4459: IFS=$ac_save_IFS
4460: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.24 paf 4461:
4462:
1.35 moko 4463: # Backslashify metacharacters that are still active within
4464: # double-quoted strings.
4465: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4466:
4467: # Same as above, but do not quote variable references.
4468: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4469:
4470: # Sed substitution to delay expansion of an escaped shell variable in a
4471: # double_quote_subst'ed string.
4472: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4473:
4474: # Sed substitution to delay expansion of an escaped single quote.
4475: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.15 paf 4476:
1.35 moko 4477: # Sed substitution to avoid accidental globbing in evaled expressions
4478: no_glob_subst='s/\*/\\\*/g'
1.1 parser 4479:
1.35 moko 4480: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4481: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4482: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4483:
1.43 moko 4484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4485: $as_echo_n "checking how to print strings... " >&6; }
1.35 moko 4486: # Test print first, because it will be a builtin if present.
4487: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4488: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4489: ECHO='print -r --'
4490: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4491: ECHO='printf %s\n'
1.1 parser 4492: else
1.35 moko 4493: # Use this function as a fallback that always works.
4494: func_fallback_echo ()
4495: {
4496: eval 'cat <<_LTECHO_EOF
4497: $1
4498: _LTECHO_EOF'
4499: }
4500: ECHO='func_fallback_echo'
1.1 parser 4501: fi
1.35 moko 4502:
4503: # func_echo_all arg...
4504: # Invoke $ECHO with all args, space-separated.
4505: func_echo_all ()
4506: {
4507: $ECHO ""
4508: }
4509:
4510: case "$ECHO" in
1.43 moko 4511: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4512: $as_echo "printf" >&6; } ;;
4513: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4514: $as_echo "print -r" >&6; } ;;
4515: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4516: $as_echo "cat" >&6; } ;;
1.35 moko 4517: esac
4518:
4519:
4520:
4521:
4522:
4523:
4524:
4525:
4526:
4527:
4528:
4529:
4530:
4531:
1.43 moko 4532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4533: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4534: if ${ac_cv_path_SED+:} false; then :
4535: $as_echo_n "(cached) " >&6
4536: else
4537: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4538: for ac_i in 1 2 3 4 5 6 7; do
4539: ac_script="$ac_script$as_nl$ac_script"
4540: done
4541: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4542: { ac_script=; unset ac_script;}
4543: if test -z "$SED"; then
4544: ac_path_SED_found=false
4545: # Loop through the user's path and test for each of PROGNAME-LIST
4546: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.35 moko 4547: for as_dir in $PATH
4548: do
4549: IFS=$as_save_IFS
4550: test -z "$as_dir" && as_dir=.
1.43 moko 4551: for ac_prog in sed gsed; do
1.35 moko 4552: for ac_exec_ext in '' $ac_executable_extensions; do
1.43 moko 4553: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4554: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4555: # Check for GNU ac_path_SED and select it if it is found.
4556: # Check for GNU $ac_path_SED
4557: case `"$ac_path_SED" --version 2>&1` in
4558: *GNU*)
4559: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4560: *)
4561: ac_count=0
4562: $as_echo_n 0123456789 >"conftest.in"
4563: while :
4564: do
4565: cat "conftest.in" "conftest.in" >"conftest.tmp"
4566: mv "conftest.tmp" "conftest.in"
4567: cp "conftest.in" "conftest.nl"
4568: $as_echo '' >> "conftest.nl"
4569: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4570: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4571: as_fn_arith $ac_count + 1 && ac_count=$as_val
4572: if test $ac_count -gt ${ac_path_SED_max-0}; then
4573: # Best one so far, save it but keep looking for a better one
4574: ac_cv_path_SED="$ac_path_SED"
4575: ac_path_SED_max=$ac_count
4576: fi
4577: # 10*(2^10) chars as input seems more than enough
4578: test $ac_count -gt 10 && break
4579: done
4580: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4581: esac
4582:
4583: $ac_path_SED_found && break 3
1.35 moko 4584: done
4585: done
1.43 moko 4586: done
1.35 moko 4587: IFS=$as_save_IFS
1.43 moko 4588: if test -z "$ac_cv_path_SED"; then
4589: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.35 moko 4590: fi
1.43 moko 4591: else
4592: ac_cv_path_SED=$SED
4593: fi
1.35 moko 4594:
4595: fi
1.43 moko 4596: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4597: $as_echo "$ac_cv_path_SED" >&6; }
4598: SED="$ac_cv_path_SED"
4599: rm -f conftest.sed
1.35 moko 4600:
4601: test -z "$SED" && SED=sed
4602: Xsed="$SED -e 1s/^X//"
4603:
4604:
4605:
4606:
4607:
4608:
4609:
4610:
4611:
4612:
4613:
1.43 moko 4614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4615: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4616: if ${ac_cv_path_GREP+:} false; then :
4617: $as_echo_n "(cached) " >&6
4618: else
4619: if test -z "$GREP"; then
4620: ac_path_GREP_found=false
4621: # Loop through the user's path and test for each of PROGNAME-LIST
4622: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4624: do
4625: IFS=$as_save_IFS
4626: test -z "$as_dir" && as_dir=.
4627: for ac_prog in grep ggrep; do
4628: for ac_exec_ext in '' $ac_executable_extensions; do
4629: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4630: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4631: # Check for GNU ac_path_GREP and select it if it is found.
4632: # Check for GNU $ac_path_GREP
4633: case `"$ac_path_GREP" --version 2>&1` in
4634: *GNU*)
4635: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4636: *)
4637: ac_count=0
4638: $as_echo_n 0123456789 >"conftest.in"
4639: while :
4640: do
4641: cat "conftest.in" "conftest.in" >"conftest.tmp"
4642: mv "conftest.tmp" "conftest.in"
4643: cp "conftest.in" "conftest.nl"
4644: $as_echo 'GREP' >> "conftest.nl"
4645: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4646: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4647: as_fn_arith $ac_count + 1 && ac_count=$as_val
4648: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4649: # Best one so far, save it but keep looking for a better one
4650: ac_cv_path_GREP="$ac_path_GREP"
4651: ac_path_GREP_max=$ac_count
1.35 moko 4652: fi
1.43 moko 4653: # 10*(2^10) chars as input seems more than enough
4654: test $ac_count -gt 10 && break
4655: done
4656: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4657: esac
4658:
4659: $ac_path_GREP_found && break 3
4660: done
4661: done
4662: done
4663: IFS=$as_save_IFS
4664: if test -z "$ac_cv_path_GREP"; then
4665: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4666: fi
4667: else
4668: ac_cv_path_GREP=$GREP
4669: fi
4670:
1.35 moko 4671: fi
1.43 moko 4672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4673: $as_echo "$ac_cv_path_GREP" >&6; }
4674: GREP="$ac_cv_path_GREP"
4675:
4676:
4677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4678: $as_echo_n "checking for egrep... " >&6; }
4679: if ${ac_cv_path_EGREP+:} false; then :
4680: $as_echo_n "(cached) " >&6
4681: else
4682: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4683: then ac_cv_path_EGREP="$GREP -E"
4684: else
4685: if test -z "$EGREP"; then
4686: ac_path_EGREP_found=false
4687: # Loop through the user's path and test for each of PROGNAME-LIST
4688: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4690: do
4691: IFS=$as_save_IFS
4692: test -z "$as_dir" && as_dir=.
4693: for ac_prog in egrep; do
4694: for ac_exec_ext in '' $ac_executable_extensions; do
4695: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4696: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4697: # Check for GNU ac_path_EGREP and select it if it is found.
4698: # Check for GNU $ac_path_EGREP
4699: case `"$ac_path_EGREP" --version 2>&1` in
4700: *GNU*)
4701: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4702: *)
4703: ac_count=0
4704: $as_echo_n 0123456789 >"conftest.in"
4705: while :
4706: do
4707: cat "conftest.in" "conftest.in" >"conftest.tmp"
4708: mv "conftest.tmp" "conftest.in"
4709: cp "conftest.in" "conftest.nl"
4710: $as_echo 'EGREP' >> "conftest.nl"
4711: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4712: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4713: as_fn_arith $ac_count + 1 && ac_count=$as_val
4714: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4715: # Best one so far, save it but keep looking for a better one
4716: ac_cv_path_EGREP="$ac_path_EGREP"
4717: ac_path_EGREP_max=$ac_count
4718: fi
4719: # 10*(2^10) chars as input seems more than enough
4720: test $ac_count -gt 10 && break
4721: done
4722: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4723: esac
1.35 moko 4724:
1.43 moko 4725: $ac_path_EGREP_found && break 3
4726: done
4727: done
4728: done
4729: IFS=$as_save_IFS
4730: if test -z "$ac_cv_path_EGREP"; then
4731: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4732: fi
4733: else
4734: ac_cv_path_EGREP=$EGREP
4735: fi
1.35 moko 4736:
1.43 moko 4737: fi
4738: fi
4739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4740: $as_echo "$ac_cv_path_EGREP" >&6; }
4741: EGREP="$ac_cv_path_EGREP"
4742:
4743:
4744: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4745: $as_echo_n "checking for fgrep... " >&6; }
4746: if ${ac_cv_path_FGREP+:} false; then :
4747: $as_echo_n "(cached) " >&6
4748: else
4749: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4750: then ac_cv_path_FGREP="$GREP -F"
4751: else
4752: if test -z "$FGREP"; then
4753: ac_path_FGREP_found=false
4754: # Loop through the user's path and test for each of PROGNAME-LIST
4755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4757: do
4758: IFS=$as_save_IFS
4759: test -z "$as_dir" && as_dir=.
4760: for ac_prog in fgrep; do
4761: for ac_exec_ext in '' $ac_executable_extensions; do
4762: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4763: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4764: # Check for GNU ac_path_FGREP and select it if it is found.
4765: # Check for GNU $ac_path_FGREP
4766: case `"$ac_path_FGREP" --version 2>&1` in
4767: *GNU*)
4768: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4769: *)
4770: ac_count=0
4771: $as_echo_n 0123456789 >"conftest.in"
4772: while :
4773: do
4774: cat "conftest.in" "conftest.in" >"conftest.tmp"
4775: mv "conftest.tmp" "conftest.in"
4776: cp "conftest.in" "conftest.nl"
4777: $as_echo 'FGREP' >> "conftest.nl"
4778: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4779: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4780: as_fn_arith $ac_count + 1 && ac_count=$as_val
4781: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4782: # Best one so far, save it but keep looking for a better one
4783: ac_cv_path_FGREP="$ac_path_FGREP"
4784: ac_path_FGREP_max=$ac_count
1.35 moko 4785: fi
1.43 moko 4786: # 10*(2^10) chars as input seems more than enough
4787: test $ac_count -gt 10 && break
4788: done
4789: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4790: esac
4791:
4792: $ac_path_FGREP_found && break 3
4793: done
4794: done
4795: done
4796: IFS=$as_save_IFS
4797: if test -z "$ac_cv_path_FGREP"; then
4798: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4799: fi
4800: else
4801: ac_cv_path_FGREP=$FGREP
4802: fi
4803:
4804: fi
1.35 moko 4805: fi
1.43 moko 4806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4807: $as_echo "$ac_cv_path_FGREP" >&6; }
4808: FGREP="$ac_cv_path_FGREP"
1.35 moko 4809:
4810:
4811: test -z "$GREP" && GREP=grep
4812:
4813:
4814:
4815:
4816:
4817:
4818:
4819:
4820:
4821:
4822:
4823:
4824:
4825:
4826:
4827:
4828:
4829:
4830:
1.43 moko 4831: # Check whether --with-gnu-ld was given.
4832: if test "${with_gnu_ld+set}" = set; then :
4833: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.35 moko 4834: else
4835: with_gnu_ld=no
1.43 moko 4836: fi
4837:
1.35 moko 4838: ac_prog=ld
4839: if test "$GCC" = yes; then
4840: # Check if gcc -print-prog-name=ld gives a path.
1.43 moko 4841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4842: $as_echo_n "checking for ld used by $CC... " >&6; }
1.35 moko 4843: case $host in
4844: *-*-mingw*)
4845: # gcc leaves a trailing carriage return which upsets mingw
4846: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4847: *)
4848: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4849: esac
4850: case $ac_prog in
4851: # Accept absolute paths.
4852: [\\/]* | ?:[\\/]*)
4853: re_direlt='/[^/][^/]*/\.\./'
4854: # Canonicalize the pathname of ld
4855: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4856: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4857: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4858: done
4859: test -z "$LD" && LD="$ac_prog"
4860: ;;
4861: "")
4862: # If it fails, then pretend we aren't using GCC.
4863: ac_prog=ld
4864: ;;
4865: *)
4866: # If it is relative, then search for the first ld in PATH.
4867: with_gnu_ld=unknown
4868: ;;
4869: esac
4870: elif test "$with_gnu_ld" = yes; then
1.43 moko 4871: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4872: $as_echo_n "checking for GNU ld... " >&6; }
1.35 moko 4873: else
1.43 moko 4874: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4875: $as_echo_n "checking for non-GNU ld... " >&6; }
1.35 moko 4876: fi
1.43 moko 4877: if ${lt_cv_path_LD+:} false; then :
4878: $as_echo_n "(cached) " >&6
1.1 parser 4879: else
4880: if test -z "$LD"; then
1.35 moko 4881: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 4882: for ac_dir in $PATH; do
1.35 moko 4883: IFS="$lt_save_ifs"
1.1 parser 4884: test -z "$ac_dir" && ac_dir=.
4885: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.15 paf 4886: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 4887: # Check to see if the program is GNU ld. I'd rather use --version,
1.35 moko 4888: # but apparently some variants of GNU ld only accept -v.
1.1 parser 4889: # Break only if it was the GNU/non-GNU ld that we prefer.
1.35 moko 4890: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4891: *GNU* | *'with BFD'*)
1.1 parser 4892: test "$with_gnu_ld" != no && break
1.35 moko 4893: ;;
4894: *)
1.1 parser 4895: test "$with_gnu_ld" != yes && break
1.35 moko 4896: ;;
4897: esac
1.1 parser 4898: fi
4899: done
1.35 moko 4900: IFS="$lt_save_ifs"
1.1 parser 4901: else
1.15 paf 4902: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 4903: fi
4904: fi
4905:
1.15 paf 4906: LD="$lt_cv_path_LD"
1.1 parser 4907: if test -n "$LD"; then
1.43 moko 4908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4909: $as_echo "$LD" >&6; }
1.1 parser 4910: else
1.43 moko 4911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912: $as_echo "no" >&6; }
1.1 parser 4913: fi
1.43 moko 4914: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4915: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4916: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4917: if ${lt_cv_prog_gnu_ld+:} false; then :
4918: $as_echo_n "(cached) " >&6
1.1 parser 4919: else
1.35 moko 4920: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4921: case `$LD -v 2>&1 </dev/null` in
4922: *GNU* | *'with BFD'*)
1.15 paf 4923: lt_cv_prog_gnu_ld=yes
1.35 moko 4924: ;;
4925: *)
1.15 paf 4926: lt_cv_prog_gnu_ld=no
1.35 moko 4927: ;;
4928: esac
1.1 parser 4929: fi
1.43 moko 4930: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4931: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.15 paf 4932: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 4933:
4934:
4935:
1.35 moko 4936:
4937:
4938:
4939:
4940:
4941:
1.43 moko 4942: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4943: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4944: if ${lt_cv_path_NM+:} false; then :
4945: $as_echo_n "(cached) " >&6
1.1 parser 4946: else
4947: if test -n "$NM"; then
4948: # Let the user override the test.
1.15 paf 4949: lt_cv_path_NM="$NM"
1.1 parser 4950: else
1.35 moko 4951: lt_nm_to_check="${ac_tool_prefix}nm"
4952: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4953: lt_nm_to_check="$lt_nm_to_check nm"
4954: fi
4955: for lt_tmp_nm in $lt_nm_to_check; do
4956: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4957: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4958: IFS="$lt_save_ifs"
4959: test -z "$ac_dir" && ac_dir=.
4960: tmp_nm="$ac_dir/$lt_tmp_nm"
4961: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4962: # Check to see if the nm accepts a BSD-compat flag.
4963: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4964: # nm: unknown option "B" ignored
4965: # Tru64's nm complains that /dev/null is an invalid object file
4966: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4967: */dev/null* | *'Invalid file or object type'*)
4968: lt_cv_path_NM="$tmp_nm -B"
4969: break
4970: ;;
4971: *)
4972: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4973: */dev/null*)
4974: lt_cv_path_NM="$tmp_nm -p"
4975: break
4976: ;;
4977: *)
4978: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4979: continue # so that we can try to find one that supports BSD flags
4980: ;;
4981: esac
4982: ;;
4983: esac
1.1 parser 4984: fi
1.35 moko 4985: done
4986: IFS="$lt_save_ifs"
1.1 parser 4987: done
1.35 moko 4988: : ${lt_cv_path_NM=no}
1.1 parser 4989: fi
4990: fi
1.43 moko 4991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4992: $as_echo "$lt_cv_path_NM" >&6; }
1.35 moko 4993: if test "$lt_cv_path_NM" != "no"; then
4994: NM="$lt_cv_path_NM"
4995: else
4996: # Didn't find any BSD compatible name lister, look for dumpbin.
4997: if test -n "$DUMPBIN"; then :
4998: # Let the user override the test.
4999: else
5000: if test -n "$ac_tool_prefix"; then
5001: for ac_prog in dumpbin "link -dump"
5002: do
5003: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5004: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.43 moko 5005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006: $as_echo_n "checking for $ac_word... " >&6; }
5007: if ${ac_cv_prog_DUMPBIN+:} false; then :
5008: $as_echo_n "(cached) " >&6
1.1 parser 5009: else
1.35 moko 5010: if test -n "$DUMPBIN"; then
5011: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5012: else
1.15 paf 5013: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014: for as_dir in $PATH
5015: do
5016: IFS=$as_save_IFS
5017: test -z "$as_dir" && as_dir=.
1.43 moko 5018: for ac_exec_ext in '' $ac_executable_extensions; do
5019: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 5020: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.43 moko 5021: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 5022: break 2
5023: fi
5024: done
1.43 moko 5025: done
5026: IFS=$as_save_IFS
1.15 paf 5027:
1.35 moko 5028: fi
5029: fi
5030: DUMPBIN=$ac_cv_prog_DUMPBIN
5031: if test -n "$DUMPBIN"; then
1.43 moko 5032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5033: $as_echo "$DUMPBIN" >&6; }
1.35 moko 5034: else
1.43 moko 5035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036: $as_echo "no" >&6; }
1.35 moko 5037: fi
1.15 paf 5038:
1.43 moko 5039:
1.35 moko 5040: test -n "$DUMPBIN" && break
1.15 paf 5041: done
1.35 moko 5042: fi
5043: if test -z "$DUMPBIN"; then
5044: ac_ct_DUMPBIN=$DUMPBIN
5045: for ac_prog in dumpbin "link -dump"
5046: do
5047: # Extract the first word of "$ac_prog", so it can be a program name with args.
5048: set dummy $ac_prog; ac_word=$2
1.43 moko 5049: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050: $as_echo_n "checking for $ac_word... " >&6; }
5051: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5052: $as_echo_n "(cached) " >&6
1.35 moko 5053: else
5054: if test -n "$ac_ct_DUMPBIN"; then
5055: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5056: else
5057: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058: for as_dir in $PATH
5059: do
5060: IFS=$as_save_IFS
5061: test -z "$as_dir" && as_dir=.
1.43 moko 5062: for ac_exec_ext in '' $ac_executable_extensions; do
5063: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 5064: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.43 moko 5065: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 5066: break 2
5067: fi
5068: done
1.43 moko 5069: done
5070: IFS=$as_save_IFS
1.15 paf 5071:
1.1 parser 5072: fi
1.35 moko 5073: fi
5074: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5075: if test -n "$ac_ct_DUMPBIN"; then
1.43 moko 5076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5077: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.11 paf 5078: else
1.43 moko 5079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080: $as_echo "no" >&6; }
1.11 paf 5081: fi
1.15 paf 5082:
1.43 moko 5083:
1.35 moko 5084: test -n "$ac_ct_DUMPBIN" && break
5085: done
5086:
1.43 moko 5087: if test "x$ac_ct_DUMPBIN" = x; then
5088: DUMPBIN=":"
5089: else
5090: case $cross_compiling:$ac_tool_warned in
5091: yes:)
5092: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5093: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5094: ac_tool_warned=yes ;;
5095: esac
5096: DUMPBIN=$ac_ct_DUMPBIN
5097: fi
1.15 paf 5098: fi
5099:
1.35 moko 5100: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5101: *COFF*)
5102: DUMPBIN="$DUMPBIN -symbols"
5103: ;;
5104: *)
5105: DUMPBIN=:
5106: ;;
5107: esac
5108: fi
5109:
5110: if test "$DUMPBIN" != ":"; then
5111: NM="$DUMPBIN"
5112: fi
5113: fi
5114: test -z "$NM" && NM=nm
5115:
5116:
5117:
5118:
5119:
5120:
1.43 moko 5121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5122: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5123: if ${lt_cv_nm_interface+:} false; then :
5124: $as_echo_n "(cached) " >&6
1.35 moko 5125: else
5126: lt_cv_nm_interface="BSD nm"
5127: echo "int some_variable = 0;" > conftest.$ac_ext
5128: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5129: (eval "$ac_compile" 2>conftest.err)
5130: cat conftest.err >&5
5131: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5132: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5133: cat conftest.err >&5
5134: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5135: cat conftest.out >&5
5136: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5137: lt_cv_nm_interface="MS dumpbin"
5138: fi
5139: rm -f conftest*
5140: fi
1.43 moko 5141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5142: $as_echo "$lt_cv_nm_interface" >&6; }
1.35 moko 5143:
1.43 moko 5144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5145: $as_echo_n "checking whether ln -s works... " >&6; }
1.35 moko 5146: LN_S=$as_ln_s
5147: if test "$LN_S" = "ln -s"; then
1.43 moko 5148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5149: $as_echo "yes" >&6; }
1.35 moko 5150: else
1.43 moko 5151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5152: $as_echo "no, using $LN_S" >&6; }
1.35 moko 5153: fi
5154:
5155: # find the maximum length of command line arguments
1.43 moko 5156: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5157: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5158: if ${lt_cv_sys_max_cmd_len+:} false; then :
5159: $as_echo_n "(cached) " >&6
1.35 moko 5160: else
5161: i=0
5162: teststring="ABCD"
5163:
5164: case $build_os in
5165: msdosdjgpp*)
5166: # On DJGPP, this test can blow up pretty badly due to problems in libc
5167: # (any single argument exceeding 2000 bytes causes a buffer overrun
5168: # during glob expansion). Even if it were fixed, the result of this
5169: # check would be larger than it should be.
5170: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5171: ;;
5172:
5173: gnu*)
5174: # Under GNU Hurd, this test is not required because there is
5175: # no limit to the length of command line arguments.
5176: # Libtool will interpret -1 as no limit whatsoever
5177: lt_cv_sys_max_cmd_len=-1;
5178: ;;
5179:
5180: cygwin* | mingw* | cegcc*)
5181: # On Win9x/ME, this test blows up -- it succeeds, but takes
5182: # about 5 minutes as the teststring grows exponentially.
5183: # Worse, since 9x/ME are not pre-emptively multitasking,
5184: # you end up with a "frozen" computer, even though with patience
5185: # the test eventually succeeds (with a max line length of 256k).
5186: # Instead, let's just punt: use the minimum linelength reported by
5187: # all of the supported platforms: 8192 (on NT/2K/XP).
5188: lt_cv_sys_max_cmd_len=8192;
5189: ;;
5190:
5191: mint*)
5192: # On MiNT this can take a long time and run out of memory.
5193: lt_cv_sys_max_cmd_len=8192;
5194: ;;
5195:
5196: amigaos*)
5197: # On AmigaOS with pdksh, this test takes hours, literally.
5198: # So we just punt and use a minimum line length of 8192.
5199: lt_cv_sys_max_cmd_len=8192;
5200: ;;
5201:
5202: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5203: # This has been around since 386BSD, at least. Likely further.
5204: if test -x /sbin/sysctl; then
5205: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5206: elif test -x /usr/sbin/sysctl; then
5207: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5208: else
5209: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5210: fi
5211: # And add a safety zone
5212: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5213: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5214: ;;
5215:
5216: interix*)
5217: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5218: lt_cv_sys_max_cmd_len=196608
5219: ;;
5220:
5221: os2*)
5222: # The test takes a long time on OS/2.
5223: lt_cv_sys_max_cmd_len=8192
5224: ;;
5225:
5226: osf*)
5227: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5228: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5229: # nice to cause kernel panics so lets avoid the loop below.
5230: # First set a reasonable default.
5231: lt_cv_sys_max_cmd_len=16384
5232: #
5233: if test -x /sbin/sysconfig; then
5234: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5235: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5236: esac
5237: fi
5238: ;;
5239: sco3.2v5*)
5240: lt_cv_sys_max_cmd_len=102400
5241: ;;
5242: sysv5* | sco5v6* | sysv4.2uw2*)
5243: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5244: if test -n "$kargmax"; then
5245: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5246: else
5247: lt_cv_sys_max_cmd_len=32768
5248: fi
5249: ;;
5250: *)
5251: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5252: if test -n "$lt_cv_sys_max_cmd_len"; then
5253: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5254: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5255: else
5256: # Make teststring a little bigger before we do anything with it.
5257: # a 1K string should be a reasonable start.
5258: for i in 1 2 3 4 5 6 7 8 ; do
5259: teststring=$teststring$teststring
5260: done
5261: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5262: # If test is not a shell built-in, we'll probably end up computing a
5263: # maximum length that is only half of the actual maximum length, but
5264: # we can't tell.
5265: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5266: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5267: test $i != 17 # 1/2 MB should be enough
5268: do
5269: i=`expr $i + 1`
5270: teststring=$teststring$teststring
5271: done
5272: # Only check the string length outside the loop.
5273: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5274: teststring=
5275: # Add a significant safety factor because C++ compilers can tack on
5276: # massive amounts of additional arguments before passing them to the
5277: # linker. It appears as though 1/2 is a usable value.
5278: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5279: fi
5280: ;;
5281: esac
5282:
5283: fi
5284:
5285: if test -n $lt_cv_sys_max_cmd_len ; then
1.43 moko 5286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5287: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.35 moko 5288: else
1.43 moko 5289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5290: $as_echo "none" >&6; }
1.35 moko 5291: fi
5292: max_cmd_len=$lt_cv_sys_max_cmd_len
5293:
5294:
5295:
5296:
5297:
5298:
5299: : ${CP="cp -f"}
5300: : ${MV="mv -f"}
5301: : ${RM="rm -f"}
5302:
1.43 moko 5303: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5304: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.35 moko 5305: # Try some XSI features
5306: xsi_shell=no
5307: ( _lt_dummy="a/b/c"
5308: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5309: = c,a/b,b/c, \
5310: && eval 'test $(( 1 + 1 )) -eq 2 \
5311: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5312: && xsi_shell=yes
1.43 moko 5313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5314: $as_echo "$xsi_shell" >&6; }
1.35 moko 5315:
5316:
1.43 moko 5317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5318: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.35 moko 5319: lt_shell_append=no
5320: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5321: >/dev/null 2>&1 \
5322: && lt_shell_append=yes
1.43 moko 5323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5324: $as_echo "$lt_shell_append" >&6; }
1.35 moko 5325:
5326:
5327: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5328: lt_unset=unset
5329: else
5330: lt_unset=false
5331: fi
5332:
5333:
5334:
5335:
5336:
5337: # test EBCDIC or ASCII
5338: case `echo X|tr X '\101'` in
5339: A) # ASCII based system
5340: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5341: lt_SP2NL='tr \040 \012'
5342: lt_NL2SP='tr \015\012 \040\040'
5343: ;;
5344: *) # EBCDIC based system
5345: lt_SP2NL='tr \100 \n'
5346: lt_NL2SP='tr \r\n \100\100'
5347: ;;
5348: esac
5349:
5350:
5351:
5352:
5353:
5354:
5355:
5356:
5357:
1.43 moko 5358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5359: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5360: if ${lt_cv_to_host_file_cmd+:} false; then :
5361: $as_echo_n "(cached) " >&6
1.35 moko 5362: else
5363: case $host in
5364: *-*-mingw* )
5365: case $build in
5366: *-*-mingw* ) # actually msys
5367: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5368: ;;
5369: *-*-cygwin* )
5370: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5371: ;;
5372: * ) # otherwise, assume *nix
5373: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5374: ;;
5375: esac
5376: ;;
5377: *-*-cygwin* )
5378: case $build in
5379: *-*-mingw* ) # actually msys
5380: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5381: ;;
5382: *-*-cygwin* )
5383: lt_cv_to_host_file_cmd=func_convert_file_noop
5384: ;;
5385: * ) # otherwise, assume *nix
5386: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5387: ;;
5388: esac
5389: ;;
5390: * ) # unhandled hosts (and "normal" native builds)
5391: lt_cv_to_host_file_cmd=func_convert_file_noop
5392: ;;
5393: esac
5394:
5395: fi
5396:
5397: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.43 moko 5398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5399: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.35 moko 5400:
5401:
5402:
5403:
5404:
1.43 moko 5405: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5406: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5407: if ${lt_cv_to_tool_file_cmd+:} false; then :
5408: $as_echo_n "(cached) " >&6
1.35 moko 5409: else
5410: #assume ordinary cross tools, or native build.
5411: lt_cv_to_tool_file_cmd=func_convert_file_noop
5412: case $host in
5413: *-*-mingw* )
5414: case $build in
5415: *-*-mingw* ) # actually msys
5416: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5417: ;;
5418: esac
5419: ;;
5420: esac
5421:
5422: fi
5423:
5424: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.43 moko 5425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5426: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.35 moko 5427:
5428:
5429:
5430:
5431:
1.43 moko 5432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5433: $as_echo_n "checking for $LD option to reload object files... " >&6; }
5434: if ${lt_cv_ld_reload_flag+:} false; then :
5435: $as_echo_n "(cached) " >&6
1.35 moko 5436: else
5437: lt_cv_ld_reload_flag='-r'
5438: fi
1.43 moko 5439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5440: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.35 moko 5441: reload_flag=$lt_cv_ld_reload_flag
5442: case $reload_flag in
5443: "" | " "*) ;;
5444: *) reload_flag=" $reload_flag" ;;
5445: esac
5446: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5447: case $host_os in
5448: cygwin* | mingw* | pw32* | cegcc*)
5449: if test "$GCC" != yes; then
5450: reload_cmds=false
5451: fi
5452: ;;
5453: darwin*)
5454: if test "$GCC" = yes; then
5455: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5456: else
5457: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5458: fi
5459: ;;
5460: esac
5461:
5462:
5463:
5464:
5465:
5466:
5467:
5468:
5469:
5470: if test -n "$ac_tool_prefix"; then
5471: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5472: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.43 moko 5473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474: $as_echo_n "checking for $ac_word... " >&6; }
5475: if ${ac_cv_prog_OBJDUMP+:} false; then :
5476: $as_echo_n "(cached) " >&6
1.35 moko 5477: else
5478: if test -n "$OBJDUMP"; then
5479: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5480: else
5481: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482: for as_dir in $PATH
5483: do
5484: IFS=$as_save_IFS
5485: test -z "$as_dir" && as_dir=.
1.43 moko 5486: for ac_exec_ext in '' $ac_executable_extensions; do
5487: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 5488: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.43 moko 5489: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 5490: break 2
5491: fi
5492: done
1.43 moko 5493: done
5494: IFS=$as_save_IFS
1.35 moko 5495:
5496: fi
5497: fi
5498: OBJDUMP=$ac_cv_prog_OBJDUMP
5499: if test -n "$OBJDUMP"; then
1.43 moko 5500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5501: $as_echo "$OBJDUMP" >&6; }
1.35 moko 5502: else
1.43 moko 5503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504: $as_echo "no" >&6; }
1.35 moko 5505: fi
5506:
1.43 moko 5507:
1.35 moko 5508: fi
5509: if test -z "$ac_cv_prog_OBJDUMP"; then
5510: ac_ct_OBJDUMP=$OBJDUMP
5511: # Extract the first word of "objdump", so it can be a program name with args.
5512: set dummy objdump; ac_word=$2
1.43 moko 5513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514: $as_echo_n "checking for $ac_word... " >&6; }
5515: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5516: $as_echo_n "(cached) " >&6
1.35 moko 5517: else
5518: if test -n "$ac_ct_OBJDUMP"; then
5519: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5520: else
5521: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522: for as_dir in $PATH
5523: do
5524: IFS=$as_save_IFS
5525: test -z "$as_dir" && as_dir=.
1.43 moko 5526: for ac_exec_ext in '' $ac_executable_extensions; do
5527: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 5528: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.43 moko 5529: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 5530: break 2
5531: fi
5532: done
1.43 moko 5533: done
5534: IFS=$as_save_IFS
1.35 moko 5535:
5536: fi
5537: fi
5538: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5539: if test -n "$ac_ct_OBJDUMP"; then
1.43 moko 5540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5541: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.35 moko 5542: else
1.43 moko 5543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544: $as_echo "no" >&6; }
1.35 moko 5545: fi
5546:
1.43 moko 5547: if test "x$ac_ct_OBJDUMP" = x; then
5548: OBJDUMP="false"
5549: else
5550: case $cross_compiling:$ac_tool_warned in
5551: yes:)
5552: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554: ac_tool_warned=yes ;;
5555: esac
5556: OBJDUMP=$ac_ct_OBJDUMP
5557: fi
1.35 moko 5558: else
5559: OBJDUMP="$ac_cv_prog_OBJDUMP"
5560: fi
5561:
5562: test -z "$OBJDUMP" && OBJDUMP=objdump
5563:
5564:
5565:
5566:
5567:
5568:
1.43 moko 5569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5570: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5571: if ${lt_cv_deplibs_check_method+:} false; then :
5572: $as_echo_n "(cached) " >&6
1.15 paf 5573: else
5574: lt_cv_file_magic_cmd='$MAGIC_CMD'
5575: lt_cv_file_magic_test_file=
5576: lt_cv_deplibs_check_method='unknown'
5577: # Need to set the preceding variable on all platforms that support
5578: # interlibrary dependencies.
5579: # 'none' -- dependencies not supported.
5580: # `unknown' -- same as none, but documents that we really don't know.
5581: # 'pass_all' -- all dependencies passed with no checks.
5582: # 'test_compile' -- check by making test program.
5583: # 'file_magic [[regex]]' -- check by looking for files in library path
1.35 moko 5584: # which responds to the $file_magic_cmd with a given extended regex.
1.15 paf 5585: # If you have `file' or equivalent on your system and you're not sure
5586: # whether `pass_all' will *always* work, you probably want this one.
5587:
5588: case $host_os in
1.35 moko 5589: aix[4-9]*)
1.15 paf 5590: lt_cv_deplibs_check_method=pass_all
5591: ;;
1.11 paf 5592:
1.15 paf 5593: beos*)
5594: lt_cv_deplibs_check_method=pass_all
5595: ;;
1.1 parser 5596:
1.35 moko 5597: bsdi[45]*)
1.15 paf 5598: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5599: lt_cv_file_magic_cmd='/usr/bin/file -L'
5600: lt_cv_file_magic_test_file=/shlib/libc.so
5601: ;;
1.1 parser 5602:
1.35 moko 5603: cygwin*)
5604: # func_win32_libid is a shell function defined in ltmain.sh
5605: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5606: lt_cv_file_magic_cmd='func_win32_libid'
5607: ;;
5608:
5609: mingw* | pw32*)
5610: # Base MSYS/MinGW do not provide the 'file' command needed by
5611: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5612: # unless we find 'file', for example because we are cross-compiling.
5613: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5614: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5615: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5616: lt_cv_file_magic_cmd='func_win32_libid'
5617: else
5618: # Keep this pattern in sync with the one in func_win32_libid.
5619: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5620: lt_cv_file_magic_cmd='$OBJDUMP -f'
5621: fi
5622: ;;
5623:
5624: cegcc*)
5625: # use the weaker test based on 'objdump'. See mingw*.
5626: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.15 paf 5627: lt_cv_file_magic_cmd='$OBJDUMP -f'
5628: ;;
1.1 parser 5629:
1.15 paf 5630: darwin* | rhapsody*)
1.35 moko 5631: lt_cv_deplibs_check_method=pass_all
1.15 paf 5632: ;;
1.1 parser 5633:
1.35 moko 5634: freebsd* | dragonfly*)
5635: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.15 paf 5636: case $host_cpu in
5637: i*86 )
5638: # Not sure whether the presence of OpenBSD here was a mistake.
5639: # Let's accept both of them until this is cleared up.
1.35 moko 5640: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.15 paf 5641: lt_cv_file_magic_cmd=/usr/bin/file
5642: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 5643: ;;
5644: esac
1.15 paf 5645: else
5646: lt_cv_deplibs_check_method=pass_all
1.1 parser 5647: fi
5648: ;;
5649:
1.15 paf 5650: gnu*)
5651: lt_cv_deplibs_check_method=pass_all
5652: ;;
1.1 parser 5653:
1.35 moko 5654: haiku*)
5655: lt_cv_deplibs_check_method=pass_all
1.15 paf 5656: ;;
1.1 parser 5657:
1.35 moko 5658: hpux10.20* | hpux11*)
5659: lt_cv_file_magic_cmd=/usr/bin/file
5660: case $host_cpu in
5661: ia64*)
5662: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5663: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5664: ;;
5665: hppa*64*)
5666: 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]'
5667: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.15 paf 5668: ;;
5669: *)
1.35 moko 5670: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5671: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.15 paf 5672: ;;
5673: esac
1.35 moko 5674: ;;
5675:
5676: interix[3-9]*)
5677: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5678: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5679: ;;
5680:
5681: irix5* | irix6* | nonstopux*)
5682: case $LD in
5683: *-32|*"-32 ") libmagic=32-bit;;
5684: *-n32|*"-n32 ") libmagic=N32;;
5685: *-64|*"-64 ") libmagic=64-bit;;
5686: *) libmagic=never-match;;
5687: esac
1.15 paf 5688: lt_cv_deplibs_check_method=pass_all
5689: ;;
5690:
1.35 moko 5691: # This must be glibc/ELF.
5692: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5693: lt_cv_deplibs_check_method=pass_all
1.15 paf 5694: ;;
5695:
5696: netbsd*)
1.35 moko 5697: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5698: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.15 paf 5699: else
1.35 moko 5700: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.15 paf 5701: fi
5702: ;;
5703:
5704: newos6*)
5705: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5706: lt_cv_file_magic_cmd=/usr/bin/file
5707: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5708: ;;
1.1 parser 5709:
1.35 moko 5710: *nto* | *qnx*)
5711: lt_cv_deplibs_check_method=pass_all
5712: ;;
5713:
1.15 paf 5714: openbsd*)
1.35 moko 5715: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5716: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.15 paf 5717: else
1.35 moko 5718: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 parser 5719: fi
5720: ;;
5721:
1.15 paf 5722: osf3* | osf4* | osf5*)
5723: lt_cv_deplibs_check_method=pass_all
5724: ;;
5725:
1.35 moko 5726: rdos*)
1.15 paf 5727: lt_cv_deplibs_check_method=pass_all
5728: ;;
5729:
5730: solaris*)
5731: lt_cv_deplibs_check_method=pass_all
5732: ;;
5733:
1.35 moko 5734: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.15 paf 5735: lt_cv_deplibs_check_method=pass_all
5736: ;;
5737:
1.35 moko 5738: sysv4 | sysv4.3*)
1.15 paf 5739: case $host_vendor in
5740: motorola)
5741: 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]'
5742: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5743: ;;
5744: ncr)
5745: lt_cv_deplibs_check_method=pass_all
5746: ;;
5747: sequent)
5748: lt_cv_file_magic_cmd='/bin/file'
5749: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5750: ;;
5751: sni)
5752: lt_cv_file_magic_cmd='/bin/file'
5753: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5754: lt_cv_file_magic_test_file=/lib/libc.so
5755: ;;
5756: siemens)
5757: lt_cv_deplibs_check_method=pass_all
5758: ;;
1.35 moko 5759: pc)
5760: lt_cv_deplibs_check_method=pass_all
5761: ;;
1.15 paf 5762: esac
5763: ;;
1.35 moko 5764:
5765: tpf*)
5766: lt_cv_deplibs_check_method=pass_all
5767: ;;
1.15 paf 5768: esac
5769:
5770: fi
1.43 moko 5771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5772: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.35 moko 5773:
5774: file_magic_glob=
5775: want_nocaseglob=no
5776: if test "$build" = "$host"; then
5777: case $host_os in
5778: mingw* | pw32*)
5779: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5780: want_nocaseglob=yes
5781: else
5782: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5783: fi
5784: ;;
5785: esac
5786: fi
5787:
1.15 paf 5788: file_magic_cmd=$lt_cv_file_magic_cmd
5789: deplibs_check_method=$lt_cv_deplibs_check_method
1.35 moko 5790: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5791:
5792:
1.15 paf 5793:
5794:
5795:
5796:
5797:
5798:
5799:
5800:
1.35 moko 5801:
5802:
5803:
5804:
5805:
5806:
5807:
5808:
5809:
5810:
5811:
5812:
5813: if test -n "$ac_tool_prefix"; then
5814: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5815: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.43 moko 5816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817: $as_echo_n "checking for $ac_word... " >&6; }
5818: if ${ac_cv_prog_DLLTOOL+:} false; then :
5819: $as_echo_n "(cached) " >&6
1.35 moko 5820: else
5821: if test -n "$DLLTOOL"; then
5822: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5823: else
5824: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825: for as_dir in $PATH
5826: do
5827: IFS=$as_save_IFS
5828: test -z "$as_dir" && as_dir=.
1.43 moko 5829: for ac_exec_ext in '' $ac_executable_extensions; do
5830: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 5831: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.43 moko 5832: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 5833: break 2
5834: fi
5835: done
1.43 moko 5836: done
5837: IFS=$as_save_IFS
1.35 moko 5838:
5839: fi
5840: fi
5841: DLLTOOL=$ac_cv_prog_DLLTOOL
5842: if test -n "$DLLTOOL"; then
1.43 moko 5843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5844: $as_echo "$DLLTOOL" >&6; }
1.35 moko 5845: else
1.43 moko 5846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847: $as_echo "no" >&6; }
1.35 moko 5848: fi
5849:
1.43 moko 5850:
1.35 moko 5851: fi
5852: if test -z "$ac_cv_prog_DLLTOOL"; then
5853: ac_ct_DLLTOOL=$DLLTOOL
5854: # Extract the first word of "dlltool", so it can be a program name with args.
5855: set dummy dlltool; ac_word=$2
1.43 moko 5856: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857: $as_echo_n "checking for $ac_word... " >&6; }
5858: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5859: $as_echo_n "(cached) " >&6
1.11 paf 5860: else
1.35 moko 5861: if test -n "$ac_ct_DLLTOOL"; then
5862: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5863: else
5864: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865: for as_dir in $PATH
5866: do
5867: IFS=$as_save_IFS
5868: test -z "$as_dir" && as_dir=.
1.43 moko 5869: for ac_exec_ext in '' $ac_executable_extensions; do
5870: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 5871: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.43 moko 5872: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 5873: break 2
5874: fi
5875: done
1.43 moko 5876: done
5877: IFS=$as_save_IFS
1.35 moko 5878:
5879: fi
5880: fi
5881: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5882: if test -n "$ac_ct_DLLTOOL"; then
1.43 moko 5883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5884: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.35 moko 5885: else
1.43 moko 5886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887: $as_echo "no" >&6; }
1.35 moko 5888: fi
5889:
1.43 moko 5890: if test "x$ac_ct_DLLTOOL" = x; then
5891: DLLTOOL="false"
5892: else
5893: case $cross_compiling:$ac_tool_warned in
5894: yes:)
5895: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897: ac_tool_warned=yes ;;
5898: esac
5899: DLLTOOL=$ac_ct_DLLTOOL
5900: fi
1.35 moko 5901: else
5902: DLLTOOL="$ac_cv_prog_DLLTOOL"
5903: fi
5904:
5905: test -z "$DLLTOOL" && DLLTOOL=dlltool
5906:
5907:
5908:
5909:
1.15 paf 5910:
5911:
5912:
1.43 moko 5913: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5914: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5915: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5916: $as_echo_n "(cached) " >&6
1.35 moko 5917: else
5918: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.15 paf 5919:
5920: case $host_os in
1.35 moko 5921: cygwin* | mingw* | pw32* | cegcc*)
5922: # two different shell functions defined in ltmain.sh
5923: # decide which to use based on capabilities of $DLLTOOL
5924: case `$DLLTOOL --help 2>&1` in
5925: *--identify-strict*)
5926: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5927: ;;
5928: *)
5929: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5930: ;;
5931: esac
1.15 paf 5932: ;;
1.35 moko 5933: *)
5934: # fallback: assume linklib IS sharedlib
5935: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.15 paf 5936: ;;
5937: esac
5938:
5939: fi
1.43 moko 5940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5941: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.35 moko 5942: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5943: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.15 paf 5944:
5945:
5946:
5947:
5948:
5949:
5950:
5951:
1.35 moko 5952: if test -n "$ac_tool_prefix"; then
5953: for ac_prog in ar
5954: do
5955: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5956: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.43 moko 5957: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958: $as_echo_n "checking for $ac_word... " >&6; }
5959: if ${ac_cv_prog_AR+:} false; then :
5960: $as_echo_n "(cached) " >&6
1.35 moko 5961: else
5962: if test -n "$AR"; then
5963: ac_cv_prog_AR="$AR" # Let the user override the test.
5964: else
5965: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966: for as_dir in $PATH
5967: do
5968: IFS=$as_save_IFS
5969: test -z "$as_dir" && as_dir=.
1.43 moko 5970: for ac_exec_ext in '' $ac_executable_extensions; do
5971: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 5972: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.43 moko 5973: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 5974: break 2
1.15 paf 5975: fi
1.35 moko 5976: done
1.43 moko 5977: done
5978: IFS=$as_save_IFS
1.15 paf 5979:
1.11 paf 5980: fi
5981: fi
1.35 moko 5982: AR=$ac_cv_prog_AR
5983: if test -n "$AR"; then
1.43 moko 5984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5985: $as_echo "$AR" >&6; }
1.11 paf 5986: else
1.43 moko 5987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988: $as_echo "no" >&6; }
1.11 paf 5989: fi
5990:
1.43 moko 5991:
1.35 moko 5992: test -n "$AR" && break
5993: done
1.24 paf 5994: fi
1.35 moko 5995: if test -z "$AR"; then
5996: ac_ct_AR=$AR
5997: for ac_prog in ar
5998: do
5999: # Extract the first word of "$ac_prog", so it can be a program name with args.
6000: set dummy $ac_prog; ac_word=$2
1.43 moko 6001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002: $as_echo_n "checking for $ac_word... " >&6; }
6003: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6004: $as_echo_n "(cached) " >&6
1.11 paf 6005: else
1.35 moko 6006: if test -n "$ac_ct_AR"; then
6007: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6008: else
6009: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010: for as_dir in $PATH
1.15 paf 6011: do
1.35 moko 6012: IFS=$as_save_IFS
6013: test -z "$as_dir" && as_dir=.
1.43 moko 6014: for ac_exec_ext in '' $ac_executable_extensions; do
6015: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 6016: ac_cv_prog_ac_ct_AR="$ac_prog"
1.43 moko 6017: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 6018: break 2
1.15 paf 6019: fi
1.35 moko 6020: done
1.43 moko 6021: done
6022: IFS=$as_save_IFS
1.15 paf 6023:
1.11 paf 6024: fi
6025: fi
1.35 moko 6026: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6027: if test -n "$ac_ct_AR"; then
1.43 moko 6028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6029: $as_echo "$ac_ct_AR" >&6; }
1.15 paf 6030: else
1.43 moko 6031: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032: $as_echo "no" >&6; }
1.11 paf 6033: fi
6034:
1.43 moko 6035:
1.35 moko 6036: test -n "$ac_ct_AR" && break
1.15 paf 6037: done
1.35 moko 6038:
1.43 moko 6039: if test "x$ac_ct_AR" = x; then
6040: AR="false"
6041: else
6042: case $cross_compiling:$ac_tool_warned in
6043: yes:)
6044: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046: ac_tool_warned=yes ;;
6047: esac
6048: AR=$ac_ct_AR
6049: fi
1.11 paf 6050: fi
1.15 paf 6051:
1.35 moko 6052: : ${AR=ar}
6053: : ${AR_FLAGS=cru}
6054:
1.15 paf 6055:
6056:
1.11 paf 6057:
1.15 paf 6058:
1.11 paf 6059:
6060:
1.15 paf 6061:
1.11 paf 6062:
1.15 paf 6063:
6064:
1.43 moko 6065: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6066: $as_echo_n "checking for archiver @FILE support... " >&6; }
6067: if ${lt_cv_ar_at_file+:} false; then :
6068: $as_echo_n "(cached) " >&6
1.15 paf 6069: else
1.35 moko 6070: lt_cv_ar_at_file=no
1.43 moko 6071: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 6072: /* end confdefs.h. */
6073:
6074: int
6075: main ()
6076: {
6077:
6078: ;
6079: return 0;
6080: }
6081: _ACEOF
1.43 moko 6082: if ac_fn_c_try_compile "$LINENO"; then :
1.35 moko 6083: echo conftest.$ac_objext > conftest.lst
6084: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.43 moko 6085: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.35 moko 6086: (eval $lt_ar_try) 2>&5
6087: ac_status=$?
1.43 moko 6088: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089: test $ac_status = 0; }
1.35 moko 6090: if test "$ac_status" -eq 0; then
6091: # Ensure the archiver fails upon bogus file names.
6092: rm -f conftest.$ac_objext libconftest.a
1.43 moko 6093: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.35 moko 6094: (eval $lt_ar_try) 2>&5
6095: ac_status=$?
1.43 moko 6096: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097: test $ac_status = 0; }
1.35 moko 6098: if test "$ac_status" -ne 0; then
6099: lt_cv_ar_at_file=@
6100: fi
6101: fi
6102: rm -f conftest.* libconftest.a
6103:
1.11 paf 6104: fi
1.43 moko 6105: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 6106:
1.35 moko 6107: fi
1.43 moko 6108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6109: $as_echo "$lt_cv_ar_at_file" >&6; }
1.35 moko 6110:
6111: if test "x$lt_cv_ar_at_file" = xno; then
6112: archiver_list_spec=
1.11 paf 6113: else
1.35 moko 6114: archiver_list_spec=$lt_cv_ar_at_file
1.11 paf 6115: fi
1.15 paf 6116:
1.11 paf 6117:
1.1 parser 6118:
1.35 moko 6119:
6120:
6121:
6122:
6123: if test -n "$ac_tool_prefix"; then
6124: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6125: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.43 moko 6126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127: $as_echo_n "checking for $ac_word... " >&6; }
6128: if ${ac_cv_prog_STRIP+:} false; then :
6129: $as_echo_n "(cached) " >&6
1.35 moko 6130: else
6131: if test -n "$STRIP"; then
6132: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6133: else
6134: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135: for as_dir in $PATH
6136: do
6137: IFS=$as_save_IFS
6138: test -z "$as_dir" && as_dir=.
1.43 moko 6139: for ac_exec_ext in '' $ac_executable_extensions; do
6140: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 6141: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.43 moko 6142: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 6143: break 2
6144: fi
6145: done
1.43 moko 6146: done
6147: IFS=$as_save_IFS
1.35 moko 6148:
6149: fi
6150: fi
6151: STRIP=$ac_cv_prog_STRIP
6152: if test -n "$STRIP"; then
1.43 moko 6153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6154: $as_echo "$STRIP" >&6; }
1.1 parser 6155: else
1.43 moko 6156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157: $as_echo "no" >&6; }
1.1 parser 6158: fi
6159:
1.43 moko 6160:
1.15 paf 6161: fi
1.35 moko 6162: if test -z "$ac_cv_prog_STRIP"; then
6163: ac_ct_STRIP=$STRIP
6164: # Extract the first word of "strip", so it can be a program name with args.
6165: set dummy strip; ac_word=$2
1.43 moko 6166: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167: $as_echo_n "checking for $ac_word... " >&6; }
6168: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6169: $as_echo_n "(cached) " >&6
1.15 paf 6170: else
1.35 moko 6171: if test -n "$ac_ct_STRIP"; then
6172: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 6173: else
1.35 moko 6174: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175: for as_dir in $PATH
6176: do
6177: IFS=$as_save_IFS
6178: test -z "$as_dir" && as_dir=.
1.43 moko 6179: for ac_exec_ext in '' $ac_executable_extensions; do
6180: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 6181: ac_cv_prog_ac_ct_STRIP="strip"
1.43 moko 6182: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 6183: break 2
6184: fi
6185: done
1.43 moko 6186: done
6187: IFS=$as_save_IFS
1.15 paf 6188:
1.1 parser 6189: fi
1.15 paf 6190: fi
1.35 moko 6191: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6192: if test -n "$ac_ct_STRIP"; then
1.43 moko 6193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6194: $as_echo "$ac_ct_STRIP" >&6; }
1.35 moko 6195: else
1.43 moko 6196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197: $as_echo "no" >&6; }
1.15 paf 6198: fi
1.1 parser 6199:
1.43 moko 6200: if test "x$ac_ct_STRIP" = x; then
6201: STRIP=":"
6202: else
6203: case $cross_compiling:$ac_tool_warned in
6204: yes:)
6205: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207: ac_tool_warned=yes ;;
6208: esac
6209: STRIP=$ac_ct_STRIP
6210: fi
1.35 moko 6211: else
6212: STRIP="$ac_cv_prog_STRIP"
1.15 paf 6213: fi
1.1 parser 6214:
1.35 moko 6215: test -z "$STRIP" && STRIP=:
1.1 parser 6216:
6217:
6218:
6219:
6220:
6221:
1.35 moko 6222: if test -n "$ac_tool_prefix"; then
6223: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6224: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.43 moko 6225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226: $as_echo_n "checking for $ac_word... " >&6; }
6227: if ${ac_cv_prog_RANLIB+:} false; then :
6228: $as_echo_n "(cached) " >&6
1.15 paf 6229: else
1.35 moko 6230: if test -n "$RANLIB"; then
6231: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.15 paf 6232: else
1.35 moko 6233: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234: for as_dir in $PATH
6235: do
6236: IFS=$as_save_IFS
6237: test -z "$as_dir" && as_dir=.
1.43 moko 6238: for ac_exec_ext in '' $ac_executable_extensions; do
6239: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 6240: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.43 moko 6241: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 6242: break 2
6243: fi
6244: done
1.43 moko 6245: done
6246: IFS=$as_save_IFS
1.15 paf 6247:
6248: fi
6249: fi
1.35 moko 6250: RANLIB=$ac_cv_prog_RANLIB
6251: if test -n "$RANLIB"; then
1.43 moko 6252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6253: $as_echo "$RANLIB" >&6; }
1.35 moko 6254: else
1.43 moko 6255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256: $as_echo "no" >&6; }
1.35 moko 6257: fi
1.15 paf 6258:
1.43 moko 6259:
1.15 paf 6260: fi
1.35 moko 6261: if test -z "$ac_cv_prog_RANLIB"; then
6262: ac_ct_RANLIB=$RANLIB
6263: # Extract the first word of "ranlib", so it can be a program name with args.
6264: set dummy ranlib; ac_word=$2
1.43 moko 6265: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266: $as_echo_n "checking for $ac_word... " >&6; }
6267: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6268: $as_echo_n "(cached) " >&6
1.35 moko 6269: else
6270: if test -n "$ac_ct_RANLIB"; then
6271: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6272: else
6273: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274: for as_dir in $PATH
6275: do
6276: IFS=$as_save_IFS
6277: test -z "$as_dir" && as_dir=.
1.43 moko 6278: for ac_exec_ext in '' $ac_executable_extensions; do
6279: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 6280: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.43 moko 6281: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 6282: break 2
6283: fi
6284: done
1.43 moko 6285: done
6286: IFS=$as_save_IFS
1.15 paf 6287:
1.35 moko 6288: fi
1.15 paf 6289: fi
1.35 moko 6290: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6291: if test -n "$ac_ct_RANLIB"; then
1.43 moko 6292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6293: $as_echo "$ac_ct_RANLIB" >&6; }
1.15 paf 6294: else
1.43 moko 6295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296: $as_echo "no" >&6; }
1.15 paf 6297: fi
6298:
1.43 moko 6299: if test "x$ac_ct_RANLIB" = x; then
6300: RANLIB=":"
6301: else
6302: case $cross_compiling:$ac_tool_warned in
6303: yes:)
6304: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306: ac_tool_warned=yes ;;
6307: esac
6308: RANLIB=$ac_ct_RANLIB
6309: fi
1.15 paf 6310: else
1.35 moko 6311: RANLIB="$ac_cv_prog_RANLIB"
1.15 paf 6312: fi
6313:
1.35 moko 6314: test -z "$RANLIB" && RANLIB=:
6315:
6316:
6317:
6318:
6319:
6320:
6321: # Determine commands to create old-style static archives.
6322: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6323: old_postinstall_cmds='chmod 644 $oldlib'
6324: old_postuninstall_cmds=
1.15 paf 6325:
1.35 moko 6326: if test -n "$RANLIB"; then
6327: case $host_os in
6328: openbsd*)
6329: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.15 paf 6330: ;;
1.35 moko 6331: *)
6332: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.15 paf 6333: ;;
1.35 moko 6334: esac
6335: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6336: fi
6337:
6338: case $host_os in
6339: darwin*)
6340: lock_old_archive_extraction=yes ;;
6341: *)
6342: lock_old_archive_extraction=no ;;
1.15 paf 6343: esac
6344:
6345:
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353:
6354:
6355:
6356:
6357:
6358:
6359:
6360:
1.1 parser 6361:
6362:
1.15 paf 6363:
6364:
6365:
6366:
6367:
6368:
1.1 parser 6369:
6370:
6371:
1.15 paf 6372:
6373:
6374:
6375:
6376:
6377:
1.35 moko 6378:
6379:
6380:
6381:
6382:
6383: # If no C compiler was specified, use CC.
6384: LTCC=${LTCC-"$CC"}
6385:
6386: # If no C compiler flags were specified, use CFLAGS.
6387: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6388:
6389: # Allow CC to be a program name with arguments.
6390: compiler=$CC
6391:
6392:
6393: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.43 moko 6394: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6395: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6396: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6397: $as_echo_n "(cached) " >&6
1.1 parser 6398: else
6399:
1.35 moko 6400: # These are sane defaults that work on at least a few old systems.
6401: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.15 paf 6402:
1.35 moko 6403: # Character class describing NM global symbol codes.
6404: symcode='[BCDEGRST]'
1.15 paf 6405:
1.35 moko 6406: # Regexp to match symbols that can be accessed directly from C.
6407: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.15 paf 6408:
1.35 moko 6409: # Define system-specific variables.
6410: case $host_os in
6411: aix*)
6412: symcode='[BCDT]'
6413: ;;
6414: cygwin* | mingw* | pw32* | cegcc*)
6415: symcode='[ABCDGISTW]'
6416: ;;
6417: hpux*)
6418: if test "$host_cpu" = ia64; then
6419: symcode='[ABCDEGRST]'
6420: fi
6421: ;;
6422: irix* | nonstopux*)
6423: symcode='[BCDEGRST]'
6424: ;;
6425: osf*)
6426: symcode='[BCDEGQRST]'
6427: ;;
6428: solaris*)
6429: symcode='[BDRT]'
6430: ;;
6431: sco3.2v5*)
6432: symcode='[DT]'
6433: ;;
6434: sysv4.2uw2*)
6435: symcode='[DT]'
6436: ;;
6437: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6438: symcode='[ABDT]'
6439: ;;
6440: sysv4)
6441: symcode='[DFNSTU]'
6442: ;;
6443: esac
6444:
6445: # If we're using GNU nm, then use its standard symbol codes.
6446: case `$NM -V 2>&1` in
6447: *GNU* | *'with BFD'*)
6448: symcode='[ABCDGIRSTW]' ;;
6449: esac
6450:
6451: # Transform an extracted symbol line into a proper C declaration.
6452: # Some systems (esp. on ia64) link data and code symbols differently,
6453: # so use this general approach.
6454: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6455:
6456: # Transform an extracted symbol line into symbol name and symbol address
6457: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6458: 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'"
6459:
6460: # Handle CRLF in mingw tool chain
6461: opt_cr=
6462: case $build_os in
6463: mingw*)
6464: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6465: ;;
6466: esac
6467:
6468: # Try without a prefix underscore, then with it.
6469: for ac_symprfx in "" "_"; do
6470:
6471: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6472: symxfrm="\\1 $ac_symprfx\\2 \\2"
6473:
6474: # Write the raw and C identifiers.
6475: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6476: # Fake it for dumpbin and say T for any non-static function
6477: # and D for any global variable.
6478: # Also find C++ and __fastcall symbols from MSVC++,
6479: # which start with @ or ?.
6480: lt_cv_sys_global_symbol_pipe="$AWK '"\
6481: " {last_section=section; section=\$ 3};"\
6482: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6483: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6484: " \$ 0!~/External *\|/{next};"\
6485: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6486: " {if(hide[section]) next};"\
6487: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6488: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6489: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6490: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6491: " ' prfx=^$ac_symprfx"
6492: else
6493: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6494: fi
6495: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6496:
6497: # Check to see that the pipe works correctly.
6498: pipe_works=no
1.15 paf 6499:
1.35 moko 6500: rm -f conftest*
6501: cat > conftest.$ac_ext <<_LT_EOF
6502: #ifdef __cplusplus
6503: extern "C" {
6504: #endif
6505: char nm_test_var;
6506: void nm_test_func(void);
6507: void nm_test_func(void){}
6508: #ifdef __cplusplus
1.15 paf 6509: }
1.35 moko 6510: #endif
6511: int main(){nm_test_var='a';nm_test_func();return(0);}
6512: _LT_EOF
6513:
1.43 moko 6514: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.35 moko 6515: (eval $ac_compile) 2>&5
1.15 paf 6516: ac_status=$?
1.43 moko 6517: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6518: test $ac_status = 0; }; then
1.35 moko 6519: # Now try to grab the symbols.
6520: nlist=conftest.nm
1.43 moko 6521: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.35 moko 6522: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.25 paf 6523: ac_status=$?
1.43 moko 6524: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6525: test $ac_status = 0; } && test -s "$nlist"; then
1.35 moko 6526: # Try sorting and uniquifying the output.
6527: if sort "$nlist" | uniq > "$nlist"T; then
6528: mv -f "$nlist"T "$nlist"
6529: else
6530: rm -f "$nlist"T
6531: fi
6532:
6533: # Make sure that we snagged all the symbols we need.
6534: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6535: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6536: cat <<_LT_EOF > conftest.$ac_ext
6537: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6538: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6539: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6540: relocations are performed -- see ld's documentation on pseudo-relocs. */
6541: # define LT_DLSYM_CONST
6542: #elif defined(__osf__)
6543: /* This system does not cope well with relocations in const data. */
6544: # define LT_DLSYM_CONST
6545: #else
6546: # define LT_DLSYM_CONST const
6547: #endif
6548:
6549: #ifdef __cplusplus
6550: extern "C" {
6551: #endif
6552:
6553: _LT_EOF
6554: # Now generate the symbol file.
6555: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6556:
6557: cat <<_LT_EOF >> conftest.$ac_ext
6558:
6559: /* The mapping between symbol names and symbols. */
6560: LT_DLSYM_CONST struct {
6561: const char *name;
6562: void *address;
6563: }
6564: lt__PROGRAM__LTX_preloaded_symbols[] =
6565: {
6566: { "@PROGRAM@", (void *) 0 },
6567: _LT_EOF
6568: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6569: cat <<\_LT_EOF >> conftest.$ac_ext
6570: {0, (void *) 0}
6571: };
6572:
6573: /* This works around a problem in FreeBSD linker */
6574: #ifdef FREEBSD_WORKAROUND
6575: static const void *lt_preloaded_setup() {
6576: return lt__PROGRAM__LTX_preloaded_symbols;
6577: }
6578: #endif
6579:
6580: #ifdef __cplusplus
6581: }
6582: #endif
6583: _LT_EOF
6584: # Now try linking the two files.
6585: mv conftest.$ac_objext conftstm.$ac_objext
6586: lt_globsym_save_LIBS=$LIBS
6587: lt_globsym_save_CFLAGS=$CFLAGS
6588: LIBS="conftstm.$ac_objext"
6589: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.43 moko 6590: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.35 moko 6591: (eval $ac_link) 2>&5
1.15 paf 6592: ac_status=$?
1.43 moko 6593: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6594: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.35 moko 6595: pipe_works=yes
6596: fi
6597: LIBS=$lt_globsym_save_LIBS
6598: CFLAGS=$lt_globsym_save_CFLAGS
6599: else
6600: echo "cannot find nm_test_func in $nlist" >&5
6601: fi
6602: else
6603: echo "cannot find nm_test_var in $nlist" >&5
6604: fi
6605: else
6606: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6607: fi
6608: else
6609: echo "$progname: failed program was:" >&5
6610: cat conftest.$ac_ext >&5
6611: fi
6612: rm -rf conftest* conftst*
6613:
6614: # Do not use the global_symbol_pipe unless it works.
6615: if test "$pipe_works" = yes; then
6616: break
6617: else
6618: lt_cv_sys_global_symbol_pipe=
6619: fi
6620: done
6621:
6622: fi
6623:
6624: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6625: lt_cv_sys_global_symbol_to_cdecl=
6626: fi
6627: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.43 moko 6628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6629: $as_echo "failed" >&6; }
1.1 parser 6630: else
1.43 moko 6631: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6632: $as_echo "ok" >&6; }
1.35 moko 6633: fi
1.15 paf 6634:
1.35 moko 6635: # Response file support.
6636: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6637: nm_file_list_spec='@'
6638: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6639: nm_file_list_spec='@'
1.1 parser 6640: fi
6641:
1.15 paf 6642:
6643:
6644:
6645:
6646:
6647:
6648:
6649:
6650:
6651:
1.1 parser 6652:
6653:
1.15 paf 6654:
6655:
6656:
1.1 parser 6657:
1.15 paf 6658:
6659:
6660:
6661:
1.35 moko 6662:
6663:
6664:
6665:
6666:
6667:
1.43 moko 6668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6669: $as_echo_n "checking for sysroot... " >&6; }
1.35 moko 6670:
1.43 moko 6671: # Check whether --with-sysroot was given.
6672: if test "${with_sysroot+set}" = set; then :
6673: withval=$with_sysroot;
1.15 paf 6674: else
1.35 moko 6675: with_sysroot=no
1.43 moko 6676: fi
6677:
1.15 paf 6678:
1.35 moko 6679: lt_sysroot=
6680: case ${with_sysroot} in #(
6681: yes)
6682: if test "$GCC" = yes; then
6683: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6684: fi
6685: ;; #(
6686: /*)
6687: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6688: ;; #(
6689: no|'')
6690: ;; #(
6691: *)
1.43 moko 6692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6693: $as_echo "${with_sysroot}" >&6; }
6694: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.35 moko 6695: ;;
6696: esac
6697:
1.43 moko 6698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6699: $as_echo "${lt_sysroot:-no}" >&6; }
1.35 moko 6700:
6701:
6702:
6703:
6704:
1.43 moko 6705: # Check whether --enable-libtool-lock was given.
6706: if test "${enable_libtool_lock+set}" = set; then :
6707: enableval=$enable_libtool_lock;
6708: fi
1.15 paf 6709:
1.35 moko 6710: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 parser 6711:
1.35 moko 6712: # Some flags need to be propagated to the compiler or linker for good
6713: # libtool support.
6714: case $host in
6715: ia64-*-hpux*)
6716: # Find out which ABI we are using.
6717: echo 'int i;' > conftest.$ac_ext
1.43 moko 6718: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.35 moko 6719: (eval $ac_compile) 2>&5
6720: ac_status=$?
1.43 moko 6721: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722: test $ac_status = 0; }; then
1.35 moko 6723: case `/usr/bin/file conftest.$ac_objext` in
6724: *ELF-32*)
6725: HPUX_IA64_MODE="32"
6726: ;;
6727: *ELF-64*)
6728: HPUX_IA64_MODE="64"
6729: ;;
1.15 paf 6730: esac
6731: fi
1.35 moko 6732: rm -rf conftest*
6733: ;;
6734: *-*-irix6*)
6735: # Find out which ABI we are using.
6736: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.43 moko 6737: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.35 moko 6738: (eval $ac_compile) 2>&5
1.15 paf 6739: ac_status=$?
1.43 moko 6740: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741: test $ac_status = 0; }; then
1.35 moko 6742: if test "$lt_cv_prog_gnu_ld" = yes; then
6743: case `/usr/bin/file conftest.$ac_objext` in
6744: *32-bit*)
6745: LD="${LD-ld} -melf32bsmip"
6746: ;;
6747: *N32*)
6748: LD="${LD-ld} -melf32bmipn32"
6749: ;;
6750: *64-bit*)
6751: LD="${LD-ld} -melf64bmip"
6752: ;;
6753: esac
6754: else
6755: case `/usr/bin/file conftest.$ac_objext` in
6756: *32-bit*)
6757: LD="${LD-ld} -32"
6758: ;;
6759: *N32*)
6760: LD="${LD-ld} -n32"
6761: ;;
6762: *64-bit*)
6763: LD="${LD-ld} -64"
6764: ;;
6765: esac
6766: fi
6767: fi
6768: rm -rf conftest*
6769: ;;
6770:
6771: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6772: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6773: # Find out which ABI we are using.
6774: echo 'int i;' > conftest.$ac_ext
1.43 moko 6775: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.35 moko 6776: (eval $ac_compile) 2>&5
1.25 paf 6777: ac_status=$?
1.43 moko 6778: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779: test $ac_status = 0; }; then
1.35 moko 6780: case `/usr/bin/file conftest.o` in
6781: *32-bit*)
6782: case $host in
6783: x86_64-*kfreebsd*-gnu)
6784: LD="${LD-ld} -m elf_i386_fbsd"
6785: ;;
6786: x86_64-*linux*)
6787: LD="${LD-ld} -m elf_i386"
6788: ;;
6789: ppc64-*linux*|powerpc64-*linux*)
6790: LD="${LD-ld} -m elf32ppclinux"
6791: ;;
6792: s390x-*linux*)
6793: LD="${LD-ld} -m elf_s390"
6794: ;;
6795: sparc64-*linux*)
6796: LD="${LD-ld} -m elf32_sparc"
6797: ;;
6798: esac
1.15 paf 6799: ;;
1.35 moko 6800: *64-bit*)
6801: case $host in
6802: x86_64-*kfreebsd*-gnu)
6803: LD="${LD-ld} -m elf_x86_64_fbsd"
6804: ;;
6805: x86_64-*linux*)
6806: LD="${LD-ld} -m elf_x86_64"
6807: ;;
6808: ppc*-*linux*|powerpc*-*linux*)
6809: LD="${LD-ld} -m elf64ppc"
6810: ;;
6811: s390*-*linux*|s390*-*tpf*)
6812: LD="${LD-ld} -m elf64_s390"
6813: ;;
6814: sparc*-*linux*)
6815: LD="${LD-ld} -m elf64_sparc"
6816: ;;
6817: esac
1.15 paf 6818: ;;
1.35 moko 6819: esac
1.15 paf 6820: fi
1.35 moko 6821: rm -rf conftest*
6822: ;;
1.15 paf 6823:
1.35 moko 6824: *-*-sco3.2v5*)
6825: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6826: SAVE_CFLAGS="$CFLAGS"
6827: CFLAGS="$CFLAGS -belf"
1.43 moko 6828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6829: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6830: if ${lt_cv_cc_needs_belf+:} false; then :
6831: $as_echo_n "(cached) " >&6
1.15 paf 6832: else
1.35 moko 6833: ac_ext=c
6834: ac_cpp='$CPP $CPPFLAGS'
6835: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6838:
1.43 moko 6839: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 6840: /* end confdefs.h. */
6841:
6842: int
6843: main ()
6844: {
6845:
6846: ;
6847: return 0;
6848: }
6849: _ACEOF
1.43 moko 6850: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 6851: lt_cv_cc_needs_belf=yes
1.15 paf 6852: else
1.43 moko 6853: lt_cv_cc_needs_belf=no
1.15 paf 6854: fi
1.43 moko 6855: rm -f core conftest.err conftest.$ac_objext \
6856: conftest$ac_exeext conftest.$ac_ext
1.35 moko 6857: ac_ext=c
6858: ac_cpp='$CPP $CPPFLAGS'
6859: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6860: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6861: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 6862:
6863: fi
1.43 moko 6864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6865: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.35 moko 6866: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6867: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6868: CFLAGS="$SAVE_CFLAGS"
6869: fi
6870: ;;
6871: *-*solaris*)
6872: # Find out which ABI we are using.
6873: echo 'int i;' > conftest.$ac_ext
1.43 moko 6874: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.35 moko 6875: (eval $ac_compile) 2>&5
6876: ac_status=$?
1.43 moko 6877: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6878: test $ac_status = 0; }; then
1.35 moko 6879: case `/usr/bin/file conftest.o` in
6880: *64-bit*)
6881: case $lt_cv_prog_gnu_ld in
6882: yes*)
6883: case $host in
6884: i?86-*-solaris*)
6885: LD="${LD-ld} -m elf_x86_64"
6886: ;;
6887: sparc*-*-solaris*)
6888: LD="${LD-ld} -m elf64_sparc"
6889: ;;
6890: esac
6891: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6892: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6893: LD="${LD-ld}_sol2"
6894: fi
6895: ;;
6896: *)
6897: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6898: LD="${LD-ld} -64"
6899: fi
6900: ;;
6901: esac
6902: ;;
6903: esac
6904: fi
6905: rm -rf conftest*
6906: ;;
6907: esac
1.15 paf 6908:
1.35 moko 6909: need_locks="$enable_libtool_lock"
1.15 paf 6910:
1.35 moko 6911: if test -n "$ac_tool_prefix"; then
6912: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6913: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.43 moko 6914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915: $as_echo_n "checking for $ac_word... " >&6; }
6916: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6917: $as_echo_n "(cached) " >&6
1.15 paf 6918: else
1.35 moko 6919: if test -n "$MANIFEST_TOOL"; then
6920: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6921: else
6922: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923: for as_dir in $PATH
6924: do
6925: IFS=$as_save_IFS
6926: test -z "$as_dir" && as_dir=.
1.43 moko 6927: for ac_exec_ext in '' $ac_executable_extensions; do
6928: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 6929: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.43 moko 6930: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 6931: break 2
6932: fi
6933: done
1.43 moko 6934: done
6935: IFS=$as_save_IFS
1.15 paf 6936:
1.35 moko 6937: fi
6938: fi
6939: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6940: if test -n "$MANIFEST_TOOL"; then
1.43 moko 6941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6942: $as_echo "$MANIFEST_TOOL" >&6; }
1.15 paf 6943: else
1.43 moko 6944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945: $as_echo "no" >&6; }
1.15 paf 6946: fi
6947:
1.43 moko 6948:
1.15 paf 6949: fi
1.35 moko 6950: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6951: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6952: # Extract the first word of "mt", so it can be a program name with args.
6953: set dummy mt; ac_word=$2
1.43 moko 6954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955: $as_echo_n "checking for $ac_word... " >&6; }
6956: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6957: $as_echo_n "(cached) " >&6
1.35 moko 6958: else
6959: if test -n "$ac_ct_MANIFEST_TOOL"; then
6960: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6961: else
6962: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963: for as_dir in $PATH
6964: do
6965: IFS=$as_save_IFS
6966: test -z "$as_dir" && as_dir=.
1.43 moko 6967: for ac_exec_ext in '' $ac_executable_extensions; do
6968: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 6969: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.43 moko 6970: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 6971: break 2
6972: fi
6973: done
1.43 moko 6974: done
6975: IFS=$as_save_IFS
1.15 paf 6976:
1.35 moko 6977: fi
6978: fi
6979: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6980: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.43 moko 6981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6982: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.35 moko 6983: else
1.43 moko 6984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985: $as_echo "no" >&6; }
1.35 moko 6986: fi
6987:
1.43 moko 6988: if test "x$ac_ct_MANIFEST_TOOL" = x; then
6989: MANIFEST_TOOL=":"
6990: else
6991: case $cross_compiling:$ac_tool_warned in
6992: yes:)
6993: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995: ac_tool_warned=yes ;;
6996: esac
6997: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6998: fi
1.35 moko 6999: else
7000: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7001: fi
1.15 paf 7002:
1.35 moko 7003: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.43 moko 7004: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7005: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7006: if ${lt_cv_path_mainfest_tool+:} false; then :
7007: $as_echo_n "(cached) " >&6
1.15 paf 7008: else
1.35 moko 7009: lt_cv_path_mainfest_tool=no
7010: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7011: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7012: cat conftest.err >&5
7013: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7014: lt_cv_path_mainfest_tool=yes
7015: fi
7016: rm -f conftest*
7017: fi
1.43 moko 7018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7019: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.35 moko 7020: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7021: MANIFEST_TOOL=:
7022: fi
7023:
7024:
7025:
1.15 paf 7026:
7027:
7028:
1.35 moko 7029: case $host_os in
7030: rhapsody* | darwin*)
7031: if test -n "$ac_tool_prefix"; then
7032: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7033: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.43 moko 7034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035: $as_echo_n "checking for $ac_word... " >&6; }
7036: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7037: $as_echo_n "(cached) " >&6
1.15 paf 7038: else
1.35 moko 7039: if test -n "$DSYMUTIL"; then
7040: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7041: else
7042: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043: for as_dir in $PATH
7044: do
7045: IFS=$as_save_IFS
7046: test -z "$as_dir" && as_dir=.
1.43 moko 7047: for ac_exec_ext in '' $ac_executable_extensions; do
7048: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 7049: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.43 moko 7050: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 7051: break 2
7052: fi
7053: done
1.43 moko 7054: done
7055: IFS=$as_save_IFS
1.15 paf 7056:
7057: fi
1.35 moko 7058: fi
7059: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7060: if test -n "$DSYMUTIL"; then
1.43 moko 7061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7062: $as_echo "$DSYMUTIL" >&6; }
1.35 moko 7063: else
1.43 moko 7064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065: $as_echo "no" >&6; }
1.35 moko 7066: fi
1.15 paf 7067:
1.43 moko 7068:
1.15 paf 7069: fi
1.35 moko 7070: if test -z "$ac_cv_prog_DSYMUTIL"; then
7071: ac_ct_DSYMUTIL=$DSYMUTIL
7072: # Extract the first word of "dsymutil", so it can be a program name with args.
7073: set dummy dsymutil; ac_word=$2
1.43 moko 7074: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075: $as_echo_n "checking for $ac_word... " >&6; }
7076: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7077: $as_echo_n "(cached) " >&6
1.35 moko 7078: else
7079: if test -n "$ac_ct_DSYMUTIL"; then
7080: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7081: else
7082: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083: for as_dir in $PATH
7084: do
7085: IFS=$as_save_IFS
7086: test -z "$as_dir" && as_dir=.
1.43 moko 7087: for ac_exec_ext in '' $ac_executable_extensions; do
7088: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 7089: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.43 moko 7090: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 7091: break 2
7092: fi
7093: done
1.43 moko 7094: done
7095: IFS=$as_save_IFS
1.15 paf 7096:
1.35 moko 7097: fi
7098: fi
7099: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7100: if test -n "$ac_ct_DSYMUTIL"; then
1.43 moko 7101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7102: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.15 paf 7103: else
1.43 moko 7104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105: $as_echo "no" >&6; }
1.15 paf 7106: fi
7107:
1.43 moko 7108: if test "x$ac_ct_DSYMUTIL" = x; then
7109: DSYMUTIL=":"
7110: else
7111: case $cross_compiling:$ac_tool_warned in
7112: yes:)
7113: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7114: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7115: ac_tool_warned=yes ;;
7116: esac
7117: DSYMUTIL=$ac_ct_DSYMUTIL
7118: fi
1.15 paf 7119: else
1.35 moko 7120: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.15 paf 7121: fi
7122:
1.35 moko 7123: if test -n "$ac_tool_prefix"; then
7124: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7125: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.43 moko 7126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127: $as_echo_n "checking for $ac_word... " >&6; }
7128: if ${ac_cv_prog_NMEDIT+:} false; then :
7129: $as_echo_n "(cached) " >&6
1.35 moko 7130: else
7131: if test -n "$NMEDIT"; then
7132: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7133: else
7134: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135: for as_dir in $PATH
7136: do
7137: IFS=$as_save_IFS
7138: test -z "$as_dir" && as_dir=.
1.43 moko 7139: for ac_exec_ext in '' $ac_executable_extensions; do
7140: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 7141: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.43 moko 7142: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 7143: break 2
7144: fi
7145: done
1.43 moko 7146: done
7147: IFS=$as_save_IFS
1.15 paf 7148:
1.35 moko 7149: fi
7150: fi
7151: NMEDIT=$ac_cv_prog_NMEDIT
7152: if test -n "$NMEDIT"; then
1.43 moko 7153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7154: $as_echo "$NMEDIT" >&6; }
1.35 moko 7155: else
1.43 moko 7156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157: $as_echo "no" >&6; }
1.35 moko 7158: fi
1.15 paf 7159:
1.43 moko 7160:
1.35 moko 7161: fi
7162: if test -z "$ac_cv_prog_NMEDIT"; then
7163: ac_ct_NMEDIT=$NMEDIT
7164: # Extract the first word of "nmedit", so it can be a program name with args.
7165: set dummy nmedit; ac_word=$2
1.43 moko 7166: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167: $as_echo_n "checking for $ac_word... " >&6; }
7168: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7169: $as_echo_n "(cached) " >&6
1.35 moko 7170: else
7171: if test -n "$ac_ct_NMEDIT"; then
7172: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.15 paf 7173: else
1.35 moko 7174: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175: for as_dir in $PATH
7176: do
7177: IFS=$as_save_IFS
7178: test -z "$as_dir" && as_dir=.
1.43 moko 7179: for ac_exec_ext in '' $ac_executable_extensions; do
7180: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 7181: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.43 moko 7182: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 7183: break 2
7184: fi
7185: done
1.43 moko 7186: done
7187: IFS=$as_save_IFS
1.15 paf 7188:
1.35 moko 7189: fi
7190: fi
7191: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7192: if test -n "$ac_ct_NMEDIT"; then
1.43 moko 7193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7194: $as_echo "$ac_ct_NMEDIT" >&6; }
1.35 moko 7195: else
1.43 moko 7196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197: $as_echo "no" >&6; }
1.15 paf 7198: fi
7199:
1.43 moko 7200: if test "x$ac_ct_NMEDIT" = x; then
7201: NMEDIT=":"
7202: else
7203: case $cross_compiling:$ac_tool_warned in
7204: yes:)
7205: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7206: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7207: ac_tool_warned=yes ;;
7208: esac
7209: NMEDIT=$ac_ct_NMEDIT
7210: fi
1.35 moko 7211: else
7212: NMEDIT="$ac_cv_prog_NMEDIT"
1.15 paf 7213: fi
7214:
1.35 moko 7215: if test -n "$ac_tool_prefix"; then
7216: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7217: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.43 moko 7218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219: $as_echo_n "checking for $ac_word... " >&6; }
7220: if ${ac_cv_prog_LIPO+:} false; then :
7221: $as_echo_n "(cached) " >&6
1.35 moko 7222: else
7223: if test -n "$LIPO"; then
7224: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7225: else
7226: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227: for as_dir in $PATH
7228: do
7229: IFS=$as_save_IFS
7230: test -z "$as_dir" && as_dir=.
1.43 moko 7231: for ac_exec_ext in '' $ac_executable_extensions; do
7232: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 7233: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.43 moko 7234: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 7235: break 2
7236: fi
7237: done
1.43 moko 7238: done
7239: IFS=$as_save_IFS
1.15 paf 7240:
1.35 moko 7241: fi
7242: fi
7243: LIPO=$ac_cv_prog_LIPO
7244: if test -n "$LIPO"; then
1.43 moko 7245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7246: $as_echo "$LIPO" >&6; }
1.35 moko 7247: else
1.43 moko 7248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249: $as_echo "no" >&6; }
1.35 moko 7250: fi
1.15 paf 7251:
1.43 moko 7252:
1.35 moko 7253: fi
7254: if test -z "$ac_cv_prog_LIPO"; then
7255: ac_ct_LIPO=$LIPO
7256: # Extract the first word of "lipo", so it can be a program name with args.
7257: set dummy lipo; ac_word=$2
1.43 moko 7258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259: $as_echo_n "checking for $ac_word... " >&6; }
7260: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7261: $as_echo_n "(cached) " >&6
1.35 moko 7262: else
7263: if test -n "$ac_ct_LIPO"; then
7264: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7265: else
7266: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267: for as_dir in $PATH
7268: do
7269: IFS=$as_save_IFS
7270: test -z "$as_dir" && as_dir=.
1.43 moko 7271: for ac_exec_ext in '' $ac_executable_extensions; do
7272: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 7273: ac_cv_prog_ac_ct_LIPO="lipo"
1.43 moko 7274: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 7275: break 2
1.15 paf 7276: fi
1.35 moko 7277: done
1.43 moko 7278: done
7279: IFS=$as_save_IFS
1.35 moko 7280:
7281: fi
7282: fi
7283: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7284: if test -n "$ac_ct_LIPO"; then
1.43 moko 7285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7286: $as_echo "$ac_ct_LIPO" >&6; }
1.35 moko 7287: else
1.43 moko 7288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289: $as_echo "no" >&6; }
1.35 moko 7290: fi
7291:
1.43 moko 7292: if test "x$ac_ct_LIPO" = x; then
7293: LIPO=":"
7294: else
7295: case $cross_compiling:$ac_tool_warned in
7296: yes:)
7297: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7298: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7299: ac_tool_warned=yes ;;
7300: esac
7301: LIPO=$ac_ct_LIPO
7302: fi
1.35 moko 7303: else
7304: LIPO="$ac_cv_prog_LIPO"
7305: fi
1.15 paf 7306:
1.35 moko 7307: if test -n "$ac_tool_prefix"; then
7308: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7309: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.43 moko 7310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311: $as_echo_n "checking for $ac_word... " >&6; }
7312: if ${ac_cv_prog_OTOOL+:} false; then :
7313: $as_echo_n "(cached) " >&6
1.35 moko 7314: else
7315: if test -n "$OTOOL"; then
7316: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7317: else
7318: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319: for as_dir in $PATH
7320: do
7321: IFS=$as_save_IFS
7322: test -z "$as_dir" && as_dir=.
1.43 moko 7323: for ac_exec_ext in '' $ac_executable_extensions; do
7324: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 7325: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.43 moko 7326: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 7327: break 2
7328: fi
7329: done
1.43 moko 7330: done
7331: IFS=$as_save_IFS
1.15 paf 7332:
1.35 moko 7333: fi
7334: fi
7335: OTOOL=$ac_cv_prog_OTOOL
7336: if test -n "$OTOOL"; then
1.43 moko 7337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7338: $as_echo "$OTOOL" >&6; }
1.35 moko 7339: else
1.43 moko 7340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341: $as_echo "no" >&6; }
1.35 moko 7342: fi
1.15 paf 7343:
1.43 moko 7344:
1.35 moko 7345: fi
7346: if test -z "$ac_cv_prog_OTOOL"; then
7347: ac_ct_OTOOL=$OTOOL
7348: # Extract the first word of "otool", so it can be a program name with args.
7349: set dummy otool; ac_word=$2
1.43 moko 7350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351: $as_echo_n "checking for $ac_word... " >&6; }
7352: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7353: $as_echo_n "(cached) " >&6
1.35 moko 7354: else
7355: if test -n "$ac_ct_OTOOL"; then
7356: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7357: else
7358: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359: for as_dir in $PATH
7360: do
7361: IFS=$as_save_IFS
7362: test -z "$as_dir" && as_dir=.
1.43 moko 7363: for ac_exec_ext in '' $ac_executable_extensions; do
7364: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 7365: ac_cv_prog_ac_ct_OTOOL="otool"
1.43 moko 7366: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 7367: break 2
7368: fi
7369: done
1.43 moko 7370: done
7371: IFS=$as_save_IFS
1.15 paf 7372:
1.35 moko 7373: fi
7374: fi
7375: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7376: if test -n "$ac_ct_OTOOL"; then
1.43 moko 7377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7378: $as_echo "$ac_ct_OTOOL" >&6; }
1.35 moko 7379: else
1.43 moko 7380: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381: $as_echo "no" >&6; }
1.35 moko 7382: fi
1.15 paf 7383:
1.43 moko 7384: if test "x$ac_ct_OTOOL" = x; then
7385: OTOOL=":"
7386: else
7387: case $cross_compiling:$ac_tool_warned in
7388: yes:)
7389: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7390: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7391: ac_tool_warned=yes ;;
7392: esac
7393: OTOOL=$ac_ct_OTOOL
7394: fi
1.35 moko 7395: else
7396: OTOOL="$ac_cv_prog_OTOOL"
7397: fi
1.15 paf 7398:
1.35 moko 7399: if test -n "$ac_tool_prefix"; then
7400: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7401: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.43 moko 7402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403: $as_echo_n "checking for $ac_word... " >&6; }
7404: if ${ac_cv_prog_OTOOL64+:} false; then :
7405: $as_echo_n "(cached) " >&6
1.35 moko 7406: else
7407: if test -n "$OTOOL64"; then
7408: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7409: else
7410: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411: for as_dir in $PATH
7412: do
7413: IFS=$as_save_IFS
7414: test -z "$as_dir" && as_dir=.
1.43 moko 7415: for ac_exec_ext in '' $ac_executable_extensions; do
7416: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 7417: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.43 moko 7418: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 7419: break 2
7420: fi
7421: done
1.43 moko 7422: done
7423: IFS=$as_save_IFS
1.15 paf 7424:
1.35 moko 7425: fi
7426: fi
7427: OTOOL64=$ac_cv_prog_OTOOL64
7428: if test -n "$OTOOL64"; then
1.43 moko 7429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7430: $as_echo "$OTOOL64" >&6; }
1.35 moko 7431: else
1.43 moko 7432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433: $as_echo "no" >&6; }
1.35 moko 7434: fi
1.15 paf 7435:
1.43 moko 7436:
1.35 moko 7437: fi
7438: if test -z "$ac_cv_prog_OTOOL64"; then
7439: ac_ct_OTOOL64=$OTOOL64
7440: # Extract the first word of "otool64", so it can be a program name with args.
7441: set dummy otool64; ac_word=$2
1.43 moko 7442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443: $as_echo_n "checking for $ac_word... " >&6; }
7444: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7445: $as_echo_n "(cached) " >&6
1.35 moko 7446: else
7447: if test -n "$ac_ct_OTOOL64"; then
7448: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7449: else
7450: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451: for as_dir in $PATH
7452: do
7453: IFS=$as_save_IFS
7454: test -z "$as_dir" && as_dir=.
1.43 moko 7455: for ac_exec_ext in '' $ac_executable_extensions; do
7456: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.35 moko 7457: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.43 moko 7458: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.35 moko 7459: break 2
7460: fi
7461: done
1.43 moko 7462: done
7463: IFS=$as_save_IFS
1.15 paf 7464:
1.35 moko 7465: fi
7466: fi
7467: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7468: if test -n "$ac_ct_OTOOL64"; then
1.43 moko 7469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7470: $as_echo "$ac_ct_OTOOL64" >&6; }
1.35 moko 7471: else
1.43 moko 7472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473: $as_echo "no" >&6; }
1.35 moko 7474: fi
1.15 paf 7475:
1.43 moko 7476: if test "x$ac_ct_OTOOL64" = x; then
7477: OTOOL64=":"
7478: else
7479: case $cross_compiling:$ac_tool_warned in
7480: yes:)
7481: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7482: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7483: ac_tool_warned=yes ;;
7484: esac
7485: OTOOL64=$ac_ct_OTOOL64
7486: fi
1.35 moko 7487: else
7488: OTOOL64="$ac_cv_prog_OTOOL64"
7489: fi
1.15 paf 7490:
7491:
7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499:
7500:
7501:
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
1.43 moko 7517: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7518: $as_echo_n "checking for -single_module linker flag... " >&6; }
7519: if ${lt_cv_apple_cc_single_mod+:} false; then :
7520: $as_echo_n "(cached) " >&6
1.35 moko 7521: else
7522: lt_cv_apple_cc_single_mod=no
7523: if test -z "${LT_MULTI_MODULE}"; then
7524: # By default we will add the -single_module flag. You can override
7525: # by either setting the environment variable LT_MULTI_MODULE
7526: # non-empty at configure time, or by adding -multi_module to the
7527: # link flags.
7528: rm -rf libconftest.dylib*
7529: echo "int foo(void){return 1;}" > conftest.c
7530: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7531: -dynamiclib -Wl,-single_module conftest.c" >&5
7532: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7533: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7534: _lt_result=$?
7535: # If there is a non-empty error log, and "single_module"
7536: # appears in it, assume the flag caused a linker warning
7537: if test -s conftest.err && $GREP single_module conftest.err; then
7538: cat conftest.err >&5
7539: # Otherwise, if the output was created with a 0 exit code from
7540: # the compiler, it worked.
7541: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7542: lt_cv_apple_cc_single_mod=yes
7543: else
7544: cat conftest.err >&5
7545: fi
7546: rm -rf libconftest.dylib*
7547: rm -f conftest.*
7548: fi
7549: fi
1.43 moko 7550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7551: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.15 paf 7552:
1.43 moko 7553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7554: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7555: if ${lt_cv_ld_exported_symbols_list+:} false; then :
7556: $as_echo_n "(cached) " >&6
1.35 moko 7557: else
7558: lt_cv_ld_exported_symbols_list=no
7559: save_LDFLAGS=$LDFLAGS
7560: echo "_main" > conftest.sym
7561: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.43 moko 7562: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 7563: /* end confdefs.h. */
1.15 paf 7564:
1.35 moko 7565: int
7566: main ()
7567: {
1.15 paf 7568:
1.35 moko 7569: ;
7570: return 0;
7571: }
7572: _ACEOF
1.43 moko 7573: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 7574: lt_cv_ld_exported_symbols_list=yes
7575: else
1.43 moko 7576: lt_cv_ld_exported_symbols_list=no
1.35 moko 7577: fi
1.43 moko 7578: rm -f core conftest.err conftest.$ac_objext \
7579: conftest$ac_exeext conftest.$ac_ext
1.35 moko 7580: LDFLAGS="$save_LDFLAGS"
1.15 paf 7581:
1.35 moko 7582: fi
1.43 moko 7583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7584: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.15 paf 7585:
1.43 moko 7586: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7587: $as_echo_n "checking for -force_load linker flag... " >&6; }
7588: if ${lt_cv_ld_force_load+:} false; then :
7589: $as_echo_n "(cached) " >&6
1.35 moko 7590: else
7591: lt_cv_ld_force_load=no
7592: cat > conftest.c << _LT_EOF
7593: int forced_loaded() { return 2;}
7594: _LT_EOF
7595: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7596: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7597: echo "$AR cru libconftest.a conftest.o" >&5
7598: $AR cru libconftest.a conftest.o 2>&5
7599: echo "$RANLIB libconftest.a" >&5
7600: $RANLIB libconftest.a 2>&5
7601: cat > conftest.c << _LT_EOF
7602: int main() { return 0;}
7603: _LT_EOF
7604: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7605: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7606: _lt_result=$?
7607: if test -s conftest.err && $GREP force_load conftest.err; then
7608: cat conftest.err >&5
7609: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7610: lt_cv_ld_force_load=yes
7611: else
7612: cat conftest.err >&5
7613: fi
7614: rm -f conftest.err libconftest.a conftest conftest.c
7615: rm -rf conftest.dSYM
1.15 paf 7616:
1.35 moko 7617: fi
1.43 moko 7618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7619: $as_echo "$lt_cv_ld_force_load" >&6; }
1.35 moko 7620: case $host_os in
7621: rhapsody* | darwin1.[012])
7622: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7623: darwin1.*)
7624: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7625: darwin*) # darwin 5.x on
7626: # if running on 10.5 or later, the deployment target defaults
7627: # to the OS version, if on x86, and 10.4, the deployment
7628: # target defaults to 10.4. Don't you love it?
7629: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7630: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7631: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7632: 10.[012]*)
7633: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7634: 10.*)
7635: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7636: esac
1.15 paf 7637: ;;
1.35 moko 7638: esac
7639: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7640: _lt_dar_single_mod='$single_module'
7641: fi
7642: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7643: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7644: else
7645: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.15 paf 7646: fi
1.35 moko 7647: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7648: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.15 paf 7649: else
1.35 moko 7650: _lt_dsymutil=
1.15 paf 7651: fi
7652: ;;
1.35 moko 7653: esac
1.15 paf 7654:
1.35 moko 7655: ac_ext=c
7656: ac_cpp='$CPP $CPPFLAGS'
7657: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.43 moko 7660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7661: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.35 moko 7662: # On Suns, sometimes $CPP names a directory.
7663: if test -n "$CPP" && test -d "$CPP"; then
7664: CPP=
7665: fi
7666: if test -z "$CPP"; then
1.43 moko 7667: if ${ac_cv_prog_CPP+:} false; then :
7668: $as_echo_n "(cached) " >&6
1.35 moko 7669: else
7670: # Double quotes because CPP needs to be expanded
7671: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7672: do
7673: ac_preproc_ok=false
7674: for ac_c_preproc_warn_flag in '' yes
7675: do
7676: # Use a header file that comes with gcc, so configuring glibc
7677: # with a fresh cross-compiler works.
7678: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7679: # <limits.h> exists even on freestanding compilers.
7680: # On the NeXT, cc -E runs the code through the compiler's parser,
7681: # not just through cpp. "Syntax error" is here to catch this case.
1.43 moko 7682: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 7683: /* end confdefs.h. */
7684: #ifdef __STDC__
7685: # include <limits.h>
7686: #else
7687: # include <assert.h>
7688: #endif
7689: Syntax error
7690: _ACEOF
1.43 moko 7691: if ac_fn_c_try_cpp "$LINENO"; then :
7692:
1.35 moko 7693: else
7694: # Broken: fails on valid input.
7695: continue
7696: fi
1.43 moko 7697: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 paf 7698:
1.43 moko 7699: # OK, works on sane cases. Now check whether nonexistent headers
1.35 moko 7700: # can be detected and how.
1.43 moko 7701: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 7702: /* end confdefs.h. */
7703: #include <ac_nonexistent.h>
7704: _ACEOF
1.43 moko 7705: if ac_fn_c_try_cpp "$LINENO"; then :
1.35 moko 7706: # Broken: success on invalid input.
7707: continue
7708: else
7709: # Passes both tests.
7710: ac_preproc_ok=:
7711: break
1.15 paf 7712: fi
1.43 moko 7713: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 paf 7714:
1.35 moko 7715: done
7716: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.43 moko 7717: rm -f conftest.i conftest.err conftest.$ac_ext
7718: if $ac_preproc_ok; then :
1.35 moko 7719: break
1.15 paf 7720: fi
7721:
1.35 moko 7722: done
7723: ac_cv_prog_CPP=$CPP
1.15 paf 7724:
1.35 moko 7725: fi
7726: CPP=$ac_cv_prog_CPP
7727: else
7728: ac_cv_prog_CPP=$CPP
7729: fi
1.43 moko 7730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7731: $as_echo "$CPP" >&6; }
1.35 moko 7732: ac_preproc_ok=false
7733: for ac_c_preproc_warn_flag in '' yes
7734: do
7735: # Use a header file that comes with gcc, so configuring glibc
7736: # with a fresh cross-compiler works.
7737: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7738: # <limits.h> exists even on freestanding compilers.
7739: # On the NeXT, cc -E runs the code through the compiler's parser,
7740: # not just through cpp. "Syntax error" is here to catch this case.
1.43 moko 7741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 7742: /* end confdefs.h. */
7743: #ifdef __STDC__
7744: # include <limits.h>
7745: #else
7746: # include <assert.h>
7747: #endif
7748: Syntax error
7749: _ACEOF
1.43 moko 7750: if ac_fn_c_try_cpp "$LINENO"; then :
7751:
1.35 moko 7752: else
7753: # Broken: fails on valid input.
7754: continue
7755: fi
1.43 moko 7756: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 paf 7757:
1.43 moko 7758: # OK, works on sane cases. Now check whether nonexistent headers
1.35 moko 7759: # can be detected and how.
1.43 moko 7760: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 7761: /* end confdefs.h. */
7762: #include <ac_nonexistent.h>
7763: _ACEOF
1.43 moko 7764: if ac_fn_c_try_cpp "$LINENO"; then :
1.35 moko 7765: # Broken: success on invalid input.
7766: continue
7767: else
7768: # Passes both tests.
7769: ac_preproc_ok=:
7770: break
7771: fi
1.43 moko 7772: rm -f conftest.err conftest.i conftest.$ac_ext
1.35 moko 7773:
7774: done
7775: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.43 moko 7776: rm -f conftest.i conftest.err conftest.$ac_ext
7777: if $ac_preproc_ok; then :
7778:
1.35 moko 7779: else
1.43 moko 7780: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7781: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7782: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7783: See \`config.log' for more details" "$LINENO" 5; }
1.35 moko 7784: fi
1.15 paf 7785:
1.35 moko 7786: ac_ext=c
7787: ac_cpp='$CPP $CPPFLAGS'
7788: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7789: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7790: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 7791:
7792:
1.43 moko 7793: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7794: $as_echo_n "checking for ANSI C header files... " >&6; }
7795: if ${ac_cv_header_stdc+:} false; then :
7796: $as_echo_n "(cached) " >&6
1.35 moko 7797: else
1.43 moko 7798: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 7799: /* end confdefs.h. */
7800: #include <stdlib.h>
7801: #include <stdarg.h>
7802: #include <string.h>
7803: #include <float.h>
1.15 paf 7804:
1.35 moko 7805: int
7806: main ()
7807: {
1.15 paf 7808:
1.35 moko 7809: ;
7810: return 0;
7811: }
7812: _ACEOF
1.43 moko 7813: if ac_fn_c_try_compile "$LINENO"; then :
1.35 moko 7814: ac_cv_header_stdc=yes
7815: else
1.43 moko 7816: ac_cv_header_stdc=no
1.35 moko 7817: fi
1.43 moko 7818: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 7819:
1.35 moko 7820: if test $ac_cv_header_stdc = yes; then
7821: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.43 moko 7822: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 7823: /* end confdefs.h. */
7824: #include <string.h>
7825:
7826: _ACEOF
7827: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.43 moko 7828: $EGREP "memchr" >/dev/null 2>&1; then :
7829:
1.35 moko 7830: else
7831: ac_cv_header_stdc=no
7832: fi
7833: rm -f conftest*
7834:
7835: fi
7836:
7837: if test $ac_cv_header_stdc = yes; then
7838: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.43 moko 7839: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 7840: /* end confdefs.h. */
7841: #include <stdlib.h>
7842:
7843: _ACEOF
7844: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.43 moko 7845: $EGREP "free" >/dev/null 2>&1; then :
7846:
1.35 moko 7847: else
7848: ac_cv_header_stdc=no
7849: fi
7850: rm -f conftest*
7851:
7852: fi
1.15 paf 7853:
1.35 moko 7854: if test $ac_cv_header_stdc = yes; then
7855: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.43 moko 7856: if test "$cross_compiling" = yes; then :
1.35 moko 7857: :
7858: else
1.43 moko 7859: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 7860: /* end confdefs.h. */
7861: #include <ctype.h>
1.43 moko 7862: #include <stdlib.h>
1.35 moko 7863: #if ((' ' & 0x0FF) == 0x020)
7864: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7865: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7866: #else
7867: # define ISLOWER(c) \
7868: (('a' <= (c) && (c) <= 'i') \
7869: || ('j' <= (c) && (c) <= 'r') \
7870: || ('s' <= (c) && (c) <= 'z'))
7871: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7872: #endif
1.15 paf 7873:
1.35 moko 7874: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7875: int
7876: main ()
7877: {
7878: int i;
7879: for (i = 0; i < 256; i++)
7880: if (XOR (islower (i), ISLOWER (i))
7881: || toupper (i) != TOUPPER (i))
1.43 moko 7882: return 2;
7883: return 0;
1.35 moko 7884: }
7885: _ACEOF
1.43 moko 7886: if ac_fn_c_try_run "$LINENO"; then :
7887:
1.35 moko 7888: else
1.43 moko 7889: ac_cv_header_stdc=no
1.35 moko 7890: fi
1.43 moko 7891: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7892: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.35 moko 7893: fi
1.43 moko 7894:
1.35 moko 7895: fi
7896: fi
1.43 moko 7897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7898: $as_echo "$ac_cv_header_stdc" >&6; }
1.35 moko 7899: if test $ac_cv_header_stdc = yes; then
1.15 paf 7900:
1.43 moko 7901: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.15 paf 7902:
1.35 moko 7903: fi
1.15 paf 7904:
1.35 moko 7905: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7906: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7907: inttypes.h stdint.h unistd.h
1.43 moko 7908: do :
7909: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7910: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7911: "
7912: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.35 moko 7913: cat >>confdefs.h <<_ACEOF
1.43 moko 7914: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.35 moko 7915: _ACEOF
7916:
1.15 paf 7917: fi
1.35 moko 7918:
7919: done
7920:
7921:
7922: for ac_header in dlfcn.h
1.43 moko 7923: do :
7924: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7925: "
7926: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.35 moko 7927: cat >>confdefs.h <<_ACEOF
1.43 moko 7928: #define HAVE_DLFCN_H 1
1.15 paf 7929: _ACEOF
1.25 paf 7930:
1.35 moko 7931: fi
7932:
7933: done
1.25 paf 7934:
7935:
7936:
1.35 moko 7937:
7938: func_stripname_cnf ()
1.15 paf 7939: {
1.35 moko 7940: case ${2} in
7941: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7942: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7943: esac
7944: } # func_stripname_cnf
7945:
7946:
7947:
7948:
7949:
7950: # Set options
1.43 moko 7951: # Check whether --enable-static was given.
7952: if test "${enable_static+set}" = set; then :
7953: enableval=$enable_static; p=${PACKAGE-default}
1.42 moko 7954: case $enableval in
7955: yes) enable_static=yes ;;
7956: no) enable_static=no ;;
7957: *)
7958: enable_static=no
7959: # Look at the argument we got. We use all the common list separators.
7960: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7961: for pkg in $enableval; do
7962: IFS="$lt_save_ifs"
7963: if test "X$pkg" = "X$p"; then
7964: enable_static=yes
7965: fi
7966: done
7967: IFS="$lt_save_ifs"
7968: ;;
7969: esac
7970: else
7971: enable_static=no
1.43 moko 7972: fi
7973:
1.42 moko 7974:
7975:
7976:
7977:
7978:
7979:
1.35 moko 7980: enable_dlopen=yes
1.36 moko 7981: enable_win32_dll=yes
1.35 moko 7982:
1.36 moko 7983: case $host in
7984: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7985: if test -n "$ac_tool_prefix"; then
7986: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7987: set dummy ${ac_tool_prefix}as; ac_word=$2
1.43 moko 7988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989: $as_echo_n "checking for $ac_word... " >&6; }
7990: if ${ac_cv_prog_AS+:} false; then :
7991: $as_echo_n "(cached) " >&6
1.36 moko 7992: else
7993: if test -n "$AS"; then
7994: ac_cv_prog_AS="$AS" # Let the user override the test.
7995: else
7996: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997: for as_dir in $PATH
7998: do
7999: IFS=$as_save_IFS
8000: test -z "$as_dir" && as_dir=.
1.43 moko 8001: for ac_exec_ext in '' $ac_executable_extensions; do
8002: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.36 moko 8003: ac_cv_prog_AS="${ac_tool_prefix}as"
1.43 moko 8004: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.36 moko 8005: break 2
8006: fi
8007: done
1.43 moko 8008: done
8009: IFS=$as_save_IFS
1.35 moko 8010:
1.36 moko 8011: fi
8012: fi
8013: AS=$ac_cv_prog_AS
8014: if test -n "$AS"; then
1.43 moko 8015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8016: $as_echo "$AS" >&6; }
1.36 moko 8017: else
1.43 moko 8018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019: $as_echo "no" >&6; }
1.36 moko 8020: fi
1.35 moko 8021:
1.43 moko 8022:
1.36 moko 8023: fi
8024: if test -z "$ac_cv_prog_AS"; then
8025: ac_ct_AS=$AS
8026: # Extract the first word of "as", so it can be a program name with args.
8027: set dummy as; ac_word=$2
1.43 moko 8028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029: $as_echo_n "checking for $ac_word... " >&6; }
8030: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8031: $as_echo_n "(cached) " >&6
1.36 moko 8032: else
8033: if test -n "$ac_ct_AS"; then
8034: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8035: else
8036: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037: for as_dir in $PATH
8038: do
8039: IFS=$as_save_IFS
8040: test -z "$as_dir" && as_dir=.
1.43 moko 8041: for ac_exec_ext in '' $ac_executable_extensions; do
8042: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.36 moko 8043: ac_cv_prog_ac_ct_AS="as"
1.43 moko 8044: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.36 moko 8045: break 2
8046: fi
8047: done
1.43 moko 8048: done
8049: IFS=$as_save_IFS
1.35 moko 8050:
1.36 moko 8051: fi
8052: fi
8053: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8054: if test -n "$ac_ct_AS"; then
1.43 moko 8055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8056: $as_echo "$ac_ct_AS" >&6; }
1.36 moko 8057: else
1.43 moko 8058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059: $as_echo "no" >&6; }
1.36 moko 8060: fi
1.35 moko 8061:
1.43 moko 8062: if test "x$ac_ct_AS" = x; then
8063: AS="false"
8064: else
8065: case $cross_compiling:$ac_tool_warned in
8066: yes:)
8067: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8068: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8069: ac_tool_warned=yes ;;
8070: esac
8071: AS=$ac_ct_AS
8072: fi
1.36 moko 8073: else
8074: AS="$ac_cv_prog_AS"
8075: fi
1.15 paf 8076:
1.36 moko 8077: if test -n "$ac_tool_prefix"; then
8078: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8079: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.43 moko 8080: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081: $as_echo_n "checking for $ac_word... " >&6; }
8082: if ${ac_cv_prog_DLLTOOL+:} false; then :
8083: $as_echo_n "(cached) " >&6
1.36 moko 8084: else
8085: if test -n "$DLLTOOL"; then
8086: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.15 paf 8087: else
1.36 moko 8088: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089: for as_dir in $PATH
8090: do
8091: IFS=$as_save_IFS
8092: test -z "$as_dir" && as_dir=.
1.43 moko 8093: for ac_exec_ext in '' $ac_executable_extensions; do
8094: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.36 moko 8095: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.43 moko 8096: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.36 moko 8097: break 2
8098: fi
8099: done
1.43 moko 8100: done
8101: IFS=$as_save_IFS
1.36 moko 8102:
8103: fi
8104: fi
8105: DLLTOOL=$ac_cv_prog_DLLTOOL
8106: if test -n "$DLLTOOL"; then
1.43 moko 8107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8108: $as_echo "$DLLTOOL" >&6; }
1.36 moko 8109: else
1.43 moko 8110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111: $as_echo "no" >&6; }
1.36 moko 8112: fi
8113:
1.43 moko 8114:
1.36 moko 8115: fi
8116: if test -z "$ac_cv_prog_DLLTOOL"; then
8117: ac_ct_DLLTOOL=$DLLTOOL
8118: # Extract the first word of "dlltool", so it can be a program name with args.
8119: set dummy dlltool; ac_word=$2
1.43 moko 8120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121: $as_echo_n "checking for $ac_word... " >&6; }
8122: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8123: $as_echo_n "(cached) " >&6
1.36 moko 8124: else
8125: if test -n "$ac_ct_DLLTOOL"; then
8126: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8127: else
8128: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129: for as_dir in $PATH
8130: do
8131: IFS=$as_save_IFS
8132: test -z "$as_dir" && as_dir=.
1.43 moko 8133: for ac_exec_ext in '' $ac_executable_extensions; do
8134: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.36 moko 8135: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.43 moko 8136: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.36 moko 8137: break 2
8138: fi
8139: done
1.43 moko 8140: done
8141: IFS=$as_save_IFS
1.36 moko 8142:
8143: fi
8144: fi
8145: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8146: if test -n "$ac_ct_DLLTOOL"; then
1.43 moko 8147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8148: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.36 moko 8149: else
1.43 moko 8150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151: $as_echo "no" >&6; }
1.36 moko 8152: fi
8153:
1.43 moko 8154: if test "x$ac_ct_DLLTOOL" = x; then
8155: DLLTOOL="false"
8156: else
8157: case $cross_compiling:$ac_tool_warned in
8158: yes:)
8159: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8160: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8161: ac_tool_warned=yes ;;
8162: esac
8163: DLLTOOL=$ac_ct_DLLTOOL
8164: fi
1.36 moko 8165: else
8166: DLLTOOL="$ac_cv_prog_DLLTOOL"
8167: fi
8168:
8169: if test -n "$ac_tool_prefix"; then
8170: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8171: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.43 moko 8172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173: $as_echo_n "checking for $ac_word... " >&6; }
8174: if ${ac_cv_prog_OBJDUMP+:} false; then :
8175: $as_echo_n "(cached) " >&6
1.36 moko 8176: else
8177: if test -n "$OBJDUMP"; then
8178: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8179: else
8180: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181: for as_dir in $PATH
8182: do
8183: IFS=$as_save_IFS
8184: test -z "$as_dir" && as_dir=.
1.43 moko 8185: for ac_exec_ext in '' $ac_executable_extensions; do
8186: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.36 moko 8187: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.43 moko 8188: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.36 moko 8189: break 2
8190: fi
8191: done
1.43 moko 8192: done
8193: IFS=$as_save_IFS
1.36 moko 8194:
8195: fi
8196: fi
8197: OBJDUMP=$ac_cv_prog_OBJDUMP
8198: if test -n "$OBJDUMP"; then
1.43 moko 8199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8200: $as_echo "$OBJDUMP" >&6; }
1.36 moko 8201: else
1.43 moko 8202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203: $as_echo "no" >&6; }
1.36 moko 8204: fi
8205:
1.43 moko 8206:
1.36 moko 8207: fi
8208: if test -z "$ac_cv_prog_OBJDUMP"; then
8209: ac_ct_OBJDUMP=$OBJDUMP
8210: # Extract the first word of "objdump", so it can be a program name with args.
8211: set dummy objdump; ac_word=$2
1.43 moko 8212: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213: $as_echo_n "checking for $ac_word... " >&6; }
8214: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8215: $as_echo_n "(cached) " >&6
1.36 moko 8216: else
8217: if test -n "$ac_ct_OBJDUMP"; then
8218: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8219: else
8220: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221: for as_dir in $PATH
8222: do
8223: IFS=$as_save_IFS
8224: test -z "$as_dir" && as_dir=.
1.43 moko 8225: for ac_exec_ext in '' $ac_executable_extensions; do
8226: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.36 moko 8227: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.43 moko 8228: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.36 moko 8229: break 2
8230: fi
8231: done
1.43 moko 8232: done
8233: IFS=$as_save_IFS
1.36 moko 8234:
8235: fi
8236: fi
8237: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8238: if test -n "$ac_ct_OBJDUMP"; then
1.43 moko 8239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8240: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.36 moko 8241: else
1.43 moko 8242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243: $as_echo "no" >&6; }
1.36 moko 8244: fi
8245:
1.43 moko 8246: if test "x$ac_ct_OBJDUMP" = x; then
8247: OBJDUMP="false"
8248: else
8249: case $cross_compiling:$ac_tool_warned in
8250: yes:)
8251: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8252: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8253: ac_tool_warned=yes ;;
8254: esac
8255: OBJDUMP=$ac_ct_OBJDUMP
8256: fi
1.36 moko 8257: else
8258: OBJDUMP="$ac_cv_prog_OBJDUMP"
8259: fi
8260:
8261: ;;
8262: esac
8263:
8264: test -z "$AS" && AS=as
8265:
8266:
8267:
8268:
8269:
8270: test -z "$DLLTOOL" && DLLTOOL=dlltool
8271:
8272:
8273:
8274:
8275:
8276: test -z "$OBJDUMP" && OBJDUMP=objdump
8277:
8278:
8279:
8280:
8281:
8282:
8283:
8284:
8285:
1.43 moko 8286: # Check whether --enable-shared was given.
8287: if test "${enable_shared+set}" = set; then :
8288: enableval=$enable_shared; p=${PACKAGE-default}
1.36 moko 8289: case $enableval in
8290: yes) enable_shared=yes ;;
8291: no) enable_shared=no ;;
8292: *)
8293: enable_shared=no
8294: # Look at the argument we got. We use all the common list separators.
8295: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8296: for pkg in $enableval; do
8297: IFS="$lt_save_ifs"
8298: if test "X$pkg" = "X$p"; then
8299: enable_shared=yes
8300: fi
8301: done
8302: IFS="$lt_save_ifs"
8303: ;;
8304: esac
8305: else
8306: enable_shared=yes
1.43 moko 8307: fi
8308:
1.35 moko 8309:
8310:
8311:
8312:
8313:
8314:
8315:
1.15 paf 8316:
1.35 moko 8317:
8318:
1.43 moko 8319: # Check whether --with-pic was given.
8320: if test "${with_pic+set}" = set; then :
8321: withval=$with_pic; lt_p=${PACKAGE-default}
1.35 moko 8322: case $withval in
8323: yes|no) pic_mode=$withval ;;
8324: *)
8325: pic_mode=default
8326: # Look at the argument we got. We use all the common list separators.
8327: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8328: for lt_pkg in $withval; do
8329: IFS="$lt_save_ifs"
8330: if test "X$lt_pkg" = "X$lt_p"; then
8331: pic_mode=yes
8332: fi
8333: done
8334: IFS="$lt_save_ifs"
8335: ;;
8336: esac
1.15 paf 8337: else
1.35 moko 8338: pic_mode=default
1.43 moko 8339: fi
8340:
1.35 moko 8341:
8342: test -z "$pic_mode" && pic_mode=default
8343:
8344:
8345:
8346:
8347:
8348:
1.15 paf 8349:
1.43 moko 8350: # Check whether --enable-fast-install was given.
8351: if test "${enable_fast_install+set}" = set; then :
8352: enableval=$enable_fast_install; p=${PACKAGE-default}
1.35 moko 8353: case $enableval in
8354: yes) enable_fast_install=yes ;;
8355: no) enable_fast_install=no ;;
8356: *)
8357: enable_fast_install=no
8358: # Look at the argument we got. We use all the common list separators.
8359: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8360: for pkg in $enableval; do
8361: IFS="$lt_save_ifs"
8362: if test "X$pkg" = "X$p"; then
8363: enable_fast_install=yes
8364: fi
8365: done
8366: IFS="$lt_save_ifs"
8367: ;;
8368: esac
1.15 paf 8369: else
1.35 moko 8370: enable_fast_install=yes
1.43 moko 8371: fi
8372:
1.35 moko 8373:
8374:
8375:
8376:
8377:
8378:
8379:
8380:
8381:
8382:
8383: # This can be used to rebuild libtool when needed
8384: LIBTOOL_DEPS="$ltmain"
8385:
8386: # Always use our own libtool.
8387: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8388:
8389:
8390:
8391:
8392:
8393:
8394:
8395:
8396:
8397:
8398:
8399:
8400:
8401:
8402:
8403:
8404:
8405:
8406:
8407:
8408:
8409:
8410:
8411:
8412:
8413:
8414:
8415:
8416:
8417:
8418: test -z "$LN_S" && LN_S="ln -s"
8419:
8420:
8421:
8422:
8423:
8424:
8425:
8426:
8427:
8428:
8429:
8430:
8431:
1.15 paf 8432:
1.35 moko 8433: if test -n "${ZSH_VERSION+set}" ; then
8434: setopt NO_GLOB_SUBST
1.15 paf 8435: fi
1.35 moko 8436:
1.43 moko 8437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8438: $as_echo_n "checking for objdir... " >&6; }
8439: if ${lt_cv_objdir+:} false; then :
8440: $as_echo_n "(cached) " >&6
1.35 moko 8441: else
8442: rm -f .libs 2>/dev/null
8443: mkdir .libs 2>/dev/null
8444: if test -d .libs; then
8445: lt_cv_objdir=.libs
8446: else
8447: # MS-DOS does not allow filenames that begin with a dot.
8448: lt_cv_objdir=_libs
1.15 paf 8449: fi
1.35 moko 8450: rmdir .libs 2>/dev/null
8451: fi
1.43 moko 8452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8453: $as_echo "$lt_cv_objdir" >&6; }
1.35 moko 8454: objdir=$lt_cv_objdir
1.15 paf 8455:
8456:
8457:
8458:
8459:
1.35 moko 8460: cat >>confdefs.h <<_ACEOF
8461: #define LT_OBJDIR "$lt_cv_objdir/"
8462: _ACEOF
1.15 paf 8463:
8464:
8465:
8466:
1.35 moko 8467: case $host_os in
8468: aix3*)
8469: # AIX sometimes has problems with the GCC collect2 program. For some
8470: # reason, if we set the COLLECT_NAMES environment variable, the problems
8471: # vanish in a puff of smoke.
8472: if test "X${COLLECT_NAMES+set}" != Xset; then
8473: COLLECT_NAMES=
8474: export COLLECT_NAMES
8475: fi
8476: ;;
8477: esac
1.15 paf 8478:
1.35 moko 8479: # Global variables:
8480: ofile=libtool
8481: can_build_shared=yes
1.15 paf 8482:
1.35 moko 8483: # All known linkers require a `.a' archive for static linking (except MSVC,
8484: # which needs '.lib').
8485: libext=a
1.15 paf 8486:
1.35 moko 8487: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.15 paf 8488:
1.35 moko 8489: old_CC="$CC"
8490: old_CFLAGS="$CFLAGS"
1.15 paf 8491:
1.35 moko 8492: # Set sane defaults for various variables
8493: test -z "$CC" && CC=cc
8494: test -z "$LTCC" && LTCC=$CC
8495: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8496: test -z "$LD" && LD=ld
8497: test -z "$ac_objext" && ac_objext=o
1.15 paf 8498:
1.35 moko 8499: for cc_temp in $compiler""; do
8500: case $cc_temp in
8501: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8502: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8503: \-*) ;;
8504: *) break;;
1.15 paf 8505: esac
1.35 moko 8506: done
8507: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.15 paf 8508:
8509:
1.35 moko 8510: # Only perform the check for file, if the check method requires it
8511: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8512: case $deplibs_check_method in
8513: file_magic*)
8514: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.43 moko 8515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8516: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8517: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8518: $as_echo_n "(cached) " >&6
1.35 moko 8519: else
8520: case $MAGIC_CMD in
8521: [\\/*] | ?:[\\/]*)
8522: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8523: ;;
8524: *)
8525: lt_save_MAGIC_CMD="$MAGIC_CMD"
8526: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8527: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8528: for ac_dir in $ac_dummy; do
8529: IFS="$lt_save_ifs"
8530: test -z "$ac_dir" && ac_dir=.
8531: if test -f $ac_dir/${ac_tool_prefix}file; then
8532: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8533: if test -n "$file_magic_test_file"; then
8534: case $deplibs_check_method in
8535: "file_magic "*)
8536: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8537: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8538: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8539: $EGREP "$file_magic_regex" > /dev/null; then
8540: :
8541: else
8542: cat <<_LT_EOF 1>&2
1.15 paf 8543:
1.35 moko 8544: *** Warning: the command libtool uses to detect shared libraries,
8545: *** $file_magic_cmd, produces output that libtool cannot recognize.
8546: *** The result is that libtool may fail to recognize shared libraries
8547: *** as such. This will affect the creation of libtool libraries that
8548: *** depend on shared libraries, but programs linked with such libtool
8549: *** libraries will work regardless of this problem. Nevertheless, you
8550: *** may want to report the problem to your system manager and/or to
8551: *** bug-libtool@gnu.org
1.15 paf 8552:
1.35 moko 8553: _LT_EOF
8554: fi ;;
8555: esac
8556: fi
8557: break
8558: fi
8559: done
8560: IFS="$lt_save_ifs"
8561: MAGIC_CMD="$lt_save_MAGIC_CMD"
8562: ;;
8563: esac
8564: fi
1.15 paf 8565:
1.35 moko 8566: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8567: if test -n "$MAGIC_CMD"; then
1.43 moko 8568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8569: $as_echo "$MAGIC_CMD" >&6; }
1.15 paf 8570: else
1.43 moko 8571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572: $as_echo "no" >&6; }
1.35 moko 8573: fi
8574:
1.15 paf 8575:
8576:
8577:
8578:
1.35 moko 8579: if test -z "$lt_cv_path_MAGIC_CMD"; then
8580: if test -n "$ac_tool_prefix"; then
1.43 moko 8581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8582: $as_echo_n "checking for file... " >&6; }
8583: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8584: $as_echo_n "(cached) " >&6
1.35 moko 8585: else
8586: case $MAGIC_CMD in
8587: [\\/*] | ?:[\\/]*)
8588: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8589: ;;
8590: *)
8591: lt_save_MAGIC_CMD="$MAGIC_CMD"
8592: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8593: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8594: for ac_dir in $ac_dummy; do
8595: IFS="$lt_save_ifs"
8596: test -z "$ac_dir" && ac_dir=.
8597: if test -f $ac_dir/file; then
8598: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8599: if test -n "$file_magic_test_file"; then
8600: case $deplibs_check_method in
8601: "file_magic "*)
8602: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8603: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8604: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8605: $EGREP "$file_magic_regex" > /dev/null; then
8606: :
8607: else
8608: cat <<_LT_EOF 1>&2
8609:
8610: *** Warning: the command libtool uses to detect shared libraries,
8611: *** $file_magic_cmd, produces output that libtool cannot recognize.
8612: *** The result is that libtool may fail to recognize shared libraries
8613: *** as such. This will affect the creation of libtool libraries that
8614: *** depend on shared libraries, but programs linked with such libtool
8615: *** libraries will work regardless of this problem. Nevertheless, you
8616: *** may want to report the problem to your system manager and/or to
8617: *** bug-libtool@gnu.org
1.15 paf 8618:
1.35 moko 8619: _LT_EOF
8620: fi ;;
8621: esac
8622: fi
8623: break
8624: fi
8625: done
8626: IFS="$lt_save_ifs"
8627: MAGIC_CMD="$lt_save_MAGIC_CMD"
8628: ;;
8629: esac
8630: fi
1.15 paf 8631:
1.35 moko 8632: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8633: if test -n "$MAGIC_CMD"; then
1.43 moko 8634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8635: $as_echo "$MAGIC_CMD" >&6; }
1.35 moko 8636: else
1.43 moko 8637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638: $as_echo "no" >&6; }
1.35 moko 8639: fi
1.15 paf 8640:
8641:
1.35 moko 8642: else
8643: MAGIC_CMD=:
1.15 paf 8644: fi
8645: fi
1.35 moko 8646:
8647: fi
8648: ;;
8649: esac
8650:
8651: # Use C for the default configuration in the libtool script
8652:
8653: lt_save_CC="$CC"
8654: ac_ext=c
8655: ac_cpp='$CPP $CPPFLAGS'
8656: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8657: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8658: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8659:
8660:
8661: # Source file extension for C test sources.
8662: ac_ext=c
8663:
8664: # Object file extension for compiled C test sources.
8665: objext=o
8666: objext=$objext
8667:
8668: # Code to be used in simple compile tests
8669: lt_simple_compile_test_code="int some_variable = 0;"
8670:
8671: # Code to be used in simple link tests
8672: lt_simple_link_test_code='int main(){return(0);}'
1.15 paf 8673:
8674:
8675:
8676:
8677:
8678:
8679:
1.35 moko 8680: # If no C compiler was specified, use CC.
8681: LTCC=${LTCC-"$CC"}
1.15 paf 8682:
1.35 moko 8683: # If no C compiler flags were specified, use CFLAGS.
8684: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.15 paf 8685:
1.35 moko 8686: # Allow CC to be a program name with arguments.
8687: compiler=$CC
1.15 paf 8688:
1.35 moko 8689: # Save the default compiler, since it gets overwritten when the other
8690: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8691: compiler_DEFAULT=$CC
1.15 paf 8692:
1.35 moko 8693: # save warnings/boilerplate of simple test code
8694: ac_outfile=conftest.$ac_objext
8695: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8696: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8697: _lt_compiler_boilerplate=`cat conftest.err`
8698: $RM conftest*
1.15 paf 8699:
1.35 moko 8700: ac_outfile=conftest.$ac_objext
8701: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8702: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8703: _lt_linker_boilerplate=`cat conftest.err`
8704: $RM -r conftest*
1.15 paf 8705:
8706:
1.36 moko 8707: ## CAVEAT EMPTOR:
8708: ## There is no encapsulation within the following macros, do not change
8709: ## the running order or otherwise move them around unless you know exactly
8710: ## what you are doing...
1.35 moko 8711: if test -n "$compiler"; then
1.15 paf 8712:
1.35 moko 8713: lt_prog_compiler_no_builtin_flag=
1.15 paf 8714:
1.35 moko 8715: if test "$GCC" = yes; then
8716: case $cc_basename in
8717: nvcc*)
8718: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8719: *)
8720: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.15 paf 8721: esac
8722:
1.43 moko 8723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8724: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8725: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8726: $as_echo_n "(cached) " >&6
1.15 paf 8727: else
1.35 moko 8728: lt_cv_prog_compiler_rtti_exceptions=no
8729: ac_outfile=conftest.$ac_objext
8730: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8731: lt_compiler_flag="-fno-rtti -fno-exceptions"
8732: # Insert the option either (1) after the last *FLAGS variable, or
8733: # (2) before a word containing "conftest.", or (3) at the end.
8734: # Note that $ac_compile itself does not contain backslashes and begins
8735: # with a dollar sign (not a hyphen), so the echo should work correctly.
8736: # The option is referenced via a variable to avoid confusing sed.
8737: lt_compile=`echo "$ac_compile" | $SED \
8738: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8739: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8740: -e 's:$: $lt_compiler_flag:'`
8741: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8742: (eval "$lt_compile" 2>conftest.err)
8743: ac_status=$?
8744: cat conftest.err >&5
8745: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746: if (exit $ac_status) && test -s "$ac_outfile"; then
8747: # The compiler can only warn and ignore the option if not recognized
8748: # So say no if there are warnings other than the usual output.
8749: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8750: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8751: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8752: lt_cv_prog_compiler_rtti_exceptions=yes
8753: fi
8754: fi
8755: $RM conftest*
1.15 paf 8756:
8757: fi
1.43 moko 8758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8759: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.15 paf 8760:
1.35 moko 8761: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8762: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8763: else
8764: :
1.15 paf 8765: fi
8766:
1.35 moko 8767: fi
1.15 paf 8768:
8769:
8770:
8771:
8772:
8773:
1.35 moko 8774: lt_prog_compiler_wl=
8775: lt_prog_compiler_pic=
8776: lt_prog_compiler_static=
1.15 paf 8777:
8778:
1.35 moko 8779: if test "$GCC" = yes; then
8780: lt_prog_compiler_wl='-Wl,'
8781: lt_prog_compiler_static='-static'
1.15 paf 8782:
1.35 moko 8783: case $host_os in
8784: aix*)
8785: # All AIX code is PIC.
8786: if test "$host_cpu" = ia64; then
8787: # AIX 5 now supports IA64 processor
8788: lt_prog_compiler_static='-Bstatic'
8789: fi
8790: ;;
1.15 paf 8791:
1.35 moko 8792: amigaos*)
8793: case $host_cpu in
8794: powerpc)
8795: # see comment about AmigaOS4 .so support
8796: lt_prog_compiler_pic='-fPIC'
8797: ;;
8798: m68k)
8799: # FIXME: we need at least 68020 code to build shared libraries, but
8800: # adding the `-m68020' flag to GCC prevents building anything better,
8801: # like `-m68040'.
8802: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8803: ;;
8804: esac
8805: ;;
1.15 paf 8806:
1.35 moko 8807: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8808: # PIC is the default for these OSes.
8809: ;;
1.15 paf 8810:
1.35 moko 8811: mingw* | cygwin* | pw32* | os2* | cegcc*)
8812: # This hack is so that the source file can tell whether it is being
8813: # built for inclusion in a dll (and should export symbols for example).
8814: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8815: # (--disable-auto-import) libraries
8816: lt_prog_compiler_pic='-DDLL_EXPORT'
8817: ;;
1.15 paf 8818:
1.35 moko 8819: darwin* | rhapsody*)
8820: # PIC is the default on this platform
8821: # Common symbols not allowed in MH_DYLIB files
8822: lt_prog_compiler_pic='-fno-common'
8823: ;;
1.15 paf 8824:
1.35 moko 8825: haiku*)
8826: # PIC is the default for Haiku.
8827: # The "-static" flag exists, but is broken.
8828: lt_prog_compiler_static=
8829: ;;
1.15 paf 8830:
1.35 moko 8831: hpux*)
8832: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8833: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8834: # sets the default TLS model and affects inlining.
8835: case $host_cpu in
8836: hppa*64*)
8837: # +Z the default
8838: ;;
8839: *)
8840: lt_prog_compiler_pic='-fPIC'
8841: ;;
8842: esac
8843: ;;
1.15 paf 8844:
1.35 moko 8845: interix[3-9]*)
8846: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8847: # Instead, we relocate shared libraries at runtime.
8848: ;;
1.15 paf 8849:
1.35 moko 8850: msdosdjgpp*)
8851: # Just because we use GCC doesn't mean we suddenly get shared libraries
8852: # on systems that don't support them.
8853: lt_prog_compiler_can_build_shared=no
8854: enable_shared=no
8855: ;;
1.15 paf 8856:
1.35 moko 8857: *nto* | *qnx*)
8858: # QNX uses GNU C++, but need to define -shared option too, otherwise
8859: # it will coredump.
8860: lt_prog_compiler_pic='-fPIC -shared'
8861: ;;
1.15 paf 8862:
1.35 moko 8863: sysv4*MP*)
8864: if test -d /usr/nec; then
8865: lt_prog_compiler_pic=-Kconform_pic
8866: fi
8867: ;;
1.15 paf 8868:
1.35 moko 8869: *)
8870: lt_prog_compiler_pic='-fPIC'
8871: ;;
8872: esac
1.15 paf 8873:
1.35 moko 8874: case $cc_basename in
8875: nvcc*) # Cuda Compiler Driver 2.2
8876: lt_prog_compiler_wl='-Xlinker '
8877: if test -n "$lt_prog_compiler_pic"; then
8878: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8879: fi
8880: ;;
8881: esac
8882: else
8883: # PORTME Check for flag to pass linker flags through the system compiler.
8884: case $host_os in
8885: aix*)
8886: lt_prog_compiler_wl='-Wl,'
8887: if test "$host_cpu" = ia64; then
8888: # AIX 5 now supports IA64 processor
8889: lt_prog_compiler_static='-Bstatic'
8890: else
8891: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8892: fi
8893: ;;
1.15 paf 8894:
1.35 moko 8895: mingw* | cygwin* | pw32* | os2* | cegcc*)
8896: # This hack is so that the source file can tell whether it is being
8897: # built for inclusion in a dll (and should export symbols for example).
8898: lt_prog_compiler_pic='-DDLL_EXPORT'
8899: ;;
1.15 paf 8900:
1.35 moko 8901: hpux9* | hpux10* | hpux11*)
8902: lt_prog_compiler_wl='-Wl,'
8903: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8904: # not for PA HP-UX.
8905: case $host_cpu in
8906: hppa*64*|ia64*)
8907: # +Z the default
8908: ;;
8909: *)
8910: lt_prog_compiler_pic='+Z'
8911: ;;
8912: esac
8913: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8914: lt_prog_compiler_static='${wl}-a ${wl}archive'
8915: ;;
1.15 paf 8916:
1.35 moko 8917: irix5* | irix6* | nonstopux*)
8918: lt_prog_compiler_wl='-Wl,'
8919: # PIC (with -KPIC) is the default.
8920: lt_prog_compiler_static='-non_shared'
8921: ;;
1.15 paf 8922:
1.35 moko 8923: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8924: case $cc_basename in
8925: # old Intel for x86_64 which still supported -KPIC.
8926: ecc*)
8927: lt_prog_compiler_wl='-Wl,'
8928: lt_prog_compiler_pic='-KPIC'
8929: lt_prog_compiler_static='-static'
8930: ;;
8931: # icc used to be incompatible with GCC.
8932: # ICC 10 doesn't accept -KPIC any more.
8933: icc* | ifort*)
8934: lt_prog_compiler_wl='-Wl,'
8935: lt_prog_compiler_pic='-fPIC'
8936: lt_prog_compiler_static='-static'
8937: ;;
8938: # Lahey Fortran 8.1.
8939: lf95*)
8940: lt_prog_compiler_wl='-Wl,'
8941: lt_prog_compiler_pic='--shared'
8942: lt_prog_compiler_static='--static'
8943: ;;
8944: nagfor*)
8945: # NAG Fortran compiler
8946: lt_prog_compiler_wl='-Wl,-Wl,,'
8947: lt_prog_compiler_pic='-PIC'
8948: lt_prog_compiler_static='-Bstatic'
8949: ;;
8950: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8951: # Portland Group compilers (*not* the Pentium gcc compiler,
8952: # which looks to be a dead project)
8953: lt_prog_compiler_wl='-Wl,'
8954: lt_prog_compiler_pic='-fpic'
8955: lt_prog_compiler_static='-Bstatic'
8956: ;;
8957: ccc*)
8958: lt_prog_compiler_wl='-Wl,'
8959: # All Alpha code is PIC.
8960: lt_prog_compiler_static='-non_shared'
8961: ;;
8962: xl* | bgxl* | bgf* | mpixl*)
8963: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8964: lt_prog_compiler_wl='-Wl,'
8965: lt_prog_compiler_pic='-qpic'
8966: lt_prog_compiler_static='-qstaticlink'
8967: ;;
8968: *)
8969: case `$CC -V 2>&1 | sed 5q` in
8970: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8971: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8972: lt_prog_compiler_pic='-KPIC'
8973: lt_prog_compiler_static='-Bstatic'
8974: lt_prog_compiler_wl=''
8975: ;;
8976: *Sun\ F* | *Sun*Fortran*)
8977: lt_prog_compiler_pic='-KPIC'
8978: lt_prog_compiler_static='-Bstatic'
8979: lt_prog_compiler_wl='-Qoption ld '
8980: ;;
8981: *Sun\ C*)
8982: # Sun C 5.9
8983: lt_prog_compiler_pic='-KPIC'
8984: lt_prog_compiler_static='-Bstatic'
8985: lt_prog_compiler_wl='-Wl,'
8986: ;;
8987: *Intel*\ [CF]*Compiler*)
8988: lt_prog_compiler_wl='-Wl,'
8989: lt_prog_compiler_pic='-fPIC'
8990: lt_prog_compiler_static='-static'
8991: ;;
8992: *Portland\ Group*)
8993: lt_prog_compiler_wl='-Wl,'
8994: lt_prog_compiler_pic='-fpic'
8995: lt_prog_compiler_static='-Bstatic'
8996: ;;
8997: esac
8998: ;;
8999: esac
9000: ;;
1.15 paf 9001:
1.35 moko 9002: newsos6)
9003: lt_prog_compiler_pic='-KPIC'
9004: lt_prog_compiler_static='-Bstatic'
9005: ;;
1.15 paf 9006:
1.35 moko 9007: *nto* | *qnx*)
9008: # QNX uses GNU C++, but need to define -shared option too, otherwise
9009: # it will coredump.
9010: lt_prog_compiler_pic='-fPIC -shared'
9011: ;;
1.15 paf 9012:
1.35 moko 9013: osf3* | osf4* | osf5*)
9014: lt_prog_compiler_wl='-Wl,'
9015: # All OSF/1 code is PIC.
9016: lt_prog_compiler_static='-non_shared'
9017: ;;
1.15 paf 9018:
1.35 moko 9019: rdos*)
9020: lt_prog_compiler_static='-non_shared'
9021: ;;
1.15 paf 9022:
1.35 moko 9023: solaris*)
9024: lt_prog_compiler_pic='-KPIC'
9025: lt_prog_compiler_static='-Bstatic'
9026: case $cc_basename in
9027: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9028: lt_prog_compiler_wl='-Qoption ld ';;
9029: *)
9030: lt_prog_compiler_wl='-Wl,';;
9031: esac
9032: ;;
1.15 paf 9033:
1.35 moko 9034: sunos4*)
9035: lt_prog_compiler_wl='-Qoption ld '
9036: lt_prog_compiler_pic='-PIC'
9037: lt_prog_compiler_static='-Bstatic'
9038: ;;
1.15 paf 9039:
1.35 moko 9040: sysv4 | sysv4.2uw2* | sysv4.3*)
9041: lt_prog_compiler_wl='-Wl,'
9042: lt_prog_compiler_pic='-KPIC'
9043: lt_prog_compiler_static='-Bstatic'
9044: ;;
1.15 paf 9045:
1.35 moko 9046: sysv4*MP*)
9047: if test -d /usr/nec ;then
9048: lt_prog_compiler_pic='-Kconform_pic'
9049: lt_prog_compiler_static='-Bstatic'
9050: fi
9051: ;;
1.15 paf 9052:
1.35 moko 9053: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9054: lt_prog_compiler_wl='-Wl,'
9055: lt_prog_compiler_pic='-KPIC'
9056: lt_prog_compiler_static='-Bstatic'
9057: ;;
1.15 paf 9058:
1.35 moko 9059: unicos*)
9060: lt_prog_compiler_wl='-Wl,'
9061: lt_prog_compiler_can_build_shared=no
9062: ;;
1.15 paf 9063:
1.35 moko 9064: uts4*)
9065: lt_prog_compiler_pic='-pic'
9066: lt_prog_compiler_static='-Bstatic'
9067: ;;
1.15 paf 9068:
1.35 moko 9069: *)
9070: lt_prog_compiler_can_build_shared=no
9071: ;;
9072: esac
9073: fi
1.15 paf 9074:
1.35 moko 9075: case $host_os in
9076: # For platforms which do not support PIC, -DPIC is meaningless:
9077: *djgpp*)
9078: lt_prog_compiler_pic=
9079: ;;
9080: *)
9081: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9082: ;;
9083: esac
1.15 paf 9084:
1.43 moko 9085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9086: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9087: if ${lt_cv_prog_compiler_pic+:} false; then :
9088: $as_echo_n "(cached) " >&6
1.35 moko 9089: else
9090: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9091: fi
1.43 moko 9092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9093: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.35 moko 9094: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.15 paf 9095:
1.35 moko 9096: #
9097: # Check to make sure the PIC flag actually works.
9098: #
9099: if test -n "$lt_prog_compiler_pic"; then
1.43 moko 9100: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9101: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9102: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9103: $as_echo_n "(cached) " >&6
1.35 moko 9104: else
9105: lt_cv_prog_compiler_pic_works=no
9106: ac_outfile=conftest.$ac_objext
9107: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9108: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9109: # Insert the option either (1) after the last *FLAGS variable, or
9110: # (2) before a word containing "conftest.", or (3) at the end.
9111: # Note that $ac_compile itself does not contain backslashes and begins
9112: # with a dollar sign (not a hyphen), so the echo should work correctly.
9113: # The option is referenced via a variable to avoid confusing sed.
9114: lt_compile=`echo "$ac_compile" | $SED \
9115: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9116: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9117: -e 's:$: $lt_compiler_flag:'`
9118: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9119: (eval "$lt_compile" 2>conftest.err)
9120: ac_status=$?
9121: cat conftest.err >&5
9122: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123: if (exit $ac_status) && test -s "$ac_outfile"; then
9124: # The compiler can only warn and ignore the option if not recognized
9125: # So say no if there are warnings other than the usual output.
9126: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9127: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9129: lt_cv_prog_compiler_pic_works=yes
9130: fi
9131: fi
9132: $RM conftest*
1.15 paf 9133:
1.35 moko 9134: fi
1.43 moko 9135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9136: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.15 paf 9137:
1.35 moko 9138: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9139: case $lt_prog_compiler_pic in
9140: "" | " "*) ;;
9141: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9142: esac
9143: else
9144: lt_prog_compiler_pic=
9145: lt_prog_compiler_can_build_shared=no
9146: fi
1.15 paf 9147:
1.35 moko 9148: fi
1.15 paf 9149:
9150:
9151:
9152:
9153:
9154:
9155:
9156:
9157:
9158:
9159:
1.35 moko 9160: #
9161: # Check to make sure the static flag actually works.
9162: #
9163: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.43 moko 9164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9165: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9166: if ${lt_cv_prog_compiler_static_works+:} false; then :
9167: $as_echo_n "(cached) " >&6
1.35 moko 9168: else
9169: lt_cv_prog_compiler_static_works=no
9170: save_LDFLAGS="$LDFLAGS"
9171: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9172: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9173: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9174: # The linker can only warn and ignore the option if not recognized
9175: # So say no if there are warnings
9176: if test -s conftest.err; then
9177: # Append any errors to the config.log.
9178: cat conftest.err 1>&5
9179: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9180: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9181: if diff conftest.exp conftest.er2 >/dev/null; then
9182: lt_cv_prog_compiler_static_works=yes
9183: fi
9184: else
9185: lt_cv_prog_compiler_static_works=yes
9186: fi
9187: fi
9188: $RM -r conftest*
9189: LDFLAGS="$save_LDFLAGS"
1.15 paf 9190:
1.35 moko 9191: fi
1.43 moko 9192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9193: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.15 paf 9194:
1.35 moko 9195: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9196: :
9197: else
9198: lt_prog_compiler_static=
9199: fi
1.15 paf 9200:
9201:
9202:
9203:
9204:
9205:
9206:
1.43 moko 9207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9208: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9209: if ${lt_cv_prog_compiler_c_o+:} false; then :
9210: $as_echo_n "(cached) " >&6
1.35 moko 9211: else
9212: lt_cv_prog_compiler_c_o=no
9213: $RM -r conftest 2>/dev/null
9214: mkdir conftest
9215: cd conftest
9216: mkdir out
9217: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9218:
9219: lt_compiler_flag="-o out/conftest2.$ac_objext"
9220: # Insert the option either (1) after the last *FLAGS variable, or
9221: # (2) before a word containing "conftest.", or (3) at the end.
9222: # Note that $ac_compile itself does not contain backslashes and begins
9223: # with a dollar sign (not a hyphen), so the echo should work correctly.
9224: lt_compile=`echo "$ac_compile" | $SED \
9225: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9226: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9227: -e 's:$: $lt_compiler_flag:'`
9228: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9229: (eval "$lt_compile" 2>out/conftest.err)
9230: ac_status=$?
9231: cat out/conftest.err >&5
9232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9234: then
9235: # The compiler can only warn and ignore the option if not recognized
9236: # So say no if there are warnings
9237: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9238: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9239: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9240: lt_cv_prog_compiler_c_o=yes
9241: fi
9242: fi
9243: chmod u+w . 2>&5
9244: $RM conftest*
9245: # SGI C++ compiler will create directory out/ii_files/ for
9246: # template instantiation
9247: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9248: $RM out/* && rmdir out
9249: cd ..
9250: $RM -r conftest
9251: $RM conftest*
1.15 paf 9252:
1.35 moko 9253: fi
1.43 moko 9254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9255: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.15 paf 9256:
9257:
9258:
9259:
9260:
9261:
1.43 moko 9262: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9263: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9264: if ${lt_cv_prog_compiler_c_o+:} false; then :
9265: $as_echo_n "(cached) " >&6
1.35 moko 9266: else
9267: lt_cv_prog_compiler_c_o=no
9268: $RM -r conftest 2>/dev/null
9269: mkdir conftest
9270: cd conftest
9271: mkdir out
9272: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9273:
9274: lt_compiler_flag="-o out/conftest2.$ac_objext"
9275: # Insert the option either (1) after the last *FLAGS variable, or
9276: # (2) before a word containing "conftest.", or (3) at the end.
9277: # Note that $ac_compile itself does not contain backslashes and begins
9278: # with a dollar sign (not a hyphen), so the echo should work correctly.
9279: lt_compile=`echo "$ac_compile" | $SED \
9280: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9281: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9282: -e 's:$: $lt_compiler_flag:'`
9283: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9284: (eval "$lt_compile" 2>out/conftest.err)
9285: ac_status=$?
9286: cat out/conftest.err >&5
9287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9289: then
9290: # The compiler can only warn and ignore the option if not recognized
9291: # So say no if there are warnings
9292: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9293: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9294: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9295: lt_cv_prog_compiler_c_o=yes
9296: fi
9297: fi
9298: chmod u+w . 2>&5
9299: $RM conftest*
9300: # SGI C++ compiler will create directory out/ii_files/ for
9301: # template instantiation
9302: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9303: $RM out/* && rmdir out
9304: cd ..
9305: $RM -r conftest
9306: $RM conftest*
1.15 paf 9307:
1.35 moko 9308: fi
1.43 moko 9309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9310: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.15 paf 9311:
9312:
9313:
9314:
1.35 moko 9315: hard_links="nottested"
9316: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9317: # do not overwrite the value of need_locks provided by the user
1.43 moko 9318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9319: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.35 moko 9320: hard_links=yes
9321: $RM conftest*
9322: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9323: touch conftest.a
9324: ln conftest.a conftest.b 2>&5 || hard_links=no
9325: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.43 moko 9326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9327: $as_echo "$hard_links" >&6; }
1.35 moko 9328: if test "$hard_links" = no; then
1.43 moko 9329: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9330: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.35 moko 9331: need_locks=warn
9332: fi
9333: else
9334: need_locks=no
9335: fi
1.15 paf 9336:
9337:
9338:
9339:
9340:
9341:
1.43 moko 9342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9343: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.15 paf 9344:
1.35 moko 9345: runpath_var=
9346: allow_undefined_flag=
9347: always_export_symbols=no
9348: archive_cmds=
9349: archive_expsym_cmds=
9350: compiler_needs_object=no
9351: enable_shared_with_static_runtimes=no
9352: export_dynamic_flag_spec=
9353: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9354: hardcode_automatic=no
9355: hardcode_direct=no
9356: hardcode_direct_absolute=no
9357: hardcode_libdir_flag_spec=
9358: hardcode_libdir_separator=
9359: hardcode_minus_L=no
9360: hardcode_shlibpath_var=unsupported
9361: inherit_rpath=no
9362: link_all_deplibs=unknown
9363: module_cmds=
9364: module_expsym_cmds=
9365: old_archive_from_new_cmds=
9366: old_archive_from_expsyms_cmds=
9367: thread_safe_flag_spec=
9368: whole_archive_flag_spec=
9369: # include_expsyms should be a list of space-separated symbols to be *always*
9370: # included in the symbol list
9371: include_expsyms=
9372: # exclude_expsyms can be an extended regexp of symbols to exclude
9373: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9374: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9375: # as well as any symbol that contains `d'.
9376: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9377: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9378: # platforms (ab)use it in PIC code, but their linkers get confused if
9379: # the symbol is explicitly referenced. Since portable code cannot
9380: # rely on this symbol name, it's probably fine to never include it in
9381: # preloaded symbol tables.
9382: # Exclude shared library initialization/finalization symbols.
9383: extract_expsyms_cmds=
1.15 paf 9384:
9385: case $host_os in
1.35 moko 9386: cygwin* | mingw* | pw32* | cegcc*)
9387: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9388: # When not using gcc, we currently assume that we are using
9389: # Microsoft Visual C++.
9390: if test "$GCC" != yes; then
9391: with_gnu_ld=no
9392: fi
9393: ;;
9394: interix*)
9395: # we just hope/assume this is gcc and not c89 (= MSVC++)
9396: with_gnu_ld=yes
9397: ;;
9398: openbsd*)
9399: with_gnu_ld=no
1.15 paf 9400: ;;
9401: esac
9402:
1.35 moko 9403: ld_shlibs=yes
1.15 paf 9404:
1.35 moko 9405: # On some targets, GNU ld is compatible enough with the native linker
9406: # that we're better off using the native interface for both.
9407: lt_use_gnu_ld_interface=no
9408: if test "$with_gnu_ld" = yes; then
9409: case $host_os in
9410: aix*)
9411: # The AIX port of GNU ld has always aspired to compatibility
9412: # with the native linker. However, as the warning in the GNU ld
9413: # block says, versions before 2.19.5* couldn't really create working
9414: # shared libraries, regardless of the interface used.
9415: case `$LD -v 2>&1` in
9416: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9417: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9418: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9419: *)
9420: lt_use_gnu_ld_interface=yes
9421: ;;
9422: esac
9423: ;;
9424: *)
9425: lt_use_gnu_ld_interface=yes
9426: ;;
9427: esac
9428: fi
1.15 paf 9429:
1.35 moko 9430: if test "$lt_use_gnu_ld_interface" = yes; then
9431: # If archive_cmds runs LD, not CC, wlarc should be empty
9432: wlarc='${wl}'
9433:
9434: # Set some defaults for GNU ld with shared library support. These
9435: # are reset later if shared libraries are not supported. Putting them
9436: # here allows them to be overridden if necessary.
9437: runpath_var=LD_RUN_PATH
9438: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9439: export_dynamic_flag_spec='${wl}--export-dynamic'
9440: # ancient GNU ld didn't support --whole-archive et. al.
9441: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9442: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9443: else
9444: whole_archive_flag_spec=
9445: fi
9446: supports_anon_versioning=no
9447: case `$LD -v 2>&1` in
9448: *GNU\ gold*) supports_anon_versioning=yes ;;
9449: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9450: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9451: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9452: *\ 2.11.*) ;; # other 2.11 versions
9453: *) supports_anon_versioning=yes ;;
9454: esac
1.15 paf 9455:
1.35 moko 9456: # See if GNU ld supports shared libraries.
9457: case $host_os in
9458: aix[3-9]*)
9459: # On AIX/PPC, the GNU linker is very broken
9460: if test "$host_cpu" != ia64; then
9461: ld_shlibs=no
9462: cat <<_LT_EOF 1>&2
1.15 paf 9463:
1.35 moko 9464: *** Warning: the GNU linker, at least up to release 2.19, is reported
9465: *** to be unable to reliably create shared libraries on AIX.
9466: *** Therefore, libtool is disabling shared libraries support. If you
9467: *** really care for shared libraries, you may want to install binutils
9468: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9469: *** You will then need to restart the configuration process.
1.15 paf 9470:
1.35 moko 9471: _LT_EOF
9472: fi
9473: ;;
1.15 paf 9474:
1.35 moko 9475: amigaos*)
9476: case $host_cpu in
9477: powerpc)
9478: # see comment about AmigaOS4 .so support
9479: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480: archive_expsym_cmds=''
9481: ;;
9482: m68k)
9483: 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)'
9484: hardcode_libdir_flag_spec='-L$libdir'
9485: hardcode_minus_L=yes
9486: ;;
9487: esac
9488: ;;
1.15 paf 9489:
1.35 moko 9490: beos*)
9491: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9492: allow_undefined_flag=unsupported
9493: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9494: # support --undefined. This deserves some investigation. FIXME
9495: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9496: else
9497: ld_shlibs=no
9498: fi
9499: ;;
1.15 paf 9500:
1.35 moko 9501: cygwin* | mingw* | pw32* | cegcc*)
9502: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9503: # as there is no search path for DLLs.
9504: hardcode_libdir_flag_spec='-L$libdir'
9505: export_dynamic_flag_spec='${wl}--export-all-symbols'
9506: allow_undefined_flag=unsupported
9507: always_export_symbols=no
9508: enable_shared_with_static_runtimes=yes
9509: 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'
9510: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9511:
9512: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9513: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9514: # If the export-symbols file already is a .def file (1st line
9515: # is EXPORTS), use it as is; otherwise, prepend...
9516: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9517: cp $export_symbols $output_objdir/$soname.def;
9518: else
9519: echo EXPORTS > $output_objdir/$soname.def;
9520: cat $export_symbols >> $output_objdir/$soname.def;
9521: fi~
9522: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9523: else
9524: ld_shlibs=no
9525: fi
9526: ;;
1.15 paf 9527:
1.35 moko 9528: haiku*)
9529: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530: link_all_deplibs=yes
9531: ;;
1.15 paf 9532:
1.35 moko 9533: interix[3-9]*)
9534: hardcode_direct=no
9535: hardcode_shlibpath_var=no
9536: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9537: export_dynamic_flag_spec='${wl}-E'
9538: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9539: # Instead, shared libraries are loaded at an image base (0x10000000 by
9540: # default) and relocated if they conflict, which is a slow very memory
9541: # consuming and fragmenting process. To avoid this, we pick a random,
9542: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9543: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9544: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9545: 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'
9546: ;;
1.15 paf 9547:
1.35 moko 9548: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9549: tmp_diet=no
9550: if test "$host_os" = linux-dietlibc; then
9551: case $cc_basename in
9552: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9553: esac
9554: fi
9555: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9556: && test "$tmp_diet" = no
9557: then
9558: tmp_addflag=' $pic_flag'
9559: tmp_sharedflag='-shared'
9560: case $cc_basename,$host_cpu in
9561: pgcc*) # Portland Group C compiler
9562: 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'
9563: tmp_addflag=' $pic_flag'
9564: ;;
9565: pgf77* | pgf90* | pgf95* | pgfortran*)
9566: # Portland Group f77 and f90 compilers
9567: 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'
9568: tmp_addflag=' $pic_flag -Mnomain' ;;
9569: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9570: tmp_addflag=' -i_dynamic' ;;
9571: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9572: tmp_addflag=' -i_dynamic -nofor_main' ;;
9573: ifc* | ifort*) # Intel Fortran compiler
9574: tmp_addflag=' -nofor_main' ;;
9575: lf95*) # Lahey Fortran 8.1
9576: whole_archive_flag_spec=
9577: tmp_sharedflag='--shared' ;;
9578: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9579: tmp_sharedflag='-qmkshrobj'
9580: tmp_addflag= ;;
9581: nvcc*) # Cuda Compiler Driver 2.2
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: compiler_needs_object=yes
9584: ;;
9585: esac
9586: case `$CC -V 2>&1 | sed 5q` in
9587: *Sun\ C*) # Sun C 5.9
9588: 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'
9589: compiler_needs_object=yes
9590: tmp_sharedflag='-G' ;;
9591: *Sun\ F*) # Sun Fortran 8.3
9592: tmp_sharedflag='-G' ;;
9593: esac
9594: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.15 paf 9595:
1.35 moko 9596: if test "x$supports_anon_versioning" = xyes; then
9597: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9598: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9599: echo "local: *; };" >> $output_objdir/$libname.ver~
9600: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9601: fi
9602:
9603: case $cc_basename in
9604: xlf* | bgf* | bgxlf* | mpixlf*)
9605: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9606: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9607: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9609: if test "x$supports_anon_versioning" = xyes; then
9610: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9611: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9612: echo "local: *; };" >> $output_objdir/$libname.ver~
9613: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9614: fi
9615: ;;
9616: esac
9617: else
9618: ld_shlibs=no
9619: fi
9620: ;;
1.15 paf 9621:
1.35 moko 9622: netbsd*)
9623: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9624: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9625: wlarc=
9626: else
9627: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9628: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9629: fi
9630: ;;
1.15 paf 9631:
1.35 moko 9632: solaris*)
9633: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9634: ld_shlibs=no
9635: cat <<_LT_EOF 1>&2
1.15 paf 9636:
1.35 moko 9637: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9638: *** create shared libraries on Solaris systems. Therefore, libtool
9639: *** is disabling shared libraries support. We urge you to upgrade GNU
9640: *** binutils to release 2.9.1 or newer. Another option is to modify
9641: *** your PATH or compiler configuration so that the native linker is
9642: *** used, and then restart.
1.15 paf 9643:
1.35 moko 9644: _LT_EOF
9645: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9646: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9648: else
9649: ld_shlibs=no
9650: fi
9651: ;;
1.15 paf 9652:
1.35 moko 9653: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9654: case `$LD -v 2>&1` in
9655: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9656: ld_shlibs=no
9657: cat <<_LT_EOF 1>&2
1.31 misha 9658:
1.35 moko 9659: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9660: *** reliably create shared libraries on SCO systems. Therefore, libtool
9661: *** is disabling shared libraries support. We urge you to upgrade GNU
9662: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9663: *** your PATH or compiler configuration so that the native linker is
9664: *** used, and then restart.
1.31 misha 9665:
1.35 moko 9666: _LT_EOF
9667: ;;
9668: *)
9669: # For security reasons, it is highly recommended that you always
9670: # use absolute paths for naming shared libraries, and exclude the
9671: # DT_RUNPATH tag from executables and libraries. But doing so
9672: # requires that you compile everything twice, which is a pain.
9673: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9674: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9675: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9676: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9677: else
9678: ld_shlibs=no
9679: fi
9680: ;;
9681: esac
9682: ;;
1.31 misha 9683:
1.35 moko 9684: sunos4*)
9685: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9686: wlarc=
9687: hardcode_direct=yes
9688: hardcode_shlibpath_var=no
9689: ;;
1.15 paf 9690:
1.35 moko 9691: *)
9692: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9693: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9694: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9695: else
9696: ld_shlibs=no
9697: fi
9698: ;;
9699: esac
1.15 paf 9700:
1.35 moko 9701: if test "$ld_shlibs" = no; then
9702: runpath_var=
9703: hardcode_libdir_flag_spec=
9704: export_dynamic_flag_spec=
9705: whole_archive_flag_spec=
9706: fi
9707: else
9708: # PORTME fill in a description of your system's linker (not GNU ld)
9709: case $host_os in
9710: aix3*)
9711: allow_undefined_flag=unsupported
9712: always_export_symbols=yes
9713: 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'
9714: # Note: this linker hardcodes the directories in LIBPATH if there
9715: # are no directories specified by -L.
9716: hardcode_minus_L=yes
9717: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9718: # Neither direct hardcoding nor static linking is supported with a
9719: # broken collect2.
9720: hardcode_direct=unsupported
9721: fi
9722: ;;
1.15 paf 9723:
1.35 moko 9724: aix[4-9]*)
9725: if test "$host_cpu" = ia64; then
9726: # On IA64, the linker does run time linking by default, so we don't
9727: # have to do anything special.
9728: aix_use_runtimelinking=no
9729: exp_sym_flag='-Bexport'
9730: no_entry_flag=""
9731: else
9732: # If we're using GNU nm, then we don't want the "-C" option.
9733: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9734: # Also, AIX nm treats weak defined symbols like other global
9735: # defined symbols, whereas GNU nm marks them as "W".
9736: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9737: 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'
9738: else
9739: 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'
9740: fi
9741: aix_use_runtimelinking=no
1.15 paf 9742:
1.35 moko 9743: # Test if we are trying to use run time linking or normal
9744: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9745: # need to do runtime linking.
9746: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9747: for ld_flag in $LDFLAGS; do
9748: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9749: aix_use_runtimelinking=yes
9750: break
9751: fi
9752: done
9753: ;;
9754: esac
1.15 paf 9755:
1.35 moko 9756: exp_sym_flag='-bexport'
9757: no_entry_flag='-bnoentry'
9758: fi
1.23 paf 9759:
1.35 moko 9760: # When large executables or shared objects are built, AIX ld can
9761: # have problems creating the table of contents. If linking a library
9762: # or program results in "error TOC overflow" add -mminimal-toc to
9763: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9764: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9765:
9766: archive_cmds=''
9767: hardcode_direct=yes
9768: hardcode_direct_absolute=yes
9769: hardcode_libdir_separator=':'
9770: link_all_deplibs=yes
9771: file_list_spec='${wl}-f,'
9772:
9773: if test "$GCC" = yes; then
9774: case $host_os in aix4.[012]|aix4.[012].*)
9775: # We only want to do this on AIX 4.2 and lower, the check
9776: # below for broken collect2 doesn't work under 4.3+
9777: collect2name=`${CC} -print-prog-name=collect2`
9778: if test -f "$collect2name" &&
9779: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9780: then
9781: # We have reworked collect2
9782: :
9783: else
9784: # We have old collect2
9785: hardcode_direct=unsupported
9786: # It fails to find uninstalled libraries when the uninstalled
9787: # path is not listed in the libpath. Setting hardcode_minus_L
9788: # to unsupported forces relinking
9789: hardcode_minus_L=yes
9790: hardcode_libdir_flag_spec='-L$libdir'
9791: hardcode_libdir_separator=
9792: fi
9793: ;;
9794: esac
9795: shared_flag='-shared'
9796: if test "$aix_use_runtimelinking" = yes; then
9797: shared_flag="$shared_flag "'${wl}-G'
9798: fi
9799: else
9800: # not using gcc
9801: if test "$host_cpu" = ia64; then
9802: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9803: # chokes on -Wl,-G. The following line is correct:
9804: shared_flag='-G'
9805: else
9806: if test "$aix_use_runtimelinking" = yes; then
9807: shared_flag='${wl}-G'
9808: else
9809: shared_flag='${wl}-bM:SRE'
9810: fi
9811: fi
9812: fi
1.15 paf 9813:
1.35 moko 9814: export_dynamic_flag_spec='${wl}-bexpall'
9815: # It seems that -bexpall does not export symbols beginning with
9816: # underscore (_), so it is better to generate a list of symbols to export.
9817: always_export_symbols=yes
9818: if test "$aix_use_runtimelinking" = yes; then
9819: # Warning - without using the other runtime loading flags (-brtl),
9820: # -berok will link without error, but may produce a broken library.
9821: allow_undefined_flag='-berok'
9822: # Determine the default libpath from the value encoded in an
9823: # empty executable.
9824: if test "${lt_cv_aix_libpath+set}" = set; then
9825: aix_libpath=$lt_cv_aix_libpath
9826: else
1.43 moko 9827: if ${lt_cv_aix_libpath_+:} false; then :
9828: $as_echo_n "(cached) " >&6
1.15 paf 9829: else
1.43 moko 9830: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 9831: /* end confdefs.h. */
1.35 moko 9832:
9833: int
9834: main ()
9835: {
9836:
9837: ;
9838: return 0;
9839: }
1.15 paf 9840: _ACEOF
1.43 moko 9841: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 9842:
9843: lt_aix_libpath_sed='
9844: /Import File Strings/,/^$/ {
9845: /^0/ {
9846: s/^0 *\([^ ]*\) *$/\1/
9847: p
9848: }
9849: }'
9850: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9851: # Check for a 64-bit object if we didn't find anything.
9852: if test -z "$lt_cv_aix_libpath_"; then
9853: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9854: fi
1.15 paf 9855: fi
1.43 moko 9856: rm -f core conftest.err conftest.$ac_objext \
9857: conftest$ac_exeext conftest.$ac_ext
1.35 moko 9858: if test -z "$lt_cv_aix_libpath_"; then
9859: lt_cv_aix_libpath_="/usr/lib:/lib"
9860: fi
9861:
9862: fi
9863:
9864: aix_libpath=$lt_cv_aix_libpath_
9865: fi
1.15 paf 9866:
1.35 moko 9867: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9868: 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"
9869: else
9870: if test "$host_cpu" = ia64; then
9871: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9872: allow_undefined_flag="-z nodefs"
9873: 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"
9874: else
9875: # Determine the default libpath from the value encoded in an
9876: # empty executable.
9877: if test "${lt_cv_aix_libpath+set}" = set; then
9878: aix_libpath=$lt_cv_aix_libpath
9879: else
1.43 moko 9880: if ${lt_cv_aix_libpath_+:} false; then :
9881: $as_echo_n "(cached) " >&6
1.35 moko 9882: else
1.43 moko 9883: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 9884: /* end confdefs.h. */
1.35 moko 9885:
9886: int
9887: main ()
9888: {
9889:
9890: ;
9891: return 0;
9892: }
1.15 paf 9893: _ACEOF
1.43 moko 9894: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 9895:
9896: lt_aix_libpath_sed='
9897: /Import File Strings/,/^$/ {
9898: /^0/ {
9899: s/^0 *\([^ ]*\) *$/\1/
9900: p
9901: }
9902: }'
9903: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9904: # Check for a 64-bit object if we didn't find anything.
9905: if test -z "$lt_cv_aix_libpath_"; then
9906: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.15 paf 9907: fi
9908: fi
1.43 moko 9909: rm -f core conftest.err conftest.$ac_objext \
9910: conftest$ac_exeext conftest.$ac_ext
1.35 moko 9911: if test -z "$lt_cv_aix_libpath_"; then
9912: lt_cv_aix_libpath_="/usr/lib:/lib"
9913: fi
9914:
9915: fi
9916:
9917: aix_libpath=$lt_cv_aix_libpath_
9918: fi
9919:
9920: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9921: # Warning - without using the other run time loading flags,
9922: # -berok will link without error, but may produce a broken library.
9923: no_undefined_flag=' ${wl}-bernotok'
9924: allow_undefined_flag=' ${wl}-berok'
9925: if test "$with_gnu_ld" = yes; then
9926: # We only use this code for GNU lds that support --whole-archive.
9927: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9928: else
9929: # Exported symbols can be pulled into shared objects from archives
9930: whole_archive_flag_spec='$convenience'
9931: fi
9932: archive_cmds_need_lc=yes
9933: # This is similar to how AIX traditionally builds its shared libraries.
9934: 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'
9935: fi
9936: fi
9937: ;;
9938:
9939: amigaos*)
9940: case $host_cpu in
9941: powerpc)
9942: # see comment about AmigaOS4 .so support
9943: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9944: archive_expsym_cmds=''
9945: ;;
9946: m68k)
9947: 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)'
9948: hardcode_libdir_flag_spec='-L$libdir'
9949: hardcode_minus_L=yes
9950: ;;
9951: esac
9952: ;;
9953:
9954: bsdi[45]*)
9955: export_dynamic_flag_spec=-rdynamic
9956: ;;
9957:
9958: cygwin* | mingw* | pw32* | cegcc*)
9959: # When not using gcc, we currently assume that we are using
9960: # Microsoft Visual C++.
9961: # hardcode_libdir_flag_spec is actually meaningless, as there is
9962: # no search path for DLLs.
9963: case $cc_basename in
9964: cl*)
9965: # Native MSVC
9966: hardcode_libdir_flag_spec=' '
9967: allow_undefined_flag=unsupported
9968: always_export_symbols=yes
9969: file_list_spec='@'
9970: # Tell ltmain to make .lib files, not .a files.
9971: libext=lib
9972: # Tell ltmain to make .dll files, not .so files.
9973: shrext_cmds=".dll"
9974: # FIXME: Setting linknames here is a bad hack.
9975: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9976: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9977: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9978: else
9979: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9980: fi~
9981: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9982: linknames='
9983: # The linker will not automatically build a static lib if we build a DLL.
9984: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9985: enable_shared_with_static_runtimes=yes
9986: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9987: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9988: # Don't use ranlib
9989: old_postinstall_cmds='chmod 644 $oldlib'
9990: postlink_cmds='lt_outputfile="@OUTPUT@"~
9991: lt_tool_outputfile="@TOOL_OUTPUT@"~
9992: case $lt_outputfile in
9993: *.exe|*.EXE) ;;
9994: *)
9995: lt_outputfile="$lt_outputfile.exe"
9996: lt_tool_outputfile="$lt_tool_outputfile.exe"
9997: ;;
9998: esac~
9999: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10000: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10001: $RM "$lt_outputfile.manifest";
10002: fi'
10003: ;;
10004: *)
10005: # Assume MSVC wrapper
10006: hardcode_libdir_flag_spec=' '
10007: allow_undefined_flag=unsupported
10008: # Tell ltmain to make .lib files, not .a files.
10009: libext=lib
10010: # Tell ltmain to make .dll files, not .so files.
10011: shrext_cmds=".dll"
10012: # FIXME: Setting linknames here is a bad hack.
10013: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10014: # The linker will automatically build a .lib file if we build a DLL.
10015: old_archive_from_new_cmds='true'
10016: # FIXME: Should let the user specify the lib program.
10017: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10018: enable_shared_with_static_runtimes=yes
10019: ;;
10020: esac
10021: ;;
10022:
10023: darwin* | rhapsody*)
10024:
10025:
10026: archive_cmds_need_lc=no
10027: hardcode_direct=no
10028: hardcode_automatic=yes
10029: hardcode_shlibpath_var=unsupported
10030: if test "$lt_cv_ld_force_load" = "yes"; then
10031: 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\"`'
10032:
10033: else
10034: whole_archive_flag_spec=''
10035: fi
10036: link_all_deplibs=yes
10037: allow_undefined_flag="$_lt_dar_allow_undefined"
10038: case $cc_basename in
10039: ifort*) _lt_dar_can_shared=yes ;;
10040: *) _lt_dar_can_shared=$GCC ;;
10041: esac
10042: if test "$_lt_dar_can_shared" = "yes"; then
10043: output_verbose_link_cmd=func_echo_all
10044: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10045: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10046: 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}"
10047: 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}"
10048:
10049: else
10050: ld_shlibs=no
10051: fi
10052:
10053: ;;
10054:
10055: dgux*)
10056: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057: hardcode_libdir_flag_spec='-L$libdir'
10058: hardcode_shlibpath_var=no
10059: ;;
10060:
10061: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10062: # support. Future versions do this automatically, but an explicit c++rt0.o
10063: # does not break anything, and helps significantly (at the cost of a little
10064: # extra space).
10065: freebsd2.2*)
10066: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10067: hardcode_libdir_flag_spec='-R$libdir'
10068: hardcode_direct=yes
10069: hardcode_shlibpath_var=no
10070: ;;
10071:
10072: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10073: freebsd2.*)
10074: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10075: hardcode_direct=yes
10076: hardcode_minus_L=yes
10077: hardcode_shlibpath_var=no
10078: ;;
10079:
10080: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10081: freebsd* | dragonfly*)
10082: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10083: hardcode_libdir_flag_spec='-R$libdir'
10084: hardcode_direct=yes
10085: hardcode_shlibpath_var=no
10086: ;;
10087:
10088: hpux9*)
10089: if test "$GCC" = yes; then
10090: 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'
10091: else
10092: 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'
10093: fi
10094: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10095: hardcode_libdir_separator=:
10096: hardcode_direct=yes
10097:
10098: # hardcode_minus_L: Not really in the search PATH,
10099: # but as the default location of the library.
10100: hardcode_minus_L=yes
10101: export_dynamic_flag_spec='${wl}-E'
10102: ;;
10103:
10104: hpux10*)
10105: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10106: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10107: else
10108: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10109: fi
10110: if test "$with_gnu_ld" = no; then
10111: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10112: hardcode_libdir_separator=:
10113: hardcode_direct=yes
10114: hardcode_direct_absolute=yes
10115: export_dynamic_flag_spec='${wl}-E'
10116: # hardcode_minus_L: Not really in the search PATH,
10117: # but as the default location of the library.
10118: hardcode_minus_L=yes
10119: fi
10120: ;;
10121:
10122: hpux11*)
10123: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10124: case $host_cpu in
10125: hppa*64*)
10126: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10127: ;;
10128: ia64*)
10129: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10130: ;;
10131: *)
10132: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10133: ;;
10134: esac
10135: else
10136: case $host_cpu in
10137: hppa*64*)
10138: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10139: ;;
10140: ia64*)
10141: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10142: ;;
10143: *)
1.15 paf 10144:
1.35 moko 10145: # Older versions of the 11.00 compiler do not understand -b yet
10146: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.43 moko 10147: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10148: $as_echo_n "checking if $CC understands -b... " >&6; }
10149: if ${lt_cv_prog_compiler__b+:} false; then :
10150: $as_echo_n "(cached) " >&6
1.15 paf 10151: else
1.35 moko 10152: lt_cv_prog_compiler__b=no
10153: save_LDFLAGS="$LDFLAGS"
10154: LDFLAGS="$LDFLAGS -b"
10155: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10156: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10157: # The linker can only warn and ignore the option if not recognized
10158: # So say no if there are warnings
10159: if test -s conftest.err; then
10160: # Append any errors to the config.log.
10161: cat conftest.err 1>&5
10162: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10163: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10164: if diff conftest.exp conftest.er2 >/dev/null; then
10165: lt_cv_prog_compiler__b=yes
10166: fi
10167: else
10168: lt_cv_prog_compiler__b=yes
10169: fi
10170: fi
10171: $RM -r conftest*
10172: LDFLAGS="$save_LDFLAGS"
1.15 paf 10173:
1.1 parser 10174: fi
1.43 moko 10175: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10176: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.1 parser 10177:
1.35 moko 10178: if test x"$lt_cv_prog_compiler__b" = xyes; then
10179: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10180: else
10181: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 parser 10182: fi
10183:
1.35 moko 10184: ;;
10185: esac
10186: fi
10187: if test "$with_gnu_ld" = no; then
10188: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10189: hardcode_libdir_separator=:
10190:
10191: case $host_cpu in
10192: hppa*64*|ia64*)
10193: hardcode_direct=no
10194: hardcode_shlibpath_var=no
10195: ;;
10196: *)
10197: hardcode_direct=yes
10198: hardcode_direct_absolute=yes
10199: export_dynamic_flag_spec='${wl}-E'
1.15 paf 10200:
1.35 moko 10201: # hardcode_minus_L: Not really in the search PATH,
10202: # but as the default location of the library.
10203: hardcode_minus_L=yes
10204: ;;
10205: esac
10206: fi
10207: ;;
1.1 parser 10208:
1.35 moko 10209: irix5* | irix6* | nonstopux*)
10210: if test "$GCC" = yes; then
10211: 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'
10212: # Try to use the -exported_symbol ld option, if it does not
10213: # work, assume that -exports_file does not work either and
10214: # implicitly export all symbols.
10215: # This should be the same for all languages, so no per-tag cache variable.
1.43 moko 10216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10217: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10218: if ${lt_cv_irix_exported_symbol+:} false; then :
10219: $as_echo_n "(cached) " >&6
1.15 paf 10220: else
1.35 moko 10221: save_LDFLAGS="$LDFLAGS"
10222: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.43 moko 10223: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15 paf 10224: /* end confdefs.h. */
1.35 moko 10225: int foo (void) { return 0; }
1.15 paf 10226: _ACEOF
1.43 moko 10227: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 10228: lt_cv_irix_exported_symbol=yes
1.1 parser 10229: else
1.43 moko 10230: lt_cv_irix_exported_symbol=no
1.15 paf 10231: fi
1.43 moko 10232: rm -f core conftest.err conftest.$ac_objext \
10233: conftest$ac_exeext conftest.$ac_ext
1.35 moko 10234: LDFLAGS="$save_LDFLAGS"
1.1 parser 10235: fi
1.43 moko 10236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10237: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.35 moko 10238: if test "$lt_cv_irix_exported_symbol" = yes; then
10239: 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'
10240: fi
10241: else
10242: 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'
10243: 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'
10244: fi
10245: archive_cmds_need_lc='no'
10246: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10247: hardcode_libdir_separator=:
10248: inherit_rpath=yes
10249: link_all_deplibs=yes
10250: ;;
10251:
10252: netbsd*)
10253: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10254: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10255: else
10256: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10257: fi
10258: hardcode_libdir_flag_spec='-R$libdir'
10259: hardcode_direct=yes
10260: hardcode_shlibpath_var=no
10261: ;;
10262:
10263: newsos6)
10264: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265: hardcode_direct=yes
10266: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10267: hardcode_libdir_separator=:
10268: hardcode_shlibpath_var=no
10269: ;;
10270:
10271: *nto* | *qnx*)
10272: ;;
1.1 parser 10273:
1.35 moko 10274: openbsd*)
10275: if test -f /usr/libexec/ld.so; then
10276: hardcode_direct=yes
10277: hardcode_shlibpath_var=no
10278: hardcode_direct_absolute=yes
10279: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10280: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10281: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10282: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10283: export_dynamic_flag_spec='${wl}-E'
10284: else
10285: case $host_os in
10286: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10287: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10288: hardcode_libdir_flag_spec='-R$libdir'
10289: ;;
10290: *)
10291: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10292: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10293: ;;
10294: esac
10295: fi
10296: else
10297: ld_shlibs=no
10298: fi
10299: ;;
1.1 parser 10300:
1.35 moko 10301: os2*)
10302: hardcode_libdir_flag_spec='-L$libdir'
10303: hardcode_minus_L=yes
10304: allow_undefined_flag=unsupported
10305: 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'
10306: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10307: ;;
1.1 parser 10308:
1.35 moko 10309: osf3*)
10310: if test "$GCC" = yes; then
10311: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10312: 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'
10313: else
10314: allow_undefined_flag=' -expect_unresolved \*'
10315: 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'
10316: fi
10317: archive_cmds_need_lc='no'
10318: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10319: hardcode_libdir_separator=:
10320: ;;
1.1 parser 10321:
1.35 moko 10322: osf4* | osf5*) # as osf3* with the addition of -msym flag
10323: if test "$GCC" = yes; then
10324: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10325: 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'
10326: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10327: else
10328: allow_undefined_flag=' -expect_unresolved \*'
10329: 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'
10330: 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~
10331: $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.1 parser 10332:
1.35 moko 10333: # Both c and cxx compiler support -rpath directly
10334: hardcode_libdir_flag_spec='-rpath $libdir'
10335: fi
10336: archive_cmds_need_lc='no'
10337: hardcode_libdir_separator=:
10338: ;;
1.1 parser 10339:
1.35 moko 10340: solaris*)
10341: no_undefined_flag=' -z defs'
10342: if test "$GCC" = yes; then
10343: wlarc='${wl}'
10344: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10345: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10346: $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'
10347: else
10348: case `$CC -V 2>&1` in
10349: *"Compilers 5.0"*)
10350: wlarc=''
10351: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10352: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10353: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10354: ;;
10355: *)
10356: wlarc='${wl}'
10357: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10358: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10359: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10360: ;;
10361: esac
10362: fi
10363: hardcode_libdir_flag_spec='-R$libdir'
10364: hardcode_shlibpath_var=no
10365: case $host_os in
10366: solaris2.[0-5] | solaris2.[0-5].*) ;;
10367: *)
10368: # The compiler driver will combine and reorder linker options,
10369: # but understands `-z linker_flag'. GCC discards it without `$wl',
10370: # but is careful enough not to reorder.
10371: # Supported since Solaris 2.6 (maybe 2.5.1?)
10372: if test "$GCC" = yes; then
10373: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10374: else
10375: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10376: fi
10377: ;;
10378: esac
10379: link_all_deplibs=yes
10380: ;;
10381:
10382: sunos4*)
10383: if test "x$host_vendor" = xsequent; then
10384: # Use $CC to link under sequent, because it throws in some extra .o
10385: # files that make .init and .fini sections work.
10386: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10387: else
10388: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10389: fi
10390: hardcode_libdir_flag_spec='-L$libdir'
10391: hardcode_direct=yes
10392: hardcode_minus_L=yes
10393: hardcode_shlibpath_var=no
10394: ;;
10395:
10396: sysv4)
10397: case $host_vendor in
10398: sni)
10399: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400: hardcode_direct=yes # is this really true???
10401: ;;
10402: siemens)
10403: ## LD is ld it makes a PLAMLIB
10404: ## CC just makes a GrossModule.
10405: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10406: reload_cmds='$CC -r -o $output$reload_objs'
10407: hardcode_direct=no
10408: ;;
10409: motorola)
10410: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10411: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10412: ;;
10413: esac
10414: runpath_var='LD_RUN_PATH'
10415: hardcode_shlibpath_var=no
10416: ;;
10417:
10418: sysv4.3*)
10419: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10420: hardcode_shlibpath_var=no
10421: export_dynamic_flag_spec='-Bexport'
10422: ;;
10423:
10424: sysv4*MP*)
10425: if test -d /usr/nec; then
10426: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427: hardcode_shlibpath_var=no
10428: runpath_var=LD_RUN_PATH
10429: hardcode_runpath_var=yes
10430: ld_shlibs=yes
10431: fi
10432: ;;
10433:
10434: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10435: no_undefined_flag='${wl}-z,text'
10436: archive_cmds_need_lc=no
10437: hardcode_shlibpath_var=no
10438: runpath_var='LD_RUN_PATH'
10439:
10440: if test "$GCC" = yes; then
10441: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10442: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443: else
10444: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10445: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446: fi
10447: ;;
1.15 paf 10448:
1.35 moko 10449: sysv5* | sco3.2v5* | sco5v6*)
10450: # Note: We can NOT use -z defs as we might desire, because we do not
10451: # link with -lc, and that would cause any symbols used from libc to
10452: # always be unresolved, which means just about no library would
10453: # ever link correctly. If we're not using GNU ld we use -z text
10454: # though, which does catch some bad symbols but isn't as heavy-handed
10455: # as -z defs.
10456: no_undefined_flag='${wl}-z,text'
10457: allow_undefined_flag='${wl}-z,nodefs'
10458: archive_cmds_need_lc=no
10459: hardcode_shlibpath_var=no
10460: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10461: hardcode_libdir_separator=':'
10462: link_all_deplibs=yes
10463: export_dynamic_flag_spec='${wl}-Bexport'
10464: runpath_var='LD_RUN_PATH'
10465:
10466: if test "$GCC" = yes; then
10467: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10468: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10469: else
10470: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10471: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472: fi
10473: ;;
1.15 paf 10474:
1.35 moko 10475: uts4*)
10476: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10477: hardcode_libdir_flag_spec='-L$libdir'
10478: hardcode_shlibpath_var=no
1.15 paf 10479: ;;
1.35 moko 10480:
1.15 paf 10481: *)
1.35 moko 10482: ld_shlibs=no
1.15 paf 10483: ;;
1.35 moko 10484: esac
10485:
10486: if test x$host_vendor = xsni; then
10487: case $host in
10488: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10489: export_dynamic_flag_spec='${wl}-Blargedynsym'
10490: ;;
10491: esac
10492: fi
1.1 parser 10493: fi
10494:
1.43 moko 10495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10496: $as_echo "$ld_shlibs" >&6; }
1.35 moko 10497: test "$ld_shlibs" = no && can_build_shared=no
10498:
10499: with_gnu_ld=$with_gnu_ld
1.1 parser 10500:
10501:
1.15 paf 10502:
10503:
10504:
1.1 parser 10505:
10506:
1.15 paf 10507:
10508:
10509:
10510:
10511:
10512:
10513:
10514:
1.35 moko 10515: #
10516: # Do we need to explicitly link libc?
10517: #
10518: case "x$archive_cmds_need_lc" in
10519: x|xyes)
10520: # Assume -lc should be added
10521: archive_cmds_need_lc=yes
10522:
10523: if test "$enable_shared" = yes && test "$GCC" = yes; then
10524: case $archive_cmds in
10525: *'~'*)
10526: # FIXME: we may have to deal with multi-command sequences.
10527: ;;
10528: '$CC '*)
10529: # Test whether the compiler implicitly links with -lc since on some
10530: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10531: # to ld, don't add -lc before -lgcc.
1.43 moko 10532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10533: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10534: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10535: $as_echo_n "(cached) " >&6
1.15 paf 10536: else
1.35 moko 10537: $RM conftest*
10538: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10539:
1.43 moko 10540: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.35 moko 10541: (eval $ac_compile) 2>&5
10542: ac_status=$?
1.43 moko 10543: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10544: test $ac_status = 0; } 2>conftest.err; then
1.35 moko 10545: soname=conftest
10546: lib=conftest
10547: libobjs=conftest.$ac_objext
10548: deplibs=
10549: wl=$lt_prog_compiler_wl
10550: pic_flag=$lt_prog_compiler_pic
10551: compiler_flags=-v
10552: linker_flags=-v
10553: verstring=
10554: output_objdir=.
10555: libname=conftest
10556: lt_save_allow_undefined_flag=$allow_undefined_flag
10557: allow_undefined_flag=
1.43 moko 10558: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.35 moko 10559: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10560: ac_status=$?
1.43 moko 10561: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10562: test $ac_status = 0; }
1.35 moko 10563: then
10564: lt_cv_archive_cmds_need_lc=no
10565: else
10566: lt_cv_archive_cmds_need_lc=yes
10567: fi
10568: allow_undefined_flag=$lt_save_allow_undefined_flag
10569: else
10570: cat conftest.err 1>&5
10571: fi
10572: $RM conftest*
10573:
1.15 paf 10574: fi
1.43 moko 10575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10576: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.35 moko 10577: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10578: ;;
10579: esac
10580: fi
10581: ;;
10582: esac
10583:
10584:
10585:
10586:
10587:
10588:
10589:
10590:
10591:
10592:
10593:
10594:
10595:
10596:
10597:
10598:
10599:
10600:
10601:
10602:
10603:
10604:
10605:
10606:
10607:
10608:
10609:
10610:
10611:
10612:
10613:
10614:
10615:
10616:
10617:
10618:
10619:
10620:
10621:
10622:
10623:
10624:
10625:
10626:
10627:
10628:
10629:
10630:
10631:
10632:
10633:
10634:
10635:
10636:
10637:
1.15 paf 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:
1.1 parser 10683:
1.15 paf 10684:
10685:
10686:
10687:
10688:
1.1 parser 10689:
1.15 paf 10690:
10691:
10692:
10693:
1.1 parser 10694:
1.15 paf 10695:
10696:
10697:
10698:
1.1 parser 10699:
10700:
10701:
10702:
10703:
10704:
10705:
1.15 paf 10706:
10707:
10708:
1.25 paf 10709:
1.15 paf 10710:
10711:
1.1 parser 10712:
1.15 paf 10713:
10714:
10715:
1.1 parser 10716:
10717:
10718:
10719:
1.15 paf 10720:
10721:
1.1 parser 10722:
1.15 paf 10723:
10724:
10725:
10726:
1.1 parser 10727:
1.25 paf 10728:
1.15 paf 10729:
10730:
1.25 paf 10731:
1.15 paf 10732:
10733:
1.35 moko 10734:
1.43 moko 10735: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10736: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.35 moko 10737:
10738: if test "$GCC" = yes; then
10739: case $host_os in
10740: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10741: *) lt_awk_arg="/^libraries:/" ;;
10742: esac
10743: case $host_os in
10744: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10745: *) lt_sed_strip_eq="s,=/,/,g" ;;
10746: esac
10747: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10748: case $lt_search_path_spec in
10749: *\;*)
10750: # if the path contains ";" then we assume it to be the separator
10751: # otherwise default to the standard path separator (i.e. ":") - it is
10752: # assumed that no part of a normal pathname contains ";" but that should
10753: # okay in the real world where ";" in dirpaths is itself problematic.
10754: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10755: ;;
10756: *)
10757: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10758: ;;
10759: esac
10760: # Ok, now we have the path, separated by spaces, we can step through it
10761: # and add multilib dir if necessary.
10762: lt_tmp_lt_search_path_spec=
10763: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10764: for lt_sys_path in $lt_search_path_spec; do
10765: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10766: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10767: else
10768: test -d "$lt_sys_path" && \
10769: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10770: fi
10771: done
10772: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10773: BEGIN {RS=" "; FS="/|\n";} {
10774: lt_foo="";
10775: lt_count=0;
10776: for (lt_i = NF; lt_i > 0; lt_i--) {
10777: if ($lt_i != "" && $lt_i != ".") {
10778: if ($lt_i == "..") {
10779: lt_count++;
10780: } else {
10781: if (lt_count == 0) {
10782: lt_foo="/" $lt_i lt_foo;
10783: } else {
10784: lt_count--;
10785: }
10786: }
10787: }
10788: }
10789: if (lt_foo != "") { lt_freq[lt_foo]++; }
10790: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10791: }'`
10792: # AWK program above erroneously prepends '/' to C:/dos/paths
10793: # for these hosts.
10794: case $host_os in
10795: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10796: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10797: esac
10798: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10799: else
10800: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10801: fi
10802: library_names_spec=
10803: libname_spec='lib$name'
10804: soname_spec=
10805: shrext_cmds=".so"
10806: postinstall_cmds=
10807: postuninstall_cmds=
10808: finish_cmds=
10809: finish_eval=
10810: shlibpath_var=
10811: shlibpath_overrides_runpath=unknown
10812: version_type=none
10813: dynamic_linker="$host_os ld.so"
10814: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10815: need_lib_prefix=unknown
10816: hardcode_into_libs=no
10817:
10818: # when you set need_version to no, make sure it does not cause -set_version
10819: # flags to be left without arguments
10820: need_version=unknown
10821:
10822: case $host_os in
10823: aix3*)
10824: version_type=linux # correct to gnu/linux during the next big refactor
10825: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10826: shlibpath_var=LIBPATH
10827:
10828: # AIX 3 has no versioning support, so we append a major version to the name.
10829: soname_spec='${libname}${release}${shared_ext}$major'
10830: ;;
10831:
10832: aix[4-9]*)
10833: version_type=linux # correct to gnu/linux during the next big refactor
10834: need_lib_prefix=no
10835: need_version=no
10836: hardcode_into_libs=yes
10837: if test "$host_cpu" = ia64; then
10838: # AIX 5 supports IA64
10839: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10840: shlibpath_var=LD_LIBRARY_PATH
1.15 paf 10841: else
1.35 moko 10842: # With GCC up to 2.95.x, collect2 would create an import file
10843: # for dependence libraries. The import file would start with
10844: # the line `#! .'. This would cause the generated library to
10845: # depend on `.', always an invalid library. This was fixed in
10846: # development snapshots of GCC prior to 3.0.
10847: case $host_os in
10848: aix4 | aix4.[01] | aix4.[01].*)
10849: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10850: echo ' yes '
10851: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10852: :
10853: else
10854: can_build_shared=no
10855: fi
10856: ;;
10857: esac
10858: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10859: # soname into executable. Probably we can add versioning support to
10860: # collect2, so additional links can be useful in future.
10861: if test "$aix_use_runtimelinking" = yes; then
10862: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10863: # instead of lib<name>.a to let people know that these are not
10864: # typical AIX shared libraries.
10865: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866: else
10867: # We preserve .a as extension for shared libraries through AIX4.2
10868: # and later when we are not doing run time linking.
10869: library_names_spec='${libname}${release}.a $libname.a'
10870: soname_spec='${libname}${release}${shared_ext}$major'
10871: fi
10872: shlibpath_var=LIBPATH
1.15 paf 10873: fi
1.35 moko 10874: ;;
10875:
10876: amigaos*)
10877: case $host_cpu in
10878: powerpc)
10879: # Since July 2007 AmigaOS4 officially supports .so libraries.
10880: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10881: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882: ;;
10883: m68k)
10884: library_names_spec='$libname.ixlibrary $libname.a'
10885: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10886: 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'
10887: ;;
10888: esac
10889: ;;
10890:
10891: beos*)
10892: library_names_spec='${libname}${shared_ext}'
10893: dynamic_linker="$host_os ld.so"
10894: shlibpath_var=LIBRARY_PATH
10895: ;;
10896:
10897: bsdi[45]*)
10898: version_type=linux # correct to gnu/linux during the next big refactor
10899: need_version=no
10900: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901: soname_spec='${libname}${release}${shared_ext}$major'
10902: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10903: shlibpath_var=LD_LIBRARY_PATH
10904: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10905: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10906: # the default ld.so.conf also contains /usr/contrib/lib and
10907: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10908: # libtool to hard-code these into programs
10909: ;;
10910:
10911: cygwin* | mingw* | pw32* | cegcc*)
10912: version_type=windows
10913: shrext_cmds=".dll"
10914: need_version=no
10915: need_lib_prefix=no
10916:
10917: case $GCC,$cc_basename in
10918: yes,*)
10919: # gcc
10920: library_names_spec='$libname.dll.a'
10921: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10922: postinstall_cmds='base_file=`basename \${file}`~
10923: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10924: dldir=$destdir/`dirname \$dlpath`~
10925: test -d \$dldir || mkdir -p \$dldir~
10926: $install_prog $dir/$dlname \$dldir/$dlname~
10927: chmod a+x \$dldir/$dlname~
10928: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10929: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10930: fi'
10931: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10932: dlpath=$dir/\$dldll~
10933: $RM \$dlpath'
10934: shlibpath_overrides_runpath=yes
10935:
10936: case $host_os in
10937: cygwin*)
10938: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10939: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10940:
10941: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10942: ;;
10943: mingw* | cegcc*)
10944: # MinGW DLLs use traditional 'lib' prefix
10945: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10946: ;;
10947: pw32*)
10948: # pw32 DLLs use 'pw' prefix rather than 'lib'
10949: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10950: ;;
10951: esac
10952: dynamic_linker='Win32 ld.exe'
10953: ;;
10954:
10955: *,cl*)
10956: # Native MSVC
10957: libname_spec='$name'
10958: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10959: library_names_spec='${libname}.dll.lib'
10960:
10961: case $build_os in
10962: mingw*)
10963: sys_lib_search_path_spec=
10964: lt_save_ifs=$IFS
10965: IFS=';'
10966: for lt_path in $LIB
10967: do
10968: IFS=$lt_save_ifs
10969: # Let DOS variable expansion print the short 8.3 style file name.
10970: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10971: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10972: done
10973: IFS=$lt_save_ifs
10974: # Convert to MSYS style.
10975: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10976: ;;
10977: cygwin*)
10978: # Convert to unix form, then to dos form, then back to unix form
10979: # but this time dos style (no spaces!) so that the unix form looks
10980: # like /cygdrive/c/PROGRA~1:/cygdr...
10981: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10982: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10983: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10984: ;;
10985: *)
10986: sys_lib_search_path_spec="$LIB"
10987: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10988: # It is most probably a Windows format PATH.
10989: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10990: else
10991: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10992: fi
10993: # FIXME: find the short name or the path components, as spaces are
10994: # common. (e.g. "Program Files" -> "PROGRA~1")
10995: ;;
10996: esac
10997:
10998: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10999: postinstall_cmds='base_file=`basename \${file}`~
11000: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11001: dldir=$destdir/`dirname \$dlpath`~
11002: test -d \$dldir || mkdir -p \$dldir~
11003: $install_prog $dir/$dlname \$dldir/$dlname'
11004: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11005: dlpath=$dir/\$dldll~
11006: $RM \$dlpath'
11007: shlibpath_overrides_runpath=yes
11008: dynamic_linker='Win32 link.exe'
11009: ;;
11010:
11011: *)
11012: # Assume MSVC wrapper
11013: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11014: dynamic_linker='Win32 ld.exe'
11015: ;;
11016: esac
11017: # FIXME: first we should search . and the directory the executable is in
11018: shlibpath_var=PATH
11019: ;;
11020:
11021: darwin* | rhapsody*)
11022: dynamic_linker="$host_os dyld"
11023: version_type=darwin
11024: need_lib_prefix=no
11025: need_version=no
11026: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11027: soname_spec='${libname}${release}${major}$shared_ext'
11028: shlibpath_overrides_runpath=yes
11029: shlibpath_var=DYLD_LIBRARY_PATH
11030: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11031:
11032: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11033: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11034: ;;
11035:
11036: dgux*)
11037: version_type=linux # correct to gnu/linux during the next big refactor
11038: need_lib_prefix=no
11039: need_version=no
11040: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11041: soname_spec='${libname}${release}${shared_ext}$major'
11042: shlibpath_var=LD_LIBRARY_PATH
11043: ;;
11044:
11045: freebsd* | dragonfly*)
11046: # DragonFly does not have aout. When/if they implement a new
11047: # versioning mechanism, adjust this.
11048: if test -x /usr/bin/objformat; then
11049: objformat=`/usr/bin/objformat`
1.15 paf 11050: else
1.35 moko 11051: case $host_os in
11052: freebsd[23].*) objformat=aout ;;
11053: *) objformat=elf ;;
11054: esac
11055: fi
11056: version_type=freebsd-$objformat
11057: case $version_type in
11058: freebsd-elf*)
11059: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11060: need_version=no
11061: need_lib_prefix=no
11062: ;;
11063: freebsd-*)
11064: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11065: need_version=yes
11066: ;;
11067: esac
11068: shlibpath_var=LD_LIBRARY_PATH
11069: case $host_os in
11070: freebsd2.*)
11071: shlibpath_overrides_runpath=yes
11072: ;;
11073: freebsd3.[01]* | freebsdelf3.[01]*)
11074: shlibpath_overrides_runpath=yes
11075: hardcode_into_libs=yes
11076: ;;
11077: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11078: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11079: shlibpath_overrides_runpath=no
11080: hardcode_into_libs=yes
11081: ;;
11082: *) # from 4.6 on, and DragonFly
11083: shlibpath_overrides_runpath=yes
11084: hardcode_into_libs=yes
11085: ;;
11086: esac
11087: ;;
11088:
11089: gnu*)
11090: version_type=linux # correct to gnu/linux during the next big refactor
11091: need_lib_prefix=no
11092: need_version=no
11093: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11094: soname_spec='${libname}${release}${shared_ext}$major'
11095: shlibpath_var=LD_LIBRARY_PATH
11096: shlibpath_overrides_runpath=no
11097: hardcode_into_libs=yes
11098: ;;
11099:
11100: haiku*)
11101: version_type=linux # correct to gnu/linux during the next big refactor
11102: need_lib_prefix=no
11103: need_version=no
11104: dynamic_linker="$host_os runtime_loader"
11105: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11106: soname_spec='${libname}${release}${shared_ext}$major'
11107: shlibpath_var=LIBRARY_PATH
11108: shlibpath_overrides_runpath=yes
11109: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11110: hardcode_into_libs=yes
11111: ;;
11112:
11113: hpux9* | hpux10* | hpux11*)
11114: # Give a soname corresponding to the major version so that dld.sl refuses to
11115: # link against other versions.
11116: version_type=sunos
11117: need_lib_prefix=no
11118: need_version=no
11119: case $host_cpu in
11120: ia64*)
11121: shrext_cmds='.so'
11122: hardcode_into_libs=yes
11123: dynamic_linker="$host_os dld.so"
11124: shlibpath_var=LD_LIBRARY_PATH
11125: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11126: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127: soname_spec='${libname}${release}${shared_ext}$major'
11128: if test "X$HPUX_IA64_MODE" = X32; then
11129: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11130: else
11131: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11132: fi
11133: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11134: ;;
11135: hppa*64*)
11136: shrext_cmds='.sl'
11137: hardcode_into_libs=yes
11138: dynamic_linker="$host_os dld.sl"
11139: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11140: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11141: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142: soname_spec='${libname}${release}${shared_ext}$major'
11143: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11144: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11145: ;;
11146: *)
11147: shrext_cmds='.sl'
11148: dynamic_linker="$host_os dld.sl"
11149: shlibpath_var=SHLIB_PATH
11150: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11151: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152: soname_spec='${libname}${release}${shared_ext}$major'
11153: ;;
11154: esac
11155: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11156: postinstall_cmds='chmod 555 $lib'
11157: # or fails outright, so override atomically:
11158: install_override_mode=555
11159: ;;
11160:
11161: interix[3-9]*)
11162: version_type=linux # correct to gnu/linux during the next big refactor
11163: need_lib_prefix=no
11164: need_version=no
11165: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11166: soname_spec='${libname}${release}${shared_ext}$major'
11167: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11168: shlibpath_var=LD_LIBRARY_PATH
11169: shlibpath_overrides_runpath=no
11170: hardcode_into_libs=yes
11171: ;;
11172:
11173: irix5* | irix6* | nonstopux*)
11174: case $host_os in
11175: nonstopux*) version_type=nonstopux ;;
11176: *)
11177: if test "$lt_cv_prog_gnu_ld" = yes; then
11178: version_type=linux # correct to gnu/linux during the next big refactor
11179: else
11180: version_type=irix
11181: fi ;;
11182: esac
11183: need_lib_prefix=no
11184: need_version=no
11185: soname_spec='${libname}${release}${shared_ext}$major'
11186: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11187: case $host_os in
11188: irix5* | nonstopux*)
11189: libsuff= shlibsuff=
11190: ;;
11191: *)
11192: case $LD in # libtool.m4 will add one of these switches to LD
11193: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11194: libsuff= shlibsuff= libmagic=32-bit;;
11195: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11196: libsuff=32 shlibsuff=N32 libmagic=N32;;
11197: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11198: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11199: *) libsuff= shlibsuff= libmagic=never-match;;
11200: esac
11201: ;;
11202: esac
11203: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11204: shlibpath_overrides_runpath=no
11205: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11206: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11207: hardcode_into_libs=yes
11208: ;;
11209:
11210: # No shared lib support for Linux oldld, aout, or coff.
11211: linux*oldld* | linux*aout* | linux*coff*)
11212: dynamic_linker=no
11213: ;;
11214:
11215: # This must be glibc/ELF.
11216: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11217: version_type=linux # correct to gnu/linux during the next big refactor
11218: need_lib_prefix=no
11219: need_version=no
11220: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221: soname_spec='${libname}${release}${shared_ext}$major'
11222: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11223: shlibpath_var=LD_LIBRARY_PATH
11224: shlibpath_overrides_runpath=no
11225:
11226: # Some binutils ld are patched to set DT_RUNPATH
1.43 moko 11227: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11228: $as_echo_n "(cached) " >&6
1.35 moko 11229: else
11230: lt_cv_shlibpath_overrides_runpath=no
11231: save_LDFLAGS=$LDFLAGS
11232: save_libdir=$libdir
11233: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11234: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.43 moko 11235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 11236: /* end confdefs.h. */
11237:
11238: int
11239: main ()
11240: {
11241:
11242: ;
11243: return 0;
11244: }
11245: _ACEOF
1.43 moko 11246: if ac_fn_c_try_link "$LINENO"; then :
11247: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.35 moko 11248: lt_cv_shlibpath_overrides_runpath=yes
11249: fi
11250: fi
1.43 moko 11251: rm -f core conftest.err conftest.$ac_objext \
11252: conftest$ac_exeext conftest.$ac_ext
1.35 moko 11253: LDFLAGS=$save_LDFLAGS
11254: libdir=$save_libdir
11255:
11256: fi
11257:
11258: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11259:
11260: # This implies no fast_install, which is unacceptable.
11261: # Some rework will be needed to allow for fast_install
11262: # before this can be enabled.
11263: hardcode_into_libs=yes
11264:
11265: # Append ld.so.conf contents to the search path
11266: if test -f /etc/ld.so.conf; then
11267: 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' ' '`
11268: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11269: fi
11270:
11271: # We used to test for /lib/ld.so.1 and disable shared libraries on
11272: # powerpc, because MkLinux only supported shared libraries with the
11273: # GNU dynamic linker. Since this was broken with cross compilers,
11274: # most powerpc-linux boxes support dynamic linking these days and
11275: # people can always --disable-shared, the test was removed, and we
11276: # assume the GNU/Linux dynamic linker is in use.
11277: dynamic_linker='GNU/Linux ld.so'
11278: ;;
11279:
11280: netbsd*)
11281: version_type=sunos
11282: need_lib_prefix=no
11283: need_version=no
11284: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11285: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11286: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11287: dynamic_linker='NetBSD (a.out) ld.so'
11288: else
11289: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11290: soname_spec='${libname}${release}${shared_ext}$major'
11291: dynamic_linker='NetBSD ld.elf_so'
11292: fi
11293: shlibpath_var=LD_LIBRARY_PATH
11294: shlibpath_overrides_runpath=yes
11295: hardcode_into_libs=yes
11296: ;;
11297:
11298: newsos6)
11299: version_type=linux # correct to gnu/linux during the next big refactor
11300: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301: shlibpath_var=LD_LIBRARY_PATH
11302: shlibpath_overrides_runpath=yes
11303: ;;
11304:
11305: *nto* | *qnx*)
11306: version_type=qnx
11307: need_lib_prefix=no
11308: need_version=no
11309: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11310: soname_spec='${libname}${release}${shared_ext}$major'
11311: shlibpath_var=LD_LIBRARY_PATH
11312: shlibpath_overrides_runpath=no
11313: hardcode_into_libs=yes
11314: dynamic_linker='ldqnx.so'
11315: ;;
11316:
11317: openbsd*)
11318: version_type=sunos
11319: sys_lib_dlsearch_path_spec="/usr/lib"
11320: need_lib_prefix=no
11321: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11322: case $host_os in
11323: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11324: *) need_version=no ;;
11325: esac
11326: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11327: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11328: shlibpath_var=LD_LIBRARY_PATH
11329: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11330: case $host_os in
11331: openbsd2.[89] | openbsd2.[89].*)
11332: shlibpath_overrides_runpath=no
11333: ;;
11334: *)
11335: shlibpath_overrides_runpath=yes
11336: ;;
11337: esac
11338: else
11339: shlibpath_overrides_runpath=yes
11340: fi
11341: ;;
11342:
11343: os2*)
11344: libname_spec='$name'
11345: shrext_cmds=".dll"
11346: need_lib_prefix=no
11347: library_names_spec='$libname${shared_ext} $libname.a'
11348: dynamic_linker='OS/2 ld.exe'
11349: shlibpath_var=LIBPATH
11350: ;;
11351:
11352: osf3* | osf4* | osf5*)
11353: version_type=osf
11354: need_lib_prefix=no
11355: need_version=no
11356: soname_spec='${libname}${release}${shared_ext}$major'
11357: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358: shlibpath_var=LD_LIBRARY_PATH
11359: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11360: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11361: ;;
11362:
11363: rdos*)
11364: dynamic_linker=no
11365: ;;
11366:
11367: solaris*)
11368: version_type=linux # correct to gnu/linux during the next big refactor
11369: need_lib_prefix=no
11370: need_version=no
11371: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372: soname_spec='${libname}${release}${shared_ext}$major'
11373: shlibpath_var=LD_LIBRARY_PATH
11374: shlibpath_overrides_runpath=yes
11375: hardcode_into_libs=yes
11376: # ldd complains unless libraries are executable
11377: postinstall_cmds='chmod +x $lib'
11378: ;;
11379:
11380: sunos4*)
11381: version_type=sunos
11382: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11383: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11384: shlibpath_var=LD_LIBRARY_PATH
11385: shlibpath_overrides_runpath=yes
11386: if test "$with_gnu_ld" = yes; then
11387: need_lib_prefix=no
11388: fi
11389: need_version=yes
11390: ;;
11391:
11392: sysv4 | sysv4.3*)
11393: version_type=linux # correct to gnu/linux during the next big refactor
11394: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11395: soname_spec='${libname}${release}${shared_ext}$major'
11396: shlibpath_var=LD_LIBRARY_PATH
11397: case $host_vendor in
11398: sni)
11399: shlibpath_overrides_runpath=no
11400: need_lib_prefix=no
11401: runpath_var=LD_RUN_PATH
11402: ;;
11403: siemens)
11404: need_lib_prefix=no
11405: ;;
11406: motorola)
11407: need_lib_prefix=no
11408: need_version=no
11409: shlibpath_overrides_runpath=no
11410: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11411: ;;
11412: esac
11413: ;;
11414:
11415: sysv4*MP*)
11416: if test -d /usr/nec ;then
11417: version_type=linux # correct to gnu/linux during the next big refactor
11418: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11419: soname_spec='$libname${shared_ext}.$major'
11420: shlibpath_var=LD_LIBRARY_PATH
11421: fi
11422: ;;
11423:
11424: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11425: version_type=freebsd-elf
11426: need_lib_prefix=no
11427: need_version=no
11428: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11429: soname_spec='${libname}${release}${shared_ext}$major'
11430: shlibpath_var=LD_LIBRARY_PATH
11431: shlibpath_overrides_runpath=yes
11432: hardcode_into_libs=yes
11433: if test "$with_gnu_ld" = yes; then
11434: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11435: else
11436: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11437: case $host_os in
11438: sco3.2v5*)
11439: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11440: ;;
11441: esac
11442: fi
11443: sys_lib_dlsearch_path_spec='/usr/lib'
11444: ;;
11445:
11446: tpf*)
11447: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11448: version_type=linux # correct to gnu/linux during the next big refactor
11449: need_lib_prefix=no
11450: need_version=no
11451: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452: shlibpath_var=LD_LIBRARY_PATH
11453: shlibpath_overrides_runpath=no
11454: hardcode_into_libs=yes
11455: ;;
11456:
11457: uts4*)
11458: version_type=linux # correct to gnu/linux during the next big refactor
11459: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11460: soname_spec='${libname}${release}${shared_ext}$major'
11461: shlibpath_var=LD_LIBRARY_PATH
11462: ;;
11463:
11464: *)
11465: dynamic_linker=no
11466: ;;
11467: esac
1.43 moko 11468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11469: $as_echo "$dynamic_linker" >&6; }
1.35 moko 11470: test "$dynamic_linker" = no && can_build_shared=no
11471:
11472: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11473: if test "$GCC" = yes; then
11474: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11475: fi
11476:
11477: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11478: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11479: fi
11480: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11481: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11482: fi
11483:
11484:
11485:
11486:
11487:
11488:
11489:
11490:
11491:
11492:
11493:
11494:
11495:
11496:
11497:
11498:
11499:
11500:
11501:
11502:
11503:
11504:
11505:
11506:
11507:
11508:
11509:
11510:
11511:
11512:
11513:
11514:
11515:
11516:
11517:
11518:
11519:
11520:
11521:
11522:
11523:
11524:
11525:
11526:
11527:
11528:
11529:
11530:
11531:
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
11547:
11548:
11549:
11550:
11551:
11552:
11553:
11554:
11555:
11556:
11557:
11558:
11559:
11560:
11561:
11562:
11563:
11564:
11565:
11566:
11567:
11568:
11569:
11570:
11571:
11572:
11573:
11574:
1.43 moko 11575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11576: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.35 moko 11577: hardcode_action=
11578: if test -n "$hardcode_libdir_flag_spec" ||
11579: test -n "$runpath_var" ||
11580: test "X$hardcode_automatic" = "Xyes" ; then
11581:
11582: # We can hardcode non-existent directories.
11583: if test "$hardcode_direct" != no &&
11584: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11585: # have to relink, otherwise we might link with an installed library
11586: # when we should be linking with a yet-to-be-installed one
11587: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11588: test "$hardcode_minus_L" != no; then
11589: # Linking always hardcodes the temporary library directory.
11590: hardcode_action=relink
11591: else
11592: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11593: hardcode_action=immediate
11594: fi
11595: else
11596: # We cannot hardcode anything, or else we can only hardcode existing
11597: # directories.
11598: hardcode_action=unsupported
11599: fi
1.43 moko 11600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11601: $as_echo "$hardcode_action" >&6; }
1.35 moko 11602:
11603: if test "$hardcode_action" = relink ||
11604: test "$inherit_rpath" = yes; then
11605: # Fast installation is not supported
11606: enable_fast_install=no
11607: elif test "$shlibpath_overrides_runpath" = yes ||
11608: test "$enable_shared" = no; then
11609: # Fast installation is not necessary
11610: enable_fast_install=needless
11611: fi
11612:
11613:
11614:
11615:
11616:
11617:
11618: if test "x$enable_dlopen" != xyes; then
11619: enable_dlopen=unknown
11620: enable_dlopen_self=unknown
11621: enable_dlopen_self_static=unknown
11622: else
11623: lt_cv_dlopen=no
11624: lt_cv_dlopen_libs=
11625:
11626: case $host_os in
11627: beos*)
11628: lt_cv_dlopen="load_add_on"
11629: lt_cv_dlopen_libs=
11630: lt_cv_dlopen_self=yes
11631: ;;
11632:
11633: mingw* | pw32* | cegcc*)
11634: lt_cv_dlopen="LoadLibrary"
11635: lt_cv_dlopen_libs=
11636: ;;
11637:
11638: cygwin*)
11639: lt_cv_dlopen="dlopen"
11640: lt_cv_dlopen_libs=
11641: ;;
11642:
11643: darwin*)
11644: # if libdl is installed we need to link against it
1.43 moko 11645: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11646: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11647: if ${ac_cv_lib_dl_dlopen+:} false; then :
11648: $as_echo_n "(cached) " >&6
1.35 moko 11649: else
11650: ac_check_lib_save_LIBS=$LIBS
11651: LIBS="-ldl $LIBS"
1.43 moko 11652: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 11653: /* end confdefs.h. */
11654:
1.43 moko 11655: /* Override any GCC internal prototype to avoid an error.
11656: Use char because int might match the return type of a GCC
11657: builtin and then its argument prototype would still apply. */
1.35 moko 11658: #ifdef __cplusplus
11659: extern "C"
11660: #endif
11661: char dlopen ();
11662: int
11663: main ()
11664: {
1.43 moko 11665: return dlopen ();
1.35 moko 11666: ;
11667: return 0;
11668: }
11669: _ACEOF
1.43 moko 11670: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 11671: ac_cv_lib_dl_dlopen=yes
11672: else
1.43 moko 11673: ac_cv_lib_dl_dlopen=no
1.35 moko 11674: fi
1.43 moko 11675: rm -f core conftest.err conftest.$ac_objext \
11676: conftest$ac_exeext conftest.$ac_ext
1.35 moko 11677: LIBS=$ac_check_lib_save_LIBS
11678: fi
1.43 moko 11679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11680: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11681: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.35 moko 11682: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11683: else
11684:
11685: lt_cv_dlopen="dyld"
11686: lt_cv_dlopen_libs=
11687: lt_cv_dlopen_self=yes
11688:
11689: fi
11690:
11691: ;;
11692:
11693: *)
1.43 moko 11694: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11695: if test "x$ac_cv_func_shl_load" = xyes; then :
1.35 moko 11696: lt_cv_dlopen="shl_load"
11697: else
1.43 moko 11698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11699: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11700: if ${ac_cv_lib_dld_shl_load+:} false; then :
11701: $as_echo_n "(cached) " >&6
1.35 moko 11702: else
1.43 moko 11703: ac_check_lib_save_LIBS=$LIBS
11704: LIBS="-ldld $LIBS"
11705: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 11706: /* end confdefs.h. */
11707:
1.43 moko 11708: /* Override any GCC internal prototype to avoid an error.
11709: Use char because int might match the return type of a GCC
11710: builtin and then its argument prototype would still apply. */
1.35 moko 11711: #ifdef __cplusplus
11712: extern "C"
11713: #endif
1.43 moko 11714: char shl_load ();
1.35 moko 11715: int
11716: main ()
11717: {
1.43 moko 11718: return shl_load ();
1.35 moko 11719: ;
11720: return 0;
11721: }
11722: _ACEOF
1.43 moko 11723: if ac_fn_c_try_link "$LINENO"; then :
11724: ac_cv_lib_dld_shl_load=yes
1.35 moko 11725: else
1.43 moko 11726: ac_cv_lib_dld_shl_load=no
1.35 moko 11727: fi
1.43 moko 11728: rm -f core conftest.err conftest.$ac_objext \
11729: conftest$ac_exeext conftest.$ac_ext
11730: LIBS=$ac_check_lib_save_LIBS
1.35 moko 11731: fi
1.43 moko 11732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11733: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11734: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11735: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11736: else
11737: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11738: if test "x$ac_cv_func_dlopen" = xyes; then :
1.35 moko 11739: lt_cv_dlopen="dlopen"
11740: else
1.43 moko 11741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11742: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11743: if ${ac_cv_lib_dl_dlopen+:} false; then :
11744: $as_echo_n "(cached) " >&6
1.35 moko 11745: else
11746: ac_check_lib_save_LIBS=$LIBS
11747: LIBS="-ldl $LIBS"
1.43 moko 11748: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 11749: /* end confdefs.h. */
11750:
1.43 moko 11751: /* Override any GCC internal prototype to avoid an error.
11752: Use char because int might match the return type of a GCC
11753: builtin and then its argument prototype would still apply. */
1.35 moko 11754: #ifdef __cplusplus
11755: extern "C"
11756: #endif
11757: char dlopen ();
11758: int
11759: main ()
11760: {
1.43 moko 11761: return dlopen ();
1.35 moko 11762: ;
11763: return 0;
11764: }
11765: _ACEOF
1.43 moko 11766: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 11767: ac_cv_lib_dl_dlopen=yes
11768: else
1.43 moko 11769: ac_cv_lib_dl_dlopen=no
1.35 moko 11770: fi
1.43 moko 11771: rm -f core conftest.err conftest.$ac_objext \
11772: conftest$ac_exeext conftest.$ac_ext
1.35 moko 11773: LIBS=$ac_check_lib_save_LIBS
11774: fi
1.43 moko 11775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11776: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11777: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.35 moko 11778: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11779: else
1.43 moko 11780: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11781: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11782: if ${ac_cv_lib_svld_dlopen+:} false; then :
11783: $as_echo_n "(cached) " >&6
1.35 moko 11784: else
11785: ac_check_lib_save_LIBS=$LIBS
11786: LIBS="-lsvld $LIBS"
1.43 moko 11787: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 11788: /* end confdefs.h. */
11789:
1.43 moko 11790: /* Override any GCC internal prototype to avoid an error.
11791: Use char because int might match the return type of a GCC
11792: builtin and then its argument prototype would still apply. */
1.35 moko 11793: #ifdef __cplusplus
11794: extern "C"
11795: #endif
11796: char dlopen ();
11797: int
11798: main ()
11799: {
1.43 moko 11800: return dlopen ();
1.35 moko 11801: ;
11802: return 0;
11803: }
11804: _ACEOF
1.43 moko 11805: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 11806: ac_cv_lib_svld_dlopen=yes
11807: else
1.43 moko 11808: ac_cv_lib_svld_dlopen=no
1.35 moko 11809: fi
1.43 moko 11810: rm -f core conftest.err conftest.$ac_objext \
11811: conftest$ac_exeext conftest.$ac_ext
1.35 moko 11812: LIBS=$ac_check_lib_save_LIBS
11813: fi
1.43 moko 11814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11815: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11816: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.35 moko 11817: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11818: else
1.43 moko 11819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11820: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11821: if ${ac_cv_lib_dld_dld_link+:} false; then :
11822: $as_echo_n "(cached) " >&6
1.35 moko 11823: else
11824: ac_check_lib_save_LIBS=$LIBS
11825: LIBS="-ldld $LIBS"
1.43 moko 11826: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 11827: /* end confdefs.h. */
11828:
1.43 moko 11829: /* Override any GCC internal prototype to avoid an error.
11830: Use char because int might match the return type of a GCC
11831: builtin and then its argument prototype would still apply. */
1.35 moko 11832: #ifdef __cplusplus
11833: extern "C"
11834: #endif
11835: char dld_link ();
11836: int
11837: main ()
11838: {
1.43 moko 11839: return dld_link ();
1.35 moko 11840: ;
11841: return 0;
11842: }
11843: _ACEOF
1.43 moko 11844: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 11845: ac_cv_lib_dld_dld_link=yes
11846: else
1.43 moko 11847: ac_cv_lib_dld_dld_link=no
1.35 moko 11848: fi
1.43 moko 11849: rm -f core conftest.err conftest.$ac_objext \
11850: conftest$ac_exeext conftest.$ac_ext
1.35 moko 11851: LIBS=$ac_check_lib_save_LIBS
11852: fi
1.43 moko 11853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11854: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11855: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.35 moko 11856: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11857: fi
11858:
11859:
11860: fi
11861:
11862:
11863: fi
11864:
11865:
11866: fi
11867:
11868:
11869: fi
11870:
11871:
11872: fi
11873:
11874: ;;
11875: esac
11876:
11877: if test "x$lt_cv_dlopen" != xno; then
11878: enable_dlopen=yes
11879: else
11880: enable_dlopen=no
11881: fi
11882:
11883: case $lt_cv_dlopen in
11884: dlopen)
11885: save_CPPFLAGS="$CPPFLAGS"
11886: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11887:
11888: save_LDFLAGS="$LDFLAGS"
11889: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11890:
11891: save_LIBS="$LIBS"
11892: LIBS="$lt_cv_dlopen_libs $LIBS"
11893:
1.43 moko 11894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11895: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11896: if ${lt_cv_dlopen_self+:} false; then :
11897: $as_echo_n "(cached) " >&6
1.35 moko 11898: else
11899: if test "$cross_compiling" = yes; then :
11900: lt_cv_dlopen_self=cross
11901: else
11902: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11903: lt_status=$lt_dlunknown
11904: cat > conftest.$ac_ext <<_LT_EOF
11905: #line $LINENO "configure"
11906: #include "confdefs.h"
11907:
11908: #if HAVE_DLFCN_H
11909: #include <dlfcn.h>
11910: #endif
11911:
11912: #include <stdio.h>
11913:
11914: #ifdef RTLD_GLOBAL
11915: # define LT_DLGLOBAL RTLD_GLOBAL
11916: #else
11917: # ifdef DL_GLOBAL
11918: # define LT_DLGLOBAL DL_GLOBAL
11919: # else
11920: # define LT_DLGLOBAL 0
11921: # endif
11922: #endif
11923:
11924: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11925: find out it does not work in some platform. */
11926: #ifndef LT_DLLAZY_OR_NOW
11927: # ifdef RTLD_LAZY
11928: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11929: # else
11930: # ifdef DL_LAZY
11931: # define LT_DLLAZY_OR_NOW DL_LAZY
11932: # else
11933: # ifdef RTLD_NOW
11934: # define LT_DLLAZY_OR_NOW RTLD_NOW
11935: # else
11936: # ifdef DL_NOW
11937: # define LT_DLLAZY_OR_NOW DL_NOW
11938: # else
11939: # define LT_DLLAZY_OR_NOW 0
11940: # endif
11941: # endif
11942: # endif
11943: # endif
11944: #endif
11945:
11946: /* When -fvisbility=hidden is used, assume the code has been annotated
11947: correspondingly for the symbols needed. */
11948: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11949: int fnord () __attribute__((visibility("default")));
11950: #endif
11951:
11952: int fnord () { return 42; }
11953: int main ()
11954: {
11955: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11956: int status = $lt_dlunknown;
11957:
11958: if (self)
11959: {
11960: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11961: else
11962: {
11963: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11964: else puts (dlerror ());
11965: }
11966: /* dlclose (self); */
11967: }
11968: else
11969: puts (dlerror ());
11970:
11971: return status;
11972: }
11973: _LT_EOF
1.43 moko 11974: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.35 moko 11975: (eval $ac_link) 2>&5
11976: ac_status=$?
1.43 moko 11977: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11978: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.35 moko 11979: (./conftest; exit; ) >&5 2>/dev/null
11980: lt_status=$?
11981: case x$lt_status in
11982: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11983: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11984: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11985: esac
11986: else :
11987: # compilation failed
11988: lt_cv_dlopen_self=no
11989: fi
11990: fi
11991: rm -fr conftest*
11992:
11993:
11994: fi
1.43 moko 11995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11996: $as_echo "$lt_cv_dlopen_self" >&6; }
1.35 moko 11997:
11998: if test "x$lt_cv_dlopen_self" = xyes; then
11999: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.43 moko 12000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12001: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12002: if ${lt_cv_dlopen_self_static+:} false; then :
12003: $as_echo_n "(cached) " >&6
1.35 moko 12004: else
12005: if test "$cross_compiling" = yes; then :
12006: lt_cv_dlopen_self_static=cross
12007: else
12008: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12009: lt_status=$lt_dlunknown
12010: cat > conftest.$ac_ext <<_LT_EOF
12011: #line $LINENO "configure"
12012: #include "confdefs.h"
12013:
12014: #if HAVE_DLFCN_H
12015: #include <dlfcn.h>
12016: #endif
12017:
12018: #include <stdio.h>
12019:
12020: #ifdef RTLD_GLOBAL
12021: # define LT_DLGLOBAL RTLD_GLOBAL
12022: #else
12023: # ifdef DL_GLOBAL
12024: # define LT_DLGLOBAL DL_GLOBAL
12025: # else
12026: # define LT_DLGLOBAL 0
12027: # endif
12028: #endif
12029:
12030: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12031: find out it does not work in some platform. */
12032: #ifndef LT_DLLAZY_OR_NOW
12033: # ifdef RTLD_LAZY
12034: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12035: # else
12036: # ifdef DL_LAZY
12037: # define LT_DLLAZY_OR_NOW DL_LAZY
12038: # else
12039: # ifdef RTLD_NOW
12040: # define LT_DLLAZY_OR_NOW RTLD_NOW
12041: # else
12042: # ifdef DL_NOW
12043: # define LT_DLLAZY_OR_NOW DL_NOW
12044: # else
12045: # define LT_DLLAZY_OR_NOW 0
12046: # endif
12047: # endif
12048: # endif
12049: # endif
12050: #endif
12051:
12052: /* When -fvisbility=hidden is used, assume the code has been annotated
12053: correspondingly for the symbols needed. */
12054: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12055: int fnord () __attribute__((visibility("default")));
12056: #endif
12057:
12058: int fnord () { return 42; }
12059: int main ()
12060: {
12061: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12062: int status = $lt_dlunknown;
12063:
12064: if (self)
12065: {
12066: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12067: else
12068: {
12069: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12070: else puts (dlerror ());
12071: }
12072: /* dlclose (self); */
12073: }
12074: else
12075: puts (dlerror ());
12076:
12077: return status;
12078: }
12079: _LT_EOF
1.43 moko 12080: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.35 moko 12081: (eval $ac_link) 2>&5
12082: ac_status=$?
1.43 moko 12083: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12084: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.35 moko 12085: (./conftest; exit; ) >&5 2>/dev/null
12086: lt_status=$?
12087: case x$lt_status in
12088: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12089: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12090: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12091: esac
12092: else :
12093: # compilation failed
12094: lt_cv_dlopen_self_static=no
12095: fi
12096: fi
12097: rm -fr conftest*
12098:
12099:
12100: fi
1.43 moko 12101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12102: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.35 moko 12103: fi
12104:
12105: CPPFLAGS="$save_CPPFLAGS"
12106: LDFLAGS="$save_LDFLAGS"
12107: LIBS="$save_LIBS"
12108: ;;
12109: esac
12110:
12111: case $lt_cv_dlopen_self in
12112: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12113: *) enable_dlopen_self=unknown ;;
12114: esac
12115:
12116: case $lt_cv_dlopen_self_static in
12117: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12118: *) enable_dlopen_self_static=unknown ;;
12119: esac
12120: fi
12121:
12122:
12123:
12124:
12125:
12126:
12127:
12128:
12129:
12130:
12131:
12132:
12133:
12134:
12135:
12136:
12137:
12138: striplib=
12139: old_striplib=
1.43 moko 12140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12141: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.35 moko 12142: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12143: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12144: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.43 moko 12145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12146: $as_echo "yes" >&6; }
1.35 moko 12147: else
12148: # FIXME - insert some real tests, host_os isn't really good enough
12149: case $host_os in
12150: darwin*)
12151: if test -n "$STRIP" ; then
12152: striplib="$STRIP -x"
12153: old_striplib="$STRIP -S"
1.43 moko 12154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12155: $as_echo "yes" >&6; }
1.35 moko 12156: else
1.43 moko 12157: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158: $as_echo "no" >&6; }
1.35 moko 12159: fi
12160: ;;
12161: *)
1.43 moko 12162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163: $as_echo "no" >&6; }
1.35 moko 12164: ;;
12165: esac
12166: fi
12167:
12168:
12169:
12170:
12171:
12172:
12173:
12174:
12175:
12176:
12177:
12178:
12179: # Report which library types will actually be built
1.43 moko 12180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12181: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12183: $as_echo "$can_build_shared" >&6; }
1.35 moko 12184:
1.43 moko 12185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12186: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.35 moko 12187: test "$can_build_shared" = "no" && enable_shared=no
12188:
12189: # On AIX, shared libraries and static libraries use the same namespace, and
12190: # are all built from PIC.
12191: case $host_os in
12192: aix3*)
12193: test "$enable_shared" = yes && enable_static=no
12194: if test -n "$RANLIB"; then
12195: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12196: postinstall_cmds='$RANLIB $lib'
12197: fi
12198: ;;
12199:
12200: aix[4-9]*)
12201: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12202: test "$enable_shared" = yes && enable_static=no
12203: fi
12204: ;;
12205: esac
1.43 moko 12206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12207: $as_echo "$enable_shared" >&6; }
1.35 moko 12208:
1.43 moko 12209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12210: $as_echo_n "checking whether to build static libraries... " >&6; }
1.35 moko 12211: # Make sure either enable_shared or enable_static is yes.
12212: test "$enable_shared" = yes || enable_static=yes
1.43 moko 12213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12214: $as_echo "$enable_static" >&6; }
1.35 moko 12215:
12216:
12217:
12218:
12219: fi
12220: ac_ext=c
12221: ac_cpp='$CPP $CPPFLAGS'
12222: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12223: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12224: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12225:
12226: CC="$lt_save_CC"
12227:
12228: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12229: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12230: (test "X$CXX" != "Xg++"))) ; then
1.43 moko 12231: ac_ext=cpp
1.35 moko 12232: ac_cpp='$CXXCPP $CPPFLAGS'
12233: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12234: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12235: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.43 moko 12236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12237: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.35 moko 12238: if test -z "$CXXCPP"; then
1.43 moko 12239: if ${ac_cv_prog_CXXCPP+:} false; then :
12240: $as_echo_n "(cached) " >&6
1.35 moko 12241: else
12242: # Double quotes because CXXCPP needs to be expanded
12243: for CXXCPP in "$CXX -E" "/lib/cpp"
12244: do
12245: ac_preproc_ok=false
12246: for ac_cxx_preproc_warn_flag in '' yes
12247: do
12248: # Use a header file that comes with gcc, so configuring glibc
12249: # with a fresh cross-compiler works.
12250: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12251: # <limits.h> exists even on freestanding compilers.
12252: # On the NeXT, cc -E runs the code through the compiler's parser,
12253: # not just through cpp. "Syntax error" is here to catch this case.
1.43 moko 12254: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 12255: /* end confdefs.h. */
12256: #ifdef __STDC__
12257: # include <limits.h>
12258: #else
12259: # include <assert.h>
12260: #endif
12261: Syntax error
12262: _ACEOF
1.43 moko 12263: if ac_fn_cxx_try_cpp "$LINENO"; then :
12264:
1.35 moko 12265: else
12266: # Broken: fails on valid input.
12267: continue
12268: fi
1.43 moko 12269: rm -f conftest.err conftest.i conftest.$ac_ext
1.35 moko 12270:
1.43 moko 12271: # OK, works on sane cases. Now check whether nonexistent headers
1.35 moko 12272: # can be detected and how.
1.43 moko 12273: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 12274: /* end confdefs.h. */
12275: #include <ac_nonexistent.h>
12276: _ACEOF
1.43 moko 12277: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.35 moko 12278: # Broken: success on invalid input.
12279: continue
12280: else
12281: # Passes both tests.
12282: ac_preproc_ok=:
12283: break
12284: fi
1.43 moko 12285: rm -f conftest.err conftest.i conftest.$ac_ext
1.35 moko 12286:
12287: done
12288: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.43 moko 12289: rm -f conftest.i conftest.err conftest.$ac_ext
12290: if $ac_preproc_ok; then :
1.35 moko 12291: break
12292: fi
12293:
12294: done
12295: ac_cv_prog_CXXCPP=$CXXCPP
12296:
12297: fi
12298: CXXCPP=$ac_cv_prog_CXXCPP
12299: else
12300: ac_cv_prog_CXXCPP=$CXXCPP
12301: fi
1.43 moko 12302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12303: $as_echo "$CXXCPP" >&6; }
1.35 moko 12304: ac_preproc_ok=false
12305: for ac_cxx_preproc_warn_flag in '' yes
12306: do
12307: # Use a header file that comes with gcc, so configuring glibc
12308: # with a fresh cross-compiler works.
12309: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12310: # <limits.h> exists even on freestanding compilers.
12311: # On the NeXT, cc -E runs the code through the compiler's parser,
12312: # not just through cpp. "Syntax error" is here to catch this case.
1.43 moko 12313: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 12314: /* end confdefs.h. */
12315: #ifdef __STDC__
12316: # include <limits.h>
12317: #else
12318: # include <assert.h>
12319: #endif
12320: Syntax error
12321: _ACEOF
1.43 moko 12322: if ac_fn_cxx_try_cpp "$LINENO"; then :
12323:
1.35 moko 12324: else
12325: # Broken: fails on valid input.
12326: continue
12327: fi
1.43 moko 12328: rm -f conftest.err conftest.i conftest.$ac_ext
1.35 moko 12329:
1.43 moko 12330: # OK, works on sane cases. Now check whether nonexistent headers
1.35 moko 12331: # can be detected and how.
1.43 moko 12332: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 12333: /* end confdefs.h. */
12334: #include <ac_nonexistent.h>
12335: _ACEOF
1.43 moko 12336: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.35 moko 12337: # Broken: success on invalid input.
12338: continue
12339: else
12340: # Passes both tests.
12341: ac_preproc_ok=:
12342: break
12343: fi
1.43 moko 12344: rm -f conftest.err conftest.i conftest.$ac_ext
1.35 moko 12345:
12346: done
12347: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.43 moko 12348: rm -f conftest.i conftest.err conftest.$ac_ext
12349: if $ac_preproc_ok; then :
12350:
1.35 moko 12351: else
1.43 moko 12352: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12353: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12354: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12355: See \`config.log' for more details" "$LINENO" 5; }
1.35 moko 12356: fi
12357:
12358: ac_ext=c
12359: ac_cpp='$CPP $CPPFLAGS'
12360: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12361: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12362: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12363:
12364: else
12365: _lt_caught_CXX_error=yes
12366: fi
12367:
1.43 moko 12368: ac_ext=cpp
1.35 moko 12369: ac_cpp='$CXXCPP $CPPFLAGS'
12370: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12371: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12372: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12373:
12374: archive_cmds_need_lc_CXX=no
12375: allow_undefined_flag_CXX=
12376: always_export_symbols_CXX=no
12377: archive_expsym_cmds_CXX=
12378: compiler_needs_object_CXX=no
12379: export_dynamic_flag_spec_CXX=
12380: hardcode_direct_CXX=no
12381: hardcode_direct_absolute_CXX=no
12382: hardcode_libdir_flag_spec_CXX=
12383: hardcode_libdir_separator_CXX=
12384: hardcode_minus_L_CXX=no
12385: hardcode_shlibpath_var_CXX=unsupported
12386: hardcode_automatic_CXX=no
12387: inherit_rpath_CXX=no
12388: module_cmds_CXX=
12389: module_expsym_cmds_CXX=
12390: link_all_deplibs_CXX=unknown
12391: old_archive_cmds_CXX=$old_archive_cmds
12392: reload_flag_CXX=$reload_flag
12393: reload_cmds_CXX=$reload_cmds
12394: no_undefined_flag_CXX=
12395: whole_archive_flag_spec_CXX=
12396: enable_shared_with_static_runtimes_CXX=no
12397:
12398: # Source file extension for C++ test sources.
12399: ac_ext=cpp
12400:
12401: # Object file extension for compiled C++ test sources.
12402: objext=o
12403: objext_CXX=$objext
12404:
12405: # No sense in running all these tests if we already determined that
12406: # the CXX compiler isn't working. Some variables (like enable_shared)
12407: # are currently assumed to apply to all compilers on this platform,
12408: # and will be corrupted by setting them based on a non-working compiler.
12409: if test "$_lt_caught_CXX_error" != yes; then
12410: # Code to be used in simple compile tests
12411: lt_simple_compile_test_code="int some_variable = 0;"
12412:
12413: # Code to be used in simple link tests
12414: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12415:
12416: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12417:
12418:
12419:
12420:
12421:
12422:
12423: # If no C compiler was specified, use CC.
12424: LTCC=${LTCC-"$CC"}
12425:
12426: # If no C compiler flags were specified, use CFLAGS.
12427: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12428:
12429: # Allow CC to be a program name with arguments.
12430: compiler=$CC
12431:
12432:
12433: # save warnings/boilerplate of simple test code
12434: ac_outfile=conftest.$ac_objext
12435: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12436: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12437: _lt_compiler_boilerplate=`cat conftest.err`
12438: $RM conftest*
12439:
12440: ac_outfile=conftest.$ac_objext
12441: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12442: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12443: _lt_linker_boilerplate=`cat conftest.err`
12444: $RM -r conftest*
12445:
12446:
12447: # Allow CC to be a program name with arguments.
12448: lt_save_CC=$CC
12449: lt_save_CFLAGS=$CFLAGS
12450: lt_save_LD=$LD
12451: lt_save_GCC=$GCC
12452: GCC=$GXX
12453: lt_save_with_gnu_ld=$with_gnu_ld
12454: lt_save_path_LD=$lt_cv_path_LD
12455: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12456: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12457: else
12458: $as_unset lt_cv_prog_gnu_ld
12459: fi
12460: if test -n "${lt_cv_path_LDCXX+set}"; then
12461: lt_cv_path_LD=$lt_cv_path_LDCXX
12462: else
12463: $as_unset lt_cv_path_LD
12464: fi
12465: test -z "${LDCXX+set}" || LD=$LDCXX
12466: CC=${CXX-"c++"}
12467: CFLAGS=$CXXFLAGS
12468: compiler=$CC
12469: compiler_CXX=$CC
12470: for cc_temp in $compiler""; do
12471: case $cc_temp in
12472: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12473: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12474: \-*) ;;
12475: *) break;;
12476: esac
12477: done
12478: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12479:
12480:
12481: if test -n "$compiler"; then
12482: # We don't want -fno-exception when compiling C++ code, so set the
12483: # no_builtin_flag separately
12484: if test "$GXX" = yes; then
12485: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12486: else
12487: lt_prog_compiler_no_builtin_flag_CXX=
12488: fi
12489:
12490: if test "$GXX" = yes; then
12491: # Set up default GNU C++ configuration
12492:
12493:
12494:
1.43 moko 12495: # Check whether --with-gnu-ld was given.
12496: if test "${with_gnu_ld+set}" = set; then :
12497: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.35 moko 12498: else
12499: with_gnu_ld=no
1.43 moko 12500: fi
12501:
1.35 moko 12502: ac_prog=ld
12503: if test "$GCC" = yes; then
12504: # Check if gcc -print-prog-name=ld gives a path.
1.43 moko 12505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12506: $as_echo_n "checking for ld used by $CC... " >&6; }
1.35 moko 12507: case $host in
12508: *-*-mingw*)
12509: # gcc leaves a trailing carriage return which upsets mingw
12510: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12511: *)
12512: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12513: esac
12514: case $ac_prog in
12515: # Accept absolute paths.
12516: [\\/]* | ?:[\\/]*)
12517: re_direlt='/[^/][^/]*/\.\./'
12518: # Canonicalize the pathname of ld
12519: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12520: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12521: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12522: done
12523: test -z "$LD" && LD="$ac_prog"
12524: ;;
12525: "")
12526: # If it fails, then pretend we aren't using GCC.
12527: ac_prog=ld
12528: ;;
12529: *)
12530: # If it is relative, then search for the first ld in PATH.
12531: with_gnu_ld=unknown
12532: ;;
12533: esac
12534: elif test "$with_gnu_ld" = yes; then
1.43 moko 12535: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12536: $as_echo_n "checking for GNU ld... " >&6; }
1.35 moko 12537: else
1.43 moko 12538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12539: $as_echo_n "checking for non-GNU ld... " >&6; }
1.35 moko 12540: fi
1.43 moko 12541: if ${lt_cv_path_LD+:} false; then :
12542: $as_echo_n "(cached) " >&6
1.35 moko 12543: else
12544: if test -z "$LD"; then
12545: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12546: for ac_dir in $PATH; do
12547: IFS="$lt_save_ifs"
12548: test -z "$ac_dir" && ac_dir=.
12549: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12550: lt_cv_path_LD="$ac_dir/$ac_prog"
12551: # Check to see if the program is GNU ld. I'd rather use --version,
12552: # but apparently some variants of GNU ld only accept -v.
12553: # Break only if it was the GNU/non-GNU ld that we prefer.
12554: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12555: *GNU* | *'with BFD'*)
12556: test "$with_gnu_ld" != no && break
12557: ;;
12558: *)
12559: test "$with_gnu_ld" != yes && break
12560: ;;
12561: esac
12562: fi
12563: done
12564: IFS="$lt_save_ifs"
12565: else
12566: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12567: fi
12568: fi
12569:
12570: LD="$lt_cv_path_LD"
12571: if test -n "$LD"; then
1.43 moko 12572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12573: $as_echo "$LD" >&6; }
1.35 moko 12574: else
1.43 moko 12575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576: $as_echo "no" >&6; }
1.35 moko 12577: fi
1.43 moko 12578: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12580: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12581: if ${lt_cv_prog_gnu_ld+:} false; then :
12582: $as_echo_n "(cached) " >&6
1.35 moko 12583: else
12584: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12585: case `$LD -v 2>&1 </dev/null` in
12586: *GNU* | *'with BFD'*)
12587: lt_cv_prog_gnu_ld=yes
12588: ;;
12589: *)
12590: lt_cv_prog_gnu_ld=no
12591: ;;
12592: esac
12593: fi
1.43 moko 12594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12595: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.35 moko 12596: with_gnu_ld=$lt_cv_prog_gnu_ld
12597:
12598:
12599:
12600:
12601:
12602:
12603:
12604: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12605: # archiving commands below assume that GNU ld is being used.
12606: if test "$with_gnu_ld" = yes; then
12607: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12608: 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'
12609:
12610: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12611: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12612:
12613: # If archive_cmds runs LD, not CC, wlarc should be empty
12614: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12615: # investigate it a little bit more. (MM)
12616: wlarc='${wl}'
12617:
12618: # ancient GNU ld didn't support --whole-archive et. al.
12619: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12620: $GREP 'no-whole-archive' > /dev/null; then
12621: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12622: else
12623: whole_archive_flag_spec_CXX=
12624: fi
12625: else
12626: with_gnu_ld=no
12627: wlarc=
12628:
12629: # A generic and very simple default shared library creation
12630: # command for GNU C++ for the case where it uses the native
12631: # linker, instead of GNU ld. If possible, this setting should
12632: # overridden to take advantage of the native linker features on
12633: # the platform it is being used on.
12634: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12635: fi
12636:
12637: # Commands to make compiler produce verbose output that lists
12638: # what "hidden" libraries, object files and flags are used when
12639: # linking a shared library.
12640: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12641:
12642: else
12643: GXX=no
12644: with_gnu_ld=no
12645: wlarc=
12646: fi
12647:
12648: # PORTME: fill in a description of your system's C++ link characteristics
1.43 moko 12649: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12650: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.35 moko 12651: ld_shlibs_CXX=yes
12652: case $host_os in
12653: aix3*)
12654: # FIXME: insert proper C++ library support
12655: ld_shlibs_CXX=no
12656: ;;
12657: aix[4-9]*)
12658: if test "$host_cpu" = ia64; then
12659: # On IA64, the linker does run time linking by default, so we don't
12660: # have to do anything special.
12661: aix_use_runtimelinking=no
12662: exp_sym_flag='-Bexport'
12663: no_entry_flag=""
12664: else
12665: aix_use_runtimelinking=no
12666:
12667: # Test if we are trying to use run time linking or normal
12668: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12669: # need to do runtime linking.
12670: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12671: for ld_flag in $LDFLAGS; do
12672: case $ld_flag in
12673: *-brtl*)
12674: aix_use_runtimelinking=yes
12675: break
12676: ;;
12677: esac
12678: done
12679: ;;
12680: esac
12681:
12682: exp_sym_flag='-bexport'
12683: no_entry_flag='-bnoentry'
12684: fi
12685:
12686: # When large executables or shared objects are built, AIX ld can
12687: # have problems creating the table of contents. If linking a library
12688: # or program results in "error TOC overflow" add -mminimal-toc to
12689: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12690: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12691:
12692: archive_cmds_CXX=''
12693: hardcode_direct_CXX=yes
12694: hardcode_direct_absolute_CXX=yes
12695: hardcode_libdir_separator_CXX=':'
12696: link_all_deplibs_CXX=yes
12697: file_list_spec_CXX='${wl}-f,'
12698:
12699: if test "$GXX" = yes; then
12700: case $host_os in aix4.[012]|aix4.[012].*)
12701: # We only want to do this on AIX 4.2 and lower, the check
12702: # below for broken collect2 doesn't work under 4.3+
12703: collect2name=`${CC} -print-prog-name=collect2`
12704: if test -f "$collect2name" &&
12705: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12706: then
12707: # We have reworked collect2
12708: :
12709: else
12710: # We have old collect2
12711: hardcode_direct_CXX=unsupported
12712: # It fails to find uninstalled libraries when the uninstalled
12713: # path is not listed in the libpath. Setting hardcode_minus_L
12714: # to unsupported forces relinking
12715: hardcode_minus_L_CXX=yes
12716: hardcode_libdir_flag_spec_CXX='-L$libdir'
12717: hardcode_libdir_separator_CXX=
12718: fi
12719: esac
12720: shared_flag='-shared'
12721: if test "$aix_use_runtimelinking" = yes; then
12722: shared_flag="$shared_flag "'${wl}-G'
12723: fi
12724: else
12725: # not using gcc
12726: if test "$host_cpu" = ia64; then
12727: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12728: # chokes on -Wl,-G. The following line is correct:
12729: shared_flag='-G'
12730: else
12731: if test "$aix_use_runtimelinking" = yes; then
12732: shared_flag='${wl}-G'
12733: else
12734: shared_flag='${wl}-bM:SRE'
12735: fi
12736: fi
12737: fi
12738:
12739: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12740: # It seems that -bexpall does not export symbols beginning with
12741: # underscore (_), so it is better to generate a list of symbols to
12742: # export.
12743: always_export_symbols_CXX=yes
12744: if test "$aix_use_runtimelinking" = yes; then
12745: # Warning - without using the other runtime loading flags (-brtl),
12746: # -berok will link without error, but may produce a broken library.
12747: allow_undefined_flag_CXX='-berok'
12748: # Determine the default libpath from the value encoded in an empty
12749: # executable.
12750: if test "${lt_cv_aix_libpath+set}" = set; then
12751: aix_libpath=$lt_cv_aix_libpath
12752: else
1.43 moko 12753: if ${lt_cv_aix_libpath__CXX+:} false; then :
12754: $as_echo_n "(cached) " >&6
1.35 moko 12755: else
1.43 moko 12756: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 12757: /* end confdefs.h. */
12758:
12759: int
12760: main ()
12761: {
12762:
12763: ;
12764: return 0;
12765: }
12766: _ACEOF
1.43 moko 12767: if ac_fn_cxx_try_link "$LINENO"; then :
1.35 moko 12768:
12769: lt_aix_libpath_sed='
12770: /Import File Strings/,/^$/ {
12771: /^0/ {
12772: s/^0 *\([^ ]*\) *$/\1/
12773: p
12774: }
12775: }'
12776: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12777: # Check for a 64-bit object if we didn't find anything.
12778: if test -z "$lt_cv_aix_libpath__CXX"; then
12779: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12780: fi
12781: fi
1.43 moko 12782: rm -f core conftest.err conftest.$ac_objext \
12783: conftest$ac_exeext conftest.$ac_ext
1.35 moko 12784: if test -z "$lt_cv_aix_libpath__CXX"; then
12785: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12786: fi
12787:
12788: fi
12789:
12790: aix_libpath=$lt_cv_aix_libpath__CXX
12791: fi
12792:
12793: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12794:
12795: 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"
12796: else
12797: if test "$host_cpu" = ia64; then
12798: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12799: allow_undefined_flag_CXX="-z nodefs"
12800: 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"
12801: else
12802: # Determine the default libpath from the value encoded in an
12803: # empty executable.
12804: if test "${lt_cv_aix_libpath+set}" = set; then
12805: aix_libpath=$lt_cv_aix_libpath
12806: else
1.43 moko 12807: if ${lt_cv_aix_libpath__CXX+:} false; then :
12808: $as_echo_n "(cached) " >&6
1.35 moko 12809: else
1.43 moko 12810: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 12811: /* end confdefs.h. */
12812:
12813: int
12814: main ()
12815: {
12816:
12817: ;
12818: return 0;
12819: }
12820: _ACEOF
1.43 moko 12821: if ac_fn_cxx_try_link "$LINENO"; then :
1.35 moko 12822:
12823: lt_aix_libpath_sed='
12824: /Import File Strings/,/^$/ {
12825: /^0/ {
12826: s/^0 *\([^ ]*\) *$/\1/
12827: p
12828: }
12829: }'
12830: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12831: # Check for a 64-bit object if we didn't find anything.
12832: if test -z "$lt_cv_aix_libpath__CXX"; then
12833: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12834: fi
12835: fi
1.43 moko 12836: rm -f core conftest.err conftest.$ac_objext \
12837: conftest$ac_exeext conftest.$ac_ext
1.35 moko 12838: if test -z "$lt_cv_aix_libpath__CXX"; then
12839: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12840: fi
12841:
12842: fi
12843:
12844: aix_libpath=$lt_cv_aix_libpath__CXX
12845: fi
12846:
12847: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12848: # Warning - without using the other run time loading flags,
12849: # -berok will link without error, but may produce a broken library.
12850: no_undefined_flag_CXX=' ${wl}-bernotok'
12851: allow_undefined_flag_CXX=' ${wl}-berok'
12852: if test "$with_gnu_ld" = yes; then
12853: # We only use this code for GNU lds that support --whole-archive.
12854: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12855: else
12856: # Exported symbols can be pulled into shared objects from archives
12857: whole_archive_flag_spec_CXX='$convenience'
12858: fi
12859: archive_cmds_need_lc_CXX=yes
12860: # This is similar to how AIX traditionally builds its shared
12861: # libraries.
12862: 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'
12863: fi
12864: fi
12865: ;;
12866:
12867: beos*)
12868: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12869: allow_undefined_flag_CXX=unsupported
12870: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12871: # support --undefined. This deserves some investigation. FIXME
12872: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12873: else
12874: ld_shlibs_CXX=no
12875: fi
12876: ;;
12877:
12878: chorus*)
12879: case $cc_basename in
12880: *)
12881: # FIXME: insert proper C++ library support
12882: ld_shlibs_CXX=no
12883: ;;
12884: esac
12885: ;;
12886:
12887: cygwin* | mingw* | pw32* | cegcc*)
12888: case $GXX,$cc_basename in
12889: ,cl* | no,cl*)
12890: # Native MSVC
12891: # hardcode_libdir_flag_spec is actually meaningless, as there is
12892: # no search path for DLLs.
12893: hardcode_libdir_flag_spec_CXX=' '
12894: allow_undefined_flag_CXX=unsupported
12895: always_export_symbols_CXX=yes
12896: file_list_spec_CXX='@'
12897: # Tell ltmain to make .lib files, not .a files.
12898: libext=lib
12899: # Tell ltmain to make .dll files, not .so files.
12900: shrext_cmds=".dll"
12901: # FIXME: Setting linknames here is a bad hack.
12902: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12903: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12904: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12905: else
12906: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12907: fi~
12908: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12909: linknames='
12910: # The linker will not automatically build a static lib if we build a DLL.
12911: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12912: enable_shared_with_static_runtimes_CXX=yes
12913: # Don't use ranlib
12914: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12915: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12916: lt_tool_outputfile="@TOOL_OUTPUT@"~
12917: case $lt_outputfile in
12918: *.exe|*.EXE) ;;
12919: *)
12920: lt_outputfile="$lt_outputfile.exe"
12921: lt_tool_outputfile="$lt_tool_outputfile.exe"
12922: ;;
12923: esac~
12924: func_to_tool_file "$lt_outputfile"~
12925: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12926: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12927: $RM "$lt_outputfile.manifest";
12928: fi'
12929: ;;
12930: *)
12931: # g++
12932: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12933: # as there is no search path for DLLs.
12934: hardcode_libdir_flag_spec_CXX='-L$libdir'
12935: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12936: allow_undefined_flag_CXX=unsupported
12937: always_export_symbols_CXX=no
12938: enable_shared_with_static_runtimes_CXX=yes
12939:
12940: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12941: 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'
12942: # If the export-symbols file already is a .def file (1st line
12943: # is EXPORTS), use it as is; otherwise, prepend...
12944: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12945: cp $export_symbols $output_objdir/$soname.def;
12946: else
12947: echo EXPORTS > $output_objdir/$soname.def;
12948: cat $export_symbols >> $output_objdir/$soname.def;
12949: fi~
12950: $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'
12951: else
12952: ld_shlibs_CXX=no
12953: fi
12954: ;;
12955: esac
12956: ;;
12957: darwin* | rhapsody*)
12958:
12959:
12960: archive_cmds_need_lc_CXX=no
12961: hardcode_direct_CXX=no
12962: hardcode_automatic_CXX=yes
12963: hardcode_shlibpath_var_CXX=unsupported
12964: if test "$lt_cv_ld_force_load" = "yes"; then
12965: 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\"`'
12966:
12967: else
12968: whole_archive_flag_spec_CXX=''
12969: fi
12970: link_all_deplibs_CXX=yes
12971: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12972: case $cc_basename in
12973: ifort*) _lt_dar_can_shared=yes ;;
12974: *) _lt_dar_can_shared=$GCC ;;
12975: esac
12976: if test "$_lt_dar_can_shared" = "yes"; then
12977: output_verbose_link_cmd=func_echo_all
12978: 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}"
12979: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12980: 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}"
12981: 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}"
12982: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12983: 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}"
12984: 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}"
12985: fi
12986:
12987: else
12988: ld_shlibs_CXX=no
12989: fi
12990:
12991: ;;
12992:
12993: dgux*)
12994: case $cc_basename in
12995: ec++*)
12996: # FIXME: insert proper C++ library support
12997: ld_shlibs_CXX=no
12998: ;;
12999: ghcx*)
13000: # Green Hills C++ Compiler
13001: # FIXME: insert proper C++ library support
13002: ld_shlibs_CXX=no
13003: ;;
13004: *)
13005: # FIXME: insert proper C++ library support
13006: ld_shlibs_CXX=no
13007: ;;
13008: esac
13009: ;;
13010:
13011: freebsd2.*)
13012: # C++ shared libraries reported to be fairly broken before
13013: # switch to ELF
13014: ld_shlibs_CXX=no
13015: ;;
13016:
13017: freebsd-elf*)
13018: archive_cmds_need_lc_CXX=no
13019: ;;
13020:
13021: freebsd* | dragonfly*)
13022: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13023: # conventions
13024: ld_shlibs_CXX=yes
13025: ;;
13026:
13027: gnu*)
13028: ;;
13029:
13030: haiku*)
13031: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13032: link_all_deplibs_CXX=yes
13033: ;;
13034:
13035: hpux9*)
13036: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13037: hardcode_libdir_separator_CXX=:
13038: export_dynamic_flag_spec_CXX='${wl}-E'
13039: hardcode_direct_CXX=yes
13040: hardcode_minus_L_CXX=yes # Not in the search PATH,
13041: # but as the default
13042: # location of the library.
13043:
13044: case $cc_basename in
13045: CC*)
13046: # FIXME: insert proper C++ library support
13047: ld_shlibs_CXX=no
13048: ;;
13049: aCC*)
13050: 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'
13051: # Commands to make compiler produce verbose output that lists
13052: # what "hidden" libraries, object files and flags are used when
13053: # linking a shared library.
13054: #
13055: # There doesn't appear to be a way to prevent this compiler from
13056: # explicitly linking system object files so we need to strip them
13057: # from the output so that they don't get included in the library
13058: # dependencies.
13059: 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"'
13060: ;;
13061: *)
13062: if test "$GXX" = yes; then
13063: 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'
13064: else
13065: # FIXME: insert proper C++ library support
13066: ld_shlibs_CXX=no
13067: fi
13068: ;;
13069: esac
13070: ;;
13071:
13072: hpux10*|hpux11*)
13073: if test $with_gnu_ld = no; then
13074: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13075: hardcode_libdir_separator_CXX=:
13076:
13077: case $host_cpu in
13078: hppa*64*|ia64*)
13079: ;;
13080: *)
13081: export_dynamic_flag_spec_CXX='${wl}-E'
13082: ;;
13083: esac
13084: fi
13085: case $host_cpu in
13086: hppa*64*|ia64*)
13087: hardcode_direct_CXX=no
13088: hardcode_shlibpath_var_CXX=no
13089: ;;
13090: *)
13091: hardcode_direct_CXX=yes
13092: hardcode_direct_absolute_CXX=yes
13093: hardcode_minus_L_CXX=yes # Not in the search PATH,
13094: # but as the default
13095: # location of the library.
13096: ;;
13097: esac
13098:
13099: case $cc_basename in
13100: CC*)
13101: # FIXME: insert proper C++ library support
13102: ld_shlibs_CXX=no
13103: ;;
13104: aCC*)
13105: case $host_cpu in
13106: hppa*64*)
13107: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13108: ;;
13109: ia64*)
13110: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13111: ;;
13112: *)
13113: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13114: ;;
13115: esac
13116: # Commands to make compiler produce verbose output that lists
13117: # what "hidden" libraries, object files and flags are used when
13118: # linking a shared library.
13119: #
13120: # There doesn't appear to be a way to prevent this compiler from
13121: # explicitly linking system object files so we need to strip them
13122: # from the output so that they don't get included in the library
13123: # dependencies.
13124: 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"'
13125: ;;
13126: *)
13127: if test "$GXX" = yes; then
13128: if test $with_gnu_ld = no; then
13129: case $host_cpu in
13130: hppa*64*)
13131: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13132: ;;
13133: ia64*)
13134: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13135: ;;
13136: *)
13137: 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'
13138: ;;
13139: esac
13140: fi
13141: else
13142: # FIXME: insert proper C++ library support
13143: ld_shlibs_CXX=no
13144: fi
13145: ;;
13146: esac
13147: ;;
13148:
13149: interix[3-9]*)
13150: hardcode_direct_CXX=no
13151: hardcode_shlibpath_var_CXX=no
13152: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13153: export_dynamic_flag_spec_CXX='${wl}-E'
13154: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13155: # Instead, shared libraries are loaded at an image base (0x10000000 by
13156: # default) and relocated if they conflict, which is a slow very memory
13157: # consuming and fragmenting process. To avoid this, we pick a random,
13158: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13159: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13160: 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'
13161: 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'
13162: ;;
13163: irix5* | irix6*)
13164: case $cc_basename in
13165: CC*)
13166: # SGI C++
13167: 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'
13168:
13169: # Archives containing C++ object files must be created using
13170: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13171: # necessary to make sure instantiated templates are included
13172: # in the archive.
13173: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13174: ;;
13175: *)
13176: if test "$GXX" = yes; then
13177: if test "$with_gnu_ld" = no; then
13178: 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'
13179: else
13180: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13181: fi
13182: fi
13183: link_all_deplibs_CXX=yes
13184: ;;
13185: esac
13186: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13187: hardcode_libdir_separator_CXX=:
13188: inherit_rpath_CXX=yes
13189: ;;
13190:
13191: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13192: case $cc_basename in
13193: KCC*)
13194: # Kuck and Associates, Inc. (KAI) C++ Compiler
13195:
13196: # KCC will only create a shared library if the output file
13197: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13198: # to its proper name (with version) after linking.
13199: 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'
13200: 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'
13201: # Commands to make compiler produce verbose output that lists
13202: # what "hidden" libraries, object files and flags are used when
13203: # linking a shared library.
13204: #
13205: # There doesn't appear to be a way to prevent this compiler from
13206: # explicitly linking system object files so we need to strip them
13207: # from the output so that they don't get included in the library
13208: # dependencies.
13209: 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"'
13210:
13211: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13212: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13213:
13214: # Archives containing C++ object files must be created using
13215: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13216: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13217: ;;
13218: icpc* | ecpc* )
13219: # Intel C++
13220: with_gnu_ld=yes
13221: # version 8.0 and above of icpc choke on multiply defined symbols
13222: # if we add $predep_objects and $postdep_objects, however 7.1 and
13223: # earlier do not add the objects themselves.
13224: case `$CC -V 2>&1` in
13225: *"Version 7."*)
13226: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13227: 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'
13228: ;;
13229: *) # Version 8.0 or newer
13230: tmp_idyn=
13231: case $host_cpu in
13232: ia64*) tmp_idyn=' -i_dynamic';;
13233: esac
13234: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13235: 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'
13236: ;;
13237: esac
13238: archive_cmds_need_lc_CXX=no
13239: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13240: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13241: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13242: ;;
13243: pgCC* | pgcpp*)
13244: # Portland Group C++ compiler
13245: case `$CC -V` in
13246: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13247: prelink_cmds_CXX='tpldir=Template.dir~
13248: rm -rf $tpldir~
13249: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13250: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13251: old_archive_cmds_CXX='tpldir=Template.dir~
13252: rm -rf $tpldir~
13253: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13254: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13255: $RANLIB $oldlib'
13256: archive_cmds_CXX='tpldir=Template.dir~
13257: rm -rf $tpldir~
13258: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13259: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13260: archive_expsym_cmds_CXX='tpldir=Template.dir~
13261: rm -rf $tpldir~
13262: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13263: $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'
13264: ;;
13265: *) # Version 6 and above use weak symbols
13266: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13267: 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'
13268: ;;
13269: esac
13270:
13271: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13272: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13273: 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'
13274: ;;
13275: cxx*)
13276: # Compaq C++
13277: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13278: 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'
13279:
13280: runpath_var=LD_RUN_PATH
13281: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13282: hardcode_libdir_separator_CXX=:
13283:
13284: # Commands to make compiler produce verbose output that lists
13285: # what "hidden" libraries, object files and flags are used when
13286: # linking a shared library.
13287: #
13288: # There doesn't appear to be a way to prevent this compiler from
13289: # explicitly linking system object files so we need to strip them
13290: # from the output so that they don't get included in the library
13291: # dependencies.
13292: 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'
13293: ;;
13294: xl* | mpixl* | bgxl*)
13295: # IBM XL 8.0 on PPC, with GNU ld
13296: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13297: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13298: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13299: if test "x$supports_anon_versioning" = xyes; then
13300: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13301: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13302: echo "local: *; };" >> $output_objdir/$libname.ver~
13303: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13304: fi
13305: ;;
13306: *)
13307: case `$CC -V 2>&1 | sed 5q` in
13308: *Sun\ C*)
13309: # Sun C++ 5.9
13310: no_undefined_flag_CXX=' -zdefs'
13311: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13312: 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'
13313: hardcode_libdir_flag_spec_CXX='-R$libdir'
13314: 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'
13315: compiler_needs_object_CXX=yes
13316:
13317: # Not sure whether something based on
13318: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13319: # would be better.
13320: output_verbose_link_cmd='func_echo_all'
13321:
13322: # Archives containing C++ object files must be created using
13323: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13324: # necessary to make sure instantiated templates are included
13325: # in the archive.
13326: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13327: ;;
13328: esac
13329: ;;
13330: esac
13331: ;;
13332:
13333: lynxos*)
13334: # FIXME: insert proper C++ library support
13335: ld_shlibs_CXX=no
13336: ;;
13337:
13338: m88k*)
13339: # FIXME: insert proper C++ library support
13340: ld_shlibs_CXX=no
13341: ;;
13342:
13343: mvs*)
13344: case $cc_basename in
13345: cxx*)
13346: # FIXME: insert proper C++ library support
13347: ld_shlibs_CXX=no
13348: ;;
13349: *)
13350: # FIXME: insert proper C++ library support
13351: ld_shlibs_CXX=no
13352: ;;
13353: esac
13354: ;;
13355:
13356: netbsd*)
13357: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13358: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13359: wlarc=
13360: hardcode_libdir_flag_spec_CXX='-R$libdir'
13361: hardcode_direct_CXX=yes
13362: hardcode_shlibpath_var_CXX=no
13363: fi
13364: # Workaround some broken pre-1.5 toolchains
13365: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13366: ;;
13367:
13368: *nto* | *qnx*)
13369: ld_shlibs_CXX=yes
13370: ;;
13371:
13372: openbsd2*)
13373: # C++ shared libraries are fairly broken
13374: ld_shlibs_CXX=no
13375: ;;
13376:
13377: openbsd*)
13378: if test -f /usr/libexec/ld.so; then
13379: hardcode_direct_CXX=yes
13380: hardcode_shlibpath_var_CXX=no
13381: hardcode_direct_absolute_CXX=yes
13382: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13383: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13384: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13385: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13386: export_dynamic_flag_spec_CXX='${wl}-E'
13387: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13388: fi
13389: output_verbose_link_cmd=func_echo_all
13390: else
13391: ld_shlibs_CXX=no
13392: fi
13393: ;;
13394:
13395: osf3* | osf4* | osf5*)
13396: case $cc_basename in
13397: KCC*)
13398: # Kuck and Associates, Inc. (KAI) C++ Compiler
13399:
13400: # KCC will only create a shared library if the output file
13401: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13402: # to its proper name (with version) after linking.
13403: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13404:
13405: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13406: hardcode_libdir_separator_CXX=:
13407:
13408: # Archives containing C++ object files must be created using
13409: # the KAI C++ compiler.
13410: case $host in
13411: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13412: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13413: esac
13414: ;;
13415: RCC*)
13416: # Rational C++ 2.4.1
13417: # FIXME: insert proper C++ library support
13418: ld_shlibs_CXX=no
13419: ;;
13420: cxx*)
13421: case $host in
13422: osf3*)
13423: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13424: 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'
13425: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13426: ;;
13427: *)
13428: allow_undefined_flag_CXX=' -expect_unresolved \*'
13429: 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'
13430: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13431: echo "-hidden">> $lib.exp~
13432: $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~
13433: $RM $lib.exp'
13434: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13435: ;;
13436: esac
13437:
13438: hardcode_libdir_separator_CXX=:
13439:
13440: # Commands to make compiler produce verbose output that lists
13441: # what "hidden" libraries, object files and flags are used when
13442: # linking a shared library.
13443: #
13444: # There doesn't appear to be a way to prevent this compiler from
13445: # explicitly linking system object files so we need to strip them
13446: # from the output so that they don't get included in the library
13447: # dependencies.
13448: 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"'
13449: ;;
13450: *)
13451: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13452: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13453: case $host in
13454: osf3*)
13455: 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'
13456: ;;
13457: *)
13458: 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'
13459: ;;
13460: esac
13461:
13462: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13463: hardcode_libdir_separator_CXX=:
13464:
13465: # Commands to make compiler produce verbose output that lists
13466: # what "hidden" libraries, object files and flags are used when
13467: # linking a shared library.
13468: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13469:
13470: else
13471: # FIXME: insert proper C++ library support
13472: ld_shlibs_CXX=no
13473: fi
13474: ;;
13475: esac
13476: ;;
13477:
13478: psos*)
13479: # FIXME: insert proper C++ library support
13480: ld_shlibs_CXX=no
13481: ;;
13482:
13483: sunos4*)
13484: case $cc_basename in
13485: CC*)
13486: # Sun C++ 4.x
13487: # FIXME: insert proper C++ library support
13488: ld_shlibs_CXX=no
13489: ;;
13490: lcc*)
13491: # Lucid
13492: # FIXME: insert proper C++ library support
13493: ld_shlibs_CXX=no
13494: ;;
13495: *)
13496: # FIXME: insert proper C++ library support
13497: ld_shlibs_CXX=no
13498: ;;
13499: esac
13500: ;;
13501:
13502: solaris*)
13503: case $cc_basename in
13504: CC* | sunCC*)
13505: # Sun C++ 4.2, 5.x and Centerline C++
13506: archive_cmds_need_lc_CXX=yes
13507: no_undefined_flag_CXX=' -zdefs'
13508: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13509: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13510: $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'
13511:
13512: hardcode_libdir_flag_spec_CXX='-R$libdir'
13513: hardcode_shlibpath_var_CXX=no
13514: case $host_os in
13515: solaris2.[0-5] | solaris2.[0-5].*) ;;
13516: *)
13517: # The compiler driver will combine and reorder linker options,
13518: # but understands `-z linker_flag'.
13519: # Supported since Solaris 2.6 (maybe 2.5.1?)
13520: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13521: ;;
13522: esac
13523: link_all_deplibs_CXX=yes
13524:
13525: output_verbose_link_cmd='func_echo_all'
13526:
13527: # Archives containing C++ object files must be created using
13528: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13529: # necessary to make sure instantiated templates are included
13530: # in the archive.
13531: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13532: ;;
13533: gcx*)
13534: # Green Hills C++ Compiler
13535: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13536:
13537: # The C++ compiler must be used to create the archive.
13538: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13539: ;;
13540: *)
13541: # GNU C++ compiler with Solaris linker
13542: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13543: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13544: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13545: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13546: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13547: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13548:
13549: # Commands to make compiler produce verbose output that lists
13550: # what "hidden" libraries, object files and flags are used when
13551: # linking a shared library.
13552: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13553: else
13554: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13555: # platform.
13556: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13557: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13558: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13559:
13560: # Commands to make compiler produce verbose output that lists
13561: # what "hidden" libraries, object files and flags are used when
13562: # linking a shared library.
13563: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13564: fi
13565:
13566: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13567: case $host_os in
13568: solaris2.[0-5] | solaris2.[0-5].*) ;;
13569: *)
13570: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13571: ;;
13572: esac
13573: fi
13574: ;;
13575: esac
13576: ;;
13577:
13578: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13579: no_undefined_flag_CXX='${wl}-z,text'
13580: archive_cmds_need_lc_CXX=no
13581: hardcode_shlibpath_var_CXX=no
13582: runpath_var='LD_RUN_PATH'
13583:
13584: case $cc_basename in
13585: CC*)
13586: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13588: ;;
13589: *)
13590: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13591: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13592: ;;
13593: esac
13594: ;;
13595:
13596: sysv5* | sco3.2v5* | sco5v6*)
13597: # Note: We can NOT use -z defs as we might desire, because we do not
13598: # link with -lc, and that would cause any symbols used from libc to
13599: # always be unresolved, which means just about no library would
13600: # ever link correctly. If we're not using GNU ld we use -z text
13601: # though, which does catch some bad symbols but isn't as heavy-handed
13602: # as -z defs.
13603: no_undefined_flag_CXX='${wl}-z,text'
13604: allow_undefined_flag_CXX='${wl}-z,nodefs'
13605: archive_cmds_need_lc_CXX=no
13606: hardcode_shlibpath_var_CXX=no
13607: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13608: hardcode_libdir_separator_CXX=':'
13609: link_all_deplibs_CXX=yes
13610: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13611: runpath_var='LD_RUN_PATH'
13612:
13613: case $cc_basename in
13614: CC*)
13615: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13616: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13617: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13618: '"$old_archive_cmds_CXX"
13619: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13620: '"$reload_cmds_CXX"
13621: ;;
13622: *)
13623: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13624: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13625: ;;
13626: esac
13627: ;;
13628:
13629: tandem*)
13630: case $cc_basename in
13631: NCC*)
13632: # NonStop-UX NCC 3.20
13633: # FIXME: insert proper C++ library support
13634: ld_shlibs_CXX=no
13635: ;;
13636: *)
13637: # FIXME: insert proper C++ library support
13638: ld_shlibs_CXX=no
13639: ;;
13640: esac
13641: ;;
13642:
13643: vxworks*)
13644: # FIXME: insert proper C++ library support
13645: ld_shlibs_CXX=no
13646: ;;
13647:
13648: *)
13649: # FIXME: insert proper C++ library support
13650: ld_shlibs_CXX=no
13651: ;;
13652: esac
13653:
1.43 moko 13654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13655: $as_echo "$ld_shlibs_CXX" >&6; }
1.35 moko 13656: test "$ld_shlibs_CXX" = no && can_build_shared=no
13657:
13658: GCC_CXX="$GXX"
13659: LD_CXX="$LD"
13660:
13661: ## CAVEAT EMPTOR:
13662: ## There is no encapsulation within the following macros, do not change
13663: ## the running order or otherwise move them around unless you know exactly
13664: ## what you are doing...
13665: # Dependencies to place before and after the object being linked:
13666: predep_objects_CXX=
13667: postdep_objects_CXX=
13668: predeps_CXX=
13669: postdeps_CXX=
13670: compiler_lib_search_path_CXX=
13671:
13672: cat > conftest.$ac_ext <<_LT_EOF
13673: class Foo
13674: {
13675: public:
13676: Foo (void) { a = 0; }
13677: private:
13678: int a;
13679: };
13680: _LT_EOF
13681:
13682:
13683: _lt_libdeps_save_CFLAGS=$CFLAGS
13684: case "$CC $CFLAGS " in #(
13685: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13686: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13687: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13688: esac
13689:
1.43 moko 13690: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.35 moko 13691: (eval $ac_compile) 2>&5
13692: ac_status=$?
1.43 moko 13693: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13694: test $ac_status = 0; }; then
1.35 moko 13695: # Parse the compiler output and extract the necessary
13696: # objects, libraries and library flags.
13697:
13698: # Sentinel used to keep track of whether or not we are before
13699: # the conftest object file.
13700: pre_test_object_deps_done=no
13701:
13702: for p in `eval "$output_verbose_link_cmd"`; do
13703: case ${prev}${p} in
13704:
13705: -L* | -R* | -l*)
13706: # Some compilers place space between "-{L,R}" and the path.
13707: # Remove the space.
13708: if test $p = "-L" ||
13709: test $p = "-R"; then
13710: prev=$p
13711: continue
13712: fi
13713:
13714: # Expand the sysroot to ease extracting the directories later.
13715: if test -z "$prev"; then
13716: case $p in
13717: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13718: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13719: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13720: esac
13721: fi
13722: case $p in
13723: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13724: esac
13725: if test "$pre_test_object_deps_done" = no; then
13726: case ${prev} in
13727: -L | -R)
13728: # Internal compiler library paths should come after those
13729: # provided the user. The postdeps already come after the
13730: # user supplied libs so there is no need to process them.
13731: if test -z "$compiler_lib_search_path_CXX"; then
13732: compiler_lib_search_path_CXX="${prev}${p}"
13733: else
13734: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13735: fi
13736: ;;
13737: # The "-l" case would never come before the object being
13738: # linked, so don't bother handling this case.
13739: esac
13740: else
13741: if test -z "$postdeps_CXX"; then
13742: postdeps_CXX="${prev}${p}"
13743: else
13744: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13745: fi
13746: fi
13747: prev=
13748: ;;
13749:
13750: *.lto.$objext) ;; # Ignore GCC LTO objects
13751: *.$objext)
13752: # This assumes that the test object file only shows up
13753: # once in the compiler output.
13754: if test "$p" = "conftest.$objext"; then
13755: pre_test_object_deps_done=yes
13756: continue
13757: fi
13758:
13759: if test "$pre_test_object_deps_done" = no; then
13760: if test -z "$predep_objects_CXX"; then
13761: predep_objects_CXX="$p"
13762: else
13763: predep_objects_CXX="$predep_objects_CXX $p"
13764: fi
13765: else
13766: if test -z "$postdep_objects_CXX"; then
13767: postdep_objects_CXX="$p"
13768: else
13769: postdep_objects_CXX="$postdep_objects_CXX $p"
13770: fi
13771: fi
13772: ;;
13773:
13774: *) ;; # Ignore the rest.
13775:
13776: esac
13777: done
13778:
13779: # Clean up.
13780: rm -f a.out a.exe
13781: else
13782: echo "libtool.m4: error: problem compiling CXX test program"
13783: fi
13784:
13785: $RM -f confest.$objext
13786: CFLAGS=$_lt_libdeps_save_CFLAGS
13787:
13788: # PORTME: override above test on systems where it is broken
13789: case $host_os in
13790: interix[3-9]*)
13791: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13792: # hack all around it, let's just trust "g++" to DTRT.
13793: predep_objects_CXX=
13794: postdep_objects_CXX=
13795: postdeps_CXX=
13796: ;;
13797:
13798: linux*)
13799: case `$CC -V 2>&1 | sed 5q` in
13800: *Sun\ C*)
13801: # Sun C++ 5.9
13802:
13803: # The more standards-conforming stlport4 library is
13804: # incompatible with the Cstd library. Avoid specifying
13805: # it if it's in CXXFLAGS. Ignore libCrun as
13806: # -library=stlport4 depends on it.
13807: case " $CXX $CXXFLAGS " in
13808: *" -library=stlport4 "*)
13809: solaris_use_stlport4=yes
13810: ;;
13811: esac
13812:
13813: if test "$solaris_use_stlport4" != yes; then
13814: postdeps_CXX='-library=Cstd -library=Crun'
13815: fi
13816: ;;
13817: esac
13818: ;;
13819:
13820: solaris*)
13821: case $cc_basename in
13822: CC* | sunCC*)
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: # Adding this requires a known-good setup of shared libraries for
13834: # Sun compiler versions before 5.6, else PIC objects from an old
13835: # archive will be linked into the output, leading to subtle bugs.
13836: if test "$solaris_use_stlport4" != yes; then
13837: postdeps_CXX='-library=Cstd -library=Crun'
13838: fi
13839: ;;
13840: esac
13841: ;;
13842: esac
13843:
13844:
13845: case " $postdeps_CXX " in
13846: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13847: esac
13848: compiler_lib_search_dirs_CXX=
13849: if test -n "${compiler_lib_search_path_CXX}"; then
13850: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13851: fi
13852:
13853:
13854:
13855:
13856:
13857:
13858:
13859:
13860:
13861:
13862:
13863:
13864:
13865:
13866:
13867:
13868:
13869:
13870:
13871:
13872:
13873:
13874:
13875:
13876:
13877:
13878:
13879:
13880:
13881:
13882:
13883: lt_prog_compiler_wl_CXX=
13884: lt_prog_compiler_pic_CXX=
13885: lt_prog_compiler_static_CXX=
13886:
13887:
13888: # C++ specific cases for pic, static, wl, etc.
13889: if test "$GXX" = yes; then
13890: lt_prog_compiler_wl_CXX='-Wl,'
13891: lt_prog_compiler_static_CXX='-static'
13892:
13893: case $host_os in
13894: aix*)
13895: # All AIX code is PIC.
13896: if test "$host_cpu" = ia64; then
13897: # AIX 5 now supports IA64 processor
13898: lt_prog_compiler_static_CXX='-Bstatic'
13899: fi
13900: ;;
13901:
13902: amigaos*)
13903: case $host_cpu in
13904: powerpc)
13905: # see comment about AmigaOS4 .so support
13906: lt_prog_compiler_pic_CXX='-fPIC'
13907: ;;
13908: m68k)
13909: # FIXME: we need at least 68020 code to build shared libraries, but
13910: # adding the `-m68020' flag to GCC prevents building anything better,
13911: # like `-m68040'.
13912: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13913: ;;
13914: esac
13915: ;;
13916:
13917: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13918: # PIC is the default for these OSes.
13919: ;;
13920: mingw* | cygwin* | os2* | pw32* | cegcc*)
13921: # This hack is so that the source file can tell whether it is being
13922: # built for inclusion in a dll (and should export symbols for example).
13923: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13924: # (--disable-auto-import) libraries
13925: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13926: ;;
13927: darwin* | rhapsody*)
13928: # PIC is the default on this platform
13929: # Common symbols not allowed in MH_DYLIB files
13930: lt_prog_compiler_pic_CXX='-fno-common'
13931: ;;
13932: *djgpp*)
13933: # DJGPP does not support shared libraries at all
13934: lt_prog_compiler_pic_CXX=
13935: ;;
13936: haiku*)
13937: # PIC is the default for Haiku.
13938: # The "-static" flag exists, but is broken.
13939: lt_prog_compiler_static_CXX=
13940: ;;
13941: interix[3-9]*)
13942: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13943: # Instead, we relocate shared libraries at runtime.
13944: ;;
13945: sysv4*MP*)
13946: if test -d /usr/nec; then
13947: lt_prog_compiler_pic_CXX=-Kconform_pic
13948: fi
13949: ;;
13950: hpux*)
13951: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13952: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13953: # sets the default TLS model and affects inlining.
13954: case $host_cpu in
13955: hppa*64*)
13956: ;;
13957: *)
13958: lt_prog_compiler_pic_CXX='-fPIC'
13959: ;;
13960: esac
13961: ;;
13962: *qnx* | *nto*)
13963: # QNX uses GNU C++, but need to define -shared option too, otherwise
13964: # it will coredump.
13965: lt_prog_compiler_pic_CXX='-fPIC -shared'
13966: ;;
13967: *)
13968: lt_prog_compiler_pic_CXX='-fPIC'
13969: ;;
13970: esac
13971: else
13972: case $host_os in
13973: aix[4-9]*)
13974: # All AIX code is PIC.
13975: if test "$host_cpu" = ia64; then
13976: # AIX 5 now supports IA64 processor
13977: lt_prog_compiler_static_CXX='-Bstatic'
13978: else
13979: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13980: fi
13981: ;;
13982: chorus*)
13983: case $cc_basename in
13984: cxch68*)
13985: # Green Hills C++ Compiler
13986: # _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"
13987: ;;
13988: esac
13989: ;;
13990: mingw* | cygwin* | os2* | pw32* | cegcc*)
13991: # This hack is so that the source file can tell whether it is being
13992: # built for inclusion in a dll (and should export symbols for example).
13993: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13994: ;;
13995: dgux*)
13996: case $cc_basename in
13997: ec++*)
13998: lt_prog_compiler_pic_CXX='-KPIC'
13999: ;;
14000: ghcx*)
14001: # Green Hills C++ Compiler
14002: lt_prog_compiler_pic_CXX='-pic'
14003: ;;
14004: *)
14005: ;;
14006: esac
14007: ;;
14008: freebsd* | dragonfly*)
14009: # FreeBSD uses GNU C++
14010: ;;
14011: hpux9* | hpux10* | hpux11*)
14012: case $cc_basename in
14013: CC*)
14014: lt_prog_compiler_wl_CXX='-Wl,'
14015: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14016: if test "$host_cpu" != ia64; then
14017: lt_prog_compiler_pic_CXX='+Z'
14018: fi
14019: ;;
14020: aCC*)
14021: lt_prog_compiler_wl_CXX='-Wl,'
14022: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14023: case $host_cpu in
14024: hppa*64*|ia64*)
14025: # +Z the default
14026: ;;
14027: *)
14028: lt_prog_compiler_pic_CXX='+Z'
14029: ;;
14030: esac
14031: ;;
14032: *)
14033: ;;
14034: esac
14035: ;;
14036: interix*)
14037: # This is c89, which is MS Visual C++ (no shared libs)
14038: # Anyone wants to do a port?
14039: ;;
14040: irix5* | irix6* | nonstopux*)
14041: case $cc_basename in
14042: CC*)
14043: lt_prog_compiler_wl_CXX='-Wl,'
14044: lt_prog_compiler_static_CXX='-non_shared'
14045: # CC pic flag -KPIC is the default.
14046: ;;
14047: *)
14048: ;;
14049: esac
14050: ;;
14051: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14052: case $cc_basename in
14053: KCC*)
14054: # KAI C++ Compiler
14055: lt_prog_compiler_wl_CXX='--backend -Wl,'
14056: lt_prog_compiler_pic_CXX='-fPIC'
14057: ;;
14058: ecpc* )
14059: # old Intel C++ for x86_64 which still supported -KPIC.
14060: lt_prog_compiler_wl_CXX='-Wl,'
14061: lt_prog_compiler_pic_CXX='-KPIC'
14062: lt_prog_compiler_static_CXX='-static'
14063: ;;
14064: icpc* )
14065: # Intel C++, used to be incompatible with GCC.
14066: # ICC 10 doesn't accept -KPIC any more.
14067: lt_prog_compiler_wl_CXX='-Wl,'
14068: lt_prog_compiler_pic_CXX='-fPIC'
14069: lt_prog_compiler_static_CXX='-static'
14070: ;;
14071: pgCC* | pgcpp*)
14072: # Portland Group C++ compiler
14073: lt_prog_compiler_wl_CXX='-Wl,'
14074: lt_prog_compiler_pic_CXX='-fpic'
14075: lt_prog_compiler_static_CXX='-Bstatic'
14076: ;;
14077: cxx*)
14078: # Compaq C++
14079: # Make sure the PIC flag is empty. It appears that all Alpha
14080: # Linux and Compaq Tru64 Unix objects are PIC.
14081: lt_prog_compiler_pic_CXX=
14082: lt_prog_compiler_static_CXX='-non_shared'
14083: ;;
14084: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14085: # IBM XL 8.0, 9.0 on PPC and BlueGene
14086: lt_prog_compiler_wl_CXX='-Wl,'
14087: lt_prog_compiler_pic_CXX='-qpic'
14088: lt_prog_compiler_static_CXX='-qstaticlink'
14089: ;;
14090: *)
14091: case `$CC -V 2>&1 | sed 5q` in
14092: *Sun\ C*)
14093: # Sun C++ 5.9
14094: lt_prog_compiler_pic_CXX='-KPIC'
14095: lt_prog_compiler_static_CXX='-Bstatic'
14096: lt_prog_compiler_wl_CXX='-Qoption ld '
14097: ;;
14098: esac
14099: ;;
14100: esac
14101: ;;
14102: lynxos*)
14103: ;;
14104: m88k*)
14105: ;;
14106: mvs*)
14107: case $cc_basename in
14108: cxx*)
14109: lt_prog_compiler_pic_CXX='-W c,exportall'
14110: ;;
14111: *)
14112: ;;
14113: esac
14114: ;;
14115: netbsd*)
14116: ;;
14117: *qnx* | *nto*)
14118: # QNX uses GNU C++, but need to define -shared option too, otherwise
14119: # it will coredump.
14120: lt_prog_compiler_pic_CXX='-fPIC -shared'
14121: ;;
14122: osf3* | osf4* | osf5*)
14123: case $cc_basename in
14124: KCC*)
14125: lt_prog_compiler_wl_CXX='--backend -Wl,'
14126: ;;
14127: RCC*)
14128: # Rational C++ 2.4.1
14129: lt_prog_compiler_pic_CXX='-pic'
14130: ;;
14131: cxx*)
14132: # Digital/Compaq C++
14133: lt_prog_compiler_wl_CXX='-Wl,'
14134: # Make sure the PIC flag is empty. It appears that all Alpha
14135: # Linux and Compaq Tru64 Unix objects are PIC.
14136: lt_prog_compiler_pic_CXX=
14137: lt_prog_compiler_static_CXX='-non_shared'
14138: ;;
14139: *)
14140: ;;
14141: esac
14142: ;;
14143: psos*)
14144: ;;
14145: solaris*)
14146: case $cc_basename in
14147: CC* | sunCC*)
14148: # Sun C++ 4.2, 5.x and Centerline C++
14149: lt_prog_compiler_pic_CXX='-KPIC'
14150: lt_prog_compiler_static_CXX='-Bstatic'
14151: lt_prog_compiler_wl_CXX='-Qoption ld '
14152: ;;
14153: gcx*)
14154: # Green Hills C++ Compiler
14155: lt_prog_compiler_pic_CXX='-PIC'
14156: ;;
14157: *)
14158: ;;
14159: esac
14160: ;;
14161: sunos4*)
14162: case $cc_basename in
14163: CC*)
14164: # Sun C++ 4.x
14165: lt_prog_compiler_pic_CXX='-pic'
14166: lt_prog_compiler_static_CXX='-Bstatic'
14167: ;;
14168: lcc*)
14169: # Lucid
14170: lt_prog_compiler_pic_CXX='-pic'
14171: ;;
14172: *)
14173: ;;
14174: esac
14175: ;;
14176: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14177: case $cc_basename in
14178: CC*)
14179: lt_prog_compiler_wl_CXX='-Wl,'
14180: lt_prog_compiler_pic_CXX='-KPIC'
14181: lt_prog_compiler_static_CXX='-Bstatic'
14182: ;;
14183: esac
14184: ;;
14185: tandem*)
14186: case $cc_basename in
14187: NCC*)
14188: # NonStop-UX NCC 3.20
14189: lt_prog_compiler_pic_CXX='-KPIC'
14190: ;;
14191: *)
14192: ;;
14193: esac
14194: ;;
14195: vxworks*)
14196: ;;
14197: *)
14198: lt_prog_compiler_can_build_shared_CXX=no
14199: ;;
14200: esac
14201: fi
14202:
14203: case $host_os in
14204: # For platforms which do not support PIC, -DPIC is meaningless:
14205: *djgpp*)
14206: lt_prog_compiler_pic_CXX=
14207: ;;
14208: *)
14209: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14210: ;;
14211: esac
14212:
1.43 moko 14213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14214: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14215: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14216: $as_echo_n "(cached) " >&6
1.35 moko 14217: else
14218: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14219: fi
1.43 moko 14220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14221: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.35 moko 14222: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14223:
14224: #
14225: # Check to make sure the PIC flag actually works.
14226: #
14227: if test -n "$lt_prog_compiler_pic_CXX"; then
1.43 moko 14228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14229: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14230: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14231: $as_echo_n "(cached) " >&6
1.35 moko 14232: else
14233: lt_cv_prog_compiler_pic_works_CXX=no
14234: ac_outfile=conftest.$ac_objext
14235: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14236: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14237: # Insert the option either (1) after the last *FLAGS variable, or
14238: # (2) before a word containing "conftest.", or (3) at the end.
14239: # Note that $ac_compile itself does not contain backslashes and begins
14240: # with a dollar sign (not a hyphen), so the echo should work correctly.
14241: # The option is referenced via a variable to avoid confusing sed.
14242: lt_compile=`echo "$ac_compile" | $SED \
14243: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14244: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14245: -e 's:$: $lt_compiler_flag:'`
14246: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14247: (eval "$lt_compile" 2>conftest.err)
14248: ac_status=$?
14249: cat conftest.err >&5
14250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251: if (exit $ac_status) && test -s "$ac_outfile"; then
14252: # The compiler can only warn and ignore the option if not recognized
14253: # So say no if there are warnings other than the usual output.
14254: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14255: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14256: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14257: lt_cv_prog_compiler_pic_works_CXX=yes
14258: fi
14259: fi
14260: $RM conftest*
14261:
14262: fi
1.43 moko 14263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14264: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.35 moko 14265:
14266: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14267: case $lt_prog_compiler_pic_CXX in
14268: "" | " "*) ;;
14269: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14270: esac
14271: else
14272: lt_prog_compiler_pic_CXX=
14273: lt_prog_compiler_can_build_shared_CXX=no
14274: fi
14275:
14276: fi
14277:
14278:
14279:
14280:
14281:
14282: #
14283: # Check to make sure the static flag actually works.
14284: #
14285: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.43 moko 14286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14287: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14288: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14289: $as_echo_n "(cached) " >&6
1.35 moko 14290: else
14291: lt_cv_prog_compiler_static_works_CXX=no
14292: save_LDFLAGS="$LDFLAGS"
14293: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14294: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14295: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14296: # The linker can only warn and ignore the option if not recognized
14297: # So say no if there are warnings
14298: if test -s conftest.err; then
14299: # Append any errors to the config.log.
14300: cat conftest.err 1>&5
14301: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14302: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14303: if diff conftest.exp conftest.er2 >/dev/null; then
14304: lt_cv_prog_compiler_static_works_CXX=yes
14305: fi
14306: else
14307: lt_cv_prog_compiler_static_works_CXX=yes
14308: fi
14309: fi
14310: $RM -r conftest*
14311: LDFLAGS="$save_LDFLAGS"
14312:
14313: fi
1.43 moko 14314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14315: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.35 moko 14316:
14317: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14318: :
14319: else
14320: lt_prog_compiler_static_CXX=
14321: fi
14322:
14323:
14324:
14325:
1.43 moko 14326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14327: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14328: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14329: $as_echo_n "(cached) " >&6
1.35 moko 14330: else
14331: lt_cv_prog_compiler_c_o_CXX=no
14332: $RM -r conftest 2>/dev/null
14333: mkdir conftest
14334: cd conftest
14335: mkdir out
14336: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14337:
14338: lt_compiler_flag="-o out/conftest2.$ac_objext"
14339: # Insert the option either (1) after the last *FLAGS variable, or
14340: # (2) before a word containing "conftest.", or (3) at the end.
14341: # Note that $ac_compile itself does not contain backslashes and begins
14342: # with a dollar sign (not a hyphen), so the echo should work correctly.
14343: lt_compile=`echo "$ac_compile" | $SED \
14344: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14345: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14346: -e 's:$: $lt_compiler_flag:'`
14347: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14348: (eval "$lt_compile" 2>out/conftest.err)
14349: ac_status=$?
14350: cat out/conftest.err >&5
14351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14353: then
14354: # The compiler can only warn and ignore the option if not recognized
14355: # So say no if there are warnings
14356: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14357: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14358: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14359: lt_cv_prog_compiler_c_o_CXX=yes
14360: fi
14361: fi
14362: chmod u+w . 2>&5
14363: $RM conftest*
14364: # SGI C++ compiler will create directory out/ii_files/ for
14365: # template instantiation
14366: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14367: $RM out/* && rmdir out
14368: cd ..
14369: $RM -r conftest
14370: $RM conftest*
14371:
14372: fi
1.43 moko 14373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14374: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.35 moko 14375:
14376:
14377:
1.43 moko 14378: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14379: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14380: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14381: $as_echo_n "(cached) " >&6
1.35 moko 14382: else
14383: lt_cv_prog_compiler_c_o_CXX=no
14384: $RM -r conftest 2>/dev/null
14385: mkdir conftest
14386: cd conftest
14387: mkdir out
14388: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14389:
14390: lt_compiler_flag="-o out/conftest2.$ac_objext"
14391: # Insert the option either (1) after the last *FLAGS variable, or
14392: # (2) before a word containing "conftest.", or (3) at the end.
14393: # Note that $ac_compile itself does not contain backslashes and begins
14394: # with a dollar sign (not a hyphen), so the echo should work correctly.
14395: lt_compile=`echo "$ac_compile" | $SED \
14396: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14397: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14398: -e 's:$: $lt_compiler_flag:'`
14399: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14400: (eval "$lt_compile" 2>out/conftest.err)
14401: ac_status=$?
14402: cat out/conftest.err >&5
14403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14405: then
14406: # The compiler can only warn and ignore the option if not recognized
14407: # So say no if there are warnings
14408: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14409: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14410: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14411: lt_cv_prog_compiler_c_o_CXX=yes
14412: fi
14413: fi
14414: chmod u+w . 2>&5
14415: $RM conftest*
14416: # SGI C++ compiler will create directory out/ii_files/ for
14417: # template instantiation
14418: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14419: $RM out/* && rmdir out
14420: cd ..
14421: $RM -r conftest
14422: $RM conftest*
14423:
14424: fi
1.43 moko 14425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14426: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.35 moko 14427:
14428:
14429:
14430:
14431: hard_links="nottested"
14432: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14433: # do not overwrite the value of need_locks provided by the user
1.43 moko 14434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14435: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.35 moko 14436: hard_links=yes
14437: $RM conftest*
14438: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14439: touch conftest.a
14440: ln conftest.a conftest.b 2>&5 || hard_links=no
14441: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.43 moko 14442: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14443: $as_echo "$hard_links" >&6; }
1.35 moko 14444: if test "$hard_links" = no; then
1.43 moko 14445: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14446: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.35 moko 14447: need_locks=warn
14448: fi
14449: else
14450: need_locks=no
14451: fi
14452:
14453:
14454:
1.43 moko 14455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14456: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.35 moko 14457:
14458: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14459: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14460: case $host_os in
14461: aix[4-9]*)
14462: # If we're using GNU nm, then we don't want the "-C" option.
14463: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14464: # Also, AIX nm treats weak defined symbols like other global defined
14465: # symbols, whereas GNU nm marks them as "W".
14466: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14467: 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'
14468: else
14469: 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'
14470: fi
14471: ;;
14472: pw32*)
14473: export_symbols_cmds_CXX="$ltdll_cmds"
14474: ;;
14475: cygwin* | mingw* | cegcc*)
14476: case $cc_basename in
14477: cl*)
14478: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14479: ;;
14480: *)
14481: 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'
14482: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14483: ;;
14484: esac
14485: ;;
14486: *)
14487: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14488: ;;
14489: esac
14490:
1.43 moko 14491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14492: $as_echo "$ld_shlibs_CXX" >&6; }
1.35 moko 14493: test "$ld_shlibs_CXX" = no && can_build_shared=no
14494:
14495: with_gnu_ld_CXX=$with_gnu_ld
14496:
14497:
14498:
14499:
14500:
14501:
14502: #
14503: # Do we need to explicitly link libc?
14504: #
14505: case "x$archive_cmds_need_lc_CXX" in
14506: x|xyes)
14507: # Assume -lc should be added
14508: archive_cmds_need_lc_CXX=yes
14509:
14510: if test "$enable_shared" = yes && test "$GCC" = yes; then
14511: case $archive_cmds_CXX in
14512: *'~'*)
14513: # FIXME: we may have to deal with multi-command sequences.
14514: ;;
14515: '$CC '*)
14516: # Test whether the compiler implicitly links with -lc since on some
14517: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14518: # to ld, don't add -lc before -lgcc.
1.43 moko 14519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14520: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14521: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14522: $as_echo_n "(cached) " >&6
1.35 moko 14523: else
14524: $RM conftest*
14525: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14526:
1.43 moko 14527: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.35 moko 14528: (eval $ac_compile) 2>&5
14529: ac_status=$?
1.43 moko 14530: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14531: test $ac_status = 0; } 2>conftest.err; then
1.35 moko 14532: soname=conftest
14533: lib=conftest
14534: libobjs=conftest.$ac_objext
14535: deplibs=
14536: wl=$lt_prog_compiler_wl_CXX
14537: pic_flag=$lt_prog_compiler_pic_CXX
14538: compiler_flags=-v
14539: linker_flags=-v
14540: verstring=
14541: output_objdir=.
14542: libname=conftest
14543: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14544: allow_undefined_flag_CXX=
1.43 moko 14545: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.35 moko 14546: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14547: ac_status=$?
1.43 moko 14548: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14549: test $ac_status = 0; }
1.35 moko 14550: then
14551: lt_cv_archive_cmds_need_lc_CXX=no
14552: else
14553: lt_cv_archive_cmds_need_lc_CXX=yes
14554: fi
14555: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14556: else
14557: cat conftest.err 1>&5
14558: fi
14559: $RM conftest*
14560:
14561: fi
1.43 moko 14562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14563: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.35 moko 14564: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14565: ;;
14566: esac
14567: fi
14568: ;;
14569: esac
14570:
14571:
14572:
14573:
14574:
14575:
14576:
14577:
14578:
14579:
14580:
14581:
14582:
14583:
14584:
14585:
14586:
14587:
14588:
14589:
14590:
14591:
14592:
14593:
14594:
14595:
14596:
14597:
14598:
14599:
14600:
14601:
14602:
14603:
14604:
14605:
14606:
14607:
14608:
14609:
14610:
14611:
14612:
14613:
14614:
14615:
14616:
14617:
14618:
14619:
14620:
14621:
14622:
14623:
14624:
14625:
14626:
14627:
14628:
14629:
14630:
14631:
1.43 moko 14632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14633: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.35 moko 14634:
14635: library_names_spec=
14636: libname_spec='lib$name'
14637: soname_spec=
14638: shrext_cmds=".so"
14639: postinstall_cmds=
14640: postuninstall_cmds=
14641: finish_cmds=
14642: finish_eval=
14643: shlibpath_var=
14644: shlibpath_overrides_runpath=unknown
14645: version_type=none
14646: dynamic_linker="$host_os ld.so"
14647: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14648: need_lib_prefix=unknown
14649: hardcode_into_libs=no
14650:
14651: # when you set need_version to no, make sure it does not cause -set_version
14652: # flags to be left without arguments
14653: need_version=unknown
14654:
14655: case $host_os in
14656: aix3*)
14657: version_type=linux # correct to gnu/linux during the next big refactor
14658: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14659: shlibpath_var=LIBPATH
14660:
14661: # AIX 3 has no versioning support, so we append a major version to the name.
14662: soname_spec='${libname}${release}${shared_ext}$major'
14663: ;;
14664:
14665: aix[4-9]*)
14666: version_type=linux # correct to gnu/linux during the next big refactor
14667: need_lib_prefix=no
14668: need_version=no
14669: hardcode_into_libs=yes
14670: if test "$host_cpu" = ia64; then
14671: # AIX 5 supports IA64
14672: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14673: shlibpath_var=LD_LIBRARY_PATH
14674: else
14675: # With GCC up to 2.95.x, collect2 would create an import file
14676: # for dependence libraries. The import file would start with
14677: # the line `#! .'. This would cause the generated library to
14678: # depend on `.', always an invalid library. This was fixed in
14679: # development snapshots of GCC prior to 3.0.
14680: case $host_os in
14681: aix4 | aix4.[01] | aix4.[01].*)
14682: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14683: echo ' yes '
14684: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14685: :
14686: else
14687: can_build_shared=no
14688: fi
14689: ;;
14690: esac
14691: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14692: # soname into executable. Probably we can add versioning support to
14693: # collect2, so additional links can be useful in future.
14694: if test "$aix_use_runtimelinking" = yes; then
14695: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14696: # instead of lib<name>.a to let people know that these are not
14697: # typical AIX shared libraries.
14698: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699: else
14700: # We preserve .a as extension for shared libraries through AIX4.2
14701: # and later when we are not doing run time linking.
14702: library_names_spec='${libname}${release}.a $libname.a'
14703: soname_spec='${libname}${release}${shared_ext}$major'
14704: fi
14705: shlibpath_var=LIBPATH
14706: fi
14707: ;;
14708:
14709: amigaos*)
14710: case $host_cpu in
14711: powerpc)
14712: # Since July 2007 AmigaOS4 officially supports .so libraries.
14713: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14714: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715: ;;
14716: m68k)
14717: library_names_spec='$libname.ixlibrary $libname.a'
14718: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14719: 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'
14720: ;;
14721: esac
14722: ;;
14723:
14724: beos*)
14725: library_names_spec='${libname}${shared_ext}'
14726: dynamic_linker="$host_os ld.so"
14727: shlibpath_var=LIBRARY_PATH
14728: ;;
14729:
14730: bsdi[45]*)
14731: version_type=linux # correct to gnu/linux during the next big refactor
14732: need_version=no
14733: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734: soname_spec='${libname}${release}${shared_ext}$major'
14735: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14736: shlibpath_var=LD_LIBRARY_PATH
14737: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14738: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14739: # the default ld.so.conf also contains /usr/contrib/lib and
14740: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14741: # libtool to hard-code these into programs
14742: ;;
14743:
14744: cygwin* | mingw* | pw32* | cegcc*)
14745: version_type=windows
14746: shrext_cmds=".dll"
14747: need_version=no
14748: need_lib_prefix=no
14749:
14750: case $GCC,$cc_basename in
14751: yes,*)
14752: # gcc
14753: library_names_spec='$libname.dll.a'
14754: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14755: postinstall_cmds='base_file=`basename \${file}`~
14756: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14757: dldir=$destdir/`dirname \$dlpath`~
14758: test -d \$dldir || mkdir -p \$dldir~
14759: $install_prog $dir/$dlname \$dldir/$dlname~
14760: chmod a+x \$dldir/$dlname~
14761: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14762: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14763: fi'
14764: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14765: dlpath=$dir/\$dldll~
14766: $RM \$dlpath'
14767: shlibpath_overrides_runpath=yes
14768:
14769: case $host_os in
14770: cygwin*)
14771: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14772: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14773:
14774: ;;
14775: mingw* | cegcc*)
14776: # MinGW DLLs use traditional 'lib' prefix
14777: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14778: ;;
14779: pw32*)
14780: # pw32 DLLs use 'pw' prefix rather than 'lib'
14781: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14782: ;;
14783: esac
14784: dynamic_linker='Win32 ld.exe'
14785: ;;
14786:
14787: *,cl*)
14788: # Native MSVC
14789: libname_spec='$name'
14790: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14791: library_names_spec='${libname}.dll.lib'
14792:
14793: case $build_os in
14794: mingw*)
14795: sys_lib_search_path_spec=
14796: lt_save_ifs=$IFS
14797: IFS=';'
14798: for lt_path in $LIB
14799: do
14800: IFS=$lt_save_ifs
14801: # Let DOS variable expansion print the short 8.3 style file name.
14802: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14803: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14804: done
14805: IFS=$lt_save_ifs
14806: # Convert to MSYS style.
14807: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14808: ;;
14809: cygwin*)
14810: # Convert to unix form, then to dos form, then back to unix form
14811: # but this time dos style (no spaces!) so that the unix form looks
14812: # like /cygdrive/c/PROGRA~1:/cygdr...
14813: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14814: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14815: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14816: ;;
14817: *)
14818: sys_lib_search_path_spec="$LIB"
14819: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14820: # It is most probably a Windows format PATH.
14821: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14822: else
14823: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14824: fi
14825: # FIXME: find the short name or the path components, as spaces are
14826: # common. (e.g. "Program Files" -> "PROGRA~1")
14827: ;;
14828: esac
14829:
14830: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14831: postinstall_cmds='base_file=`basename \${file}`~
14832: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14833: dldir=$destdir/`dirname \$dlpath`~
14834: test -d \$dldir || mkdir -p \$dldir~
14835: $install_prog $dir/$dlname \$dldir/$dlname'
14836: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14837: dlpath=$dir/\$dldll~
14838: $RM \$dlpath'
14839: shlibpath_overrides_runpath=yes
14840: dynamic_linker='Win32 link.exe'
14841: ;;
14842:
14843: *)
14844: # Assume MSVC wrapper
14845: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14846: dynamic_linker='Win32 ld.exe'
14847: ;;
14848: esac
14849: # FIXME: first we should search . and the directory the executable is in
14850: shlibpath_var=PATH
14851: ;;
14852:
14853: darwin* | rhapsody*)
14854: dynamic_linker="$host_os dyld"
14855: version_type=darwin
14856: need_lib_prefix=no
14857: need_version=no
14858: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14859: soname_spec='${libname}${release}${major}$shared_ext'
14860: shlibpath_overrides_runpath=yes
14861: shlibpath_var=DYLD_LIBRARY_PATH
14862: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14863:
14864: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14865: ;;
14866:
14867: dgux*)
14868: version_type=linux # correct to gnu/linux during the next big refactor
14869: need_lib_prefix=no
14870: need_version=no
14871: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14872: soname_spec='${libname}${release}${shared_ext}$major'
14873: shlibpath_var=LD_LIBRARY_PATH
14874: ;;
14875:
14876: freebsd* | dragonfly*)
14877: # DragonFly does not have aout. When/if they implement a new
14878: # versioning mechanism, adjust this.
14879: if test -x /usr/bin/objformat; then
14880: objformat=`/usr/bin/objformat`
14881: else
14882: case $host_os in
14883: freebsd[23].*) objformat=aout ;;
14884: *) objformat=elf ;;
14885: esac
14886: fi
14887: version_type=freebsd-$objformat
14888: case $version_type in
14889: freebsd-elf*)
14890: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14891: need_version=no
14892: need_lib_prefix=no
14893: ;;
14894: freebsd-*)
14895: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14896: need_version=yes
14897: ;;
14898: esac
14899: shlibpath_var=LD_LIBRARY_PATH
14900: case $host_os in
14901: freebsd2.*)
14902: shlibpath_overrides_runpath=yes
14903: ;;
14904: freebsd3.[01]* | freebsdelf3.[01]*)
14905: shlibpath_overrides_runpath=yes
14906: hardcode_into_libs=yes
14907: ;;
14908: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14909: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14910: shlibpath_overrides_runpath=no
14911: hardcode_into_libs=yes
14912: ;;
14913: *) # from 4.6 on, and DragonFly
14914: shlibpath_overrides_runpath=yes
14915: hardcode_into_libs=yes
14916: ;;
14917: esac
14918: ;;
14919:
14920: gnu*)
14921: version_type=linux # correct to gnu/linux during the next big refactor
14922: need_lib_prefix=no
14923: need_version=no
14924: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14925: soname_spec='${libname}${release}${shared_ext}$major'
14926: shlibpath_var=LD_LIBRARY_PATH
14927: shlibpath_overrides_runpath=no
14928: hardcode_into_libs=yes
14929: ;;
14930:
14931: haiku*)
14932: version_type=linux # correct to gnu/linux during the next big refactor
14933: need_lib_prefix=no
14934: need_version=no
14935: dynamic_linker="$host_os runtime_loader"
14936: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14937: soname_spec='${libname}${release}${shared_ext}$major'
14938: shlibpath_var=LIBRARY_PATH
14939: shlibpath_overrides_runpath=yes
14940: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14941: hardcode_into_libs=yes
14942: ;;
14943:
14944: hpux9* | hpux10* | hpux11*)
14945: # Give a soname corresponding to the major version so that dld.sl refuses to
14946: # link against other versions.
14947: version_type=sunos
14948: need_lib_prefix=no
14949: need_version=no
14950: case $host_cpu in
14951: ia64*)
14952: shrext_cmds='.so'
14953: hardcode_into_libs=yes
14954: dynamic_linker="$host_os dld.so"
14955: shlibpath_var=LD_LIBRARY_PATH
14956: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14957: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958: soname_spec='${libname}${release}${shared_ext}$major'
14959: if test "X$HPUX_IA64_MODE" = X32; then
14960: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14961: else
14962: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14963: fi
14964: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14965: ;;
14966: hppa*64*)
14967: shrext_cmds='.sl'
14968: hardcode_into_libs=yes
14969: dynamic_linker="$host_os dld.sl"
14970: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14971: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14972: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973: soname_spec='${libname}${release}${shared_ext}$major'
14974: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14975: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14976: ;;
14977: *)
14978: shrext_cmds='.sl'
14979: dynamic_linker="$host_os dld.sl"
14980: shlibpath_var=SHLIB_PATH
14981: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14982: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14983: soname_spec='${libname}${release}${shared_ext}$major'
14984: ;;
14985: esac
14986: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14987: postinstall_cmds='chmod 555 $lib'
14988: # or fails outright, so override atomically:
14989: install_override_mode=555
14990: ;;
14991:
14992: interix[3-9]*)
14993: version_type=linux # correct to gnu/linux during the next big refactor
14994: need_lib_prefix=no
14995: need_version=no
14996: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14997: soname_spec='${libname}${release}${shared_ext}$major'
14998: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14999: shlibpath_var=LD_LIBRARY_PATH
15000: shlibpath_overrides_runpath=no
15001: hardcode_into_libs=yes
15002: ;;
15003:
15004: irix5* | irix6* | nonstopux*)
15005: case $host_os in
15006: nonstopux*) version_type=nonstopux ;;
15007: *)
15008: if test "$lt_cv_prog_gnu_ld" = yes; then
15009: version_type=linux # correct to gnu/linux during the next big refactor
15010: else
15011: version_type=irix
15012: fi ;;
15013: esac
15014: need_lib_prefix=no
15015: need_version=no
15016: soname_spec='${libname}${release}${shared_ext}$major'
15017: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15018: case $host_os in
15019: irix5* | nonstopux*)
15020: libsuff= shlibsuff=
15021: ;;
15022: *)
15023: case $LD in # libtool.m4 will add one of these switches to LD
15024: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15025: libsuff= shlibsuff= libmagic=32-bit;;
15026: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15027: libsuff=32 shlibsuff=N32 libmagic=N32;;
15028: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15029: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15030: *) libsuff= shlibsuff= libmagic=never-match;;
15031: esac
15032: ;;
15033: esac
15034: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15035: shlibpath_overrides_runpath=no
15036: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15037: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15038: hardcode_into_libs=yes
15039: ;;
15040:
15041: # No shared lib support for Linux oldld, aout, or coff.
15042: linux*oldld* | linux*aout* | linux*coff*)
15043: dynamic_linker=no
15044: ;;
15045:
15046: # This must be glibc/ELF.
15047: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15048: version_type=linux # correct to gnu/linux during the next big refactor
15049: need_lib_prefix=no
15050: need_version=no
15051: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052: soname_spec='${libname}${release}${shared_ext}$major'
15053: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15054: shlibpath_var=LD_LIBRARY_PATH
15055: shlibpath_overrides_runpath=no
15056:
15057: # Some binutils ld are patched to set DT_RUNPATH
1.43 moko 15058: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15059: $as_echo_n "(cached) " >&6
1.35 moko 15060: else
15061: lt_cv_shlibpath_overrides_runpath=no
15062: save_LDFLAGS=$LDFLAGS
15063: save_libdir=$libdir
15064: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15065: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.43 moko 15066: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 15067: /* end confdefs.h. */
15068:
15069: int
15070: main ()
15071: {
15072:
15073: ;
15074: return 0;
15075: }
15076: _ACEOF
1.43 moko 15077: if ac_fn_cxx_try_link "$LINENO"; then :
15078: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.35 moko 15079: lt_cv_shlibpath_overrides_runpath=yes
15080: fi
15081: fi
1.43 moko 15082: rm -f core conftest.err conftest.$ac_objext \
15083: conftest$ac_exeext conftest.$ac_ext
1.35 moko 15084: LDFLAGS=$save_LDFLAGS
15085: libdir=$save_libdir
15086:
15087: fi
15088:
15089: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15090:
15091: # This implies no fast_install, which is unacceptable.
15092: # Some rework will be needed to allow for fast_install
15093: # before this can be enabled.
15094: hardcode_into_libs=yes
15095:
15096: # Append ld.so.conf contents to the search path
15097: if test -f /etc/ld.so.conf; then
15098: 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' ' '`
15099: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15100: fi
15101:
15102: # We used to test for /lib/ld.so.1 and disable shared libraries on
15103: # powerpc, because MkLinux only supported shared libraries with the
15104: # GNU dynamic linker. Since this was broken with cross compilers,
15105: # most powerpc-linux boxes support dynamic linking these days and
15106: # people can always --disable-shared, the test was removed, and we
15107: # assume the GNU/Linux dynamic linker is in use.
15108: dynamic_linker='GNU/Linux ld.so'
15109: ;;
15110:
15111: netbsd*)
15112: version_type=sunos
15113: need_lib_prefix=no
15114: need_version=no
15115: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15116: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15117: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15118: dynamic_linker='NetBSD (a.out) ld.so'
15119: else
15120: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15121: soname_spec='${libname}${release}${shared_ext}$major'
15122: dynamic_linker='NetBSD ld.elf_so'
15123: fi
15124: shlibpath_var=LD_LIBRARY_PATH
15125: shlibpath_overrides_runpath=yes
15126: hardcode_into_libs=yes
15127: ;;
15128:
15129: newsos6)
15130: version_type=linux # correct to gnu/linux during the next big refactor
15131: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15132: shlibpath_var=LD_LIBRARY_PATH
15133: shlibpath_overrides_runpath=yes
15134: ;;
15135:
15136: *nto* | *qnx*)
15137: version_type=qnx
15138: need_lib_prefix=no
15139: need_version=no
15140: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15141: soname_spec='${libname}${release}${shared_ext}$major'
15142: shlibpath_var=LD_LIBRARY_PATH
15143: shlibpath_overrides_runpath=no
15144: hardcode_into_libs=yes
15145: dynamic_linker='ldqnx.so'
15146: ;;
15147:
15148: openbsd*)
15149: version_type=sunos
15150: sys_lib_dlsearch_path_spec="/usr/lib"
15151: need_lib_prefix=no
15152: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15153: case $host_os in
15154: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15155: *) need_version=no ;;
15156: esac
15157: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15158: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15159: shlibpath_var=LD_LIBRARY_PATH
15160: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15161: case $host_os in
15162: openbsd2.[89] | openbsd2.[89].*)
15163: shlibpath_overrides_runpath=no
15164: ;;
15165: *)
15166: shlibpath_overrides_runpath=yes
15167: ;;
15168: esac
15169: else
15170: shlibpath_overrides_runpath=yes
15171: fi
15172: ;;
15173:
15174: os2*)
15175: libname_spec='$name'
15176: shrext_cmds=".dll"
15177: need_lib_prefix=no
15178: library_names_spec='$libname${shared_ext} $libname.a'
15179: dynamic_linker='OS/2 ld.exe'
15180: shlibpath_var=LIBPATH
15181: ;;
15182:
15183: osf3* | osf4* | osf5*)
15184: version_type=osf
15185: need_lib_prefix=no
15186: need_version=no
15187: soname_spec='${libname}${release}${shared_ext}$major'
15188: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189: shlibpath_var=LD_LIBRARY_PATH
15190: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15191: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15192: ;;
15193:
15194: rdos*)
15195: dynamic_linker=no
15196: ;;
15197:
15198: solaris*)
15199: version_type=linux # correct to gnu/linux during the next big refactor
15200: need_lib_prefix=no
15201: need_version=no
15202: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203: soname_spec='${libname}${release}${shared_ext}$major'
15204: shlibpath_var=LD_LIBRARY_PATH
15205: shlibpath_overrides_runpath=yes
15206: hardcode_into_libs=yes
15207: # ldd complains unless libraries are executable
15208: postinstall_cmds='chmod +x $lib'
15209: ;;
15210:
15211: sunos4*)
15212: version_type=sunos
15213: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15214: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15215: shlibpath_var=LD_LIBRARY_PATH
15216: shlibpath_overrides_runpath=yes
15217: if test "$with_gnu_ld" = yes; then
15218: need_lib_prefix=no
15219: fi
15220: need_version=yes
15221: ;;
15222:
15223: sysv4 | sysv4.3*)
15224: version_type=linux # correct to gnu/linux during the next big refactor
15225: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226: soname_spec='${libname}${release}${shared_ext}$major'
15227: shlibpath_var=LD_LIBRARY_PATH
15228: case $host_vendor in
15229: sni)
15230: shlibpath_overrides_runpath=no
15231: need_lib_prefix=no
15232: runpath_var=LD_RUN_PATH
15233: ;;
15234: siemens)
15235: need_lib_prefix=no
15236: ;;
15237: motorola)
15238: need_lib_prefix=no
15239: need_version=no
15240: shlibpath_overrides_runpath=no
15241: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15242: ;;
15243: esac
15244: ;;
15245:
15246: sysv4*MP*)
15247: if test -d /usr/nec ;then
15248: version_type=linux # correct to gnu/linux during the next big refactor
15249: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15250: soname_spec='$libname${shared_ext}.$major'
15251: shlibpath_var=LD_LIBRARY_PATH
15252: fi
15253: ;;
15254:
15255: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15256: version_type=freebsd-elf
15257: need_lib_prefix=no
15258: need_version=no
15259: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15260: soname_spec='${libname}${release}${shared_ext}$major'
15261: shlibpath_var=LD_LIBRARY_PATH
15262: shlibpath_overrides_runpath=yes
15263: hardcode_into_libs=yes
15264: if test "$with_gnu_ld" = yes; then
15265: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15266: else
15267: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15268: case $host_os in
15269: sco3.2v5*)
15270: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15271: ;;
15272: esac
15273: fi
15274: sys_lib_dlsearch_path_spec='/usr/lib'
15275: ;;
15276:
15277: tpf*)
15278: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15279: version_type=linux # correct to gnu/linux during the next big refactor
15280: need_lib_prefix=no
15281: need_version=no
15282: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283: shlibpath_var=LD_LIBRARY_PATH
15284: shlibpath_overrides_runpath=no
15285: hardcode_into_libs=yes
15286: ;;
15287:
15288: uts4*)
15289: version_type=linux # correct to gnu/linux during the next big refactor
15290: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291: soname_spec='${libname}${release}${shared_ext}$major'
15292: shlibpath_var=LD_LIBRARY_PATH
15293: ;;
15294:
15295: *)
15296: dynamic_linker=no
15297: ;;
15298: esac
1.43 moko 15299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15300: $as_echo "$dynamic_linker" >&6; }
1.35 moko 15301: test "$dynamic_linker" = no && can_build_shared=no
15302:
15303: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15304: if test "$GCC" = yes; then
15305: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15306: fi
15307:
15308: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15309: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15310: fi
15311: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15312: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15313: fi
15314:
15315:
15316:
15317:
15318:
15319:
15320:
15321:
15322:
15323:
15324:
15325:
15326:
15327:
15328:
15329:
15330:
15331:
15332:
15333:
15334:
15335:
15336:
15337:
15338:
15339:
15340:
15341:
15342:
15343:
15344:
15345:
15346:
15347:
15348:
15349:
15350:
15351:
1.43 moko 15352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15353: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.35 moko 15354: hardcode_action_CXX=
15355: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15356: test -n "$runpath_var_CXX" ||
15357: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15358:
15359: # We can hardcode non-existent directories.
15360: if test "$hardcode_direct_CXX" != no &&
15361: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15362: # have to relink, otherwise we might link with an installed library
15363: # when we should be linking with a yet-to-be-installed one
15364: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15365: test "$hardcode_minus_L_CXX" != no; then
15366: # Linking always hardcodes the temporary library directory.
15367: hardcode_action_CXX=relink
15368: else
15369: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15370: hardcode_action_CXX=immediate
15371: fi
15372: else
15373: # We cannot hardcode anything, or else we can only hardcode existing
15374: # directories.
15375: hardcode_action_CXX=unsupported
15376: fi
1.43 moko 15377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15378: $as_echo "$hardcode_action_CXX" >&6; }
1.35 moko 15379:
15380: if test "$hardcode_action_CXX" = relink ||
15381: test "$inherit_rpath_CXX" = yes; then
15382: # Fast installation is not supported
15383: enable_fast_install=no
15384: elif test "$shlibpath_overrides_runpath" = yes ||
15385: test "$enable_shared" = no; then
15386: # Fast installation is not necessary
15387: enable_fast_install=needless
15388: fi
15389:
15390:
15391:
15392:
15393:
15394:
15395:
15396: fi # test -n "$compiler"
15397:
15398: CC=$lt_save_CC
15399: CFLAGS=$lt_save_CFLAGS
15400: LDCXX=$LD
15401: LD=$lt_save_LD
15402: GCC=$lt_save_GCC
15403: with_gnu_ld=$lt_save_with_gnu_ld
15404: lt_cv_path_LDCXX=$lt_cv_path_LD
15405: lt_cv_path_LD=$lt_save_path_LD
15406: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15407: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15408: fi # test "$_lt_caught_CXX_error" != yes
15409:
15410: ac_ext=c
15411: ac_cpp='$CPP $CPPFLAGS'
15412: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15413: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15414: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15415:
15416:
15417:
15418:
15419:
15420:
15421:
15422:
15423:
15424:
15425:
15426:
15427:
15428:
15429:
1.43 moko 15430: ac_config_commands="$ac_config_commands libtool"
1.35 moko 15431:
15432:
15433:
15434:
15435: # Only expand once:
15436:
15437:
1.43 moko 15438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15439: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15440: if ${libltdl_cv_shlibext+:} false; then :
15441: $as_echo_n "(cached) " >&6
1.35 moko 15442: else
15443:
15444: module=yes
15445: eval libltdl_cv_shlibext=$shrext_cmds
15446: module=no
15447: eval libltdl_cv_shrext=$shrext_cmds
15448:
15449: fi
1.43 moko 15450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15451: $as_echo "$libltdl_cv_shlibext" >&6; }
1.35 moko 15452: if test -n "$libltdl_cv_shlibext"; then
15453:
15454: cat >>confdefs.h <<_ACEOF
15455: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15456: _ACEOF
15457:
15458: fi
15459: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15460:
15461: cat >>confdefs.h <<_ACEOF
15462: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15463: _ACEOF
15464:
15465: fi
15466:
1.43 moko 15467: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15468: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15469: if ${lt_cv_module_path_var+:} false; then :
15470: $as_echo_n "(cached) " >&6
1.35 moko 15471: else
15472: lt_cv_module_path_var="$shlibpath_var"
15473: fi
1.43 moko 15474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15475: $as_echo "$lt_cv_module_path_var" >&6; }
1.35 moko 15476: if test -n "$lt_cv_module_path_var"; then
15477:
15478: cat >>confdefs.h <<_ACEOF
15479: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15480: _ACEOF
15481:
15482: fi
15483:
1.43 moko 15484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15485: $as_echo_n "checking for the default library search path... " >&6; }
15486: if ${lt_cv_sys_dlsearch_path+:} false; then :
15487: $as_echo_n "(cached) " >&6
1.35 moko 15488: else
15489: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15490: fi
1.43 moko 15491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15492: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.35 moko 15493: if test -n "$lt_cv_sys_dlsearch_path"; then
15494: sys_dlsearch_path=
15495: for dir in $lt_cv_sys_dlsearch_path; do
15496: if test -z "$sys_dlsearch_path"; then
15497: sys_dlsearch_path="$dir"
15498: else
15499: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15500: fi
15501: done
15502:
15503: cat >>confdefs.h <<_ACEOF
15504: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15505: _ACEOF
15506:
15507: fi
15508:
15509:
15510: LT_DLLOADERS=
15511:
15512:
15513: ac_ext=c
15514: ac_cpp='$CPP $CPPFLAGS'
15515: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15516: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15517: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15518:
15519:
15520: LIBADD_DLOPEN=
1.43 moko 15521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15522: $as_echo_n "checking for library containing dlopen... " >&6; }
15523: if ${ac_cv_search_dlopen+:} false; then :
15524: $as_echo_n "(cached) " >&6
1.35 moko 15525: else
15526: ac_func_search_save_LIBS=$LIBS
1.43 moko 15527: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 15528: /* end confdefs.h. */
15529:
1.43 moko 15530: /* Override any GCC internal prototype to avoid an error.
15531: Use char because int might match the return type of a GCC
15532: builtin and then its argument prototype would still apply. */
1.35 moko 15533: #ifdef __cplusplus
15534: extern "C"
15535: #endif
15536: char dlopen ();
15537: int
15538: main ()
15539: {
1.43 moko 15540: return dlopen ();
1.35 moko 15541: ;
15542: return 0;
15543: }
15544: _ACEOF
1.43 moko 15545: for ac_lib in '' dl; do
15546: if test -z "$ac_lib"; then
15547: ac_res="none required"
15548: else
15549: ac_res=-l$ac_lib
15550: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15551: fi
15552: if ac_fn_c_try_link "$LINENO"; then :
15553: ac_cv_search_dlopen=$ac_res
15554: fi
15555: rm -f core conftest.err conftest.$ac_objext \
15556: conftest$ac_exeext
15557: if ${ac_cv_search_dlopen+:} false; then :
15558: break
1.35 moko 15559: fi
1.43 moko 15560: done
15561: if ${ac_cv_search_dlopen+:} false; then :
1.35 moko 15562:
15563: else
1.43 moko 15564: ac_cv_search_dlopen=no
1.35 moko 15565: fi
1.43 moko 15566: rm conftest.$ac_ext
1.35 moko 15567: LIBS=$ac_func_search_save_LIBS
15568: fi
1.43 moko 15569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15570: $as_echo "$ac_cv_search_dlopen" >&6; }
15571: ac_res=$ac_cv_search_dlopen
15572: if test "$ac_res" != no; then :
15573: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.35 moko 15574:
1.43 moko 15575: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.35 moko 15576:
15577: if test "$ac_cv_search_dlopen" != "none required" ; then
15578: LIBADD_DLOPEN="-ldl"
15579: fi
15580: libltdl_cv_lib_dl_dlopen="yes"
15581: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15582: else
1.43 moko 15583: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 15584: /* end confdefs.h. */
15585: #if HAVE_DLFCN_H
15586: # include <dlfcn.h>
15587: #endif
15588:
15589: int
15590: main ()
15591: {
15592: dlopen(0, 0);
15593: ;
15594: return 0;
15595: }
15596: _ACEOF
1.43 moko 15597: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 15598:
1.43 moko 15599: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.35 moko 15600:
15601: libltdl_cv_func_dlopen="yes"
15602: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15603: else
1.43 moko 15604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15605: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15606: if ${ac_cv_lib_svld_dlopen+:} false; then :
15607: $as_echo_n "(cached) " >&6
1.35 moko 15608: else
15609: ac_check_lib_save_LIBS=$LIBS
15610: LIBS="-lsvld $LIBS"
1.43 moko 15611: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 15612: /* end confdefs.h. */
15613:
1.43 moko 15614: /* Override any GCC internal prototype to avoid an error.
15615: Use char because int might match the return type of a GCC
1.35 moko 15616: builtin and then its argument prototype would still apply. */
15617: #ifdef __cplusplus
1.43 moko 15618: extern "C"
1.35 moko 15619: #endif
1.43 moko 15620: char dlopen ();
1.35 moko 15621: int
15622: main ()
15623: {
1.43 moko 15624: return dlopen ();
1.35 moko 15625: ;
15626: return 0;
15627: }
15628: _ACEOF
1.43 moko 15629: if ac_fn_c_try_link "$LINENO"; then :
15630: ac_cv_lib_svld_dlopen=yes
1.35 moko 15631: else
1.43 moko 15632: ac_cv_lib_svld_dlopen=no
15633: fi
15634: rm -f core conftest.err conftest.$ac_objext \
15635: conftest$ac_exeext conftest.$ac_ext
15636: LIBS=$ac_check_lib_save_LIBS
15637: fi
15638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15639: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15640: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15641:
15642: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15643:
15644: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15645: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15646: fi
1.35 moko 15647:
15648: fi
1.43 moko 15649: rm -f core conftest.err conftest.$ac_objext \
15650: conftest$ac_exeext conftest.$ac_ext
1.35 moko 15651: fi
1.43 moko 15652:
15653: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15654: then
15655: lt_save_LIBS="$LIBS"
15656: LIBS="$LIBS $LIBADD_DLOPEN"
15657: for ac_func in dlerror
15658: do :
15659: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
15660: if test "x$ac_cv_func_dlerror" = xyes; then :
1.35 moko 15661: cat >>confdefs.h <<_ACEOF
1.43 moko 15662: #define HAVE_DLERROR 1
1.35 moko 15663: _ACEOF
15664:
15665: fi
15666: done
15667:
15668: LIBS="$lt_save_LIBS"
15669: fi
15670:
15671:
15672: LIBADD_SHL_LOAD=
1.43 moko 15673: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15674: if test "x$ac_cv_func_shl_load" = xyes; then :
1.35 moko 15675:
1.43 moko 15676: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.35 moko 15677:
15678: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15679: else
1.43 moko 15680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15681: $as_echo_n "checking for shl_load in -ldld... " >&6; }
15682: if ${ac_cv_lib_dld_shl_load+:} false; then :
15683: $as_echo_n "(cached) " >&6
1.35 moko 15684: else
15685: ac_check_lib_save_LIBS=$LIBS
15686: LIBS="-ldld $LIBS"
1.43 moko 15687: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 15688: /* end confdefs.h. */
15689:
1.43 moko 15690: /* Override any GCC internal prototype to avoid an error.
15691: Use char because int might match the return type of a GCC
15692: builtin and then its argument prototype would still apply. */
1.35 moko 15693: #ifdef __cplusplus
15694: extern "C"
15695: #endif
15696: char shl_load ();
15697: int
15698: main ()
15699: {
1.43 moko 15700: return shl_load ();
1.35 moko 15701: ;
15702: return 0;
15703: }
15704: _ACEOF
1.43 moko 15705: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 15706: ac_cv_lib_dld_shl_load=yes
15707: else
1.43 moko 15708: ac_cv_lib_dld_shl_load=no
1.35 moko 15709: fi
1.43 moko 15710: rm -f core conftest.err conftest.$ac_objext \
15711: conftest$ac_exeext conftest.$ac_ext
1.35 moko 15712: LIBS=$ac_check_lib_save_LIBS
15713: fi
1.43 moko 15714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15715: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15716: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.35 moko 15717:
1.43 moko 15718: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.35 moko 15719:
15720: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15721: LIBADD_SHL_LOAD="-ldld"
15722: fi
15723:
15724: fi
15725:
15726:
15727:
15728: case $host_os in
15729: darwin[1567].*)
15730: # We only want this for pre-Mac OS X 10.4.
1.43 moko 15731: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
15732: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
1.35 moko 15733:
1.43 moko 15734: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.35 moko 15735:
15736: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15737: fi
15738:
15739: ;;
15740: beos*)
15741: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15742: ;;
15743: cygwin* | mingw* | os2* | pw32*)
1.43 moko 15744: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
15745: "
15746: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
15747: ac_have_decl=1
1.35 moko 15748: else
1.43 moko 15749: ac_have_decl=0
1.35 moko 15750: fi
15751:
15752: cat >>confdefs.h <<_ACEOF
1.43 moko 15753: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.35 moko 15754: _ACEOF
15755:
15756: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15757: ;;
15758: esac
15759:
1.43 moko 15760: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15761: $as_echo_n "checking for dld_link in -ldld... " >&6; }
15762: if ${ac_cv_lib_dld_dld_link+:} false; then :
15763: $as_echo_n "(cached) " >&6
1.35 moko 15764: else
15765: ac_check_lib_save_LIBS=$LIBS
15766: LIBS="-ldld $LIBS"
1.43 moko 15767: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 15768: /* end confdefs.h. */
15769:
1.43 moko 15770: /* Override any GCC internal prototype to avoid an error.
15771: Use char because int might match the return type of a GCC
15772: builtin and then its argument prototype would still apply. */
1.35 moko 15773: #ifdef __cplusplus
15774: extern "C"
15775: #endif
15776: char dld_link ();
15777: int
15778: main ()
15779: {
1.43 moko 15780: return dld_link ();
1.35 moko 15781: ;
15782: return 0;
15783: }
15784: _ACEOF
1.43 moko 15785: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 15786: ac_cv_lib_dld_dld_link=yes
15787: else
1.43 moko 15788: ac_cv_lib_dld_dld_link=no
1.35 moko 15789: fi
1.43 moko 15790: rm -f core conftest.err conftest.$ac_objext \
15791: conftest$ac_exeext conftest.$ac_ext
1.35 moko 15792: LIBS=$ac_check_lib_save_LIBS
15793: fi
1.43 moko 15794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15795: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15796: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.35 moko 15797:
1.43 moko 15798: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.35 moko 15799:
15800: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15801: fi
15802:
15803:
15804:
15805:
15806: LT_DLPREOPEN=
15807: if test -n "$LT_DLLOADERS"
15808: then
15809: for lt_loader in $LT_DLLOADERS; do
15810: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15811: done
15812:
1.43 moko 15813: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.35 moko 15814:
15815: fi
15816:
15817:
15818: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15819:
15820:
15821: ac_ext=c
15822: ac_cpp='$CPP $CPPFLAGS'
15823: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15824: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15825: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15826:
15827:
1.43 moko 15828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15829: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15830: if ${lt_cv_sys_symbol_underscore+:} false; then :
15831: $as_echo_n "(cached) " >&6
1.35 moko 15832: else
15833: lt_cv_sys_symbol_underscore=no
15834: cat > conftest.$ac_ext <<_LT_EOF
15835: void nm_test_func(){}
15836: int main(){nm_test_func;return 0;}
15837: _LT_EOF
1.43 moko 15838: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.35 moko 15839: (eval $ac_compile) 2>&5
15840: ac_status=$?
1.43 moko 15841: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15842: test $ac_status = 0; }; then
1.35 moko 15843: # Now try to grab the symbols.
15844: ac_nlist=conftest.nm
1.43 moko 15845: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.35 moko 15846: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15847: ac_status=$?
1.43 moko 15848: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15849: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.35 moko 15850: # See whether the symbols have a leading underscore.
15851: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15852: lt_cv_sys_symbol_underscore=yes
15853: else
15854: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15855: :
15856: else
15857: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15858: fi
15859: fi
15860: else
15861: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15862: fi
15863: else
15864: echo "configure: failed program was:" >&5
15865: cat conftest.c >&5
15866: fi
15867: rm -rf conftest*
15868:
15869: fi
1.43 moko 15870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
15871: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.35 moko 15872: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15873:
15874:
15875: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15876: if test x"$libltdl_cv_func_dlopen" = xyes ||
15877: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.43 moko 15878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
15879: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
15880: if ${libltdl_cv_need_uscore+:} false; then :
15881: $as_echo_n "(cached) " >&6
1.35 moko 15882: else
15883: libltdl_cv_need_uscore=unknown
15884: save_LIBS="$LIBS"
15885: LIBS="$LIBS $LIBADD_DLOPEN"
15886: if test "$cross_compiling" = yes; then :
15887: libltdl_cv_need_uscore=cross
15888: else
15889: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15890: lt_status=$lt_dlunknown
15891: cat > conftest.$ac_ext <<_LT_EOF
15892: #line $LINENO "configure"
15893: #include "confdefs.h"
15894:
15895: #if HAVE_DLFCN_H
15896: #include <dlfcn.h>
15897: #endif
15898:
15899: #include <stdio.h>
15900:
15901: #ifdef RTLD_GLOBAL
15902: # define LT_DLGLOBAL RTLD_GLOBAL
15903: #else
15904: # ifdef DL_GLOBAL
15905: # define LT_DLGLOBAL DL_GLOBAL
15906: # else
15907: # define LT_DLGLOBAL 0
15908: # endif
15909: #endif
15910:
15911: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15912: find out it does not work in some platform. */
15913: #ifndef LT_DLLAZY_OR_NOW
15914: # ifdef RTLD_LAZY
15915: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15916: # else
15917: # ifdef DL_LAZY
15918: # define LT_DLLAZY_OR_NOW DL_LAZY
15919: # else
15920: # ifdef RTLD_NOW
15921: # define LT_DLLAZY_OR_NOW RTLD_NOW
15922: # else
15923: # ifdef DL_NOW
15924: # define LT_DLLAZY_OR_NOW DL_NOW
15925: # else
15926: # define LT_DLLAZY_OR_NOW 0
15927: # endif
15928: # endif
15929: # endif
15930: # endif
15931: #endif
15932:
15933: /* When -fvisbility=hidden is used, assume the code has been annotated
15934: correspondingly for the symbols needed. */
15935: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15936: int fnord () __attribute__((visibility("default")));
15937: #endif
15938:
15939: int fnord () { return 42; }
15940: int main ()
15941: {
15942: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15943: int status = $lt_dlunknown;
15944:
15945: if (self)
15946: {
15947: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15948: else
15949: {
15950: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15951: else puts (dlerror ());
15952: }
15953: /* dlclose (self); */
15954: }
15955: else
15956: puts (dlerror ());
15957:
15958: return status;
15959: }
15960: _LT_EOF
1.43 moko 15961: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.35 moko 15962: (eval $ac_link) 2>&5
15963: ac_status=$?
1.43 moko 15964: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15965: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.35 moko 15966: (./conftest; exit; ) >&5 2>/dev/null
15967: lt_status=$?
15968: case x$lt_status in
15969: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15970: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15971: x$lt_dlunknown|x*) ;;
15972: esac
15973: else :
15974: # compilation failed
15975:
15976: fi
15977: fi
15978: rm -fr conftest*
15979:
15980: LIBS="$save_LIBS"
15981:
15982: fi
1.43 moko 15983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
15984: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.35 moko 15985: fi
15986: fi
15987:
15988: if test x"$libltdl_cv_need_uscore" = xyes; then
15989:
1.43 moko 15990: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.35 moko 15991:
15992: fi
15993:
1.43 moko 15994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
15995: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
15996: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
15997: $as_echo_n "(cached) " >&6
1.35 moko 15998: else
15999: # PORTME does your system automatically load deplibs for dlopen?
16000: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16001: # For now, we just catch OSes we know something about -- in the
16002: # future, we'll try test this programmatically.
16003: lt_cv_sys_dlopen_deplibs=unknown
16004: case $host_os in
16005: aix3*|aix4.1.*|aix4.2.*)
16006: # Unknown whether this is true for these versions of AIX, but
16007: # we want this `case' here to explicitly catch those versions.
16008: lt_cv_sys_dlopen_deplibs=unknown
16009: ;;
16010: aix[4-9]*)
16011: lt_cv_sys_dlopen_deplibs=yes
16012: ;;
16013: amigaos*)
16014: case $host_cpu in
16015: powerpc)
16016: lt_cv_sys_dlopen_deplibs=no
16017: ;;
16018: esac
16019: ;;
16020: darwin*)
16021: # Assuming the user has installed a libdl from somewhere, this is true
16022: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16023: lt_cv_sys_dlopen_deplibs=yes
16024: ;;
16025: freebsd* | dragonfly*)
16026: lt_cv_sys_dlopen_deplibs=yes
16027: ;;
16028: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16029: # GNU and its variants, using gnu ld.so (Glibc)
16030: lt_cv_sys_dlopen_deplibs=yes
16031: ;;
16032: hpux10*|hpux11*)
16033: lt_cv_sys_dlopen_deplibs=yes
16034: ;;
16035: interix*)
16036: lt_cv_sys_dlopen_deplibs=yes
16037: ;;
16038: irix[12345]*|irix6.[01]*)
16039: # Catch all versions of IRIX before 6.2, and indicate that we don't
16040: # know how it worked for any of those versions.
16041: lt_cv_sys_dlopen_deplibs=unknown
16042: ;;
16043: irix*)
16044: # The case above catches anything before 6.2, and it's known that
16045: # at 6.2 and later dlopen does load deplibs.
16046: lt_cv_sys_dlopen_deplibs=yes
16047: ;;
16048: netbsd*)
16049: lt_cv_sys_dlopen_deplibs=yes
16050: ;;
16051: openbsd*)
16052: lt_cv_sys_dlopen_deplibs=yes
16053: ;;
16054: osf[1234]*)
16055: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16056: # it did *not* use an RPATH in a shared library to find objects the
16057: # library depends on, so we explicitly say `no'.
16058: lt_cv_sys_dlopen_deplibs=no
16059: ;;
16060: osf5.0|osf5.0a|osf5.1)
16061: # dlopen *does* load deplibs and with the right loader patch applied
16062: # it even uses RPATH in a shared library to search for shared objects
16063: # that the library depends on, but there's no easy way to know if that
16064: # patch is installed. Since this is the case, all we can really
16065: # say is unknown -- it depends on the patch being installed. If
16066: # it is, this changes to `yes'. Without it, it would be `no'.
16067: lt_cv_sys_dlopen_deplibs=unknown
16068: ;;
16069: osf*)
16070: # the two cases above should catch all versions of osf <= 5.1. Read
16071: # the comments above for what we know about them.
16072: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16073: # is used to find them so we can finally say `yes'.
16074: lt_cv_sys_dlopen_deplibs=yes
16075: ;;
16076: qnx*)
16077: lt_cv_sys_dlopen_deplibs=yes
16078: ;;
16079: solaris*)
16080: lt_cv_sys_dlopen_deplibs=yes
16081: ;;
16082: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16083: libltdl_cv_sys_dlopen_deplibs=yes
16084: ;;
16085: esac
16086:
16087: fi
1.43 moko 16088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16089: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.35 moko 16090: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16091:
1.43 moko 16092: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.35 moko 16093:
16094: fi
16095:
16096: :
16097:
16098: for ac_header in argz.h
1.43 moko 16099: do :
16100: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16101: "
16102: if test "x$ac_cv_header_argz_h" = xyes; then :
1.35 moko 16103: cat >>confdefs.h <<_ACEOF
1.43 moko 16104: #define HAVE_ARGZ_H 1
1.35 moko 16105: _ACEOF
16106:
16107: fi
16108:
16109: done
16110:
16111:
1.43 moko 16112: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
16113: # include <argz.h>
1.35 moko 16114: #endif
1.43 moko 16115: "
16116: if test "x$ac_cv_type_error_t" = xyes; then :
1.35 moko 16117:
1.43 moko 16118: cat >>confdefs.h <<_ACEOF
16119: #define HAVE_ERROR_T 1
1.35 moko 16120: _ACEOF
1.43 moko 16121:
16122:
1.35 moko 16123: else
16124:
1.43 moko 16125: $as_echo "#define error_t int" >>confdefs.h
16126:
16127:
16128: $as_echo "#define __error_t_defined 1" >>confdefs.h
16129:
1.35 moko 16130: fi
1.43 moko 16131:
16132:
16133: ARGZ_H=
16134: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16135: argz_next argz_stringify
16136: do :
16137: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16138: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16139: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.35 moko 16140: cat >>confdefs.h <<_ACEOF
1.43 moko 16141: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.35 moko 16142: _ACEOF
16143:
16144: else
16145: ARGZ_H=argz.h;
16146:
16147: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16148:
16149: fi
16150: done
16151:
16152:
1.43 moko 16153: if test -z "$ARGZ_H"; then :
16154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16155: $as_echo_n "checking if argz actually works... " >&6; }
16156: if ${lt_cv_sys_argz_works+:} false; then :
16157: $as_echo_n "(cached) " >&6
1.35 moko 16158: else
16159: case $host_os in #(
16160: *cygwin*)
16161: lt_cv_sys_argz_works=no
16162: if test "$cross_compiling" != no; then
16163: lt_cv_sys_argz_works="guessing no"
16164: else
16165: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16166: save_IFS=$IFS
16167: IFS=-.
16168: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16169: IFS=$save_IFS
16170: lt_os_major=${2-0}
16171: lt_os_minor=${3-0}
16172: lt_os_micro=${4-0}
16173: if test "$lt_os_major" -gt 1 \
16174: || { test "$lt_os_major" -eq 1 \
16175: && { test "$lt_os_minor" -gt 5 \
16176: || { test "$lt_os_minor" -eq 5 \
16177: && test "$lt_os_micro" -gt 24; }; }; }; then
16178: lt_cv_sys_argz_works=yes
16179: fi
16180: fi
16181: ;; #(
16182: *) lt_cv_sys_argz_works=yes ;;
16183: esac
16184: fi
1.43 moko 16185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16186: $as_echo "$lt_cv_sys_argz_works" >&6; }
16187: if test "$lt_cv_sys_argz_works" = yes; then :
1.35 moko 16188:
1.43 moko 16189: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.35 moko 16190:
16191: else
16192: ARGZ_H=argz.h
16193:
16194:
16195: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16196:
16197: fi
16198: fi
16199:
16200:
16201:
1.43 moko 16202: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16203: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16204: if ${libltdl_cv_preloaded_symbols+:} false; then :
16205: $as_echo_n "(cached) " >&6
1.35 moko 16206: else
16207: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16208: libltdl_cv_preloaded_symbols=yes
16209: else
16210: libltdl_cv_preloaded_symbols=no
16211: fi
16212:
16213: fi
1.43 moko 16214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16215: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.35 moko 16216: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16217:
1.43 moko 16218: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.35 moko 16219:
16220: fi
16221:
1.43 moko 16222:
16223:
1.35 moko 16224: # Set options
16225:
16226:
16227:
16228:
16229:
16230:
16231:
16232:
16233:
16234:
16235:
16236:
1.43 moko 16237: # Check whether --with-included_ltdl was given.
16238: if test "${with_included_ltdl+set}" = set; then :
16239: withval=$with_included_ltdl;
16240: fi
1.35 moko 16241:
16242:
16243: if test "x$with_included_ltdl" != xyes; then
16244: # We are not being forced to use the included libltdl sources, so
16245: # decide whether there is a useful installed version we can use.
1.43 moko 16246: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.35 moko 16247:
1.43 moko 16248: "
16249: if test "x$ac_cv_header_ltdl_h" = xyes; then :
16250: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.35 moko 16251: #include <ltdl.h>
1.43 moko 16252: "
16253: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16255: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16256: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16257: $as_echo_n "(cached) " >&6
1.35 moko 16258: else
16259: ac_check_lib_save_LIBS=$LIBS
16260: LIBS="-lltdl $LIBS"
1.43 moko 16261: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.35 moko 16262: /* end confdefs.h. */
16263:
1.43 moko 16264: /* Override any GCC internal prototype to avoid an error.
16265: Use char because int might match the return type of a GCC
16266: builtin and then its argument prototype would still apply. */
1.35 moko 16267: #ifdef __cplusplus
16268: extern "C"
16269: #endif
16270: char lt_dladvise_preload ();
16271: int
16272: main ()
16273: {
1.43 moko 16274: return lt_dladvise_preload ();
1.35 moko 16275: ;
16276: return 0;
16277: }
16278: _ACEOF
1.43 moko 16279: if ac_fn_c_try_link "$LINENO"; then :
1.35 moko 16280: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16281: else
1.43 moko 16282: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.35 moko 16283: fi
1.43 moko 16284: rm -f core conftest.err conftest.$ac_objext \
16285: conftest$ac_exeext conftest.$ac_ext
1.35 moko 16286: LIBS=$ac_check_lib_save_LIBS
16287: fi
1.43 moko 16288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16289: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16290: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.35 moko 16291: with_included_ltdl=no
16292: else
16293: with_included_ltdl=yes
16294: fi
16295:
16296: else
16297: with_included_ltdl=yes
16298: fi
16299:
16300: else
16301: with_included_ltdl=yes
16302: fi
16303:
16304:
16305: fi
16306:
16307:
16308:
16309:
1.43 moko 16310: # Check whether --with-ltdl_include was given.
16311: if test "${with_ltdl_include+set}" = set; then :
16312: withval=$with_ltdl_include;
16313: fi
1.35 moko 16314:
16315:
16316: if test -n "$with_ltdl_include"; then
16317: if test -f "$with_ltdl_include/ltdl.h"; then :
16318: else
1.43 moko 16319: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.35 moko 16320: fi
16321: else
16322: with_ltdl_include=no
16323: fi
16324:
16325:
1.43 moko 16326: # Check whether --with-ltdl_lib was given.
16327: if test "${with_ltdl_lib+set}" = set; then :
16328: withval=$with_ltdl_lib;
16329: fi
1.35 moko 16330:
16331:
16332: if test -n "$with_ltdl_lib"; then
16333: if test -f "$with_ltdl_lib/libltdl.la"; then :
16334: else
1.43 moko 16335: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.35 moko 16336: fi
16337: else
16338: with_ltdl_lib=no
16339: fi
16340:
16341: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16342: ,yes,no,no,)
16343: case $enable_ltdl_convenience in
1.43 moko 16344: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.35 moko 16345: "") enable_ltdl_convenience=yes
16346: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16347: esac
1.43 moko 16348: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.35 moko 16349: LTDLDEPS=$LIBLTDL
16350: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16351:
16352:
16353:
16354:
16355:
16356: # For backwards non-gettext consistent compatibility...
16357: INCLTDL="$LTDLINCL"
16358:
16359:
16360: ;;
16361: ,no,no,no,)
16362: # If the included ltdl is not to be used, then use the
16363: # preinstalled libltdl we found.
16364:
1.43 moko 16365: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.35 moko 16366:
16367: LIBLTDL=-lltdl
16368: LTDLDEPS=
16369: LTDLINCL=
16370: ;;
16371: ,no*,no,*)
1.43 moko 16372: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.35 moko 16373: ;;
16374: *) with_included_ltdl=no
16375: LIBLTDL="-L$with_ltdl_lib -lltdl"
16376: LTDLDEPS=
16377: LTDLINCL="-I$with_ltdl_include"
16378: ;;
16379: esac
16380: INCLTDL="$LTDLINCL"
16381:
16382: # Report our decision...
1.43 moko 16383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
16384: $as_echo_n "checking where to find libltdl headers... " >&6; }
16385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
16386: $as_echo "$LTDLINCL" >&6; }
16387: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
16388: $as_echo_n "checking where to find libltdl library... " >&6; }
16389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
16390: $as_echo "$LIBLTDL" >&6; }
1.35 moko 16391:
16392:
16393:
1.43 moko 16394: # Check whether --enable-ltdl-install was given.
16395: if test "${enable_ltdl_install+set}" = set; then :
16396: enableval=$enable_ltdl_install;
16397: fi
1.35 moko 16398:
16399:
16400: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16401: *yes*) ;;
16402: *) enable_ltdl_convenience=yes ;;
16403: esac
16404:
1.43 moko 16405: if test x"${enable_ltdl_install-no}" != xno; then
1.35 moko 16406: INSTALL_LTDL_TRUE=
16407: INSTALL_LTDL_FALSE='#'
16408: else
16409: INSTALL_LTDL_TRUE='#'
16410: INSTALL_LTDL_FALSE=
16411: fi
16412:
1.43 moko 16413: if test x"${enable_ltdl_convenience-no}" != xno; then
1.35 moko 16414: CONVENIENCE_LTDL_TRUE=
16415: CONVENIENCE_LTDL_FALSE='#'
16416: else
16417: CONVENIENCE_LTDL_TRUE='#'
16418: CONVENIENCE_LTDL_FALSE=
16419: fi
16420:
16421:
16422:
1.43 moko 16423: subdirs="$subdirs libltdl"
1.35 moko 16424:
16425:
16426:
16427:
16428: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16429: # the user used. This is so that ltdl.h can pick up the parent projects
16430: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16431: # definitions required by ltdl.c.
16432: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16433:
16434:
16435:
16436: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
1.43 moko 16437: do :
16438: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16439: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16440: "
16441: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.35 moko 16442: cat >>confdefs.h <<_ACEOF
1.43 moko 16443: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.35 moko 16444: _ACEOF
16445:
16446: fi
16447:
16448: done
16449:
16450:
16451: for ac_func in closedir opendir readdir
1.43 moko 16452: do :
16453: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16454: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16455: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.35 moko 16456: cat >>confdefs.h <<_ACEOF
1.43 moko 16457: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.35 moko 16458: _ACEOF
16459:
16460: else
16461:
16462:
16463: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16464:
16465: fi
16466: done
16467:
16468: for ac_func in strlcat strlcpy
1.43 moko 16469: do :
16470: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16471: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16472: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.35 moko 16473: cat >>confdefs.h <<_ACEOF
1.43 moko 16474: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.35 moko 16475: _ACEOF
16476:
16477: else
16478:
16479:
16480: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16481:
16482: fi
16483: done
16484:
16485:
16486:
16487: cat >>confdefs.h <<_ACEOF
16488: #define LT_LIBEXT "$libext"
16489: _ACEOF
16490:
16491:
16492: name=
16493: eval "lt_libprefix=\"$libname_spec\""
16494:
16495: cat >>confdefs.h <<_ACEOF
16496: #define LT_LIBPREFIX "$lt_libprefix"
16497: _ACEOF
16498:
16499:
16500: name=ltdl
16501: eval "LTDLOPEN=\"$libname_spec\""
16502:
16503:
16504:
16505:
16506:
16507:
16508:
16509:
16510: # Only expand once:
16511:
16512:
16513:
1.36 moko 16514:
1.35 moko 16515: case "$host" in
16516: *-freebsd4*)
16517:
1.43 moko 16518: $as_echo "#define FREEBSD4 /**/" >>confdefs.h
1.35 moko 16519:
16520: esac
16521:
1.43 moko 16522: for ac_header in stdio.h \
16523: stdlib.h \
16524: string.h \
16525: setjmp.h \
16526: ctype.h
16527:
16528: do :
16529: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16530: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16531: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.35 moko 16532: cat >>confdefs.h <<_ACEOF
1.43 moko 16533: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.35 moko 16534: _ACEOF
16535:
16536: fi
16537:
16538: done
16539:
16540:
1.43 moko 16541: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16542: if test "x$ac_cv_type_size_t" = xyes; then :
1.35 moko 16543:
16544: else
16545:
16546: cat >>confdefs.h <<_ACEOF
1.43 moko 16547: #define size_t unsigned int
1.35 moko 16548: _ACEOF
16549:
16550: fi
16551:
16552:
16553:
1.43 moko 16554: ac_config_files="$ac_config_files Makefile"
16555:
1.35 moko 16556: cat >confcache <<\_ACEOF
16557: # This file is a shell script that caches the results of configure
16558: # tests run on this system so they can be shared between configure
16559: # scripts and configure runs, see configure's option --config-cache.
16560: # It is not useful on other systems. If it contains results you don't
16561: # want to keep, you may remove or edit it.
16562: #
16563: # config.status only pays attention to the cache file if you give it
16564: # the --recheck option to rerun configure.
16565: #
16566: # `ac_cv_env_foo' variables (set or unset) will be overridden when
16567: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16568: # following values.
16569:
16570: _ACEOF
16571:
16572: # The following way of writing the cache mishandles newlines in values,
16573: # but we know of no workaround that is simple, portable, and efficient.
1.43 moko 16574: # So, we kill variables containing newlines.
1.35 moko 16575: # Ultrix sh set writes to stderr and can't be redirected directly,
16576: # and sets the high bit in the cache file unless we assign to the vars.
1.43 moko 16577: (
16578: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16579: eval ac_val=\$$ac_var
16580: case $ac_val in #(
16581: *${as_nl}*)
16582: case $ac_var in #(
16583: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16584: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16585: esac
16586: case $ac_var in #(
16587: _ | IFS | as_nl) ;; #(
16588: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16589: *) { eval $ac_var=; unset $ac_var;} ;;
16590: esac ;;
16591: esac
16592: done
16593:
1.35 moko 16594: (set) 2>&1 |
1.43 moko 16595: case $as_nl`(ac_space=' '; set) 2>&1` in #(
16596: *${as_nl}ac_space=\ *)
16597: # `set' does not quote correctly, so add quotes: double-quote
16598: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.35 moko 16599: sed -n \
16600: "s/'/'\\\\''/g;
16601: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.43 moko 16602: ;; #(
1.35 moko 16603: *)
16604: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.43 moko 16605: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.35 moko 16606: ;;
1.43 moko 16607: esac |
16608: sort
16609: ) |
1.35 moko 16610: sed '
1.43 moko 16611: /^ac_cv_env_/b end
1.35 moko 16612: t clear
1.43 moko 16613: :clear
1.35 moko 16614: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16615: t end
1.43 moko 16616: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16617: :end' >>confcache
16618: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16619: if test -w "$cache_file"; then
16620: if test "x$cache_file" != "x/dev/null"; then
16621: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16622: $as_echo "$as_me: updating cache $cache_file" >&6;}
16623: if test ! -f "$cache_file" || test -h "$cache_file"; then
16624: cat confcache >"$cache_file"
16625: else
16626: case $cache_file in #(
16627: */* | ?:*)
16628: mv -f confcache "$cache_file"$$ &&
16629: mv -f "$cache_file"$$ "$cache_file" ;; #(
16630: *)
16631: mv -f confcache "$cache_file" ;;
16632: esac
16633: fi
16634: fi
1.35 moko 16635: else
1.43 moko 16636: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16637: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.35 moko 16638: fi
16639: fi
16640: rm -f confcache
16641:
16642: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16643: # Let make expand exec_prefix.
16644: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16645:
16646: DEFS=-DHAVE_CONFIG_H
16647:
16648: ac_libobjs=
16649: ac_ltlibobjs=
1.43 moko 16650: U=
1.35 moko 16651: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16652: # 1. Remove the extension, and $U if already installed.
1.43 moko 16653: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16654: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16655: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16656: # will be set to the directory where LIBOBJS objects are built.
16657: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16658: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.35 moko 16659: done
16660: LIBOBJS=$ac_libobjs
16661:
16662: LTLIBOBJS=$ac_ltlibobjs
16663:
16664:
1.43 moko 16665: if test -n "$EXEEXT"; then
16666: am__EXEEXT_TRUE=
16667: am__EXEEXT_FALSE='#'
16668: else
16669: am__EXEEXT_TRUE='#'
16670: am__EXEEXT_FALSE=
16671: fi
16672:
1.35 moko 16673: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.43 moko 16674: as_fn_error $? "conditional \"AMDEP\" was never defined.
16675: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.35 moko 16676: fi
16677: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.43 moko 16678: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16679: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.35 moko 16680: fi
16681: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.43 moko 16682: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16683: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.35 moko 16684: fi
16685: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.43 moko 16686: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
16687: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.35 moko 16688: fi
16689: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.43 moko 16690: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
16691: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.35 moko 16692: fi
1.43 moko 16693: LT_CONFIG_H=config_auto.h
1.35 moko 16694:
16695: _ltdl_libobjs=
16696: _ltdl_ltlibobjs=
16697: if test -n "$_LT_LIBOBJS"; then
16698: # Remove the extension.
16699: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16700: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16701: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16702: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16703: done
16704: fi
16705: ltdl_LIBOBJS=$_ltdl_libobjs
16706:
16707: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16708:
16709:
16710:
1.43 moko 16711: : "${CONFIG_STATUS=./config.status}"
16712: ac_write_fail=0
1.35 moko 16713: ac_clean_files_save=$ac_clean_files
16714: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.43 moko 16715: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16716: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16717: as_write_fail=0
16718: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.35 moko 16719: #! $SHELL
16720: # Generated by $as_me.
16721: # Run this file to recreate the current configuration.
16722: # Compiler output produced by configure, useful for debugging
16723: # configure, is in config.log if it exists.
16724:
16725: debug=false
16726: ac_cs_recheck=false
16727: ac_cs_silent=false
1.43 moko 16728:
1.35 moko 16729: SHELL=\${CONFIG_SHELL-$SHELL}
1.43 moko 16730: export SHELL
16731: _ASEOF
16732: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16733: ## -------------------- ##
16734: ## M4sh Initialization. ##
16735: ## -------------------- ##
1.35 moko 16736:
1.43 moko 16737: # Be more Bourne compatible
16738: DUALCASE=1; export DUALCASE # for MKS sh
16739: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.35 moko 16740: emulate sh
16741: NULLCMD=:
1.43 moko 16742: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.35 moko 16743: # is contrary to our usage. Disable this feature.
16744: alias -g '${1+"$@"}'='"$@"'
1.43 moko 16745: setopt NO_GLOB_SUBST
16746: else
16747: case `(set -o) 2>/dev/null` in #(
16748: *posix*) :
16749: set -o posix ;; #(
16750: *) :
16751: ;;
16752: esac
16753: fi
16754:
16755:
16756: as_nl='
16757: '
16758: export as_nl
16759: # Printing a long string crashes Solaris 7 /usr/bin/printf.
16760: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16761: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16762: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16763: # Prefer a ksh shell builtin over an external printf program on Solaris,
16764: # but without wasting forks for bash or zsh.
16765: if test -z "$BASH_VERSION$ZSH_VERSION" \
16766: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16767: as_echo='print -r --'
16768: as_echo_n='print -rn --'
16769: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16770: as_echo='printf %s\n'
16771: as_echo_n='printf %s'
16772: else
16773: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16774: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16775: as_echo_n='/usr/ucb/echo -n'
16776: else
16777: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16778: as_echo_n_body='eval
16779: arg=$1;
16780: case $arg in #(
16781: *"$as_nl"*)
16782: expr "X$arg" : "X\\(.*\\)$as_nl";
16783: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16784: esac;
16785: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16786: '
16787: export as_echo_n_body
16788: as_echo_n='sh -c $as_echo_n_body as_echo'
16789: fi
16790: export as_echo_body
16791: as_echo='sh -c $as_echo_body as_echo'
1.35 moko 16792: fi
16793:
1.43 moko 16794: # The user is always right.
16795: if test "${PATH_SEPARATOR+set}" != set; then
16796: PATH_SEPARATOR=:
16797: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16798: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16799: PATH_SEPARATOR=';'
16800: }
1.35 moko 16801: fi
16802:
16803:
1.43 moko 16804: # IFS
16805: # We need space, tab and new line, in precisely that order. Quoting is
16806: # there to prevent editors from complaining about space-tab.
16807: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16808: # splitting by setting IFS to empty value.)
16809: IFS=" "" $as_nl"
16810:
16811: # Find who we are. Look in the path if we contain no directory separator.
16812: as_myself=
16813: case $0 in #((
16814: *[\\/]* ) as_myself=$0 ;;
16815: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16816: for as_dir in $PATH
16817: do
16818: IFS=$as_save_IFS
16819: test -z "$as_dir" && as_dir=.
16820: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16821: done
16822: IFS=$as_save_IFS
16823:
16824: ;;
16825: esac
16826: # We did not find ourselves, most probably we were run as `sh COMMAND'
16827: # in which case we are not to be found in the path.
16828: if test "x$as_myself" = x; then
16829: as_myself=$0
16830: fi
16831: if test ! -f "$as_myself"; then
16832: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16833: exit 1
16834: fi
16835:
16836: # Unset variables that we do not need and which cause bugs (e.g. in
16837: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16838: # suppresses any "Segmentation fault" message there. '((' could
16839: # trigger a bug in pdksh 5.2.14.
16840: for as_var in BASH_ENV ENV MAIL MAILPATH
16841: do eval test x\${$as_var+set} = xset \
16842: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16843: done
1.35 moko 16844: PS1='$ '
16845: PS2='> '
16846: PS4='+ '
16847:
16848: # NLS nuisances.
1.43 moko 16849: LC_ALL=C
16850: export LC_ALL
16851: LANGUAGE=C
16852: export LANGUAGE
16853:
16854: # CDPATH.
16855: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16856:
16857:
16858: # as_fn_error STATUS ERROR [LINENO LOG_FD]
16859: # ----------------------------------------
16860: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16861: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16862: # script with STATUS, using 1 if that was 0.
16863: as_fn_error ()
16864: {
16865: as_status=$1; test $as_status -eq 0 && as_status=1
16866: if test "$4"; then
16867: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16868: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16869: fi
16870: $as_echo "$as_me: error: $2" >&2
16871: as_fn_exit $as_status
16872: } # as_fn_error
16873:
16874:
16875: # as_fn_set_status STATUS
16876: # -----------------------
16877: # Set $? to STATUS, without forking.
16878: as_fn_set_status ()
16879: {
16880: return $1
16881: } # as_fn_set_status
16882:
16883: # as_fn_exit STATUS
16884: # -----------------
16885: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16886: as_fn_exit ()
16887: {
16888: set +e
16889: as_fn_set_status $1
16890: exit $1
16891: } # as_fn_exit
16892:
16893: # as_fn_unset VAR
16894: # ---------------
16895: # Portably unset VAR.
16896: as_fn_unset ()
16897: {
16898: { eval $1=; unset $1;}
16899: }
16900: as_unset=as_fn_unset
16901: # as_fn_append VAR VALUE
16902: # ----------------------
16903: # Append the text in VALUE to the end of the definition contained in VAR. Take
16904: # advantage of any shell optimizations that allow amortized linear growth over
16905: # repeated appends, instead of the typical quadratic growth present in naive
16906: # implementations.
16907: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16908: eval 'as_fn_append ()
16909: {
16910: eval $1+=\$2
16911: }'
16912: else
16913: as_fn_append ()
16914: {
16915: eval $1=\$$1\$2
16916: }
16917: fi # as_fn_append
16918:
16919: # as_fn_arith ARG...
16920: # ------------------
16921: # Perform arithmetic evaluation on the ARGs, and store the result in the
16922: # global $as_val. Take advantage of shells that can avoid forks. The arguments
16923: # must be portable across $(()) and expr.
16924: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16925: eval 'as_fn_arith ()
16926: {
16927: as_val=$(( $* ))
16928: }'
16929: else
16930: as_fn_arith ()
16931: {
16932: as_val=`expr "$@" || test $? -eq 1`
16933: }
16934: fi # as_fn_arith
16935:
1.35 moko 16936:
1.43 moko 16937: if expr a : '\(a\)' >/dev/null 2>&1 &&
16938: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.35 moko 16939: as_expr=expr
16940: else
16941: as_expr=false
16942: fi
16943:
1.43 moko 16944: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.35 moko 16945: as_basename=basename
16946: else
16947: as_basename=false
16948: fi
16949:
1.43 moko 16950: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16951: as_dirname=dirname
16952: else
16953: as_dirname=false
16954: fi
1.35 moko 16955:
1.43 moko 16956: as_me=`$as_basename -- "$0" ||
1.35 moko 16957: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16958: X"$0" : 'X\(//\)$' \| \
1.43 moko 16959: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16960: $as_echo X/"$0" |
16961: sed '/^.*\/\([^/][^/]*\)\/*$/{
16962: s//\1/
16963: q
16964: }
16965: /^X\/\(\/\/\)$/{
16966: s//\1/
16967: q
16968: }
16969: /^X\/\(\/\).*/{
16970: s//\1/
16971: q
16972: }
16973: s/.*/./; q'`
1.35 moko 16974:
16975: # Avoid depending upon Character Ranges.
16976: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16977: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16978: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16979: as_cr_digits='0123456789'
16980: as_cr_alnum=$as_cr_Letters$as_cr_digits
16981:
1.43 moko 16982: ECHO_C= ECHO_N= ECHO_T=
16983: case `echo -n x` in #(((((
16984: -n*)
16985: case `echo 'xy\c'` in
16986: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16987: xy) ECHO_C='\c';;
16988: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16989: ECHO_T=' ';;
16990: esac;;
16991: *)
16992: ECHO_N='-n';;
1.35 moko 16993: esac
16994:
1.43 moko 16995: rm -f conf$$ conf$$.exe conf$$.file
16996: if test -d conf$$.dir; then
16997: rm -f conf$$.dir/conf$$.file
1.35 moko 16998: else
1.43 moko 16999: rm -f conf$$.dir
17000: mkdir conf$$.dir 2>/dev/null
1.35 moko 17001: fi
1.43 moko 17002: if (echo >conf$$.file) 2>/dev/null; then
17003: if ln -s conf$$.file conf$$ 2>/dev/null; then
17004: as_ln_s='ln -s'
17005: # ... but there are two gotchas:
17006: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17007: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17008: # In both cases, we have to default to `cp -p'.
17009: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17010: as_ln_s='cp -p'
17011: elif ln conf$$.file conf$$ 2>/dev/null; then
17012: as_ln_s=ln
17013: else
1.35 moko 17014: as_ln_s='cp -p'
17015: fi
17016: else
17017: as_ln_s='cp -p'
17018: fi
1.43 moko 17019: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17020: rmdir conf$$.dir 2>/dev/null
17021:
17022:
17023: # as_fn_mkdir_p
17024: # -------------
17025: # Create "$as_dir" as a directory, including parents if necessary.
17026: as_fn_mkdir_p ()
17027: {
17028:
17029: case $as_dir in #(
17030: -*) as_dir=./$as_dir;;
17031: esac
17032: test -d "$as_dir" || eval $as_mkdir_p || {
17033: as_dirs=
17034: while :; do
17035: case $as_dir in #(
17036: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17037: *) as_qdir=$as_dir;;
17038: esac
17039: as_dirs="'$as_qdir' $as_dirs"
17040: as_dir=`$as_dirname -- "$as_dir" ||
17041: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17042: X"$as_dir" : 'X\(//\)[^/]' \| \
17043: X"$as_dir" : 'X\(//\)$' \| \
17044: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17045: $as_echo X"$as_dir" |
17046: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17047: s//\1/
17048: q
17049: }
17050: /^X\(\/\/\)[^/].*/{
17051: s//\1/
17052: q
17053: }
17054: /^X\(\/\/\)$/{
17055: s//\1/
17056: q
17057: }
17058: /^X\(\/\).*/{
17059: s//\1/
17060: q
17061: }
17062: s/.*/./; q'`
17063: test -d "$as_dir" && break
17064: done
17065: test -z "$as_dirs" || eval "mkdir $as_dirs"
17066: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17067:
1.35 moko 17068:
1.43 moko 17069: } # as_fn_mkdir_p
1.35 moko 17070: if mkdir -p . 2>/dev/null; then
1.43 moko 17071: as_mkdir_p='mkdir -p "$as_dir"'
1.35 moko 17072: else
17073: test -d ./-p && rmdir ./-p
17074: as_mkdir_p=false
17075: fi
17076:
1.43 moko 17077: if test -x / >/dev/null 2>&1; then
17078: as_test_x='test -x'
17079: else
17080: if ls -dL / >/dev/null 2>&1; then
17081: as_ls_L_option=L
17082: else
17083: as_ls_L_option=
17084: fi
17085: as_test_x='
17086: eval sh -c '\''
17087: if test -d "$1"; then
17088: test -d "$1/.";
17089: else
17090: case $1 in #(
17091: -*)set "./$1";;
17092: esac;
17093: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17094: ???[sx]*):;;*)false;;esac;fi
17095: '\'' sh
17096: '
17097: fi
17098: as_executable_p=$as_test_x
1.35 moko 17099:
17100: # Sed expression to map a string onto a valid CPP name.
17101: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17102:
17103: # Sed expression to map a string onto a valid variable name.
17104: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17105:
17106:
17107: exec 6>&1
1.43 moko 17108: ## ----------------------------------- ##
17109: ## Main body of $CONFIG_STATUS script. ##
17110: ## ----------------------------------- ##
17111: _ASEOF
17112: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.35 moko 17113:
1.43 moko 17114: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17115: # Save the log message, to keep $0 and so on meaningful, and to
1.35 moko 17116: # report actual input values of CONFIG_FILES etc. instead of their
1.43 moko 17117: # values after options handling.
17118: ac_log="
1.44 moko 17119: This file was extended by parser3mysql.C $as_me 10.4, which was
1.43 moko 17120: generated by GNU Autoconf 2.68. Invocation command line was
1.35 moko 17121:
17122: CONFIG_FILES = $CONFIG_FILES
17123: CONFIG_HEADERS = $CONFIG_HEADERS
17124: CONFIG_LINKS = $CONFIG_LINKS
17125: CONFIG_COMMANDS = $CONFIG_COMMANDS
17126: $ $0 $@
17127:
1.43 moko 17128: on `(hostname || uname -n) 2>/dev/null | sed 1q`
17129: "
17130:
1.35 moko 17131: _ACEOF
17132:
1.43 moko 17133: case $ac_config_files in *"
17134: "*) set x $ac_config_files; shift; ac_config_files=$*;;
17135: esac
1.35 moko 17136:
1.43 moko 17137: case $ac_config_headers in *"
17138: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17139: esac
1.35 moko 17140:
17141:
1.43 moko 17142: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17143: # Files that config.status was made for.
17144: config_files="$ac_config_files"
17145: config_headers="$ac_config_headers"
17146: config_commands="$ac_config_commands"
1.35 moko 17147:
1.43 moko 17148: _ACEOF
1.35 moko 17149:
1.43 moko 17150: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.35 moko 17151: ac_cs_usage="\
1.43 moko 17152: \`$as_me' instantiates files and other configuration actions
17153: from templates according to the current configuration. Unless the files
17154: and actions are specified as TAGs, all are instantiated by default.
1.35 moko 17155:
1.43 moko 17156: Usage: $0 [OPTION]... [TAG]...
1.35 moko 17157:
17158: -h, --help print this help, then exit
1.43 moko 17159: -V, --version print version number and configuration settings, then exit
17160: --config print configuration, then exit
17161: -q, --quiet, --silent
17162: do not print progress messages
1.35 moko 17163: -d, --debug don't remove temporary files
17164: --recheck update $as_me by reconfiguring in the same conditions
1.43 moko 17165: --file=FILE[:TEMPLATE]
17166: instantiate the configuration file FILE
17167: --header=FILE[:TEMPLATE]
17168: instantiate the configuration header FILE
1.35 moko 17169:
17170: Configuration files:
17171: $config_files
17172:
17173: Configuration headers:
17174: $config_headers
17175:
17176: Configuration commands:
17177: $config_commands
17178:
1.43 moko 17179: Report bugs to the package provider."
17180:
1.35 moko 17181: _ACEOF
1.43 moko 17182: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17183: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.35 moko 17184: ac_cs_version="\\
1.44 moko 17185: parser3mysql.C config.status 10.4
1.43 moko 17186: configured by $0, generated by GNU Autoconf 2.68,
17187: with options \\"\$ac_cs_config\\"
1.35 moko 17188:
1.43 moko 17189: Copyright (C) 2010 Free Software Foundation, Inc.
1.35 moko 17190: This config.status script is free software; the Free Software Foundation
17191: gives unlimited permission to copy, distribute and modify it."
1.43 moko 17192:
17193: ac_pwd='$ac_pwd'
17194: srcdir='$srcdir'
17195: INSTALL='$INSTALL'
17196: MKDIR_P='$MKDIR_P'
17197: AWK='$AWK'
17198: test -n "\$AWK" || AWK=awk
1.35 moko 17199: _ACEOF
17200:
1.43 moko 17201: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17202: # The default lists apply if the user does not specify any file.
1.35 moko 17203: ac_need_defaults=:
17204: while test $# != 0
17205: do
17206: case $1 in
1.43 moko 17207: --*=?*)
17208: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17209: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17210: ac_shift=:
17211: ;;
17212: --*=)
17213: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17214: ac_optarg=
1.35 moko 17215: ac_shift=:
17216: ;;
1.43 moko 17217: *)
1.35 moko 17218: ac_option=$1
17219: ac_optarg=$2
17220: ac_shift=shift
17221: ;;
17222: esac
17223:
17224: case $ac_option in
17225: # Handling of the options.
17226: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17227: ac_cs_recheck=: ;;
1.43 moko 17228: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17229: $as_echo "$ac_cs_version"; exit ;;
17230: --config | --confi | --conf | --con | --co | --c )
17231: $as_echo "$ac_cs_config"; exit ;;
17232: --debug | --debu | --deb | --de | --d | -d )
1.35 moko 17233: debug=: ;;
17234: --file | --fil | --fi | --f )
17235: $ac_shift
1.43 moko 17236: case $ac_optarg in
17237: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17238: '') as_fn_error $? "missing file argument" ;;
17239: esac
17240: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.35 moko 17241: ac_need_defaults=false;;
17242: --header | --heade | --head | --hea )
17243: $ac_shift
1.43 moko 17244: case $ac_optarg in
17245: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17246: esac
17247: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.35 moko 17248: ac_need_defaults=false;;
1.43 moko 17249: --he | --h)
17250: # Conflict between --help and --header
17251: as_fn_error $? "ambiguous option: \`$1'
17252: Try \`$0 --help' for more information.";;
17253: --help | --hel | -h )
17254: $as_echo "$ac_cs_usage"; exit ;;
1.35 moko 17255: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17256: | -silent | --silent | --silen | --sile | --sil | --si | --s)
17257: ac_cs_silent=: ;;
17258:
17259: # This is an error.
1.43 moko 17260: -*) as_fn_error $? "unrecognized option: \`$1'
17261: Try \`$0 --help' for more information." ;;
1.35 moko 17262:
1.43 moko 17263: *) as_fn_append ac_config_targets " $1"
17264: ac_need_defaults=false ;;
1.35 moko 17265:
17266: esac
17267: shift
17268: done
17269:
17270: ac_configure_extra_args=
17271:
17272: if $ac_cs_silent; then
17273: exec 6>/dev/null
17274: ac_configure_extra_args="$ac_configure_extra_args --silent"
17275: fi
17276:
17277: _ACEOF
1.43 moko 17278: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.35 moko 17279: if \$ac_cs_recheck; then
1.43 moko 17280: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17281: shift
17282: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17283: CONFIG_SHELL='$SHELL'
17284: export CONFIG_SHELL
17285: exec "\$@"
1.35 moko 17286: fi
17287:
17288: _ACEOF
1.43 moko 17289: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17290: exec 5>>config.log
17291: {
17292: echo
17293: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17294: ## Running $as_me. ##
17295: _ASBOX
17296: $as_echo "$ac_log"
17297: } >&5
17298:
17299: _ACEOF
17300: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.35 moko 17301: #
1.43 moko 17302: # INIT-COMMANDS
1.35 moko 17303: #
17304: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17305:
17306:
17307: # The HP-UX ksh and POSIX shell print the target directory to stdout
17308: # if CDPATH is set.
17309: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17310:
17311: sed_quote_subst='$sed_quote_subst'
17312: double_quote_subst='$double_quote_subst'
17313: delay_variable_subst='$delay_variable_subst'
17314: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17315: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.42 moko 17316: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.36 moko 17317: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17318: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17319: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.35 moko 17320: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17321: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17322: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17323: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17324: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17325: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17326: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17327: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17328: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17329: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17330: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17331: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17332: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17333: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17334: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17335: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17336: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17337: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17338: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17339: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17340: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17341: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17342: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17343: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17344: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17345: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17346: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17347: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17348: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17349: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17350: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17351: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17352: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17353: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17354: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17355: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17356: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17357: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17358: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17359: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17360: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17361: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17362: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17363: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17364: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17365: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17366: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17367: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17368: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17369: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17370: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17371: 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"`'
17372: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17373: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17374: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17375: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17376: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17377: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17378: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17379: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17380: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17381: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17382: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17383: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17384: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17385: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17386: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17387: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17388: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17389: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17390: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17391: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17392: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17393: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17394: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17395: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17396: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17397: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17398: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17399: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17400: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17401: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17402: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17403: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17404: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17405: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17406: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17407: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17408: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17409: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17410: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17411: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17412: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17413: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17414: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17415: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17416: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17417: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17418: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17419: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17420: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17421: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17422: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17423: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17424: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17425: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17426: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17427: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17428: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17429: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17430: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17431: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17432: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17433: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17434: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17435: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17436: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17437: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17438: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17439: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17440: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17441: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17442: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17443: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17444: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17445: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17446: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17447: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17448: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17449: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17450: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17451: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17452: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17453: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17454: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17455: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17456: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17457: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17458: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17459: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17460: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17461: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17462: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17463: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17464: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17465: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17466: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17467: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17468: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17469: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17470: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17471: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17472: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17473: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17474: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17475: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17476: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17477: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17478: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17479: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17480: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17481: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17482: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17483: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17484: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17485: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17486: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17487: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17488: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17489: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17490: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17491: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17492: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17493: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17494: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17495: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17496: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17497: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17498: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17499:
17500: LTCC='$LTCC'
17501: LTCFLAGS='$LTCFLAGS'
17502: compiler='$compiler_DEFAULT'
17503:
17504: # A function that is used when there is no print builtin or printf.
17505: func_fallback_echo ()
17506: {
17507: eval 'cat <<_LTECHO_EOF
17508: \$1
17509: _LTECHO_EOF'
17510: }
17511:
17512: # Quote evaled strings.
1.36 moko 17513: for var in AS \
17514: DLLTOOL \
17515: OBJDUMP \
17516: SHELL \
1.35 moko 17517: ECHO \
17518: PATH_SEPARATOR \
17519: SED \
17520: GREP \
17521: EGREP \
17522: FGREP \
17523: LD \
17524: NM \
17525: LN_S \
17526: lt_SP2NL \
17527: lt_NL2SP \
17528: reload_flag \
17529: deplibs_check_method \
17530: file_magic_cmd \
17531: file_magic_glob \
17532: want_nocaseglob \
17533: sharedlib_from_linklib_cmd \
17534: AR \
17535: AR_FLAGS \
17536: archiver_list_spec \
17537: STRIP \
17538: RANLIB \
17539: CC \
17540: CFLAGS \
17541: compiler \
17542: lt_cv_sys_global_symbol_pipe \
17543: lt_cv_sys_global_symbol_to_cdecl \
17544: lt_cv_sys_global_symbol_to_c_name_address \
17545: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17546: nm_file_list_spec \
17547: lt_prog_compiler_no_builtin_flag \
17548: lt_prog_compiler_pic \
17549: lt_prog_compiler_wl \
17550: lt_prog_compiler_static \
17551: lt_cv_prog_compiler_c_o \
17552: need_locks \
17553: MANIFEST_TOOL \
17554: DSYMUTIL \
17555: NMEDIT \
17556: LIPO \
17557: OTOOL \
17558: OTOOL64 \
17559: shrext_cmds \
17560: export_dynamic_flag_spec \
17561: whole_archive_flag_spec \
17562: compiler_needs_object \
17563: with_gnu_ld \
17564: allow_undefined_flag \
17565: no_undefined_flag \
17566: hardcode_libdir_flag_spec \
17567: hardcode_libdir_separator \
17568: exclude_expsyms \
17569: include_expsyms \
17570: file_list_spec \
17571: variables_saved_for_relink \
17572: libname_spec \
17573: library_names_spec \
17574: soname_spec \
17575: install_override_mode \
17576: finish_eval \
17577: old_striplib \
17578: striplib \
17579: compiler_lib_search_dirs \
17580: predep_objects \
17581: postdep_objects \
17582: predeps \
17583: postdeps \
17584: compiler_lib_search_path \
17585: LD_CXX \
17586: reload_flag_CXX \
17587: compiler_CXX \
17588: lt_prog_compiler_no_builtin_flag_CXX \
17589: lt_prog_compiler_pic_CXX \
17590: lt_prog_compiler_wl_CXX \
17591: lt_prog_compiler_static_CXX \
17592: lt_cv_prog_compiler_c_o_CXX \
17593: export_dynamic_flag_spec_CXX \
17594: whole_archive_flag_spec_CXX \
17595: compiler_needs_object_CXX \
17596: with_gnu_ld_CXX \
17597: allow_undefined_flag_CXX \
17598: no_undefined_flag_CXX \
17599: hardcode_libdir_flag_spec_CXX \
17600: hardcode_libdir_separator_CXX \
17601: exclude_expsyms_CXX \
17602: include_expsyms_CXX \
17603: file_list_spec_CXX \
17604: compiler_lib_search_dirs_CXX \
17605: predep_objects_CXX \
17606: postdep_objects_CXX \
17607: predeps_CXX \
17608: postdeps_CXX \
17609: compiler_lib_search_path_CXX; do
17610: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17611: *[\\\\\\\`\\"\\\$]*)
17612: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17613: ;;
17614: *)
17615: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17616: ;;
17617: esac
17618: done
17619:
17620: # Double-quote double-evaled strings.
17621: for var in reload_cmds \
17622: old_postinstall_cmds \
17623: old_postuninstall_cmds \
17624: old_archive_cmds \
17625: extract_expsyms_cmds \
17626: old_archive_from_new_cmds \
17627: old_archive_from_expsyms_cmds \
17628: archive_cmds \
17629: archive_expsym_cmds \
17630: module_cmds \
17631: module_expsym_cmds \
17632: export_symbols_cmds \
17633: prelink_cmds \
17634: postlink_cmds \
17635: postinstall_cmds \
17636: postuninstall_cmds \
17637: finish_cmds \
17638: sys_lib_search_path_spec \
17639: sys_lib_dlsearch_path_spec \
17640: reload_cmds_CXX \
17641: old_archive_cmds_CXX \
17642: old_archive_from_new_cmds_CXX \
17643: old_archive_from_expsyms_cmds_CXX \
17644: archive_cmds_CXX \
17645: archive_expsym_cmds_CXX \
17646: module_cmds_CXX \
17647: module_expsym_cmds_CXX \
17648: export_symbols_cmds_CXX \
17649: prelink_cmds_CXX \
17650: postlink_cmds_CXX; do
17651: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17652: *[\\\\\\\`\\"\\\$]*)
17653: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17654: ;;
17655: *)
17656: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17657: ;;
17658: esac
17659: done
17660:
17661: ac_aux_dir='$ac_aux_dir'
17662: xsi_shell='$xsi_shell'
17663: lt_shell_append='$lt_shell_append'
17664:
17665: # See if we are running on zsh, and set the options which allow our
17666: # commands through without removal of \ escapes INIT.
17667: if test -n "\${ZSH_VERSION+set}" ; then
17668: setopt NO_GLOB_SUBST
17669: fi
17670:
17671:
17672: PACKAGE='$PACKAGE'
17673: VERSION='$VERSION'
17674: TIMESTAMP='$TIMESTAMP'
17675: RM='$RM'
17676: ofile='$ofile'
17677:
17678:
17679:
17680:
17681:
17682:
17683: _ACEOF
17684:
1.43 moko 17685: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.35 moko 17686:
1.43 moko 17687: # Handling of arguments.
1.35 moko 17688: for ac_config_target in $ac_config_targets
17689: do
1.43 moko 17690: case $ac_config_target in
17691: "config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
17692: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17693: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17694: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17695:
17696: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.35 moko 17697: esac
17698: done
17699:
1.43 moko 17700:
1.35 moko 17701: # If the user did not use the arguments to specify the items to instantiate,
17702: # then the envvar interface is used. Set only those that are not.
17703: # We use the long form for the default assignment because of an extremely
17704: # bizarre bug on SunOS 4.1.3.
17705: if $ac_need_defaults; then
17706: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17707: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17708: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17709: fi
17710:
17711: # Have a temporary directory for convenience. Make it in the build tree
1.43 moko 17712: # simply because there is no reason against having it here, and in addition,
1.35 moko 17713: # creating and moving files from /tmp can sometimes cause problems.
1.43 moko 17714: # Hook for its removal unless debugging.
17715: # Note that there is a small window in which the directory will not be cleaned:
17716: # after its creation but before its name has been assigned to `$tmp'.
1.35 moko 17717: $debug ||
17718: {
1.43 moko 17719: tmp= ac_tmp=
17720: trap 'exit_status=$?
17721: : "${ac_tmp:=$tmp}"
17722: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17723: ' 0
17724: trap 'as_fn_exit 1' 1 2 13 15
1.35 moko 17725: }
17726: # Create a (secure) tmp directory for tmp files.
17727:
17728: {
1.43 moko 17729: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17730: test -d "$tmp"
1.35 moko 17731: } ||
17732: {
1.43 moko 17733: tmp=./conf$$-$RANDOM
17734: (umask 077 && mkdir "$tmp")
17735: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17736: ac_tmp=$tmp
17737:
17738: # Set up the scripts for CONFIG_FILES section.
17739: # No need to generate them if there are no CONFIG_FILES.
17740: # This happens for instance with `./config.status config.h'.
17741: if test -n "$CONFIG_FILES"; then
17742:
17743:
17744: ac_cr=`echo X | tr X '\015'`
17745: # On cygwin, bash can eat \r inside `` if the user requested igncr.
17746: # But we know of no other shell where ac_cr would be empty at this
17747: # point, so we can use a bashism as a fallback.
17748: if test "x$ac_cr" = x; then
17749: eval ac_cr=\$\'\\r\'
17750: fi
17751: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17752: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17753: ac_cs_awk_cr='\\r'
17754: else
17755: ac_cs_awk_cr=$ac_cr
17756: fi
17757:
17758: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17759: _ACEOF
17760:
17761:
17762: {
17763: echo "cat >conf$$subs.awk <<_ACEOF" &&
17764: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17765: echo "_ACEOF"
17766: } >conf$$subs.sh ||
17767: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17768: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17769: ac_delim='%!_!# '
17770: for ac_last_try in false false false false false :; do
17771: . ./conf$$subs.sh ||
17772: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17773:
17774: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17775: if test $ac_delim_n = $ac_delim_num; then
17776: break
17777: elif $ac_last_try; then
17778: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17779: else
17780: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17781: fi
17782: done
17783: rm -f conf$$subs.sh
17784:
17785: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17786: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17787: _ACEOF
17788: sed -n '
17789: h
17790: s/^/S["/; s/!.*/"]=/
17791: p
17792: g
17793: s/^[^!]*!//
17794: :repl
17795: t repl
17796: s/'"$ac_delim"'$//
17797: t delim
17798: :nl
17799: h
17800: s/\(.\{148\}\)..*/\1/
17801: t more1
17802: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17803: p
17804: n
17805: b repl
17806: :more1
17807: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17808: p
17809: g
17810: s/.\{148\}//
17811: t nl
17812: :delim
17813: h
17814: s/\(.\{148\}\)..*/\1/
17815: t more2
17816: s/["\\]/\\&/g; s/^/"/; s/$/"/
17817: p
17818: b
17819: :more2
17820: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17821: p
17822: g
17823: s/.\{148\}//
17824: t delim
17825: ' <conf$$subs.awk | sed '
17826: /^[^""]/{
17827: N
17828: s/\n//
17829: }
17830: ' >>$CONFIG_STATUS || ac_write_fail=1
17831: rm -f conf$$subs.awk
17832: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17833: _ACAWK
17834: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17835: for (key in S) S_is_set[key] = 1
17836: FS = ""
17837:
17838: }
1.35 moko 17839: {
1.43 moko 17840: line = $ 0
17841: nfields = split(line, field, "@")
17842: substed = 0
17843: len = length(field[1])
17844: for (i = 2; i < nfields; i++) {
17845: key = field[i]
17846: keylen = length(key)
17847: if (S_is_set[key]) {
17848: value = S[key]
17849: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17850: len += length(value) + length(field[++i])
17851: substed = 1
17852: } else
17853: len += 1 + keylen
17854: }
17855:
17856: print line
1.35 moko 17857: }
17858:
1.43 moko 17859: _ACAWK
17860: _ACEOF
17861: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17862: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17863: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17864: else
17865: cat
17866: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17867: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.35 moko 17868: _ACEOF
17869:
1.43 moko 17870: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17871: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17872: # trailing colons and then remove the whole line if VPATH becomes empty
17873: # (actually we leave an empty line to preserve line numbers).
17874: if test "x$srcdir" = x.; then
17875: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17876: h
17877: s///
17878: s/^/:/
17879: s/[ ]*$/:/
17880: s/:\$(srcdir):/:/g
17881: s/:\${srcdir}:/:/g
17882: s/:@srcdir@:/:/g
17883: s/^:*//
17884: s/:*$//
17885: x
17886: s/\(=[ ]*\).*/\1/
17887: G
17888: s/\n//
17889: s/^[^=]*=[ ]*$//
17890: }'
17891: fi
1.35 moko 17892:
1.43 moko 17893: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17894: fi # test -n "$CONFIG_FILES"
1.35 moko 17895:
1.43 moko 17896: # Set up the scripts for CONFIG_HEADERS section.
17897: # No need to generate them if there are no CONFIG_HEADERS.
17898: # This happens for instance with `./config.status Makefile'.
17899: if test -n "$CONFIG_HEADERS"; then
17900: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17901: BEGIN {
17902: _ACEOF
17903:
17904: # Transform confdefs.h into an awk script `defines.awk', embedded as
17905: # here-document in config.status, that substitutes the proper values into
17906: # config.h.in to produce config.h.
17907:
17908: # Create a delimiter string that does not exist in confdefs.h, to ease
17909: # handling of long lines.
17910: ac_delim='%!_!# '
17911: for ac_last_try in false false :; do
17912: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17913: if test -z "$ac_tt"; then
17914: break
17915: elif $ac_last_try; then
17916: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17917: else
17918: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.35 moko 17919: fi
1.43 moko 17920: done
1.35 moko 17921:
1.43 moko 17922: # For the awk script, D is an array of macro values keyed by name,
17923: # likewise P contains macro parameters if any. Preserve backslash
17924: # newline sequences.
17925:
17926: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17927: sed -n '
17928: s/.\{148\}/&'"$ac_delim"'/g
17929: t rset
17930: :rset
17931: s/^[ ]*#[ ]*define[ ][ ]*/ /
17932: t def
17933: d
17934: :def
17935: s/\\$//
17936: t bsnl
17937: s/["\\]/\\&/g
17938: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17939: D["\1"]=" \3"/p
17940: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17941: d
17942: :bsnl
17943: s/["\\]/\\&/g
17944: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17945: D["\1"]=" \3\\\\\\n"\\/p
17946: t cont
17947: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17948: t cont
17949: d
17950: :cont
17951: n
17952: s/.\{148\}/&'"$ac_delim"'/g
17953: t clear
17954: :clear
17955: s/\\$//
17956: t bsnlc
17957: s/["\\]/\\&/g; s/^/"/; s/$/"/p
17958: d
17959: :bsnlc
17960: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17961: b cont
17962: ' <confdefs.h | sed '
17963: s/'"$ac_delim"'/"\\\
17964: "/g' >>$CONFIG_STATUS || ac_write_fail=1
17965:
17966: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17967: for (key in D) D_is_set[key] = 1
17968: FS = ""
17969: }
17970: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17971: line = \$ 0
17972: split(line, arg, " ")
17973: if (arg[1] == "#") {
17974: defundef = arg[2]
17975: mac1 = arg[3]
17976: } else {
17977: defundef = substr(arg[1], 2)
17978: mac1 = arg[2]
17979: }
17980: split(mac1, mac2, "(") #)
17981: macro = mac2[1]
17982: prefix = substr(line, 1, index(line, defundef) - 1)
17983: if (D_is_set[macro]) {
17984: # Preserve the white space surrounding the "#".
17985: print prefix "define", macro P[macro] D[macro]
17986: next
17987: } else {
17988: # Replace #undef with comments. This is necessary, for example,
17989: # in the case of _POSIX_SOURCE, which is predefined and required
17990: # on some systems where configure will not decide to define it.
17991: if (defundef == "undef") {
17992: print "/*", prefix defundef, macro, "*/"
17993: next
17994: }
17995: }
17996: }
17997: { print }
17998: _ACAWK
1.35 moko 17999: _ACEOF
1.43 moko 18000: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18001: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18002: fi # test -n "$CONFIG_HEADERS"
18003:
18004:
18005: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18006: shift
18007: for ac_tag
18008: do
18009: case $ac_tag in
18010: :[FHLC]) ac_mode=$ac_tag; continue;;
18011: esac
18012: case $ac_mode$ac_tag in
18013: :[FHL]*:*);;
18014: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18015: :[FH]-) ac_tag=-:-;;
18016: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18017: esac
18018: ac_save_IFS=$IFS
18019: IFS=:
18020: set x $ac_tag
18021: IFS=$ac_save_IFS
18022: shift
18023: ac_file=$1
18024: shift
18025:
18026: case $ac_mode in
18027: :L) ac_source=$1;;
18028: :[FH])
18029: ac_file_inputs=
18030: for ac_f
18031: do
18032: case $ac_f in
18033: -) ac_f="$ac_tmp/stdin";;
18034: *) # Look for the file first in the build tree, then in the source tree
18035: # (if the path is not absolute). The absolute path cannot be DOS-style,
18036: # because $ac_f cannot contain `:'.
18037: test -f "$ac_f" ||
18038: case $ac_f in
18039: [\\/$]*) false;;
18040: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18041: esac ||
18042: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18043: esac
18044: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18045: as_fn_append ac_file_inputs " '$ac_f'"
18046: done
18047:
18048: # Let's still pretend it is `configure' which instantiates (i.e., don't
18049: # use $as_me), people would be surprised to read:
18050: # /* config.h. Generated by config.status. */
18051: configure_input='Generated from '`
18052: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18053: `' by configure.'
18054: if test x"$ac_file" != x-; then
18055: configure_input="$ac_file. $configure_input"
18056: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18057: $as_echo "$as_me: creating $ac_file" >&6;}
18058: fi
18059: # Neutralize special characters interpreted by sed in replacement strings.
18060: case $configure_input in #(
18061: *\&* | *\|* | *\\* )
18062: ac_sed_conf_input=`$as_echo "$configure_input" |
18063: sed 's/[\\\\&|]/\\\\&/g'`;; #(
18064: *) ac_sed_conf_input=$configure_input;;
18065: esac
18066:
18067: case $ac_tag in
18068: *:-:* | *:-) cat >"$ac_tmp/stdin" \
18069: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18070: esac
18071: ;;
1.35 moko 18072: esac
18073:
1.43 moko 18074: ac_dir=`$as_dirname -- "$ac_file" ||
1.35 moko 18075: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18076: X"$ac_file" : 'X\(//\)[^/]' \| \
18077: X"$ac_file" : 'X\(//\)$' \| \
1.43 moko 18078: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18079: $as_echo X"$ac_file" |
18080: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18081: s//\1/
18082: q
18083: }
18084: /^X\(\/\/\)[^/].*/{
18085: s//\1/
18086: q
18087: }
18088: /^X\(\/\/\)$/{
18089: s//\1/
18090: q
18091: }
18092: /^X\(\/\).*/{
18093: s//\1/
18094: q
18095: }
18096: s/.*/./; q'`
18097: as_dir="$ac_dir"; as_fn_mkdir_p
1.35 moko 18098: ac_builddir=.
18099:
1.43 moko 18100: case "$ac_dir" in
18101: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18102: *)
18103: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18104: # A ".." for each directory in $ac_dir_suffix.
18105: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18106: case $ac_top_builddir_sub in
18107: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18108: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18109: esac ;;
18110: esac
18111: ac_abs_top_builddir=$ac_pwd
18112: ac_abs_builddir=$ac_pwd$ac_dir_suffix
18113: # for backward compatibility:
18114: ac_top_builddir=$ac_top_build_prefix
1.35 moko 18115:
18116: case $srcdir in
1.43 moko 18117: .) # We are building in place.
1.35 moko 18118: ac_srcdir=.
1.43 moko 18119: ac_top_srcdir=$ac_top_builddir_sub
18120: ac_abs_top_srcdir=$ac_pwd ;;
18121: [\\/]* | ?:[\\/]* ) # Absolute name.
1.35 moko 18122: ac_srcdir=$srcdir$ac_dir_suffix;
1.43 moko 18123: ac_top_srcdir=$srcdir
18124: ac_abs_top_srcdir=$srcdir ;;
18125: *) # Relative name.
18126: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18127: ac_top_srcdir=$ac_top_build_prefix$srcdir
18128: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.35 moko 18129: esac
1.43 moko 18130: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.35 moko 18131:
18132:
1.43 moko 18133: case $ac_mode in
18134: :F)
18135: #
18136: # CONFIG_FILE
18137: #
1.35 moko 18138:
18139: case $INSTALL in
18140: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.43 moko 18141: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18142: esac
18143: ac_MKDIR_P=$MKDIR_P
18144: case $MKDIR_P in
18145: [\\/$]* | ?:[\\/]* ) ;;
18146: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1.35 moko 18147: esac
1.43 moko 18148: _ACEOF
1.35 moko 18149:
1.43 moko 18150: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18151: # If the template does not know about datarootdir, expand it.
18152: # FIXME: This hack should be removed a few years after 2.60.
18153: ac_datarootdir_hack=; ac_datarootdir_seen=
18154: ac_sed_dataroot='
18155: /datarootdir/ {
18156: p
18157: q
18158: }
18159: /@datadir@/p
18160: /@docdir@/p
18161: /@infodir@/p
18162: /@localedir@/p
18163: /@mandir@/p'
18164: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18165: *datarootdir*) ac_datarootdir_seen=yes;;
18166: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18168: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18169: _ACEOF
18170: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18171: ac_datarootdir_hack='
18172: s&@datadir@&$datadir&g
18173: s&@docdir@&$docdir&g
18174: s&@infodir@&$infodir&g
18175: s&@localedir@&$localedir&g
18176: s&@mandir@&$mandir&g
18177: s&\\\${datarootdir}&$datarootdir&g' ;;
18178: esac
18179: _ACEOF
1.35 moko 18180:
1.43 moko 18181: # Neutralize VPATH when `$srcdir' = `.'.
18182: # Shell code in configure.ac might set extrasub.
18183: # FIXME: do we really want to maintain this feature?
18184: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18185: ac_sed_extra="$ac_vpsub
1.35 moko 18186: $extrasub
18187: _ACEOF
1.43 moko 18188: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.35 moko 18189: :t
18190: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.43 moko 18191: s|@configure_input@|$ac_sed_conf_input|;t t
18192: s&@top_builddir@&$ac_top_builddir_sub&;t t
18193: s&@top_build_prefix@&$ac_top_build_prefix&;t t
18194: s&@srcdir@&$ac_srcdir&;t t
18195: s&@abs_srcdir@&$ac_abs_srcdir&;t t
18196: s&@top_srcdir@&$ac_top_srcdir&;t t
18197: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18198: s&@builddir@&$ac_builddir&;t t
18199: s&@abs_builddir@&$ac_abs_builddir&;t t
18200: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18201: s&@INSTALL@&$ac_INSTALL&;t t
18202: s&@MKDIR_P@&$ac_MKDIR_P&;t t
18203: $ac_datarootdir_hack
18204: "
18205: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18206: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18207:
18208: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18209: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18210: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18211: "$ac_tmp/out"`; test -z "$ac_out"; } &&
18212: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18213: which seems to be undefined. Please make sure it is defined" >&5
18214: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18215: which seems to be undefined. Please make sure it is defined" >&2;}
1.35 moko 18216:
1.43 moko 18217: rm -f "$ac_tmp/stdin"
1.35 moko 18218: case $ac_file in
1.43 moko 18219: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18220: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18221: esac \
18222: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18223: ;;
18224: :H)
18225: #
18226: # CONFIG_HEADER
18227: #
1.35 moko 18228: if test x"$ac_file" != x-; then
1.43 moko 18229: {
18230: $as_echo "/* $configure_input */" \
18231: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18232: } >"$ac_tmp/config.h" \
18233: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18234: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18235: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18236: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.35 moko 18237: else
1.43 moko 18238: rm -f "$ac_file"
18239: mv "$ac_tmp/config.h" "$ac_file" \
18240: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.35 moko 18241: fi
18242: else
1.43 moko 18243: $as_echo "/* $configure_input */" \
18244: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18245: || as_fn_error $? "could not create -" "$LINENO" 5
1.35 moko 18246: fi
1.43 moko 18247: # Compute "$ac_file"'s index in $config_headers.
18248: _am_arg="$ac_file"
1.35 moko 18249: _am_stamp_count=1
18250: for _am_header in $config_headers :; do
18251: case $_am_header in
1.43 moko 18252: $_am_arg | $_am_arg:* )
1.35 moko 18253: break ;;
18254: * )
18255: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18256: esac
18257: done
1.43 moko 18258: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18259: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18260: X"$_am_arg" : 'X\(//\)[^/]' \| \
18261: X"$_am_arg" : 'X\(//\)$' \| \
18262: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18263: $as_echo X"$_am_arg" |
18264: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18265: s//\1/
18266: q
18267: }
18268: /^X\(\/\/\)[^/].*/{
18269: s//\1/
18270: q
18271: }
18272: /^X\(\/\/\)$/{
18273: s//\1/
18274: q
18275: }
18276: /^X\(\/\).*/{
18277: s//\1/
18278: q
18279: }
18280: s/.*/./; q'`/stamp-h$_am_stamp_count
18281: ;;
1.35 moko 18282:
1.43 moko 18283: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18284: $as_echo "$as_me: executing $ac_file commands" >&6;}
18285: ;;
18286: esac
1.35 moko 18287:
18288:
1.43 moko 18289: case $ac_file$ac_mode in
18290: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18291: # Autoconf 2.62 quotes --file arguments for eval, but not when files
18292: # are listed without --file. Let's play safe and only enable the eval
18293: # if we detect the quoting.
18294: case $CONFIG_FILES in
18295: *\'*) eval set x "$CONFIG_FILES" ;;
18296: *) set x $CONFIG_FILES ;;
18297: esac
18298: shift
18299: for mf
18300: do
18301: # Strip MF so we end up with the name of the file.
18302: mf=`echo "$mf" | sed -e 's/:.*$//'`
18303: # Check whether this is an Automake generated Makefile or not.
18304: # We used to match only the files named `Makefile.in', but
18305: # some people rename them; so instead we look at the file content.
18306: # Grep'ing the first line is not enough: some people post-process
18307: # each Makefile.in and add a new line on top of each file to say so.
18308: # Grep'ing the whole file is not good either: AIX grep has a line
18309: # limit of 2048, but all sed's we know have understand at least 4000.
18310: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18311: dirpart=`$as_dirname -- "$mf" ||
1.35 moko 18312: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18313: X"$mf" : 'X\(//\)[^/]' \| \
18314: X"$mf" : 'X\(//\)$' \| \
1.43 moko 18315: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18316: $as_echo X"$mf" |
18317: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18318: s//\1/
18319: q
18320: }
18321: /^X\(\/\/\)[^/].*/{
18322: s//\1/
18323: q
18324: }
18325: /^X\(\/\/\)$/{
18326: s//\1/
18327: q
18328: }
18329: /^X\(\/\).*/{
18330: s//\1/
18331: q
18332: }
18333: s/.*/./; q'`
18334: else
18335: continue
18336: fi
18337: # Extract the definition of DEPDIR, am__include, and am__quote
18338: # from the Makefile without running `make'.
18339: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18340: test -z "$DEPDIR" && continue
18341: am__include=`sed -n 's/^am__include = //p' < "$mf"`
18342: test -z "am__include" && continue
18343: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18344: # When using ansi2knr, U may be empty or an underscore; expand it
18345: U=`sed -n 's/^U = //p' < "$mf"`
18346: # Find all dependency output files, they are included files with
18347: # $(DEPDIR) in their names. We invoke sed twice because it is the
18348: # simplest approach to changing $(DEPDIR) to its actual value in the
18349: # expansion.
18350: for file in `sed -n "
18351: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18352: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18353: # Make sure the directory exists.
18354: test -f "$dirpart/$file" && continue
18355: fdir=`$as_dirname -- "$file" ||
1.35 moko 18356: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18357: X"$file" : 'X\(//\)[^/]' \| \
18358: X"$file" : 'X\(//\)$' \| \
1.43 moko 18359: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18360: $as_echo X"$file" |
18361: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18362: s//\1/
18363: q
18364: }
18365: /^X\(\/\/\)[^/].*/{
18366: s//\1/
18367: q
18368: }
18369: /^X\(\/\/\)$/{
18370: s//\1/
18371: q
18372: }
18373: /^X\(\/\).*/{
18374: s//\1/
18375: q
18376: }
18377: s/.*/./; q'`
18378: as_dir=$dirpart/$fdir; as_fn_mkdir_p
18379: # echo "creating $dirpart/$file"
18380: echo '# dummy' > "$dirpart/$file"
1.35 moko 18381: done
18382: done
1.43 moko 18383: }
1.35 moko 18384: ;;
1.43 moko 18385: "libtool":C)
1.35 moko 18386:
18387: # See if we are running on zsh, and set the options which allow our
18388: # commands through without removal of \ escapes.
18389: if test -n "${ZSH_VERSION+set}" ; then
18390: setopt NO_GLOB_SUBST
18391: fi
18392:
18393: cfgfile="${ofile}T"
18394: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18395: $RM "$cfgfile"
18396:
18397: cat <<_LT_EOF >> "$cfgfile"
18398: #! $SHELL
18399:
18400: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18401: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18402: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18403: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18404: #
18405: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18406: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18407: # Foundation, Inc.
18408: # Written by Gordon Matzigkeit, 1996
18409: #
18410: # This file is part of GNU Libtool.
18411: #
18412: # GNU Libtool is free software; you can redistribute it and/or
18413: # modify it under the terms of the GNU General Public License as
18414: # published by the Free Software Foundation; either version 2 of
18415: # the License, or (at your option) any later version.
18416: #
18417: # As a special exception to the GNU General Public License,
18418: # if you distribute this file as part of a program or library that
18419: # is built using GNU Libtool, you may include this file under the
18420: # same distribution terms that you use for the rest of that program.
18421: #
18422: # GNU Libtool is distributed in the hope that it will be useful,
18423: # but WITHOUT ANY WARRANTY; without even the implied warranty of
18424: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18425: # GNU General Public License for more details.
18426: #
18427: # You should have received a copy of the GNU General Public License
18428: # along with GNU Libtool; see the file COPYING. If not, a copy
18429: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18430: # obtained by writing to the Free Software Foundation, Inc.,
18431: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18432:
18433:
18434: # The names of the tagged configurations supported by this script.
18435: available_tags="CXX "
18436:
18437: # ### BEGIN LIBTOOL CONFIG
18438:
18439: # Which release of libtool.m4 was used?
18440: macro_version=$macro_version
18441: macro_revision=$macro_revision
18442:
1.42 moko 18443: # Whether or not to build static libraries.
18444: build_old_libs=$enable_static
18445:
1.36 moko 18446: # Assembler program.
18447: AS=$lt_AS
18448:
18449: # DLL creation program.
18450: DLLTOOL=$lt_DLLTOOL
18451:
18452: # Object dumper program.
18453: OBJDUMP=$lt_OBJDUMP
18454:
1.35 moko 18455: # Whether or not to build shared libraries.
18456: build_libtool_libs=$enable_shared
18457:
18458: # What type of objects to build.
18459: pic_mode=$pic_mode
18460:
18461: # Whether or not to optimize for fast installation.
18462: fast_install=$enable_fast_install
18463:
18464: # Shell to use when invoking shell scripts.
18465: SHELL=$lt_SHELL
18466:
18467: # An echo program that protects backslashes.
18468: ECHO=$lt_ECHO
18469:
18470: # The PATH separator for the build system.
18471: PATH_SEPARATOR=$lt_PATH_SEPARATOR
18472:
18473: # The host system.
18474: host_alias=$host_alias
18475: host=$host
18476: host_os=$host_os
18477:
18478: # The build system.
18479: build_alias=$build_alias
18480: build=$build
18481: build_os=$build_os
18482:
18483: # A sed program that does not truncate output.
18484: SED=$lt_SED
18485:
18486: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18487: Xsed="\$SED -e 1s/^X//"
18488:
18489: # A grep program that handles long lines.
18490: GREP=$lt_GREP
18491:
18492: # An ERE matcher.
18493: EGREP=$lt_EGREP
18494:
18495: # A literal string matcher.
18496: FGREP=$lt_FGREP
18497:
18498: # A BSD- or MS-compatible name lister.
18499: NM=$lt_NM
18500:
18501: # Whether we need soft or hard links.
18502: LN_S=$lt_LN_S
18503:
18504: # What is the maximum length of a command?
18505: max_cmd_len=$max_cmd_len
18506:
18507: # Object file suffix (normally "o").
18508: objext=$ac_objext
18509:
18510: # Executable file suffix (normally "").
18511: exeext=$exeext
18512:
18513: # whether the shell understands "unset".
18514: lt_unset=$lt_unset
18515:
18516: # turn spaces into newlines.
18517: SP2NL=$lt_lt_SP2NL
18518:
18519: # turn newlines into spaces.
18520: NL2SP=$lt_lt_NL2SP
18521:
18522: # convert \$build file names to \$host format.
18523: to_host_file_cmd=$lt_cv_to_host_file_cmd
18524:
18525: # convert \$build files to toolchain format.
18526: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18527:
18528: # Method to check whether dependent libraries are shared objects.
18529: deplibs_check_method=$lt_deplibs_check_method
18530:
18531: # Command to use when deplibs_check_method = "file_magic".
18532: file_magic_cmd=$lt_file_magic_cmd
18533:
18534: # How to find potential files when deplibs_check_method = "file_magic".
18535: file_magic_glob=$lt_file_magic_glob
18536:
18537: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18538: want_nocaseglob=$lt_want_nocaseglob
18539:
18540: # Command to associate shared and link libraries.
18541: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18542:
18543: # The archiver.
18544: AR=$lt_AR
18545:
18546: # Flags to create an archive.
18547: AR_FLAGS=$lt_AR_FLAGS
18548:
18549: # How to feed a file listing to the archiver.
18550: archiver_list_spec=$lt_archiver_list_spec
18551:
18552: # A symbol stripping program.
18553: STRIP=$lt_STRIP
18554:
18555: # Commands used to install an old-style archive.
18556: RANLIB=$lt_RANLIB
18557: old_postinstall_cmds=$lt_old_postinstall_cmds
18558: old_postuninstall_cmds=$lt_old_postuninstall_cmds
18559:
18560: # Whether to use a lock for old archive extraction.
18561: lock_old_archive_extraction=$lock_old_archive_extraction
18562:
18563: # A C compiler.
18564: LTCC=$lt_CC
18565:
18566: # LTCC compiler flags.
18567: LTCFLAGS=$lt_CFLAGS
18568:
18569: # Take the output of nm and produce a listing of raw symbols and C names.
18570: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18571:
18572: # Transform the output of nm in a proper C declaration.
18573: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18574:
18575: # Transform the output of nm in a C name address pair.
18576: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18577:
18578: # Transform the output of nm in a C name address pair when lib prefix is needed.
18579: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18580:
18581: # Specify filename containing input files for \$NM.
18582: nm_file_list_spec=$lt_nm_file_list_spec
18583:
18584: # The root where to search for dependent libraries,and in which our libraries should be installed.
18585: lt_sysroot=$lt_sysroot
18586:
18587: # The name of the directory that contains temporary libtool files.
18588: objdir=$objdir
18589:
18590: # Used to examine libraries when file_magic_cmd begins with "file".
18591: MAGIC_CMD=$MAGIC_CMD
18592:
18593: # Must we lock files when doing compilation?
18594: need_locks=$lt_need_locks
18595:
18596: # Manifest tool.
18597: MANIFEST_TOOL=$lt_MANIFEST_TOOL
18598:
18599: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18600: DSYMUTIL=$lt_DSYMUTIL
18601:
18602: # Tool to change global to local symbols on Mac OS X.
18603: NMEDIT=$lt_NMEDIT
18604:
18605: # Tool to manipulate fat objects and archives on Mac OS X.
18606: LIPO=$lt_LIPO
18607:
18608: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18609: OTOOL=$lt_OTOOL
18610:
18611: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18612: OTOOL64=$lt_OTOOL64
18613:
18614: # Old archive suffix (normally "a").
18615: libext=$libext
18616:
18617: # Shared library suffix (normally ".so").
18618: shrext_cmds=$lt_shrext_cmds
18619:
18620: # The commands to extract the exported symbol list from a shared archive.
18621: extract_expsyms_cmds=$lt_extract_expsyms_cmds
18622:
18623: # Variables whose values should be saved in libtool wrapper scripts and
18624: # restored at link time.
18625: variables_saved_for_relink=$lt_variables_saved_for_relink
18626:
18627: # Do we need the "lib" prefix for modules?
18628: need_lib_prefix=$need_lib_prefix
18629:
18630: # Do we need a version for libraries?
18631: need_version=$need_version
18632:
18633: # Library versioning type.
18634: version_type=$version_type
18635:
18636: # Shared library runtime path variable.
18637: runpath_var=$runpath_var
18638:
18639: # Shared library path variable.
18640: shlibpath_var=$shlibpath_var
18641:
18642: # Is shlibpath searched before the hard-coded library search path?
18643: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18644:
18645: # Format of library name prefix.
18646: libname_spec=$lt_libname_spec
18647:
18648: # List of archive names. First name is the real one, the rest are links.
18649: # The last name is the one that the linker finds with -lNAME
18650: library_names_spec=$lt_library_names_spec
18651:
18652: # The coded name of the library, if different from the real name.
18653: soname_spec=$lt_soname_spec
18654:
18655: # Permission mode override for installation of shared libraries.
18656: install_override_mode=$lt_install_override_mode
18657:
18658: # Command to use after installation of a shared archive.
18659: postinstall_cmds=$lt_postinstall_cmds
18660:
18661: # Command to use after uninstallation of a shared archive.
18662: postuninstall_cmds=$lt_postuninstall_cmds
18663:
18664: # Commands used to finish a libtool library installation in a directory.
18665: finish_cmds=$lt_finish_cmds
18666:
18667: # As "finish_cmds", except a single script fragment to be evaled but
18668: # not shown.
18669: finish_eval=$lt_finish_eval
18670:
18671: # Whether we should hardcode library paths into libraries.
18672: hardcode_into_libs=$hardcode_into_libs
18673:
18674: # Compile-time system search path for libraries.
18675: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18676:
18677: # Run-time system search path for libraries.
18678: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18679:
18680: # Whether dlopen is supported.
18681: dlopen_support=$enable_dlopen
18682:
18683: # Whether dlopen of programs is supported.
18684: dlopen_self=$enable_dlopen_self
18685:
18686: # Whether dlopen of statically linked programs is supported.
18687: dlopen_self_static=$enable_dlopen_self_static
18688:
18689: # Commands to strip libraries.
18690: old_striplib=$lt_old_striplib
18691: striplib=$lt_striplib
18692:
18693:
18694: # The linker used to build libraries.
18695: LD=$lt_LD
18696:
18697: # How to create reloadable object files.
18698: reload_flag=$lt_reload_flag
18699: reload_cmds=$lt_reload_cmds
18700:
18701: # Commands used to build an old-style archive.
18702: old_archive_cmds=$lt_old_archive_cmds
18703:
18704: # A language specific compiler.
18705: CC=$lt_compiler
18706:
18707: # Is the compiler the GNU compiler?
18708: with_gcc=$GCC
18709:
18710: # Compiler flag to turn off builtin functions.
18711: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18712:
18713: # Additional compiler flags for building library objects.
18714: pic_flag=$lt_lt_prog_compiler_pic
18715:
18716: # How to pass a linker flag through the compiler.
18717: wl=$lt_lt_prog_compiler_wl
18718:
18719: # Compiler flag to prevent dynamic linking.
18720: link_static_flag=$lt_lt_prog_compiler_static
18721:
18722: # Does compiler simultaneously support -c and -o options?
18723: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18724:
18725: # Whether or not to add -lc for building shared libraries.
18726: build_libtool_need_lc=$archive_cmds_need_lc
18727:
18728: # Whether or not to disallow shared libs when runtime libs are static.
18729: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18730:
18731: # Compiler flag to allow reflexive dlopens.
18732: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18733:
18734: # Compiler flag to generate shared objects directly from archives.
18735: whole_archive_flag_spec=$lt_whole_archive_flag_spec
18736:
18737: # Whether the compiler copes with passing no objects directly.
18738: compiler_needs_object=$lt_compiler_needs_object
18739:
18740: # Create an old-style archive from a shared archive.
18741: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18742:
18743: # Create a temporary old-style archive to link instead of a shared archive.
18744: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18745:
18746: # Commands used to build a shared archive.
18747: archive_cmds=$lt_archive_cmds
18748: archive_expsym_cmds=$lt_archive_expsym_cmds
18749:
18750: # Commands used to build a loadable module if different from building
18751: # a shared archive.
18752: module_cmds=$lt_module_cmds
18753: module_expsym_cmds=$lt_module_expsym_cmds
18754:
18755: # Whether we are building with GNU ld or not.
18756: with_gnu_ld=$lt_with_gnu_ld
18757:
18758: # Flag that allows shared libraries with undefined symbols to be built.
18759: allow_undefined_flag=$lt_allow_undefined_flag
18760:
18761: # Flag that enforces no undefined symbols.
18762: no_undefined_flag=$lt_no_undefined_flag
18763:
18764: # Flag to hardcode \$libdir into a binary during linking.
18765: # This must work even if \$libdir does not exist
18766: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18767:
18768: # Whether we need a single "-rpath" flag with a separated argument.
18769: hardcode_libdir_separator=$lt_hardcode_libdir_separator
18770:
18771: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18772: # DIR into the resulting binary.
18773: hardcode_direct=$hardcode_direct
18774:
18775: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18776: # DIR into the resulting binary and the resulting library dependency is
18777: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18778: # library is relocated.
18779: hardcode_direct_absolute=$hardcode_direct_absolute
18780:
18781: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18782: # into the resulting binary.
18783: hardcode_minus_L=$hardcode_minus_L
18784:
18785: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18786: # into the resulting binary.
18787: hardcode_shlibpath_var=$hardcode_shlibpath_var
18788:
18789: # Set to "yes" if building a shared library automatically hardcodes DIR
18790: # into the library and all subsequent libraries and executables linked
18791: # against it.
18792: hardcode_automatic=$hardcode_automatic
18793:
18794: # Set to yes if linker adds runtime paths of dependent libraries
18795: # to runtime path list.
18796: inherit_rpath=$inherit_rpath
18797:
18798: # Whether libtool must link a program against all its dependency libraries.
18799: link_all_deplibs=$link_all_deplibs
18800:
18801: # Set to "yes" if exported symbols are required.
18802: always_export_symbols=$always_export_symbols
18803:
18804: # The commands to list exported symbols.
18805: export_symbols_cmds=$lt_export_symbols_cmds
18806:
18807: # Symbols that should not be listed in the preloaded symbols.
18808: exclude_expsyms=$lt_exclude_expsyms
18809:
18810: # Symbols that must always be exported.
18811: include_expsyms=$lt_include_expsyms
18812:
18813: # Commands necessary for linking programs (against libraries) with templates.
18814: prelink_cmds=$lt_prelink_cmds
18815:
18816: # Commands necessary for finishing linking programs.
18817: postlink_cmds=$lt_postlink_cmds
18818:
18819: # Specify filename containing input files.
18820: file_list_spec=$lt_file_list_spec
18821:
18822: # How to hardcode a shared library path into an executable.
18823: hardcode_action=$hardcode_action
18824:
18825: # The directories searched by this compiler when creating a shared library.
18826: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18827:
18828: # Dependencies to place before and after the objects being linked to
18829: # create a shared library.
18830: predep_objects=$lt_predep_objects
18831: postdep_objects=$lt_postdep_objects
18832: predeps=$lt_predeps
18833: postdeps=$lt_postdeps
18834:
18835: # The library search path used internally by the compiler when linking
18836: # a shared library.
18837: compiler_lib_search_path=$lt_compiler_lib_search_path
18838:
18839: # ### END LIBTOOL CONFIG
18840:
18841: _LT_EOF
18842:
18843: case $host_os in
18844: aix3*)
18845: cat <<\_LT_EOF >> "$cfgfile"
18846: # AIX sometimes has problems with the GCC collect2 program. For some
18847: # reason, if we set the COLLECT_NAMES environment variable, the problems
18848: # vanish in a puff of smoke.
18849: if test "X${COLLECT_NAMES+set}" != Xset; then
18850: COLLECT_NAMES=
18851: export COLLECT_NAMES
18852: fi
18853: _LT_EOF
18854: ;;
18855: esac
18856:
18857:
18858: ltmain="$ac_aux_dir/ltmain.sh"
18859:
18860:
18861: # We use sed instead of cat because bash on DJGPP gets confused if
18862: # if finds mixed CR/LF and LF-only lines. Since sed operates in
18863: # text mode, it properly converts lines to CR/LF. This bash problem
18864: # is reportedly fixed, but why not run on old versions too?
18865: sed '$q' "$ltmain" >> "$cfgfile" \
18866: || (rm -f "$cfgfile"; exit 1)
18867:
18868: if test x"$xsi_shell" = xyes; then
18869: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18870: func_dirname ()\
18871: {\
18872: \ case ${1} in\
18873: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18874: \ * ) func_dirname_result="${3}" ;;\
18875: \ esac\
18876: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18877: && mv -f "$cfgfile.tmp" "$cfgfile" \
18878: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18879: test 0 -eq $? || _lt_function_replace_fail=:
18880:
18881:
18882: sed -e '/^func_basename ()$/,/^} # func_basename /c\
18883: func_basename ()\
18884: {\
18885: \ func_basename_result="${1##*/}"\
18886: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18887: && mv -f "$cfgfile.tmp" "$cfgfile" \
18888: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18889: test 0 -eq $? || _lt_function_replace_fail=:
18890:
18891:
18892: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18893: func_dirname_and_basename ()\
18894: {\
18895: \ case ${1} in\
18896: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18897: \ * ) func_dirname_result="${3}" ;;\
18898: \ esac\
18899: \ func_basename_result="${1##*/}"\
18900: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18901: && mv -f "$cfgfile.tmp" "$cfgfile" \
18902: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18903: test 0 -eq $? || _lt_function_replace_fail=:
18904:
18905:
18906: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18907: func_stripname ()\
18908: {\
18909: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18910: \ # positional parameters, so assign one to ordinary parameter first.\
18911: \ func_stripname_result=${3}\
18912: \ func_stripname_result=${func_stripname_result#"${1}"}\
18913: \ func_stripname_result=${func_stripname_result%"${2}"}\
18914: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18915: && mv -f "$cfgfile.tmp" "$cfgfile" \
18916: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18917: test 0 -eq $? || _lt_function_replace_fail=:
18918:
18919:
18920: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18921: func_split_long_opt ()\
18922: {\
18923: \ func_split_long_opt_name=${1%%=*}\
18924: \ func_split_long_opt_arg=${1#*=}\
18925: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18926: && mv -f "$cfgfile.tmp" "$cfgfile" \
18927: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18928: test 0 -eq $? || _lt_function_replace_fail=:
18929:
18930:
18931: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18932: func_split_short_opt ()\
18933: {\
18934: \ func_split_short_opt_arg=${1#??}\
18935: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18936: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18937: && mv -f "$cfgfile.tmp" "$cfgfile" \
18938: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18939: test 0 -eq $? || _lt_function_replace_fail=:
18940:
18941:
18942: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18943: func_lo2o ()\
18944: {\
18945: \ case ${1} in\
18946: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18947: \ *) func_lo2o_result=${1} ;;\
18948: \ esac\
18949: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18950: && mv -f "$cfgfile.tmp" "$cfgfile" \
18951: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18952: test 0 -eq $? || _lt_function_replace_fail=:
18953:
18954:
18955: sed -e '/^func_xform ()$/,/^} # func_xform /c\
18956: func_xform ()\
18957: {\
18958: func_xform_result=${1%.*}.lo\
18959: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18960: && mv -f "$cfgfile.tmp" "$cfgfile" \
18961: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18962: test 0 -eq $? || _lt_function_replace_fail=:
18963:
18964:
18965: sed -e '/^func_arith ()$/,/^} # func_arith /c\
18966: func_arith ()\
18967: {\
18968: func_arith_result=$(( $* ))\
18969: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18970: && mv -f "$cfgfile.tmp" "$cfgfile" \
18971: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18972: test 0 -eq $? || _lt_function_replace_fail=:
18973:
18974:
18975: sed -e '/^func_len ()$/,/^} # func_len /c\
18976: func_len ()\
18977: {\
18978: func_len_result=${#1}\
18979: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18980: && mv -f "$cfgfile.tmp" "$cfgfile" \
18981: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18982: test 0 -eq $? || _lt_function_replace_fail=:
18983:
18984: fi
18985:
18986: if test x"$lt_shell_append" = xyes; then
18987: sed -e '/^func_append ()$/,/^} # func_append /c\
18988: func_append ()\
18989: {\
18990: eval "${1}+=\\${2}"\
18991: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18992: && mv -f "$cfgfile.tmp" "$cfgfile" \
18993: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18994: test 0 -eq $? || _lt_function_replace_fail=:
18995:
18996:
18997: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18998: func_append_quoted ()\
18999: {\
19000: \ func_quote_for_eval "${2}"\
19001: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19002: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19003: && mv -f "$cfgfile.tmp" "$cfgfile" \
19004: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19005: test 0 -eq $? || _lt_function_replace_fail=:
19006:
19007:
19008: # Save a `func_append' function call where possible by direct use of '+='
19009: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19010: && mv -f "$cfgfile.tmp" "$cfgfile" \
19011: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19012: test 0 -eq $? || _lt_function_replace_fail=:
19013: else
19014: # Save a `func_append' function call even when '+=' is not available
19015: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19016: && mv -f "$cfgfile.tmp" "$cfgfile" \
19017: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19018: test 0 -eq $? || _lt_function_replace_fail=:
19019: fi
19020:
19021: if test x"$_lt_function_replace_fail" = x":"; then
1.43 moko 19022: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19023: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.35 moko 19024: fi
19025:
19026:
19027: mv -f "$cfgfile" "$ofile" ||
19028: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19029: chmod +x "$ofile"
19030:
19031:
19032: cat <<_LT_EOF >> "$ofile"
19033:
19034: # ### BEGIN LIBTOOL TAG CONFIG: CXX
19035:
19036: # The linker used to build libraries.
19037: LD=$lt_LD_CXX
19038:
19039: # How to create reloadable object files.
19040: reload_flag=$lt_reload_flag_CXX
19041: reload_cmds=$lt_reload_cmds_CXX
19042:
19043: # Commands used to build an old-style archive.
19044: old_archive_cmds=$lt_old_archive_cmds_CXX
19045:
19046: # A language specific compiler.
19047: CC=$lt_compiler_CXX
19048:
19049: # Is the compiler the GNU compiler?
19050: with_gcc=$GCC_CXX
19051:
19052: # Compiler flag to turn off builtin functions.
19053: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19054:
19055: # Additional compiler flags for building library objects.
19056: pic_flag=$lt_lt_prog_compiler_pic_CXX
19057:
19058: # How to pass a linker flag through the compiler.
19059: wl=$lt_lt_prog_compiler_wl_CXX
19060:
19061: # Compiler flag to prevent dynamic linking.
19062: link_static_flag=$lt_lt_prog_compiler_static_CXX
19063:
19064: # Does compiler simultaneously support -c and -o options?
19065: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19066:
19067: # Whether or not to add -lc for building shared libraries.
19068: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19069:
19070: # Whether or not to disallow shared libs when runtime libs are static.
19071: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19072:
19073: # Compiler flag to allow reflexive dlopens.
19074: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19075:
19076: # Compiler flag to generate shared objects directly from archives.
19077: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19078:
19079: # Whether the compiler copes with passing no objects directly.
19080: compiler_needs_object=$lt_compiler_needs_object_CXX
19081:
19082: # Create an old-style archive from a shared archive.
19083: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19084:
19085: # Create a temporary old-style archive to link instead of a shared archive.
19086: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19087:
19088: # Commands used to build a shared archive.
19089: archive_cmds=$lt_archive_cmds_CXX
19090: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19091:
19092: # Commands used to build a loadable module if different from building
19093: # a shared archive.
19094: module_cmds=$lt_module_cmds_CXX
19095: module_expsym_cmds=$lt_module_expsym_cmds_CXX
19096:
19097: # Whether we are building with GNU ld or not.
19098: with_gnu_ld=$lt_with_gnu_ld_CXX
19099:
19100: # Flag that allows shared libraries with undefined symbols to be built.
19101: allow_undefined_flag=$lt_allow_undefined_flag_CXX
19102:
19103: # Flag that enforces no undefined symbols.
19104: no_undefined_flag=$lt_no_undefined_flag_CXX
19105:
19106: # Flag to hardcode \$libdir into a binary during linking.
19107: # This must work even if \$libdir does not exist
19108: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19109:
19110: # Whether we need a single "-rpath" flag with a separated argument.
19111: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19112:
19113: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19114: # DIR into the resulting binary.
19115: hardcode_direct=$hardcode_direct_CXX
19116:
19117: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19118: # DIR into the resulting binary and the resulting library dependency is
19119: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19120: # library is relocated.
19121: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19122:
19123: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19124: # into the resulting binary.
19125: hardcode_minus_L=$hardcode_minus_L_CXX
19126:
19127: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19128: # into the resulting binary.
19129: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19130:
19131: # Set to "yes" if building a shared library automatically hardcodes DIR
19132: # into the library and all subsequent libraries and executables linked
19133: # against it.
19134: hardcode_automatic=$hardcode_automatic_CXX
19135:
19136: # Set to yes if linker adds runtime paths of dependent libraries
19137: # to runtime path list.
19138: inherit_rpath=$inherit_rpath_CXX
19139:
19140: # Whether libtool must link a program against all its dependency libraries.
19141: link_all_deplibs=$link_all_deplibs_CXX
19142:
19143: # Set to "yes" if exported symbols are required.
19144: always_export_symbols=$always_export_symbols_CXX
19145:
19146: # The commands to list exported symbols.
19147: export_symbols_cmds=$lt_export_symbols_cmds_CXX
19148:
19149: # Symbols that should not be listed in the preloaded symbols.
19150: exclude_expsyms=$lt_exclude_expsyms_CXX
19151:
19152: # Symbols that must always be exported.
19153: include_expsyms=$lt_include_expsyms_CXX
19154:
19155: # Commands necessary for linking programs (against libraries) with templates.
19156: prelink_cmds=$lt_prelink_cmds_CXX
19157:
19158: # Commands necessary for finishing linking programs.
19159: postlink_cmds=$lt_postlink_cmds_CXX
19160:
19161: # Specify filename containing input files.
19162: file_list_spec=$lt_file_list_spec_CXX
19163:
19164: # How to hardcode a shared library path into an executable.
19165: hardcode_action=$hardcode_action_CXX
19166:
19167: # The directories searched by this compiler when creating a shared library.
19168: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19169:
19170: # Dependencies to place before and after the objects being linked to
19171: # create a shared library.
19172: predep_objects=$lt_predep_objects_CXX
19173: postdep_objects=$lt_postdep_objects_CXX
19174: predeps=$lt_predeps_CXX
19175: postdeps=$lt_postdeps_CXX
19176:
19177: # The library search path used internally by the compiler when linking
19178: # a shared library.
19179: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19180:
19181: # ### END LIBTOOL TAG CONFIG: CXX
19182: _LT_EOF
1.1 parser 19183:
1.15 paf 19184: ;;
1.43 moko 19185:
1.15 paf 19186: esac
1.43 moko 19187: done # for ac_tag
1.1 parser 19188:
19189:
1.43 moko 19190: as_fn_exit 0
1.15 paf 19191: _ACEOF
19192: ac_clean_files=$ac_clean_files_save
19193:
1.43 moko 19194: test $ac_write_fail = 0 ||
19195: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19196:
1.15 paf 19197:
19198: # configure is writing to config.log, and then calls config.status.
19199: # config.status does its own redirection, appending to config.log.
19200: # Unfortunately, on DOS this fails, as config.log is still kept open
19201: # by configure, so config.status won't be able to write to it; its
19202: # output is simply discarded. So we exec the FD to /dev/null,
19203: # effectively closing config.log, so it can be properly (re)opened and
19204: # appended to by config.status. When coming back to configure, we
19205: # need to make the FD available again.
19206: if test "$no_create" != yes; then
19207: ac_cs_success=:
19208: ac_config_status_args=
19209: test "$silent" = yes &&
19210: ac_config_status_args="$ac_config_status_args --quiet"
19211: exec 5>/dev/null
19212: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19213: exec 5>>config.log
19214: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19215: # would make configure fail if this is the last instruction.
1.43 moko 19216: $ac_cs_success || as_fn_exit 1
1.15 paf 19217: fi
1.1 parser 19218:
1.15 paf 19219: #
19220: # CONFIG_SUBDIRS section.
19221: #
1.1 parser 19222: if test "$no_recursion" != yes; then
19223:
1.43 moko 19224: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19225: # so they do not pile up.
1.1 parser 19226: ac_sub_configure_args=
19227: ac_prev=
1.43 moko 19228: eval "set x $ac_configure_args"
19229: shift
19230: for ac_arg
19231: do
1.1 parser 19232: if test -n "$ac_prev"; then
19233: ac_prev=
19234: continue
19235: fi
1.15 paf 19236: case $ac_arg in
1.1 parser 19237: -cache-file | --cache-file | --cache-fil | --cache-fi \
19238: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19239: ac_prev=cache_file ;;
19240: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.15 paf 19241: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19242: | --c=*)
19243: ;;
19244: --config-cache | -C)
1.1 parser 19245: ;;
19246: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19247: ac_prev=srcdir ;;
19248: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19249: ;;
1.15 paf 19250: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19251: ac_prev=prefix ;;
19252: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19253: ;;
1.43 moko 19254: --disable-option-checking)
19255: ;;
19256: *)
19257: case $ac_arg in
19258: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19259: esac
19260: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 parser 19261: esac
19262: done
19263:
1.15 paf 19264: # Always prepend --prefix to ensure using the same prefix
19265: # in subdir configurations.
1.43 moko 19266: ac_arg="--prefix=$prefix"
19267: case $ac_arg in
19268: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19269: esac
19270: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19271:
19272: # Pass --silent
19273: if test "$silent" = yes; then
19274: ac_sub_configure_args="--silent $ac_sub_configure_args"
19275: fi
19276:
19277: # Always prepend --disable-option-checking to silence warnings, since
19278: # different subdirs can have different --enable and --with options.
19279: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.15 paf 19280:
19281: ac_popdir=`pwd`
19282: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 19283:
19284: # Do not complain, so a configure script can configure whichever
19285: # parts of a large source tree are present.
1.43 moko 19286: test -d "$srcdir/$ac_dir" || continue
1.15 paf 19287:
1.43 moko 19288: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19289: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19290: $as_echo "$ac_msg" >&6
19291: as_dir="$ac_dir"; as_fn_mkdir_p
1.15 paf 19292: ac_builddir=.
19293:
1.43 moko 19294: case "$ac_dir" in
19295: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19296: *)
19297: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19298: # A ".." for each directory in $ac_dir_suffix.
19299: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19300: case $ac_top_builddir_sub in
19301: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19302: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19303: esac ;;
19304: esac
19305: ac_abs_top_builddir=$ac_pwd
19306: ac_abs_builddir=$ac_pwd$ac_dir_suffix
19307: # for backward compatibility:
19308: ac_top_builddir=$ac_top_build_prefix
1.15 paf 19309:
19310: case $srcdir in
1.43 moko 19311: .) # We are building in place.
1.15 paf 19312: ac_srcdir=.
1.43 moko 19313: ac_top_srcdir=$ac_top_builddir_sub
19314: ac_abs_top_srcdir=$ac_pwd ;;
19315: [\\/]* | ?:[\\/]* ) # Absolute name.
1.15 paf 19316: ac_srcdir=$srcdir$ac_dir_suffix;
1.43 moko 19317: ac_top_srcdir=$srcdir
19318: ac_abs_top_srcdir=$srcdir ;;
19319: *) # Relative name.
19320: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19321: ac_top_srcdir=$ac_top_build_prefix$srcdir
19322: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.25 paf 19323: esac
1.43 moko 19324: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 parser 19325:
19326:
1.43 moko 19327: cd "$ac_dir"
1.1 parser 19328:
19329: # Check for guested configure; otherwise get Cygnus style configure.
1.43 moko 19330: if test -f "$ac_srcdir/configure.gnu"; then
19331: ac_sub_configure=$ac_srcdir/configure.gnu
19332: elif test -f "$ac_srcdir/configure"; then
19333: ac_sub_configure=$ac_srcdir/configure
19334: elif test -f "$ac_srcdir/configure.in"; then
19335: # This should be Cygnus configure.
19336: ac_sub_configure=$ac_aux_dir/configure
1.1 parser 19337: else
1.43 moko 19338: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19339: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 19340: ac_sub_configure=
19341: fi
19342:
19343: # The recursion is here.
19344: if test -n "$ac_sub_configure"; then
19345: # Make the cache file name correct relative to the subdirectory.
1.15 paf 19346: case $cache_file in
19347: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.43 moko 19348: *) # Relative name.
19349: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 parser 19350: esac
19351:
1.43 moko 19352: { $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
19353: $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 19354: # The eval makes quoting arguments work.
1.43 moko 19355: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19356: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19357: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 parser 19358: fi
19359:
1.43 moko 19360: cd "$ac_popdir"
1.1 parser 19361: done
19362: fi
1.43 moko 19363: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19364: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19365: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19366: fi
1.1 parser 19367:
E-mail: