Annotation of parser3/configure, revision 1.217
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.214 moko 3: # Generated by GNU Autoconf 2.69 for parser 3.4.7b.
1.150 moko 4: #
5: #
1.166 moko 6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.150 moko 7: #
1.1 paf 8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
1.150 moko 11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
1.62 paf 14:
1.150 moko 15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 18: emulate sh
19: NULLCMD=:
1.150 moko 20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
1.150 moko 23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 70: fi
71:
1.150 moko 72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
1.62 paf 79: fi
80:
81:
1.150 moko 82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
90: as_myself=
91: case $0 in #((
92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
104: # We did not find ourselves, most probably we were run as `sh COMMAND'
105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111: exit 1
112: fi
113:
114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121: done
1.62 paf 122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
1.150 moko 127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134:
1.166 moko 135: # Use a proper internal environment variable to ensure we don't fall
136: # into an infinite loop, continuously re-executing ourselves.
137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138: _as_can_reexec=no; export _as_can_reexec;
139: # We cannot yet assume a decent shell, so we have to provide a
140: # neutralization value for shells without unset; and this also
141: # works around shells that cannot unset nonexistent variables.
142: # Preserve -v and -x to the replacement shell.
143: BASH_ENV=/dev/null
144: ENV=/dev/null
145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146: case $- in # ((((
147: *v*x* | *x*v* ) as_opts=-vx ;;
148: *v* ) as_opts=-v ;;
149: *x* ) as_opts=-x ;;
150: * ) as_opts= ;;
151: esac
152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153: # Admittedly, this is quite paranoid, since all the known shells bail
154: # out after a failed `exec'.
155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156: as_fn_exit 255
157: fi
158: # We don't want this to propagate to other subprocesses.
159: { _as_can_reexec=; unset _as_can_reexec;}
1.150 moko 160: if test "x$CONFIG_SHELL" = x; then
161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
168: else
169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
175: fi
176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
182:
183: exitcode=0
184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
1.166 moko 193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
1.150 moko 195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199:
200: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204: PATH=/empty FPATH=/empty; export PATH FPATH
205: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207: test \$(( 1 + 1 )) = 2 || exit 1"
208: if (eval "$as_required") 2>/dev/null; then :
209: as_have_required=yes
210: else
211: as_have_required=no
212: fi
213: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214:
215: else
216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217: as_found=false
218: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.62 paf 219: do
1.150 moko 220: IFS=$as_save_IFS
221: test -z "$as_dir" && as_dir=.
222: as_found=:
223: case $as_dir in #(
224: /*)
225: for as_base in sh bash ksh sh5; do
226: # Try only shells that exist, to save several forks.
227: as_shell=$as_dir/$as_base
228: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230: CONFIG_SHELL=$as_shell as_have_required=yes
231: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: break 2
233: fi
234: fi
235: done;;
236: esac
237: as_found=false
238: done
239: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241: CONFIG_SHELL=$SHELL as_have_required=yes
242: fi; }
243: IFS=$as_save_IFS
244:
245:
246: if test "x$CONFIG_SHELL" != x; then :
1.166 moko 247: export CONFIG_SHELL
248: # We cannot yet assume a decent shell, so we have to provide a
249: # neutralization value for shells without unset; and this also
250: # works around shells that cannot unset nonexistent variables.
251: # Preserve -v and -x to the replacement shell.
252: BASH_ENV=/dev/null
253: ENV=/dev/null
254: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255: case $- in # ((((
256: *v*x* | *x*v* ) as_opts=-vx ;;
257: *v* ) as_opts=-v ;;
258: *x* ) as_opts=-x ;;
259: * ) as_opts= ;;
260: esac
261: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262: # Admittedly, this is quite paranoid, since all the known shells bail
263: # out after a failed `exec'.
264: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265: exit 255
1.150 moko 266: fi
267:
268: if test x$as_have_required = xno; then :
269: $as_echo "$0: This script requires a shell more modern than all"
270: $as_echo "$0: the shells that I found on your system."
271: if test x${ZSH_VERSION+set} = xset ; then
272: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1.62 paf 274: else
1.150 moko 275: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276: $0: including any error possibly output before this
277: $0: message. Then install a modern shell, or manually run
278: $0: the script under such a shell if you do have one."
1.62 paf 279: fi
1.150 moko 280: exit 1
281: fi
282: fi
283: fi
284: SHELL=${CONFIG_SHELL-/bin/sh}
285: export SHELL
286: # Unset more variables known to interfere with behavior of common tools.
287: CLICOLOR_FORCE= GREP_OPTIONS=
288: unset CLICOLOR_FORCE GREP_OPTIONS
289:
290: ## --------------------- ##
291: ## M4sh Shell Functions. ##
292: ## --------------------- ##
293: # as_fn_unset VAR
294: # ---------------
295: # Portably unset VAR.
296: as_fn_unset ()
297: {
298: { eval $1=; unset $1;}
299: }
300: as_unset=as_fn_unset
301:
302: # as_fn_set_status STATUS
303: # -----------------------
304: # Set $? to STATUS, without forking.
305: as_fn_set_status ()
306: {
307: return $1
308: } # as_fn_set_status
309:
310: # as_fn_exit STATUS
311: # -----------------
312: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313: as_fn_exit ()
314: {
315: set +e
316: as_fn_set_status $1
317: exit $1
318: } # as_fn_exit
319:
320: # as_fn_mkdir_p
321: # -------------
322: # Create "$as_dir" as a directory, including parents if necessary.
323: as_fn_mkdir_p ()
324: {
325:
326: case $as_dir in #(
327: -*) as_dir=./$as_dir;;
328: esac
329: test -d "$as_dir" || eval $as_mkdir_p || {
330: as_dirs=
331: while :; do
332: case $as_dir in #(
333: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334: *) as_qdir=$as_dir;;
335: esac
336: as_dirs="'$as_qdir' $as_dirs"
337: as_dir=`$as_dirname -- "$as_dir" ||
338: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339: X"$as_dir" : 'X\(//\)[^/]' \| \
340: X"$as_dir" : 'X\(//\)$' \| \
341: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342: $as_echo X"$as_dir" |
343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\/\)[^/].*/{
348: s//\1/
349: q
350: }
351: /^X\(\/\/\)$/{
352: s//\1/
353: q
354: }
355: /^X\(\/\).*/{
356: s//\1/
357: q
358: }
359: s/.*/./; q'`
360: test -d "$as_dir" && break
361: done
362: test -z "$as_dirs" || eval "mkdir $as_dirs"
363: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364:
365:
366: } # as_fn_mkdir_p
1.166 moko 367:
368: # as_fn_executable_p FILE
369: # -----------------------
370: # Test if FILE is an executable regular file.
371: as_fn_executable_p ()
372: {
373: test -f "$1" && test -x "$1"
374: } # as_fn_executable_p
1.150 moko 375: # as_fn_append VAR VALUE
376: # ----------------------
377: # Append the text in VALUE to the end of the definition contained in VAR. Take
378: # advantage of any shell optimizations that allow amortized linear growth over
379: # repeated appends, instead of the typical quadratic growth present in naive
380: # implementations.
381: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382: eval 'as_fn_append ()
383: {
384: eval $1+=\$2
385: }'
386: else
387: as_fn_append ()
388: {
389: eval $1=\$$1\$2
390: }
391: fi # as_fn_append
392:
393: # as_fn_arith ARG...
394: # ------------------
395: # Perform arithmetic evaluation on the ARGs, and store the result in the
396: # global $as_val. Take advantage of shells that can avoid forks. The arguments
397: # must be portable across $(()) and expr.
398: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399: eval 'as_fn_arith ()
400: {
401: as_val=$(( $* ))
402: }'
403: else
404: as_fn_arith ()
405: {
406: as_val=`expr "$@" || test $? -eq 1`
407: }
408: fi # as_fn_arith
409:
410:
411: # as_fn_error STATUS ERROR [LINENO LOG_FD]
412: # ----------------------------------------
413: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415: # script with STATUS, using 1 if that was 0.
416: as_fn_error ()
417: {
418: as_status=$1; test $as_status -eq 0 && as_status=1
419: if test "$4"; then
420: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422: fi
423: $as_echo "$as_me: error: $2" >&2
424: as_fn_exit $as_status
425: } # as_fn_error
1.62 paf 426:
1.150 moko 427: if expr a : '\(a\)' >/dev/null 2>&1 &&
428: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 429: as_expr=expr
430: else
431: as_expr=false
432: fi
433:
1.150 moko 434: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 435: as_basename=basename
436: else
437: as_basename=false
438: fi
439:
1.150 moko 440: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441: as_dirname=dirname
442: else
443: as_dirname=false
444: fi
1.62 paf 445:
1.150 moko 446: as_me=`$as_basename -- "$0" ||
1.62 paf 447: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448: X"$0" : 'X\(//\)$' \| \
1.150 moko 449: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450: $as_echo X/"$0" |
451: sed '/^.*\/\([^/][^/]*\)\/*$/{
452: s//\1/
453: q
454: }
455: /^X\/\(\/\/\)$/{
456: s//\1/
457: q
458: }
459: /^X\/\(\/\).*/{
460: s//\1/
461: q
462: }
463: s/.*/./; q'`
1.62 paf 464:
465: # Avoid depending upon Character Ranges.
466: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469: as_cr_digits='0123456789'
470: as_cr_alnum=$as_cr_Letters$as_cr_digits
471:
472:
1.150 moko 473: as_lineno_1=$LINENO as_lineno_1a=$LINENO
474: as_lineno_2=$LINENO as_lineno_2a=$LINENO
475: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478: sed -n '
479: p
480: /[$]LINENO/=
481: ' <$as_myself |
1.62 paf 482: sed '
1.150 moko 483: s/[$]LINENO.*/&-/
484: t lineno
485: b
486: :lineno
1.62 paf 487: N
1.150 moko 488: :loop
489: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.62 paf 490: t loop
1.150 moko 491: s/-\n.*//
1.62 paf 492: ' >$as_me.lineno &&
1.150 moko 493: chmod +x "$as_me.lineno" ||
494: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.62 paf 495:
1.166 moko 496: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497: # already done that, so ensure we don't try to do so again and fall
498: # in an infinite loop. This has already happened in practice.
499: _as_can_reexec=no; export _as_can_reexec
1.62 paf 500: # Don't try to exec as it changes $[0], causing all sort of problems
501: # (the dirname of $[0] is not the place where we might find the
1.150 moko 502: # original and so on. Autoconf is especially sensitive to this).
503: . "./$as_me.lineno"
1.62 paf 504: # Exit status is that of the last command.
505: exit
506: }
507:
1.150 moko 508: ECHO_C= ECHO_N= ECHO_T=
509: case `echo -n x` in #(((((
510: -n*)
511: case `echo 'xy\c'` in
512: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513: xy) ECHO_C='\c';;
514: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515: ECHO_T=' ';;
516: esac;;
517: *)
518: ECHO_N='-n';;
1.62 paf 519: esac
520:
1.150 moko 521: rm -f conf$$ conf$$.exe conf$$.file
522: if test -d conf$$.dir; then
523: rm -f conf$$.dir/conf$$.file
1.62 paf 524: else
1.150 moko 525: rm -f conf$$.dir
526: mkdir conf$$.dir 2>/dev/null
1.62 paf 527: fi
1.150 moko 528: if (echo >conf$$.file) 2>/dev/null; then
529: if ln -s conf$$.file conf$$ 2>/dev/null; then
530: as_ln_s='ln -s'
531: # ... but there are two gotchas:
532: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 534: # In both cases, we have to default to `cp -pR'.
1.150 moko 535: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 536: as_ln_s='cp -pR'
1.150 moko 537: elif ln conf$$.file conf$$ 2>/dev/null; then
538: as_ln_s=ln
539: else
1.166 moko 540: as_ln_s='cp -pR'
1.62 paf 541: fi
542: else
1.166 moko 543: as_ln_s='cp -pR'
1.62 paf 544: fi
1.150 moko 545: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546: rmdir conf$$.dir 2>/dev/null
1.62 paf 547:
548: if mkdir -p . 2>/dev/null; then
1.150 moko 549: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 550: else
1.86 paf 551: test -d ./-p && rmdir ./-p
1.62 paf 552: as_mkdir_p=false
553: fi
554:
1.166 moko 555: as_test_x='test -x'
556: as_executable_p=as_fn_executable_p
1.62 paf 557:
558: # Sed expression to map a string onto a valid CPP name.
1.86 paf 559: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 560:
561: # Sed expression to map a string onto a valid variable name.
1.86 paf 562: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 563:
1.128 moko 564: lt_ltdl_dir='src/lib/ltdl'
565:
566: SHELL=${CONFIG_SHELL-/bin/sh}
567:
568: lt_dlopen_dir="$lt_ltdl_dir"
569:
1.1 paf 570:
1.150 moko 571: test -n "$DJDIR" || exec 7<&0 </dev/null
572: exec 6>&1
573:
1.62 paf 574: # Name of the host.
1.150 moko 575: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.62 paf 576: # so uname gets run too.
577: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578:
579: #
580: # Initializations.
581: #
1.1 paf 582: ac_default_prefix=/usr/local
1.150 moko 583: ac_clean_files=
1.62 paf 584: ac_config_libobj_dir=.
1.150 moko 585: LIBOBJS=
1.62 paf 586: cross_compiling=no
587: subdirs=
588: MFLAGS=
589: MAKEFLAGS=
590:
591: # Identity of this package.
1.128 moko 592: PACKAGE_NAME='parser'
593: PACKAGE_TARNAME='parser'
1.214 moko 594: PACKAGE_VERSION='3.4.7b'
595: PACKAGE_STRING='parser 3.4.7b'
1.128 moko 596: PACKAGE_BUGREPORT=''
1.150 moko 597: PACKAGE_URL=''
1.62 paf 598:
599: ac_unique_file="README"
600: # Factoring default headers for most tests.
601: ac_includes_default="\
602: #include <stdio.h>
1.150 moko 603: #ifdef HAVE_SYS_TYPES_H
1.62 paf 604: # include <sys/types.h>
605: #endif
1.150 moko 606: #ifdef HAVE_SYS_STAT_H
1.62 paf 607: # include <sys/stat.h>
608: #endif
1.150 moko 609: #ifdef STDC_HEADERS
1.62 paf 610: # include <stdlib.h>
611: # include <stddef.h>
612: #else
1.150 moko 613: # ifdef HAVE_STDLIB_H
1.62 paf 614: # include <stdlib.h>
615: # endif
616: #endif
1.150 moko 617: #ifdef HAVE_STRING_H
618: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.62 paf 619: # include <memory.h>
620: # endif
621: # include <string.h>
622: #endif
1.150 moko 623: #ifdef HAVE_STRINGS_H
1.62 paf 624: # include <strings.h>
625: #endif
1.150 moko 626: #ifdef HAVE_INTTYPES_H
1.62 paf 627: # include <inttypes.h>
628: #endif
1.150 moko 629: #ifdef HAVE_STDINT_H
630: # include <stdint.h>
631: #endif
632: #ifdef HAVE_UNISTD_H
1.62 paf 633: # include <unistd.h>
634: #endif"
635:
1.150 moko 636: enable_option_checking=no
637: ac_subst_vars='ltdl_LTLIBOBJS
638: ltdl_LIBOBJS
639: am__EXEEXT_FALSE
640: am__EXEEXT_TRUE
641: LTLIBOBJS
642: LIBOBJS
643: LTDLOPEN
644: LT_CONFIG_H
645: subdirs
646: CONVENIENCE_LTDL_FALSE
647: CONVENIENCE_LTDL_TRUE
648: INSTALL_LTDL_FALSE
649: INSTALL_LTDL_TRUE
650: ARGZ_H
651: sys_symbol_underscore
652: LIBADD_DL
653: LT_DLPREOPEN
654: LIBADD_DLD_LINK
655: LIBADD_SHL_LOAD
656: LIBADD_DLOPEN
657: LT_DLLOADERS
658: INCLTDL
659: LTDLINCL
660: LTDLDEPS
661: LIBLTDL
662: CXXCPP
663: CPP
664: OTOOL64
665: OTOOL
666: LIPO
667: NMEDIT
668: DSYMUTIL
669: MANIFEST_TOOL
670: RANLIB
671: ac_ct_AR
672: AR
673: LN_S
674: NM
675: ac_ct_DUMPBIN
676: DUMPBIN
677: LD
678: FGREP
679: EGREP
680: GREP
681: SED
682: LIBTOOL
683: OBJDUMP
684: DLLTOOL
685: AS
686: COMPILE_APACHE_MODULE_FALSE
687: COMPILE_APACHE_MODULE_TRUE
688: APACHE_CFLAGS
689: APACHE_INC
690: APACHE
691: MIME_LIBS
692: MIME_INCLUDES
693: XML_LIBS
694: XML_INCLUDES
695: PCRE_LIBS
696: PCRE_INCLUDES
697: GC_LIBS
698: dll_extension
699: am__fastdepCC_FALSE
700: am__fastdepCC_TRUE
701: CCDEPMODE
702: ac_ct_CC
703: CFLAGS
704: CC
705: am__fastdepCXX_FALSE
706: am__fastdepCXX_TRUE
707: CXXDEPMODE
1.187 moko 708: am__nodep
1.150 moko 709: AMDEPBACKSLASH
710: AMDEP_FALSE
711: AMDEP_TRUE
712: am__include
713: DEPDIR
714: OBJEXT
715: EXEEXT
716: ac_ct_CXX
717: CPPFLAGS
718: LDFLAGS
719: CXXFLAGS
720: CXX
721: YFLAGS
722: YACC
723: host_os
724: host_vendor
725: host_cpu
726: host
727: build_os
728: build_vendor
729: build_cpu
730: build
731: P3S
1.187 moko 732: AM_BACKSLASH
733: AM_DEFAULT_VERBOSITY
734: AM_DEFAULT_V
735: AM_V
1.150 moko 736: am__untar
737: am__tar
738: AMTAR
739: am__leading_dot
740: SET_MAKE
741: AWK
742: mkdir_p
743: MKDIR_P
744: INSTALL_STRIP_PROGRAM
745: STRIP
746: install_sh
747: MAKEINFO
748: AUTOHEADER
749: AUTOMAKE
750: AUTOCONF
751: ACLOCAL
752: VERSION
753: PACKAGE
754: CYGPATH_W
755: am__isrc
756: INSTALL_DATA
757: INSTALL_SCRIPT
758: INSTALL_PROGRAM
759: target_alias
760: host_alias
761: build_alias
762: LIBS
763: ECHO_T
764: ECHO_N
765: ECHO_C
766: DEFS
767: mandir
768: localedir
769: libdir
770: psdir
771: pdfdir
772: dvidir
773: htmldir
774: infodir
775: docdir
776: oldincludedir
777: includedir
1.191 moko 778: runstatedir
1.150 moko 779: localstatedir
780: sharedstatedir
781: sysconfdir
782: datadir
783: datarootdir
784: libexecdir
785: sbindir
786: bindir
787: program_transform_name
788: prefix
789: exec_prefix
790: PACKAGE_URL
791: PACKAGE_BUGREPORT
792: PACKAGE_STRING
793: PACKAGE_VERSION
794: PACKAGE_TARNAME
795: PACKAGE_NAME
796: PATH_SEPARATOR
1.199 moko 797: SHELL
798: am__quote'
1.62 paf 799: ac_subst_files=''
1.150 moko 800: ac_user_opts='
801: enable_option_checking
1.187 moko 802: enable_silent_rules
1.150 moko 803: enable_dependency_tracking
804: with_build_warnings
1.182 moko 805: with_coverage
806: with_profiler
1.150 moko 807: with_assertions
808: with_sjlj_exceptions
1.203 moko 809: with_system_cfg
1.150 moko 810: enable_safe_mode
811: enable_execs
812: enable_stringstream
813: with_gc
814: with_pcre
815: with_xml
1.154 moko 816: with_mailreceive
1.150 moko 817: with_sendmail
818: with_apache
819: with_pic
820: enable_shared
821: enable_static
822: enable_fast_install
823: with_gnu_ld
824: with_sysroot
825: enable_libtool_lock
826: with_included_ltdl
827: with_ltdl_include
828: with_ltdl_lib
829: enable_ltdl_install
1.171 moko 830: enable_largefile
1.150 moko 831: '
832: ac_precious_vars='build_alias
833: host_alias
834: target_alias
835: YACC
836: YFLAGS
837: CXX
838: CXXFLAGS
839: LDFLAGS
840: LIBS
841: CPPFLAGS
842: CCC
843: CC
844: CFLAGS
845: CPP
846: CXXCPP'
847: ac_subdirs_all='src/lib/ltdl'
1.1 paf 848:
849: # Initialize some variables set by options.
1.62 paf 850: ac_init_help=
851: ac_init_version=false
1.150 moko 852: ac_unrecognized_opts=
853: ac_unrecognized_sep=
1.1 paf 854: # The variables have the same names as the options, with
855: # dashes changed to underlines.
1.62 paf 856: cache_file=/dev/null
1.1 paf 857: exec_prefix=NONE
858: no_create=
859: no_recursion=
860: prefix=NONE
861: program_prefix=NONE
862: program_suffix=NONE
863: program_transform_name=s,x,x,
864: silent=
865: site=
866: srcdir=
867: verbose=
868: x_includes=NONE
869: x_libraries=NONE
1.62 paf 870:
871: # Installation directory options.
872: # These are left unexpanded so users can "make install exec_prefix=/foo"
873: # and all the variables that are supposed to be based on exec_prefix
874: # by default will actually change.
875: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 876: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 877: bindir='${exec_prefix}/bin'
878: sbindir='${exec_prefix}/sbin'
879: libexecdir='${exec_prefix}/libexec'
1.150 moko 880: datarootdir='${prefix}/share'
881: datadir='${datarootdir}'
1.1 paf 882: sysconfdir='${prefix}/etc'
883: sharedstatedir='${prefix}/com'
884: localstatedir='${prefix}/var'
1.191 moko 885: runstatedir='${localstatedir}/run'
1.1 paf 886: includedir='${prefix}/include'
887: oldincludedir='/usr/include'
1.150 moko 888: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889: infodir='${datarootdir}/info'
890: htmldir='${docdir}'
891: dvidir='${docdir}'
892: pdfdir='${docdir}'
893: psdir='${docdir}'
894: libdir='${exec_prefix}/lib'
895: localedir='${datarootdir}/locale'
896: mandir='${datarootdir}/man'
1.1 paf 897:
898: ac_prev=
1.150 moko 899: ac_dashdash=
1.1 paf 900: for ac_option
901: do
902: # If the previous option needs an argument, assign it.
903: if test -n "$ac_prev"; then
1.150 moko 904: eval $ac_prev=\$ac_option
1.1 paf 905: ac_prev=
906: continue
907: fi
908:
1.150 moko 909: case $ac_option in
910: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911: *=) ac_optarg= ;;
912: *) ac_optarg=yes ;;
913: esac
1.1 paf 914:
915: # Accept the important Cygnus configure options, so we can diagnose typos.
916:
1.150 moko 917: case $ac_dashdash$ac_option in
918: --)
919: ac_dashdash=yes ;;
1.1 paf 920:
921: -bindir | --bindir | --bindi | --bind | --bin | --bi)
922: ac_prev=bindir ;;
923: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 924: bindir=$ac_optarg ;;
1.1 paf 925:
926: -build | --build | --buil | --bui | --bu)
1.62 paf 927: ac_prev=build_alias ;;
1.1 paf 928: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 929: build_alias=$ac_optarg ;;
1.1 paf 930:
931: -cache-file | --cache-file | --cache-fil | --cache-fi \
932: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933: ac_prev=cache_file ;;
934: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 936: cache_file=$ac_optarg ;;
937:
938: --config-cache | -C)
939: cache_file=config.cache ;;
1.1 paf 940:
1.150 moko 941: -datadir | --datadir | --datadi | --datad)
1.1 paf 942: ac_prev=datadir ;;
1.150 moko 943: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 944: datadir=$ac_optarg ;;
1.1 paf 945:
1.150 moko 946: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947: | --dataroo | --dataro | --datar)
948: ac_prev=datarootdir ;;
949: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951: datarootdir=$ac_optarg ;;
952:
1.1 paf 953: -disable-* | --disable-*)
1.150 moko 954: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 955: # Reject names that are not valid shell variable names.
1.150 moko 956: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957: as_fn_error $? "invalid feature name: $ac_useropt"
958: ac_useropt_orig=$ac_useropt
959: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960: case $ac_user_opts in
961: *"
962: "enable_$ac_useropt"
963: "*) ;;
964: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965: ac_unrecognized_sep=', ';;
966: esac
967: eval enable_$ac_useropt=no ;;
968:
969: -docdir | --docdir | --docdi | --doc | --do)
970: ac_prev=docdir ;;
971: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972: docdir=$ac_optarg ;;
973:
974: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975: ac_prev=dvidir ;;
976: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977: dvidir=$ac_optarg ;;
1.1 paf 978:
979: -enable-* | --enable-*)
1.150 moko 980: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 981: # Reject names that are not valid shell variable names.
1.150 moko 982: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983: as_fn_error $? "invalid feature name: $ac_useropt"
984: ac_useropt_orig=$ac_useropt
985: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986: case $ac_user_opts in
987: *"
988: "enable_$ac_useropt"
989: "*) ;;
990: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991: ac_unrecognized_sep=', ';;
1.1 paf 992: esac
1.150 moko 993: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 994:
995: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997: | --exec | --exe | --ex)
998: ac_prev=exec_prefix ;;
999: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001: | --exec=* | --exe=* | --ex=*)
1.62 paf 1002: exec_prefix=$ac_optarg ;;
1.1 paf 1003:
1004: -gas | --gas | --ga | --g)
1005: # Obsolete; use --with-gas.
1006: with_gas=yes ;;
1007:
1.62 paf 1008: -help | --help | --hel | --he | -h)
1009: ac_init_help=long ;;
1010: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011: ac_init_help=recursive ;;
1012: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013: ac_init_help=short ;;
1.1 paf 1014:
1015: -host | --host | --hos | --ho)
1.62 paf 1016: ac_prev=host_alias ;;
1.1 paf 1017: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1018: host_alias=$ac_optarg ;;
1.1 paf 1019:
1.150 moko 1020: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021: ac_prev=htmldir ;;
1022: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023: | --ht=*)
1024: htmldir=$ac_optarg ;;
1025:
1.1 paf 1026: -includedir | --includedir | --includedi | --included | --include \
1027: | --includ | --inclu | --incl | --inc)
1028: ac_prev=includedir ;;
1029: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1031: includedir=$ac_optarg ;;
1.1 paf 1032:
1033: -infodir | --infodir | --infodi | --infod | --info | --inf)
1034: ac_prev=infodir ;;
1035: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1036: infodir=$ac_optarg ;;
1.1 paf 1037:
1038: -libdir | --libdir | --libdi | --libd)
1039: ac_prev=libdir ;;
1040: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1041: libdir=$ac_optarg ;;
1.1 paf 1042:
1043: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044: | --libexe | --libex | --libe)
1045: ac_prev=libexecdir ;;
1046: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1048: libexecdir=$ac_optarg ;;
1.1 paf 1049:
1.150 moko 1050: -localedir | --localedir | --localedi | --localed | --locale)
1051: ac_prev=localedir ;;
1052: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053: localedir=$ac_optarg ;;
1054:
1.1 paf 1055: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1056: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1057: ac_prev=localstatedir ;;
1058: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1059: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1060: localstatedir=$ac_optarg ;;
1.1 paf 1061:
1062: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063: ac_prev=mandir ;;
1064: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1065: mandir=$ac_optarg ;;
1.1 paf 1066:
1067: -nfp | --nfp | --nf)
1068: # Obsolete; use --without-fp.
1069: with_fp=no ;;
1070:
1071: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1072: | --no-cr | --no-c | -n)
1.1 paf 1073: no_create=yes ;;
1074:
1075: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077: no_recursion=yes ;;
1078:
1079: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081: | --oldin | --oldi | --old | --ol | --o)
1082: ac_prev=oldincludedir ;;
1083: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1086: oldincludedir=$ac_optarg ;;
1.1 paf 1087:
1088: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089: ac_prev=prefix ;;
1090: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1091: prefix=$ac_optarg ;;
1.1 paf 1092:
1093: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094: | --program-pre | --program-pr | --program-p)
1095: ac_prev=program_prefix ;;
1096: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1098: program_prefix=$ac_optarg ;;
1.1 paf 1099:
1100: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101: | --program-suf | --program-su | --program-s)
1102: ac_prev=program_suffix ;;
1103: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1105: program_suffix=$ac_optarg ;;
1.1 paf 1106:
1107: -program-transform-name | --program-transform-name \
1108: | --program-transform-nam | --program-transform-na \
1109: | --program-transform-n | --program-transform- \
1110: | --program-transform | --program-transfor \
1111: | --program-transfo | --program-transf \
1112: | --program-trans | --program-tran \
1113: | --progr-tra | --program-tr | --program-t)
1114: ac_prev=program_transform_name ;;
1115: -program-transform-name=* | --program-transform-name=* \
1116: | --program-transform-nam=* | --program-transform-na=* \
1117: | --program-transform-n=* | --program-transform-=* \
1118: | --program-transform=* | --program-transfor=* \
1119: | --program-transfo=* | --program-transf=* \
1120: | --program-trans=* | --program-tran=* \
1121: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1122: program_transform_name=$ac_optarg ;;
1.1 paf 1123:
1.150 moko 1124: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125: ac_prev=pdfdir ;;
1126: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127: pdfdir=$ac_optarg ;;
1128:
1129: -psdir | --psdir | --psdi | --psd | --ps)
1130: ac_prev=psdir ;;
1131: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132: psdir=$ac_optarg ;;
1133:
1.1 paf 1134: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135: | -silent | --silent | --silen | --sile | --sil)
1136: silent=yes ;;
1137:
1.191 moko 1138: -runstatedir | --runstatedir | --runstatedi | --runstated \
1139: | --runstate | --runstat | --runsta | --runst | --runs \
1140: | --run | --ru | --r)
1141: ac_prev=runstatedir ;;
1142: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144: | --run=* | --ru=* | --r=*)
1145: runstatedir=$ac_optarg ;;
1146:
1.1 paf 1147: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148: ac_prev=sbindir ;;
1149: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150: | --sbi=* | --sb=*)
1.62 paf 1151: sbindir=$ac_optarg ;;
1.1 paf 1152:
1153: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155: | --sharedst | --shareds | --shared | --share | --shar \
1156: | --sha | --sh)
1157: ac_prev=sharedstatedir ;;
1158: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161: | --sha=* | --sh=*)
1.62 paf 1162: sharedstatedir=$ac_optarg ;;
1.1 paf 1163:
1164: -site | --site | --sit)
1165: ac_prev=site ;;
1166: -site=* | --site=* | --sit=*)
1.62 paf 1167: site=$ac_optarg ;;
1.1 paf 1168:
1169: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170: ac_prev=srcdir ;;
1171: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1172: srcdir=$ac_optarg ;;
1.1 paf 1173:
1174: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175: | --syscon | --sysco | --sysc | --sys | --sy)
1176: ac_prev=sysconfdir ;;
1177: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1179: sysconfdir=$ac_optarg ;;
1.1 paf 1180:
1181: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1182: ac_prev=target_alias ;;
1.1 paf 1183: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1184: target_alias=$ac_optarg ;;
1.1 paf 1185:
1186: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187: verbose=yes ;;
1188:
1.62 paf 1189: -version | --version | --versio | --versi | --vers | -V)
1190: ac_init_version=: ;;
1.1 paf 1191:
1192: -with-* | --with-*)
1.150 moko 1193: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1194: # Reject names that are not valid shell variable names.
1.150 moko 1195: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196: as_fn_error $? "invalid package name: $ac_useropt"
1197: ac_useropt_orig=$ac_useropt
1198: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199: case $ac_user_opts in
1200: *"
1201: "with_$ac_useropt"
1202: "*) ;;
1203: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204: ac_unrecognized_sep=', ';;
1.1 paf 1205: esac
1.150 moko 1206: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1207:
1208: -without-* | --without-*)
1.150 moko 1209: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1210: # Reject names that are not valid shell variable names.
1.150 moko 1211: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212: as_fn_error $? "invalid package name: $ac_useropt"
1213: ac_useropt_orig=$ac_useropt
1214: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215: case $ac_user_opts in
1216: *"
1217: "with_$ac_useropt"
1218: "*) ;;
1219: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220: ac_unrecognized_sep=', ';;
1221: esac
1222: eval with_$ac_useropt=no ;;
1.1 paf 1223:
1224: --x)
1225: # Obsolete; use --with-x.
1226: with_x=yes ;;
1227:
1228: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229: | --x-incl | --x-inc | --x-in | --x-i)
1230: ac_prev=x_includes ;;
1231: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1233: x_includes=$ac_optarg ;;
1.1 paf 1234:
1235: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237: ac_prev=x_libraries ;;
1238: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1240: x_libraries=$ac_optarg ;;
1.1 paf 1241:
1.150 moko 1242: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243: Try \`$0 --help' for more information"
1.1 paf 1244: ;;
1245:
1.62 paf 1246: *=*)
1247: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248: # Reject names that are not valid shell variable names.
1.150 moko 1249: case $ac_envvar in #(
1250: '' | [0-9]* | *[!_$as_cr_alnum]* )
1251: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252: esac
1253: eval $ac_envvar=\$ac_optarg
1.62 paf 1254: export $ac_envvar ;;
1255:
1.1 paf 1256: *)
1.62 paf 1257: # FIXME: should be removed in autoconf 3.0.
1.150 moko 1258: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1259: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.150 moko 1260: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1262: ;;
1263:
1264: esac
1265: done
1266:
1267: if test -n "$ac_prev"; then
1.62 paf 1268: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1269: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1270: fi
1271:
1.150 moko 1272: if test -n "$ac_unrecognized_opts"; then
1273: case $enable_option_checking in
1274: no) ;;
1275: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277: esac
1278: fi
1279:
1280: # Check all directory arguments for consistency.
1281: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282: datadir sysconfdir sharedstatedir localstatedir includedir \
1283: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.191 moko 1284: libdir localedir mandir runstatedir
1.62 paf 1285: do
1.150 moko 1286: eval ac_val=\$$ac_var
1287: # Remove trailing slashes.
1.62 paf 1288: case $ac_val in
1.150 moko 1289: */ )
1290: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291: eval $ac_var=\$ac_val;;
1.62 paf 1292: esac
1.150 moko 1293: # Be sure to have absolute directory names.
1.62 paf 1294: case $ac_val in
1.150 moko 1295: [\\/$]* | ?:[\\/]* ) continue;;
1296: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1297: esac
1.150 moko 1298: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1299: done
1300:
1.62 paf 1301: # There might be people who depend on the old broken behavior: `$host'
1302: # used to hold the argument of --host etc.
1303: # FIXME: To remove some day.
1304: build=$build_alias
1305: host=$host_alias
1306: target=$target_alias
1307:
1308: # FIXME: To remove some day.
1309: if test "x$host_alias" != x; then
1310: if test "x$build_alias" = x; then
1311: cross_compiling=maybe
1312: elif test "x$build_alias" != "x$host_alias"; then
1313: cross_compiling=yes
1314: fi
1315: fi
1316:
1317: ac_tool_prefix=
1318: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1319:
1.62 paf 1320: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1321:
1322:
1.150 moko 1323: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324: ac_ls_di=`ls -di .` &&
1325: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326: as_fn_error $? "working directory cannot be determined"
1327: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328: as_fn_error $? "pwd does not report name of working directory"
1329:
1330:
1.1 paf 1331: # Find the source files, if location was not specified.
1332: if test -z "$srcdir"; then
1333: ac_srcdir_defaulted=yes
1.150 moko 1334: # Try the directory containing this script, then the parent directory.
1335: ac_confdir=`$as_dirname -- "$as_myself" ||
1336: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337: X"$as_myself" : 'X\(//\)[^/]' \| \
1338: X"$as_myself" : 'X\(//\)$' \| \
1339: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340: $as_echo X"$as_myself" |
1341: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342: s//\1/
1343: q
1344: }
1345: /^X\(\/\/\)[^/].*/{
1346: s//\1/
1347: q
1348: }
1349: /^X\(\/\/\)$/{
1350: s//\1/
1351: q
1352: }
1353: /^X\(\/\).*/{
1354: s//\1/
1355: q
1356: }
1357: s/.*/./; q'`
1.1 paf 1358: srcdir=$ac_confdir
1.150 moko 1359: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1360: srcdir=..
1361: fi
1362: else
1363: ac_srcdir_defaulted=no
1364: fi
1.150 moko 1365: if test ! -r "$srcdir/$ac_unique_file"; then
1366: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368: fi
1369: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370: ac_abs_confdir=`(
1371: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372: pwd)`
1373: # When building in place, set srcdir=.
1374: if test "$ac_abs_confdir" = "$ac_pwd"; then
1375: srcdir=.
1376: fi
1377: # Remove unnecessary trailing slashes from srcdir.
1378: # Double slashes in file names in object file debugging info
1379: # mess up M-x gdb in Emacs.
1380: case $srcdir in
1381: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382: esac
1383: for ac_var in $ac_precious_vars; do
1384: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385: eval ac_env_${ac_var}_value=\$${ac_var}
1386: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388: done
1.62 paf 1389:
1390: #
1391: # Report the --help message.
1392: #
1393: if test "$ac_init_help" = "long"; then
1394: # Omit some internal or obsolete options to make the list less imposing.
1395: # This message is too long to be a string in the A/UX 3.1 sh.
1396: cat <<_ACEOF
1.214 moko 1397: \`configure' configures parser 3.4.7b to adapt to many kinds of systems.
1.62 paf 1398:
1399: Usage: $0 [OPTION]... [VAR=VALUE]...
1400:
1401: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402: VAR=VALUE. See below for descriptions of some of the useful variables.
1403:
1404: Defaults for the options are specified in brackets.
1405:
1406: Configuration:
1407: -h, --help display this help and exit
1408: --help=short display options specific to this package
1409: --help=recursive display the short help of all the included packages
1410: -V, --version display version information and exit
1.150 moko 1411: -q, --quiet, --silent do not print \`checking ...' messages
1.62 paf 1412: --cache-file=FILE cache test results in FILE [disabled]
1413: -C, --config-cache alias for \`--cache-file=config.cache'
1414: -n, --no-create do not create output files
1415: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416:
1417: Installation directories:
1418: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1419: [$ac_default_prefix]
1.62 paf 1420: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1421: [PREFIX]
1.62 paf 1422:
1423: By default, \`make install' will install all the files in
1424: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426: for instance \`--prefix=\$HOME'.
1427:
1428: For better control, use the options below.
1429:
1430: Fine tuning of the installation directories:
1.150 moko 1431: --bindir=DIR user executables [EPREFIX/bin]
1432: --sbindir=DIR system admin executables [EPREFIX/sbin]
1433: --libexecdir=DIR program executables [EPREFIX/libexec]
1434: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.191 moko 1437: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.150 moko 1438: --libdir=DIR object code libraries [EPREFIX/lib]
1439: --includedir=DIR C header files [PREFIX/include]
1440: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443: --infodir=DIR info documentation [DATAROOTDIR/info]
1444: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445: --mandir=DIR man documentation [DATAROOTDIR/man]
1446: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1447: --htmldir=DIR html documentation [DOCDIR]
1448: --dvidir=DIR dvi documentation [DOCDIR]
1449: --pdfdir=DIR pdf documentation [DOCDIR]
1450: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1451: _ACEOF
1452:
1453: cat <<\_ACEOF
1454:
1455: Program names:
1456: --program-prefix=PREFIX prepend PREFIX to installed program names
1457: --program-suffix=SUFFIX append SUFFIX to installed program names
1458: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459:
1460: System types:
1461: --build=BUILD configure for building on BUILD [guessed]
1462: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463: _ACEOF
1464: fi
1465:
1466: if test -n "$ac_init_help"; then
1.128 moko 1467: case $ac_init_help in
1.214 moko 1468: short | recursive ) echo "Configuration of parser 3.4.7b:";;
1.128 moko 1469: esac
1.62 paf 1470: cat <<\_ACEOF
1471:
1472: Optional Features:
1.150 moko 1473: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1474: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.187 moko 1476: --enable-silent-rules less verbose build output (undo: "make V=1")
1477: --disable-silent-rules verbose build output (undo: "make V=0")
1478: --enable-dependency-tracking
1479: do not reject slow dependency extractors
1480: --disable-dependency-tracking
1481: speeds up one-time build
1.67 paf 1482: --disable-safe-mode to enable reading and executing
1.62 paf 1483: files belonging to group+user other then effective
1.146 moko 1484: --disable-execs to disable any execs
1.62 paf 1485: (file::exec, file::cgi, unix mail:send)
1.195 moko 1486: --disable-stringstream to disable stringstream usage.
1487: when disabled table.save uses more memory, but more compilers are supported
1.150 moko 1488: --enable-shared[=PKGS] build shared libraries [default=yes]
1489: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1490: --enable-fast-install[=PKGS]
1491: optimize for fast installation [default=yes]
1492: --disable-libtool-lock avoid locking (might break parallel builds)
1493: --enable-ltdl-install install libltdl
1.171 moko 1494: --disable-largefile omit support for large files
1.62 paf 1495:
1496: Optional Packages:
1497: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1499: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.185 moko 1500: --with-coverage to enable gcov code coverage support
1501: --with-profiler to enable gprof code profiler support
1.67 paf 1502: --with-assertions to enable assertions
1.201 moko 1503: --with-sjlj-exceptions to enable simple 'throw' from dynamic library
1504: --with-system-cfg=FILE to specify system-wide auto.p
1505: --with-gc=DIR DIR is the directory where
1.142 moko 1506: Boehm garbage collecting library is installed
1.201 moko 1507: --with-pcre=DIR DIR is the directory where
1.142 moko 1508: PCRE library is installed
1.201 moko 1509: --with-xml=DIR DIR is the directory where
1.142 moko 1510: Gnome XML libraries are installed
1.201 moko 1511: --with-mailreceive=DIR is the directory where
1.154 moko 1512: Gnome MIME library is installed
1.62 paf 1513: \"--with-sendmail=COMMAND\" forces this command to send mail.
1514: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1515: (makes parser ignore user-defined sendmail commands)
1.146 moko 1516: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1517: builds apache DSO module using apxs
1.150 moko 1518: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.128 moko 1519: both]
1520: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521: --with-sysroot=DIR Search for dependent libraries within DIR
1522: (or the compiler's sysroot if not specified).
1523: --with-included-ltdl use the GNU ltdl sources included here
1524: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1525: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1526:
1527: Some influential environment variables:
1.150 moko 1528: YACC The `Yet Another Compiler Compiler' implementation to use.
1529: Defaults to the first program found out of: `bison -y', `byacc',
1530: `yacc'.
1531: YFLAGS The list of arguments that will be passed by default to $YACC.
1532: This script will default YFLAGS to the empty string to avoid a
1533: default value of `-d' given by some make applications.
1.66 paf 1534: CXX C++ compiler command
1535: CXXFLAGS C++ compiler flags
1.62 paf 1536: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537: nonstandard directory <lib dir>
1.150 moko 1538: LIBS libraries to pass to the linker, e.g. -l<library>
1539: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540: you have headers in a nonstandard directory <include dir>
1.66 paf 1541: CC C compiler command
1542: CFLAGS C compiler flags
1543: CPP C preprocessor
1.128 moko 1544: CXXCPP C++ preprocessor
1.62 paf 1545:
1546: Use these variables to override the choices made by `configure' or to help
1547: it to find libraries and programs with nonstandard names/locations.
1548:
1.150 moko 1549: Report bugs to the package provider.
1.62 paf 1550: _ACEOF
1.150 moko 1551: ac_status=$?
1.62 paf 1552: fi
1553:
1554: if test "$ac_init_help" = "recursive"; then
1555: # If there are subdirs, report their specific --help.
1556: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1557: test -d "$ac_dir" ||
1558: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559: continue
1.62 paf 1560: ac_builddir=.
1561:
1.150 moko 1562: case "$ac_dir" in
1563: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564: *)
1565: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566: # A ".." for each directory in $ac_dir_suffix.
1567: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568: case $ac_top_builddir_sub in
1569: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571: esac ;;
1572: esac
1573: ac_abs_top_builddir=$ac_pwd
1574: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575: # for backward compatibility:
1576: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1577:
1578: case $srcdir in
1.150 moko 1579: .) # We are building in place.
1.62 paf 1580: ac_srcdir=.
1.150 moko 1581: ac_top_srcdir=$ac_top_builddir_sub
1582: ac_abs_top_srcdir=$ac_pwd ;;
1583: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1584: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1585: ac_top_srcdir=$srcdir
1586: ac_abs_top_srcdir=$srcdir ;;
1587: *) # Relative name.
1588: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589: ac_top_srcdir=$ac_top_build_prefix$srcdir
1590: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1591: esac
1.150 moko 1592: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1593:
1.150 moko 1594: cd "$ac_dir" || { ac_status=$?; continue; }
1595: # Check for guested configure.
1596: if test -f "$ac_srcdir/configure.gnu"; then
1597: echo &&
1598: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599: elif test -f "$ac_srcdir/configure"; then
1600: echo &&
1601: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1602: else
1.150 moko 1603: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604: fi || ac_status=$?
1605: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1606: done
1607: fi
1608:
1.150 moko 1609: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1610: if $ac_init_version; then
1611: cat <<\_ACEOF
1.214 moko 1612: parser configure 3.4.7b
1.166 moko 1613: generated by GNU Autoconf 2.69
1.62 paf 1614:
1.166 moko 1615: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 1616: This configure script is free software; the Free Software Foundation
1617: gives unlimited permission to copy, distribute and modify it.
1618: _ACEOF
1.150 moko 1619: exit
1.62 paf 1620: fi
1621:
1.150 moko 1622: ## ------------------------ ##
1623: ## Autoconf initialization. ##
1624: ## ------------------------ ##
1625:
1626: # ac_fn_cxx_try_compile LINENO
1627: # ----------------------------
1628: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629: ac_fn_cxx_try_compile ()
1.62 paf 1630: {
1.150 moko 1631: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632: rm -f conftest.$ac_objext
1633: if { { ac_try="$ac_compile"
1634: case "(($ac_try" in
1635: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636: *) ac_try_echo=$ac_try;;
1637: esac
1638: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639: $as_echo "$ac_try_echo"; } >&5
1640: (eval "$ac_compile") 2>conftest.err
1641: ac_status=$?
1642: if test -s conftest.err; then
1643: grep -v '^ *+' conftest.err >conftest.er1
1644: cat conftest.er1 >&5
1645: mv -f conftest.er1 conftest.err
1646: fi
1647: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648: test $ac_status = 0; } && {
1649: test -z "$ac_cxx_werror_flag" ||
1650: test ! -s conftest.err
1651: } && test -s conftest.$ac_objext; then :
1652: ac_retval=0
1653: else
1654: $as_echo "$as_me: failed program was:" >&5
1655: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1656:
1.150 moko 1657: ac_retval=1
1658: fi
1659: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660: as_fn_set_status $ac_retval
1.62 paf 1661:
1.150 moko 1662: } # ac_fn_cxx_try_compile
1663:
1664: # ac_fn_c_try_compile LINENO
1665: # --------------------------
1666: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667: ac_fn_c_try_compile ()
1668: {
1669: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670: rm -f conftest.$ac_objext
1671: if { { ac_try="$ac_compile"
1672: case "(($ac_try" in
1673: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674: *) ac_try_echo=$ac_try;;
1675: esac
1676: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677: $as_echo "$ac_try_echo"; } >&5
1678: (eval "$ac_compile") 2>conftest.err
1679: ac_status=$?
1680: if test -s conftest.err; then
1681: grep -v '^ *+' conftest.err >conftest.er1
1682: cat conftest.er1 >&5
1683: mv -f conftest.er1 conftest.err
1684: fi
1685: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686: test $ac_status = 0; } && {
1687: test -z "$ac_c_werror_flag" ||
1688: test ! -s conftest.err
1689: } && test -s conftest.$ac_objext; then :
1690: ac_retval=0
1691: else
1692: $as_echo "$as_me: failed program was:" >&5
1693: sed 's/^/| /' conftest.$ac_ext >&5
1694:
1695: ac_retval=1
1696: fi
1697: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698: as_fn_set_status $ac_retval
1699:
1700: } # ac_fn_c_try_compile
1701:
1702: # ac_fn_c_try_link LINENO
1703: # -----------------------
1704: # Try to link conftest.$ac_ext, and return whether this succeeded.
1705: ac_fn_c_try_link ()
1706: {
1707: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708: rm -f conftest.$ac_objext conftest$ac_exeext
1709: if { { ac_try="$ac_link"
1710: case "(($ac_try" in
1711: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712: *) ac_try_echo=$ac_try;;
1713: esac
1714: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715: $as_echo "$ac_try_echo"; } >&5
1716: (eval "$ac_link") 2>conftest.err
1717: ac_status=$?
1718: if test -s conftest.err; then
1719: grep -v '^ *+' conftest.err >conftest.er1
1720: cat conftest.er1 >&5
1721: mv -f conftest.er1 conftest.err
1722: fi
1723: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724: test $ac_status = 0; } && {
1725: test -z "$ac_c_werror_flag" ||
1726: test ! -s conftest.err
1727: } && test -s conftest$ac_exeext && {
1728: test "$cross_compiling" = yes ||
1.166 moko 1729: test -x conftest$ac_exeext
1.150 moko 1730: }; then :
1731: ac_retval=0
1732: else
1733: $as_echo "$as_me: failed program was:" >&5
1734: sed 's/^/| /' conftest.$ac_ext >&5
1735:
1736: ac_retval=1
1737: fi
1738: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1739: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1740: # interfere with the next link command; also delete a directory that is
1741: # left behind by Apple's compiler. We do this before executing the actions.
1742: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744: as_fn_set_status $ac_retval
1745:
1746: } # ac_fn_c_try_link
1747:
1748: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749: # -------------------------------------------------------
1750: # Tests whether HEADER exists and can be compiled using the include files in
1751: # INCLUDES, setting the cache variable VAR accordingly.
1752: ac_fn_c_check_header_compile ()
1753: {
1754: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756: $as_echo_n "checking for $2... " >&6; }
1757: if eval \${$3+:} false; then :
1758: $as_echo_n "(cached) " >&6
1759: else
1760: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761: /* end confdefs.h. */
1762: $4
1763: #include <$2>
1764: _ACEOF
1765: if ac_fn_c_try_compile "$LINENO"; then :
1766: eval "$3=yes"
1767: else
1768: eval "$3=no"
1769: fi
1770: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771: fi
1772: eval ac_res=\$$3
1773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774: $as_echo "$ac_res" >&6; }
1775: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776:
1777: } # ac_fn_c_check_header_compile
1778:
1779: # ac_fn_c_try_cpp LINENO
1780: # ----------------------
1781: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782: ac_fn_c_try_cpp ()
1783: {
1784: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785: if { { ac_try="$ac_cpp conftest.$ac_ext"
1786: case "(($ac_try" in
1787: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788: *) ac_try_echo=$ac_try;;
1789: esac
1790: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791: $as_echo "$ac_try_echo"; } >&5
1792: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793: ac_status=$?
1794: if test -s conftest.err; then
1795: grep -v '^ *+' conftest.err >conftest.er1
1796: cat conftest.er1 >&5
1797: mv -f conftest.er1 conftest.err
1798: fi
1799: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800: test $ac_status = 0; } > conftest.i && {
1801: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802: test ! -s conftest.err
1803: }; then :
1804: ac_retval=0
1805: else
1806: $as_echo "$as_me: failed program was:" >&5
1807: sed 's/^/| /' conftest.$ac_ext >&5
1808:
1809: ac_retval=1
1810: fi
1811: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812: as_fn_set_status $ac_retval
1813:
1814: } # ac_fn_c_try_cpp
1815:
1816: # ac_fn_c_try_run LINENO
1817: # ----------------------
1818: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819: # that executables *can* be run.
1820: ac_fn_c_try_run ()
1821: {
1822: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823: if { { ac_try="$ac_link"
1824: case "(($ac_try" in
1825: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826: *) ac_try_echo=$ac_try;;
1827: esac
1828: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829: $as_echo "$ac_try_echo"; } >&5
1830: (eval "$ac_link") 2>&5
1831: ac_status=$?
1832: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834: { { case "(($ac_try" in
1835: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836: *) ac_try_echo=$ac_try;;
1837: esac
1838: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839: $as_echo "$ac_try_echo"; } >&5
1840: (eval "$ac_try") 2>&5
1841: ac_status=$?
1842: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843: test $ac_status = 0; }; }; then :
1844: ac_retval=0
1845: else
1846: $as_echo "$as_me: program exited with status $ac_status" >&5
1847: $as_echo "$as_me: failed program was:" >&5
1848: sed 's/^/| /' conftest.$ac_ext >&5
1849:
1850: ac_retval=$ac_status
1851: fi
1852: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854: as_fn_set_status $ac_retval
1855:
1856: } # ac_fn_c_try_run
1857:
1858: # ac_fn_c_check_func LINENO FUNC VAR
1859: # ----------------------------------
1860: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861: ac_fn_c_check_func ()
1862: {
1863: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865: $as_echo_n "checking for $2... " >&6; }
1866: if eval \${$3+:} false; then :
1867: $as_echo_n "(cached) " >&6
1868: else
1869: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870: /* end confdefs.h. */
1871: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873: #define $2 innocuous_$2
1874:
1875: /* System header to define __stub macros and hopefully few prototypes,
1876: which can conflict with char $2 (); below.
1877: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878: <limits.h> exists even on freestanding compilers. */
1879:
1880: #ifdef __STDC__
1881: # include <limits.h>
1882: #else
1883: # include <assert.h>
1884: #endif
1885:
1886: #undef $2
1887:
1888: /* Override any GCC internal prototype to avoid an error.
1889: Use char because int might match the return type of a GCC
1890: builtin and then its argument prototype would still apply. */
1891: #ifdef __cplusplus
1892: extern "C"
1893: #endif
1894: char $2 ();
1895: /* The GNU C library defines this for functions which it implements
1896: to always fail with ENOSYS. Some functions are actually named
1897: something starting with __ and the normal name is an alias. */
1898: #if defined __stub_$2 || defined __stub___$2
1899: choke me
1900: #endif
1901:
1902: int
1903: main ()
1904: {
1905: return $2 ();
1906: ;
1907: return 0;
1908: }
1909: _ACEOF
1910: if ac_fn_c_try_link "$LINENO"; then :
1911: eval "$3=yes"
1912: else
1913: eval "$3=no"
1914: fi
1915: rm -f core conftest.err conftest.$ac_objext \
1916: conftest$ac_exeext conftest.$ac_ext
1917: fi
1918: eval ac_res=\$$3
1919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920: $as_echo "$ac_res" >&6; }
1921: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922:
1923: } # ac_fn_c_check_func
1924:
1925: # ac_fn_cxx_try_cpp LINENO
1926: # ------------------------
1927: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1928: ac_fn_cxx_try_cpp ()
1929: {
1930: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931: if { { ac_try="$ac_cpp conftest.$ac_ext"
1932: case "(($ac_try" in
1933: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934: *) ac_try_echo=$ac_try;;
1935: esac
1936: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937: $as_echo "$ac_try_echo"; } >&5
1938: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1939: ac_status=$?
1940: if test -s conftest.err; then
1941: grep -v '^ *+' conftest.err >conftest.er1
1942: cat conftest.er1 >&5
1943: mv -f conftest.er1 conftest.err
1944: fi
1945: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946: test $ac_status = 0; } > conftest.i && {
1947: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1948: test ! -s conftest.err
1949: }; then :
1950: ac_retval=0
1951: else
1952: $as_echo "$as_me: failed program was:" >&5
1953: sed 's/^/| /' conftest.$ac_ext >&5
1954:
1955: ac_retval=1
1956: fi
1957: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958: as_fn_set_status $ac_retval
1959:
1960: } # ac_fn_cxx_try_cpp
1961:
1962: # ac_fn_cxx_try_link LINENO
1963: # -------------------------
1964: # Try to link conftest.$ac_ext, and return whether this succeeded.
1965: ac_fn_cxx_try_link ()
1966: {
1967: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968: rm -f conftest.$ac_objext conftest$ac_exeext
1969: if { { ac_try="$ac_link"
1970: case "(($ac_try" in
1971: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972: *) ac_try_echo=$ac_try;;
1973: esac
1974: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975: $as_echo "$ac_try_echo"; } >&5
1976: (eval "$ac_link") 2>conftest.err
1977: ac_status=$?
1978: if test -s conftest.err; then
1979: grep -v '^ *+' conftest.err >conftest.er1
1980: cat conftest.er1 >&5
1981: mv -f conftest.er1 conftest.err
1982: fi
1983: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984: test $ac_status = 0; } && {
1985: test -z "$ac_cxx_werror_flag" ||
1986: test ! -s conftest.err
1987: } && test -s conftest$ac_exeext && {
1988: test "$cross_compiling" = yes ||
1.166 moko 1989: test -x conftest$ac_exeext
1.150 moko 1990: }; then :
1991: ac_retval=0
1992: else
1993: $as_echo "$as_me: failed program was:" >&5
1994: sed 's/^/| /' conftest.$ac_ext >&5
1995:
1996: ac_retval=1
1997: fi
1998: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1999: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2000: # interfere with the next link command; also delete a directory that is
2001: # left behind by Apple's compiler. We do this before executing the actions.
2002: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004: as_fn_set_status $ac_retval
2005:
2006: } # ac_fn_cxx_try_link
2007:
2008: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2009: # ---------------------------------------------
2010: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2011: # accordingly.
2012: ac_fn_c_check_decl ()
2013: {
2014: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015: as_decl_name=`echo $2|sed 's/ *(.*//'`
2016: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2017: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2018: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2019: if eval \${$3+:} false; then :
2020: $as_echo_n "(cached) " >&6
2021: else
2022: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023: /* end confdefs.h. */
2024: $4
2025: int
2026: main ()
2027: {
2028: #ifndef $as_decl_name
2029: #ifdef __cplusplus
2030: (void) $as_decl_use;
2031: #else
2032: (void) $as_decl_name;
2033: #endif
2034: #endif
2035:
2036: ;
2037: return 0;
2038: }
2039: _ACEOF
2040: if ac_fn_c_try_compile "$LINENO"; then :
2041: eval "$3=yes"
2042: else
2043: eval "$3=no"
2044: fi
2045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046: fi
2047: eval ac_res=\$$3
2048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049: $as_echo "$ac_res" >&6; }
2050: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051:
2052: } # ac_fn_c_check_decl
2053:
2054: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055: # -------------------------------------------
2056: # Tests whether TYPE exists after having included INCLUDES, setting cache
2057: # variable VAR accordingly.
2058: ac_fn_c_check_type ()
2059: {
2060: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062: $as_echo_n "checking for $2... " >&6; }
2063: if eval \${$3+:} false; then :
2064: $as_echo_n "(cached) " >&6
2065: else
2066: eval "$3=no"
2067: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068: /* end confdefs.h. */
2069: $4
2070: int
2071: main ()
2072: {
2073: if (sizeof ($2))
2074: return 0;
2075: ;
2076: return 0;
2077: }
2078: _ACEOF
2079: if ac_fn_c_try_compile "$LINENO"; then :
2080: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081: /* end confdefs.h. */
2082: $4
2083: int
2084: main ()
2085: {
2086: if (sizeof (($2)))
2087: return 0;
2088: ;
2089: return 0;
2090: }
2091: _ACEOF
2092: if ac_fn_c_try_compile "$LINENO"; then :
2093:
2094: else
2095: eval "$3=yes"
2096: fi
2097: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098: fi
2099: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100: fi
2101: eval ac_res=\$$3
2102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103: $as_echo "$ac_res" >&6; }
2104: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105:
2106: } # ac_fn_c_check_type
2107:
1.156 moko 2108: # ac_fn_c_find_uintX_t LINENO BITS VAR
2109: # ------------------------------------
2110: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2111: # accordingly.
2112: ac_fn_c_find_uintX_t ()
2113: {
2114: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2116: $as_echo_n "checking for uint$2_t... " >&6; }
2117: if eval \${$3+:} false; then :
2118: $as_echo_n "(cached) " >&6
2119: else
2120: eval "$3=no"
2121: # Order is important - never check a type that is potentially smaller
2122: # than half of the expected target width.
2123: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2124: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2125: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126: /* end confdefs.h. */
2127: $ac_includes_default
2128: int
2129: main ()
2130: {
2131: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2132: test_array [0] = 0;
2133: return test_array [0];
1.156 moko 2134:
2135: ;
2136: return 0;
2137: }
2138: _ACEOF
2139: if ac_fn_c_try_compile "$LINENO"; then :
2140: case $ac_type in #(
2141: uint$2_t) :
2142: eval "$3=yes" ;; #(
2143: *) :
2144: eval "$3=\$ac_type" ;;
2145: esac
2146: fi
2147: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148: if eval test \"x\$"$3"\" = x"no"; then :
2149:
2150: else
2151: break
2152: fi
2153: done
2154: fi
2155: eval ac_res=\$$3
2156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157: $as_echo "$ac_res" >&6; }
2158: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159:
2160: } # ac_fn_c_find_uintX_t
2161:
1.161 moko 2162: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2163: # ----------------------------------------------------
2164: # Tries to find if the field MEMBER exists in type AGGR, after including
2165: # INCLUDES, setting cache variable VAR accordingly.
2166: ac_fn_c_check_member ()
2167: {
2168: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2170: $as_echo_n "checking for $2.$3... " >&6; }
2171: if eval \${$4+:} false; then :
2172: $as_echo_n "(cached) " >&6
2173: else
2174: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175: /* end confdefs.h. */
2176: $5
2177: int
2178: main ()
2179: {
2180: static $2 ac_aggr;
2181: if (ac_aggr.$3)
2182: return 0;
2183: ;
2184: return 0;
2185: }
2186: _ACEOF
2187: if ac_fn_c_try_compile "$LINENO"; then :
2188: eval "$4=yes"
2189: else
2190: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191: /* end confdefs.h. */
2192: $5
2193: int
2194: main ()
2195: {
2196: static $2 ac_aggr;
2197: if (sizeof ac_aggr.$3)
2198: return 0;
2199: ;
2200: return 0;
2201: }
2202: _ACEOF
2203: if ac_fn_c_try_compile "$LINENO"; then :
2204: eval "$4=yes"
2205: else
2206: eval "$4=no"
2207: fi
2208: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209: fi
2210: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211: fi
2212: eval ac_res=\$$4
2213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214: $as_echo "$ac_res" >&6; }
2215: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216:
2217: } # ac_fn_c_check_member
2218:
1.150 moko 2219: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2220: # -------------------------------------------------------
2221: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2222: # the include files in INCLUDES and setting the cache variable VAR
2223: # accordingly.
2224: ac_fn_c_check_header_mongrel ()
2225: {
2226: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227: if eval \${$3+:} false; then :
2228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229: $as_echo_n "checking for $2... " >&6; }
2230: if eval \${$3+:} false; then :
2231: $as_echo_n "(cached) " >&6
2232: fi
2233: eval ac_res=\$$3
2234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235: $as_echo "$ac_res" >&6; }
2236: else
2237: # Is the header compilable?
2238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2239: $as_echo_n "checking $2 usability... " >&6; }
2240: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241: /* end confdefs.h. */
2242: $4
2243: #include <$2>
2244: _ACEOF
2245: if ac_fn_c_try_compile "$LINENO"; then :
2246: ac_header_compiler=yes
2247: else
2248: ac_header_compiler=no
2249: fi
2250: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2252: $as_echo "$ac_header_compiler" >&6; }
2253:
2254: # Is the header present?
2255: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2256: $as_echo_n "checking $2 presence... " >&6; }
2257: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258: /* end confdefs.h. */
2259: #include <$2>
2260: _ACEOF
2261: if ac_fn_c_try_cpp "$LINENO"; then :
2262: ac_header_preproc=yes
2263: else
2264: ac_header_preproc=no
2265: fi
2266: rm -f conftest.err conftest.i conftest.$ac_ext
2267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2268: $as_echo "$ac_header_preproc" >&6; }
2269:
2270: # So? What about this header?
2271: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2272: yes:no: )
2273: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2274: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2275: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2276: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2277: ;;
2278: no:yes:* )
2279: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2280: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2281: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2282: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2283: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2284: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2285: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2286: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2287: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2289: ;;
2290: esac
2291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2292: $as_echo_n "checking for $2... " >&6; }
2293: if eval \${$3+:} false; then :
2294: $as_echo_n "(cached) " >&6
2295: else
2296: eval "$3=\$ac_header_compiler"
2297: fi
2298: eval ac_res=\$$3
2299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300: $as_echo "$ac_res" >&6; }
2301: fi
2302: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303:
2304: } # ac_fn_c_check_header_mongrel
2305: cat >config.log <<_ACEOF
2306: This file contains any messages produced by compilers while
2307: running configure, to aid debugging if configure makes a mistake.
2308:
1.214 moko 2309: It was created by parser $as_me 3.4.7b, which was
1.166 moko 2310: generated by GNU Autoconf 2.69. Invocation command line was
1.150 moko 2311:
2312: $ $0 $@
2313:
2314: _ACEOF
2315: exec 5>>config.log
2316: {
2317: cat <<_ASUNAME
2318: ## --------- ##
2319: ## Platform. ##
2320: ## --------- ##
2321:
2322: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2323: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2324: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2325: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2326: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2327:
2328: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2329: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2330:
2331: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2332: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2333: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2334: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2335: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2336: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2337: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2338:
2339: _ASUNAME
2340:
2341: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342: for as_dir in $PATH
2343: do
2344: IFS=$as_save_IFS
2345: test -z "$as_dir" && as_dir=.
1.150 moko 2346: $as_echo "PATH: $as_dir"
2347: done
2348: IFS=$as_save_IFS
1.1 paf 2349:
1.62 paf 2350: } >&5
2351:
2352: cat >&5 <<_ACEOF
2353:
2354:
2355: ## ----------- ##
2356: ## Core tests. ##
2357: ## ----------- ##
2358:
2359: _ACEOF
2360:
2361:
2362: # Keep a trace of the command line.
2363: # Strip out --no-create and --no-recursion so they do not pile up.
2364: # Strip out --silent because we don't want to record it for future runs.
2365: # Also quote any args containing shell meta-characters.
2366: # Make two passes to allow for proper duplicate-argument suppression.
2367: ac_configure_args=
2368: ac_configure_args0=
2369: ac_configure_args1=
2370: ac_must_keep_next=false
2371: for ac_pass in 1 2
2372: do
2373: for ac_arg
2374: do
2375: case $ac_arg in
2376: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2377: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2378: | -silent | --silent | --silen | --sile | --sil)
2379: continue ;;
1.150 moko 2380: *\'*)
2381: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2382: esac
2383: case $ac_pass in
1.150 moko 2384: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2385: 2)
1.150 moko 2386: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2387: if test $ac_must_keep_next = true; then
1.86 paf 2388: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2389: else
1.86 paf 2390: case $ac_arg in
2391: *=* | --config-cache | -C | -disable-* | --disable-* \
2392: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2393: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2394: | -with-* | --with-* | -without-* | --without-* | --x)
2395: case "$ac_configure_args0 " in
2396: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2397: esac
2398: ;;
2399: -* ) ac_must_keep_next=true ;;
2400: esac
1.62 paf 2401: fi
1.150 moko 2402: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2403: ;;
2404: esac
2405: done
2406: done
1.150 moko 2407: { ac_configure_args0=; unset ac_configure_args0;}
2408: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2409:
2410: # When interrupted or exit'd, cleanup temporary files, and complete
2411: # config.log. We remove comments because anyway the quotes in there
2412: # would cause problems or look ugly.
1.150 moko 2413: # WARNING: Use '\'' to represent an apostrophe within the trap.
2414: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2415: trap 'exit_status=$?
2416: # Save into config.log some information that might help in debugging.
2417: {
2418: echo
2419:
1.150 moko 2420: $as_echo "## ---------------- ##
1.62 paf 2421: ## Cache variables. ##
1.150 moko 2422: ## ---------------- ##"
1.62 paf 2423: echo
2424: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2425: (
2426: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2427: eval ac_val=\$$ac_var
2428: case $ac_val in #(
2429: *${as_nl}*)
2430: case $ac_var in #(
2431: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2432: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2433: esac
2434: case $ac_var in #(
2435: _ | IFS | as_nl) ;; #(
2436: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2437: *) { eval $ac_var=; unset $ac_var;} ;;
2438: esac ;;
2439: esac
2440: done
1.62 paf 2441: (set) 2>&1 |
1.150 moko 2442: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2443: *${as_nl}ac_space=\ *)
1.62 paf 2444: sed -n \
1.150 moko 2445: "s/'\''/'\''\\\\'\'''\''/g;
2446: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2447: ;; #(
1.62 paf 2448: *)
1.150 moko 2449: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2450: ;;
1.150 moko 2451: esac |
2452: sort
2453: )
1.62 paf 2454: echo
2455:
1.150 moko 2456: $as_echo "## ----------------- ##
1.62 paf 2457: ## Output variables. ##
1.150 moko 2458: ## ----------------- ##"
1.62 paf 2459: echo
2460: for ac_var in $ac_subst_vars
2461: do
1.150 moko 2462: eval ac_val=\$$ac_var
2463: case $ac_val in
2464: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465: esac
2466: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2467: done | sort
2468: echo
2469:
2470: if test -n "$ac_subst_files"; then
1.150 moko 2471: $as_echo "## ------------------- ##
2472: ## File substitutions. ##
2473: ## ------------------- ##"
1.62 paf 2474: echo
2475: for ac_var in $ac_subst_files
2476: do
1.150 moko 2477: eval ac_val=\$$ac_var
2478: case $ac_val in
2479: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2480: esac
2481: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2482: done | sort
2483: echo
2484: fi
2485:
2486: if test -s confdefs.h; then
1.150 moko 2487: $as_echo "## ----------- ##
1.62 paf 2488: ## confdefs.h. ##
1.150 moko 2489: ## ----------- ##"
1.62 paf 2490: echo
1.150 moko 2491: cat confdefs.h
1.62 paf 2492: echo
2493: fi
2494: test "$ac_signal" != 0 &&
1.150 moko 2495: $as_echo "$as_me: caught signal $ac_signal"
2496: $as_echo "$as_me: exit $exit_status"
1.62 paf 2497: } >&5
1.150 moko 2498: rm -f core *.core core.conftest.* &&
2499: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2500: exit $exit_status
1.150 moko 2501: ' 0
1.62 paf 2502: for ac_signal in 1 2 13 15; do
1.150 moko 2503: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2504: done
2505: ac_signal=0
2506:
2507: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2508: rm -f -r conftest* confdefs.h
2509:
2510: $as_echo "/* confdefs.h */" > confdefs.h
1.62 paf 2511:
2512: # Predefined preprocessor variables.
2513:
2514: cat >>confdefs.h <<_ACEOF
2515: #define PACKAGE_NAME "$PACKAGE_NAME"
2516: _ACEOF
2517:
2518: cat >>confdefs.h <<_ACEOF
2519: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2520: _ACEOF
2521:
2522: cat >>confdefs.h <<_ACEOF
2523: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2524: _ACEOF
2525:
2526: cat >>confdefs.h <<_ACEOF
2527: #define PACKAGE_STRING "$PACKAGE_STRING"
2528: _ACEOF
2529:
1.150 moko 2530: cat >>confdefs.h <<_ACEOF
2531: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2532: _ACEOF
1.62 paf 2533:
2534: cat >>confdefs.h <<_ACEOF
1.150 moko 2535: #define PACKAGE_URL "$PACKAGE_URL"
1.62 paf 2536: _ACEOF
2537:
2538:
2539: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2540: # Prefer an explicitly selected file to automatically selected ones.
2541: ac_site_file1=NONE
2542: ac_site_file2=NONE
2543: if test -n "$CONFIG_SITE"; then
2544: # We do not want a PATH search for config.site.
2545: case $CONFIG_SITE in #((
2546: -*) ac_site_file1=./$CONFIG_SITE;;
2547: */*) ac_site_file1=$CONFIG_SITE;;
2548: *) ac_site_file1=./$CONFIG_SITE;;
2549: esac
2550: elif test "x$prefix" != xNONE; then
2551: ac_site_file1=$prefix/share/config.site
2552: ac_site_file2=$prefix/etc/config.site
2553: else
2554: ac_site_file1=$ac_default_prefix/share/config.site
2555: ac_site_file2=$ac_default_prefix/etc/config.site
2556: fi
2557: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2558: do
2559: test "x$ac_site_file" = xNONE && continue
2560: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2561: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2562: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2563: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2564: . "$ac_site_file" \
2565: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2566: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567: as_fn_error $? "failed to load site script $ac_site_file
2568: See \`config.log' for more details" "$LINENO" 5; }
1.1 paf 2569: fi
2570: done
2571:
2572: if test -r "$cache_file"; then
1.150 moko 2573: # Some versions of bash will fail to source /dev/null (special files
2574: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2575: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2576: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2577: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2578: case $cache_file in
1.150 moko 2579: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2580: *) . "./$cache_file";;
1.62 paf 2581: esac
2582: fi
1.1 paf 2583: else
1.150 moko 2584: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2585: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2586: >$cache_file
2587: fi
2588:
2589: # Check that the precious variables saved in the cache have kept the same
2590: # value.
2591: ac_cache_corrupted=false
1.150 moko 2592: for ac_var in $ac_precious_vars; do
1.62 paf 2593: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2594: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 2595: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2596: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 2597: case $ac_old_set,$ac_new_set in
2598: set,)
1.150 moko 2599: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2600: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.62 paf 2601: ac_cache_corrupted=: ;;
2602: ,set)
1.150 moko 2603: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2604: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.62 paf 2605: ac_cache_corrupted=: ;;
2606: ,);;
2607: *)
2608: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 2609: # differences in whitespace do not lead to failure.
2610: ac_old_val_w=`echo x $ac_old_val`
2611: ac_new_val_w=`echo x $ac_new_val`
2612: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2613: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2614: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615: ac_cache_corrupted=:
2616: else
2617: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2618: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619: eval $ac_var=\$ac_old_val
2620: fi
2621: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2622: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2623: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2624: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.62 paf 2625: fi;;
2626: esac
2627: # Pass precious variables to config.status.
2628: if test "$ac_new_set" = set; then
2629: case $ac_new_val in
1.150 moko 2630: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2631: *) ac_arg=$ac_var=$ac_new_val ;;
2632: esac
2633: case " $ac_configure_args " in
2634: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 2635: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 2636: esac
2637: fi
2638: done
2639: if $ac_cache_corrupted; then
1.150 moko 2640: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2643: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2644: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2645: fi
2646: ## -------------------- ##
2647: ## Main body of script. ##
2648: ## -------------------- ##
1.1 paf 2649:
2650: ac_ext=c
2651: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 2652: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655:
2656:
2657:
2658:
2659:
1.199 moko 2660: am__api_version='1.16'
1.62 paf 2661:
1.1 paf 2662: ac_aux_dir=
1.150 moko 2663: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2664: if test -f "$ac_dir/install-sh"; then
1.1 paf 2665: ac_aux_dir=$ac_dir
2666: ac_install_sh="$ac_aux_dir/install-sh -c"
2667: break
1.150 moko 2668: elif test -f "$ac_dir/install.sh"; then
1.1 paf 2669: ac_aux_dir=$ac_dir
2670: ac_install_sh="$ac_aux_dir/install.sh -c"
2671: break
1.150 moko 2672: elif test -f "$ac_dir/shtool"; then
1.62 paf 2673: ac_aux_dir=$ac_dir
2674: ac_install_sh="$ac_aux_dir/shtool install -c"
2675: break
1.1 paf 2676: fi
2677: done
2678: if test -z "$ac_aux_dir"; then
1.150 moko 2679: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2680: fi
2681:
2682: # These three variables are undocumented and unsupported,
2683: # and are intended to be withdrawn in a future Autoconf release.
2684: # They can cause serious problems if a builder's source tree is in a directory
2685: # whose full name contains unusual characters.
2686: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2687: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2688: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2689:
1.1 paf 2690:
2691: # Find a good install program. We prefer a C program (faster),
2692: # so one script is as good as another. But avoid the broken or
2693: # incompatible versions:
2694: # SysV /etc/install, /usr/sbin/install
2695: # SunOS /usr/etc/install
2696: # IRIX /sbin/install
2697: # AIX /bin/install
1.62 paf 2698: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2699: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2700: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2701: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 2702: # OS/2's system install, which has a completely different semantic
1.1 paf 2703: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 2704: # Reject install programs that cannot install multiple files.
2705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2706: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 paf 2707: if test -z "$INSTALL"; then
1.150 moko 2708: if ${ac_cv_path_install+:} false; then :
2709: $as_echo_n "(cached) " >&6
1.1 paf 2710: else
1.62 paf 2711: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712: for as_dir in $PATH
2713: do
2714: IFS=$as_save_IFS
2715: test -z "$as_dir" && as_dir=.
1.150 moko 2716: # Account for people who put trailing slashes in PATH elements.
2717: case $as_dir/ in #((
2718: ./ | .// | /[cC]/* | \
1.62 paf 2719: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 2720: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 2721: /usr/ucb/* ) ;;
2722: *)
2723: # OSF1 and SCO ODT 3.0 have their own names for install.
2724: # Don't use installbsd from OSF since it installs stuff as root
2725: # by default.
2726: for ac_prog in ginstall scoinst install; do
2727: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2728: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.86 paf 2729: if test $ac_prog = install &&
2730: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731: # AIX install. It has an incompatible calling convention.
2732: :
2733: elif test $ac_prog = install &&
2734: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2735: # program-specific install script used by HP pwplus--don't use.
2736: :
2737: else
1.150 moko 2738: rm -rf conftest.one conftest.two conftest.dir
2739: echo one > conftest.one
2740: echo two > conftest.two
2741: mkdir conftest.dir
2742: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2743: test -s conftest.one && test -s conftest.two &&
2744: test -s conftest.dir/conftest.one &&
2745: test -s conftest.dir/conftest.two
2746: then
2747: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2748: break 3
2749: fi
1.86 paf 2750: fi
2751: fi
1.1 paf 2752: done
1.62 paf 2753: done
2754: ;;
2755: esac
2756:
1.150 moko 2757: done
2758: IFS=$as_save_IFS
2759:
2760: rm -rf conftest.one conftest.two conftest.dir
1.1 paf 2761:
2762: fi
2763: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 2764: INSTALL=$ac_cv_path_install
1.1 paf 2765: else
1.150 moko 2766: # As a last resort, use the slow shell script. Don't cache a
2767: # value for INSTALL within a source directory, because that will
1.1 paf 2768: # break other packages using the cache if that directory is
1.150 moko 2769: # removed, or if the value is a relative name.
1.62 paf 2770: INSTALL=$ac_install_sh
1.1 paf 2771: fi
2772: fi
1.150 moko 2773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2774: $as_echo "$INSTALL" >&6; }
1.1 paf 2775:
2776: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2777: # It thinks the first close brace ends the variable substitution.
2778: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2779:
1.62 paf 2780: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2781:
2782: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2783:
1.150 moko 2784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2785: $as_echo_n "checking whether build environment is sane... " >&6; }
2786: # Reject unsafe characters in $srcdir or the absolute working directory
2787: # name. Accept space and tab only in the latter.
2788: am_lf='
2789: '
2790: case `pwd` in
2791: *[\\\"\#\$\&\'\`$am_lf]*)
2792: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2793: esac
2794: case $srcdir in
2795: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.187 moko 2796: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.150 moko 2797: esac
2798:
1.187 moko 2799: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 2800: # arguments. Must try -L first in case configure is actually a
2801: # symlink; some systems play weird games with the mod time of symlinks
2802: # (eg FreeBSD returns the mod time of the symlink's containing
2803: # directory).
2804: if (
1.187 moko 2805: am_has_slept=no
2806: for am_try in 1 2; do
2807: echo "timestamp, slept: $am_has_slept" > conftest.file
2808: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2809: if test "$*" = "X"; then
2810: # -L didn't work.
2811: set X `ls -t "$srcdir/configure" conftest.file`
2812: fi
2813: if test "$*" != "X $srcdir/configure conftest.file" \
2814: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 2815:
1.187 moko 2816: # If neither matched, then we have a broken ls. This can happen
2817: # if, for instance, CONFIG_SHELL is bash and it inherits a
2818: # broken ls alias from the environment. This has actually
2819: # happened. Such a system could not be considered "sane".
2820: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2821: alias in your environment" "$LINENO" 5
2822: fi
2823: if test "$2" = conftest.file || test $am_try -eq 2; then
2824: break
2825: fi
2826: # Just in case.
2827: sleep 1
2828: am_has_slept=yes
2829: done
1.62 paf 2830: test "$2" = conftest.file
1.1 paf 2831: )
2832: then
2833: # Ok.
2834: :
2835: else
1.150 moko 2836: as_fn_error $? "newly created file is older than distributed files!
2837: Check your system clock" "$LINENO" 5
1.1 paf 2838: fi
1.150 moko 2839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2840: $as_echo "yes" >&6; }
1.187 moko 2841: # If we didn't sleep, we still need to ensure time stamps of config.status and
2842: # generated files are strictly newer.
2843: am_sleep_pid=
2844: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2845: ( sleep 1 ) &
2846: am_sleep_pid=$!
2847: fi
2848:
2849: rm -f conftest.file
2850:
1.1 paf 2851: test "$program_prefix" != NONE &&
1.150 moko 2852: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 2853: # Use a double $ so make ignores it.
2854: test "$program_suffix" != NONE &&
1.150 moko 2855: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2856: # Double any \ or $.
1.62 paf 2857: # By default was `s,x,x', remove it if useless.
1.150 moko 2858: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2859: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.62 paf 2860:
1.187 moko 2861: # Expand $ac_aux_dir to an absolute path.
2862: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.62 paf 2863:
1.150 moko 2864: if test x"${MISSING+set}" != xset; then
1.216 moko 2865: MISSING="\${SHELL} '$am_aux_dir/missing'"
1.150 moko 2866: fi
1.62 paf 2867: # Use eval to expand $SHELL
1.187 moko 2868: if eval "$MISSING --is-lightweight"; then
2869: am_missing_run="$MISSING "
1.62 paf 2870: else
2871: am_missing_run=
1.187 moko 2872: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2873: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.62 paf 2874: fi
2875:
1.187 moko 2876: if test x"${install_sh+set}" != xset; then
1.150 moko 2877: case $am_aux_dir in
2878: *\ * | *\ *)
2879: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2880: *)
2881: install_sh="\${SHELL} $am_aux_dir/install-sh"
2882: esac
1.86 paf 2883: fi
2884:
1.187 moko 2885: # Installed binaries are usually stripped using 'strip' when the user
2886: # run "make install-strip". However 'strip' might not be the right
1.150 moko 2887: # tool to use in cross-compilation environments, therefore Automake
1.187 moko 2888: # will honor the 'STRIP' environment variable to overrule this program.
1.150 moko 2889: if test "$cross_compiling" != no; then
2890: if test -n "$ac_tool_prefix"; then
2891: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2892: set dummy ${ac_tool_prefix}strip; ac_word=$2
2893: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894: $as_echo_n "checking for $ac_word... " >&6; }
2895: if ${ac_cv_prog_STRIP+:} false; then :
2896: $as_echo_n "(cached) " >&6
2897: else
2898: if test -n "$STRIP"; then
2899: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2900: else
2901: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902: for as_dir in $PATH
2903: do
2904: IFS=$as_save_IFS
2905: test -z "$as_dir" && as_dir=.
2906: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2907: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2908: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2909: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910: break 2
2911: fi
2912: done
2913: done
2914: IFS=$as_save_IFS
2915:
2916: fi
2917: fi
2918: STRIP=$ac_cv_prog_STRIP
2919: if test -n "$STRIP"; then
2920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2921: $as_echo "$STRIP" >&6; }
2922: else
2923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924: $as_echo "no" >&6; }
2925: fi
2926:
2927:
2928: fi
2929: if test -z "$ac_cv_prog_STRIP"; then
2930: ac_ct_STRIP=$STRIP
2931: # Extract the first word of "strip", so it can be a program name with args.
2932: set dummy strip; ac_word=$2
2933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934: $as_echo_n "checking for $ac_word... " >&6; }
2935: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2936: $as_echo_n "(cached) " >&6
2937: else
2938: if test -n "$ac_ct_STRIP"; then
2939: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2940: else
2941: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942: for as_dir in $PATH
2943: do
2944: IFS=$as_save_IFS
2945: test -z "$as_dir" && as_dir=.
2946: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2947: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2948: ac_cv_prog_ac_ct_STRIP="strip"
2949: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950: break 2
2951: fi
2952: done
2953: done
2954: IFS=$as_save_IFS
2955:
2956: fi
2957: fi
2958: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2959: if test -n "$ac_ct_STRIP"; then
2960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2961: $as_echo "$ac_ct_STRIP" >&6; }
2962: else
2963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964: $as_echo "no" >&6; }
2965: fi
2966:
2967: if test "x$ac_ct_STRIP" = x; then
2968: STRIP=":"
2969: else
2970: case $cross_compiling:$ac_tool_warned in
2971: yes:)
2972: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2973: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2974: ac_tool_warned=yes ;;
2975: esac
2976: STRIP=$ac_ct_STRIP
2977: fi
2978: else
2979: STRIP="$ac_cv_prog_STRIP"
2980: fi
2981:
2982: fi
2983: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2984:
2985: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2986: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2987: if test -z "$MKDIR_P"; then
2988: if ${ac_cv_path_mkdir+:} false; then :
2989: $as_echo_n "(cached) " >&6
2990: else
2991: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2993: do
2994: IFS=$as_save_IFS
2995: test -z "$as_dir" && as_dir=.
2996: for ac_prog in mkdir gmkdir; do
2997: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2998: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.150 moko 2999: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3000: 'mkdir (GNU coreutils) '* | \
3001: 'mkdir (coreutils) '* | \
3002: 'mkdir (fileutils) '4.1*)
3003: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3004: break 3;;
3005: esac
3006: done
3007: done
3008: done
3009: IFS=$as_save_IFS
3010:
3011: fi
3012:
3013: test -d ./--version && rmdir ./--version
3014: if test "${ac_cv_path_mkdir+set}" = set; then
3015: MKDIR_P="$ac_cv_path_mkdir -p"
3016: else
3017: # As a last resort, use the slow shell script. Don't cache a
3018: # value for MKDIR_P within a source directory, because that will
3019: # break other packages using the cache if that directory is
3020: # removed, or if the value is a relative name.
3021: MKDIR_P="$ac_install_sh -d"
3022: fi
3023: fi
3024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3025: $as_echo "$MKDIR_P" >&6; }
3026:
3027: for ac_prog in gawk mawk nawk awk
1.62 paf 3028: do
3029: # Extract the first word of "$ac_prog", so it can be a program name with args.
3030: set dummy $ac_prog; ac_word=$2
1.150 moko 3031: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032: $as_echo_n "checking for $ac_word... " >&6; }
3033: if ${ac_cv_prog_AWK+:} false; then :
3034: $as_echo_n "(cached) " >&6
1.62 paf 3035: else
3036: if test -n "$AWK"; then
3037: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3038: else
3039: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040: for as_dir in $PATH
3041: do
3042: IFS=$as_save_IFS
3043: test -z "$as_dir" && as_dir=.
1.150 moko 3044: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3045: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3046: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3047: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3048: break 2
3049: fi
3050: done
1.150 moko 3051: done
3052: IFS=$as_save_IFS
1.62 paf 3053:
3054: fi
3055: fi
3056: AWK=$ac_cv_prog_AWK
3057: if test -n "$AWK"; then
1.150 moko 3058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3059: $as_echo "$AWK" >&6; }
1.62 paf 3060: else
1.150 moko 3061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062: $as_echo "no" >&6; }
1.62 paf 3063: fi
1.1 paf 3064:
1.150 moko 3065:
1.62 paf 3066: test -n "$AWK" && break
3067: done
1.1 paf 3068:
1.150 moko 3069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3070: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3071: set x ${MAKE-make}
3072: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3073: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3074: $as_echo_n "(cached) " >&6
1.1 paf 3075: else
1.62 paf 3076: cat >conftest.make <<\_ACEOF
1.150 moko 3077: SHELL = /bin/sh
1.1 paf 3078: all:
1.150 moko 3079: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3080: _ACEOF
1.150 moko 3081: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3082: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3083: *@@@%%%=?*=@@@%%%*)
3084: eval ac_cv_prog_make_${ac_make}_set=yes;;
3085: *)
3086: eval ac_cv_prog_make_${ac_make}_set=no;;
3087: esac
1.62 paf 3088: rm -f conftest.make
1.1 paf 3089: fi
1.150 moko 3090: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3092: $as_echo "yes" >&6; }
1.1 paf 3093: SET_MAKE=
3094: else
1.150 moko 3095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096: $as_echo "no" >&6; }
1.1 paf 3097: SET_MAKE="MAKE=${MAKE-make}"
3098: fi
3099:
1.86 paf 3100: rm -rf .tst 2>/dev/null
3101: mkdir .tst 2>/dev/null
3102: if test -d .tst; then
3103: am__leading_dot=.
3104: else
3105: am__leading_dot=_
3106: fi
3107: rmdir .tst 2>/dev/null
3108:
1.187 moko 3109: # Check whether --enable-silent-rules was given.
3110: if test "${enable_silent_rules+set}" = set; then :
3111: enableval=$enable_silent_rules;
3112: fi
3113:
3114: case $enable_silent_rules in # (((
3115: yes) AM_DEFAULT_VERBOSITY=0;;
3116: no) AM_DEFAULT_VERBOSITY=1;;
3117: *) AM_DEFAULT_VERBOSITY=1;;
3118: esac
3119: am_make=${MAKE-make}
3120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3121: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3122: if ${am_cv_make_support_nested_variables+:} false; then :
3123: $as_echo_n "(cached) " >&6
3124: else
3125: if $as_echo 'TRUE=$(BAR$(V))
3126: BAR0=false
3127: BAR1=true
3128: V=1
3129: am__doit:
3130: @$(TRUE)
3131: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3132: am_cv_make_support_nested_variables=yes
3133: else
3134: am_cv_make_support_nested_variables=no
3135: fi
3136: fi
3137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3138: $as_echo "$am_cv_make_support_nested_variables" >&6; }
3139: if test $am_cv_make_support_nested_variables = yes; then
3140: AM_V='$(V)'
3141: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3142: else
3143: AM_V=$AM_DEFAULT_VERBOSITY
3144: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3145: fi
3146: AM_BACKSLASH='\'
3147:
1.150 moko 3148: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3149: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3150: # is not polluted with repeated "-I."
3151: am__isrc=' -I$(srcdir)'
3152: # test to see if srcdir already configured
3153: if test -f $srcdir/config.status; then
3154: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3155: fi
1.62 paf 3156: fi
3157:
3158: # test whether we have cygpath
3159: if test -z "$CYGPATH_W"; then
3160: if (cygpath --version) >/dev/null 2>/dev/null; then
3161: CYGPATH_W='cygpath -w'
3162: else
3163: CYGPATH_W=echo
3164: fi
3165: fi
3166:
3167:
3168: # Define the identity of the package.
1.128 moko 3169: PACKAGE='parser'
1.214 moko 3170: VERSION='3.4.7b'
1.128 moko 3171:
3172:
3173: cat >>confdefs.h <<_ACEOF
3174: #define PACKAGE "$PACKAGE"
3175: _ACEOF
1.1 paf 3176:
3177:
1.128 moko 3178: cat >>confdefs.h <<_ACEOF
3179: #define VERSION "$VERSION"
3180: _ACEOF
3181:
1.62 paf 3182: # Some tools Automake needs.
3183:
3184: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3185:
3186:
3187: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3188:
3189:
3190: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3191:
3192:
3193: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3194:
3195:
3196: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 3197:
1.187 moko 3198: # For better backward compatibility. To be removed once Automake 1.9.x
3199: # dies out for good. For more background, see:
1.199 moko 3200: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3201: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1.187 moko 3202: mkdir_p='$(MKDIR_P)'
3203:
3204: # We need awk for the "check" target (and possibly the TAP driver). The
3205: # system "awk" is bad on some platforms.
3206: # Always define AMTAR for backward compatibility. Yes, it's still used
3207: # in the wild :-( We should find a proper way to deprecate it ...
3208: AMTAR='$${TAR-tar}'
3209:
3210:
3211: # We'll loop over all known methods to create a tar archive until one works.
3212: _am_tools='gnutar pax cpio none'
3213:
3214: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3215:
1.86 paf 3216:
3217:
3218:
3219:
1.62 paf 3220:
1.187 moko 3221: # POSIX will say in a future version that running "rm -f" with no argument
3222: # is OK; and we want to be able to make that assumption in our Makefile
3223: # recipes. So use an aggressive probe to check that the usage we want is
3224: # actually supported "in the wild" to an acceptable degree.
3225: # See automake bug#10828.
3226: # To make any issue more visible, cause the running configure to be aborted
3227: # by default if the 'rm' program in use doesn't match our expectations; the
3228: # user can still override this though.
3229: if rm -f && rm -fr && rm -rf; then : OK; else
3230: cat >&2 <<'END'
3231: Oops!
1.1 paf 3232:
1.187 moko 3233: Your 'rm' program seems unable to run without file operands specified
3234: on the command line, even when the '-f' option is present. This is contrary
3235: to the behaviour of most rm programs out there, and not conforming with
3236: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3237:
3238: Please tell bug-automake@gnu.org about your system, including the value
3239: of your $PATH and any error possibly output before this message. This
3240: can help us improve future automake versions.
3241:
3242: END
3243: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3244: echo 'Configuration will proceed anyway, since you have set the' >&2
3245: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3246: echo >&2
3247: else
3248: cat >&2 <<'END'
3249: Aborting the configuration process, to ensure you take notice of the issue.
3250:
3251: You can download and install GNU coreutils to get an 'rm' implementation
1.199 moko 3252: that behaves properly: <https://www.gnu.org/software/coreutils/>.
1.187 moko 3253:
3254: If you want to complete the configuration process using your problematic
3255: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3256: to "yes", and re-run configure.
3257:
3258: END
3259: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3260: fi
3261: fi
1.1 paf 3262:
3263:
1.128 moko 3264:
1.12 paf 3265: P3S=`cd $srcdir/src ; pwd`
1.1 paf 3266:
3267:
1.128 moko 3268:
1.41 paf 3269: # Make sure we can run config.sub.
1.150 moko 3270: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3271: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.62 paf 3272:
1.150 moko 3273: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3274: $as_echo_n "checking build system type... " >&6; }
3275: if ${ac_cv_build+:} false; then :
3276: $as_echo_n "(cached) " >&6
3277: else
3278: ac_build_alias=$build_alias
3279: test "x$ac_build_alias" = x &&
3280: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3281: test "x$ac_build_alias" = x &&
3282: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3283: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3284: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3285:
3286: fi
3287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3288: $as_echo "$ac_cv_build" >&6; }
3289: case $ac_cv_build in
3290: *-*-*) ;;
3291: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3292: esac
3293: build=$ac_cv_build
3294: ac_save_IFS=$IFS; IFS='-'
3295: set x $ac_cv_build
3296: shift
3297: build_cpu=$1
3298: build_vendor=$2
3299: shift; shift
3300: # Remember, the first character of IFS is used to create $*,
3301: # except with old shells:
3302: build_os=$*
3303: IFS=$ac_save_IFS
3304: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3305:
3306:
3307: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3308: $as_echo_n "checking host system type... " >&6; }
3309: if ${ac_cv_host+:} false; then :
3310: $as_echo_n "(cached) " >&6
3311: else
3312: if test "x$host_alias" = x; then
3313: ac_cv_host=$ac_cv_build
3314: else
3315: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3316: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.62 paf 3317: fi
3318:
3319: fi
1.150 moko 3320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3321: $as_echo "$ac_cv_host" >&6; }
3322: case $ac_cv_host in
3323: *-*-*) ;;
3324: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3325: esac
1.62 paf 3326: host=$ac_cv_host
1.150 moko 3327: ac_save_IFS=$IFS; IFS='-'
3328: set x $ac_cv_host
3329: shift
3330: host_cpu=$1
3331: host_vendor=$2
3332: shift; shift
3333: # Remember, the first character of IFS is used to create $*,
3334: # except with old shells:
3335: host_os=$*
3336: IFS=$ac_save_IFS
3337: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 3338:
3339:
3340:
1.148 moko 3341: cat >>confdefs.h <<_ACEOF
3342: #define PARSER_VERSION "$VERSION (compiled on $host)"
1.147 moko 3343: _ACEOF
3344:
3345:
1.41 paf 3346:
1.67 paf 3347: case $host_os in
3348: *cygwin* )
1.150 moko 3349: $as_echo "#define CYGWIN /**/" >>confdefs.h
1.67 paf 3350: ;;
3351: esac
1.41 paf 3352:
1.128 moko 3353:
1.1 paf 3354:
1.62 paf 3355: for ac_prog in gawk mawk nawk awk
1.41 paf 3356: do
1.62 paf 3357: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3358: set dummy $ac_prog; ac_word=$2
1.150 moko 3359: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360: $as_echo_n "checking for $ac_word... " >&6; }
3361: if ${ac_cv_prog_AWK+:} false; then :
3362: $as_echo_n "(cached) " >&6
1.41 paf 3363: else
3364: if test -n "$AWK"; then
3365: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3366: else
1.62 paf 3367: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368: for as_dir in $PATH
3369: do
3370: IFS=$as_save_IFS
3371: test -z "$as_dir" && as_dir=.
1.150 moko 3372: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3373: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3374: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3375: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3376: break 2
3377: fi
3378: done
1.150 moko 3379: done
3380: IFS=$as_save_IFS
1.62 paf 3381:
1.41 paf 3382: fi
3383: fi
1.62 paf 3384: AWK=$ac_cv_prog_AWK
1.41 paf 3385: if test -n "$AWK"; then
1.150 moko 3386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3387: $as_echo "$AWK" >&6; }
1.41 paf 3388: else
1.150 moko 3389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390: $as_echo "no" >&6; }
1.41 paf 3391: fi
3392:
1.150 moko 3393:
1.62 paf 3394: test -n "$AWK" && break
1.41 paf 3395: done
3396:
3397:
3398: for ac_prog in 'bison -y' byacc
3399: do
1.62 paf 3400: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3401: set dummy $ac_prog; ac_word=$2
1.150 moko 3402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403: $as_echo_n "checking for $ac_word... " >&6; }
3404: if ${ac_cv_prog_YACC+:} false; then :
3405: $as_echo_n "(cached) " >&6
1.41 paf 3406: else
3407: if test -n "$YACC"; then
3408: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3409: else
1.62 paf 3410: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411: for as_dir in $PATH
3412: do
3413: IFS=$as_save_IFS
3414: test -z "$as_dir" && as_dir=.
1.150 moko 3415: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3416: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3417: ac_cv_prog_YACC="$ac_prog"
1.150 moko 3418: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3419: break 2
3420: fi
3421: done
1.150 moko 3422: done
3423: IFS=$as_save_IFS
1.62 paf 3424:
1.41 paf 3425: fi
3426: fi
1.62 paf 3427: YACC=$ac_cv_prog_YACC
1.41 paf 3428: if test -n "$YACC"; then
1.150 moko 3429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3430: $as_echo "$YACC" >&6; }
1.41 paf 3431: else
1.150 moko 3432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433: $as_echo "no" >&6; }
1.41 paf 3434: fi
3435:
1.150 moko 3436:
1.62 paf 3437: test -n "$YACC" && break
1.41 paf 3438: done
3439: test -n "$YACC" || YACC="yacc"
3440:
3441: if test "$YACC" != "bison -y"; then
1.150 moko 3442: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
3443: $as_echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 3444: else
1.150 moko 3445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
3446: $as_echo_n "checking bison version... " >&6; }
1.67 paf 3447: oldIFS=$IFS; IFS=.
3448: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
3449: IFS=$oldIFS
3450: if test "$1" = "1" -a "$2" -lt "25"; then
1.150 moko 3451: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
3452: $as_echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 3453: fi
1.150 moko 3454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
3455: $as_echo "$1.$2 (ok)" >&6; }
1.62 paf 3456: fi
3457:
1.150 moko 3458: ac_ext=cpp
1.66 paf 3459: ac_cpp='$CXXCPP $CPPFLAGS'
3460: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 3463: if test -z "$CXX"; then
3464: if test -n "$CCC"; then
3465: CXX=$CCC
3466: else
3467: if test -n "$ac_tool_prefix"; then
3468: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3469: do
3470: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3471: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 3472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473: $as_echo_n "checking for $ac_word... " >&6; }
3474: if ${ac_cv_prog_CXX+:} false; then :
3475: $as_echo_n "(cached) " >&6
1.62 paf 3476: else
1.66 paf 3477: if test -n "$CXX"; then
3478: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 3479: else
3480: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481: for as_dir in $PATH
3482: do
3483: IFS=$as_save_IFS
3484: test -z "$as_dir" && as_dir=.
1.150 moko 3485: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3486: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3487: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.150 moko 3488: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3489: break 2
3490: fi
3491: done
1.150 moko 3492: done
3493: IFS=$as_save_IFS
1.62 paf 3494:
3495: fi
3496: fi
1.66 paf 3497: CXX=$ac_cv_prog_CXX
3498: if test -n "$CXX"; then
1.150 moko 3499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3500: $as_echo "$CXX" >&6; }
1.62 paf 3501: else
1.150 moko 3502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503: $as_echo "no" >&6; }
1.41 paf 3504: fi
3505:
1.150 moko 3506:
1.66 paf 3507: test -n "$CXX" && break
3508: done
1.62 paf 3509: fi
1.66 paf 3510: if test -z "$CXX"; then
3511: ac_ct_CXX=$CXX
1.150 moko 3512: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3513: do
3514: # Extract the first word of "$ac_prog", so it can be a program name with args.
3515: set dummy $ac_prog; ac_word=$2
1.150 moko 3516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517: $as_echo_n "checking for $ac_word... " >&6; }
3518: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3519: $as_echo_n "(cached) " >&6
1.62 paf 3520: else
1.66 paf 3521: if test -n "$ac_ct_CXX"; then
3522: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 3523: else
3524: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525: for as_dir in $PATH
3526: do
3527: IFS=$as_save_IFS
3528: test -z "$as_dir" && as_dir=.
1.150 moko 3529: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3530: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3531: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.150 moko 3532: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3533: break 2
3534: fi
3535: done
1.150 moko 3536: done
3537: IFS=$as_save_IFS
1.62 paf 3538:
3539: fi
3540: fi
1.66 paf 3541: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3542: if test -n "$ac_ct_CXX"; then
1.150 moko 3543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3544: $as_echo "$ac_ct_CXX" >&6; }
1.62 paf 3545: else
1.150 moko 3546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547: $as_echo "no" >&6; }
1.62 paf 3548: fi
3549:
1.150 moko 3550:
1.66 paf 3551: test -n "$ac_ct_CXX" && break
3552: done
3553:
1.150 moko 3554: if test "x$ac_ct_CXX" = x; then
3555: CXX="g++"
3556: else
3557: case $cross_compiling:$ac_tool_warned in
3558: yes:)
3559: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561: ac_tool_warned=yes ;;
3562: esac
3563: CXX=$ac_ct_CXX
3564: fi
1.62 paf 3565: fi
3566:
1.150 moko 3567: fi
3568: fi
1.66 paf 3569: # Provide some information about the compiler.
1.150 moko 3570: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3571: set X $ac_compile
3572: ac_compiler=$2
3573: for ac_option in --version -v -V -qversion; do
3574: { { ac_try="$ac_compiler $ac_option >&5"
3575: case "(($ac_try" in
3576: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577: *) ac_try_echo=$ac_try;;
3578: esac
3579: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580: $as_echo "$ac_try_echo"; } >&5
3581: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 3582: ac_status=$?
1.150 moko 3583: if test -s conftest.err; then
3584: sed '10a\
3585: ... rest of stderr output deleted ...
3586: 10q' conftest.err >conftest.er1
3587: cat conftest.er1 >&5
3588: fi
3589: rm -f conftest.er1 conftest.err
3590: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591: test $ac_status = 0; }
3592: done
1.66 paf 3593:
1.150 moko 3594: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3595: /* end confdefs.h. */
3596:
3597: int
3598: main ()
3599: {
3600:
3601: ;
3602: return 0;
3603: }
3604: _ACEOF
3605: ac_clean_files_save=$ac_clean_files
1.150 moko 3606: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 3607: # Try to create an executable without -o first, disregard a.out.
3608: # It will help us diagnose broken compilers, and finding out an intuition
3609: # of exeext.
1.150 moko 3610: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3611: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3612: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3613:
3614: # The possible output files:
3615: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3616:
3617: ac_rmfiles=
3618: for ac_file in $ac_files
3619: do
3620: case $ac_file in
3621: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3622: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3623: esac
3624: done
3625: rm -f $ac_rmfiles
3626:
3627: if { { ac_try="$ac_link_default"
3628: case "(($ac_try" in
3629: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630: *) ac_try_echo=$ac_try;;
3631: esac
3632: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633: $as_echo "$ac_try_echo"; } >&5
3634: (eval "$ac_link_default") 2>&5
3635: ac_status=$?
3636: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637: test $ac_status = 0; }; then :
3638: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3639: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3640: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3641: # so that the user can short-circuit this test for compilers unknown to
3642: # Autoconf.
3643: for ac_file in $ac_files ''
1.62 paf 3644: do
1.66 paf 3645: test -f "$ac_file" || continue
3646: case $ac_file in
1.150 moko 3647: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 3648: ;;
1.66 paf 3649: [ab].out )
1.86 paf 3650: # We found the default executable, but exeext='' is most
3651: # certainly right.
3652: break;;
1.66 paf 3653: *.* )
1.150 moko 3654: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3655: then :; else
3656: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3657: fi
3658: # We set ac_cv_exeext here because the later test for it is not
3659: # safe: cross compilers may not add the suffix if given an `-o'
3660: # argument, so we may need to know it at that point already.
3661: # Even if this section looks crufty: it has the advantage of
3662: # actually working.
1.86 paf 3663: break;;
1.66 paf 3664: * )
1.86 paf 3665: break;;
1.66 paf 3666: esac
1.62 paf 3667: done
1.150 moko 3668: test "$ac_cv_exeext" = no && ac_cv_exeext=
3669:
1.66 paf 3670: else
1.150 moko 3671: ac_file=''
3672: fi
3673: if test -z "$ac_file"; then :
3674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675: $as_echo "no" >&6; }
3676: $as_echo "$as_me: failed program was:" >&5
1.66 paf 3677: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 3678:
1.150 moko 3679: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681: as_fn_error 77 "C++ compiler cannot create executables
3682: See \`config.log' for more details" "$LINENO" 5; }
3683: else
3684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3685: $as_echo "yes" >&6; }
1.1 paf 3686: fi
1.150 moko 3687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3688: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3690: $as_echo "$ac_file" >&6; }
1.66 paf 3691: ac_exeext=$ac_cv_exeext
1.62 paf 3692:
1.150 moko 3693: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 3694: ac_clean_files=$ac_clean_files_save
1.150 moko 3695: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3696: $as_echo_n "checking for suffix of executables... " >&6; }
3697: if { { ac_try="$ac_link"
3698: case "(($ac_try" in
3699: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700: *) ac_try_echo=$ac_try;;
3701: esac
3702: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703: $as_echo "$ac_try_echo"; } >&5
3704: (eval "$ac_link") 2>&5
1.62 paf 3705: ac_status=$?
1.150 moko 3706: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707: test $ac_status = 0; }; then :
1.62 paf 3708: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3709: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3710: # work properly (i.e., refer to `conftest.exe'), while it won't with
3711: # `rm'.
3712: for ac_file in conftest.exe conftest conftest.*; do
3713: test -f "$ac_file" || continue
3714: case $ac_file in
1.150 moko 3715: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 3716: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 3717: break;;
1.62 paf 3718: * ) break;;
3719: esac
3720: done
3721: else
1.150 moko 3722: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3725: See \`config.log' for more details" "$LINENO" 5; }
3726: fi
3727: rm -f conftest conftest$ac_cv_exeext
3728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3729: $as_echo "$ac_cv_exeext" >&6; }
1.62 paf 3730:
3731: rm -f conftest.$ac_ext
3732: EXEEXT=$ac_cv_exeext
3733: ac_exeext=$EXEEXT
1.150 moko 3734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735: /* end confdefs.h. */
3736: #include <stdio.h>
3737: int
3738: main ()
3739: {
3740: FILE *f = fopen ("conftest.out", "w");
3741: return ferror (f) || fclose (f) != 0;
3742:
3743: ;
3744: return 0;
3745: }
3746: _ACEOF
3747: ac_clean_files="$ac_clean_files conftest.out"
3748: # Check that the compiler produces executables we can run. If not, either
3749: # the compiler is broken, or we cross compile.
3750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3751: $as_echo_n "checking whether we are cross compiling... " >&6; }
3752: if test "$cross_compiling" != yes; then
3753: { { ac_try="$ac_link"
3754: case "(($ac_try" in
3755: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756: *) ac_try_echo=$ac_try;;
3757: esac
3758: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759: $as_echo "$ac_try_echo"; } >&5
3760: (eval "$ac_link") 2>&5
3761: ac_status=$?
3762: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763: test $ac_status = 0; }
3764: if { ac_try='./conftest$ac_cv_exeext'
3765: { { case "(($ac_try" in
3766: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767: *) ac_try_echo=$ac_try;;
3768: esac
3769: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770: $as_echo "$ac_try_echo"; } >&5
3771: (eval "$ac_try") 2>&5
3772: ac_status=$?
3773: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774: test $ac_status = 0; }; }; then
3775: cross_compiling=no
3776: else
3777: if test "$cross_compiling" = maybe; then
3778: cross_compiling=yes
3779: else
3780: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782: as_fn_error $? "cannot run C++ compiled programs.
3783: If you meant to cross compile, use \`--host'.
3784: See \`config.log' for more details" "$LINENO" 5; }
3785: fi
3786: fi
3787: fi
3788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3789: $as_echo "$cross_compiling" >&6; }
3790:
3791: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3792: ac_clean_files=$ac_clean_files_save
3793: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3794: $as_echo_n "checking for suffix of object files... " >&6; }
3795: if ${ac_cv_objext+:} false; then :
3796: $as_echo_n "(cached) " >&6
1.62 paf 3797: else
1.150 moko 3798: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3799: /* end confdefs.h. */
3800:
3801: int
3802: main ()
3803: {
3804:
3805: ;
3806: return 0;
3807: }
3808: _ACEOF
3809: rm -f conftest.o conftest.obj
1.150 moko 3810: if { { ac_try="$ac_compile"
3811: case "(($ac_try" in
3812: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813: *) ac_try_echo=$ac_try;;
3814: esac
3815: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816: $as_echo "$ac_try_echo"; } >&5
3817: (eval "$ac_compile") 2>&5
3818: ac_status=$?
3819: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820: test $ac_status = 0; }; then :
3821: for ac_file in conftest.o conftest.obj conftest.*; do
3822: test -f "$ac_file" || continue;
1.62 paf 3823: case $ac_file in
1.150 moko 3824: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 3825: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3826: break;;
3827: esac
3828: done
3829: else
1.150 moko 3830: $as_echo "$as_me: failed program was:" >&5
1.62 paf 3831: sed 's/^/| /' conftest.$ac_ext >&5
3832:
1.150 moko 3833: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835: as_fn_error $? "cannot compute suffix of object files: cannot compile
3836: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 3837: fi
3838: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3839: fi
1.150 moko 3840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3841: $as_echo "$ac_cv_objext" >&6; }
1.66 paf 3842: OBJEXT=$ac_cv_objext
3843: ac_objext=$OBJEXT
1.150 moko 3844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3845: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3846: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3847: $as_echo_n "(cached) " >&6
1.62 paf 3848: else
1.150 moko 3849: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3850: /* end confdefs.h. */
1.66 paf 3851:
1.62 paf 3852: int
3853: main ()
3854: {
1.66 paf 3855: #ifndef __GNUC__
3856: choke me
3857: #endif
3858:
1.62 paf 3859: ;
3860: return 0;
3861: }
3862: _ACEOF
1.150 moko 3863: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3864: ac_compiler_gnu=yes
1.62 paf 3865: else
1.150 moko 3866: ac_compiler_gnu=no
1.1 paf 3867: fi
1.150 moko 3868: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3869: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 3870:
3871: fi
1.150 moko 3872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3873: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3874: if test $ac_compiler_gnu = yes; then
3875: GXX=yes
3876: else
3877: GXX=
3878: fi
1.66 paf 3879: ac_test_CXXFLAGS=${CXXFLAGS+set}
3880: ac_save_CXXFLAGS=$CXXFLAGS
1.150 moko 3881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3882: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3883: if ${ac_cv_prog_cxx_g+:} false; then :
3884: $as_echo_n "(cached) " >&6
3885: else
3886: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3887: ac_cxx_werror_flag=yes
3888: ac_cv_prog_cxx_g=no
3889: CXXFLAGS="-g"
3890: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3891: /* end confdefs.h. */
1.1 paf 3892:
1.66 paf 3893: int
3894: main ()
3895: {
1.1 paf 3896:
1.66 paf 3897: ;
3898: return 0;
3899: }
1.62 paf 3900: _ACEOF
1.150 moko 3901: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3902: ac_cv_prog_cxx_g=yes
3903: else
1.150 moko 3904: CXXFLAGS=""
3905: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906: /* end confdefs.h. */
1.66 paf 3907:
1.62 paf 3908: int
3909: main ()
3910: {
1.150 moko 3911:
1.62 paf 3912: ;
3913: return 0;
3914: }
3915: _ACEOF
1.150 moko 3916: if ac_fn_cxx_try_compile "$LINENO"; then :
3917:
1.1 paf 3918: else
1.150 moko 3919: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3920: CXXFLAGS="-g"
3921: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922: /* end confdefs.h. */
1.62 paf 3923:
3924: int
3925: main ()
3926: {
1.150 moko 3927:
1.62 paf 3928: ;
3929: return 0;
3930: }
3931: _ACEOF
1.150 moko 3932: if ac_fn_cxx_try_compile "$LINENO"; then :
3933: ac_cv_prog_cxx_g=yes
3934: fi
3935: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936: fi
3937: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938: fi
3939: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3941: fi
3942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3943: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3944: if test "$ac_test_CXXFLAGS" = set; then
3945: CXXFLAGS=$ac_save_CXXFLAGS
3946: elif test $ac_cv_prog_cxx_g = yes; then
3947: if test "$GXX" = yes; then
3948: CXXFLAGS="-g -O2"
3949: else
3950: CXXFLAGS="-g"
3951: fi
1.1 paf 3952: else
1.150 moko 3953: if test "$GXX" = yes; then
3954: CXXFLAGS="-O2"
3955: else
3956: CXXFLAGS=
3957: fi
1.1 paf 3958: fi
1.62 paf 3959: ac_ext=c
3960: ac_cpp='$CPP $CPPFLAGS'
3961: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 3964: DEPDIR="${am__leading_dot}deps"
1.62 paf 3965:
1.150 moko 3966: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 3967:
1.199 moko 3968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3969: $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3970: cat > confinc.mk << 'END'
1.86 paf 3971: am__doit:
1.199 moko 3972: @echo this is the am__doit target >confinc.out
1.86 paf 3973: .PHONY: am__doit
1.62 paf 3974: END
3975: am__include="#"
3976: am__quote=
1.199 moko 3977: # BSD make does it like this.
3978: echo '.include "confinc.mk" # ignored' > confmf.BSD
3979: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3980: echo 'include confinc.mk # ignored' > confmf.GNU
3981: _am_result=no
3982: for s in GNU BSD; do
3983: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3984: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3985: ac_status=$?
3986: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987: (exit $ac_status); }
3988: case $?:`cat confinc.out 2>/dev/null` in #(
3989: '0:this is the am__doit target') :
3990: case $s in #(
3991: BSD) :
3992: am__include='.include' am__quote='"' ;; #(
3993: *) :
3994: am__include='include' am__quote='' ;;
3995: esac ;; #(
3996: *) :
1.150 moko 3997: ;;
1.199 moko 3998: esac
3999: if test "$am__include" != "#"; then
4000: _am_result="yes ($s style)"
4001: break
4002: fi
4003: done
4004: rm -f confinc.* confmf.*
4005: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4006: $as_echo "${_am_result}" >&6; }
1.62 paf 4007:
1.150 moko 4008: # Check whether --enable-dependency-tracking was given.
4009: if test "${enable_dependency_tracking+set}" = set; then :
4010: enableval=$enable_dependency_tracking;
4011: fi
1.62 paf 4012:
4013: if test "x$enable_dependency_tracking" != xno; then
4014: am_depcomp="$ac_aux_dir/depcomp"
4015: AMDEPBACKSLASH='\'
1.187 moko 4016: am__nodep='_no'
1.1 paf 4017: fi
1.150 moko 4018: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 4019: AMDEP_TRUE=
4020: AMDEP_FALSE='#'
4021: else
4022: AMDEP_TRUE='#'
4023: AMDEP_FALSE=
4024: fi
1.1 paf 4025:
4026:
4027:
1.66 paf 4028: depcc="$CXX" am_compiler_list=
1.1 paf 4029:
1.150 moko 4030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4031: $as_echo_n "checking dependency style of $depcc... " >&6; }
4032: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4033: $as_echo_n "(cached) " >&6
1.62 paf 4034: else
4035: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4036: # We make a subdir and do the tests there. Otherwise we can end up
4037: # making bogus files that we don't know about and never remove. For
4038: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4039: # making a dummy file named 'D' -- because '-MD' means "put the output
4040: # in D".
4041: rm -rf conftest.dir
1.62 paf 4042: mkdir conftest.dir
4043: # Copy depcomp to subdir because otherwise we won't find it if we're
4044: # using a relative directory.
4045: cp "$am_depcomp" conftest.dir
4046: cd conftest.dir
1.86 paf 4047: # We will build objects and dependencies in a subdirectory because
4048: # it helps to detect inapplicable dependency modes. For instance
4049: # both Tru64's cc and ICC support -MD to output dependencies as a
4050: # side effect of compilation, but ICC will put the dependencies in
4051: # the current directory while Tru64 will put them in the object
4052: # directory.
4053: mkdir sub
1.1 paf 4054:
1.66 paf 4055: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 4056: if test "$am_compiler_list" = ""; then
4057: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 4058: fi
1.150 moko 4059: am__universal=false
4060: case " $depcc " in #(
4061: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4062: esac
4063:
1.62 paf 4064: for depmode in $am_compiler_list; do
1.86 paf 4065: # Setup a source with many dependencies, because some compilers
4066: # like to wrap large dependency lists on column 80 (with \), and
4067: # we should not choose a depcomp mode which is confused by this.
4068: #
1.62 paf 4069: # We need to recreate these files for each test, as the compiler may
4070: # overwrite some of them when testing with obscure command lines.
4071: # This happens at least with the AIX C compiler.
1.86 paf 4072: : > sub/conftest.c
4073: for i in 1 2 3 4 5 6; do
4074: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4075: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4076: # Solaris 10 /bin/sh.
4077: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4078: done
4079: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4080:
1.187 moko 4081: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4082: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4083: # handle '-M -o', and we need to detect this. Also, some Intel
4084: # versions had trouble with output in subdirs.
1.150 moko 4085: am__obj=sub/conftest.${OBJEXT-o}
4086: am__minus_obj="-o $am__obj"
1.62 paf 4087: case $depmode in
1.150 moko 4088: gcc)
4089: # This depmode causes a compiler race in universal mode.
4090: test "$am__universal" = false || continue
4091: ;;
1.62 paf 4092: nosideeffect)
1.187 moko 4093: # After this tag, mechanisms are not by side-effect, so they'll
4094: # only be used when explicitly requested.
1.62 paf 4095: if test "x$enable_dependency_tracking" = xyes; then
4096: continue
4097: else
4098: break
4099: fi
4100: ;;
1.187 moko 4101: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4102: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4103: # not run yet. These depmodes are late enough in the game, and
4104: # so weak that their functioning should not be impacted.
4105: am__obj=conftest.${OBJEXT-o}
4106: am__minus_obj=
4107: ;;
1.62 paf 4108: none) break ;;
4109: esac
4110: if depmode=$depmode \
1.150 moko 4111: source=sub/conftest.c object=$am__obj \
1.86 paf 4112: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4113: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4114: >/dev/null 2>conftest.err &&
1.150 moko 4115: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4116: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4117: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 4118: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4119: # icc doesn't choke on unknown options, it will just issue warnings
4120: # or remarks (even with -Werror). So we grep stderr for any message
4121: # that says an option was ignored or not supported.
4122: # When given -MP, icc 7.0 and 7.1 complain thusly:
4123: # icc: Command line warning: ignoring option '-M'; no argument required
4124: # The diagnosis changed in icc 8.0:
4125: # icc: Command line remark: option '-MP' not supported
4126: if (grep 'ignoring option' conftest.err ||
4127: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4128: am_cv_CXX_dependencies_compiler_type=$depmode
4129: break
4130: fi
1.66 paf 4131: fi
4132: done
4133:
4134: cd ..
4135: rm -rf conftest.dir
4136: else
4137: am_cv_CXX_dependencies_compiler_type=none
4138: fi
4139:
4140: fi
1.150 moko 4141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4142: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 4143: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4144:
1.150 moko 4145: if
1.66 paf 4146: test "x$enable_dependency_tracking" != xno \
4147: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4148: am__fastdepCXX_TRUE=
4149: am__fastdepCXX_FALSE='#'
4150: else
4151: am__fastdepCXX_TRUE='#'
4152: am__fastdepCXX_FALSE=
4153: fi
4154:
4155:
4156: ac_ext=c
4157: ac_cpp='$CPP $CPPFLAGS'
4158: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161: if test -n "$ac_tool_prefix"; then
4162: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4163: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.150 moko 4164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165: $as_echo_n "checking for $ac_word... " >&6; }
4166: if ${ac_cv_prog_CC+:} false; then :
4167: $as_echo_n "(cached) " >&6
1.66 paf 4168: else
4169: if test -n "$CC"; then
4170: ac_cv_prog_CC="$CC" # Let the user override the test.
4171: else
4172: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173: for as_dir in $PATH
4174: do
4175: IFS=$as_save_IFS
4176: test -z "$as_dir" && as_dir=.
1.150 moko 4177: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4178: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4179: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.150 moko 4180: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4181: break 2
4182: fi
4183: done
1.150 moko 4184: done
4185: IFS=$as_save_IFS
1.66 paf 4186:
4187: fi
4188: fi
4189: CC=$ac_cv_prog_CC
4190: if test -n "$CC"; then
1.150 moko 4191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4192: $as_echo "$CC" >&6; }
1.66 paf 4193: else
1.150 moko 4194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195: $as_echo "no" >&6; }
1.66 paf 4196: fi
4197:
1.150 moko 4198:
1.66 paf 4199: fi
4200: if test -z "$ac_cv_prog_CC"; then
4201: ac_ct_CC=$CC
4202: # Extract the first word of "gcc", so it can be a program name with args.
4203: set dummy gcc; ac_word=$2
1.150 moko 4204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205: $as_echo_n "checking for $ac_word... " >&6; }
4206: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4207: $as_echo_n "(cached) " >&6
1.66 paf 4208: else
4209: if test -n "$ac_ct_CC"; then
4210: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4211: else
4212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213: for as_dir in $PATH
4214: do
4215: IFS=$as_save_IFS
4216: test -z "$as_dir" && as_dir=.
1.150 moko 4217: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4218: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4219: ac_cv_prog_ac_ct_CC="gcc"
1.150 moko 4220: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4221: break 2
4222: fi
4223: done
1.150 moko 4224: done
4225: IFS=$as_save_IFS
1.66 paf 4226:
4227: fi
4228: fi
4229: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4230: if test -n "$ac_ct_CC"; then
1.150 moko 4231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4232: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4233: else
1.150 moko 4234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235: $as_echo "no" >&6; }
1.62 paf 4236: fi
4237:
1.150 moko 4238: if test "x$ac_ct_CC" = x; then
4239: CC=""
4240: else
4241: case $cross_compiling:$ac_tool_warned in
4242: yes:)
4243: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4244: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4245: ac_tool_warned=yes ;;
4246: esac
4247: CC=$ac_ct_CC
4248: fi
1.66 paf 4249: else
4250: CC="$ac_cv_prog_CC"
1.1 paf 4251: fi
1.62 paf 4252:
1.66 paf 4253: if test -z "$CC"; then
1.150 moko 4254: if test -n "$ac_tool_prefix"; then
4255: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 4256: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.150 moko 4257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258: $as_echo_n "checking for $ac_word... " >&6; }
4259: if ${ac_cv_prog_CC+:} false; then :
4260: $as_echo_n "(cached) " >&6
1.66 paf 4261: else
4262: if test -n "$CC"; then
4263: ac_cv_prog_CC="$CC" # Let the user override the test.
4264: else
4265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266: for as_dir in $PATH
4267: do
4268: IFS=$as_save_IFS
4269: test -z "$as_dir" && as_dir=.
1.150 moko 4270: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4271: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4272: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.150 moko 4273: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4274: break 2
4275: fi
4276: done
1.150 moko 4277: done
4278: IFS=$as_save_IFS
1.62 paf 4279:
1.66 paf 4280: fi
4281: fi
4282: CC=$ac_cv_prog_CC
4283: if test -n "$CC"; then
1.150 moko 4284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4285: $as_echo "$CC" >&6; }
1.62 paf 4286: else
1.150 moko 4287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288: $as_echo "no" >&6; }
1.1 paf 4289: fi
4290:
1.150 moko 4291:
1.66 paf 4292: fi
1.1 paf 4293: fi
1.66 paf 4294: if test -z "$CC"; then
4295: # Extract the first word of "cc", so it can be a program name with args.
4296: set dummy cc; ac_word=$2
1.150 moko 4297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298: $as_echo_n "checking for $ac_word... " >&6; }
4299: if ${ac_cv_prog_CC+:} false; then :
4300: $as_echo_n "(cached) " >&6
1.66 paf 4301: else
4302: if test -n "$CC"; then
4303: ac_cv_prog_CC="$CC" # Let the user override the test.
4304: else
4305: ac_prog_rejected=no
4306: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307: for as_dir in $PATH
4308: do
4309: IFS=$as_save_IFS
4310: test -z "$as_dir" && as_dir=.
1.150 moko 4311: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4312: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4313: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4314: ac_prog_rejected=yes
4315: continue
4316: fi
4317: ac_cv_prog_CC="cc"
1.150 moko 4318: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4319: break 2
4320: fi
4321: done
1.150 moko 4322: done
4323: IFS=$as_save_IFS
1.62 paf 4324:
1.66 paf 4325: if test $ac_prog_rejected = yes; then
4326: # We found a bogon in the path, so make sure we never use it.
4327: set dummy $ac_cv_prog_CC
4328: shift
4329: if test $# != 0; then
4330: # We chose a different compiler from the bogus one.
4331: # However, it has the same basename, so the bogon will be chosen
4332: # first if we set CC to just the basename; use the full file name.
4333: shift
4334: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4335: fi
4336: fi
4337: fi
4338: fi
4339: CC=$ac_cv_prog_CC
4340: if test -n "$CC"; then
1.150 moko 4341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4342: $as_echo "$CC" >&6; }
1.66 paf 4343: else
1.150 moko 4344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345: $as_echo "no" >&6; }
1.1 paf 4346: fi
4347:
1.150 moko 4348:
1.66 paf 4349: fi
4350: if test -z "$CC"; then
4351: if test -n "$ac_tool_prefix"; then
1.150 moko 4352: for ac_prog in cl.exe
1.62 paf 4353: do
4354: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 4356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357: $as_echo_n "checking for $ac_word... " >&6; }
4358: if ${ac_cv_prog_CC+:} false; then :
4359: $as_echo_n "(cached) " >&6
1.62 paf 4360: else
1.66 paf 4361: if test -n "$CC"; then
4362: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 4363: else
4364: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365: for as_dir in $PATH
4366: do
4367: IFS=$as_save_IFS
4368: test -z "$as_dir" && as_dir=.
1.150 moko 4369: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4370: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4371: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.150 moko 4372: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4373: break 2
4374: fi
4375: done
1.150 moko 4376: done
4377: IFS=$as_save_IFS
1.1 paf 4378:
1.62 paf 4379: fi
4380: fi
1.66 paf 4381: CC=$ac_cv_prog_CC
4382: if test -n "$CC"; then
1.150 moko 4383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4384: $as_echo "$CC" >&6; }
1.1 paf 4385: else
1.150 moko 4386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387: $as_echo "no" >&6; }
1.1 paf 4388: fi
4389:
1.150 moko 4390:
1.66 paf 4391: test -n "$CC" && break
1.62 paf 4392: done
4393: fi
1.66 paf 4394: if test -z "$CC"; then
4395: ac_ct_CC=$CC
1.150 moko 4396: for ac_prog in cl.exe
1.62 paf 4397: do
4398: # Extract the first word of "$ac_prog", so it can be a program name with args.
4399: set dummy $ac_prog; ac_word=$2
1.150 moko 4400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401: $as_echo_n "checking for $ac_word... " >&6; }
4402: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4403: $as_echo_n "(cached) " >&6
1.62 paf 4404: else
1.66 paf 4405: if test -n "$ac_ct_CC"; then
4406: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 4407: else
1.62 paf 4408: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409: for as_dir in $PATH
4410: do
4411: IFS=$as_save_IFS
4412: test -z "$as_dir" && as_dir=.
1.150 moko 4413: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4414: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4415: ac_cv_prog_ac_ct_CC="$ac_prog"
1.150 moko 4416: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4417: break 2
4418: fi
4419: done
1.150 moko 4420: done
4421: IFS=$as_save_IFS
1.62 paf 4422:
4423: fi
4424: fi
1.66 paf 4425: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4426: if test -n "$ac_ct_CC"; then
1.150 moko 4427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4428: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4429: else
1.150 moko 4430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431: $as_echo "no" >&6; }
1.1 paf 4432: fi
4433:
1.150 moko 4434:
1.66 paf 4435: test -n "$ac_ct_CC" && break
4436: done
4437:
1.150 moko 4438: if test "x$ac_ct_CC" = x; then
4439: CC=""
4440: else
4441: case $cross_compiling:$ac_tool_warned in
4442: yes:)
4443: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445: ac_tool_warned=yes ;;
4446: esac
4447: CC=$ac_ct_CC
4448: fi
1.66 paf 4449: fi
4450:
4451: fi
1.62 paf 4452:
1.1 paf 4453:
1.150 moko 4454: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4456: as_fn_error $? "no acceptable C compiler found in \$PATH
4457: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 4458:
4459: # Provide some information about the compiler.
1.150 moko 4460: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4461: set X $ac_compile
4462: ac_compiler=$2
4463: for ac_option in --version -v -V -qversion; do
4464: { { ac_try="$ac_compiler $ac_option >&5"
4465: case "(($ac_try" in
4466: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467: *) ac_try_echo=$ac_try;;
4468: esac
4469: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4470: $as_echo "$ac_try_echo"; } >&5
4471: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 4472: ac_status=$?
1.150 moko 4473: if test -s conftest.err; then
4474: sed '10a\
4475: ... rest of stderr output deleted ...
4476: 10q' conftest.err >conftest.er1
4477: cat conftest.er1 >&5
4478: fi
4479: rm -f conftest.er1 conftest.err
4480: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4481: test $ac_status = 0; }
4482: done
4483:
4484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4485: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4486: if ${ac_cv_c_compiler_gnu+:} false; then :
4487: $as_echo_n "(cached) " >&6
1.62 paf 4488: else
1.150 moko 4489: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4490: /* end confdefs.h. */
4491:
4492: int
4493: main ()
4494: {
4495: #ifndef __GNUC__
4496: choke me
4497: #endif
4498:
4499: ;
4500: return 0;
4501: }
4502: _ACEOF
1.150 moko 4503: if ac_fn_c_try_compile "$LINENO"; then :
1.62 paf 4504: ac_compiler_gnu=yes
4505: else
1.150 moko 4506: ac_compiler_gnu=no
1.62 paf 4507: fi
1.150 moko 4508: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 4509: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 4510:
4511: fi
1.150 moko 4512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4513: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4514: if test $ac_compiler_gnu = yes; then
4515: GCC=yes
4516: else
4517: GCC=
4518: fi
1.66 paf 4519: ac_test_CFLAGS=${CFLAGS+set}
4520: ac_save_CFLAGS=$CFLAGS
1.150 moko 4521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4522: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4523: if ${ac_cv_prog_cc_g+:} false; then :
4524: $as_echo_n "(cached) " >&6
4525: else
4526: ac_save_c_werror_flag=$ac_c_werror_flag
4527: ac_c_werror_flag=yes
4528: ac_cv_prog_cc_g=no
4529: CFLAGS="-g"
4530: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4531: /* end confdefs.h. */
4532:
4533: int
4534: main ()
4535: {
4536:
4537: ;
4538: return 0;
4539: }
4540: _ACEOF
1.150 moko 4541: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 4542: ac_cv_prog_cc_g=yes
1.62 paf 4543: else
1.150 moko 4544: CFLAGS=""
4545: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546: /* end confdefs.h. */
4547:
4548: int
4549: main ()
4550: {
1.62 paf 4551:
1.150 moko 4552: ;
4553: return 0;
4554: }
4555: _ACEOF
4556: if ac_fn_c_try_compile "$LINENO"; then :
4557:
4558: else
4559: ac_c_werror_flag=$ac_save_c_werror_flag
4560: CFLAGS="-g"
4561: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562: /* end confdefs.h. */
4563:
4564: int
4565: main ()
4566: {
4567:
4568: ;
4569: return 0;
4570: }
4571: _ACEOF
4572: if ac_fn_c_try_compile "$LINENO"; then :
4573: ac_cv_prog_cc_g=yes
4574: fi
4575: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4576: fi
1.150 moko 4577: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4578: fi
1.150 moko 4579: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580: ac_c_werror_flag=$ac_save_c_werror_flag
4581: fi
4582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4583: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.66 paf 4584: if test "$ac_test_CFLAGS" = set; then
4585: CFLAGS=$ac_save_CFLAGS
4586: elif test $ac_cv_prog_cc_g = yes; then
4587: if test "$GCC" = yes; then
4588: CFLAGS="-g -O2"
1.1 paf 4589: else
1.66 paf 4590: CFLAGS="-g"
1.1 paf 4591: fi
4592: else
1.66 paf 4593: if test "$GCC" = yes; then
4594: CFLAGS="-O2"
1.1 paf 4595: else
1.66 paf 4596: CFLAGS=
1.1 paf 4597: fi
4598: fi
1.150 moko 4599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4600: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4601: if ${ac_cv_prog_cc_c89+:} false; then :
4602: $as_echo_n "(cached) " >&6
1.66 paf 4603: else
1.150 moko 4604: ac_cv_prog_cc_c89=no
1.66 paf 4605: ac_save_CC=$CC
1.150 moko 4606: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4607: /* end confdefs.h. */
4608: #include <stdarg.h>
4609: #include <stdio.h>
1.166 moko 4610: struct stat;
1.66 paf 4611: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4612: struct buf { int x; };
4613: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4614: static char *e (p, i)
4615: char **p;
4616: int i;
4617: {
4618: return p[i];
4619: }
4620: static char *f (char * (*g) (char **, int), char **p, ...)
4621: {
4622: char *s;
4623: va_list v;
4624: va_start (v,p);
4625: s = g (p, va_arg (v,int));
4626: va_end (v);
4627: return s;
4628: }
1.86 paf 4629:
4630: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4631: function prototypes and stuff, but not '\xHH' hex character constants.
4632: These don't provoke an error unfortunately, instead are silently treated
1.150 moko 4633: as 'x'. The following induces an error, until -std is added to get
1.86 paf 4634: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4635: array size at least. It's necessary to write '\x00'==0 to get something
1.150 moko 4636: that's true only with -std. */
1.86 paf 4637: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4638:
1.150 moko 4639: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4640: inside strings and character constants. */
4641: #define FOO(x) 'x'
4642: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4643:
1.66 paf 4644: int test (int i, double x);
4645: struct s1 {int (*f) (int a);};
4646: struct s2 {int (*f) (double a);};
4647: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4648: int argc;
4649: char **argv;
4650: int
4651: main ()
4652: {
4653: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4654: ;
4655: return 0;
4656: }
4657: _ACEOF
1.150 moko 4658: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4659: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 4660: do
4661: CC="$ac_save_CC $ac_arg"
1.150 moko 4662: if ac_fn_c_try_compile "$LINENO"; then :
4663: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 4664: fi
1.150 moko 4665: rm -f core conftest.err conftest.$ac_objext
4666: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 4667: done
1.150 moko 4668: rm -f conftest.$ac_ext
1.66 paf 4669: CC=$ac_save_CC
4670:
4671: fi
1.150 moko 4672: # AC_CACHE_VAL
4673: case "x$ac_cv_prog_cc_c89" in
4674: x)
4675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4676: $as_echo "none needed" >&6; } ;;
4677: xno)
4678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4679: $as_echo "unsupported" >&6; } ;;
1.66 paf 4680: *)
1.150 moko 4681: CC="$CC $ac_cv_prog_cc_c89"
4682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4683: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.66 paf 4684: esac
1.150 moko 4685: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.62 paf 4686:
4687: fi
1.66 paf 4688:
1.62 paf 4689: ac_ext=c
4690: ac_cpp='$CPP $CPPFLAGS'
4691: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694:
1.187 moko 4695: ac_ext=c
4696: ac_cpp='$CPP $CPPFLAGS'
4697: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4701: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4702: if ${am_cv_prog_cc_c_o+:} false; then :
4703: $as_echo_n "(cached) " >&6
4704: else
4705: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706: /* end confdefs.h. */
4707:
4708: int
4709: main ()
4710: {
4711:
4712: ;
4713: return 0;
4714: }
4715: _ACEOF
4716: # Make sure it works both with $CC and with simple cc.
4717: # Following AC_PROG_CC_C_O, we do the test twice because some
4718: # compilers refuse to overwrite an existing .o file with -o,
4719: # though they will create one.
4720: am_cv_prog_cc_c_o=yes
4721: for am_i in 1 2; do
4722: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4723: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4724: ac_status=$?
4725: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726: (exit $ac_status); } \
4727: && test -f conftest2.$ac_objext; then
4728: : OK
4729: else
4730: am_cv_prog_cc_c_o=no
4731: break
4732: fi
4733: done
4734: rm -f core conftest*
4735: unset am_i
4736: fi
4737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4738: $as_echo "$am_cv_prog_cc_c_o" >&6; }
4739: if test "$am_cv_prog_cc_c_o" != yes; then
4740: # Losing compiler, so override with the script.
4741: # FIXME: It is wrong to rewrite CC.
4742: # But if we don't then we get into trouble of one sort or another.
4743: # A longer-term fix would be to have automake use am__CC in this case,
4744: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4745: CC="$am_aux_dir/compile $CC"
4746: fi
4747: ac_ext=c
4748: ac_cpp='$CPP $CPPFLAGS'
4749: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4750: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4751: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4752:
4753:
1.66 paf 4754: depcc="$CC" am_compiler_list=
1.62 paf 4755:
1.150 moko 4756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4757: $as_echo_n "checking dependency style of $depcc... " >&6; }
4758: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4759: $as_echo_n "(cached) " >&6
1.62 paf 4760: else
4761: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4762: # We make a subdir and do the tests there. Otherwise we can end up
4763: # making bogus files that we don't know about and never remove. For
4764: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4765: # making a dummy file named 'D' -- because '-MD' means "put the output
4766: # in D".
4767: rm -rf conftest.dir
1.62 paf 4768: mkdir conftest.dir
4769: # Copy depcomp to subdir because otherwise we won't find it if we're
4770: # using a relative directory.
4771: cp "$am_depcomp" conftest.dir
4772: cd conftest.dir
1.86 paf 4773: # We will build objects and dependencies in a subdirectory because
4774: # it helps to detect inapplicable dependency modes. For instance
4775: # both Tru64's cc and ICC support -MD to output dependencies as a
4776: # side effect of compilation, but ICC will put the dependencies in
4777: # the current directory while Tru64 will put them in the object
4778: # directory.
4779: mkdir sub
1.62 paf 4780:
1.66 paf 4781: am_cv_CC_dependencies_compiler_type=none
1.62 paf 4782: if test "$am_compiler_list" = ""; then
4783: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4784: fi
1.150 moko 4785: am__universal=false
4786: case " $depcc " in #(
4787: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4788: esac
4789:
1.62 paf 4790: for depmode in $am_compiler_list; do
1.86 paf 4791: # Setup a source with many dependencies, because some compilers
4792: # like to wrap large dependency lists on column 80 (with \), and
4793: # we should not choose a depcomp mode which is confused by this.
4794: #
1.62 paf 4795: # We need to recreate these files for each test, as the compiler may
4796: # overwrite some of them when testing with obscure command lines.
4797: # This happens at least with the AIX C compiler.
1.86 paf 4798: : > sub/conftest.c
4799: for i in 1 2 3 4 5 6; do
4800: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4801: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4802: # Solaris 10 /bin/sh.
4803: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4804: done
4805: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4806:
1.187 moko 4807: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4808: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4809: # handle '-M -o', and we need to detect this. Also, some Intel
4810: # versions had trouble with output in subdirs.
1.150 moko 4811: am__obj=sub/conftest.${OBJEXT-o}
4812: am__minus_obj="-o $am__obj"
1.62 paf 4813: case $depmode in
1.150 moko 4814: gcc)
4815: # This depmode causes a compiler race in universal mode.
4816: test "$am__universal" = false || continue
4817: ;;
1.62 paf 4818: nosideeffect)
1.187 moko 4819: # After this tag, mechanisms are not by side-effect, so they'll
4820: # only be used when explicitly requested.
1.62 paf 4821: if test "x$enable_dependency_tracking" = xyes; then
4822: continue
4823: else
4824: break
4825: fi
4826: ;;
1.187 moko 4827: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4828: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4829: # not run yet. These depmodes are late enough in the game, and
4830: # so weak that their functioning should not be impacted.
4831: am__obj=conftest.${OBJEXT-o}
4832: am__minus_obj=
4833: ;;
1.62 paf 4834: none) break ;;
4835: esac
1.66 paf 4836: if depmode=$depmode \
1.150 moko 4837: source=sub/conftest.c object=$am__obj \
1.86 paf 4838: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4839: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4840: >/dev/null 2>conftest.err &&
1.150 moko 4841: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4842: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4843: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 4844: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4845: # icc doesn't choke on unknown options, it will just issue warnings
4846: # or remarks (even with -Werror). So we grep stderr for any message
4847: # that says an option was ignored or not supported.
4848: # When given -MP, icc 7.0 and 7.1 complain thusly:
4849: # icc: Command line warning: ignoring option '-M'; no argument required
4850: # The diagnosis changed in icc 8.0:
4851: # icc: Command line remark: option '-MP' not supported
4852: if (grep 'ignoring option' conftest.err ||
4853: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4854: am_cv_CC_dependencies_compiler_type=$depmode
4855: break
4856: fi
1.66 paf 4857: fi
4858: done
4859:
4860: cd ..
4861: rm -rf conftest.dir
4862: else
4863: am_cv_CC_dependencies_compiler_type=none
4864: fi
4865:
4866: fi
1.150 moko 4867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4868: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 4869: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4870:
1.150 moko 4871: if
1.66 paf 4872: test "x$enable_dependency_tracking" != xno \
4873: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4874: am__fastdepCC_TRUE=
4875: am__fastdepCC_FALSE='#'
4876: else
4877: am__fastdepCC_TRUE='#'
4878: am__fastdepCC_FALSE=
4879: fi
4880:
4881:
1.128 moko 4882:
1.66 paf 4883: ac_ext=c
4884: ac_cpp='$CPP $CPPFLAGS'
4885: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888:
1.67 paf 4889:
1.62 paf 4890:
1.150 moko 4891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
4892: $as_echo_n "checking for dynamic-link library extension... " >&6; }
1.128 moko 4893: case "$host_os" in
1.158 moko 4894: *cygwin* ) dll_extension=dll;;
4895: * ) dll_extension=so
1.66 paf 4896: esac
1.150 moko 4897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
4898: $as_echo "$dll_extension" >&6; }
1.1 paf 4899:
1.71 paf 4900:
4901:
4902:
1.150 moko 4903: # Check whether --with-build-warnings was given.
4904: if test "${with_build_warnings+set}" = set; then :
4905: withval=$with_build_warnings; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
4906: $as_echo "$as_me: WARNING: enabling compiler warnings" >&2;}
1.183 moko 4907: CXXFLAGS="$CXXFLAGS -Wextra -Wall -Wno-parentheses"
1.71 paf 4908:
1.150 moko 4909: fi
4910:
1.1 paf 4911:
4912:
1.182 moko 4913: # Check whether --with-coverage was given.
4914: if test "${with_coverage+set}" = set; then :
4915: withval=$with_coverage; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gcov support" >&5
4916: $as_echo "$as_me: WARNING: enabling gcov support" >&2;}
4917: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O0-9*//g'`
4918: CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O0-9*//g'`
4919: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
4920: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
4921: LDFLAGS="$LDFLAGS -lgcov"
4922:
4923: fi
4924:
4925:
4926:
4927: # Check whether --with-profiler was given.
4928: if test "${with_profiler+set}" = set; then :
4929: withval=$with_profiler; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gprof support" >&5
4930: $as_echo "$as_me: WARNING: enabling gprof support" >&2;}
1.193 moko 4931: CFLAGS="$CFLAGS -O0 -pg -g"
4932: CXXFLAGS="$CXXFLAGS -O0 -pg -g"
1.182 moko 4933:
4934: fi
4935:
4936:
4937:
1.150 moko 4938: # Check whether --with-assertions was given.
4939: if test "${with_assertions+set}" = set; then :
4940: withval=$with_assertions; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
4941: $as_echo "$as_me: WARNING: enabling assertions" >&2;}
1.67 paf 4942:
4943: else
4944:
1.150 moko 4945: $as_echo "#define NDEBUG /**/" >>confdefs.h
4946:
1.67 paf 4947:
1.150 moko 4948: fi
1.67 paf 4949:
4950:
1.94 misha 4951:
1.150 moko 4952: # Check whether --with-sjlj-exceptions was given.
4953: if test "${with_sjlj_exceptions+set}" = set; then :
4954: withval=$with_sjlj_exceptions;
4955: $as_echo "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.128 moko 4956:
4957:
1.150 moko 4958: fi
1.128 moko 4959:
4960:
1.62 paf 4961:
1.201 moko 4962:
1.203 moko 4963: # Check whether --with-system-cfg was given.
4964: if test "${with_system_cfg+set}" = set; then :
4965: withval=$with_system_cfg;
4966: cat >>confdefs.h <<_ACEOF
4967: #define SYSTEM_CONFIG_FILE "$withval"
4968: _ACEOF
1.201 moko 4969:
4970:
4971: fi
4972:
4973:
4974:
1.150 moko 4975: # Check whether --enable-safe-mode was given.
4976: if test "${enable_safe_mode+set}" = set; then :
4977: enableval=$enable_safe_mode;
1.67 paf 4978: SAFE_MODE=$enableval
1.60 paf 4979:
1.1 paf 4980:
1.150 moko 4981: fi
4982:
1.128 moko 4983:
1.60 paf 4984: if test "$SAFE_MODE" = "no"; then
1.150 moko 4985: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
4986: $as_echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 4987: else
1.62 paf 4988:
1.150 moko 4989: $as_echo "#define PA_SAFE_MODE /**/" >>confdefs.h
1.1 paf 4990:
4991: fi
4992:
1.94 misha 4993:
1.150 moko 4994: # Check whether --enable-execs was given.
4995: if test "${enable_execs+set}" = set; then :
4996: enableval=$enable_execs;
1.13 paf 4997: if test "$enableval" = "no"; then
1.150 moko 4998: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
4999: $as_echo "$as_me: WARNING: disabling file execs" >&2;}
1.62 paf 5000:
1.150 moko 5001: $as_echo "#define NO_PA_EXECS /**/" >>confdefs.h
1.13 paf 5002:
5003: fi
5004:
5005:
1.150 moko 5006: fi
1.13 paf 5007:
1.60 paf 5008:
1.94 misha 5009:
1.150 moko 5010: # Check whether --enable-stringstream was given.
5011: if test "${enable_stringstream+set}" = set; then :
5012: enableval=$enable_stringstream;
1.94 misha 5013: if test "$enableval" = "no"; then
1.150 moko 5014: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
5015: $as_echo "$as_me: WARNING: disabling stringstream usage" >&2;}
1.94 misha 5016:
1.150 moko 5017: $as_echo "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.94 misha 5018:
5019: fi
5020:
5021:
1.150 moko 5022: fi
1.94 misha 5023:
5024:
1.62 paf 5025:
1.17 paf 5026:
1.150 moko 5027: # Check whether --with-gc was given.
5028: if test "${with_gc+set}" = set; then :
5029: withval=$with_gc;
1.17 paf 5030:
1.142 moko 5031: GC=$withval
5032: GC_LIBS="$GC/libgc.la"
5033:
5034: if test -f $GC_LIBS; then
5035: GC_OK="yes"
5036: else
5037: GC_LIBS="-L$GC -lgc"
5038: fi
1.62 paf 5039:
1.151 moko 5040: if test "$GC" = "yes"; then
5041: GC=""
5042: GC_LIBS="-lgc"
5043: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
5044: $as_echo "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
5045: fi
5046:
1.142 moko 5047: else
1.17 paf 5048:
1.142 moko 5049: GC_LIBS="-lgc"
1.150 moko 5050: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
5051: $as_echo "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
5052:
5053: fi
1.17 paf 5054:
5055:
1.142 moko 5056: if test -z "$GC_OK"; then
1.150 moko 5057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
5058: $as_echo_n "checking for libgc... " >&6; }
1.138 moko 5059: SAVE_LIBS=$LIBS
5060: LIBS="$LIBS $GC_LIBS"
1.128 moko 5061:
1.150 moko 5062: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 5063: /* end confdefs.h. */
1.142 moko 5064: extern int GC_dont_gc;
1.67 paf 5065: int
5066: main ()
5067: {
1.142 moko 5068: GC_dont_gc=0;
1.67 paf 5069: ;
5070: return 0;
5071: }
5072: _ACEOF
1.150 moko 5073: if ac_fn_c_try_link "$LINENO"; then :
5074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5075: $as_echo "yes" >&6; }
1.67 paf 5076:
5077: else
1.150 moko 5078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079: $as_echo "no" >&6; }
1.142 moko 5080: if test -z "$GC"; then
1.201 moko 5081: as_fn_error $? "please specify path to libgc: --with-gc=DIR" "$LINENO" 5
1.142 moko 5082: else
1.150 moko 5083: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
1.142 moko 5084: fi
1.67 paf 5085:
5086: fi
1.150 moko 5087: rm -f core conftest.err conftest.$ac_objext \
5088: conftest$ac_exeext conftest.$ac_ext
1.138 moko 5089: LIBS=$SAVE_LIBS
5090: fi
1.67 paf 5091:
5092:
1.1 paf 5093:
1.15 paf 5094:
1.142 moko 5095:
1.150 moko 5096: # Check whether --with-pcre was given.
5097: if test "${with_pcre+set}" = set; then :
5098: withval=$with_pcre;
1.100 misha 5099: PCRE=$withval
1.142 moko 5100: PCRE_INCLUDES="-I$PCRE/include"
5101: PCRE_LIBS="$PCRE/lib/libpcre.la"
1.100 misha 5102:
1.142 moko 5103: if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then
5104: PCRE_OK="yes"
5105: else
1.191 moko 5106: PCRE_LIBS="-L$PCRE/lib -lpcre"
1.100 misha 5107: fi
5108:
1.151 moko 5109: if test "$PCRE" = "yes"; then
5110: PCRE=""
5111: PCRE_LIBS="-lpcre"
5112: PCRE_INCLUDES=""
5113: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
5114: $as_echo "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
5115: fi
1.142 moko 5116:
5117: else
5118:
5119: PCRE_LIBS="-lpcre"
1.149 moko 5120: PCRE_INCLUDES=""
1.150 moko 5121: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
5122: $as_echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
5123:
5124: fi
1.100 misha 5125:
5126:
1.142 moko 5127: if test -z "$PCRE_OK"; then
1.150 moko 5128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prce" >&5
5129: $as_echo_n "checking for prce... " >&6; }
1.142 moko 5130: SAVE_LIBS=$LIBS
5131: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.150 moko 5132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5133: /* end confdefs.h. */
5134: #include <pcre.h>
5135: int
5136: main ()
5137: {
5138: const char *v=pcre_version();
5139: ;
5140: return 0;
5141: }
5142: _ACEOF
1.150 moko 5143: if ac_fn_c_try_link "$LINENO"; then :
5144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5145: $as_echo "yes" >&6; }
1.142 moko 5146:
5147: else
1.150 moko 5148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149: $as_echo "no" >&6; }
1.142 moko 5150: if test -z "$PCRE"; then
1.201 moko 5151: as_fn_error $? "please specify path to PCRE: --with-pcre=DIR" "$LINENO" 5
1.142 moko 5152: else
1.150 moko 5153: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
1.142 moko 5154: fi
5155:
5156: fi
1.150 moko 5157: rm -f core conftest.err conftest.$ac_objext \
5158: conftest$ac_exeext conftest.$ac_ext
1.142 moko 5159: LIBS=$SAVE_LIBS
5160: fi
1.100 misha 5161:
5162:
5163:
5164:
1.66 paf 5165:
5166:
1.150 moko 5167: # Check whether --with-xml was given.
5168: if test "${with_xml+set}" = set; then :
5169: withval=$with_xml;
1.66 paf 5170:
1.142 moko 5171: XML=$withval
5172: XML_LIBS="-lxml2 -lxslt -lexslt"
5173:
5174: if test -z "$XML" -o "$XML" = "yes"; then
5175: XML=""
5176: XML_INCLUDES="-I/usr/include/libxml2"
1.150 moko 5177: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
5178: $as_echo "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
1.142 moko 5179: else
5180: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.193 moko 5181: XML_LIBS="-L$XML/lib $XML_LIBS"
1.67 paf 5182:
1.142 moko 5183: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
5184: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
5185: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
5186: XML_OK="yes"
5187: fi
1.67 paf 5188: fi
1.66 paf 5189:
1.142 moko 5190: if test -z "$XML_OK"; then
1.150 moko 5191: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
5192: $as_echo_n "checking for xml... " >&6; }
1.142 moko 5193: SAVE_LIBS=$LIBS
5194: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.150 moko 5195: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5196: /* end confdefs.h. */
5197: #include <libxslt/xslt.h>
5198: int
5199: main ()
5200: {
5201: const char *v=xsltEngineVersion;
5202: ;
5203: return 0;
5204: }
5205: _ACEOF
1.150 moko 5206: if ac_fn_c_try_link "$LINENO"; then :
5207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208: $as_echo "yes" >&6; }
1.142 moko 5209:
5210: else
1.150 moko 5211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212: $as_echo "no" >&6; }
1.142 moko 5213: if test -z "$XML"; then
1.201 moko 5214: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=DIR" "$LINENO" 5
1.142 moko 5215: else
1.150 moko 5216: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 5217: fi
5218:
5219: fi
1.150 moko 5220: rm -f core conftest.err conftest.$ac_objext \
5221: conftest$ac_exeext conftest.$ac_ext
1.142 moko 5222: LIBS=$SAVE_LIBS
1.67 paf 5223: fi
1.66 paf 5224:
1.150 moko 5225: $as_echo "#define XML /**/" >>confdefs.h
5226:
1.66 paf 5227:
1.150 moko 5228: fi
1.66 paf 5229:
1.90 paf 5230:
1.66 paf 5231:
5232:
5233:
5234:
1.90 paf 5235:
1.154 moko 5236: # Check whether --with-mailreceive was given.
5237: if test "${with_mailreceive+set}" = set; then :
5238: withval=$with_mailreceive;
5239: MIME=$withval
1.155 moko 5240: GLIB="glib-2.0"
1.154 moko 5241: GMIME="gmime-2.4"
5242:
5243: if test -z "$MIME" -o "$MIME" = "yes"; then
5244: MIME=""
5245: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5246: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
1.194 moko 5247: if test -z "$MIME_LIBS"; then
5248: GMIME="gmime-3.0"
5249: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5250: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
5251: fi
1.154 moko 5252: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
5253: $as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
5254: else
1.155 moko 5255: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 5256: MIME_LIBS="-l$GMIME"
5257: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
5258: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 5259: if test -f $MIME/lib/lib$GLIB.la; then
5260: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
5261: else
5262: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
5263: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
5264: fi
1.154 moko 5265: MIME_OK="yes"
5266: fi
1.67 paf 5267: fi
1.66 paf 5268:
1.154 moko 5269: if test -z "$MIME_OK"; then
5270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
5271: $as_echo_n "checking for mime... " >&6; }
5272: SAVE_LIBS=$LIBS
5273: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
5274: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275: /* end confdefs.h. */
5276: #include <gmime/gmime.h>
5277: int
5278: main ()
5279: {
5280: guint v=gmime_major_version;
5281: ;
5282: return 0;
5283: }
5284: _ACEOF
5285: if ac_fn_c_try_link "$LINENO"; then :
5286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5287: $as_echo "yes" >&6; }
1.66 paf 5288:
1.154 moko 5289: else
5290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291: $as_echo "no" >&6; }
5292: if test -z "$MIME"; then
1.201 moko 5293: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=DIR" "$LINENO" 5
1.154 moko 5294: else
5295: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 5296: fi
1.66 paf 5297:
1.150 moko 5298: fi
1.154 moko 5299: rm -f core conftest.err conftest.$ac_objext \
5300: conftest$ac_exeext conftest.$ac_ext
5301: LIBS=$SAVE_LIBS
1.67 paf 5302: fi
1.66 paf 5303:
1.150 moko 5304: $as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 5305:
5306:
1.154 moko 5307: fi
1.66 paf 5308:
5309:
5310:
5311:
5312:
5313:
5314:
1.150 moko 5315: # Check whether --with-sendmail was given.
5316: if test "${with_sendmail+set}" = set; then :
5317: withval=$with_sendmail;
1.66 paf 5318: cat >>confdefs.h <<_ACEOF
5319: #define PA_FORCED_SENDMAIL "$withval"
5320: _ACEOF
5321:
5322:
1.150 moko 5323: fi
1.66 paf 5324:
5325:
5326:
1.122 moko 5327:
1.150 moko 5328: # Check whether --with-apache was given.
5329: if test "${with_apache+set}" = set; then :
5330: withval=$with_apache;
1.122 moko 5331: APXS=$withval
5332:
5333: if test -z "$APXS" -o "$APXS" = "yes"; then
5334: APXS=`which apxs 2>/dev/null`
1.142 moko 5335: if test -z "$APXS"; then
5336: APXS=`which apxs2 2>/dev/null`
5337: fi
5338: fi
1.122 moko 5339:
5340: APACHE=`$APXS -q TARGET 2>/dev/null`
5341:
5342: if test -z "$APACHE"; then
1.150 moko 5343: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 5344: fi
1.7 paf 5345:
1.122 moko 5346: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
5347: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
5348: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
5349: APACHE_CFLAGS=`$APXS -q CFLAGS`
5350:
1.150 moko 5351: fi
1.7 paf 5352:
5353:
1.62 paf 5354:
1.122 moko 5355:
1.150 moko 5356: if test -n "$APACHE"; then
1.122 moko 5357: COMPILE_APACHE_MODULE_TRUE=
5358: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 5359: else
1.122 moko 5360: COMPILE_APACHE_MODULE_TRUE='#'
5361: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 5362: fi
1.1 paf 5363:
5364:
5365:
1.62 paf 5366:
5367:
1.7 paf 5368:
1.1 paf 5369:
5370:
5371:
1.62 paf 5372:
1.128 moko 5373: case `pwd` in
5374: *\ * | *\ *)
1.150 moko 5375: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5376: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 5377: esac
5378:
5379:
5380:
5381: macro_version='2.4.2'
5382: macro_revision='1.3337'
5383:
5384:
5385:
5386:
5387:
5388:
5389:
5390:
5391:
5392:
5393:
5394:
5395:
5396: ltmain="$ac_aux_dir/ltmain.sh"
5397:
5398: # Backslashify metacharacters that are still active within
5399: # double-quoted strings.
5400: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 5401:
1.128 moko 5402: # Same as above, but do not quote variable references.
5403: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 5404:
1.128 moko 5405: # Sed substitution to delay expansion of an escaped shell variable in a
5406: # double_quote_subst'ed string.
5407: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 5408:
1.128 moko 5409: # Sed substitution to delay expansion of an escaped single quote.
5410: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 5411:
1.128 moko 5412: # Sed substitution to avoid accidental globbing in evaled expressions
5413: no_glob_subst='s/\*/\\\*/g'
1.86 paf 5414:
1.128 moko 5415: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5416: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5417: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 5418:
1.150 moko 5419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5420: $as_echo_n "checking how to print strings... " >&6; }
1.128 moko 5421: # Test print first, because it will be a builtin if present.
5422: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5423: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5424: ECHO='print -r --'
5425: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5426: ECHO='printf %s\n'
5427: else
5428: # Use this function as a fallback that always works.
5429: func_fallback_echo ()
5430: {
5431: eval 'cat <<_LTECHO_EOF
5432: $1
5433: _LTECHO_EOF'
5434: }
5435: ECHO='func_fallback_echo'
5436: fi
1.86 paf 5437:
1.128 moko 5438: # func_echo_all arg...
5439: # Invoke $ECHO with all args, space-separated.
5440: func_echo_all ()
1.66 paf 5441: {
1.128 moko 5442: $ECHO ""
1.66 paf 5443: }
1.10 paf 5444:
1.128 moko 5445: case "$ECHO" in
1.150 moko 5446: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5447: $as_echo "printf" >&6; } ;;
5448: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5449: $as_echo "print -r" >&6; } ;;
5450: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5451: $as_echo "cat" >&6; } ;;
1.128 moko 5452: esac
5453:
5454:
5455:
5456:
5457:
5458:
5459:
5460:
5461:
5462:
5463:
5464:
5465:
5466:
1.150 moko 5467: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5468: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5469: if ${ac_cv_path_SED+:} false; then :
5470: $as_echo_n "(cached) " >&6
5471: else
5472: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5473: for ac_i in 1 2 3 4 5 6 7; do
5474: ac_script="$ac_script$as_nl$ac_script"
5475: done
5476: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5477: { ac_script=; unset ac_script;}
5478: if test -z "$SED"; then
5479: ac_path_SED_found=false
5480: # Loop through the user's path and test for each of PROGNAME-LIST
5481: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 5482: for as_dir in $PATH
5483: do
5484: IFS=$as_save_IFS
5485: test -z "$as_dir" && as_dir=.
1.150 moko 5486: for ac_prog in sed gsed; do
1.128 moko 5487: for ac_exec_ext in '' $ac_executable_extensions; do
1.150 moko 5488: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5489: as_fn_executable_p "$ac_path_SED" || continue
1.150 moko 5490: # Check for GNU ac_path_SED and select it if it is found.
5491: # Check for GNU $ac_path_SED
5492: case `"$ac_path_SED" --version 2>&1` in
5493: *GNU*)
5494: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5495: *)
5496: ac_count=0
5497: $as_echo_n 0123456789 >"conftest.in"
5498: while :
5499: do
5500: cat "conftest.in" "conftest.in" >"conftest.tmp"
5501: mv "conftest.tmp" "conftest.in"
5502: cp "conftest.in" "conftest.nl"
5503: $as_echo '' >> "conftest.nl"
5504: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5505: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5506: as_fn_arith $ac_count + 1 && ac_count=$as_val
5507: if test $ac_count -gt ${ac_path_SED_max-0}; then
5508: # Best one so far, save it but keep looking for a better one
5509: ac_cv_path_SED="$ac_path_SED"
5510: ac_path_SED_max=$ac_count
5511: fi
5512: # 10*(2^10) chars as input seems more than enough
5513: test $ac_count -gt 10 && break
5514: done
5515: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516: esac
5517:
5518: $ac_path_SED_found && break 3
1.128 moko 5519: done
5520: done
1.150 moko 5521: done
1.128 moko 5522: IFS=$as_save_IFS
1.150 moko 5523: if test -z "$ac_cv_path_SED"; then
5524: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 5525: fi
1.150 moko 5526: else
5527: ac_cv_path_SED=$SED
5528: fi
1.10 paf 5529:
1.66 paf 5530: fi
1.150 moko 5531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5532: $as_echo "$ac_cv_path_SED" >&6; }
5533: SED="$ac_cv_path_SED"
5534: rm -f conftest.sed
1.128 moko 5535:
5536: test -z "$SED" && SED=sed
5537: Xsed="$SED -e 1s/^X//"
1.10 paf 5538:
1.128 moko 5539:
5540:
5541:
5542:
5543:
5544:
5545:
5546:
5547:
5548:
1.150 moko 5549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5550: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5551: if ${ac_cv_path_GREP+:} false; then :
5552: $as_echo_n "(cached) " >&6
5553: else
5554: if test -z "$GREP"; then
5555: ac_path_GREP_found=false
5556: # Loop through the user's path and test for each of PROGNAME-LIST
5557: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5559: do
5560: IFS=$as_save_IFS
5561: test -z "$as_dir" && as_dir=.
5562: for ac_prog in grep ggrep; do
5563: for ac_exec_ext in '' $ac_executable_extensions; do
5564: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5565: as_fn_executable_p "$ac_path_GREP" || continue
1.150 moko 5566: # Check for GNU ac_path_GREP and select it if it is found.
5567: # Check for GNU $ac_path_GREP
5568: case `"$ac_path_GREP" --version 2>&1` in
5569: *GNU*)
5570: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5571: *)
5572: ac_count=0
5573: $as_echo_n 0123456789 >"conftest.in"
5574: while :
5575: do
5576: cat "conftest.in" "conftest.in" >"conftest.tmp"
5577: mv "conftest.tmp" "conftest.in"
5578: cp "conftest.in" "conftest.nl"
5579: $as_echo 'GREP' >> "conftest.nl"
5580: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582: as_fn_arith $ac_count + 1 && ac_count=$as_val
5583: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5584: # Best one so far, save it but keep looking for a better one
5585: ac_cv_path_GREP="$ac_path_GREP"
5586: ac_path_GREP_max=$ac_count
1.128 moko 5587: fi
1.150 moko 5588: # 10*(2^10) chars as input seems more than enough
5589: test $ac_count -gt 10 && break
5590: done
5591: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592: esac
5593:
5594: $ac_path_GREP_found && break 3
5595: done
5596: done
5597: done
5598: IFS=$as_save_IFS
5599: if test -z "$ac_cv_path_GREP"; then
5600: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5601: fi
5602: else
5603: ac_cv_path_GREP=$GREP
5604: fi
5605:
1.128 moko 5606: fi
1.150 moko 5607: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5608: $as_echo "$ac_cv_path_GREP" >&6; }
5609: GREP="$ac_cv_path_GREP"
5610:
5611:
5612: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5613: $as_echo_n "checking for egrep... " >&6; }
5614: if ${ac_cv_path_EGREP+:} false; then :
5615: $as_echo_n "(cached) " >&6
5616: else
5617: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5618: then ac_cv_path_EGREP="$GREP -E"
5619: else
5620: if test -z "$EGREP"; then
5621: ac_path_EGREP_found=false
5622: # Loop through the user's path and test for each of PROGNAME-LIST
5623: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5625: do
5626: IFS=$as_save_IFS
5627: test -z "$as_dir" && as_dir=.
5628: for ac_prog in egrep; do
5629: for ac_exec_ext in '' $ac_executable_extensions; do
5630: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5631: as_fn_executable_p "$ac_path_EGREP" || continue
1.150 moko 5632: # Check for GNU ac_path_EGREP and select it if it is found.
5633: # Check for GNU $ac_path_EGREP
5634: case `"$ac_path_EGREP" --version 2>&1` in
5635: *GNU*)
5636: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5637: *)
5638: ac_count=0
5639: $as_echo_n 0123456789 >"conftest.in"
5640: while :
5641: do
5642: cat "conftest.in" "conftest.in" >"conftest.tmp"
5643: mv "conftest.tmp" "conftest.in"
5644: cp "conftest.in" "conftest.nl"
5645: $as_echo 'EGREP' >> "conftest.nl"
5646: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5647: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5648: as_fn_arith $ac_count + 1 && ac_count=$as_val
5649: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5650: # Best one so far, save it but keep looking for a better one
5651: ac_cv_path_EGREP="$ac_path_EGREP"
5652: ac_path_EGREP_max=$ac_count
5653: fi
5654: # 10*(2^10) chars as input seems more than enough
5655: test $ac_count -gt 10 && break
5656: done
5657: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5658: esac
1.128 moko 5659:
1.150 moko 5660: $ac_path_EGREP_found && break 3
5661: done
5662: done
5663: done
5664: IFS=$as_save_IFS
5665: if test -z "$ac_cv_path_EGREP"; then
5666: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5667: fi
5668: else
5669: ac_cv_path_EGREP=$EGREP
5670: fi
1.128 moko 5671:
1.150 moko 5672: fi
5673: fi
5674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5675: $as_echo "$ac_cv_path_EGREP" >&6; }
5676: EGREP="$ac_cv_path_EGREP"
5677:
5678:
5679: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5680: $as_echo_n "checking for fgrep... " >&6; }
5681: if ${ac_cv_path_FGREP+:} false; then :
5682: $as_echo_n "(cached) " >&6
5683: else
5684: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5685: then ac_cv_path_FGREP="$GREP -F"
5686: else
5687: if test -z "$FGREP"; then
5688: ac_path_FGREP_found=false
5689: # Loop through the user's path and test for each of PROGNAME-LIST
5690: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5692: do
5693: IFS=$as_save_IFS
5694: test -z "$as_dir" && as_dir=.
5695: for ac_prog in fgrep; do
5696: for ac_exec_ext in '' $ac_executable_extensions; do
5697: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5698: as_fn_executable_p "$ac_path_FGREP" || continue
1.150 moko 5699: # Check for GNU ac_path_FGREP and select it if it is found.
5700: # Check for GNU $ac_path_FGREP
5701: case `"$ac_path_FGREP" --version 2>&1` in
5702: *GNU*)
5703: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5704: *)
5705: ac_count=0
5706: $as_echo_n 0123456789 >"conftest.in"
5707: while :
5708: do
5709: cat "conftest.in" "conftest.in" >"conftest.tmp"
5710: mv "conftest.tmp" "conftest.in"
5711: cp "conftest.in" "conftest.nl"
5712: $as_echo 'FGREP' >> "conftest.nl"
5713: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5714: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5715: as_fn_arith $ac_count + 1 && ac_count=$as_val
5716: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5717: # Best one so far, save it but keep looking for a better one
5718: ac_cv_path_FGREP="$ac_path_FGREP"
5719: ac_path_FGREP_max=$ac_count
1.128 moko 5720: fi
1.150 moko 5721: # 10*(2^10) chars as input seems more than enough
5722: test $ac_count -gt 10 && break
5723: done
5724: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5725: esac
5726:
5727: $ac_path_FGREP_found && break 3
5728: done
5729: done
5730: done
5731: IFS=$as_save_IFS
5732: if test -z "$ac_cv_path_FGREP"; then
5733: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5734: fi
5735: else
5736: ac_cv_path_FGREP=$FGREP
5737: fi
5738:
5739: fi
1.128 moko 5740: fi
1.150 moko 5741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5742: $as_echo "$ac_cv_path_FGREP" >&6; }
5743: FGREP="$ac_cv_path_FGREP"
1.128 moko 5744:
5745:
5746: test -z "$GREP" && GREP=grep
5747:
5748:
5749:
5750:
5751:
5752:
5753:
5754:
5755:
5756:
5757:
5758:
5759:
5760:
5761:
5762:
5763:
5764:
5765:
1.150 moko 5766: # Check whether --with-gnu-ld was given.
5767: if test "${with_gnu_ld+set}" = set; then :
5768: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 5769: else
5770: with_gnu_ld=no
1.150 moko 5771: fi
5772:
1.128 moko 5773: ac_prog=ld
5774: if test "$GCC" = yes; then
5775: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 5776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5777: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 5778: case $host in
5779: *-*-mingw*)
5780: # gcc leaves a trailing carriage return which upsets mingw
5781: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5782: *)
5783: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5784: esac
5785: case $ac_prog in
5786: # Accept absolute paths.
5787: [\\/]* | ?:[\\/]*)
5788: re_direlt='/[^/][^/]*/\.\./'
5789: # Canonicalize the pathname of ld
5790: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5791: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5792: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5793: done
5794: test -z "$LD" && LD="$ac_prog"
5795: ;;
5796: "")
5797: # If it fails, then pretend we aren't using GCC.
5798: ac_prog=ld
5799: ;;
5800: *)
5801: # If it is relative, then search for the first ld in PATH.
5802: with_gnu_ld=unknown
5803: ;;
5804: esac
5805: elif test "$with_gnu_ld" = yes; then
1.150 moko 5806: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5807: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 5808: else
1.150 moko 5809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5810: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 5811: fi
1.150 moko 5812: if ${lt_cv_path_LD+:} false; then :
5813: $as_echo_n "(cached) " >&6
1.128 moko 5814: else
5815: if test -z "$LD"; then
5816: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5817: for ac_dir in $PATH; do
5818: IFS="$lt_save_ifs"
5819: test -z "$ac_dir" && ac_dir=.
5820: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5821: lt_cv_path_LD="$ac_dir/$ac_prog"
5822: # Check to see if the program is GNU ld. I'd rather use --version,
5823: # but apparently some variants of GNU ld only accept -v.
5824: # Break only if it was the GNU/non-GNU ld that we prefer.
5825: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5826: *GNU* | *'with BFD'*)
5827: test "$with_gnu_ld" != no && break
5828: ;;
5829: *)
5830: test "$with_gnu_ld" != yes && break
5831: ;;
5832: esac
5833: fi
5834: done
5835: IFS="$lt_save_ifs"
5836: else
5837: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5838: fi
5839: fi
5840:
5841: LD="$lt_cv_path_LD"
5842: if test -n "$LD"; then
1.150 moko 5843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5844: $as_echo "$LD" >&6; }
1.128 moko 5845: else
1.150 moko 5846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847: $as_echo "no" >&6; }
1.128 moko 5848: fi
1.150 moko 5849: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5850: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5851: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5852: if ${lt_cv_prog_gnu_ld+:} false; then :
5853: $as_echo_n "(cached) " >&6
1.128 moko 5854: else
5855: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5856: case `$LD -v 2>&1 </dev/null` in
5857: *GNU* | *'with BFD'*)
5858: lt_cv_prog_gnu_ld=yes
5859: ;;
5860: *)
5861: lt_cv_prog_gnu_ld=no
5862: ;;
5863: esac
5864: fi
1.150 moko 5865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5866: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 5867: with_gnu_ld=$lt_cv_prog_gnu_ld
5868:
5869:
5870:
5871:
5872:
5873:
5874:
5875:
5876:
1.150 moko 5877: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5878: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5879: if ${lt_cv_path_NM+:} false; then :
5880: $as_echo_n "(cached) " >&6
1.128 moko 5881: else
5882: if test -n "$NM"; then
5883: # Let the user override the test.
5884: lt_cv_path_NM="$NM"
5885: else
5886: lt_nm_to_check="${ac_tool_prefix}nm"
5887: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5888: lt_nm_to_check="$lt_nm_to_check nm"
5889: fi
5890: for lt_tmp_nm in $lt_nm_to_check; do
5891: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5892: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5893: IFS="$lt_save_ifs"
5894: test -z "$ac_dir" && ac_dir=.
5895: tmp_nm="$ac_dir/$lt_tmp_nm"
5896: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5897: # Check to see if the nm accepts a BSD-compat flag.
5898: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5899: # nm: unknown option "B" ignored
5900: # Tru64's nm complains that /dev/null is an invalid object file
5901: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5902: */dev/null* | *'Invalid file or object type'*)
5903: lt_cv_path_NM="$tmp_nm -B"
5904: break
5905: ;;
5906: *)
5907: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5908: */dev/null*)
5909: lt_cv_path_NM="$tmp_nm -p"
5910: break
5911: ;;
5912: *)
5913: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5914: continue # so that we can try to find one that supports BSD flags
5915: ;;
5916: esac
5917: ;;
5918: esac
5919: fi
5920: done
5921: IFS="$lt_save_ifs"
5922: done
5923: : ${lt_cv_path_NM=no}
5924: fi
5925: fi
1.150 moko 5926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5927: $as_echo "$lt_cv_path_NM" >&6; }
1.128 moko 5928: if test "$lt_cv_path_NM" != "no"; then
5929: NM="$lt_cv_path_NM"
5930: else
5931: # Didn't find any BSD compatible name lister, look for dumpbin.
5932: if test -n "$DUMPBIN"; then :
5933: # Let the user override the test.
5934: else
5935: if test -n "$ac_tool_prefix"; then
5936: for ac_prog in dumpbin "link -dump"
5937: do
5938: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5939: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 5940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941: $as_echo_n "checking for $ac_word... " >&6; }
5942: if ${ac_cv_prog_DUMPBIN+:} false; then :
5943: $as_echo_n "(cached) " >&6
1.128 moko 5944: else
5945: if test -n "$DUMPBIN"; then
5946: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5947: else
5948: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949: for as_dir in $PATH
5950: do
5951: IFS=$as_save_IFS
5952: test -z "$as_dir" && as_dir=.
1.150 moko 5953: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5954: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5955: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.150 moko 5956: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5957: break 2
5958: fi
5959: done
1.150 moko 5960: done
5961: IFS=$as_save_IFS
1.128 moko 5962:
5963: fi
5964: fi
5965: DUMPBIN=$ac_cv_prog_DUMPBIN
5966: if test -n "$DUMPBIN"; then
1.150 moko 5967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5968: $as_echo "$DUMPBIN" >&6; }
1.128 moko 5969: else
1.150 moko 5970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971: $as_echo "no" >&6; }
1.128 moko 5972: fi
5973:
1.150 moko 5974:
1.128 moko 5975: test -n "$DUMPBIN" && break
5976: done
5977: fi
5978: if test -z "$DUMPBIN"; then
5979: ac_ct_DUMPBIN=$DUMPBIN
5980: for ac_prog in dumpbin "link -dump"
5981: do
5982: # Extract the first word of "$ac_prog", so it can be a program name with args.
5983: set dummy $ac_prog; ac_word=$2
1.150 moko 5984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985: $as_echo_n "checking for $ac_word... " >&6; }
5986: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5987: $as_echo_n "(cached) " >&6
1.128 moko 5988: else
5989: if test -n "$ac_ct_DUMPBIN"; then
5990: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5991: else
5992: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993: for as_dir in $PATH
5994: do
5995: IFS=$as_save_IFS
5996: test -z "$as_dir" && as_dir=.
1.150 moko 5997: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5998: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5999: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.150 moko 6000: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6001: break 2
6002: fi
6003: done
1.150 moko 6004: done
6005: IFS=$as_save_IFS
1.128 moko 6006:
6007: fi
6008: fi
6009: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6010: if test -n "$ac_ct_DUMPBIN"; then
1.150 moko 6011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6012: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.128 moko 6013: else
1.150 moko 6014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015: $as_echo "no" >&6; }
1.128 moko 6016: fi
6017:
1.150 moko 6018:
1.128 moko 6019: test -n "$ac_ct_DUMPBIN" && break
6020: done
6021:
1.150 moko 6022: if test "x$ac_ct_DUMPBIN" = x; then
6023: DUMPBIN=":"
6024: else
6025: case $cross_compiling:$ac_tool_warned in
6026: yes:)
6027: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6028: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6029: ac_tool_warned=yes ;;
6030: esac
6031: DUMPBIN=$ac_ct_DUMPBIN
6032: fi
1.128 moko 6033: fi
6034:
6035: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6036: *COFF*)
6037: DUMPBIN="$DUMPBIN -symbols"
6038: ;;
6039: *)
6040: DUMPBIN=:
6041: ;;
6042: esac
6043: fi
6044:
6045: if test "$DUMPBIN" != ":"; then
6046: NM="$DUMPBIN"
6047: fi
6048: fi
6049: test -z "$NM" && NM=nm
6050:
6051:
6052:
6053:
6054:
6055:
1.150 moko 6056: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6057: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6058: if ${lt_cv_nm_interface+:} false; then :
6059: $as_echo_n "(cached) " >&6
1.128 moko 6060: else
6061: lt_cv_nm_interface="BSD nm"
6062: echo "int some_variable = 0;" > conftest.$ac_ext
6063: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6064: (eval "$ac_compile" 2>conftest.err)
6065: cat conftest.err >&5
6066: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6067: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6068: cat conftest.err >&5
6069: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6070: cat conftest.out >&5
6071: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6072: lt_cv_nm_interface="MS dumpbin"
6073: fi
6074: rm -f conftest*
6075: fi
1.150 moko 6076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6077: $as_echo "$lt_cv_nm_interface" >&6; }
1.128 moko 6078:
1.150 moko 6079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6080: $as_echo_n "checking whether ln -s works... " >&6; }
1.128 moko 6081: LN_S=$as_ln_s
6082: if test "$LN_S" = "ln -s"; then
1.150 moko 6083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6084: $as_echo "yes" >&6; }
1.128 moko 6085: else
1.150 moko 6086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6087: $as_echo "no, using $LN_S" >&6; }
1.128 moko 6088: fi
6089:
6090: # find the maximum length of command line arguments
1.150 moko 6091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6092: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6093: if ${lt_cv_sys_max_cmd_len+:} false; then :
6094: $as_echo_n "(cached) " >&6
1.128 moko 6095: else
6096: i=0
6097: teststring="ABCD"
6098:
6099: case $build_os in
6100: msdosdjgpp*)
6101: # On DJGPP, this test can blow up pretty badly due to problems in libc
6102: # (any single argument exceeding 2000 bytes causes a buffer overrun
6103: # during glob expansion). Even if it were fixed, the result of this
6104: # check would be larger than it should be.
6105: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6106: ;;
6107:
6108: gnu*)
6109: # Under GNU Hurd, this test is not required because there is
6110: # no limit to the length of command line arguments.
6111: # Libtool will interpret -1 as no limit whatsoever
6112: lt_cv_sys_max_cmd_len=-1;
6113: ;;
6114:
6115: cygwin* | mingw* | cegcc*)
6116: # On Win9x/ME, this test blows up -- it succeeds, but takes
6117: # about 5 minutes as the teststring grows exponentially.
6118: # Worse, since 9x/ME are not pre-emptively multitasking,
6119: # you end up with a "frozen" computer, even though with patience
6120: # the test eventually succeeds (with a max line length of 256k).
6121: # Instead, let's just punt: use the minimum linelength reported by
6122: # all of the supported platforms: 8192 (on NT/2K/XP).
6123: lt_cv_sys_max_cmd_len=8192;
6124: ;;
6125:
6126: mint*)
6127: # On MiNT this can take a long time and run out of memory.
6128: lt_cv_sys_max_cmd_len=8192;
6129: ;;
6130:
6131: amigaos*)
6132: # On AmigaOS with pdksh, this test takes hours, literally.
6133: # So we just punt and use a minimum line length of 8192.
6134: lt_cv_sys_max_cmd_len=8192;
6135: ;;
6136:
6137: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6138: # This has been around since 386BSD, at least. Likely further.
6139: if test -x /sbin/sysctl; then
6140: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6141: elif test -x /usr/sbin/sysctl; then
6142: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6143: else
6144: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6145: fi
6146: # And add a safety zone
6147: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6148: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6149: ;;
6150:
6151: interix*)
6152: # We know the value 262144 and hardcode it with a safety zone (like BSD)
6153: lt_cv_sys_max_cmd_len=196608
6154: ;;
6155:
6156: os2*)
6157: # The test takes a long time on OS/2.
6158: lt_cv_sys_max_cmd_len=8192
6159: ;;
6160:
6161: osf*)
6162: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6163: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6164: # nice to cause kernel panics so lets avoid the loop below.
6165: # First set a reasonable default.
6166: lt_cv_sys_max_cmd_len=16384
6167: #
6168: if test -x /sbin/sysconfig; then
6169: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6170: *1*) lt_cv_sys_max_cmd_len=-1 ;;
6171: esac
6172: fi
6173: ;;
6174: sco3.2v5*)
6175: lt_cv_sys_max_cmd_len=102400
6176: ;;
6177: sysv5* | sco5v6* | sysv4.2uw2*)
6178: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6179: if test -n "$kargmax"; then
6180: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6181: else
6182: lt_cv_sys_max_cmd_len=32768
6183: fi
6184: ;;
6185: *)
6186: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6187: if test -n "$lt_cv_sys_max_cmd_len"; then
6188: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6189: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6190: else
6191: # Make teststring a little bigger before we do anything with it.
6192: # a 1K string should be a reasonable start.
6193: for i in 1 2 3 4 5 6 7 8 ; do
6194: teststring=$teststring$teststring
6195: done
6196: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6197: # If test is not a shell built-in, we'll probably end up computing a
6198: # maximum length that is only half of the actual maximum length, but
6199: # we can't tell.
6200: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6201: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6202: test $i != 17 # 1/2 MB should be enough
6203: do
6204: i=`expr $i + 1`
6205: teststring=$teststring$teststring
6206: done
6207: # Only check the string length outside the loop.
6208: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6209: teststring=
6210: # Add a significant safety factor because C++ compilers can tack on
6211: # massive amounts of additional arguments before passing them to the
6212: # linker. It appears as though 1/2 is a usable value.
6213: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6214: fi
6215: ;;
6216: esac
6217:
6218: fi
6219:
6220: if test -n $lt_cv_sys_max_cmd_len ; then
1.150 moko 6221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6222: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 6223: else
1.150 moko 6224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6225: $as_echo "none" >&6; }
1.128 moko 6226: fi
6227: max_cmd_len=$lt_cv_sys_max_cmd_len
6228:
6229:
6230:
6231:
6232:
6233:
6234: : ${CP="cp -f"}
6235: : ${MV="mv -f"}
6236: : ${RM="rm -f"}
6237:
1.150 moko 6238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6239: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.128 moko 6240: # Try some XSI features
6241: xsi_shell=no
6242: ( _lt_dummy="a/b/c"
6243: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6244: = c,a/b,b/c, \
6245: && eval 'test $(( 1 + 1 )) -eq 2 \
6246: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6247: && xsi_shell=yes
1.150 moko 6248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6249: $as_echo "$xsi_shell" >&6; }
1.128 moko 6250:
6251:
1.150 moko 6252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6253: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.128 moko 6254: lt_shell_append=no
6255: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6256: >/dev/null 2>&1 \
6257: && lt_shell_append=yes
1.150 moko 6258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6259: $as_echo "$lt_shell_append" >&6; }
1.128 moko 6260:
6261:
6262: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6263: lt_unset=unset
6264: else
6265: lt_unset=false
6266: fi
6267:
6268:
6269:
6270:
6271:
6272: # test EBCDIC or ASCII
6273: case `echo X|tr X '\101'` in
6274: A) # ASCII based system
6275: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6276: lt_SP2NL='tr \040 \012'
6277: lt_NL2SP='tr \015\012 \040\040'
6278: ;;
6279: *) # EBCDIC based system
6280: lt_SP2NL='tr \100 \n'
6281: lt_NL2SP='tr \r\n \100\100'
6282: ;;
6283: esac
6284:
6285:
6286:
6287:
6288:
6289:
6290:
6291:
6292:
1.150 moko 6293: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6294: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6295: if ${lt_cv_to_host_file_cmd+:} false; then :
6296: $as_echo_n "(cached) " >&6
1.128 moko 6297: else
6298: case $host in
6299: *-*-mingw* )
6300: case $build in
6301: *-*-mingw* ) # actually msys
6302: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6303: ;;
6304: *-*-cygwin* )
6305: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6306: ;;
6307: * ) # otherwise, assume *nix
6308: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6309: ;;
6310: esac
6311: ;;
6312: *-*-cygwin* )
6313: case $build in
6314: *-*-mingw* ) # actually msys
6315: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6316: ;;
6317: *-*-cygwin* )
6318: lt_cv_to_host_file_cmd=func_convert_file_noop
6319: ;;
6320: * ) # otherwise, assume *nix
6321: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6322: ;;
6323: esac
6324: ;;
6325: * ) # unhandled hosts (and "normal" native builds)
6326: lt_cv_to_host_file_cmd=func_convert_file_noop
6327: ;;
6328: esac
6329:
6330: fi
6331:
6332: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.150 moko 6333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6334: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 6335:
6336:
6337:
6338:
6339:
1.150 moko 6340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6341: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6342: if ${lt_cv_to_tool_file_cmd+:} false; then :
6343: $as_echo_n "(cached) " >&6
1.128 moko 6344: else
6345: #assume ordinary cross tools, or native build.
6346: lt_cv_to_tool_file_cmd=func_convert_file_noop
6347: case $host in
6348: *-*-mingw* )
6349: case $build in
6350: *-*-mingw* ) # actually msys
6351: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6352: ;;
6353: esac
6354: ;;
6355: esac
6356:
6357: fi
6358:
6359: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.150 moko 6360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6361: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 6362:
6363:
6364:
6365:
6366:
1.150 moko 6367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6368: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6369: if ${lt_cv_ld_reload_flag+:} false; then :
6370: $as_echo_n "(cached) " >&6
1.128 moko 6371: else
6372: lt_cv_ld_reload_flag='-r'
6373: fi
1.150 moko 6374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6375: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 6376: reload_flag=$lt_cv_ld_reload_flag
6377: case $reload_flag in
6378: "" | " "*) ;;
6379: *) reload_flag=" $reload_flag" ;;
6380: esac
6381: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6382: case $host_os in
6383: cygwin* | mingw* | pw32* | cegcc*)
6384: if test "$GCC" != yes; then
6385: reload_cmds=false
6386: fi
6387: ;;
6388: darwin*)
6389: if test "$GCC" = yes; then
6390: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6391: else
6392: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6393: fi
6394: ;;
6395: esac
6396:
6397:
6398:
6399:
6400:
6401:
6402:
6403:
6404:
6405: if test -n "$ac_tool_prefix"; then
6406: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6407: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 6408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409: $as_echo_n "checking for $ac_word... " >&6; }
6410: if ${ac_cv_prog_OBJDUMP+:} false; then :
6411: $as_echo_n "(cached) " >&6
1.128 moko 6412: else
6413: if test -n "$OBJDUMP"; then
6414: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6415: else
6416: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417: for as_dir in $PATH
6418: do
6419: IFS=$as_save_IFS
6420: test -z "$as_dir" && as_dir=.
1.150 moko 6421: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6422: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6423: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 6424: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6425: break 2
6426: fi
6427: done
1.150 moko 6428: done
6429: IFS=$as_save_IFS
1.128 moko 6430:
6431: fi
6432: fi
6433: OBJDUMP=$ac_cv_prog_OBJDUMP
6434: if test -n "$OBJDUMP"; then
1.150 moko 6435: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6436: $as_echo "$OBJDUMP" >&6; }
1.128 moko 6437: else
1.150 moko 6438: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439: $as_echo "no" >&6; }
1.128 moko 6440: fi
6441:
1.150 moko 6442:
1.128 moko 6443: fi
6444: if test -z "$ac_cv_prog_OBJDUMP"; then
6445: ac_ct_OBJDUMP=$OBJDUMP
6446: # Extract the first word of "objdump", so it can be a program name with args.
6447: set dummy objdump; ac_word=$2
1.150 moko 6448: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449: $as_echo_n "checking for $ac_word... " >&6; }
6450: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6451: $as_echo_n "(cached) " >&6
1.128 moko 6452: else
6453: if test -n "$ac_ct_OBJDUMP"; then
6454: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6455: else
6456: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457: for as_dir in $PATH
6458: do
6459: IFS=$as_save_IFS
6460: test -z "$as_dir" && as_dir=.
1.150 moko 6461: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6462: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6463: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 6464: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6465: break 2
6466: fi
6467: done
1.150 moko 6468: done
6469: IFS=$as_save_IFS
1.128 moko 6470:
6471: fi
6472: fi
6473: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6474: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 6475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6476: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 6477: else
1.150 moko 6478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479: $as_echo "no" >&6; }
1.128 moko 6480: fi
6481:
1.150 moko 6482: if test "x$ac_ct_OBJDUMP" = x; then
6483: OBJDUMP="false"
6484: else
6485: case $cross_compiling:$ac_tool_warned in
6486: yes:)
6487: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489: ac_tool_warned=yes ;;
6490: esac
6491: OBJDUMP=$ac_ct_OBJDUMP
6492: fi
1.128 moko 6493: else
6494: OBJDUMP="$ac_cv_prog_OBJDUMP"
6495: fi
6496:
6497: test -z "$OBJDUMP" && OBJDUMP=objdump
6498:
6499:
6500:
6501:
6502:
6503:
1.150 moko 6504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6505: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6506: if ${lt_cv_deplibs_check_method+:} false; then :
6507: $as_echo_n "(cached) " >&6
1.128 moko 6508: else
6509: lt_cv_file_magic_cmd='$MAGIC_CMD'
6510: lt_cv_file_magic_test_file=
6511: lt_cv_deplibs_check_method='unknown'
6512: # Need to set the preceding variable on all platforms that support
6513: # interlibrary dependencies.
6514: # 'none' -- dependencies not supported.
6515: # `unknown' -- same as none, but documents that we really don't know.
6516: # 'pass_all' -- all dependencies passed with no checks.
6517: # 'test_compile' -- check by making test program.
6518: # 'file_magic [[regex]]' -- check by looking for files in library path
6519: # which responds to the $file_magic_cmd with a given extended regex.
6520: # If you have `file' or equivalent on your system and you're not sure
6521: # whether `pass_all' will *always* work, you probably want this one.
6522:
6523: case $host_os in
6524: aix[4-9]*)
6525: lt_cv_deplibs_check_method=pass_all
6526: ;;
6527:
6528: beos*)
6529: lt_cv_deplibs_check_method=pass_all
6530: ;;
6531:
6532: bsdi[45]*)
6533: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6534: lt_cv_file_magic_cmd='/usr/bin/file -L'
6535: lt_cv_file_magic_test_file=/shlib/libc.so
6536: ;;
6537:
6538: cygwin*)
6539: # func_win32_libid is a shell function defined in ltmain.sh
6540: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6541: lt_cv_file_magic_cmd='func_win32_libid'
6542: ;;
6543:
6544: mingw* | pw32*)
6545: # Base MSYS/MinGW do not provide the 'file' command needed by
6546: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6547: # unless we find 'file', for example because we are cross-compiling.
6548: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6549: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6550: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6551: lt_cv_file_magic_cmd='func_win32_libid'
6552: else
6553: # Keep this pattern in sync with the one in func_win32_libid.
6554: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6555: lt_cv_file_magic_cmd='$OBJDUMP -f'
6556: fi
6557: ;;
6558:
6559: cegcc*)
6560: # use the weaker test based on 'objdump'. See mingw*.
6561: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6562: lt_cv_file_magic_cmd='$OBJDUMP -f'
6563: ;;
6564:
6565: darwin* | rhapsody*)
6566: lt_cv_deplibs_check_method=pass_all
6567: ;;
6568:
6569: freebsd* | dragonfly*)
6570: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6571: case $host_cpu in
6572: i*86 )
6573: # Not sure whether the presence of OpenBSD here was a mistake.
6574: # Let's accept both of them until this is cleared up.
6575: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6576: lt_cv_file_magic_cmd=/usr/bin/file
6577: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6578: ;;
6579: esac
6580: else
6581: lt_cv_deplibs_check_method=pass_all
6582: fi
6583: ;;
6584:
6585: gnu*)
6586: lt_cv_deplibs_check_method=pass_all
6587: ;;
6588:
6589: haiku*)
6590: lt_cv_deplibs_check_method=pass_all
6591: ;;
6592:
6593: hpux10.20* | hpux11*)
6594: lt_cv_file_magic_cmd=/usr/bin/file
6595: case $host_cpu in
6596: ia64*)
6597: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6598: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6599: ;;
6600: hppa*64*)
6601: 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]'
6602: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6603: ;;
6604: *)
6605: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6606: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6607: ;;
6608: esac
6609: ;;
6610:
6611: interix[3-9]*)
6612: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6613: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6614: ;;
6615:
6616: irix5* | irix6* | nonstopux*)
6617: case $LD in
6618: *-32|*"-32 ") libmagic=32-bit;;
6619: *-n32|*"-n32 ") libmagic=N32;;
6620: *-64|*"-64 ") libmagic=64-bit;;
6621: *) libmagic=never-match;;
6622: esac
6623: lt_cv_deplibs_check_method=pass_all
6624: ;;
6625:
6626: # This must be glibc/ELF.
6627: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6628: lt_cv_deplibs_check_method=pass_all
6629: ;;
6630:
6631: netbsd*)
6632: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6633: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6634: else
6635: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6636: fi
6637: ;;
6638:
6639: newos6*)
6640: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6641: lt_cv_file_magic_cmd=/usr/bin/file
6642: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6643: ;;
6644:
6645: *nto* | *qnx*)
6646: lt_cv_deplibs_check_method=pass_all
6647: ;;
6648:
6649: openbsd*)
6650: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6651: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6652: else
6653: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6654: fi
6655: ;;
6656:
6657: osf3* | osf4* | osf5*)
6658: lt_cv_deplibs_check_method=pass_all
6659: ;;
6660:
6661: rdos*)
6662: lt_cv_deplibs_check_method=pass_all
6663: ;;
6664:
6665: solaris*)
6666: lt_cv_deplibs_check_method=pass_all
6667: ;;
6668:
6669: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6670: lt_cv_deplibs_check_method=pass_all
6671: ;;
6672:
6673: sysv4 | sysv4.3*)
6674: case $host_vendor in
6675: motorola)
6676: 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]'
6677: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6678: ;;
6679: ncr)
6680: lt_cv_deplibs_check_method=pass_all
6681: ;;
6682: sequent)
6683: lt_cv_file_magic_cmd='/bin/file'
6684: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6685: ;;
6686: sni)
6687: lt_cv_file_magic_cmd='/bin/file'
6688: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6689: lt_cv_file_magic_test_file=/lib/libc.so
6690: ;;
6691: siemens)
6692: lt_cv_deplibs_check_method=pass_all
6693: ;;
6694: pc)
6695: lt_cv_deplibs_check_method=pass_all
6696: ;;
6697: esac
6698: ;;
6699:
6700: tpf*)
6701: lt_cv_deplibs_check_method=pass_all
6702: ;;
6703: esac
6704:
6705: fi
1.150 moko 6706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6707: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 6708:
6709: file_magic_glob=
6710: want_nocaseglob=no
6711: if test "$build" = "$host"; then
6712: case $host_os in
6713: mingw* | pw32*)
6714: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6715: want_nocaseglob=yes
6716: else
6717: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6718: fi
6719: ;;
6720: esac
6721: fi
6722:
6723: file_magic_cmd=$lt_cv_file_magic_cmd
6724: deplibs_check_method=$lt_cv_deplibs_check_method
6725: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6726:
6727:
6728:
6729:
6730:
6731:
6732:
6733:
6734:
6735:
6736:
6737:
6738:
6739:
6740:
6741:
6742:
6743:
6744:
6745:
6746:
6747:
6748: if test -n "$ac_tool_prefix"; then
6749: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6750: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 6751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752: $as_echo_n "checking for $ac_word... " >&6; }
6753: if ${ac_cv_prog_DLLTOOL+:} false; then :
6754: $as_echo_n "(cached) " >&6
1.128 moko 6755: else
6756: if test -n "$DLLTOOL"; then
6757: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6758: else
6759: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760: for as_dir in $PATH
6761: do
6762: IFS=$as_save_IFS
6763: test -z "$as_dir" && as_dir=.
1.150 moko 6764: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6765: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6766: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 6767: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6768: break 2
6769: fi
6770: done
1.150 moko 6771: done
6772: IFS=$as_save_IFS
1.128 moko 6773:
6774: fi
6775: fi
6776: DLLTOOL=$ac_cv_prog_DLLTOOL
6777: if test -n "$DLLTOOL"; then
1.150 moko 6778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6779: $as_echo "$DLLTOOL" >&6; }
1.128 moko 6780: else
1.150 moko 6781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782: $as_echo "no" >&6; }
1.128 moko 6783: fi
6784:
1.150 moko 6785:
1.128 moko 6786: fi
6787: if test -z "$ac_cv_prog_DLLTOOL"; then
6788: ac_ct_DLLTOOL=$DLLTOOL
6789: # Extract the first word of "dlltool", so it can be a program name with args.
6790: set dummy dlltool; ac_word=$2
1.150 moko 6791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792: $as_echo_n "checking for $ac_word... " >&6; }
6793: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6794: $as_echo_n "(cached) " >&6
1.128 moko 6795: else
6796: if test -n "$ac_ct_DLLTOOL"; then
6797: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6798: else
6799: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800: for as_dir in $PATH
6801: do
6802: IFS=$as_save_IFS
6803: test -z "$as_dir" && as_dir=.
1.150 moko 6804: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6805: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6806: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 6807: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6808: break 2
6809: fi
6810: done
1.150 moko 6811: done
6812: IFS=$as_save_IFS
1.128 moko 6813:
6814: fi
6815: fi
6816: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6817: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 6818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6819: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 6820: else
1.150 moko 6821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822: $as_echo "no" >&6; }
1.128 moko 6823: fi
6824:
1.150 moko 6825: if test "x$ac_ct_DLLTOOL" = x; then
6826: DLLTOOL="false"
6827: else
6828: case $cross_compiling:$ac_tool_warned in
6829: yes:)
6830: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6831: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6832: ac_tool_warned=yes ;;
6833: esac
6834: DLLTOOL=$ac_ct_DLLTOOL
6835: fi
1.128 moko 6836: else
6837: DLLTOOL="$ac_cv_prog_DLLTOOL"
6838: fi
6839:
6840: test -z "$DLLTOOL" && DLLTOOL=dlltool
6841:
6842:
6843:
6844:
6845:
6846:
6847:
1.150 moko 6848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6849: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6850: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6851: $as_echo_n "(cached) " >&6
1.128 moko 6852: else
6853: lt_cv_sharedlib_from_linklib_cmd='unknown'
6854:
6855: case $host_os in
6856: cygwin* | mingw* | pw32* | cegcc*)
6857: # two different shell functions defined in ltmain.sh
6858: # decide which to use based on capabilities of $DLLTOOL
6859: case `$DLLTOOL --help 2>&1` in
6860: *--identify-strict*)
6861: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6862: ;;
6863: *)
6864: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6865: ;;
6866: esac
6867: ;;
6868: *)
6869: # fallback: assume linklib IS sharedlib
6870: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6871: ;;
6872: esac
6873:
6874: fi
1.150 moko 6875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6876: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 6877: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6878: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6879:
6880:
6881:
6882:
6883:
6884:
6885:
6886: if test -n "$ac_tool_prefix"; then
6887: for ac_prog in ar
6888: do
6889: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6890: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 6891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892: $as_echo_n "checking for $ac_word... " >&6; }
6893: if ${ac_cv_prog_AR+:} false; then :
6894: $as_echo_n "(cached) " >&6
1.128 moko 6895: else
6896: if test -n "$AR"; then
6897: ac_cv_prog_AR="$AR" # Let the user override the test.
6898: else
6899: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900: for as_dir in $PATH
6901: do
6902: IFS=$as_save_IFS
6903: test -z "$as_dir" && as_dir=.
1.150 moko 6904: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6905: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6906: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.150 moko 6907: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6908: break 2
6909: fi
6910: done
1.150 moko 6911: done
6912: IFS=$as_save_IFS
1.128 moko 6913:
6914: fi
6915: fi
6916: AR=$ac_cv_prog_AR
6917: if test -n "$AR"; then
1.150 moko 6918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6919: $as_echo "$AR" >&6; }
1.128 moko 6920: else
1.150 moko 6921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922: $as_echo "no" >&6; }
1.128 moko 6923: fi
6924:
1.150 moko 6925:
1.128 moko 6926: test -n "$AR" && break
6927: done
6928: fi
6929: if test -z "$AR"; then
6930: ac_ct_AR=$AR
6931: for ac_prog in ar
6932: do
6933: # Extract the first word of "$ac_prog", so it can be a program name with args.
6934: set dummy $ac_prog; ac_word=$2
1.150 moko 6935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936: $as_echo_n "checking for $ac_word... " >&6; }
6937: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6938: $as_echo_n "(cached) " >&6
1.128 moko 6939: else
6940: if test -n "$ac_ct_AR"; then
6941: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6942: else
6943: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944: for as_dir in $PATH
6945: do
6946: IFS=$as_save_IFS
6947: test -z "$as_dir" && as_dir=.
1.150 moko 6948: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6949: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6950: ac_cv_prog_ac_ct_AR="$ac_prog"
1.150 moko 6951: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6952: break 2
6953: fi
6954: done
1.150 moko 6955: done
6956: IFS=$as_save_IFS
1.128 moko 6957:
6958: fi
6959: fi
6960: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6961: if test -n "$ac_ct_AR"; then
1.150 moko 6962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6963: $as_echo "$ac_ct_AR" >&6; }
1.128 moko 6964: else
1.150 moko 6965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966: $as_echo "no" >&6; }
1.128 moko 6967: fi
6968:
1.150 moko 6969:
1.128 moko 6970: test -n "$ac_ct_AR" && break
6971: done
6972:
1.150 moko 6973: if test "x$ac_ct_AR" = x; then
6974: AR="false"
6975: else
6976: case $cross_compiling:$ac_tool_warned in
6977: yes:)
6978: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980: ac_tool_warned=yes ;;
6981: esac
6982: AR=$ac_ct_AR
6983: fi
1.128 moko 6984: fi
6985:
6986: : ${AR=ar}
6987: : ${AR_FLAGS=cru}
6988:
6989:
6990:
6991:
6992:
6993:
6994:
6995:
6996:
6997:
6998:
1.150 moko 6999: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7000: $as_echo_n "checking for archiver @FILE support... " >&6; }
7001: if ${lt_cv_ar_at_file+:} false; then :
7002: $as_echo_n "(cached) " >&6
1.128 moko 7003: else
7004: lt_cv_ar_at_file=no
1.150 moko 7005: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7006: /* end confdefs.h. */
7007:
7008: int
7009: main ()
7010: {
7011:
7012: ;
7013: return 0;
7014: }
7015: _ACEOF
1.150 moko 7016: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 7017: echo conftest.$ac_objext > conftest.lst
7018: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 7019: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7020: (eval $lt_ar_try) 2>&5
7021: ac_status=$?
1.150 moko 7022: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7023: test $ac_status = 0; }
1.128 moko 7024: if test "$ac_status" -eq 0; then
7025: # Ensure the archiver fails upon bogus file names.
7026: rm -f conftest.$ac_objext libconftest.a
1.150 moko 7027: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7028: (eval $lt_ar_try) 2>&5
7029: ac_status=$?
1.150 moko 7030: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7031: test $ac_status = 0; }
1.128 moko 7032: if test "$ac_status" -ne 0; then
7033: lt_cv_ar_at_file=@
7034: fi
7035: fi
7036: rm -f conftest.* libconftest.a
7037:
7038: fi
1.150 moko 7039: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 7040:
7041: fi
1.150 moko 7042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7043: $as_echo "$lt_cv_ar_at_file" >&6; }
1.128 moko 7044:
7045: if test "x$lt_cv_ar_at_file" = xno; then
7046: archiver_list_spec=
7047: else
7048: archiver_list_spec=$lt_cv_ar_at_file
7049: fi
7050:
7051:
7052:
7053:
7054:
7055:
7056:
7057: if test -n "$ac_tool_prefix"; then
7058: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7059: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.150 moko 7060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061: $as_echo_n "checking for $ac_word... " >&6; }
7062: if ${ac_cv_prog_STRIP+:} false; then :
7063: $as_echo_n "(cached) " >&6
1.128 moko 7064: else
7065: if test -n "$STRIP"; then
7066: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7067: else
7068: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069: for as_dir in $PATH
7070: do
7071: IFS=$as_save_IFS
7072: test -z "$as_dir" && as_dir=.
1.150 moko 7073: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7074: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7075: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.150 moko 7076: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7077: break 2
7078: fi
7079: done
1.150 moko 7080: done
7081: IFS=$as_save_IFS
1.128 moko 7082:
7083: fi
7084: fi
7085: STRIP=$ac_cv_prog_STRIP
7086: if test -n "$STRIP"; then
1.150 moko 7087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7088: $as_echo "$STRIP" >&6; }
1.128 moko 7089: else
1.150 moko 7090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091: $as_echo "no" >&6; }
1.128 moko 7092: fi
7093:
1.150 moko 7094:
1.128 moko 7095: fi
7096: if test -z "$ac_cv_prog_STRIP"; then
7097: ac_ct_STRIP=$STRIP
7098: # Extract the first word of "strip", so it can be a program name with args.
7099: set dummy strip; ac_word=$2
1.150 moko 7100: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101: $as_echo_n "checking for $ac_word... " >&6; }
7102: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7103: $as_echo_n "(cached) " >&6
1.128 moko 7104: else
7105: if test -n "$ac_ct_STRIP"; then
7106: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7107: else
7108: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109: for as_dir in $PATH
7110: do
7111: IFS=$as_save_IFS
7112: test -z "$as_dir" && as_dir=.
1.150 moko 7113: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7114: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7115: ac_cv_prog_ac_ct_STRIP="strip"
1.150 moko 7116: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7117: break 2
7118: fi
7119: done
1.150 moko 7120: done
7121: IFS=$as_save_IFS
1.128 moko 7122:
7123: fi
7124: fi
7125: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7126: if test -n "$ac_ct_STRIP"; then
1.150 moko 7127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7128: $as_echo "$ac_ct_STRIP" >&6; }
1.128 moko 7129: else
1.150 moko 7130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131: $as_echo "no" >&6; }
1.128 moko 7132: fi
7133:
1.150 moko 7134: if test "x$ac_ct_STRIP" = x; then
7135: STRIP=":"
7136: else
7137: case $cross_compiling:$ac_tool_warned in
7138: yes:)
7139: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141: ac_tool_warned=yes ;;
7142: esac
7143: STRIP=$ac_ct_STRIP
7144: fi
1.128 moko 7145: else
7146: STRIP="$ac_cv_prog_STRIP"
7147: fi
7148:
7149: test -z "$STRIP" && STRIP=:
7150:
7151:
7152:
7153:
7154:
7155:
7156: if test -n "$ac_tool_prefix"; then
7157: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7158: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.150 moko 7159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160: $as_echo_n "checking for $ac_word... " >&6; }
7161: if ${ac_cv_prog_RANLIB+:} false; then :
7162: $as_echo_n "(cached) " >&6
1.128 moko 7163: else
7164: if test -n "$RANLIB"; then
7165: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7166: else
7167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168: for as_dir in $PATH
7169: do
7170: IFS=$as_save_IFS
7171: test -z "$as_dir" && as_dir=.
1.150 moko 7172: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7173: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7174: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.150 moko 7175: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7176: break 2
7177: fi
7178: done
1.150 moko 7179: done
7180: IFS=$as_save_IFS
1.128 moko 7181:
7182: fi
7183: fi
7184: RANLIB=$ac_cv_prog_RANLIB
7185: if test -n "$RANLIB"; then
1.150 moko 7186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7187: $as_echo "$RANLIB" >&6; }
1.128 moko 7188: else
1.150 moko 7189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190: $as_echo "no" >&6; }
1.128 moko 7191: fi
7192:
1.150 moko 7193:
1.128 moko 7194: fi
7195: if test -z "$ac_cv_prog_RANLIB"; then
7196: ac_ct_RANLIB=$RANLIB
7197: # Extract the first word of "ranlib", so it can be a program name with args.
7198: set dummy ranlib; ac_word=$2
1.150 moko 7199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200: $as_echo_n "checking for $ac_word... " >&6; }
7201: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7202: $as_echo_n "(cached) " >&6
1.128 moko 7203: else
7204: if test -n "$ac_ct_RANLIB"; then
7205: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7206: else
7207: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208: for as_dir in $PATH
7209: do
7210: IFS=$as_save_IFS
7211: test -z "$as_dir" && as_dir=.
1.150 moko 7212: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7213: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7214: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.150 moko 7215: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7216: break 2
7217: fi
7218: done
1.150 moko 7219: done
7220: IFS=$as_save_IFS
1.128 moko 7221:
7222: fi
7223: fi
7224: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7225: if test -n "$ac_ct_RANLIB"; then
1.150 moko 7226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7227: $as_echo "$ac_ct_RANLIB" >&6; }
1.128 moko 7228: else
1.150 moko 7229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230: $as_echo "no" >&6; }
1.128 moko 7231: fi
7232:
1.150 moko 7233: if test "x$ac_ct_RANLIB" = x; then
7234: RANLIB=":"
7235: else
7236: case $cross_compiling:$ac_tool_warned in
7237: yes:)
7238: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240: ac_tool_warned=yes ;;
7241: esac
7242: RANLIB=$ac_ct_RANLIB
7243: fi
1.128 moko 7244: else
7245: RANLIB="$ac_cv_prog_RANLIB"
7246: fi
7247:
7248: test -z "$RANLIB" && RANLIB=:
7249:
7250:
7251:
7252:
7253:
7254:
7255: # Determine commands to create old-style static archives.
7256: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7257: old_postinstall_cmds='chmod 644 $oldlib'
7258: old_postuninstall_cmds=
7259:
7260: if test -n "$RANLIB"; then
7261: case $host_os in
7262: openbsd*)
7263: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7264: ;;
7265: *)
7266: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7267: ;;
7268: esac
7269: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7270: fi
7271:
7272: case $host_os in
7273: darwin*)
7274: lock_old_archive_extraction=yes ;;
7275: *)
7276: lock_old_archive_extraction=no ;;
7277: esac
7278:
7279:
7280:
7281:
7282:
7283:
7284:
7285:
7286:
7287:
7288:
7289:
7290:
7291:
7292:
7293:
7294:
7295:
7296:
7297:
7298:
7299:
7300:
7301:
7302:
7303:
7304:
7305:
7306:
7307:
7308:
7309:
7310:
7311:
7312:
7313:
7314:
7315:
7316:
7317: # If no C compiler was specified, use CC.
7318: LTCC=${LTCC-"$CC"}
7319:
7320: # If no C compiler flags were specified, use CFLAGS.
7321: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7322:
7323: # Allow CC to be a program name with arguments.
7324: compiler=$CC
7325:
7326:
7327: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.150 moko 7328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7329: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7330: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7331: $as_echo_n "(cached) " >&6
1.128 moko 7332: else
7333:
7334: # These are sane defaults that work on at least a few old systems.
7335: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7336:
7337: # Character class describing NM global symbol codes.
7338: symcode='[BCDEGRST]'
7339:
7340: # Regexp to match symbols that can be accessed directly from C.
7341: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7342:
7343: # Define system-specific variables.
7344: case $host_os in
7345: aix*)
7346: symcode='[BCDT]'
7347: ;;
7348: cygwin* | mingw* | pw32* | cegcc*)
7349: symcode='[ABCDGISTW]'
7350: ;;
7351: hpux*)
7352: if test "$host_cpu" = ia64; then
7353: symcode='[ABCDEGRST]'
7354: fi
7355: ;;
7356: irix* | nonstopux*)
7357: symcode='[BCDEGRST]'
7358: ;;
7359: osf*)
7360: symcode='[BCDEGQRST]'
7361: ;;
7362: solaris*)
7363: symcode='[BDRT]'
7364: ;;
7365: sco3.2v5*)
7366: symcode='[DT]'
7367: ;;
7368: sysv4.2uw2*)
7369: symcode='[DT]'
7370: ;;
7371: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7372: symcode='[ABDT]'
7373: ;;
7374: sysv4)
7375: symcode='[DFNSTU]'
7376: ;;
7377: esac
7378:
7379: # If we're using GNU nm, then use its standard symbol codes.
7380: case `$NM -V 2>&1` in
7381: *GNU* | *'with BFD'*)
7382: symcode='[ABCDGIRSTW]' ;;
7383: esac
7384:
7385: # Transform an extracted symbol line into a proper C declaration.
7386: # Some systems (esp. on ia64) link data and code symbols differently,
7387: # so use this general approach.
7388: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7389:
7390: # Transform an extracted symbol line into symbol name and symbol address
7391: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7392: 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'"
7393:
7394: # Handle CRLF in mingw tool chain
7395: opt_cr=
7396: case $build_os in
7397: mingw*)
7398: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7399: ;;
7400: esac
7401:
7402: # Try without a prefix underscore, then with it.
7403: for ac_symprfx in "" "_"; do
7404:
7405: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7406: symxfrm="\\1 $ac_symprfx\\2 \\2"
7407:
7408: # Write the raw and C identifiers.
7409: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7410: # Fake it for dumpbin and say T for any non-static function
7411: # and D for any global variable.
7412: # Also find C++ and __fastcall symbols from MSVC++,
7413: # which start with @ or ?.
7414: lt_cv_sys_global_symbol_pipe="$AWK '"\
7415: " {last_section=section; section=\$ 3};"\
7416: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7417: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7418: " \$ 0!~/External *\|/{next};"\
7419: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7420: " {if(hide[section]) next};"\
7421: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7422: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7423: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7424: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7425: " ' prfx=^$ac_symprfx"
7426: else
7427: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7428: fi
7429: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7430:
7431: # Check to see that the pipe works correctly.
7432: pipe_works=no
7433:
7434: rm -f conftest*
7435: cat > conftest.$ac_ext <<_LT_EOF
7436: #ifdef __cplusplus
7437: extern "C" {
7438: #endif
7439: char nm_test_var;
7440: void nm_test_func(void);
7441: void nm_test_func(void){}
7442: #ifdef __cplusplus
7443: }
7444: #endif
7445: int main(){nm_test_var='a';nm_test_func();return(0);}
7446: _LT_EOF
7447:
1.150 moko 7448: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7449: (eval $ac_compile) 2>&5
7450: ac_status=$?
1.150 moko 7451: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7452: test $ac_status = 0; }; then
1.128 moko 7453: # Now try to grab the symbols.
7454: nlist=conftest.nm
1.150 moko 7455: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.128 moko 7456: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7457: ac_status=$?
1.150 moko 7458: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7459: test $ac_status = 0; } && test -s "$nlist"; then
1.128 moko 7460: # Try sorting and uniquifying the output.
7461: if sort "$nlist" | uniq > "$nlist"T; then
7462: mv -f "$nlist"T "$nlist"
7463: else
7464: rm -f "$nlist"T
7465: fi
7466:
7467: # Make sure that we snagged all the symbols we need.
7468: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7469: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7470: cat <<_LT_EOF > conftest.$ac_ext
7471: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7472: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7473: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7474: relocations are performed -- see ld's documentation on pseudo-relocs. */
7475: # define LT_DLSYM_CONST
7476: #elif defined(__osf__)
7477: /* This system does not cope well with relocations in const data. */
7478: # define LT_DLSYM_CONST
7479: #else
7480: # define LT_DLSYM_CONST const
7481: #endif
7482:
7483: #ifdef __cplusplus
7484: extern "C" {
7485: #endif
7486:
7487: _LT_EOF
7488: # Now generate the symbol file.
7489: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7490:
7491: cat <<_LT_EOF >> conftest.$ac_ext
7492:
7493: /* The mapping between symbol names and symbols. */
7494: LT_DLSYM_CONST struct {
7495: const char *name;
7496: void *address;
7497: }
7498: lt__PROGRAM__LTX_preloaded_symbols[] =
7499: {
7500: { "@PROGRAM@", (void *) 0 },
7501: _LT_EOF
7502: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7503: cat <<\_LT_EOF >> conftest.$ac_ext
7504: {0, (void *) 0}
7505: };
7506:
7507: /* This works around a problem in FreeBSD linker */
7508: #ifdef FREEBSD_WORKAROUND
7509: static const void *lt_preloaded_setup() {
7510: return lt__PROGRAM__LTX_preloaded_symbols;
7511: }
7512: #endif
7513:
7514: #ifdef __cplusplus
7515: }
7516: #endif
7517: _LT_EOF
7518: # Now try linking the two files.
7519: mv conftest.$ac_objext conftstm.$ac_objext
7520: lt_globsym_save_LIBS=$LIBS
7521: lt_globsym_save_CFLAGS=$CFLAGS
7522: LIBS="conftstm.$ac_objext"
7523: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 7524: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 7525: (eval $ac_link) 2>&5
7526: ac_status=$?
1.150 moko 7527: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7528: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.128 moko 7529: pipe_works=yes
7530: fi
7531: LIBS=$lt_globsym_save_LIBS
7532: CFLAGS=$lt_globsym_save_CFLAGS
7533: else
7534: echo "cannot find nm_test_func in $nlist" >&5
7535: fi
7536: else
7537: echo "cannot find nm_test_var in $nlist" >&5
7538: fi
7539: else
7540: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7541: fi
7542: else
7543: echo "$progname: failed program was:" >&5
7544: cat conftest.$ac_ext >&5
7545: fi
7546: rm -rf conftest* conftst*
7547:
7548: # Do not use the global_symbol_pipe unless it works.
7549: if test "$pipe_works" = yes; then
7550: break
7551: else
7552: lt_cv_sys_global_symbol_pipe=
7553: fi
7554: done
7555:
7556: fi
7557:
7558: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7559: lt_cv_sys_global_symbol_to_cdecl=
7560: fi
7561: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.150 moko 7562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7563: $as_echo "failed" >&6; }
1.128 moko 7564: else
1.150 moko 7565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7566: $as_echo "ok" >&6; }
1.128 moko 7567: fi
7568:
7569: # Response file support.
7570: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7571: nm_file_list_spec='@'
7572: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7573: nm_file_list_spec='@'
7574: fi
7575:
7576:
7577:
7578:
7579:
7580:
7581:
7582:
7583:
7584:
7585:
7586:
7587:
7588:
7589:
7590:
7591:
7592:
7593:
7594:
7595:
7596:
7597:
7598:
7599:
7600:
7601:
1.150 moko 7602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7603: $as_echo_n "checking for sysroot... " >&6; }
1.128 moko 7604:
1.150 moko 7605: # Check whether --with-sysroot was given.
7606: if test "${with_sysroot+set}" = set; then :
7607: withval=$with_sysroot;
1.128 moko 7608: else
7609: with_sysroot=no
1.150 moko 7610: fi
7611:
1.128 moko 7612:
7613: lt_sysroot=
7614: case ${with_sysroot} in #(
7615: yes)
7616: if test "$GCC" = yes; then
7617: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7618: fi
7619: ;; #(
7620: /*)
7621: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7622: ;; #(
7623: no|'')
7624: ;; #(
7625: *)
1.150 moko 7626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7627: $as_echo "${with_sysroot}" >&6; }
7628: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 7629: ;;
7630: esac
7631:
1.150 moko 7632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7633: $as_echo "${lt_sysroot:-no}" >&6; }
1.128 moko 7634:
7635:
7636:
7637:
7638:
1.150 moko 7639: # Check whether --enable-libtool-lock was given.
7640: if test "${enable_libtool_lock+set}" = set; then :
7641: enableval=$enable_libtool_lock;
7642: fi
1.128 moko 7643:
7644: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7645:
7646: # Some flags need to be propagated to the compiler or linker for good
7647: # libtool support.
7648: case $host in
7649: ia64-*-hpux*)
7650: # Find out which ABI we are using.
7651: echo 'int i;' > conftest.$ac_ext
1.150 moko 7652: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7653: (eval $ac_compile) 2>&5
7654: ac_status=$?
1.150 moko 7655: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656: test $ac_status = 0; }; then
1.128 moko 7657: case `/usr/bin/file conftest.$ac_objext` in
7658: *ELF-32*)
7659: HPUX_IA64_MODE="32"
7660: ;;
7661: *ELF-64*)
7662: HPUX_IA64_MODE="64"
7663: ;;
7664: esac
7665: fi
7666: rm -rf conftest*
7667: ;;
7668: *-*-irix6*)
7669: # Find out which ABI we are using.
7670: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 7671: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7672: (eval $ac_compile) 2>&5
7673: ac_status=$?
1.150 moko 7674: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7675: test $ac_status = 0; }; then
1.128 moko 7676: if test "$lt_cv_prog_gnu_ld" = yes; then
7677: case `/usr/bin/file conftest.$ac_objext` in
7678: *32-bit*)
7679: LD="${LD-ld} -melf32bsmip"
7680: ;;
7681: *N32*)
7682: LD="${LD-ld} -melf32bmipn32"
7683: ;;
7684: *64-bit*)
7685: LD="${LD-ld} -melf64bmip"
7686: ;;
7687: esac
7688: else
7689: case `/usr/bin/file conftest.$ac_objext` in
7690: *32-bit*)
7691: LD="${LD-ld} -32"
7692: ;;
7693: *N32*)
7694: LD="${LD-ld} -n32"
7695: ;;
7696: *64-bit*)
7697: LD="${LD-ld} -64"
7698: ;;
7699: esac
7700: fi
7701: fi
7702: rm -rf conftest*
7703: ;;
7704:
7705: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7706: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7707: # Find out which ABI we are using.
7708: echo 'int i;' > conftest.$ac_ext
1.150 moko 7709: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7710: (eval $ac_compile) 2>&5
7711: ac_status=$?
1.150 moko 7712: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7713: test $ac_status = 0; }; then
1.128 moko 7714: case `/usr/bin/file conftest.o` in
7715: *32-bit*)
7716: case $host in
7717: x86_64-*kfreebsd*-gnu)
7718: LD="${LD-ld} -m elf_i386_fbsd"
7719: ;;
7720: x86_64-*linux*)
7721: LD="${LD-ld} -m elf_i386"
7722: ;;
7723: ppc64-*linux*|powerpc64-*linux*)
7724: LD="${LD-ld} -m elf32ppclinux"
7725: ;;
7726: s390x-*linux*)
7727: LD="${LD-ld} -m elf_s390"
7728: ;;
7729: sparc64-*linux*)
7730: LD="${LD-ld} -m elf32_sparc"
7731: ;;
7732: esac
7733: ;;
7734: *64-bit*)
7735: case $host in
7736: x86_64-*kfreebsd*-gnu)
7737: LD="${LD-ld} -m elf_x86_64_fbsd"
7738: ;;
7739: x86_64-*linux*)
7740: LD="${LD-ld} -m elf_x86_64"
7741: ;;
7742: ppc*-*linux*|powerpc*-*linux*)
7743: LD="${LD-ld} -m elf64ppc"
7744: ;;
7745: s390*-*linux*|s390*-*tpf*)
7746: LD="${LD-ld} -m elf64_s390"
7747: ;;
7748: sparc*-*linux*)
7749: LD="${LD-ld} -m elf64_sparc"
7750: ;;
7751: esac
7752: ;;
7753: esac
7754: fi
7755: rm -rf conftest*
7756: ;;
7757:
7758: *-*-sco3.2v5*)
7759: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7760: SAVE_CFLAGS="$CFLAGS"
7761: CFLAGS="$CFLAGS -belf"
1.150 moko 7762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7763: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7764: if ${lt_cv_cc_needs_belf+:} false; then :
7765: $as_echo_n "(cached) " >&6
1.128 moko 7766: else
7767: ac_ext=c
7768: ac_cpp='$CPP $CPPFLAGS'
7769: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772:
1.150 moko 7773: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7774: /* end confdefs.h. */
7775:
7776: int
7777: main ()
7778: {
7779:
7780: ;
7781: return 0;
7782: }
7783: _ACEOF
1.150 moko 7784: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 7785: lt_cv_cc_needs_belf=yes
7786: else
1.150 moko 7787: lt_cv_cc_needs_belf=no
1.128 moko 7788: fi
1.150 moko 7789: rm -f core conftest.err conftest.$ac_objext \
7790: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7791: ac_ext=c
7792: ac_cpp='$CPP $CPPFLAGS'
7793: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7794: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7795: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7796:
7797: fi
1.150 moko 7798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7799: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.128 moko 7800: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7801: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7802: CFLAGS="$SAVE_CFLAGS"
7803: fi
7804: ;;
7805: *-*solaris*)
7806: # Find out which ABI we are using.
7807: echo 'int i;' > conftest.$ac_ext
1.150 moko 7808: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7809: (eval $ac_compile) 2>&5
7810: ac_status=$?
1.150 moko 7811: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7812: test $ac_status = 0; }; then
1.128 moko 7813: case `/usr/bin/file conftest.o` in
7814: *64-bit*)
7815: case $lt_cv_prog_gnu_ld in
7816: yes*)
7817: case $host in
7818: i?86-*-solaris*)
7819: LD="${LD-ld} -m elf_x86_64"
7820: ;;
7821: sparc*-*-solaris*)
7822: LD="${LD-ld} -m elf64_sparc"
7823: ;;
7824: esac
7825: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7826: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7827: LD="${LD-ld}_sol2"
7828: fi
7829: ;;
7830: *)
7831: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7832: LD="${LD-ld} -64"
7833: fi
7834: ;;
7835: esac
7836: ;;
7837: esac
7838: fi
7839: rm -rf conftest*
7840: ;;
7841: esac
7842:
7843: need_locks="$enable_libtool_lock"
7844:
7845: if test -n "$ac_tool_prefix"; then
7846: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7847: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.150 moko 7848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849: $as_echo_n "checking for $ac_word... " >&6; }
7850: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7851: $as_echo_n "(cached) " >&6
1.128 moko 7852: else
7853: if test -n "$MANIFEST_TOOL"; then
7854: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7855: else
7856: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857: for as_dir in $PATH
7858: do
7859: IFS=$as_save_IFS
7860: test -z "$as_dir" && as_dir=.
1.150 moko 7861: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7862: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7863: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.150 moko 7864: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7865: break 2
7866: fi
7867: done
1.150 moko 7868: done
7869: IFS=$as_save_IFS
1.128 moko 7870:
7871: fi
7872: fi
7873: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7874: if test -n "$MANIFEST_TOOL"; then
1.150 moko 7875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7876: $as_echo "$MANIFEST_TOOL" >&6; }
1.128 moko 7877: else
1.150 moko 7878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879: $as_echo "no" >&6; }
1.128 moko 7880: fi
7881:
1.150 moko 7882:
1.128 moko 7883: fi
7884: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7885: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7886: # Extract the first word of "mt", so it can be a program name with args.
7887: set dummy mt; ac_word=$2
1.150 moko 7888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889: $as_echo_n "checking for $ac_word... " >&6; }
7890: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7891: $as_echo_n "(cached) " >&6
1.128 moko 7892: else
7893: if test -n "$ac_ct_MANIFEST_TOOL"; then
7894: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7895: else
7896: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897: for as_dir in $PATH
7898: do
7899: IFS=$as_save_IFS
7900: test -z "$as_dir" && as_dir=.
1.150 moko 7901: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7902: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7903: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.150 moko 7904: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7905: break 2
7906: fi
7907: done
1.150 moko 7908: done
7909: IFS=$as_save_IFS
1.128 moko 7910:
7911: fi
7912: fi
7913: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7914: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.150 moko 7915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7916: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 7917: else
1.150 moko 7918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919: $as_echo "no" >&6; }
1.128 moko 7920: fi
7921:
1.150 moko 7922: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7923: MANIFEST_TOOL=":"
7924: else
7925: case $cross_compiling:$ac_tool_warned in
7926: yes:)
7927: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7928: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929: ac_tool_warned=yes ;;
7930: esac
7931: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7932: fi
1.128 moko 7933: else
7934: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7935: fi
7936:
7937: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.150 moko 7938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7939: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7940: if ${lt_cv_path_mainfest_tool+:} false; then :
7941: $as_echo_n "(cached) " >&6
1.128 moko 7942: else
7943: lt_cv_path_mainfest_tool=no
7944: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7945: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7946: cat conftest.err >&5
7947: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7948: lt_cv_path_mainfest_tool=yes
7949: fi
7950: rm -f conftest*
7951: fi
1.150 moko 7952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7953: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.128 moko 7954: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7955: MANIFEST_TOOL=:
7956: fi
7957:
7958:
7959:
7960:
7961:
7962:
7963: case $host_os in
7964: rhapsody* | darwin*)
7965: if test -n "$ac_tool_prefix"; then
7966: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7967: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.150 moko 7968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969: $as_echo_n "checking for $ac_word... " >&6; }
7970: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7971: $as_echo_n "(cached) " >&6
1.128 moko 7972: else
7973: if test -n "$DSYMUTIL"; then
7974: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7975: else
7976: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977: for as_dir in $PATH
7978: do
7979: IFS=$as_save_IFS
7980: test -z "$as_dir" && as_dir=.
1.150 moko 7981: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7982: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7983: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.150 moko 7984: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7985: break 2
7986: fi
7987: done
1.150 moko 7988: done
7989: IFS=$as_save_IFS
1.128 moko 7990:
7991: fi
7992: fi
7993: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7994: if test -n "$DSYMUTIL"; then
1.150 moko 7995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7996: $as_echo "$DSYMUTIL" >&6; }
1.128 moko 7997: else
1.150 moko 7998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999: $as_echo "no" >&6; }
1.128 moko 8000: fi
8001:
1.150 moko 8002:
1.128 moko 8003: fi
8004: if test -z "$ac_cv_prog_DSYMUTIL"; then
8005: ac_ct_DSYMUTIL=$DSYMUTIL
8006: # Extract the first word of "dsymutil", so it can be a program name with args.
8007: set dummy dsymutil; ac_word=$2
1.150 moko 8008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009: $as_echo_n "checking for $ac_word... " >&6; }
8010: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8011: $as_echo_n "(cached) " >&6
1.128 moko 8012: else
8013: if test -n "$ac_ct_DSYMUTIL"; then
8014: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8015: else
8016: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017: for as_dir in $PATH
8018: do
8019: IFS=$as_save_IFS
8020: test -z "$as_dir" && as_dir=.
1.150 moko 8021: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8022: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8023: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.150 moko 8024: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8025: break 2
8026: fi
8027: done
1.150 moko 8028: done
8029: IFS=$as_save_IFS
1.128 moko 8030:
8031: fi
8032: fi
8033: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8034: if test -n "$ac_ct_DSYMUTIL"; then
1.150 moko 8035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8036: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 8037: else
1.150 moko 8038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039: $as_echo "no" >&6; }
1.128 moko 8040: fi
8041:
1.150 moko 8042: if test "x$ac_ct_DSYMUTIL" = x; then
8043: DSYMUTIL=":"
8044: else
8045: case $cross_compiling:$ac_tool_warned in
8046: yes:)
8047: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049: ac_tool_warned=yes ;;
8050: esac
8051: DSYMUTIL=$ac_ct_DSYMUTIL
8052: fi
1.128 moko 8053: else
8054: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8055: fi
8056:
8057: if test -n "$ac_tool_prefix"; then
8058: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8059: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.150 moko 8060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061: $as_echo_n "checking for $ac_word... " >&6; }
8062: if ${ac_cv_prog_NMEDIT+:} false; then :
8063: $as_echo_n "(cached) " >&6
1.128 moko 8064: else
8065: if test -n "$NMEDIT"; then
8066: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8067: else
8068: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069: for as_dir in $PATH
8070: do
8071: IFS=$as_save_IFS
8072: test -z "$as_dir" && as_dir=.
1.150 moko 8073: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8074: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8075: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.150 moko 8076: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8077: break 2
8078: fi
8079: done
1.150 moko 8080: done
8081: IFS=$as_save_IFS
1.128 moko 8082:
8083: fi
8084: fi
8085: NMEDIT=$ac_cv_prog_NMEDIT
8086: if test -n "$NMEDIT"; then
1.150 moko 8087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8088: $as_echo "$NMEDIT" >&6; }
1.128 moko 8089: else
1.150 moko 8090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091: $as_echo "no" >&6; }
1.128 moko 8092: fi
8093:
1.150 moko 8094:
1.128 moko 8095: fi
8096: if test -z "$ac_cv_prog_NMEDIT"; then
8097: ac_ct_NMEDIT=$NMEDIT
8098: # Extract the first word of "nmedit", so it can be a program name with args.
8099: set dummy nmedit; ac_word=$2
1.150 moko 8100: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101: $as_echo_n "checking for $ac_word... " >&6; }
8102: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8103: $as_echo_n "(cached) " >&6
1.128 moko 8104: else
8105: if test -n "$ac_ct_NMEDIT"; then
8106: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8107: else
8108: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109: for as_dir in $PATH
8110: do
8111: IFS=$as_save_IFS
8112: test -z "$as_dir" && as_dir=.
1.150 moko 8113: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8114: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8115: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.150 moko 8116: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8117: break 2
8118: fi
8119: done
1.150 moko 8120: done
8121: IFS=$as_save_IFS
1.128 moko 8122:
8123: fi
8124: fi
8125: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8126: if test -n "$ac_ct_NMEDIT"; then
1.150 moko 8127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8128: $as_echo "$ac_ct_NMEDIT" >&6; }
1.128 moko 8129: else
1.150 moko 8130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131: $as_echo "no" >&6; }
1.128 moko 8132: fi
8133:
1.150 moko 8134: if test "x$ac_ct_NMEDIT" = x; then
8135: NMEDIT=":"
8136: else
8137: case $cross_compiling:$ac_tool_warned in
8138: yes:)
8139: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8140: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8141: ac_tool_warned=yes ;;
8142: esac
8143: NMEDIT=$ac_ct_NMEDIT
8144: fi
1.128 moko 8145: else
8146: NMEDIT="$ac_cv_prog_NMEDIT"
8147: fi
8148:
8149: if test -n "$ac_tool_prefix"; then
8150: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8151: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.150 moko 8152: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153: $as_echo_n "checking for $ac_word... " >&6; }
8154: if ${ac_cv_prog_LIPO+:} false; then :
8155: $as_echo_n "(cached) " >&6
1.128 moko 8156: else
8157: if test -n "$LIPO"; then
8158: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8159: else
8160: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161: for as_dir in $PATH
8162: do
8163: IFS=$as_save_IFS
8164: test -z "$as_dir" && as_dir=.
1.150 moko 8165: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8166: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8167: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.150 moko 8168: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8169: break 2
8170: fi
8171: done
1.150 moko 8172: done
8173: IFS=$as_save_IFS
1.128 moko 8174:
8175: fi
8176: fi
8177: LIPO=$ac_cv_prog_LIPO
8178: if test -n "$LIPO"; then
1.150 moko 8179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8180: $as_echo "$LIPO" >&6; }
1.128 moko 8181: else
1.150 moko 8182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183: $as_echo "no" >&6; }
1.128 moko 8184: fi
8185:
1.150 moko 8186:
1.128 moko 8187: fi
8188: if test -z "$ac_cv_prog_LIPO"; then
8189: ac_ct_LIPO=$LIPO
8190: # Extract the first word of "lipo", so it can be a program name with args.
8191: set dummy lipo; ac_word=$2
1.150 moko 8192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193: $as_echo_n "checking for $ac_word... " >&6; }
8194: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8195: $as_echo_n "(cached) " >&6
1.128 moko 8196: else
8197: if test -n "$ac_ct_LIPO"; then
8198: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8199: else
8200: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201: for as_dir in $PATH
8202: do
8203: IFS=$as_save_IFS
8204: test -z "$as_dir" && as_dir=.
1.150 moko 8205: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8206: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8207: ac_cv_prog_ac_ct_LIPO="lipo"
1.150 moko 8208: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8209: break 2
8210: fi
8211: done
1.150 moko 8212: done
8213: IFS=$as_save_IFS
1.128 moko 8214:
8215: fi
8216: fi
8217: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8218: if test -n "$ac_ct_LIPO"; then
1.150 moko 8219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8220: $as_echo "$ac_ct_LIPO" >&6; }
1.128 moko 8221: else
1.150 moko 8222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223: $as_echo "no" >&6; }
1.128 moko 8224: fi
8225:
1.150 moko 8226: if test "x$ac_ct_LIPO" = x; then
8227: LIPO=":"
8228: else
8229: case $cross_compiling:$ac_tool_warned in
8230: yes:)
8231: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8232: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8233: ac_tool_warned=yes ;;
8234: esac
8235: LIPO=$ac_ct_LIPO
8236: fi
1.128 moko 8237: else
8238: LIPO="$ac_cv_prog_LIPO"
8239: fi
8240:
8241: if test -n "$ac_tool_prefix"; then
8242: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8243: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.150 moko 8244: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245: $as_echo_n "checking for $ac_word... " >&6; }
8246: if ${ac_cv_prog_OTOOL+:} false; then :
8247: $as_echo_n "(cached) " >&6
1.128 moko 8248: else
8249: if test -n "$OTOOL"; then
8250: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8251: else
8252: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253: for as_dir in $PATH
8254: do
8255: IFS=$as_save_IFS
8256: test -z "$as_dir" && as_dir=.
1.150 moko 8257: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8258: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8259: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.150 moko 8260: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8261: break 2
8262: fi
8263: done
1.150 moko 8264: done
8265: IFS=$as_save_IFS
1.128 moko 8266:
8267: fi
8268: fi
8269: OTOOL=$ac_cv_prog_OTOOL
8270: if test -n "$OTOOL"; then
1.150 moko 8271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8272: $as_echo "$OTOOL" >&6; }
1.128 moko 8273: else
1.150 moko 8274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275: $as_echo "no" >&6; }
1.128 moko 8276: fi
8277:
1.150 moko 8278:
1.128 moko 8279: fi
8280: if test -z "$ac_cv_prog_OTOOL"; then
8281: ac_ct_OTOOL=$OTOOL
8282: # Extract the first word of "otool", so it can be a program name with args.
8283: set dummy otool; ac_word=$2
1.150 moko 8284: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285: $as_echo_n "checking for $ac_word... " >&6; }
8286: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8287: $as_echo_n "(cached) " >&6
1.128 moko 8288: else
8289: if test -n "$ac_ct_OTOOL"; then
8290: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8291: else
8292: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293: for as_dir in $PATH
8294: do
8295: IFS=$as_save_IFS
8296: test -z "$as_dir" && as_dir=.
1.150 moko 8297: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8298: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8299: ac_cv_prog_ac_ct_OTOOL="otool"
1.150 moko 8300: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8301: break 2
8302: fi
8303: done
1.150 moko 8304: done
8305: IFS=$as_save_IFS
1.128 moko 8306:
8307: fi
8308: fi
8309: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8310: if test -n "$ac_ct_OTOOL"; then
1.150 moko 8311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8312: $as_echo "$ac_ct_OTOOL" >&6; }
1.128 moko 8313: else
1.150 moko 8314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315: $as_echo "no" >&6; }
1.128 moko 8316: fi
8317:
1.150 moko 8318: if test "x$ac_ct_OTOOL" = x; then
8319: OTOOL=":"
8320: else
8321: case $cross_compiling:$ac_tool_warned in
8322: yes:)
8323: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8324: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8325: ac_tool_warned=yes ;;
8326: esac
8327: OTOOL=$ac_ct_OTOOL
8328: fi
1.128 moko 8329: else
8330: OTOOL="$ac_cv_prog_OTOOL"
8331: fi
8332:
8333: if test -n "$ac_tool_prefix"; then
8334: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8335: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.150 moko 8336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337: $as_echo_n "checking for $ac_word... " >&6; }
8338: if ${ac_cv_prog_OTOOL64+:} false; then :
8339: $as_echo_n "(cached) " >&6
1.128 moko 8340: else
8341: if test -n "$OTOOL64"; then
8342: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8343: else
8344: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345: for as_dir in $PATH
8346: do
8347: IFS=$as_save_IFS
8348: test -z "$as_dir" && as_dir=.
1.150 moko 8349: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8350: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8351: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.150 moko 8352: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8353: break 2
8354: fi
8355: done
1.150 moko 8356: done
8357: IFS=$as_save_IFS
1.128 moko 8358:
8359: fi
8360: fi
8361: OTOOL64=$ac_cv_prog_OTOOL64
8362: if test -n "$OTOOL64"; then
1.150 moko 8363: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8364: $as_echo "$OTOOL64" >&6; }
1.128 moko 8365: else
1.150 moko 8366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367: $as_echo "no" >&6; }
1.128 moko 8368: fi
8369:
1.150 moko 8370:
1.128 moko 8371: fi
8372: if test -z "$ac_cv_prog_OTOOL64"; then
8373: ac_ct_OTOOL64=$OTOOL64
8374: # Extract the first word of "otool64", so it can be a program name with args.
8375: set dummy otool64; ac_word=$2
1.150 moko 8376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377: $as_echo_n "checking for $ac_word... " >&6; }
8378: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8379: $as_echo_n "(cached) " >&6
1.128 moko 8380: else
8381: if test -n "$ac_ct_OTOOL64"; then
8382: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8383: else
8384: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385: for as_dir in $PATH
8386: do
8387: IFS=$as_save_IFS
8388: test -z "$as_dir" && as_dir=.
1.150 moko 8389: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8390: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8391: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.150 moko 8392: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8393: break 2
8394: fi
8395: done
1.150 moko 8396: done
8397: IFS=$as_save_IFS
1.128 moko 8398:
8399: fi
8400: fi
8401: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8402: if test -n "$ac_ct_OTOOL64"; then
1.150 moko 8403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8404: $as_echo "$ac_ct_OTOOL64" >&6; }
1.128 moko 8405: else
1.150 moko 8406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407: $as_echo "no" >&6; }
1.128 moko 8408: fi
8409:
1.150 moko 8410: if test "x$ac_ct_OTOOL64" = x; then
8411: OTOOL64=":"
8412: else
8413: case $cross_compiling:$ac_tool_warned in
8414: yes:)
8415: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8416: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8417: ac_tool_warned=yes ;;
8418: esac
8419: OTOOL64=$ac_ct_OTOOL64
8420: fi
1.128 moko 8421: else
8422: OTOOL64="$ac_cv_prog_OTOOL64"
8423: fi
8424:
8425:
8426:
8427:
8428:
8429:
8430:
8431:
8432:
8433:
8434:
8435:
8436:
8437:
8438:
8439:
8440:
8441:
8442:
8443:
8444:
8445:
8446:
8447:
8448:
8449:
8450:
1.150 moko 8451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8452: $as_echo_n "checking for -single_module linker flag... " >&6; }
8453: if ${lt_cv_apple_cc_single_mod+:} false; then :
8454: $as_echo_n "(cached) " >&6
1.128 moko 8455: else
8456: lt_cv_apple_cc_single_mod=no
8457: if test -z "${LT_MULTI_MODULE}"; then
8458: # By default we will add the -single_module flag. You can override
8459: # by either setting the environment variable LT_MULTI_MODULE
8460: # non-empty at configure time, or by adding -multi_module to the
8461: # link flags.
8462: rm -rf libconftest.dylib*
8463: echo "int foo(void){return 1;}" > conftest.c
8464: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8465: -dynamiclib -Wl,-single_module conftest.c" >&5
8466: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8467: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8468: _lt_result=$?
8469: # If there is a non-empty error log, and "single_module"
8470: # appears in it, assume the flag caused a linker warning
8471: if test -s conftest.err && $GREP single_module conftest.err; then
8472: cat conftest.err >&5
8473: # Otherwise, if the output was created with a 0 exit code from
8474: # the compiler, it worked.
8475: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8476: lt_cv_apple_cc_single_mod=yes
8477: else
8478: cat conftest.err >&5
8479: fi
8480: rm -rf libconftest.dylib*
8481: rm -f conftest.*
8482: fi
8483: fi
1.150 moko 8484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8485: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.128 moko 8486:
1.150 moko 8487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8488: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8489: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8490: $as_echo_n "(cached) " >&6
1.128 moko 8491: else
8492: lt_cv_ld_exported_symbols_list=no
8493: save_LDFLAGS=$LDFLAGS
8494: echo "_main" > conftest.sym
8495: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 8496: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8497: /* end confdefs.h. */
8498:
8499: int
8500: main ()
8501: {
8502:
8503: ;
8504: return 0;
8505: }
8506: _ACEOF
1.150 moko 8507: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 8508: lt_cv_ld_exported_symbols_list=yes
8509: else
1.150 moko 8510: lt_cv_ld_exported_symbols_list=no
1.128 moko 8511: fi
1.150 moko 8512: rm -f core conftest.err conftest.$ac_objext \
8513: conftest$ac_exeext conftest.$ac_ext
1.128 moko 8514: LDFLAGS="$save_LDFLAGS"
8515:
8516: fi
1.150 moko 8517: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8518: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 8519:
1.150 moko 8520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8521: $as_echo_n "checking for -force_load linker flag... " >&6; }
8522: if ${lt_cv_ld_force_load+:} false; then :
8523: $as_echo_n "(cached) " >&6
1.128 moko 8524: else
8525: lt_cv_ld_force_load=no
8526: cat > conftest.c << _LT_EOF
8527: int forced_loaded() { return 2;}
8528: _LT_EOF
8529: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8530: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8531: echo "$AR cru libconftest.a conftest.o" >&5
8532: $AR cru libconftest.a conftest.o 2>&5
8533: echo "$RANLIB libconftest.a" >&5
8534: $RANLIB libconftest.a 2>&5
8535: cat > conftest.c << _LT_EOF
8536: int main() { return 0;}
8537: _LT_EOF
8538: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8539: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8540: _lt_result=$?
8541: if test -s conftest.err && $GREP force_load conftest.err; then
8542: cat conftest.err >&5
8543: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8544: lt_cv_ld_force_load=yes
8545: else
8546: cat conftest.err >&5
8547: fi
8548: rm -f conftest.err libconftest.a conftest conftest.c
8549: rm -rf conftest.dSYM
8550:
8551: fi
1.150 moko 8552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8553: $as_echo "$lt_cv_ld_force_load" >&6; }
1.128 moko 8554: case $host_os in
8555: rhapsody* | darwin1.[012])
8556: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8557: darwin1.*)
8558: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8559: darwin*) # darwin 5.x on
8560: # if running on 10.5 or later, the deployment target defaults
8561: # to the OS version, if on x86, and 10.4, the deployment
8562: # target defaults to 10.4. Don't you love it?
8563: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8564: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8565: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8566: 10.[012]*)
8567: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8568: 10.*)
8569: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8570: esac
8571: ;;
8572: esac
8573: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8574: _lt_dar_single_mod='$single_module'
8575: fi
8576: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8577: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8578: else
8579: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8580: fi
8581: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8582: _lt_dsymutil='~$DSYMUTIL $lib || :'
8583: else
8584: _lt_dsymutil=
8585: fi
8586: ;;
8587: esac
8588:
8589: ac_ext=c
8590: ac_cpp='$CPP $CPPFLAGS'
8591: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8592: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8593: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.150 moko 8594: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8595: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.128 moko 8596: # On Suns, sometimes $CPP names a directory.
8597: if test -n "$CPP" && test -d "$CPP"; then
8598: CPP=
8599: fi
8600: if test -z "$CPP"; then
1.150 moko 8601: if ${ac_cv_prog_CPP+:} false; then :
8602: $as_echo_n "(cached) " >&6
1.128 moko 8603: else
8604: # Double quotes because CPP needs to be expanded
8605: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8606: do
8607: ac_preproc_ok=false
8608: for ac_c_preproc_warn_flag in '' yes
8609: do
8610: # Use a header file that comes with gcc, so configuring glibc
8611: # with a fresh cross-compiler works.
8612: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8613: # <limits.h> exists even on freestanding compilers.
8614: # On the NeXT, cc -E runs the code through the compiler's parser,
8615: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8616: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8617: /* end confdefs.h. */
8618: #ifdef __STDC__
8619: # include <limits.h>
8620: #else
8621: # include <assert.h>
8622: #endif
8623: Syntax error
8624: _ACEOF
1.150 moko 8625: if ac_fn_c_try_cpp "$LINENO"; then :
8626:
1.128 moko 8627: else
8628: # Broken: fails on valid input.
8629: continue
8630: fi
1.150 moko 8631: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8632:
1.150 moko 8633: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8634: # can be detected and how.
1.150 moko 8635: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8636: /* end confdefs.h. */
8637: #include <ac_nonexistent.h>
8638: _ACEOF
1.150 moko 8639: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8640: # Broken: success on invalid input.
8641: continue
8642: else
8643: # Passes both tests.
8644: ac_preproc_ok=:
8645: break
8646: fi
1.150 moko 8647: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8648:
8649: done
8650: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8651: rm -f conftest.i conftest.err conftest.$ac_ext
8652: if $ac_preproc_ok; then :
1.128 moko 8653: break
8654: fi
8655:
8656: done
8657: ac_cv_prog_CPP=$CPP
8658:
8659: fi
8660: CPP=$ac_cv_prog_CPP
8661: else
8662: ac_cv_prog_CPP=$CPP
8663: fi
1.150 moko 8664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8665: $as_echo "$CPP" >&6; }
1.128 moko 8666: ac_preproc_ok=false
8667: for ac_c_preproc_warn_flag in '' yes
8668: do
8669: # Use a header file that comes with gcc, so configuring glibc
8670: # with a fresh cross-compiler works.
8671: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672: # <limits.h> exists even on freestanding compilers.
8673: # On the NeXT, cc -E runs the code through the compiler's parser,
8674: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8676: /* end confdefs.h. */
8677: #ifdef __STDC__
8678: # include <limits.h>
8679: #else
8680: # include <assert.h>
8681: #endif
8682: Syntax error
8683: _ACEOF
1.150 moko 8684: if ac_fn_c_try_cpp "$LINENO"; then :
8685:
1.128 moko 8686: else
8687: # Broken: fails on valid input.
8688: continue
8689: fi
1.150 moko 8690: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8691:
1.150 moko 8692: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8693: # can be detected and how.
1.150 moko 8694: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8695: /* end confdefs.h. */
8696: #include <ac_nonexistent.h>
8697: _ACEOF
1.150 moko 8698: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8699: # Broken: success on invalid input.
8700: continue
8701: else
8702: # Passes both tests.
8703: ac_preproc_ok=:
8704: break
8705: fi
1.150 moko 8706: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8707:
8708: done
8709: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8710: rm -f conftest.i conftest.err conftest.$ac_ext
8711: if $ac_preproc_ok; then :
8712:
1.128 moko 8713: else
1.150 moko 8714: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8715: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8716: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8717: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 8718: fi
8719:
8720: ac_ext=c
8721: ac_cpp='$CPP $CPPFLAGS'
8722: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8723: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8724: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8725:
8726:
1.150 moko 8727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8728: $as_echo_n "checking for ANSI C header files... " >&6; }
8729: if ${ac_cv_header_stdc+:} false; then :
8730: $as_echo_n "(cached) " >&6
1.128 moko 8731: else
1.150 moko 8732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8733: /* end confdefs.h. */
8734: #include <stdlib.h>
8735: #include <stdarg.h>
8736: #include <string.h>
8737: #include <float.h>
8738:
8739: int
8740: main ()
8741: {
8742:
8743: ;
8744: return 0;
8745: }
8746: _ACEOF
1.150 moko 8747: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 8748: ac_cv_header_stdc=yes
8749: else
1.150 moko 8750: ac_cv_header_stdc=no
1.128 moko 8751: fi
1.150 moko 8752: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 8753:
8754: if test $ac_cv_header_stdc = yes; then
8755: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.150 moko 8756: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8757: /* end confdefs.h. */
8758: #include <string.h>
8759:
8760: _ACEOF
8761: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8762: $EGREP "memchr" >/dev/null 2>&1; then :
8763:
1.128 moko 8764: else
8765: ac_cv_header_stdc=no
8766: fi
8767: rm -f conftest*
8768:
8769: fi
8770:
8771: if test $ac_cv_header_stdc = yes; then
8772: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.150 moko 8773: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8774: /* end confdefs.h. */
8775: #include <stdlib.h>
8776:
8777: _ACEOF
8778: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8779: $EGREP "free" >/dev/null 2>&1; then :
8780:
1.128 moko 8781: else
8782: ac_cv_header_stdc=no
8783: fi
8784: rm -f conftest*
8785:
8786: fi
8787:
8788: if test $ac_cv_header_stdc = yes; then
8789: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.150 moko 8790: if test "$cross_compiling" = yes; then :
1.128 moko 8791: :
8792: else
1.150 moko 8793: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8794: /* end confdefs.h. */
8795: #include <ctype.h>
1.150 moko 8796: #include <stdlib.h>
1.128 moko 8797: #if ((' ' & 0x0FF) == 0x020)
8798: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8799: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8800: #else
8801: # define ISLOWER(c) \
8802: (('a' <= (c) && (c) <= 'i') \
8803: || ('j' <= (c) && (c) <= 'r') \
8804: || ('s' <= (c) && (c) <= 'z'))
8805: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8806: #endif
8807:
8808: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8809: int
8810: main ()
8811: {
8812: int i;
8813: for (i = 0; i < 256; i++)
8814: if (XOR (islower (i), ISLOWER (i))
8815: || toupper (i) != TOUPPER (i))
1.150 moko 8816: return 2;
8817: return 0;
1.128 moko 8818: }
8819: _ACEOF
1.150 moko 8820: if ac_fn_c_try_run "$LINENO"; then :
8821:
1.128 moko 8822: else
1.150 moko 8823: ac_cv_header_stdc=no
1.128 moko 8824: fi
1.150 moko 8825: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8826: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 8827: fi
1.150 moko 8828:
1.128 moko 8829: fi
8830: fi
1.150 moko 8831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8832: $as_echo "$ac_cv_header_stdc" >&6; }
1.128 moko 8833: if test $ac_cv_header_stdc = yes; then
8834:
1.150 moko 8835: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 8836:
8837: fi
8838:
8839: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.150 moko 8840: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8841: inttypes.h stdint.h unistd.h
8842: do :
8843: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8844: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8845: "
8846: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8847: cat >>confdefs.h <<_ACEOF
8848: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8849: _ACEOF
1.128 moko 8850:
1.150 moko 8851: fi
1.128 moko 8852:
1.150 moko 8853: done
1.128 moko 8854:
8855:
1.150 moko 8856: for ac_header in dlfcn.h
8857: do :
8858: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8859: "
8860: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8861: cat >>confdefs.h <<_ACEOF
8862: #define HAVE_DLFCN_H 1
8863: _ACEOF
1.128 moko 8864:
1.150 moko 8865: fi
1.128 moko 8866:
1.150 moko 8867: done
1.128 moko 8868:
8869:
8870:
8871:
1.150 moko 8872: func_stripname_cnf ()
8873: {
8874: case ${2} in
8875: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8876: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8877: esac
8878: } # func_stripname_cnf
1.128 moko 8879:
8880:
8881:
8882:
8883:
8884: # Set options
8885: enable_dlopen=yes
8886: enable_win32_dll=yes
8887:
8888: case $host in
8889: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8890: if test -n "$ac_tool_prefix"; then
8891: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8892: set dummy ${ac_tool_prefix}as; ac_word=$2
1.150 moko 8893: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8894: $as_echo_n "checking for $ac_word... " >&6; }
8895: if ${ac_cv_prog_AS+:} false; then :
8896: $as_echo_n "(cached) " >&6
1.128 moko 8897: else
8898: if test -n "$AS"; then
8899: ac_cv_prog_AS="$AS" # Let the user override the test.
8900: else
8901: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902: for as_dir in $PATH
8903: do
8904: IFS=$as_save_IFS
8905: test -z "$as_dir" && as_dir=.
1.150 moko 8906: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8907: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8908: ac_cv_prog_AS="${ac_tool_prefix}as"
1.150 moko 8909: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8910: break 2
8911: fi
8912: done
1.150 moko 8913: done
8914: IFS=$as_save_IFS
1.128 moko 8915:
8916: fi
8917: fi
8918: AS=$ac_cv_prog_AS
8919: if test -n "$AS"; then
1.150 moko 8920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8921: $as_echo "$AS" >&6; }
1.128 moko 8922: else
1.150 moko 8923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924: $as_echo "no" >&6; }
1.128 moko 8925: fi
8926:
1.150 moko 8927:
1.128 moko 8928: fi
8929: if test -z "$ac_cv_prog_AS"; then
8930: ac_ct_AS=$AS
8931: # Extract the first word of "as", so it can be a program name with args.
8932: set dummy as; ac_word=$2
1.150 moko 8933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934: $as_echo_n "checking for $ac_word... " >&6; }
8935: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8936: $as_echo_n "(cached) " >&6
1.128 moko 8937: else
8938: if test -n "$ac_ct_AS"; then
8939: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8940: else
8941: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942: for as_dir in $PATH
8943: do
8944: IFS=$as_save_IFS
8945: test -z "$as_dir" && as_dir=.
1.150 moko 8946: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8947: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8948: ac_cv_prog_ac_ct_AS="as"
1.150 moko 8949: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8950: break 2
8951: fi
8952: done
1.150 moko 8953: done
8954: IFS=$as_save_IFS
1.128 moko 8955:
8956: fi
8957: fi
8958: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8959: if test -n "$ac_ct_AS"; then
1.150 moko 8960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8961: $as_echo "$ac_ct_AS" >&6; }
1.128 moko 8962: else
1.150 moko 8963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964: $as_echo "no" >&6; }
1.128 moko 8965: fi
8966:
1.150 moko 8967: if test "x$ac_ct_AS" = x; then
8968: AS="false"
8969: else
8970: case $cross_compiling:$ac_tool_warned in
8971: yes:)
8972: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8973: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8974: ac_tool_warned=yes ;;
8975: esac
8976: AS=$ac_ct_AS
8977: fi
1.128 moko 8978: else
8979: AS="$ac_cv_prog_AS"
8980: fi
8981:
8982: if test -n "$ac_tool_prefix"; then
8983: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8984: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 8985: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986: $as_echo_n "checking for $ac_word... " >&6; }
8987: if ${ac_cv_prog_DLLTOOL+:} false; then :
8988: $as_echo_n "(cached) " >&6
1.128 moko 8989: else
8990: if test -n "$DLLTOOL"; then
8991: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8992: else
8993: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994: for as_dir in $PATH
8995: do
8996: IFS=$as_save_IFS
8997: test -z "$as_dir" && as_dir=.
1.150 moko 8998: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8999: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9000: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 9001: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9002: break 2
9003: fi
9004: done
1.150 moko 9005: done
9006: IFS=$as_save_IFS
1.128 moko 9007:
9008: fi
9009: fi
9010: DLLTOOL=$ac_cv_prog_DLLTOOL
9011: if test -n "$DLLTOOL"; then
1.150 moko 9012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9013: $as_echo "$DLLTOOL" >&6; }
1.128 moko 9014: else
1.150 moko 9015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016: $as_echo "no" >&6; }
1.128 moko 9017: fi
9018:
1.150 moko 9019:
1.128 moko 9020: fi
9021: if test -z "$ac_cv_prog_DLLTOOL"; then
9022: ac_ct_DLLTOOL=$DLLTOOL
9023: # Extract the first word of "dlltool", so it can be a program name with args.
9024: set dummy dlltool; ac_word=$2
1.150 moko 9025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026: $as_echo_n "checking for $ac_word... " >&6; }
9027: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9028: $as_echo_n "(cached) " >&6
1.128 moko 9029: else
9030: if test -n "$ac_ct_DLLTOOL"; then
9031: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9032: else
9033: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034: for as_dir in $PATH
9035: do
9036: IFS=$as_save_IFS
9037: test -z "$as_dir" && as_dir=.
1.150 moko 9038: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9039: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9040: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 9041: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9042: break 2
9043: fi
9044: done
1.150 moko 9045: done
9046: IFS=$as_save_IFS
1.128 moko 9047:
9048: fi
9049: fi
9050: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9051: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 9052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9053: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 9054: else
1.150 moko 9055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056: $as_echo "no" >&6; }
1.128 moko 9057: fi
9058:
1.150 moko 9059: if test "x$ac_ct_DLLTOOL" = x; then
9060: DLLTOOL="false"
9061: else
9062: case $cross_compiling:$ac_tool_warned in
9063: yes:)
9064: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9065: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9066: ac_tool_warned=yes ;;
9067: esac
9068: DLLTOOL=$ac_ct_DLLTOOL
9069: fi
1.128 moko 9070: else
9071: DLLTOOL="$ac_cv_prog_DLLTOOL"
9072: fi
9073:
9074: if test -n "$ac_tool_prefix"; then
9075: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9076: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 9077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078: $as_echo_n "checking for $ac_word... " >&6; }
9079: if ${ac_cv_prog_OBJDUMP+:} false; then :
9080: $as_echo_n "(cached) " >&6
1.128 moko 9081: else
9082: if test -n "$OBJDUMP"; then
9083: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9084: else
9085: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086: for as_dir in $PATH
9087: do
9088: IFS=$as_save_IFS
9089: test -z "$as_dir" && as_dir=.
1.150 moko 9090: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9091: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9092: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 9093: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9094: break 2
9095: fi
9096: done
1.150 moko 9097: done
9098: IFS=$as_save_IFS
1.128 moko 9099:
9100: fi
9101: fi
9102: OBJDUMP=$ac_cv_prog_OBJDUMP
9103: if test -n "$OBJDUMP"; then
1.150 moko 9104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9105: $as_echo "$OBJDUMP" >&6; }
1.128 moko 9106: else
1.150 moko 9107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108: $as_echo "no" >&6; }
1.128 moko 9109: fi
9110:
1.150 moko 9111:
1.128 moko 9112: fi
9113: if test -z "$ac_cv_prog_OBJDUMP"; then
9114: ac_ct_OBJDUMP=$OBJDUMP
9115: # Extract the first word of "objdump", so it can be a program name with args.
9116: set dummy objdump; ac_word=$2
1.150 moko 9117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118: $as_echo_n "checking for $ac_word... " >&6; }
9119: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9120: $as_echo_n "(cached) " >&6
1.128 moko 9121: else
9122: if test -n "$ac_ct_OBJDUMP"; then
9123: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9124: else
9125: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126: for as_dir in $PATH
9127: do
9128: IFS=$as_save_IFS
9129: test -z "$as_dir" && as_dir=.
1.150 moko 9130: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9131: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9132: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 9133: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9134: break 2
9135: fi
9136: done
1.150 moko 9137: done
9138: IFS=$as_save_IFS
1.128 moko 9139:
9140: fi
9141: fi
9142: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9143: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 9144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9145: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 9146: else
1.150 moko 9147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148: $as_echo "no" >&6; }
1.128 moko 9149: fi
9150:
1.150 moko 9151: if test "x$ac_ct_OBJDUMP" = x; then
9152: OBJDUMP="false"
9153: else
9154: case $cross_compiling:$ac_tool_warned in
9155: yes:)
9156: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9157: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9158: ac_tool_warned=yes ;;
9159: esac
9160: OBJDUMP=$ac_ct_OBJDUMP
9161: fi
1.128 moko 9162: else
9163: OBJDUMP="$ac_cv_prog_OBJDUMP"
9164: fi
9165:
9166: ;;
9167: esac
9168:
9169: test -z "$AS" && AS=as
9170:
9171:
9172:
9173:
9174:
9175: test -z "$DLLTOOL" && DLLTOOL=dlltool
9176:
9177:
9178:
9179:
9180:
9181: test -z "$OBJDUMP" && OBJDUMP=objdump
9182:
9183:
9184:
9185:
9186:
1.150 moko 9187: # Check whether --with-pic was given.
9188: if test "${with_pic+set}" = set; then :
9189: withval=$with_pic; lt_p=${PACKAGE-default}
1.145 moko 9190: case $withval in
9191: yes|no) pic_mode=$withval ;;
9192: *)
9193: pic_mode=default
9194: # Look at the argument we got. We use all the common list separators.
9195: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9196: for lt_pkg in $withval; do
9197: IFS="$lt_save_ifs"
9198: if test "X$lt_pkg" = "X$lt_p"; then
9199: pic_mode=yes
9200: fi
9201: done
9202: IFS="$lt_save_ifs"
9203: ;;
9204: esac
9205: else
9206: pic_mode=default
1.150 moko 9207: fi
9208:
1.145 moko 9209:
9210: test -z "$pic_mode" && pic_mode=no
9211:
9212:
9213:
9214:
9215:
9216:
1.128 moko 9217:
9218:
9219:
9220:
1.150 moko 9221: # Check whether --enable-shared was given.
9222: if test "${enable_shared+set}" = set; then :
9223: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 9224: case $enableval in
9225: yes) enable_shared=yes ;;
9226: no) enable_shared=no ;;
9227: *)
9228: enable_shared=no
9229: # Look at the argument we got. We use all the common list separators.
9230: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9231: for pkg in $enableval; do
9232: IFS="$lt_save_ifs"
9233: if test "X$pkg" = "X$p"; then
9234: enable_shared=yes
9235: fi
9236: done
9237: IFS="$lt_save_ifs"
9238: ;;
9239: esac
9240: else
9241: enable_shared=yes
1.150 moko 9242: fi
9243:
1.128 moko 9244:
9245:
9246:
9247:
9248:
9249:
9250:
9251:
1.150 moko 9252: # Check whether --enable-static was given.
9253: if test "${enable_static+set}" = set; then :
9254: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 9255: case $enableval in
9256: yes) enable_static=yes ;;
9257: no) enable_static=no ;;
9258: *)
9259: enable_static=no
9260: # Look at the argument we got. We use all the common list separators.
9261: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9262: for pkg in $enableval; do
9263: IFS="$lt_save_ifs"
9264: if test "X$pkg" = "X$p"; then
9265: enable_static=yes
9266: fi
9267: done
9268: IFS="$lt_save_ifs"
9269: ;;
9270: esac
9271: else
9272: enable_static=yes
1.150 moko 9273: fi
9274:
1.138 moko 9275:
9276:
9277:
9278:
9279:
9280:
9281:
1.128 moko 9282:
9283:
1.150 moko 9284: # Check whether --enable-fast-install was given.
9285: if test "${enable_fast_install+set}" = set; then :
9286: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 9287: case $enableval in
9288: yes) enable_fast_install=yes ;;
9289: no) enable_fast_install=no ;;
9290: *)
9291: enable_fast_install=no
9292: # Look at the argument we got. We use all the common list separators.
9293: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9294: for pkg in $enableval; do
9295: IFS="$lt_save_ifs"
9296: if test "X$pkg" = "X$p"; then
9297: enable_fast_install=yes
9298: fi
9299: done
9300: IFS="$lt_save_ifs"
9301: ;;
9302: esac
9303: else
9304: enable_fast_install=yes
1.150 moko 9305: fi
9306:
1.128 moko 9307:
9308:
9309:
9310:
9311:
9312:
9313:
9314:
9315:
9316:
9317: # This can be used to rebuild libtool when needed
9318: LIBTOOL_DEPS="$ltmain"
9319:
9320: # Always use our own libtool.
9321: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9322:
9323:
9324:
9325:
9326:
9327:
9328:
9329:
9330:
9331:
9332:
9333:
9334:
9335:
9336:
9337:
9338:
9339:
9340:
9341:
9342:
9343:
9344:
9345:
9346:
9347:
9348:
9349:
9350:
9351:
9352: test -z "$LN_S" && LN_S="ln -s"
9353:
9354:
9355:
9356:
9357:
9358:
9359:
9360:
9361:
9362:
9363:
9364:
9365:
9366:
9367: if test -n "${ZSH_VERSION+set}" ; then
9368: setopt NO_GLOB_SUBST
9369: fi
9370:
1.150 moko 9371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9372: $as_echo_n "checking for objdir... " >&6; }
9373: if ${lt_cv_objdir+:} false; then :
9374: $as_echo_n "(cached) " >&6
1.128 moko 9375: else
9376: rm -f .libs 2>/dev/null
9377: mkdir .libs 2>/dev/null
9378: if test -d .libs; then
9379: lt_cv_objdir=.libs
9380: else
9381: # MS-DOS does not allow filenames that begin with a dot.
9382: lt_cv_objdir=_libs
9383: fi
9384: rmdir .libs 2>/dev/null
9385: fi
1.150 moko 9386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9387: $as_echo "$lt_cv_objdir" >&6; }
1.128 moko 9388: objdir=$lt_cv_objdir
9389:
9390:
9391:
9392:
9393:
9394: cat >>confdefs.h <<_ACEOF
9395: #define LT_OBJDIR "$lt_cv_objdir/"
9396: _ACEOF
9397:
9398:
9399:
9400:
9401: case $host_os in
9402: aix3*)
9403: # AIX sometimes has problems with the GCC collect2 program. For some
9404: # reason, if we set the COLLECT_NAMES environment variable, the problems
9405: # vanish in a puff of smoke.
9406: if test "X${COLLECT_NAMES+set}" != Xset; then
9407: COLLECT_NAMES=
9408: export COLLECT_NAMES
9409: fi
9410: ;;
9411: esac
9412:
9413: # Global variables:
9414: ofile=libtool
9415: can_build_shared=yes
9416:
9417: # All known linkers require a `.a' archive for static linking (except MSVC,
9418: # which needs '.lib').
9419: libext=a
9420:
9421: with_gnu_ld="$lt_cv_prog_gnu_ld"
9422:
9423: old_CC="$CC"
9424: old_CFLAGS="$CFLAGS"
9425:
9426: # Set sane defaults for various variables
9427: test -z "$CC" && CC=cc
9428: test -z "$LTCC" && LTCC=$CC
9429: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9430: test -z "$LD" && LD=ld
9431: test -z "$ac_objext" && ac_objext=o
9432:
9433: for cc_temp in $compiler""; do
9434: case $cc_temp in
9435: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9436: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9437: \-*) ;;
9438: *) break;;
9439: esac
9440: done
9441: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9442:
9443:
9444: # Only perform the check for file, if the check method requires it
9445: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9446: case $deplibs_check_method in
9447: file_magic*)
9448: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.150 moko 9449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9450: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9451: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9452: $as_echo_n "(cached) " >&6
1.128 moko 9453: else
9454: case $MAGIC_CMD in
9455: [\\/*] | ?:[\\/]*)
9456: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9457: ;;
9458: *)
9459: lt_save_MAGIC_CMD="$MAGIC_CMD"
9460: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9461: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9462: for ac_dir in $ac_dummy; do
9463: IFS="$lt_save_ifs"
9464: test -z "$ac_dir" && ac_dir=.
9465: if test -f $ac_dir/${ac_tool_prefix}file; then
9466: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9467: if test -n "$file_magic_test_file"; then
9468: case $deplibs_check_method in
9469: "file_magic "*)
9470: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9471: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9472: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9473: $EGREP "$file_magic_regex" > /dev/null; then
9474: :
9475: else
9476: cat <<_LT_EOF 1>&2
9477:
9478: *** Warning: the command libtool uses to detect shared libraries,
9479: *** $file_magic_cmd, produces output that libtool cannot recognize.
9480: *** The result is that libtool may fail to recognize shared libraries
9481: *** as such. This will affect the creation of libtool libraries that
9482: *** depend on shared libraries, but programs linked with such libtool
9483: *** libraries will work regardless of this problem. Nevertheless, you
9484: *** may want to report the problem to your system manager and/or to
9485: *** bug-libtool@gnu.org
9486:
9487: _LT_EOF
9488: fi ;;
9489: esac
9490: fi
9491: break
9492: fi
9493: done
9494: IFS="$lt_save_ifs"
9495: MAGIC_CMD="$lt_save_MAGIC_CMD"
9496: ;;
9497: esac
9498: fi
9499:
9500: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9501: if test -n "$MAGIC_CMD"; then
1.150 moko 9502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9503: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9504: else
1.150 moko 9505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9506: $as_echo "no" >&6; }
1.128 moko 9507: fi
9508:
9509:
9510:
9511:
9512:
9513: if test -z "$lt_cv_path_MAGIC_CMD"; then
9514: if test -n "$ac_tool_prefix"; then
1.150 moko 9515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9516: $as_echo_n "checking for file... " >&6; }
9517: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9518: $as_echo_n "(cached) " >&6
1.128 moko 9519: else
9520: case $MAGIC_CMD in
9521: [\\/*] | ?:[\\/]*)
9522: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9523: ;;
9524: *)
9525: lt_save_MAGIC_CMD="$MAGIC_CMD"
9526: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9527: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9528: for ac_dir in $ac_dummy; do
9529: IFS="$lt_save_ifs"
9530: test -z "$ac_dir" && ac_dir=.
9531: if test -f $ac_dir/file; then
9532: lt_cv_path_MAGIC_CMD="$ac_dir/file"
9533: if test -n "$file_magic_test_file"; then
9534: case $deplibs_check_method in
9535: "file_magic "*)
9536: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9537: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9538: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9539: $EGREP "$file_magic_regex" > /dev/null; then
9540: :
9541: else
9542: cat <<_LT_EOF 1>&2
9543:
9544: *** Warning: the command libtool uses to detect shared libraries,
9545: *** $file_magic_cmd, produces output that libtool cannot recognize.
9546: *** The result is that libtool may fail to recognize shared libraries
9547: *** as such. This will affect the creation of libtool libraries that
9548: *** depend on shared libraries, but programs linked with such libtool
9549: *** libraries will work regardless of this problem. Nevertheless, you
9550: *** may want to report the problem to your system manager and/or to
9551: *** bug-libtool@gnu.org
9552:
9553: _LT_EOF
9554: fi ;;
9555: esac
9556: fi
9557: break
9558: fi
9559: done
9560: IFS="$lt_save_ifs"
9561: MAGIC_CMD="$lt_save_MAGIC_CMD"
9562: ;;
9563: esac
9564: fi
9565:
9566: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9567: if test -n "$MAGIC_CMD"; then
1.150 moko 9568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9569: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9570: else
1.150 moko 9571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572: $as_echo "no" >&6; }
1.128 moko 9573: fi
9574:
9575:
9576: else
9577: MAGIC_CMD=:
9578: fi
9579: fi
9580:
9581: fi
9582: ;;
9583: esac
9584:
9585: # Use C for the default configuration in the libtool script
9586:
9587: lt_save_CC="$CC"
9588: ac_ext=c
9589: ac_cpp='$CPP $CPPFLAGS'
9590: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9591: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9592: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9593:
9594:
9595: # Source file extension for C test sources.
9596: ac_ext=c
9597:
9598: # Object file extension for compiled C test sources.
9599: objext=o
9600: objext=$objext
9601:
9602: # Code to be used in simple compile tests
9603: lt_simple_compile_test_code="int some_variable = 0;"
9604:
9605: # Code to be used in simple link tests
9606: lt_simple_link_test_code='int main(){return(0);}'
9607:
9608:
9609:
9610:
9611:
9612:
9613:
9614: # If no C compiler was specified, use CC.
9615: LTCC=${LTCC-"$CC"}
9616:
9617: # If no C compiler flags were specified, use CFLAGS.
9618: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9619:
9620: # Allow CC to be a program name with arguments.
9621: compiler=$CC
9622:
9623: # Save the default compiler, since it gets overwritten when the other
9624: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9625: compiler_DEFAULT=$CC
9626:
9627: # save warnings/boilerplate of simple test code
9628: ac_outfile=conftest.$ac_objext
9629: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9630: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9631: _lt_compiler_boilerplate=`cat conftest.err`
9632: $RM conftest*
9633:
9634: ac_outfile=conftest.$ac_objext
9635: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9636: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9637: _lt_linker_boilerplate=`cat conftest.err`
9638: $RM -r conftest*
9639:
9640:
9641: ## CAVEAT EMPTOR:
9642: ## There is no encapsulation within the following macros, do not change
9643: ## the running order or otherwise move them around unless you know exactly
9644: ## what you are doing...
9645: if test -n "$compiler"; then
9646:
9647: lt_prog_compiler_no_builtin_flag=
9648:
9649: if test "$GCC" = yes; then
9650: case $cc_basename in
9651: nvcc*)
9652: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9653: *)
9654: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9655: esac
9656:
1.150 moko 9657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9658: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9659: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9660: $as_echo_n "(cached) " >&6
1.128 moko 9661: else
9662: lt_cv_prog_compiler_rtti_exceptions=no
9663: ac_outfile=conftest.$ac_objext
9664: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9665: lt_compiler_flag="-fno-rtti -fno-exceptions"
9666: # Insert the option either (1) after the last *FLAGS variable, or
9667: # (2) before a word containing "conftest.", or (3) at the end.
9668: # Note that $ac_compile itself does not contain backslashes and begins
9669: # with a dollar sign (not a hyphen), so the echo should work correctly.
9670: # The option is referenced via a variable to avoid confusing sed.
9671: lt_compile=`echo "$ac_compile" | $SED \
9672: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9673: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9674: -e 's:$: $lt_compiler_flag:'`
9675: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9676: (eval "$lt_compile" 2>conftest.err)
9677: ac_status=$?
9678: cat conftest.err >&5
9679: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680: if (exit $ac_status) && test -s "$ac_outfile"; then
9681: # The compiler can only warn and ignore the option if not recognized
9682: # So say no if there are warnings other than the usual output.
9683: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9684: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9685: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9686: lt_cv_prog_compiler_rtti_exceptions=yes
9687: fi
9688: fi
9689: $RM conftest*
9690:
9691: fi
1.150 moko 9692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9693: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 9694:
9695: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9696: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9697: else
9698: :
9699: fi
9700:
9701: fi
9702:
9703:
9704:
9705:
9706:
9707:
9708: lt_prog_compiler_wl=
9709: lt_prog_compiler_pic=
9710: lt_prog_compiler_static=
9711:
9712:
9713: if test "$GCC" = yes; then
9714: lt_prog_compiler_wl='-Wl,'
9715: lt_prog_compiler_static='-static'
9716:
9717: case $host_os in
9718: aix*)
9719: # All AIX code is PIC.
9720: if test "$host_cpu" = ia64; then
9721: # AIX 5 now supports IA64 processor
9722: lt_prog_compiler_static='-Bstatic'
9723: fi
9724: ;;
9725:
9726: amigaos*)
9727: case $host_cpu in
9728: powerpc)
9729: # see comment about AmigaOS4 .so support
9730: lt_prog_compiler_pic='-fPIC'
9731: ;;
9732: m68k)
9733: # FIXME: we need at least 68020 code to build shared libraries, but
9734: # adding the `-m68020' flag to GCC prevents building anything better,
9735: # like `-m68040'.
9736: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9737: ;;
9738: esac
9739: ;;
9740:
9741: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9742: # PIC is the default for these OSes.
9743: ;;
9744:
9745: mingw* | cygwin* | pw32* | os2* | cegcc*)
9746: # This hack is so that the source file can tell whether it is being
9747: # built for inclusion in a dll (and should export symbols for example).
9748: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9749: # (--disable-auto-import) libraries
9750: lt_prog_compiler_pic='-DDLL_EXPORT'
9751: ;;
9752:
9753: darwin* | rhapsody*)
9754: # PIC is the default on this platform
9755: # Common symbols not allowed in MH_DYLIB files
9756: lt_prog_compiler_pic='-fno-common'
9757: ;;
9758:
9759: haiku*)
9760: # PIC is the default for Haiku.
9761: # The "-static" flag exists, but is broken.
9762: lt_prog_compiler_static=
9763: ;;
9764:
9765: hpux*)
9766: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9767: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9768: # sets the default TLS model and affects inlining.
9769: case $host_cpu in
9770: hppa*64*)
9771: # +Z the default
9772: ;;
9773: *)
9774: lt_prog_compiler_pic='-fPIC'
9775: ;;
9776: esac
9777: ;;
9778:
9779: interix[3-9]*)
9780: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9781: # Instead, we relocate shared libraries at runtime.
9782: ;;
9783:
9784: msdosdjgpp*)
9785: # Just because we use GCC doesn't mean we suddenly get shared libraries
9786: # on systems that don't support them.
9787: lt_prog_compiler_can_build_shared=no
9788: enable_shared=no
9789: ;;
9790:
9791: *nto* | *qnx*)
9792: # QNX uses GNU C++, but need to define -shared option too, otherwise
9793: # it will coredump.
9794: lt_prog_compiler_pic='-fPIC -shared'
9795: ;;
9796:
9797: sysv4*MP*)
9798: if test -d /usr/nec; then
9799: lt_prog_compiler_pic=-Kconform_pic
9800: fi
9801: ;;
9802:
9803: *)
9804: lt_prog_compiler_pic='-fPIC'
9805: ;;
9806: esac
9807:
9808: case $cc_basename in
9809: nvcc*) # Cuda Compiler Driver 2.2
9810: lt_prog_compiler_wl='-Xlinker '
9811: if test -n "$lt_prog_compiler_pic"; then
9812: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9813: fi
9814: ;;
9815: esac
9816: else
9817: # PORTME Check for flag to pass linker flags through the system compiler.
9818: case $host_os in
9819: aix*)
9820: lt_prog_compiler_wl='-Wl,'
9821: if test "$host_cpu" = ia64; then
9822: # AIX 5 now supports IA64 processor
9823: lt_prog_compiler_static='-Bstatic'
9824: else
9825: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9826: fi
9827: ;;
9828:
9829: mingw* | cygwin* | pw32* | os2* | cegcc*)
9830: # This hack is so that the source file can tell whether it is being
9831: # built for inclusion in a dll (and should export symbols for example).
9832: lt_prog_compiler_pic='-DDLL_EXPORT'
9833: ;;
9834:
9835: hpux9* | hpux10* | hpux11*)
9836: lt_prog_compiler_wl='-Wl,'
9837: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9838: # not for PA HP-UX.
9839: case $host_cpu in
9840: hppa*64*|ia64*)
9841: # +Z the default
9842: ;;
9843: *)
9844: lt_prog_compiler_pic='+Z'
9845: ;;
9846: esac
9847: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9848: lt_prog_compiler_static='${wl}-a ${wl}archive'
9849: ;;
9850:
9851: irix5* | irix6* | nonstopux*)
9852: lt_prog_compiler_wl='-Wl,'
9853: # PIC (with -KPIC) is the default.
9854: lt_prog_compiler_static='-non_shared'
9855: ;;
9856:
9857: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9858: case $cc_basename in
9859: # old Intel for x86_64 which still supported -KPIC.
9860: ecc*)
9861: lt_prog_compiler_wl='-Wl,'
9862: lt_prog_compiler_pic='-KPIC'
9863: lt_prog_compiler_static='-static'
9864: ;;
9865: # icc used to be incompatible with GCC.
9866: # ICC 10 doesn't accept -KPIC any more.
9867: icc* | ifort*)
9868: lt_prog_compiler_wl='-Wl,'
9869: lt_prog_compiler_pic='-fPIC'
9870: lt_prog_compiler_static='-static'
9871: ;;
9872: # Lahey Fortran 8.1.
9873: lf95*)
9874: lt_prog_compiler_wl='-Wl,'
9875: lt_prog_compiler_pic='--shared'
9876: lt_prog_compiler_static='--static'
9877: ;;
9878: nagfor*)
9879: # NAG Fortran compiler
9880: lt_prog_compiler_wl='-Wl,-Wl,,'
9881: lt_prog_compiler_pic='-PIC'
9882: lt_prog_compiler_static='-Bstatic'
9883: ;;
9884: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9885: # Portland Group compilers (*not* the Pentium gcc compiler,
9886: # which looks to be a dead project)
9887: lt_prog_compiler_wl='-Wl,'
9888: lt_prog_compiler_pic='-fpic'
9889: lt_prog_compiler_static='-Bstatic'
9890: ;;
9891: ccc*)
9892: lt_prog_compiler_wl='-Wl,'
9893: # All Alpha code is PIC.
9894: lt_prog_compiler_static='-non_shared'
9895: ;;
9896: xl* | bgxl* | bgf* | mpixl*)
9897: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9898: lt_prog_compiler_wl='-Wl,'
9899: lt_prog_compiler_pic='-qpic'
9900: lt_prog_compiler_static='-qstaticlink'
9901: ;;
9902: *)
9903: case `$CC -V 2>&1 | sed 5q` in
9904: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9905: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9906: lt_prog_compiler_pic='-KPIC'
9907: lt_prog_compiler_static='-Bstatic'
9908: lt_prog_compiler_wl=''
9909: ;;
9910: *Sun\ F* | *Sun*Fortran*)
9911: lt_prog_compiler_pic='-KPIC'
9912: lt_prog_compiler_static='-Bstatic'
9913: lt_prog_compiler_wl='-Qoption ld '
9914: ;;
9915: *Sun\ C*)
9916: # Sun C 5.9
9917: lt_prog_compiler_pic='-KPIC'
9918: lt_prog_compiler_static='-Bstatic'
9919: lt_prog_compiler_wl='-Wl,'
9920: ;;
9921: *Intel*\ [CF]*Compiler*)
9922: lt_prog_compiler_wl='-Wl,'
9923: lt_prog_compiler_pic='-fPIC'
9924: lt_prog_compiler_static='-static'
9925: ;;
9926: *Portland\ Group*)
9927: lt_prog_compiler_wl='-Wl,'
9928: lt_prog_compiler_pic='-fpic'
9929: lt_prog_compiler_static='-Bstatic'
9930: ;;
9931: esac
9932: ;;
9933: esac
9934: ;;
9935:
9936: newsos6)
9937: lt_prog_compiler_pic='-KPIC'
9938: lt_prog_compiler_static='-Bstatic'
9939: ;;
9940:
9941: *nto* | *qnx*)
9942: # QNX uses GNU C++, but need to define -shared option too, otherwise
9943: # it will coredump.
9944: lt_prog_compiler_pic='-fPIC -shared'
9945: ;;
9946:
9947: osf3* | osf4* | osf5*)
9948: lt_prog_compiler_wl='-Wl,'
9949: # All OSF/1 code is PIC.
9950: lt_prog_compiler_static='-non_shared'
9951: ;;
9952:
9953: rdos*)
9954: lt_prog_compiler_static='-non_shared'
9955: ;;
9956:
9957: solaris*)
9958: lt_prog_compiler_pic='-KPIC'
9959: lt_prog_compiler_static='-Bstatic'
9960: case $cc_basename in
9961: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9962: lt_prog_compiler_wl='-Qoption ld ';;
9963: *)
9964: lt_prog_compiler_wl='-Wl,';;
9965: esac
9966: ;;
9967:
9968: sunos4*)
9969: lt_prog_compiler_wl='-Qoption ld '
9970: lt_prog_compiler_pic='-PIC'
9971: lt_prog_compiler_static='-Bstatic'
9972: ;;
9973:
9974: sysv4 | sysv4.2uw2* | sysv4.3*)
9975: lt_prog_compiler_wl='-Wl,'
9976: lt_prog_compiler_pic='-KPIC'
9977: lt_prog_compiler_static='-Bstatic'
9978: ;;
9979:
9980: sysv4*MP*)
9981: if test -d /usr/nec ;then
9982: lt_prog_compiler_pic='-Kconform_pic'
9983: lt_prog_compiler_static='-Bstatic'
9984: fi
9985: ;;
9986:
9987: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9988: lt_prog_compiler_wl='-Wl,'
9989: lt_prog_compiler_pic='-KPIC'
9990: lt_prog_compiler_static='-Bstatic'
9991: ;;
9992:
9993: unicos*)
9994: lt_prog_compiler_wl='-Wl,'
9995: lt_prog_compiler_can_build_shared=no
9996: ;;
9997:
9998: uts4*)
9999: lt_prog_compiler_pic='-pic'
10000: lt_prog_compiler_static='-Bstatic'
10001: ;;
10002:
10003: *)
10004: lt_prog_compiler_can_build_shared=no
10005: ;;
10006: esac
10007: fi
10008:
10009: case $host_os in
10010: # For platforms which do not support PIC, -DPIC is meaningless:
10011: *djgpp*)
10012: lt_prog_compiler_pic=
10013: ;;
10014: *)
10015: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10016: ;;
10017: esac
10018:
1.150 moko 10019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10020: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10021: if ${lt_cv_prog_compiler_pic+:} false; then :
10022: $as_echo_n "(cached) " >&6
1.128 moko 10023: else
10024: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10025: fi
1.150 moko 10026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10027: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 10028: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10029:
10030: #
10031: # Check to make sure the PIC flag actually works.
10032: #
10033: if test -n "$lt_prog_compiler_pic"; then
1.150 moko 10034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10035: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10036: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10037: $as_echo_n "(cached) " >&6
1.128 moko 10038: else
10039: lt_cv_prog_compiler_pic_works=no
10040: ac_outfile=conftest.$ac_objext
10041: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10042: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10043: # Insert the option either (1) after the last *FLAGS variable, or
10044: # (2) before a word containing "conftest.", or (3) at the end.
10045: # Note that $ac_compile itself does not contain backslashes and begins
10046: # with a dollar sign (not a hyphen), so the echo should work correctly.
10047: # The option is referenced via a variable to avoid confusing sed.
10048: lt_compile=`echo "$ac_compile" | $SED \
10049: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10050: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10051: -e 's:$: $lt_compiler_flag:'`
10052: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10053: (eval "$lt_compile" 2>conftest.err)
10054: ac_status=$?
10055: cat conftest.err >&5
10056: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057: if (exit $ac_status) && test -s "$ac_outfile"; then
10058: # The compiler can only warn and ignore the option if not recognized
10059: # So say no if there are warnings other than the usual output.
10060: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10061: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10062: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10063: lt_cv_prog_compiler_pic_works=yes
10064: fi
10065: fi
10066: $RM conftest*
10067:
10068: fi
1.150 moko 10069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10070: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 10071:
10072: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10073: case $lt_prog_compiler_pic in
10074: "" | " "*) ;;
10075: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10076: esac
10077: else
10078: lt_prog_compiler_pic=
10079: lt_prog_compiler_can_build_shared=no
10080: fi
10081:
10082: fi
10083:
10084:
10085:
10086:
10087:
10088:
10089:
10090:
10091:
10092:
10093:
10094: #
10095: # Check to make sure the static flag actually works.
10096: #
10097: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.150 moko 10098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10099: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10100: if ${lt_cv_prog_compiler_static_works+:} false; then :
10101: $as_echo_n "(cached) " >&6
1.128 moko 10102: else
10103: lt_cv_prog_compiler_static_works=no
10104: save_LDFLAGS="$LDFLAGS"
10105: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10106: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10107: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10108: # The linker can only warn and ignore the option if not recognized
10109: # So say no if there are warnings
10110: if test -s conftest.err; then
10111: # Append any errors to the config.log.
10112: cat conftest.err 1>&5
10113: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10114: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10115: if diff conftest.exp conftest.er2 >/dev/null; then
10116: lt_cv_prog_compiler_static_works=yes
10117: fi
10118: else
10119: lt_cv_prog_compiler_static_works=yes
10120: fi
10121: fi
10122: $RM -r conftest*
10123: LDFLAGS="$save_LDFLAGS"
10124:
10125: fi
1.150 moko 10126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10127: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 10128:
10129: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10130: :
10131: else
10132: lt_prog_compiler_static=
10133: fi
10134:
10135:
10136:
10137:
10138:
10139:
10140:
1.150 moko 10141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10142: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10143: if ${lt_cv_prog_compiler_c_o+:} false; then :
10144: $as_echo_n "(cached) " >&6
1.128 moko 10145: else
10146: lt_cv_prog_compiler_c_o=no
10147: $RM -r conftest 2>/dev/null
10148: mkdir conftest
10149: cd conftest
10150: mkdir out
10151: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10152:
10153: lt_compiler_flag="-o out/conftest2.$ac_objext"
10154: # Insert the option either (1) after the last *FLAGS variable, or
10155: # (2) before a word containing "conftest.", or (3) at the end.
10156: # Note that $ac_compile itself does not contain backslashes and begins
10157: # with a dollar sign (not a hyphen), so the echo should work correctly.
10158: lt_compile=`echo "$ac_compile" | $SED \
10159: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10160: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10161: -e 's:$: $lt_compiler_flag:'`
10162: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10163: (eval "$lt_compile" 2>out/conftest.err)
10164: ac_status=$?
10165: cat out/conftest.err >&5
10166: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10168: then
10169: # The compiler can only warn and ignore the option if not recognized
10170: # So say no if there are warnings
10171: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10172: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10173: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10174: lt_cv_prog_compiler_c_o=yes
10175: fi
10176: fi
10177: chmod u+w . 2>&5
10178: $RM conftest*
10179: # SGI C++ compiler will create directory out/ii_files/ for
10180: # template instantiation
10181: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10182: $RM out/* && rmdir out
10183: cd ..
10184: $RM -r conftest
10185: $RM conftest*
10186:
10187: fi
1.150 moko 10188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10189: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10190:
10191:
10192:
10193:
10194:
10195:
1.150 moko 10196: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10197: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10198: if ${lt_cv_prog_compiler_c_o+:} false; then :
10199: $as_echo_n "(cached) " >&6
1.128 moko 10200: else
10201: lt_cv_prog_compiler_c_o=no
10202: $RM -r conftest 2>/dev/null
10203: mkdir conftest
10204: cd conftest
10205: mkdir out
10206: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10207:
10208: lt_compiler_flag="-o out/conftest2.$ac_objext"
10209: # Insert the option either (1) after the last *FLAGS variable, or
10210: # (2) before a word containing "conftest.", or (3) at the end.
10211: # Note that $ac_compile itself does not contain backslashes and begins
10212: # with a dollar sign (not a hyphen), so the echo should work correctly.
10213: lt_compile=`echo "$ac_compile" | $SED \
10214: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10215: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10216: -e 's:$: $lt_compiler_flag:'`
10217: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10218: (eval "$lt_compile" 2>out/conftest.err)
10219: ac_status=$?
10220: cat out/conftest.err >&5
10221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10223: then
10224: # The compiler can only warn and ignore the option if not recognized
10225: # So say no if there are warnings
10226: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10227: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10228: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10229: lt_cv_prog_compiler_c_o=yes
10230: fi
10231: fi
10232: chmod u+w . 2>&5
10233: $RM conftest*
10234: # SGI C++ compiler will create directory out/ii_files/ for
10235: # template instantiation
10236: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10237: $RM out/* && rmdir out
10238: cd ..
10239: $RM -r conftest
10240: $RM conftest*
10241:
10242: fi
1.150 moko 10243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10244: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10245:
10246:
10247:
10248:
10249: hard_links="nottested"
10250: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10251: # do not overwrite the value of need_locks provided by the user
1.150 moko 10252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10253: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 10254: hard_links=yes
10255: $RM conftest*
10256: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10257: touch conftest.a
10258: ln conftest.a conftest.b 2>&5 || hard_links=no
10259: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 10260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10261: $as_echo "$hard_links" >&6; }
1.128 moko 10262: if test "$hard_links" = no; then
1.150 moko 10263: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10264: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 10265: need_locks=warn
10266: fi
10267: else
10268: need_locks=no
10269: fi
10270:
10271:
10272:
10273:
10274:
10275:
1.150 moko 10276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10277: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 10278:
10279: runpath_var=
10280: allow_undefined_flag=
10281: always_export_symbols=no
10282: archive_cmds=
10283: archive_expsym_cmds=
10284: compiler_needs_object=no
10285: enable_shared_with_static_runtimes=no
10286: export_dynamic_flag_spec=
10287: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10288: hardcode_automatic=no
10289: hardcode_direct=no
10290: hardcode_direct_absolute=no
10291: hardcode_libdir_flag_spec=
10292: hardcode_libdir_separator=
10293: hardcode_minus_L=no
10294: hardcode_shlibpath_var=unsupported
10295: inherit_rpath=no
10296: link_all_deplibs=unknown
10297: module_cmds=
10298: module_expsym_cmds=
10299: old_archive_from_new_cmds=
10300: old_archive_from_expsyms_cmds=
10301: thread_safe_flag_spec=
10302: whole_archive_flag_spec=
10303: # include_expsyms should be a list of space-separated symbols to be *always*
10304: # included in the symbol list
10305: include_expsyms=
10306: # exclude_expsyms can be an extended regexp of symbols to exclude
10307: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10308: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10309: # as well as any symbol that contains `d'.
10310: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10311: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10312: # platforms (ab)use it in PIC code, but their linkers get confused if
10313: # the symbol is explicitly referenced. Since portable code cannot
10314: # rely on this symbol name, it's probably fine to never include it in
10315: # preloaded symbol tables.
10316: # Exclude shared library initialization/finalization symbols.
10317: extract_expsyms_cmds=
10318:
10319: case $host_os in
10320: cygwin* | mingw* | pw32* | cegcc*)
10321: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10322: # When not using gcc, we currently assume that we are using
10323: # Microsoft Visual C++.
10324: if test "$GCC" != yes; then
10325: with_gnu_ld=no
10326: fi
10327: ;;
10328: interix*)
10329: # we just hope/assume this is gcc and not c89 (= MSVC++)
10330: with_gnu_ld=yes
10331: ;;
10332: openbsd*)
10333: with_gnu_ld=no
10334: ;;
10335: esac
10336:
10337: ld_shlibs=yes
10338:
10339: # On some targets, GNU ld is compatible enough with the native linker
10340: # that we're better off using the native interface for both.
10341: lt_use_gnu_ld_interface=no
10342: if test "$with_gnu_ld" = yes; then
10343: case $host_os in
10344: aix*)
10345: # The AIX port of GNU ld has always aspired to compatibility
10346: # with the native linker. However, as the warning in the GNU ld
10347: # block says, versions before 2.19.5* couldn't really create working
10348: # shared libraries, regardless of the interface used.
10349: case `$LD -v 2>&1` in
10350: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10351: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10352: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10353: *)
10354: lt_use_gnu_ld_interface=yes
10355: ;;
10356: esac
10357: ;;
10358: *)
10359: lt_use_gnu_ld_interface=yes
10360: ;;
10361: esac
10362: fi
10363:
10364: if test "$lt_use_gnu_ld_interface" = yes; then
10365: # If archive_cmds runs LD, not CC, wlarc should be empty
10366: wlarc='${wl}'
10367:
10368: # Set some defaults for GNU ld with shared library support. These
10369: # are reset later if shared libraries are not supported. Putting them
10370: # here allows them to be overridden if necessary.
10371: runpath_var=LD_RUN_PATH
10372: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10373: export_dynamic_flag_spec='${wl}--export-dynamic'
10374: # ancient GNU ld didn't support --whole-archive et. al.
10375: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10376: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10377: else
10378: whole_archive_flag_spec=
10379: fi
10380: supports_anon_versioning=no
10381: case `$LD -v 2>&1` in
10382: *GNU\ gold*) supports_anon_versioning=yes ;;
10383: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10384: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10385: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10386: *\ 2.11.*) ;; # other 2.11 versions
10387: *) supports_anon_versioning=yes ;;
10388: esac
10389:
10390: # See if GNU ld supports shared libraries.
10391: case $host_os in
10392: aix[3-9]*)
10393: # On AIX/PPC, the GNU linker is very broken
10394: if test "$host_cpu" != ia64; then
10395: ld_shlibs=no
10396: cat <<_LT_EOF 1>&2
10397:
10398: *** Warning: the GNU linker, at least up to release 2.19, is reported
10399: *** to be unable to reliably create shared libraries on AIX.
10400: *** Therefore, libtool is disabling shared libraries support. If you
10401: *** really care for shared libraries, you may want to install binutils
10402: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10403: *** You will then need to restart the configuration process.
10404:
10405: _LT_EOF
10406: fi
10407: ;;
10408:
10409: amigaos*)
10410: case $host_cpu in
10411: powerpc)
10412: # see comment about AmigaOS4 .so support
10413: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10414: archive_expsym_cmds=''
10415: ;;
10416: m68k)
10417: 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)'
10418: hardcode_libdir_flag_spec='-L$libdir'
10419: hardcode_minus_L=yes
10420: ;;
10421: esac
10422: ;;
10423:
10424: beos*)
10425: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10426: allow_undefined_flag=unsupported
10427: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10428: # support --undefined. This deserves some investigation. FIXME
10429: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10430: else
10431: ld_shlibs=no
10432: fi
10433: ;;
10434:
10435: cygwin* | mingw* | pw32* | cegcc*)
10436: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10437: # as there is no search path for DLLs.
10438: hardcode_libdir_flag_spec='-L$libdir'
10439: export_dynamic_flag_spec='${wl}--export-all-symbols'
10440: allow_undefined_flag=unsupported
10441: always_export_symbols=no
10442: enable_shared_with_static_runtimes=yes
10443: 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'
10444: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10445:
10446: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10447: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10448: # If the export-symbols file already is a .def file (1st line
10449: # is EXPORTS), use it as is; otherwise, prepend...
10450: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10451: cp $export_symbols $output_objdir/$soname.def;
10452: else
10453: echo EXPORTS > $output_objdir/$soname.def;
10454: cat $export_symbols >> $output_objdir/$soname.def;
10455: fi~
10456: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10457: else
10458: ld_shlibs=no
10459: fi
10460: ;;
10461:
10462: haiku*)
10463: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10464: link_all_deplibs=yes
10465: ;;
10466:
10467: interix[3-9]*)
10468: hardcode_direct=no
10469: hardcode_shlibpath_var=no
10470: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10471: export_dynamic_flag_spec='${wl}-E'
10472: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10473: # Instead, shared libraries are loaded at an image base (0x10000000 by
10474: # default) and relocated if they conflict, which is a slow very memory
10475: # consuming and fragmenting process. To avoid this, we pick a random,
10476: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10477: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10478: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10479: 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'
10480: ;;
10481:
10482: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10483: tmp_diet=no
10484: if test "$host_os" = linux-dietlibc; then
10485: case $cc_basename in
10486: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10487: esac
10488: fi
10489: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10490: && test "$tmp_diet" = no
10491: then
10492: tmp_addflag=' $pic_flag'
10493: tmp_sharedflag='-shared'
10494: case $cc_basename,$host_cpu in
10495: pgcc*) # Portland Group C compiler
10496: 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'
10497: tmp_addflag=' $pic_flag'
10498: ;;
10499: pgf77* | pgf90* | pgf95* | pgfortran*)
10500: # Portland Group f77 and f90 compilers
10501: 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'
10502: tmp_addflag=' $pic_flag -Mnomain' ;;
10503: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10504: tmp_addflag=' -i_dynamic' ;;
10505: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10506: tmp_addflag=' -i_dynamic -nofor_main' ;;
10507: ifc* | ifort*) # Intel Fortran compiler
10508: tmp_addflag=' -nofor_main' ;;
10509: lf95*) # Lahey Fortran 8.1
10510: whole_archive_flag_spec=
10511: tmp_sharedflag='--shared' ;;
10512: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10513: tmp_sharedflag='-qmkshrobj'
10514: tmp_addflag= ;;
10515: nvcc*) # Cuda Compiler Driver 2.2
10516: 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'
10517: compiler_needs_object=yes
10518: ;;
10519: esac
10520: case `$CC -V 2>&1 | sed 5q` in
10521: *Sun\ C*) # Sun C 5.9
10522: 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'
10523: compiler_needs_object=yes
10524: tmp_sharedflag='-G' ;;
10525: *Sun\ F*) # Sun Fortran 8.3
10526: tmp_sharedflag='-G' ;;
10527: esac
10528: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10529:
10530: if test "x$supports_anon_versioning" = xyes; then
10531: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10532: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10533: echo "local: *; };" >> $output_objdir/$libname.ver~
10534: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10535: fi
10536:
10537: case $cc_basename in
10538: xlf* | bgf* | bgxlf* | mpixlf*)
10539: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10540: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10541: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10542: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10543: if test "x$supports_anon_versioning" = xyes; then
10544: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10545: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10546: echo "local: *; };" >> $output_objdir/$libname.ver~
10547: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10548: fi
10549: ;;
10550: esac
10551: else
10552: ld_shlibs=no
10553: fi
10554: ;;
10555:
10556: netbsd*)
10557: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10558: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10559: wlarc=
10560: else
10561: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10562: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10563: fi
10564: ;;
10565:
10566: solaris*)
10567: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10568: ld_shlibs=no
10569: cat <<_LT_EOF 1>&2
10570:
10571: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10572: *** create shared libraries on Solaris systems. Therefore, libtool
10573: *** is disabling shared libraries support. We urge you to upgrade GNU
10574: *** binutils to release 2.9.1 or newer. Another option is to modify
10575: *** your PATH or compiler configuration so that the native linker is
10576: *** used, and then restart.
10577:
10578: _LT_EOF
10579: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10580: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10581: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10582: else
10583: ld_shlibs=no
10584: fi
10585: ;;
10586:
10587: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10588: case `$LD -v 2>&1` in
10589: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10590: ld_shlibs=no
10591: cat <<_LT_EOF 1>&2
10592:
10593: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10594: *** reliably create shared libraries on SCO systems. Therefore, libtool
10595: *** is disabling shared libraries support. We urge you to upgrade GNU
10596: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10597: *** your PATH or compiler configuration so that the native linker is
10598: *** used, and then restart.
10599:
10600: _LT_EOF
10601: ;;
10602: *)
10603: # For security reasons, it is highly recommended that you always
10604: # use absolute paths for naming shared libraries, and exclude the
10605: # DT_RUNPATH tag from executables and libraries. But doing so
10606: # requires that you compile everything twice, which is a pain.
10607: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10608: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10609: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10611: else
10612: ld_shlibs=no
10613: fi
10614: ;;
10615: esac
10616: ;;
10617:
10618: sunos4*)
10619: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10620: wlarc=
10621: hardcode_direct=yes
10622: hardcode_shlibpath_var=no
10623: ;;
10624:
10625: *)
10626: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10627: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10628: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10629: else
10630: ld_shlibs=no
10631: fi
10632: ;;
10633: esac
10634:
10635: if test "$ld_shlibs" = no; then
10636: runpath_var=
10637: hardcode_libdir_flag_spec=
10638: export_dynamic_flag_spec=
10639: whole_archive_flag_spec=
10640: fi
10641: else
10642: # PORTME fill in a description of your system's linker (not GNU ld)
10643: case $host_os in
10644: aix3*)
10645: allow_undefined_flag=unsupported
10646: always_export_symbols=yes
10647: 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'
10648: # Note: this linker hardcodes the directories in LIBPATH if there
10649: # are no directories specified by -L.
10650: hardcode_minus_L=yes
10651: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10652: # Neither direct hardcoding nor static linking is supported with a
10653: # broken collect2.
10654: hardcode_direct=unsupported
10655: fi
10656: ;;
10657:
10658: aix[4-9]*)
10659: if test "$host_cpu" = ia64; then
10660: # On IA64, the linker does run time linking by default, so we don't
10661: # have to do anything special.
10662: aix_use_runtimelinking=no
10663: exp_sym_flag='-Bexport'
10664: no_entry_flag=""
10665: else
10666: # If we're using GNU nm, then we don't want the "-C" option.
10667: # -C means demangle to AIX nm, but means don't demangle with GNU nm
10668: # Also, AIX nm treats weak defined symbols like other global
10669: # defined symbols, whereas GNU nm marks them as "W".
10670: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10671: 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'
10672: else
10673: 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'
10674: fi
10675: aix_use_runtimelinking=no
10676:
10677: # Test if we are trying to use run time linking or normal
10678: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10679: # need to do runtime linking.
10680: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10681: for ld_flag in $LDFLAGS; do
10682: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10683: aix_use_runtimelinking=yes
10684: break
10685: fi
10686: done
10687: ;;
10688: esac
10689:
10690: exp_sym_flag='-bexport'
10691: no_entry_flag='-bnoentry'
10692: fi
10693:
10694: # When large executables or shared objects are built, AIX ld can
10695: # have problems creating the table of contents. If linking a library
10696: # or program results in "error TOC overflow" add -mminimal-toc to
10697: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10698: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10699:
10700: archive_cmds=''
10701: hardcode_direct=yes
10702: hardcode_direct_absolute=yes
10703: hardcode_libdir_separator=':'
10704: link_all_deplibs=yes
10705: file_list_spec='${wl}-f,'
10706:
10707: if test "$GCC" = yes; then
10708: case $host_os in aix4.[012]|aix4.[012].*)
10709: # We only want to do this on AIX 4.2 and lower, the check
10710: # below for broken collect2 doesn't work under 4.3+
10711: collect2name=`${CC} -print-prog-name=collect2`
10712: if test -f "$collect2name" &&
10713: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10714: then
10715: # We have reworked collect2
10716: :
10717: else
10718: # We have old collect2
10719: hardcode_direct=unsupported
10720: # It fails to find uninstalled libraries when the uninstalled
10721: # path is not listed in the libpath. Setting hardcode_minus_L
10722: # to unsupported forces relinking
10723: hardcode_minus_L=yes
10724: hardcode_libdir_flag_spec='-L$libdir'
10725: hardcode_libdir_separator=
10726: fi
10727: ;;
10728: esac
10729: shared_flag='-shared'
10730: if test "$aix_use_runtimelinking" = yes; then
10731: shared_flag="$shared_flag "'${wl}-G'
10732: fi
10733: else
10734: # not using gcc
10735: if test "$host_cpu" = ia64; then
10736: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10737: # chokes on -Wl,-G. The following line is correct:
10738: shared_flag='-G'
10739: else
10740: if test "$aix_use_runtimelinking" = yes; then
10741: shared_flag='${wl}-G'
10742: else
10743: shared_flag='${wl}-bM:SRE'
10744: fi
10745: fi
10746: fi
10747:
10748: export_dynamic_flag_spec='${wl}-bexpall'
10749: # It seems that -bexpall does not export symbols beginning with
10750: # underscore (_), so it is better to generate a list of symbols to export.
10751: always_export_symbols=yes
10752: if test "$aix_use_runtimelinking" = yes; then
10753: # Warning - without using the other runtime loading flags (-brtl),
10754: # -berok will link without error, but may produce a broken library.
10755: allow_undefined_flag='-berok'
10756: # Determine the default libpath from the value encoded in an
10757: # empty executable.
10758: if test "${lt_cv_aix_libpath+set}" = set; then
10759: aix_libpath=$lt_cv_aix_libpath
10760: else
1.150 moko 10761: if ${lt_cv_aix_libpath_+:} false; then :
10762: $as_echo_n "(cached) " >&6
1.128 moko 10763: else
1.150 moko 10764: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10765: /* end confdefs.h. */
10766:
10767: int
10768: main ()
10769: {
10770:
10771: ;
10772: return 0;
10773: }
10774: _ACEOF
1.150 moko 10775: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10776:
10777: lt_aix_libpath_sed='
10778: /Import File Strings/,/^$/ {
10779: /^0/ {
10780: s/^0 *\([^ ]*\) *$/\1/
10781: p
10782: }
10783: }'
10784: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10785: # Check for a 64-bit object if we didn't find anything.
10786: if test -z "$lt_cv_aix_libpath_"; then
10787: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10788: fi
10789: fi
1.150 moko 10790: rm -f core conftest.err conftest.$ac_objext \
10791: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10792: if test -z "$lt_cv_aix_libpath_"; then
10793: lt_cv_aix_libpath_="/usr/lib:/lib"
10794: fi
10795:
10796: fi
10797:
10798: aix_libpath=$lt_cv_aix_libpath_
10799: fi
10800:
10801: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10802: 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"
10803: else
10804: if test "$host_cpu" = ia64; then
10805: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10806: allow_undefined_flag="-z nodefs"
10807: 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"
10808: else
10809: # Determine the default libpath from the value encoded in an
10810: # empty executable.
10811: if test "${lt_cv_aix_libpath+set}" = set; then
10812: aix_libpath=$lt_cv_aix_libpath
10813: else
1.150 moko 10814: if ${lt_cv_aix_libpath_+:} false; then :
10815: $as_echo_n "(cached) " >&6
1.128 moko 10816: else
1.150 moko 10817: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10818: /* end confdefs.h. */
10819:
10820: int
10821: main ()
10822: {
10823:
10824: ;
10825: return 0;
10826: }
10827: _ACEOF
1.150 moko 10828: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10829:
10830: lt_aix_libpath_sed='
10831: /Import File Strings/,/^$/ {
10832: /^0/ {
10833: s/^0 *\([^ ]*\) *$/\1/
10834: p
10835: }
10836: }'
10837: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10838: # Check for a 64-bit object if we didn't find anything.
10839: if test -z "$lt_cv_aix_libpath_"; then
10840: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10841: fi
10842: fi
1.150 moko 10843: rm -f core conftest.err conftest.$ac_objext \
10844: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10845: if test -z "$lt_cv_aix_libpath_"; then
10846: lt_cv_aix_libpath_="/usr/lib:/lib"
10847: fi
10848:
10849: fi
10850:
10851: aix_libpath=$lt_cv_aix_libpath_
10852: fi
10853:
10854: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10855: # Warning - without using the other run time loading flags,
10856: # -berok will link without error, but may produce a broken library.
10857: no_undefined_flag=' ${wl}-bernotok'
10858: allow_undefined_flag=' ${wl}-berok'
10859: if test "$with_gnu_ld" = yes; then
10860: # We only use this code for GNU lds that support --whole-archive.
10861: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10862: else
10863: # Exported symbols can be pulled into shared objects from archives
10864: whole_archive_flag_spec='$convenience'
10865: fi
10866: archive_cmds_need_lc=yes
10867: # This is similar to how AIX traditionally builds its shared libraries.
10868: 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'
10869: fi
10870: fi
10871: ;;
10872:
10873: amigaos*)
10874: case $host_cpu in
10875: powerpc)
10876: # see comment about AmigaOS4 .so support
10877: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10878: archive_expsym_cmds=''
10879: ;;
10880: m68k)
10881: 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)'
10882: hardcode_libdir_flag_spec='-L$libdir'
10883: hardcode_minus_L=yes
10884: ;;
10885: esac
10886: ;;
10887:
10888: bsdi[45]*)
10889: export_dynamic_flag_spec=-rdynamic
10890: ;;
10891:
10892: cygwin* | mingw* | pw32* | cegcc*)
10893: # When not using gcc, we currently assume that we are using
10894: # Microsoft Visual C++.
10895: # hardcode_libdir_flag_spec is actually meaningless, as there is
10896: # no search path for DLLs.
10897: case $cc_basename in
10898: cl*)
10899: # Native MSVC
10900: hardcode_libdir_flag_spec=' '
10901: allow_undefined_flag=unsupported
10902: always_export_symbols=yes
10903: file_list_spec='@'
10904: # Tell ltmain to make .lib files, not .a files.
10905: libext=lib
10906: # Tell ltmain to make .dll files, not .so files.
10907: shrext_cmds=".dll"
10908: # FIXME: Setting linknames here is a bad hack.
10909: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10910: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10911: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10912: else
10913: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10914: fi~
10915: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10916: linknames='
10917: # The linker will not automatically build a static lib if we build a DLL.
10918: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10919: enable_shared_with_static_runtimes=yes
10920: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10921: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10922: # Don't use ranlib
10923: old_postinstall_cmds='chmod 644 $oldlib'
10924: postlink_cmds='lt_outputfile="@OUTPUT@"~
10925: lt_tool_outputfile="@TOOL_OUTPUT@"~
10926: case $lt_outputfile in
10927: *.exe|*.EXE) ;;
10928: *)
10929: lt_outputfile="$lt_outputfile.exe"
10930: lt_tool_outputfile="$lt_tool_outputfile.exe"
10931: ;;
10932: esac~
10933: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10934: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10935: $RM "$lt_outputfile.manifest";
10936: fi'
10937: ;;
10938: *)
10939: # Assume MSVC wrapper
10940: hardcode_libdir_flag_spec=' '
10941: allow_undefined_flag=unsupported
10942: # Tell ltmain to make .lib files, not .a files.
10943: libext=lib
10944: # Tell ltmain to make .dll files, not .so files.
10945: shrext_cmds=".dll"
10946: # FIXME: Setting linknames here is a bad hack.
10947: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10948: # The linker will automatically build a .lib file if we build a DLL.
10949: old_archive_from_new_cmds='true'
10950: # FIXME: Should let the user specify the lib program.
10951: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10952: enable_shared_with_static_runtimes=yes
10953: ;;
10954: esac
10955: ;;
10956:
10957: darwin* | rhapsody*)
10958:
10959:
10960: archive_cmds_need_lc=no
10961: hardcode_direct=no
10962: hardcode_automatic=yes
10963: hardcode_shlibpath_var=unsupported
10964: if test "$lt_cv_ld_force_load" = "yes"; then
10965: 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\"`'
10966:
10967: else
10968: whole_archive_flag_spec=''
10969: fi
10970: link_all_deplibs=yes
10971: allow_undefined_flag="$_lt_dar_allow_undefined"
10972: case $cc_basename in
10973: ifort*) _lt_dar_can_shared=yes ;;
10974: *) _lt_dar_can_shared=$GCC ;;
10975: esac
10976: if test "$_lt_dar_can_shared" = "yes"; then
10977: output_verbose_link_cmd=func_echo_all
10978: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10979: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10980: 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}"
10981: 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}"
10982:
10983: else
10984: ld_shlibs=no
10985: fi
10986:
10987: ;;
10988:
10989: dgux*)
10990: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991: hardcode_libdir_flag_spec='-L$libdir'
10992: hardcode_shlibpath_var=no
10993: ;;
10994:
10995: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10996: # support. Future versions do this automatically, but an explicit c++rt0.o
10997: # does not break anything, and helps significantly (at the cost of a little
10998: # extra space).
10999: freebsd2.2*)
11000: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11001: hardcode_libdir_flag_spec='-R$libdir'
11002: hardcode_direct=yes
11003: hardcode_shlibpath_var=no
11004: ;;
11005:
11006: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11007: freebsd2.*)
11008: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11009: hardcode_direct=yes
11010: hardcode_minus_L=yes
11011: hardcode_shlibpath_var=no
11012: ;;
11013:
11014: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11015: freebsd* | dragonfly*)
11016: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11017: hardcode_libdir_flag_spec='-R$libdir'
11018: hardcode_direct=yes
11019: hardcode_shlibpath_var=no
11020: ;;
11021:
11022: hpux9*)
11023: if test "$GCC" = yes; then
11024: 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'
11025: else
11026: 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'
11027: fi
11028: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11029: hardcode_libdir_separator=:
11030: hardcode_direct=yes
11031:
11032: # hardcode_minus_L: Not really in the search PATH,
11033: # but as the default location of the library.
11034: hardcode_minus_L=yes
11035: export_dynamic_flag_spec='${wl}-E'
11036: ;;
11037:
11038: hpux10*)
11039: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11040: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11041: else
11042: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11043: fi
11044: if test "$with_gnu_ld" = no; then
11045: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11046: hardcode_libdir_separator=:
11047: hardcode_direct=yes
11048: hardcode_direct_absolute=yes
11049: export_dynamic_flag_spec='${wl}-E'
11050: # hardcode_minus_L: Not really in the search PATH,
11051: # but as the default location of the library.
11052: hardcode_minus_L=yes
11053: fi
11054: ;;
11055:
11056: hpux11*)
11057: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11058: case $host_cpu in
11059: hppa*64*)
11060: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11061: ;;
11062: ia64*)
11063: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11064: ;;
11065: *)
11066: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11067: ;;
11068: esac
11069: else
11070: case $host_cpu in
11071: hppa*64*)
11072: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11073: ;;
11074: ia64*)
11075: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11076: ;;
11077: *)
11078:
11079: # Older versions of the 11.00 compiler do not understand -b yet
11080: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.150 moko 11081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11082: $as_echo_n "checking if $CC understands -b... " >&6; }
11083: if ${lt_cv_prog_compiler__b+:} false; then :
11084: $as_echo_n "(cached) " >&6
1.128 moko 11085: else
11086: lt_cv_prog_compiler__b=no
11087: save_LDFLAGS="$LDFLAGS"
11088: LDFLAGS="$LDFLAGS -b"
11089: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11090: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11091: # The linker can only warn and ignore the option if not recognized
11092: # So say no if there are warnings
11093: if test -s conftest.err; then
11094: # Append any errors to the config.log.
11095: cat conftest.err 1>&5
11096: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11097: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11098: if diff conftest.exp conftest.er2 >/dev/null; then
11099: lt_cv_prog_compiler__b=yes
11100: fi
11101: else
11102: lt_cv_prog_compiler__b=yes
11103: fi
11104: fi
11105: $RM -r conftest*
11106: LDFLAGS="$save_LDFLAGS"
11107:
11108: fi
1.150 moko 11109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11110: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 11111:
11112: if test x"$lt_cv_prog_compiler__b" = xyes; then
11113: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11114: else
11115: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11116: fi
11117:
11118: ;;
11119: esac
11120: fi
11121: if test "$with_gnu_ld" = no; then
11122: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11123: hardcode_libdir_separator=:
11124:
11125: case $host_cpu in
11126: hppa*64*|ia64*)
11127: hardcode_direct=no
11128: hardcode_shlibpath_var=no
11129: ;;
11130: *)
11131: hardcode_direct=yes
11132: hardcode_direct_absolute=yes
11133: export_dynamic_flag_spec='${wl}-E'
11134:
11135: # hardcode_minus_L: Not really in the search PATH,
11136: # but as the default location of the library.
11137: hardcode_minus_L=yes
11138: ;;
11139: esac
11140: fi
11141: ;;
11142:
11143: irix5* | irix6* | nonstopux*)
11144: if test "$GCC" = yes; then
11145: 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'
11146: # Try to use the -exported_symbol ld option, if it does not
11147: # work, assume that -exports_file does not work either and
11148: # implicitly export all symbols.
11149: # This should be the same for all languages, so no per-tag cache variable.
1.150 moko 11150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11151: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11152: if ${lt_cv_irix_exported_symbol+:} false; then :
11153: $as_echo_n "(cached) " >&6
1.128 moko 11154: else
11155: save_LDFLAGS="$LDFLAGS"
11156: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.150 moko 11157: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 11158: /* end confdefs.h. */
11159: int foo (void) { return 0; }
11160: _ACEOF
1.150 moko 11161: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 11162: lt_cv_irix_exported_symbol=yes
11163: else
1.150 moko 11164: lt_cv_irix_exported_symbol=no
1.128 moko 11165: fi
1.150 moko 11166: rm -f core conftest.err conftest.$ac_objext \
11167: conftest$ac_exeext conftest.$ac_ext
1.128 moko 11168: LDFLAGS="$save_LDFLAGS"
11169: fi
1.150 moko 11170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11171: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.128 moko 11172: if test "$lt_cv_irix_exported_symbol" = yes; then
11173: 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'
11174: fi
11175: else
11176: 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'
11177: 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'
11178: fi
11179: archive_cmds_need_lc='no'
11180: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11181: hardcode_libdir_separator=:
11182: inherit_rpath=yes
11183: link_all_deplibs=yes
11184: ;;
11185:
11186: netbsd*)
11187: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11188: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11189: else
11190: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11191: fi
11192: hardcode_libdir_flag_spec='-R$libdir'
11193: hardcode_direct=yes
11194: hardcode_shlibpath_var=no
11195: ;;
11196:
11197: newsos6)
11198: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11199: hardcode_direct=yes
11200: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11201: hardcode_libdir_separator=:
11202: hardcode_shlibpath_var=no
11203: ;;
11204:
11205: *nto* | *qnx*)
11206: ;;
11207:
11208: openbsd*)
11209: if test -f /usr/libexec/ld.so; then
11210: hardcode_direct=yes
11211: hardcode_shlibpath_var=no
11212: hardcode_direct_absolute=yes
11213: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11214: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11215: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11216: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11217: export_dynamic_flag_spec='${wl}-E'
11218: else
11219: case $host_os in
11220: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11221: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11222: hardcode_libdir_flag_spec='-R$libdir'
11223: ;;
11224: *)
11225: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11226: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11227: ;;
11228: esac
11229: fi
11230: else
11231: ld_shlibs=no
11232: fi
11233: ;;
11234:
11235: os2*)
11236: hardcode_libdir_flag_spec='-L$libdir'
11237: hardcode_minus_L=yes
11238: allow_undefined_flag=unsupported
11239: 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'
11240: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11241: ;;
11242:
11243: osf3*)
11244: if test "$GCC" = yes; then
11245: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11246: 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'
11247: else
11248: allow_undefined_flag=' -expect_unresolved \*'
11249: 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'
11250: fi
11251: archive_cmds_need_lc='no'
11252: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11253: hardcode_libdir_separator=:
11254: ;;
11255:
11256: osf4* | osf5*) # as osf3* with the addition of -msym flag
11257: if test "$GCC" = yes; then
11258: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11259: 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'
11260: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11261: else
11262: allow_undefined_flag=' -expect_unresolved \*'
11263: 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'
11264: 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~
11265: $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'
11266:
11267: # Both c and cxx compiler support -rpath directly
11268: hardcode_libdir_flag_spec='-rpath $libdir'
11269: fi
11270: archive_cmds_need_lc='no'
11271: hardcode_libdir_separator=:
11272: ;;
11273:
11274: solaris*)
11275: no_undefined_flag=' -z defs'
11276: if test "$GCC" = yes; then
11277: wlarc='${wl}'
11278: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11279: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11280: $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'
11281: else
11282: case `$CC -V 2>&1` in
11283: *"Compilers 5.0"*)
11284: wlarc=''
11285: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11286: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11287: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11288: ;;
11289: *)
11290: wlarc='${wl}'
11291: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11292: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11293: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11294: ;;
11295: esac
11296: fi
11297: hardcode_libdir_flag_spec='-R$libdir'
11298: hardcode_shlibpath_var=no
11299: case $host_os in
11300: solaris2.[0-5] | solaris2.[0-5].*) ;;
11301: *)
11302: # The compiler driver will combine and reorder linker options,
11303: # but understands `-z linker_flag'. GCC discards it without `$wl',
11304: # but is careful enough not to reorder.
11305: # Supported since Solaris 2.6 (maybe 2.5.1?)
11306: if test "$GCC" = yes; then
11307: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11308: else
11309: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11310: fi
11311: ;;
11312: esac
11313: link_all_deplibs=yes
11314: ;;
11315:
11316: sunos4*)
11317: if test "x$host_vendor" = xsequent; then
11318: # Use $CC to link under sequent, because it throws in some extra .o
11319: # files that make .init and .fini sections work.
11320: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11321: else
11322: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11323: fi
11324: hardcode_libdir_flag_spec='-L$libdir'
11325: hardcode_direct=yes
11326: hardcode_minus_L=yes
11327: hardcode_shlibpath_var=no
11328: ;;
11329:
11330: sysv4)
11331: case $host_vendor in
11332: sni)
11333: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11334: hardcode_direct=yes # is this really true???
11335: ;;
11336: siemens)
11337: ## LD is ld it makes a PLAMLIB
11338: ## CC just makes a GrossModule.
11339: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11340: reload_cmds='$CC -r -o $output$reload_objs'
11341: hardcode_direct=no
11342: ;;
11343: motorola)
11344: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11345: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11346: ;;
11347: esac
11348: runpath_var='LD_RUN_PATH'
11349: hardcode_shlibpath_var=no
11350: ;;
11351:
11352: sysv4.3*)
11353: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11354: hardcode_shlibpath_var=no
11355: export_dynamic_flag_spec='-Bexport'
11356: ;;
11357:
11358: sysv4*MP*)
11359: if test -d /usr/nec; then
11360: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11361: hardcode_shlibpath_var=no
11362: runpath_var=LD_RUN_PATH
11363: hardcode_runpath_var=yes
11364: ld_shlibs=yes
11365: fi
11366: ;;
11367:
11368: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11369: no_undefined_flag='${wl}-z,text'
11370: archive_cmds_need_lc=no
11371: hardcode_shlibpath_var=no
11372: runpath_var='LD_RUN_PATH'
11373:
11374: if test "$GCC" = yes; then
11375: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11377: else
11378: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380: fi
11381: ;;
11382:
11383: sysv5* | sco3.2v5* | sco5v6*)
11384: # Note: We can NOT use -z defs as we might desire, because we do not
11385: # link with -lc, and that would cause any symbols used from libc to
11386: # always be unresolved, which means just about no library would
11387: # ever link correctly. If we're not using GNU ld we use -z text
11388: # though, which does catch some bad symbols but isn't as heavy-handed
11389: # as -z defs.
11390: no_undefined_flag='${wl}-z,text'
11391: allow_undefined_flag='${wl}-z,nodefs'
11392: archive_cmds_need_lc=no
11393: hardcode_shlibpath_var=no
11394: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11395: hardcode_libdir_separator=':'
11396: link_all_deplibs=yes
11397: export_dynamic_flag_spec='${wl}-Bexport'
11398: runpath_var='LD_RUN_PATH'
11399:
11400: if test "$GCC" = yes; then
11401: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403: else
11404: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406: fi
11407: ;;
11408:
11409: uts4*)
11410: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11411: hardcode_libdir_flag_spec='-L$libdir'
11412: hardcode_shlibpath_var=no
11413: ;;
11414:
11415: *)
11416: ld_shlibs=no
11417: ;;
11418: esac
11419:
11420: if test x$host_vendor = xsni; then
11421: case $host in
11422: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11423: export_dynamic_flag_spec='${wl}-Blargedynsym'
11424: ;;
11425: esac
11426: fi
11427: fi
11428:
1.150 moko 11429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11430: $as_echo "$ld_shlibs" >&6; }
1.128 moko 11431: test "$ld_shlibs" = no && can_build_shared=no
11432:
11433: with_gnu_ld=$with_gnu_ld
11434:
11435:
11436:
11437:
11438:
11439:
11440:
11441:
11442:
11443:
11444:
11445:
11446:
11447:
11448:
11449: #
11450: # Do we need to explicitly link libc?
11451: #
11452: case "x$archive_cmds_need_lc" in
11453: x|xyes)
11454: # Assume -lc should be added
11455: archive_cmds_need_lc=yes
11456:
11457: if test "$enable_shared" = yes && test "$GCC" = yes; then
11458: case $archive_cmds in
11459: *'~'*)
11460: # FIXME: we may have to deal with multi-command sequences.
11461: ;;
11462: '$CC '*)
11463: # Test whether the compiler implicitly links with -lc since on some
11464: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11465: # to ld, don't add -lc before -lgcc.
1.150 moko 11466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11467: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11468: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11469: $as_echo_n "(cached) " >&6
1.128 moko 11470: else
11471: $RM conftest*
11472: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11473:
1.150 moko 11474: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 11475: (eval $ac_compile) 2>&5
11476: ac_status=$?
1.150 moko 11477: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 11479: soname=conftest
11480: lib=conftest
11481: libobjs=conftest.$ac_objext
11482: deplibs=
11483: wl=$lt_prog_compiler_wl
11484: pic_flag=$lt_prog_compiler_pic
11485: compiler_flags=-v
11486: linker_flags=-v
11487: verstring=
11488: output_objdir=.
11489: libname=conftest
11490: lt_save_allow_undefined_flag=$allow_undefined_flag
11491: allow_undefined_flag=
1.150 moko 11492: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 11493: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11494: ac_status=$?
1.150 moko 11495: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11496: test $ac_status = 0; }
1.128 moko 11497: then
11498: lt_cv_archive_cmds_need_lc=no
11499: else
11500: lt_cv_archive_cmds_need_lc=yes
11501: fi
11502: allow_undefined_flag=$lt_save_allow_undefined_flag
11503: else
11504: cat conftest.err 1>&5
11505: fi
11506: $RM conftest*
11507:
11508: fi
1.150 moko 11509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11510: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 11511: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11512: ;;
11513: esac
11514: fi
11515: ;;
11516: esac
11517:
11518:
11519:
11520:
11521:
11522:
11523:
11524:
11525:
11526:
11527:
11528:
11529:
11530:
11531:
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
11547:
11548:
11549:
11550:
11551:
11552:
11553:
11554:
11555:
11556:
11557:
11558:
11559:
11560:
11561:
11562:
11563:
11564:
11565:
11566:
11567:
11568:
11569:
11570:
11571:
11572:
11573:
11574:
11575:
11576:
11577:
11578:
11579:
11580:
11581:
11582:
11583:
11584:
11585:
11586:
11587:
11588:
11589:
11590:
11591:
11592:
11593:
11594:
11595:
11596:
11597:
11598:
11599:
11600:
11601:
11602:
11603:
11604:
11605:
11606:
11607:
11608:
11609:
11610:
11611:
11612:
11613:
11614:
11615:
11616:
11617:
11618:
11619:
11620:
11621:
11622:
11623:
11624:
11625:
11626:
11627:
11628:
11629:
11630:
11631:
11632:
11633:
11634:
11635:
11636:
11637:
11638:
11639:
11640:
11641:
11642:
11643:
11644:
11645:
11646:
11647:
11648:
11649:
11650:
11651:
11652:
11653:
11654:
11655:
11656:
11657:
11658:
11659:
11660:
11661:
11662:
11663:
11664:
11665:
11666:
11667:
11668:
1.150 moko 11669: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11670: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 11671:
11672: if test "$GCC" = yes; then
11673: case $host_os in
11674: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11675: *) lt_awk_arg="/^libraries:/" ;;
11676: esac
11677: case $host_os in
11678: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11679: *) lt_sed_strip_eq="s,=/,/,g" ;;
11680: esac
11681: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11682: case $lt_search_path_spec in
11683: *\;*)
11684: # if the path contains ";" then we assume it to be the separator
11685: # otherwise default to the standard path separator (i.e. ":") - it is
11686: # assumed that no part of a normal pathname contains ";" but that should
11687: # okay in the real world where ";" in dirpaths is itself problematic.
11688: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11689: ;;
11690: *)
11691: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11692: ;;
11693: esac
11694: # Ok, now we have the path, separated by spaces, we can step through it
11695: # and add multilib dir if necessary.
11696: lt_tmp_lt_search_path_spec=
11697: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11698: for lt_sys_path in $lt_search_path_spec; do
11699: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11700: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11701: else
11702: test -d "$lt_sys_path" && \
11703: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11704: fi
11705: done
11706: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11707: BEGIN {RS=" "; FS="/|\n";} {
11708: lt_foo="";
11709: lt_count=0;
11710: for (lt_i = NF; lt_i > 0; lt_i--) {
11711: if ($lt_i != "" && $lt_i != ".") {
11712: if ($lt_i == "..") {
11713: lt_count++;
11714: } else {
11715: if (lt_count == 0) {
11716: lt_foo="/" $lt_i lt_foo;
11717: } else {
11718: lt_count--;
11719: }
11720: }
11721: }
11722: }
11723: if (lt_foo != "") { lt_freq[lt_foo]++; }
11724: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11725: }'`
11726: # AWK program above erroneously prepends '/' to C:/dos/paths
11727: # for these hosts.
11728: case $host_os in
11729: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11730: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11731: esac
11732: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11733: else
11734: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11735: fi
11736: library_names_spec=
11737: libname_spec='lib$name'
11738: soname_spec=
11739: shrext_cmds=".so"
11740: postinstall_cmds=
11741: postuninstall_cmds=
11742: finish_cmds=
11743: finish_eval=
11744: shlibpath_var=
11745: shlibpath_overrides_runpath=unknown
11746: version_type=none
11747: dynamic_linker="$host_os ld.so"
11748: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11749: need_lib_prefix=unknown
11750: hardcode_into_libs=no
11751:
11752: # when you set need_version to no, make sure it does not cause -set_version
11753: # flags to be left without arguments
11754: need_version=unknown
11755:
11756: case $host_os in
11757: aix3*)
11758: version_type=linux # correct to gnu/linux during the next big refactor
11759: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11760: shlibpath_var=LIBPATH
11761:
11762: # AIX 3 has no versioning support, so we append a major version to the name.
11763: soname_spec='${libname}${release}${shared_ext}$major'
11764: ;;
11765:
11766: aix[4-9]*)
11767: version_type=linux # correct to gnu/linux during the next big refactor
11768: need_lib_prefix=no
11769: need_version=no
11770: hardcode_into_libs=yes
11771: if test "$host_cpu" = ia64; then
11772: # AIX 5 supports IA64
11773: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11774: shlibpath_var=LD_LIBRARY_PATH
11775: else
11776: # With GCC up to 2.95.x, collect2 would create an import file
11777: # for dependence libraries. The import file would start with
11778: # the line `#! .'. This would cause the generated library to
11779: # depend on `.', always an invalid library. This was fixed in
11780: # development snapshots of GCC prior to 3.0.
11781: case $host_os in
11782: aix4 | aix4.[01] | aix4.[01].*)
11783: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11784: echo ' yes '
11785: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11786: :
11787: else
11788: can_build_shared=no
11789: fi
11790: ;;
11791: esac
11792: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11793: # soname into executable. Probably we can add versioning support to
11794: # collect2, so additional links can be useful in future.
11795: if test "$aix_use_runtimelinking" = yes; then
11796: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11797: # instead of lib<name>.a to let people know that these are not
11798: # typical AIX shared libraries.
11799: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800: else
11801: # We preserve .a as extension for shared libraries through AIX4.2
11802: # and later when we are not doing run time linking.
11803: library_names_spec='${libname}${release}.a $libname.a'
11804: soname_spec='${libname}${release}${shared_ext}$major'
11805: fi
11806: shlibpath_var=LIBPATH
11807: fi
11808: ;;
11809:
11810: amigaos*)
11811: case $host_cpu in
11812: powerpc)
11813: # Since July 2007 AmigaOS4 officially supports .so libraries.
11814: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11815: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816: ;;
11817: m68k)
11818: library_names_spec='$libname.ixlibrary $libname.a'
11819: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11820: 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'
11821: ;;
11822: esac
11823: ;;
11824:
11825: beos*)
11826: library_names_spec='${libname}${shared_ext}'
11827: dynamic_linker="$host_os ld.so"
11828: shlibpath_var=LIBRARY_PATH
11829: ;;
11830:
11831: bsdi[45]*)
11832: version_type=linux # correct to gnu/linux during the next big refactor
11833: need_version=no
11834: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11835: soname_spec='${libname}${release}${shared_ext}$major'
11836: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11837: shlibpath_var=LD_LIBRARY_PATH
11838: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11839: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11840: # the default ld.so.conf also contains /usr/contrib/lib and
11841: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11842: # libtool to hard-code these into programs
11843: ;;
11844:
11845: cygwin* | mingw* | pw32* | cegcc*)
11846: version_type=windows
11847: shrext_cmds=".dll"
11848: need_version=no
11849: need_lib_prefix=no
11850:
11851: case $GCC,$cc_basename in
11852: yes,*)
11853: # gcc
11854: library_names_spec='$libname.dll.a'
11855: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11856: postinstall_cmds='base_file=`basename \${file}`~
11857: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11858: dldir=$destdir/`dirname \$dlpath`~
11859: test -d \$dldir || mkdir -p \$dldir~
11860: $install_prog $dir/$dlname \$dldir/$dlname~
11861: chmod a+x \$dldir/$dlname~
11862: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11863: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11864: fi'
11865: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11866: dlpath=$dir/\$dldll~
11867: $RM \$dlpath'
11868: shlibpath_overrides_runpath=yes
11869:
11870: case $host_os in
11871: cygwin*)
11872: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11873: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11874:
11875: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11876: ;;
11877: mingw* | cegcc*)
11878: # MinGW DLLs use traditional 'lib' prefix
11879: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11880: ;;
11881: pw32*)
11882: # pw32 DLLs use 'pw' prefix rather than 'lib'
11883: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11884: ;;
11885: esac
11886: dynamic_linker='Win32 ld.exe'
11887: ;;
11888:
11889: *,cl*)
11890: # Native MSVC
11891: libname_spec='$name'
11892: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11893: library_names_spec='${libname}.dll.lib'
11894:
11895: case $build_os in
11896: mingw*)
11897: sys_lib_search_path_spec=
11898: lt_save_ifs=$IFS
11899: IFS=';'
11900: for lt_path in $LIB
11901: do
11902: IFS=$lt_save_ifs
11903: # Let DOS variable expansion print the short 8.3 style file name.
11904: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11905: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11906: done
11907: IFS=$lt_save_ifs
11908: # Convert to MSYS style.
11909: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11910: ;;
11911: cygwin*)
11912: # Convert to unix form, then to dos form, then back to unix form
11913: # but this time dos style (no spaces!) so that the unix form looks
11914: # like /cygdrive/c/PROGRA~1:/cygdr...
11915: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11916: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11917: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11918: ;;
11919: *)
11920: sys_lib_search_path_spec="$LIB"
11921: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11922: # It is most probably a Windows format PATH.
11923: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11924: else
11925: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11926: fi
11927: # FIXME: find the short name or the path components, as spaces are
11928: # common. (e.g. "Program Files" -> "PROGRA~1")
11929: ;;
11930: esac
11931:
11932: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11933: postinstall_cmds='base_file=`basename \${file}`~
11934: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11935: dldir=$destdir/`dirname \$dlpath`~
11936: test -d \$dldir || mkdir -p \$dldir~
11937: $install_prog $dir/$dlname \$dldir/$dlname'
11938: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11939: dlpath=$dir/\$dldll~
11940: $RM \$dlpath'
11941: shlibpath_overrides_runpath=yes
11942: dynamic_linker='Win32 link.exe'
11943: ;;
11944:
11945: *)
11946: # Assume MSVC wrapper
11947: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11948: dynamic_linker='Win32 ld.exe'
11949: ;;
11950: esac
11951: # FIXME: first we should search . and the directory the executable is in
11952: shlibpath_var=PATH
11953: ;;
11954:
11955: darwin* | rhapsody*)
11956: dynamic_linker="$host_os dyld"
11957: version_type=darwin
11958: need_lib_prefix=no
11959: need_version=no
11960: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11961: soname_spec='${libname}${release}${major}$shared_ext'
11962: shlibpath_overrides_runpath=yes
11963: shlibpath_var=DYLD_LIBRARY_PATH
11964: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11965:
11966: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11967: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11968: ;;
11969:
11970: dgux*)
11971: version_type=linux # correct to gnu/linux during the next big refactor
11972: need_lib_prefix=no
11973: need_version=no
11974: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11975: soname_spec='${libname}${release}${shared_ext}$major'
11976: shlibpath_var=LD_LIBRARY_PATH
11977: ;;
11978:
11979: freebsd* | dragonfly*)
11980: # DragonFly does not have aout. When/if they implement a new
11981: # versioning mechanism, adjust this.
11982: if test -x /usr/bin/objformat; then
11983: objformat=`/usr/bin/objformat`
11984: else
11985: case $host_os in
11986: freebsd[23].*) objformat=aout ;;
11987: *) objformat=elf ;;
11988: esac
11989: fi
11990: version_type=freebsd-$objformat
11991: case $version_type in
11992: freebsd-elf*)
11993: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11994: need_version=no
11995: need_lib_prefix=no
11996: ;;
11997: freebsd-*)
11998: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11999: need_version=yes
12000: ;;
12001: esac
12002: shlibpath_var=LD_LIBRARY_PATH
12003: case $host_os in
12004: freebsd2.*)
12005: shlibpath_overrides_runpath=yes
12006: ;;
12007: freebsd3.[01]* | freebsdelf3.[01]*)
12008: shlibpath_overrides_runpath=yes
12009: hardcode_into_libs=yes
12010: ;;
12011: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12012: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12013: shlibpath_overrides_runpath=no
12014: hardcode_into_libs=yes
12015: ;;
12016: *) # from 4.6 on, and DragonFly
12017: shlibpath_overrides_runpath=yes
12018: hardcode_into_libs=yes
12019: ;;
12020: esac
12021: ;;
12022:
12023: gnu*)
12024: version_type=linux # correct to gnu/linux during the next big refactor
12025: need_lib_prefix=no
12026: need_version=no
12027: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12028: soname_spec='${libname}${release}${shared_ext}$major'
12029: shlibpath_var=LD_LIBRARY_PATH
12030: shlibpath_overrides_runpath=no
12031: hardcode_into_libs=yes
12032: ;;
12033:
12034: haiku*)
12035: version_type=linux # correct to gnu/linux during the next big refactor
12036: need_lib_prefix=no
12037: need_version=no
12038: dynamic_linker="$host_os runtime_loader"
12039: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12040: soname_spec='${libname}${release}${shared_ext}$major'
12041: shlibpath_var=LIBRARY_PATH
12042: shlibpath_overrides_runpath=yes
12043: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12044: hardcode_into_libs=yes
12045: ;;
12046:
12047: hpux9* | hpux10* | hpux11*)
12048: # Give a soname corresponding to the major version so that dld.sl refuses to
12049: # link against other versions.
12050: version_type=sunos
12051: need_lib_prefix=no
12052: need_version=no
12053: case $host_cpu in
12054: ia64*)
12055: shrext_cmds='.so'
12056: hardcode_into_libs=yes
12057: dynamic_linker="$host_os dld.so"
12058: shlibpath_var=LD_LIBRARY_PATH
12059: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12060: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12061: soname_spec='${libname}${release}${shared_ext}$major'
12062: if test "X$HPUX_IA64_MODE" = X32; then
12063: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12064: else
12065: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12066: fi
12067: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12068: ;;
12069: hppa*64*)
12070: shrext_cmds='.sl'
12071: hardcode_into_libs=yes
12072: dynamic_linker="$host_os dld.sl"
12073: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12074: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12075: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076: soname_spec='${libname}${release}${shared_ext}$major'
12077: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12078: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12079: ;;
12080: *)
12081: shrext_cmds='.sl'
12082: dynamic_linker="$host_os dld.sl"
12083: shlibpath_var=SHLIB_PATH
12084: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12085: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12086: soname_spec='${libname}${release}${shared_ext}$major'
12087: ;;
12088: esac
12089: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12090: postinstall_cmds='chmod 555 $lib'
12091: # or fails outright, so override atomically:
12092: install_override_mode=555
12093: ;;
12094:
12095: interix[3-9]*)
12096: version_type=linux # correct to gnu/linux during the next big refactor
12097: need_lib_prefix=no
12098: need_version=no
12099: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12100: soname_spec='${libname}${release}${shared_ext}$major'
12101: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12102: shlibpath_var=LD_LIBRARY_PATH
12103: shlibpath_overrides_runpath=no
12104: hardcode_into_libs=yes
12105: ;;
12106:
12107: irix5* | irix6* | nonstopux*)
12108: case $host_os in
12109: nonstopux*) version_type=nonstopux ;;
12110: *)
12111: if test "$lt_cv_prog_gnu_ld" = yes; then
12112: version_type=linux # correct to gnu/linux during the next big refactor
12113: else
12114: version_type=irix
12115: fi ;;
12116: esac
12117: need_lib_prefix=no
12118: need_version=no
12119: soname_spec='${libname}${release}${shared_ext}$major'
12120: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12121: case $host_os in
12122: irix5* | nonstopux*)
12123: libsuff= shlibsuff=
12124: ;;
12125: *)
12126: case $LD in # libtool.m4 will add one of these switches to LD
12127: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12128: libsuff= shlibsuff= libmagic=32-bit;;
12129: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12130: libsuff=32 shlibsuff=N32 libmagic=N32;;
12131: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12132: libsuff=64 shlibsuff=64 libmagic=64-bit;;
12133: *) libsuff= shlibsuff= libmagic=never-match;;
12134: esac
12135: ;;
12136: esac
12137: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12138: shlibpath_overrides_runpath=no
12139: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12140: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12141: hardcode_into_libs=yes
12142: ;;
12143:
12144: # No shared lib support for Linux oldld, aout, or coff.
12145: linux*oldld* | linux*aout* | linux*coff*)
12146: dynamic_linker=no
12147: ;;
12148:
12149: # This must be glibc/ELF.
12150: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12151: version_type=linux # correct to gnu/linux during the next big refactor
12152: need_lib_prefix=no
12153: need_version=no
12154: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12155: soname_spec='${libname}${release}${shared_ext}$major'
12156: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12157: shlibpath_var=LD_LIBRARY_PATH
12158: shlibpath_overrides_runpath=no
12159:
12160: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 12161: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12162: $as_echo_n "(cached) " >&6
1.128 moko 12163: else
12164: lt_cv_shlibpath_overrides_runpath=no
12165: save_LDFLAGS=$LDFLAGS
12166: save_libdir=$libdir
12167: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12168: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 12169: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12170: /* end confdefs.h. */
12171:
12172: int
12173: main ()
12174: {
12175:
12176: ;
12177: return 0;
12178: }
12179: _ACEOF
1.150 moko 12180: if ac_fn_c_try_link "$LINENO"; then :
12181: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 12182: lt_cv_shlibpath_overrides_runpath=yes
12183: fi
12184: fi
1.150 moko 12185: rm -f core conftest.err conftest.$ac_objext \
12186: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12187: LDFLAGS=$save_LDFLAGS
12188: libdir=$save_libdir
12189:
12190: fi
12191:
12192: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12193:
12194: # This implies no fast_install, which is unacceptable.
12195: # Some rework will be needed to allow for fast_install
12196: # before this can be enabled.
12197: hardcode_into_libs=yes
12198:
12199: # Append ld.so.conf contents to the search path
12200: if test -f /etc/ld.so.conf; then
12201: 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' ' '`
12202: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12203: fi
12204:
12205: # We used to test for /lib/ld.so.1 and disable shared libraries on
12206: # powerpc, because MkLinux only supported shared libraries with the
12207: # GNU dynamic linker. Since this was broken with cross compilers,
12208: # most powerpc-linux boxes support dynamic linking these days and
12209: # people can always --disable-shared, the test was removed, and we
12210: # assume the GNU/Linux dynamic linker is in use.
12211: dynamic_linker='GNU/Linux ld.so'
12212: ;;
12213:
12214: netbsd*)
12215: version_type=sunos
12216: need_lib_prefix=no
12217: need_version=no
12218: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12219: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12220: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12221: dynamic_linker='NetBSD (a.out) ld.so'
12222: else
12223: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12224: soname_spec='${libname}${release}${shared_ext}$major'
12225: dynamic_linker='NetBSD ld.elf_so'
12226: fi
12227: shlibpath_var=LD_LIBRARY_PATH
12228: shlibpath_overrides_runpath=yes
12229: hardcode_into_libs=yes
12230: ;;
12231:
12232: newsos6)
12233: version_type=linux # correct to gnu/linux during the next big refactor
12234: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235: shlibpath_var=LD_LIBRARY_PATH
12236: shlibpath_overrides_runpath=yes
12237: ;;
12238:
12239: *nto* | *qnx*)
12240: version_type=qnx
12241: need_lib_prefix=no
12242: need_version=no
12243: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244: soname_spec='${libname}${release}${shared_ext}$major'
12245: shlibpath_var=LD_LIBRARY_PATH
12246: shlibpath_overrides_runpath=no
12247: hardcode_into_libs=yes
12248: dynamic_linker='ldqnx.so'
12249: ;;
12250:
12251: openbsd*)
12252: version_type=sunos
12253: sys_lib_dlsearch_path_spec="/usr/lib"
12254: need_lib_prefix=no
12255: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12256: case $host_os in
12257: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12258: *) need_version=no ;;
12259: esac
12260: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12261: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12262: shlibpath_var=LD_LIBRARY_PATH
12263: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12264: case $host_os in
12265: openbsd2.[89] | openbsd2.[89].*)
12266: shlibpath_overrides_runpath=no
12267: ;;
12268: *)
12269: shlibpath_overrides_runpath=yes
12270: ;;
12271: esac
12272: else
12273: shlibpath_overrides_runpath=yes
12274: fi
12275: ;;
12276:
12277: os2*)
12278: libname_spec='$name'
12279: shrext_cmds=".dll"
12280: need_lib_prefix=no
12281: library_names_spec='$libname${shared_ext} $libname.a'
12282: dynamic_linker='OS/2 ld.exe'
12283: shlibpath_var=LIBPATH
12284: ;;
12285:
12286: osf3* | osf4* | osf5*)
12287: version_type=osf
12288: need_lib_prefix=no
12289: need_version=no
12290: soname_spec='${libname}${release}${shared_ext}$major'
12291: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292: shlibpath_var=LD_LIBRARY_PATH
12293: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12294: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12295: ;;
12296:
12297: rdos*)
12298: dynamic_linker=no
12299: ;;
12300:
12301: solaris*)
12302: version_type=linux # correct to gnu/linux during the next big refactor
12303: need_lib_prefix=no
12304: need_version=no
12305: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306: soname_spec='${libname}${release}${shared_ext}$major'
12307: shlibpath_var=LD_LIBRARY_PATH
12308: shlibpath_overrides_runpath=yes
12309: hardcode_into_libs=yes
12310: # ldd complains unless libraries are executable
12311: postinstall_cmds='chmod +x $lib'
12312: ;;
12313:
12314: sunos4*)
12315: version_type=sunos
12316: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12317: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12318: shlibpath_var=LD_LIBRARY_PATH
12319: shlibpath_overrides_runpath=yes
12320: if test "$with_gnu_ld" = yes; then
12321: need_lib_prefix=no
12322: fi
12323: need_version=yes
12324: ;;
12325:
12326: sysv4 | sysv4.3*)
12327: version_type=linux # correct to gnu/linux during the next big refactor
12328: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329: soname_spec='${libname}${release}${shared_ext}$major'
12330: shlibpath_var=LD_LIBRARY_PATH
12331: case $host_vendor in
12332: sni)
12333: shlibpath_overrides_runpath=no
12334: need_lib_prefix=no
12335: runpath_var=LD_RUN_PATH
12336: ;;
12337: siemens)
12338: need_lib_prefix=no
12339: ;;
12340: motorola)
12341: need_lib_prefix=no
12342: need_version=no
12343: shlibpath_overrides_runpath=no
12344: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12345: ;;
12346: esac
12347: ;;
12348:
12349: sysv4*MP*)
12350: if test -d /usr/nec ;then
12351: version_type=linux # correct to gnu/linux during the next big refactor
12352: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12353: soname_spec='$libname${shared_ext}.$major'
12354: shlibpath_var=LD_LIBRARY_PATH
12355: fi
12356: ;;
12357:
12358: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12359: version_type=freebsd-elf
12360: need_lib_prefix=no
12361: need_version=no
12362: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12363: soname_spec='${libname}${release}${shared_ext}$major'
12364: shlibpath_var=LD_LIBRARY_PATH
12365: shlibpath_overrides_runpath=yes
12366: hardcode_into_libs=yes
12367: if test "$with_gnu_ld" = yes; then
12368: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12369: else
12370: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12371: case $host_os in
12372: sco3.2v5*)
12373: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12374: ;;
12375: esac
12376: fi
12377: sys_lib_dlsearch_path_spec='/usr/lib'
12378: ;;
12379:
12380: tpf*)
12381: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12382: version_type=linux # correct to gnu/linux during the next big refactor
12383: need_lib_prefix=no
12384: need_version=no
12385: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386: shlibpath_var=LD_LIBRARY_PATH
12387: shlibpath_overrides_runpath=no
12388: hardcode_into_libs=yes
12389: ;;
12390:
12391: uts4*)
12392: version_type=linux # correct to gnu/linux during the next big refactor
12393: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394: soname_spec='${libname}${release}${shared_ext}$major'
12395: shlibpath_var=LD_LIBRARY_PATH
12396: ;;
12397:
12398: *)
12399: dynamic_linker=no
12400: ;;
12401: esac
1.150 moko 12402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12403: $as_echo "$dynamic_linker" >&6; }
1.128 moko 12404: test "$dynamic_linker" = no && can_build_shared=no
12405:
12406: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12407: if test "$GCC" = yes; then
12408: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12409: fi
12410:
12411: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12412: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12413: fi
12414: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12415: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12416: fi
12417:
12418:
12419:
12420:
12421:
12422:
12423:
12424:
12425:
12426:
12427:
12428:
12429:
12430:
12431:
12432:
12433:
12434:
12435:
12436:
12437:
12438:
12439:
12440:
12441:
12442:
12443:
12444:
12445:
12446:
12447:
12448:
12449:
12450:
12451:
12452:
12453:
12454:
12455:
12456:
12457:
12458:
12459:
12460:
12461:
12462:
12463:
12464:
12465:
12466:
12467:
12468:
12469:
12470:
12471:
12472:
12473:
12474:
12475:
12476:
12477:
12478:
12479:
12480:
12481:
12482:
12483:
12484:
12485:
12486:
12487:
12488:
12489:
12490:
12491:
12492:
12493:
12494:
12495:
12496:
12497:
12498:
12499:
12500:
12501:
12502:
12503:
12504:
12505:
12506:
12507:
12508:
1.150 moko 12509: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12510: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 12511: hardcode_action=
12512: if test -n "$hardcode_libdir_flag_spec" ||
12513: test -n "$runpath_var" ||
12514: test "X$hardcode_automatic" = "Xyes" ; then
12515:
12516: # We can hardcode non-existent directories.
12517: if test "$hardcode_direct" != no &&
12518: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12519: # have to relink, otherwise we might link with an installed library
12520: # when we should be linking with a yet-to-be-installed one
12521: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12522: test "$hardcode_minus_L" != no; then
12523: # Linking always hardcodes the temporary library directory.
12524: hardcode_action=relink
12525: else
12526: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12527: hardcode_action=immediate
12528: fi
12529: else
12530: # We cannot hardcode anything, or else we can only hardcode existing
12531: # directories.
12532: hardcode_action=unsupported
12533: fi
1.150 moko 12534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12535: $as_echo "$hardcode_action" >&6; }
1.128 moko 12536:
12537: if test "$hardcode_action" = relink ||
12538: test "$inherit_rpath" = yes; then
12539: # Fast installation is not supported
12540: enable_fast_install=no
12541: elif test "$shlibpath_overrides_runpath" = yes ||
12542: test "$enable_shared" = no; then
12543: # Fast installation is not necessary
12544: enable_fast_install=needless
12545: fi
12546:
12547:
12548:
12549:
12550:
12551:
12552: if test "x$enable_dlopen" != xyes; then
12553: enable_dlopen=unknown
12554: enable_dlopen_self=unknown
12555: enable_dlopen_self_static=unknown
12556: else
12557: lt_cv_dlopen=no
12558: lt_cv_dlopen_libs=
12559:
12560: case $host_os in
12561: beos*)
12562: lt_cv_dlopen="load_add_on"
12563: lt_cv_dlopen_libs=
12564: lt_cv_dlopen_self=yes
12565: ;;
12566:
12567: mingw* | pw32* | cegcc*)
12568: lt_cv_dlopen="LoadLibrary"
12569: lt_cv_dlopen_libs=
12570: ;;
12571:
12572: cygwin*)
12573: lt_cv_dlopen="dlopen"
12574: lt_cv_dlopen_libs=
12575: ;;
12576:
12577: darwin*)
12578: # if libdl is installed we need to link against it
1.150 moko 12579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12580: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12581: if ${ac_cv_lib_dl_dlopen+:} false; then :
12582: $as_echo_n "(cached) " >&6
1.128 moko 12583: else
12584: ac_check_lib_save_LIBS=$LIBS
12585: LIBS="-ldl $LIBS"
1.150 moko 12586: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12587: /* end confdefs.h. */
12588:
1.150 moko 12589: /* Override any GCC internal prototype to avoid an error.
12590: Use char because int might match the return type of a GCC
12591: builtin and then its argument prototype would still apply. */
1.128 moko 12592: #ifdef __cplusplus
12593: extern "C"
12594: #endif
12595: char dlopen ();
12596: int
12597: main ()
12598: {
1.150 moko 12599: return dlopen ();
1.128 moko 12600: ;
12601: return 0;
12602: }
12603: _ACEOF
1.150 moko 12604: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12605: ac_cv_lib_dl_dlopen=yes
12606: else
1.150 moko 12607: ac_cv_lib_dl_dlopen=no
1.128 moko 12608: fi
1.150 moko 12609: rm -f core conftest.err conftest.$ac_objext \
12610: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12611: LIBS=$ac_check_lib_save_LIBS
12612: fi
1.150 moko 12613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12614: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12615: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12616: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12617: else
12618:
12619: lt_cv_dlopen="dyld"
12620: lt_cv_dlopen_libs=
12621: lt_cv_dlopen_self=yes
12622:
12623: fi
12624:
12625: ;;
12626:
12627: *)
1.150 moko 12628: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12629: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 12630: lt_cv_dlopen="shl_load"
12631: else
1.150 moko 12632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12633: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12634: if ${ac_cv_lib_dld_shl_load+:} false; then :
12635: $as_echo_n "(cached) " >&6
1.128 moko 12636: else
12637: ac_check_lib_save_LIBS=$LIBS
12638: LIBS="-ldld $LIBS"
1.150 moko 12639: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12640: /* end confdefs.h. */
12641:
1.150 moko 12642: /* Override any GCC internal prototype to avoid an error.
12643: Use char because int might match the return type of a GCC
12644: builtin and then its argument prototype would still apply. */
1.128 moko 12645: #ifdef __cplusplus
12646: extern "C"
12647: #endif
12648: char shl_load ();
12649: int
12650: main ()
12651: {
1.150 moko 12652: return shl_load ();
1.128 moko 12653: ;
12654: return 0;
12655: }
12656: _ACEOF
1.150 moko 12657: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12658: ac_cv_lib_dld_shl_load=yes
12659: else
1.150 moko 12660: ac_cv_lib_dld_shl_load=no
1.128 moko 12661: fi
1.150 moko 12662: rm -f core conftest.err conftest.$ac_objext \
12663: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12664: LIBS=$ac_check_lib_save_LIBS
12665: fi
1.150 moko 12666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12667: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12668: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.128 moko 12669: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12670: else
1.150 moko 12671: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12672: if test "x$ac_cv_func_dlopen" = xyes; then :
1.128 moko 12673: lt_cv_dlopen="dlopen"
12674: else
1.150 moko 12675: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12676: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12677: if ${ac_cv_lib_dl_dlopen+:} false; then :
12678: $as_echo_n "(cached) " >&6
1.128 moko 12679: else
12680: ac_check_lib_save_LIBS=$LIBS
12681: LIBS="-ldl $LIBS"
1.150 moko 12682: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12683: /* end confdefs.h. */
12684:
1.150 moko 12685: /* Override any GCC internal prototype to avoid an error.
12686: Use char because int might match the return type of a GCC
12687: builtin and then its argument prototype would still apply. */
1.128 moko 12688: #ifdef __cplusplus
12689: extern "C"
12690: #endif
12691: char dlopen ();
12692: int
12693: main ()
12694: {
1.150 moko 12695: return dlopen ();
1.128 moko 12696: ;
12697: return 0;
12698: }
12699: _ACEOF
1.150 moko 12700: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12701: ac_cv_lib_dl_dlopen=yes
12702: else
1.150 moko 12703: ac_cv_lib_dl_dlopen=no
1.128 moko 12704: fi
1.150 moko 12705: rm -f core conftest.err conftest.$ac_objext \
12706: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12707: LIBS=$ac_check_lib_save_LIBS
12708: fi
1.150 moko 12709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12710: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12711: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12712: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12713: else
1.150 moko 12714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12715: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12716: if ${ac_cv_lib_svld_dlopen+:} false; then :
12717: $as_echo_n "(cached) " >&6
1.128 moko 12718: else
12719: ac_check_lib_save_LIBS=$LIBS
12720: LIBS="-lsvld $LIBS"
1.150 moko 12721: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12722: /* end confdefs.h. */
12723:
1.150 moko 12724: /* Override any GCC internal prototype to avoid an error.
12725: Use char because int might match the return type of a GCC
12726: builtin and then its argument prototype would still apply. */
1.128 moko 12727: #ifdef __cplusplus
12728: extern "C"
12729: #endif
12730: char dlopen ();
12731: int
12732: main ()
12733: {
1.150 moko 12734: return dlopen ();
1.128 moko 12735: ;
12736: return 0;
12737: }
12738: _ACEOF
1.150 moko 12739: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12740: ac_cv_lib_svld_dlopen=yes
12741: else
1.150 moko 12742: ac_cv_lib_svld_dlopen=no
1.128 moko 12743: fi
1.150 moko 12744: rm -f core conftest.err conftest.$ac_objext \
12745: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12746: LIBS=$ac_check_lib_save_LIBS
12747: fi
1.150 moko 12748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12749: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12750: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 12751: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12752: else
1.150 moko 12753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12754: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12755: if ${ac_cv_lib_dld_dld_link+:} false; then :
12756: $as_echo_n "(cached) " >&6
1.128 moko 12757: else
12758: ac_check_lib_save_LIBS=$LIBS
12759: LIBS="-ldld $LIBS"
1.150 moko 12760: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12761: /* end confdefs.h. */
12762:
1.150 moko 12763: /* Override any GCC internal prototype to avoid an error.
12764: Use char because int might match the return type of a GCC
12765: builtin and then its argument prototype would still apply. */
1.128 moko 12766: #ifdef __cplusplus
12767: extern "C"
12768: #endif
12769: char dld_link ();
12770: int
12771: main ()
12772: {
1.150 moko 12773: return dld_link ();
1.128 moko 12774: ;
12775: return 0;
12776: }
12777: _ACEOF
1.150 moko 12778: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12779: ac_cv_lib_dld_dld_link=yes
12780: else
1.150 moko 12781: ac_cv_lib_dld_dld_link=no
12782: fi
12783: rm -f core conftest.err conftest.$ac_objext \
12784: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12785: LIBS=$ac_check_lib_save_LIBS
12786: fi
1.150 moko 12787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12788: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12789: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 12790: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12791: fi
12792:
12793:
12794: fi
12795:
12796:
12797: fi
12798:
12799:
12800: fi
12801:
12802:
12803: fi
12804:
12805:
12806: fi
12807:
12808: ;;
12809: esac
12810:
12811: if test "x$lt_cv_dlopen" != xno; then
12812: enable_dlopen=yes
12813: else
12814: enable_dlopen=no
12815: fi
12816:
12817: case $lt_cv_dlopen in
12818: dlopen)
12819: save_CPPFLAGS="$CPPFLAGS"
12820: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12821:
12822: save_LDFLAGS="$LDFLAGS"
12823: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12824:
12825: save_LIBS="$LIBS"
12826: LIBS="$lt_cv_dlopen_libs $LIBS"
12827:
1.150 moko 12828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12829: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12830: if ${lt_cv_dlopen_self+:} false; then :
12831: $as_echo_n "(cached) " >&6
1.128 moko 12832: else
12833: if test "$cross_compiling" = yes; then :
12834: lt_cv_dlopen_self=cross
12835: else
12836: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12837: lt_status=$lt_dlunknown
12838: cat > conftest.$ac_ext <<_LT_EOF
12839: #line $LINENO "configure"
12840: #include "confdefs.h"
12841:
12842: #if HAVE_DLFCN_H
12843: #include <dlfcn.h>
12844: #endif
12845:
12846: #include <stdio.h>
12847:
12848: #ifdef RTLD_GLOBAL
12849: # define LT_DLGLOBAL RTLD_GLOBAL
12850: #else
12851: # ifdef DL_GLOBAL
12852: # define LT_DLGLOBAL DL_GLOBAL
12853: # else
12854: # define LT_DLGLOBAL 0
12855: # endif
12856: #endif
12857:
12858: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12859: find out it does not work in some platform. */
12860: #ifndef LT_DLLAZY_OR_NOW
12861: # ifdef RTLD_LAZY
12862: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12863: # else
12864: # ifdef DL_LAZY
12865: # define LT_DLLAZY_OR_NOW DL_LAZY
12866: # else
12867: # ifdef RTLD_NOW
12868: # define LT_DLLAZY_OR_NOW RTLD_NOW
12869: # else
12870: # ifdef DL_NOW
12871: # define LT_DLLAZY_OR_NOW DL_NOW
12872: # else
12873: # define LT_DLLAZY_OR_NOW 0
12874: # endif
12875: # endif
12876: # endif
12877: # endif
12878: #endif
12879:
12880: /* When -fvisbility=hidden is used, assume the code has been annotated
12881: correspondingly for the symbols needed. */
12882: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12883: int fnord () __attribute__((visibility("default")));
12884: #endif
12885:
12886: int fnord () { return 42; }
12887: int main ()
12888: {
12889: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12890: int status = $lt_dlunknown;
12891:
12892: if (self)
12893: {
12894: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12895: else
12896: {
12897: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12898: else puts (dlerror ());
12899: }
12900: /* dlclose (self); */
12901: }
12902: else
12903: puts (dlerror ());
12904:
12905: return status;
12906: }
12907: _LT_EOF
1.150 moko 12908: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12909: (eval $ac_link) 2>&5
12910: ac_status=$?
1.150 moko 12911: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12912: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12913: (./conftest; exit; ) >&5 2>/dev/null
12914: lt_status=$?
12915: case x$lt_status in
12916: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12917: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12918: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12919: esac
12920: else :
12921: # compilation failed
12922: lt_cv_dlopen_self=no
12923: fi
12924: fi
12925: rm -fr conftest*
12926:
12927:
12928: fi
1.150 moko 12929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12930: $as_echo "$lt_cv_dlopen_self" >&6; }
1.128 moko 12931:
12932: if test "x$lt_cv_dlopen_self" = xyes; then
12933: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.150 moko 12934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12935: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12936: if ${lt_cv_dlopen_self_static+:} false; then :
12937: $as_echo_n "(cached) " >&6
1.128 moko 12938: else
12939: if test "$cross_compiling" = yes; then :
12940: lt_cv_dlopen_self_static=cross
12941: else
12942: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12943: lt_status=$lt_dlunknown
12944: cat > conftest.$ac_ext <<_LT_EOF
12945: #line $LINENO "configure"
12946: #include "confdefs.h"
12947:
12948: #if HAVE_DLFCN_H
12949: #include <dlfcn.h>
12950: #endif
12951:
12952: #include <stdio.h>
12953:
12954: #ifdef RTLD_GLOBAL
12955: # define LT_DLGLOBAL RTLD_GLOBAL
12956: #else
12957: # ifdef DL_GLOBAL
12958: # define LT_DLGLOBAL DL_GLOBAL
12959: # else
12960: # define LT_DLGLOBAL 0
12961: # endif
12962: #endif
12963:
12964: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12965: find out it does not work in some platform. */
12966: #ifndef LT_DLLAZY_OR_NOW
12967: # ifdef RTLD_LAZY
12968: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12969: # else
12970: # ifdef DL_LAZY
12971: # define LT_DLLAZY_OR_NOW DL_LAZY
12972: # else
12973: # ifdef RTLD_NOW
12974: # define LT_DLLAZY_OR_NOW RTLD_NOW
12975: # else
12976: # ifdef DL_NOW
12977: # define LT_DLLAZY_OR_NOW DL_NOW
12978: # else
12979: # define LT_DLLAZY_OR_NOW 0
12980: # endif
12981: # endif
12982: # endif
12983: # endif
12984: #endif
12985:
12986: /* When -fvisbility=hidden is used, assume the code has been annotated
12987: correspondingly for the symbols needed. */
12988: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12989: int fnord () __attribute__((visibility("default")));
12990: #endif
12991:
12992: int fnord () { return 42; }
12993: int main ()
12994: {
12995: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12996: int status = $lt_dlunknown;
12997:
12998: if (self)
12999: {
13000: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13001: else
13002: {
13003: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13004: else puts (dlerror ());
13005: }
13006: /* dlclose (self); */
13007: }
13008: else
13009: puts (dlerror ());
13010:
13011: return status;
13012: }
13013: _LT_EOF
1.150 moko 13014: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 13015: (eval $ac_link) 2>&5
13016: ac_status=$?
1.150 moko 13017: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13018: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 13019: (./conftest; exit; ) >&5 2>/dev/null
13020: lt_status=$?
13021: case x$lt_status in
13022: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13023: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13024: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13025: esac
13026: else :
13027: # compilation failed
13028: lt_cv_dlopen_self_static=no
13029: fi
13030: fi
13031: rm -fr conftest*
13032:
13033:
13034: fi
1.150 moko 13035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13036: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 13037: fi
13038:
13039: CPPFLAGS="$save_CPPFLAGS"
13040: LDFLAGS="$save_LDFLAGS"
13041: LIBS="$save_LIBS"
13042: ;;
13043: esac
13044:
13045: case $lt_cv_dlopen_self in
13046: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13047: *) enable_dlopen_self=unknown ;;
13048: esac
13049:
13050: case $lt_cv_dlopen_self_static in
13051: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13052: *) enable_dlopen_self_static=unknown ;;
13053: esac
13054: fi
13055:
13056:
13057:
13058:
13059:
13060:
13061:
13062:
13063:
13064:
13065:
13066:
13067:
13068:
13069:
13070:
13071:
13072: striplib=
13073: old_striplib=
1.150 moko 13074: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13075: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.128 moko 13076: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13077: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13078: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.150 moko 13079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080: $as_echo "yes" >&6; }
1.128 moko 13081: else
13082: # FIXME - insert some real tests, host_os isn't really good enough
13083: case $host_os in
13084: darwin*)
13085: if test -n "$STRIP" ; then
13086: striplib="$STRIP -x"
13087: old_striplib="$STRIP -S"
1.150 moko 13088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13089: $as_echo "yes" >&6; }
1.128 moko 13090: else
1.150 moko 13091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092: $as_echo "no" >&6; }
1.128 moko 13093: fi
13094: ;;
13095: *)
1.150 moko 13096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097: $as_echo "no" >&6; }
1.128 moko 13098: ;;
13099: esac
13100: fi
13101:
13102:
13103:
13104:
13105:
13106:
13107:
13108:
13109:
13110:
13111:
13112:
13113: # Report which library types will actually be built
1.150 moko 13114: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13115: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13117: $as_echo "$can_build_shared" >&6; }
1.128 moko 13118:
1.150 moko 13119: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13120: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.128 moko 13121: test "$can_build_shared" = "no" && enable_shared=no
13122:
13123: # On AIX, shared libraries and static libraries use the same namespace, and
13124: # are all built from PIC.
13125: case $host_os in
13126: aix3*)
13127: test "$enable_shared" = yes && enable_static=no
13128: if test -n "$RANLIB"; then
13129: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13130: postinstall_cmds='$RANLIB $lib'
13131: fi
13132: ;;
13133:
13134: aix[4-9]*)
13135: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13136: test "$enable_shared" = yes && enable_static=no
13137: fi
13138: ;;
13139: esac
1.150 moko 13140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13141: $as_echo "$enable_shared" >&6; }
1.128 moko 13142:
1.150 moko 13143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13144: $as_echo_n "checking whether to build static libraries... " >&6; }
1.128 moko 13145: # Make sure either enable_shared or enable_static is yes.
13146: test "$enable_shared" = yes || enable_static=yes
1.150 moko 13147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13148: $as_echo "$enable_static" >&6; }
1.128 moko 13149:
13150:
13151:
13152:
13153: fi
13154: ac_ext=c
13155: ac_cpp='$CPP $CPPFLAGS'
13156: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13159:
13160: CC="$lt_save_CC"
13161:
13162: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13163: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13164: (test "X$CXX" != "Xg++"))) ; then
1.150 moko 13165: ac_ext=cpp
1.128 moko 13166: ac_cpp='$CXXCPP $CPPFLAGS'
13167: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 13170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13171: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 13172: if test -z "$CXXCPP"; then
1.150 moko 13173: if ${ac_cv_prog_CXXCPP+:} false; then :
13174: $as_echo_n "(cached) " >&6
1.128 moko 13175: else
13176: # Double quotes because CXXCPP needs to be expanded
13177: for CXXCPP in "$CXX -E" "/lib/cpp"
13178: do
13179: ac_preproc_ok=false
13180: for ac_cxx_preproc_warn_flag in '' yes
13181: do
13182: # Use a header file that comes with gcc, so configuring glibc
13183: # with a fresh cross-compiler works.
13184: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13185: # <limits.h> exists even on freestanding compilers.
13186: # On the NeXT, cc -E runs the code through the compiler's parser,
13187: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13188: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13189: /* end confdefs.h. */
13190: #ifdef __STDC__
13191: # include <limits.h>
13192: #else
13193: # include <assert.h>
13194: #endif
13195: Syntax error
13196: _ACEOF
1.150 moko 13197: if ac_fn_cxx_try_cpp "$LINENO"; then :
13198:
1.128 moko 13199: else
13200: # Broken: fails on valid input.
13201: continue
13202: fi
1.150 moko 13203: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13204:
1.150 moko 13205: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13206: # can be detected and how.
1.150 moko 13207: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13208: /* end confdefs.h. */
13209: #include <ac_nonexistent.h>
13210: _ACEOF
1.150 moko 13211: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13212: # Broken: success on invalid input.
13213: continue
13214: else
13215: # Passes both tests.
13216: ac_preproc_ok=:
13217: break
13218: fi
1.150 moko 13219: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13220:
13221: done
13222: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13223: rm -f conftest.i conftest.err conftest.$ac_ext
13224: if $ac_preproc_ok; then :
1.128 moko 13225: break
13226: fi
13227:
13228: done
13229: ac_cv_prog_CXXCPP=$CXXCPP
13230:
13231: fi
13232: CXXCPP=$ac_cv_prog_CXXCPP
13233: else
13234: ac_cv_prog_CXXCPP=$CXXCPP
13235: fi
1.150 moko 13236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13237: $as_echo "$CXXCPP" >&6; }
1.128 moko 13238: ac_preproc_ok=false
13239: for ac_cxx_preproc_warn_flag in '' yes
13240: do
13241: # Use a header file that comes with gcc, so configuring glibc
13242: # with a fresh cross-compiler works.
13243: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13244: # <limits.h> exists even on freestanding compilers.
13245: # On the NeXT, cc -E runs the code through the compiler's parser,
13246: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13247: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13248: /* end confdefs.h. */
13249: #ifdef __STDC__
13250: # include <limits.h>
13251: #else
13252: # include <assert.h>
13253: #endif
13254: Syntax error
13255: _ACEOF
1.150 moko 13256: if ac_fn_cxx_try_cpp "$LINENO"; then :
13257:
1.128 moko 13258: else
13259: # Broken: fails on valid input.
13260: continue
13261: fi
1.150 moko 13262: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13263:
1.150 moko 13264: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13265: # can be detected and how.
1.150 moko 13266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13267: /* end confdefs.h. */
13268: #include <ac_nonexistent.h>
13269: _ACEOF
1.150 moko 13270: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13271: # Broken: success on invalid input.
13272: continue
13273: else
13274: # Passes both tests.
13275: ac_preproc_ok=:
13276: break
13277: fi
1.150 moko 13278: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13279:
13280: done
13281: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13282: rm -f conftest.i conftest.err conftest.$ac_ext
13283: if $ac_preproc_ok; then :
13284:
1.128 moko 13285: else
1.150 moko 13286: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13287: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13288: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13289: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 13290: fi
13291:
13292: ac_ext=c
13293: ac_cpp='$CPP $CPPFLAGS'
13294: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13295: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13296: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13297:
13298: else
13299: _lt_caught_CXX_error=yes
13300: fi
13301:
1.150 moko 13302: ac_ext=cpp
1.128 moko 13303: ac_cpp='$CXXCPP $CPPFLAGS'
13304: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13305: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13306: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13307:
13308: archive_cmds_need_lc_CXX=no
13309: allow_undefined_flag_CXX=
13310: always_export_symbols_CXX=no
13311: archive_expsym_cmds_CXX=
13312: compiler_needs_object_CXX=no
13313: export_dynamic_flag_spec_CXX=
13314: hardcode_direct_CXX=no
13315: hardcode_direct_absolute_CXX=no
13316: hardcode_libdir_flag_spec_CXX=
13317: hardcode_libdir_separator_CXX=
13318: hardcode_minus_L_CXX=no
13319: hardcode_shlibpath_var_CXX=unsupported
13320: hardcode_automatic_CXX=no
13321: inherit_rpath_CXX=no
13322: module_cmds_CXX=
13323: module_expsym_cmds_CXX=
13324: link_all_deplibs_CXX=unknown
13325: old_archive_cmds_CXX=$old_archive_cmds
13326: reload_flag_CXX=$reload_flag
13327: reload_cmds_CXX=$reload_cmds
13328: no_undefined_flag_CXX=
13329: whole_archive_flag_spec_CXX=
13330: enable_shared_with_static_runtimes_CXX=no
13331:
13332: # Source file extension for C++ test sources.
13333: ac_ext=cpp
13334:
13335: # Object file extension for compiled C++ test sources.
13336: objext=o
13337: objext_CXX=$objext
13338:
13339: # No sense in running all these tests if we already determined that
13340: # the CXX compiler isn't working. Some variables (like enable_shared)
13341: # are currently assumed to apply to all compilers on this platform,
13342: # and will be corrupted by setting them based on a non-working compiler.
13343: if test "$_lt_caught_CXX_error" != yes; then
13344: # Code to be used in simple compile tests
13345: lt_simple_compile_test_code="int some_variable = 0;"
13346:
13347: # Code to be used in simple link tests
13348: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13349:
13350: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13351:
13352:
13353:
13354:
13355:
13356:
13357: # If no C compiler was specified, use CC.
13358: LTCC=${LTCC-"$CC"}
13359:
13360: # If no C compiler flags were specified, use CFLAGS.
13361: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13362:
13363: # Allow CC to be a program name with arguments.
13364: compiler=$CC
13365:
13366:
13367: # save warnings/boilerplate of simple test code
13368: ac_outfile=conftest.$ac_objext
13369: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13370: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13371: _lt_compiler_boilerplate=`cat conftest.err`
13372: $RM conftest*
13373:
13374: ac_outfile=conftest.$ac_objext
13375: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13376: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13377: _lt_linker_boilerplate=`cat conftest.err`
13378: $RM -r conftest*
13379:
13380:
13381: # Allow CC to be a program name with arguments.
13382: lt_save_CC=$CC
13383: lt_save_CFLAGS=$CFLAGS
13384: lt_save_LD=$LD
13385: lt_save_GCC=$GCC
13386: GCC=$GXX
13387: lt_save_with_gnu_ld=$with_gnu_ld
13388: lt_save_path_LD=$lt_cv_path_LD
13389: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13390: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13391: else
13392: $as_unset lt_cv_prog_gnu_ld
13393: fi
13394: if test -n "${lt_cv_path_LDCXX+set}"; then
13395: lt_cv_path_LD=$lt_cv_path_LDCXX
13396: else
13397: $as_unset lt_cv_path_LD
13398: fi
13399: test -z "${LDCXX+set}" || LD=$LDCXX
13400: CC=${CXX-"c++"}
13401: CFLAGS=$CXXFLAGS
13402: compiler=$CC
13403: compiler_CXX=$CC
13404: for cc_temp in $compiler""; do
13405: case $cc_temp in
13406: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13407: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13408: \-*) ;;
13409: *) break;;
13410: esac
13411: done
13412: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13413:
13414:
13415: if test -n "$compiler"; then
13416: # We don't want -fno-exception when compiling C++ code, so set the
13417: # no_builtin_flag separately
13418: if test "$GXX" = yes; then
13419: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13420: else
13421: lt_prog_compiler_no_builtin_flag_CXX=
13422: fi
13423:
13424: if test "$GXX" = yes; then
13425: # Set up default GNU C++ configuration
13426:
13427:
13428:
1.150 moko 13429: # Check whether --with-gnu-ld was given.
13430: if test "${with_gnu_ld+set}" = set; then :
13431: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 13432: else
13433: with_gnu_ld=no
1.150 moko 13434: fi
13435:
1.128 moko 13436: ac_prog=ld
13437: if test "$GCC" = yes; then
13438: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 13439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13440: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 13441: case $host in
13442: *-*-mingw*)
13443: # gcc leaves a trailing carriage return which upsets mingw
13444: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13445: *)
13446: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13447: esac
13448: case $ac_prog in
13449: # Accept absolute paths.
13450: [\\/]* | ?:[\\/]*)
13451: re_direlt='/[^/][^/]*/\.\./'
13452: # Canonicalize the pathname of ld
13453: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13454: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13455: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13456: done
13457: test -z "$LD" && LD="$ac_prog"
13458: ;;
13459: "")
13460: # If it fails, then pretend we aren't using GCC.
13461: ac_prog=ld
13462: ;;
13463: *)
13464: # If it is relative, then search for the first ld in PATH.
13465: with_gnu_ld=unknown
13466: ;;
13467: esac
13468: elif test "$with_gnu_ld" = yes; then
1.150 moko 13469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13470: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 13471: else
1.150 moko 13472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13473: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 13474: fi
1.150 moko 13475: if ${lt_cv_path_LD+:} false; then :
13476: $as_echo_n "(cached) " >&6
1.128 moko 13477: else
13478: if test -z "$LD"; then
13479: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13480: for ac_dir in $PATH; do
13481: IFS="$lt_save_ifs"
13482: test -z "$ac_dir" && ac_dir=.
13483: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13484: lt_cv_path_LD="$ac_dir/$ac_prog"
13485: # Check to see if the program is GNU ld. I'd rather use --version,
13486: # but apparently some variants of GNU ld only accept -v.
13487: # Break only if it was the GNU/non-GNU ld that we prefer.
13488: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13489: *GNU* | *'with BFD'*)
13490: test "$with_gnu_ld" != no && break
13491: ;;
13492: *)
13493: test "$with_gnu_ld" != yes && break
13494: ;;
13495: esac
13496: fi
13497: done
13498: IFS="$lt_save_ifs"
13499: else
13500: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13501: fi
13502: fi
13503:
13504: LD="$lt_cv_path_LD"
13505: if test -n "$LD"; then
1.150 moko 13506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13507: $as_echo "$LD" >&6; }
1.128 moko 13508: else
1.150 moko 13509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510: $as_echo "no" >&6; }
1.128 moko 13511: fi
1.150 moko 13512: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13514: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13515: if ${lt_cv_prog_gnu_ld+:} false; then :
13516: $as_echo_n "(cached) " >&6
1.128 moko 13517: else
13518: # I'd rather use --version here, but apparently some GNU lds only accept -v.
13519: case `$LD -v 2>&1 </dev/null` in
13520: *GNU* | *'with BFD'*)
13521: lt_cv_prog_gnu_ld=yes
13522: ;;
13523: *)
13524: lt_cv_prog_gnu_ld=no
13525: ;;
13526: esac
13527: fi
1.150 moko 13528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13529: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 13530: with_gnu_ld=$lt_cv_prog_gnu_ld
13531:
13532:
13533:
13534:
13535:
13536:
13537:
13538: # Check if GNU C++ uses GNU ld as the underlying linker, since the
13539: # archiving commands below assume that GNU ld is being used.
13540: if test "$with_gnu_ld" = yes; then
13541: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13542: 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'
13543:
13544: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13545: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13546:
13547: # If archive_cmds runs LD, not CC, wlarc should be empty
13548: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13549: # investigate it a little bit more. (MM)
13550: wlarc='${wl}'
13551:
13552: # ancient GNU ld didn't support --whole-archive et. al.
13553: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13554: $GREP 'no-whole-archive' > /dev/null; then
13555: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13556: else
13557: whole_archive_flag_spec_CXX=
13558: fi
13559: else
13560: with_gnu_ld=no
13561: wlarc=
13562:
13563: # A generic and very simple default shared library creation
13564: # command for GNU C++ for the case where it uses the native
13565: # linker, instead of GNU ld. If possible, this setting should
13566: # overridden to take advantage of the native linker features on
13567: # the platform it is being used on.
13568: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13569: fi
13570:
13571: # Commands to make compiler produce verbose output that lists
13572: # what "hidden" libraries, object files and flags are used when
13573: # linking a shared library.
13574: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13575:
13576: else
13577: GXX=no
13578: with_gnu_ld=no
13579: wlarc=
13580: fi
13581:
13582: # PORTME: fill in a description of your system's C++ link characteristics
1.150 moko 13583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13584: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 13585: ld_shlibs_CXX=yes
13586: case $host_os in
13587: aix3*)
13588: # FIXME: insert proper C++ library support
13589: ld_shlibs_CXX=no
13590: ;;
13591: aix[4-9]*)
13592: if test "$host_cpu" = ia64; then
13593: # On IA64, the linker does run time linking by default, so we don't
13594: # have to do anything special.
13595: aix_use_runtimelinking=no
13596: exp_sym_flag='-Bexport'
13597: no_entry_flag=""
13598: else
13599: aix_use_runtimelinking=no
13600:
13601: # Test if we are trying to use run time linking or normal
13602: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13603: # need to do runtime linking.
13604: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13605: for ld_flag in $LDFLAGS; do
13606: case $ld_flag in
13607: *-brtl*)
13608: aix_use_runtimelinking=yes
13609: break
13610: ;;
13611: esac
13612: done
13613: ;;
13614: esac
13615:
13616: exp_sym_flag='-bexport'
13617: no_entry_flag='-bnoentry'
13618: fi
13619:
13620: # When large executables or shared objects are built, AIX ld can
13621: # have problems creating the table of contents. If linking a library
13622: # or program results in "error TOC overflow" add -mminimal-toc to
13623: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13624: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13625:
13626: archive_cmds_CXX=''
13627: hardcode_direct_CXX=yes
13628: hardcode_direct_absolute_CXX=yes
13629: hardcode_libdir_separator_CXX=':'
13630: link_all_deplibs_CXX=yes
13631: file_list_spec_CXX='${wl}-f,'
13632:
13633: if test "$GXX" = yes; then
13634: case $host_os in aix4.[012]|aix4.[012].*)
13635: # We only want to do this on AIX 4.2 and lower, the check
13636: # below for broken collect2 doesn't work under 4.3+
13637: collect2name=`${CC} -print-prog-name=collect2`
13638: if test -f "$collect2name" &&
13639: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13640: then
13641: # We have reworked collect2
13642: :
13643: else
13644: # We have old collect2
13645: hardcode_direct_CXX=unsupported
13646: # It fails to find uninstalled libraries when the uninstalled
13647: # path is not listed in the libpath. Setting hardcode_minus_L
13648: # to unsupported forces relinking
13649: hardcode_minus_L_CXX=yes
13650: hardcode_libdir_flag_spec_CXX='-L$libdir'
13651: hardcode_libdir_separator_CXX=
13652: fi
13653: esac
13654: shared_flag='-shared'
13655: if test "$aix_use_runtimelinking" = yes; then
13656: shared_flag="$shared_flag "'${wl}-G'
13657: fi
13658: else
13659: # not using gcc
13660: if test "$host_cpu" = ia64; then
13661: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13662: # chokes on -Wl,-G. The following line is correct:
13663: shared_flag='-G'
13664: else
13665: if test "$aix_use_runtimelinking" = yes; then
13666: shared_flag='${wl}-G'
13667: else
13668: shared_flag='${wl}-bM:SRE'
13669: fi
13670: fi
13671: fi
13672:
13673: export_dynamic_flag_spec_CXX='${wl}-bexpall'
13674: # It seems that -bexpall does not export symbols beginning with
13675: # underscore (_), so it is better to generate a list of symbols to
13676: # export.
13677: always_export_symbols_CXX=yes
13678: if test "$aix_use_runtimelinking" = yes; then
13679: # Warning - without using the other runtime loading flags (-brtl),
13680: # -berok will link without error, but may produce a broken library.
13681: allow_undefined_flag_CXX='-berok'
13682: # Determine the default libpath from the value encoded in an empty
13683: # executable.
13684: if test "${lt_cv_aix_libpath+set}" = set; then
13685: aix_libpath=$lt_cv_aix_libpath
13686: else
1.150 moko 13687: if ${lt_cv_aix_libpath__CXX+:} false; then :
13688: $as_echo_n "(cached) " >&6
1.128 moko 13689: else
1.150 moko 13690: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13691: /* end confdefs.h. */
13692:
13693: int
13694: main ()
13695: {
13696:
13697: ;
13698: return 0;
13699: }
13700: _ACEOF
1.150 moko 13701: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13702:
13703: lt_aix_libpath_sed='
13704: /Import File Strings/,/^$/ {
13705: /^0/ {
13706: s/^0 *\([^ ]*\) *$/\1/
13707: p
13708: }
13709: }'
13710: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13711: # Check for a 64-bit object if we didn't find anything.
13712: if test -z "$lt_cv_aix_libpath__CXX"; then
13713: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13714: fi
13715: fi
1.150 moko 13716: rm -f core conftest.err conftest.$ac_objext \
13717: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13718: if test -z "$lt_cv_aix_libpath__CXX"; then
13719: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13720: fi
13721:
13722: fi
13723:
13724: aix_libpath=$lt_cv_aix_libpath__CXX
13725: fi
13726:
13727: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13728:
13729: 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"
13730: else
13731: if test "$host_cpu" = ia64; then
13732: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13733: allow_undefined_flag_CXX="-z nodefs"
13734: 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"
13735: else
13736: # Determine the default libpath from the value encoded in an
13737: # empty executable.
13738: if test "${lt_cv_aix_libpath+set}" = set; then
13739: aix_libpath=$lt_cv_aix_libpath
13740: else
1.150 moko 13741: if ${lt_cv_aix_libpath__CXX+:} false; then :
13742: $as_echo_n "(cached) " >&6
1.128 moko 13743: else
1.150 moko 13744: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13745: /* end confdefs.h. */
13746:
13747: int
13748: main ()
13749: {
13750:
13751: ;
13752: return 0;
13753: }
13754: _ACEOF
1.150 moko 13755: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13756:
13757: lt_aix_libpath_sed='
13758: /Import File Strings/,/^$/ {
13759: /^0/ {
13760: s/^0 *\([^ ]*\) *$/\1/
13761: p
13762: }
13763: }'
13764: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13765: # Check for a 64-bit object if we didn't find anything.
13766: if test -z "$lt_cv_aix_libpath__CXX"; then
13767: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13768: fi
13769: fi
1.150 moko 13770: rm -f core conftest.err conftest.$ac_objext \
13771: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13772: if test -z "$lt_cv_aix_libpath__CXX"; then
13773: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13774: fi
13775:
13776: fi
13777:
13778: aix_libpath=$lt_cv_aix_libpath__CXX
13779: fi
13780:
13781: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13782: # Warning - without using the other run time loading flags,
13783: # -berok will link without error, but may produce a broken library.
13784: no_undefined_flag_CXX=' ${wl}-bernotok'
13785: allow_undefined_flag_CXX=' ${wl}-berok'
13786: if test "$with_gnu_ld" = yes; then
13787: # We only use this code for GNU lds that support --whole-archive.
13788: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13789: else
13790: # Exported symbols can be pulled into shared objects from archives
13791: whole_archive_flag_spec_CXX='$convenience'
13792: fi
13793: archive_cmds_need_lc_CXX=yes
13794: # This is similar to how AIX traditionally builds its shared
13795: # libraries.
13796: 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'
13797: fi
13798: fi
13799: ;;
13800:
13801: beos*)
13802: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13803: allow_undefined_flag_CXX=unsupported
13804: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13805: # support --undefined. This deserves some investigation. FIXME
13806: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13807: else
13808: ld_shlibs_CXX=no
13809: fi
13810: ;;
13811:
13812: chorus*)
13813: case $cc_basename in
13814: *)
13815: # FIXME: insert proper C++ library support
13816: ld_shlibs_CXX=no
13817: ;;
13818: esac
13819: ;;
13820:
13821: cygwin* | mingw* | pw32* | cegcc*)
13822: case $GXX,$cc_basename in
13823: ,cl* | no,cl*)
13824: # Native MSVC
13825: # hardcode_libdir_flag_spec is actually meaningless, as there is
13826: # no search path for DLLs.
13827: hardcode_libdir_flag_spec_CXX=' '
13828: allow_undefined_flag_CXX=unsupported
13829: always_export_symbols_CXX=yes
13830: file_list_spec_CXX='@'
13831: # Tell ltmain to make .lib files, not .a files.
13832: libext=lib
13833: # Tell ltmain to make .dll files, not .so files.
13834: shrext_cmds=".dll"
13835: # FIXME: Setting linknames here is a bad hack.
13836: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13837: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13838: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13839: else
13840: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13841: fi~
13842: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13843: linknames='
13844: # The linker will not automatically build a static lib if we build a DLL.
13845: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13846: enable_shared_with_static_runtimes_CXX=yes
13847: # Don't use ranlib
13848: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13849: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13850: lt_tool_outputfile="@TOOL_OUTPUT@"~
13851: case $lt_outputfile in
13852: *.exe|*.EXE) ;;
13853: *)
13854: lt_outputfile="$lt_outputfile.exe"
13855: lt_tool_outputfile="$lt_tool_outputfile.exe"
13856: ;;
13857: esac~
13858: func_to_tool_file "$lt_outputfile"~
13859: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13860: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13861: $RM "$lt_outputfile.manifest";
13862: fi'
13863: ;;
13864: *)
13865: # g++
13866: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13867: # as there is no search path for DLLs.
13868: hardcode_libdir_flag_spec_CXX='-L$libdir'
13869: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13870: allow_undefined_flag_CXX=unsupported
13871: always_export_symbols_CXX=no
13872: enable_shared_with_static_runtimes_CXX=yes
13873:
13874: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13875: 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'
13876: # If the export-symbols file already is a .def file (1st line
13877: # is EXPORTS), use it as is; otherwise, prepend...
13878: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13879: cp $export_symbols $output_objdir/$soname.def;
13880: else
13881: echo EXPORTS > $output_objdir/$soname.def;
13882: cat $export_symbols >> $output_objdir/$soname.def;
13883: fi~
13884: $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'
13885: else
13886: ld_shlibs_CXX=no
13887: fi
13888: ;;
13889: esac
13890: ;;
13891: darwin* | rhapsody*)
13892:
13893:
13894: archive_cmds_need_lc_CXX=no
13895: hardcode_direct_CXX=no
13896: hardcode_automatic_CXX=yes
13897: hardcode_shlibpath_var_CXX=unsupported
13898: if test "$lt_cv_ld_force_load" = "yes"; then
13899: 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\"`'
13900:
13901: else
13902: whole_archive_flag_spec_CXX=''
13903: fi
13904: link_all_deplibs_CXX=yes
13905: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13906: case $cc_basename in
13907: ifort*) _lt_dar_can_shared=yes ;;
13908: *) _lt_dar_can_shared=$GCC ;;
13909: esac
13910: if test "$_lt_dar_can_shared" = "yes"; then
13911: output_verbose_link_cmd=func_echo_all
13912: 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}"
13913: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13914: 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}"
13915: 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}"
13916: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13917: 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}"
13918: 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}"
13919: fi
13920:
13921: else
13922: ld_shlibs_CXX=no
13923: fi
13924:
13925: ;;
13926:
13927: dgux*)
13928: case $cc_basename in
13929: ec++*)
13930: # FIXME: insert proper C++ library support
13931: ld_shlibs_CXX=no
13932: ;;
13933: ghcx*)
13934: # Green Hills C++ Compiler
13935: # FIXME: insert proper C++ library support
13936: ld_shlibs_CXX=no
13937: ;;
13938: *)
13939: # FIXME: insert proper C++ library support
13940: ld_shlibs_CXX=no
13941: ;;
13942: esac
13943: ;;
13944:
13945: freebsd2.*)
13946: # C++ shared libraries reported to be fairly broken before
13947: # switch to ELF
13948: ld_shlibs_CXX=no
13949: ;;
13950:
13951: freebsd-elf*)
13952: archive_cmds_need_lc_CXX=no
13953: ;;
13954:
13955: freebsd* | dragonfly*)
13956: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13957: # conventions
13958: ld_shlibs_CXX=yes
13959: ;;
13960:
13961: gnu*)
13962: ;;
13963:
13964: haiku*)
13965: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13966: link_all_deplibs_CXX=yes
13967: ;;
13968:
13969: hpux9*)
13970: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13971: hardcode_libdir_separator_CXX=:
13972: export_dynamic_flag_spec_CXX='${wl}-E'
13973: hardcode_direct_CXX=yes
13974: hardcode_minus_L_CXX=yes # Not in the search PATH,
13975: # but as the default
13976: # location of the library.
13977:
13978: case $cc_basename in
13979: CC*)
13980: # FIXME: insert proper C++ library support
13981: ld_shlibs_CXX=no
13982: ;;
13983: aCC*)
13984: 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'
13985: # Commands to make compiler produce verbose output that lists
13986: # what "hidden" libraries, object files and flags are used when
13987: # linking a shared library.
13988: #
13989: # There doesn't appear to be a way to prevent this compiler from
13990: # explicitly linking system object files so we need to strip them
13991: # from the output so that they don't get included in the library
13992: # dependencies.
13993: 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"'
13994: ;;
13995: *)
13996: if test "$GXX" = yes; then
13997: 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'
13998: else
13999: # FIXME: insert proper C++ library support
14000: ld_shlibs_CXX=no
14001: fi
14002: ;;
14003: esac
14004: ;;
14005:
14006: hpux10*|hpux11*)
14007: if test $with_gnu_ld = no; then
14008: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14009: hardcode_libdir_separator_CXX=:
14010:
14011: case $host_cpu in
14012: hppa*64*|ia64*)
14013: ;;
14014: *)
14015: export_dynamic_flag_spec_CXX='${wl}-E'
14016: ;;
14017: esac
14018: fi
14019: case $host_cpu in
14020: hppa*64*|ia64*)
14021: hardcode_direct_CXX=no
14022: hardcode_shlibpath_var_CXX=no
14023: ;;
14024: *)
14025: hardcode_direct_CXX=yes
14026: hardcode_direct_absolute_CXX=yes
14027: hardcode_minus_L_CXX=yes # Not in the search PATH,
14028: # but as the default
14029: # location of the library.
14030: ;;
14031: esac
14032:
14033: case $cc_basename in
14034: CC*)
14035: # FIXME: insert proper C++ library support
14036: ld_shlibs_CXX=no
14037: ;;
14038: aCC*)
14039: case $host_cpu in
14040: hppa*64*)
14041: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14042: ;;
14043: ia64*)
14044: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14045: ;;
14046: *)
14047: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14048: ;;
14049: esac
14050: # Commands to make compiler produce verbose output that lists
14051: # what "hidden" libraries, object files and flags are used when
14052: # linking a shared library.
14053: #
14054: # There doesn't appear to be a way to prevent this compiler from
14055: # explicitly linking system object files so we need to strip them
14056: # from the output so that they don't get included in the library
14057: # dependencies.
14058: 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"'
14059: ;;
14060: *)
14061: if test "$GXX" = yes; then
14062: if test $with_gnu_ld = no; then
14063: case $host_cpu in
14064: hppa*64*)
14065: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14066: ;;
14067: ia64*)
14068: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14069: ;;
14070: *)
14071: 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'
14072: ;;
14073: esac
14074: fi
14075: else
14076: # FIXME: insert proper C++ library support
14077: ld_shlibs_CXX=no
14078: fi
14079: ;;
14080: esac
14081: ;;
14082:
14083: interix[3-9]*)
14084: hardcode_direct_CXX=no
14085: hardcode_shlibpath_var_CXX=no
14086: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14087: export_dynamic_flag_spec_CXX='${wl}-E'
14088: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14089: # Instead, shared libraries are loaded at an image base (0x10000000 by
14090: # default) and relocated if they conflict, which is a slow very memory
14091: # consuming and fragmenting process. To avoid this, we pick a random,
14092: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14093: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14094: 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'
14095: 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'
14096: ;;
14097: irix5* | irix6*)
14098: case $cc_basename in
14099: CC*)
14100: # SGI C++
14101: 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'
14102:
14103: # Archives containing C++ object files must be created using
14104: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14105: # necessary to make sure instantiated templates are included
14106: # in the archive.
14107: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14108: ;;
14109: *)
14110: if test "$GXX" = yes; then
14111: if test "$with_gnu_ld" = no; then
14112: 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'
14113: else
14114: 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'
14115: fi
14116: fi
14117: link_all_deplibs_CXX=yes
14118: ;;
14119: esac
14120: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14121: hardcode_libdir_separator_CXX=:
14122: inherit_rpath_CXX=yes
14123: ;;
14124:
14125: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14126: case $cc_basename in
14127: KCC*)
14128: # Kuck and Associates, Inc. (KAI) C++ Compiler
14129:
14130: # KCC will only create a shared library if the output file
14131: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14132: # to its proper name (with version) after linking.
14133: 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'
14134: 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'
14135: # Commands to make compiler produce verbose output that lists
14136: # what "hidden" libraries, object files and flags are used when
14137: # linking a shared library.
14138: #
14139: # There doesn't appear to be a way to prevent this compiler from
14140: # explicitly linking system object files so we need to strip them
14141: # from the output so that they don't get included in the library
14142: # dependencies.
14143: 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"'
14144:
14145: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14146: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14147:
14148: # Archives containing C++ object files must be created using
14149: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14150: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14151: ;;
14152: icpc* | ecpc* )
14153: # Intel C++
14154: with_gnu_ld=yes
14155: # version 8.0 and above of icpc choke on multiply defined symbols
14156: # if we add $predep_objects and $postdep_objects, however 7.1 and
14157: # earlier do not add the objects themselves.
14158: case `$CC -V 2>&1` in
14159: *"Version 7."*)
14160: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14161: 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'
14162: ;;
14163: *) # Version 8.0 or newer
14164: tmp_idyn=
14165: case $host_cpu in
14166: ia64*) tmp_idyn=' -i_dynamic';;
14167: esac
14168: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14169: 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'
14170: ;;
14171: esac
14172: archive_cmds_need_lc_CXX=no
14173: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14174: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14175: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14176: ;;
14177: pgCC* | pgcpp*)
14178: # Portland Group C++ compiler
14179: case `$CC -V` in
14180: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14181: prelink_cmds_CXX='tpldir=Template.dir~
14182: rm -rf $tpldir~
14183: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14184: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14185: old_archive_cmds_CXX='tpldir=Template.dir~
14186: rm -rf $tpldir~
14187: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14188: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14189: $RANLIB $oldlib'
14190: archive_cmds_CXX='tpldir=Template.dir~
14191: rm -rf $tpldir~
14192: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14193: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14194: archive_expsym_cmds_CXX='tpldir=Template.dir~
14195: rm -rf $tpldir~
14196: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14197: $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'
14198: ;;
14199: *) # Version 6 and above use weak symbols
14200: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14201: 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'
14202: ;;
14203: esac
14204:
14205: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14206: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14207: 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'
14208: ;;
14209: cxx*)
14210: # Compaq C++
14211: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14212: 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'
14213:
14214: runpath_var=LD_RUN_PATH
14215: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14216: hardcode_libdir_separator_CXX=:
14217:
14218: # Commands to make compiler produce verbose output that lists
14219: # what "hidden" libraries, object files and flags are used when
14220: # linking a shared library.
14221: #
14222: # There doesn't appear to be a way to prevent this compiler from
14223: # explicitly linking system object files so we need to strip them
14224: # from the output so that they don't get included in the library
14225: # dependencies.
14226: 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'
14227: ;;
14228: xl* | mpixl* | bgxl*)
14229: # IBM XL 8.0 on PPC, with GNU ld
14230: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14231: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14232: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14233: if test "x$supports_anon_versioning" = xyes; then
14234: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14235: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14236: echo "local: *; };" >> $output_objdir/$libname.ver~
14237: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14238: fi
14239: ;;
14240: *)
14241: case `$CC -V 2>&1 | sed 5q` in
14242: *Sun\ C*)
14243: # Sun C++ 5.9
14244: no_undefined_flag_CXX=' -zdefs'
14245: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14246: 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'
14247: hardcode_libdir_flag_spec_CXX='-R$libdir'
14248: 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'
14249: compiler_needs_object_CXX=yes
14250:
14251: # Not sure whether something based on
14252: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14253: # would be better.
14254: output_verbose_link_cmd='func_echo_all'
14255:
14256: # Archives containing C++ object files must be created using
14257: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14258: # necessary to make sure instantiated templates are included
14259: # in the archive.
14260: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14261: ;;
14262: esac
14263: ;;
14264: esac
14265: ;;
14266:
14267: lynxos*)
14268: # FIXME: insert proper C++ library support
14269: ld_shlibs_CXX=no
14270: ;;
14271:
14272: m88k*)
14273: # FIXME: insert proper C++ library support
14274: ld_shlibs_CXX=no
14275: ;;
14276:
14277: mvs*)
14278: case $cc_basename in
14279: cxx*)
14280: # FIXME: insert proper C++ library support
14281: ld_shlibs_CXX=no
14282: ;;
14283: *)
14284: # FIXME: insert proper C++ library support
14285: ld_shlibs_CXX=no
14286: ;;
14287: esac
14288: ;;
14289:
14290: netbsd*)
14291: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14292: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14293: wlarc=
14294: hardcode_libdir_flag_spec_CXX='-R$libdir'
14295: hardcode_direct_CXX=yes
14296: hardcode_shlibpath_var_CXX=no
14297: fi
14298: # Workaround some broken pre-1.5 toolchains
14299: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14300: ;;
14301:
14302: *nto* | *qnx*)
14303: ld_shlibs_CXX=yes
14304: ;;
14305:
14306: openbsd2*)
14307: # C++ shared libraries are fairly broken
14308: ld_shlibs_CXX=no
14309: ;;
14310:
14311: openbsd*)
14312: if test -f /usr/libexec/ld.so; then
14313: hardcode_direct_CXX=yes
14314: hardcode_shlibpath_var_CXX=no
14315: hardcode_direct_absolute_CXX=yes
14316: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14317: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14318: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14319: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14320: export_dynamic_flag_spec_CXX='${wl}-E'
14321: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14322: fi
14323: output_verbose_link_cmd=func_echo_all
14324: else
14325: ld_shlibs_CXX=no
14326: fi
14327: ;;
14328:
14329: osf3* | osf4* | osf5*)
14330: case $cc_basename in
14331: KCC*)
14332: # Kuck and Associates, Inc. (KAI) C++ Compiler
14333:
14334: # KCC will only create a shared library if the output file
14335: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14336: # to its proper name (with version) after linking.
14337: 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'
14338:
14339: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14340: hardcode_libdir_separator_CXX=:
14341:
14342: # Archives containing C++ object files must be created using
14343: # the KAI C++ compiler.
14344: case $host in
14345: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14346: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14347: esac
14348: ;;
14349: RCC*)
14350: # Rational C++ 2.4.1
14351: # FIXME: insert proper C++ library support
14352: ld_shlibs_CXX=no
14353: ;;
14354: cxx*)
14355: case $host in
14356: osf3*)
14357: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14358: 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'
14359: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14360: ;;
14361: *)
14362: allow_undefined_flag_CXX=' -expect_unresolved \*'
14363: 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'
14364: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14365: echo "-hidden">> $lib.exp~
14366: $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~
14367: $RM $lib.exp'
14368: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14369: ;;
14370: esac
14371:
14372: hardcode_libdir_separator_CXX=:
14373:
14374: # Commands to make compiler produce verbose output that lists
14375: # what "hidden" libraries, object files and flags are used when
14376: # linking a shared library.
14377: #
14378: # There doesn't appear to be a way to prevent this compiler from
14379: # explicitly linking system object files so we need to strip them
14380: # from the output so that they don't get included in the library
14381: # dependencies.
14382: 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"'
14383: ;;
14384: *)
14385: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14386: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14387: case $host in
14388: osf3*)
14389: 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'
14390: ;;
14391: *)
14392: 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'
14393: ;;
14394: esac
14395:
14396: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14397: hardcode_libdir_separator_CXX=:
14398:
14399: # Commands to make compiler produce verbose output that lists
14400: # what "hidden" libraries, object files and flags are used when
14401: # linking a shared library.
14402: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14403:
14404: else
14405: # FIXME: insert proper C++ library support
14406: ld_shlibs_CXX=no
14407: fi
14408: ;;
14409: esac
14410: ;;
14411:
14412: psos*)
14413: # FIXME: insert proper C++ library support
14414: ld_shlibs_CXX=no
14415: ;;
14416:
14417: sunos4*)
14418: case $cc_basename in
14419: CC*)
14420: # Sun C++ 4.x
14421: # FIXME: insert proper C++ library support
14422: ld_shlibs_CXX=no
14423: ;;
14424: lcc*)
14425: # Lucid
14426: # FIXME: insert proper C++ library support
14427: ld_shlibs_CXX=no
14428: ;;
14429: *)
14430: # FIXME: insert proper C++ library support
14431: ld_shlibs_CXX=no
14432: ;;
14433: esac
14434: ;;
14435:
14436: solaris*)
14437: case $cc_basename in
14438: CC* | sunCC*)
14439: # Sun C++ 4.2, 5.x and Centerline C++
14440: archive_cmds_need_lc_CXX=yes
14441: no_undefined_flag_CXX=' -zdefs'
14442: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14443: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14444: $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'
14445:
14446: hardcode_libdir_flag_spec_CXX='-R$libdir'
14447: hardcode_shlibpath_var_CXX=no
14448: case $host_os in
14449: solaris2.[0-5] | solaris2.[0-5].*) ;;
14450: *)
14451: # The compiler driver will combine and reorder linker options,
14452: # but understands `-z linker_flag'.
14453: # Supported since Solaris 2.6 (maybe 2.5.1?)
14454: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14455: ;;
14456: esac
14457: link_all_deplibs_CXX=yes
14458:
14459: output_verbose_link_cmd='func_echo_all'
14460:
14461: # Archives containing C++ object files must be created using
14462: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14463: # necessary to make sure instantiated templates are included
14464: # in the archive.
14465: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14466: ;;
14467: gcx*)
14468: # Green Hills C++ Compiler
14469: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14470:
14471: # The C++ compiler must be used to create the archive.
14472: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14473: ;;
14474: *)
14475: # GNU C++ compiler with Solaris linker
14476: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14477: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14478: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14479: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14480: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14481: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14482:
14483: # Commands to make compiler produce verbose output that lists
14484: # what "hidden" libraries, object files and flags are used when
14485: # linking a shared library.
14486: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14487: else
14488: # g++ 2.7 appears to require `-G' NOT `-shared' on this
14489: # platform.
14490: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14491: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14492: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14493:
14494: # Commands to make compiler produce verbose output that lists
14495: # what "hidden" libraries, object files and flags are used when
14496: # linking a shared library.
14497: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14498: fi
14499:
14500: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14501: case $host_os in
14502: solaris2.[0-5] | solaris2.[0-5].*) ;;
14503: *)
14504: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14505: ;;
14506: esac
14507: fi
14508: ;;
14509: esac
14510: ;;
14511:
14512: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14513: no_undefined_flag_CXX='${wl}-z,text'
14514: archive_cmds_need_lc_CXX=no
14515: hardcode_shlibpath_var_CXX=no
14516: runpath_var='LD_RUN_PATH'
14517:
14518: case $cc_basename in
14519: CC*)
14520: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14521: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14522: ;;
14523: *)
14524: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14525: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14526: ;;
14527: esac
14528: ;;
14529:
14530: sysv5* | sco3.2v5* | sco5v6*)
14531: # Note: We can NOT use -z defs as we might desire, because we do not
14532: # link with -lc, and that would cause any symbols used from libc to
14533: # always be unresolved, which means just about no library would
14534: # ever link correctly. If we're not using GNU ld we use -z text
14535: # though, which does catch some bad symbols but isn't as heavy-handed
14536: # as -z defs.
14537: no_undefined_flag_CXX='${wl}-z,text'
14538: allow_undefined_flag_CXX='${wl}-z,nodefs'
14539: archive_cmds_need_lc_CXX=no
14540: hardcode_shlibpath_var_CXX=no
14541: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14542: hardcode_libdir_separator_CXX=':'
14543: link_all_deplibs_CXX=yes
14544: export_dynamic_flag_spec_CXX='${wl}-Bexport'
14545: runpath_var='LD_RUN_PATH'
14546:
14547: case $cc_basename in
14548: CC*)
14549: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14550: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14551: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14552: '"$old_archive_cmds_CXX"
14553: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14554: '"$reload_cmds_CXX"
14555: ;;
14556: *)
14557: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14558: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14559: ;;
14560: esac
14561: ;;
14562:
14563: tandem*)
14564: case $cc_basename in
14565: NCC*)
14566: # NonStop-UX NCC 3.20
14567: # FIXME: insert proper C++ library support
14568: ld_shlibs_CXX=no
14569: ;;
14570: *)
14571: # FIXME: insert proper C++ library support
14572: ld_shlibs_CXX=no
14573: ;;
14574: esac
14575: ;;
14576:
14577: vxworks*)
14578: # FIXME: insert proper C++ library support
14579: ld_shlibs_CXX=no
14580: ;;
14581:
14582: *)
14583: # FIXME: insert proper C++ library support
14584: ld_shlibs_CXX=no
14585: ;;
14586: esac
14587:
1.150 moko 14588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14589: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 14590: test "$ld_shlibs_CXX" = no && can_build_shared=no
14591:
14592: GCC_CXX="$GXX"
14593: LD_CXX="$LD"
14594:
14595: ## CAVEAT EMPTOR:
14596: ## There is no encapsulation within the following macros, do not change
14597: ## the running order or otherwise move them around unless you know exactly
14598: ## what you are doing...
14599: # Dependencies to place before and after the object being linked:
14600: predep_objects_CXX=
14601: postdep_objects_CXX=
14602: predeps_CXX=
14603: postdeps_CXX=
14604: compiler_lib_search_path_CXX=
14605:
14606: cat > conftest.$ac_ext <<_LT_EOF
14607: class Foo
14608: {
14609: public:
14610: Foo (void) { a = 0; }
14611: private:
14612: int a;
14613: };
14614: _LT_EOF
14615:
14616:
14617: _lt_libdeps_save_CFLAGS=$CFLAGS
14618: case "$CC $CFLAGS " in #(
14619: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14620: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14621: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14622: esac
14623:
1.150 moko 14624: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 14625: (eval $ac_compile) 2>&5
14626: ac_status=$?
1.150 moko 14627: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14628: test $ac_status = 0; }; then
1.128 moko 14629: # Parse the compiler output and extract the necessary
14630: # objects, libraries and library flags.
14631:
14632: # Sentinel used to keep track of whether or not we are before
14633: # the conftest object file.
14634: pre_test_object_deps_done=no
14635:
14636: for p in `eval "$output_verbose_link_cmd"`; do
14637: case ${prev}${p} in
14638:
14639: -L* | -R* | -l*)
14640: # Some compilers place space between "-{L,R}" and the path.
14641: # Remove the space.
14642: if test $p = "-L" ||
14643: test $p = "-R"; then
14644: prev=$p
14645: continue
14646: fi
14647:
14648: # Expand the sysroot to ease extracting the directories later.
14649: if test -z "$prev"; then
14650: case $p in
14651: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14652: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14653: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14654: esac
14655: fi
14656: case $p in
14657: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14658: esac
14659: if test "$pre_test_object_deps_done" = no; then
14660: case ${prev} in
14661: -L | -R)
14662: # Internal compiler library paths should come after those
14663: # provided the user. The postdeps already come after the
14664: # user supplied libs so there is no need to process them.
14665: if test -z "$compiler_lib_search_path_CXX"; then
14666: compiler_lib_search_path_CXX="${prev}${p}"
14667: else
14668: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14669: fi
14670: ;;
14671: # The "-l" case would never come before the object being
14672: # linked, so don't bother handling this case.
14673: esac
14674: else
14675: if test -z "$postdeps_CXX"; then
14676: postdeps_CXX="${prev}${p}"
14677: else
14678: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14679: fi
14680: fi
14681: prev=
14682: ;;
14683:
14684: *.lto.$objext) ;; # Ignore GCC LTO objects
14685: *.$objext)
14686: # This assumes that the test object file only shows up
14687: # once in the compiler output.
14688: if test "$p" = "conftest.$objext"; then
14689: pre_test_object_deps_done=yes
14690: continue
14691: fi
14692:
14693: if test "$pre_test_object_deps_done" = no; then
14694: if test -z "$predep_objects_CXX"; then
14695: predep_objects_CXX="$p"
14696: else
14697: predep_objects_CXX="$predep_objects_CXX $p"
14698: fi
14699: else
14700: if test -z "$postdep_objects_CXX"; then
14701: postdep_objects_CXX="$p"
14702: else
14703: postdep_objects_CXX="$postdep_objects_CXX $p"
14704: fi
14705: fi
14706: ;;
14707:
14708: *) ;; # Ignore the rest.
14709:
14710: esac
14711: done
14712:
14713: # Clean up.
14714: rm -f a.out a.exe
14715: else
14716: echo "libtool.m4: error: problem compiling CXX test program"
14717: fi
14718:
14719: $RM -f confest.$objext
14720: CFLAGS=$_lt_libdeps_save_CFLAGS
14721:
14722: # PORTME: override above test on systems where it is broken
14723: case $host_os in
14724: interix[3-9]*)
14725: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14726: # hack all around it, let's just trust "g++" to DTRT.
14727: predep_objects_CXX=
14728: postdep_objects_CXX=
14729: postdeps_CXX=
14730: ;;
14731:
14732: linux*)
14733: case `$CC -V 2>&1 | sed 5q` in
14734: *Sun\ C*)
14735: # Sun C++ 5.9
14736:
14737: # The more standards-conforming stlport4 library is
14738: # incompatible with the Cstd library. Avoid specifying
14739: # it if it's in CXXFLAGS. Ignore libCrun as
14740: # -library=stlport4 depends on it.
14741: case " $CXX $CXXFLAGS " in
14742: *" -library=stlport4 "*)
14743: solaris_use_stlport4=yes
14744: ;;
14745: esac
14746:
14747: if test "$solaris_use_stlport4" != yes; then
14748: postdeps_CXX='-library=Cstd -library=Crun'
14749: fi
14750: ;;
14751: esac
14752: ;;
14753:
14754: solaris*)
14755: case $cc_basename in
14756: CC* | sunCC*)
14757: # The more standards-conforming stlport4 library is
14758: # incompatible with the Cstd library. Avoid specifying
14759: # it if it's in CXXFLAGS. Ignore libCrun as
14760: # -library=stlport4 depends on it.
14761: case " $CXX $CXXFLAGS " in
14762: *" -library=stlport4 "*)
14763: solaris_use_stlport4=yes
14764: ;;
14765: esac
14766:
14767: # Adding this requires a known-good setup of shared libraries for
14768: # Sun compiler versions before 5.6, else PIC objects from an old
14769: # archive will be linked into the output, leading to subtle bugs.
14770: if test "$solaris_use_stlport4" != yes; then
14771: postdeps_CXX='-library=Cstd -library=Crun'
14772: fi
14773: ;;
14774: esac
14775: ;;
14776: esac
14777:
14778:
14779: case " $postdeps_CXX " in
14780: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14781: esac
14782: compiler_lib_search_dirs_CXX=
14783: if test -n "${compiler_lib_search_path_CXX}"; then
14784: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14785: fi
14786:
14787:
14788:
14789:
14790:
14791:
14792:
14793:
14794:
14795:
14796:
14797:
14798:
14799:
14800:
14801:
14802:
14803:
14804:
14805:
14806:
14807:
14808:
14809:
14810:
14811:
14812:
14813:
14814:
14815:
14816:
14817: lt_prog_compiler_wl_CXX=
14818: lt_prog_compiler_pic_CXX=
14819: lt_prog_compiler_static_CXX=
14820:
14821:
14822: # C++ specific cases for pic, static, wl, etc.
14823: if test "$GXX" = yes; then
14824: lt_prog_compiler_wl_CXX='-Wl,'
14825: lt_prog_compiler_static_CXX='-static'
14826:
14827: case $host_os in
14828: aix*)
14829: # All AIX code is PIC.
14830: if test "$host_cpu" = ia64; then
14831: # AIX 5 now supports IA64 processor
14832: lt_prog_compiler_static_CXX='-Bstatic'
14833: fi
14834: ;;
14835:
14836: amigaos*)
14837: case $host_cpu in
14838: powerpc)
14839: # see comment about AmigaOS4 .so support
14840: lt_prog_compiler_pic_CXX='-fPIC'
14841: ;;
14842: m68k)
14843: # FIXME: we need at least 68020 code to build shared libraries, but
14844: # adding the `-m68020' flag to GCC prevents building anything better,
14845: # like `-m68040'.
14846: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14847: ;;
14848: esac
14849: ;;
14850:
14851: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14852: # PIC is the default for these OSes.
14853: ;;
14854: mingw* | cygwin* | os2* | pw32* | cegcc*)
14855: # This hack is so that the source file can tell whether it is being
14856: # built for inclusion in a dll (and should export symbols for example).
14857: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14858: # (--disable-auto-import) libraries
14859: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14860: ;;
14861: darwin* | rhapsody*)
14862: # PIC is the default on this platform
14863: # Common symbols not allowed in MH_DYLIB files
14864: lt_prog_compiler_pic_CXX='-fno-common'
14865: ;;
14866: *djgpp*)
14867: # DJGPP does not support shared libraries at all
14868: lt_prog_compiler_pic_CXX=
14869: ;;
14870: haiku*)
14871: # PIC is the default for Haiku.
14872: # The "-static" flag exists, but is broken.
14873: lt_prog_compiler_static_CXX=
14874: ;;
14875: interix[3-9]*)
14876: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14877: # Instead, we relocate shared libraries at runtime.
14878: ;;
14879: sysv4*MP*)
14880: if test -d /usr/nec; then
14881: lt_prog_compiler_pic_CXX=-Kconform_pic
14882: fi
14883: ;;
14884: hpux*)
14885: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14886: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14887: # sets the default TLS model and affects inlining.
14888: case $host_cpu in
14889: hppa*64*)
14890: ;;
14891: *)
14892: lt_prog_compiler_pic_CXX='-fPIC'
14893: ;;
14894: esac
14895: ;;
14896: *qnx* | *nto*)
14897: # QNX uses GNU C++, but need to define -shared option too, otherwise
14898: # it will coredump.
14899: lt_prog_compiler_pic_CXX='-fPIC -shared'
14900: ;;
14901: *)
14902: lt_prog_compiler_pic_CXX='-fPIC'
14903: ;;
14904: esac
14905: else
14906: case $host_os in
14907: aix[4-9]*)
14908: # All AIX code is PIC.
14909: if test "$host_cpu" = ia64; then
14910: # AIX 5 now supports IA64 processor
14911: lt_prog_compiler_static_CXX='-Bstatic'
14912: else
14913: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14914: fi
14915: ;;
14916: chorus*)
14917: case $cc_basename in
14918: cxch68*)
14919: # Green Hills C++ Compiler
14920: # _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"
14921: ;;
14922: esac
14923: ;;
14924: mingw* | cygwin* | os2* | pw32* | cegcc*)
14925: # This hack is so that the source file can tell whether it is being
14926: # built for inclusion in a dll (and should export symbols for example).
14927: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14928: ;;
14929: dgux*)
14930: case $cc_basename in
14931: ec++*)
14932: lt_prog_compiler_pic_CXX='-KPIC'
14933: ;;
14934: ghcx*)
14935: # Green Hills C++ Compiler
14936: lt_prog_compiler_pic_CXX='-pic'
14937: ;;
14938: *)
14939: ;;
14940: esac
14941: ;;
14942: freebsd* | dragonfly*)
14943: # FreeBSD uses GNU C++
14944: ;;
14945: hpux9* | hpux10* | hpux11*)
14946: case $cc_basename in
14947: CC*)
14948: lt_prog_compiler_wl_CXX='-Wl,'
14949: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14950: if test "$host_cpu" != ia64; then
14951: lt_prog_compiler_pic_CXX='+Z'
14952: fi
14953: ;;
14954: aCC*)
14955: lt_prog_compiler_wl_CXX='-Wl,'
14956: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14957: case $host_cpu in
14958: hppa*64*|ia64*)
14959: # +Z the default
14960: ;;
14961: *)
14962: lt_prog_compiler_pic_CXX='+Z'
14963: ;;
14964: esac
14965: ;;
14966: *)
14967: ;;
14968: esac
14969: ;;
14970: interix*)
14971: # This is c89, which is MS Visual C++ (no shared libs)
14972: # Anyone wants to do a port?
14973: ;;
14974: irix5* | irix6* | nonstopux*)
14975: case $cc_basename in
14976: CC*)
14977: lt_prog_compiler_wl_CXX='-Wl,'
14978: lt_prog_compiler_static_CXX='-non_shared'
14979: # CC pic flag -KPIC is the default.
14980: ;;
14981: *)
14982: ;;
14983: esac
14984: ;;
14985: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14986: case $cc_basename in
14987: KCC*)
14988: # KAI C++ Compiler
14989: lt_prog_compiler_wl_CXX='--backend -Wl,'
14990: lt_prog_compiler_pic_CXX='-fPIC'
14991: ;;
14992: ecpc* )
14993: # old Intel C++ for x86_64 which still supported -KPIC.
14994: lt_prog_compiler_wl_CXX='-Wl,'
14995: lt_prog_compiler_pic_CXX='-KPIC'
14996: lt_prog_compiler_static_CXX='-static'
14997: ;;
14998: icpc* )
14999: # Intel C++, used to be incompatible with GCC.
15000: # ICC 10 doesn't accept -KPIC any more.
15001: lt_prog_compiler_wl_CXX='-Wl,'
15002: lt_prog_compiler_pic_CXX='-fPIC'
15003: lt_prog_compiler_static_CXX='-static'
15004: ;;
15005: pgCC* | pgcpp*)
15006: # Portland Group C++ compiler
15007: lt_prog_compiler_wl_CXX='-Wl,'
15008: lt_prog_compiler_pic_CXX='-fpic'
15009: lt_prog_compiler_static_CXX='-Bstatic'
15010: ;;
15011: cxx*)
15012: # Compaq C++
15013: # Make sure the PIC flag is empty. It appears that all Alpha
15014: # Linux and Compaq Tru64 Unix objects are PIC.
15015: lt_prog_compiler_pic_CXX=
15016: lt_prog_compiler_static_CXX='-non_shared'
15017: ;;
15018: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15019: # IBM XL 8.0, 9.0 on PPC and BlueGene
15020: lt_prog_compiler_wl_CXX='-Wl,'
15021: lt_prog_compiler_pic_CXX='-qpic'
15022: lt_prog_compiler_static_CXX='-qstaticlink'
15023: ;;
15024: *)
15025: case `$CC -V 2>&1 | sed 5q` in
15026: *Sun\ C*)
15027: # Sun C++ 5.9
15028: lt_prog_compiler_pic_CXX='-KPIC'
15029: lt_prog_compiler_static_CXX='-Bstatic'
15030: lt_prog_compiler_wl_CXX='-Qoption ld '
15031: ;;
15032: esac
15033: ;;
15034: esac
15035: ;;
15036: lynxos*)
15037: ;;
15038: m88k*)
15039: ;;
15040: mvs*)
15041: case $cc_basename in
15042: cxx*)
15043: lt_prog_compiler_pic_CXX='-W c,exportall'
15044: ;;
15045: *)
15046: ;;
15047: esac
15048: ;;
15049: netbsd*)
15050: ;;
15051: *qnx* | *nto*)
15052: # QNX uses GNU C++, but need to define -shared option too, otherwise
15053: # it will coredump.
15054: lt_prog_compiler_pic_CXX='-fPIC -shared'
15055: ;;
15056: osf3* | osf4* | osf5*)
15057: case $cc_basename in
15058: KCC*)
15059: lt_prog_compiler_wl_CXX='--backend -Wl,'
15060: ;;
15061: RCC*)
15062: # Rational C++ 2.4.1
15063: lt_prog_compiler_pic_CXX='-pic'
15064: ;;
15065: cxx*)
15066: # Digital/Compaq C++
15067: lt_prog_compiler_wl_CXX='-Wl,'
15068: # Make sure the PIC flag is empty. It appears that all Alpha
15069: # Linux and Compaq Tru64 Unix objects are PIC.
15070: lt_prog_compiler_pic_CXX=
15071: lt_prog_compiler_static_CXX='-non_shared'
15072: ;;
15073: *)
15074: ;;
15075: esac
15076: ;;
15077: psos*)
15078: ;;
15079: solaris*)
15080: case $cc_basename in
15081: CC* | sunCC*)
15082: # Sun C++ 4.2, 5.x and Centerline C++
15083: lt_prog_compiler_pic_CXX='-KPIC'
15084: lt_prog_compiler_static_CXX='-Bstatic'
15085: lt_prog_compiler_wl_CXX='-Qoption ld '
15086: ;;
15087: gcx*)
15088: # Green Hills C++ Compiler
15089: lt_prog_compiler_pic_CXX='-PIC'
15090: ;;
15091: *)
15092: ;;
15093: esac
15094: ;;
15095: sunos4*)
15096: case $cc_basename in
15097: CC*)
15098: # Sun C++ 4.x
15099: lt_prog_compiler_pic_CXX='-pic'
15100: lt_prog_compiler_static_CXX='-Bstatic'
15101: ;;
15102: lcc*)
15103: # Lucid
15104: lt_prog_compiler_pic_CXX='-pic'
15105: ;;
15106: *)
15107: ;;
15108: esac
15109: ;;
15110: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15111: case $cc_basename in
15112: CC*)
15113: lt_prog_compiler_wl_CXX='-Wl,'
15114: lt_prog_compiler_pic_CXX='-KPIC'
15115: lt_prog_compiler_static_CXX='-Bstatic'
15116: ;;
15117: esac
15118: ;;
15119: tandem*)
15120: case $cc_basename in
15121: NCC*)
15122: # NonStop-UX NCC 3.20
15123: lt_prog_compiler_pic_CXX='-KPIC'
15124: ;;
15125: *)
15126: ;;
15127: esac
15128: ;;
15129: vxworks*)
15130: ;;
15131: *)
15132: lt_prog_compiler_can_build_shared_CXX=no
15133: ;;
15134: esac
15135: fi
15136:
15137: case $host_os in
15138: # For platforms which do not support PIC, -DPIC is meaningless:
15139: *djgpp*)
15140: lt_prog_compiler_pic_CXX=
15141: ;;
15142: *)
15143: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15144: ;;
15145: esac
15146:
1.150 moko 15147: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15148: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15149: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15150: $as_echo_n "(cached) " >&6
1.128 moko 15151: else
15152: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15153: fi
1.150 moko 15154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15155: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 15156: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15157:
15158: #
15159: # Check to make sure the PIC flag actually works.
15160: #
15161: if test -n "$lt_prog_compiler_pic_CXX"; then
1.150 moko 15162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15163: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15164: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15165: $as_echo_n "(cached) " >&6
1.128 moko 15166: else
15167: lt_cv_prog_compiler_pic_works_CXX=no
15168: ac_outfile=conftest.$ac_objext
15169: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15170: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15171: # Insert the option either (1) after the last *FLAGS variable, or
15172: # (2) before a word containing "conftest.", or (3) at the end.
15173: # Note that $ac_compile itself does not contain backslashes and begins
15174: # with a dollar sign (not a hyphen), so the echo should work correctly.
15175: # The option is referenced via a variable to avoid confusing sed.
15176: lt_compile=`echo "$ac_compile" | $SED \
15177: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15178: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15179: -e 's:$: $lt_compiler_flag:'`
15180: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15181: (eval "$lt_compile" 2>conftest.err)
15182: ac_status=$?
15183: cat conftest.err >&5
15184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185: if (exit $ac_status) && test -s "$ac_outfile"; then
15186: # The compiler can only warn and ignore the option if not recognized
15187: # So say no if there are warnings other than the usual output.
15188: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15189: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15190: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15191: lt_cv_prog_compiler_pic_works_CXX=yes
15192: fi
15193: fi
15194: $RM conftest*
15195:
15196: fi
1.150 moko 15197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15198: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 15199:
15200: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15201: case $lt_prog_compiler_pic_CXX in
15202: "" | " "*) ;;
15203: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15204: esac
15205: else
15206: lt_prog_compiler_pic_CXX=
15207: lt_prog_compiler_can_build_shared_CXX=no
15208: fi
15209:
15210: fi
15211:
15212:
15213:
15214:
15215:
15216: #
15217: # Check to make sure the static flag actually works.
15218: #
15219: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.150 moko 15220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15221: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15222: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15223: $as_echo_n "(cached) " >&6
1.128 moko 15224: else
15225: lt_cv_prog_compiler_static_works_CXX=no
15226: save_LDFLAGS="$LDFLAGS"
15227: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15228: echo "$lt_simple_link_test_code" > conftest.$ac_ext
15229: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15230: # The linker can only warn and ignore the option if not recognized
15231: # So say no if there are warnings
15232: if test -s conftest.err; then
15233: # Append any errors to the config.log.
15234: cat conftest.err 1>&5
15235: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15236: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15237: if diff conftest.exp conftest.er2 >/dev/null; then
15238: lt_cv_prog_compiler_static_works_CXX=yes
15239: fi
15240: else
15241: lt_cv_prog_compiler_static_works_CXX=yes
15242: fi
15243: fi
15244: $RM -r conftest*
15245: LDFLAGS="$save_LDFLAGS"
15246:
15247: fi
1.150 moko 15248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15249: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 15250:
15251: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15252: :
15253: else
15254: lt_prog_compiler_static_CXX=
15255: fi
15256:
15257:
15258:
15259:
1.150 moko 15260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15261: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15262: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15263: $as_echo_n "(cached) " >&6
1.128 moko 15264: else
15265: lt_cv_prog_compiler_c_o_CXX=no
15266: $RM -r conftest 2>/dev/null
15267: mkdir conftest
15268: cd conftest
15269: mkdir out
15270: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15271:
15272: lt_compiler_flag="-o out/conftest2.$ac_objext"
15273: # Insert the option either (1) after the last *FLAGS variable, or
15274: # (2) before a word containing "conftest.", or (3) at the end.
15275: # Note that $ac_compile itself does not contain backslashes and begins
15276: # with a dollar sign (not a hyphen), so the echo should work correctly.
15277: lt_compile=`echo "$ac_compile" | $SED \
15278: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15279: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15280: -e 's:$: $lt_compiler_flag:'`
15281: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15282: (eval "$lt_compile" 2>out/conftest.err)
15283: ac_status=$?
15284: cat out/conftest.err >&5
15285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15287: then
15288: # The compiler can only warn and ignore the option if not recognized
15289: # So say no if there are warnings
15290: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15291: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15292: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15293: lt_cv_prog_compiler_c_o_CXX=yes
15294: fi
15295: fi
15296: chmod u+w . 2>&5
15297: $RM conftest*
15298: # SGI C++ compiler will create directory out/ii_files/ for
15299: # template instantiation
15300: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15301: $RM out/* && rmdir out
15302: cd ..
15303: $RM -r conftest
15304: $RM conftest*
15305:
15306: fi
1.150 moko 15307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15308: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15309:
15310:
15311:
1.150 moko 15312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15313: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15314: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15315: $as_echo_n "(cached) " >&6
1.128 moko 15316: else
15317: lt_cv_prog_compiler_c_o_CXX=no
15318: $RM -r conftest 2>/dev/null
15319: mkdir conftest
15320: cd conftest
15321: mkdir out
15322: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15323:
15324: lt_compiler_flag="-o out/conftest2.$ac_objext"
15325: # Insert the option either (1) after the last *FLAGS variable, or
15326: # (2) before a word containing "conftest.", or (3) at the end.
15327: # Note that $ac_compile itself does not contain backslashes and begins
15328: # with a dollar sign (not a hyphen), so the echo should work correctly.
15329: lt_compile=`echo "$ac_compile" | $SED \
15330: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15331: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15332: -e 's:$: $lt_compiler_flag:'`
15333: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15334: (eval "$lt_compile" 2>out/conftest.err)
15335: ac_status=$?
15336: cat out/conftest.err >&5
15337: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15339: then
15340: # The compiler can only warn and ignore the option if not recognized
15341: # So say no if there are warnings
15342: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15343: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15344: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15345: lt_cv_prog_compiler_c_o_CXX=yes
15346: fi
15347: fi
15348: chmod u+w . 2>&5
15349: $RM conftest*
15350: # SGI C++ compiler will create directory out/ii_files/ for
15351: # template instantiation
15352: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15353: $RM out/* && rmdir out
15354: cd ..
15355: $RM -r conftest
15356: $RM conftest*
15357:
15358: fi
1.150 moko 15359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15360: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15361:
15362:
15363:
15364:
15365: hard_links="nottested"
15366: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15367: # do not overwrite the value of need_locks provided by the user
1.150 moko 15368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15369: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 15370: hard_links=yes
15371: $RM conftest*
15372: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15373: touch conftest.a
15374: ln conftest.a conftest.b 2>&5 || hard_links=no
15375: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 15376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15377: $as_echo "$hard_links" >&6; }
1.128 moko 15378: if test "$hard_links" = no; then
1.150 moko 15379: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15380: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 15381: need_locks=warn
15382: fi
15383: else
15384: need_locks=no
15385: fi
15386:
15387:
15388:
1.150 moko 15389: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15390: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 15391:
15392: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15393: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15394: case $host_os in
15395: aix[4-9]*)
15396: # If we're using GNU nm, then we don't want the "-C" option.
15397: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15398: # Also, AIX nm treats weak defined symbols like other global defined
15399: # symbols, whereas GNU nm marks them as "W".
15400: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15401: 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'
15402: else
15403: 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'
15404: fi
15405: ;;
15406: pw32*)
15407: export_symbols_cmds_CXX="$ltdll_cmds"
15408: ;;
15409: cygwin* | mingw* | cegcc*)
15410: case $cc_basename in
15411: cl*)
15412: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15413: ;;
15414: *)
15415: 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'
15416: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15417: ;;
15418: esac
15419: ;;
15420: *)
15421: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15422: ;;
15423: esac
15424:
1.150 moko 15425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15426: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 15427: test "$ld_shlibs_CXX" = no && can_build_shared=no
15428:
15429: with_gnu_ld_CXX=$with_gnu_ld
15430:
15431:
15432:
15433:
15434:
15435:
15436: #
15437: # Do we need to explicitly link libc?
15438: #
15439: case "x$archive_cmds_need_lc_CXX" in
15440: x|xyes)
15441: # Assume -lc should be added
15442: archive_cmds_need_lc_CXX=yes
15443:
15444: if test "$enable_shared" = yes && test "$GCC" = yes; then
15445: case $archive_cmds_CXX in
15446: *'~'*)
15447: # FIXME: we may have to deal with multi-command sequences.
15448: ;;
15449: '$CC '*)
15450: # Test whether the compiler implicitly links with -lc since on some
15451: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15452: # to ld, don't add -lc before -lgcc.
1.150 moko 15453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15454: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15455: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15456: $as_echo_n "(cached) " >&6
1.128 moko 15457: else
15458: $RM conftest*
15459: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15460:
1.150 moko 15461: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 15462: (eval $ac_compile) 2>&5
15463: ac_status=$?
1.150 moko 15464: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15465: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 15466: soname=conftest
15467: lib=conftest
15468: libobjs=conftest.$ac_objext
15469: deplibs=
15470: wl=$lt_prog_compiler_wl_CXX
15471: pic_flag=$lt_prog_compiler_pic_CXX
15472: compiler_flags=-v
15473: linker_flags=-v
15474: verstring=
15475: output_objdir=.
15476: libname=conftest
15477: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15478: allow_undefined_flag_CXX=
1.150 moko 15479: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 15480: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15481: ac_status=$?
1.150 moko 15482: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15483: test $ac_status = 0; }
1.128 moko 15484: then
15485: lt_cv_archive_cmds_need_lc_CXX=no
15486: else
15487: lt_cv_archive_cmds_need_lc_CXX=yes
15488: fi
15489: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15490: else
15491: cat conftest.err 1>&5
15492: fi
15493: $RM conftest*
15494:
15495: fi
1.150 moko 15496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15497: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 15498: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15499: ;;
15500: esac
15501: fi
15502: ;;
15503: esac
15504:
15505:
15506:
15507:
15508:
15509:
15510:
15511:
15512:
15513:
15514:
15515:
15516:
15517:
15518:
15519:
15520:
15521:
15522:
15523:
15524:
15525:
15526:
15527:
15528:
15529:
15530:
15531:
15532:
15533:
15534:
15535:
15536:
15537:
15538:
15539:
15540:
15541:
15542:
15543:
15544:
15545:
15546:
15547:
15548:
15549:
15550:
15551:
15552:
15553:
15554:
15555:
15556:
15557:
15558:
15559:
15560:
15561:
15562:
15563:
15564:
15565:
1.150 moko 15566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15567: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 15568:
15569: library_names_spec=
15570: libname_spec='lib$name'
15571: soname_spec=
15572: shrext_cmds=".so"
15573: postinstall_cmds=
15574: postuninstall_cmds=
15575: finish_cmds=
15576: finish_eval=
15577: shlibpath_var=
15578: shlibpath_overrides_runpath=unknown
15579: version_type=none
15580: dynamic_linker="$host_os ld.so"
15581: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15582: need_lib_prefix=unknown
15583: hardcode_into_libs=no
15584:
15585: # when you set need_version to no, make sure it does not cause -set_version
15586: # flags to be left without arguments
15587: need_version=unknown
15588:
15589: case $host_os in
15590: aix3*)
15591: version_type=linux # correct to gnu/linux during the next big refactor
15592: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15593: shlibpath_var=LIBPATH
15594:
15595: # AIX 3 has no versioning support, so we append a major version to the name.
15596: soname_spec='${libname}${release}${shared_ext}$major'
15597: ;;
15598:
15599: aix[4-9]*)
15600: version_type=linux # correct to gnu/linux during the next big refactor
15601: need_lib_prefix=no
15602: need_version=no
15603: hardcode_into_libs=yes
15604: if test "$host_cpu" = ia64; then
15605: # AIX 5 supports IA64
15606: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15607: shlibpath_var=LD_LIBRARY_PATH
15608: else
15609: # With GCC up to 2.95.x, collect2 would create an import file
15610: # for dependence libraries. The import file would start with
15611: # the line `#! .'. This would cause the generated library to
15612: # depend on `.', always an invalid library. This was fixed in
15613: # development snapshots of GCC prior to 3.0.
15614: case $host_os in
15615: aix4 | aix4.[01] | aix4.[01].*)
15616: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15617: echo ' yes '
15618: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15619: :
15620: else
15621: can_build_shared=no
15622: fi
15623: ;;
15624: esac
15625: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15626: # soname into executable. Probably we can add versioning support to
15627: # collect2, so additional links can be useful in future.
15628: if test "$aix_use_runtimelinking" = yes; then
15629: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15630: # instead of lib<name>.a to let people know that these are not
15631: # typical AIX shared libraries.
15632: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633: else
15634: # We preserve .a as extension for shared libraries through AIX4.2
15635: # and later when we are not doing run time linking.
15636: library_names_spec='${libname}${release}.a $libname.a'
15637: soname_spec='${libname}${release}${shared_ext}$major'
15638: fi
15639: shlibpath_var=LIBPATH
15640: fi
15641: ;;
15642:
15643: amigaos*)
15644: case $host_cpu in
15645: powerpc)
15646: # Since July 2007 AmigaOS4 officially supports .so libraries.
15647: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15648: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649: ;;
15650: m68k)
15651: library_names_spec='$libname.ixlibrary $libname.a'
15652: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15653: 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'
15654: ;;
15655: esac
15656: ;;
15657:
15658: beos*)
15659: library_names_spec='${libname}${shared_ext}'
15660: dynamic_linker="$host_os ld.so"
15661: shlibpath_var=LIBRARY_PATH
15662: ;;
15663:
15664: bsdi[45]*)
15665: version_type=linux # correct to gnu/linux during the next big refactor
15666: need_version=no
15667: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668: soname_spec='${libname}${release}${shared_ext}$major'
15669: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15670: shlibpath_var=LD_LIBRARY_PATH
15671: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15672: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15673: # the default ld.so.conf also contains /usr/contrib/lib and
15674: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15675: # libtool to hard-code these into programs
15676: ;;
15677:
15678: cygwin* | mingw* | pw32* | cegcc*)
15679: version_type=windows
15680: shrext_cmds=".dll"
15681: need_version=no
15682: need_lib_prefix=no
15683:
15684: case $GCC,$cc_basename in
15685: yes,*)
15686: # gcc
15687: library_names_spec='$libname.dll.a'
15688: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15689: postinstall_cmds='base_file=`basename \${file}`~
15690: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15691: dldir=$destdir/`dirname \$dlpath`~
15692: test -d \$dldir || mkdir -p \$dldir~
15693: $install_prog $dir/$dlname \$dldir/$dlname~
15694: chmod a+x \$dldir/$dlname~
15695: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15696: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15697: fi'
15698: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699: dlpath=$dir/\$dldll~
15700: $RM \$dlpath'
15701: shlibpath_overrides_runpath=yes
15702:
15703: case $host_os in
15704: cygwin*)
15705: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15706: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15707:
15708: ;;
15709: mingw* | cegcc*)
15710: # MinGW DLLs use traditional 'lib' prefix
15711: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712: ;;
15713: pw32*)
15714: # pw32 DLLs use 'pw' prefix rather than 'lib'
15715: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15716: ;;
15717: esac
15718: dynamic_linker='Win32 ld.exe'
15719: ;;
15720:
15721: *,cl*)
15722: # Native MSVC
15723: libname_spec='$name'
15724: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15725: library_names_spec='${libname}.dll.lib'
15726:
15727: case $build_os in
15728: mingw*)
15729: sys_lib_search_path_spec=
15730: lt_save_ifs=$IFS
15731: IFS=';'
15732: for lt_path in $LIB
15733: do
15734: IFS=$lt_save_ifs
15735: # Let DOS variable expansion print the short 8.3 style file name.
15736: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15737: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15738: done
15739: IFS=$lt_save_ifs
15740: # Convert to MSYS style.
15741: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15742: ;;
15743: cygwin*)
15744: # Convert to unix form, then to dos form, then back to unix form
15745: # but this time dos style (no spaces!) so that the unix form looks
15746: # like /cygdrive/c/PROGRA~1:/cygdr...
15747: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15748: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15749: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15750: ;;
15751: *)
15752: sys_lib_search_path_spec="$LIB"
15753: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15754: # It is most probably a Windows format PATH.
15755: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15756: else
15757: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15758: fi
15759: # FIXME: find the short name or the path components, as spaces are
15760: # common. (e.g. "Program Files" -> "PROGRA~1")
15761: ;;
15762: esac
15763:
15764: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15765: postinstall_cmds='base_file=`basename \${file}`~
15766: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15767: dldir=$destdir/`dirname \$dlpath`~
15768: test -d \$dldir || mkdir -p \$dldir~
15769: $install_prog $dir/$dlname \$dldir/$dlname'
15770: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15771: dlpath=$dir/\$dldll~
15772: $RM \$dlpath'
15773: shlibpath_overrides_runpath=yes
15774: dynamic_linker='Win32 link.exe'
15775: ;;
15776:
15777: *)
15778: # Assume MSVC wrapper
15779: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15780: dynamic_linker='Win32 ld.exe'
15781: ;;
15782: esac
15783: # FIXME: first we should search . and the directory the executable is in
15784: shlibpath_var=PATH
15785: ;;
15786:
15787: darwin* | rhapsody*)
15788: dynamic_linker="$host_os dyld"
15789: version_type=darwin
15790: need_lib_prefix=no
15791: need_version=no
15792: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15793: soname_spec='${libname}${release}${major}$shared_ext'
15794: shlibpath_overrides_runpath=yes
15795: shlibpath_var=DYLD_LIBRARY_PATH
15796: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15797:
15798: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15799: ;;
15800:
15801: dgux*)
15802: version_type=linux # correct to gnu/linux during the next big refactor
15803: need_lib_prefix=no
15804: need_version=no
15805: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15806: soname_spec='${libname}${release}${shared_ext}$major'
15807: shlibpath_var=LD_LIBRARY_PATH
15808: ;;
15809:
15810: freebsd* | dragonfly*)
15811: # DragonFly does not have aout. When/if they implement a new
15812: # versioning mechanism, adjust this.
15813: if test -x /usr/bin/objformat; then
15814: objformat=`/usr/bin/objformat`
15815: else
15816: case $host_os in
15817: freebsd[23].*) objformat=aout ;;
15818: *) objformat=elf ;;
15819: esac
15820: fi
15821: version_type=freebsd-$objformat
15822: case $version_type in
15823: freebsd-elf*)
15824: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15825: need_version=no
15826: need_lib_prefix=no
15827: ;;
15828: freebsd-*)
15829: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15830: need_version=yes
15831: ;;
15832: esac
15833: shlibpath_var=LD_LIBRARY_PATH
15834: case $host_os in
15835: freebsd2.*)
15836: shlibpath_overrides_runpath=yes
15837: ;;
15838: freebsd3.[01]* | freebsdelf3.[01]*)
15839: shlibpath_overrides_runpath=yes
15840: hardcode_into_libs=yes
15841: ;;
15842: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15843: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15844: shlibpath_overrides_runpath=no
15845: hardcode_into_libs=yes
15846: ;;
15847: *) # from 4.6 on, and DragonFly
15848: shlibpath_overrides_runpath=yes
15849: hardcode_into_libs=yes
15850: ;;
15851: esac
15852: ;;
15853:
15854: gnu*)
15855: version_type=linux # correct to gnu/linux during the next big refactor
15856: need_lib_prefix=no
15857: need_version=no
15858: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15859: soname_spec='${libname}${release}${shared_ext}$major'
15860: shlibpath_var=LD_LIBRARY_PATH
15861: shlibpath_overrides_runpath=no
15862: hardcode_into_libs=yes
15863: ;;
15864:
15865: haiku*)
15866: version_type=linux # correct to gnu/linux during the next big refactor
15867: need_lib_prefix=no
15868: need_version=no
15869: dynamic_linker="$host_os runtime_loader"
15870: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15871: soname_spec='${libname}${release}${shared_ext}$major'
15872: shlibpath_var=LIBRARY_PATH
15873: shlibpath_overrides_runpath=yes
15874: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15875: hardcode_into_libs=yes
15876: ;;
15877:
15878: hpux9* | hpux10* | hpux11*)
15879: # Give a soname corresponding to the major version so that dld.sl refuses to
15880: # link against other versions.
15881: version_type=sunos
15882: need_lib_prefix=no
15883: need_version=no
15884: case $host_cpu in
15885: ia64*)
15886: shrext_cmds='.so'
15887: hardcode_into_libs=yes
15888: dynamic_linker="$host_os dld.so"
15889: shlibpath_var=LD_LIBRARY_PATH
15890: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15891: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892: soname_spec='${libname}${release}${shared_ext}$major'
15893: if test "X$HPUX_IA64_MODE" = X32; then
15894: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15895: else
15896: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15897: fi
15898: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15899: ;;
15900: hppa*64*)
15901: shrext_cmds='.sl'
15902: hardcode_into_libs=yes
15903: dynamic_linker="$host_os dld.sl"
15904: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15905: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15906: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907: soname_spec='${libname}${release}${shared_ext}$major'
15908: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15909: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15910: ;;
15911: *)
15912: shrext_cmds='.sl'
15913: dynamic_linker="$host_os dld.sl"
15914: shlibpath_var=SHLIB_PATH
15915: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15916: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15917: soname_spec='${libname}${release}${shared_ext}$major'
15918: ;;
15919: esac
15920: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15921: postinstall_cmds='chmod 555 $lib'
15922: # or fails outright, so override atomically:
15923: install_override_mode=555
15924: ;;
15925:
15926: interix[3-9]*)
15927: version_type=linux # correct to gnu/linux during the next big refactor
15928: need_lib_prefix=no
15929: need_version=no
15930: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15931: soname_spec='${libname}${release}${shared_ext}$major'
15932: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15933: shlibpath_var=LD_LIBRARY_PATH
15934: shlibpath_overrides_runpath=no
15935: hardcode_into_libs=yes
15936: ;;
15937:
15938: irix5* | irix6* | nonstopux*)
15939: case $host_os in
15940: nonstopux*) version_type=nonstopux ;;
15941: *)
15942: if test "$lt_cv_prog_gnu_ld" = yes; then
15943: version_type=linux # correct to gnu/linux during the next big refactor
15944: else
15945: version_type=irix
15946: fi ;;
15947: esac
15948: need_lib_prefix=no
15949: need_version=no
15950: soname_spec='${libname}${release}${shared_ext}$major'
15951: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15952: case $host_os in
15953: irix5* | nonstopux*)
15954: libsuff= shlibsuff=
15955: ;;
15956: *)
15957: case $LD in # libtool.m4 will add one of these switches to LD
15958: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15959: libsuff= shlibsuff= libmagic=32-bit;;
15960: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15961: libsuff=32 shlibsuff=N32 libmagic=N32;;
15962: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15963: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15964: *) libsuff= shlibsuff= libmagic=never-match;;
15965: esac
15966: ;;
15967: esac
15968: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15969: shlibpath_overrides_runpath=no
15970: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15971: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15972: hardcode_into_libs=yes
15973: ;;
15974:
15975: # No shared lib support for Linux oldld, aout, or coff.
15976: linux*oldld* | linux*aout* | linux*coff*)
15977: dynamic_linker=no
15978: ;;
15979:
15980: # This must be glibc/ELF.
15981: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15982: version_type=linux # correct to gnu/linux during the next big refactor
15983: need_lib_prefix=no
15984: need_version=no
15985: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986: soname_spec='${libname}${release}${shared_ext}$major'
15987: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15988: shlibpath_var=LD_LIBRARY_PATH
15989: shlibpath_overrides_runpath=no
15990:
15991: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 15992: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15993: $as_echo_n "(cached) " >&6
1.128 moko 15994: else
15995: lt_cv_shlibpath_overrides_runpath=no
15996: save_LDFLAGS=$LDFLAGS
15997: save_libdir=$libdir
15998: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15999: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 16000: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16001: /* end confdefs.h. */
16002:
16003: int
16004: main ()
16005: {
16006:
16007: ;
16008: return 0;
16009: }
16010: _ACEOF
1.150 moko 16011: if ac_fn_cxx_try_link "$LINENO"; then :
16012: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 16013: lt_cv_shlibpath_overrides_runpath=yes
16014: fi
16015: fi
1.150 moko 16016: rm -f core conftest.err conftest.$ac_objext \
16017: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16018: LDFLAGS=$save_LDFLAGS
16019: libdir=$save_libdir
16020:
16021: fi
16022:
16023: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16024:
16025: # This implies no fast_install, which is unacceptable.
16026: # Some rework will be needed to allow for fast_install
16027: # before this can be enabled.
16028: hardcode_into_libs=yes
16029:
16030: # Append ld.so.conf contents to the search path
16031: if test -f /etc/ld.so.conf; then
16032: 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' ' '`
16033: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16034: fi
16035:
16036: # We used to test for /lib/ld.so.1 and disable shared libraries on
16037: # powerpc, because MkLinux only supported shared libraries with the
16038: # GNU dynamic linker. Since this was broken with cross compilers,
16039: # most powerpc-linux boxes support dynamic linking these days and
16040: # people can always --disable-shared, the test was removed, and we
16041: # assume the GNU/Linux dynamic linker is in use.
16042: dynamic_linker='GNU/Linux ld.so'
16043: ;;
16044:
16045: netbsd*)
16046: version_type=sunos
16047: need_lib_prefix=no
16048: need_version=no
16049: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16050: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16051: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16052: dynamic_linker='NetBSD (a.out) ld.so'
16053: else
16054: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16055: soname_spec='${libname}${release}${shared_ext}$major'
16056: dynamic_linker='NetBSD ld.elf_so'
16057: fi
16058: shlibpath_var=LD_LIBRARY_PATH
16059: shlibpath_overrides_runpath=yes
16060: hardcode_into_libs=yes
16061: ;;
16062:
16063: newsos6)
16064: version_type=linux # correct to gnu/linux during the next big refactor
16065: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066: shlibpath_var=LD_LIBRARY_PATH
16067: shlibpath_overrides_runpath=yes
16068: ;;
16069:
16070: *nto* | *qnx*)
16071: version_type=qnx
16072: need_lib_prefix=no
16073: need_version=no
16074: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075: soname_spec='${libname}${release}${shared_ext}$major'
16076: shlibpath_var=LD_LIBRARY_PATH
16077: shlibpath_overrides_runpath=no
16078: hardcode_into_libs=yes
16079: dynamic_linker='ldqnx.so'
16080: ;;
16081:
16082: openbsd*)
16083: version_type=sunos
16084: sys_lib_dlsearch_path_spec="/usr/lib"
16085: need_lib_prefix=no
16086: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16087: case $host_os in
16088: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16089: *) need_version=no ;;
16090: esac
16091: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16092: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16093: shlibpath_var=LD_LIBRARY_PATH
16094: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16095: case $host_os in
16096: openbsd2.[89] | openbsd2.[89].*)
16097: shlibpath_overrides_runpath=no
16098: ;;
16099: *)
16100: shlibpath_overrides_runpath=yes
16101: ;;
16102: esac
16103: else
16104: shlibpath_overrides_runpath=yes
16105: fi
16106: ;;
16107:
16108: os2*)
16109: libname_spec='$name'
16110: shrext_cmds=".dll"
16111: need_lib_prefix=no
16112: library_names_spec='$libname${shared_ext} $libname.a'
16113: dynamic_linker='OS/2 ld.exe'
16114: shlibpath_var=LIBPATH
16115: ;;
16116:
16117: osf3* | osf4* | osf5*)
16118: version_type=osf
16119: need_lib_prefix=no
16120: need_version=no
16121: soname_spec='${libname}${release}${shared_ext}$major'
16122: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123: shlibpath_var=LD_LIBRARY_PATH
16124: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16125: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16126: ;;
16127:
16128: rdos*)
16129: dynamic_linker=no
16130: ;;
16131:
16132: solaris*)
16133: version_type=linux # correct to gnu/linux during the next big refactor
16134: need_lib_prefix=no
16135: need_version=no
16136: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16137: soname_spec='${libname}${release}${shared_ext}$major'
16138: shlibpath_var=LD_LIBRARY_PATH
16139: shlibpath_overrides_runpath=yes
16140: hardcode_into_libs=yes
16141: # ldd complains unless libraries are executable
16142: postinstall_cmds='chmod +x $lib'
16143: ;;
16144:
16145: sunos4*)
16146: version_type=sunos
16147: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16148: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16149: shlibpath_var=LD_LIBRARY_PATH
16150: shlibpath_overrides_runpath=yes
16151: if test "$with_gnu_ld" = yes; then
16152: need_lib_prefix=no
16153: fi
16154: need_version=yes
16155: ;;
16156:
16157: sysv4 | sysv4.3*)
16158: version_type=linux # correct to gnu/linux during the next big refactor
16159: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160: soname_spec='${libname}${release}${shared_ext}$major'
16161: shlibpath_var=LD_LIBRARY_PATH
16162: case $host_vendor in
16163: sni)
16164: shlibpath_overrides_runpath=no
16165: need_lib_prefix=no
16166: runpath_var=LD_RUN_PATH
16167: ;;
16168: siemens)
16169: need_lib_prefix=no
16170: ;;
16171: motorola)
16172: need_lib_prefix=no
16173: need_version=no
16174: shlibpath_overrides_runpath=no
16175: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16176: ;;
16177: esac
16178: ;;
16179:
16180: sysv4*MP*)
16181: if test -d /usr/nec ;then
16182: version_type=linux # correct to gnu/linux during the next big refactor
16183: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16184: soname_spec='$libname${shared_ext}.$major'
16185: shlibpath_var=LD_LIBRARY_PATH
16186: fi
16187: ;;
16188:
16189: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16190: version_type=freebsd-elf
16191: need_lib_prefix=no
16192: need_version=no
16193: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16194: soname_spec='${libname}${release}${shared_ext}$major'
16195: shlibpath_var=LD_LIBRARY_PATH
16196: shlibpath_overrides_runpath=yes
16197: hardcode_into_libs=yes
16198: if test "$with_gnu_ld" = yes; then
16199: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16200: else
16201: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16202: case $host_os in
16203: sco3.2v5*)
16204: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16205: ;;
16206: esac
16207: fi
16208: sys_lib_dlsearch_path_spec='/usr/lib'
16209: ;;
16210:
16211: tpf*)
16212: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16213: version_type=linux # correct to gnu/linux during the next big refactor
16214: need_lib_prefix=no
16215: need_version=no
16216: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217: shlibpath_var=LD_LIBRARY_PATH
16218: shlibpath_overrides_runpath=no
16219: hardcode_into_libs=yes
16220: ;;
16221:
16222: uts4*)
16223: version_type=linux # correct to gnu/linux during the next big refactor
16224: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225: soname_spec='${libname}${release}${shared_ext}$major'
16226: shlibpath_var=LD_LIBRARY_PATH
16227: ;;
16228:
16229: *)
16230: dynamic_linker=no
16231: ;;
16232: esac
1.150 moko 16233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16234: $as_echo "$dynamic_linker" >&6; }
1.128 moko 16235: test "$dynamic_linker" = no && can_build_shared=no
16236:
16237: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16238: if test "$GCC" = yes; then
16239: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16240: fi
16241:
16242: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16243: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16244: fi
16245: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16246: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16247: fi
16248:
16249:
16250:
16251:
16252:
16253:
16254:
16255:
16256:
16257:
16258:
16259:
16260:
16261:
16262:
16263:
16264:
16265:
16266:
16267:
16268:
16269:
16270:
16271:
16272:
16273:
16274:
16275:
16276:
16277:
16278:
16279:
16280:
16281:
16282:
16283:
16284:
16285:
1.150 moko 16286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16287: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 16288: hardcode_action_CXX=
16289: if test -n "$hardcode_libdir_flag_spec_CXX" ||
16290: test -n "$runpath_var_CXX" ||
16291: test "X$hardcode_automatic_CXX" = "Xyes" ; then
16292:
16293: # We can hardcode non-existent directories.
16294: if test "$hardcode_direct_CXX" != no &&
16295: # If the only mechanism to avoid hardcoding is shlibpath_var, we
16296: # have to relink, otherwise we might link with an installed library
16297: # when we should be linking with a yet-to-be-installed one
16298: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16299: test "$hardcode_minus_L_CXX" != no; then
16300: # Linking always hardcodes the temporary library directory.
16301: hardcode_action_CXX=relink
16302: else
16303: # We can link without hardcoding, and we can hardcode nonexisting dirs.
16304: hardcode_action_CXX=immediate
16305: fi
16306: else
16307: # We cannot hardcode anything, or else we can only hardcode existing
16308: # directories.
16309: hardcode_action_CXX=unsupported
16310: fi
1.150 moko 16311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16312: $as_echo "$hardcode_action_CXX" >&6; }
1.128 moko 16313:
16314: if test "$hardcode_action_CXX" = relink ||
16315: test "$inherit_rpath_CXX" = yes; then
16316: # Fast installation is not supported
16317: enable_fast_install=no
16318: elif test "$shlibpath_overrides_runpath" = yes ||
16319: test "$enable_shared" = no; then
16320: # Fast installation is not necessary
16321: enable_fast_install=needless
16322: fi
16323:
16324:
16325:
16326:
16327:
16328:
16329:
16330: fi # test -n "$compiler"
16331:
16332: CC=$lt_save_CC
16333: CFLAGS=$lt_save_CFLAGS
16334: LDCXX=$LD
16335: LD=$lt_save_LD
16336: GCC=$lt_save_GCC
16337: with_gnu_ld=$lt_save_with_gnu_ld
16338: lt_cv_path_LDCXX=$lt_cv_path_LD
16339: lt_cv_path_LD=$lt_save_path_LD
16340: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16341: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16342: fi # test "$_lt_caught_CXX_error" != yes
16343:
16344: ac_ext=c
16345: ac_cpp='$CPP $CPPFLAGS'
16346: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16347: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16348: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16349:
16350:
16351:
16352:
16353:
16354:
16355:
16356:
16357:
16358:
16359:
16360:
16361:
16362:
16363:
1.150 moko 16364: ac_config_commands="$ac_config_commands libtool"
1.128 moko 16365:
16366:
16367:
16368:
16369: # Only expand once:
16370:
16371:
1.150 moko 16372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
16373: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
16374: if ${libltdl_cv_shlibext+:} false; then :
16375: $as_echo_n "(cached) " >&6
1.128 moko 16376: else
16377:
16378: module=yes
16379: eval libltdl_cv_shlibext=$shrext_cmds
16380: module=no
16381: eval libltdl_cv_shrext=$shrext_cmds
16382:
16383: fi
1.150 moko 16384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16385: $as_echo "$libltdl_cv_shlibext" >&6; }
1.128 moko 16386: if test -n "$libltdl_cv_shlibext"; then
16387:
16388: cat >>confdefs.h <<_ACEOF
16389: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16390: _ACEOF
16391:
16392: fi
16393: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16394:
16395: cat >>confdefs.h <<_ACEOF
16396: #define LT_SHARED_EXT "$libltdl_cv_shrext"
16397: _ACEOF
16398:
16399: fi
16400:
1.150 moko 16401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
16402: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
16403: if ${lt_cv_module_path_var+:} false; then :
16404: $as_echo_n "(cached) " >&6
1.128 moko 16405: else
16406: lt_cv_module_path_var="$shlibpath_var"
16407: fi
1.150 moko 16408: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16409: $as_echo "$lt_cv_module_path_var" >&6; }
1.128 moko 16410: if test -n "$lt_cv_module_path_var"; then
16411:
16412: cat >>confdefs.h <<_ACEOF
16413: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16414: _ACEOF
16415:
16416: fi
16417:
1.150 moko 16418: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16419: $as_echo_n "checking for the default library search path... " >&6; }
16420: if ${lt_cv_sys_dlsearch_path+:} false; then :
16421: $as_echo_n "(cached) " >&6
1.128 moko 16422: else
16423: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
16424: fi
1.150 moko 16425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16426: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 16427: if test -n "$lt_cv_sys_dlsearch_path"; then
16428: sys_dlsearch_path=
16429: for dir in $lt_cv_sys_dlsearch_path; do
16430: if test -z "$sys_dlsearch_path"; then
16431: sys_dlsearch_path="$dir"
16432: else
16433: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
16434: fi
16435: done
16436:
16437: cat >>confdefs.h <<_ACEOF
16438: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16439: _ACEOF
16440:
16441: fi
16442:
16443:
16444: LT_DLLOADERS=
16445:
16446:
16447: ac_ext=c
16448: ac_cpp='$CPP $CPPFLAGS'
16449: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16450: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16451: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16452:
16453:
16454: LIBADD_DLOPEN=
1.150 moko 16455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16456: $as_echo_n "checking for library containing dlopen... " >&6; }
16457: if ${ac_cv_search_dlopen+:} false; then :
16458: $as_echo_n "(cached) " >&6
1.128 moko 16459: else
16460: ac_func_search_save_LIBS=$LIBS
1.150 moko 16461: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16462: /* end confdefs.h. */
16463:
1.150 moko 16464: /* Override any GCC internal prototype to avoid an error.
16465: Use char because int might match the return type of a GCC
16466: builtin and then its argument prototype would still apply. */
1.128 moko 16467: #ifdef __cplusplus
16468: extern "C"
16469: #endif
16470: char dlopen ();
16471: int
16472: main ()
16473: {
1.150 moko 16474: return dlopen ();
1.128 moko 16475: ;
16476: return 0;
16477: }
16478: _ACEOF
1.150 moko 16479: for ac_lib in '' dl; do
16480: if test -z "$ac_lib"; then
16481: ac_res="none required"
16482: else
16483: ac_res=-l$ac_lib
16484: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16485: fi
16486: if ac_fn_c_try_link "$LINENO"; then :
16487: ac_cv_search_dlopen=$ac_res
16488: fi
16489: rm -f core conftest.err conftest.$ac_objext \
16490: conftest$ac_exeext
16491: if ${ac_cv_search_dlopen+:} false; then :
16492: break
1.128 moko 16493: fi
1.150 moko 16494: done
16495: if ${ac_cv_search_dlopen+:} false; then :
1.128 moko 16496:
16497: else
1.150 moko 16498: ac_cv_search_dlopen=no
1.128 moko 16499: fi
1.150 moko 16500: rm conftest.$ac_ext
1.128 moko 16501: LIBS=$ac_func_search_save_LIBS
16502: fi
1.150 moko 16503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16504: $as_echo "$ac_cv_search_dlopen" >&6; }
16505: ac_res=$ac_cv_search_dlopen
16506: if test "$ac_res" != no; then :
16507: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 16508:
1.150 moko 16509: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16510:
16511: if test "$ac_cv_search_dlopen" != "none required" ; then
16512: LIBADD_DLOPEN="-ldl"
16513: fi
16514: libltdl_cv_lib_dl_dlopen="yes"
16515: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16516: else
1.150 moko 16517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16518: /* end confdefs.h. */
16519: #if HAVE_DLFCN_H
16520: # include <dlfcn.h>
16521: #endif
16522:
16523: int
16524: main ()
16525: {
16526: dlopen(0, 0);
16527: ;
16528: return 0;
16529: }
16530: _ACEOF
1.150 moko 16531: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16532:
1.150 moko 16533: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16534:
16535: libltdl_cv_func_dlopen="yes"
16536: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16537: else
1.150 moko 16538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16539: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16540: if ${ac_cv_lib_svld_dlopen+:} false; then :
16541: $as_echo_n "(cached) " >&6
1.128 moko 16542: else
16543: ac_check_lib_save_LIBS=$LIBS
16544: LIBS="-lsvld $LIBS"
1.150 moko 16545: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16546: /* end confdefs.h. */
16547:
1.150 moko 16548: /* Override any GCC internal prototype to avoid an error.
16549: Use char because int might match the return type of a GCC
16550: builtin and then its argument prototype would still apply. */
1.128 moko 16551: #ifdef __cplusplus
16552: extern "C"
16553: #endif
16554: char dlopen ();
16555: int
16556: main ()
16557: {
1.150 moko 16558: return dlopen ();
1.128 moko 16559: ;
16560: return 0;
16561: }
16562: _ACEOF
1.150 moko 16563: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16564: ac_cv_lib_svld_dlopen=yes
16565: else
1.150 moko 16566: ac_cv_lib_svld_dlopen=no
1.128 moko 16567: fi
1.150 moko 16568: rm -f core conftest.err conftest.$ac_objext \
16569: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16570: LIBS=$ac_check_lib_save_LIBS
16571: fi
1.150 moko 16572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16573: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16574: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 16575:
1.150 moko 16576: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16577:
16578: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16579: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16580: fi
16581:
16582: fi
1.150 moko 16583: rm -f core conftest.err conftest.$ac_objext \
16584: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16585: fi
16586:
16587: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16588: then
16589: lt_save_LIBS="$LIBS"
16590: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 16591: for ac_func in dlerror
16592: do :
16593: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16594: if test "x$ac_cv_func_dlerror" = xyes; then :
1.128 moko 16595: cat >>confdefs.h <<_ACEOF
1.150 moko 16596: #define HAVE_DLERROR 1
1.128 moko 16597: _ACEOF
16598:
16599: fi
16600: done
16601:
16602: LIBS="$lt_save_LIBS"
16603: fi
16604:
16605:
16606: LIBADD_SHL_LOAD=
1.150 moko 16607: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16608: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 16609:
1.150 moko 16610: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 16611:
16612: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16613: else
1.150 moko 16614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16615: $as_echo_n "checking for shl_load in -ldld... " >&6; }
16616: if ${ac_cv_lib_dld_shl_load+:} false; then :
16617: $as_echo_n "(cached) " >&6
1.66 paf 16618: else
16619: ac_check_lib_save_LIBS=$LIBS
16620: LIBS="-ldld $LIBS"
1.150 moko 16621: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16622: /* end confdefs.h. */
1.10 paf 16623:
1.150 moko 16624: /* Override any GCC internal prototype to avoid an error.
16625: Use char because int might match the return type of a GCC
16626: builtin and then its argument prototype would still apply. */
1.66 paf 16627: #ifdef __cplusplus
16628: extern "C"
16629: #endif
16630: char shl_load ();
16631: int
16632: main ()
16633: {
1.150 moko 16634: return shl_load ();
1.66 paf 16635: ;
16636: return 0;
16637: }
16638: _ACEOF
1.150 moko 16639: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 16640: ac_cv_lib_dld_shl_load=yes
16641: else
1.150 moko 16642: ac_cv_lib_dld_shl_load=no
1.66 paf 16643: fi
1.150 moko 16644: rm -f core conftest.err conftest.$ac_objext \
16645: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16646: LIBS=$ac_check_lib_save_LIBS
16647: fi
1.150 moko 16648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16649: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16650: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 paf 16651:
1.150 moko 16652: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 16653:
1.128 moko 16654: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16655: LIBADD_SHL_LOAD="-ldld"
16656: fi
16657:
16658: fi
16659:
16660:
16661:
16662: case $host_os in
16663: darwin[1567].*)
16664: # We only want this for pre-Mac OS X 10.4.
1.150 moko 16665: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16666: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16667:
16668: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 16669:
1.150 moko 16670: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16671: fi
1.128 moko 16672:
1.150 moko 16673: ;;
16674: beos*)
1.128 moko 16675: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16676: ;;
16677: cygwin* | mingw* | os2* | pw32*)
1.150 moko 16678: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16679: "
16680: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16681: ac_have_decl=1
1.128 moko 16682: else
1.150 moko 16683: ac_have_decl=0
1.128 moko 16684: fi
16685:
16686: cat >>confdefs.h <<_ACEOF
1.150 moko 16687: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.128 moko 16688: _ACEOF
16689:
16690: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16691: ;;
16692: esac
16693:
1.150 moko 16694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16695: $as_echo_n "checking for dld_link in -ldld... " >&6; }
16696: if ${ac_cv_lib_dld_dld_link+:} false; then :
16697: $as_echo_n "(cached) " >&6
1.66 paf 16698: else
16699: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16700: LIBS="-ldld $LIBS"
1.150 moko 16701: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16702: /* end confdefs.h. */
1.62 paf 16703:
1.150 moko 16704: /* Override any GCC internal prototype to avoid an error.
16705: Use char because int might match the return type of a GCC
16706: builtin and then its argument prototype would still apply. */
1.66 paf 16707: #ifdef __cplusplus
16708: extern "C"
16709: #endif
1.128 moko 16710: char dld_link ();
1.66 paf 16711: int
16712: main ()
16713: {
1.150 moko 16714: return dld_link ();
1.66 paf 16715: ;
16716: return 0;
16717: }
16718: _ACEOF
1.150 moko 16719: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16720: ac_cv_lib_dld_dld_link=yes
1.66 paf 16721: else
1.150 moko 16722: ac_cv_lib_dld_dld_link=no
1.128 moko 16723: fi
1.150 moko 16724: rm -f core conftest.err conftest.$ac_objext \
16725: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16726: LIBS=$ac_check_lib_save_LIBS
16727: fi
1.150 moko 16728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16729: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16730: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 16731:
1.150 moko 16732: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 16733:
16734: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16735: fi
16736:
16737:
16738:
16739:
16740: LT_DLPREOPEN=
16741: if test -n "$LT_DLLOADERS"
16742: then
16743: for lt_loader in $LT_DLLOADERS; do
16744: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16745: done
16746:
1.150 moko 16747: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 16748:
16749: fi
16750:
16751:
16752: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16753:
16754:
16755: ac_ext=c
16756: ac_cpp='$CPP $CPPFLAGS'
16757: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16758: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16759: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16760:
16761:
1.150 moko 16762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16763: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16764: if ${lt_cv_sys_symbol_underscore+:} false; then :
16765: $as_echo_n "(cached) " >&6
1.128 moko 16766: else
16767: lt_cv_sys_symbol_underscore=no
16768: cat > conftest.$ac_ext <<_LT_EOF
16769: void nm_test_func(){}
16770: int main(){nm_test_func;return 0;}
16771: _LT_EOF
1.150 moko 16772: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 16773: (eval $ac_compile) 2>&5
16774: ac_status=$?
1.150 moko 16775: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16776: test $ac_status = 0; }; then
1.128 moko 16777: # Now try to grab the symbols.
16778: ac_nlist=conftest.nm
1.150 moko 16779: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 16780: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16781: ac_status=$?
1.150 moko 16782: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16783: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 16784: # See whether the symbols have a leading underscore.
16785: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16786: lt_cv_sys_symbol_underscore=yes
16787: else
16788: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16789: :
16790: else
16791: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16792: fi
16793: fi
16794: else
16795: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16796: fi
16797: else
16798: echo "configure: failed program was:" >&5
16799: cat conftest.c >&5
16800: fi
16801: rm -rf conftest*
1.29 paf 16802:
1.66 paf 16803: fi
1.150 moko 16804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16805: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 16806: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16807:
1.62 paf 16808:
1.128 moko 16809: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16810: if test x"$libltdl_cv_func_dlopen" = xyes ||
16811: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.150 moko 16812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16813: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16814: if ${libltdl_cv_need_uscore+:} false; then :
16815: $as_echo_n "(cached) " >&6
1.66 paf 16816: else
1.128 moko 16817: libltdl_cv_need_uscore=unknown
16818: save_LIBS="$LIBS"
16819: LIBS="$LIBS $LIBADD_DLOPEN"
16820: if test "$cross_compiling" = yes; then :
16821: libltdl_cv_need_uscore=cross
16822: else
16823: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16824: lt_status=$lt_dlunknown
16825: cat > conftest.$ac_ext <<_LT_EOF
16826: #line $LINENO "configure"
16827: #include "confdefs.h"
16828:
1.66 paf 16829: #if HAVE_DLFCN_H
1.128 moko 16830: #include <dlfcn.h>
16831: #endif
16832:
16833: #include <stdio.h>
16834:
16835: #ifdef RTLD_GLOBAL
16836: # define LT_DLGLOBAL RTLD_GLOBAL
16837: #else
16838: # ifdef DL_GLOBAL
16839: # define LT_DLGLOBAL DL_GLOBAL
16840: # else
16841: # define LT_DLGLOBAL 0
16842: # endif
16843: #endif
16844:
16845: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16846: find out it does not work in some platform. */
16847: #ifndef LT_DLLAZY_OR_NOW
16848: # ifdef RTLD_LAZY
16849: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16850: # else
16851: # ifdef DL_LAZY
16852: # define LT_DLLAZY_OR_NOW DL_LAZY
16853: # else
16854: # ifdef RTLD_NOW
16855: # define LT_DLLAZY_OR_NOW RTLD_NOW
16856: # else
16857: # ifdef DL_NOW
16858: # define LT_DLLAZY_OR_NOW DL_NOW
16859: # else
16860: # define LT_DLLAZY_OR_NOW 0
16861: # endif
16862: # endif
16863: # endif
16864: # endif
16865: #endif
16866:
16867: /* When -fvisbility=hidden is used, assume the code has been annotated
16868: correspondingly for the symbols needed. */
16869: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16870: int fnord () __attribute__((visibility("default")));
1.66 paf 16871: #endif
1.62 paf 16872:
1.128 moko 16873: int fnord () { return 42; }
16874: int main ()
1.66 paf 16875: {
1.128 moko 16876: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16877: int status = $lt_dlunknown;
16878:
16879: if (self)
16880: {
16881: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16882: else
16883: {
16884: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16885: else puts (dlerror ());
16886: }
16887: /* dlclose (self); */
16888: }
16889: else
16890: puts (dlerror ());
16891:
16892: return status;
1.66 paf 16893: }
1.128 moko 16894: _LT_EOF
1.150 moko 16895: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16896: (eval $ac_link) 2>&5
1.66 paf 16897: ac_status=$?
1.150 moko 16898: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16899: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 16900: (./conftest; exit; ) >&5 2>/dev/null
16901: lt_status=$?
16902: case x$lt_status in
16903: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16904: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16905: x$lt_dlunknown|x*) ;;
16906: esac
16907: else :
16908: # compilation failed
16909:
16910: fi
16911: fi
16912: rm -fr conftest*
16913:
16914: LIBS="$save_LIBS"
16915:
16916: fi
1.150 moko 16917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16918: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.128 moko 16919: fi
16920: fi
16921:
16922: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16923:
1.150 moko 16924: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 16925:
1.128 moko 16926: fi
16927:
1.150 moko 16928: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16929: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16930: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16931: $as_echo_n "(cached) " >&6
1.66 paf 16932: else
1.128 moko 16933: # PORTME does your system automatically load deplibs for dlopen?
16934: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16935: # For now, we just catch OSes we know something about -- in the
16936: # future, we'll try test this programmatically.
16937: lt_cv_sys_dlopen_deplibs=unknown
16938: case $host_os in
16939: aix3*|aix4.1.*|aix4.2.*)
16940: # Unknown whether this is true for these versions of AIX, but
16941: # we want this `case' here to explicitly catch those versions.
16942: lt_cv_sys_dlopen_deplibs=unknown
16943: ;;
16944: aix[4-9]*)
16945: lt_cv_sys_dlopen_deplibs=yes
16946: ;;
16947: amigaos*)
16948: case $host_cpu in
16949: powerpc)
16950: lt_cv_sys_dlopen_deplibs=no
16951: ;;
16952: esac
16953: ;;
16954: darwin*)
16955: # Assuming the user has installed a libdl from somewhere, this is true
16956: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16957: lt_cv_sys_dlopen_deplibs=yes
16958: ;;
16959: freebsd* | dragonfly*)
16960: lt_cv_sys_dlopen_deplibs=yes
16961: ;;
16962: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16963: # GNU and its variants, using gnu ld.so (Glibc)
16964: lt_cv_sys_dlopen_deplibs=yes
16965: ;;
16966: hpux10*|hpux11*)
16967: lt_cv_sys_dlopen_deplibs=yes
16968: ;;
16969: interix*)
16970: lt_cv_sys_dlopen_deplibs=yes
16971: ;;
16972: irix[12345]*|irix6.[01]*)
16973: # Catch all versions of IRIX before 6.2, and indicate that we don't
16974: # know how it worked for any of those versions.
16975: lt_cv_sys_dlopen_deplibs=unknown
16976: ;;
16977: irix*)
16978: # The case above catches anything before 6.2, and it's known that
16979: # at 6.2 and later dlopen does load deplibs.
16980: lt_cv_sys_dlopen_deplibs=yes
16981: ;;
16982: netbsd*)
16983: lt_cv_sys_dlopen_deplibs=yes
16984: ;;
16985: openbsd*)
16986: lt_cv_sys_dlopen_deplibs=yes
16987: ;;
16988: osf[1234]*)
16989: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16990: # it did *not* use an RPATH in a shared library to find objects the
16991: # library depends on, so we explicitly say `no'.
16992: lt_cv_sys_dlopen_deplibs=no
16993: ;;
16994: osf5.0|osf5.0a|osf5.1)
16995: # dlopen *does* load deplibs and with the right loader patch applied
16996: # it even uses RPATH in a shared library to search for shared objects
16997: # that the library depends on, but there's no easy way to know if that
16998: # patch is installed. Since this is the case, all we can really
16999: # say is unknown -- it depends on the patch being installed. If
17000: # it is, this changes to `yes'. Without it, it would be `no'.
17001: lt_cv_sys_dlopen_deplibs=unknown
17002: ;;
17003: osf*)
17004: # the two cases above should catch all versions of osf <= 5.1. Read
17005: # the comments above for what we know about them.
17006: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
17007: # is used to find them so we can finally say `yes'.
17008: lt_cv_sys_dlopen_deplibs=yes
17009: ;;
17010: qnx*)
17011: lt_cv_sys_dlopen_deplibs=yes
17012: ;;
17013: solaris*)
17014: lt_cv_sys_dlopen_deplibs=yes
17015: ;;
17016: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17017: libltdl_cv_sys_dlopen_deplibs=yes
17018: ;;
17019: esac
17020:
17021: fi
1.150 moko 17022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
17023: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.128 moko 17024: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
17025:
1.150 moko 17026: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 17027:
17028: fi
17029:
17030: :
17031:
17032: for ac_header in argz.h
1.150 moko 17033: do :
17034: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
17035: "
17036: if test "x$ac_cv_header_argz_h" = xyes; then :
1.128 moko 17037: cat >>confdefs.h <<_ACEOF
1.150 moko 17038: #define HAVE_ARGZ_H 1
1.128 moko 17039: _ACEOF
17040:
1.66 paf 17041: fi
1.62 paf 17042:
1.128 moko 17043: done
17044:
1.29 paf 17045:
1.150 moko 17046: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 17047: # include <argz.h>
17048: #endif
1.150 moko 17049: "
17050: if test "x$ac_cv_type_error_t" = xyes; then :
1.29 paf 17051:
1.128 moko 17052: cat >>confdefs.h <<_ACEOF
17053: #define HAVE_ERROR_T 1
1.62 paf 17054: _ACEOF
1.16 paf 17055:
17056:
1.128 moko 17057: else
1.16 paf 17058:
1.150 moko 17059: $as_echo "#define error_t int" >>confdefs.h
1.16 paf 17060:
1.12 paf 17061:
1.150 moko 17062: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.12 paf 17063:
1.66 paf 17064: fi
1.12 paf 17065:
1.128 moko 17066:
17067: ARGZ_H=
17068: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
17069: argz_next argz_stringify
1.150 moko 17070: do :
17071: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17072: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17073: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17074: cat >>confdefs.h <<_ACEOF
1.150 moko 17075: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17076: _ACEOF
17077:
17078: else
17079: ARGZ_H=argz.h;
17080:
17081: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17082:
17083: fi
17084: done
17085:
17086:
1.150 moko 17087: if test -z "$ARGZ_H"; then :
17088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
17089: $as_echo_n "checking if argz actually works... " >&6; }
17090: if ${lt_cv_sys_argz_works+:} false; then :
17091: $as_echo_n "(cached) " >&6
1.128 moko 17092: else
17093: case $host_os in #(
17094: *cygwin*)
17095: lt_cv_sys_argz_works=no
17096: if test "$cross_compiling" != no; then
17097: lt_cv_sys_argz_works="guessing no"
17098: else
17099: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
17100: save_IFS=$IFS
17101: IFS=-.
17102: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
17103: IFS=$save_IFS
17104: lt_os_major=${2-0}
17105: lt_os_minor=${3-0}
17106: lt_os_micro=${4-0}
17107: if test "$lt_os_major" -gt 1 \
17108: || { test "$lt_os_major" -eq 1 \
17109: && { test "$lt_os_minor" -gt 5 \
17110: || { test "$lt_os_minor" -eq 5 \
17111: && test "$lt_os_micro" -gt 24; }; }; }; then
17112: lt_cv_sys_argz_works=yes
17113: fi
17114: fi
17115: ;; #(
17116: *) lt_cv_sys_argz_works=yes ;;
17117: esac
17118: fi
1.150 moko 17119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
17120: $as_echo "$lt_cv_sys_argz_works" >&6; }
17121: if test "$lt_cv_sys_argz_works" = yes; then :
1.128 moko 17122:
1.150 moko 17123: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 17124:
1.62 paf 17125: else
1.128 moko 17126: ARGZ_H=argz.h
17127:
17128:
17129: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17130:
17131: fi
1.62 paf 17132: fi
1.128 moko 17133:
17134:
17135:
1.150 moko 17136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
17137: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
17138: if ${libltdl_cv_preloaded_symbols+:} false; then :
17139: $as_echo_n "(cached) " >&6
1.128 moko 17140: else
17141: if test -n "$lt_cv_sys_global_symbol_pipe"; then
17142: libltdl_cv_preloaded_symbols=yes
17143: else
17144: libltdl_cv_preloaded_symbols=no
17145: fi
17146:
1.62 paf 17147: fi
1.150 moko 17148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
17149: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.128 moko 17150: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17151:
1.150 moko 17152: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 17153:
17154: fi
17155:
1.150 moko 17156:
17157:
1.128 moko 17158: # Set options
17159:
17160:
17161:
17162:
17163:
17164:
17165:
17166:
17167:
17168:
1.66 paf 17169:
17170:
1.150 moko 17171: # Check whether --with-included_ltdl was given.
17172: if test "${with_included_ltdl+set}" = set; then :
17173: withval=$with_included_ltdl;
17174: fi
1.64 paf 17175:
17176:
1.128 moko 17177: if test "x$with_included_ltdl" != xyes; then
17178: # We are not being forced to use the included libltdl sources, so
17179: # decide whether there is a useful installed version we can use.
1.150 moko 17180: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 17181:
1.150 moko 17182: "
17183: if test "x$ac_cv_header_ltdl_h" = xyes; then :
17184: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 17185: #include <ltdl.h>
1.150 moko 17186: "
17187: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
17188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
17189: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
17190: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
17191: $as_echo_n "(cached) " >&6
1.79 paf 17192: else
1.128 moko 17193: ac_check_lib_save_LIBS=$LIBS
17194: LIBS="-lltdl $LIBS"
1.150 moko 17195: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 17196: /* end confdefs.h. */
1.128 moko 17197:
1.150 moko 17198: /* Override any GCC internal prototype to avoid an error.
17199: Use char because int might match the return type of a GCC
17200: builtin and then its argument prototype would still apply. */
1.128 moko 17201: #ifdef __cplusplus
17202: extern "C"
17203: #endif
17204: char lt_dladvise_preload ();
1.79 paf 17205: int
17206: main ()
17207: {
1.150 moko 17208: return lt_dladvise_preload ();
1.79 paf 17209: ;
17210: return 0;
17211: }
17212: _ACEOF
1.150 moko 17213: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 17214: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 17215: else
1.150 moko 17216: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.128 moko 17217: fi
1.150 moko 17218: rm -f core conftest.err conftest.$ac_objext \
17219: conftest$ac_exeext conftest.$ac_ext
1.128 moko 17220: LIBS=$ac_check_lib_save_LIBS
1.79 paf 17221: fi
1.150 moko 17222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17223: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
17224: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.128 moko 17225: with_included_ltdl=no
1.79 paf 17226: else
1.128 moko 17227: with_included_ltdl=yes
17228: fi
17229:
1.79 paf 17230: else
1.128 moko 17231: with_included_ltdl=yes
17232: fi
1.79 paf 17233:
1.128 moko 17234: else
17235: with_included_ltdl=yes
1.79 paf 17236: fi
1.128 moko 17237:
17238:
1.79 paf 17239: fi
1.128 moko 17240:
17241:
17242:
17243:
1.150 moko 17244: # Check whether --with-ltdl_include was given.
17245: if test "${with_ltdl_include+set}" = set; then :
17246: withval=$with_ltdl_include;
17247: fi
1.128 moko 17248:
17249:
17250: if test -n "$with_ltdl_include"; then
17251: if test -f "$with_ltdl_include/ltdl.h"; then :
17252: else
1.150 moko 17253: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.128 moko 17254: fi
17255: else
17256: with_ltdl_include=no
1.79 paf 17257: fi
1.128 moko 17258:
17259:
1.150 moko 17260: # Check whether --with-ltdl_lib was given.
17261: if test "${with_ltdl_lib+set}" = set; then :
17262: withval=$with_ltdl_lib;
17263: fi
1.128 moko 17264:
17265:
17266: if test -n "$with_ltdl_lib"; then
17267: if test -f "$with_ltdl_lib/libltdl.la"; then :
17268: else
1.150 moko 17269: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.128 moko 17270: fi
17271: else
17272: with_ltdl_lib=no
1.79 paf 17273: fi
17274:
1.128 moko 17275: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17276: ,yes,no,no,)
17277: case $enable_ltdl_convenience in
1.150 moko 17278: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 17279: "") enable_ltdl_convenience=yes
17280: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17281: esac
1.150 moko 17282: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 17283: LTDLDEPS=$LIBLTDL
17284: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17285:
17286:
17287:
17288:
17289:
17290: # For backwards non-gettext consistent compatibility...
17291: INCLTDL="$LTDLINCL"
17292:
1.79 paf 17293:
1.128 moko 17294: ;;
17295: ,no,no,no,)
17296: # If the included ltdl is not to be used, then use the
17297: # preinstalled libltdl we found.
1.79 paf 17298:
1.150 moko 17299: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 17300:
1.128 moko 17301: LIBLTDL=-lltdl
17302: LTDLDEPS=
17303: LTDLINCL=
17304: ;;
17305: ,no*,no,*)
1.150 moko 17306: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 17307: ;;
17308: *) with_included_ltdl=no
17309: LIBLTDL="-L$with_ltdl_lib -lltdl"
17310: LTDLDEPS=
17311: LTDLINCL="-I$with_ltdl_include"
17312: ;;
17313: esac
17314: INCLTDL="$LTDLINCL"
17315:
17316: # Report our decision...
1.150 moko 17317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17318: $as_echo_n "checking where to find libltdl headers... " >&6; }
17319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17320: $as_echo "$LTDLINCL" >&6; }
17321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17322: $as_echo_n "checking where to find libltdl library... " >&6; }
17323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17324: $as_echo "$LIBLTDL" >&6; }
1.128 moko 17325:
17326:
17327:
1.150 moko 17328: # Check whether --enable-ltdl-install was given.
17329: if test "${enable_ltdl_install+set}" = set; then :
17330: enableval=$enable_ltdl_install;
17331: fi
1.128 moko 17332:
17333:
17334: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17335: *yes*) ;;
17336: *) enable_ltdl_convenience=yes ;;
17337: esac
17338:
1.150 moko 17339: if test x"${enable_ltdl_install-no}" != xno; then
1.128 moko 17340: INSTALL_LTDL_TRUE=
17341: INSTALL_LTDL_FALSE='#'
17342: else
17343: INSTALL_LTDL_TRUE='#'
17344: INSTALL_LTDL_FALSE=
17345: fi
17346:
1.150 moko 17347: if test x"${enable_ltdl_convenience-no}" != xno; then
1.128 moko 17348: CONVENIENCE_LTDL_TRUE=
17349: CONVENIENCE_LTDL_FALSE='#'
17350: else
17351: CONVENIENCE_LTDL_TRUE='#'
17352: CONVENIENCE_LTDL_FALSE=
17353: fi
17354:
17355:
17356:
1.150 moko 17357: subdirs="$subdirs src/lib/ltdl"
1.128 moko 17358:
17359:
17360:
17361:
17362: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17363: # the user used. This is so that ltdl.h can pick up the parent projects
17364: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17365: # definitions required by ltdl.c.
17366: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17367:
17368:
17369:
1.150 moko 17370: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17371: do :
17372: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17373: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17374: "
17375: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17376: cat >>confdefs.h <<_ACEOF
17377: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17378: _ACEOF
1.128 moko 17379:
1.150 moko 17380: fi
1.128 moko 17381:
1.150 moko 17382: done
1.128 moko 17383:
17384:
1.150 moko 17385: for ac_func in closedir opendir readdir
17386: do :
17387: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17388: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17389: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17390: cat >>confdefs.h <<_ACEOF
17391: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17392: _ACEOF
1.66 paf 17393:
17394: else
1.64 paf 17395:
1.66 paf 17396:
1.128 moko 17397: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17398:
1.66 paf 17399: fi
1.128 moko 17400: done
17401:
17402: for ac_func in strlcat strlcpy
1.150 moko 17403: do :
17404: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17405: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17406: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17407: cat >>confdefs.h <<_ACEOF
1.150 moko 17408: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17409: _ACEOF
17410:
17411: else
17412:
17413:
17414: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17415:
1.62 paf 17416: fi
1.128 moko 17417: done
17418:
17419:
1.64 paf 17420:
1.128 moko 17421: cat >>confdefs.h <<_ACEOF
17422: #define LT_LIBEXT "$libext"
1.62 paf 17423: _ACEOF
1.64 paf 17424:
1.128 moko 17425:
17426: name=
17427: eval "lt_libprefix=\"$libname_spec\""
17428:
17429: cat >>confdefs.h <<_ACEOF
17430: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17431: _ACEOF
1.128 moko 17432:
17433:
17434: name=ltdl
17435: eval "LTDLOPEN=\"$libname_spec\""
17436:
17437:
17438:
17439:
17440:
17441:
17442:
17443:
17444: # Only expand once:
17445:
17446:
17447:
17448:
1.150 moko 17449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17450: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17451: if ${ac_cv_c_bigendian+:} false; then :
17452: $as_echo_n "(cached) " >&6
17453: else
17454: ac_cv_c_bigendian=unknown
17455: # See if we're dealing with a universal compiler.
17456: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457: /* end confdefs.h. */
17458: #ifndef __APPLE_CC__
17459: not a universal capable compiler
17460: #endif
17461: typedef int dummy;
17462:
17463: _ACEOF
17464: if ac_fn_c_try_compile "$LINENO"; then :
17465:
17466: # Check for potential -arch flags. It is not universal unless
17467: # there are at least two -arch flags with different values.
17468: ac_arch=
17469: ac_prev=
17470: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17471: if test -n "$ac_prev"; then
17472: case $ac_word in
17473: i?86 | x86_64 | ppc | ppc64)
17474: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17475: ac_arch=$ac_word
17476: else
17477: ac_cv_c_bigendian=universal
17478: break
17479: fi
17480: ;;
17481: esac
17482: ac_prev=
17483: elif test "x$ac_word" = "x-arch"; then
17484: ac_prev=arch
17485: fi
17486: done
17487: fi
17488: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17489: if test $ac_cv_c_bigendian = unknown; then
17490: # See if sys/param.h defines the BYTE_ORDER macro.
17491: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 17492: /* end confdefs.h. */
1.128 moko 17493: #include <sys/types.h>
1.150 moko 17494: #include <sys/param.h>
1.128 moko 17495:
17496: int
17497: main ()
17498: {
1.150 moko 17499: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17500: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17501: && LITTLE_ENDIAN)
17502: bogus endian macros
17503: #endif
1.64 paf 17504:
1.128 moko 17505: ;
17506: return 0;
17507: }
1.66 paf 17508: _ACEOF
1.150 moko 17509: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17510: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 17511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 17512: /* end confdefs.h. */
1.128 moko 17513: #include <sys/types.h>
1.150 moko 17514: #include <sys/param.h>
1.64 paf 17515:
17516: int
17517: main ()
1.128 moko 17518: {
17519: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 17520: not big endian
17521: #endif
1.128 moko 17522:
17523: ;
17524: return 0;
1.64 paf 17525: }
17526: _ACEOF
1.150 moko 17527: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17528: ac_cv_c_bigendian=yes
1.64 paf 17529: else
1.150 moko 17530: ac_cv_c_bigendian=no
17531: fi
17532: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533: fi
17534: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17535: fi
17536: if test $ac_cv_c_bigendian = unknown; then
17537: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17538: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539: /* end confdefs.h. */
17540: #include <limits.h>
1.64 paf 17541:
1.150 moko 17542: int
17543: main ()
17544: {
17545: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17546: bogus endian macros
17547: #endif
1.66 paf 17548:
1.150 moko 17549: ;
17550: return 0;
17551: }
1.62 paf 17552: _ACEOF
1.150 moko 17553: if ac_fn_c_try_compile "$LINENO"; then :
17554: # It does; now see whether it defined to _BIG_ENDIAN or not.
17555: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17556: /* end confdefs.h. */
1.150 moko 17557: #include <limits.h>
17558:
1.128 moko 17559: int
17560: main ()
17561: {
1.150 moko 17562: #ifndef _BIG_ENDIAN
17563: not big endian
17564: #endif
17565:
1.128 moko 17566: ;
17567: return 0;
17568: }
1.62 paf 17569: _ACEOF
1.150 moko 17570: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17571: ac_cv_c_bigendian=yes
1.150 moko 17572: else
17573: ac_cv_c_bigendian=no
1.128 moko 17574: fi
1.150 moko 17575: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17576: fi
1.150 moko 17577: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17578: fi
17579: if test $ac_cv_c_bigendian = unknown; then
17580: # Compile a test program.
17581: if test "$cross_compiling" = yes; then :
17582: # Try to guess by grepping values from an object file.
17583: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584: /* end confdefs.h. */
17585: short int ascii_mm[] =
17586: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17587: short int ascii_ii[] =
17588: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17589: int use_ascii (int i) {
17590: return ascii_mm[i] + ascii_ii[i];
17591: }
17592: short int ebcdic_ii[] =
17593: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17594: short int ebcdic_mm[] =
17595: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17596: int use_ebcdic (int i) {
17597: return ebcdic_mm[i] + ebcdic_ii[i];
17598: }
17599: extern int foo;
1.62 paf 17600:
1.150 moko 17601: int
17602: main ()
17603: {
17604: return use_ascii (foo) == use_ebcdic (foo);
17605: ;
17606: return 0;
17607: }
17608: _ACEOF
17609: if ac_fn_c_try_compile "$LINENO"; then :
17610: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17611: ac_cv_c_bigendian=yes
17612: fi
17613: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17614: if test "$ac_cv_c_bigendian" = unknown; then
17615: ac_cv_c_bigendian=no
17616: else
17617: # finding both strings is unlikely to happen, but who knows?
17618: ac_cv_c_bigendian=unknown
17619: fi
17620: fi
1.128 moko 17621: fi
1.150 moko 17622: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17623: else
1.150 moko 17624: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17625: /* end confdefs.h. */
1.150 moko 17626: $ac_includes_default
1.128 moko 17627: int
17628: main ()
17629: {
1.150 moko 17630:
17631: /* Are we little or big endian? From Harbison&Steele. */
17632: union
17633: {
17634: long int l;
17635: char c[sizeof (long int)];
17636: } u;
17637: u.l = 1;
17638: return u.c[sizeof (long int) - 1] == 1;
17639:
17640: ;
17641: return 0;
1.128 moko 17642: }
17643: _ACEOF
1.150 moko 17644: if ac_fn_c_try_run "$LINENO"; then :
1.128 moko 17645: ac_cv_c_bigendian=no
17646: else
1.150 moko 17647: ac_cv_c_bigendian=yes
1.128 moko 17648: fi
1.150 moko 17649: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17650: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 17651: fi
1.150 moko 17652:
17653: fi
1.66 paf 17654: fi
1.150 moko 17655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17656: $as_echo "$ac_cv_c_bigendian" >&6; }
17657: case $ac_cv_c_bigendian in #(
17658: yes)
17659:
17660: $as_echo "#define PA_BIG_ENDIAN /**/" >>confdefs.h
17661:
17662: ;; #(
17663: no)
1.128 moko 17664:
1.150 moko 17665: $as_echo "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 17666:
1.150 moko 17667: ;; #(
17668: universal)
1.128 moko 17669:
1.150 moko 17670: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 17671:
1.150 moko 17672: ;; #(
17673: *)
17674: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 17675: ;;
1.150 moko 17676: esac
1.66 paf 17677:
17678:
1.150 moko 17679: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17680: if test "x$ac_cv_type_size_t" = xyes; then :
1.62 paf 17681:
1.66 paf 17682: else
1.1 paf 17683:
1.66 paf 17684: cat >>confdefs.h <<_ACEOF
1.150 moko 17685: #define size_t unsigned int
1.66 paf 17686: _ACEOF
1.62 paf 17687:
17688: fi
1.66 paf 17689:
1.156 moko 17690: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17691: if test "x$ac_cv_type_ssize_t" = xyes; then :
17692:
17693: else
17694:
17695: cat >>confdefs.h <<_ACEOF
17696: #define ssize_t int
17697: _ACEOF
17698:
17699: fi
17700:
1.159 moko 17701: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17702: case $ac_cv_c_uint8_t in #(
17703: no|yes) ;; #(
17704: *)
17705:
17706: $as_echo "#define _UINT8_T 1" >>confdefs.h
17707:
17708:
17709: cat >>confdefs.h <<_ACEOF
17710: #define uint8_t $ac_cv_c_uint8_t
17711: _ACEOF
17712: ;;
17713: esac
17714:
1.165 moko 17715: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17716: case $ac_cv_c_uint16_t in #(
17717: no|yes) ;; #(
17718: *)
17719:
17720:
17721: cat >>confdefs.h <<_ACEOF
17722: #define uint16_t $ac_cv_c_uint16_t
17723: _ACEOF
17724: ;;
17725: esac
17726:
1.156 moko 17727: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17728: case $ac_cv_c_uint32_t in #(
17729: no|yes) ;; #(
17730: *)
17731:
17732: $as_echo "#define _UINT32_T 1" >>confdefs.h
17733:
17734:
17735: cat >>confdefs.h <<_ACEOF
17736: #define uint32_t $ac_cv_c_uint32_t
17737: _ACEOF
17738: ;;
17739: esac
1.128 moko 17740:
1.159 moko 17741: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17742: case $ac_cv_c_uint64_t in #(
17743: no|yes) ;; #(
17744: *)
17745:
17746: $as_echo "#define _UINT64_T 1" >>confdefs.h
17747:
17748:
17749: cat >>confdefs.h <<_ACEOF
17750: #define uint64_t $ac_cv_c_uint64_t
17751: _ACEOF
17752: ;;
17753: esac
17754:
17755:
1.161 moko 17756: ac_header_dirent=no
17757: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17758: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17760: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17761: if eval \${$as_ac_Header+:} false; then :
17762: $as_echo_n "(cached) " >&6
17763: else
17764: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765: /* end confdefs.h. */
17766: #include <sys/types.h>
17767: #include <$ac_hdr>
17768:
17769: int
17770: main ()
17771: {
17772: if ((DIR *) 0)
17773: return 0;
17774: ;
17775: return 0;
17776: }
17777: _ACEOF
17778: if ac_fn_c_try_compile "$LINENO"; then :
17779: eval "$as_ac_Header=yes"
17780: else
17781: eval "$as_ac_Header=no"
17782: fi
17783: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17784: fi
17785: eval ac_res=\$$as_ac_Header
17786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17787: $as_echo "$ac_res" >&6; }
17788: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17789: cat >>confdefs.h <<_ACEOF
17790: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17791: _ACEOF
17792:
17793: ac_header_dirent=$ac_hdr; break
17794: fi
17795:
17796: done
17797: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17798: if test $ac_header_dirent = dirent.h; then
17799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17800: $as_echo_n "checking for library containing opendir... " >&6; }
17801: if ${ac_cv_search_opendir+:} false; then :
17802: $as_echo_n "(cached) " >&6
17803: else
17804: ac_func_search_save_LIBS=$LIBS
17805: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17806: /* end confdefs.h. */
17807:
17808: /* Override any GCC internal prototype to avoid an error.
17809: Use char because int might match the return type of a GCC
17810: builtin and then its argument prototype would still apply. */
17811: #ifdef __cplusplus
17812: extern "C"
17813: #endif
17814: char opendir ();
17815: int
17816: main ()
17817: {
17818: return opendir ();
17819: ;
17820: return 0;
17821: }
17822: _ACEOF
17823: for ac_lib in '' dir; do
17824: if test -z "$ac_lib"; then
17825: ac_res="none required"
17826: else
17827: ac_res=-l$ac_lib
17828: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17829: fi
17830: if ac_fn_c_try_link "$LINENO"; then :
17831: ac_cv_search_opendir=$ac_res
17832: fi
17833: rm -f core conftest.err conftest.$ac_objext \
17834: conftest$ac_exeext
17835: if ${ac_cv_search_opendir+:} false; then :
17836: break
17837: fi
17838: done
17839: if ${ac_cv_search_opendir+:} false; then :
17840:
17841: else
17842: ac_cv_search_opendir=no
17843: fi
17844: rm conftest.$ac_ext
17845: LIBS=$ac_func_search_save_LIBS
17846: fi
17847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17848: $as_echo "$ac_cv_search_opendir" >&6; }
17849: ac_res=$ac_cv_search_opendir
17850: if test "$ac_res" != no; then :
17851: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17852:
17853: fi
17854:
17855: else
17856: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17857: $as_echo_n "checking for library containing opendir... " >&6; }
17858: if ${ac_cv_search_opendir+:} false; then :
17859: $as_echo_n "(cached) " >&6
17860: else
17861: ac_func_search_save_LIBS=$LIBS
17862: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17863: /* end confdefs.h. */
17864:
17865: /* Override any GCC internal prototype to avoid an error.
17866: Use char because int might match the return type of a GCC
17867: builtin and then its argument prototype would still apply. */
17868: #ifdef __cplusplus
17869: extern "C"
17870: #endif
17871: char opendir ();
17872: int
17873: main ()
17874: {
17875: return opendir ();
17876: ;
17877: return 0;
17878: }
17879: _ACEOF
17880: for ac_lib in '' x; do
17881: if test -z "$ac_lib"; then
17882: ac_res="none required"
17883: else
17884: ac_res=-l$ac_lib
17885: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17886: fi
17887: if ac_fn_c_try_link "$LINENO"; then :
17888: ac_cv_search_opendir=$ac_res
17889: fi
17890: rm -f core conftest.err conftest.$ac_objext \
17891: conftest$ac_exeext
17892: if ${ac_cv_search_opendir+:} false; then :
17893: break
17894: fi
17895: done
17896: if ${ac_cv_search_opendir+:} false; then :
17897:
17898: else
17899: ac_cv_search_opendir=no
17900: fi
17901: rm conftest.$ac_ext
17902: LIBS=$ac_func_search_save_LIBS
17903: fi
17904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17905: $as_echo "$ac_cv_search_opendir" >&6; }
17906: ac_res=$ac_cv_search_opendir
17907: if test "$ac_res" != no; then :
17908: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17909:
17910: fi
17911:
17912: fi
17913:
17914:
17915:
17916: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17917: #include <sys/types.h>
17918: #ifdef HAVE_DIRENT_H
17919: # include <dirent.h>
17920: #else
17921: # define dirent direct
17922: # ifdef HAVE_SYS_NDIR_H
17923: # include <sys/ndir.h>
17924: # endif
17925: # ifdef HAVE_SYS_DIR_H
17926: # include <sys/dir.h>
17927: # endif
17928: # ifdef HAVE_NDIR_H
17929: # include <ndir.h>
17930: # endif
17931: #endif
17932:
17933: "
17934: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17935:
17936: cat >>confdefs.h <<_ACEOF
17937: #define HAVE_STRUCT_DIRENT_D_TYPE 1
17938: _ACEOF
17939:
17940:
17941: fi
17942:
17943:
1.159 moko 17944:
1.171 moko 17945: # Check whether --enable-largefile was given.
17946: if test "${enable_largefile+set}" = set; then :
17947: enableval=$enable_largefile;
17948: fi
17949:
17950: if test "$enable_largefile" != no; then
17951:
17952: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17953: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17954: if ${ac_cv_sys_largefile_CC+:} false; then :
17955: $as_echo_n "(cached) " >&6
17956: else
17957: ac_cv_sys_largefile_CC=no
17958: if test "$GCC" != yes; then
17959: ac_save_CC=$CC
17960: while :; do
17961: # IRIX 6.2 and later do not support large files by default,
17962: # so use the C compiler's -n32 option if that helps.
17963: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17964: /* end confdefs.h. */
17965: #include <sys/types.h>
17966: /* Check that off_t can represent 2**63 - 1 correctly.
17967: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17968: since some C++ compilers masquerading as C compilers
17969: incorrectly reject 9223372036854775807. */
1.191 moko 17970: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 17971: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17972: && LARGE_OFF_T % 2147483647 == 1)
17973: ? 1 : -1];
17974: int
17975: main ()
17976: {
17977:
17978: ;
17979: return 0;
17980: }
17981: _ACEOF
17982: if ac_fn_c_try_compile "$LINENO"; then :
17983: break
17984: fi
17985: rm -f core conftest.err conftest.$ac_objext
17986: CC="$CC -n32"
17987: if ac_fn_c_try_compile "$LINENO"; then :
17988: ac_cv_sys_largefile_CC=' -n32'; break
17989: fi
17990: rm -f core conftest.err conftest.$ac_objext
17991: break
17992: done
17993: CC=$ac_save_CC
17994: rm -f conftest.$ac_ext
17995: fi
17996: fi
17997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17998: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17999: if test "$ac_cv_sys_largefile_CC" != no; then
18000: CC=$CC$ac_cv_sys_largefile_CC
18001: fi
18002:
18003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18004: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18005: if ${ac_cv_sys_file_offset_bits+:} false; then :
18006: $as_echo_n "(cached) " >&6
18007: else
18008: while :; do
18009: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010: /* end confdefs.h. */
18011: #include <sys/types.h>
18012: /* Check that off_t can represent 2**63 - 1 correctly.
18013: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18014: since some C++ compilers masquerading as C compilers
18015: incorrectly reject 9223372036854775807. */
1.191 moko 18016: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18017: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18018: && LARGE_OFF_T % 2147483647 == 1)
18019: ? 1 : -1];
18020: int
18021: main ()
18022: {
18023:
18024: ;
18025: return 0;
18026: }
18027: _ACEOF
18028: if ac_fn_c_try_compile "$LINENO"; then :
18029: ac_cv_sys_file_offset_bits=no; break
18030: fi
18031: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18032: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033: /* end confdefs.h. */
18034: #define _FILE_OFFSET_BITS 64
18035: #include <sys/types.h>
18036: /* Check that off_t can represent 2**63 - 1 correctly.
18037: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18038: since some C++ compilers masquerading as C compilers
18039: incorrectly reject 9223372036854775807. */
1.191 moko 18040: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18041: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18042: && LARGE_OFF_T % 2147483647 == 1)
18043: ? 1 : -1];
18044: int
18045: main ()
18046: {
18047:
18048: ;
18049: return 0;
18050: }
18051: _ACEOF
18052: if ac_fn_c_try_compile "$LINENO"; then :
18053: ac_cv_sys_file_offset_bits=64; break
18054: fi
18055: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056: ac_cv_sys_file_offset_bits=unknown
18057: break
18058: done
18059: fi
18060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18061: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18062: case $ac_cv_sys_file_offset_bits in #(
18063: no | unknown) ;;
18064: *)
18065: cat >>confdefs.h <<_ACEOF
18066: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18067: _ACEOF
18068: ;;
18069: esac
18070: rm -rf conftest*
18071: if test $ac_cv_sys_file_offset_bits = unknown; then
18072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18073: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18074: if ${ac_cv_sys_large_files+:} false; then :
18075: $as_echo_n "(cached) " >&6
18076: else
18077: while :; do
18078: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079: /* end confdefs.h. */
18080: #include <sys/types.h>
18081: /* Check that off_t can represent 2**63 - 1 correctly.
18082: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18083: since some C++ compilers masquerading as C compilers
18084: incorrectly reject 9223372036854775807. */
1.191 moko 18085: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18086: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18087: && LARGE_OFF_T % 2147483647 == 1)
18088: ? 1 : -1];
18089: int
18090: main ()
18091: {
18092:
18093: ;
18094: return 0;
18095: }
18096: _ACEOF
18097: if ac_fn_c_try_compile "$LINENO"; then :
18098: ac_cv_sys_large_files=no; break
18099: fi
18100: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18101: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18102: /* end confdefs.h. */
18103: #define _LARGE_FILES 1
18104: #include <sys/types.h>
18105: /* Check that off_t can represent 2**63 - 1 correctly.
18106: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18107: since some C++ compilers masquerading as C compilers
18108: incorrectly reject 9223372036854775807. */
1.191 moko 18109: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18110: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18111: && LARGE_OFF_T % 2147483647 == 1)
18112: ? 1 : -1];
18113: int
18114: main ()
18115: {
18116:
18117: ;
18118: return 0;
18119: }
18120: _ACEOF
18121: if ac_fn_c_try_compile "$LINENO"; then :
18122: ac_cv_sys_large_files=1; break
18123: fi
18124: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18125: ac_cv_sys_large_files=unknown
18126: break
18127: done
18128: fi
18129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18130: $as_echo "$ac_cv_sys_large_files" >&6; }
18131: case $ac_cv_sys_large_files in #(
18132: no | unknown) ;;
18133: *)
18134: cat >>confdefs.h <<_ACEOF
18135: #define _LARGE_FILES $ac_cv_sys_large_files
18136: _ACEOF
18137: ;;
18138: esac
18139: rm -rf conftest*
18140: fi
18141:
18142:
18143: fi
18144:
18145:
1.159 moko 18146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18147: $as_echo_n "checking for ANSI C header files... " >&6; }
18148: if ${ac_cv_header_stdc+:} false; then :
18149: $as_echo_n "(cached) " >&6
18150: else
18151: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152: /* end confdefs.h. */
18153: #include <stdlib.h>
18154: #include <stdarg.h>
18155: #include <string.h>
18156: #include <float.h>
18157:
18158: int
18159: main ()
18160: {
18161:
18162: ;
18163: return 0;
18164: }
18165: _ACEOF
18166: if ac_fn_c_try_compile "$LINENO"; then :
18167: ac_cv_header_stdc=yes
18168: else
18169: ac_cv_header_stdc=no
18170: fi
18171: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18172:
18173: if test $ac_cv_header_stdc = yes; then
18174: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18175: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176: /* end confdefs.h. */
18177: #include <string.h>
18178:
18179: _ACEOF
18180: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18181: $EGREP "memchr" >/dev/null 2>&1; then :
18182:
18183: else
18184: ac_cv_header_stdc=no
18185: fi
18186: rm -f conftest*
18187:
18188: fi
18189:
18190: if test $ac_cv_header_stdc = yes; then
18191: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18192: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193: /* end confdefs.h. */
18194: #include <stdlib.h>
18195:
18196: _ACEOF
18197: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18198: $EGREP "free" >/dev/null 2>&1; then :
18199:
18200: else
18201: ac_cv_header_stdc=no
18202: fi
18203: rm -f conftest*
18204:
18205: fi
18206:
18207: if test $ac_cv_header_stdc = yes; then
18208: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18209: if test "$cross_compiling" = yes; then :
18210: :
18211: else
18212: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18213: /* end confdefs.h. */
18214: #include <ctype.h>
18215: #include <stdlib.h>
18216: #if ((' ' & 0x0FF) == 0x020)
18217: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18218: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18219: #else
18220: # define ISLOWER(c) \
18221: (('a' <= (c) && (c) <= 'i') \
18222: || ('j' <= (c) && (c) <= 'r') \
18223: || ('s' <= (c) && (c) <= 'z'))
18224: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18225: #endif
18226:
18227: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18228: int
18229: main ()
18230: {
18231: int i;
18232: for (i = 0; i < 256; i++)
18233: if (XOR (islower (i), ISLOWER (i))
18234: || toupper (i) != TOUPPER (i))
18235: return 2;
18236: return 0;
18237: }
18238: _ACEOF
18239: if ac_fn_c_try_run "$LINENO"; then :
18240:
18241: else
18242: ac_cv_header_stdc=no
18243: fi
18244: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18245: conftest.$ac_objext conftest.beam conftest.$ac_ext
18246: fi
18247:
18248: fi
18249: fi
18250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18251: $as_echo "$ac_cv_header_stdc" >&6; }
18252: if test $ac_cv_header_stdc = yes; then
18253:
18254: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18255:
18256: fi
1.128 moko 18257:
1.150 moko 18258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18259: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18260: if ${ac_cv_header_time+:} false; then :
18261: $as_echo_n "(cached) " >&6
1.62 paf 18262: else
1.150 moko 18263: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18264: /* end confdefs.h. */
1.66 paf 18265: #include <sys/types.h>
18266: #include <sys/time.h>
18267: #include <time.h>
1.62 paf 18268:
18269: int
18270: main ()
18271: {
1.66 paf 18272: if ((struct tm *) 0)
18273: return 0;
1.62 paf 18274: ;
18275: return 0;
18276: }
18277: _ACEOF
1.150 moko 18278: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 18279: ac_cv_header_time=yes
1.1 paf 18280: else
1.150 moko 18281: ac_cv_header_time=no
1.1 paf 18282: fi
1.150 moko 18283: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18284: fi
1.150 moko 18285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18286: $as_echo "$ac_cv_header_time" >&6; }
1.66 paf 18287: if test $ac_cv_header_time = yes; then
1.1 paf 18288:
1.150 moko 18289: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.66 paf 18290:
1.1 paf 18291: fi
1.66 paf 18292:
1.1 paf 18293:
1.159 moko 18294: for ac_header in stdio.h sys/types.h sys/stat.h stdlib.h stddef.h memory.h string.h strings.h inttypes.h stdint.h unistd.h
18295: do :
18296: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18297: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18298: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18299: cat >>confdefs.h <<_ACEOF
18300: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18301: _ACEOF
18302:
18303: fi
1.150 moko 18304:
1.159 moko 18305: done
18306:
1.207 moko 18307: for ac_header in assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h pthread.h
1.159 moko 18308: do :
18309: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18310: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18311: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18312: cat >>confdefs.h <<_ACEOF
18313: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18314: _ACEOF
18315:
18316: fi
18317:
18318: done
18319:
1.164 moko 18320: for ac_header in errno.h dirent.h fcntl.h io.h sys/file.h sys/locking.h sys/select.h sys/resource.h sys/wait.h
1.159 moko 18321: do :
18322: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18323: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18324: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18325: cat >>confdefs.h <<_ACEOF
18326: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18327: _ACEOF
18328:
18329: fi
18330:
18331: done
18332:
1.163 moko 18333: for ac_header in sys/socket.h netinet/in.h arpa/inet.h netdb.h
1.150 moko 18334: do :
18335: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18336: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18337: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.66 paf 18338: cat >>confdefs.h <<_ACEOF
1.150 moko 18339: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18340: _ACEOF
18341:
18342: fi
18343:
1.66 paf 18344: done
1.62 paf 18345:
18346:
18347:
1.66 paf 18348: case "$host" in
1.107 misha 18349: *-freebsd4*)
18350:
1.150 moko 18351: $as_echo "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 18352:
18353: ;;
1.195 moko 18354: *-freebsd1*)
18355:
18356: $as_echo "#define FREEBSD1X /**/" >>confdefs.h
18357:
18358: ;;
1.66 paf 18359: *-sunos5.6* | *-solaris2.6*)
1.150 moko 18360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
18361: $as_echo_n "checking for main in -lxnet... " >&6; }
18362: if ${ac_cv_lib_xnet_main+:} false; then :
18363: $as_echo_n "(cached) " >&6
1.62 paf 18364: else
1.66 paf 18365: ac_check_lib_save_LIBS=$LIBS
18366: LIBS="-lxnet $LIBS"
1.150 moko 18367: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18368: /* end confdefs.h. */
18369:
1.66 paf 18370:
18371: int
18372: main ()
18373: {
1.150 moko 18374: return main ();
1.66 paf 18375: ;
18376: return 0;
18377: }
1.62 paf 18378: _ACEOF
1.150 moko 18379: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18380: ac_cv_lib_xnet_main=yes
1.62 paf 18381: else
1.150 moko 18382: ac_cv_lib_xnet_main=no
1.62 paf 18383: fi
1.150 moko 18384: rm -f core conftest.err conftest.$ac_objext \
18385: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18386: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18387: fi
1.150 moko 18388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
18389: $as_echo "$ac_cv_lib_xnet_main" >&6; }
18390: if test "x$ac_cv_lib_xnet_main" = xyes; then :
1.62 paf 18391: cat >>confdefs.h <<_ACEOF
1.66 paf 18392: #define HAVE_LIBXNET 1
1.62 paf 18393: _ACEOF
1.1 paf 18394:
1.66 paf 18395: LIBS="-lxnet $LIBS"
18396:
1.1 paf 18397: fi
18398:
1.66 paf 18399: ;;
18400: *-sunos5* | *-solaris2*)
1.150 moko 18401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
18402: $as_echo_n "checking for main in -lsocket... " >&6; }
18403: if ${ac_cv_lib_socket_main+:} false; then :
18404: $as_echo_n "(cached) " >&6
1.62 paf 18405: else
1.66 paf 18406: ac_check_lib_save_LIBS=$LIBS
18407: LIBS="-lsocket $LIBS"
1.150 moko 18408: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18409: /* end confdefs.h. */
1.66 paf 18410:
18411:
1.62 paf 18412: int
18413: main ()
18414: {
1.150 moko 18415: return main ();
1.62 paf 18416: ;
18417: return 0;
18418: }
18419: _ACEOF
1.150 moko 18420: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18421: ac_cv_lib_socket_main=yes
1.1 paf 18422: else
1.150 moko 18423: ac_cv_lib_socket_main=no
1.1 paf 18424: fi
1.150 moko 18425: rm -f core conftest.err conftest.$ac_objext \
18426: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18427: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18428: fi
1.150 moko 18429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
18430: $as_echo "$ac_cv_lib_socket_main" >&6; }
18431: if test "x$ac_cv_lib_socket_main" = xyes; then :
1.66 paf 18432: cat >>confdefs.h <<_ACEOF
18433: #define HAVE_LIBSOCKET 1
18434: _ACEOF
1.1 paf 18435:
1.66 paf 18436: LIBS="-lsocket $LIBS"
1.1 paf 18437:
18438: fi
18439:
1.150 moko 18440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
18441: $as_echo_n "checking for main in -lnsl... " >&6; }
18442: if ${ac_cv_lib_nsl_main+:} false; then :
18443: $as_echo_n "(cached) " >&6
1.62 paf 18444: else
1.66 paf 18445: ac_check_lib_save_LIBS=$LIBS
18446: LIBS="-lnsl $LIBS"
1.150 moko 18447: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18448: /* end confdefs.h. */
1.66 paf 18449:
18450:
1.62 paf 18451: int
18452: main ()
18453: {
1.150 moko 18454: return main ();
1.62 paf 18455: ;
18456: return 0;
18457: }
18458: _ACEOF
1.150 moko 18459: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18460: ac_cv_lib_nsl_main=yes
1.30 paf 18461: else
1.150 moko 18462: ac_cv_lib_nsl_main=no
1.30 paf 18463: fi
1.150 moko 18464: rm -f core conftest.err conftest.$ac_objext \
18465: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18466: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18467: fi
1.150 moko 18468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
18469: $as_echo "$ac_cv_lib_nsl_main" >&6; }
18470: if test "x$ac_cv_lib_nsl_main" = xyes; then :
1.66 paf 18471: cat >>confdefs.h <<_ACEOF
18472: #define HAVE_LIBNSL 1
18473: _ACEOF
1.30 paf 18474:
1.66 paf 18475: LIBS="-lnsl $LIBS"
1.30 paf 18476:
18477: fi
18478:
1.66 paf 18479: ;;
18480: *-nec-sysv4*)
1.150 moko 18481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18482: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18483: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18484: $as_echo_n "(cached) " >&6
1.62 paf 18485: else
1.66 paf 18486: ac_check_lib_save_LIBS=$LIBS
18487: LIBS="-lnsl $LIBS"
1.150 moko 18488: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18489: /* end confdefs.h. */
1.66 paf 18490:
1.150 moko 18491: /* Override any GCC internal prototype to avoid an error.
18492: Use char because int might match the return type of a GCC
18493: builtin and then its argument prototype would still apply. */
1.66 paf 18494: #ifdef __cplusplus
18495: extern "C"
18496: #endif
18497: char gethostbyname ();
1.62 paf 18498: int
18499: main ()
18500: {
1.150 moko 18501: return gethostbyname ();
1.62 paf 18502: ;
18503: return 0;
18504: }
18505: _ACEOF
1.150 moko 18506: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18507: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18508: else
1.150 moko 18509: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18510: fi
1.150 moko 18511: rm -f core conftest.err conftest.$ac_objext \
18512: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18513: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18514: fi
1.150 moko 18515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18516: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18517: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.66 paf 18518: cat >>confdefs.h <<_ACEOF
18519: #define HAVE_LIBNSL 1
18520: _ACEOF
1.30 paf 18521:
1.66 paf 18522: LIBS="-lnsl $LIBS"
1.30 paf 18523:
18524: fi
18525:
1.150 moko 18526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18527: $as_echo_n "checking for socket in -lsocket... " >&6; }
18528: if ${ac_cv_lib_socket_socket+:} false; then :
18529: $as_echo_n "(cached) " >&6
1.8 paf 18530: else
1.66 paf 18531: ac_check_lib_save_LIBS=$LIBS
18532: LIBS="-lsocket $LIBS"
1.150 moko 18533: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18534: /* end confdefs.h. */
18535:
1.150 moko 18536: /* Override any GCC internal prototype to avoid an error.
18537: Use char because int might match the return type of a GCC
18538: builtin and then its argument prototype would still apply. */
1.66 paf 18539: #ifdef __cplusplus
18540: extern "C"
18541: #endif
18542: char socket ();
1.62 paf 18543: int
18544: main ()
18545: {
1.150 moko 18546: return socket ();
1.62 paf 18547: ;
18548: return 0;
18549: }
18550: _ACEOF
1.150 moko 18551: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18552: ac_cv_lib_socket_socket=yes
1.8 paf 18553: else
1.150 moko 18554: ac_cv_lib_socket_socket=no
1.8 paf 18555: fi
1.150 moko 18556: rm -f core conftest.err conftest.$ac_objext \
18557: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18558: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18559: fi
1.150 moko 18560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18561: $as_echo "$ac_cv_lib_socket_socket" >&6; }
18562: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.66 paf 18563: cat >>confdefs.h <<_ACEOF
1.128 moko 18564: #define HAVE_LIBSOCKET 1
1.66 paf 18565: _ACEOF
18566:
1.128 moko 18567: LIBS="-lsocket $LIBS"
1.66 paf 18568:
1.62 paf 18569: fi
18570:
1.66 paf 18571: ;;
1.128 moko 18572: *-cygwin*)
18573:
1.150 moko 18574: $as_echo "#define WIN32 /**/" >>confdefs.h
1.128 moko 18575:
1.66 paf 18576: ;;
18577: esac
1.1 paf 18578:
1.150 moko 18579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18580: $as_echo_n "checking for sin in -lm... " >&6; }
18581: if ${ac_cv_lib_m_sin+:} false; then :
18582: $as_echo_n "(cached) " >&6
1.1 paf 18583: else
1.62 paf 18584: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18585: LIBS="-lm $LIBS"
1.150 moko 18586: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18587: /* end confdefs.h. */
18588:
1.150 moko 18589: /* Override any GCC internal prototype to avoid an error.
18590: Use char because int might match the return type of a GCC
18591: builtin and then its argument prototype would still apply. */
1.66 paf 18592: #ifdef __cplusplus
18593: extern "C"
18594: #endif
18595: char sin ();
1.62 paf 18596: int
18597: main ()
18598: {
1.150 moko 18599: return sin ();
1.62 paf 18600: ;
18601: return 0;
18602: }
18603: _ACEOF
1.150 moko 18604: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18605: ac_cv_lib_m_sin=yes
1.62 paf 18606: else
1.150 moko 18607: ac_cv_lib_m_sin=no
1.62 paf 18608: fi
1.150 moko 18609: rm -f core conftest.err conftest.$ac_objext \
18610: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18611: LIBS=$ac_check_lib_save_LIBS
18612: fi
1.150 moko 18613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18614: $as_echo "$ac_cv_lib_m_sin" >&6; }
18615: if test "x$ac_cv_lib_m_sin" = xyes; then :
1.62 paf 18616: cat >>confdefs.h <<_ACEOF
1.66 paf 18617: #define HAVE_LIBM 1
1.62 paf 18618: _ACEOF
1.1 paf 18619:
1.66 paf 18620: LIBS="-lm $LIBS"
1.1 paf 18621:
18622: fi
18623:
1.150 moko 18624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18625: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18626: if ${ac_cv_lib_crypt_crypt+:} false; then :
18627: $as_echo_n "(cached) " >&6
1.1 paf 18628: else
1.62 paf 18629: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18630: LIBS="-lcrypt $LIBS"
1.150 moko 18631: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18632: /* end confdefs.h. */
18633:
1.150 moko 18634: /* Override any GCC internal prototype to avoid an error.
18635: Use char because int might match the return type of a GCC
18636: builtin and then its argument prototype would still apply. */
1.66 paf 18637: #ifdef __cplusplus
18638: extern "C"
18639: #endif
18640: char crypt ();
1.62 paf 18641: int
18642: main ()
18643: {
1.150 moko 18644: return crypt ();
1.62 paf 18645: ;
18646: return 0;
18647: }
18648: _ACEOF
1.150 moko 18649: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18650: ac_cv_lib_crypt_crypt=yes
1.62 paf 18651: else
1.150 moko 18652: ac_cv_lib_crypt_crypt=no
1.62 paf 18653: fi
1.150 moko 18654: rm -f core conftest.err conftest.$ac_objext \
18655: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18656: LIBS=$ac_check_lib_save_LIBS
18657: fi
1.150 moko 18658: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18659: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18660: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
1.62 paf 18661: cat >>confdefs.h <<_ACEOF
1.66 paf 18662: #define HAVE_LIBCRYPT 1
1.62 paf 18663: _ACEOF
1.1 paf 18664:
1.66 paf 18665: LIBS="-lcrypt $LIBS"
18666:
18667: fi
18668:
18669:
18670:
1.159 moko 18671: for ac_func in flock _locking fcntl lockf ftruncate fchmod
18672: do :
18673: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18675: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18676: cat >>confdefs.h <<_ACEOF
18677: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18678: _ACEOF
18679:
18680: fi
18681: done
1.66 paf 18682:
1.159 moko 18683: for ac_func in getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv
1.150 moko 18684: do :
18685: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18686: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18687: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.62 paf 18688: cat >>confdefs.h <<_ACEOF
1.150 moko 18689: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 18690: _ACEOF
1.1 paf 18691:
1.66 paf 18692: fi
18693: done
18694:
1.1 paf 18695:
18696:
1.159 moko 18697:
1.67 paf 18698: pa_func=sigsetjmp
1.150 moko 18699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
18700: $as_echo_n "checking for (maybe built-in) function $pa_func... " >&6; }
18701: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18702: /* end confdefs.h. */
18703:
18704: #ifdef HAVE_SETJMP_H
18705: # include <setjmp.h>
18706: #endif
18707:
18708: int
18709: main ()
18710: {
18711:
18712: $pa_func(0,0);
18713:
18714: ;
18715: return 0;
18716: }
18717: _ACEOF
1.150 moko 18718: if ac_fn_c_try_compile "$LINENO"; then :
18719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18720: $as_echo "yes" >&6; }
1.67 paf 18721: cat >>confdefs.h <<_ACEOF
1.150 moko 18722: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.67 paf 18723: _ACEOF
18724:
18725:
18726: else
1.150 moko 18727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18728: $as_echo "no" >&6; }
1.67 paf 18729:
18730: fi
1.150 moko 18731: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 18732:
18733:
18734:
1.159 moko 18735:
1.150 moko 18736: ac_ext=cpp
1.67 paf 18737: ac_cpp='$CXXCPP $CPPFLAGS'
18738: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18739: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18740: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18741:
18742:
18743:
1.188 moko 18744: for pa_func in trunc round sign isfinite
1.67 paf 18745: do
18746:
1.150 moko 18747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
18748: $as_echo_n "checking for (maybe built-in) math function $pa_func... " >&6; }
18749: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18750: /* end confdefs.h. */
18751:
18752: #ifdef HAVE_MATH_H
18753: # include <math.h>
18754: #endif
18755:
18756: int
18757: main ()
18758: {
18759:
18760: double result=$pa_func(1.6);
18761:
18762: ;
18763: return 0;
18764: }
18765: _ACEOF
1.150 moko 18766: if ac_fn_cxx_try_compile "$LINENO"; then :
18767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18768: $as_echo "yes" >&6; }
1.67 paf 18769: cat >>confdefs.h <<_ACEOF
1.150 moko 18770: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.62 paf 18771: _ACEOF
1.66 paf 18772:
1.62 paf 18773: else
1.150 moko 18774: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18775: $as_echo "no" >&6; }
1.62 paf 18776:
18777: fi
1.150 moko 18778: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779:
18780: done
18781:
18782: ac_ext=c
18783: ac_cpp='$CPP $CPPFLAGS'
18784: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18787:
18788:
18789:
18790: for ac_func in qsort
18791: do :
18792: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
18793: if test "x$ac_cv_func_qsort" = xyes; then :
1.62 paf 18794: cat >>confdefs.h <<_ACEOF
1.150 moko 18795: #define HAVE_QSORT 1
1.62 paf 18796: _ACEOF
1.1 paf 18797:
1.66 paf 18798: else
1.150 moko 18799: as_fn_error $? "No qsort library function." "$LINENO" 5
1.1 paf 18800: fi
1.66 paf 18801: done
1.1 paf 18802:
18803:
1.62 paf 18804:
1.159 moko 18805:
1.177 moko 18806: ac_ext=cpp
18807: ac_cpp='$CXXCPP $CPPFLAGS'
18808: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18809: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18810: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18811:
1.150 moko 18812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
18813: $as_echo_n "checking for timezone variable... " >&6; }
18814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18815: /* end confdefs.h. */
1.66 paf 18816: #include <time.h>
1.62 paf 18817: int
18818: main ()
18819: {
1.177 moko 18820: int test=timezone;
1.62 paf 18821: ;
18822: return 0;
18823: }
18824: _ACEOF
1.177 moko 18825: if ac_fn_cxx_try_compile "$LINENO"; then :
1.150 moko 18826: $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1.158 moko 18827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18828: $as_echo "yes" >&6; }
1.62 paf 18829: else
1.150 moko 18830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18831: $as_echo "no" >&6; }
1.62 paf 18832: fi
1.150 moko 18833: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.177 moko 18834: ac_ext=c
18835: ac_cpp='$CPP $CPPFLAGS'
18836: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18837: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18838: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18839:
1.1 paf 18840:
1.176 moko 18841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18842: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
1.150 moko 18843: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18844: /* end confdefs.h. */
1.66 paf 18845: #include <time.h>
1.62 paf 18846: int
18847: main ()
18848: {
1.176 moko 18849: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 18850: ;
18851: return 0;
18852: }
18853: _ACEOF
1.150 moko 18854: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18855: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
1.158 moko 18856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18857: $as_echo "yes" >&6; }
1.62 paf 18858: else
1.150 moko 18859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18860: $as_echo "no" >&6; }
1.62 paf 18861: fi
1.150 moko 18862: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18863:
1.176 moko 18864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
18865: $as_echo_n "checking for tm_tzadj in struct tm... " >&6; }
1.150 moko 18866: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18867: /* end confdefs.h. */
1.66 paf 18868: #include <time.h>
1.62 paf 18869: int
18870: main ()
18871: {
1.176 moko 18872: struct tm tm; tm.tm_tzadj=0;
1.62 paf 18873: ;
18874: return 0;
18875: }
18876: _ACEOF
1.150 moko 18877: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18878: $as_echo "#define HAVE_TM_TZADJ 1" >>confdefs.h
1.158 moko 18879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18880: $as_echo "yes" >&6; }
1.62 paf 18881: else
1.150 moko 18882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18883: $as_echo "no" >&6; }
1.62 paf 18884: fi
1.150 moko 18885: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18886:
1.206 moko 18887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettid" >&5
18888: $as_echo_n "checking for gettid... " >&6; }
18889: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890: /* end confdefs.h. */
18891:
18892: #include <sys/types.h>
18893: #include <sys/syscall.h>
18894:
18895: int
18896: main ()
18897: {
18898: uint tid=syscall(__NR_gettid);
18899: ;
18900: return 0;
18901: }
18902: _ACEOF
18903: if ac_fn_c_try_compile "$LINENO"; then :
18904: $as_echo "#define HAVE_GETTID 1" >>confdefs.h
18905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18906: $as_echo "yes" >&6; }
18907: else
18908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18909: $as_echo "no" >&6; }
18910: fi
18911: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912:
1.208 moko 18913: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
18914: $as_echo_n "checking for TLS... " >&6; }
18915: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916: /* end confdefs.h. */
1.209 moko 18917: __thread int i=0;
1.208 moko 18918: int
18919: main ()
18920: {
1.209 moko 18921:
1.208 moko 18922: ;
18923: return 0;
18924: }
18925: _ACEOF
18926: if ac_fn_c_try_compile "$LINENO"; then :
18927: $as_echo "#define HAVE_TLS 1" >>confdefs.h
18928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18929: $as_echo "yes" >&6; }
18930: else
18931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18932: $as_echo "no" >&6; }
18933: fi
18934: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935:
1.176 moko 18936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
18937: $as_echo_n "checking for 0..9999 year date range support... " >&6; }
18938: if test "$cross_compiling" = yes; then :
18939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18940: $as_echo "no" >&6; }
18941: else
18942: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18943: /* end confdefs.h. */
1.176 moko 18944:
18945: #include <string.h>
1.66 paf 18946: #include <time.h>
1.176 moko 18947:
18948: int main() {
18949: struct tm tmL,tmH;
18950: memset(&tmL, 0, sizeof(tmL));
18951: memset(&tmH, 0, sizeof(tmH));
18952: tmL.tm_year=-1900;
18953: tmL.tm_mon=-1;
18954: tmH.tm_year=9999-1900;
18955: tmH.tm_mon=12-1;
18956: tmH.tm_mday=31;
18957: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 18958: }
1.176 moko 18959:
1.62 paf 18960: _ACEOF
1.176 moko 18961: if ac_fn_c_try_run "$LINENO"; then :
18962: $as_echo "#define PA_DATE64 1" >>confdefs.h
1.158 moko 18963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18964: $as_echo "yes" >&6; }
1.62 paf 18965: else
1.150 moko 18966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18967: $as_echo "no" >&6; }
1.62 paf 18968: fi
1.176 moko 18969: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18970: conftest.$ac_objext conftest.beam conftest.$ac_ext
18971: fi
1.31 paf 18972:
1.1 paf 18973:
18974:
18975:
1.62 paf 18976:
18977:
18978:
1.206 moko 18979:
1.208 moko 18980:
1.150 moko 18981: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 18982:
18983:
1.200 moko 18984: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/pa-include/Makefile src/lib/json/Makefile src/lib/curl/Makefile src/lib/punycode/Makefile src/lib/memcached/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache/Makefile src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile etc/auto.p"
1.62 paf 18985:
18986: cat >confcache <<\_ACEOF
1.1 paf 18987: # This file is a shell script that caches the results of configure
18988: # tests run on this system so they can be shared between configure
1.62 paf 18989: # scripts and configure runs, see configure's option --config-cache.
18990: # It is not useful on other systems. If it contains results you don't
18991: # want to keep, you may remove or edit it.
1.1 paf 18992: #
1.62 paf 18993: # config.status only pays attention to the cache file if you give it
18994: # the --recheck option to rerun configure.
1.1 paf 18995: #
1.62 paf 18996: # `ac_cv_env_foo' variables (set or unset) will be overridden when
18997: # loading this file, other *unset* `ac_cv_foo' will be assigned the
18998: # following values.
18999:
19000: _ACEOF
19001:
1.1 paf 19002: # The following way of writing the cache mishandles newlines in values,
19003: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 19004: # So, we kill variables containing newlines.
1.1 paf 19005: # Ultrix sh set writes to stderr and can't be redirected directly,
19006: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 19007: (
19008: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19009: eval ac_val=\$$ac_var
19010: case $ac_val in #(
19011: *${as_nl}*)
19012: case $ac_var in #(
19013: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19014: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19015: esac
19016: case $ac_var in #(
19017: _ | IFS | as_nl) ;; #(
19018: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19019: *) { eval $ac_var=; unset $ac_var;} ;;
19020: esac ;;
19021: esac
19022: done
19023:
1.62 paf 19024: (set) 2>&1 |
1.150 moko 19025: case $as_nl`(ac_space=' '; set) 2>&1` in #(
19026: *${as_nl}ac_space=\ *)
19027: # `set' does not quote correctly, so add quotes: double-quote
19028: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 19029: sed -n \
1.86 paf 19030: "s/'/'\\\\''/g;
19031: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 19032: ;; #(
1.62 paf 19033: *)
19034: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 19035: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 19036: ;;
1.150 moko 19037: esac |
19038: sort
19039: ) |
1.62 paf 19040: sed '
1.150 moko 19041: /^ac_cv_env_/b end
1.62 paf 19042: t clear
1.150 moko 19043: :clear
1.62 paf 19044: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19045: t end
1.150 moko 19046: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19047: :end' >>confcache
19048: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19049: if test -w "$cache_file"; then
19050: if test "x$cache_file" != "x/dev/null"; then
19051: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19052: $as_echo "$as_me: updating cache $cache_file" >&6;}
19053: if test ! -f "$cache_file" || test -h "$cache_file"; then
19054: cat confcache >"$cache_file"
19055: else
19056: case $cache_file in #(
19057: */* | ?:*)
19058: mv -f confcache "$cache_file"$$ &&
19059: mv -f "$cache_file"$$ "$cache_file" ;; #(
19060: *)
19061: mv -f confcache "$cache_file" ;;
19062: esac
19063: fi
19064: fi
1.1 paf 19065: else
1.150 moko 19066: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19067: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 19068: fi
19069: fi
19070: rm -f confcache
19071:
19072: test "x$prefix" = xNONE && prefix=$ac_default_prefix
19073: # Let make expand exec_prefix.
19074: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19075:
1.62 paf 19076: DEFS=-DHAVE_CONFIG_H
19077:
19078: ac_libobjs=
19079: ac_ltlibobjs=
19080: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19081: # 1. Remove the extension, and $U if already installed.
1.150 moko 19082: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19083: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19084: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19085: # will be set to the directory where LIBOBJS objects are built.
19086: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19087: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 19088: done
19089: LIBOBJS=$ac_libobjs
19090:
19091: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 19092:
19093:
1.187 moko 19094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19095: $as_echo_n "checking that generated files are newer than configure... " >&6; }
19096: if test -n "$am_sleep_pid"; then
19097: # Hide warnings about reused PIDs.
19098: wait $am_sleep_pid 2>/dev/null
19099: fi
19100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19101: $as_echo "done" >&6; }
1.150 moko 19102: if test -n "$EXEEXT"; then
19103: am__EXEEXT_TRUE=
19104: am__EXEEXT_FALSE='#'
19105: else
19106: am__EXEEXT_TRUE='#'
19107: am__EXEEXT_FALSE=
19108: fi
19109:
1.62 paf 19110: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 19111: as_fn_error $? "conditional \"AMDEP\" was never defined.
19112: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19113: fi
1.66 paf 19114: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 19115: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19116: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19117: fi
1.66 paf 19118: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 19119: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19120: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19121: fi
1.122 moko 19122: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 19123: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
19124: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19125: fi
1.128 moko 19126: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 19127: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
19128: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19129: fi
19130: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 19131: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
19132: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19133: fi
1.150 moko 19134: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 19135:
19136: _ltdl_libobjs=
19137: _ltdl_ltlibobjs=
19138: if test -n "$_LT_LIBOBJS"; then
19139: # Remove the extension.
19140: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
19141: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
19142: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
19143: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
19144: done
19145: fi
19146: ltdl_LIBOBJS=$_ltdl_libobjs
19147:
19148: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
19149:
19150:
1.62 paf 19151:
1.150 moko 19152:
19153: : "${CONFIG_STATUS=./config.status}"
19154: ac_write_fail=0
1.62 paf 19155: ac_clean_files_save=$ac_clean_files
19156: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.150 moko 19157: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19158: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19159: as_write_fail=0
19160: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 19161: #! $SHELL
19162: # Generated by $as_me.
19163: # Run this file to recreate the current configuration.
19164: # Compiler output produced by configure, useful for debugging
19165: # configure, is in config.log if it exists.
19166:
19167: debug=false
19168: ac_cs_recheck=false
19169: ac_cs_silent=false
1.150 moko 19170:
1.62 paf 19171: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 19172: export SHELL
19173: _ASEOF
19174: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19175: ## -------------------- ##
19176: ## M4sh Initialization. ##
19177: ## -------------------- ##
1.62 paf 19178:
1.150 moko 19179: # Be more Bourne compatible
19180: DUALCASE=1; export DUALCASE # for MKS sh
19181: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 19182: emulate sh
19183: NULLCMD=:
1.150 moko 19184: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 19185: # is contrary to our usage. Disable this feature.
19186: alias -g '${1+"$@"}'='"$@"'
1.150 moko 19187: setopt NO_GLOB_SUBST
19188: else
19189: case `(set -o) 2>/dev/null` in #(
19190: *posix*) :
19191: set -o posix ;; #(
19192: *) :
19193: ;;
19194: esac
19195: fi
19196:
19197:
19198: as_nl='
19199: '
19200: export as_nl
19201: # Printing a long string crashes Solaris 7 /usr/bin/printf.
19202: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19203: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19204: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19205: # Prefer a ksh shell builtin over an external printf program on Solaris,
19206: # but without wasting forks for bash or zsh.
19207: if test -z "$BASH_VERSION$ZSH_VERSION" \
19208: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19209: as_echo='print -r --'
19210: as_echo_n='print -rn --'
19211: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19212: as_echo='printf %s\n'
19213: as_echo_n='printf %s'
19214: else
19215: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19216: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19217: as_echo_n='/usr/ucb/echo -n'
19218: else
19219: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19220: as_echo_n_body='eval
19221: arg=$1;
19222: case $arg in #(
19223: *"$as_nl"*)
19224: expr "X$arg" : "X\\(.*\\)$as_nl";
19225: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19226: esac;
19227: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19228: '
19229: export as_echo_n_body
19230: as_echo_n='sh -c $as_echo_n_body as_echo'
19231: fi
19232: export as_echo_body
19233: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 19234: fi
19235:
1.150 moko 19236: # The user is always right.
19237: if test "${PATH_SEPARATOR+set}" != set; then
19238: PATH_SEPARATOR=:
19239: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19240: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19241: PATH_SEPARATOR=';'
19242: }
1.62 paf 19243: fi
19244:
19245:
1.150 moko 19246: # IFS
19247: # We need space, tab and new line, in precisely that order. Quoting is
19248: # there to prevent editors from complaining about space-tab.
19249: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19250: # splitting by setting IFS to empty value.)
19251: IFS=" "" $as_nl"
19252:
19253: # Find who we are. Look in the path if we contain no directory separator.
19254: as_myself=
19255: case $0 in #((
19256: *[\\/]* ) as_myself=$0 ;;
19257: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19258: for as_dir in $PATH
19259: do
19260: IFS=$as_save_IFS
19261: test -z "$as_dir" && as_dir=.
19262: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19263: done
19264: IFS=$as_save_IFS
19265:
19266: ;;
19267: esac
19268: # We did not find ourselves, most probably we were run as `sh COMMAND'
19269: # in which case we are not to be found in the path.
19270: if test "x$as_myself" = x; then
19271: as_myself=$0
19272: fi
19273: if test ! -f "$as_myself"; then
19274: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19275: exit 1
19276: fi
19277:
19278: # Unset variables that we do not need and which cause bugs (e.g. in
19279: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19280: # suppresses any "Segmentation fault" message there. '((' could
19281: # trigger a bug in pdksh 5.2.14.
19282: for as_var in BASH_ENV ENV MAIL MAILPATH
19283: do eval test x\${$as_var+set} = xset \
19284: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19285: done
1.62 paf 19286: PS1='$ '
19287: PS2='> '
19288: PS4='+ '
19289:
19290: # NLS nuisances.
1.150 moko 19291: LC_ALL=C
19292: export LC_ALL
19293: LANGUAGE=C
19294: export LANGUAGE
19295:
19296: # CDPATH.
19297: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19298:
19299:
19300: # as_fn_error STATUS ERROR [LINENO LOG_FD]
19301: # ----------------------------------------
19302: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19303: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19304: # script with STATUS, using 1 if that was 0.
19305: as_fn_error ()
19306: {
19307: as_status=$1; test $as_status -eq 0 && as_status=1
19308: if test "$4"; then
19309: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19310: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19311: fi
19312: $as_echo "$as_me: error: $2" >&2
19313: as_fn_exit $as_status
19314: } # as_fn_error
19315:
19316:
19317: # as_fn_set_status STATUS
19318: # -----------------------
19319: # Set $? to STATUS, without forking.
19320: as_fn_set_status ()
19321: {
19322: return $1
19323: } # as_fn_set_status
19324:
19325: # as_fn_exit STATUS
19326: # -----------------
19327: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19328: as_fn_exit ()
19329: {
19330: set +e
19331: as_fn_set_status $1
19332: exit $1
19333: } # as_fn_exit
19334:
19335: # as_fn_unset VAR
19336: # ---------------
19337: # Portably unset VAR.
19338: as_fn_unset ()
19339: {
19340: { eval $1=; unset $1;}
19341: }
19342: as_unset=as_fn_unset
19343: # as_fn_append VAR VALUE
19344: # ----------------------
19345: # Append the text in VALUE to the end of the definition contained in VAR. Take
19346: # advantage of any shell optimizations that allow amortized linear growth over
19347: # repeated appends, instead of the typical quadratic growth present in naive
19348: # implementations.
19349: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19350: eval 'as_fn_append ()
19351: {
19352: eval $1+=\$2
19353: }'
19354: else
19355: as_fn_append ()
19356: {
19357: eval $1=\$$1\$2
19358: }
19359: fi # as_fn_append
19360:
19361: # as_fn_arith ARG...
19362: # ------------------
19363: # Perform arithmetic evaluation on the ARGs, and store the result in the
19364: # global $as_val. Take advantage of shells that can avoid forks. The arguments
19365: # must be portable across $(()) and expr.
19366: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19367: eval 'as_fn_arith ()
19368: {
19369: as_val=$(( $* ))
19370: }'
19371: else
19372: as_fn_arith ()
19373: {
19374: as_val=`expr "$@" || test $? -eq 1`
19375: }
19376: fi # as_fn_arith
19377:
1.1 paf 19378:
1.150 moko 19379: if expr a : '\(a\)' >/dev/null 2>&1 &&
19380: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 19381: as_expr=expr
19382: else
19383: as_expr=false
19384: fi
19385:
1.150 moko 19386: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 19387: as_basename=basename
19388: else
19389: as_basename=false
19390: fi
19391:
1.150 moko 19392: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19393: as_dirname=dirname
19394: else
19395: as_dirname=false
19396: fi
1.62 paf 19397:
1.150 moko 19398: as_me=`$as_basename -- "$0" ||
1.62 paf 19399: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19400: X"$0" : 'X\(//\)$' \| \
1.150 moko 19401: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19402: $as_echo X/"$0" |
19403: sed '/^.*\/\([^/][^/]*\)\/*$/{
19404: s//\1/
19405: q
19406: }
19407: /^X\/\(\/\/\)$/{
19408: s//\1/
19409: q
19410: }
19411: /^X\/\(\/\).*/{
19412: s//\1/
19413: q
19414: }
19415: s/.*/./; q'`
1.62 paf 19416:
19417: # Avoid depending upon Character Ranges.
19418: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19419: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19420: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19421: as_cr_digits='0123456789'
19422: as_cr_alnum=$as_cr_Letters$as_cr_digits
19423:
1.150 moko 19424: ECHO_C= ECHO_N= ECHO_T=
19425: case `echo -n x` in #(((((
19426: -n*)
19427: case `echo 'xy\c'` in
19428: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19429: xy) ECHO_C='\c';;
19430: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19431: ECHO_T=' ';;
19432: esac;;
19433: *)
19434: ECHO_N='-n';;
1.62 paf 19435: esac
19436:
1.150 moko 19437: rm -f conf$$ conf$$.exe conf$$.file
19438: if test -d conf$$.dir; then
19439: rm -f conf$$.dir/conf$$.file
1.62 paf 19440: else
1.150 moko 19441: rm -f conf$$.dir
19442: mkdir conf$$.dir 2>/dev/null
1.62 paf 19443: fi
1.150 moko 19444: if (echo >conf$$.file) 2>/dev/null; then
19445: if ln -s conf$$.file conf$$ 2>/dev/null; then
19446: as_ln_s='ln -s'
19447: # ... but there are two gotchas:
19448: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19449: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 19450: # In both cases, we have to default to `cp -pR'.
1.150 moko 19451: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 19452: as_ln_s='cp -pR'
1.150 moko 19453: elif ln conf$$.file conf$$ 2>/dev/null; then
19454: as_ln_s=ln
19455: else
1.166 moko 19456: as_ln_s='cp -pR'
1.62 paf 19457: fi
19458: else
1.166 moko 19459: as_ln_s='cp -pR'
1.62 paf 19460: fi
1.150 moko 19461: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19462: rmdir conf$$.dir 2>/dev/null
19463:
19464:
19465: # as_fn_mkdir_p
19466: # -------------
19467: # Create "$as_dir" as a directory, including parents if necessary.
19468: as_fn_mkdir_p ()
19469: {
19470:
19471: case $as_dir in #(
19472: -*) as_dir=./$as_dir;;
19473: esac
19474: test -d "$as_dir" || eval $as_mkdir_p || {
19475: as_dirs=
19476: while :; do
19477: case $as_dir in #(
19478: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19479: *) as_qdir=$as_dir;;
19480: esac
19481: as_dirs="'$as_qdir' $as_dirs"
19482: as_dir=`$as_dirname -- "$as_dir" ||
19483: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19484: X"$as_dir" : 'X\(//\)[^/]' \| \
19485: X"$as_dir" : 'X\(//\)$' \| \
19486: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19487: $as_echo X"$as_dir" |
19488: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19489: s//\1/
19490: q
19491: }
19492: /^X\(\/\/\)[^/].*/{
19493: s//\1/
19494: q
19495: }
19496: /^X\(\/\/\)$/{
19497: s//\1/
19498: q
19499: }
19500: /^X\(\/\).*/{
19501: s//\1/
19502: q
19503: }
19504: s/.*/./; q'`
19505: test -d "$as_dir" && break
19506: done
19507: test -z "$as_dirs" || eval "mkdir $as_dirs"
19508: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19509:
1.62 paf 19510:
1.150 moko 19511: } # as_fn_mkdir_p
1.62 paf 19512: if mkdir -p . 2>/dev/null; then
1.150 moko 19513: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 19514: else
1.86 paf 19515: test -d ./-p && rmdir ./-p
1.62 paf 19516: as_mkdir_p=false
19517: fi
19518:
1.166 moko 19519:
19520: # as_fn_executable_p FILE
19521: # -----------------------
19522: # Test if FILE is an executable regular file.
19523: as_fn_executable_p ()
19524: {
19525: test -f "$1" && test -x "$1"
19526: } # as_fn_executable_p
19527: as_test_x='test -x'
19528: as_executable_p=as_fn_executable_p
1.62 paf 19529:
19530: # Sed expression to map a string onto a valid CPP name.
1.86 paf 19531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19532:
19533: # Sed expression to map a string onto a valid variable name.
1.86 paf 19534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19535:
19536:
19537: exec 6>&1
1.150 moko 19538: ## ----------------------------------- ##
19539: ## Main body of $CONFIG_STATUS script. ##
19540: ## ----------------------------------- ##
19541: _ASEOF
19542: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 19543:
1.150 moko 19544: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19545: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 19546: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 19547: # values after options handling.
19548: ac_log="
1.214 moko 19549: This file was extended by parser $as_me 3.4.7b, which was
1.166 moko 19550: generated by GNU Autoconf 2.69. Invocation command line was
1.62 paf 19551:
19552: CONFIG_FILES = $CONFIG_FILES
19553: CONFIG_HEADERS = $CONFIG_HEADERS
19554: CONFIG_LINKS = $CONFIG_LINKS
19555: CONFIG_COMMANDS = $CONFIG_COMMANDS
19556: $ $0 $@
19557:
1.150 moko 19558: on `(hostname || uname -n) 2>/dev/null | sed 1q`
19559: "
19560:
1.62 paf 19561: _ACEOF
19562:
1.150 moko 19563: case $ac_config_files in *"
19564: "*) set x $ac_config_files; shift; ac_config_files=$*;;
19565: esac
1.62 paf 19566:
1.150 moko 19567: case $ac_config_headers in *"
19568: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19569: esac
1.62 paf 19570:
19571:
1.150 moko 19572: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19573: # Files that config.status was made for.
19574: config_files="$ac_config_files"
19575: config_headers="$ac_config_headers"
19576: config_commands="$ac_config_commands"
1.62 paf 19577:
1.150 moko 19578: _ACEOF
1.62 paf 19579:
1.150 moko 19580: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19581: ac_cs_usage="\
1.150 moko 19582: \`$as_me' instantiates files and other configuration actions
19583: from templates according to the current configuration. Unless the files
19584: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 19585:
1.150 moko 19586: Usage: $0 [OPTION]... [TAG]...
1.62 paf 19587:
19588: -h, --help print this help, then exit
1.150 moko 19589: -V, --version print version number and configuration settings, then exit
19590: --config print configuration, then exit
19591: -q, --quiet, --silent
19592: do not print progress messages
1.62 paf 19593: -d, --debug don't remove temporary files
19594: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 19595: --file=FILE[:TEMPLATE]
19596: instantiate the configuration file FILE
19597: --header=FILE[:TEMPLATE]
19598: instantiate the configuration header FILE
1.62 paf 19599:
19600: Configuration files:
19601: $config_files
19602:
19603: Configuration headers:
19604: $config_headers
19605:
19606: Configuration commands:
19607: $config_commands
19608:
1.150 moko 19609: Report bugs to the package provider."
19610:
1.62 paf 19611: _ACEOF
1.150 moko 19612: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19613: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.62 paf 19614: ac_cs_version="\\
1.214 moko 19615: parser config.status 3.4.7b
1.166 moko 19616: configured by $0, generated by GNU Autoconf 2.69,
1.150 moko 19617: with options \\"\$ac_cs_config\\"
1.62 paf 19618:
1.166 moko 19619: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 19620: This config.status script is free software; the Free Software Foundation
19621: gives unlimited permission to copy, distribute and modify it."
1.150 moko 19622:
19623: ac_pwd='$ac_pwd'
19624: srcdir='$srcdir'
19625: INSTALL='$INSTALL'
19626: MKDIR_P='$MKDIR_P'
19627: AWK='$AWK'
19628: test -n "\$AWK" || AWK=awk
1.62 paf 19629: _ACEOF
19630:
1.150 moko 19631: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19632: # The default lists apply if the user does not specify any file.
1.62 paf 19633: ac_need_defaults=:
19634: while test $# != 0
19635: do
19636: case $1 in
1.150 moko 19637: --*=?*)
19638: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19639: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 19640: ac_shift=:
19641: ;;
1.150 moko 19642: --*=)
19643: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19644: ac_optarg=
19645: ac_shift=:
19646: ;;
19647: *)
1.62 paf 19648: ac_option=$1
19649: ac_optarg=$2
19650: ac_shift=shift
19651: ;;
19652: esac
19653:
19654: case $ac_option in
19655: # Handling of the options.
19656: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19657: ac_cs_recheck=: ;;
1.150 moko 19658: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19659: $as_echo "$ac_cs_version"; exit ;;
19660: --config | --confi | --conf | --con | --co | --c )
19661: $as_echo "$ac_cs_config"; exit ;;
19662: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 19663: debug=: ;;
19664: --file | --fil | --fi | --f )
19665: $ac_shift
1.150 moko 19666: case $ac_optarg in
19667: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19668: '') as_fn_error $? "missing file argument" ;;
19669: esac
19670: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 19671: ac_need_defaults=false;;
19672: --header | --heade | --head | --hea )
19673: $ac_shift
1.150 moko 19674: case $ac_optarg in
19675: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19676: esac
19677: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 19678: ac_need_defaults=false;;
1.150 moko 19679: --he | --h)
19680: # Conflict between --help and --header
19681: as_fn_error $? "ambiguous option: \`$1'
19682: Try \`$0 --help' for more information.";;
19683: --help | --hel | -h )
19684: $as_echo "$ac_cs_usage"; exit ;;
1.62 paf 19685: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19686: | -silent | --silent | --silen | --sile | --sil | --si | --s)
19687: ac_cs_silent=: ;;
19688:
19689: # This is an error.
1.150 moko 19690: -*) as_fn_error $? "unrecognized option: \`$1'
19691: Try \`$0 --help' for more information." ;;
1.62 paf 19692:
1.150 moko 19693: *) as_fn_append ac_config_targets " $1"
19694: ac_need_defaults=false ;;
1.62 paf 19695:
19696: esac
19697: shift
19698: done
19699:
19700: ac_configure_extra_args=
19701:
19702: if $ac_cs_silent; then
19703: exec 6>/dev/null
1.150 moko 19704: ac_configure_extra_args="$ac_configure_extra_args --silent"
19705: fi
19706:
19707: _ACEOF
19708: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19709: if \$ac_cs_recheck; then
1.166 moko 19710: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 19711: shift
19712: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19713: CONFIG_SHELL='$SHELL'
19714: export CONFIG_SHELL
19715: exec "\$@"
19716: fi
19717:
19718: _ACEOF
19719: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19720: exec 5>>config.log
19721: {
19722: echo
19723: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19724: ## Running $as_me. ##
19725: _ASBOX
19726: $as_echo "$ac_log"
19727: } >&5
1.62 paf 19728:
19729: _ACEOF
1.150 moko 19730: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 19731: #
1.150 moko 19732: # INIT-COMMANDS
1.1 paf 19733: #
1.199 moko 19734: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1.62 paf 19735:
1.128 moko 19736:
19737: # The HP-UX ksh and POSIX shell print the target directory to stdout
19738: # if CDPATH is set.
19739: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19740:
19741: sed_quote_subst='$sed_quote_subst'
19742: double_quote_subst='$double_quote_subst'
19743: delay_variable_subst='$delay_variable_subst'
19744: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19745: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19746: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19747: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19748: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 19749: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 19750: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 19751: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 19752: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19753: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19754: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19755: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19756: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19757: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19758: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19759: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19760: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19761: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19762: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19763: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19764: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19765: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19766: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19767: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19768: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19769: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19770: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19771: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19772: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19773: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19774: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19775: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19776: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19777: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19778: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19779: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19780: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19781: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19782: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19783: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19784: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19785: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19786: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19787: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19788: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19789: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19790: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19791: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19792: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19793: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19794: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19795: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19796: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19797: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19798: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19799: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19800: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19801: 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"`'
19802: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19803: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19804: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19805: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19806: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19807: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19808: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19809: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19810: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19811: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19812: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19813: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19814: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19815: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19816: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19817: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19818: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19819: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19820: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19821: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19822: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19823: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19824: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19825: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19826: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19827: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19828: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19829: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19830: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19831: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19832: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19833: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19834: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19835: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19836: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19837: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19838: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19839: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19840: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19841: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19842: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19843: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19844: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19845: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19846: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19847: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19848: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19849: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19850: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19851: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19852: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19853: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19854: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19855: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19856: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19857: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19858: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19859: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19860: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19861: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19862: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19863: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19864: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19865: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19866: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19867: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19868: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19869: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19870: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19871: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19872: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19873: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19874: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19875: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19876: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19877: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19878: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19879: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19880: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19881: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19882: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19883: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19884: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19885: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19886: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19887: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19888: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19889: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19890: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19891: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19892: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19893: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19894: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19895: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19896: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19897: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19898: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19899: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19900: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19901: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19902: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19903: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19904: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19905: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19906: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19907: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19908: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19909: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19910: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19911: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19912: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19913: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19914: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19915: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19916: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19917: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19918: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19919: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19920: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19921: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19922: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19923: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19924: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19925: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19926: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19927: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19928: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19929:
19930: LTCC='$LTCC'
19931: LTCFLAGS='$LTCFLAGS'
19932: compiler='$compiler_DEFAULT'
19933:
19934: # A function that is used when there is no print builtin or printf.
19935: func_fallback_echo ()
19936: {
19937: eval 'cat <<_LTECHO_EOF
19938: \$1
19939: _LTECHO_EOF'
19940: }
19941:
19942: # Quote evaled strings.
19943: for var in AS \
19944: DLLTOOL \
19945: OBJDUMP \
19946: SHELL \
19947: ECHO \
19948: PATH_SEPARATOR \
19949: SED \
19950: GREP \
19951: EGREP \
19952: FGREP \
19953: LD \
19954: NM \
19955: LN_S \
19956: lt_SP2NL \
19957: lt_NL2SP \
19958: reload_flag \
19959: deplibs_check_method \
19960: file_magic_cmd \
19961: file_magic_glob \
19962: want_nocaseglob \
19963: sharedlib_from_linklib_cmd \
19964: AR \
19965: AR_FLAGS \
19966: archiver_list_spec \
19967: STRIP \
19968: RANLIB \
19969: CC \
19970: CFLAGS \
19971: compiler \
19972: lt_cv_sys_global_symbol_pipe \
19973: lt_cv_sys_global_symbol_to_cdecl \
19974: lt_cv_sys_global_symbol_to_c_name_address \
19975: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19976: nm_file_list_spec \
19977: lt_prog_compiler_no_builtin_flag \
19978: lt_prog_compiler_pic \
19979: lt_prog_compiler_wl \
19980: lt_prog_compiler_static \
19981: lt_cv_prog_compiler_c_o \
19982: need_locks \
19983: MANIFEST_TOOL \
19984: DSYMUTIL \
19985: NMEDIT \
19986: LIPO \
19987: OTOOL \
19988: OTOOL64 \
19989: shrext_cmds \
19990: export_dynamic_flag_spec \
19991: whole_archive_flag_spec \
19992: compiler_needs_object \
19993: with_gnu_ld \
19994: allow_undefined_flag \
19995: no_undefined_flag \
19996: hardcode_libdir_flag_spec \
19997: hardcode_libdir_separator \
19998: exclude_expsyms \
19999: include_expsyms \
20000: file_list_spec \
20001: variables_saved_for_relink \
20002: libname_spec \
20003: library_names_spec \
20004: soname_spec \
20005: install_override_mode \
20006: finish_eval \
20007: old_striplib \
20008: striplib \
20009: compiler_lib_search_dirs \
20010: predep_objects \
20011: postdep_objects \
20012: predeps \
20013: postdeps \
20014: compiler_lib_search_path \
20015: LD_CXX \
20016: reload_flag_CXX \
20017: compiler_CXX \
20018: lt_prog_compiler_no_builtin_flag_CXX \
20019: lt_prog_compiler_pic_CXX \
20020: lt_prog_compiler_wl_CXX \
20021: lt_prog_compiler_static_CXX \
20022: lt_cv_prog_compiler_c_o_CXX \
20023: export_dynamic_flag_spec_CXX \
20024: whole_archive_flag_spec_CXX \
20025: compiler_needs_object_CXX \
20026: with_gnu_ld_CXX \
20027: allow_undefined_flag_CXX \
20028: no_undefined_flag_CXX \
20029: hardcode_libdir_flag_spec_CXX \
20030: hardcode_libdir_separator_CXX \
20031: exclude_expsyms_CXX \
20032: include_expsyms_CXX \
20033: file_list_spec_CXX \
20034: compiler_lib_search_dirs_CXX \
20035: predep_objects_CXX \
20036: postdep_objects_CXX \
20037: predeps_CXX \
20038: postdeps_CXX \
20039: compiler_lib_search_path_CXX; do
20040: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20041: *[\\\\\\\`\\"\\\$]*)
20042: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20043: ;;
20044: *)
20045: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20046: ;;
20047: esac
20048: done
20049:
20050: # Double-quote double-evaled strings.
20051: for var in reload_cmds \
20052: old_postinstall_cmds \
20053: old_postuninstall_cmds \
20054: old_archive_cmds \
20055: extract_expsyms_cmds \
20056: old_archive_from_new_cmds \
20057: old_archive_from_expsyms_cmds \
20058: archive_cmds \
20059: archive_expsym_cmds \
20060: module_cmds \
20061: module_expsym_cmds \
20062: export_symbols_cmds \
20063: prelink_cmds \
20064: postlink_cmds \
20065: postinstall_cmds \
20066: postuninstall_cmds \
20067: finish_cmds \
20068: sys_lib_search_path_spec \
20069: sys_lib_dlsearch_path_spec \
20070: reload_cmds_CXX \
20071: old_archive_cmds_CXX \
20072: old_archive_from_new_cmds_CXX \
20073: old_archive_from_expsyms_cmds_CXX \
20074: archive_cmds_CXX \
20075: archive_expsym_cmds_CXX \
20076: module_cmds_CXX \
20077: module_expsym_cmds_CXX \
20078: export_symbols_cmds_CXX \
20079: prelink_cmds_CXX \
20080: postlink_cmds_CXX; do
20081: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20082: *[\\\\\\\`\\"\\\$]*)
20083: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20084: ;;
20085: *)
20086: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20087: ;;
20088: esac
20089: done
20090:
20091: ac_aux_dir='$ac_aux_dir'
20092: xsi_shell='$xsi_shell'
20093: lt_shell_append='$lt_shell_append'
20094:
20095: # See if we are running on zsh, and set the options which allow our
20096: # commands through without removal of \ escapes INIT.
20097: if test -n "\${ZSH_VERSION+set}" ; then
20098: setopt NO_GLOB_SUBST
20099: fi
20100:
20101:
20102: PACKAGE='$PACKAGE'
20103: VERSION='$VERSION'
20104: TIMESTAMP='$TIMESTAMP'
20105: RM='$RM'
20106: ofile='$ofile'
20107:
20108:
20109:
20110:
20111:
20112:
1.62 paf 20113: _ACEOF
20114:
1.150 moko 20115: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20116:
1.150 moko 20117: # Handling of arguments.
1.62 paf 20118: for ac_config_target in $ac_config_targets
1.1 paf 20119: do
1.150 moko 20120: case $ac_config_target in
20121: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20122: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20123: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
20124: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20125: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20126: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
20127: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
20128: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
20129: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
20130: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20131: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
20132: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
20133: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
20134: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
20135: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
20136: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
20137: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
20138: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
20139: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
20140: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
20141: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
20142: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
20143: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 20144: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
20145: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 20146: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
20147: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
20148: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
20149: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
20150: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
20151: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20152: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
1.200 moko 20153: "etc/auto.p") CONFIG_FILES="$CONFIG_FILES etc/auto.p" ;;
1.150 moko 20154:
20155: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 paf 20156: esac
20157: done
20158:
1.150 moko 20159:
1.62 paf 20160: # If the user did not use the arguments to specify the items to instantiate,
20161: # then the envvar interface is used. Set only those that are not.
20162: # We use the long form for the default assignment because of an extremely
20163: # bizarre bug on SunOS 4.1.3.
20164: if $ac_need_defaults; then
20165: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20166: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20167: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20168: fi
20169:
20170: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 20171: # simply because there is no reason against having it here, and in addition,
1.62 paf 20172: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 20173: # Hook for its removal unless debugging.
20174: # Note that there is a small window in which the directory will not be cleaned:
20175: # after its creation but before its name has been assigned to `$tmp'.
1.62 paf 20176: $debug ||
20177: {
1.150 moko 20178: tmp= ac_tmp=
20179: trap 'exit_status=$?
20180: : "${ac_tmp:=$tmp}"
20181: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20182: ' 0
20183: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 20184: }
20185: # Create a (secure) tmp directory for tmp files.
20186:
20187: {
1.150 moko 20188: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20189: test -d "$tmp"
1.62 paf 20190: } ||
20191: {
1.150 moko 20192: tmp=./conf$$-$RANDOM
20193: (umask 077 && mkdir "$tmp")
20194: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20195: ac_tmp=$tmp
20196:
20197: # Set up the scripts for CONFIG_FILES section.
20198: # No need to generate them if there are no CONFIG_FILES.
20199: # This happens for instance with `./config.status config.h'.
20200: if test -n "$CONFIG_FILES"; then
20201:
20202:
20203: ac_cr=`echo X | tr X '\015'`
20204: # On cygwin, bash can eat \r inside `` if the user requested igncr.
20205: # But we know of no other shell where ac_cr would be empty at this
20206: # point, so we can use a bashism as a fallback.
20207: if test "x$ac_cr" = x; then
20208: eval ac_cr=\$\'\\r\'
20209: fi
20210: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20211: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20212: ac_cs_awk_cr='\\r'
20213: else
20214: ac_cs_awk_cr=$ac_cr
20215: fi
20216:
20217: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20218: _ACEOF
20219:
20220:
1.62 paf 20221: {
1.150 moko 20222: echo "cat >conf$$subs.awk <<_ACEOF" &&
20223: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20224: echo "_ACEOF"
20225: } >conf$$subs.sh ||
20226: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20227: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20228: ac_delim='%!_!# '
20229: for ac_last_try in false false false false false :; do
20230: . ./conf$$subs.sh ||
20231: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20232:
20233: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20234: if test $ac_delim_n = $ac_delim_num; then
20235: break
20236: elif $ac_last_try; then
20237: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20238: else
20239: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20240: fi
20241: done
20242: rm -f conf$$subs.sh
20243:
20244: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20245: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20246: _ACEOF
20247: sed -n '
20248: h
20249: s/^/S["/; s/!.*/"]=/
20250: p
20251: g
20252: s/^[^!]*!//
20253: :repl
20254: t repl
20255: s/'"$ac_delim"'$//
20256: t delim
20257: :nl
20258: h
20259: s/\(.\{148\}\)..*/\1/
20260: t more1
20261: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20262: p
20263: n
20264: b repl
20265: :more1
20266: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20267: p
20268: g
20269: s/.\{148\}//
20270: t nl
20271: :delim
20272: h
20273: s/\(.\{148\}\)..*/\1/
20274: t more2
20275: s/["\\]/\\&/g; s/^/"/; s/$/"/
20276: p
20277: b
20278: :more2
20279: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20280: p
20281: g
20282: s/.\{148\}//
20283: t delim
20284: ' <conf$$subs.awk | sed '
20285: /^[^""]/{
20286: N
20287: s/\n//
20288: }
20289: ' >>$CONFIG_STATUS || ac_write_fail=1
20290: rm -f conf$$subs.awk
20291: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20292: _ACAWK
20293: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20294: for (key in S) S_is_set[key] = 1
20295: FS = ""
20296:
20297: }
20298: {
20299: line = $ 0
20300: nfields = split(line, field, "@")
20301: substed = 0
20302: len = length(field[1])
20303: for (i = 2; i < nfields; i++) {
20304: key = field[i]
20305: keylen = length(key)
20306: if (S_is_set[key]) {
20307: value = S[key]
20308: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20309: len += length(value) + length(field[++i])
20310: substed = 1
20311: } else
20312: len += 1 + keylen
20313: }
20314:
20315: print line
1.62 paf 20316: }
20317:
1.150 moko 20318: _ACAWK
20319: _ACEOF
20320: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20321: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20322: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20323: else
20324: cat
20325: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20326: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 20327: _ACEOF
1.1 paf 20328:
1.150 moko 20329: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20330: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20331: # trailing colons and then remove the whole line if VPATH becomes empty
20332: # (actually we leave an empty line to preserve line numbers).
20333: if test "x$srcdir" = x.; then
20334: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20335: h
20336: s///
20337: s/^/:/
20338: s/[ ]*$/:/
20339: s/:\$(srcdir):/:/g
20340: s/:\${srcdir}:/:/g
20341: s/:@srcdir@:/:/g
20342: s/^:*//
20343: s/:*$//
20344: x
20345: s/\(=[ ]*\).*/\1/
20346: G
20347: s/\n//
20348: s/^[^=]*=[ ]*$//
20349: }'
20350: fi
1.62 paf 20351:
1.150 moko 20352: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20353: fi # test -n "$CONFIG_FILES"
1.1 paf 20354:
1.150 moko 20355: # Set up the scripts for CONFIG_HEADERS section.
20356: # No need to generate them if there are no CONFIG_HEADERS.
20357: # This happens for instance with `./config.status Makefile'.
20358: if test -n "$CONFIG_HEADERS"; then
20359: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20360: BEGIN {
20361: _ACEOF
20362:
20363: # Transform confdefs.h into an awk script `defines.awk', embedded as
20364: # here-document in config.status, that substitutes the proper values into
20365: # config.h.in to produce config.h.
20366:
20367: # Create a delimiter string that does not exist in confdefs.h, to ease
20368: # handling of long lines.
20369: ac_delim='%!_!# '
20370: for ac_last_try in false false :; do
20371: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20372: if test -z "$ac_tt"; then
20373: break
20374: elif $ac_last_try; then
20375: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20376: else
20377: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 20378: fi
1.150 moko 20379: done
1.1 paf 20380:
1.150 moko 20381: # For the awk script, D is an array of macro values keyed by name,
20382: # likewise P contains macro parameters if any. Preserve backslash
20383: # newline sequences.
20384:
20385: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20386: sed -n '
20387: s/.\{148\}/&'"$ac_delim"'/g
20388: t rset
20389: :rset
20390: s/^[ ]*#[ ]*define[ ][ ]*/ /
20391: t def
20392: d
20393: :def
20394: s/\\$//
20395: t bsnl
20396: s/["\\]/\\&/g
20397: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20398: D["\1"]=" \3"/p
20399: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20400: d
20401: :bsnl
20402: s/["\\]/\\&/g
20403: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20404: D["\1"]=" \3\\\\\\n"\\/p
20405: t cont
20406: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20407: t cont
20408: d
20409: :cont
20410: n
20411: s/.\{148\}/&'"$ac_delim"'/g
20412: t clear
20413: :clear
20414: s/\\$//
20415: t bsnlc
20416: s/["\\]/\\&/g; s/^/"/; s/$/"/p
20417: d
20418: :bsnlc
20419: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20420: b cont
20421: ' <confdefs.h | sed '
20422: s/'"$ac_delim"'/"\\\
20423: "/g' >>$CONFIG_STATUS || ac_write_fail=1
20424:
20425: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20426: for (key in D) D_is_set[key] = 1
20427: FS = ""
20428: }
20429: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20430: line = \$ 0
20431: split(line, arg, " ")
20432: if (arg[1] == "#") {
20433: defundef = arg[2]
20434: mac1 = arg[3]
20435: } else {
20436: defundef = substr(arg[1], 2)
20437: mac1 = arg[2]
20438: }
20439: split(mac1, mac2, "(") #)
20440: macro = mac2[1]
20441: prefix = substr(line, 1, index(line, defundef) - 1)
20442: if (D_is_set[macro]) {
20443: # Preserve the white space surrounding the "#".
20444: print prefix "define", macro P[macro] D[macro]
20445: next
20446: } else {
20447: # Replace #undef with comments. This is necessary, for example,
20448: # in the case of _POSIX_SOURCE, which is predefined and required
20449: # on some systems where configure will not decide to define it.
20450: if (defundef == "undef") {
20451: print "/*", prefix defundef, macro, "*/"
20452: next
20453: }
20454: }
20455: }
20456: { print }
20457: _ACAWK
1.62 paf 20458: _ACEOF
1.150 moko 20459: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20460: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20461: fi # test -n "$CONFIG_HEADERS"
20462:
20463:
20464: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20465: shift
20466: for ac_tag
20467: do
20468: case $ac_tag in
20469: :[FHLC]) ac_mode=$ac_tag; continue;;
20470: esac
20471: case $ac_mode$ac_tag in
20472: :[FHL]*:*);;
20473: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20474: :[FH]-) ac_tag=-:-;;
20475: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20476: esac
20477: ac_save_IFS=$IFS
20478: IFS=:
20479: set x $ac_tag
20480: IFS=$ac_save_IFS
20481: shift
20482: ac_file=$1
20483: shift
20484:
20485: case $ac_mode in
20486: :L) ac_source=$1;;
20487: :[FH])
20488: ac_file_inputs=
20489: for ac_f
20490: do
20491: case $ac_f in
20492: -) ac_f="$ac_tmp/stdin";;
20493: *) # Look for the file first in the build tree, then in the source tree
20494: # (if the path is not absolute). The absolute path cannot be DOS-style,
20495: # because $ac_f cannot contain `:'.
20496: test -f "$ac_f" ||
20497: case $ac_f in
20498: [\\/$]*) false;;
20499: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20500: esac ||
20501: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20502: esac
20503: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20504: as_fn_append ac_file_inputs " '$ac_f'"
20505: done
20506:
20507: # Let's still pretend it is `configure' which instantiates (i.e., don't
20508: # use $as_me), people would be surprised to read:
20509: # /* config.h. Generated by config.status. */
20510: configure_input='Generated from '`
20511: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20512: `' by configure.'
20513: if test x"$ac_file" != x-; then
20514: configure_input="$ac_file. $configure_input"
20515: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20516: $as_echo "$as_me: creating $ac_file" >&6;}
20517: fi
20518: # Neutralize special characters interpreted by sed in replacement strings.
20519: case $configure_input in #(
20520: *\&* | *\|* | *\\* )
20521: ac_sed_conf_input=`$as_echo "$configure_input" |
20522: sed 's/[\\\\&|]/\\\\&/g'`;; #(
20523: *) ac_sed_conf_input=$configure_input;;
20524: esac
20525:
20526: case $ac_tag in
20527: *:-:* | *:-) cat >"$ac_tmp/stdin" \
20528: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20529: esac
20530: ;;
1.1 paf 20531: esac
20532:
1.150 moko 20533: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 20534: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20535: X"$ac_file" : 'X\(//\)[^/]' \| \
20536: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 20537: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20538: $as_echo X"$ac_file" |
20539: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20540: s//\1/
20541: q
20542: }
20543: /^X\(\/\/\)[^/].*/{
20544: s//\1/
20545: q
20546: }
20547: /^X\(\/\/\)$/{
20548: s//\1/
20549: q
20550: }
20551: /^X\(\/\).*/{
20552: s//\1/
20553: q
20554: }
20555: s/.*/./; q'`
20556: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 20557: ac_builddir=.
20558:
1.150 moko 20559: case "$ac_dir" in
20560: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20561: *)
20562: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20563: # A ".." for each directory in $ac_dir_suffix.
20564: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20565: case $ac_top_builddir_sub in
20566: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20567: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20568: esac ;;
20569: esac
20570: ac_abs_top_builddir=$ac_pwd
20571: ac_abs_builddir=$ac_pwd$ac_dir_suffix
20572: # for backward compatibility:
20573: ac_top_builddir=$ac_top_build_prefix
1.62 paf 20574:
20575: case $srcdir in
1.150 moko 20576: .) # We are building in place.
1.62 paf 20577: ac_srcdir=.
1.150 moko 20578: ac_top_srcdir=$ac_top_builddir_sub
20579: ac_abs_top_srcdir=$ac_pwd ;;
20580: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 20581: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 20582: ac_top_srcdir=$srcdir
20583: ac_abs_top_srcdir=$srcdir ;;
20584: *) # Relative name.
20585: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20586: ac_top_srcdir=$ac_top_build_prefix$srcdir
20587: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 20588: esac
1.150 moko 20589: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 20590:
1.62 paf 20591:
1.150 moko 20592: case $ac_mode in
20593: :F)
20594: #
20595: # CONFIG_FILE
20596: #
1.1 paf 20597:
1.62 paf 20598: case $INSTALL in
20599: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 20600: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 20601: esac
1.150 moko 20602: ac_MKDIR_P=$MKDIR_P
20603: case $MKDIR_P in
20604: [\\/$]* | ?:[\\/]* ) ;;
20605: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20606: esac
20607: _ACEOF
1.1 paf 20608:
1.150 moko 20609: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20610: # If the template does not know about datarootdir, expand it.
20611: # FIXME: This hack should be removed a few years after 2.60.
20612: ac_datarootdir_hack=; ac_datarootdir_seen=
20613: ac_sed_dataroot='
20614: /datarootdir/ {
20615: p
20616: q
20617: }
20618: /@datadir@/p
20619: /@docdir@/p
20620: /@infodir@/p
20621: /@localedir@/p
20622: /@mandir@/p'
20623: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20624: *datarootdir*) ac_datarootdir_seen=yes;;
20625: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20626: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20627: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20628: _ACEOF
20629: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20630: ac_datarootdir_hack='
20631: s&@datadir@&$datadir&g
20632: s&@docdir@&$docdir&g
20633: s&@infodir@&$infodir&g
20634: s&@localedir@&$localedir&g
20635: s&@mandir@&$mandir&g
20636: s&\\\${datarootdir}&$datarootdir&g' ;;
20637: esac
20638: _ACEOF
1.62 paf 20639:
1.150 moko 20640: # Neutralize VPATH when `$srcdir' = `.'.
20641: # Shell code in configure.ac might set extrasub.
20642: # FIXME: do we really want to maintain this feature?
20643: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20644: ac_sed_extra="$ac_vpsub
1.62 paf 20645: $extrasub
20646: _ACEOF
1.150 moko 20647: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20648: :t
20649: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 20650: s|@configure_input@|$ac_sed_conf_input|;t t
20651: s&@top_builddir@&$ac_top_builddir_sub&;t t
20652: s&@top_build_prefix@&$ac_top_build_prefix&;t t
20653: s&@srcdir@&$ac_srcdir&;t t
20654: s&@abs_srcdir@&$ac_abs_srcdir&;t t
20655: s&@top_srcdir@&$ac_top_srcdir&;t t
20656: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20657: s&@builddir@&$ac_builddir&;t t
20658: s&@abs_builddir@&$ac_abs_builddir&;t t
20659: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20660: s&@INSTALL@&$ac_INSTALL&;t t
20661: s&@MKDIR_P@&$ac_MKDIR_P&;t t
20662: $ac_datarootdir_hack
20663: "
20664: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20665: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20666:
20667: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20668: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20669: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20670: "$ac_tmp/out"`; test -z "$ac_out"; } &&
20671: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20672: which seems to be undefined. Please make sure it is defined" >&5
20673: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20674: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 20675:
1.150 moko 20676: rm -f "$ac_tmp/stdin"
1.62 paf 20677: case $ac_file in
1.150 moko 20678: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20679: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20680: esac \
20681: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20682: ;;
20683: :H)
20684: #
20685: # CONFIG_HEADER
20686: #
1.62 paf 20687: if test x"$ac_file" != x-; then
1.150 moko 20688: {
20689: $as_echo "/* $configure_input */" \
20690: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20691: } >"$ac_tmp/config.h" \
20692: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20693: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20694: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20695: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 20696: else
1.150 moko 20697: rm -f "$ac_file"
20698: mv "$ac_tmp/config.h" "$ac_file" \
20699: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 20700: fi
20701: else
1.150 moko 20702: $as_echo "/* $configure_input */" \
20703: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20704: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 20705: fi
1.150 moko 20706: # Compute "$ac_file"'s index in $config_headers.
20707: _am_arg="$ac_file"
1.86 paf 20708: _am_stamp_count=1
20709: for _am_header in $config_headers :; do
20710: case $_am_header in
1.150 moko 20711: $_am_arg | $_am_arg:* )
1.86 paf 20712: break ;;
20713: * )
20714: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20715: esac
20716: done
1.150 moko 20717: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20718: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20719: X"$_am_arg" : 'X\(//\)[^/]' \| \
20720: X"$_am_arg" : 'X\(//\)$' \| \
20721: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20722: $as_echo X"$_am_arg" |
20723: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20724: s//\1/
20725: q
20726: }
20727: /^X\(\/\/\)[^/].*/{
20728: s//\1/
20729: q
20730: }
20731: /^X\(\/\/\)$/{
20732: s//\1/
20733: q
20734: }
20735: /^X\(\/\).*/{
20736: s//\1/
20737: q
20738: }
20739: s/.*/./; q'`/stamp-h$_am_stamp_count
20740: ;;
1.62 paf 20741:
1.150 moko 20742: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20743: $as_echo "$as_me: executing $ac_file commands" >&6;}
20744: ;;
20745: esac
1.86 paf 20746:
1.62 paf 20747:
1.150 moko 20748: case $ac_file$ac_mode in
20749: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.187 moko 20750: # Older Autoconf quotes --file arguments for eval, but not when files
1.150 moko 20751: # are listed without --file. Let's play safe and only enable the eval
20752: # if we detect the quoting.
1.199 moko 20753: # TODO: see whether this extra hack can be removed once we start
20754: # requiring Autoconf 2.70 or later.
20755: case $CONFIG_FILES in #(
20756: *\'*) :
20757: eval set x "$CONFIG_FILES" ;; #(
20758: *) :
20759: set x $CONFIG_FILES ;; #(
20760: *) :
20761: ;;
20762: esac
1.150 moko 20763: shift
1.199 moko 20764: # Used to flag and report bootstrapping failures.
20765: am_rc=0
20766: for am_mf
1.150 moko 20767: do
20768: # Strip MF so we end up with the name of the file.
1.199 moko 20769: am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20770: # Check whether this is an Automake generated Makefile which includes
20771: # dependency-tracking related rules and includes.
20772: # Grep'ing the whole file directly is not great: AIX grep has a line
1.150 moko 20773: # limit of 2048, but all sed's we know have understand at least 4000.
1.199 moko 20774: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20775: || continue
20776: am_dirpart=`$as_dirname -- "$am_mf" ||
20777: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20778: X"$am_mf" : 'X\(//\)[^/]' \| \
20779: X"$am_mf" : 'X\(//\)$' \| \
20780: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20781: $as_echo X"$am_mf" |
1.150 moko 20782: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20783: s//\1/
20784: q
20785: }
20786: /^X\(\/\/\)[^/].*/{
20787: s//\1/
20788: q
20789: }
20790: /^X\(\/\/\)$/{
20791: s//\1/
20792: q
20793: }
20794: /^X\(\/\).*/{
20795: s//\1/
20796: q
20797: }
20798: s/.*/./; q'`
1.199 moko 20799: am_filepart=`$as_basename -- "$am_mf" ||
20800: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20801: X"$am_mf" : 'X\(//\)$' \| \
20802: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20803: $as_echo X/"$am_mf" |
20804: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.150 moko 20805: s//\1/
20806: q
20807: }
1.199 moko 20808: /^X\/\(\/\/\)$/{
1.150 moko 20809: s//\1/
20810: q
20811: }
1.199 moko 20812: /^X\/\(\/\).*/{
1.150 moko 20813: s//\1/
20814: q
20815: }
20816: s/.*/./; q'`
1.199 moko 20817: { echo "$as_me:$LINENO: cd "$am_dirpart" \
20818: && sed -e '/# am--include-marker/d' "$am_filepart" \
20819: | $MAKE -f - am--depfiles" >&5
20820: (cd "$am_dirpart" \
20821: && sed -e '/# am--include-marker/d' "$am_filepart" \
20822: | $MAKE -f - am--depfiles) >&5 2>&5
20823: ac_status=$?
20824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825: (exit $ac_status); } || am_rc=$?
1.62 paf 20826: done
1.199 moko 20827: if test $am_rc -ne 0; then
20828: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20829: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20830: as_fn_error $? "Something went wrong bootstrapping makefile fragments
1.216 moko 20831: for automatic dependency tracking. If GNU make was not used, consider
20832: re-running the configure script with MAKE=\"gmake\" (or whatever is
20833: necessary). You can also try re-running configure with the
1.199 moko 20834: '--disable-dependency-tracking' option to at least be able to build
20835: the package (albeit without support for automatic dependency tracking).
20836: See \`config.log' for more details" "$LINENO" 5; }
20837: fi
20838: { am_dirpart=; unset am_dirpart;}
20839: { am_filepart=; unset am_filepart;}
20840: { am_mf=; unset am_mf;}
20841: { am_rc=; unset am_rc;}
20842: rm -f conftest-deps.mk
1.150 moko 20843: }
1.62 paf 20844: ;;
1.150 moko 20845: "libtool":C)
1.128 moko 20846:
20847: # See if we are running on zsh, and set the options which allow our
20848: # commands through without removal of \ escapes.
20849: if test -n "${ZSH_VERSION+set}" ; then
20850: setopt NO_GLOB_SUBST
20851: fi
20852:
20853: cfgfile="${ofile}T"
20854: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20855: $RM "$cfgfile"
20856:
20857: cat <<_LT_EOF >> "$cfgfile"
20858: #! $SHELL
20859:
20860: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20861: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20862: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20863: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20864: #
20865: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20866: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20867: # Foundation, Inc.
20868: # Written by Gordon Matzigkeit, 1996
20869: #
20870: # This file is part of GNU Libtool.
20871: #
20872: # GNU Libtool is free software; you can redistribute it and/or
20873: # modify it under the terms of the GNU General Public License as
20874: # published by the Free Software Foundation; either version 2 of
20875: # the License, or (at your option) any later version.
20876: #
20877: # As a special exception to the GNU General Public License,
20878: # if you distribute this file as part of a program or library that
20879: # is built using GNU Libtool, you may include this file under the
20880: # same distribution terms that you use for the rest of that program.
20881: #
20882: # GNU Libtool is distributed in the hope that it will be useful,
20883: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20884: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20885: # GNU General Public License for more details.
20886: #
20887: # You should have received a copy of the GNU General Public License
20888: # along with GNU Libtool; see the file COPYING. If not, a copy
20889: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20890: # obtained by writing to the Free Software Foundation, Inc.,
20891: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20892:
20893:
20894: # The names of the tagged configurations supported by this script.
20895: available_tags="CXX "
20896:
20897: # ### BEGIN LIBTOOL CONFIG
20898:
20899: # Which release of libtool.m4 was used?
20900: macro_version=$macro_version
20901: macro_revision=$macro_revision
20902:
20903: # Assembler program.
20904: AS=$lt_AS
20905:
20906: # DLL creation program.
20907: DLLTOOL=$lt_DLLTOOL
20908:
20909: # Object dumper program.
20910: OBJDUMP=$lt_OBJDUMP
20911:
1.145 moko 20912: # What type of objects to build.
20913: pic_mode=$pic_mode
20914:
1.128 moko 20915: # Whether or not to build shared libraries.
20916: build_libtool_libs=$enable_shared
20917:
1.138 moko 20918: # Whether or not to build static libraries.
20919: build_old_libs=$enable_static
20920:
1.128 moko 20921: # Whether or not to optimize for fast installation.
20922: fast_install=$enable_fast_install
20923:
20924: # Shell to use when invoking shell scripts.
20925: SHELL=$lt_SHELL
20926:
20927: # An echo program that protects backslashes.
20928: ECHO=$lt_ECHO
20929:
20930: # The PATH separator for the build system.
20931: PATH_SEPARATOR=$lt_PATH_SEPARATOR
20932:
20933: # The host system.
20934: host_alias=$host_alias
20935: host=$host
20936: host_os=$host_os
20937:
20938: # The build system.
20939: build_alias=$build_alias
20940: build=$build
20941: build_os=$build_os
20942:
20943: # A sed program that does not truncate output.
20944: SED=$lt_SED
20945:
20946: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20947: Xsed="\$SED -e 1s/^X//"
20948:
20949: # A grep program that handles long lines.
20950: GREP=$lt_GREP
20951:
20952: # An ERE matcher.
20953: EGREP=$lt_EGREP
20954:
20955: # A literal string matcher.
20956: FGREP=$lt_FGREP
20957:
20958: # A BSD- or MS-compatible name lister.
20959: NM=$lt_NM
20960:
20961: # Whether we need soft or hard links.
20962: LN_S=$lt_LN_S
20963:
20964: # What is the maximum length of a command?
20965: max_cmd_len=$max_cmd_len
20966:
20967: # Object file suffix (normally "o").
20968: objext=$ac_objext
20969:
20970: # Executable file suffix (normally "").
20971: exeext=$exeext
20972:
20973: # whether the shell understands "unset".
20974: lt_unset=$lt_unset
20975:
20976: # turn spaces into newlines.
20977: SP2NL=$lt_lt_SP2NL
20978:
20979: # turn newlines into spaces.
20980: NL2SP=$lt_lt_NL2SP
20981:
20982: # convert \$build file names to \$host format.
20983: to_host_file_cmd=$lt_cv_to_host_file_cmd
20984:
20985: # convert \$build files to toolchain format.
20986: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20987:
20988: # Method to check whether dependent libraries are shared objects.
20989: deplibs_check_method=$lt_deplibs_check_method
20990:
20991: # Command to use when deplibs_check_method = "file_magic".
20992: file_magic_cmd=$lt_file_magic_cmd
20993:
20994: # How to find potential files when deplibs_check_method = "file_magic".
20995: file_magic_glob=$lt_file_magic_glob
20996:
20997: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20998: want_nocaseglob=$lt_want_nocaseglob
20999:
21000: # Command to associate shared and link libraries.
21001: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21002:
21003: # The archiver.
21004: AR=$lt_AR
21005:
21006: # Flags to create an archive.
21007: AR_FLAGS=$lt_AR_FLAGS
21008:
21009: # How to feed a file listing to the archiver.
21010: archiver_list_spec=$lt_archiver_list_spec
21011:
21012: # A symbol stripping program.
21013: STRIP=$lt_STRIP
21014:
21015: # Commands used to install an old-style archive.
21016: RANLIB=$lt_RANLIB
21017: old_postinstall_cmds=$lt_old_postinstall_cmds
21018: old_postuninstall_cmds=$lt_old_postuninstall_cmds
21019:
21020: # Whether to use a lock for old archive extraction.
21021: lock_old_archive_extraction=$lock_old_archive_extraction
21022:
21023: # A C compiler.
21024: LTCC=$lt_CC
21025:
21026: # LTCC compiler flags.
21027: LTCFLAGS=$lt_CFLAGS
21028:
21029: # Take the output of nm and produce a listing of raw symbols and C names.
21030: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21031:
21032: # Transform the output of nm in a proper C declaration.
21033: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21034:
21035: # Transform the output of nm in a C name address pair.
21036: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21037:
21038: # Transform the output of nm in a C name address pair when lib prefix is needed.
21039: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21040:
21041: # Specify filename containing input files for \$NM.
21042: nm_file_list_spec=$lt_nm_file_list_spec
21043:
21044: # The root where to search for dependent libraries,and in which our libraries should be installed.
21045: lt_sysroot=$lt_sysroot
21046:
21047: # The name of the directory that contains temporary libtool files.
21048: objdir=$objdir
21049:
21050: # Used to examine libraries when file_magic_cmd begins with "file".
21051: MAGIC_CMD=$MAGIC_CMD
21052:
21053: # Must we lock files when doing compilation?
21054: need_locks=$lt_need_locks
21055:
21056: # Manifest tool.
21057: MANIFEST_TOOL=$lt_MANIFEST_TOOL
21058:
21059: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21060: DSYMUTIL=$lt_DSYMUTIL
21061:
21062: # Tool to change global to local symbols on Mac OS X.
21063: NMEDIT=$lt_NMEDIT
21064:
21065: # Tool to manipulate fat objects and archives on Mac OS X.
21066: LIPO=$lt_LIPO
21067:
21068: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21069: OTOOL=$lt_OTOOL
21070:
21071: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21072: OTOOL64=$lt_OTOOL64
21073:
21074: # Old archive suffix (normally "a").
21075: libext=$libext
21076:
21077: # Shared library suffix (normally ".so").
21078: shrext_cmds=$lt_shrext_cmds
21079:
21080: # The commands to extract the exported symbol list from a shared archive.
21081: extract_expsyms_cmds=$lt_extract_expsyms_cmds
21082:
21083: # Variables whose values should be saved in libtool wrapper scripts and
21084: # restored at link time.
21085: variables_saved_for_relink=$lt_variables_saved_for_relink
21086:
21087: # Do we need the "lib" prefix for modules?
21088: need_lib_prefix=$need_lib_prefix
21089:
21090: # Do we need a version for libraries?
21091: need_version=$need_version
21092:
21093: # Library versioning type.
21094: version_type=$version_type
21095:
21096: # Shared library runtime path variable.
21097: runpath_var=$runpath_var
21098:
21099: # Shared library path variable.
21100: shlibpath_var=$shlibpath_var
21101:
21102: # Is shlibpath searched before the hard-coded library search path?
21103: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21104:
21105: # Format of library name prefix.
21106: libname_spec=$lt_libname_spec
21107:
21108: # List of archive names. First name is the real one, the rest are links.
21109: # The last name is the one that the linker finds with -lNAME
21110: library_names_spec=$lt_library_names_spec
21111:
21112: # The coded name of the library, if different from the real name.
21113: soname_spec=$lt_soname_spec
21114:
21115: # Permission mode override for installation of shared libraries.
21116: install_override_mode=$lt_install_override_mode
21117:
21118: # Command to use after installation of a shared archive.
21119: postinstall_cmds=$lt_postinstall_cmds
21120:
21121: # Command to use after uninstallation of a shared archive.
21122: postuninstall_cmds=$lt_postuninstall_cmds
21123:
21124: # Commands used to finish a libtool library installation in a directory.
21125: finish_cmds=$lt_finish_cmds
21126:
21127: # As "finish_cmds", except a single script fragment to be evaled but
21128: # not shown.
21129: finish_eval=$lt_finish_eval
21130:
21131: # Whether we should hardcode library paths into libraries.
21132: hardcode_into_libs=$hardcode_into_libs
21133:
21134: # Compile-time system search path for libraries.
21135: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21136:
21137: # Run-time system search path for libraries.
21138: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21139:
21140: # Whether dlopen is supported.
21141: dlopen_support=$enable_dlopen
21142:
21143: # Whether dlopen of programs is supported.
21144: dlopen_self=$enable_dlopen_self
21145:
21146: # Whether dlopen of statically linked programs is supported.
21147: dlopen_self_static=$enable_dlopen_self_static
21148:
21149: # Commands to strip libraries.
21150: old_striplib=$lt_old_striplib
21151: striplib=$lt_striplib
21152:
21153:
21154: # The linker used to build libraries.
21155: LD=$lt_LD
21156:
21157: # How to create reloadable object files.
21158: reload_flag=$lt_reload_flag
21159: reload_cmds=$lt_reload_cmds
21160:
21161: # Commands used to build an old-style archive.
21162: old_archive_cmds=$lt_old_archive_cmds
21163:
21164: # A language specific compiler.
21165: CC=$lt_compiler
21166:
21167: # Is the compiler the GNU compiler?
21168: with_gcc=$GCC
21169:
21170: # Compiler flag to turn off builtin functions.
21171: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21172:
21173: # Additional compiler flags for building library objects.
21174: pic_flag=$lt_lt_prog_compiler_pic
21175:
21176: # How to pass a linker flag through the compiler.
21177: wl=$lt_lt_prog_compiler_wl
21178:
21179: # Compiler flag to prevent dynamic linking.
21180: link_static_flag=$lt_lt_prog_compiler_static
21181:
21182: # Does compiler simultaneously support -c and -o options?
21183: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21184:
21185: # Whether or not to add -lc for building shared libraries.
21186: build_libtool_need_lc=$archive_cmds_need_lc
21187:
21188: # Whether or not to disallow shared libs when runtime libs are static.
21189: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21190:
21191: # Compiler flag to allow reflexive dlopens.
21192: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21193:
21194: # Compiler flag to generate shared objects directly from archives.
21195: whole_archive_flag_spec=$lt_whole_archive_flag_spec
21196:
21197: # Whether the compiler copes with passing no objects directly.
21198: compiler_needs_object=$lt_compiler_needs_object
21199:
21200: # Create an old-style archive from a shared archive.
21201: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21202:
21203: # Create a temporary old-style archive to link instead of a shared archive.
21204: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21205:
21206: # Commands used to build a shared archive.
21207: archive_cmds=$lt_archive_cmds
21208: archive_expsym_cmds=$lt_archive_expsym_cmds
21209:
21210: # Commands used to build a loadable module if different from building
21211: # a shared archive.
21212: module_cmds=$lt_module_cmds
21213: module_expsym_cmds=$lt_module_expsym_cmds
21214:
21215: # Whether we are building with GNU ld or not.
21216: with_gnu_ld=$lt_with_gnu_ld
21217:
21218: # Flag that allows shared libraries with undefined symbols to be built.
21219: allow_undefined_flag=$lt_allow_undefined_flag
21220:
21221: # Flag that enforces no undefined symbols.
21222: no_undefined_flag=$lt_no_undefined_flag
21223:
21224: # Flag to hardcode \$libdir into a binary during linking.
21225: # This must work even if \$libdir does not exist
21226: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21227:
21228: # Whether we need a single "-rpath" flag with a separated argument.
21229: hardcode_libdir_separator=$lt_hardcode_libdir_separator
21230:
21231: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21232: # DIR into the resulting binary.
21233: hardcode_direct=$hardcode_direct
21234:
21235: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21236: # DIR into the resulting binary and the resulting library dependency is
21237: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21238: # library is relocated.
21239: hardcode_direct_absolute=$hardcode_direct_absolute
21240:
21241: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21242: # into the resulting binary.
21243: hardcode_minus_L=$hardcode_minus_L
21244:
21245: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21246: # into the resulting binary.
21247: hardcode_shlibpath_var=$hardcode_shlibpath_var
21248:
21249: # Set to "yes" if building a shared library automatically hardcodes DIR
21250: # into the library and all subsequent libraries and executables linked
21251: # against it.
21252: hardcode_automatic=$hardcode_automatic
21253:
21254: # Set to yes if linker adds runtime paths of dependent libraries
21255: # to runtime path list.
21256: inherit_rpath=$inherit_rpath
21257:
21258: # Whether libtool must link a program against all its dependency libraries.
21259: link_all_deplibs=$link_all_deplibs
21260:
21261: # Set to "yes" if exported symbols are required.
21262: always_export_symbols=$always_export_symbols
21263:
21264: # The commands to list exported symbols.
21265: export_symbols_cmds=$lt_export_symbols_cmds
21266:
21267: # Symbols that should not be listed in the preloaded symbols.
21268: exclude_expsyms=$lt_exclude_expsyms
21269:
21270: # Symbols that must always be exported.
21271: include_expsyms=$lt_include_expsyms
21272:
21273: # Commands necessary for linking programs (against libraries) with templates.
21274: prelink_cmds=$lt_prelink_cmds
21275:
21276: # Commands necessary for finishing linking programs.
21277: postlink_cmds=$lt_postlink_cmds
21278:
21279: # Specify filename containing input files.
21280: file_list_spec=$lt_file_list_spec
21281:
21282: # How to hardcode a shared library path into an executable.
21283: hardcode_action=$hardcode_action
21284:
21285: # The directories searched by this compiler when creating a shared library.
21286: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21287:
21288: # Dependencies to place before and after the objects being linked to
21289: # create a shared library.
21290: predep_objects=$lt_predep_objects
21291: postdep_objects=$lt_postdep_objects
21292: predeps=$lt_predeps
21293: postdeps=$lt_postdeps
21294:
21295: # The library search path used internally by the compiler when linking
21296: # a shared library.
21297: compiler_lib_search_path=$lt_compiler_lib_search_path
21298:
21299: # ### END LIBTOOL CONFIG
21300:
21301: _LT_EOF
21302:
21303: case $host_os in
21304: aix3*)
21305: cat <<\_LT_EOF >> "$cfgfile"
21306: # AIX sometimes has problems with the GCC collect2 program. For some
21307: # reason, if we set the COLLECT_NAMES environment variable, the problems
21308: # vanish in a puff of smoke.
21309: if test "X${COLLECT_NAMES+set}" != Xset; then
21310: COLLECT_NAMES=
21311: export COLLECT_NAMES
21312: fi
21313: _LT_EOF
21314: ;;
21315: esac
21316:
21317:
21318: ltmain="$ac_aux_dir/ltmain.sh"
21319:
21320:
21321: # We use sed instead of cat because bash on DJGPP gets confused if
21322: # if finds mixed CR/LF and LF-only lines. Since sed operates in
21323: # text mode, it properly converts lines to CR/LF. This bash problem
21324: # is reportedly fixed, but why not run on old versions too?
21325: sed '$q' "$ltmain" >> "$cfgfile" \
21326: || (rm -f "$cfgfile"; exit 1)
21327:
21328: if test x"$xsi_shell" = xyes; then
21329: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21330: func_dirname ()\
21331: {\
21332: \ case ${1} in\
21333: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21334: \ * ) func_dirname_result="${3}" ;;\
21335: \ esac\
21336: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21337: && mv -f "$cfgfile.tmp" "$cfgfile" \
21338: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21339: test 0 -eq $? || _lt_function_replace_fail=:
21340:
21341:
21342: sed -e '/^func_basename ()$/,/^} # func_basename /c\
21343: func_basename ()\
21344: {\
21345: \ func_basename_result="${1##*/}"\
21346: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21347: && mv -f "$cfgfile.tmp" "$cfgfile" \
21348: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21349: test 0 -eq $? || _lt_function_replace_fail=:
21350:
21351:
21352: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21353: func_dirname_and_basename ()\
21354: {\
21355: \ case ${1} in\
21356: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21357: \ * ) func_dirname_result="${3}" ;;\
21358: \ esac\
21359: \ func_basename_result="${1##*/}"\
21360: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21361: && mv -f "$cfgfile.tmp" "$cfgfile" \
21362: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21363: test 0 -eq $? || _lt_function_replace_fail=:
21364:
21365:
21366: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21367: func_stripname ()\
21368: {\
21369: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21370: \ # positional parameters, so assign one to ordinary parameter first.\
21371: \ func_stripname_result=${3}\
21372: \ func_stripname_result=${func_stripname_result#"${1}"}\
21373: \ func_stripname_result=${func_stripname_result%"${2}"}\
21374: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21375: && mv -f "$cfgfile.tmp" "$cfgfile" \
21376: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21377: test 0 -eq $? || _lt_function_replace_fail=:
21378:
21379:
21380: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21381: func_split_long_opt ()\
21382: {\
21383: \ func_split_long_opt_name=${1%%=*}\
21384: \ func_split_long_opt_arg=${1#*=}\
21385: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21386: && mv -f "$cfgfile.tmp" "$cfgfile" \
21387: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21388: test 0 -eq $? || _lt_function_replace_fail=:
21389:
21390:
21391: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21392: func_split_short_opt ()\
21393: {\
21394: \ func_split_short_opt_arg=${1#??}\
21395: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21396: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21397: && mv -f "$cfgfile.tmp" "$cfgfile" \
21398: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21399: test 0 -eq $? || _lt_function_replace_fail=:
21400:
21401:
21402: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21403: func_lo2o ()\
21404: {\
21405: \ case ${1} in\
21406: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21407: \ *) func_lo2o_result=${1} ;;\
21408: \ esac\
21409: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21410: && mv -f "$cfgfile.tmp" "$cfgfile" \
21411: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21412: test 0 -eq $? || _lt_function_replace_fail=:
21413:
21414:
21415: sed -e '/^func_xform ()$/,/^} # func_xform /c\
21416: func_xform ()\
21417: {\
21418: func_xform_result=${1%.*}.lo\
21419: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21420: && mv -f "$cfgfile.tmp" "$cfgfile" \
21421: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21422: test 0 -eq $? || _lt_function_replace_fail=:
21423:
21424:
21425: sed -e '/^func_arith ()$/,/^} # func_arith /c\
21426: func_arith ()\
21427: {\
21428: func_arith_result=$(( $* ))\
21429: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21430: && mv -f "$cfgfile.tmp" "$cfgfile" \
21431: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21432: test 0 -eq $? || _lt_function_replace_fail=:
21433:
21434:
21435: sed -e '/^func_len ()$/,/^} # func_len /c\
21436: func_len ()\
21437: {\
21438: func_len_result=${#1}\
21439: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21440: && mv -f "$cfgfile.tmp" "$cfgfile" \
21441: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21442: test 0 -eq $? || _lt_function_replace_fail=:
21443:
21444: fi
21445:
21446: if test x"$lt_shell_append" = xyes; then
21447: sed -e '/^func_append ()$/,/^} # func_append /c\
21448: func_append ()\
21449: {\
21450: eval "${1}+=\\${2}"\
21451: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21452: && mv -f "$cfgfile.tmp" "$cfgfile" \
21453: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21454: test 0 -eq $? || _lt_function_replace_fail=:
21455:
21456:
21457: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21458: func_append_quoted ()\
21459: {\
21460: \ func_quote_for_eval "${2}"\
21461: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21462: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21463: && mv -f "$cfgfile.tmp" "$cfgfile" \
21464: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21465: test 0 -eq $? || _lt_function_replace_fail=:
21466:
21467:
21468: # Save a `func_append' function call where possible by direct use of '+='
21469: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21470: && mv -f "$cfgfile.tmp" "$cfgfile" \
21471: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21472: test 0 -eq $? || _lt_function_replace_fail=:
21473: else
21474: # Save a `func_append' function call even when '+=' is not available
21475: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21476: && mv -f "$cfgfile.tmp" "$cfgfile" \
21477: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21478: test 0 -eq $? || _lt_function_replace_fail=:
21479: fi
21480:
21481: if test x"$_lt_function_replace_fail" = x":"; then
1.150 moko 21482: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21483: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.128 moko 21484: fi
21485:
21486:
21487: mv -f "$cfgfile" "$ofile" ||
21488: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21489: chmod +x "$ofile"
21490:
21491:
21492: cat <<_LT_EOF >> "$ofile"
21493:
21494: # ### BEGIN LIBTOOL TAG CONFIG: CXX
21495:
21496: # The linker used to build libraries.
21497: LD=$lt_LD_CXX
21498:
21499: # How to create reloadable object files.
21500: reload_flag=$lt_reload_flag_CXX
21501: reload_cmds=$lt_reload_cmds_CXX
21502:
21503: # Commands used to build an old-style archive.
21504: old_archive_cmds=$lt_old_archive_cmds_CXX
21505:
21506: # A language specific compiler.
21507: CC=$lt_compiler_CXX
21508:
21509: # Is the compiler the GNU compiler?
21510: with_gcc=$GCC_CXX
21511:
21512: # Compiler flag to turn off builtin functions.
21513: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21514:
21515: # Additional compiler flags for building library objects.
21516: pic_flag=$lt_lt_prog_compiler_pic_CXX
21517:
21518: # How to pass a linker flag through the compiler.
21519: wl=$lt_lt_prog_compiler_wl_CXX
21520:
21521: # Compiler flag to prevent dynamic linking.
21522: link_static_flag=$lt_lt_prog_compiler_static_CXX
21523:
21524: # Does compiler simultaneously support -c and -o options?
21525: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21526:
21527: # Whether or not to add -lc for building shared libraries.
21528: build_libtool_need_lc=$archive_cmds_need_lc_CXX
21529:
21530: # Whether or not to disallow shared libs when runtime libs are static.
21531: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21532:
21533: # Compiler flag to allow reflexive dlopens.
21534: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21535:
21536: # Compiler flag to generate shared objects directly from archives.
21537: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21538:
21539: # Whether the compiler copes with passing no objects directly.
21540: compiler_needs_object=$lt_compiler_needs_object_CXX
21541:
21542: # Create an old-style archive from a shared archive.
21543: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21544:
21545: # Create a temporary old-style archive to link instead of a shared archive.
21546: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21547:
21548: # Commands used to build a shared archive.
21549: archive_cmds=$lt_archive_cmds_CXX
21550: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21551:
21552: # Commands used to build a loadable module if different from building
21553: # a shared archive.
21554: module_cmds=$lt_module_cmds_CXX
21555: module_expsym_cmds=$lt_module_expsym_cmds_CXX
21556:
21557: # Whether we are building with GNU ld or not.
21558: with_gnu_ld=$lt_with_gnu_ld_CXX
21559:
21560: # Flag that allows shared libraries with undefined symbols to be built.
21561: allow_undefined_flag=$lt_allow_undefined_flag_CXX
21562:
21563: # Flag that enforces no undefined symbols.
21564: no_undefined_flag=$lt_no_undefined_flag_CXX
21565:
21566: # Flag to hardcode \$libdir into a binary during linking.
21567: # This must work even if \$libdir does not exist
21568: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21569:
21570: # Whether we need a single "-rpath" flag with a separated argument.
21571: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21572:
21573: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21574: # DIR into the resulting binary.
21575: hardcode_direct=$hardcode_direct_CXX
21576:
21577: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21578: # DIR into the resulting binary and the resulting library dependency is
21579: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21580: # library is relocated.
21581: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21582:
21583: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21584: # into the resulting binary.
21585: hardcode_minus_L=$hardcode_minus_L_CXX
21586:
21587: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21588: # into the resulting binary.
21589: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21590:
21591: # Set to "yes" if building a shared library automatically hardcodes DIR
21592: # into the library and all subsequent libraries and executables linked
21593: # against it.
21594: hardcode_automatic=$hardcode_automatic_CXX
21595:
21596: # Set to yes if linker adds runtime paths of dependent libraries
21597: # to runtime path list.
21598: inherit_rpath=$inherit_rpath_CXX
21599:
21600: # Whether libtool must link a program against all its dependency libraries.
21601: link_all_deplibs=$link_all_deplibs_CXX
21602:
21603: # Set to "yes" if exported symbols are required.
21604: always_export_symbols=$always_export_symbols_CXX
21605:
21606: # The commands to list exported symbols.
21607: export_symbols_cmds=$lt_export_symbols_cmds_CXX
21608:
21609: # Symbols that should not be listed in the preloaded symbols.
21610: exclude_expsyms=$lt_exclude_expsyms_CXX
21611:
21612: # Symbols that must always be exported.
21613: include_expsyms=$lt_include_expsyms_CXX
21614:
21615: # Commands necessary for linking programs (against libraries) with templates.
21616: prelink_cmds=$lt_prelink_cmds_CXX
21617:
21618: # Commands necessary for finishing linking programs.
21619: postlink_cmds=$lt_postlink_cmds_CXX
21620:
21621: # Specify filename containing input files.
21622: file_list_spec=$lt_file_list_spec_CXX
21623:
21624: # How to hardcode a shared library path into an executable.
21625: hardcode_action=$hardcode_action_CXX
21626:
21627: # The directories searched by this compiler when creating a shared library.
21628: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21629:
21630: # Dependencies to place before and after the objects being linked to
21631: # create a shared library.
21632: predep_objects=$lt_predep_objects_CXX
21633: postdep_objects=$lt_postdep_objects_CXX
21634: predeps=$lt_predeps_CXX
21635: postdeps=$lt_postdeps_CXX
21636:
21637: # The library search path used internally by the compiler when linking
21638: # a shared library.
21639: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21640:
21641: # ### END LIBTOOL TAG CONFIG: CXX
21642: _LT_EOF
21643:
21644: ;;
1.150 moko 21645:
1.62 paf 21646: esac
1.150 moko 21647: done # for ac_tag
1.62 paf 21648:
21649:
1.150 moko 21650: as_fn_exit 0
1.62 paf 21651: _ACEOF
21652: ac_clean_files=$ac_clean_files_save
21653:
1.150 moko 21654: test $ac_write_fail = 0 ||
21655: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21656:
1.1 paf 21657:
1.62 paf 21658: # configure is writing to config.log, and then calls config.status.
21659: # config.status does its own redirection, appending to config.log.
21660: # Unfortunately, on DOS this fails, as config.log is still kept open
21661: # by configure, so config.status won't be able to write to it; its
21662: # output is simply discarded. So we exec the FD to /dev/null,
21663: # effectively closing config.log, so it can be properly (re)opened and
21664: # appended to by config.status. When coming back to configure, we
21665: # need to make the FD available again.
21666: if test "$no_create" != yes; then
21667: ac_cs_success=:
21668: ac_config_status_args=
21669: test "$silent" = yes &&
21670: ac_config_status_args="$ac_config_status_args --quiet"
21671: exec 5>/dev/null
21672: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21673: exec 5>>config.log
21674: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21675: # would make configure fail if this is the last instruction.
1.150 moko 21676: $ac_cs_success || as_fn_exit 1
1.62 paf 21677: fi
21678:
21679: #
21680: # CONFIG_SUBDIRS section.
21681: #
1.1 paf 21682: if test "$no_recursion" != yes; then
21683:
1.150 moko 21684: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21685: # so they do not pile up.
1.1 paf 21686: ac_sub_configure_args=
21687: ac_prev=
1.150 moko 21688: eval "set x $ac_configure_args"
21689: shift
21690: for ac_arg
21691: do
1.1 paf 21692: if test -n "$ac_prev"; then
21693: ac_prev=
21694: continue
21695: fi
1.62 paf 21696: case $ac_arg in
1.1 paf 21697: -cache-file | --cache-file | --cache-fil | --cache-fi \
21698: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21699: ac_prev=cache_file ;;
21700: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 21701: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21702: | --c=*)
21703: ;;
21704: --config-cache | -C)
1.1 paf 21705: ;;
21706: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21707: ac_prev=srcdir ;;
21708: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21709: ;;
1.62 paf 21710: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21711: ac_prev=prefix ;;
21712: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21713: ;;
1.150 moko 21714: --disable-option-checking)
21715: ;;
21716: *)
21717: case $ac_arg in
21718: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21719: esac
21720: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 21721: esac
21722: done
21723:
1.62 paf 21724: # Always prepend --prefix to ensure using the same prefix
21725: # in subdir configurations.
1.150 moko 21726: ac_arg="--prefix=$prefix"
21727: case $ac_arg in
21728: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21729: esac
21730: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21731:
21732: # Pass --silent
21733: if test "$silent" = yes; then
21734: ac_sub_configure_args="--silent $ac_sub_configure_args"
21735: fi
21736:
21737: # Always prepend --disable-option-checking to silence warnings, since
21738: # different subdirs can have different --enable and --with options.
21739: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 21740:
21741: ac_popdir=`pwd`
21742: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 21743:
21744: # Do not complain, so a configure script can configure whichever
21745: # parts of a large source tree are present.
1.150 moko 21746: test -d "$srcdir/$ac_dir" || continue
1.62 paf 21747:
1.150 moko 21748: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21749: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21750: $as_echo "$ac_msg" >&6
21751: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 21752: ac_builddir=.
21753:
1.150 moko 21754: case "$ac_dir" in
21755: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21756: *)
21757: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21758: # A ".." for each directory in $ac_dir_suffix.
21759: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21760: case $ac_top_builddir_sub in
21761: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21762: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21763: esac ;;
21764: esac
21765: ac_abs_top_builddir=$ac_pwd
21766: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21767: # for backward compatibility:
21768: ac_top_builddir=$ac_top_build_prefix
1.62 paf 21769:
21770: case $srcdir in
1.150 moko 21771: .) # We are building in place.
1.62 paf 21772: ac_srcdir=.
1.150 moko 21773: ac_top_srcdir=$ac_top_builddir_sub
21774: ac_abs_top_srcdir=$ac_pwd ;;
21775: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 21776: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 21777: ac_top_srcdir=$srcdir
21778: ac_abs_top_srcdir=$srcdir ;;
21779: *) # Relative name.
21780: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21781: ac_top_srcdir=$ac_top_build_prefix$srcdir
21782: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 21783: esac
1.150 moko 21784: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 21785:
21786:
1.150 moko 21787: cd "$ac_dir"
1.1 paf 21788:
21789: # Check for guested configure; otherwise get Cygnus style configure.
1.150 moko 21790: if test -f "$ac_srcdir/configure.gnu"; then
21791: ac_sub_configure=$ac_srcdir/configure.gnu
21792: elif test -f "$ac_srcdir/configure"; then
21793: ac_sub_configure=$ac_srcdir/configure
21794: elif test -f "$ac_srcdir/configure.in"; then
21795: # This should be Cygnus configure.
21796: ac_sub_configure=$ac_aux_dir/configure
1.1 paf 21797: else
1.150 moko 21798: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21799: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 21800: ac_sub_configure=
21801: fi
21802:
21803: # The recursion is here.
21804: if test -n "$ac_sub_configure"; then
21805: # Make the cache file name correct relative to the subdirectory.
1.62 paf 21806: case $cache_file in
21807: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 21808: *) # Relative name.
21809: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 21810: esac
21811:
1.150 moko 21812: { $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
21813: $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 paf 21814: # The eval makes quoting arguments work.
1.150 moko 21815: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21816: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21817: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 21818: fi
21819:
1.150 moko 21820: cd "$ac_popdir"
1.1 paf 21821: done
21822: fi
1.150 moko 21823: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21824: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21825: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21826: fi
1.1 paf 21827:
E-mail: