Annotation of parser3/configure, revision 1.202
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.186 moko 3: # Generated by GNU Autoconf 2.69 for parser 3.4.6b.
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.186 moko 594: PACKAGE_VERSION='3.4.6b'
595: PACKAGE_STRING='parser 3.4.6b'
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.201 moko 809: with_system_config
810: with_system_log
1.150 moko 811: enable_safe_mode
812: enable_execs
813: enable_stringstream
814: with_gc
815: with_pcre
816: with_xml
1.154 moko 817: with_mailreceive
1.150 moko 818: with_sendmail
819: with_apache
820: with_pic
821: enable_shared
822: enable_static
823: enable_fast_install
824: with_gnu_ld
825: with_sysroot
826: enable_libtool_lock
827: with_included_ltdl
828: with_ltdl_include
829: with_ltdl_lib
830: enable_ltdl_install
1.171 moko 831: enable_largefile
1.150 moko 832: '
833: ac_precious_vars='build_alias
834: host_alias
835: target_alias
836: YACC
837: YFLAGS
838: CXX
839: CXXFLAGS
840: LDFLAGS
841: LIBS
842: CPPFLAGS
843: CCC
844: CC
845: CFLAGS
846: CPP
847: CXXCPP'
848: ac_subdirs_all='src/lib/ltdl'
1.1 paf 849:
850: # Initialize some variables set by options.
1.62 paf 851: ac_init_help=
852: ac_init_version=false
1.150 moko 853: ac_unrecognized_opts=
854: ac_unrecognized_sep=
1.1 paf 855: # The variables have the same names as the options, with
856: # dashes changed to underlines.
1.62 paf 857: cache_file=/dev/null
1.1 paf 858: exec_prefix=NONE
859: no_create=
860: no_recursion=
861: prefix=NONE
862: program_prefix=NONE
863: program_suffix=NONE
864: program_transform_name=s,x,x,
865: silent=
866: site=
867: srcdir=
868: verbose=
869: x_includes=NONE
870: x_libraries=NONE
1.62 paf 871:
872: # Installation directory options.
873: # These are left unexpanded so users can "make install exec_prefix=/foo"
874: # and all the variables that are supposed to be based on exec_prefix
875: # by default will actually change.
876: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 877: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 878: bindir='${exec_prefix}/bin'
879: sbindir='${exec_prefix}/sbin'
880: libexecdir='${exec_prefix}/libexec'
1.150 moko 881: datarootdir='${prefix}/share'
882: datadir='${datarootdir}'
1.1 paf 883: sysconfdir='${prefix}/etc'
884: sharedstatedir='${prefix}/com'
885: localstatedir='${prefix}/var'
1.191 moko 886: runstatedir='${localstatedir}/run'
1.1 paf 887: includedir='${prefix}/include'
888: oldincludedir='/usr/include'
1.150 moko 889: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890: infodir='${datarootdir}/info'
891: htmldir='${docdir}'
892: dvidir='${docdir}'
893: pdfdir='${docdir}'
894: psdir='${docdir}'
895: libdir='${exec_prefix}/lib'
896: localedir='${datarootdir}/locale'
897: mandir='${datarootdir}/man'
1.1 paf 898:
899: ac_prev=
1.150 moko 900: ac_dashdash=
1.1 paf 901: for ac_option
902: do
903: # If the previous option needs an argument, assign it.
904: if test -n "$ac_prev"; then
1.150 moko 905: eval $ac_prev=\$ac_option
1.1 paf 906: ac_prev=
907: continue
908: fi
909:
1.150 moko 910: case $ac_option in
911: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912: *=) ac_optarg= ;;
913: *) ac_optarg=yes ;;
914: esac
1.1 paf 915:
916: # Accept the important Cygnus configure options, so we can diagnose typos.
917:
1.150 moko 918: case $ac_dashdash$ac_option in
919: --)
920: ac_dashdash=yes ;;
1.1 paf 921:
922: -bindir | --bindir | --bindi | --bind | --bin | --bi)
923: ac_prev=bindir ;;
924: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 925: bindir=$ac_optarg ;;
1.1 paf 926:
927: -build | --build | --buil | --bui | --bu)
1.62 paf 928: ac_prev=build_alias ;;
1.1 paf 929: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 930: build_alias=$ac_optarg ;;
1.1 paf 931:
932: -cache-file | --cache-file | --cache-fil | --cache-fi \
933: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934: ac_prev=cache_file ;;
935: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 937: cache_file=$ac_optarg ;;
938:
939: --config-cache | -C)
940: cache_file=config.cache ;;
1.1 paf 941:
1.150 moko 942: -datadir | --datadir | --datadi | --datad)
1.1 paf 943: ac_prev=datadir ;;
1.150 moko 944: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 945: datadir=$ac_optarg ;;
1.1 paf 946:
1.150 moko 947: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948: | --dataroo | --dataro | --datar)
949: ac_prev=datarootdir ;;
950: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952: datarootdir=$ac_optarg ;;
953:
1.1 paf 954: -disable-* | --disable-*)
1.150 moko 955: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 956: # Reject names that are not valid shell variable names.
1.150 moko 957: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958: as_fn_error $? "invalid feature name: $ac_useropt"
959: ac_useropt_orig=$ac_useropt
960: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961: case $ac_user_opts in
962: *"
963: "enable_$ac_useropt"
964: "*) ;;
965: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966: ac_unrecognized_sep=', ';;
967: esac
968: eval enable_$ac_useropt=no ;;
969:
970: -docdir | --docdir | --docdi | --doc | --do)
971: ac_prev=docdir ;;
972: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973: docdir=$ac_optarg ;;
974:
975: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976: ac_prev=dvidir ;;
977: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978: dvidir=$ac_optarg ;;
1.1 paf 979:
980: -enable-* | --enable-*)
1.150 moko 981: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 982: # Reject names that are not valid shell variable names.
1.150 moko 983: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984: as_fn_error $? "invalid feature name: $ac_useropt"
985: ac_useropt_orig=$ac_useropt
986: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987: case $ac_user_opts in
988: *"
989: "enable_$ac_useropt"
990: "*) ;;
991: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992: ac_unrecognized_sep=', ';;
1.1 paf 993: esac
1.150 moko 994: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 995:
996: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998: | --exec | --exe | --ex)
999: ac_prev=exec_prefix ;;
1000: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002: | --exec=* | --exe=* | --ex=*)
1.62 paf 1003: exec_prefix=$ac_optarg ;;
1.1 paf 1004:
1005: -gas | --gas | --ga | --g)
1006: # Obsolete; use --with-gas.
1007: with_gas=yes ;;
1008:
1.62 paf 1009: -help | --help | --hel | --he | -h)
1010: ac_init_help=long ;;
1011: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012: ac_init_help=recursive ;;
1013: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014: ac_init_help=short ;;
1.1 paf 1015:
1016: -host | --host | --hos | --ho)
1.62 paf 1017: ac_prev=host_alias ;;
1.1 paf 1018: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1019: host_alias=$ac_optarg ;;
1.1 paf 1020:
1.150 moko 1021: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022: ac_prev=htmldir ;;
1023: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024: | --ht=*)
1025: htmldir=$ac_optarg ;;
1026:
1.1 paf 1027: -includedir | --includedir | --includedi | --included | --include \
1028: | --includ | --inclu | --incl | --inc)
1029: ac_prev=includedir ;;
1030: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1032: includedir=$ac_optarg ;;
1.1 paf 1033:
1034: -infodir | --infodir | --infodi | --infod | --info | --inf)
1035: ac_prev=infodir ;;
1036: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1037: infodir=$ac_optarg ;;
1.1 paf 1038:
1039: -libdir | --libdir | --libdi | --libd)
1040: ac_prev=libdir ;;
1041: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1042: libdir=$ac_optarg ;;
1.1 paf 1043:
1044: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045: | --libexe | --libex | --libe)
1046: ac_prev=libexecdir ;;
1047: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1049: libexecdir=$ac_optarg ;;
1.1 paf 1050:
1.150 moko 1051: -localedir | --localedir | --localedi | --localed | --locale)
1052: ac_prev=localedir ;;
1053: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054: localedir=$ac_optarg ;;
1055:
1.1 paf 1056: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1057: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1058: ac_prev=localstatedir ;;
1059: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1060: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1061: localstatedir=$ac_optarg ;;
1.1 paf 1062:
1063: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064: ac_prev=mandir ;;
1065: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1066: mandir=$ac_optarg ;;
1.1 paf 1067:
1068: -nfp | --nfp | --nf)
1069: # Obsolete; use --without-fp.
1070: with_fp=no ;;
1071:
1072: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1073: | --no-cr | --no-c | -n)
1.1 paf 1074: no_create=yes ;;
1075:
1076: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078: no_recursion=yes ;;
1079:
1080: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082: | --oldin | --oldi | --old | --ol | --o)
1083: ac_prev=oldincludedir ;;
1084: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1087: oldincludedir=$ac_optarg ;;
1.1 paf 1088:
1089: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090: ac_prev=prefix ;;
1091: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1092: prefix=$ac_optarg ;;
1.1 paf 1093:
1094: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095: | --program-pre | --program-pr | --program-p)
1096: ac_prev=program_prefix ;;
1097: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1099: program_prefix=$ac_optarg ;;
1.1 paf 1100:
1101: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102: | --program-suf | --program-su | --program-s)
1103: ac_prev=program_suffix ;;
1104: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1106: program_suffix=$ac_optarg ;;
1.1 paf 1107:
1108: -program-transform-name | --program-transform-name \
1109: | --program-transform-nam | --program-transform-na \
1110: | --program-transform-n | --program-transform- \
1111: | --program-transform | --program-transfor \
1112: | --program-transfo | --program-transf \
1113: | --program-trans | --program-tran \
1114: | --progr-tra | --program-tr | --program-t)
1115: ac_prev=program_transform_name ;;
1116: -program-transform-name=* | --program-transform-name=* \
1117: | --program-transform-nam=* | --program-transform-na=* \
1118: | --program-transform-n=* | --program-transform-=* \
1119: | --program-transform=* | --program-transfor=* \
1120: | --program-transfo=* | --program-transf=* \
1121: | --program-trans=* | --program-tran=* \
1122: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1123: program_transform_name=$ac_optarg ;;
1.1 paf 1124:
1.150 moko 1125: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126: ac_prev=pdfdir ;;
1127: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128: pdfdir=$ac_optarg ;;
1129:
1130: -psdir | --psdir | --psdi | --psd | --ps)
1131: ac_prev=psdir ;;
1132: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133: psdir=$ac_optarg ;;
1134:
1.1 paf 1135: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136: | -silent | --silent | --silen | --sile | --sil)
1137: silent=yes ;;
1138:
1.191 moko 1139: -runstatedir | --runstatedir | --runstatedi | --runstated \
1140: | --runstate | --runstat | --runsta | --runst | --runs \
1141: | --run | --ru | --r)
1142: ac_prev=runstatedir ;;
1143: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145: | --run=* | --ru=* | --r=*)
1146: runstatedir=$ac_optarg ;;
1147:
1.1 paf 1148: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149: ac_prev=sbindir ;;
1150: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151: | --sbi=* | --sb=*)
1.62 paf 1152: sbindir=$ac_optarg ;;
1.1 paf 1153:
1154: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156: | --sharedst | --shareds | --shared | --share | --shar \
1157: | --sha | --sh)
1158: ac_prev=sharedstatedir ;;
1159: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162: | --sha=* | --sh=*)
1.62 paf 1163: sharedstatedir=$ac_optarg ;;
1.1 paf 1164:
1165: -site | --site | --sit)
1166: ac_prev=site ;;
1167: -site=* | --site=* | --sit=*)
1.62 paf 1168: site=$ac_optarg ;;
1.1 paf 1169:
1170: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171: ac_prev=srcdir ;;
1172: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1173: srcdir=$ac_optarg ;;
1.1 paf 1174:
1175: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176: | --syscon | --sysco | --sysc | --sys | --sy)
1177: ac_prev=sysconfdir ;;
1178: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1180: sysconfdir=$ac_optarg ;;
1.1 paf 1181:
1182: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1183: ac_prev=target_alias ;;
1.1 paf 1184: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1185: target_alias=$ac_optarg ;;
1.1 paf 1186:
1187: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188: verbose=yes ;;
1189:
1.62 paf 1190: -version | --version | --versio | --versi | --vers | -V)
1191: ac_init_version=: ;;
1.1 paf 1192:
1193: -with-* | --with-*)
1.150 moko 1194: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1195: # Reject names that are not valid shell variable names.
1.150 moko 1196: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197: as_fn_error $? "invalid package name: $ac_useropt"
1198: ac_useropt_orig=$ac_useropt
1199: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200: case $ac_user_opts in
1201: *"
1202: "with_$ac_useropt"
1203: "*) ;;
1204: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205: ac_unrecognized_sep=', ';;
1.1 paf 1206: esac
1.150 moko 1207: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1208:
1209: -without-* | --without-*)
1.150 moko 1210: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1211: # Reject names that are not valid shell variable names.
1.150 moko 1212: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213: as_fn_error $? "invalid package name: $ac_useropt"
1214: ac_useropt_orig=$ac_useropt
1215: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216: case $ac_user_opts in
1217: *"
1218: "with_$ac_useropt"
1219: "*) ;;
1220: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221: ac_unrecognized_sep=', ';;
1222: esac
1223: eval with_$ac_useropt=no ;;
1.1 paf 1224:
1225: --x)
1226: # Obsolete; use --with-x.
1227: with_x=yes ;;
1228:
1229: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230: | --x-incl | --x-inc | --x-in | --x-i)
1231: ac_prev=x_includes ;;
1232: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1234: x_includes=$ac_optarg ;;
1.1 paf 1235:
1236: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238: ac_prev=x_libraries ;;
1239: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1241: x_libraries=$ac_optarg ;;
1.1 paf 1242:
1.150 moko 1243: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244: Try \`$0 --help' for more information"
1.1 paf 1245: ;;
1246:
1.62 paf 1247: *=*)
1248: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249: # Reject names that are not valid shell variable names.
1.150 moko 1250: case $ac_envvar in #(
1251: '' | [0-9]* | *[!_$as_cr_alnum]* )
1252: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253: esac
1254: eval $ac_envvar=\$ac_optarg
1.62 paf 1255: export $ac_envvar ;;
1256:
1.1 paf 1257: *)
1.62 paf 1258: # FIXME: should be removed in autoconf 3.0.
1.150 moko 1259: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1260: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.150 moko 1261: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1263: ;;
1264:
1265: esac
1266: done
1267:
1268: if test -n "$ac_prev"; then
1.62 paf 1269: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1270: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1271: fi
1272:
1.150 moko 1273: if test -n "$ac_unrecognized_opts"; then
1274: case $enable_option_checking in
1275: no) ;;
1276: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278: esac
1279: fi
1280:
1281: # Check all directory arguments for consistency.
1282: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283: datadir sysconfdir sharedstatedir localstatedir includedir \
1284: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.191 moko 1285: libdir localedir mandir runstatedir
1.62 paf 1286: do
1.150 moko 1287: eval ac_val=\$$ac_var
1288: # Remove trailing slashes.
1.62 paf 1289: case $ac_val in
1.150 moko 1290: */ )
1291: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292: eval $ac_var=\$ac_val;;
1.62 paf 1293: esac
1.150 moko 1294: # Be sure to have absolute directory names.
1.62 paf 1295: case $ac_val in
1.150 moko 1296: [\\/$]* | ?:[\\/]* ) continue;;
1297: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1298: esac
1.150 moko 1299: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1300: done
1301:
1.62 paf 1302: # There might be people who depend on the old broken behavior: `$host'
1303: # used to hold the argument of --host etc.
1304: # FIXME: To remove some day.
1305: build=$build_alias
1306: host=$host_alias
1307: target=$target_alias
1308:
1309: # FIXME: To remove some day.
1310: if test "x$host_alias" != x; then
1311: if test "x$build_alias" = x; then
1312: cross_compiling=maybe
1313: elif test "x$build_alias" != "x$host_alias"; then
1314: cross_compiling=yes
1315: fi
1316: fi
1317:
1318: ac_tool_prefix=
1319: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1320:
1.62 paf 1321: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1322:
1323:
1.150 moko 1324: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325: ac_ls_di=`ls -di .` &&
1326: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327: as_fn_error $? "working directory cannot be determined"
1328: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329: as_fn_error $? "pwd does not report name of working directory"
1330:
1331:
1.1 paf 1332: # Find the source files, if location was not specified.
1333: if test -z "$srcdir"; then
1334: ac_srcdir_defaulted=yes
1.150 moko 1335: # Try the directory containing this script, then the parent directory.
1336: ac_confdir=`$as_dirname -- "$as_myself" ||
1337: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338: X"$as_myself" : 'X\(//\)[^/]' \| \
1339: X"$as_myself" : 'X\(//\)$' \| \
1340: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341: $as_echo X"$as_myself" |
1342: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343: s//\1/
1344: q
1345: }
1346: /^X\(\/\/\)[^/].*/{
1347: s//\1/
1348: q
1349: }
1350: /^X\(\/\/\)$/{
1351: s//\1/
1352: q
1353: }
1354: /^X\(\/\).*/{
1355: s//\1/
1356: q
1357: }
1358: s/.*/./; q'`
1.1 paf 1359: srcdir=$ac_confdir
1.150 moko 1360: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1361: srcdir=..
1362: fi
1363: else
1364: ac_srcdir_defaulted=no
1365: fi
1.150 moko 1366: if test ! -r "$srcdir/$ac_unique_file"; then
1367: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369: fi
1370: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371: ac_abs_confdir=`(
1372: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373: pwd)`
1374: # When building in place, set srcdir=.
1375: if test "$ac_abs_confdir" = "$ac_pwd"; then
1376: srcdir=.
1377: fi
1378: # Remove unnecessary trailing slashes from srcdir.
1379: # Double slashes in file names in object file debugging info
1380: # mess up M-x gdb in Emacs.
1381: case $srcdir in
1382: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383: esac
1384: for ac_var in $ac_precious_vars; do
1385: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386: eval ac_env_${ac_var}_value=\$${ac_var}
1387: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389: done
1.62 paf 1390:
1391: #
1392: # Report the --help message.
1393: #
1394: if test "$ac_init_help" = "long"; then
1395: # Omit some internal or obsolete options to make the list less imposing.
1396: # This message is too long to be a string in the A/UX 3.1 sh.
1397: cat <<_ACEOF
1.186 moko 1398: \`configure' configures parser 3.4.6b to adapt to many kinds of systems.
1.62 paf 1399:
1400: Usage: $0 [OPTION]... [VAR=VALUE]...
1401:
1402: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403: VAR=VALUE. See below for descriptions of some of the useful variables.
1404:
1405: Defaults for the options are specified in brackets.
1406:
1407: Configuration:
1408: -h, --help display this help and exit
1409: --help=short display options specific to this package
1410: --help=recursive display the short help of all the included packages
1411: -V, --version display version information and exit
1.150 moko 1412: -q, --quiet, --silent do not print \`checking ...' messages
1.62 paf 1413: --cache-file=FILE cache test results in FILE [disabled]
1414: -C, --config-cache alias for \`--cache-file=config.cache'
1415: -n, --no-create do not create output files
1416: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417:
1418: Installation directories:
1419: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1420: [$ac_default_prefix]
1.62 paf 1421: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1422: [PREFIX]
1.62 paf 1423:
1424: By default, \`make install' will install all the files in
1425: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427: for instance \`--prefix=\$HOME'.
1428:
1429: For better control, use the options below.
1430:
1431: Fine tuning of the installation directories:
1.150 moko 1432: --bindir=DIR user executables [EPREFIX/bin]
1433: --sbindir=DIR system admin executables [EPREFIX/sbin]
1434: --libexecdir=DIR program executables [EPREFIX/libexec]
1435: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.191 moko 1438: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.150 moko 1439: --libdir=DIR object code libraries [EPREFIX/lib]
1440: --includedir=DIR C header files [PREFIX/include]
1441: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444: --infodir=DIR info documentation [DATAROOTDIR/info]
1445: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446: --mandir=DIR man documentation [DATAROOTDIR/man]
1447: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1448: --htmldir=DIR html documentation [DOCDIR]
1449: --dvidir=DIR dvi documentation [DOCDIR]
1450: --pdfdir=DIR pdf documentation [DOCDIR]
1451: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1452: _ACEOF
1453:
1454: cat <<\_ACEOF
1455:
1456: Program names:
1457: --program-prefix=PREFIX prepend PREFIX to installed program names
1458: --program-suffix=SUFFIX append SUFFIX to installed program names
1459: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460:
1461: System types:
1462: --build=BUILD configure for building on BUILD [guessed]
1463: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464: _ACEOF
1465: fi
1466:
1467: if test -n "$ac_init_help"; then
1.128 moko 1468: case $ac_init_help in
1.186 moko 1469: short | recursive ) echo "Configuration of parser 3.4.6b:";;
1.128 moko 1470: esac
1.62 paf 1471: cat <<\_ACEOF
1472:
1473: Optional Features:
1.150 moko 1474: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1475: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.187 moko 1477: --enable-silent-rules less verbose build output (undo: "make V=1")
1478: --disable-silent-rules verbose build output (undo: "make V=0")
1479: --enable-dependency-tracking
1480: do not reject slow dependency extractors
1481: --disable-dependency-tracking
1482: speeds up one-time build
1.67 paf 1483: --disable-safe-mode to enable reading and executing
1.62 paf 1484: files belonging to group+user other then effective
1.146 moko 1485: --disable-execs to disable any execs
1.62 paf 1486: (file::exec, file::cgi, unix mail:send)
1.195 moko 1487: --disable-stringstream to disable stringstream usage.
1488: when disabled table.save uses more memory, but more compilers are supported
1.150 moko 1489: --enable-shared[=PKGS] build shared libraries [default=yes]
1490: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1491: --enable-fast-install[=PKGS]
1492: optimize for fast installation [default=yes]
1493: --disable-libtool-lock avoid locking (might break parallel builds)
1494: --enable-ltdl-install install libltdl
1.171 moko 1495: --disable-largefile omit support for large files
1.62 paf 1496:
1497: Optional Packages:
1498: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1500: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.185 moko 1501: --with-coverage to enable gcov code coverage support
1502: --with-profiler to enable gprof code profiler support
1.67 paf 1503: --with-assertions to enable assertions
1.201 moko 1504: --with-sjlj-exceptions to enable simple 'throw' from dynamic library
1505: --with-system-cfg=FILE to specify system-wide auto.p
1506: --with-system-log=FILE to specify system-wide parser3.log
1507: --with-gc=DIR DIR is the directory where
1.142 moko 1508: Boehm garbage collecting library is installed
1.201 moko 1509: --with-pcre=DIR DIR is the directory where
1.142 moko 1510: PCRE library is installed
1.201 moko 1511: --with-xml=DIR DIR is the directory where
1.142 moko 1512: Gnome XML libraries are installed
1.201 moko 1513: --with-mailreceive=DIR is the directory where
1.154 moko 1514: Gnome MIME library is installed
1.62 paf 1515: \"--with-sendmail=COMMAND\" forces this command to send mail.
1516: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1517: (makes parser ignore user-defined sendmail commands)
1.146 moko 1518: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1519: builds apache DSO module using apxs
1.150 moko 1520: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.128 moko 1521: both]
1522: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1523: --with-sysroot=DIR Search for dependent libraries within DIR
1524: (or the compiler's sysroot if not specified).
1525: --with-included-ltdl use the GNU ltdl sources included here
1526: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1527: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1528:
1529: Some influential environment variables:
1.150 moko 1530: YACC The `Yet Another Compiler Compiler' implementation to use.
1531: Defaults to the first program found out of: `bison -y', `byacc',
1532: `yacc'.
1533: YFLAGS The list of arguments that will be passed by default to $YACC.
1534: This script will default YFLAGS to the empty string to avoid a
1535: default value of `-d' given by some make applications.
1.66 paf 1536: CXX C++ compiler command
1537: CXXFLAGS C++ compiler flags
1.62 paf 1538: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539: nonstandard directory <lib dir>
1.150 moko 1540: LIBS libraries to pass to the linker, e.g. -l<library>
1541: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542: you have headers in a nonstandard directory <include dir>
1.66 paf 1543: CC C compiler command
1544: CFLAGS C compiler flags
1545: CPP C preprocessor
1.128 moko 1546: CXXCPP C++ preprocessor
1.62 paf 1547:
1548: Use these variables to override the choices made by `configure' or to help
1549: it to find libraries and programs with nonstandard names/locations.
1550:
1.150 moko 1551: Report bugs to the package provider.
1.62 paf 1552: _ACEOF
1.150 moko 1553: ac_status=$?
1.62 paf 1554: fi
1555:
1556: if test "$ac_init_help" = "recursive"; then
1557: # If there are subdirs, report their specific --help.
1558: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1559: test -d "$ac_dir" ||
1560: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561: continue
1.62 paf 1562: ac_builddir=.
1563:
1.150 moko 1564: case "$ac_dir" in
1565: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566: *)
1567: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1568: # A ".." for each directory in $ac_dir_suffix.
1569: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1570: case $ac_top_builddir_sub in
1571: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573: esac ;;
1574: esac
1575: ac_abs_top_builddir=$ac_pwd
1576: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1577: # for backward compatibility:
1578: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1579:
1580: case $srcdir in
1.150 moko 1581: .) # We are building in place.
1.62 paf 1582: ac_srcdir=.
1.150 moko 1583: ac_top_srcdir=$ac_top_builddir_sub
1584: ac_abs_top_srcdir=$ac_pwd ;;
1585: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1586: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1587: ac_top_srcdir=$srcdir
1588: ac_abs_top_srcdir=$srcdir ;;
1589: *) # Relative name.
1590: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591: ac_top_srcdir=$ac_top_build_prefix$srcdir
1592: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1593: esac
1.150 moko 1594: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1595:
1.150 moko 1596: cd "$ac_dir" || { ac_status=$?; continue; }
1597: # Check for guested configure.
1598: if test -f "$ac_srcdir/configure.gnu"; then
1599: echo &&
1600: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601: elif test -f "$ac_srcdir/configure"; then
1602: echo &&
1603: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1604: else
1.150 moko 1605: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606: fi || ac_status=$?
1607: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1608: done
1609: fi
1610:
1.150 moko 1611: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1612: if $ac_init_version; then
1613: cat <<\_ACEOF
1.186 moko 1614: parser configure 3.4.6b
1.166 moko 1615: generated by GNU Autoconf 2.69
1.62 paf 1616:
1.166 moko 1617: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 1618: This configure script is free software; the Free Software Foundation
1619: gives unlimited permission to copy, distribute and modify it.
1620: _ACEOF
1.150 moko 1621: exit
1.62 paf 1622: fi
1623:
1.150 moko 1624: ## ------------------------ ##
1625: ## Autoconf initialization. ##
1626: ## ------------------------ ##
1627:
1628: # ac_fn_cxx_try_compile LINENO
1629: # ----------------------------
1630: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631: ac_fn_cxx_try_compile ()
1.62 paf 1632: {
1.150 moko 1633: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634: rm -f conftest.$ac_objext
1635: if { { ac_try="$ac_compile"
1636: case "(($ac_try" in
1637: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638: *) ac_try_echo=$ac_try;;
1639: esac
1640: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641: $as_echo "$ac_try_echo"; } >&5
1642: (eval "$ac_compile") 2>conftest.err
1643: ac_status=$?
1644: if test -s conftest.err; then
1645: grep -v '^ *+' conftest.err >conftest.er1
1646: cat conftest.er1 >&5
1647: mv -f conftest.er1 conftest.err
1648: fi
1649: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650: test $ac_status = 0; } && {
1651: test -z "$ac_cxx_werror_flag" ||
1652: test ! -s conftest.err
1653: } && test -s conftest.$ac_objext; then :
1654: ac_retval=0
1655: else
1656: $as_echo "$as_me: failed program was:" >&5
1657: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1658:
1.150 moko 1659: ac_retval=1
1660: fi
1661: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662: as_fn_set_status $ac_retval
1.62 paf 1663:
1.150 moko 1664: } # ac_fn_cxx_try_compile
1665:
1666: # ac_fn_c_try_compile LINENO
1667: # --------------------------
1668: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1669: ac_fn_c_try_compile ()
1670: {
1671: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672: rm -f conftest.$ac_objext
1673: if { { ac_try="$ac_compile"
1674: case "(($ac_try" in
1675: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676: *) ac_try_echo=$ac_try;;
1677: esac
1678: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679: $as_echo "$ac_try_echo"; } >&5
1680: (eval "$ac_compile") 2>conftest.err
1681: ac_status=$?
1682: if test -s conftest.err; then
1683: grep -v '^ *+' conftest.err >conftest.er1
1684: cat conftest.er1 >&5
1685: mv -f conftest.er1 conftest.err
1686: fi
1687: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688: test $ac_status = 0; } && {
1689: test -z "$ac_c_werror_flag" ||
1690: test ! -s conftest.err
1691: } && test -s conftest.$ac_objext; then :
1692: ac_retval=0
1693: else
1694: $as_echo "$as_me: failed program was:" >&5
1695: sed 's/^/| /' conftest.$ac_ext >&5
1696:
1697: ac_retval=1
1698: fi
1699: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700: as_fn_set_status $ac_retval
1701:
1702: } # ac_fn_c_try_compile
1703:
1704: # ac_fn_c_try_link LINENO
1705: # -----------------------
1706: # Try to link conftest.$ac_ext, and return whether this succeeded.
1707: ac_fn_c_try_link ()
1708: {
1709: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710: rm -f conftest.$ac_objext conftest$ac_exeext
1711: if { { ac_try="$ac_link"
1712: case "(($ac_try" in
1713: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714: *) ac_try_echo=$ac_try;;
1715: esac
1716: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717: $as_echo "$ac_try_echo"; } >&5
1718: (eval "$ac_link") 2>conftest.err
1719: ac_status=$?
1720: if test -s conftest.err; then
1721: grep -v '^ *+' conftest.err >conftest.er1
1722: cat conftest.er1 >&5
1723: mv -f conftest.er1 conftest.err
1724: fi
1725: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726: test $ac_status = 0; } && {
1727: test -z "$ac_c_werror_flag" ||
1728: test ! -s conftest.err
1729: } && test -s conftest$ac_exeext && {
1730: test "$cross_compiling" = yes ||
1.166 moko 1731: test -x conftest$ac_exeext
1.150 moko 1732: }; then :
1733: ac_retval=0
1734: else
1735: $as_echo "$as_me: failed program was:" >&5
1736: sed 's/^/| /' conftest.$ac_ext >&5
1737:
1738: ac_retval=1
1739: fi
1740: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742: # interfere with the next link command; also delete a directory that is
1743: # left behind by Apple's compiler. We do this before executing the actions.
1744: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746: as_fn_set_status $ac_retval
1747:
1748: } # ac_fn_c_try_link
1749:
1750: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751: # -------------------------------------------------------
1752: # Tests whether HEADER exists and can be compiled using the include files in
1753: # INCLUDES, setting the cache variable VAR accordingly.
1754: ac_fn_c_check_header_compile ()
1755: {
1756: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758: $as_echo_n "checking for $2... " >&6; }
1759: if eval \${$3+:} false; then :
1760: $as_echo_n "(cached) " >&6
1761: else
1762: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763: /* end confdefs.h. */
1764: $4
1765: #include <$2>
1766: _ACEOF
1767: if ac_fn_c_try_compile "$LINENO"; then :
1768: eval "$3=yes"
1769: else
1770: eval "$3=no"
1771: fi
1772: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773: fi
1774: eval ac_res=\$$3
1775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776: $as_echo "$ac_res" >&6; }
1777: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778:
1779: } # ac_fn_c_check_header_compile
1780:
1781: # ac_fn_c_try_cpp LINENO
1782: # ----------------------
1783: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1784: ac_fn_c_try_cpp ()
1785: {
1786: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787: if { { ac_try="$ac_cpp conftest.$ac_ext"
1788: case "(($ac_try" in
1789: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790: *) ac_try_echo=$ac_try;;
1791: esac
1792: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793: $as_echo "$ac_try_echo"; } >&5
1794: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1795: ac_status=$?
1796: if test -s conftest.err; then
1797: grep -v '^ *+' conftest.err >conftest.er1
1798: cat conftest.er1 >&5
1799: mv -f conftest.er1 conftest.err
1800: fi
1801: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802: test $ac_status = 0; } > conftest.i && {
1803: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1804: test ! -s conftest.err
1805: }; then :
1806: ac_retval=0
1807: else
1808: $as_echo "$as_me: failed program was:" >&5
1809: sed 's/^/| /' conftest.$ac_ext >&5
1810:
1811: ac_retval=1
1812: fi
1813: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814: as_fn_set_status $ac_retval
1815:
1816: } # ac_fn_c_try_cpp
1817:
1818: # ac_fn_c_try_run LINENO
1819: # ----------------------
1820: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1821: # that executables *can* be run.
1822: ac_fn_c_try_run ()
1823: {
1824: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825: if { { ac_try="$ac_link"
1826: case "(($ac_try" in
1827: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828: *) ac_try_echo=$ac_try;;
1829: esac
1830: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831: $as_echo "$ac_try_echo"; } >&5
1832: (eval "$ac_link") 2>&5
1833: ac_status=$?
1834: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1836: { { case "(($ac_try" in
1837: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838: *) ac_try_echo=$ac_try;;
1839: esac
1840: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841: $as_echo "$ac_try_echo"; } >&5
1842: (eval "$ac_try") 2>&5
1843: ac_status=$?
1844: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845: test $ac_status = 0; }; }; then :
1846: ac_retval=0
1847: else
1848: $as_echo "$as_me: program exited with status $ac_status" >&5
1849: $as_echo "$as_me: failed program was:" >&5
1850: sed 's/^/| /' conftest.$ac_ext >&5
1851:
1852: ac_retval=$ac_status
1853: fi
1854: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856: as_fn_set_status $ac_retval
1857:
1858: } # ac_fn_c_try_run
1859:
1860: # ac_fn_c_check_func LINENO FUNC VAR
1861: # ----------------------------------
1862: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1863: ac_fn_c_check_func ()
1864: {
1865: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867: $as_echo_n "checking for $2... " >&6; }
1868: if eval \${$3+:} false; then :
1869: $as_echo_n "(cached) " >&6
1870: else
1871: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872: /* end confdefs.h. */
1873: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1874: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1875: #define $2 innocuous_$2
1876:
1877: /* System header to define __stub macros and hopefully few prototypes,
1878: which can conflict with char $2 (); below.
1879: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1880: <limits.h> exists even on freestanding compilers. */
1881:
1882: #ifdef __STDC__
1883: # include <limits.h>
1884: #else
1885: # include <assert.h>
1886: #endif
1887:
1888: #undef $2
1889:
1890: /* Override any GCC internal prototype to avoid an error.
1891: Use char because int might match the return type of a GCC
1892: builtin and then its argument prototype would still apply. */
1893: #ifdef __cplusplus
1894: extern "C"
1895: #endif
1896: char $2 ();
1897: /* The GNU C library defines this for functions which it implements
1898: to always fail with ENOSYS. Some functions are actually named
1899: something starting with __ and the normal name is an alias. */
1900: #if defined __stub_$2 || defined __stub___$2
1901: choke me
1902: #endif
1903:
1904: int
1905: main ()
1906: {
1907: return $2 ();
1908: ;
1909: return 0;
1910: }
1911: _ACEOF
1912: if ac_fn_c_try_link "$LINENO"; then :
1913: eval "$3=yes"
1914: else
1915: eval "$3=no"
1916: fi
1917: rm -f core conftest.err conftest.$ac_objext \
1918: conftest$ac_exeext conftest.$ac_ext
1919: fi
1920: eval ac_res=\$$3
1921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922: $as_echo "$ac_res" >&6; }
1923: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924:
1925: } # ac_fn_c_check_func
1926:
1927: # ac_fn_cxx_try_cpp LINENO
1928: # ------------------------
1929: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1930: ac_fn_cxx_try_cpp ()
1931: {
1932: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933: if { { ac_try="$ac_cpp conftest.$ac_ext"
1934: case "(($ac_try" in
1935: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936: *) ac_try_echo=$ac_try;;
1937: esac
1938: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939: $as_echo "$ac_try_echo"; } >&5
1940: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1941: ac_status=$?
1942: if test -s conftest.err; then
1943: grep -v '^ *+' conftest.err >conftest.er1
1944: cat conftest.er1 >&5
1945: mv -f conftest.er1 conftest.err
1946: fi
1947: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948: test $ac_status = 0; } > conftest.i && {
1949: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1950: test ! -s conftest.err
1951: }; then :
1952: ac_retval=0
1953: else
1954: $as_echo "$as_me: failed program was:" >&5
1955: sed 's/^/| /' conftest.$ac_ext >&5
1956:
1957: ac_retval=1
1958: fi
1959: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960: as_fn_set_status $ac_retval
1961:
1962: } # ac_fn_cxx_try_cpp
1963:
1964: # ac_fn_cxx_try_link LINENO
1965: # -------------------------
1966: # Try to link conftest.$ac_ext, and return whether this succeeded.
1967: ac_fn_cxx_try_link ()
1968: {
1969: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970: rm -f conftest.$ac_objext conftest$ac_exeext
1971: if { { ac_try="$ac_link"
1972: case "(($ac_try" in
1973: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974: *) ac_try_echo=$ac_try;;
1975: esac
1976: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977: $as_echo "$ac_try_echo"; } >&5
1978: (eval "$ac_link") 2>conftest.err
1979: ac_status=$?
1980: if test -s conftest.err; then
1981: grep -v '^ *+' conftest.err >conftest.er1
1982: cat conftest.er1 >&5
1983: mv -f conftest.er1 conftest.err
1984: fi
1985: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986: test $ac_status = 0; } && {
1987: test -z "$ac_cxx_werror_flag" ||
1988: test ! -s conftest.err
1989: } && test -s conftest$ac_exeext && {
1990: test "$cross_compiling" = yes ||
1.166 moko 1991: test -x conftest$ac_exeext
1.150 moko 1992: }; then :
1993: ac_retval=0
1994: else
1995: $as_echo "$as_me: failed program was:" >&5
1996: sed 's/^/| /' conftest.$ac_ext >&5
1997:
1998: ac_retval=1
1999: fi
2000: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2001: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2002: # interfere with the next link command; also delete a directory that is
2003: # left behind by Apple's compiler. We do this before executing the actions.
2004: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006: as_fn_set_status $ac_retval
2007:
2008: } # ac_fn_cxx_try_link
2009:
2010: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2011: # ---------------------------------------------
2012: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2013: # accordingly.
2014: ac_fn_c_check_decl ()
2015: {
2016: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017: as_decl_name=`echo $2|sed 's/ *(.*//'`
2018: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2020: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2021: if eval \${$3+:} false; then :
2022: $as_echo_n "(cached) " >&6
2023: else
2024: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025: /* end confdefs.h. */
2026: $4
2027: int
2028: main ()
2029: {
2030: #ifndef $as_decl_name
2031: #ifdef __cplusplus
2032: (void) $as_decl_use;
2033: #else
2034: (void) $as_decl_name;
2035: #endif
2036: #endif
2037:
2038: ;
2039: return 0;
2040: }
2041: _ACEOF
2042: if ac_fn_c_try_compile "$LINENO"; then :
2043: eval "$3=yes"
2044: else
2045: eval "$3=no"
2046: fi
2047: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048: fi
2049: eval ac_res=\$$3
2050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051: $as_echo "$ac_res" >&6; }
2052: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053:
2054: } # ac_fn_c_check_decl
2055:
2056: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2057: # -------------------------------------------
2058: # Tests whether TYPE exists after having included INCLUDES, setting cache
2059: # variable VAR accordingly.
2060: ac_fn_c_check_type ()
2061: {
2062: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064: $as_echo_n "checking for $2... " >&6; }
2065: if eval \${$3+:} false; then :
2066: $as_echo_n "(cached) " >&6
2067: else
2068: eval "$3=no"
2069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070: /* end confdefs.h. */
2071: $4
2072: int
2073: main ()
2074: {
2075: if (sizeof ($2))
2076: return 0;
2077: ;
2078: return 0;
2079: }
2080: _ACEOF
2081: if ac_fn_c_try_compile "$LINENO"; then :
2082: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083: /* end confdefs.h. */
2084: $4
2085: int
2086: main ()
2087: {
2088: if (sizeof (($2)))
2089: return 0;
2090: ;
2091: return 0;
2092: }
2093: _ACEOF
2094: if ac_fn_c_try_compile "$LINENO"; then :
2095:
2096: else
2097: eval "$3=yes"
2098: fi
2099: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100: fi
2101: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102: fi
2103: eval ac_res=\$$3
2104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105: $as_echo "$ac_res" >&6; }
2106: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107:
2108: } # ac_fn_c_check_type
2109:
1.156 moko 2110: # ac_fn_c_find_uintX_t LINENO BITS VAR
2111: # ------------------------------------
2112: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2113: # accordingly.
2114: ac_fn_c_find_uintX_t ()
2115: {
2116: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2118: $as_echo_n "checking for uint$2_t... " >&6; }
2119: if eval \${$3+:} false; then :
2120: $as_echo_n "(cached) " >&6
2121: else
2122: eval "$3=no"
2123: # Order is important - never check a type that is potentially smaller
2124: # than half of the expected target width.
2125: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2126: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2127: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128: /* end confdefs.h. */
2129: $ac_includes_default
2130: int
2131: main ()
2132: {
2133: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2134: test_array [0] = 0;
2135: return test_array [0];
1.156 moko 2136:
2137: ;
2138: return 0;
2139: }
2140: _ACEOF
2141: if ac_fn_c_try_compile "$LINENO"; then :
2142: case $ac_type in #(
2143: uint$2_t) :
2144: eval "$3=yes" ;; #(
2145: *) :
2146: eval "$3=\$ac_type" ;;
2147: esac
2148: fi
2149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150: if eval test \"x\$"$3"\" = x"no"; then :
2151:
2152: else
2153: break
2154: fi
2155: done
2156: fi
2157: eval ac_res=\$$3
2158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159: $as_echo "$ac_res" >&6; }
2160: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161:
2162: } # ac_fn_c_find_uintX_t
2163:
1.161 moko 2164: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2165: # ----------------------------------------------------
2166: # Tries to find if the field MEMBER exists in type AGGR, after including
2167: # INCLUDES, setting cache variable VAR accordingly.
2168: ac_fn_c_check_member ()
2169: {
2170: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2172: $as_echo_n "checking for $2.$3... " >&6; }
2173: if eval \${$4+:} false; then :
2174: $as_echo_n "(cached) " >&6
2175: else
2176: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177: /* end confdefs.h. */
2178: $5
2179: int
2180: main ()
2181: {
2182: static $2 ac_aggr;
2183: if (ac_aggr.$3)
2184: return 0;
2185: ;
2186: return 0;
2187: }
2188: _ACEOF
2189: if ac_fn_c_try_compile "$LINENO"; then :
2190: eval "$4=yes"
2191: else
2192: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193: /* end confdefs.h. */
2194: $5
2195: int
2196: main ()
2197: {
2198: static $2 ac_aggr;
2199: if (sizeof ac_aggr.$3)
2200: return 0;
2201: ;
2202: return 0;
2203: }
2204: _ACEOF
2205: if ac_fn_c_try_compile "$LINENO"; then :
2206: eval "$4=yes"
2207: else
2208: eval "$4=no"
2209: fi
2210: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211: fi
2212: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213: fi
2214: eval ac_res=\$$4
2215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216: $as_echo "$ac_res" >&6; }
2217: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218:
2219: } # ac_fn_c_check_member
2220:
1.150 moko 2221: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2222: # -------------------------------------------------------
2223: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2224: # the include files in INCLUDES and setting the cache variable VAR
2225: # accordingly.
2226: ac_fn_c_check_header_mongrel ()
2227: {
2228: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229: if eval \${$3+:} false; then :
2230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231: $as_echo_n "checking for $2... " >&6; }
2232: if eval \${$3+:} false; then :
2233: $as_echo_n "(cached) " >&6
2234: fi
2235: eval ac_res=\$$3
2236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237: $as_echo "$ac_res" >&6; }
2238: else
2239: # Is the header compilable?
2240: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2241: $as_echo_n "checking $2 usability... " >&6; }
2242: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243: /* end confdefs.h. */
2244: $4
2245: #include <$2>
2246: _ACEOF
2247: if ac_fn_c_try_compile "$LINENO"; then :
2248: ac_header_compiler=yes
2249: else
2250: ac_header_compiler=no
2251: fi
2252: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2254: $as_echo "$ac_header_compiler" >&6; }
2255:
2256: # Is the header present?
2257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2258: $as_echo_n "checking $2 presence... " >&6; }
2259: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260: /* end confdefs.h. */
2261: #include <$2>
2262: _ACEOF
2263: if ac_fn_c_try_cpp "$LINENO"; then :
2264: ac_header_preproc=yes
2265: else
2266: ac_header_preproc=no
2267: fi
2268: rm -f conftest.err conftest.i conftest.$ac_ext
2269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2270: $as_echo "$ac_header_preproc" >&6; }
2271:
2272: # So? What about this header?
2273: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2274: yes:no: )
2275: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2276: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2277: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2278: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2279: ;;
2280: no:yes:* )
2281: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2282: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2283: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2284: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2285: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2286: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2287: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2288: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2289: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2290: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2291: ;;
2292: esac
2293: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294: $as_echo_n "checking for $2... " >&6; }
2295: if eval \${$3+:} false; then :
2296: $as_echo_n "(cached) " >&6
2297: else
2298: eval "$3=\$ac_header_compiler"
2299: fi
2300: eval ac_res=\$$3
2301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302: $as_echo "$ac_res" >&6; }
2303: fi
2304: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305:
2306: } # ac_fn_c_check_header_mongrel
2307: cat >config.log <<_ACEOF
2308: This file contains any messages produced by compilers while
2309: running configure, to aid debugging if configure makes a mistake.
2310:
1.186 moko 2311: It was created by parser $as_me 3.4.6b, which was
1.166 moko 2312: generated by GNU Autoconf 2.69. Invocation command line was
1.150 moko 2313:
2314: $ $0 $@
2315:
2316: _ACEOF
2317: exec 5>>config.log
2318: {
2319: cat <<_ASUNAME
2320: ## --------- ##
2321: ## Platform. ##
2322: ## --------- ##
2323:
2324: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2329:
2330: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2332:
2333: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2334: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2335: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2336: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2337: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2338: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2339: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2340:
2341: _ASUNAME
2342:
2343: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344: for as_dir in $PATH
2345: do
2346: IFS=$as_save_IFS
2347: test -z "$as_dir" && as_dir=.
1.150 moko 2348: $as_echo "PATH: $as_dir"
2349: done
2350: IFS=$as_save_IFS
1.1 paf 2351:
1.62 paf 2352: } >&5
2353:
2354: cat >&5 <<_ACEOF
2355:
2356:
2357: ## ----------- ##
2358: ## Core tests. ##
2359: ## ----------- ##
2360:
2361: _ACEOF
2362:
2363:
2364: # Keep a trace of the command line.
2365: # Strip out --no-create and --no-recursion so they do not pile up.
2366: # Strip out --silent because we don't want to record it for future runs.
2367: # Also quote any args containing shell meta-characters.
2368: # Make two passes to allow for proper duplicate-argument suppression.
2369: ac_configure_args=
2370: ac_configure_args0=
2371: ac_configure_args1=
2372: ac_must_keep_next=false
2373: for ac_pass in 1 2
2374: do
2375: for ac_arg
2376: do
2377: case $ac_arg in
2378: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380: | -silent | --silent | --silen | --sile | --sil)
2381: continue ;;
1.150 moko 2382: *\'*)
2383: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2384: esac
2385: case $ac_pass in
1.150 moko 2386: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2387: 2)
1.150 moko 2388: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2389: if test $ac_must_keep_next = true; then
1.86 paf 2390: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2391: else
1.86 paf 2392: case $ac_arg in
2393: *=* | --config-cache | -C | -disable-* | --disable-* \
2394: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396: | -with-* | --with-* | -without-* | --without-* | --x)
2397: case "$ac_configure_args0 " in
2398: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399: esac
2400: ;;
2401: -* ) ac_must_keep_next=true ;;
2402: esac
1.62 paf 2403: fi
1.150 moko 2404: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2405: ;;
2406: esac
2407: done
2408: done
1.150 moko 2409: { ac_configure_args0=; unset ac_configure_args0;}
2410: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2411:
2412: # When interrupted or exit'd, cleanup temporary files, and complete
2413: # config.log. We remove comments because anyway the quotes in there
2414: # would cause problems or look ugly.
1.150 moko 2415: # WARNING: Use '\'' to represent an apostrophe within the trap.
2416: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2417: trap 'exit_status=$?
2418: # Save into config.log some information that might help in debugging.
2419: {
2420: echo
2421:
1.150 moko 2422: $as_echo "## ---------------- ##
1.62 paf 2423: ## Cache variables. ##
1.150 moko 2424: ## ---------------- ##"
1.62 paf 2425: echo
2426: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2427: (
2428: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429: eval ac_val=\$$ac_var
2430: case $ac_val in #(
2431: *${as_nl}*)
2432: case $ac_var in #(
2433: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2435: esac
2436: case $ac_var in #(
2437: _ | IFS | as_nl) ;; #(
2438: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439: *) { eval $ac_var=; unset $ac_var;} ;;
2440: esac ;;
2441: esac
2442: done
1.62 paf 2443: (set) 2>&1 |
1.150 moko 2444: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445: *${as_nl}ac_space=\ *)
1.62 paf 2446: sed -n \
1.150 moko 2447: "s/'\''/'\''\\\\'\'''\''/g;
2448: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2449: ;; #(
1.62 paf 2450: *)
1.150 moko 2451: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2452: ;;
1.150 moko 2453: esac |
2454: sort
2455: )
1.62 paf 2456: echo
2457:
1.150 moko 2458: $as_echo "## ----------------- ##
1.62 paf 2459: ## Output variables. ##
1.150 moko 2460: ## ----------------- ##"
1.62 paf 2461: echo
2462: for ac_var in $ac_subst_vars
2463: do
1.150 moko 2464: eval ac_val=\$$ac_var
2465: case $ac_val in
2466: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467: esac
2468: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2469: done | sort
2470: echo
2471:
2472: if test -n "$ac_subst_files"; then
1.150 moko 2473: $as_echo "## ------------------- ##
2474: ## File substitutions. ##
2475: ## ------------------- ##"
1.62 paf 2476: echo
2477: for ac_var in $ac_subst_files
2478: do
1.150 moko 2479: eval ac_val=\$$ac_var
2480: case $ac_val in
2481: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482: esac
2483: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2484: done | sort
2485: echo
2486: fi
2487:
2488: if test -s confdefs.h; then
1.150 moko 2489: $as_echo "## ----------- ##
1.62 paf 2490: ## confdefs.h. ##
1.150 moko 2491: ## ----------- ##"
1.62 paf 2492: echo
1.150 moko 2493: cat confdefs.h
1.62 paf 2494: echo
2495: fi
2496: test "$ac_signal" != 0 &&
1.150 moko 2497: $as_echo "$as_me: caught signal $ac_signal"
2498: $as_echo "$as_me: exit $exit_status"
1.62 paf 2499: } >&5
1.150 moko 2500: rm -f core *.core core.conftest.* &&
2501: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2502: exit $exit_status
1.150 moko 2503: ' 0
1.62 paf 2504: for ac_signal in 1 2 13 15; do
1.150 moko 2505: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2506: done
2507: ac_signal=0
2508:
2509: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2510: rm -f -r conftest* confdefs.h
2511:
2512: $as_echo "/* confdefs.h */" > confdefs.h
1.62 paf 2513:
2514: # Predefined preprocessor variables.
2515:
2516: cat >>confdefs.h <<_ACEOF
2517: #define PACKAGE_NAME "$PACKAGE_NAME"
2518: _ACEOF
2519:
2520: cat >>confdefs.h <<_ACEOF
2521: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2522: _ACEOF
2523:
2524: cat >>confdefs.h <<_ACEOF
2525: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2526: _ACEOF
2527:
2528: cat >>confdefs.h <<_ACEOF
2529: #define PACKAGE_STRING "$PACKAGE_STRING"
2530: _ACEOF
2531:
1.150 moko 2532: cat >>confdefs.h <<_ACEOF
2533: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2534: _ACEOF
1.62 paf 2535:
2536: cat >>confdefs.h <<_ACEOF
1.150 moko 2537: #define PACKAGE_URL "$PACKAGE_URL"
1.62 paf 2538: _ACEOF
2539:
2540:
2541: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2542: # Prefer an explicitly selected file to automatically selected ones.
2543: ac_site_file1=NONE
2544: ac_site_file2=NONE
2545: if test -n "$CONFIG_SITE"; then
2546: # We do not want a PATH search for config.site.
2547: case $CONFIG_SITE in #((
2548: -*) ac_site_file1=./$CONFIG_SITE;;
2549: */*) ac_site_file1=$CONFIG_SITE;;
2550: *) ac_site_file1=./$CONFIG_SITE;;
2551: esac
2552: elif test "x$prefix" != xNONE; then
2553: ac_site_file1=$prefix/share/config.site
2554: ac_site_file2=$prefix/etc/config.site
2555: else
2556: ac_site_file1=$ac_default_prefix/share/config.site
2557: ac_site_file2=$ac_default_prefix/etc/config.site
2558: fi
2559: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2560: do
2561: test "x$ac_site_file" = xNONE && continue
2562: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2563: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2565: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2566: . "$ac_site_file" \
2567: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569: as_fn_error $? "failed to load site script $ac_site_file
2570: See \`config.log' for more details" "$LINENO" 5; }
1.1 paf 2571: fi
2572: done
2573:
2574: if test -r "$cache_file"; then
1.150 moko 2575: # Some versions of bash will fail to source /dev/null (special files
2576: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2577: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2578: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2580: case $cache_file in
1.150 moko 2581: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582: *) . "./$cache_file";;
1.62 paf 2583: esac
2584: fi
1.1 paf 2585: else
1.150 moko 2586: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2588: >$cache_file
2589: fi
2590:
2591: # Check that the precious variables saved in the cache have kept the same
2592: # value.
2593: ac_cache_corrupted=false
1.150 moko 2594: for ac_var in $ac_precious_vars; do
1.62 paf 2595: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 2597: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 2599: case $ac_old_set,$ac_new_set in
2600: set,)
1.150 moko 2601: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.62 paf 2603: ac_cache_corrupted=: ;;
2604: ,set)
1.150 moko 2605: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.62 paf 2607: ac_cache_corrupted=: ;;
2608: ,);;
2609: *)
2610: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 2611: # differences in whitespace do not lead to failure.
2612: ac_old_val_w=`echo x $ac_old_val`
2613: ac_new_val_w=`echo x $ac_new_val`
2614: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617: ac_cache_corrupted=:
2618: else
2619: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621: eval $ac_var=\$ac_old_val
2622: fi
2623: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2625: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.62 paf 2627: fi;;
2628: esac
2629: # Pass precious variables to config.status.
2630: if test "$ac_new_set" = set; then
2631: case $ac_new_val in
1.150 moko 2632: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2633: *) ac_arg=$ac_var=$ac_new_val ;;
2634: esac
2635: case " $ac_configure_args " in
2636: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 2637: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 2638: esac
2639: fi
2640: done
2641: if $ac_cache_corrupted; then
1.150 moko 2642: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647: fi
2648: ## -------------------- ##
2649: ## Main body of script. ##
2650: ## -------------------- ##
1.1 paf 2651:
2652: ac_ext=c
2653: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 2654: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657:
2658:
2659:
2660:
2661:
1.199 moko 2662: am__api_version='1.16'
1.62 paf 2663:
1.1 paf 2664: ac_aux_dir=
1.150 moko 2665: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2666: if test -f "$ac_dir/install-sh"; then
1.1 paf 2667: ac_aux_dir=$ac_dir
2668: ac_install_sh="$ac_aux_dir/install-sh -c"
2669: break
1.150 moko 2670: elif test -f "$ac_dir/install.sh"; then
1.1 paf 2671: ac_aux_dir=$ac_dir
2672: ac_install_sh="$ac_aux_dir/install.sh -c"
2673: break
1.150 moko 2674: elif test -f "$ac_dir/shtool"; then
1.62 paf 2675: ac_aux_dir=$ac_dir
2676: ac_install_sh="$ac_aux_dir/shtool install -c"
2677: break
1.1 paf 2678: fi
2679: done
2680: if test -z "$ac_aux_dir"; then
1.150 moko 2681: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2682: fi
2683:
2684: # These three variables are undocumented and unsupported,
2685: # and are intended to be withdrawn in a future Autoconf release.
2686: # They can cause serious problems if a builder's source tree is in a directory
2687: # whose full name contains unusual characters.
2688: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2689: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2690: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2691:
1.1 paf 2692:
2693: # Find a good install program. We prefer a C program (faster),
2694: # so one script is as good as another. But avoid the broken or
2695: # incompatible versions:
2696: # SysV /etc/install, /usr/sbin/install
2697: # SunOS /usr/etc/install
2698: # IRIX /sbin/install
2699: # AIX /bin/install
1.62 paf 2700: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2701: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2702: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2703: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 2704: # OS/2's system install, which has a completely different semantic
1.1 paf 2705: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 2706: # Reject install programs that cannot install multiple files.
2707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2708: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 paf 2709: if test -z "$INSTALL"; then
1.150 moko 2710: if ${ac_cv_path_install+:} false; then :
2711: $as_echo_n "(cached) " >&6
1.1 paf 2712: else
1.62 paf 2713: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714: for as_dir in $PATH
2715: do
2716: IFS=$as_save_IFS
2717: test -z "$as_dir" && as_dir=.
1.150 moko 2718: # Account for people who put trailing slashes in PATH elements.
2719: case $as_dir/ in #((
2720: ./ | .// | /[cC]/* | \
1.62 paf 2721: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 2722: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 2723: /usr/ucb/* ) ;;
2724: *)
2725: # OSF1 and SCO ODT 3.0 have their own names for install.
2726: # Don't use installbsd from OSF since it installs stuff as root
2727: # by default.
2728: for ac_prog in ginstall scoinst install; do
2729: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2730: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.86 paf 2731: if test $ac_prog = install &&
2732: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733: # AIX install. It has an incompatible calling convention.
2734: :
2735: elif test $ac_prog = install &&
2736: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737: # program-specific install script used by HP pwplus--don't use.
2738: :
2739: else
1.150 moko 2740: rm -rf conftest.one conftest.two conftest.dir
2741: echo one > conftest.one
2742: echo two > conftest.two
2743: mkdir conftest.dir
2744: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2745: test -s conftest.one && test -s conftest.two &&
2746: test -s conftest.dir/conftest.one &&
2747: test -s conftest.dir/conftest.two
2748: then
2749: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2750: break 3
2751: fi
1.86 paf 2752: fi
2753: fi
1.1 paf 2754: done
1.62 paf 2755: done
2756: ;;
2757: esac
2758:
1.150 moko 2759: done
2760: IFS=$as_save_IFS
2761:
2762: rm -rf conftest.one conftest.two conftest.dir
1.1 paf 2763:
2764: fi
2765: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 2766: INSTALL=$ac_cv_path_install
1.1 paf 2767: else
1.150 moko 2768: # As a last resort, use the slow shell script. Don't cache a
2769: # value for INSTALL within a source directory, because that will
1.1 paf 2770: # break other packages using the cache if that directory is
1.150 moko 2771: # removed, or if the value is a relative name.
1.62 paf 2772: INSTALL=$ac_install_sh
1.1 paf 2773: fi
2774: fi
1.150 moko 2775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2776: $as_echo "$INSTALL" >&6; }
1.1 paf 2777:
2778: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2779: # It thinks the first close brace ends the variable substitution.
2780: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2781:
1.62 paf 2782: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2783:
2784: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2785:
1.150 moko 2786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2787: $as_echo_n "checking whether build environment is sane... " >&6; }
2788: # Reject unsafe characters in $srcdir or the absolute working directory
2789: # name. Accept space and tab only in the latter.
2790: am_lf='
2791: '
2792: case `pwd` in
2793: *[\\\"\#\$\&\'\`$am_lf]*)
2794: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2795: esac
2796: case $srcdir in
2797: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.187 moko 2798: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.150 moko 2799: esac
2800:
1.187 moko 2801: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 2802: # arguments. Must try -L first in case configure is actually a
2803: # symlink; some systems play weird games with the mod time of symlinks
2804: # (eg FreeBSD returns the mod time of the symlink's containing
2805: # directory).
2806: if (
1.187 moko 2807: am_has_slept=no
2808: for am_try in 1 2; do
2809: echo "timestamp, slept: $am_has_slept" > conftest.file
2810: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2811: if test "$*" = "X"; then
2812: # -L didn't work.
2813: set X `ls -t "$srcdir/configure" conftest.file`
2814: fi
2815: if test "$*" != "X $srcdir/configure conftest.file" \
2816: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 2817:
1.187 moko 2818: # If neither matched, then we have a broken ls. This can happen
2819: # if, for instance, CONFIG_SHELL is bash and it inherits a
2820: # broken ls alias from the environment. This has actually
2821: # happened. Such a system could not be considered "sane".
2822: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2823: alias in your environment" "$LINENO" 5
2824: fi
2825: if test "$2" = conftest.file || test $am_try -eq 2; then
2826: break
2827: fi
2828: # Just in case.
2829: sleep 1
2830: am_has_slept=yes
2831: done
1.62 paf 2832: test "$2" = conftest.file
1.1 paf 2833: )
2834: then
2835: # Ok.
2836: :
2837: else
1.150 moko 2838: as_fn_error $? "newly created file is older than distributed files!
2839: Check your system clock" "$LINENO" 5
1.1 paf 2840: fi
1.150 moko 2841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2842: $as_echo "yes" >&6; }
1.187 moko 2843: # If we didn't sleep, we still need to ensure time stamps of config.status and
2844: # generated files are strictly newer.
2845: am_sleep_pid=
2846: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2847: ( sleep 1 ) &
2848: am_sleep_pid=$!
2849: fi
2850:
2851: rm -f conftest.file
2852:
1.1 paf 2853: test "$program_prefix" != NONE &&
1.150 moko 2854: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 2855: # Use a double $ so make ignores it.
2856: test "$program_suffix" != NONE &&
1.150 moko 2857: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2858: # Double any \ or $.
1.62 paf 2859: # By default was `s,x,x', remove it if useless.
1.150 moko 2860: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2861: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.62 paf 2862:
1.187 moko 2863: # Expand $ac_aux_dir to an absolute path.
2864: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.62 paf 2865:
1.150 moko 2866: if test x"${MISSING+set}" != xset; then
2867: case $am_aux_dir in
2868: *\ * | *\ *)
2869: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2870: *)
2871: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2872: esac
2873: fi
1.62 paf 2874: # Use eval to expand $SHELL
1.187 moko 2875: if eval "$MISSING --is-lightweight"; then
2876: am_missing_run="$MISSING "
1.62 paf 2877: else
2878: am_missing_run=
1.187 moko 2879: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2880: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.62 paf 2881: fi
2882:
1.187 moko 2883: if test x"${install_sh+set}" != xset; then
1.150 moko 2884: case $am_aux_dir in
2885: *\ * | *\ *)
2886: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2887: *)
2888: install_sh="\${SHELL} $am_aux_dir/install-sh"
2889: esac
1.86 paf 2890: fi
2891:
1.187 moko 2892: # Installed binaries are usually stripped using 'strip' when the user
2893: # run "make install-strip". However 'strip' might not be the right
1.150 moko 2894: # tool to use in cross-compilation environments, therefore Automake
1.187 moko 2895: # will honor the 'STRIP' environment variable to overrule this program.
1.150 moko 2896: if test "$cross_compiling" != no; then
2897: if test -n "$ac_tool_prefix"; then
2898: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2899: set dummy ${ac_tool_prefix}strip; ac_word=$2
2900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901: $as_echo_n "checking for $ac_word... " >&6; }
2902: if ${ac_cv_prog_STRIP+:} false; then :
2903: $as_echo_n "(cached) " >&6
2904: else
2905: if test -n "$STRIP"; then
2906: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2907: else
2908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909: for as_dir in $PATH
2910: do
2911: IFS=$as_save_IFS
2912: test -z "$as_dir" && as_dir=.
2913: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2914: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2915: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2916: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917: break 2
2918: fi
2919: done
2920: done
2921: IFS=$as_save_IFS
2922:
2923: fi
2924: fi
2925: STRIP=$ac_cv_prog_STRIP
2926: if test -n "$STRIP"; then
2927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2928: $as_echo "$STRIP" >&6; }
2929: else
2930: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931: $as_echo "no" >&6; }
2932: fi
2933:
2934:
2935: fi
2936: if test -z "$ac_cv_prog_STRIP"; then
2937: ac_ct_STRIP=$STRIP
2938: # Extract the first word of "strip", so it can be a program name with args.
2939: set dummy strip; ac_word=$2
2940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941: $as_echo_n "checking for $ac_word... " >&6; }
2942: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2943: $as_echo_n "(cached) " >&6
2944: else
2945: if test -n "$ac_ct_STRIP"; then
2946: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2947: else
2948: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949: for as_dir in $PATH
2950: do
2951: IFS=$as_save_IFS
2952: test -z "$as_dir" && as_dir=.
2953: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2954: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2955: ac_cv_prog_ac_ct_STRIP="strip"
2956: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957: break 2
2958: fi
2959: done
2960: done
2961: IFS=$as_save_IFS
2962:
2963: fi
2964: fi
2965: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2966: if test -n "$ac_ct_STRIP"; then
2967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2968: $as_echo "$ac_ct_STRIP" >&6; }
2969: else
2970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971: $as_echo "no" >&6; }
2972: fi
2973:
2974: if test "x$ac_ct_STRIP" = x; then
2975: STRIP=":"
2976: else
2977: case $cross_compiling:$ac_tool_warned in
2978: yes:)
2979: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981: ac_tool_warned=yes ;;
2982: esac
2983: STRIP=$ac_ct_STRIP
2984: fi
2985: else
2986: STRIP="$ac_cv_prog_STRIP"
2987: fi
2988:
2989: fi
2990: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2991:
2992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2993: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2994: if test -z "$MKDIR_P"; then
2995: if ${ac_cv_path_mkdir+:} false; then :
2996: $as_echo_n "(cached) " >&6
2997: else
2998: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3000: do
3001: IFS=$as_save_IFS
3002: test -z "$as_dir" && as_dir=.
3003: for ac_prog in mkdir gmkdir; do
3004: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3005: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.150 moko 3006: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3007: 'mkdir (GNU coreutils) '* | \
3008: 'mkdir (coreutils) '* | \
3009: 'mkdir (fileutils) '4.1*)
3010: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3011: break 3;;
3012: esac
3013: done
3014: done
3015: done
3016: IFS=$as_save_IFS
3017:
3018: fi
3019:
3020: test -d ./--version && rmdir ./--version
3021: if test "${ac_cv_path_mkdir+set}" = set; then
3022: MKDIR_P="$ac_cv_path_mkdir -p"
3023: else
3024: # As a last resort, use the slow shell script. Don't cache a
3025: # value for MKDIR_P within a source directory, because that will
3026: # break other packages using the cache if that directory is
3027: # removed, or if the value is a relative name.
3028: MKDIR_P="$ac_install_sh -d"
3029: fi
3030: fi
3031: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3032: $as_echo "$MKDIR_P" >&6; }
3033:
3034: for ac_prog in gawk mawk nawk awk
1.62 paf 3035: do
3036: # Extract the first word of "$ac_prog", so it can be a program name with args.
3037: set dummy $ac_prog; ac_word=$2
1.150 moko 3038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039: $as_echo_n "checking for $ac_word... " >&6; }
3040: if ${ac_cv_prog_AWK+:} false; then :
3041: $as_echo_n "(cached) " >&6
1.62 paf 3042: else
3043: if test -n "$AWK"; then
3044: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3045: else
3046: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047: for as_dir in $PATH
3048: do
3049: IFS=$as_save_IFS
3050: test -z "$as_dir" && as_dir=.
1.150 moko 3051: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3052: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3053: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3054: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3055: break 2
3056: fi
3057: done
1.150 moko 3058: done
3059: IFS=$as_save_IFS
1.62 paf 3060:
3061: fi
3062: fi
3063: AWK=$ac_cv_prog_AWK
3064: if test -n "$AWK"; then
1.150 moko 3065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3066: $as_echo "$AWK" >&6; }
1.62 paf 3067: else
1.150 moko 3068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069: $as_echo "no" >&6; }
1.62 paf 3070: fi
1.1 paf 3071:
1.150 moko 3072:
1.62 paf 3073: test -n "$AWK" && break
3074: done
1.1 paf 3075:
1.150 moko 3076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3077: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3078: set x ${MAKE-make}
3079: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3080: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3081: $as_echo_n "(cached) " >&6
1.1 paf 3082: else
1.62 paf 3083: cat >conftest.make <<\_ACEOF
1.150 moko 3084: SHELL = /bin/sh
1.1 paf 3085: all:
1.150 moko 3086: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3087: _ACEOF
1.150 moko 3088: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3089: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3090: *@@@%%%=?*=@@@%%%*)
3091: eval ac_cv_prog_make_${ac_make}_set=yes;;
3092: *)
3093: eval ac_cv_prog_make_${ac_make}_set=no;;
3094: esac
1.62 paf 3095: rm -f conftest.make
1.1 paf 3096: fi
1.150 moko 3097: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099: $as_echo "yes" >&6; }
1.1 paf 3100: SET_MAKE=
3101: else
1.150 moko 3102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103: $as_echo "no" >&6; }
1.1 paf 3104: SET_MAKE="MAKE=${MAKE-make}"
3105: fi
3106:
1.86 paf 3107: rm -rf .tst 2>/dev/null
3108: mkdir .tst 2>/dev/null
3109: if test -d .tst; then
3110: am__leading_dot=.
3111: else
3112: am__leading_dot=_
3113: fi
3114: rmdir .tst 2>/dev/null
3115:
1.187 moko 3116: # Check whether --enable-silent-rules was given.
3117: if test "${enable_silent_rules+set}" = set; then :
3118: enableval=$enable_silent_rules;
3119: fi
3120:
3121: case $enable_silent_rules in # (((
3122: yes) AM_DEFAULT_VERBOSITY=0;;
3123: no) AM_DEFAULT_VERBOSITY=1;;
3124: *) AM_DEFAULT_VERBOSITY=1;;
3125: esac
3126: am_make=${MAKE-make}
3127: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3128: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3129: if ${am_cv_make_support_nested_variables+:} false; then :
3130: $as_echo_n "(cached) " >&6
3131: else
3132: if $as_echo 'TRUE=$(BAR$(V))
3133: BAR0=false
3134: BAR1=true
3135: V=1
3136: am__doit:
3137: @$(TRUE)
3138: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3139: am_cv_make_support_nested_variables=yes
3140: else
3141: am_cv_make_support_nested_variables=no
3142: fi
3143: fi
3144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3145: $as_echo "$am_cv_make_support_nested_variables" >&6; }
3146: if test $am_cv_make_support_nested_variables = yes; then
3147: AM_V='$(V)'
3148: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3149: else
3150: AM_V=$AM_DEFAULT_VERBOSITY
3151: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3152: fi
3153: AM_BACKSLASH='\'
3154:
1.150 moko 3155: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3156: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3157: # is not polluted with repeated "-I."
3158: am__isrc=' -I$(srcdir)'
3159: # test to see if srcdir already configured
3160: if test -f $srcdir/config.status; then
3161: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3162: fi
1.62 paf 3163: fi
3164:
3165: # test whether we have cygpath
3166: if test -z "$CYGPATH_W"; then
3167: if (cygpath --version) >/dev/null 2>/dev/null; then
3168: CYGPATH_W='cygpath -w'
3169: else
3170: CYGPATH_W=echo
3171: fi
3172: fi
3173:
3174:
3175: # Define the identity of the package.
1.128 moko 3176: PACKAGE='parser'
1.186 moko 3177: VERSION='3.4.6b'
1.128 moko 3178:
3179:
3180: cat >>confdefs.h <<_ACEOF
3181: #define PACKAGE "$PACKAGE"
3182: _ACEOF
1.1 paf 3183:
3184:
1.128 moko 3185: cat >>confdefs.h <<_ACEOF
3186: #define VERSION "$VERSION"
3187: _ACEOF
3188:
1.62 paf 3189: # Some tools Automake needs.
3190:
3191: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3192:
3193:
3194: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3195:
3196:
3197: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3198:
3199:
3200: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3201:
3202:
3203: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 3204:
1.187 moko 3205: # For better backward compatibility. To be removed once Automake 1.9.x
3206: # dies out for good. For more background, see:
1.199 moko 3207: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3208: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1.187 moko 3209: mkdir_p='$(MKDIR_P)'
3210:
3211: # We need awk for the "check" target (and possibly the TAP driver). The
3212: # system "awk" is bad on some platforms.
3213: # Always define AMTAR for backward compatibility. Yes, it's still used
3214: # in the wild :-( We should find a proper way to deprecate it ...
3215: AMTAR='$${TAR-tar}'
3216:
3217:
3218: # We'll loop over all known methods to create a tar archive until one works.
3219: _am_tools='gnutar pax cpio none'
3220:
3221: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3222:
1.86 paf 3223:
3224:
3225:
3226:
1.62 paf 3227:
1.187 moko 3228: # POSIX will say in a future version that running "rm -f" with no argument
3229: # is OK; and we want to be able to make that assumption in our Makefile
3230: # recipes. So use an aggressive probe to check that the usage we want is
3231: # actually supported "in the wild" to an acceptable degree.
3232: # See automake bug#10828.
3233: # To make any issue more visible, cause the running configure to be aborted
3234: # by default if the 'rm' program in use doesn't match our expectations; the
3235: # user can still override this though.
3236: if rm -f && rm -fr && rm -rf; then : OK; else
3237: cat >&2 <<'END'
3238: Oops!
1.1 paf 3239:
1.187 moko 3240: Your 'rm' program seems unable to run without file operands specified
3241: on the command line, even when the '-f' option is present. This is contrary
3242: to the behaviour of most rm programs out there, and not conforming with
3243: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3244:
3245: Please tell bug-automake@gnu.org about your system, including the value
3246: of your $PATH and any error possibly output before this message. This
3247: can help us improve future automake versions.
3248:
3249: END
3250: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3251: echo 'Configuration will proceed anyway, since you have set the' >&2
3252: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3253: echo >&2
3254: else
3255: cat >&2 <<'END'
3256: Aborting the configuration process, to ensure you take notice of the issue.
3257:
3258: You can download and install GNU coreutils to get an 'rm' implementation
1.199 moko 3259: that behaves properly: <https://www.gnu.org/software/coreutils/>.
1.187 moko 3260:
3261: If you want to complete the configuration process using your problematic
3262: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3263: to "yes", and re-run configure.
3264:
3265: END
3266: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3267: fi
3268: fi
1.1 paf 3269:
3270:
1.128 moko 3271:
1.12 paf 3272: P3S=`cd $srcdir/src ; pwd`
1.1 paf 3273:
3274:
1.128 moko 3275:
1.41 paf 3276: # Make sure we can run config.sub.
1.150 moko 3277: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3278: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.62 paf 3279:
1.150 moko 3280: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3281: $as_echo_n "checking build system type... " >&6; }
3282: if ${ac_cv_build+:} false; then :
3283: $as_echo_n "(cached) " >&6
3284: else
3285: ac_build_alias=$build_alias
3286: test "x$ac_build_alias" = x &&
3287: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3288: test "x$ac_build_alias" = x &&
3289: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3290: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3291: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3292:
3293: fi
3294: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3295: $as_echo "$ac_cv_build" >&6; }
3296: case $ac_cv_build in
3297: *-*-*) ;;
3298: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3299: esac
3300: build=$ac_cv_build
3301: ac_save_IFS=$IFS; IFS='-'
3302: set x $ac_cv_build
3303: shift
3304: build_cpu=$1
3305: build_vendor=$2
3306: shift; shift
3307: # Remember, the first character of IFS is used to create $*,
3308: # except with old shells:
3309: build_os=$*
3310: IFS=$ac_save_IFS
3311: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3312:
3313:
3314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3315: $as_echo_n "checking host system type... " >&6; }
3316: if ${ac_cv_host+:} false; then :
3317: $as_echo_n "(cached) " >&6
3318: else
3319: if test "x$host_alias" = x; then
3320: ac_cv_host=$ac_cv_build
3321: else
3322: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3323: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.62 paf 3324: fi
3325:
3326: fi
1.150 moko 3327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3328: $as_echo "$ac_cv_host" >&6; }
3329: case $ac_cv_host in
3330: *-*-*) ;;
3331: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3332: esac
1.62 paf 3333: host=$ac_cv_host
1.150 moko 3334: ac_save_IFS=$IFS; IFS='-'
3335: set x $ac_cv_host
3336: shift
3337: host_cpu=$1
3338: host_vendor=$2
3339: shift; shift
3340: # Remember, the first character of IFS is used to create $*,
3341: # except with old shells:
3342: host_os=$*
3343: IFS=$ac_save_IFS
3344: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 3345:
3346:
3347:
1.148 moko 3348: cat >>confdefs.h <<_ACEOF
3349: #define PARSER_VERSION "$VERSION (compiled on $host)"
1.147 moko 3350: _ACEOF
3351:
3352:
1.41 paf 3353:
1.67 paf 3354: case $host_os in
3355: *cygwin* )
1.150 moko 3356: $as_echo "#define CYGWIN /**/" >>confdefs.h
1.67 paf 3357: ;;
3358: esac
1.41 paf 3359:
1.128 moko 3360:
1.1 paf 3361:
1.62 paf 3362: for ac_prog in gawk mawk nawk awk
1.41 paf 3363: do
1.62 paf 3364: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3365: set dummy $ac_prog; ac_word=$2
1.150 moko 3366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367: $as_echo_n "checking for $ac_word... " >&6; }
3368: if ${ac_cv_prog_AWK+:} false; then :
3369: $as_echo_n "(cached) " >&6
1.41 paf 3370: else
3371: if test -n "$AWK"; then
3372: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3373: else
1.62 paf 3374: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375: for as_dir in $PATH
3376: do
3377: IFS=$as_save_IFS
3378: test -z "$as_dir" && as_dir=.
1.150 moko 3379: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3380: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3381: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3382: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3383: break 2
3384: fi
3385: done
1.150 moko 3386: done
3387: IFS=$as_save_IFS
1.62 paf 3388:
1.41 paf 3389: fi
3390: fi
1.62 paf 3391: AWK=$ac_cv_prog_AWK
1.41 paf 3392: if test -n "$AWK"; then
1.150 moko 3393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3394: $as_echo "$AWK" >&6; }
1.41 paf 3395: else
1.150 moko 3396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397: $as_echo "no" >&6; }
1.41 paf 3398: fi
3399:
1.150 moko 3400:
1.62 paf 3401: test -n "$AWK" && break
1.41 paf 3402: done
3403:
3404:
3405: for ac_prog in 'bison -y' byacc
3406: do
1.62 paf 3407: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3408: set dummy $ac_prog; ac_word=$2
1.150 moko 3409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410: $as_echo_n "checking for $ac_word... " >&6; }
3411: if ${ac_cv_prog_YACC+:} false; then :
3412: $as_echo_n "(cached) " >&6
1.41 paf 3413: else
3414: if test -n "$YACC"; then
3415: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3416: else
1.62 paf 3417: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418: for as_dir in $PATH
3419: do
3420: IFS=$as_save_IFS
3421: test -z "$as_dir" && as_dir=.
1.150 moko 3422: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3423: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3424: ac_cv_prog_YACC="$ac_prog"
1.150 moko 3425: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3426: break 2
3427: fi
3428: done
1.150 moko 3429: done
3430: IFS=$as_save_IFS
1.62 paf 3431:
1.41 paf 3432: fi
3433: fi
1.62 paf 3434: YACC=$ac_cv_prog_YACC
1.41 paf 3435: if test -n "$YACC"; then
1.150 moko 3436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3437: $as_echo "$YACC" >&6; }
1.41 paf 3438: else
1.150 moko 3439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440: $as_echo "no" >&6; }
1.41 paf 3441: fi
3442:
1.150 moko 3443:
1.62 paf 3444: test -n "$YACC" && break
1.41 paf 3445: done
3446: test -n "$YACC" || YACC="yacc"
3447:
3448: if test "$YACC" != "bison -y"; then
1.150 moko 3449: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
3450: $as_echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 3451: else
1.150 moko 3452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
3453: $as_echo_n "checking bison version... " >&6; }
1.67 paf 3454: oldIFS=$IFS; IFS=.
3455: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
3456: IFS=$oldIFS
3457: if test "$1" = "1" -a "$2" -lt "25"; then
1.150 moko 3458: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
3459: $as_echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 3460: fi
1.150 moko 3461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
3462: $as_echo "$1.$2 (ok)" >&6; }
1.62 paf 3463: fi
3464:
1.150 moko 3465: ac_ext=cpp
1.66 paf 3466: ac_cpp='$CXXCPP $CPPFLAGS'
3467: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 3470: if test -z "$CXX"; then
3471: if test -n "$CCC"; then
3472: CXX=$CCC
3473: else
3474: if test -n "$ac_tool_prefix"; then
3475: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3476: do
3477: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3478: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 3479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480: $as_echo_n "checking for $ac_word... " >&6; }
3481: if ${ac_cv_prog_CXX+:} false; then :
3482: $as_echo_n "(cached) " >&6
1.62 paf 3483: else
1.66 paf 3484: if test -n "$CXX"; then
3485: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 3486: else
3487: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488: for as_dir in $PATH
3489: do
3490: IFS=$as_save_IFS
3491: test -z "$as_dir" && as_dir=.
1.150 moko 3492: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3493: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3494: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.150 moko 3495: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3496: break 2
3497: fi
3498: done
1.150 moko 3499: done
3500: IFS=$as_save_IFS
1.62 paf 3501:
3502: fi
3503: fi
1.66 paf 3504: CXX=$ac_cv_prog_CXX
3505: if test -n "$CXX"; then
1.150 moko 3506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3507: $as_echo "$CXX" >&6; }
1.62 paf 3508: else
1.150 moko 3509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510: $as_echo "no" >&6; }
1.41 paf 3511: fi
3512:
1.150 moko 3513:
1.66 paf 3514: test -n "$CXX" && break
3515: done
1.62 paf 3516: fi
1.66 paf 3517: if test -z "$CXX"; then
3518: ac_ct_CXX=$CXX
1.150 moko 3519: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3520: do
3521: # Extract the first word of "$ac_prog", so it can be a program name with args.
3522: set dummy $ac_prog; ac_word=$2
1.150 moko 3523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524: $as_echo_n "checking for $ac_word... " >&6; }
3525: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3526: $as_echo_n "(cached) " >&6
1.62 paf 3527: else
1.66 paf 3528: if test -n "$ac_ct_CXX"; then
3529: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 3530: else
3531: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532: for as_dir in $PATH
3533: do
3534: IFS=$as_save_IFS
3535: test -z "$as_dir" && as_dir=.
1.150 moko 3536: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3537: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3538: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.150 moko 3539: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3540: break 2
3541: fi
3542: done
1.150 moko 3543: done
3544: IFS=$as_save_IFS
1.62 paf 3545:
3546: fi
3547: fi
1.66 paf 3548: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3549: if test -n "$ac_ct_CXX"; then
1.150 moko 3550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3551: $as_echo "$ac_ct_CXX" >&6; }
1.62 paf 3552: else
1.150 moko 3553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554: $as_echo "no" >&6; }
1.62 paf 3555: fi
3556:
1.150 moko 3557:
1.66 paf 3558: test -n "$ac_ct_CXX" && break
3559: done
3560:
1.150 moko 3561: if test "x$ac_ct_CXX" = x; then
3562: CXX="g++"
3563: else
3564: case $cross_compiling:$ac_tool_warned in
3565: yes:)
3566: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3567: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3568: ac_tool_warned=yes ;;
3569: esac
3570: CXX=$ac_ct_CXX
3571: fi
1.62 paf 3572: fi
3573:
1.150 moko 3574: fi
3575: fi
1.66 paf 3576: # Provide some information about the compiler.
1.150 moko 3577: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3578: set X $ac_compile
3579: ac_compiler=$2
3580: for ac_option in --version -v -V -qversion; do
3581: { { ac_try="$ac_compiler $ac_option >&5"
3582: case "(($ac_try" in
3583: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584: *) ac_try_echo=$ac_try;;
3585: esac
3586: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587: $as_echo "$ac_try_echo"; } >&5
3588: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 3589: ac_status=$?
1.150 moko 3590: if test -s conftest.err; then
3591: sed '10a\
3592: ... rest of stderr output deleted ...
3593: 10q' conftest.err >conftest.er1
3594: cat conftest.er1 >&5
3595: fi
3596: rm -f conftest.er1 conftest.err
3597: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598: test $ac_status = 0; }
3599: done
1.66 paf 3600:
1.150 moko 3601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3602: /* end confdefs.h. */
3603:
3604: int
3605: main ()
3606: {
3607:
3608: ;
3609: return 0;
3610: }
3611: _ACEOF
3612: ac_clean_files_save=$ac_clean_files
1.150 moko 3613: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 3614: # Try to create an executable without -o first, disregard a.out.
3615: # It will help us diagnose broken compilers, and finding out an intuition
3616: # of exeext.
1.150 moko 3617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3618: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3619: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3620:
3621: # The possible output files:
3622: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3623:
3624: ac_rmfiles=
3625: for ac_file in $ac_files
3626: do
3627: case $ac_file in
3628: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3629: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3630: esac
3631: done
3632: rm -f $ac_rmfiles
3633:
3634: if { { ac_try="$ac_link_default"
3635: case "(($ac_try" in
3636: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637: *) ac_try_echo=$ac_try;;
3638: esac
3639: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640: $as_echo "$ac_try_echo"; } >&5
3641: (eval "$ac_link_default") 2>&5
3642: ac_status=$?
3643: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644: test $ac_status = 0; }; then :
3645: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3646: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3647: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3648: # so that the user can short-circuit this test for compilers unknown to
3649: # Autoconf.
3650: for ac_file in $ac_files ''
1.62 paf 3651: do
1.66 paf 3652: test -f "$ac_file" || continue
3653: case $ac_file in
1.150 moko 3654: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 3655: ;;
1.66 paf 3656: [ab].out )
1.86 paf 3657: # We found the default executable, but exeext='' is most
3658: # certainly right.
3659: break;;
1.66 paf 3660: *.* )
1.150 moko 3661: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3662: then :; else
3663: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664: fi
3665: # We set ac_cv_exeext here because the later test for it is not
3666: # safe: cross compilers may not add the suffix if given an `-o'
3667: # argument, so we may need to know it at that point already.
3668: # Even if this section looks crufty: it has the advantage of
3669: # actually working.
1.86 paf 3670: break;;
1.66 paf 3671: * )
1.86 paf 3672: break;;
1.66 paf 3673: esac
1.62 paf 3674: done
1.150 moko 3675: test "$ac_cv_exeext" = no && ac_cv_exeext=
3676:
1.66 paf 3677: else
1.150 moko 3678: ac_file=''
3679: fi
3680: if test -z "$ac_file"; then :
3681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682: $as_echo "no" >&6; }
3683: $as_echo "$as_me: failed program was:" >&5
1.66 paf 3684: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 3685:
1.150 moko 3686: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688: as_fn_error 77 "C++ compiler cannot create executables
3689: See \`config.log' for more details" "$LINENO" 5; }
3690: else
3691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3692: $as_echo "yes" >&6; }
1.1 paf 3693: fi
1.150 moko 3694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3695: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3696: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3697: $as_echo "$ac_file" >&6; }
1.66 paf 3698: ac_exeext=$ac_cv_exeext
1.62 paf 3699:
1.150 moko 3700: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 3701: ac_clean_files=$ac_clean_files_save
1.150 moko 3702: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3703: $as_echo_n "checking for suffix of executables... " >&6; }
3704: if { { ac_try="$ac_link"
3705: case "(($ac_try" in
3706: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707: *) ac_try_echo=$ac_try;;
3708: esac
3709: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710: $as_echo "$ac_try_echo"; } >&5
3711: (eval "$ac_link") 2>&5
1.62 paf 3712: ac_status=$?
1.150 moko 3713: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714: test $ac_status = 0; }; then :
1.62 paf 3715: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3716: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3717: # work properly (i.e., refer to `conftest.exe'), while it won't with
3718: # `rm'.
3719: for ac_file in conftest.exe conftest conftest.*; do
3720: test -f "$ac_file" || continue
3721: case $ac_file in
1.150 moko 3722: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 3723: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 3724: break;;
1.62 paf 3725: * ) break;;
3726: esac
3727: done
3728: else
1.150 moko 3729: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3730: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3731: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3732: See \`config.log' for more details" "$LINENO" 5; }
3733: fi
3734: rm -f conftest conftest$ac_cv_exeext
3735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3736: $as_echo "$ac_cv_exeext" >&6; }
1.62 paf 3737:
3738: rm -f conftest.$ac_ext
3739: EXEEXT=$ac_cv_exeext
3740: ac_exeext=$EXEEXT
1.150 moko 3741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742: /* end confdefs.h. */
3743: #include <stdio.h>
3744: int
3745: main ()
3746: {
3747: FILE *f = fopen ("conftest.out", "w");
3748: return ferror (f) || fclose (f) != 0;
3749:
3750: ;
3751: return 0;
3752: }
3753: _ACEOF
3754: ac_clean_files="$ac_clean_files conftest.out"
3755: # Check that the compiler produces executables we can run. If not, either
3756: # the compiler is broken, or we cross compile.
3757: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3758: $as_echo_n "checking whether we are cross compiling... " >&6; }
3759: if test "$cross_compiling" != yes; then
3760: { { ac_try="$ac_link"
3761: case "(($ac_try" in
3762: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763: *) ac_try_echo=$ac_try;;
3764: esac
3765: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766: $as_echo "$ac_try_echo"; } >&5
3767: (eval "$ac_link") 2>&5
3768: ac_status=$?
3769: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3770: test $ac_status = 0; }
3771: if { ac_try='./conftest$ac_cv_exeext'
3772: { { case "(($ac_try" in
3773: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774: *) ac_try_echo=$ac_try;;
3775: esac
3776: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777: $as_echo "$ac_try_echo"; } >&5
3778: (eval "$ac_try") 2>&5
3779: ac_status=$?
3780: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781: test $ac_status = 0; }; }; then
3782: cross_compiling=no
3783: else
3784: if test "$cross_compiling" = maybe; then
3785: cross_compiling=yes
3786: else
3787: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789: as_fn_error $? "cannot run C++ compiled programs.
3790: If you meant to cross compile, use \`--host'.
3791: See \`config.log' for more details" "$LINENO" 5; }
3792: fi
3793: fi
3794: fi
3795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3796: $as_echo "$cross_compiling" >&6; }
3797:
3798: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3799: ac_clean_files=$ac_clean_files_save
3800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3801: $as_echo_n "checking for suffix of object files... " >&6; }
3802: if ${ac_cv_objext+:} false; then :
3803: $as_echo_n "(cached) " >&6
1.62 paf 3804: else
1.150 moko 3805: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3806: /* end confdefs.h. */
3807:
3808: int
3809: main ()
3810: {
3811:
3812: ;
3813: return 0;
3814: }
3815: _ACEOF
3816: rm -f conftest.o conftest.obj
1.150 moko 3817: if { { ac_try="$ac_compile"
3818: case "(($ac_try" in
3819: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820: *) ac_try_echo=$ac_try;;
3821: esac
3822: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823: $as_echo "$ac_try_echo"; } >&5
3824: (eval "$ac_compile") 2>&5
3825: ac_status=$?
3826: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827: test $ac_status = 0; }; then :
3828: for ac_file in conftest.o conftest.obj conftest.*; do
3829: test -f "$ac_file" || continue;
1.62 paf 3830: case $ac_file in
1.150 moko 3831: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 3832: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3833: break;;
3834: esac
3835: done
3836: else
1.150 moko 3837: $as_echo "$as_me: failed program was:" >&5
1.62 paf 3838: sed 's/^/| /' conftest.$ac_ext >&5
3839:
1.150 moko 3840: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842: as_fn_error $? "cannot compute suffix of object files: cannot compile
3843: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 3844: fi
3845: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3846: fi
1.150 moko 3847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3848: $as_echo "$ac_cv_objext" >&6; }
1.66 paf 3849: OBJEXT=$ac_cv_objext
3850: ac_objext=$OBJEXT
1.150 moko 3851: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3852: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3853: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3854: $as_echo_n "(cached) " >&6
1.62 paf 3855: else
1.150 moko 3856: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3857: /* end confdefs.h. */
1.66 paf 3858:
1.62 paf 3859: int
3860: main ()
3861: {
1.66 paf 3862: #ifndef __GNUC__
3863: choke me
3864: #endif
3865:
1.62 paf 3866: ;
3867: return 0;
3868: }
3869: _ACEOF
1.150 moko 3870: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3871: ac_compiler_gnu=yes
1.62 paf 3872: else
1.150 moko 3873: ac_compiler_gnu=no
1.1 paf 3874: fi
1.150 moko 3875: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3876: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 3877:
3878: fi
1.150 moko 3879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3880: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3881: if test $ac_compiler_gnu = yes; then
3882: GXX=yes
3883: else
3884: GXX=
3885: fi
1.66 paf 3886: ac_test_CXXFLAGS=${CXXFLAGS+set}
3887: ac_save_CXXFLAGS=$CXXFLAGS
1.150 moko 3888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3889: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3890: if ${ac_cv_prog_cxx_g+:} false; then :
3891: $as_echo_n "(cached) " >&6
3892: else
3893: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3894: ac_cxx_werror_flag=yes
3895: ac_cv_prog_cxx_g=no
3896: CXXFLAGS="-g"
3897: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3898: /* end confdefs.h. */
1.1 paf 3899:
1.66 paf 3900: int
3901: main ()
3902: {
1.1 paf 3903:
1.66 paf 3904: ;
3905: return 0;
3906: }
1.62 paf 3907: _ACEOF
1.150 moko 3908: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3909: ac_cv_prog_cxx_g=yes
3910: else
1.150 moko 3911: CXXFLAGS=""
3912: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913: /* end confdefs.h. */
1.66 paf 3914:
1.62 paf 3915: int
3916: main ()
3917: {
1.150 moko 3918:
1.62 paf 3919: ;
3920: return 0;
3921: }
3922: _ACEOF
1.150 moko 3923: if ac_fn_cxx_try_compile "$LINENO"; then :
3924:
1.1 paf 3925: else
1.150 moko 3926: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3927: CXXFLAGS="-g"
3928: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929: /* end confdefs.h. */
1.62 paf 3930:
3931: int
3932: main ()
3933: {
1.150 moko 3934:
1.62 paf 3935: ;
3936: return 0;
3937: }
3938: _ACEOF
1.150 moko 3939: if ac_fn_cxx_try_compile "$LINENO"; then :
3940: ac_cv_prog_cxx_g=yes
3941: fi
3942: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943: fi
3944: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945: fi
3946: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3948: fi
3949: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3950: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3951: if test "$ac_test_CXXFLAGS" = set; then
3952: CXXFLAGS=$ac_save_CXXFLAGS
3953: elif test $ac_cv_prog_cxx_g = yes; then
3954: if test "$GXX" = yes; then
3955: CXXFLAGS="-g -O2"
3956: else
3957: CXXFLAGS="-g"
3958: fi
1.1 paf 3959: else
1.150 moko 3960: if test "$GXX" = yes; then
3961: CXXFLAGS="-O2"
3962: else
3963: CXXFLAGS=
3964: fi
1.1 paf 3965: fi
1.62 paf 3966: ac_ext=c
3967: ac_cpp='$CPP $CPPFLAGS'
3968: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 3971: DEPDIR="${am__leading_dot}deps"
1.62 paf 3972:
1.150 moko 3973: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 3974:
1.199 moko 3975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3976: $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3977: cat > confinc.mk << 'END'
1.86 paf 3978: am__doit:
1.199 moko 3979: @echo this is the am__doit target >confinc.out
1.86 paf 3980: .PHONY: am__doit
1.62 paf 3981: END
3982: am__include="#"
3983: am__quote=
1.199 moko 3984: # BSD make does it like this.
3985: echo '.include "confinc.mk" # ignored' > confmf.BSD
3986: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3987: echo 'include confinc.mk # ignored' > confmf.GNU
3988: _am_result=no
3989: for s in GNU BSD; do
3990: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3991: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3992: ac_status=$?
3993: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994: (exit $ac_status); }
3995: case $?:`cat confinc.out 2>/dev/null` in #(
3996: '0:this is the am__doit target') :
3997: case $s in #(
3998: BSD) :
3999: am__include='.include' am__quote='"' ;; #(
4000: *) :
4001: am__include='include' am__quote='' ;;
4002: esac ;; #(
4003: *) :
1.150 moko 4004: ;;
1.199 moko 4005: esac
4006: if test "$am__include" != "#"; then
4007: _am_result="yes ($s style)"
4008: break
4009: fi
4010: done
4011: rm -f confinc.* confmf.*
4012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4013: $as_echo "${_am_result}" >&6; }
1.62 paf 4014:
1.150 moko 4015: # Check whether --enable-dependency-tracking was given.
4016: if test "${enable_dependency_tracking+set}" = set; then :
4017: enableval=$enable_dependency_tracking;
4018: fi
1.62 paf 4019:
4020: if test "x$enable_dependency_tracking" != xno; then
4021: am_depcomp="$ac_aux_dir/depcomp"
4022: AMDEPBACKSLASH='\'
1.187 moko 4023: am__nodep='_no'
1.1 paf 4024: fi
1.150 moko 4025: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 4026: AMDEP_TRUE=
4027: AMDEP_FALSE='#'
4028: else
4029: AMDEP_TRUE='#'
4030: AMDEP_FALSE=
4031: fi
1.1 paf 4032:
4033:
4034:
1.66 paf 4035: depcc="$CXX" am_compiler_list=
1.1 paf 4036:
1.150 moko 4037: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4038: $as_echo_n "checking dependency style of $depcc... " >&6; }
4039: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4040: $as_echo_n "(cached) " >&6
1.62 paf 4041: else
4042: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4043: # We make a subdir and do the tests there. Otherwise we can end up
4044: # making bogus files that we don't know about and never remove. For
4045: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4046: # making a dummy file named 'D' -- because '-MD' means "put the output
4047: # in D".
4048: rm -rf conftest.dir
1.62 paf 4049: mkdir conftest.dir
4050: # Copy depcomp to subdir because otherwise we won't find it if we're
4051: # using a relative directory.
4052: cp "$am_depcomp" conftest.dir
4053: cd conftest.dir
1.86 paf 4054: # We will build objects and dependencies in a subdirectory because
4055: # it helps to detect inapplicable dependency modes. For instance
4056: # both Tru64's cc and ICC support -MD to output dependencies as a
4057: # side effect of compilation, but ICC will put the dependencies in
4058: # the current directory while Tru64 will put them in the object
4059: # directory.
4060: mkdir sub
1.1 paf 4061:
1.66 paf 4062: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 4063: if test "$am_compiler_list" = ""; then
4064: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 4065: fi
1.150 moko 4066: am__universal=false
4067: case " $depcc " in #(
4068: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4069: esac
4070:
1.62 paf 4071: for depmode in $am_compiler_list; do
1.86 paf 4072: # Setup a source with many dependencies, because some compilers
4073: # like to wrap large dependency lists on column 80 (with \), and
4074: # we should not choose a depcomp mode which is confused by this.
4075: #
1.62 paf 4076: # We need to recreate these files for each test, as the compiler may
4077: # overwrite some of them when testing with obscure command lines.
4078: # This happens at least with the AIX C compiler.
1.86 paf 4079: : > sub/conftest.c
4080: for i in 1 2 3 4 5 6; do
4081: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4082: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4083: # Solaris 10 /bin/sh.
4084: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4085: done
4086: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4087:
1.187 moko 4088: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4089: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4090: # handle '-M -o', and we need to detect this. Also, some Intel
4091: # versions had trouble with output in subdirs.
1.150 moko 4092: am__obj=sub/conftest.${OBJEXT-o}
4093: am__minus_obj="-o $am__obj"
1.62 paf 4094: case $depmode in
1.150 moko 4095: gcc)
4096: # This depmode causes a compiler race in universal mode.
4097: test "$am__universal" = false || continue
4098: ;;
1.62 paf 4099: nosideeffect)
1.187 moko 4100: # After this tag, mechanisms are not by side-effect, so they'll
4101: # only be used when explicitly requested.
1.62 paf 4102: if test "x$enable_dependency_tracking" = xyes; then
4103: continue
4104: else
4105: break
4106: fi
4107: ;;
1.187 moko 4108: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4109: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4110: # not run yet. These depmodes are late enough in the game, and
4111: # so weak that their functioning should not be impacted.
4112: am__obj=conftest.${OBJEXT-o}
4113: am__minus_obj=
4114: ;;
1.62 paf 4115: none) break ;;
4116: esac
4117: if depmode=$depmode \
1.150 moko 4118: source=sub/conftest.c object=$am__obj \
1.86 paf 4119: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4120: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4121: >/dev/null 2>conftest.err &&
1.150 moko 4122: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4123: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4124: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 4125: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4126: # icc doesn't choke on unknown options, it will just issue warnings
4127: # or remarks (even with -Werror). So we grep stderr for any message
4128: # that says an option was ignored or not supported.
4129: # When given -MP, icc 7.0 and 7.1 complain thusly:
4130: # icc: Command line warning: ignoring option '-M'; no argument required
4131: # The diagnosis changed in icc 8.0:
4132: # icc: Command line remark: option '-MP' not supported
4133: if (grep 'ignoring option' conftest.err ||
4134: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4135: am_cv_CXX_dependencies_compiler_type=$depmode
4136: break
4137: fi
1.66 paf 4138: fi
4139: done
4140:
4141: cd ..
4142: rm -rf conftest.dir
4143: else
4144: am_cv_CXX_dependencies_compiler_type=none
4145: fi
4146:
4147: fi
1.150 moko 4148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4149: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 4150: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4151:
1.150 moko 4152: if
1.66 paf 4153: test "x$enable_dependency_tracking" != xno \
4154: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4155: am__fastdepCXX_TRUE=
4156: am__fastdepCXX_FALSE='#'
4157: else
4158: am__fastdepCXX_TRUE='#'
4159: am__fastdepCXX_FALSE=
4160: fi
4161:
4162:
4163: ac_ext=c
4164: ac_cpp='$CPP $CPPFLAGS'
4165: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168: if test -n "$ac_tool_prefix"; then
4169: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4170: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.150 moko 4171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172: $as_echo_n "checking for $ac_word... " >&6; }
4173: if ${ac_cv_prog_CC+:} false; then :
4174: $as_echo_n "(cached) " >&6
1.66 paf 4175: else
4176: if test -n "$CC"; then
4177: ac_cv_prog_CC="$CC" # Let the user override the test.
4178: else
4179: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180: for as_dir in $PATH
4181: do
4182: IFS=$as_save_IFS
4183: test -z "$as_dir" && as_dir=.
1.150 moko 4184: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4185: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4186: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.150 moko 4187: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4188: break 2
4189: fi
4190: done
1.150 moko 4191: done
4192: IFS=$as_save_IFS
1.66 paf 4193:
4194: fi
4195: fi
4196: CC=$ac_cv_prog_CC
4197: if test -n "$CC"; then
1.150 moko 4198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199: $as_echo "$CC" >&6; }
1.66 paf 4200: else
1.150 moko 4201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202: $as_echo "no" >&6; }
1.66 paf 4203: fi
4204:
1.150 moko 4205:
1.66 paf 4206: fi
4207: if test -z "$ac_cv_prog_CC"; then
4208: ac_ct_CC=$CC
4209: # Extract the first word of "gcc", so it can be a program name with args.
4210: set dummy gcc; ac_word=$2
1.150 moko 4211: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212: $as_echo_n "checking for $ac_word... " >&6; }
4213: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4214: $as_echo_n "(cached) " >&6
1.66 paf 4215: else
4216: if test -n "$ac_ct_CC"; then
4217: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4218: else
4219: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220: for as_dir in $PATH
4221: do
4222: IFS=$as_save_IFS
4223: test -z "$as_dir" && as_dir=.
1.150 moko 4224: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4225: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4226: ac_cv_prog_ac_ct_CC="gcc"
1.150 moko 4227: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4228: break 2
4229: fi
4230: done
1.150 moko 4231: done
4232: IFS=$as_save_IFS
1.66 paf 4233:
4234: fi
4235: fi
4236: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4237: if test -n "$ac_ct_CC"; then
1.150 moko 4238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4239: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4240: else
1.150 moko 4241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242: $as_echo "no" >&6; }
1.62 paf 4243: fi
4244:
1.150 moko 4245: if test "x$ac_ct_CC" = x; then
4246: CC=""
4247: else
4248: case $cross_compiling:$ac_tool_warned in
4249: yes:)
4250: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252: ac_tool_warned=yes ;;
4253: esac
4254: CC=$ac_ct_CC
4255: fi
1.66 paf 4256: else
4257: CC="$ac_cv_prog_CC"
1.1 paf 4258: fi
1.62 paf 4259:
1.66 paf 4260: if test -z "$CC"; then
1.150 moko 4261: if test -n "$ac_tool_prefix"; then
4262: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 4263: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.150 moko 4264: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265: $as_echo_n "checking for $ac_word... " >&6; }
4266: if ${ac_cv_prog_CC+:} false; then :
4267: $as_echo_n "(cached) " >&6
1.66 paf 4268: else
4269: if test -n "$CC"; then
4270: ac_cv_prog_CC="$CC" # Let the user override the test.
4271: else
4272: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273: for as_dir in $PATH
4274: do
4275: IFS=$as_save_IFS
4276: test -z "$as_dir" && as_dir=.
1.150 moko 4277: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4278: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4279: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.150 moko 4280: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4281: break 2
4282: fi
4283: done
1.150 moko 4284: done
4285: IFS=$as_save_IFS
1.62 paf 4286:
1.66 paf 4287: fi
4288: fi
4289: CC=$ac_cv_prog_CC
4290: if test -n "$CC"; then
1.150 moko 4291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292: $as_echo "$CC" >&6; }
1.62 paf 4293: else
1.150 moko 4294: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295: $as_echo "no" >&6; }
1.1 paf 4296: fi
4297:
1.150 moko 4298:
1.66 paf 4299: fi
1.1 paf 4300: fi
1.66 paf 4301: if test -z "$CC"; then
4302: # Extract the first word of "cc", so it can be a program name with args.
4303: set dummy cc; ac_word=$2
1.150 moko 4304: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305: $as_echo_n "checking for $ac_word... " >&6; }
4306: if ${ac_cv_prog_CC+:} false; then :
4307: $as_echo_n "(cached) " >&6
1.66 paf 4308: else
4309: if test -n "$CC"; then
4310: ac_cv_prog_CC="$CC" # Let the user override the test.
4311: else
4312: ac_prog_rejected=no
4313: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314: for as_dir in $PATH
4315: do
4316: IFS=$as_save_IFS
4317: test -z "$as_dir" && as_dir=.
1.150 moko 4318: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4319: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4320: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4321: ac_prog_rejected=yes
4322: continue
4323: fi
4324: ac_cv_prog_CC="cc"
1.150 moko 4325: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4326: break 2
4327: fi
4328: done
1.150 moko 4329: done
4330: IFS=$as_save_IFS
1.62 paf 4331:
1.66 paf 4332: if test $ac_prog_rejected = yes; then
4333: # We found a bogon in the path, so make sure we never use it.
4334: set dummy $ac_cv_prog_CC
4335: shift
4336: if test $# != 0; then
4337: # We chose a different compiler from the bogus one.
4338: # However, it has the same basename, so the bogon will be chosen
4339: # first if we set CC to just the basename; use the full file name.
4340: shift
4341: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4342: fi
4343: fi
4344: fi
4345: fi
4346: CC=$ac_cv_prog_CC
4347: if test -n "$CC"; then
1.150 moko 4348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349: $as_echo "$CC" >&6; }
1.66 paf 4350: else
1.150 moko 4351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352: $as_echo "no" >&6; }
1.1 paf 4353: fi
4354:
1.150 moko 4355:
1.66 paf 4356: fi
4357: if test -z "$CC"; then
4358: if test -n "$ac_tool_prefix"; then
1.150 moko 4359: for ac_prog in cl.exe
1.62 paf 4360: do
4361: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4362: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 4363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364: $as_echo_n "checking for $ac_word... " >&6; }
4365: if ${ac_cv_prog_CC+:} false; then :
4366: $as_echo_n "(cached) " >&6
1.62 paf 4367: else
1.66 paf 4368: if test -n "$CC"; then
4369: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 4370: else
4371: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372: for as_dir in $PATH
4373: do
4374: IFS=$as_save_IFS
4375: test -z "$as_dir" && as_dir=.
1.150 moko 4376: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4377: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4378: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.150 moko 4379: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4380: break 2
4381: fi
4382: done
1.150 moko 4383: done
4384: IFS=$as_save_IFS
1.1 paf 4385:
1.62 paf 4386: fi
4387: fi
1.66 paf 4388: CC=$ac_cv_prog_CC
4389: if test -n "$CC"; then
1.150 moko 4390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4391: $as_echo "$CC" >&6; }
1.1 paf 4392: else
1.150 moko 4393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394: $as_echo "no" >&6; }
1.1 paf 4395: fi
4396:
1.150 moko 4397:
1.66 paf 4398: test -n "$CC" && break
1.62 paf 4399: done
4400: fi
1.66 paf 4401: if test -z "$CC"; then
4402: ac_ct_CC=$CC
1.150 moko 4403: for ac_prog in cl.exe
1.62 paf 4404: do
4405: # Extract the first word of "$ac_prog", so it can be a program name with args.
4406: set dummy $ac_prog; ac_word=$2
1.150 moko 4407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408: $as_echo_n "checking for $ac_word... " >&6; }
4409: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4410: $as_echo_n "(cached) " >&6
1.62 paf 4411: else
1.66 paf 4412: if test -n "$ac_ct_CC"; then
4413: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 4414: else
1.62 paf 4415: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416: for as_dir in $PATH
4417: do
4418: IFS=$as_save_IFS
4419: test -z "$as_dir" && as_dir=.
1.150 moko 4420: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4421: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4422: ac_cv_prog_ac_ct_CC="$ac_prog"
1.150 moko 4423: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4424: break 2
4425: fi
4426: done
1.150 moko 4427: done
4428: IFS=$as_save_IFS
1.62 paf 4429:
4430: fi
4431: fi
1.66 paf 4432: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4433: if test -n "$ac_ct_CC"; then
1.150 moko 4434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4435: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4436: else
1.150 moko 4437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438: $as_echo "no" >&6; }
1.1 paf 4439: fi
4440:
1.150 moko 4441:
1.66 paf 4442: test -n "$ac_ct_CC" && break
4443: done
4444:
1.150 moko 4445: if test "x$ac_ct_CC" = x; then
4446: CC=""
4447: else
4448: case $cross_compiling:$ac_tool_warned in
4449: yes:)
4450: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452: ac_tool_warned=yes ;;
4453: esac
4454: CC=$ac_ct_CC
4455: fi
1.66 paf 4456: fi
4457:
4458: fi
1.62 paf 4459:
1.1 paf 4460:
1.150 moko 4461: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4463: as_fn_error $? "no acceptable C compiler found in \$PATH
4464: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 4465:
4466: # Provide some information about the compiler.
1.150 moko 4467: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4468: set X $ac_compile
4469: ac_compiler=$2
4470: for ac_option in --version -v -V -qversion; do
4471: { { ac_try="$ac_compiler $ac_option >&5"
4472: case "(($ac_try" in
4473: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474: *) ac_try_echo=$ac_try;;
4475: esac
4476: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477: $as_echo "$ac_try_echo"; } >&5
4478: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 4479: ac_status=$?
1.150 moko 4480: if test -s conftest.err; then
4481: sed '10a\
4482: ... rest of stderr output deleted ...
4483: 10q' conftest.err >conftest.er1
4484: cat conftest.er1 >&5
4485: fi
4486: rm -f conftest.er1 conftest.err
4487: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488: test $ac_status = 0; }
4489: done
4490:
4491: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4492: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4493: if ${ac_cv_c_compiler_gnu+:} false; then :
4494: $as_echo_n "(cached) " >&6
1.62 paf 4495: else
1.150 moko 4496: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4497: /* end confdefs.h. */
4498:
4499: int
4500: main ()
4501: {
4502: #ifndef __GNUC__
4503: choke me
4504: #endif
4505:
4506: ;
4507: return 0;
4508: }
4509: _ACEOF
1.150 moko 4510: if ac_fn_c_try_compile "$LINENO"; then :
1.62 paf 4511: ac_compiler_gnu=yes
4512: else
1.150 moko 4513: ac_compiler_gnu=no
1.62 paf 4514: fi
1.150 moko 4515: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 4516: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 4517:
4518: fi
1.150 moko 4519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4520: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4521: if test $ac_compiler_gnu = yes; then
4522: GCC=yes
4523: else
4524: GCC=
4525: fi
1.66 paf 4526: ac_test_CFLAGS=${CFLAGS+set}
4527: ac_save_CFLAGS=$CFLAGS
1.150 moko 4528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4529: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4530: if ${ac_cv_prog_cc_g+:} false; then :
4531: $as_echo_n "(cached) " >&6
4532: else
4533: ac_save_c_werror_flag=$ac_c_werror_flag
4534: ac_c_werror_flag=yes
4535: ac_cv_prog_cc_g=no
4536: CFLAGS="-g"
4537: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4538: /* end confdefs.h. */
4539:
4540: int
4541: main ()
4542: {
4543:
4544: ;
4545: return 0;
4546: }
4547: _ACEOF
1.150 moko 4548: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 4549: ac_cv_prog_cc_g=yes
1.62 paf 4550: else
1.150 moko 4551: CFLAGS=""
4552: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553: /* end confdefs.h. */
4554:
4555: int
4556: main ()
4557: {
1.62 paf 4558:
1.150 moko 4559: ;
4560: return 0;
4561: }
4562: _ACEOF
4563: if ac_fn_c_try_compile "$LINENO"; then :
4564:
4565: else
4566: ac_c_werror_flag=$ac_save_c_werror_flag
4567: CFLAGS="-g"
4568: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569: /* end confdefs.h. */
4570:
4571: int
4572: main ()
4573: {
4574:
4575: ;
4576: return 0;
4577: }
4578: _ACEOF
4579: if ac_fn_c_try_compile "$LINENO"; then :
4580: ac_cv_prog_cc_g=yes
4581: fi
4582: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4583: fi
1.150 moko 4584: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4585: fi
1.150 moko 4586: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587: ac_c_werror_flag=$ac_save_c_werror_flag
4588: fi
4589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4590: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.66 paf 4591: if test "$ac_test_CFLAGS" = set; then
4592: CFLAGS=$ac_save_CFLAGS
4593: elif test $ac_cv_prog_cc_g = yes; then
4594: if test "$GCC" = yes; then
4595: CFLAGS="-g -O2"
1.1 paf 4596: else
1.66 paf 4597: CFLAGS="-g"
1.1 paf 4598: fi
4599: else
1.66 paf 4600: if test "$GCC" = yes; then
4601: CFLAGS="-O2"
1.1 paf 4602: else
1.66 paf 4603: CFLAGS=
1.1 paf 4604: fi
4605: fi
1.150 moko 4606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4607: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4608: if ${ac_cv_prog_cc_c89+:} false; then :
4609: $as_echo_n "(cached) " >&6
1.66 paf 4610: else
1.150 moko 4611: ac_cv_prog_cc_c89=no
1.66 paf 4612: ac_save_CC=$CC
1.150 moko 4613: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4614: /* end confdefs.h. */
4615: #include <stdarg.h>
4616: #include <stdio.h>
1.166 moko 4617: struct stat;
1.66 paf 4618: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4619: struct buf { int x; };
4620: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4621: static char *e (p, i)
4622: char **p;
4623: int i;
4624: {
4625: return p[i];
4626: }
4627: static char *f (char * (*g) (char **, int), char **p, ...)
4628: {
4629: char *s;
4630: va_list v;
4631: va_start (v,p);
4632: s = g (p, va_arg (v,int));
4633: va_end (v);
4634: return s;
4635: }
1.86 paf 4636:
4637: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4638: function prototypes and stuff, but not '\xHH' hex character constants.
4639: These don't provoke an error unfortunately, instead are silently treated
1.150 moko 4640: as 'x'. The following induces an error, until -std is added to get
1.86 paf 4641: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4642: array size at least. It's necessary to write '\x00'==0 to get something
1.150 moko 4643: that's true only with -std. */
1.86 paf 4644: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4645:
1.150 moko 4646: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4647: inside strings and character constants. */
4648: #define FOO(x) 'x'
4649: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4650:
1.66 paf 4651: int test (int i, double x);
4652: struct s1 {int (*f) (int a);};
4653: struct s2 {int (*f) (double a);};
4654: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4655: int argc;
4656: char **argv;
4657: int
4658: main ()
4659: {
4660: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4661: ;
4662: return 0;
4663: }
4664: _ACEOF
1.150 moko 4665: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4666: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 4667: do
4668: CC="$ac_save_CC $ac_arg"
1.150 moko 4669: if ac_fn_c_try_compile "$LINENO"; then :
4670: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 4671: fi
1.150 moko 4672: rm -f core conftest.err conftest.$ac_objext
4673: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 4674: done
1.150 moko 4675: rm -f conftest.$ac_ext
1.66 paf 4676: CC=$ac_save_CC
4677:
4678: fi
1.150 moko 4679: # AC_CACHE_VAL
4680: case "x$ac_cv_prog_cc_c89" in
4681: x)
4682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4683: $as_echo "none needed" >&6; } ;;
4684: xno)
4685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4686: $as_echo "unsupported" >&6; } ;;
1.66 paf 4687: *)
1.150 moko 4688: CC="$CC $ac_cv_prog_cc_c89"
4689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4690: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.66 paf 4691: esac
1.150 moko 4692: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.62 paf 4693:
4694: fi
1.66 paf 4695:
1.62 paf 4696: ac_ext=c
4697: ac_cpp='$CPP $CPPFLAGS'
4698: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701:
1.187 moko 4702: ac_ext=c
4703: ac_cpp='$CPP $CPPFLAGS'
4704: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4708: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4709: if ${am_cv_prog_cc_c_o+:} false; then :
4710: $as_echo_n "(cached) " >&6
4711: else
4712: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713: /* end confdefs.h. */
4714:
4715: int
4716: main ()
4717: {
4718:
4719: ;
4720: return 0;
4721: }
4722: _ACEOF
4723: # Make sure it works both with $CC and with simple cc.
4724: # Following AC_PROG_CC_C_O, we do the test twice because some
4725: # compilers refuse to overwrite an existing .o file with -o,
4726: # though they will create one.
4727: am_cv_prog_cc_c_o=yes
4728: for am_i in 1 2; do
4729: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4730: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4731: ac_status=$?
4732: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733: (exit $ac_status); } \
4734: && test -f conftest2.$ac_objext; then
4735: : OK
4736: else
4737: am_cv_prog_cc_c_o=no
4738: break
4739: fi
4740: done
4741: rm -f core conftest*
4742: unset am_i
4743: fi
4744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4745: $as_echo "$am_cv_prog_cc_c_o" >&6; }
4746: if test "$am_cv_prog_cc_c_o" != yes; then
4747: # Losing compiler, so override with the script.
4748: # FIXME: It is wrong to rewrite CC.
4749: # But if we don't then we get into trouble of one sort or another.
4750: # A longer-term fix would be to have automake use am__CC in this case,
4751: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4752: CC="$am_aux_dir/compile $CC"
4753: fi
4754: ac_ext=c
4755: ac_cpp='$CPP $CPPFLAGS'
4756: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4757: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4758: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4759:
4760:
1.66 paf 4761: depcc="$CC" am_compiler_list=
1.62 paf 4762:
1.150 moko 4763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4764: $as_echo_n "checking dependency style of $depcc... " >&6; }
4765: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4766: $as_echo_n "(cached) " >&6
1.62 paf 4767: else
4768: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4769: # We make a subdir and do the tests there. Otherwise we can end up
4770: # making bogus files that we don't know about and never remove. For
4771: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4772: # making a dummy file named 'D' -- because '-MD' means "put the output
4773: # in D".
4774: rm -rf conftest.dir
1.62 paf 4775: mkdir conftest.dir
4776: # Copy depcomp to subdir because otherwise we won't find it if we're
4777: # using a relative directory.
4778: cp "$am_depcomp" conftest.dir
4779: cd conftest.dir
1.86 paf 4780: # We will build objects and dependencies in a subdirectory because
4781: # it helps to detect inapplicable dependency modes. For instance
4782: # both Tru64's cc and ICC support -MD to output dependencies as a
4783: # side effect of compilation, but ICC will put the dependencies in
4784: # the current directory while Tru64 will put them in the object
4785: # directory.
4786: mkdir sub
1.62 paf 4787:
1.66 paf 4788: am_cv_CC_dependencies_compiler_type=none
1.62 paf 4789: if test "$am_compiler_list" = ""; then
4790: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4791: fi
1.150 moko 4792: am__universal=false
4793: case " $depcc " in #(
4794: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4795: esac
4796:
1.62 paf 4797: for depmode in $am_compiler_list; do
1.86 paf 4798: # Setup a source with many dependencies, because some compilers
4799: # like to wrap large dependency lists on column 80 (with \), and
4800: # we should not choose a depcomp mode which is confused by this.
4801: #
1.62 paf 4802: # We need to recreate these files for each test, as the compiler may
4803: # overwrite some of them when testing with obscure command lines.
4804: # This happens at least with the AIX C compiler.
1.86 paf 4805: : > sub/conftest.c
4806: for i in 1 2 3 4 5 6; do
4807: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4808: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4809: # Solaris 10 /bin/sh.
4810: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4811: done
4812: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4813:
1.187 moko 4814: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4815: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4816: # handle '-M -o', and we need to detect this. Also, some Intel
4817: # versions had trouble with output in subdirs.
1.150 moko 4818: am__obj=sub/conftest.${OBJEXT-o}
4819: am__minus_obj="-o $am__obj"
1.62 paf 4820: case $depmode in
1.150 moko 4821: gcc)
4822: # This depmode causes a compiler race in universal mode.
4823: test "$am__universal" = false || continue
4824: ;;
1.62 paf 4825: nosideeffect)
1.187 moko 4826: # After this tag, mechanisms are not by side-effect, so they'll
4827: # only be used when explicitly requested.
1.62 paf 4828: if test "x$enable_dependency_tracking" = xyes; then
4829: continue
4830: else
4831: break
4832: fi
4833: ;;
1.187 moko 4834: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4835: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4836: # not run yet. These depmodes are late enough in the game, and
4837: # so weak that their functioning should not be impacted.
4838: am__obj=conftest.${OBJEXT-o}
4839: am__minus_obj=
4840: ;;
1.62 paf 4841: none) break ;;
4842: esac
1.66 paf 4843: if depmode=$depmode \
1.150 moko 4844: source=sub/conftest.c object=$am__obj \
1.86 paf 4845: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4846: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4847: >/dev/null 2>conftest.err &&
1.150 moko 4848: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4849: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4850: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 4851: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4852: # icc doesn't choke on unknown options, it will just issue warnings
4853: # or remarks (even with -Werror). So we grep stderr for any message
4854: # that says an option was ignored or not supported.
4855: # When given -MP, icc 7.0 and 7.1 complain thusly:
4856: # icc: Command line warning: ignoring option '-M'; no argument required
4857: # The diagnosis changed in icc 8.0:
4858: # icc: Command line remark: option '-MP' not supported
4859: if (grep 'ignoring option' conftest.err ||
4860: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4861: am_cv_CC_dependencies_compiler_type=$depmode
4862: break
4863: fi
1.66 paf 4864: fi
4865: done
4866:
4867: cd ..
4868: rm -rf conftest.dir
4869: else
4870: am_cv_CC_dependencies_compiler_type=none
4871: fi
4872:
4873: fi
1.150 moko 4874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4875: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 4876: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4877:
1.150 moko 4878: if
1.66 paf 4879: test "x$enable_dependency_tracking" != xno \
4880: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4881: am__fastdepCC_TRUE=
4882: am__fastdepCC_FALSE='#'
4883: else
4884: am__fastdepCC_TRUE='#'
4885: am__fastdepCC_FALSE=
4886: fi
4887:
4888:
1.128 moko 4889:
1.66 paf 4890: ac_ext=c
4891: ac_cpp='$CPP $CPPFLAGS'
4892: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895:
1.67 paf 4896:
1.62 paf 4897:
1.150 moko 4898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
4899: $as_echo_n "checking for dynamic-link library extension... " >&6; }
1.128 moko 4900: case "$host_os" in
1.158 moko 4901: *cygwin* ) dll_extension=dll;;
4902: * ) dll_extension=so
1.66 paf 4903: esac
1.150 moko 4904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
4905: $as_echo "$dll_extension" >&6; }
1.1 paf 4906:
1.71 paf 4907:
4908:
4909:
1.150 moko 4910: # Check whether --with-build-warnings was given.
4911: if test "${with_build_warnings+set}" = set; then :
4912: withval=$with_build_warnings; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
4913: $as_echo "$as_me: WARNING: enabling compiler warnings" >&2;}
1.183 moko 4914: CXXFLAGS="$CXXFLAGS -Wextra -Wall -Wno-parentheses"
1.71 paf 4915:
1.150 moko 4916: fi
4917:
1.1 paf 4918:
4919:
1.182 moko 4920: # Check whether --with-coverage was given.
4921: if test "${with_coverage+set}" = set; then :
4922: withval=$with_coverage; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gcov support" >&5
4923: $as_echo "$as_me: WARNING: enabling gcov support" >&2;}
4924: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O0-9*//g'`
4925: CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O0-9*//g'`
4926: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
4927: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
4928: LDFLAGS="$LDFLAGS -lgcov"
4929:
4930: fi
4931:
4932:
4933:
4934: # Check whether --with-profiler was given.
4935: if test "${with_profiler+set}" = set; then :
4936: withval=$with_profiler; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gprof support" >&5
4937: $as_echo "$as_me: WARNING: enabling gprof support" >&2;}
1.193 moko 4938: CFLAGS="$CFLAGS -O0 -pg -g"
4939: CXXFLAGS="$CXXFLAGS -O0 -pg -g"
1.182 moko 4940:
4941: fi
4942:
4943:
4944:
1.150 moko 4945: # Check whether --with-assertions was given.
4946: if test "${with_assertions+set}" = set; then :
4947: withval=$with_assertions; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
4948: $as_echo "$as_me: WARNING: enabling assertions" >&2;}
1.67 paf 4949:
4950: else
4951:
1.150 moko 4952: $as_echo "#define NDEBUG /**/" >>confdefs.h
4953:
1.67 paf 4954:
1.150 moko 4955: fi
1.67 paf 4956:
4957:
1.94 misha 4958:
1.150 moko 4959: # Check whether --with-sjlj-exceptions was given.
4960: if test "${with_sjlj_exceptions+set}" = set; then :
4961: withval=$with_sjlj_exceptions;
4962: $as_echo "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.128 moko 4963:
4964:
1.150 moko 4965: fi
1.128 moko 4966:
4967:
1.62 paf 4968:
1.201 moko 4969:
4970: # Check whether --with-system-config was given.
4971: if test "${with_system_config+set}" = set; then :
4972: withval=$with_system_config;
4973: $as_echo "#define SYSTEM_CONFIG_FILE \$withval" >>confdefs.h
4974:
4975:
4976: fi
4977:
4978:
4979:
4980:
4981: # Check whether --with-system-log was given.
4982: if test "${with_system_log+set}" = set; then :
4983: withval=$with_system_log;
4984: $as_echo "#define SYSTEM_LOG_FILE \$withval" >>confdefs.h
4985:
4986:
4987: fi
4988:
4989:
4990:
1.150 moko 4991: # Check whether --enable-safe-mode was given.
4992: if test "${enable_safe_mode+set}" = set; then :
4993: enableval=$enable_safe_mode;
1.67 paf 4994: SAFE_MODE=$enableval
1.60 paf 4995:
1.1 paf 4996:
1.150 moko 4997: fi
4998:
1.128 moko 4999:
1.60 paf 5000: if test "$SAFE_MODE" = "no"; then
1.150 moko 5001: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
5002: $as_echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 5003: else
1.62 paf 5004:
1.150 moko 5005: $as_echo "#define PA_SAFE_MODE /**/" >>confdefs.h
1.1 paf 5006:
5007: fi
5008:
1.94 misha 5009:
1.150 moko 5010: # Check whether --enable-execs was given.
5011: if test "${enable_execs+set}" = set; then :
5012: enableval=$enable_execs;
1.13 paf 5013: if test "$enableval" = "no"; then
1.150 moko 5014: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
5015: $as_echo "$as_me: WARNING: disabling file execs" >&2;}
1.62 paf 5016:
1.150 moko 5017: $as_echo "#define NO_PA_EXECS /**/" >>confdefs.h
1.13 paf 5018:
5019: fi
5020:
5021:
1.150 moko 5022: fi
1.13 paf 5023:
1.60 paf 5024:
1.94 misha 5025:
1.150 moko 5026: # Check whether --enable-stringstream was given.
5027: if test "${enable_stringstream+set}" = set; then :
5028: enableval=$enable_stringstream;
1.94 misha 5029: if test "$enableval" = "no"; then
1.150 moko 5030: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
5031: $as_echo "$as_me: WARNING: disabling stringstream usage" >&2;}
1.94 misha 5032:
1.150 moko 5033: $as_echo "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.94 misha 5034:
5035: fi
5036:
5037:
1.150 moko 5038: fi
1.94 misha 5039:
5040:
1.62 paf 5041:
1.17 paf 5042:
1.150 moko 5043: # Check whether --with-gc was given.
5044: if test "${with_gc+set}" = set; then :
5045: withval=$with_gc;
1.17 paf 5046:
1.142 moko 5047: GC=$withval
5048: GC_LIBS="$GC/libgc.la"
5049:
5050: if test -f $GC_LIBS; then
5051: GC_OK="yes"
5052: else
5053: GC_LIBS="-L$GC -lgc"
5054: fi
1.62 paf 5055:
1.151 moko 5056: if test "$GC" = "yes"; then
5057: GC=""
5058: GC_LIBS="-lgc"
5059: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
5060: $as_echo "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
5061: fi
5062:
1.142 moko 5063: else
1.17 paf 5064:
1.142 moko 5065: GC_LIBS="-lgc"
1.150 moko 5066: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
5067: $as_echo "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
5068:
5069: fi
1.17 paf 5070:
5071:
1.142 moko 5072: if test -z "$GC_OK"; then
1.150 moko 5073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
5074: $as_echo_n "checking for libgc... " >&6; }
1.138 moko 5075: SAVE_LIBS=$LIBS
5076: LIBS="$LIBS $GC_LIBS"
1.128 moko 5077:
1.150 moko 5078: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 5079: /* end confdefs.h. */
1.142 moko 5080: extern int GC_dont_gc;
1.67 paf 5081: int
5082: main ()
5083: {
1.142 moko 5084: GC_dont_gc=0;
1.67 paf 5085: ;
5086: return 0;
5087: }
5088: _ACEOF
1.150 moko 5089: if ac_fn_c_try_link "$LINENO"; then :
5090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5091: $as_echo "yes" >&6; }
1.67 paf 5092:
5093: else
1.150 moko 5094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095: $as_echo "no" >&6; }
1.142 moko 5096: if test -z "$GC"; then
1.201 moko 5097: as_fn_error $? "please specify path to libgc: --with-gc=DIR" "$LINENO" 5
1.142 moko 5098: else
1.150 moko 5099: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
1.142 moko 5100: fi
1.67 paf 5101:
5102: fi
1.150 moko 5103: rm -f core conftest.err conftest.$ac_objext \
5104: conftest$ac_exeext conftest.$ac_ext
1.138 moko 5105: LIBS=$SAVE_LIBS
5106: fi
1.67 paf 5107:
5108:
1.1 paf 5109:
1.15 paf 5110:
1.142 moko 5111:
1.150 moko 5112: # Check whether --with-pcre was given.
5113: if test "${with_pcre+set}" = set; then :
5114: withval=$with_pcre;
1.100 misha 5115: PCRE=$withval
1.142 moko 5116: PCRE_INCLUDES="-I$PCRE/include"
5117: PCRE_LIBS="$PCRE/lib/libpcre.la"
1.100 misha 5118:
1.142 moko 5119: if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then
5120: PCRE_OK="yes"
5121: else
1.191 moko 5122: PCRE_LIBS="-L$PCRE/lib -lpcre"
1.100 misha 5123: fi
5124:
1.151 moko 5125: if test "$PCRE" = "yes"; then
5126: PCRE=""
5127: PCRE_LIBS="-lpcre"
5128: PCRE_INCLUDES=""
5129: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
5130: $as_echo "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
5131: fi
1.142 moko 5132:
5133: else
5134:
5135: PCRE_LIBS="-lpcre"
1.149 moko 5136: PCRE_INCLUDES=""
1.150 moko 5137: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
5138: $as_echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
5139:
5140: fi
1.100 misha 5141:
5142:
1.142 moko 5143: if test -z "$PCRE_OK"; then
1.150 moko 5144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prce" >&5
5145: $as_echo_n "checking for prce... " >&6; }
1.142 moko 5146: SAVE_LIBS=$LIBS
5147: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.150 moko 5148: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5149: /* end confdefs.h. */
5150: #include <pcre.h>
5151: int
5152: main ()
5153: {
5154: const char *v=pcre_version();
5155: ;
5156: return 0;
5157: }
5158: _ACEOF
1.150 moko 5159: if ac_fn_c_try_link "$LINENO"; then :
5160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5161: $as_echo "yes" >&6; }
1.142 moko 5162:
5163: else
1.150 moko 5164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165: $as_echo "no" >&6; }
1.142 moko 5166: if test -z "$PCRE"; then
1.201 moko 5167: as_fn_error $? "please specify path to PCRE: --with-pcre=DIR" "$LINENO" 5
1.142 moko 5168: else
1.150 moko 5169: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
1.142 moko 5170: fi
5171:
5172: fi
1.150 moko 5173: rm -f core conftest.err conftest.$ac_objext \
5174: conftest$ac_exeext conftest.$ac_ext
1.142 moko 5175: LIBS=$SAVE_LIBS
5176: fi
1.100 misha 5177:
5178:
5179:
5180:
1.66 paf 5181:
5182:
1.150 moko 5183: # Check whether --with-xml was given.
5184: if test "${with_xml+set}" = set; then :
5185: withval=$with_xml;
1.66 paf 5186:
1.142 moko 5187: XML=$withval
5188: XML_LIBS="-lxml2 -lxslt -lexslt"
5189:
5190: if test -z "$XML" -o "$XML" = "yes"; then
5191: XML=""
5192: XML_INCLUDES="-I/usr/include/libxml2"
1.150 moko 5193: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
5194: $as_echo "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
1.142 moko 5195: else
5196: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.193 moko 5197: XML_LIBS="-L$XML/lib $XML_LIBS"
1.67 paf 5198:
1.142 moko 5199: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
5200: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
5201: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
5202: XML_OK="yes"
5203: fi
1.67 paf 5204: fi
1.66 paf 5205:
1.142 moko 5206: if test -z "$XML_OK"; then
1.150 moko 5207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
5208: $as_echo_n "checking for xml... " >&6; }
1.142 moko 5209: SAVE_LIBS=$LIBS
5210: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.150 moko 5211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5212: /* end confdefs.h. */
5213: #include <libxslt/xslt.h>
5214: int
5215: main ()
5216: {
5217: const char *v=xsltEngineVersion;
5218: ;
5219: return 0;
5220: }
5221: _ACEOF
1.150 moko 5222: if ac_fn_c_try_link "$LINENO"; then :
5223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5224: $as_echo "yes" >&6; }
1.142 moko 5225:
5226: else
1.150 moko 5227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228: $as_echo "no" >&6; }
1.142 moko 5229: if test -z "$XML"; then
1.201 moko 5230: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=DIR" "$LINENO" 5
1.142 moko 5231: else
1.150 moko 5232: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 5233: fi
5234:
5235: fi
1.150 moko 5236: rm -f core conftest.err conftest.$ac_objext \
5237: conftest$ac_exeext conftest.$ac_ext
1.142 moko 5238: LIBS=$SAVE_LIBS
1.67 paf 5239: fi
1.66 paf 5240:
1.150 moko 5241: $as_echo "#define XML /**/" >>confdefs.h
5242:
1.66 paf 5243:
1.150 moko 5244: fi
1.66 paf 5245:
1.90 paf 5246:
1.66 paf 5247:
5248:
5249:
5250:
1.90 paf 5251:
1.154 moko 5252: # Check whether --with-mailreceive was given.
5253: if test "${with_mailreceive+set}" = set; then :
5254: withval=$with_mailreceive;
5255: MIME=$withval
1.155 moko 5256: GLIB="glib-2.0"
1.154 moko 5257: GMIME="gmime-2.4"
5258:
5259: if test -z "$MIME" -o "$MIME" = "yes"; then
5260: MIME=""
5261: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5262: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
1.194 moko 5263: if test -z "$MIME_LIBS"; then
5264: GMIME="gmime-3.0"
5265: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5266: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
5267: fi
1.154 moko 5268: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
5269: $as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
5270: else
1.155 moko 5271: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 5272: MIME_LIBS="-l$GMIME"
5273: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
5274: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 5275: if test -f $MIME/lib/lib$GLIB.la; then
5276: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
5277: else
5278: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
5279: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
5280: fi
1.154 moko 5281: MIME_OK="yes"
5282: fi
1.67 paf 5283: fi
1.66 paf 5284:
1.154 moko 5285: if test -z "$MIME_OK"; then
5286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
5287: $as_echo_n "checking for mime... " >&6; }
5288: SAVE_LIBS=$LIBS
5289: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
5290: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291: /* end confdefs.h. */
5292: #include <gmime/gmime.h>
5293: int
5294: main ()
5295: {
5296: guint v=gmime_major_version;
5297: ;
5298: return 0;
5299: }
5300: _ACEOF
5301: if ac_fn_c_try_link "$LINENO"; then :
5302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5303: $as_echo "yes" >&6; }
1.66 paf 5304:
1.154 moko 5305: else
5306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307: $as_echo "no" >&6; }
5308: if test -z "$MIME"; then
1.201 moko 5309: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=DIR" "$LINENO" 5
1.154 moko 5310: else
5311: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 5312: fi
1.66 paf 5313:
1.150 moko 5314: fi
1.154 moko 5315: rm -f core conftest.err conftest.$ac_objext \
5316: conftest$ac_exeext conftest.$ac_ext
5317: LIBS=$SAVE_LIBS
1.67 paf 5318: fi
1.66 paf 5319:
1.150 moko 5320: $as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 5321:
5322:
1.154 moko 5323: fi
1.66 paf 5324:
5325:
5326:
5327:
5328:
5329:
5330:
1.150 moko 5331: # Check whether --with-sendmail was given.
5332: if test "${with_sendmail+set}" = set; then :
5333: withval=$with_sendmail;
1.66 paf 5334: cat >>confdefs.h <<_ACEOF
5335: #define PA_FORCED_SENDMAIL "$withval"
5336: _ACEOF
5337:
5338:
1.150 moko 5339: fi
1.66 paf 5340:
5341:
5342:
1.122 moko 5343:
1.150 moko 5344: # Check whether --with-apache was given.
5345: if test "${with_apache+set}" = set; then :
5346: withval=$with_apache;
1.122 moko 5347: APXS=$withval
5348:
5349: if test -z "$APXS" -o "$APXS" = "yes"; then
5350: APXS=`which apxs 2>/dev/null`
1.142 moko 5351: if test -z "$APXS"; then
5352: APXS=`which apxs2 2>/dev/null`
5353: fi
5354: fi
1.122 moko 5355:
5356: APACHE=`$APXS -q TARGET 2>/dev/null`
5357:
5358: if test -z "$APACHE"; then
1.150 moko 5359: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 5360: fi
1.7 paf 5361:
1.122 moko 5362: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
5363: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
5364: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
5365: APACHE_CFLAGS=`$APXS -q CFLAGS`
5366:
1.150 moko 5367: fi
1.7 paf 5368:
5369:
1.62 paf 5370:
1.122 moko 5371:
1.150 moko 5372: if test -n "$APACHE"; then
1.122 moko 5373: COMPILE_APACHE_MODULE_TRUE=
5374: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 5375: else
1.122 moko 5376: COMPILE_APACHE_MODULE_TRUE='#'
5377: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 5378: fi
1.1 paf 5379:
5380:
5381:
1.62 paf 5382:
5383:
1.7 paf 5384:
1.1 paf 5385:
5386:
5387:
1.62 paf 5388:
1.128 moko 5389: case `pwd` in
5390: *\ * | *\ *)
1.150 moko 5391: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5392: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 5393: esac
5394:
5395:
5396:
5397: macro_version='2.4.2'
5398: macro_revision='1.3337'
5399:
5400:
5401:
5402:
5403:
5404:
5405:
5406:
5407:
5408:
5409:
5410:
5411:
5412: ltmain="$ac_aux_dir/ltmain.sh"
5413:
5414: # Backslashify metacharacters that are still active within
5415: # double-quoted strings.
5416: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 5417:
1.128 moko 5418: # Same as above, but do not quote variable references.
5419: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 5420:
1.128 moko 5421: # Sed substitution to delay expansion of an escaped shell variable in a
5422: # double_quote_subst'ed string.
5423: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 5424:
1.128 moko 5425: # Sed substitution to delay expansion of an escaped single quote.
5426: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 5427:
1.128 moko 5428: # Sed substitution to avoid accidental globbing in evaled expressions
5429: no_glob_subst='s/\*/\\\*/g'
1.86 paf 5430:
1.128 moko 5431: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5432: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5433: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 5434:
1.150 moko 5435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5436: $as_echo_n "checking how to print strings... " >&6; }
1.128 moko 5437: # Test print first, because it will be a builtin if present.
5438: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5439: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5440: ECHO='print -r --'
5441: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5442: ECHO='printf %s\n'
5443: else
5444: # Use this function as a fallback that always works.
5445: func_fallback_echo ()
5446: {
5447: eval 'cat <<_LTECHO_EOF
5448: $1
5449: _LTECHO_EOF'
5450: }
5451: ECHO='func_fallback_echo'
5452: fi
1.86 paf 5453:
1.128 moko 5454: # func_echo_all arg...
5455: # Invoke $ECHO with all args, space-separated.
5456: func_echo_all ()
1.66 paf 5457: {
1.128 moko 5458: $ECHO ""
1.66 paf 5459: }
1.10 paf 5460:
1.128 moko 5461: case "$ECHO" in
1.150 moko 5462: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5463: $as_echo "printf" >&6; } ;;
5464: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5465: $as_echo "print -r" >&6; } ;;
5466: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5467: $as_echo "cat" >&6; } ;;
1.128 moko 5468: esac
5469:
5470:
5471:
5472:
5473:
5474:
5475:
5476:
5477:
5478:
5479:
5480:
5481:
5482:
1.150 moko 5483: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5484: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5485: if ${ac_cv_path_SED+:} false; then :
5486: $as_echo_n "(cached) " >&6
5487: else
5488: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5489: for ac_i in 1 2 3 4 5 6 7; do
5490: ac_script="$ac_script$as_nl$ac_script"
5491: done
5492: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5493: { ac_script=; unset ac_script;}
5494: if test -z "$SED"; then
5495: ac_path_SED_found=false
5496: # Loop through the user's path and test for each of PROGNAME-LIST
5497: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 5498: for as_dir in $PATH
5499: do
5500: IFS=$as_save_IFS
5501: test -z "$as_dir" && as_dir=.
1.150 moko 5502: for ac_prog in sed gsed; do
1.128 moko 5503: for ac_exec_ext in '' $ac_executable_extensions; do
1.150 moko 5504: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5505: as_fn_executable_p "$ac_path_SED" || continue
1.150 moko 5506: # Check for GNU ac_path_SED and select it if it is found.
5507: # Check for GNU $ac_path_SED
5508: case `"$ac_path_SED" --version 2>&1` in
5509: *GNU*)
5510: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5511: *)
5512: ac_count=0
5513: $as_echo_n 0123456789 >"conftest.in"
5514: while :
5515: do
5516: cat "conftest.in" "conftest.in" >"conftest.tmp"
5517: mv "conftest.tmp" "conftest.in"
5518: cp "conftest.in" "conftest.nl"
5519: $as_echo '' >> "conftest.nl"
5520: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5521: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5522: as_fn_arith $ac_count + 1 && ac_count=$as_val
5523: if test $ac_count -gt ${ac_path_SED_max-0}; then
5524: # Best one so far, save it but keep looking for a better one
5525: ac_cv_path_SED="$ac_path_SED"
5526: ac_path_SED_max=$ac_count
5527: fi
5528: # 10*(2^10) chars as input seems more than enough
5529: test $ac_count -gt 10 && break
5530: done
5531: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5532: esac
5533:
5534: $ac_path_SED_found && break 3
1.128 moko 5535: done
5536: done
1.150 moko 5537: done
1.128 moko 5538: IFS=$as_save_IFS
1.150 moko 5539: if test -z "$ac_cv_path_SED"; then
5540: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 5541: fi
1.150 moko 5542: else
5543: ac_cv_path_SED=$SED
5544: fi
1.10 paf 5545:
1.66 paf 5546: fi
1.150 moko 5547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5548: $as_echo "$ac_cv_path_SED" >&6; }
5549: SED="$ac_cv_path_SED"
5550: rm -f conftest.sed
1.128 moko 5551:
5552: test -z "$SED" && SED=sed
5553: Xsed="$SED -e 1s/^X//"
1.10 paf 5554:
1.128 moko 5555:
5556:
5557:
5558:
5559:
5560:
5561:
5562:
5563:
5564:
1.150 moko 5565: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5566: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5567: if ${ac_cv_path_GREP+:} false; then :
5568: $as_echo_n "(cached) " >&6
5569: else
5570: if test -z "$GREP"; then
5571: ac_path_GREP_found=false
5572: # Loop through the user's path and test for each of PROGNAME-LIST
5573: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5575: do
5576: IFS=$as_save_IFS
5577: test -z "$as_dir" && as_dir=.
5578: for ac_prog in grep ggrep; do
5579: for ac_exec_ext in '' $ac_executable_extensions; do
5580: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5581: as_fn_executable_p "$ac_path_GREP" || continue
1.150 moko 5582: # Check for GNU ac_path_GREP and select it if it is found.
5583: # Check for GNU $ac_path_GREP
5584: case `"$ac_path_GREP" --version 2>&1` in
5585: *GNU*)
5586: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5587: *)
5588: ac_count=0
5589: $as_echo_n 0123456789 >"conftest.in"
5590: while :
5591: do
5592: cat "conftest.in" "conftest.in" >"conftest.tmp"
5593: mv "conftest.tmp" "conftest.in"
5594: cp "conftest.in" "conftest.nl"
5595: $as_echo 'GREP' >> "conftest.nl"
5596: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5597: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5598: as_fn_arith $ac_count + 1 && ac_count=$as_val
5599: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5600: # Best one so far, save it but keep looking for a better one
5601: ac_cv_path_GREP="$ac_path_GREP"
5602: ac_path_GREP_max=$ac_count
1.128 moko 5603: fi
1.150 moko 5604: # 10*(2^10) chars as input seems more than enough
5605: test $ac_count -gt 10 && break
5606: done
5607: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5608: esac
5609:
5610: $ac_path_GREP_found && break 3
5611: done
5612: done
5613: done
5614: IFS=$as_save_IFS
5615: if test -z "$ac_cv_path_GREP"; then
5616: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5617: fi
5618: else
5619: ac_cv_path_GREP=$GREP
5620: fi
5621:
1.128 moko 5622: fi
1.150 moko 5623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5624: $as_echo "$ac_cv_path_GREP" >&6; }
5625: GREP="$ac_cv_path_GREP"
5626:
5627:
5628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5629: $as_echo_n "checking for egrep... " >&6; }
5630: if ${ac_cv_path_EGREP+:} false; then :
5631: $as_echo_n "(cached) " >&6
5632: else
5633: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5634: then ac_cv_path_EGREP="$GREP -E"
5635: else
5636: if test -z "$EGREP"; then
5637: ac_path_EGREP_found=false
5638: # Loop through the user's path and test for each of PROGNAME-LIST
5639: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5641: do
5642: IFS=$as_save_IFS
5643: test -z "$as_dir" && as_dir=.
5644: for ac_prog in egrep; do
5645: for ac_exec_ext in '' $ac_executable_extensions; do
5646: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5647: as_fn_executable_p "$ac_path_EGREP" || continue
1.150 moko 5648: # Check for GNU ac_path_EGREP and select it if it is found.
5649: # Check for GNU $ac_path_EGREP
5650: case `"$ac_path_EGREP" --version 2>&1` in
5651: *GNU*)
5652: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5653: *)
5654: ac_count=0
5655: $as_echo_n 0123456789 >"conftest.in"
5656: while :
5657: do
5658: cat "conftest.in" "conftest.in" >"conftest.tmp"
5659: mv "conftest.tmp" "conftest.in"
5660: cp "conftest.in" "conftest.nl"
5661: $as_echo 'EGREP' >> "conftest.nl"
5662: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5663: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5664: as_fn_arith $ac_count + 1 && ac_count=$as_val
5665: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5666: # Best one so far, save it but keep looking for a better one
5667: ac_cv_path_EGREP="$ac_path_EGREP"
5668: ac_path_EGREP_max=$ac_count
5669: fi
5670: # 10*(2^10) chars as input seems more than enough
5671: test $ac_count -gt 10 && break
5672: done
5673: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5674: esac
1.128 moko 5675:
1.150 moko 5676: $ac_path_EGREP_found && break 3
5677: done
5678: done
5679: done
5680: IFS=$as_save_IFS
5681: if test -z "$ac_cv_path_EGREP"; then
5682: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5683: fi
5684: else
5685: ac_cv_path_EGREP=$EGREP
5686: fi
1.128 moko 5687:
1.150 moko 5688: fi
5689: fi
5690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5691: $as_echo "$ac_cv_path_EGREP" >&6; }
5692: EGREP="$ac_cv_path_EGREP"
5693:
5694:
5695: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5696: $as_echo_n "checking for fgrep... " >&6; }
5697: if ${ac_cv_path_FGREP+:} false; then :
5698: $as_echo_n "(cached) " >&6
5699: else
5700: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5701: then ac_cv_path_FGREP="$GREP -F"
5702: else
5703: if test -z "$FGREP"; then
5704: ac_path_FGREP_found=false
5705: # Loop through the user's path and test for each of PROGNAME-LIST
5706: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5708: do
5709: IFS=$as_save_IFS
5710: test -z "$as_dir" && as_dir=.
5711: for ac_prog in fgrep; do
5712: for ac_exec_ext in '' $ac_executable_extensions; do
5713: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5714: as_fn_executable_p "$ac_path_FGREP" || continue
1.150 moko 5715: # Check for GNU ac_path_FGREP and select it if it is found.
5716: # Check for GNU $ac_path_FGREP
5717: case `"$ac_path_FGREP" --version 2>&1` in
5718: *GNU*)
5719: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5720: *)
5721: ac_count=0
5722: $as_echo_n 0123456789 >"conftest.in"
5723: while :
5724: do
5725: cat "conftest.in" "conftest.in" >"conftest.tmp"
5726: mv "conftest.tmp" "conftest.in"
5727: cp "conftest.in" "conftest.nl"
5728: $as_echo 'FGREP' >> "conftest.nl"
5729: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5730: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5731: as_fn_arith $ac_count + 1 && ac_count=$as_val
5732: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5733: # Best one so far, save it but keep looking for a better one
5734: ac_cv_path_FGREP="$ac_path_FGREP"
5735: ac_path_FGREP_max=$ac_count
1.128 moko 5736: fi
1.150 moko 5737: # 10*(2^10) chars as input seems more than enough
5738: test $ac_count -gt 10 && break
5739: done
5740: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5741: esac
5742:
5743: $ac_path_FGREP_found && break 3
5744: done
5745: done
5746: done
5747: IFS=$as_save_IFS
5748: if test -z "$ac_cv_path_FGREP"; then
5749: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5750: fi
5751: else
5752: ac_cv_path_FGREP=$FGREP
5753: fi
5754:
5755: fi
1.128 moko 5756: fi
1.150 moko 5757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5758: $as_echo "$ac_cv_path_FGREP" >&6; }
5759: FGREP="$ac_cv_path_FGREP"
1.128 moko 5760:
5761:
5762: test -z "$GREP" && GREP=grep
5763:
5764:
5765:
5766:
5767:
5768:
5769:
5770:
5771:
5772:
5773:
5774:
5775:
5776:
5777:
5778:
5779:
5780:
5781:
1.150 moko 5782: # Check whether --with-gnu-ld was given.
5783: if test "${with_gnu_ld+set}" = set; then :
5784: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 5785: else
5786: with_gnu_ld=no
1.150 moko 5787: fi
5788:
1.128 moko 5789: ac_prog=ld
5790: if test "$GCC" = yes; then
5791: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 5792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5793: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 5794: case $host in
5795: *-*-mingw*)
5796: # gcc leaves a trailing carriage return which upsets mingw
5797: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5798: *)
5799: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5800: esac
5801: case $ac_prog in
5802: # Accept absolute paths.
5803: [\\/]* | ?:[\\/]*)
5804: re_direlt='/[^/][^/]*/\.\./'
5805: # Canonicalize the pathname of ld
5806: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5807: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5808: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5809: done
5810: test -z "$LD" && LD="$ac_prog"
5811: ;;
5812: "")
5813: # If it fails, then pretend we aren't using GCC.
5814: ac_prog=ld
5815: ;;
5816: *)
5817: # If it is relative, then search for the first ld in PATH.
5818: with_gnu_ld=unknown
5819: ;;
5820: esac
5821: elif test "$with_gnu_ld" = yes; then
1.150 moko 5822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5823: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 5824: else
1.150 moko 5825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5826: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 5827: fi
1.150 moko 5828: if ${lt_cv_path_LD+:} false; then :
5829: $as_echo_n "(cached) " >&6
1.128 moko 5830: else
5831: if test -z "$LD"; then
5832: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5833: for ac_dir in $PATH; do
5834: IFS="$lt_save_ifs"
5835: test -z "$ac_dir" && ac_dir=.
5836: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5837: lt_cv_path_LD="$ac_dir/$ac_prog"
5838: # Check to see if the program is GNU ld. I'd rather use --version,
5839: # but apparently some variants of GNU ld only accept -v.
5840: # Break only if it was the GNU/non-GNU ld that we prefer.
5841: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5842: *GNU* | *'with BFD'*)
5843: test "$with_gnu_ld" != no && break
5844: ;;
5845: *)
5846: test "$with_gnu_ld" != yes && break
5847: ;;
5848: esac
5849: fi
5850: done
5851: IFS="$lt_save_ifs"
5852: else
5853: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5854: fi
5855: fi
5856:
5857: LD="$lt_cv_path_LD"
5858: if test -n "$LD"; then
1.150 moko 5859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5860: $as_echo "$LD" >&6; }
1.128 moko 5861: else
1.150 moko 5862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863: $as_echo "no" >&6; }
1.128 moko 5864: fi
1.150 moko 5865: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5866: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5867: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5868: if ${lt_cv_prog_gnu_ld+:} false; then :
5869: $as_echo_n "(cached) " >&6
1.128 moko 5870: else
5871: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5872: case `$LD -v 2>&1 </dev/null` in
5873: *GNU* | *'with BFD'*)
5874: lt_cv_prog_gnu_ld=yes
5875: ;;
5876: *)
5877: lt_cv_prog_gnu_ld=no
5878: ;;
5879: esac
5880: fi
1.150 moko 5881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5882: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 5883: with_gnu_ld=$lt_cv_prog_gnu_ld
5884:
5885:
5886:
5887:
5888:
5889:
5890:
5891:
5892:
1.150 moko 5893: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5894: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5895: if ${lt_cv_path_NM+:} false; then :
5896: $as_echo_n "(cached) " >&6
1.128 moko 5897: else
5898: if test -n "$NM"; then
5899: # Let the user override the test.
5900: lt_cv_path_NM="$NM"
5901: else
5902: lt_nm_to_check="${ac_tool_prefix}nm"
5903: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5904: lt_nm_to_check="$lt_nm_to_check nm"
5905: fi
5906: for lt_tmp_nm in $lt_nm_to_check; do
5907: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5908: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5909: IFS="$lt_save_ifs"
5910: test -z "$ac_dir" && ac_dir=.
5911: tmp_nm="$ac_dir/$lt_tmp_nm"
5912: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5913: # Check to see if the nm accepts a BSD-compat flag.
5914: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5915: # nm: unknown option "B" ignored
5916: # Tru64's nm complains that /dev/null is an invalid object file
5917: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5918: */dev/null* | *'Invalid file or object type'*)
5919: lt_cv_path_NM="$tmp_nm -B"
5920: break
5921: ;;
5922: *)
5923: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5924: */dev/null*)
5925: lt_cv_path_NM="$tmp_nm -p"
5926: break
5927: ;;
5928: *)
5929: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5930: continue # so that we can try to find one that supports BSD flags
5931: ;;
5932: esac
5933: ;;
5934: esac
5935: fi
5936: done
5937: IFS="$lt_save_ifs"
5938: done
5939: : ${lt_cv_path_NM=no}
5940: fi
5941: fi
1.150 moko 5942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5943: $as_echo "$lt_cv_path_NM" >&6; }
1.128 moko 5944: if test "$lt_cv_path_NM" != "no"; then
5945: NM="$lt_cv_path_NM"
5946: else
5947: # Didn't find any BSD compatible name lister, look for dumpbin.
5948: if test -n "$DUMPBIN"; then :
5949: # Let the user override the test.
5950: else
5951: if test -n "$ac_tool_prefix"; then
5952: for ac_prog in dumpbin "link -dump"
5953: do
5954: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5955: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 5956: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957: $as_echo_n "checking for $ac_word... " >&6; }
5958: if ${ac_cv_prog_DUMPBIN+:} false; then :
5959: $as_echo_n "(cached) " >&6
1.128 moko 5960: else
5961: if test -n "$DUMPBIN"; then
5962: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5963: else
5964: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965: for as_dir in $PATH
5966: do
5967: IFS=$as_save_IFS
5968: test -z "$as_dir" && as_dir=.
1.150 moko 5969: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5970: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5971: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.150 moko 5972: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5973: break 2
5974: fi
5975: done
1.150 moko 5976: done
5977: IFS=$as_save_IFS
1.128 moko 5978:
5979: fi
5980: fi
5981: DUMPBIN=$ac_cv_prog_DUMPBIN
5982: if test -n "$DUMPBIN"; then
1.150 moko 5983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5984: $as_echo "$DUMPBIN" >&6; }
1.128 moko 5985: else
1.150 moko 5986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987: $as_echo "no" >&6; }
1.128 moko 5988: fi
5989:
1.150 moko 5990:
1.128 moko 5991: test -n "$DUMPBIN" && break
5992: done
5993: fi
5994: if test -z "$DUMPBIN"; then
5995: ac_ct_DUMPBIN=$DUMPBIN
5996: for ac_prog in dumpbin "link -dump"
5997: do
5998: # Extract the first word of "$ac_prog", so it can be a program name with args.
5999: set dummy $ac_prog; ac_word=$2
1.150 moko 6000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001: $as_echo_n "checking for $ac_word... " >&6; }
6002: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6003: $as_echo_n "(cached) " >&6
1.128 moko 6004: else
6005: if test -n "$ac_ct_DUMPBIN"; then
6006: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6007: else
6008: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009: for as_dir in $PATH
6010: do
6011: IFS=$as_save_IFS
6012: test -z "$as_dir" && as_dir=.
1.150 moko 6013: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6014: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6015: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.150 moko 6016: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6017: break 2
6018: fi
6019: done
1.150 moko 6020: done
6021: IFS=$as_save_IFS
1.128 moko 6022:
6023: fi
6024: fi
6025: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6026: if test -n "$ac_ct_DUMPBIN"; then
1.150 moko 6027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6028: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.128 moko 6029: else
1.150 moko 6030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031: $as_echo "no" >&6; }
1.128 moko 6032: fi
6033:
1.150 moko 6034:
1.128 moko 6035: test -n "$ac_ct_DUMPBIN" && break
6036: done
6037:
1.150 moko 6038: if test "x$ac_ct_DUMPBIN" = x; then
6039: DUMPBIN=":"
6040: else
6041: case $cross_compiling:$ac_tool_warned in
6042: yes:)
6043: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6044: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6045: ac_tool_warned=yes ;;
6046: esac
6047: DUMPBIN=$ac_ct_DUMPBIN
6048: fi
1.128 moko 6049: fi
6050:
6051: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6052: *COFF*)
6053: DUMPBIN="$DUMPBIN -symbols"
6054: ;;
6055: *)
6056: DUMPBIN=:
6057: ;;
6058: esac
6059: fi
6060:
6061: if test "$DUMPBIN" != ":"; then
6062: NM="$DUMPBIN"
6063: fi
6064: fi
6065: test -z "$NM" && NM=nm
6066:
6067:
6068:
6069:
6070:
6071:
1.150 moko 6072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6073: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6074: if ${lt_cv_nm_interface+:} false; then :
6075: $as_echo_n "(cached) " >&6
1.128 moko 6076: else
6077: lt_cv_nm_interface="BSD nm"
6078: echo "int some_variable = 0;" > conftest.$ac_ext
6079: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6080: (eval "$ac_compile" 2>conftest.err)
6081: cat conftest.err >&5
6082: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6083: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6084: cat conftest.err >&5
6085: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6086: cat conftest.out >&5
6087: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6088: lt_cv_nm_interface="MS dumpbin"
6089: fi
6090: rm -f conftest*
6091: fi
1.150 moko 6092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6093: $as_echo "$lt_cv_nm_interface" >&6; }
1.128 moko 6094:
1.150 moko 6095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6096: $as_echo_n "checking whether ln -s works... " >&6; }
1.128 moko 6097: LN_S=$as_ln_s
6098: if test "$LN_S" = "ln -s"; then
1.150 moko 6099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6100: $as_echo "yes" >&6; }
1.128 moko 6101: else
1.150 moko 6102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6103: $as_echo "no, using $LN_S" >&6; }
1.128 moko 6104: fi
6105:
6106: # find the maximum length of command line arguments
1.150 moko 6107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6108: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6109: if ${lt_cv_sys_max_cmd_len+:} false; then :
6110: $as_echo_n "(cached) " >&6
1.128 moko 6111: else
6112: i=0
6113: teststring="ABCD"
6114:
6115: case $build_os in
6116: msdosdjgpp*)
6117: # On DJGPP, this test can blow up pretty badly due to problems in libc
6118: # (any single argument exceeding 2000 bytes causes a buffer overrun
6119: # during glob expansion). Even if it were fixed, the result of this
6120: # check would be larger than it should be.
6121: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6122: ;;
6123:
6124: gnu*)
6125: # Under GNU Hurd, this test is not required because there is
6126: # no limit to the length of command line arguments.
6127: # Libtool will interpret -1 as no limit whatsoever
6128: lt_cv_sys_max_cmd_len=-1;
6129: ;;
6130:
6131: cygwin* | mingw* | cegcc*)
6132: # On Win9x/ME, this test blows up -- it succeeds, but takes
6133: # about 5 minutes as the teststring grows exponentially.
6134: # Worse, since 9x/ME are not pre-emptively multitasking,
6135: # you end up with a "frozen" computer, even though with patience
6136: # the test eventually succeeds (with a max line length of 256k).
6137: # Instead, let's just punt: use the minimum linelength reported by
6138: # all of the supported platforms: 8192 (on NT/2K/XP).
6139: lt_cv_sys_max_cmd_len=8192;
6140: ;;
6141:
6142: mint*)
6143: # On MiNT this can take a long time and run out of memory.
6144: lt_cv_sys_max_cmd_len=8192;
6145: ;;
6146:
6147: amigaos*)
6148: # On AmigaOS with pdksh, this test takes hours, literally.
6149: # So we just punt and use a minimum line length of 8192.
6150: lt_cv_sys_max_cmd_len=8192;
6151: ;;
6152:
6153: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6154: # This has been around since 386BSD, at least. Likely further.
6155: if test -x /sbin/sysctl; then
6156: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6157: elif test -x /usr/sbin/sysctl; then
6158: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6159: else
6160: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6161: fi
6162: # And add a safety zone
6163: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6164: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6165: ;;
6166:
6167: interix*)
6168: # We know the value 262144 and hardcode it with a safety zone (like BSD)
6169: lt_cv_sys_max_cmd_len=196608
6170: ;;
6171:
6172: os2*)
6173: # The test takes a long time on OS/2.
6174: lt_cv_sys_max_cmd_len=8192
6175: ;;
6176:
6177: osf*)
6178: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6179: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6180: # nice to cause kernel panics so lets avoid the loop below.
6181: # First set a reasonable default.
6182: lt_cv_sys_max_cmd_len=16384
6183: #
6184: if test -x /sbin/sysconfig; then
6185: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6186: *1*) lt_cv_sys_max_cmd_len=-1 ;;
6187: esac
6188: fi
6189: ;;
6190: sco3.2v5*)
6191: lt_cv_sys_max_cmd_len=102400
6192: ;;
6193: sysv5* | sco5v6* | sysv4.2uw2*)
6194: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6195: if test -n "$kargmax"; then
6196: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6197: else
6198: lt_cv_sys_max_cmd_len=32768
6199: fi
6200: ;;
6201: *)
6202: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6203: if test -n "$lt_cv_sys_max_cmd_len"; then
6204: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6205: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6206: else
6207: # Make teststring a little bigger before we do anything with it.
6208: # a 1K string should be a reasonable start.
6209: for i in 1 2 3 4 5 6 7 8 ; do
6210: teststring=$teststring$teststring
6211: done
6212: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6213: # If test is not a shell built-in, we'll probably end up computing a
6214: # maximum length that is only half of the actual maximum length, but
6215: # we can't tell.
6216: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6217: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6218: test $i != 17 # 1/2 MB should be enough
6219: do
6220: i=`expr $i + 1`
6221: teststring=$teststring$teststring
6222: done
6223: # Only check the string length outside the loop.
6224: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6225: teststring=
6226: # Add a significant safety factor because C++ compilers can tack on
6227: # massive amounts of additional arguments before passing them to the
6228: # linker. It appears as though 1/2 is a usable value.
6229: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6230: fi
6231: ;;
6232: esac
6233:
6234: fi
6235:
6236: if test -n $lt_cv_sys_max_cmd_len ; then
1.150 moko 6237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6238: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 6239: else
1.150 moko 6240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6241: $as_echo "none" >&6; }
1.128 moko 6242: fi
6243: max_cmd_len=$lt_cv_sys_max_cmd_len
6244:
6245:
6246:
6247:
6248:
6249:
6250: : ${CP="cp -f"}
6251: : ${MV="mv -f"}
6252: : ${RM="rm -f"}
6253:
1.150 moko 6254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6255: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.128 moko 6256: # Try some XSI features
6257: xsi_shell=no
6258: ( _lt_dummy="a/b/c"
6259: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6260: = c,a/b,b/c, \
6261: && eval 'test $(( 1 + 1 )) -eq 2 \
6262: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6263: && xsi_shell=yes
1.150 moko 6264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6265: $as_echo "$xsi_shell" >&6; }
1.128 moko 6266:
6267:
1.150 moko 6268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6269: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.128 moko 6270: lt_shell_append=no
6271: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6272: >/dev/null 2>&1 \
6273: && lt_shell_append=yes
1.150 moko 6274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6275: $as_echo "$lt_shell_append" >&6; }
1.128 moko 6276:
6277:
6278: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6279: lt_unset=unset
6280: else
6281: lt_unset=false
6282: fi
6283:
6284:
6285:
6286:
6287:
6288: # test EBCDIC or ASCII
6289: case `echo X|tr X '\101'` in
6290: A) # ASCII based system
6291: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6292: lt_SP2NL='tr \040 \012'
6293: lt_NL2SP='tr \015\012 \040\040'
6294: ;;
6295: *) # EBCDIC based system
6296: lt_SP2NL='tr \100 \n'
6297: lt_NL2SP='tr \r\n \100\100'
6298: ;;
6299: esac
6300:
6301:
6302:
6303:
6304:
6305:
6306:
6307:
6308:
1.150 moko 6309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6310: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6311: if ${lt_cv_to_host_file_cmd+:} false; then :
6312: $as_echo_n "(cached) " >&6
1.128 moko 6313: else
6314: case $host in
6315: *-*-mingw* )
6316: case $build in
6317: *-*-mingw* ) # actually msys
6318: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6319: ;;
6320: *-*-cygwin* )
6321: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6322: ;;
6323: * ) # otherwise, assume *nix
6324: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6325: ;;
6326: esac
6327: ;;
6328: *-*-cygwin* )
6329: case $build in
6330: *-*-mingw* ) # actually msys
6331: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6332: ;;
6333: *-*-cygwin* )
6334: lt_cv_to_host_file_cmd=func_convert_file_noop
6335: ;;
6336: * ) # otherwise, assume *nix
6337: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6338: ;;
6339: esac
6340: ;;
6341: * ) # unhandled hosts (and "normal" native builds)
6342: lt_cv_to_host_file_cmd=func_convert_file_noop
6343: ;;
6344: esac
6345:
6346: fi
6347:
6348: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.150 moko 6349: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6350: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 6351:
6352:
6353:
6354:
6355:
1.150 moko 6356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6357: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6358: if ${lt_cv_to_tool_file_cmd+:} false; then :
6359: $as_echo_n "(cached) " >&6
1.128 moko 6360: else
6361: #assume ordinary cross tools, or native build.
6362: lt_cv_to_tool_file_cmd=func_convert_file_noop
6363: case $host in
6364: *-*-mingw* )
6365: case $build in
6366: *-*-mingw* ) # actually msys
6367: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6368: ;;
6369: esac
6370: ;;
6371: esac
6372:
6373: fi
6374:
6375: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.150 moko 6376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6377: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 6378:
6379:
6380:
6381:
6382:
1.150 moko 6383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6384: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6385: if ${lt_cv_ld_reload_flag+:} false; then :
6386: $as_echo_n "(cached) " >&6
1.128 moko 6387: else
6388: lt_cv_ld_reload_flag='-r'
6389: fi
1.150 moko 6390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6391: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 6392: reload_flag=$lt_cv_ld_reload_flag
6393: case $reload_flag in
6394: "" | " "*) ;;
6395: *) reload_flag=" $reload_flag" ;;
6396: esac
6397: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6398: case $host_os in
6399: cygwin* | mingw* | pw32* | cegcc*)
6400: if test "$GCC" != yes; then
6401: reload_cmds=false
6402: fi
6403: ;;
6404: darwin*)
6405: if test "$GCC" = yes; then
6406: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6407: else
6408: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6409: fi
6410: ;;
6411: esac
6412:
6413:
6414:
6415:
6416:
6417:
6418:
6419:
6420:
6421: if test -n "$ac_tool_prefix"; then
6422: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6423: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 6424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425: $as_echo_n "checking for $ac_word... " >&6; }
6426: if ${ac_cv_prog_OBJDUMP+:} false; then :
6427: $as_echo_n "(cached) " >&6
1.128 moko 6428: else
6429: if test -n "$OBJDUMP"; then
6430: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6431: else
6432: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433: for as_dir in $PATH
6434: do
6435: IFS=$as_save_IFS
6436: test -z "$as_dir" && as_dir=.
1.150 moko 6437: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6438: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6439: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 6440: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6441: break 2
6442: fi
6443: done
1.150 moko 6444: done
6445: IFS=$as_save_IFS
1.128 moko 6446:
6447: fi
6448: fi
6449: OBJDUMP=$ac_cv_prog_OBJDUMP
6450: if test -n "$OBJDUMP"; then
1.150 moko 6451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6452: $as_echo "$OBJDUMP" >&6; }
1.128 moko 6453: else
1.150 moko 6454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455: $as_echo "no" >&6; }
1.128 moko 6456: fi
6457:
1.150 moko 6458:
1.128 moko 6459: fi
6460: if test -z "$ac_cv_prog_OBJDUMP"; then
6461: ac_ct_OBJDUMP=$OBJDUMP
6462: # Extract the first word of "objdump", so it can be a program name with args.
6463: set dummy objdump; ac_word=$2
1.150 moko 6464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465: $as_echo_n "checking for $ac_word... " >&6; }
6466: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6467: $as_echo_n "(cached) " >&6
1.128 moko 6468: else
6469: if test -n "$ac_ct_OBJDUMP"; then
6470: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6471: else
6472: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473: for as_dir in $PATH
6474: do
6475: IFS=$as_save_IFS
6476: test -z "$as_dir" && as_dir=.
1.150 moko 6477: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6478: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6479: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 6480: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6481: break 2
6482: fi
6483: done
1.150 moko 6484: done
6485: IFS=$as_save_IFS
1.128 moko 6486:
6487: fi
6488: fi
6489: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6490: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 6491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6492: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 6493: else
1.150 moko 6494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495: $as_echo "no" >&6; }
1.128 moko 6496: fi
6497:
1.150 moko 6498: if test "x$ac_ct_OBJDUMP" = x; then
6499: OBJDUMP="false"
6500: else
6501: case $cross_compiling:$ac_tool_warned in
6502: yes:)
6503: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6504: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6505: ac_tool_warned=yes ;;
6506: esac
6507: OBJDUMP=$ac_ct_OBJDUMP
6508: fi
1.128 moko 6509: else
6510: OBJDUMP="$ac_cv_prog_OBJDUMP"
6511: fi
6512:
6513: test -z "$OBJDUMP" && OBJDUMP=objdump
6514:
6515:
6516:
6517:
6518:
6519:
1.150 moko 6520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6521: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6522: if ${lt_cv_deplibs_check_method+:} false; then :
6523: $as_echo_n "(cached) " >&6
1.128 moko 6524: else
6525: lt_cv_file_magic_cmd='$MAGIC_CMD'
6526: lt_cv_file_magic_test_file=
6527: lt_cv_deplibs_check_method='unknown'
6528: # Need to set the preceding variable on all platforms that support
6529: # interlibrary dependencies.
6530: # 'none' -- dependencies not supported.
6531: # `unknown' -- same as none, but documents that we really don't know.
6532: # 'pass_all' -- all dependencies passed with no checks.
6533: # 'test_compile' -- check by making test program.
6534: # 'file_magic [[regex]]' -- check by looking for files in library path
6535: # which responds to the $file_magic_cmd with a given extended regex.
6536: # If you have `file' or equivalent on your system and you're not sure
6537: # whether `pass_all' will *always* work, you probably want this one.
6538:
6539: case $host_os in
6540: aix[4-9]*)
6541: lt_cv_deplibs_check_method=pass_all
6542: ;;
6543:
6544: beos*)
6545: lt_cv_deplibs_check_method=pass_all
6546: ;;
6547:
6548: bsdi[45]*)
6549: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6550: lt_cv_file_magic_cmd='/usr/bin/file -L'
6551: lt_cv_file_magic_test_file=/shlib/libc.so
6552: ;;
6553:
6554: cygwin*)
6555: # func_win32_libid is a shell function defined in ltmain.sh
6556: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6557: lt_cv_file_magic_cmd='func_win32_libid'
6558: ;;
6559:
6560: mingw* | pw32*)
6561: # Base MSYS/MinGW do not provide the 'file' command needed by
6562: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6563: # unless we find 'file', for example because we are cross-compiling.
6564: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6565: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6566: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6567: lt_cv_file_magic_cmd='func_win32_libid'
6568: else
6569: # Keep this pattern in sync with the one in func_win32_libid.
6570: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6571: lt_cv_file_magic_cmd='$OBJDUMP -f'
6572: fi
6573: ;;
6574:
6575: cegcc*)
6576: # use the weaker test based on 'objdump'. See mingw*.
6577: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6578: lt_cv_file_magic_cmd='$OBJDUMP -f'
6579: ;;
6580:
6581: darwin* | rhapsody*)
6582: lt_cv_deplibs_check_method=pass_all
6583: ;;
6584:
6585: freebsd* | dragonfly*)
6586: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6587: case $host_cpu in
6588: i*86 )
6589: # Not sure whether the presence of OpenBSD here was a mistake.
6590: # Let's accept both of them until this is cleared up.
6591: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6592: lt_cv_file_magic_cmd=/usr/bin/file
6593: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6594: ;;
6595: esac
6596: else
6597: lt_cv_deplibs_check_method=pass_all
6598: fi
6599: ;;
6600:
6601: gnu*)
6602: lt_cv_deplibs_check_method=pass_all
6603: ;;
6604:
6605: haiku*)
6606: lt_cv_deplibs_check_method=pass_all
6607: ;;
6608:
6609: hpux10.20* | hpux11*)
6610: lt_cv_file_magic_cmd=/usr/bin/file
6611: case $host_cpu in
6612: ia64*)
6613: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6614: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6615: ;;
6616: hppa*64*)
6617: 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]'
6618: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6619: ;;
6620: *)
6621: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6622: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6623: ;;
6624: esac
6625: ;;
6626:
6627: interix[3-9]*)
6628: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6629: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6630: ;;
6631:
6632: irix5* | irix6* | nonstopux*)
6633: case $LD in
6634: *-32|*"-32 ") libmagic=32-bit;;
6635: *-n32|*"-n32 ") libmagic=N32;;
6636: *-64|*"-64 ") libmagic=64-bit;;
6637: *) libmagic=never-match;;
6638: esac
6639: lt_cv_deplibs_check_method=pass_all
6640: ;;
6641:
6642: # This must be glibc/ELF.
6643: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6644: lt_cv_deplibs_check_method=pass_all
6645: ;;
6646:
6647: netbsd*)
6648: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6649: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6650: else
6651: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6652: fi
6653: ;;
6654:
6655: newos6*)
6656: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6657: lt_cv_file_magic_cmd=/usr/bin/file
6658: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6659: ;;
6660:
6661: *nto* | *qnx*)
6662: lt_cv_deplibs_check_method=pass_all
6663: ;;
6664:
6665: openbsd*)
6666: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6667: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6668: else
6669: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6670: fi
6671: ;;
6672:
6673: osf3* | osf4* | osf5*)
6674: lt_cv_deplibs_check_method=pass_all
6675: ;;
6676:
6677: rdos*)
6678: lt_cv_deplibs_check_method=pass_all
6679: ;;
6680:
6681: solaris*)
6682: lt_cv_deplibs_check_method=pass_all
6683: ;;
6684:
6685: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6686: lt_cv_deplibs_check_method=pass_all
6687: ;;
6688:
6689: sysv4 | sysv4.3*)
6690: case $host_vendor in
6691: motorola)
6692: 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]'
6693: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6694: ;;
6695: ncr)
6696: lt_cv_deplibs_check_method=pass_all
6697: ;;
6698: sequent)
6699: lt_cv_file_magic_cmd='/bin/file'
6700: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6701: ;;
6702: sni)
6703: lt_cv_file_magic_cmd='/bin/file'
6704: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6705: lt_cv_file_magic_test_file=/lib/libc.so
6706: ;;
6707: siemens)
6708: lt_cv_deplibs_check_method=pass_all
6709: ;;
6710: pc)
6711: lt_cv_deplibs_check_method=pass_all
6712: ;;
6713: esac
6714: ;;
6715:
6716: tpf*)
6717: lt_cv_deplibs_check_method=pass_all
6718: ;;
6719: esac
6720:
6721: fi
1.150 moko 6722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6723: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 6724:
6725: file_magic_glob=
6726: want_nocaseglob=no
6727: if test "$build" = "$host"; then
6728: case $host_os in
6729: mingw* | pw32*)
6730: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6731: want_nocaseglob=yes
6732: else
6733: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6734: fi
6735: ;;
6736: esac
6737: fi
6738:
6739: file_magic_cmd=$lt_cv_file_magic_cmd
6740: deplibs_check_method=$lt_cv_deplibs_check_method
6741: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6742:
6743:
6744:
6745:
6746:
6747:
6748:
6749:
6750:
6751:
6752:
6753:
6754:
6755:
6756:
6757:
6758:
6759:
6760:
6761:
6762:
6763:
6764: if test -n "$ac_tool_prefix"; then
6765: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6766: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 6767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768: $as_echo_n "checking for $ac_word... " >&6; }
6769: if ${ac_cv_prog_DLLTOOL+:} false; then :
6770: $as_echo_n "(cached) " >&6
1.128 moko 6771: else
6772: if test -n "$DLLTOOL"; then
6773: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6774: else
6775: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776: for as_dir in $PATH
6777: do
6778: IFS=$as_save_IFS
6779: test -z "$as_dir" && as_dir=.
1.150 moko 6780: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6781: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6782: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 6783: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6784: break 2
6785: fi
6786: done
1.150 moko 6787: done
6788: IFS=$as_save_IFS
1.128 moko 6789:
6790: fi
6791: fi
6792: DLLTOOL=$ac_cv_prog_DLLTOOL
6793: if test -n "$DLLTOOL"; then
1.150 moko 6794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6795: $as_echo "$DLLTOOL" >&6; }
1.128 moko 6796: else
1.150 moko 6797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798: $as_echo "no" >&6; }
1.128 moko 6799: fi
6800:
1.150 moko 6801:
1.128 moko 6802: fi
6803: if test -z "$ac_cv_prog_DLLTOOL"; then
6804: ac_ct_DLLTOOL=$DLLTOOL
6805: # Extract the first word of "dlltool", so it can be a program name with args.
6806: set dummy dlltool; ac_word=$2
1.150 moko 6807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808: $as_echo_n "checking for $ac_word... " >&6; }
6809: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6810: $as_echo_n "(cached) " >&6
1.128 moko 6811: else
6812: if test -n "$ac_ct_DLLTOOL"; then
6813: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6814: else
6815: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816: for as_dir in $PATH
6817: do
6818: IFS=$as_save_IFS
6819: test -z "$as_dir" && as_dir=.
1.150 moko 6820: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6821: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6822: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 6823: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6824: break 2
6825: fi
6826: done
1.150 moko 6827: done
6828: IFS=$as_save_IFS
1.128 moko 6829:
6830: fi
6831: fi
6832: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6833: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 6834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6835: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 6836: else
1.150 moko 6837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838: $as_echo "no" >&6; }
1.128 moko 6839: fi
6840:
1.150 moko 6841: if test "x$ac_ct_DLLTOOL" = x; then
6842: DLLTOOL="false"
6843: else
6844: case $cross_compiling:$ac_tool_warned in
6845: yes:)
6846: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848: ac_tool_warned=yes ;;
6849: esac
6850: DLLTOOL=$ac_ct_DLLTOOL
6851: fi
1.128 moko 6852: else
6853: DLLTOOL="$ac_cv_prog_DLLTOOL"
6854: fi
6855:
6856: test -z "$DLLTOOL" && DLLTOOL=dlltool
6857:
6858:
6859:
6860:
6861:
6862:
6863:
1.150 moko 6864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6865: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6866: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6867: $as_echo_n "(cached) " >&6
1.128 moko 6868: else
6869: lt_cv_sharedlib_from_linklib_cmd='unknown'
6870:
6871: case $host_os in
6872: cygwin* | mingw* | pw32* | cegcc*)
6873: # two different shell functions defined in ltmain.sh
6874: # decide which to use based on capabilities of $DLLTOOL
6875: case `$DLLTOOL --help 2>&1` in
6876: *--identify-strict*)
6877: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6878: ;;
6879: *)
6880: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6881: ;;
6882: esac
6883: ;;
6884: *)
6885: # fallback: assume linklib IS sharedlib
6886: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6887: ;;
6888: esac
6889:
6890: fi
1.150 moko 6891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6892: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 6893: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6894: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6895:
6896:
6897:
6898:
6899:
6900:
6901:
6902: if test -n "$ac_tool_prefix"; then
6903: for ac_prog in ar
6904: do
6905: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6906: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 6907: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908: $as_echo_n "checking for $ac_word... " >&6; }
6909: if ${ac_cv_prog_AR+:} false; then :
6910: $as_echo_n "(cached) " >&6
1.128 moko 6911: else
6912: if test -n "$AR"; then
6913: ac_cv_prog_AR="$AR" # Let the user override the test.
6914: else
6915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916: for as_dir in $PATH
6917: do
6918: IFS=$as_save_IFS
6919: test -z "$as_dir" && as_dir=.
1.150 moko 6920: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6921: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6922: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.150 moko 6923: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6924: break 2
6925: fi
6926: done
1.150 moko 6927: done
6928: IFS=$as_save_IFS
1.128 moko 6929:
6930: fi
6931: fi
6932: AR=$ac_cv_prog_AR
6933: if test -n "$AR"; then
1.150 moko 6934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6935: $as_echo "$AR" >&6; }
1.128 moko 6936: else
1.150 moko 6937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938: $as_echo "no" >&6; }
1.128 moko 6939: fi
6940:
1.150 moko 6941:
1.128 moko 6942: test -n "$AR" && break
6943: done
6944: fi
6945: if test -z "$AR"; then
6946: ac_ct_AR=$AR
6947: for ac_prog in ar
6948: do
6949: # Extract the first word of "$ac_prog", so it can be a program name with args.
6950: set dummy $ac_prog; ac_word=$2
1.150 moko 6951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952: $as_echo_n "checking for $ac_word... " >&6; }
6953: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6954: $as_echo_n "(cached) " >&6
1.128 moko 6955: else
6956: if test -n "$ac_ct_AR"; then
6957: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6958: else
6959: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960: for as_dir in $PATH
6961: do
6962: IFS=$as_save_IFS
6963: test -z "$as_dir" && as_dir=.
1.150 moko 6964: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6965: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6966: ac_cv_prog_ac_ct_AR="$ac_prog"
1.150 moko 6967: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6968: break 2
6969: fi
6970: done
1.150 moko 6971: done
6972: IFS=$as_save_IFS
1.128 moko 6973:
6974: fi
6975: fi
6976: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6977: if test -n "$ac_ct_AR"; then
1.150 moko 6978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6979: $as_echo "$ac_ct_AR" >&6; }
1.128 moko 6980: else
1.150 moko 6981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982: $as_echo "no" >&6; }
1.128 moko 6983: fi
6984:
1.150 moko 6985:
1.128 moko 6986: test -n "$ac_ct_AR" && break
6987: done
6988:
1.150 moko 6989: if test "x$ac_ct_AR" = x; then
6990: AR="false"
6991: else
6992: case $cross_compiling:$ac_tool_warned in
6993: yes:)
6994: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996: ac_tool_warned=yes ;;
6997: esac
6998: AR=$ac_ct_AR
6999: fi
1.128 moko 7000: fi
7001:
7002: : ${AR=ar}
7003: : ${AR_FLAGS=cru}
7004:
7005:
7006:
7007:
7008:
7009:
7010:
7011:
7012:
7013:
7014:
1.150 moko 7015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7016: $as_echo_n "checking for archiver @FILE support... " >&6; }
7017: if ${lt_cv_ar_at_file+:} false; then :
7018: $as_echo_n "(cached) " >&6
1.128 moko 7019: else
7020: lt_cv_ar_at_file=no
1.150 moko 7021: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7022: /* end confdefs.h. */
7023:
7024: int
7025: main ()
7026: {
7027:
7028: ;
7029: return 0;
7030: }
7031: _ACEOF
1.150 moko 7032: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 7033: echo conftest.$ac_objext > conftest.lst
7034: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 7035: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7036: (eval $lt_ar_try) 2>&5
7037: ac_status=$?
1.150 moko 7038: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7039: test $ac_status = 0; }
1.128 moko 7040: if test "$ac_status" -eq 0; then
7041: # Ensure the archiver fails upon bogus file names.
7042: rm -f conftest.$ac_objext libconftest.a
1.150 moko 7043: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7044: (eval $lt_ar_try) 2>&5
7045: ac_status=$?
1.150 moko 7046: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7047: test $ac_status = 0; }
1.128 moko 7048: if test "$ac_status" -ne 0; then
7049: lt_cv_ar_at_file=@
7050: fi
7051: fi
7052: rm -f conftest.* libconftest.a
7053:
7054: fi
1.150 moko 7055: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 7056:
7057: fi
1.150 moko 7058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7059: $as_echo "$lt_cv_ar_at_file" >&6; }
1.128 moko 7060:
7061: if test "x$lt_cv_ar_at_file" = xno; then
7062: archiver_list_spec=
7063: else
7064: archiver_list_spec=$lt_cv_ar_at_file
7065: fi
7066:
7067:
7068:
7069:
7070:
7071:
7072:
7073: if test -n "$ac_tool_prefix"; then
7074: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7075: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.150 moko 7076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077: $as_echo_n "checking for $ac_word... " >&6; }
7078: if ${ac_cv_prog_STRIP+:} false; then :
7079: $as_echo_n "(cached) " >&6
1.128 moko 7080: else
7081: if test -n "$STRIP"; then
7082: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7083: else
7084: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085: for as_dir in $PATH
7086: do
7087: IFS=$as_save_IFS
7088: test -z "$as_dir" && as_dir=.
1.150 moko 7089: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7090: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7091: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.150 moko 7092: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7093: break 2
7094: fi
7095: done
1.150 moko 7096: done
7097: IFS=$as_save_IFS
1.128 moko 7098:
7099: fi
7100: fi
7101: STRIP=$ac_cv_prog_STRIP
7102: if test -n "$STRIP"; then
1.150 moko 7103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7104: $as_echo "$STRIP" >&6; }
1.128 moko 7105: else
1.150 moko 7106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107: $as_echo "no" >&6; }
1.128 moko 7108: fi
7109:
1.150 moko 7110:
1.128 moko 7111: fi
7112: if test -z "$ac_cv_prog_STRIP"; then
7113: ac_ct_STRIP=$STRIP
7114: # Extract the first word of "strip", so it can be a program name with args.
7115: set dummy strip; ac_word=$2
1.150 moko 7116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117: $as_echo_n "checking for $ac_word... " >&6; }
7118: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7119: $as_echo_n "(cached) " >&6
1.128 moko 7120: else
7121: if test -n "$ac_ct_STRIP"; then
7122: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7123: else
7124: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125: for as_dir in $PATH
7126: do
7127: IFS=$as_save_IFS
7128: test -z "$as_dir" && as_dir=.
1.150 moko 7129: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7130: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7131: ac_cv_prog_ac_ct_STRIP="strip"
1.150 moko 7132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7133: break 2
7134: fi
7135: done
1.150 moko 7136: done
7137: IFS=$as_save_IFS
1.128 moko 7138:
7139: fi
7140: fi
7141: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7142: if test -n "$ac_ct_STRIP"; then
1.150 moko 7143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7144: $as_echo "$ac_ct_STRIP" >&6; }
1.128 moko 7145: else
1.150 moko 7146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147: $as_echo "no" >&6; }
1.128 moko 7148: fi
7149:
1.150 moko 7150: if test "x$ac_ct_STRIP" = x; then
7151: STRIP=":"
7152: else
7153: case $cross_compiling:$ac_tool_warned in
7154: yes:)
7155: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157: ac_tool_warned=yes ;;
7158: esac
7159: STRIP=$ac_ct_STRIP
7160: fi
1.128 moko 7161: else
7162: STRIP="$ac_cv_prog_STRIP"
7163: fi
7164:
7165: test -z "$STRIP" && STRIP=:
7166:
7167:
7168:
7169:
7170:
7171:
7172: if test -n "$ac_tool_prefix"; then
7173: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7174: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.150 moko 7175: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176: $as_echo_n "checking for $ac_word... " >&6; }
7177: if ${ac_cv_prog_RANLIB+:} false; then :
7178: $as_echo_n "(cached) " >&6
1.128 moko 7179: else
7180: if test -n "$RANLIB"; then
7181: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7182: else
7183: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184: for as_dir in $PATH
7185: do
7186: IFS=$as_save_IFS
7187: test -z "$as_dir" && as_dir=.
1.150 moko 7188: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7189: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7190: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.150 moko 7191: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7192: break 2
7193: fi
7194: done
1.150 moko 7195: done
7196: IFS=$as_save_IFS
1.128 moko 7197:
7198: fi
7199: fi
7200: RANLIB=$ac_cv_prog_RANLIB
7201: if test -n "$RANLIB"; then
1.150 moko 7202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7203: $as_echo "$RANLIB" >&6; }
1.128 moko 7204: else
1.150 moko 7205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206: $as_echo "no" >&6; }
1.128 moko 7207: fi
7208:
1.150 moko 7209:
1.128 moko 7210: fi
7211: if test -z "$ac_cv_prog_RANLIB"; then
7212: ac_ct_RANLIB=$RANLIB
7213: # Extract the first word of "ranlib", so it can be a program name with args.
7214: set dummy ranlib; ac_word=$2
1.150 moko 7215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216: $as_echo_n "checking for $ac_word... " >&6; }
7217: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7218: $as_echo_n "(cached) " >&6
1.128 moko 7219: else
7220: if test -n "$ac_ct_RANLIB"; then
7221: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7222: else
7223: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224: for as_dir in $PATH
7225: do
7226: IFS=$as_save_IFS
7227: test -z "$as_dir" && as_dir=.
1.150 moko 7228: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7229: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7230: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.150 moko 7231: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7232: break 2
7233: fi
7234: done
1.150 moko 7235: done
7236: IFS=$as_save_IFS
1.128 moko 7237:
7238: fi
7239: fi
7240: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7241: if test -n "$ac_ct_RANLIB"; then
1.150 moko 7242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7243: $as_echo "$ac_ct_RANLIB" >&6; }
1.128 moko 7244: else
1.150 moko 7245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246: $as_echo "no" >&6; }
1.128 moko 7247: fi
7248:
1.150 moko 7249: if test "x$ac_ct_RANLIB" = x; then
7250: RANLIB=":"
7251: else
7252: case $cross_compiling:$ac_tool_warned in
7253: yes:)
7254: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256: ac_tool_warned=yes ;;
7257: esac
7258: RANLIB=$ac_ct_RANLIB
7259: fi
1.128 moko 7260: else
7261: RANLIB="$ac_cv_prog_RANLIB"
7262: fi
7263:
7264: test -z "$RANLIB" && RANLIB=:
7265:
7266:
7267:
7268:
7269:
7270:
7271: # Determine commands to create old-style static archives.
7272: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7273: old_postinstall_cmds='chmod 644 $oldlib'
7274: old_postuninstall_cmds=
7275:
7276: if test -n "$RANLIB"; then
7277: case $host_os in
7278: openbsd*)
7279: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7280: ;;
7281: *)
7282: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7283: ;;
7284: esac
7285: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7286: fi
7287:
7288: case $host_os in
7289: darwin*)
7290: lock_old_archive_extraction=yes ;;
7291: *)
7292: lock_old_archive_extraction=no ;;
7293: esac
7294:
7295:
7296:
7297:
7298:
7299:
7300:
7301:
7302:
7303:
7304:
7305:
7306:
7307:
7308:
7309:
7310:
7311:
7312:
7313:
7314:
7315:
7316:
7317:
7318:
7319:
7320:
7321:
7322:
7323:
7324:
7325:
7326:
7327:
7328:
7329:
7330:
7331:
7332:
7333: # If no C compiler was specified, use CC.
7334: LTCC=${LTCC-"$CC"}
7335:
7336: # If no C compiler flags were specified, use CFLAGS.
7337: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7338:
7339: # Allow CC to be a program name with arguments.
7340: compiler=$CC
7341:
7342:
7343: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.150 moko 7344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7345: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7346: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7347: $as_echo_n "(cached) " >&6
1.128 moko 7348: else
7349:
7350: # These are sane defaults that work on at least a few old systems.
7351: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7352:
7353: # Character class describing NM global symbol codes.
7354: symcode='[BCDEGRST]'
7355:
7356: # Regexp to match symbols that can be accessed directly from C.
7357: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7358:
7359: # Define system-specific variables.
7360: case $host_os in
7361: aix*)
7362: symcode='[BCDT]'
7363: ;;
7364: cygwin* | mingw* | pw32* | cegcc*)
7365: symcode='[ABCDGISTW]'
7366: ;;
7367: hpux*)
7368: if test "$host_cpu" = ia64; then
7369: symcode='[ABCDEGRST]'
7370: fi
7371: ;;
7372: irix* | nonstopux*)
7373: symcode='[BCDEGRST]'
7374: ;;
7375: osf*)
7376: symcode='[BCDEGQRST]'
7377: ;;
7378: solaris*)
7379: symcode='[BDRT]'
7380: ;;
7381: sco3.2v5*)
7382: symcode='[DT]'
7383: ;;
7384: sysv4.2uw2*)
7385: symcode='[DT]'
7386: ;;
7387: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7388: symcode='[ABDT]'
7389: ;;
7390: sysv4)
7391: symcode='[DFNSTU]'
7392: ;;
7393: esac
7394:
7395: # If we're using GNU nm, then use its standard symbol codes.
7396: case `$NM -V 2>&1` in
7397: *GNU* | *'with BFD'*)
7398: symcode='[ABCDGIRSTW]' ;;
7399: esac
7400:
7401: # Transform an extracted symbol line into a proper C declaration.
7402: # Some systems (esp. on ia64) link data and code symbols differently,
7403: # so use this general approach.
7404: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7405:
7406: # Transform an extracted symbol line into symbol name and symbol address
7407: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7408: 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'"
7409:
7410: # Handle CRLF in mingw tool chain
7411: opt_cr=
7412: case $build_os in
7413: mingw*)
7414: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7415: ;;
7416: esac
7417:
7418: # Try without a prefix underscore, then with it.
7419: for ac_symprfx in "" "_"; do
7420:
7421: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7422: symxfrm="\\1 $ac_symprfx\\2 \\2"
7423:
7424: # Write the raw and C identifiers.
7425: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7426: # Fake it for dumpbin and say T for any non-static function
7427: # and D for any global variable.
7428: # Also find C++ and __fastcall symbols from MSVC++,
7429: # which start with @ or ?.
7430: lt_cv_sys_global_symbol_pipe="$AWK '"\
7431: " {last_section=section; section=\$ 3};"\
7432: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7433: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7434: " \$ 0!~/External *\|/{next};"\
7435: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7436: " {if(hide[section]) next};"\
7437: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7438: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7439: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7440: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7441: " ' prfx=^$ac_symprfx"
7442: else
7443: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7444: fi
7445: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7446:
7447: # Check to see that the pipe works correctly.
7448: pipe_works=no
7449:
7450: rm -f conftest*
7451: cat > conftest.$ac_ext <<_LT_EOF
7452: #ifdef __cplusplus
7453: extern "C" {
7454: #endif
7455: char nm_test_var;
7456: void nm_test_func(void);
7457: void nm_test_func(void){}
7458: #ifdef __cplusplus
7459: }
7460: #endif
7461: int main(){nm_test_var='a';nm_test_func();return(0);}
7462: _LT_EOF
7463:
1.150 moko 7464: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7465: (eval $ac_compile) 2>&5
7466: ac_status=$?
1.150 moko 7467: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7468: test $ac_status = 0; }; then
1.128 moko 7469: # Now try to grab the symbols.
7470: nlist=conftest.nm
1.150 moko 7471: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.128 moko 7472: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7473: ac_status=$?
1.150 moko 7474: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7475: test $ac_status = 0; } && test -s "$nlist"; then
1.128 moko 7476: # Try sorting and uniquifying the output.
7477: if sort "$nlist" | uniq > "$nlist"T; then
7478: mv -f "$nlist"T "$nlist"
7479: else
7480: rm -f "$nlist"T
7481: fi
7482:
7483: # Make sure that we snagged all the symbols we need.
7484: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7485: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7486: cat <<_LT_EOF > conftest.$ac_ext
7487: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7488: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7489: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7490: relocations are performed -- see ld's documentation on pseudo-relocs. */
7491: # define LT_DLSYM_CONST
7492: #elif defined(__osf__)
7493: /* This system does not cope well with relocations in const data. */
7494: # define LT_DLSYM_CONST
7495: #else
7496: # define LT_DLSYM_CONST const
7497: #endif
7498:
7499: #ifdef __cplusplus
7500: extern "C" {
7501: #endif
7502:
7503: _LT_EOF
7504: # Now generate the symbol file.
7505: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7506:
7507: cat <<_LT_EOF >> conftest.$ac_ext
7508:
7509: /* The mapping between symbol names and symbols. */
7510: LT_DLSYM_CONST struct {
7511: const char *name;
7512: void *address;
7513: }
7514: lt__PROGRAM__LTX_preloaded_symbols[] =
7515: {
7516: { "@PROGRAM@", (void *) 0 },
7517: _LT_EOF
7518: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7519: cat <<\_LT_EOF >> conftest.$ac_ext
7520: {0, (void *) 0}
7521: };
7522:
7523: /* This works around a problem in FreeBSD linker */
7524: #ifdef FREEBSD_WORKAROUND
7525: static const void *lt_preloaded_setup() {
7526: return lt__PROGRAM__LTX_preloaded_symbols;
7527: }
7528: #endif
7529:
7530: #ifdef __cplusplus
7531: }
7532: #endif
7533: _LT_EOF
7534: # Now try linking the two files.
7535: mv conftest.$ac_objext conftstm.$ac_objext
7536: lt_globsym_save_LIBS=$LIBS
7537: lt_globsym_save_CFLAGS=$CFLAGS
7538: LIBS="conftstm.$ac_objext"
7539: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 7540: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 7541: (eval $ac_link) 2>&5
7542: ac_status=$?
1.150 moko 7543: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.128 moko 7545: pipe_works=yes
7546: fi
7547: LIBS=$lt_globsym_save_LIBS
7548: CFLAGS=$lt_globsym_save_CFLAGS
7549: else
7550: echo "cannot find nm_test_func in $nlist" >&5
7551: fi
7552: else
7553: echo "cannot find nm_test_var in $nlist" >&5
7554: fi
7555: else
7556: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7557: fi
7558: else
7559: echo "$progname: failed program was:" >&5
7560: cat conftest.$ac_ext >&5
7561: fi
7562: rm -rf conftest* conftst*
7563:
7564: # Do not use the global_symbol_pipe unless it works.
7565: if test "$pipe_works" = yes; then
7566: break
7567: else
7568: lt_cv_sys_global_symbol_pipe=
7569: fi
7570: done
7571:
7572: fi
7573:
7574: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7575: lt_cv_sys_global_symbol_to_cdecl=
7576: fi
7577: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.150 moko 7578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7579: $as_echo "failed" >&6; }
1.128 moko 7580: else
1.150 moko 7581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7582: $as_echo "ok" >&6; }
1.128 moko 7583: fi
7584:
7585: # Response file support.
7586: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7587: nm_file_list_spec='@'
7588: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7589: nm_file_list_spec='@'
7590: fi
7591:
7592:
7593:
7594:
7595:
7596:
7597:
7598:
7599:
7600:
7601:
7602:
7603:
7604:
7605:
7606:
7607:
7608:
7609:
7610:
7611:
7612:
7613:
7614:
7615:
7616:
7617:
1.150 moko 7618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7619: $as_echo_n "checking for sysroot... " >&6; }
1.128 moko 7620:
1.150 moko 7621: # Check whether --with-sysroot was given.
7622: if test "${with_sysroot+set}" = set; then :
7623: withval=$with_sysroot;
1.128 moko 7624: else
7625: with_sysroot=no
1.150 moko 7626: fi
7627:
1.128 moko 7628:
7629: lt_sysroot=
7630: case ${with_sysroot} in #(
7631: yes)
7632: if test "$GCC" = yes; then
7633: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7634: fi
7635: ;; #(
7636: /*)
7637: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7638: ;; #(
7639: no|'')
7640: ;; #(
7641: *)
1.150 moko 7642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7643: $as_echo "${with_sysroot}" >&6; }
7644: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 7645: ;;
7646: esac
7647:
1.150 moko 7648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7649: $as_echo "${lt_sysroot:-no}" >&6; }
1.128 moko 7650:
7651:
7652:
7653:
7654:
1.150 moko 7655: # Check whether --enable-libtool-lock was given.
7656: if test "${enable_libtool_lock+set}" = set; then :
7657: enableval=$enable_libtool_lock;
7658: fi
1.128 moko 7659:
7660: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7661:
7662: # Some flags need to be propagated to the compiler or linker for good
7663: # libtool support.
7664: case $host in
7665: ia64-*-hpux*)
7666: # Find out which ABI we are using.
7667: echo 'int i;' > conftest.$ac_ext
1.150 moko 7668: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7669: (eval $ac_compile) 2>&5
7670: ac_status=$?
1.150 moko 7671: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7672: test $ac_status = 0; }; then
1.128 moko 7673: case `/usr/bin/file conftest.$ac_objext` in
7674: *ELF-32*)
7675: HPUX_IA64_MODE="32"
7676: ;;
7677: *ELF-64*)
7678: HPUX_IA64_MODE="64"
7679: ;;
7680: esac
7681: fi
7682: rm -rf conftest*
7683: ;;
7684: *-*-irix6*)
7685: # Find out which ABI we are using.
7686: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 7687: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7688: (eval $ac_compile) 2>&5
7689: ac_status=$?
1.150 moko 7690: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7691: test $ac_status = 0; }; then
1.128 moko 7692: if test "$lt_cv_prog_gnu_ld" = yes; then
7693: case `/usr/bin/file conftest.$ac_objext` in
7694: *32-bit*)
7695: LD="${LD-ld} -melf32bsmip"
7696: ;;
7697: *N32*)
7698: LD="${LD-ld} -melf32bmipn32"
7699: ;;
7700: *64-bit*)
7701: LD="${LD-ld} -melf64bmip"
7702: ;;
7703: esac
7704: else
7705: case `/usr/bin/file conftest.$ac_objext` in
7706: *32-bit*)
7707: LD="${LD-ld} -32"
7708: ;;
7709: *N32*)
7710: LD="${LD-ld} -n32"
7711: ;;
7712: *64-bit*)
7713: LD="${LD-ld} -64"
7714: ;;
7715: esac
7716: fi
7717: fi
7718: rm -rf conftest*
7719: ;;
7720:
7721: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7722: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7723: # Find out which ABI we are using.
7724: echo 'int i;' > conftest.$ac_ext
1.150 moko 7725: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7726: (eval $ac_compile) 2>&5
7727: ac_status=$?
1.150 moko 7728: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729: test $ac_status = 0; }; then
1.128 moko 7730: case `/usr/bin/file conftest.o` in
7731: *32-bit*)
7732: case $host in
7733: x86_64-*kfreebsd*-gnu)
7734: LD="${LD-ld} -m elf_i386_fbsd"
7735: ;;
7736: x86_64-*linux*)
7737: LD="${LD-ld} -m elf_i386"
7738: ;;
7739: ppc64-*linux*|powerpc64-*linux*)
7740: LD="${LD-ld} -m elf32ppclinux"
7741: ;;
7742: s390x-*linux*)
7743: LD="${LD-ld} -m elf_s390"
7744: ;;
7745: sparc64-*linux*)
7746: LD="${LD-ld} -m elf32_sparc"
7747: ;;
7748: esac
7749: ;;
7750: *64-bit*)
7751: case $host in
7752: x86_64-*kfreebsd*-gnu)
7753: LD="${LD-ld} -m elf_x86_64_fbsd"
7754: ;;
7755: x86_64-*linux*)
7756: LD="${LD-ld} -m elf_x86_64"
7757: ;;
7758: ppc*-*linux*|powerpc*-*linux*)
7759: LD="${LD-ld} -m elf64ppc"
7760: ;;
7761: s390*-*linux*|s390*-*tpf*)
7762: LD="${LD-ld} -m elf64_s390"
7763: ;;
7764: sparc*-*linux*)
7765: LD="${LD-ld} -m elf64_sparc"
7766: ;;
7767: esac
7768: ;;
7769: esac
7770: fi
7771: rm -rf conftest*
7772: ;;
7773:
7774: *-*-sco3.2v5*)
7775: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7776: SAVE_CFLAGS="$CFLAGS"
7777: CFLAGS="$CFLAGS -belf"
1.150 moko 7778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7779: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7780: if ${lt_cv_cc_needs_belf+:} false; then :
7781: $as_echo_n "(cached) " >&6
1.128 moko 7782: else
7783: ac_ext=c
7784: ac_cpp='$CPP $CPPFLAGS'
7785: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788:
1.150 moko 7789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7790: /* end confdefs.h. */
7791:
7792: int
7793: main ()
7794: {
7795:
7796: ;
7797: return 0;
7798: }
7799: _ACEOF
1.150 moko 7800: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 7801: lt_cv_cc_needs_belf=yes
7802: else
1.150 moko 7803: lt_cv_cc_needs_belf=no
1.128 moko 7804: fi
1.150 moko 7805: rm -f core conftest.err conftest.$ac_objext \
7806: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7807: ac_ext=c
7808: ac_cpp='$CPP $CPPFLAGS'
7809: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7810: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7811: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812:
7813: fi
1.150 moko 7814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7815: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.128 moko 7816: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7817: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7818: CFLAGS="$SAVE_CFLAGS"
7819: fi
7820: ;;
7821: *-*solaris*)
7822: # Find out which ABI we are using.
7823: echo 'int i;' > conftest.$ac_ext
1.150 moko 7824: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7825: (eval $ac_compile) 2>&5
7826: ac_status=$?
1.150 moko 7827: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7828: test $ac_status = 0; }; then
1.128 moko 7829: case `/usr/bin/file conftest.o` in
7830: *64-bit*)
7831: case $lt_cv_prog_gnu_ld in
7832: yes*)
7833: case $host in
7834: i?86-*-solaris*)
7835: LD="${LD-ld} -m elf_x86_64"
7836: ;;
7837: sparc*-*-solaris*)
7838: LD="${LD-ld} -m elf64_sparc"
7839: ;;
7840: esac
7841: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7842: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7843: LD="${LD-ld}_sol2"
7844: fi
7845: ;;
7846: *)
7847: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7848: LD="${LD-ld} -64"
7849: fi
7850: ;;
7851: esac
7852: ;;
7853: esac
7854: fi
7855: rm -rf conftest*
7856: ;;
7857: esac
7858:
7859: need_locks="$enable_libtool_lock"
7860:
7861: if test -n "$ac_tool_prefix"; then
7862: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7863: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.150 moko 7864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865: $as_echo_n "checking for $ac_word... " >&6; }
7866: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7867: $as_echo_n "(cached) " >&6
1.128 moko 7868: else
7869: if test -n "$MANIFEST_TOOL"; then
7870: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7871: else
7872: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873: for as_dir in $PATH
7874: do
7875: IFS=$as_save_IFS
7876: test -z "$as_dir" && as_dir=.
1.150 moko 7877: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7878: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7879: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.150 moko 7880: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7881: break 2
7882: fi
7883: done
1.150 moko 7884: done
7885: IFS=$as_save_IFS
1.128 moko 7886:
7887: fi
7888: fi
7889: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7890: if test -n "$MANIFEST_TOOL"; then
1.150 moko 7891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7892: $as_echo "$MANIFEST_TOOL" >&6; }
1.128 moko 7893: else
1.150 moko 7894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895: $as_echo "no" >&6; }
1.128 moko 7896: fi
7897:
1.150 moko 7898:
1.128 moko 7899: fi
7900: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7901: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7902: # Extract the first word of "mt", so it can be a program name with args.
7903: set dummy mt; ac_word=$2
1.150 moko 7904: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905: $as_echo_n "checking for $ac_word... " >&6; }
7906: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7907: $as_echo_n "(cached) " >&6
1.128 moko 7908: else
7909: if test -n "$ac_ct_MANIFEST_TOOL"; then
7910: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7911: else
7912: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913: for as_dir in $PATH
7914: do
7915: IFS=$as_save_IFS
7916: test -z "$as_dir" && as_dir=.
1.150 moko 7917: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7918: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7919: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.150 moko 7920: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7921: break 2
7922: fi
7923: done
1.150 moko 7924: done
7925: IFS=$as_save_IFS
1.128 moko 7926:
7927: fi
7928: fi
7929: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7930: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.150 moko 7931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7932: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 7933: else
1.150 moko 7934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935: $as_echo "no" >&6; }
1.128 moko 7936: fi
7937:
1.150 moko 7938: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7939: MANIFEST_TOOL=":"
7940: else
7941: case $cross_compiling:$ac_tool_warned in
7942: yes:)
7943: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7944: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7945: ac_tool_warned=yes ;;
7946: esac
7947: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7948: fi
1.128 moko 7949: else
7950: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7951: fi
7952:
7953: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.150 moko 7954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7955: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7956: if ${lt_cv_path_mainfest_tool+:} false; then :
7957: $as_echo_n "(cached) " >&6
1.128 moko 7958: else
7959: lt_cv_path_mainfest_tool=no
7960: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7961: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7962: cat conftest.err >&5
7963: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7964: lt_cv_path_mainfest_tool=yes
7965: fi
7966: rm -f conftest*
7967: fi
1.150 moko 7968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7969: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.128 moko 7970: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7971: MANIFEST_TOOL=:
7972: fi
7973:
7974:
7975:
7976:
7977:
7978:
7979: case $host_os in
7980: rhapsody* | darwin*)
7981: if test -n "$ac_tool_prefix"; then
7982: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7983: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.150 moko 7984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985: $as_echo_n "checking for $ac_word... " >&6; }
7986: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7987: $as_echo_n "(cached) " >&6
1.128 moko 7988: else
7989: if test -n "$DSYMUTIL"; then
7990: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7991: else
7992: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993: for as_dir in $PATH
7994: do
7995: IFS=$as_save_IFS
7996: test -z "$as_dir" && as_dir=.
1.150 moko 7997: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7998: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7999: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.150 moko 8000: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8001: break 2
8002: fi
8003: done
1.150 moko 8004: done
8005: IFS=$as_save_IFS
1.128 moko 8006:
8007: fi
8008: fi
8009: DSYMUTIL=$ac_cv_prog_DSYMUTIL
8010: if test -n "$DSYMUTIL"; then
1.150 moko 8011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8012: $as_echo "$DSYMUTIL" >&6; }
1.128 moko 8013: else
1.150 moko 8014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015: $as_echo "no" >&6; }
1.128 moko 8016: fi
8017:
1.150 moko 8018:
1.128 moko 8019: fi
8020: if test -z "$ac_cv_prog_DSYMUTIL"; then
8021: ac_ct_DSYMUTIL=$DSYMUTIL
8022: # Extract the first word of "dsymutil", so it can be a program name with args.
8023: set dummy dsymutil; ac_word=$2
1.150 moko 8024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025: $as_echo_n "checking for $ac_word... " >&6; }
8026: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8027: $as_echo_n "(cached) " >&6
1.128 moko 8028: else
8029: if test -n "$ac_ct_DSYMUTIL"; then
8030: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8031: else
8032: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033: for as_dir in $PATH
8034: do
8035: IFS=$as_save_IFS
8036: test -z "$as_dir" && as_dir=.
1.150 moko 8037: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8038: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8039: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.150 moko 8040: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8041: break 2
8042: fi
8043: done
1.150 moko 8044: done
8045: IFS=$as_save_IFS
1.128 moko 8046:
8047: fi
8048: fi
8049: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8050: if test -n "$ac_ct_DSYMUTIL"; then
1.150 moko 8051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8052: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 8053: else
1.150 moko 8054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055: $as_echo "no" >&6; }
1.128 moko 8056: fi
8057:
1.150 moko 8058: if test "x$ac_ct_DSYMUTIL" = x; then
8059: DSYMUTIL=":"
8060: else
8061: case $cross_compiling:$ac_tool_warned in
8062: yes:)
8063: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8064: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8065: ac_tool_warned=yes ;;
8066: esac
8067: DSYMUTIL=$ac_ct_DSYMUTIL
8068: fi
1.128 moko 8069: else
8070: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8071: fi
8072:
8073: if test -n "$ac_tool_prefix"; then
8074: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8075: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.150 moko 8076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077: $as_echo_n "checking for $ac_word... " >&6; }
8078: if ${ac_cv_prog_NMEDIT+:} false; then :
8079: $as_echo_n "(cached) " >&6
1.128 moko 8080: else
8081: if test -n "$NMEDIT"; then
8082: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8083: else
8084: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085: for as_dir in $PATH
8086: do
8087: IFS=$as_save_IFS
8088: test -z "$as_dir" && as_dir=.
1.150 moko 8089: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8090: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8091: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.150 moko 8092: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8093: break 2
8094: fi
8095: done
1.150 moko 8096: done
8097: IFS=$as_save_IFS
1.128 moko 8098:
8099: fi
8100: fi
8101: NMEDIT=$ac_cv_prog_NMEDIT
8102: if test -n "$NMEDIT"; then
1.150 moko 8103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8104: $as_echo "$NMEDIT" >&6; }
1.128 moko 8105: else
1.150 moko 8106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107: $as_echo "no" >&6; }
1.128 moko 8108: fi
8109:
1.150 moko 8110:
1.128 moko 8111: fi
8112: if test -z "$ac_cv_prog_NMEDIT"; then
8113: ac_ct_NMEDIT=$NMEDIT
8114: # Extract the first word of "nmedit", so it can be a program name with args.
8115: set dummy nmedit; ac_word=$2
1.150 moko 8116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117: $as_echo_n "checking for $ac_word... " >&6; }
8118: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8119: $as_echo_n "(cached) " >&6
1.128 moko 8120: else
8121: if test -n "$ac_ct_NMEDIT"; then
8122: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8123: else
8124: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125: for as_dir in $PATH
8126: do
8127: IFS=$as_save_IFS
8128: test -z "$as_dir" && as_dir=.
1.150 moko 8129: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8130: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8131: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.150 moko 8132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8133: break 2
8134: fi
8135: done
1.150 moko 8136: done
8137: IFS=$as_save_IFS
1.128 moko 8138:
8139: fi
8140: fi
8141: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8142: if test -n "$ac_ct_NMEDIT"; then
1.150 moko 8143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8144: $as_echo "$ac_ct_NMEDIT" >&6; }
1.128 moko 8145: else
1.150 moko 8146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147: $as_echo "no" >&6; }
1.128 moko 8148: fi
8149:
1.150 moko 8150: if test "x$ac_ct_NMEDIT" = x; then
8151: NMEDIT=":"
8152: else
8153: case $cross_compiling:$ac_tool_warned in
8154: yes:)
8155: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8156: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8157: ac_tool_warned=yes ;;
8158: esac
8159: NMEDIT=$ac_ct_NMEDIT
8160: fi
1.128 moko 8161: else
8162: NMEDIT="$ac_cv_prog_NMEDIT"
8163: fi
8164:
8165: if test -n "$ac_tool_prefix"; then
8166: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8167: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.150 moko 8168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169: $as_echo_n "checking for $ac_word... " >&6; }
8170: if ${ac_cv_prog_LIPO+:} false; then :
8171: $as_echo_n "(cached) " >&6
1.128 moko 8172: else
8173: if test -n "$LIPO"; then
8174: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8175: else
8176: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177: for as_dir in $PATH
8178: do
8179: IFS=$as_save_IFS
8180: test -z "$as_dir" && as_dir=.
1.150 moko 8181: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8182: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8183: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.150 moko 8184: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8185: break 2
8186: fi
8187: done
1.150 moko 8188: done
8189: IFS=$as_save_IFS
1.128 moko 8190:
8191: fi
8192: fi
8193: LIPO=$ac_cv_prog_LIPO
8194: if test -n "$LIPO"; then
1.150 moko 8195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8196: $as_echo "$LIPO" >&6; }
1.128 moko 8197: else
1.150 moko 8198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199: $as_echo "no" >&6; }
1.128 moko 8200: fi
8201:
1.150 moko 8202:
1.128 moko 8203: fi
8204: if test -z "$ac_cv_prog_LIPO"; then
8205: ac_ct_LIPO=$LIPO
8206: # Extract the first word of "lipo", so it can be a program name with args.
8207: set dummy lipo; ac_word=$2
1.150 moko 8208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209: $as_echo_n "checking for $ac_word... " >&6; }
8210: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8211: $as_echo_n "(cached) " >&6
1.128 moko 8212: else
8213: if test -n "$ac_ct_LIPO"; then
8214: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8215: else
8216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217: for as_dir in $PATH
8218: do
8219: IFS=$as_save_IFS
8220: test -z "$as_dir" && as_dir=.
1.150 moko 8221: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8222: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8223: ac_cv_prog_ac_ct_LIPO="lipo"
1.150 moko 8224: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8225: break 2
8226: fi
8227: done
1.150 moko 8228: done
8229: IFS=$as_save_IFS
1.128 moko 8230:
8231: fi
8232: fi
8233: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8234: if test -n "$ac_ct_LIPO"; then
1.150 moko 8235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8236: $as_echo "$ac_ct_LIPO" >&6; }
1.128 moko 8237: else
1.150 moko 8238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239: $as_echo "no" >&6; }
1.128 moko 8240: fi
8241:
1.150 moko 8242: if test "x$ac_ct_LIPO" = x; then
8243: LIPO=":"
8244: else
8245: case $cross_compiling:$ac_tool_warned in
8246: yes:)
8247: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8248: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8249: ac_tool_warned=yes ;;
8250: esac
8251: LIPO=$ac_ct_LIPO
8252: fi
1.128 moko 8253: else
8254: LIPO="$ac_cv_prog_LIPO"
8255: fi
8256:
8257: if test -n "$ac_tool_prefix"; then
8258: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8259: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.150 moko 8260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261: $as_echo_n "checking for $ac_word... " >&6; }
8262: if ${ac_cv_prog_OTOOL+:} false; then :
8263: $as_echo_n "(cached) " >&6
1.128 moko 8264: else
8265: if test -n "$OTOOL"; then
8266: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8267: else
8268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269: for as_dir in $PATH
8270: do
8271: IFS=$as_save_IFS
8272: test -z "$as_dir" && as_dir=.
1.150 moko 8273: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8274: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8275: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.150 moko 8276: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8277: break 2
8278: fi
8279: done
1.150 moko 8280: done
8281: IFS=$as_save_IFS
1.128 moko 8282:
8283: fi
8284: fi
8285: OTOOL=$ac_cv_prog_OTOOL
8286: if test -n "$OTOOL"; then
1.150 moko 8287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8288: $as_echo "$OTOOL" >&6; }
1.128 moko 8289: else
1.150 moko 8290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291: $as_echo "no" >&6; }
1.128 moko 8292: fi
8293:
1.150 moko 8294:
1.128 moko 8295: fi
8296: if test -z "$ac_cv_prog_OTOOL"; then
8297: ac_ct_OTOOL=$OTOOL
8298: # Extract the first word of "otool", so it can be a program name with args.
8299: set dummy otool; ac_word=$2
1.150 moko 8300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301: $as_echo_n "checking for $ac_word... " >&6; }
8302: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8303: $as_echo_n "(cached) " >&6
1.128 moko 8304: else
8305: if test -n "$ac_ct_OTOOL"; then
8306: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8307: else
8308: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309: for as_dir in $PATH
8310: do
8311: IFS=$as_save_IFS
8312: test -z "$as_dir" && as_dir=.
1.150 moko 8313: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8314: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8315: ac_cv_prog_ac_ct_OTOOL="otool"
1.150 moko 8316: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8317: break 2
8318: fi
8319: done
1.150 moko 8320: done
8321: IFS=$as_save_IFS
1.128 moko 8322:
8323: fi
8324: fi
8325: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8326: if test -n "$ac_ct_OTOOL"; then
1.150 moko 8327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8328: $as_echo "$ac_ct_OTOOL" >&6; }
1.128 moko 8329: else
1.150 moko 8330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331: $as_echo "no" >&6; }
1.128 moko 8332: fi
8333:
1.150 moko 8334: if test "x$ac_ct_OTOOL" = x; then
8335: OTOOL=":"
8336: else
8337: case $cross_compiling:$ac_tool_warned in
8338: yes:)
8339: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8340: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8341: ac_tool_warned=yes ;;
8342: esac
8343: OTOOL=$ac_ct_OTOOL
8344: fi
1.128 moko 8345: else
8346: OTOOL="$ac_cv_prog_OTOOL"
8347: fi
8348:
8349: if test -n "$ac_tool_prefix"; then
8350: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8351: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.150 moko 8352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353: $as_echo_n "checking for $ac_word... " >&6; }
8354: if ${ac_cv_prog_OTOOL64+:} false; then :
8355: $as_echo_n "(cached) " >&6
1.128 moko 8356: else
8357: if test -n "$OTOOL64"; then
8358: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8359: else
8360: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361: for as_dir in $PATH
8362: do
8363: IFS=$as_save_IFS
8364: test -z "$as_dir" && as_dir=.
1.150 moko 8365: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8366: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8367: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.150 moko 8368: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8369: break 2
8370: fi
8371: done
1.150 moko 8372: done
8373: IFS=$as_save_IFS
1.128 moko 8374:
8375: fi
8376: fi
8377: OTOOL64=$ac_cv_prog_OTOOL64
8378: if test -n "$OTOOL64"; then
1.150 moko 8379: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8380: $as_echo "$OTOOL64" >&6; }
1.128 moko 8381: else
1.150 moko 8382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383: $as_echo "no" >&6; }
1.128 moko 8384: fi
8385:
1.150 moko 8386:
1.128 moko 8387: fi
8388: if test -z "$ac_cv_prog_OTOOL64"; then
8389: ac_ct_OTOOL64=$OTOOL64
8390: # Extract the first word of "otool64", so it can be a program name with args.
8391: set dummy otool64; ac_word=$2
1.150 moko 8392: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393: $as_echo_n "checking for $ac_word... " >&6; }
8394: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8395: $as_echo_n "(cached) " >&6
1.128 moko 8396: else
8397: if test -n "$ac_ct_OTOOL64"; then
8398: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8399: else
8400: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401: for as_dir in $PATH
8402: do
8403: IFS=$as_save_IFS
8404: test -z "$as_dir" && as_dir=.
1.150 moko 8405: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8406: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8407: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.150 moko 8408: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8409: break 2
8410: fi
8411: done
1.150 moko 8412: done
8413: IFS=$as_save_IFS
1.128 moko 8414:
8415: fi
8416: fi
8417: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8418: if test -n "$ac_ct_OTOOL64"; then
1.150 moko 8419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8420: $as_echo "$ac_ct_OTOOL64" >&6; }
1.128 moko 8421: else
1.150 moko 8422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423: $as_echo "no" >&6; }
1.128 moko 8424: fi
8425:
1.150 moko 8426: if test "x$ac_ct_OTOOL64" = x; then
8427: OTOOL64=":"
8428: else
8429: case $cross_compiling:$ac_tool_warned in
8430: yes:)
8431: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8432: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8433: ac_tool_warned=yes ;;
8434: esac
8435: OTOOL64=$ac_ct_OTOOL64
8436: fi
1.128 moko 8437: else
8438: OTOOL64="$ac_cv_prog_OTOOL64"
8439: fi
8440:
8441:
8442:
8443:
8444:
8445:
8446:
8447:
8448:
8449:
8450:
8451:
8452:
8453:
8454:
8455:
8456:
8457:
8458:
8459:
8460:
8461:
8462:
8463:
8464:
8465:
8466:
1.150 moko 8467: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8468: $as_echo_n "checking for -single_module linker flag... " >&6; }
8469: if ${lt_cv_apple_cc_single_mod+:} false; then :
8470: $as_echo_n "(cached) " >&6
1.128 moko 8471: else
8472: lt_cv_apple_cc_single_mod=no
8473: if test -z "${LT_MULTI_MODULE}"; then
8474: # By default we will add the -single_module flag. You can override
8475: # by either setting the environment variable LT_MULTI_MODULE
8476: # non-empty at configure time, or by adding -multi_module to the
8477: # link flags.
8478: rm -rf libconftest.dylib*
8479: echo "int foo(void){return 1;}" > conftest.c
8480: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8481: -dynamiclib -Wl,-single_module conftest.c" >&5
8482: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8483: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8484: _lt_result=$?
8485: # If there is a non-empty error log, and "single_module"
8486: # appears in it, assume the flag caused a linker warning
8487: if test -s conftest.err && $GREP single_module conftest.err; then
8488: cat conftest.err >&5
8489: # Otherwise, if the output was created with a 0 exit code from
8490: # the compiler, it worked.
8491: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8492: lt_cv_apple_cc_single_mod=yes
8493: else
8494: cat conftest.err >&5
8495: fi
8496: rm -rf libconftest.dylib*
8497: rm -f conftest.*
8498: fi
8499: fi
1.150 moko 8500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8501: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.128 moko 8502:
1.150 moko 8503: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8504: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8505: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8506: $as_echo_n "(cached) " >&6
1.128 moko 8507: else
8508: lt_cv_ld_exported_symbols_list=no
8509: save_LDFLAGS=$LDFLAGS
8510: echo "_main" > conftest.sym
8511: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 8512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8513: /* end confdefs.h. */
8514:
8515: int
8516: main ()
8517: {
8518:
8519: ;
8520: return 0;
8521: }
8522: _ACEOF
1.150 moko 8523: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 8524: lt_cv_ld_exported_symbols_list=yes
8525: else
1.150 moko 8526: lt_cv_ld_exported_symbols_list=no
1.128 moko 8527: fi
1.150 moko 8528: rm -f core conftest.err conftest.$ac_objext \
8529: conftest$ac_exeext conftest.$ac_ext
1.128 moko 8530: LDFLAGS="$save_LDFLAGS"
8531:
8532: fi
1.150 moko 8533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8534: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 8535:
1.150 moko 8536: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8537: $as_echo_n "checking for -force_load linker flag... " >&6; }
8538: if ${lt_cv_ld_force_load+:} false; then :
8539: $as_echo_n "(cached) " >&6
1.128 moko 8540: else
8541: lt_cv_ld_force_load=no
8542: cat > conftest.c << _LT_EOF
8543: int forced_loaded() { return 2;}
8544: _LT_EOF
8545: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8546: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8547: echo "$AR cru libconftest.a conftest.o" >&5
8548: $AR cru libconftest.a conftest.o 2>&5
8549: echo "$RANLIB libconftest.a" >&5
8550: $RANLIB libconftest.a 2>&5
8551: cat > conftest.c << _LT_EOF
8552: int main() { return 0;}
8553: _LT_EOF
8554: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8555: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8556: _lt_result=$?
8557: if test -s conftest.err && $GREP force_load conftest.err; then
8558: cat conftest.err >&5
8559: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8560: lt_cv_ld_force_load=yes
8561: else
8562: cat conftest.err >&5
8563: fi
8564: rm -f conftest.err libconftest.a conftest conftest.c
8565: rm -rf conftest.dSYM
8566:
8567: fi
1.150 moko 8568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8569: $as_echo "$lt_cv_ld_force_load" >&6; }
1.128 moko 8570: case $host_os in
8571: rhapsody* | darwin1.[012])
8572: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8573: darwin1.*)
8574: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8575: darwin*) # darwin 5.x on
8576: # if running on 10.5 or later, the deployment target defaults
8577: # to the OS version, if on x86, and 10.4, the deployment
8578: # target defaults to 10.4. Don't you love it?
8579: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8580: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8581: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8582: 10.[012]*)
8583: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8584: 10.*)
8585: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8586: esac
8587: ;;
8588: esac
8589: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8590: _lt_dar_single_mod='$single_module'
8591: fi
8592: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8593: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8594: else
8595: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8596: fi
8597: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8598: _lt_dsymutil='~$DSYMUTIL $lib || :'
8599: else
8600: _lt_dsymutil=
8601: fi
8602: ;;
8603: esac
8604:
8605: ac_ext=c
8606: ac_cpp='$CPP $CPPFLAGS'
8607: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8608: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8609: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.150 moko 8610: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8611: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.128 moko 8612: # On Suns, sometimes $CPP names a directory.
8613: if test -n "$CPP" && test -d "$CPP"; then
8614: CPP=
8615: fi
8616: if test -z "$CPP"; then
1.150 moko 8617: if ${ac_cv_prog_CPP+:} false; then :
8618: $as_echo_n "(cached) " >&6
1.128 moko 8619: else
8620: # Double quotes because CPP needs to be expanded
8621: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8622: do
8623: ac_preproc_ok=false
8624: for ac_c_preproc_warn_flag in '' yes
8625: do
8626: # Use a header file that comes with gcc, so configuring glibc
8627: # with a fresh cross-compiler works.
8628: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629: # <limits.h> exists even on freestanding compilers.
8630: # On the NeXT, cc -E runs the code through the compiler's parser,
8631: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8632: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8633: /* end confdefs.h. */
8634: #ifdef __STDC__
8635: # include <limits.h>
8636: #else
8637: # include <assert.h>
8638: #endif
8639: Syntax error
8640: _ACEOF
1.150 moko 8641: if ac_fn_c_try_cpp "$LINENO"; then :
8642:
1.128 moko 8643: else
8644: # Broken: fails on valid input.
8645: continue
8646: fi
1.150 moko 8647: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8648:
1.150 moko 8649: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8650: # can be detected and how.
1.150 moko 8651: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8652: /* end confdefs.h. */
8653: #include <ac_nonexistent.h>
8654: _ACEOF
1.150 moko 8655: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8656: # Broken: success on invalid input.
8657: continue
8658: else
8659: # Passes both tests.
8660: ac_preproc_ok=:
8661: break
8662: fi
1.150 moko 8663: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8664:
8665: done
8666: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8667: rm -f conftest.i conftest.err conftest.$ac_ext
8668: if $ac_preproc_ok; then :
1.128 moko 8669: break
8670: fi
8671:
8672: done
8673: ac_cv_prog_CPP=$CPP
8674:
8675: fi
8676: CPP=$ac_cv_prog_CPP
8677: else
8678: ac_cv_prog_CPP=$CPP
8679: fi
1.150 moko 8680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8681: $as_echo "$CPP" >&6; }
1.128 moko 8682: ac_preproc_ok=false
8683: for ac_c_preproc_warn_flag in '' yes
8684: do
8685: # Use a header file that comes with gcc, so configuring glibc
8686: # with a fresh cross-compiler works.
8687: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8688: # <limits.h> exists even on freestanding compilers.
8689: # On the NeXT, cc -E runs the code through the compiler's parser,
8690: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8691: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8692: /* end confdefs.h. */
8693: #ifdef __STDC__
8694: # include <limits.h>
8695: #else
8696: # include <assert.h>
8697: #endif
8698: Syntax error
8699: _ACEOF
1.150 moko 8700: if ac_fn_c_try_cpp "$LINENO"; then :
8701:
1.128 moko 8702: else
8703: # Broken: fails on valid input.
8704: continue
8705: fi
1.150 moko 8706: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8707:
1.150 moko 8708: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8709: # can be detected and how.
1.150 moko 8710: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8711: /* end confdefs.h. */
8712: #include <ac_nonexistent.h>
8713: _ACEOF
1.150 moko 8714: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8715: # Broken: success on invalid input.
8716: continue
8717: else
8718: # Passes both tests.
8719: ac_preproc_ok=:
8720: break
8721: fi
1.150 moko 8722: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8723:
8724: done
8725: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8726: rm -f conftest.i conftest.err conftest.$ac_ext
8727: if $ac_preproc_ok; then :
8728:
1.128 moko 8729: else
1.150 moko 8730: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8731: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8732: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8733: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 8734: fi
8735:
8736: ac_ext=c
8737: ac_cpp='$CPP $CPPFLAGS'
8738: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8739: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8740: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8741:
8742:
1.150 moko 8743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8744: $as_echo_n "checking for ANSI C header files... " >&6; }
8745: if ${ac_cv_header_stdc+:} false; then :
8746: $as_echo_n "(cached) " >&6
1.128 moko 8747: else
1.150 moko 8748: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8749: /* end confdefs.h. */
8750: #include <stdlib.h>
8751: #include <stdarg.h>
8752: #include <string.h>
8753: #include <float.h>
8754:
8755: int
8756: main ()
8757: {
8758:
8759: ;
8760: return 0;
8761: }
8762: _ACEOF
1.150 moko 8763: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 8764: ac_cv_header_stdc=yes
8765: else
1.150 moko 8766: ac_cv_header_stdc=no
1.128 moko 8767: fi
1.150 moko 8768: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 8769:
8770: if test $ac_cv_header_stdc = yes; then
8771: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.150 moko 8772: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8773: /* end confdefs.h. */
8774: #include <string.h>
8775:
8776: _ACEOF
8777: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8778: $EGREP "memchr" >/dev/null 2>&1; then :
8779:
1.128 moko 8780: else
8781: ac_cv_header_stdc=no
8782: fi
8783: rm -f conftest*
8784:
8785: fi
8786:
8787: if test $ac_cv_header_stdc = yes; then
8788: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.150 moko 8789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8790: /* end confdefs.h. */
8791: #include <stdlib.h>
8792:
8793: _ACEOF
8794: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8795: $EGREP "free" >/dev/null 2>&1; then :
8796:
1.128 moko 8797: else
8798: ac_cv_header_stdc=no
8799: fi
8800: rm -f conftest*
8801:
8802: fi
8803:
8804: if test $ac_cv_header_stdc = yes; then
8805: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.150 moko 8806: if test "$cross_compiling" = yes; then :
1.128 moko 8807: :
8808: else
1.150 moko 8809: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8810: /* end confdefs.h. */
8811: #include <ctype.h>
1.150 moko 8812: #include <stdlib.h>
1.128 moko 8813: #if ((' ' & 0x0FF) == 0x020)
8814: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8815: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8816: #else
8817: # define ISLOWER(c) \
8818: (('a' <= (c) && (c) <= 'i') \
8819: || ('j' <= (c) && (c) <= 'r') \
8820: || ('s' <= (c) && (c) <= 'z'))
8821: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8822: #endif
8823:
8824: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8825: int
8826: main ()
8827: {
8828: int i;
8829: for (i = 0; i < 256; i++)
8830: if (XOR (islower (i), ISLOWER (i))
8831: || toupper (i) != TOUPPER (i))
1.150 moko 8832: return 2;
8833: return 0;
1.128 moko 8834: }
8835: _ACEOF
1.150 moko 8836: if ac_fn_c_try_run "$LINENO"; then :
8837:
1.128 moko 8838: else
1.150 moko 8839: ac_cv_header_stdc=no
1.128 moko 8840: fi
1.150 moko 8841: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8842: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 8843: fi
1.150 moko 8844:
1.128 moko 8845: fi
8846: fi
1.150 moko 8847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8848: $as_echo "$ac_cv_header_stdc" >&6; }
1.128 moko 8849: if test $ac_cv_header_stdc = yes; then
8850:
1.150 moko 8851: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 8852:
8853: fi
8854:
8855: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.150 moko 8856: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8857: inttypes.h stdint.h unistd.h
8858: do :
8859: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8860: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8861: "
8862: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8863: cat >>confdefs.h <<_ACEOF
8864: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8865: _ACEOF
1.128 moko 8866:
1.150 moko 8867: fi
1.128 moko 8868:
1.150 moko 8869: done
1.128 moko 8870:
8871:
1.150 moko 8872: for ac_header in dlfcn.h
8873: do :
8874: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8875: "
8876: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8877: cat >>confdefs.h <<_ACEOF
8878: #define HAVE_DLFCN_H 1
8879: _ACEOF
1.128 moko 8880:
1.150 moko 8881: fi
1.128 moko 8882:
1.150 moko 8883: done
1.128 moko 8884:
8885:
8886:
8887:
1.150 moko 8888: func_stripname_cnf ()
8889: {
8890: case ${2} in
8891: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8892: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8893: esac
8894: } # func_stripname_cnf
1.128 moko 8895:
8896:
8897:
8898:
8899:
8900: # Set options
8901: enable_dlopen=yes
8902: enable_win32_dll=yes
8903:
8904: case $host in
8905: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8906: if test -n "$ac_tool_prefix"; then
8907: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8908: set dummy ${ac_tool_prefix}as; ac_word=$2
1.150 moko 8909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910: $as_echo_n "checking for $ac_word... " >&6; }
8911: if ${ac_cv_prog_AS+:} false; then :
8912: $as_echo_n "(cached) " >&6
1.128 moko 8913: else
8914: if test -n "$AS"; then
8915: ac_cv_prog_AS="$AS" # Let the user override the test.
8916: else
8917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918: for as_dir in $PATH
8919: do
8920: IFS=$as_save_IFS
8921: test -z "$as_dir" && as_dir=.
1.150 moko 8922: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8923: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8924: ac_cv_prog_AS="${ac_tool_prefix}as"
1.150 moko 8925: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8926: break 2
8927: fi
8928: done
1.150 moko 8929: done
8930: IFS=$as_save_IFS
1.128 moko 8931:
8932: fi
8933: fi
8934: AS=$ac_cv_prog_AS
8935: if test -n "$AS"; then
1.150 moko 8936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8937: $as_echo "$AS" >&6; }
1.128 moko 8938: else
1.150 moko 8939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940: $as_echo "no" >&6; }
1.128 moko 8941: fi
8942:
1.150 moko 8943:
1.128 moko 8944: fi
8945: if test -z "$ac_cv_prog_AS"; then
8946: ac_ct_AS=$AS
8947: # Extract the first word of "as", so it can be a program name with args.
8948: set dummy as; ac_word=$2
1.150 moko 8949: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950: $as_echo_n "checking for $ac_word... " >&6; }
8951: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8952: $as_echo_n "(cached) " >&6
1.128 moko 8953: else
8954: if test -n "$ac_ct_AS"; then
8955: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8956: else
8957: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958: for as_dir in $PATH
8959: do
8960: IFS=$as_save_IFS
8961: test -z "$as_dir" && as_dir=.
1.150 moko 8962: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8963: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8964: ac_cv_prog_ac_ct_AS="as"
1.150 moko 8965: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8966: break 2
8967: fi
8968: done
1.150 moko 8969: done
8970: IFS=$as_save_IFS
1.128 moko 8971:
8972: fi
8973: fi
8974: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8975: if test -n "$ac_ct_AS"; then
1.150 moko 8976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8977: $as_echo "$ac_ct_AS" >&6; }
1.128 moko 8978: else
1.150 moko 8979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980: $as_echo "no" >&6; }
1.128 moko 8981: fi
8982:
1.150 moko 8983: if test "x$ac_ct_AS" = x; then
8984: AS="false"
8985: else
8986: case $cross_compiling:$ac_tool_warned in
8987: yes:)
8988: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8989: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8990: ac_tool_warned=yes ;;
8991: esac
8992: AS=$ac_ct_AS
8993: fi
1.128 moko 8994: else
8995: AS="$ac_cv_prog_AS"
8996: fi
8997:
8998: if test -n "$ac_tool_prefix"; then
8999: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9000: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 9001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002: $as_echo_n "checking for $ac_word... " >&6; }
9003: if ${ac_cv_prog_DLLTOOL+:} false; then :
9004: $as_echo_n "(cached) " >&6
1.128 moko 9005: else
9006: if test -n "$DLLTOOL"; then
9007: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9008: else
9009: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010: for as_dir in $PATH
9011: do
9012: IFS=$as_save_IFS
9013: test -z "$as_dir" && as_dir=.
1.150 moko 9014: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9015: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9016: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 9017: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9018: break 2
9019: fi
9020: done
1.150 moko 9021: done
9022: IFS=$as_save_IFS
1.128 moko 9023:
9024: fi
9025: fi
9026: DLLTOOL=$ac_cv_prog_DLLTOOL
9027: if test -n "$DLLTOOL"; then
1.150 moko 9028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9029: $as_echo "$DLLTOOL" >&6; }
1.128 moko 9030: else
1.150 moko 9031: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032: $as_echo "no" >&6; }
1.128 moko 9033: fi
9034:
1.150 moko 9035:
1.128 moko 9036: fi
9037: if test -z "$ac_cv_prog_DLLTOOL"; then
9038: ac_ct_DLLTOOL=$DLLTOOL
9039: # Extract the first word of "dlltool", so it can be a program name with args.
9040: set dummy dlltool; ac_word=$2
1.150 moko 9041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042: $as_echo_n "checking for $ac_word... " >&6; }
9043: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9044: $as_echo_n "(cached) " >&6
1.128 moko 9045: else
9046: if test -n "$ac_ct_DLLTOOL"; then
9047: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9048: else
9049: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050: for as_dir in $PATH
9051: do
9052: IFS=$as_save_IFS
9053: test -z "$as_dir" && as_dir=.
1.150 moko 9054: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9055: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9056: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 9057: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9058: break 2
9059: fi
9060: done
1.150 moko 9061: done
9062: IFS=$as_save_IFS
1.128 moko 9063:
9064: fi
9065: fi
9066: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9067: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 9068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9069: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 9070: else
1.150 moko 9071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072: $as_echo "no" >&6; }
1.128 moko 9073: fi
9074:
1.150 moko 9075: if test "x$ac_ct_DLLTOOL" = x; then
9076: DLLTOOL="false"
9077: else
9078: case $cross_compiling:$ac_tool_warned in
9079: yes:)
9080: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9081: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9082: ac_tool_warned=yes ;;
9083: esac
9084: DLLTOOL=$ac_ct_DLLTOOL
9085: fi
1.128 moko 9086: else
9087: DLLTOOL="$ac_cv_prog_DLLTOOL"
9088: fi
9089:
9090: if test -n "$ac_tool_prefix"; then
9091: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9092: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 9093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094: $as_echo_n "checking for $ac_word... " >&6; }
9095: if ${ac_cv_prog_OBJDUMP+:} false; then :
9096: $as_echo_n "(cached) " >&6
1.128 moko 9097: else
9098: if test -n "$OBJDUMP"; then
9099: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9100: else
9101: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102: for as_dir in $PATH
9103: do
9104: IFS=$as_save_IFS
9105: test -z "$as_dir" && as_dir=.
1.150 moko 9106: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9107: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9108: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 9109: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9110: break 2
9111: fi
9112: done
1.150 moko 9113: done
9114: IFS=$as_save_IFS
1.128 moko 9115:
9116: fi
9117: fi
9118: OBJDUMP=$ac_cv_prog_OBJDUMP
9119: if test -n "$OBJDUMP"; then
1.150 moko 9120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9121: $as_echo "$OBJDUMP" >&6; }
1.128 moko 9122: else
1.150 moko 9123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9124: $as_echo "no" >&6; }
1.128 moko 9125: fi
9126:
1.150 moko 9127:
1.128 moko 9128: fi
9129: if test -z "$ac_cv_prog_OBJDUMP"; then
9130: ac_ct_OBJDUMP=$OBJDUMP
9131: # Extract the first word of "objdump", so it can be a program name with args.
9132: set dummy objdump; ac_word=$2
1.150 moko 9133: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134: $as_echo_n "checking for $ac_word... " >&6; }
9135: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9136: $as_echo_n "(cached) " >&6
1.128 moko 9137: else
9138: if test -n "$ac_ct_OBJDUMP"; then
9139: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9140: else
9141: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142: for as_dir in $PATH
9143: do
9144: IFS=$as_save_IFS
9145: test -z "$as_dir" && as_dir=.
1.150 moko 9146: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9147: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9148: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 9149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9150: break 2
9151: fi
9152: done
1.150 moko 9153: done
9154: IFS=$as_save_IFS
1.128 moko 9155:
9156: fi
9157: fi
9158: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9159: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 9160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9161: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 9162: else
1.150 moko 9163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164: $as_echo "no" >&6; }
1.128 moko 9165: fi
9166:
1.150 moko 9167: if test "x$ac_ct_OBJDUMP" = x; then
9168: OBJDUMP="false"
9169: else
9170: case $cross_compiling:$ac_tool_warned in
9171: yes:)
9172: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9173: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9174: ac_tool_warned=yes ;;
9175: esac
9176: OBJDUMP=$ac_ct_OBJDUMP
9177: fi
1.128 moko 9178: else
9179: OBJDUMP="$ac_cv_prog_OBJDUMP"
9180: fi
9181:
9182: ;;
9183: esac
9184:
9185: test -z "$AS" && AS=as
9186:
9187:
9188:
9189:
9190:
9191: test -z "$DLLTOOL" && DLLTOOL=dlltool
9192:
9193:
9194:
9195:
9196:
9197: test -z "$OBJDUMP" && OBJDUMP=objdump
9198:
9199:
9200:
9201:
9202:
1.150 moko 9203: # Check whether --with-pic was given.
9204: if test "${with_pic+set}" = set; then :
9205: withval=$with_pic; lt_p=${PACKAGE-default}
1.145 moko 9206: case $withval in
9207: yes|no) pic_mode=$withval ;;
9208: *)
9209: pic_mode=default
9210: # Look at the argument we got. We use all the common list separators.
9211: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9212: for lt_pkg in $withval; do
9213: IFS="$lt_save_ifs"
9214: if test "X$lt_pkg" = "X$lt_p"; then
9215: pic_mode=yes
9216: fi
9217: done
9218: IFS="$lt_save_ifs"
9219: ;;
9220: esac
9221: else
9222: pic_mode=default
1.150 moko 9223: fi
9224:
1.145 moko 9225:
9226: test -z "$pic_mode" && pic_mode=no
9227:
9228:
9229:
9230:
9231:
9232:
1.128 moko 9233:
9234:
9235:
9236:
1.150 moko 9237: # Check whether --enable-shared was given.
9238: if test "${enable_shared+set}" = set; then :
9239: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 9240: case $enableval in
9241: yes) enable_shared=yes ;;
9242: no) enable_shared=no ;;
9243: *)
9244: enable_shared=no
9245: # Look at the argument we got. We use all the common list separators.
9246: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9247: for pkg in $enableval; do
9248: IFS="$lt_save_ifs"
9249: if test "X$pkg" = "X$p"; then
9250: enable_shared=yes
9251: fi
9252: done
9253: IFS="$lt_save_ifs"
9254: ;;
9255: esac
9256: else
9257: enable_shared=yes
1.150 moko 9258: fi
9259:
1.128 moko 9260:
9261:
9262:
9263:
9264:
9265:
9266:
9267:
1.150 moko 9268: # Check whether --enable-static was given.
9269: if test "${enable_static+set}" = set; then :
9270: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 9271: case $enableval in
9272: yes) enable_static=yes ;;
9273: no) enable_static=no ;;
9274: *)
9275: enable_static=no
9276: # Look at the argument we got. We use all the common list separators.
9277: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9278: for pkg in $enableval; do
9279: IFS="$lt_save_ifs"
9280: if test "X$pkg" = "X$p"; then
9281: enable_static=yes
9282: fi
9283: done
9284: IFS="$lt_save_ifs"
9285: ;;
9286: esac
9287: else
9288: enable_static=yes
1.150 moko 9289: fi
9290:
1.138 moko 9291:
9292:
9293:
9294:
9295:
9296:
9297:
1.128 moko 9298:
9299:
1.150 moko 9300: # Check whether --enable-fast-install was given.
9301: if test "${enable_fast_install+set}" = set; then :
9302: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 9303: case $enableval in
9304: yes) enable_fast_install=yes ;;
9305: no) enable_fast_install=no ;;
9306: *)
9307: enable_fast_install=no
9308: # Look at the argument we got. We use all the common list separators.
9309: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9310: for pkg in $enableval; do
9311: IFS="$lt_save_ifs"
9312: if test "X$pkg" = "X$p"; then
9313: enable_fast_install=yes
9314: fi
9315: done
9316: IFS="$lt_save_ifs"
9317: ;;
9318: esac
9319: else
9320: enable_fast_install=yes
1.150 moko 9321: fi
9322:
1.128 moko 9323:
9324:
9325:
9326:
9327:
9328:
9329:
9330:
9331:
9332:
9333: # This can be used to rebuild libtool when needed
9334: LIBTOOL_DEPS="$ltmain"
9335:
9336: # Always use our own libtool.
9337: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9338:
9339:
9340:
9341:
9342:
9343:
9344:
9345:
9346:
9347:
9348:
9349:
9350:
9351:
9352:
9353:
9354:
9355:
9356:
9357:
9358:
9359:
9360:
9361:
9362:
9363:
9364:
9365:
9366:
9367:
9368: test -z "$LN_S" && LN_S="ln -s"
9369:
9370:
9371:
9372:
9373:
9374:
9375:
9376:
9377:
9378:
9379:
9380:
9381:
9382:
9383: if test -n "${ZSH_VERSION+set}" ; then
9384: setopt NO_GLOB_SUBST
9385: fi
9386:
1.150 moko 9387: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9388: $as_echo_n "checking for objdir... " >&6; }
9389: if ${lt_cv_objdir+:} false; then :
9390: $as_echo_n "(cached) " >&6
1.128 moko 9391: else
9392: rm -f .libs 2>/dev/null
9393: mkdir .libs 2>/dev/null
9394: if test -d .libs; then
9395: lt_cv_objdir=.libs
9396: else
9397: # MS-DOS does not allow filenames that begin with a dot.
9398: lt_cv_objdir=_libs
9399: fi
9400: rmdir .libs 2>/dev/null
9401: fi
1.150 moko 9402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9403: $as_echo "$lt_cv_objdir" >&6; }
1.128 moko 9404: objdir=$lt_cv_objdir
9405:
9406:
9407:
9408:
9409:
9410: cat >>confdefs.h <<_ACEOF
9411: #define LT_OBJDIR "$lt_cv_objdir/"
9412: _ACEOF
9413:
9414:
9415:
9416:
9417: case $host_os in
9418: aix3*)
9419: # AIX sometimes has problems with the GCC collect2 program. For some
9420: # reason, if we set the COLLECT_NAMES environment variable, the problems
9421: # vanish in a puff of smoke.
9422: if test "X${COLLECT_NAMES+set}" != Xset; then
9423: COLLECT_NAMES=
9424: export COLLECT_NAMES
9425: fi
9426: ;;
9427: esac
9428:
9429: # Global variables:
9430: ofile=libtool
9431: can_build_shared=yes
9432:
9433: # All known linkers require a `.a' archive for static linking (except MSVC,
9434: # which needs '.lib').
9435: libext=a
9436:
9437: with_gnu_ld="$lt_cv_prog_gnu_ld"
9438:
9439: old_CC="$CC"
9440: old_CFLAGS="$CFLAGS"
9441:
9442: # Set sane defaults for various variables
9443: test -z "$CC" && CC=cc
9444: test -z "$LTCC" && LTCC=$CC
9445: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9446: test -z "$LD" && LD=ld
9447: test -z "$ac_objext" && ac_objext=o
9448:
9449: for cc_temp in $compiler""; do
9450: case $cc_temp in
9451: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9452: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9453: \-*) ;;
9454: *) break;;
9455: esac
9456: done
9457: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9458:
9459:
9460: # Only perform the check for file, if the check method requires it
9461: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9462: case $deplibs_check_method in
9463: file_magic*)
9464: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.150 moko 9465: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9466: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9467: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9468: $as_echo_n "(cached) " >&6
1.128 moko 9469: else
9470: case $MAGIC_CMD in
9471: [\\/*] | ?:[\\/]*)
9472: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9473: ;;
9474: *)
9475: lt_save_MAGIC_CMD="$MAGIC_CMD"
9476: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9477: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9478: for ac_dir in $ac_dummy; do
9479: IFS="$lt_save_ifs"
9480: test -z "$ac_dir" && ac_dir=.
9481: if test -f $ac_dir/${ac_tool_prefix}file; then
9482: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9483: if test -n "$file_magic_test_file"; then
9484: case $deplibs_check_method in
9485: "file_magic "*)
9486: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9487: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9488: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9489: $EGREP "$file_magic_regex" > /dev/null; then
9490: :
9491: else
9492: cat <<_LT_EOF 1>&2
9493:
9494: *** Warning: the command libtool uses to detect shared libraries,
9495: *** $file_magic_cmd, produces output that libtool cannot recognize.
9496: *** The result is that libtool may fail to recognize shared libraries
9497: *** as such. This will affect the creation of libtool libraries that
9498: *** depend on shared libraries, but programs linked with such libtool
9499: *** libraries will work regardless of this problem. Nevertheless, you
9500: *** may want to report the problem to your system manager and/or to
9501: *** bug-libtool@gnu.org
9502:
9503: _LT_EOF
9504: fi ;;
9505: esac
9506: fi
9507: break
9508: fi
9509: done
9510: IFS="$lt_save_ifs"
9511: MAGIC_CMD="$lt_save_MAGIC_CMD"
9512: ;;
9513: esac
9514: fi
9515:
9516: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9517: if test -n "$MAGIC_CMD"; then
1.150 moko 9518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9519: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9520: else
1.150 moko 9521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522: $as_echo "no" >&6; }
1.128 moko 9523: fi
9524:
9525:
9526:
9527:
9528:
9529: if test -z "$lt_cv_path_MAGIC_CMD"; then
9530: if test -n "$ac_tool_prefix"; then
1.150 moko 9531: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9532: $as_echo_n "checking for file... " >&6; }
9533: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9534: $as_echo_n "(cached) " >&6
1.128 moko 9535: else
9536: case $MAGIC_CMD in
9537: [\\/*] | ?:[\\/]*)
9538: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9539: ;;
9540: *)
9541: lt_save_MAGIC_CMD="$MAGIC_CMD"
9542: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9543: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9544: for ac_dir in $ac_dummy; do
9545: IFS="$lt_save_ifs"
9546: test -z "$ac_dir" && ac_dir=.
9547: if test -f $ac_dir/file; then
9548: lt_cv_path_MAGIC_CMD="$ac_dir/file"
9549: if test -n "$file_magic_test_file"; then
9550: case $deplibs_check_method in
9551: "file_magic "*)
9552: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9553: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9554: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9555: $EGREP "$file_magic_regex" > /dev/null; then
9556: :
9557: else
9558: cat <<_LT_EOF 1>&2
9559:
9560: *** Warning: the command libtool uses to detect shared libraries,
9561: *** $file_magic_cmd, produces output that libtool cannot recognize.
9562: *** The result is that libtool may fail to recognize shared libraries
9563: *** as such. This will affect the creation of libtool libraries that
9564: *** depend on shared libraries, but programs linked with such libtool
9565: *** libraries will work regardless of this problem. Nevertheless, you
9566: *** may want to report the problem to your system manager and/or to
9567: *** bug-libtool@gnu.org
9568:
9569: _LT_EOF
9570: fi ;;
9571: esac
9572: fi
9573: break
9574: fi
9575: done
9576: IFS="$lt_save_ifs"
9577: MAGIC_CMD="$lt_save_MAGIC_CMD"
9578: ;;
9579: esac
9580: fi
9581:
9582: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9583: if test -n "$MAGIC_CMD"; then
1.150 moko 9584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9585: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9586: else
1.150 moko 9587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588: $as_echo "no" >&6; }
1.128 moko 9589: fi
9590:
9591:
9592: else
9593: MAGIC_CMD=:
9594: fi
9595: fi
9596:
9597: fi
9598: ;;
9599: esac
9600:
9601: # Use C for the default configuration in the libtool script
9602:
9603: lt_save_CC="$CC"
9604: ac_ext=c
9605: ac_cpp='$CPP $CPPFLAGS'
9606: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9607: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9608: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9609:
9610:
9611: # Source file extension for C test sources.
9612: ac_ext=c
9613:
9614: # Object file extension for compiled C test sources.
9615: objext=o
9616: objext=$objext
9617:
9618: # Code to be used in simple compile tests
9619: lt_simple_compile_test_code="int some_variable = 0;"
9620:
9621: # Code to be used in simple link tests
9622: lt_simple_link_test_code='int main(){return(0);}'
9623:
9624:
9625:
9626:
9627:
9628:
9629:
9630: # If no C compiler was specified, use CC.
9631: LTCC=${LTCC-"$CC"}
9632:
9633: # If no C compiler flags were specified, use CFLAGS.
9634: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9635:
9636: # Allow CC to be a program name with arguments.
9637: compiler=$CC
9638:
9639: # Save the default compiler, since it gets overwritten when the other
9640: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9641: compiler_DEFAULT=$CC
9642:
9643: # save warnings/boilerplate of simple test code
9644: ac_outfile=conftest.$ac_objext
9645: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9646: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9647: _lt_compiler_boilerplate=`cat conftest.err`
9648: $RM conftest*
9649:
9650: ac_outfile=conftest.$ac_objext
9651: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9652: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9653: _lt_linker_boilerplate=`cat conftest.err`
9654: $RM -r conftest*
9655:
9656:
9657: ## CAVEAT EMPTOR:
9658: ## There is no encapsulation within the following macros, do not change
9659: ## the running order or otherwise move them around unless you know exactly
9660: ## what you are doing...
9661: if test -n "$compiler"; then
9662:
9663: lt_prog_compiler_no_builtin_flag=
9664:
9665: if test "$GCC" = yes; then
9666: case $cc_basename in
9667: nvcc*)
9668: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9669: *)
9670: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9671: esac
9672:
1.150 moko 9673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9674: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9675: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9676: $as_echo_n "(cached) " >&6
1.128 moko 9677: else
9678: lt_cv_prog_compiler_rtti_exceptions=no
9679: ac_outfile=conftest.$ac_objext
9680: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9681: lt_compiler_flag="-fno-rtti -fno-exceptions"
9682: # Insert the option either (1) after the last *FLAGS variable, or
9683: # (2) before a word containing "conftest.", or (3) at the end.
9684: # Note that $ac_compile itself does not contain backslashes and begins
9685: # with a dollar sign (not a hyphen), so the echo should work correctly.
9686: # The option is referenced via a variable to avoid confusing sed.
9687: lt_compile=`echo "$ac_compile" | $SED \
9688: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9689: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9690: -e 's:$: $lt_compiler_flag:'`
9691: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9692: (eval "$lt_compile" 2>conftest.err)
9693: ac_status=$?
9694: cat conftest.err >&5
9695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696: if (exit $ac_status) && test -s "$ac_outfile"; then
9697: # The compiler can only warn and ignore the option if not recognized
9698: # So say no if there are warnings other than the usual output.
9699: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9700: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9701: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9702: lt_cv_prog_compiler_rtti_exceptions=yes
9703: fi
9704: fi
9705: $RM conftest*
9706:
9707: fi
1.150 moko 9708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9709: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 9710:
9711: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9712: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9713: else
9714: :
9715: fi
9716:
9717: fi
9718:
9719:
9720:
9721:
9722:
9723:
9724: lt_prog_compiler_wl=
9725: lt_prog_compiler_pic=
9726: lt_prog_compiler_static=
9727:
9728:
9729: if test "$GCC" = yes; then
9730: lt_prog_compiler_wl='-Wl,'
9731: lt_prog_compiler_static='-static'
9732:
9733: case $host_os in
9734: aix*)
9735: # All AIX code is PIC.
9736: if test "$host_cpu" = ia64; then
9737: # AIX 5 now supports IA64 processor
9738: lt_prog_compiler_static='-Bstatic'
9739: fi
9740: ;;
9741:
9742: amigaos*)
9743: case $host_cpu in
9744: powerpc)
9745: # see comment about AmigaOS4 .so support
9746: lt_prog_compiler_pic='-fPIC'
9747: ;;
9748: m68k)
9749: # FIXME: we need at least 68020 code to build shared libraries, but
9750: # adding the `-m68020' flag to GCC prevents building anything better,
9751: # like `-m68040'.
9752: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9753: ;;
9754: esac
9755: ;;
9756:
9757: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9758: # PIC is the default for these OSes.
9759: ;;
9760:
9761: mingw* | cygwin* | pw32* | os2* | cegcc*)
9762: # This hack is so that the source file can tell whether it is being
9763: # built for inclusion in a dll (and should export symbols for example).
9764: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9765: # (--disable-auto-import) libraries
9766: lt_prog_compiler_pic='-DDLL_EXPORT'
9767: ;;
9768:
9769: darwin* | rhapsody*)
9770: # PIC is the default on this platform
9771: # Common symbols not allowed in MH_DYLIB files
9772: lt_prog_compiler_pic='-fno-common'
9773: ;;
9774:
9775: haiku*)
9776: # PIC is the default for Haiku.
9777: # The "-static" flag exists, but is broken.
9778: lt_prog_compiler_static=
9779: ;;
9780:
9781: hpux*)
9782: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9783: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9784: # sets the default TLS model and affects inlining.
9785: case $host_cpu in
9786: hppa*64*)
9787: # +Z the default
9788: ;;
9789: *)
9790: lt_prog_compiler_pic='-fPIC'
9791: ;;
9792: esac
9793: ;;
9794:
9795: interix[3-9]*)
9796: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9797: # Instead, we relocate shared libraries at runtime.
9798: ;;
9799:
9800: msdosdjgpp*)
9801: # Just because we use GCC doesn't mean we suddenly get shared libraries
9802: # on systems that don't support them.
9803: lt_prog_compiler_can_build_shared=no
9804: enable_shared=no
9805: ;;
9806:
9807: *nto* | *qnx*)
9808: # QNX uses GNU C++, but need to define -shared option too, otherwise
9809: # it will coredump.
9810: lt_prog_compiler_pic='-fPIC -shared'
9811: ;;
9812:
9813: sysv4*MP*)
9814: if test -d /usr/nec; then
9815: lt_prog_compiler_pic=-Kconform_pic
9816: fi
9817: ;;
9818:
9819: *)
9820: lt_prog_compiler_pic='-fPIC'
9821: ;;
9822: esac
9823:
9824: case $cc_basename in
9825: nvcc*) # Cuda Compiler Driver 2.2
9826: lt_prog_compiler_wl='-Xlinker '
9827: if test -n "$lt_prog_compiler_pic"; then
9828: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9829: fi
9830: ;;
9831: esac
9832: else
9833: # PORTME Check for flag to pass linker flags through the system compiler.
9834: case $host_os in
9835: aix*)
9836: lt_prog_compiler_wl='-Wl,'
9837: if test "$host_cpu" = ia64; then
9838: # AIX 5 now supports IA64 processor
9839: lt_prog_compiler_static='-Bstatic'
9840: else
9841: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9842: fi
9843: ;;
9844:
9845: mingw* | cygwin* | pw32* | os2* | cegcc*)
9846: # This hack is so that the source file can tell whether it is being
9847: # built for inclusion in a dll (and should export symbols for example).
9848: lt_prog_compiler_pic='-DDLL_EXPORT'
9849: ;;
9850:
9851: hpux9* | hpux10* | hpux11*)
9852: lt_prog_compiler_wl='-Wl,'
9853: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9854: # not for PA HP-UX.
9855: case $host_cpu in
9856: hppa*64*|ia64*)
9857: # +Z the default
9858: ;;
9859: *)
9860: lt_prog_compiler_pic='+Z'
9861: ;;
9862: esac
9863: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9864: lt_prog_compiler_static='${wl}-a ${wl}archive'
9865: ;;
9866:
9867: irix5* | irix6* | nonstopux*)
9868: lt_prog_compiler_wl='-Wl,'
9869: # PIC (with -KPIC) is the default.
9870: lt_prog_compiler_static='-non_shared'
9871: ;;
9872:
9873: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9874: case $cc_basename in
9875: # old Intel for x86_64 which still supported -KPIC.
9876: ecc*)
9877: lt_prog_compiler_wl='-Wl,'
9878: lt_prog_compiler_pic='-KPIC'
9879: lt_prog_compiler_static='-static'
9880: ;;
9881: # icc used to be incompatible with GCC.
9882: # ICC 10 doesn't accept -KPIC any more.
9883: icc* | ifort*)
9884: lt_prog_compiler_wl='-Wl,'
9885: lt_prog_compiler_pic='-fPIC'
9886: lt_prog_compiler_static='-static'
9887: ;;
9888: # Lahey Fortran 8.1.
9889: lf95*)
9890: lt_prog_compiler_wl='-Wl,'
9891: lt_prog_compiler_pic='--shared'
9892: lt_prog_compiler_static='--static'
9893: ;;
9894: nagfor*)
9895: # NAG Fortran compiler
9896: lt_prog_compiler_wl='-Wl,-Wl,,'
9897: lt_prog_compiler_pic='-PIC'
9898: lt_prog_compiler_static='-Bstatic'
9899: ;;
9900: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9901: # Portland Group compilers (*not* the Pentium gcc compiler,
9902: # which looks to be a dead project)
9903: lt_prog_compiler_wl='-Wl,'
9904: lt_prog_compiler_pic='-fpic'
9905: lt_prog_compiler_static='-Bstatic'
9906: ;;
9907: ccc*)
9908: lt_prog_compiler_wl='-Wl,'
9909: # All Alpha code is PIC.
9910: lt_prog_compiler_static='-non_shared'
9911: ;;
9912: xl* | bgxl* | bgf* | mpixl*)
9913: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9914: lt_prog_compiler_wl='-Wl,'
9915: lt_prog_compiler_pic='-qpic'
9916: lt_prog_compiler_static='-qstaticlink'
9917: ;;
9918: *)
9919: case `$CC -V 2>&1 | sed 5q` in
9920: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9921: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9922: lt_prog_compiler_pic='-KPIC'
9923: lt_prog_compiler_static='-Bstatic'
9924: lt_prog_compiler_wl=''
9925: ;;
9926: *Sun\ F* | *Sun*Fortran*)
9927: lt_prog_compiler_pic='-KPIC'
9928: lt_prog_compiler_static='-Bstatic'
9929: lt_prog_compiler_wl='-Qoption ld '
9930: ;;
9931: *Sun\ C*)
9932: # Sun C 5.9
9933: lt_prog_compiler_pic='-KPIC'
9934: lt_prog_compiler_static='-Bstatic'
9935: lt_prog_compiler_wl='-Wl,'
9936: ;;
9937: *Intel*\ [CF]*Compiler*)
9938: lt_prog_compiler_wl='-Wl,'
9939: lt_prog_compiler_pic='-fPIC'
9940: lt_prog_compiler_static='-static'
9941: ;;
9942: *Portland\ Group*)
9943: lt_prog_compiler_wl='-Wl,'
9944: lt_prog_compiler_pic='-fpic'
9945: lt_prog_compiler_static='-Bstatic'
9946: ;;
9947: esac
9948: ;;
9949: esac
9950: ;;
9951:
9952: newsos6)
9953: lt_prog_compiler_pic='-KPIC'
9954: lt_prog_compiler_static='-Bstatic'
9955: ;;
9956:
9957: *nto* | *qnx*)
9958: # QNX uses GNU C++, but need to define -shared option too, otherwise
9959: # it will coredump.
9960: lt_prog_compiler_pic='-fPIC -shared'
9961: ;;
9962:
9963: osf3* | osf4* | osf5*)
9964: lt_prog_compiler_wl='-Wl,'
9965: # All OSF/1 code is PIC.
9966: lt_prog_compiler_static='-non_shared'
9967: ;;
9968:
9969: rdos*)
9970: lt_prog_compiler_static='-non_shared'
9971: ;;
9972:
9973: solaris*)
9974: lt_prog_compiler_pic='-KPIC'
9975: lt_prog_compiler_static='-Bstatic'
9976: case $cc_basename in
9977: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9978: lt_prog_compiler_wl='-Qoption ld ';;
9979: *)
9980: lt_prog_compiler_wl='-Wl,';;
9981: esac
9982: ;;
9983:
9984: sunos4*)
9985: lt_prog_compiler_wl='-Qoption ld '
9986: lt_prog_compiler_pic='-PIC'
9987: lt_prog_compiler_static='-Bstatic'
9988: ;;
9989:
9990: sysv4 | sysv4.2uw2* | sysv4.3*)
9991: lt_prog_compiler_wl='-Wl,'
9992: lt_prog_compiler_pic='-KPIC'
9993: lt_prog_compiler_static='-Bstatic'
9994: ;;
9995:
9996: sysv4*MP*)
9997: if test -d /usr/nec ;then
9998: lt_prog_compiler_pic='-Kconform_pic'
9999: lt_prog_compiler_static='-Bstatic'
10000: fi
10001: ;;
10002:
10003: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10004: lt_prog_compiler_wl='-Wl,'
10005: lt_prog_compiler_pic='-KPIC'
10006: lt_prog_compiler_static='-Bstatic'
10007: ;;
10008:
10009: unicos*)
10010: lt_prog_compiler_wl='-Wl,'
10011: lt_prog_compiler_can_build_shared=no
10012: ;;
10013:
10014: uts4*)
10015: lt_prog_compiler_pic='-pic'
10016: lt_prog_compiler_static='-Bstatic'
10017: ;;
10018:
10019: *)
10020: lt_prog_compiler_can_build_shared=no
10021: ;;
10022: esac
10023: fi
10024:
10025: case $host_os in
10026: # For platforms which do not support PIC, -DPIC is meaningless:
10027: *djgpp*)
10028: lt_prog_compiler_pic=
10029: ;;
10030: *)
10031: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10032: ;;
10033: esac
10034:
1.150 moko 10035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10036: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10037: if ${lt_cv_prog_compiler_pic+:} false; then :
10038: $as_echo_n "(cached) " >&6
1.128 moko 10039: else
10040: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10041: fi
1.150 moko 10042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10043: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 10044: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10045:
10046: #
10047: # Check to make sure the PIC flag actually works.
10048: #
10049: if test -n "$lt_prog_compiler_pic"; then
1.150 moko 10050: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10051: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10052: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10053: $as_echo_n "(cached) " >&6
1.128 moko 10054: else
10055: lt_cv_prog_compiler_pic_works=no
10056: ac_outfile=conftest.$ac_objext
10057: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10058: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10059: # Insert the option either (1) after the last *FLAGS variable, or
10060: # (2) before a word containing "conftest.", or (3) at the end.
10061: # Note that $ac_compile itself does not contain backslashes and begins
10062: # with a dollar sign (not a hyphen), so the echo should work correctly.
10063: # The option is referenced via a variable to avoid confusing sed.
10064: lt_compile=`echo "$ac_compile" | $SED \
10065: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10066: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10067: -e 's:$: $lt_compiler_flag:'`
10068: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10069: (eval "$lt_compile" 2>conftest.err)
10070: ac_status=$?
10071: cat conftest.err >&5
10072: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073: if (exit $ac_status) && test -s "$ac_outfile"; then
10074: # The compiler can only warn and ignore the option if not recognized
10075: # So say no if there are warnings other than the usual output.
10076: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10077: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10078: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10079: lt_cv_prog_compiler_pic_works=yes
10080: fi
10081: fi
10082: $RM conftest*
10083:
10084: fi
1.150 moko 10085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10086: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 10087:
10088: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10089: case $lt_prog_compiler_pic in
10090: "" | " "*) ;;
10091: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10092: esac
10093: else
10094: lt_prog_compiler_pic=
10095: lt_prog_compiler_can_build_shared=no
10096: fi
10097:
10098: fi
10099:
10100:
10101:
10102:
10103:
10104:
10105:
10106:
10107:
10108:
10109:
10110: #
10111: # Check to make sure the static flag actually works.
10112: #
10113: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.150 moko 10114: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10115: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10116: if ${lt_cv_prog_compiler_static_works+:} false; then :
10117: $as_echo_n "(cached) " >&6
1.128 moko 10118: else
10119: lt_cv_prog_compiler_static_works=no
10120: save_LDFLAGS="$LDFLAGS"
10121: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10122: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10123: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10124: # The linker can only warn and ignore the option if not recognized
10125: # So say no if there are warnings
10126: if test -s conftest.err; then
10127: # Append any errors to the config.log.
10128: cat conftest.err 1>&5
10129: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10130: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10131: if diff conftest.exp conftest.er2 >/dev/null; then
10132: lt_cv_prog_compiler_static_works=yes
10133: fi
10134: else
10135: lt_cv_prog_compiler_static_works=yes
10136: fi
10137: fi
10138: $RM -r conftest*
10139: LDFLAGS="$save_LDFLAGS"
10140:
10141: fi
1.150 moko 10142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10143: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 10144:
10145: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10146: :
10147: else
10148: lt_prog_compiler_static=
10149: fi
10150:
10151:
10152:
10153:
10154:
10155:
10156:
1.150 moko 10157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10158: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10159: if ${lt_cv_prog_compiler_c_o+:} false; then :
10160: $as_echo_n "(cached) " >&6
1.128 moko 10161: else
10162: lt_cv_prog_compiler_c_o=no
10163: $RM -r conftest 2>/dev/null
10164: mkdir conftest
10165: cd conftest
10166: mkdir out
10167: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10168:
10169: lt_compiler_flag="-o out/conftest2.$ac_objext"
10170: # Insert the option either (1) after the last *FLAGS variable, or
10171: # (2) before a word containing "conftest.", or (3) at the end.
10172: # Note that $ac_compile itself does not contain backslashes and begins
10173: # with a dollar sign (not a hyphen), so the echo should work correctly.
10174: lt_compile=`echo "$ac_compile" | $SED \
10175: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10176: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10177: -e 's:$: $lt_compiler_flag:'`
10178: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10179: (eval "$lt_compile" 2>out/conftest.err)
10180: ac_status=$?
10181: cat out/conftest.err >&5
10182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10184: then
10185: # The compiler can only warn and ignore the option if not recognized
10186: # So say no if there are warnings
10187: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10188: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10189: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10190: lt_cv_prog_compiler_c_o=yes
10191: fi
10192: fi
10193: chmod u+w . 2>&5
10194: $RM conftest*
10195: # SGI C++ compiler will create directory out/ii_files/ for
10196: # template instantiation
10197: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10198: $RM out/* && rmdir out
10199: cd ..
10200: $RM -r conftest
10201: $RM conftest*
10202:
10203: fi
1.150 moko 10204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10205: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10206:
10207:
10208:
10209:
10210:
10211:
1.150 moko 10212: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10213: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10214: if ${lt_cv_prog_compiler_c_o+:} false; then :
10215: $as_echo_n "(cached) " >&6
1.128 moko 10216: else
10217: lt_cv_prog_compiler_c_o=no
10218: $RM -r conftest 2>/dev/null
10219: mkdir conftest
10220: cd conftest
10221: mkdir out
10222: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10223:
10224: lt_compiler_flag="-o out/conftest2.$ac_objext"
10225: # Insert the option either (1) after the last *FLAGS variable, or
10226: # (2) before a word containing "conftest.", or (3) at the end.
10227: # Note that $ac_compile itself does not contain backslashes and begins
10228: # with a dollar sign (not a hyphen), so the echo should work correctly.
10229: lt_compile=`echo "$ac_compile" | $SED \
10230: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10231: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10232: -e 's:$: $lt_compiler_flag:'`
10233: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10234: (eval "$lt_compile" 2>out/conftest.err)
10235: ac_status=$?
10236: cat out/conftest.err >&5
10237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10239: then
10240: # The compiler can only warn and ignore the option if not recognized
10241: # So say no if there are warnings
10242: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10243: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10244: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10245: lt_cv_prog_compiler_c_o=yes
10246: fi
10247: fi
10248: chmod u+w . 2>&5
10249: $RM conftest*
10250: # SGI C++ compiler will create directory out/ii_files/ for
10251: # template instantiation
10252: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10253: $RM out/* && rmdir out
10254: cd ..
10255: $RM -r conftest
10256: $RM conftest*
10257:
10258: fi
1.150 moko 10259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10260: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10261:
10262:
10263:
10264:
10265: hard_links="nottested"
10266: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10267: # do not overwrite the value of need_locks provided by the user
1.150 moko 10268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10269: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 10270: hard_links=yes
10271: $RM conftest*
10272: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10273: touch conftest.a
10274: ln conftest.a conftest.b 2>&5 || hard_links=no
10275: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 10276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10277: $as_echo "$hard_links" >&6; }
1.128 moko 10278: if test "$hard_links" = no; then
1.150 moko 10279: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10280: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 10281: need_locks=warn
10282: fi
10283: else
10284: need_locks=no
10285: fi
10286:
10287:
10288:
10289:
10290:
10291:
1.150 moko 10292: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10293: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 10294:
10295: runpath_var=
10296: allow_undefined_flag=
10297: always_export_symbols=no
10298: archive_cmds=
10299: archive_expsym_cmds=
10300: compiler_needs_object=no
10301: enable_shared_with_static_runtimes=no
10302: export_dynamic_flag_spec=
10303: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10304: hardcode_automatic=no
10305: hardcode_direct=no
10306: hardcode_direct_absolute=no
10307: hardcode_libdir_flag_spec=
10308: hardcode_libdir_separator=
10309: hardcode_minus_L=no
10310: hardcode_shlibpath_var=unsupported
10311: inherit_rpath=no
10312: link_all_deplibs=unknown
10313: module_cmds=
10314: module_expsym_cmds=
10315: old_archive_from_new_cmds=
10316: old_archive_from_expsyms_cmds=
10317: thread_safe_flag_spec=
10318: whole_archive_flag_spec=
10319: # include_expsyms should be a list of space-separated symbols to be *always*
10320: # included in the symbol list
10321: include_expsyms=
10322: # exclude_expsyms can be an extended regexp of symbols to exclude
10323: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10324: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10325: # as well as any symbol that contains `d'.
10326: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10327: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10328: # platforms (ab)use it in PIC code, but their linkers get confused if
10329: # the symbol is explicitly referenced. Since portable code cannot
10330: # rely on this symbol name, it's probably fine to never include it in
10331: # preloaded symbol tables.
10332: # Exclude shared library initialization/finalization symbols.
10333: extract_expsyms_cmds=
10334:
10335: case $host_os in
10336: cygwin* | mingw* | pw32* | cegcc*)
10337: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10338: # When not using gcc, we currently assume that we are using
10339: # Microsoft Visual C++.
10340: if test "$GCC" != yes; then
10341: with_gnu_ld=no
10342: fi
10343: ;;
10344: interix*)
10345: # we just hope/assume this is gcc and not c89 (= MSVC++)
10346: with_gnu_ld=yes
10347: ;;
10348: openbsd*)
10349: with_gnu_ld=no
10350: ;;
10351: esac
10352:
10353: ld_shlibs=yes
10354:
10355: # On some targets, GNU ld is compatible enough with the native linker
10356: # that we're better off using the native interface for both.
10357: lt_use_gnu_ld_interface=no
10358: if test "$with_gnu_ld" = yes; then
10359: case $host_os in
10360: aix*)
10361: # The AIX port of GNU ld has always aspired to compatibility
10362: # with the native linker. However, as the warning in the GNU ld
10363: # block says, versions before 2.19.5* couldn't really create working
10364: # shared libraries, regardless of the interface used.
10365: case `$LD -v 2>&1` in
10366: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10367: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10368: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10369: *)
10370: lt_use_gnu_ld_interface=yes
10371: ;;
10372: esac
10373: ;;
10374: *)
10375: lt_use_gnu_ld_interface=yes
10376: ;;
10377: esac
10378: fi
10379:
10380: if test "$lt_use_gnu_ld_interface" = yes; then
10381: # If archive_cmds runs LD, not CC, wlarc should be empty
10382: wlarc='${wl}'
10383:
10384: # Set some defaults for GNU ld with shared library support. These
10385: # are reset later if shared libraries are not supported. Putting them
10386: # here allows them to be overridden if necessary.
10387: runpath_var=LD_RUN_PATH
10388: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10389: export_dynamic_flag_spec='${wl}--export-dynamic'
10390: # ancient GNU ld didn't support --whole-archive et. al.
10391: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10392: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10393: else
10394: whole_archive_flag_spec=
10395: fi
10396: supports_anon_versioning=no
10397: case `$LD -v 2>&1` in
10398: *GNU\ gold*) supports_anon_versioning=yes ;;
10399: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10400: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10401: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10402: *\ 2.11.*) ;; # other 2.11 versions
10403: *) supports_anon_versioning=yes ;;
10404: esac
10405:
10406: # See if GNU ld supports shared libraries.
10407: case $host_os in
10408: aix[3-9]*)
10409: # On AIX/PPC, the GNU linker is very broken
10410: if test "$host_cpu" != ia64; then
10411: ld_shlibs=no
10412: cat <<_LT_EOF 1>&2
10413:
10414: *** Warning: the GNU linker, at least up to release 2.19, is reported
10415: *** to be unable to reliably create shared libraries on AIX.
10416: *** Therefore, libtool is disabling shared libraries support. If you
10417: *** really care for shared libraries, you may want to install binutils
10418: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10419: *** You will then need to restart the configuration process.
10420:
10421: _LT_EOF
10422: fi
10423: ;;
10424:
10425: amigaos*)
10426: case $host_cpu in
10427: powerpc)
10428: # see comment about AmigaOS4 .so support
10429: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10430: archive_expsym_cmds=''
10431: ;;
10432: m68k)
10433: 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)'
10434: hardcode_libdir_flag_spec='-L$libdir'
10435: hardcode_minus_L=yes
10436: ;;
10437: esac
10438: ;;
10439:
10440: beos*)
10441: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10442: allow_undefined_flag=unsupported
10443: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10444: # support --undefined. This deserves some investigation. FIXME
10445: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10446: else
10447: ld_shlibs=no
10448: fi
10449: ;;
10450:
10451: cygwin* | mingw* | pw32* | cegcc*)
10452: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10453: # as there is no search path for DLLs.
10454: hardcode_libdir_flag_spec='-L$libdir'
10455: export_dynamic_flag_spec='${wl}--export-all-symbols'
10456: allow_undefined_flag=unsupported
10457: always_export_symbols=no
10458: enable_shared_with_static_runtimes=yes
10459: 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'
10460: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10461:
10462: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10463: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10464: # If the export-symbols file already is a .def file (1st line
10465: # is EXPORTS), use it as is; otherwise, prepend...
10466: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10467: cp $export_symbols $output_objdir/$soname.def;
10468: else
10469: echo EXPORTS > $output_objdir/$soname.def;
10470: cat $export_symbols >> $output_objdir/$soname.def;
10471: fi~
10472: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10473: else
10474: ld_shlibs=no
10475: fi
10476: ;;
10477:
10478: haiku*)
10479: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10480: link_all_deplibs=yes
10481: ;;
10482:
10483: interix[3-9]*)
10484: hardcode_direct=no
10485: hardcode_shlibpath_var=no
10486: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10487: export_dynamic_flag_spec='${wl}-E'
10488: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10489: # Instead, shared libraries are loaded at an image base (0x10000000 by
10490: # default) and relocated if they conflict, which is a slow very memory
10491: # consuming and fragmenting process. To avoid this, we pick a random,
10492: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10493: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10494: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10495: 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'
10496: ;;
10497:
10498: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10499: tmp_diet=no
10500: if test "$host_os" = linux-dietlibc; then
10501: case $cc_basename in
10502: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10503: esac
10504: fi
10505: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10506: && test "$tmp_diet" = no
10507: then
10508: tmp_addflag=' $pic_flag'
10509: tmp_sharedflag='-shared'
10510: case $cc_basename,$host_cpu in
10511: pgcc*) # Portland Group C compiler
10512: 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'
10513: tmp_addflag=' $pic_flag'
10514: ;;
10515: pgf77* | pgf90* | pgf95* | pgfortran*)
10516: # Portland Group f77 and f90 compilers
10517: 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'
10518: tmp_addflag=' $pic_flag -Mnomain' ;;
10519: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10520: tmp_addflag=' -i_dynamic' ;;
10521: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10522: tmp_addflag=' -i_dynamic -nofor_main' ;;
10523: ifc* | ifort*) # Intel Fortran compiler
10524: tmp_addflag=' -nofor_main' ;;
10525: lf95*) # Lahey Fortran 8.1
10526: whole_archive_flag_spec=
10527: tmp_sharedflag='--shared' ;;
10528: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10529: tmp_sharedflag='-qmkshrobj'
10530: tmp_addflag= ;;
10531: nvcc*) # Cuda Compiler Driver 2.2
10532: 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'
10533: compiler_needs_object=yes
10534: ;;
10535: esac
10536: case `$CC -V 2>&1 | sed 5q` in
10537: *Sun\ C*) # Sun C 5.9
10538: 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'
10539: compiler_needs_object=yes
10540: tmp_sharedflag='-G' ;;
10541: *Sun\ F*) # Sun Fortran 8.3
10542: tmp_sharedflag='-G' ;;
10543: esac
10544: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10545:
10546: if test "x$supports_anon_versioning" = xyes; then
10547: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10548: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10549: echo "local: *; };" >> $output_objdir/$libname.ver~
10550: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10551: fi
10552:
10553: case $cc_basename in
10554: xlf* | bgf* | bgxlf* | mpixlf*)
10555: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10556: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10557: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10559: if test "x$supports_anon_versioning" = xyes; then
10560: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10561: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10562: echo "local: *; };" >> $output_objdir/$libname.ver~
10563: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10564: fi
10565: ;;
10566: esac
10567: else
10568: ld_shlibs=no
10569: fi
10570: ;;
10571:
10572: netbsd*)
10573: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10574: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10575: wlarc=
10576: else
10577: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10578: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10579: fi
10580: ;;
10581:
10582: solaris*)
10583: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10584: ld_shlibs=no
10585: cat <<_LT_EOF 1>&2
10586:
10587: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10588: *** create shared libraries on Solaris systems. Therefore, libtool
10589: *** is disabling shared libraries support. We urge you to upgrade GNU
10590: *** binutils to release 2.9.1 or newer. Another option is to modify
10591: *** your PATH or compiler configuration so that the native linker is
10592: *** used, and then restart.
10593:
10594: _LT_EOF
10595: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10596: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10597: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10598: else
10599: ld_shlibs=no
10600: fi
10601: ;;
10602:
10603: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10604: case `$LD -v 2>&1` in
10605: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10606: ld_shlibs=no
10607: cat <<_LT_EOF 1>&2
10608:
10609: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10610: *** reliably create shared libraries on SCO systems. Therefore, libtool
10611: *** is disabling shared libraries support. We urge you to upgrade GNU
10612: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10613: *** your PATH or compiler configuration so that the native linker is
10614: *** used, and then restart.
10615:
10616: _LT_EOF
10617: ;;
10618: *)
10619: # For security reasons, it is highly recommended that you always
10620: # use absolute paths for naming shared libraries, and exclude the
10621: # DT_RUNPATH tag from executables and libraries. But doing so
10622: # requires that you compile everything twice, which is a pain.
10623: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10624: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10625: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10626: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10627: else
10628: ld_shlibs=no
10629: fi
10630: ;;
10631: esac
10632: ;;
10633:
10634: sunos4*)
10635: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10636: wlarc=
10637: hardcode_direct=yes
10638: hardcode_shlibpath_var=no
10639: ;;
10640:
10641: *)
10642: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10643: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10644: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10645: else
10646: ld_shlibs=no
10647: fi
10648: ;;
10649: esac
10650:
10651: if test "$ld_shlibs" = no; then
10652: runpath_var=
10653: hardcode_libdir_flag_spec=
10654: export_dynamic_flag_spec=
10655: whole_archive_flag_spec=
10656: fi
10657: else
10658: # PORTME fill in a description of your system's linker (not GNU ld)
10659: case $host_os in
10660: aix3*)
10661: allow_undefined_flag=unsupported
10662: always_export_symbols=yes
10663: 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'
10664: # Note: this linker hardcodes the directories in LIBPATH if there
10665: # are no directories specified by -L.
10666: hardcode_minus_L=yes
10667: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10668: # Neither direct hardcoding nor static linking is supported with a
10669: # broken collect2.
10670: hardcode_direct=unsupported
10671: fi
10672: ;;
10673:
10674: aix[4-9]*)
10675: if test "$host_cpu" = ia64; then
10676: # On IA64, the linker does run time linking by default, so we don't
10677: # have to do anything special.
10678: aix_use_runtimelinking=no
10679: exp_sym_flag='-Bexport'
10680: no_entry_flag=""
10681: else
10682: # If we're using GNU nm, then we don't want the "-C" option.
10683: # -C means demangle to AIX nm, but means don't demangle with GNU nm
10684: # Also, AIX nm treats weak defined symbols like other global
10685: # defined symbols, whereas GNU nm marks them as "W".
10686: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10687: 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'
10688: else
10689: 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'
10690: fi
10691: aix_use_runtimelinking=no
10692:
10693: # Test if we are trying to use run time linking or normal
10694: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10695: # need to do runtime linking.
10696: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10697: for ld_flag in $LDFLAGS; do
10698: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10699: aix_use_runtimelinking=yes
10700: break
10701: fi
10702: done
10703: ;;
10704: esac
10705:
10706: exp_sym_flag='-bexport'
10707: no_entry_flag='-bnoentry'
10708: fi
10709:
10710: # When large executables or shared objects are built, AIX ld can
10711: # have problems creating the table of contents. If linking a library
10712: # or program results in "error TOC overflow" add -mminimal-toc to
10713: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10714: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10715:
10716: archive_cmds=''
10717: hardcode_direct=yes
10718: hardcode_direct_absolute=yes
10719: hardcode_libdir_separator=':'
10720: link_all_deplibs=yes
10721: file_list_spec='${wl}-f,'
10722:
10723: if test "$GCC" = yes; then
10724: case $host_os in aix4.[012]|aix4.[012].*)
10725: # We only want to do this on AIX 4.2 and lower, the check
10726: # below for broken collect2 doesn't work under 4.3+
10727: collect2name=`${CC} -print-prog-name=collect2`
10728: if test -f "$collect2name" &&
10729: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10730: then
10731: # We have reworked collect2
10732: :
10733: else
10734: # We have old collect2
10735: hardcode_direct=unsupported
10736: # It fails to find uninstalled libraries when the uninstalled
10737: # path is not listed in the libpath. Setting hardcode_minus_L
10738: # to unsupported forces relinking
10739: hardcode_minus_L=yes
10740: hardcode_libdir_flag_spec='-L$libdir'
10741: hardcode_libdir_separator=
10742: fi
10743: ;;
10744: esac
10745: shared_flag='-shared'
10746: if test "$aix_use_runtimelinking" = yes; then
10747: shared_flag="$shared_flag "'${wl}-G'
10748: fi
10749: else
10750: # not using gcc
10751: if test "$host_cpu" = ia64; then
10752: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10753: # chokes on -Wl,-G. The following line is correct:
10754: shared_flag='-G'
10755: else
10756: if test "$aix_use_runtimelinking" = yes; then
10757: shared_flag='${wl}-G'
10758: else
10759: shared_flag='${wl}-bM:SRE'
10760: fi
10761: fi
10762: fi
10763:
10764: export_dynamic_flag_spec='${wl}-bexpall'
10765: # It seems that -bexpall does not export symbols beginning with
10766: # underscore (_), so it is better to generate a list of symbols to export.
10767: always_export_symbols=yes
10768: if test "$aix_use_runtimelinking" = yes; then
10769: # Warning - without using the other runtime loading flags (-brtl),
10770: # -berok will link without error, but may produce a broken library.
10771: allow_undefined_flag='-berok'
10772: # Determine the default libpath from the value encoded in an
10773: # empty executable.
10774: if test "${lt_cv_aix_libpath+set}" = set; then
10775: aix_libpath=$lt_cv_aix_libpath
10776: else
1.150 moko 10777: if ${lt_cv_aix_libpath_+:} false; then :
10778: $as_echo_n "(cached) " >&6
1.128 moko 10779: else
1.150 moko 10780: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10781: /* end confdefs.h. */
10782:
10783: int
10784: main ()
10785: {
10786:
10787: ;
10788: return 0;
10789: }
10790: _ACEOF
1.150 moko 10791: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10792:
10793: lt_aix_libpath_sed='
10794: /Import File Strings/,/^$/ {
10795: /^0/ {
10796: s/^0 *\([^ ]*\) *$/\1/
10797: p
10798: }
10799: }'
10800: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10801: # Check for a 64-bit object if we didn't find anything.
10802: if test -z "$lt_cv_aix_libpath_"; then
10803: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10804: fi
10805: fi
1.150 moko 10806: rm -f core conftest.err conftest.$ac_objext \
10807: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10808: if test -z "$lt_cv_aix_libpath_"; then
10809: lt_cv_aix_libpath_="/usr/lib:/lib"
10810: fi
10811:
10812: fi
10813:
10814: aix_libpath=$lt_cv_aix_libpath_
10815: fi
10816:
10817: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10818: 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"
10819: else
10820: if test "$host_cpu" = ia64; then
10821: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10822: allow_undefined_flag="-z nodefs"
10823: 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"
10824: else
10825: # Determine the default libpath from the value encoded in an
10826: # empty executable.
10827: if test "${lt_cv_aix_libpath+set}" = set; then
10828: aix_libpath=$lt_cv_aix_libpath
10829: else
1.150 moko 10830: if ${lt_cv_aix_libpath_+:} false; then :
10831: $as_echo_n "(cached) " >&6
1.128 moko 10832: else
1.150 moko 10833: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10834: /* end confdefs.h. */
10835:
10836: int
10837: main ()
10838: {
10839:
10840: ;
10841: return 0;
10842: }
10843: _ACEOF
1.150 moko 10844: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10845:
10846: lt_aix_libpath_sed='
10847: /Import File Strings/,/^$/ {
10848: /^0/ {
10849: s/^0 *\([^ ]*\) *$/\1/
10850: p
10851: }
10852: }'
10853: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10854: # Check for a 64-bit object if we didn't find anything.
10855: if test -z "$lt_cv_aix_libpath_"; then
10856: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10857: fi
10858: fi
1.150 moko 10859: rm -f core conftest.err conftest.$ac_objext \
10860: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10861: if test -z "$lt_cv_aix_libpath_"; then
10862: lt_cv_aix_libpath_="/usr/lib:/lib"
10863: fi
10864:
10865: fi
10866:
10867: aix_libpath=$lt_cv_aix_libpath_
10868: fi
10869:
10870: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10871: # Warning - without using the other run time loading flags,
10872: # -berok will link without error, but may produce a broken library.
10873: no_undefined_flag=' ${wl}-bernotok'
10874: allow_undefined_flag=' ${wl}-berok'
10875: if test "$with_gnu_ld" = yes; then
10876: # We only use this code for GNU lds that support --whole-archive.
10877: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10878: else
10879: # Exported symbols can be pulled into shared objects from archives
10880: whole_archive_flag_spec='$convenience'
10881: fi
10882: archive_cmds_need_lc=yes
10883: # This is similar to how AIX traditionally builds its shared libraries.
10884: 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'
10885: fi
10886: fi
10887: ;;
10888:
10889: amigaos*)
10890: case $host_cpu in
10891: powerpc)
10892: # see comment about AmigaOS4 .so support
10893: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10894: archive_expsym_cmds=''
10895: ;;
10896: m68k)
10897: 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)'
10898: hardcode_libdir_flag_spec='-L$libdir'
10899: hardcode_minus_L=yes
10900: ;;
10901: esac
10902: ;;
10903:
10904: bsdi[45]*)
10905: export_dynamic_flag_spec=-rdynamic
10906: ;;
10907:
10908: cygwin* | mingw* | pw32* | cegcc*)
10909: # When not using gcc, we currently assume that we are using
10910: # Microsoft Visual C++.
10911: # hardcode_libdir_flag_spec is actually meaningless, as there is
10912: # no search path for DLLs.
10913: case $cc_basename in
10914: cl*)
10915: # Native MSVC
10916: hardcode_libdir_flag_spec=' '
10917: allow_undefined_flag=unsupported
10918: always_export_symbols=yes
10919: file_list_spec='@'
10920: # Tell ltmain to make .lib files, not .a files.
10921: libext=lib
10922: # Tell ltmain to make .dll files, not .so files.
10923: shrext_cmds=".dll"
10924: # FIXME: Setting linknames here is a bad hack.
10925: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10926: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10927: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10928: else
10929: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10930: fi~
10931: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10932: linknames='
10933: # The linker will not automatically build a static lib if we build a DLL.
10934: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10935: enable_shared_with_static_runtimes=yes
10936: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10937: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10938: # Don't use ranlib
10939: old_postinstall_cmds='chmod 644 $oldlib'
10940: postlink_cmds='lt_outputfile="@OUTPUT@"~
10941: lt_tool_outputfile="@TOOL_OUTPUT@"~
10942: case $lt_outputfile in
10943: *.exe|*.EXE) ;;
10944: *)
10945: lt_outputfile="$lt_outputfile.exe"
10946: lt_tool_outputfile="$lt_tool_outputfile.exe"
10947: ;;
10948: esac~
10949: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10950: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10951: $RM "$lt_outputfile.manifest";
10952: fi'
10953: ;;
10954: *)
10955: # Assume MSVC wrapper
10956: hardcode_libdir_flag_spec=' '
10957: allow_undefined_flag=unsupported
10958: # Tell ltmain to make .lib files, not .a files.
10959: libext=lib
10960: # Tell ltmain to make .dll files, not .so files.
10961: shrext_cmds=".dll"
10962: # FIXME: Setting linknames here is a bad hack.
10963: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10964: # The linker will automatically build a .lib file if we build a DLL.
10965: old_archive_from_new_cmds='true'
10966: # FIXME: Should let the user specify the lib program.
10967: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10968: enable_shared_with_static_runtimes=yes
10969: ;;
10970: esac
10971: ;;
10972:
10973: darwin* | rhapsody*)
10974:
10975:
10976: archive_cmds_need_lc=no
10977: hardcode_direct=no
10978: hardcode_automatic=yes
10979: hardcode_shlibpath_var=unsupported
10980: if test "$lt_cv_ld_force_load" = "yes"; then
10981: 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\"`'
10982:
10983: else
10984: whole_archive_flag_spec=''
10985: fi
10986: link_all_deplibs=yes
10987: allow_undefined_flag="$_lt_dar_allow_undefined"
10988: case $cc_basename in
10989: ifort*) _lt_dar_can_shared=yes ;;
10990: *) _lt_dar_can_shared=$GCC ;;
10991: esac
10992: if test "$_lt_dar_can_shared" = "yes"; then
10993: output_verbose_link_cmd=func_echo_all
10994: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10995: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10996: 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}"
10997: 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}"
10998:
10999: else
11000: ld_shlibs=no
11001: fi
11002:
11003: ;;
11004:
11005: dgux*)
11006: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007: hardcode_libdir_flag_spec='-L$libdir'
11008: hardcode_shlibpath_var=no
11009: ;;
11010:
11011: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11012: # support. Future versions do this automatically, but an explicit c++rt0.o
11013: # does not break anything, and helps significantly (at the cost of a little
11014: # extra space).
11015: freebsd2.2*)
11016: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11017: hardcode_libdir_flag_spec='-R$libdir'
11018: hardcode_direct=yes
11019: hardcode_shlibpath_var=no
11020: ;;
11021:
11022: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11023: freebsd2.*)
11024: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11025: hardcode_direct=yes
11026: hardcode_minus_L=yes
11027: hardcode_shlibpath_var=no
11028: ;;
11029:
11030: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11031: freebsd* | dragonfly*)
11032: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11033: hardcode_libdir_flag_spec='-R$libdir'
11034: hardcode_direct=yes
11035: hardcode_shlibpath_var=no
11036: ;;
11037:
11038: hpux9*)
11039: if test "$GCC" = yes; then
11040: 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'
11041: else
11042: 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'
11043: fi
11044: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11045: hardcode_libdir_separator=:
11046: hardcode_direct=yes
11047:
11048: # hardcode_minus_L: Not really in the search PATH,
11049: # but as the default location of the library.
11050: hardcode_minus_L=yes
11051: export_dynamic_flag_spec='${wl}-E'
11052: ;;
11053:
11054: hpux10*)
11055: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11056: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11057: else
11058: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11059: fi
11060: if test "$with_gnu_ld" = no; then
11061: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11062: hardcode_libdir_separator=:
11063: hardcode_direct=yes
11064: hardcode_direct_absolute=yes
11065: export_dynamic_flag_spec='${wl}-E'
11066: # hardcode_minus_L: Not really in the search PATH,
11067: # but as the default location of the library.
11068: hardcode_minus_L=yes
11069: fi
11070: ;;
11071:
11072: hpux11*)
11073: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11074: case $host_cpu in
11075: hppa*64*)
11076: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11077: ;;
11078: ia64*)
11079: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11080: ;;
11081: *)
11082: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11083: ;;
11084: esac
11085: else
11086: case $host_cpu in
11087: hppa*64*)
11088: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11089: ;;
11090: ia64*)
11091: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11092: ;;
11093: *)
11094:
11095: # Older versions of the 11.00 compiler do not understand -b yet
11096: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.150 moko 11097: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11098: $as_echo_n "checking if $CC understands -b... " >&6; }
11099: if ${lt_cv_prog_compiler__b+:} false; then :
11100: $as_echo_n "(cached) " >&6
1.128 moko 11101: else
11102: lt_cv_prog_compiler__b=no
11103: save_LDFLAGS="$LDFLAGS"
11104: LDFLAGS="$LDFLAGS -b"
11105: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11106: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11107: # The linker can only warn and ignore the option if not recognized
11108: # So say no if there are warnings
11109: if test -s conftest.err; then
11110: # Append any errors to the config.log.
11111: cat conftest.err 1>&5
11112: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11113: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11114: if diff conftest.exp conftest.er2 >/dev/null; then
11115: lt_cv_prog_compiler__b=yes
11116: fi
11117: else
11118: lt_cv_prog_compiler__b=yes
11119: fi
11120: fi
11121: $RM -r conftest*
11122: LDFLAGS="$save_LDFLAGS"
11123:
11124: fi
1.150 moko 11125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11126: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 11127:
11128: if test x"$lt_cv_prog_compiler__b" = xyes; then
11129: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11130: else
11131: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11132: fi
11133:
11134: ;;
11135: esac
11136: fi
11137: if test "$with_gnu_ld" = no; then
11138: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11139: hardcode_libdir_separator=:
11140:
11141: case $host_cpu in
11142: hppa*64*|ia64*)
11143: hardcode_direct=no
11144: hardcode_shlibpath_var=no
11145: ;;
11146: *)
11147: hardcode_direct=yes
11148: hardcode_direct_absolute=yes
11149: export_dynamic_flag_spec='${wl}-E'
11150:
11151: # hardcode_minus_L: Not really in the search PATH,
11152: # but as the default location of the library.
11153: hardcode_minus_L=yes
11154: ;;
11155: esac
11156: fi
11157: ;;
11158:
11159: irix5* | irix6* | nonstopux*)
11160: if test "$GCC" = yes; then
11161: 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'
11162: # Try to use the -exported_symbol ld option, if it does not
11163: # work, assume that -exports_file does not work either and
11164: # implicitly export all symbols.
11165: # This should be the same for all languages, so no per-tag cache variable.
1.150 moko 11166: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11167: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11168: if ${lt_cv_irix_exported_symbol+:} false; then :
11169: $as_echo_n "(cached) " >&6
1.128 moko 11170: else
11171: save_LDFLAGS="$LDFLAGS"
11172: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.150 moko 11173: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 11174: /* end confdefs.h. */
11175: int foo (void) { return 0; }
11176: _ACEOF
1.150 moko 11177: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 11178: lt_cv_irix_exported_symbol=yes
11179: else
1.150 moko 11180: lt_cv_irix_exported_symbol=no
1.128 moko 11181: fi
1.150 moko 11182: rm -f core conftest.err conftest.$ac_objext \
11183: conftest$ac_exeext conftest.$ac_ext
1.128 moko 11184: LDFLAGS="$save_LDFLAGS"
11185: fi
1.150 moko 11186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11187: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.128 moko 11188: if test "$lt_cv_irix_exported_symbol" = yes; then
11189: 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'
11190: fi
11191: else
11192: 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'
11193: 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'
11194: fi
11195: archive_cmds_need_lc='no'
11196: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11197: hardcode_libdir_separator=:
11198: inherit_rpath=yes
11199: link_all_deplibs=yes
11200: ;;
11201:
11202: netbsd*)
11203: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11204: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11205: else
11206: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11207: fi
11208: hardcode_libdir_flag_spec='-R$libdir'
11209: hardcode_direct=yes
11210: hardcode_shlibpath_var=no
11211: ;;
11212:
11213: newsos6)
11214: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11215: hardcode_direct=yes
11216: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11217: hardcode_libdir_separator=:
11218: hardcode_shlibpath_var=no
11219: ;;
11220:
11221: *nto* | *qnx*)
11222: ;;
11223:
11224: openbsd*)
11225: if test -f /usr/libexec/ld.so; then
11226: hardcode_direct=yes
11227: hardcode_shlibpath_var=no
11228: hardcode_direct_absolute=yes
11229: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11230: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11231: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11232: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11233: export_dynamic_flag_spec='${wl}-E'
11234: else
11235: case $host_os in
11236: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11237: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11238: hardcode_libdir_flag_spec='-R$libdir'
11239: ;;
11240: *)
11241: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11242: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11243: ;;
11244: esac
11245: fi
11246: else
11247: ld_shlibs=no
11248: fi
11249: ;;
11250:
11251: os2*)
11252: hardcode_libdir_flag_spec='-L$libdir'
11253: hardcode_minus_L=yes
11254: allow_undefined_flag=unsupported
11255: 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'
11256: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11257: ;;
11258:
11259: osf3*)
11260: if test "$GCC" = yes; then
11261: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11262: 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'
11263: else
11264: allow_undefined_flag=' -expect_unresolved \*'
11265: 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'
11266: fi
11267: archive_cmds_need_lc='no'
11268: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11269: hardcode_libdir_separator=:
11270: ;;
11271:
11272: osf4* | osf5*) # as osf3* with the addition of -msym flag
11273: if test "$GCC" = yes; then
11274: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11275: 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'
11276: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11277: else
11278: allow_undefined_flag=' -expect_unresolved \*'
11279: 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'
11280: 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~
11281: $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'
11282:
11283: # Both c and cxx compiler support -rpath directly
11284: hardcode_libdir_flag_spec='-rpath $libdir'
11285: fi
11286: archive_cmds_need_lc='no'
11287: hardcode_libdir_separator=:
11288: ;;
11289:
11290: solaris*)
11291: no_undefined_flag=' -z defs'
11292: if test "$GCC" = yes; then
11293: wlarc='${wl}'
11294: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11295: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11296: $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'
11297: else
11298: case `$CC -V 2>&1` in
11299: *"Compilers 5.0"*)
11300: wlarc=''
11301: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11302: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11303: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11304: ;;
11305: *)
11306: wlarc='${wl}'
11307: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11308: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11309: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11310: ;;
11311: esac
11312: fi
11313: hardcode_libdir_flag_spec='-R$libdir'
11314: hardcode_shlibpath_var=no
11315: case $host_os in
11316: solaris2.[0-5] | solaris2.[0-5].*) ;;
11317: *)
11318: # The compiler driver will combine and reorder linker options,
11319: # but understands `-z linker_flag'. GCC discards it without `$wl',
11320: # but is careful enough not to reorder.
11321: # Supported since Solaris 2.6 (maybe 2.5.1?)
11322: if test "$GCC" = yes; then
11323: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11324: else
11325: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11326: fi
11327: ;;
11328: esac
11329: link_all_deplibs=yes
11330: ;;
11331:
11332: sunos4*)
11333: if test "x$host_vendor" = xsequent; then
11334: # Use $CC to link under sequent, because it throws in some extra .o
11335: # files that make .init and .fini sections work.
11336: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11337: else
11338: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11339: fi
11340: hardcode_libdir_flag_spec='-L$libdir'
11341: hardcode_direct=yes
11342: hardcode_minus_L=yes
11343: hardcode_shlibpath_var=no
11344: ;;
11345:
11346: sysv4)
11347: case $host_vendor in
11348: sni)
11349: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11350: hardcode_direct=yes # is this really true???
11351: ;;
11352: siemens)
11353: ## LD is ld it makes a PLAMLIB
11354: ## CC just makes a GrossModule.
11355: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11356: reload_cmds='$CC -r -o $output$reload_objs'
11357: hardcode_direct=no
11358: ;;
11359: motorola)
11360: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11361: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11362: ;;
11363: esac
11364: runpath_var='LD_RUN_PATH'
11365: hardcode_shlibpath_var=no
11366: ;;
11367:
11368: sysv4.3*)
11369: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11370: hardcode_shlibpath_var=no
11371: export_dynamic_flag_spec='-Bexport'
11372: ;;
11373:
11374: sysv4*MP*)
11375: if test -d /usr/nec; then
11376: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11377: hardcode_shlibpath_var=no
11378: runpath_var=LD_RUN_PATH
11379: hardcode_runpath_var=yes
11380: ld_shlibs=yes
11381: fi
11382: ;;
11383:
11384: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11385: no_undefined_flag='${wl}-z,text'
11386: archive_cmds_need_lc=no
11387: hardcode_shlibpath_var=no
11388: runpath_var='LD_RUN_PATH'
11389:
11390: if test "$GCC" = yes; then
11391: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11392: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11393: else
11394: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11395: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11396: fi
11397: ;;
11398:
11399: sysv5* | sco3.2v5* | sco5v6*)
11400: # Note: We can NOT use -z defs as we might desire, because we do not
11401: # link with -lc, and that would cause any symbols used from libc to
11402: # always be unresolved, which means just about no library would
11403: # ever link correctly. If we're not using GNU ld we use -z text
11404: # though, which does catch some bad symbols but isn't as heavy-handed
11405: # as -z defs.
11406: no_undefined_flag='${wl}-z,text'
11407: allow_undefined_flag='${wl}-z,nodefs'
11408: archive_cmds_need_lc=no
11409: hardcode_shlibpath_var=no
11410: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11411: hardcode_libdir_separator=':'
11412: link_all_deplibs=yes
11413: export_dynamic_flag_spec='${wl}-Bexport'
11414: runpath_var='LD_RUN_PATH'
11415:
11416: if test "$GCC" = yes; then
11417: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11418: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11419: else
11420: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11421: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11422: fi
11423: ;;
11424:
11425: uts4*)
11426: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11427: hardcode_libdir_flag_spec='-L$libdir'
11428: hardcode_shlibpath_var=no
11429: ;;
11430:
11431: *)
11432: ld_shlibs=no
11433: ;;
11434: esac
11435:
11436: if test x$host_vendor = xsni; then
11437: case $host in
11438: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11439: export_dynamic_flag_spec='${wl}-Blargedynsym'
11440: ;;
11441: esac
11442: fi
11443: fi
11444:
1.150 moko 11445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11446: $as_echo "$ld_shlibs" >&6; }
1.128 moko 11447: test "$ld_shlibs" = no && can_build_shared=no
11448:
11449: with_gnu_ld=$with_gnu_ld
11450:
11451:
11452:
11453:
11454:
11455:
11456:
11457:
11458:
11459:
11460:
11461:
11462:
11463:
11464:
11465: #
11466: # Do we need to explicitly link libc?
11467: #
11468: case "x$archive_cmds_need_lc" in
11469: x|xyes)
11470: # Assume -lc should be added
11471: archive_cmds_need_lc=yes
11472:
11473: if test "$enable_shared" = yes && test "$GCC" = yes; then
11474: case $archive_cmds in
11475: *'~'*)
11476: # FIXME: we may have to deal with multi-command sequences.
11477: ;;
11478: '$CC '*)
11479: # Test whether the compiler implicitly links with -lc since on some
11480: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11481: # to ld, don't add -lc before -lgcc.
1.150 moko 11482: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11483: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11484: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11485: $as_echo_n "(cached) " >&6
1.128 moko 11486: else
11487: $RM conftest*
11488: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11489:
1.150 moko 11490: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 11491: (eval $ac_compile) 2>&5
11492: ac_status=$?
1.150 moko 11493: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 11495: soname=conftest
11496: lib=conftest
11497: libobjs=conftest.$ac_objext
11498: deplibs=
11499: wl=$lt_prog_compiler_wl
11500: pic_flag=$lt_prog_compiler_pic
11501: compiler_flags=-v
11502: linker_flags=-v
11503: verstring=
11504: output_objdir=.
11505: libname=conftest
11506: lt_save_allow_undefined_flag=$allow_undefined_flag
11507: allow_undefined_flag=
1.150 moko 11508: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 11509: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11510: ac_status=$?
1.150 moko 11511: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11512: test $ac_status = 0; }
1.128 moko 11513: then
11514: lt_cv_archive_cmds_need_lc=no
11515: else
11516: lt_cv_archive_cmds_need_lc=yes
11517: fi
11518: allow_undefined_flag=$lt_save_allow_undefined_flag
11519: else
11520: cat conftest.err 1>&5
11521: fi
11522: $RM conftest*
11523:
11524: fi
1.150 moko 11525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11526: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 11527: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11528: ;;
11529: esac
11530: fi
11531: ;;
11532: esac
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:
11669:
11670:
11671:
11672:
11673:
11674:
11675:
11676:
11677:
11678:
11679:
11680:
11681:
11682:
11683:
11684:
1.150 moko 11685: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11686: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 11687:
11688: if test "$GCC" = yes; then
11689: case $host_os in
11690: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11691: *) lt_awk_arg="/^libraries:/" ;;
11692: esac
11693: case $host_os in
11694: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11695: *) lt_sed_strip_eq="s,=/,/,g" ;;
11696: esac
11697: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11698: case $lt_search_path_spec in
11699: *\;*)
11700: # if the path contains ";" then we assume it to be the separator
11701: # otherwise default to the standard path separator (i.e. ":") - it is
11702: # assumed that no part of a normal pathname contains ";" but that should
11703: # okay in the real world where ";" in dirpaths is itself problematic.
11704: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11705: ;;
11706: *)
11707: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11708: ;;
11709: esac
11710: # Ok, now we have the path, separated by spaces, we can step through it
11711: # and add multilib dir if necessary.
11712: lt_tmp_lt_search_path_spec=
11713: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11714: for lt_sys_path in $lt_search_path_spec; do
11715: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11716: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11717: else
11718: test -d "$lt_sys_path" && \
11719: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11720: fi
11721: done
11722: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11723: BEGIN {RS=" "; FS="/|\n";} {
11724: lt_foo="";
11725: lt_count=0;
11726: for (lt_i = NF; lt_i > 0; lt_i--) {
11727: if ($lt_i != "" && $lt_i != ".") {
11728: if ($lt_i == "..") {
11729: lt_count++;
11730: } else {
11731: if (lt_count == 0) {
11732: lt_foo="/" $lt_i lt_foo;
11733: } else {
11734: lt_count--;
11735: }
11736: }
11737: }
11738: }
11739: if (lt_foo != "") { lt_freq[lt_foo]++; }
11740: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11741: }'`
11742: # AWK program above erroneously prepends '/' to C:/dos/paths
11743: # for these hosts.
11744: case $host_os in
11745: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11746: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11747: esac
11748: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11749: else
11750: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11751: fi
11752: library_names_spec=
11753: libname_spec='lib$name'
11754: soname_spec=
11755: shrext_cmds=".so"
11756: postinstall_cmds=
11757: postuninstall_cmds=
11758: finish_cmds=
11759: finish_eval=
11760: shlibpath_var=
11761: shlibpath_overrides_runpath=unknown
11762: version_type=none
11763: dynamic_linker="$host_os ld.so"
11764: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11765: need_lib_prefix=unknown
11766: hardcode_into_libs=no
11767:
11768: # when you set need_version to no, make sure it does not cause -set_version
11769: # flags to be left without arguments
11770: need_version=unknown
11771:
11772: case $host_os in
11773: aix3*)
11774: version_type=linux # correct to gnu/linux during the next big refactor
11775: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11776: shlibpath_var=LIBPATH
11777:
11778: # AIX 3 has no versioning support, so we append a major version to the name.
11779: soname_spec='${libname}${release}${shared_ext}$major'
11780: ;;
11781:
11782: aix[4-9]*)
11783: version_type=linux # correct to gnu/linux during the next big refactor
11784: need_lib_prefix=no
11785: need_version=no
11786: hardcode_into_libs=yes
11787: if test "$host_cpu" = ia64; then
11788: # AIX 5 supports IA64
11789: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11790: shlibpath_var=LD_LIBRARY_PATH
11791: else
11792: # With GCC up to 2.95.x, collect2 would create an import file
11793: # for dependence libraries. The import file would start with
11794: # the line `#! .'. This would cause the generated library to
11795: # depend on `.', always an invalid library. This was fixed in
11796: # development snapshots of GCC prior to 3.0.
11797: case $host_os in
11798: aix4 | aix4.[01] | aix4.[01].*)
11799: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11800: echo ' yes '
11801: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11802: :
11803: else
11804: can_build_shared=no
11805: fi
11806: ;;
11807: esac
11808: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11809: # soname into executable. Probably we can add versioning support to
11810: # collect2, so additional links can be useful in future.
11811: if test "$aix_use_runtimelinking" = yes; then
11812: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11813: # instead of lib<name>.a to let people know that these are not
11814: # typical AIX shared libraries.
11815: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816: else
11817: # We preserve .a as extension for shared libraries through AIX4.2
11818: # and later when we are not doing run time linking.
11819: library_names_spec='${libname}${release}.a $libname.a'
11820: soname_spec='${libname}${release}${shared_ext}$major'
11821: fi
11822: shlibpath_var=LIBPATH
11823: fi
11824: ;;
11825:
11826: amigaos*)
11827: case $host_cpu in
11828: powerpc)
11829: # Since July 2007 AmigaOS4 officially supports .so libraries.
11830: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11831: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832: ;;
11833: m68k)
11834: library_names_spec='$libname.ixlibrary $libname.a'
11835: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11836: 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'
11837: ;;
11838: esac
11839: ;;
11840:
11841: beos*)
11842: library_names_spec='${libname}${shared_ext}'
11843: dynamic_linker="$host_os ld.so"
11844: shlibpath_var=LIBRARY_PATH
11845: ;;
11846:
11847: bsdi[45]*)
11848: version_type=linux # correct to gnu/linux during the next big refactor
11849: need_version=no
11850: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851: soname_spec='${libname}${release}${shared_ext}$major'
11852: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11853: shlibpath_var=LD_LIBRARY_PATH
11854: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11855: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11856: # the default ld.so.conf also contains /usr/contrib/lib and
11857: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11858: # libtool to hard-code these into programs
11859: ;;
11860:
11861: cygwin* | mingw* | pw32* | cegcc*)
11862: version_type=windows
11863: shrext_cmds=".dll"
11864: need_version=no
11865: need_lib_prefix=no
11866:
11867: case $GCC,$cc_basename in
11868: yes,*)
11869: # gcc
11870: library_names_spec='$libname.dll.a'
11871: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11872: postinstall_cmds='base_file=`basename \${file}`~
11873: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11874: dldir=$destdir/`dirname \$dlpath`~
11875: test -d \$dldir || mkdir -p \$dldir~
11876: $install_prog $dir/$dlname \$dldir/$dlname~
11877: chmod a+x \$dldir/$dlname~
11878: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11879: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11880: fi'
11881: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11882: dlpath=$dir/\$dldll~
11883: $RM \$dlpath'
11884: shlibpath_overrides_runpath=yes
11885:
11886: case $host_os in
11887: cygwin*)
11888: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11889: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11890:
11891: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11892: ;;
11893: mingw* | cegcc*)
11894: # MinGW DLLs use traditional 'lib' prefix
11895: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11896: ;;
11897: pw32*)
11898: # pw32 DLLs use 'pw' prefix rather than 'lib'
11899: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11900: ;;
11901: esac
11902: dynamic_linker='Win32 ld.exe'
11903: ;;
11904:
11905: *,cl*)
11906: # Native MSVC
11907: libname_spec='$name'
11908: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11909: library_names_spec='${libname}.dll.lib'
11910:
11911: case $build_os in
11912: mingw*)
11913: sys_lib_search_path_spec=
11914: lt_save_ifs=$IFS
11915: IFS=';'
11916: for lt_path in $LIB
11917: do
11918: IFS=$lt_save_ifs
11919: # Let DOS variable expansion print the short 8.3 style file name.
11920: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11921: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11922: done
11923: IFS=$lt_save_ifs
11924: # Convert to MSYS style.
11925: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11926: ;;
11927: cygwin*)
11928: # Convert to unix form, then to dos form, then back to unix form
11929: # but this time dos style (no spaces!) so that the unix form looks
11930: # like /cygdrive/c/PROGRA~1:/cygdr...
11931: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11932: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11933: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11934: ;;
11935: *)
11936: sys_lib_search_path_spec="$LIB"
11937: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11938: # It is most probably a Windows format PATH.
11939: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11940: else
11941: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11942: fi
11943: # FIXME: find the short name or the path components, as spaces are
11944: # common. (e.g. "Program Files" -> "PROGRA~1")
11945: ;;
11946: esac
11947:
11948: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11949: postinstall_cmds='base_file=`basename \${file}`~
11950: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11951: dldir=$destdir/`dirname \$dlpath`~
11952: test -d \$dldir || mkdir -p \$dldir~
11953: $install_prog $dir/$dlname \$dldir/$dlname'
11954: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11955: dlpath=$dir/\$dldll~
11956: $RM \$dlpath'
11957: shlibpath_overrides_runpath=yes
11958: dynamic_linker='Win32 link.exe'
11959: ;;
11960:
11961: *)
11962: # Assume MSVC wrapper
11963: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11964: dynamic_linker='Win32 ld.exe'
11965: ;;
11966: esac
11967: # FIXME: first we should search . and the directory the executable is in
11968: shlibpath_var=PATH
11969: ;;
11970:
11971: darwin* | rhapsody*)
11972: dynamic_linker="$host_os dyld"
11973: version_type=darwin
11974: need_lib_prefix=no
11975: need_version=no
11976: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11977: soname_spec='${libname}${release}${major}$shared_ext'
11978: shlibpath_overrides_runpath=yes
11979: shlibpath_var=DYLD_LIBRARY_PATH
11980: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11981:
11982: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11983: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11984: ;;
11985:
11986: dgux*)
11987: version_type=linux # correct to gnu/linux during the next big refactor
11988: need_lib_prefix=no
11989: need_version=no
11990: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11991: soname_spec='${libname}${release}${shared_ext}$major'
11992: shlibpath_var=LD_LIBRARY_PATH
11993: ;;
11994:
11995: freebsd* | dragonfly*)
11996: # DragonFly does not have aout. When/if they implement a new
11997: # versioning mechanism, adjust this.
11998: if test -x /usr/bin/objformat; then
11999: objformat=`/usr/bin/objformat`
12000: else
12001: case $host_os in
12002: freebsd[23].*) objformat=aout ;;
12003: *) objformat=elf ;;
12004: esac
12005: fi
12006: version_type=freebsd-$objformat
12007: case $version_type in
12008: freebsd-elf*)
12009: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12010: need_version=no
12011: need_lib_prefix=no
12012: ;;
12013: freebsd-*)
12014: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12015: need_version=yes
12016: ;;
12017: esac
12018: shlibpath_var=LD_LIBRARY_PATH
12019: case $host_os in
12020: freebsd2.*)
12021: shlibpath_overrides_runpath=yes
12022: ;;
12023: freebsd3.[01]* | freebsdelf3.[01]*)
12024: shlibpath_overrides_runpath=yes
12025: hardcode_into_libs=yes
12026: ;;
12027: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12028: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12029: shlibpath_overrides_runpath=no
12030: hardcode_into_libs=yes
12031: ;;
12032: *) # from 4.6 on, and DragonFly
12033: shlibpath_overrides_runpath=yes
12034: hardcode_into_libs=yes
12035: ;;
12036: esac
12037: ;;
12038:
12039: gnu*)
12040: version_type=linux # correct to gnu/linux during the next big refactor
12041: need_lib_prefix=no
12042: need_version=no
12043: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12044: soname_spec='${libname}${release}${shared_ext}$major'
12045: shlibpath_var=LD_LIBRARY_PATH
12046: shlibpath_overrides_runpath=no
12047: hardcode_into_libs=yes
12048: ;;
12049:
12050: haiku*)
12051: version_type=linux # correct to gnu/linux during the next big refactor
12052: need_lib_prefix=no
12053: need_version=no
12054: dynamic_linker="$host_os runtime_loader"
12055: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12056: soname_spec='${libname}${release}${shared_ext}$major'
12057: shlibpath_var=LIBRARY_PATH
12058: shlibpath_overrides_runpath=yes
12059: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12060: hardcode_into_libs=yes
12061: ;;
12062:
12063: hpux9* | hpux10* | hpux11*)
12064: # Give a soname corresponding to the major version so that dld.sl refuses to
12065: # link against other versions.
12066: version_type=sunos
12067: need_lib_prefix=no
12068: need_version=no
12069: case $host_cpu in
12070: ia64*)
12071: shrext_cmds='.so'
12072: hardcode_into_libs=yes
12073: dynamic_linker="$host_os dld.so"
12074: shlibpath_var=LD_LIBRARY_PATH
12075: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12076: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077: soname_spec='${libname}${release}${shared_ext}$major'
12078: if test "X$HPUX_IA64_MODE" = X32; then
12079: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12080: else
12081: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12082: fi
12083: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12084: ;;
12085: hppa*64*)
12086: shrext_cmds='.sl'
12087: hardcode_into_libs=yes
12088: dynamic_linker="$host_os dld.sl"
12089: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12090: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12091: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092: soname_spec='${libname}${release}${shared_ext}$major'
12093: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12094: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12095: ;;
12096: *)
12097: shrext_cmds='.sl'
12098: dynamic_linker="$host_os dld.sl"
12099: shlibpath_var=SHLIB_PATH
12100: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12101: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12102: soname_spec='${libname}${release}${shared_ext}$major'
12103: ;;
12104: esac
12105: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12106: postinstall_cmds='chmod 555 $lib'
12107: # or fails outright, so override atomically:
12108: install_override_mode=555
12109: ;;
12110:
12111: interix[3-9]*)
12112: version_type=linux # correct to gnu/linux during the next big refactor
12113: need_lib_prefix=no
12114: need_version=no
12115: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12116: soname_spec='${libname}${release}${shared_ext}$major'
12117: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12118: shlibpath_var=LD_LIBRARY_PATH
12119: shlibpath_overrides_runpath=no
12120: hardcode_into_libs=yes
12121: ;;
12122:
12123: irix5* | irix6* | nonstopux*)
12124: case $host_os in
12125: nonstopux*) version_type=nonstopux ;;
12126: *)
12127: if test "$lt_cv_prog_gnu_ld" = yes; then
12128: version_type=linux # correct to gnu/linux during the next big refactor
12129: else
12130: version_type=irix
12131: fi ;;
12132: esac
12133: need_lib_prefix=no
12134: need_version=no
12135: soname_spec='${libname}${release}${shared_ext}$major'
12136: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12137: case $host_os in
12138: irix5* | nonstopux*)
12139: libsuff= shlibsuff=
12140: ;;
12141: *)
12142: case $LD in # libtool.m4 will add one of these switches to LD
12143: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12144: libsuff= shlibsuff= libmagic=32-bit;;
12145: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12146: libsuff=32 shlibsuff=N32 libmagic=N32;;
12147: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12148: libsuff=64 shlibsuff=64 libmagic=64-bit;;
12149: *) libsuff= shlibsuff= libmagic=never-match;;
12150: esac
12151: ;;
12152: esac
12153: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12154: shlibpath_overrides_runpath=no
12155: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12156: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12157: hardcode_into_libs=yes
12158: ;;
12159:
12160: # No shared lib support for Linux oldld, aout, or coff.
12161: linux*oldld* | linux*aout* | linux*coff*)
12162: dynamic_linker=no
12163: ;;
12164:
12165: # This must be glibc/ELF.
12166: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12167: version_type=linux # correct to gnu/linux during the next big refactor
12168: need_lib_prefix=no
12169: need_version=no
12170: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12171: soname_spec='${libname}${release}${shared_ext}$major'
12172: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12173: shlibpath_var=LD_LIBRARY_PATH
12174: shlibpath_overrides_runpath=no
12175:
12176: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 12177: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12178: $as_echo_n "(cached) " >&6
1.128 moko 12179: else
12180: lt_cv_shlibpath_overrides_runpath=no
12181: save_LDFLAGS=$LDFLAGS
12182: save_libdir=$libdir
12183: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12184: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 12185: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12186: /* end confdefs.h. */
12187:
12188: int
12189: main ()
12190: {
12191:
12192: ;
12193: return 0;
12194: }
12195: _ACEOF
1.150 moko 12196: if ac_fn_c_try_link "$LINENO"; then :
12197: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 12198: lt_cv_shlibpath_overrides_runpath=yes
12199: fi
12200: fi
1.150 moko 12201: rm -f core conftest.err conftest.$ac_objext \
12202: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12203: LDFLAGS=$save_LDFLAGS
12204: libdir=$save_libdir
12205:
12206: fi
12207:
12208: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12209:
12210: # This implies no fast_install, which is unacceptable.
12211: # Some rework will be needed to allow for fast_install
12212: # before this can be enabled.
12213: hardcode_into_libs=yes
12214:
12215: # Append ld.so.conf contents to the search path
12216: if test -f /etc/ld.so.conf; then
12217: 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' ' '`
12218: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12219: fi
12220:
12221: # We used to test for /lib/ld.so.1 and disable shared libraries on
12222: # powerpc, because MkLinux only supported shared libraries with the
12223: # GNU dynamic linker. Since this was broken with cross compilers,
12224: # most powerpc-linux boxes support dynamic linking these days and
12225: # people can always --disable-shared, the test was removed, and we
12226: # assume the GNU/Linux dynamic linker is in use.
12227: dynamic_linker='GNU/Linux ld.so'
12228: ;;
12229:
12230: netbsd*)
12231: version_type=sunos
12232: need_lib_prefix=no
12233: need_version=no
12234: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12235: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12236: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12237: dynamic_linker='NetBSD (a.out) ld.so'
12238: else
12239: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12240: soname_spec='${libname}${release}${shared_ext}$major'
12241: dynamic_linker='NetBSD ld.elf_so'
12242: fi
12243: shlibpath_var=LD_LIBRARY_PATH
12244: shlibpath_overrides_runpath=yes
12245: hardcode_into_libs=yes
12246: ;;
12247:
12248: newsos6)
12249: version_type=linux # correct to gnu/linux during the next big refactor
12250: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251: shlibpath_var=LD_LIBRARY_PATH
12252: shlibpath_overrides_runpath=yes
12253: ;;
12254:
12255: *nto* | *qnx*)
12256: version_type=qnx
12257: need_lib_prefix=no
12258: need_version=no
12259: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260: soname_spec='${libname}${release}${shared_ext}$major'
12261: shlibpath_var=LD_LIBRARY_PATH
12262: shlibpath_overrides_runpath=no
12263: hardcode_into_libs=yes
12264: dynamic_linker='ldqnx.so'
12265: ;;
12266:
12267: openbsd*)
12268: version_type=sunos
12269: sys_lib_dlsearch_path_spec="/usr/lib"
12270: need_lib_prefix=no
12271: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12272: case $host_os in
12273: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12274: *) need_version=no ;;
12275: esac
12276: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12277: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12278: shlibpath_var=LD_LIBRARY_PATH
12279: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12280: case $host_os in
12281: openbsd2.[89] | openbsd2.[89].*)
12282: shlibpath_overrides_runpath=no
12283: ;;
12284: *)
12285: shlibpath_overrides_runpath=yes
12286: ;;
12287: esac
12288: else
12289: shlibpath_overrides_runpath=yes
12290: fi
12291: ;;
12292:
12293: os2*)
12294: libname_spec='$name'
12295: shrext_cmds=".dll"
12296: need_lib_prefix=no
12297: library_names_spec='$libname${shared_ext} $libname.a'
12298: dynamic_linker='OS/2 ld.exe'
12299: shlibpath_var=LIBPATH
12300: ;;
12301:
12302: osf3* | osf4* | osf5*)
12303: version_type=osf
12304: need_lib_prefix=no
12305: need_version=no
12306: soname_spec='${libname}${release}${shared_ext}$major'
12307: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12308: shlibpath_var=LD_LIBRARY_PATH
12309: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12310: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12311: ;;
12312:
12313: rdos*)
12314: dynamic_linker=no
12315: ;;
12316:
12317: solaris*)
12318: version_type=linux # correct to gnu/linux during the next big refactor
12319: need_lib_prefix=no
12320: need_version=no
12321: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322: soname_spec='${libname}${release}${shared_ext}$major'
12323: shlibpath_var=LD_LIBRARY_PATH
12324: shlibpath_overrides_runpath=yes
12325: hardcode_into_libs=yes
12326: # ldd complains unless libraries are executable
12327: postinstall_cmds='chmod +x $lib'
12328: ;;
12329:
12330: sunos4*)
12331: version_type=sunos
12332: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12333: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12334: shlibpath_var=LD_LIBRARY_PATH
12335: shlibpath_overrides_runpath=yes
12336: if test "$with_gnu_ld" = yes; then
12337: need_lib_prefix=no
12338: fi
12339: need_version=yes
12340: ;;
12341:
12342: sysv4 | sysv4.3*)
12343: version_type=linux # correct to gnu/linux during the next big refactor
12344: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12345: soname_spec='${libname}${release}${shared_ext}$major'
12346: shlibpath_var=LD_LIBRARY_PATH
12347: case $host_vendor in
12348: sni)
12349: shlibpath_overrides_runpath=no
12350: need_lib_prefix=no
12351: runpath_var=LD_RUN_PATH
12352: ;;
12353: siemens)
12354: need_lib_prefix=no
12355: ;;
12356: motorola)
12357: need_lib_prefix=no
12358: need_version=no
12359: shlibpath_overrides_runpath=no
12360: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12361: ;;
12362: esac
12363: ;;
12364:
12365: sysv4*MP*)
12366: if test -d /usr/nec ;then
12367: version_type=linux # correct to gnu/linux during the next big refactor
12368: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12369: soname_spec='$libname${shared_ext}.$major'
12370: shlibpath_var=LD_LIBRARY_PATH
12371: fi
12372: ;;
12373:
12374: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12375: version_type=freebsd-elf
12376: need_lib_prefix=no
12377: need_version=no
12378: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12379: soname_spec='${libname}${release}${shared_ext}$major'
12380: shlibpath_var=LD_LIBRARY_PATH
12381: shlibpath_overrides_runpath=yes
12382: hardcode_into_libs=yes
12383: if test "$with_gnu_ld" = yes; then
12384: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12385: else
12386: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12387: case $host_os in
12388: sco3.2v5*)
12389: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12390: ;;
12391: esac
12392: fi
12393: sys_lib_dlsearch_path_spec='/usr/lib'
12394: ;;
12395:
12396: tpf*)
12397: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12398: version_type=linux # correct to gnu/linux during the next big refactor
12399: need_lib_prefix=no
12400: need_version=no
12401: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12402: shlibpath_var=LD_LIBRARY_PATH
12403: shlibpath_overrides_runpath=no
12404: hardcode_into_libs=yes
12405: ;;
12406:
12407: uts4*)
12408: version_type=linux # correct to gnu/linux during the next big refactor
12409: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410: soname_spec='${libname}${release}${shared_ext}$major'
12411: shlibpath_var=LD_LIBRARY_PATH
12412: ;;
12413:
12414: *)
12415: dynamic_linker=no
12416: ;;
12417: esac
1.150 moko 12418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12419: $as_echo "$dynamic_linker" >&6; }
1.128 moko 12420: test "$dynamic_linker" = no && can_build_shared=no
12421:
12422: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12423: if test "$GCC" = yes; then
12424: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12425: fi
12426:
12427: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12428: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12429: fi
12430: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12431: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12432: fi
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:
12509:
12510:
12511:
12512:
12513:
12514:
12515:
12516:
12517:
12518:
12519:
12520:
12521:
12522:
12523:
12524:
1.150 moko 12525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12526: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 12527: hardcode_action=
12528: if test -n "$hardcode_libdir_flag_spec" ||
12529: test -n "$runpath_var" ||
12530: test "X$hardcode_automatic" = "Xyes" ; then
12531:
12532: # We can hardcode non-existent directories.
12533: if test "$hardcode_direct" != no &&
12534: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12535: # have to relink, otherwise we might link with an installed library
12536: # when we should be linking with a yet-to-be-installed one
12537: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12538: test "$hardcode_minus_L" != no; then
12539: # Linking always hardcodes the temporary library directory.
12540: hardcode_action=relink
12541: else
12542: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12543: hardcode_action=immediate
12544: fi
12545: else
12546: # We cannot hardcode anything, or else we can only hardcode existing
12547: # directories.
12548: hardcode_action=unsupported
12549: fi
1.150 moko 12550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12551: $as_echo "$hardcode_action" >&6; }
1.128 moko 12552:
12553: if test "$hardcode_action" = relink ||
12554: test "$inherit_rpath" = yes; then
12555: # Fast installation is not supported
12556: enable_fast_install=no
12557: elif test "$shlibpath_overrides_runpath" = yes ||
12558: test "$enable_shared" = no; then
12559: # Fast installation is not necessary
12560: enable_fast_install=needless
12561: fi
12562:
12563:
12564:
12565:
12566:
12567:
12568: if test "x$enable_dlopen" != xyes; then
12569: enable_dlopen=unknown
12570: enable_dlopen_self=unknown
12571: enable_dlopen_self_static=unknown
12572: else
12573: lt_cv_dlopen=no
12574: lt_cv_dlopen_libs=
12575:
12576: case $host_os in
12577: beos*)
12578: lt_cv_dlopen="load_add_on"
12579: lt_cv_dlopen_libs=
12580: lt_cv_dlopen_self=yes
12581: ;;
12582:
12583: mingw* | pw32* | cegcc*)
12584: lt_cv_dlopen="LoadLibrary"
12585: lt_cv_dlopen_libs=
12586: ;;
12587:
12588: cygwin*)
12589: lt_cv_dlopen="dlopen"
12590: lt_cv_dlopen_libs=
12591: ;;
12592:
12593: darwin*)
12594: # if libdl is installed we need to link against it
1.150 moko 12595: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12596: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12597: if ${ac_cv_lib_dl_dlopen+:} false; then :
12598: $as_echo_n "(cached) " >&6
1.128 moko 12599: else
12600: ac_check_lib_save_LIBS=$LIBS
12601: LIBS="-ldl $LIBS"
1.150 moko 12602: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12603: /* end confdefs.h. */
12604:
1.150 moko 12605: /* Override any GCC internal prototype to avoid an error.
12606: Use char because int might match the return type of a GCC
12607: builtin and then its argument prototype would still apply. */
1.128 moko 12608: #ifdef __cplusplus
12609: extern "C"
12610: #endif
12611: char dlopen ();
12612: int
12613: main ()
12614: {
1.150 moko 12615: return dlopen ();
1.128 moko 12616: ;
12617: return 0;
12618: }
12619: _ACEOF
1.150 moko 12620: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12621: ac_cv_lib_dl_dlopen=yes
12622: else
1.150 moko 12623: ac_cv_lib_dl_dlopen=no
1.128 moko 12624: fi
1.150 moko 12625: rm -f core conftest.err conftest.$ac_objext \
12626: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12627: LIBS=$ac_check_lib_save_LIBS
12628: fi
1.150 moko 12629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12630: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12631: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12632: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12633: else
12634:
12635: lt_cv_dlopen="dyld"
12636: lt_cv_dlopen_libs=
12637: lt_cv_dlopen_self=yes
12638:
12639: fi
12640:
12641: ;;
12642:
12643: *)
1.150 moko 12644: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12645: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 12646: lt_cv_dlopen="shl_load"
12647: else
1.150 moko 12648: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12649: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12650: if ${ac_cv_lib_dld_shl_load+:} false; then :
12651: $as_echo_n "(cached) " >&6
1.128 moko 12652: else
12653: ac_check_lib_save_LIBS=$LIBS
12654: LIBS="-ldld $LIBS"
1.150 moko 12655: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12656: /* end confdefs.h. */
12657:
1.150 moko 12658: /* Override any GCC internal prototype to avoid an error.
12659: Use char because int might match the return type of a GCC
12660: builtin and then its argument prototype would still apply. */
1.128 moko 12661: #ifdef __cplusplus
12662: extern "C"
12663: #endif
12664: char shl_load ();
12665: int
12666: main ()
12667: {
1.150 moko 12668: return shl_load ();
1.128 moko 12669: ;
12670: return 0;
12671: }
12672: _ACEOF
1.150 moko 12673: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12674: ac_cv_lib_dld_shl_load=yes
12675: else
1.150 moko 12676: ac_cv_lib_dld_shl_load=no
1.128 moko 12677: fi
1.150 moko 12678: rm -f core conftest.err conftest.$ac_objext \
12679: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12680: LIBS=$ac_check_lib_save_LIBS
12681: fi
1.150 moko 12682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12683: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12684: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.128 moko 12685: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12686: else
1.150 moko 12687: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12688: if test "x$ac_cv_func_dlopen" = xyes; then :
1.128 moko 12689: lt_cv_dlopen="dlopen"
12690: else
1.150 moko 12691: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12692: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12693: if ${ac_cv_lib_dl_dlopen+:} false; then :
12694: $as_echo_n "(cached) " >&6
1.128 moko 12695: else
12696: ac_check_lib_save_LIBS=$LIBS
12697: LIBS="-ldl $LIBS"
1.150 moko 12698: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12699: /* end confdefs.h. */
12700:
1.150 moko 12701: /* Override any GCC internal prototype to avoid an error.
12702: Use char because int might match the return type of a GCC
12703: builtin and then its argument prototype would still apply. */
1.128 moko 12704: #ifdef __cplusplus
12705: extern "C"
12706: #endif
12707: char dlopen ();
12708: int
12709: main ()
12710: {
1.150 moko 12711: return dlopen ();
1.128 moko 12712: ;
12713: return 0;
12714: }
12715: _ACEOF
1.150 moko 12716: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12717: ac_cv_lib_dl_dlopen=yes
12718: else
1.150 moko 12719: ac_cv_lib_dl_dlopen=no
1.128 moko 12720: fi
1.150 moko 12721: rm -f core conftest.err conftest.$ac_objext \
12722: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12723: LIBS=$ac_check_lib_save_LIBS
12724: fi
1.150 moko 12725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12726: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12727: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12728: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12729: else
1.150 moko 12730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12731: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12732: if ${ac_cv_lib_svld_dlopen+:} false; then :
12733: $as_echo_n "(cached) " >&6
1.128 moko 12734: else
12735: ac_check_lib_save_LIBS=$LIBS
12736: LIBS="-lsvld $LIBS"
1.150 moko 12737: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12738: /* end confdefs.h. */
12739:
1.150 moko 12740: /* Override any GCC internal prototype to avoid an error.
12741: Use char because int might match the return type of a GCC
12742: builtin and then its argument prototype would still apply. */
1.128 moko 12743: #ifdef __cplusplus
12744: extern "C"
12745: #endif
12746: char dlopen ();
12747: int
12748: main ()
12749: {
1.150 moko 12750: return dlopen ();
1.128 moko 12751: ;
12752: return 0;
12753: }
12754: _ACEOF
1.150 moko 12755: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12756: ac_cv_lib_svld_dlopen=yes
12757: else
1.150 moko 12758: ac_cv_lib_svld_dlopen=no
1.128 moko 12759: fi
1.150 moko 12760: rm -f core conftest.err conftest.$ac_objext \
12761: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12762: LIBS=$ac_check_lib_save_LIBS
12763: fi
1.150 moko 12764: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12765: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12766: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 12767: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12768: else
1.150 moko 12769: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12770: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12771: if ${ac_cv_lib_dld_dld_link+:} false; then :
12772: $as_echo_n "(cached) " >&6
1.128 moko 12773: else
12774: ac_check_lib_save_LIBS=$LIBS
12775: LIBS="-ldld $LIBS"
1.150 moko 12776: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12777: /* end confdefs.h. */
12778:
1.150 moko 12779: /* Override any GCC internal prototype to avoid an error.
12780: Use char because int might match the return type of a GCC
12781: builtin and then its argument prototype would still apply. */
1.128 moko 12782: #ifdef __cplusplus
12783: extern "C"
12784: #endif
12785: char dld_link ();
12786: int
12787: main ()
12788: {
1.150 moko 12789: return dld_link ();
1.128 moko 12790: ;
12791: return 0;
12792: }
12793: _ACEOF
1.150 moko 12794: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12795: ac_cv_lib_dld_dld_link=yes
12796: else
1.150 moko 12797: ac_cv_lib_dld_dld_link=no
12798: fi
12799: rm -f core conftest.err conftest.$ac_objext \
12800: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12801: LIBS=$ac_check_lib_save_LIBS
12802: fi
1.150 moko 12803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12804: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12805: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 12806: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12807: fi
12808:
12809:
12810: fi
12811:
12812:
12813: fi
12814:
12815:
12816: fi
12817:
12818:
12819: fi
12820:
12821:
12822: fi
12823:
12824: ;;
12825: esac
12826:
12827: if test "x$lt_cv_dlopen" != xno; then
12828: enable_dlopen=yes
12829: else
12830: enable_dlopen=no
12831: fi
12832:
12833: case $lt_cv_dlopen in
12834: dlopen)
12835: save_CPPFLAGS="$CPPFLAGS"
12836: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12837:
12838: save_LDFLAGS="$LDFLAGS"
12839: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12840:
12841: save_LIBS="$LIBS"
12842: LIBS="$lt_cv_dlopen_libs $LIBS"
12843:
1.150 moko 12844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12845: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12846: if ${lt_cv_dlopen_self+:} false; then :
12847: $as_echo_n "(cached) " >&6
1.128 moko 12848: else
12849: if test "$cross_compiling" = yes; then :
12850: lt_cv_dlopen_self=cross
12851: else
12852: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12853: lt_status=$lt_dlunknown
12854: cat > conftest.$ac_ext <<_LT_EOF
12855: #line $LINENO "configure"
12856: #include "confdefs.h"
12857:
12858: #if HAVE_DLFCN_H
12859: #include <dlfcn.h>
12860: #endif
12861:
12862: #include <stdio.h>
12863:
12864: #ifdef RTLD_GLOBAL
12865: # define LT_DLGLOBAL RTLD_GLOBAL
12866: #else
12867: # ifdef DL_GLOBAL
12868: # define LT_DLGLOBAL DL_GLOBAL
12869: # else
12870: # define LT_DLGLOBAL 0
12871: # endif
12872: #endif
12873:
12874: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12875: find out it does not work in some platform. */
12876: #ifndef LT_DLLAZY_OR_NOW
12877: # ifdef RTLD_LAZY
12878: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12879: # else
12880: # ifdef DL_LAZY
12881: # define LT_DLLAZY_OR_NOW DL_LAZY
12882: # else
12883: # ifdef RTLD_NOW
12884: # define LT_DLLAZY_OR_NOW RTLD_NOW
12885: # else
12886: # ifdef DL_NOW
12887: # define LT_DLLAZY_OR_NOW DL_NOW
12888: # else
12889: # define LT_DLLAZY_OR_NOW 0
12890: # endif
12891: # endif
12892: # endif
12893: # endif
12894: #endif
12895:
12896: /* When -fvisbility=hidden is used, assume the code has been annotated
12897: correspondingly for the symbols needed. */
12898: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12899: int fnord () __attribute__((visibility("default")));
12900: #endif
12901:
12902: int fnord () { return 42; }
12903: int main ()
12904: {
12905: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12906: int status = $lt_dlunknown;
12907:
12908: if (self)
12909: {
12910: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12911: else
12912: {
12913: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12914: else puts (dlerror ());
12915: }
12916: /* dlclose (self); */
12917: }
12918: else
12919: puts (dlerror ());
12920:
12921: return status;
12922: }
12923: _LT_EOF
1.150 moko 12924: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12925: (eval $ac_link) 2>&5
12926: ac_status=$?
1.150 moko 12927: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12929: (./conftest; exit; ) >&5 2>/dev/null
12930: lt_status=$?
12931: case x$lt_status in
12932: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12933: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12934: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12935: esac
12936: else :
12937: # compilation failed
12938: lt_cv_dlopen_self=no
12939: fi
12940: fi
12941: rm -fr conftest*
12942:
12943:
12944: fi
1.150 moko 12945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12946: $as_echo "$lt_cv_dlopen_self" >&6; }
1.128 moko 12947:
12948: if test "x$lt_cv_dlopen_self" = xyes; then
12949: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.150 moko 12950: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12951: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12952: if ${lt_cv_dlopen_self_static+:} false; then :
12953: $as_echo_n "(cached) " >&6
1.128 moko 12954: else
12955: if test "$cross_compiling" = yes; then :
12956: lt_cv_dlopen_self_static=cross
12957: else
12958: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12959: lt_status=$lt_dlunknown
12960: cat > conftest.$ac_ext <<_LT_EOF
12961: #line $LINENO "configure"
12962: #include "confdefs.h"
12963:
12964: #if HAVE_DLFCN_H
12965: #include <dlfcn.h>
12966: #endif
12967:
12968: #include <stdio.h>
12969:
12970: #ifdef RTLD_GLOBAL
12971: # define LT_DLGLOBAL RTLD_GLOBAL
12972: #else
12973: # ifdef DL_GLOBAL
12974: # define LT_DLGLOBAL DL_GLOBAL
12975: # else
12976: # define LT_DLGLOBAL 0
12977: # endif
12978: #endif
12979:
12980: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12981: find out it does not work in some platform. */
12982: #ifndef LT_DLLAZY_OR_NOW
12983: # ifdef RTLD_LAZY
12984: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12985: # else
12986: # ifdef DL_LAZY
12987: # define LT_DLLAZY_OR_NOW DL_LAZY
12988: # else
12989: # ifdef RTLD_NOW
12990: # define LT_DLLAZY_OR_NOW RTLD_NOW
12991: # else
12992: # ifdef DL_NOW
12993: # define LT_DLLAZY_OR_NOW DL_NOW
12994: # else
12995: # define LT_DLLAZY_OR_NOW 0
12996: # endif
12997: # endif
12998: # endif
12999: # endif
13000: #endif
13001:
13002: /* When -fvisbility=hidden is used, assume the code has been annotated
13003: correspondingly for the symbols needed. */
13004: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13005: int fnord () __attribute__((visibility("default")));
13006: #endif
13007:
13008: int fnord () { return 42; }
13009: int main ()
13010: {
13011: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13012: int status = $lt_dlunknown;
13013:
13014: if (self)
13015: {
13016: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13017: else
13018: {
13019: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13020: else puts (dlerror ());
13021: }
13022: /* dlclose (self); */
13023: }
13024: else
13025: puts (dlerror ());
13026:
13027: return status;
13028: }
13029: _LT_EOF
1.150 moko 13030: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 13031: (eval $ac_link) 2>&5
13032: ac_status=$?
1.150 moko 13033: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13034: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 13035: (./conftest; exit; ) >&5 2>/dev/null
13036: lt_status=$?
13037: case x$lt_status in
13038: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13039: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13040: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13041: esac
13042: else :
13043: # compilation failed
13044: lt_cv_dlopen_self_static=no
13045: fi
13046: fi
13047: rm -fr conftest*
13048:
13049:
13050: fi
1.150 moko 13051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13052: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 13053: fi
13054:
13055: CPPFLAGS="$save_CPPFLAGS"
13056: LDFLAGS="$save_LDFLAGS"
13057: LIBS="$save_LIBS"
13058: ;;
13059: esac
13060:
13061: case $lt_cv_dlopen_self in
13062: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13063: *) enable_dlopen_self=unknown ;;
13064: esac
13065:
13066: case $lt_cv_dlopen_self_static in
13067: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13068: *) enable_dlopen_self_static=unknown ;;
13069: esac
13070: fi
13071:
13072:
13073:
13074:
13075:
13076:
13077:
13078:
13079:
13080:
13081:
13082:
13083:
13084:
13085:
13086:
13087:
13088: striplib=
13089: old_striplib=
1.150 moko 13090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13091: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.128 moko 13092: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13093: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13094: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.150 moko 13095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13096: $as_echo "yes" >&6; }
1.128 moko 13097: else
13098: # FIXME - insert some real tests, host_os isn't really good enough
13099: case $host_os in
13100: darwin*)
13101: if test -n "$STRIP" ; then
13102: striplib="$STRIP -x"
13103: old_striplib="$STRIP -S"
1.150 moko 13104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13105: $as_echo "yes" >&6; }
1.128 moko 13106: else
1.150 moko 13107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108: $as_echo "no" >&6; }
1.128 moko 13109: fi
13110: ;;
13111: *)
1.150 moko 13112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113: $as_echo "no" >&6; }
1.128 moko 13114: ;;
13115: esac
13116: fi
13117:
13118:
13119:
13120:
13121:
13122:
13123:
13124:
13125:
13126:
13127:
13128:
13129: # Report which library types will actually be built
1.150 moko 13130: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13131: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13133: $as_echo "$can_build_shared" >&6; }
1.128 moko 13134:
1.150 moko 13135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13136: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.128 moko 13137: test "$can_build_shared" = "no" && enable_shared=no
13138:
13139: # On AIX, shared libraries and static libraries use the same namespace, and
13140: # are all built from PIC.
13141: case $host_os in
13142: aix3*)
13143: test "$enable_shared" = yes && enable_static=no
13144: if test -n "$RANLIB"; then
13145: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13146: postinstall_cmds='$RANLIB $lib'
13147: fi
13148: ;;
13149:
13150: aix[4-9]*)
13151: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13152: test "$enable_shared" = yes && enable_static=no
13153: fi
13154: ;;
13155: esac
1.150 moko 13156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13157: $as_echo "$enable_shared" >&6; }
1.128 moko 13158:
1.150 moko 13159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13160: $as_echo_n "checking whether to build static libraries... " >&6; }
1.128 moko 13161: # Make sure either enable_shared or enable_static is yes.
13162: test "$enable_shared" = yes || enable_static=yes
1.150 moko 13163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13164: $as_echo "$enable_static" >&6; }
1.128 moko 13165:
13166:
13167:
13168:
13169: fi
13170: ac_ext=c
13171: ac_cpp='$CPP $CPPFLAGS'
13172: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13173: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13174: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13175:
13176: CC="$lt_save_CC"
13177:
13178: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13179: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13180: (test "X$CXX" != "Xg++"))) ; then
1.150 moko 13181: ac_ext=cpp
1.128 moko 13182: ac_cpp='$CXXCPP $CPPFLAGS'
13183: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 13186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13187: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 13188: if test -z "$CXXCPP"; then
1.150 moko 13189: if ${ac_cv_prog_CXXCPP+:} false; then :
13190: $as_echo_n "(cached) " >&6
1.128 moko 13191: else
13192: # Double quotes because CXXCPP needs to be expanded
13193: for CXXCPP in "$CXX -E" "/lib/cpp"
13194: do
13195: ac_preproc_ok=false
13196: for ac_cxx_preproc_warn_flag in '' yes
13197: do
13198: # Use a header file that comes with gcc, so configuring glibc
13199: # with a fresh cross-compiler works.
13200: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13201: # <limits.h> exists even on freestanding compilers.
13202: # On the NeXT, cc -E runs the code through the compiler's parser,
13203: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13204: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13205: /* end confdefs.h. */
13206: #ifdef __STDC__
13207: # include <limits.h>
13208: #else
13209: # include <assert.h>
13210: #endif
13211: Syntax error
13212: _ACEOF
1.150 moko 13213: if ac_fn_cxx_try_cpp "$LINENO"; then :
13214:
1.128 moko 13215: else
13216: # Broken: fails on valid input.
13217: continue
13218: fi
1.150 moko 13219: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13220:
1.150 moko 13221: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13222: # can be detected and how.
1.150 moko 13223: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13224: /* end confdefs.h. */
13225: #include <ac_nonexistent.h>
13226: _ACEOF
1.150 moko 13227: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13228: # Broken: success on invalid input.
13229: continue
13230: else
13231: # Passes both tests.
13232: ac_preproc_ok=:
13233: break
13234: fi
1.150 moko 13235: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13236:
13237: done
13238: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13239: rm -f conftest.i conftest.err conftest.$ac_ext
13240: if $ac_preproc_ok; then :
1.128 moko 13241: break
13242: fi
13243:
13244: done
13245: ac_cv_prog_CXXCPP=$CXXCPP
13246:
13247: fi
13248: CXXCPP=$ac_cv_prog_CXXCPP
13249: else
13250: ac_cv_prog_CXXCPP=$CXXCPP
13251: fi
1.150 moko 13252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13253: $as_echo "$CXXCPP" >&6; }
1.128 moko 13254: ac_preproc_ok=false
13255: for ac_cxx_preproc_warn_flag in '' yes
13256: do
13257: # Use a header file that comes with gcc, so configuring glibc
13258: # with a fresh cross-compiler works.
13259: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13260: # <limits.h> exists even on freestanding compilers.
13261: # On the NeXT, cc -E runs the code through the compiler's parser,
13262: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13263: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13264: /* end confdefs.h. */
13265: #ifdef __STDC__
13266: # include <limits.h>
13267: #else
13268: # include <assert.h>
13269: #endif
13270: Syntax error
13271: _ACEOF
1.150 moko 13272: if ac_fn_cxx_try_cpp "$LINENO"; then :
13273:
1.128 moko 13274: else
13275: # Broken: fails on valid input.
13276: continue
13277: fi
1.150 moko 13278: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13279:
1.150 moko 13280: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13281: # can be detected and how.
1.150 moko 13282: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13283: /* end confdefs.h. */
13284: #include <ac_nonexistent.h>
13285: _ACEOF
1.150 moko 13286: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13287: # Broken: success on invalid input.
13288: continue
13289: else
13290: # Passes both tests.
13291: ac_preproc_ok=:
13292: break
13293: fi
1.150 moko 13294: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13295:
13296: done
13297: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13298: rm -f conftest.i conftest.err conftest.$ac_ext
13299: if $ac_preproc_ok; then :
13300:
1.128 moko 13301: else
1.150 moko 13302: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13303: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13304: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13305: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 13306: fi
13307:
13308: ac_ext=c
13309: ac_cpp='$CPP $CPPFLAGS'
13310: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13311: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13312: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13313:
13314: else
13315: _lt_caught_CXX_error=yes
13316: fi
13317:
1.150 moko 13318: ac_ext=cpp
1.128 moko 13319: ac_cpp='$CXXCPP $CPPFLAGS'
13320: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13321: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13322: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13323:
13324: archive_cmds_need_lc_CXX=no
13325: allow_undefined_flag_CXX=
13326: always_export_symbols_CXX=no
13327: archive_expsym_cmds_CXX=
13328: compiler_needs_object_CXX=no
13329: export_dynamic_flag_spec_CXX=
13330: hardcode_direct_CXX=no
13331: hardcode_direct_absolute_CXX=no
13332: hardcode_libdir_flag_spec_CXX=
13333: hardcode_libdir_separator_CXX=
13334: hardcode_minus_L_CXX=no
13335: hardcode_shlibpath_var_CXX=unsupported
13336: hardcode_automatic_CXX=no
13337: inherit_rpath_CXX=no
13338: module_cmds_CXX=
13339: module_expsym_cmds_CXX=
13340: link_all_deplibs_CXX=unknown
13341: old_archive_cmds_CXX=$old_archive_cmds
13342: reload_flag_CXX=$reload_flag
13343: reload_cmds_CXX=$reload_cmds
13344: no_undefined_flag_CXX=
13345: whole_archive_flag_spec_CXX=
13346: enable_shared_with_static_runtimes_CXX=no
13347:
13348: # Source file extension for C++ test sources.
13349: ac_ext=cpp
13350:
13351: # Object file extension for compiled C++ test sources.
13352: objext=o
13353: objext_CXX=$objext
13354:
13355: # No sense in running all these tests if we already determined that
13356: # the CXX compiler isn't working. Some variables (like enable_shared)
13357: # are currently assumed to apply to all compilers on this platform,
13358: # and will be corrupted by setting them based on a non-working compiler.
13359: if test "$_lt_caught_CXX_error" != yes; then
13360: # Code to be used in simple compile tests
13361: lt_simple_compile_test_code="int some_variable = 0;"
13362:
13363: # Code to be used in simple link tests
13364: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13365:
13366: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13367:
13368:
13369:
13370:
13371:
13372:
13373: # If no C compiler was specified, use CC.
13374: LTCC=${LTCC-"$CC"}
13375:
13376: # If no C compiler flags were specified, use CFLAGS.
13377: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13378:
13379: # Allow CC to be a program name with arguments.
13380: compiler=$CC
13381:
13382:
13383: # save warnings/boilerplate of simple test code
13384: ac_outfile=conftest.$ac_objext
13385: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13386: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13387: _lt_compiler_boilerplate=`cat conftest.err`
13388: $RM conftest*
13389:
13390: ac_outfile=conftest.$ac_objext
13391: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13392: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13393: _lt_linker_boilerplate=`cat conftest.err`
13394: $RM -r conftest*
13395:
13396:
13397: # Allow CC to be a program name with arguments.
13398: lt_save_CC=$CC
13399: lt_save_CFLAGS=$CFLAGS
13400: lt_save_LD=$LD
13401: lt_save_GCC=$GCC
13402: GCC=$GXX
13403: lt_save_with_gnu_ld=$with_gnu_ld
13404: lt_save_path_LD=$lt_cv_path_LD
13405: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13406: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13407: else
13408: $as_unset lt_cv_prog_gnu_ld
13409: fi
13410: if test -n "${lt_cv_path_LDCXX+set}"; then
13411: lt_cv_path_LD=$lt_cv_path_LDCXX
13412: else
13413: $as_unset lt_cv_path_LD
13414: fi
13415: test -z "${LDCXX+set}" || LD=$LDCXX
13416: CC=${CXX-"c++"}
13417: CFLAGS=$CXXFLAGS
13418: compiler=$CC
13419: compiler_CXX=$CC
13420: for cc_temp in $compiler""; do
13421: case $cc_temp in
13422: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13423: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13424: \-*) ;;
13425: *) break;;
13426: esac
13427: done
13428: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13429:
13430:
13431: if test -n "$compiler"; then
13432: # We don't want -fno-exception when compiling C++ code, so set the
13433: # no_builtin_flag separately
13434: if test "$GXX" = yes; then
13435: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13436: else
13437: lt_prog_compiler_no_builtin_flag_CXX=
13438: fi
13439:
13440: if test "$GXX" = yes; then
13441: # Set up default GNU C++ configuration
13442:
13443:
13444:
1.150 moko 13445: # Check whether --with-gnu-ld was given.
13446: if test "${with_gnu_ld+set}" = set; then :
13447: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 13448: else
13449: with_gnu_ld=no
1.150 moko 13450: fi
13451:
1.128 moko 13452: ac_prog=ld
13453: if test "$GCC" = yes; then
13454: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 13455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13456: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 13457: case $host in
13458: *-*-mingw*)
13459: # gcc leaves a trailing carriage return which upsets mingw
13460: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13461: *)
13462: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13463: esac
13464: case $ac_prog in
13465: # Accept absolute paths.
13466: [\\/]* | ?:[\\/]*)
13467: re_direlt='/[^/][^/]*/\.\./'
13468: # Canonicalize the pathname of ld
13469: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13470: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13471: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13472: done
13473: test -z "$LD" && LD="$ac_prog"
13474: ;;
13475: "")
13476: # If it fails, then pretend we aren't using GCC.
13477: ac_prog=ld
13478: ;;
13479: *)
13480: # If it is relative, then search for the first ld in PATH.
13481: with_gnu_ld=unknown
13482: ;;
13483: esac
13484: elif test "$with_gnu_ld" = yes; then
1.150 moko 13485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13486: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 13487: else
1.150 moko 13488: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13489: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 13490: fi
1.150 moko 13491: if ${lt_cv_path_LD+:} false; then :
13492: $as_echo_n "(cached) " >&6
1.128 moko 13493: else
13494: if test -z "$LD"; then
13495: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13496: for ac_dir in $PATH; do
13497: IFS="$lt_save_ifs"
13498: test -z "$ac_dir" && ac_dir=.
13499: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13500: lt_cv_path_LD="$ac_dir/$ac_prog"
13501: # Check to see if the program is GNU ld. I'd rather use --version,
13502: # but apparently some variants of GNU ld only accept -v.
13503: # Break only if it was the GNU/non-GNU ld that we prefer.
13504: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13505: *GNU* | *'with BFD'*)
13506: test "$with_gnu_ld" != no && break
13507: ;;
13508: *)
13509: test "$with_gnu_ld" != yes && break
13510: ;;
13511: esac
13512: fi
13513: done
13514: IFS="$lt_save_ifs"
13515: else
13516: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13517: fi
13518: fi
13519:
13520: LD="$lt_cv_path_LD"
13521: if test -n "$LD"; then
1.150 moko 13522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13523: $as_echo "$LD" >&6; }
1.128 moko 13524: else
1.150 moko 13525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526: $as_echo "no" >&6; }
1.128 moko 13527: fi
1.150 moko 13528: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13530: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13531: if ${lt_cv_prog_gnu_ld+:} false; then :
13532: $as_echo_n "(cached) " >&6
1.128 moko 13533: else
13534: # I'd rather use --version here, but apparently some GNU lds only accept -v.
13535: case `$LD -v 2>&1 </dev/null` in
13536: *GNU* | *'with BFD'*)
13537: lt_cv_prog_gnu_ld=yes
13538: ;;
13539: *)
13540: lt_cv_prog_gnu_ld=no
13541: ;;
13542: esac
13543: fi
1.150 moko 13544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13545: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 13546: with_gnu_ld=$lt_cv_prog_gnu_ld
13547:
13548:
13549:
13550:
13551:
13552:
13553:
13554: # Check if GNU C++ uses GNU ld as the underlying linker, since the
13555: # archiving commands below assume that GNU ld is being used.
13556: if test "$with_gnu_ld" = yes; then
13557: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13558: 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'
13559:
13560: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13561: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13562:
13563: # If archive_cmds runs LD, not CC, wlarc should be empty
13564: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13565: # investigate it a little bit more. (MM)
13566: wlarc='${wl}'
13567:
13568: # ancient GNU ld didn't support --whole-archive et. al.
13569: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13570: $GREP 'no-whole-archive' > /dev/null; then
13571: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13572: else
13573: whole_archive_flag_spec_CXX=
13574: fi
13575: else
13576: with_gnu_ld=no
13577: wlarc=
13578:
13579: # A generic and very simple default shared library creation
13580: # command for GNU C++ for the case where it uses the native
13581: # linker, instead of GNU ld. If possible, this setting should
13582: # overridden to take advantage of the native linker features on
13583: # the platform it is being used on.
13584: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13585: fi
13586:
13587: # Commands to make compiler produce verbose output that lists
13588: # what "hidden" libraries, object files and flags are used when
13589: # linking a shared library.
13590: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13591:
13592: else
13593: GXX=no
13594: with_gnu_ld=no
13595: wlarc=
13596: fi
13597:
13598: # PORTME: fill in a description of your system's C++ link characteristics
1.150 moko 13599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13600: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 13601: ld_shlibs_CXX=yes
13602: case $host_os in
13603: aix3*)
13604: # FIXME: insert proper C++ library support
13605: ld_shlibs_CXX=no
13606: ;;
13607: aix[4-9]*)
13608: if test "$host_cpu" = ia64; then
13609: # On IA64, the linker does run time linking by default, so we don't
13610: # have to do anything special.
13611: aix_use_runtimelinking=no
13612: exp_sym_flag='-Bexport'
13613: no_entry_flag=""
13614: else
13615: aix_use_runtimelinking=no
13616:
13617: # Test if we are trying to use run time linking or normal
13618: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13619: # need to do runtime linking.
13620: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13621: for ld_flag in $LDFLAGS; do
13622: case $ld_flag in
13623: *-brtl*)
13624: aix_use_runtimelinking=yes
13625: break
13626: ;;
13627: esac
13628: done
13629: ;;
13630: esac
13631:
13632: exp_sym_flag='-bexport'
13633: no_entry_flag='-bnoentry'
13634: fi
13635:
13636: # When large executables or shared objects are built, AIX ld can
13637: # have problems creating the table of contents. If linking a library
13638: # or program results in "error TOC overflow" add -mminimal-toc to
13639: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13640: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13641:
13642: archive_cmds_CXX=''
13643: hardcode_direct_CXX=yes
13644: hardcode_direct_absolute_CXX=yes
13645: hardcode_libdir_separator_CXX=':'
13646: link_all_deplibs_CXX=yes
13647: file_list_spec_CXX='${wl}-f,'
13648:
13649: if test "$GXX" = yes; then
13650: case $host_os in aix4.[012]|aix4.[012].*)
13651: # We only want to do this on AIX 4.2 and lower, the check
13652: # below for broken collect2 doesn't work under 4.3+
13653: collect2name=`${CC} -print-prog-name=collect2`
13654: if test -f "$collect2name" &&
13655: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13656: then
13657: # We have reworked collect2
13658: :
13659: else
13660: # We have old collect2
13661: hardcode_direct_CXX=unsupported
13662: # It fails to find uninstalled libraries when the uninstalled
13663: # path is not listed in the libpath. Setting hardcode_minus_L
13664: # to unsupported forces relinking
13665: hardcode_minus_L_CXX=yes
13666: hardcode_libdir_flag_spec_CXX='-L$libdir'
13667: hardcode_libdir_separator_CXX=
13668: fi
13669: esac
13670: shared_flag='-shared'
13671: if test "$aix_use_runtimelinking" = yes; then
13672: shared_flag="$shared_flag "'${wl}-G'
13673: fi
13674: else
13675: # not using gcc
13676: if test "$host_cpu" = ia64; then
13677: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13678: # chokes on -Wl,-G. The following line is correct:
13679: shared_flag='-G'
13680: else
13681: if test "$aix_use_runtimelinking" = yes; then
13682: shared_flag='${wl}-G'
13683: else
13684: shared_flag='${wl}-bM:SRE'
13685: fi
13686: fi
13687: fi
13688:
13689: export_dynamic_flag_spec_CXX='${wl}-bexpall'
13690: # It seems that -bexpall does not export symbols beginning with
13691: # underscore (_), so it is better to generate a list of symbols to
13692: # export.
13693: always_export_symbols_CXX=yes
13694: if test "$aix_use_runtimelinking" = yes; then
13695: # Warning - without using the other runtime loading flags (-brtl),
13696: # -berok will link without error, but may produce a broken library.
13697: allow_undefined_flag_CXX='-berok'
13698: # Determine the default libpath from the value encoded in an empty
13699: # executable.
13700: if test "${lt_cv_aix_libpath+set}" = set; then
13701: aix_libpath=$lt_cv_aix_libpath
13702: else
1.150 moko 13703: if ${lt_cv_aix_libpath__CXX+:} false; then :
13704: $as_echo_n "(cached) " >&6
1.128 moko 13705: else
1.150 moko 13706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13707: /* end confdefs.h. */
13708:
13709: int
13710: main ()
13711: {
13712:
13713: ;
13714: return 0;
13715: }
13716: _ACEOF
1.150 moko 13717: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13718:
13719: lt_aix_libpath_sed='
13720: /Import File Strings/,/^$/ {
13721: /^0/ {
13722: s/^0 *\([^ ]*\) *$/\1/
13723: p
13724: }
13725: }'
13726: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13727: # Check for a 64-bit object if we didn't find anything.
13728: if test -z "$lt_cv_aix_libpath__CXX"; then
13729: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13730: fi
13731: fi
1.150 moko 13732: rm -f core conftest.err conftest.$ac_objext \
13733: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13734: if test -z "$lt_cv_aix_libpath__CXX"; then
13735: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13736: fi
13737:
13738: fi
13739:
13740: aix_libpath=$lt_cv_aix_libpath__CXX
13741: fi
13742:
13743: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13744:
13745: 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"
13746: else
13747: if test "$host_cpu" = ia64; then
13748: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13749: allow_undefined_flag_CXX="-z nodefs"
13750: 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"
13751: else
13752: # Determine the default libpath from the value encoded in an
13753: # empty executable.
13754: if test "${lt_cv_aix_libpath+set}" = set; then
13755: aix_libpath=$lt_cv_aix_libpath
13756: else
1.150 moko 13757: if ${lt_cv_aix_libpath__CXX+:} false; then :
13758: $as_echo_n "(cached) " >&6
1.128 moko 13759: else
1.150 moko 13760: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13761: /* end confdefs.h. */
13762:
13763: int
13764: main ()
13765: {
13766:
13767: ;
13768: return 0;
13769: }
13770: _ACEOF
1.150 moko 13771: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13772:
13773: lt_aix_libpath_sed='
13774: /Import File Strings/,/^$/ {
13775: /^0/ {
13776: s/^0 *\([^ ]*\) *$/\1/
13777: p
13778: }
13779: }'
13780: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13781: # Check for a 64-bit object if we didn't find anything.
13782: if test -z "$lt_cv_aix_libpath__CXX"; then
13783: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13784: fi
13785: fi
1.150 moko 13786: rm -f core conftest.err conftest.$ac_objext \
13787: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13788: if test -z "$lt_cv_aix_libpath__CXX"; then
13789: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13790: fi
13791:
13792: fi
13793:
13794: aix_libpath=$lt_cv_aix_libpath__CXX
13795: fi
13796:
13797: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13798: # Warning - without using the other run time loading flags,
13799: # -berok will link without error, but may produce a broken library.
13800: no_undefined_flag_CXX=' ${wl}-bernotok'
13801: allow_undefined_flag_CXX=' ${wl}-berok'
13802: if test "$with_gnu_ld" = yes; then
13803: # We only use this code for GNU lds that support --whole-archive.
13804: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13805: else
13806: # Exported symbols can be pulled into shared objects from archives
13807: whole_archive_flag_spec_CXX='$convenience'
13808: fi
13809: archive_cmds_need_lc_CXX=yes
13810: # This is similar to how AIX traditionally builds its shared
13811: # libraries.
13812: 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'
13813: fi
13814: fi
13815: ;;
13816:
13817: beos*)
13818: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13819: allow_undefined_flag_CXX=unsupported
13820: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13821: # support --undefined. This deserves some investigation. FIXME
13822: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13823: else
13824: ld_shlibs_CXX=no
13825: fi
13826: ;;
13827:
13828: chorus*)
13829: case $cc_basename in
13830: *)
13831: # FIXME: insert proper C++ library support
13832: ld_shlibs_CXX=no
13833: ;;
13834: esac
13835: ;;
13836:
13837: cygwin* | mingw* | pw32* | cegcc*)
13838: case $GXX,$cc_basename in
13839: ,cl* | no,cl*)
13840: # Native MSVC
13841: # hardcode_libdir_flag_spec is actually meaningless, as there is
13842: # no search path for DLLs.
13843: hardcode_libdir_flag_spec_CXX=' '
13844: allow_undefined_flag_CXX=unsupported
13845: always_export_symbols_CXX=yes
13846: file_list_spec_CXX='@'
13847: # Tell ltmain to make .lib files, not .a files.
13848: libext=lib
13849: # Tell ltmain to make .dll files, not .so files.
13850: shrext_cmds=".dll"
13851: # FIXME: Setting linknames here is a bad hack.
13852: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13853: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13854: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13855: else
13856: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13857: fi~
13858: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13859: linknames='
13860: # The linker will not automatically build a static lib if we build a DLL.
13861: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13862: enable_shared_with_static_runtimes_CXX=yes
13863: # Don't use ranlib
13864: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13865: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13866: lt_tool_outputfile="@TOOL_OUTPUT@"~
13867: case $lt_outputfile in
13868: *.exe|*.EXE) ;;
13869: *)
13870: lt_outputfile="$lt_outputfile.exe"
13871: lt_tool_outputfile="$lt_tool_outputfile.exe"
13872: ;;
13873: esac~
13874: func_to_tool_file "$lt_outputfile"~
13875: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13876: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13877: $RM "$lt_outputfile.manifest";
13878: fi'
13879: ;;
13880: *)
13881: # g++
13882: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13883: # as there is no search path for DLLs.
13884: hardcode_libdir_flag_spec_CXX='-L$libdir'
13885: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13886: allow_undefined_flag_CXX=unsupported
13887: always_export_symbols_CXX=no
13888: enable_shared_with_static_runtimes_CXX=yes
13889:
13890: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13891: 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'
13892: # If the export-symbols file already is a .def file (1st line
13893: # is EXPORTS), use it as is; otherwise, prepend...
13894: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13895: cp $export_symbols $output_objdir/$soname.def;
13896: else
13897: echo EXPORTS > $output_objdir/$soname.def;
13898: cat $export_symbols >> $output_objdir/$soname.def;
13899: fi~
13900: $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'
13901: else
13902: ld_shlibs_CXX=no
13903: fi
13904: ;;
13905: esac
13906: ;;
13907: darwin* | rhapsody*)
13908:
13909:
13910: archive_cmds_need_lc_CXX=no
13911: hardcode_direct_CXX=no
13912: hardcode_automatic_CXX=yes
13913: hardcode_shlibpath_var_CXX=unsupported
13914: if test "$lt_cv_ld_force_load" = "yes"; then
13915: 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\"`'
13916:
13917: else
13918: whole_archive_flag_spec_CXX=''
13919: fi
13920: link_all_deplibs_CXX=yes
13921: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13922: case $cc_basename in
13923: ifort*) _lt_dar_can_shared=yes ;;
13924: *) _lt_dar_can_shared=$GCC ;;
13925: esac
13926: if test "$_lt_dar_can_shared" = "yes"; then
13927: output_verbose_link_cmd=func_echo_all
13928: 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}"
13929: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13930: 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}"
13931: 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}"
13932: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13933: 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}"
13934: 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}"
13935: fi
13936:
13937: else
13938: ld_shlibs_CXX=no
13939: fi
13940:
13941: ;;
13942:
13943: dgux*)
13944: case $cc_basename in
13945: ec++*)
13946: # FIXME: insert proper C++ library support
13947: ld_shlibs_CXX=no
13948: ;;
13949: ghcx*)
13950: # Green Hills C++ Compiler
13951: # FIXME: insert proper C++ library support
13952: ld_shlibs_CXX=no
13953: ;;
13954: *)
13955: # FIXME: insert proper C++ library support
13956: ld_shlibs_CXX=no
13957: ;;
13958: esac
13959: ;;
13960:
13961: freebsd2.*)
13962: # C++ shared libraries reported to be fairly broken before
13963: # switch to ELF
13964: ld_shlibs_CXX=no
13965: ;;
13966:
13967: freebsd-elf*)
13968: archive_cmds_need_lc_CXX=no
13969: ;;
13970:
13971: freebsd* | dragonfly*)
13972: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13973: # conventions
13974: ld_shlibs_CXX=yes
13975: ;;
13976:
13977: gnu*)
13978: ;;
13979:
13980: haiku*)
13981: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13982: link_all_deplibs_CXX=yes
13983: ;;
13984:
13985: hpux9*)
13986: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13987: hardcode_libdir_separator_CXX=:
13988: export_dynamic_flag_spec_CXX='${wl}-E'
13989: hardcode_direct_CXX=yes
13990: hardcode_minus_L_CXX=yes # Not in the search PATH,
13991: # but as the default
13992: # location of the library.
13993:
13994: case $cc_basename in
13995: CC*)
13996: # FIXME: insert proper C++ library support
13997: ld_shlibs_CXX=no
13998: ;;
13999: aCC*)
14000: 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'
14001: # Commands to make compiler produce verbose output that lists
14002: # what "hidden" libraries, object files and flags are used when
14003: # linking a shared library.
14004: #
14005: # There doesn't appear to be a way to prevent this compiler from
14006: # explicitly linking system object files so we need to strip them
14007: # from the output so that they don't get included in the library
14008: # dependencies.
14009: 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"'
14010: ;;
14011: *)
14012: if test "$GXX" = yes; then
14013: 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'
14014: else
14015: # FIXME: insert proper C++ library support
14016: ld_shlibs_CXX=no
14017: fi
14018: ;;
14019: esac
14020: ;;
14021:
14022: hpux10*|hpux11*)
14023: if test $with_gnu_ld = no; then
14024: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14025: hardcode_libdir_separator_CXX=:
14026:
14027: case $host_cpu in
14028: hppa*64*|ia64*)
14029: ;;
14030: *)
14031: export_dynamic_flag_spec_CXX='${wl}-E'
14032: ;;
14033: esac
14034: fi
14035: case $host_cpu in
14036: hppa*64*|ia64*)
14037: hardcode_direct_CXX=no
14038: hardcode_shlibpath_var_CXX=no
14039: ;;
14040: *)
14041: hardcode_direct_CXX=yes
14042: hardcode_direct_absolute_CXX=yes
14043: hardcode_minus_L_CXX=yes # Not in the search PATH,
14044: # but as the default
14045: # location of the library.
14046: ;;
14047: esac
14048:
14049: case $cc_basename in
14050: CC*)
14051: # FIXME: insert proper C++ library support
14052: ld_shlibs_CXX=no
14053: ;;
14054: aCC*)
14055: case $host_cpu in
14056: hppa*64*)
14057: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14058: ;;
14059: ia64*)
14060: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14061: ;;
14062: *)
14063: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14064: ;;
14065: esac
14066: # Commands to make compiler produce verbose output that lists
14067: # what "hidden" libraries, object files and flags are used when
14068: # linking a shared library.
14069: #
14070: # There doesn't appear to be a way to prevent this compiler from
14071: # explicitly linking system object files so we need to strip them
14072: # from the output so that they don't get included in the library
14073: # dependencies.
14074: 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"'
14075: ;;
14076: *)
14077: if test "$GXX" = yes; then
14078: if test $with_gnu_ld = no; then
14079: case $host_cpu in
14080: hppa*64*)
14081: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14082: ;;
14083: ia64*)
14084: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14085: ;;
14086: *)
14087: 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'
14088: ;;
14089: esac
14090: fi
14091: else
14092: # FIXME: insert proper C++ library support
14093: ld_shlibs_CXX=no
14094: fi
14095: ;;
14096: esac
14097: ;;
14098:
14099: interix[3-9]*)
14100: hardcode_direct_CXX=no
14101: hardcode_shlibpath_var_CXX=no
14102: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14103: export_dynamic_flag_spec_CXX='${wl}-E'
14104: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14105: # Instead, shared libraries are loaded at an image base (0x10000000 by
14106: # default) and relocated if they conflict, which is a slow very memory
14107: # consuming and fragmenting process. To avoid this, we pick a random,
14108: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14109: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14110: 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'
14111: 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'
14112: ;;
14113: irix5* | irix6*)
14114: case $cc_basename in
14115: CC*)
14116: # SGI C++
14117: 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'
14118:
14119: # Archives containing C++ object files must be created using
14120: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14121: # necessary to make sure instantiated templates are included
14122: # in the archive.
14123: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14124: ;;
14125: *)
14126: if test "$GXX" = yes; then
14127: if test "$with_gnu_ld" = no; then
14128: 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'
14129: else
14130: 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'
14131: fi
14132: fi
14133: link_all_deplibs_CXX=yes
14134: ;;
14135: esac
14136: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14137: hardcode_libdir_separator_CXX=:
14138: inherit_rpath_CXX=yes
14139: ;;
14140:
14141: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14142: case $cc_basename in
14143: KCC*)
14144: # Kuck and Associates, Inc. (KAI) C++ Compiler
14145:
14146: # KCC will only create a shared library if the output file
14147: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14148: # to its proper name (with version) after linking.
14149: 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'
14150: 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'
14151: # Commands to make compiler produce verbose output that lists
14152: # what "hidden" libraries, object files and flags are used when
14153: # linking a shared library.
14154: #
14155: # There doesn't appear to be a way to prevent this compiler from
14156: # explicitly linking system object files so we need to strip them
14157: # from the output so that they don't get included in the library
14158: # dependencies.
14159: 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"'
14160:
14161: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14162: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14163:
14164: # Archives containing C++ object files must be created using
14165: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14166: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14167: ;;
14168: icpc* | ecpc* )
14169: # Intel C++
14170: with_gnu_ld=yes
14171: # version 8.0 and above of icpc choke on multiply defined symbols
14172: # if we add $predep_objects and $postdep_objects, however 7.1 and
14173: # earlier do not add the objects themselves.
14174: case `$CC -V 2>&1` in
14175: *"Version 7."*)
14176: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14177: 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'
14178: ;;
14179: *) # Version 8.0 or newer
14180: tmp_idyn=
14181: case $host_cpu in
14182: ia64*) tmp_idyn=' -i_dynamic';;
14183: esac
14184: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14185: 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'
14186: ;;
14187: esac
14188: archive_cmds_need_lc_CXX=no
14189: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14190: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14191: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14192: ;;
14193: pgCC* | pgcpp*)
14194: # Portland Group C++ compiler
14195: case `$CC -V` in
14196: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14197: prelink_cmds_CXX='tpldir=Template.dir~
14198: rm -rf $tpldir~
14199: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14200: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14201: old_archive_cmds_CXX='tpldir=Template.dir~
14202: rm -rf $tpldir~
14203: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14204: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14205: $RANLIB $oldlib'
14206: archive_cmds_CXX='tpldir=Template.dir~
14207: rm -rf $tpldir~
14208: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14209: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14210: archive_expsym_cmds_CXX='tpldir=Template.dir~
14211: rm -rf $tpldir~
14212: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14213: $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'
14214: ;;
14215: *) # Version 6 and above use weak symbols
14216: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14217: 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'
14218: ;;
14219: esac
14220:
14221: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14222: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14223: 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'
14224: ;;
14225: cxx*)
14226: # Compaq C++
14227: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14228: 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'
14229:
14230: runpath_var=LD_RUN_PATH
14231: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14232: hardcode_libdir_separator_CXX=:
14233:
14234: # Commands to make compiler produce verbose output that lists
14235: # what "hidden" libraries, object files and flags are used when
14236: # linking a shared library.
14237: #
14238: # There doesn't appear to be a way to prevent this compiler from
14239: # explicitly linking system object files so we need to strip them
14240: # from the output so that they don't get included in the library
14241: # dependencies.
14242: 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'
14243: ;;
14244: xl* | mpixl* | bgxl*)
14245: # IBM XL 8.0 on PPC, with GNU ld
14246: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14247: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14248: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14249: if test "x$supports_anon_versioning" = xyes; then
14250: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14251: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14252: echo "local: *; };" >> $output_objdir/$libname.ver~
14253: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14254: fi
14255: ;;
14256: *)
14257: case `$CC -V 2>&1 | sed 5q` in
14258: *Sun\ C*)
14259: # Sun C++ 5.9
14260: no_undefined_flag_CXX=' -zdefs'
14261: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14262: 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'
14263: hardcode_libdir_flag_spec_CXX='-R$libdir'
14264: 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'
14265: compiler_needs_object_CXX=yes
14266:
14267: # Not sure whether something based on
14268: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14269: # would be better.
14270: output_verbose_link_cmd='func_echo_all'
14271:
14272: # Archives containing C++ object files must be created using
14273: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14274: # necessary to make sure instantiated templates are included
14275: # in the archive.
14276: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14277: ;;
14278: esac
14279: ;;
14280: esac
14281: ;;
14282:
14283: lynxos*)
14284: # FIXME: insert proper C++ library support
14285: ld_shlibs_CXX=no
14286: ;;
14287:
14288: m88k*)
14289: # FIXME: insert proper C++ library support
14290: ld_shlibs_CXX=no
14291: ;;
14292:
14293: mvs*)
14294: case $cc_basename in
14295: cxx*)
14296: # FIXME: insert proper C++ library support
14297: ld_shlibs_CXX=no
14298: ;;
14299: *)
14300: # FIXME: insert proper C++ library support
14301: ld_shlibs_CXX=no
14302: ;;
14303: esac
14304: ;;
14305:
14306: netbsd*)
14307: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14308: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14309: wlarc=
14310: hardcode_libdir_flag_spec_CXX='-R$libdir'
14311: hardcode_direct_CXX=yes
14312: hardcode_shlibpath_var_CXX=no
14313: fi
14314: # Workaround some broken pre-1.5 toolchains
14315: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14316: ;;
14317:
14318: *nto* | *qnx*)
14319: ld_shlibs_CXX=yes
14320: ;;
14321:
14322: openbsd2*)
14323: # C++ shared libraries are fairly broken
14324: ld_shlibs_CXX=no
14325: ;;
14326:
14327: openbsd*)
14328: if test -f /usr/libexec/ld.so; then
14329: hardcode_direct_CXX=yes
14330: hardcode_shlibpath_var_CXX=no
14331: hardcode_direct_absolute_CXX=yes
14332: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14333: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14334: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14335: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14336: export_dynamic_flag_spec_CXX='${wl}-E'
14337: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14338: fi
14339: output_verbose_link_cmd=func_echo_all
14340: else
14341: ld_shlibs_CXX=no
14342: fi
14343: ;;
14344:
14345: osf3* | osf4* | osf5*)
14346: case $cc_basename in
14347: KCC*)
14348: # Kuck and Associates, Inc. (KAI) C++ Compiler
14349:
14350: # KCC will only create a shared library if the output file
14351: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14352: # to its proper name (with version) after linking.
14353: 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'
14354:
14355: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14356: hardcode_libdir_separator_CXX=:
14357:
14358: # Archives containing C++ object files must be created using
14359: # the KAI C++ compiler.
14360: case $host in
14361: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14362: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14363: esac
14364: ;;
14365: RCC*)
14366: # Rational C++ 2.4.1
14367: # FIXME: insert proper C++ library support
14368: ld_shlibs_CXX=no
14369: ;;
14370: cxx*)
14371: case $host in
14372: osf3*)
14373: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14374: 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'
14375: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14376: ;;
14377: *)
14378: allow_undefined_flag_CXX=' -expect_unresolved \*'
14379: 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'
14380: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14381: echo "-hidden">> $lib.exp~
14382: $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~
14383: $RM $lib.exp'
14384: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14385: ;;
14386: esac
14387:
14388: hardcode_libdir_separator_CXX=:
14389:
14390: # Commands to make compiler produce verbose output that lists
14391: # what "hidden" libraries, object files and flags are used when
14392: # linking a shared library.
14393: #
14394: # There doesn't appear to be a way to prevent this compiler from
14395: # explicitly linking system object files so we need to strip them
14396: # from the output so that they don't get included in the library
14397: # dependencies.
14398: 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"'
14399: ;;
14400: *)
14401: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14402: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14403: case $host in
14404: osf3*)
14405: 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'
14406: ;;
14407: *)
14408: 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'
14409: ;;
14410: esac
14411:
14412: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14413: hardcode_libdir_separator_CXX=:
14414:
14415: # Commands to make compiler produce verbose output that lists
14416: # what "hidden" libraries, object files and flags are used when
14417: # linking a shared library.
14418: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14419:
14420: else
14421: # FIXME: insert proper C++ library support
14422: ld_shlibs_CXX=no
14423: fi
14424: ;;
14425: esac
14426: ;;
14427:
14428: psos*)
14429: # FIXME: insert proper C++ library support
14430: ld_shlibs_CXX=no
14431: ;;
14432:
14433: sunos4*)
14434: case $cc_basename in
14435: CC*)
14436: # Sun C++ 4.x
14437: # FIXME: insert proper C++ library support
14438: ld_shlibs_CXX=no
14439: ;;
14440: lcc*)
14441: # Lucid
14442: # FIXME: insert proper C++ library support
14443: ld_shlibs_CXX=no
14444: ;;
14445: *)
14446: # FIXME: insert proper C++ library support
14447: ld_shlibs_CXX=no
14448: ;;
14449: esac
14450: ;;
14451:
14452: solaris*)
14453: case $cc_basename in
14454: CC* | sunCC*)
14455: # Sun C++ 4.2, 5.x and Centerline C++
14456: archive_cmds_need_lc_CXX=yes
14457: no_undefined_flag_CXX=' -zdefs'
14458: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14459: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14460: $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'
14461:
14462: hardcode_libdir_flag_spec_CXX='-R$libdir'
14463: hardcode_shlibpath_var_CXX=no
14464: case $host_os in
14465: solaris2.[0-5] | solaris2.[0-5].*) ;;
14466: *)
14467: # The compiler driver will combine and reorder linker options,
14468: # but understands `-z linker_flag'.
14469: # Supported since Solaris 2.6 (maybe 2.5.1?)
14470: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14471: ;;
14472: esac
14473: link_all_deplibs_CXX=yes
14474:
14475: output_verbose_link_cmd='func_echo_all'
14476:
14477: # Archives containing C++ object files must be created using
14478: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14479: # necessary to make sure instantiated templates are included
14480: # in the archive.
14481: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14482: ;;
14483: gcx*)
14484: # Green Hills C++ Compiler
14485: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14486:
14487: # The C++ compiler must be used to create the archive.
14488: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14489: ;;
14490: *)
14491: # GNU C++ compiler with Solaris linker
14492: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14493: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14494: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14495: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14496: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14497: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14498:
14499: # Commands to make compiler produce verbose output that lists
14500: # what "hidden" libraries, object files and flags are used when
14501: # linking a shared library.
14502: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14503: else
14504: # g++ 2.7 appears to require `-G' NOT `-shared' on this
14505: # platform.
14506: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14507: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14508: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14509:
14510: # Commands to make compiler produce verbose output that lists
14511: # what "hidden" libraries, object files and flags are used when
14512: # linking a shared library.
14513: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14514: fi
14515:
14516: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14517: case $host_os in
14518: solaris2.[0-5] | solaris2.[0-5].*) ;;
14519: *)
14520: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14521: ;;
14522: esac
14523: fi
14524: ;;
14525: esac
14526: ;;
14527:
14528: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14529: no_undefined_flag_CXX='${wl}-z,text'
14530: archive_cmds_need_lc_CXX=no
14531: hardcode_shlibpath_var_CXX=no
14532: runpath_var='LD_RUN_PATH'
14533:
14534: case $cc_basename in
14535: CC*)
14536: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14537: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14538: ;;
14539: *)
14540: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542: ;;
14543: esac
14544: ;;
14545:
14546: sysv5* | sco3.2v5* | sco5v6*)
14547: # Note: We can NOT use -z defs as we might desire, because we do not
14548: # link with -lc, and that would cause any symbols used from libc to
14549: # always be unresolved, which means just about no library would
14550: # ever link correctly. If we're not using GNU ld we use -z text
14551: # though, which does catch some bad symbols but isn't as heavy-handed
14552: # as -z defs.
14553: no_undefined_flag_CXX='${wl}-z,text'
14554: allow_undefined_flag_CXX='${wl}-z,nodefs'
14555: archive_cmds_need_lc_CXX=no
14556: hardcode_shlibpath_var_CXX=no
14557: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14558: hardcode_libdir_separator_CXX=':'
14559: link_all_deplibs_CXX=yes
14560: export_dynamic_flag_spec_CXX='${wl}-Bexport'
14561: runpath_var='LD_RUN_PATH'
14562:
14563: case $cc_basename in
14564: CC*)
14565: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14566: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14567: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14568: '"$old_archive_cmds_CXX"
14569: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14570: '"$reload_cmds_CXX"
14571: ;;
14572: *)
14573: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14574: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14575: ;;
14576: esac
14577: ;;
14578:
14579: tandem*)
14580: case $cc_basename in
14581: NCC*)
14582: # NonStop-UX NCC 3.20
14583: # FIXME: insert proper C++ library support
14584: ld_shlibs_CXX=no
14585: ;;
14586: *)
14587: # FIXME: insert proper C++ library support
14588: ld_shlibs_CXX=no
14589: ;;
14590: esac
14591: ;;
14592:
14593: vxworks*)
14594: # FIXME: insert proper C++ library support
14595: ld_shlibs_CXX=no
14596: ;;
14597:
14598: *)
14599: # FIXME: insert proper C++ library support
14600: ld_shlibs_CXX=no
14601: ;;
14602: esac
14603:
1.150 moko 14604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14605: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 14606: test "$ld_shlibs_CXX" = no && can_build_shared=no
14607:
14608: GCC_CXX="$GXX"
14609: LD_CXX="$LD"
14610:
14611: ## CAVEAT EMPTOR:
14612: ## There is no encapsulation within the following macros, do not change
14613: ## the running order or otherwise move them around unless you know exactly
14614: ## what you are doing...
14615: # Dependencies to place before and after the object being linked:
14616: predep_objects_CXX=
14617: postdep_objects_CXX=
14618: predeps_CXX=
14619: postdeps_CXX=
14620: compiler_lib_search_path_CXX=
14621:
14622: cat > conftest.$ac_ext <<_LT_EOF
14623: class Foo
14624: {
14625: public:
14626: Foo (void) { a = 0; }
14627: private:
14628: int a;
14629: };
14630: _LT_EOF
14631:
14632:
14633: _lt_libdeps_save_CFLAGS=$CFLAGS
14634: case "$CC $CFLAGS " in #(
14635: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14636: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14637: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14638: esac
14639:
1.150 moko 14640: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 14641: (eval $ac_compile) 2>&5
14642: ac_status=$?
1.150 moko 14643: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14644: test $ac_status = 0; }; then
1.128 moko 14645: # Parse the compiler output and extract the necessary
14646: # objects, libraries and library flags.
14647:
14648: # Sentinel used to keep track of whether or not we are before
14649: # the conftest object file.
14650: pre_test_object_deps_done=no
14651:
14652: for p in `eval "$output_verbose_link_cmd"`; do
14653: case ${prev}${p} in
14654:
14655: -L* | -R* | -l*)
14656: # Some compilers place space between "-{L,R}" and the path.
14657: # Remove the space.
14658: if test $p = "-L" ||
14659: test $p = "-R"; then
14660: prev=$p
14661: continue
14662: fi
14663:
14664: # Expand the sysroot to ease extracting the directories later.
14665: if test -z "$prev"; then
14666: case $p in
14667: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14668: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14669: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14670: esac
14671: fi
14672: case $p in
14673: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14674: esac
14675: if test "$pre_test_object_deps_done" = no; then
14676: case ${prev} in
14677: -L | -R)
14678: # Internal compiler library paths should come after those
14679: # provided the user. The postdeps already come after the
14680: # user supplied libs so there is no need to process them.
14681: if test -z "$compiler_lib_search_path_CXX"; then
14682: compiler_lib_search_path_CXX="${prev}${p}"
14683: else
14684: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14685: fi
14686: ;;
14687: # The "-l" case would never come before the object being
14688: # linked, so don't bother handling this case.
14689: esac
14690: else
14691: if test -z "$postdeps_CXX"; then
14692: postdeps_CXX="${prev}${p}"
14693: else
14694: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14695: fi
14696: fi
14697: prev=
14698: ;;
14699:
14700: *.lto.$objext) ;; # Ignore GCC LTO objects
14701: *.$objext)
14702: # This assumes that the test object file only shows up
14703: # once in the compiler output.
14704: if test "$p" = "conftest.$objext"; then
14705: pre_test_object_deps_done=yes
14706: continue
14707: fi
14708:
14709: if test "$pre_test_object_deps_done" = no; then
14710: if test -z "$predep_objects_CXX"; then
14711: predep_objects_CXX="$p"
14712: else
14713: predep_objects_CXX="$predep_objects_CXX $p"
14714: fi
14715: else
14716: if test -z "$postdep_objects_CXX"; then
14717: postdep_objects_CXX="$p"
14718: else
14719: postdep_objects_CXX="$postdep_objects_CXX $p"
14720: fi
14721: fi
14722: ;;
14723:
14724: *) ;; # Ignore the rest.
14725:
14726: esac
14727: done
14728:
14729: # Clean up.
14730: rm -f a.out a.exe
14731: else
14732: echo "libtool.m4: error: problem compiling CXX test program"
14733: fi
14734:
14735: $RM -f confest.$objext
14736: CFLAGS=$_lt_libdeps_save_CFLAGS
14737:
14738: # PORTME: override above test on systems where it is broken
14739: case $host_os in
14740: interix[3-9]*)
14741: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14742: # hack all around it, let's just trust "g++" to DTRT.
14743: predep_objects_CXX=
14744: postdep_objects_CXX=
14745: postdeps_CXX=
14746: ;;
14747:
14748: linux*)
14749: case `$CC -V 2>&1 | sed 5q` in
14750: *Sun\ C*)
14751: # Sun C++ 5.9
14752:
14753: # The more standards-conforming stlport4 library is
14754: # incompatible with the Cstd library. Avoid specifying
14755: # it if it's in CXXFLAGS. Ignore libCrun as
14756: # -library=stlport4 depends on it.
14757: case " $CXX $CXXFLAGS " in
14758: *" -library=stlport4 "*)
14759: solaris_use_stlport4=yes
14760: ;;
14761: esac
14762:
14763: if test "$solaris_use_stlport4" != yes; then
14764: postdeps_CXX='-library=Cstd -library=Crun'
14765: fi
14766: ;;
14767: esac
14768: ;;
14769:
14770: solaris*)
14771: case $cc_basename in
14772: CC* | sunCC*)
14773: # The more standards-conforming stlport4 library is
14774: # incompatible with the Cstd library. Avoid specifying
14775: # it if it's in CXXFLAGS. Ignore libCrun as
14776: # -library=stlport4 depends on it.
14777: case " $CXX $CXXFLAGS " in
14778: *" -library=stlport4 "*)
14779: solaris_use_stlport4=yes
14780: ;;
14781: esac
14782:
14783: # Adding this requires a known-good setup of shared libraries for
14784: # Sun compiler versions before 5.6, else PIC objects from an old
14785: # archive will be linked into the output, leading to subtle bugs.
14786: if test "$solaris_use_stlport4" != yes; then
14787: postdeps_CXX='-library=Cstd -library=Crun'
14788: fi
14789: ;;
14790: esac
14791: ;;
14792: esac
14793:
14794:
14795: case " $postdeps_CXX " in
14796: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14797: esac
14798: compiler_lib_search_dirs_CXX=
14799: if test -n "${compiler_lib_search_path_CXX}"; then
14800: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14801: fi
14802:
14803:
14804:
14805:
14806:
14807:
14808:
14809:
14810:
14811:
14812:
14813:
14814:
14815:
14816:
14817:
14818:
14819:
14820:
14821:
14822:
14823:
14824:
14825:
14826:
14827:
14828:
14829:
14830:
14831:
14832:
14833: lt_prog_compiler_wl_CXX=
14834: lt_prog_compiler_pic_CXX=
14835: lt_prog_compiler_static_CXX=
14836:
14837:
14838: # C++ specific cases for pic, static, wl, etc.
14839: if test "$GXX" = yes; then
14840: lt_prog_compiler_wl_CXX='-Wl,'
14841: lt_prog_compiler_static_CXX='-static'
14842:
14843: case $host_os in
14844: aix*)
14845: # All AIX code is PIC.
14846: if test "$host_cpu" = ia64; then
14847: # AIX 5 now supports IA64 processor
14848: lt_prog_compiler_static_CXX='-Bstatic'
14849: fi
14850: ;;
14851:
14852: amigaos*)
14853: case $host_cpu in
14854: powerpc)
14855: # see comment about AmigaOS4 .so support
14856: lt_prog_compiler_pic_CXX='-fPIC'
14857: ;;
14858: m68k)
14859: # FIXME: we need at least 68020 code to build shared libraries, but
14860: # adding the `-m68020' flag to GCC prevents building anything better,
14861: # like `-m68040'.
14862: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14863: ;;
14864: esac
14865: ;;
14866:
14867: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14868: # PIC is the default for these OSes.
14869: ;;
14870: mingw* | cygwin* | os2* | pw32* | cegcc*)
14871: # This hack is so that the source file can tell whether it is being
14872: # built for inclusion in a dll (and should export symbols for example).
14873: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14874: # (--disable-auto-import) libraries
14875: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14876: ;;
14877: darwin* | rhapsody*)
14878: # PIC is the default on this platform
14879: # Common symbols not allowed in MH_DYLIB files
14880: lt_prog_compiler_pic_CXX='-fno-common'
14881: ;;
14882: *djgpp*)
14883: # DJGPP does not support shared libraries at all
14884: lt_prog_compiler_pic_CXX=
14885: ;;
14886: haiku*)
14887: # PIC is the default for Haiku.
14888: # The "-static" flag exists, but is broken.
14889: lt_prog_compiler_static_CXX=
14890: ;;
14891: interix[3-9]*)
14892: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14893: # Instead, we relocate shared libraries at runtime.
14894: ;;
14895: sysv4*MP*)
14896: if test -d /usr/nec; then
14897: lt_prog_compiler_pic_CXX=-Kconform_pic
14898: fi
14899: ;;
14900: hpux*)
14901: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14902: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14903: # sets the default TLS model and affects inlining.
14904: case $host_cpu in
14905: hppa*64*)
14906: ;;
14907: *)
14908: lt_prog_compiler_pic_CXX='-fPIC'
14909: ;;
14910: esac
14911: ;;
14912: *qnx* | *nto*)
14913: # QNX uses GNU C++, but need to define -shared option too, otherwise
14914: # it will coredump.
14915: lt_prog_compiler_pic_CXX='-fPIC -shared'
14916: ;;
14917: *)
14918: lt_prog_compiler_pic_CXX='-fPIC'
14919: ;;
14920: esac
14921: else
14922: case $host_os in
14923: aix[4-9]*)
14924: # All AIX code is PIC.
14925: if test "$host_cpu" = ia64; then
14926: # AIX 5 now supports IA64 processor
14927: lt_prog_compiler_static_CXX='-Bstatic'
14928: else
14929: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14930: fi
14931: ;;
14932: chorus*)
14933: case $cc_basename in
14934: cxch68*)
14935: # Green Hills C++ Compiler
14936: # _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"
14937: ;;
14938: esac
14939: ;;
14940: mingw* | cygwin* | os2* | pw32* | cegcc*)
14941: # This hack is so that the source file can tell whether it is being
14942: # built for inclusion in a dll (and should export symbols for example).
14943: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14944: ;;
14945: dgux*)
14946: case $cc_basename in
14947: ec++*)
14948: lt_prog_compiler_pic_CXX='-KPIC'
14949: ;;
14950: ghcx*)
14951: # Green Hills C++ Compiler
14952: lt_prog_compiler_pic_CXX='-pic'
14953: ;;
14954: *)
14955: ;;
14956: esac
14957: ;;
14958: freebsd* | dragonfly*)
14959: # FreeBSD uses GNU C++
14960: ;;
14961: hpux9* | hpux10* | hpux11*)
14962: case $cc_basename in
14963: CC*)
14964: lt_prog_compiler_wl_CXX='-Wl,'
14965: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14966: if test "$host_cpu" != ia64; then
14967: lt_prog_compiler_pic_CXX='+Z'
14968: fi
14969: ;;
14970: aCC*)
14971: lt_prog_compiler_wl_CXX='-Wl,'
14972: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14973: case $host_cpu in
14974: hppa*64*|ia64*)
14975: # +Z the default
14976: ;;
14977: *)
14978: lt_prog_compiler_pic_CXX='+Z'
14979: ;;
14980: esac
14981: ;;
14982: *)
14983: ;;
14984: esac
14985: ;;
14986: interix*)
14987: # This is c89, which is MS Visual C++ (no shared libs)
14988: # Anyone wants to do a port?
14989: ;;
14990: irix5* | irix6* | nonstopux*)
14991: case $cc_basename in
14992: CC*)
14993: lt_prog_compiler_wl_CXX='-Wl,'
14994: lt_prog_compiler_static_CXX='-non_shared'
14995: # CC pic flag -KPIC is the default.
14996: ;;
14997: *)
14998: ;;
14999: esac
15000: ;;
15001: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15002: case $cc_basename in
15003: KCC*)
15004: # KAI C++ Compiler
15005: lt_prog_compiler_wl_CXX='--backend -Wl,'
15006: lt_prog_compiler_pic_CXX='-fPIC'
15007: ;;
15008: ecpc* )
15009: # old Intel C++ for x86_64 which still supported -KPIC.
15010: lt_prog_compiler_wl_CXX='-Wl,'
15011: lt_prog_compiler_pic_CXX='-KPIC'
15012: lt_prog_compiler_static_CXX='-static'
15013: ;;
15014: icpc* )
15015: # Intel C++, used to be incompatible with GCC.
15016: # ICC 10 doesn't accept -KPIC any more.
15017: lt_prog_compiler_wl_CXX='-Wl,'
15018: lt_prog_compiler_pic_CXX='-fPIC'
15019: lt_prog_compiler_static_CXX='-static'
15020: ;;
15021: pgCC* | pgcpp*)
15022: # Portland Group C++ compiler
15023: lt_prog_compiler_wl_CXX='-Wl,'
15024: lt_prog_compiler_pic_CXX='-fpic'
15025: lt_prog_compiler_static_CXX='-Bstatic'
15026: ;;
15027: cxx*)
15028: # Compaq C++
15029: # Make sure the PIC flag is empty. It appears that all Alpha
15030: # Linux and Compaq Tru64 Unix objects are PIC.
15031: lt_prog_compiler_pic_CXX=
15032: lt_prog_compiler_static_CXX='-non_shared'
15033: ;;
15034: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15035: # IBM XL 8.0, 9.0 on PPC and BlueGene
15036: lt_prog_compiler_wl_CXX='-Wl,'
15037: lt_prog_compiler_pic_CXX='-qpic'
15038: lt_prog_compiler_static_CXX='-qstaticlink'
15039: ;;
15040: *)
15041: case `$CC -V 2>&1 | sed 5q` in
15042: *Sun\ C*)
15043: # Sun C++ 5.9
15044: lt_prog_compiler_pic_CXX='-KPIC'
15045: lt_prog_compiler_static_CXX='-Bstatic'
15046: lt_prog_compiler_wl_CXX='-Qoption ld '
15047: ;;
15048: esac
15049: ;;
15050: esac
15051: ;;
15052: lynxos*)
15053: ;;
15054: m88k*)
15055: ;;
15056: mvs*)
15057: case $cc_basename in
15058: cxx*)
15059: lt_prog_compiler_pic_CXX='-W c,exportall'
15060: ;;
15061: *)
15062: ;;
15063: esac
15064: ;;
15065: netbsd*)
15066: ;;
15067: *qnx* | *nto*)
15068: # QNX uses GNU C++, but need to define -shared option too, otherwise
15069: # it will coredump.
15070: lt_prog_compiler_pic_CXX='-fPIC -shared'
15071: ;;
15072: osf3* | osf4* | osf5*)
15073: case $cc_basename in
15074: KCC*)
15075: lt_prog_compiler_wl_CXX='--backend -Wl,'
15076: ;;
15077: RCC*)
15078: # Rational C++ 2.4.1
15079: lt_prog_compiler_pic_CXX='-pic'
15080: ;;
15081: cxx*)
15082: # Digital/Compaq C++
15083: lt_prog_compiler_wl_CXX='-Wl,'
15084: # Make sure the PIC flag is empty. It appears that all Alpha
15085: # Linux and Compaq Tru64 Unix objects are PIC.
15086: lt_prog_compiler_pic_CXX=
15087: lt_prog_compiler_static_CXX='-non_shared'
15088: ;;
15089: *)
15090: ;;
15091: esac
15092: ;;
15093: psos*)
15094: ;;
15095: solaris*)
15096: case $cc_basename in
15097: CC* | sunCC*)
15098: # Sun C++ 4.2, 5.x and Centerline C++
15099: lt_prog_compiler_pic_CXX='-KPIC'
15100: lt_prog_compiler_static_CXX='-Bstatic'
15101: lt_prog_compiler_wl_CXX='-Qoption ld '
15102: ;;
15103: gcx*)
15104: # Green Hills C++ Compiler
15105: lt_prog_compiler_pic_CXX='-PIC'
15106: ;;
15107: *)
15108: ;;
15109: esac
15110: ;;
15111: sunos4*)
15112: case $cc_basename in
15113: CC*)
15114: # Sun C++ 4.x
15115: lt_prog_compiler_pic_CXX='-pic'
15116: lt_prog_compiler_static_CXX='-Bstatic'
15117: ;;
15118: lcc*)
15119: # Lucid
15120: lt_prog_compiler_pic_CXX='-pic'
15121: ;;
15122: *)
15123: ;;
15124: esac
15125: ;;
15126: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15127: case $cc_basename in
15128: CC*)
15129: lt_prog_compiler_wl_CXX='-Wl,'
15130: lt_prog_compiler_pic_CXX='-KPIC'
15131: lt_prog_compiler_static_CXX='-Bstatic'
15132: ;;
15133: esac
15134: ;;
15135: tandem*)
15136: case $cc_basename in
15137: NCC*)
15138: # NonStop-UX NCC 3.20
15139: lt_prog_compiler_pic_CXX='-KPIC'
15140: ;;
15141: *)
15142: ;;
15143: esac
15144: ;;
15145: vxworks*)
15146: ;;
15147: *)
15148: lt_prog_compiler_can_build_shared_CXX=no
15149: ;;
15150: esac
15151: fi
15152:
15153: case $host_os in
15154: # For platforms which do not support PIC, -DPIC is meaningless:
15155: *djgpp*)
15156: lt_prog_compiler_pic_CXX=
15157: ;;
15158: *)
15159: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15160: ;;
15161: esac
15162:
1.150 moko 15163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15164: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15165: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15166: $as_echo_n "(cached) " >&6
1.128 moko 15167: else
15168: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15169: fi
1.150 moko 15170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15171: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 15172: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15173:
15174: #
15175: # Check to make sure the PIC flag actually works.
15176: #
15177: if test -n "$lt_prog_compiler_pic_CXX"; then
1.150 moko 15178: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15179: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15180: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15181: $as_echo_n "(cached) " >&6
1.128 moko 15182: else
15183: lt_cv_prog_compiler_pic_works_CXX=no
15184: ac_outfile=conftest.$ac_objext
15185: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15186: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15187: # Insert the option either (1) after the last *FLAGS variable, or
15188: # (2) before a word containing "conftest.", or (3) at the end.
15189: # Note that $ac_compile itself does not contain backslashes and begins
15190: # with a dollar sign (not a hyphen), so the echo should work correctly.
15191: # The option is referenced via a variable to avoid confusing sed.
15192: lt_compile=`echo "$ac_compile" | $SED \
15193: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15194: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15195: -e 's:$: $lt_compiler_flag:'`
15196: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15197: (eval "$lt_compile" 2>conftest.err)
15198: ac_status=$?
15199: cat conftest.err >&5
15200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201: if (exit $ac_status) && test -s "$ac_outfile"; then
15202: # The compiler can only warn and ignore the option if not recognized
15203: # So say no if there are warnings other than the usual output.
15204: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15205: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15206: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15207: lt_cv_prog_compiler_pic_works_CXX=yes
15208: fi
15209: fi
15210: $RM conftest*
15211:
15212: fi
1.150 moko 15213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15214: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 15215:
15216: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15217: case $lt_prog_compiler_pic_CXX in
15218: "" | " "*) ;;
15219: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15220: esac
15221: else
15222: lt_prog_compiler_pic_CXX=
15223: lt_prog_compiler_can_build_shared_CXX=no
15224: fi
15225:
15226: fi
15227:
15228:
15229:
15230:
15231:
15232: #
15233: # Check to make sure the static flag actually works.
15234: #
15235: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.150 moko 15236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15237: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15238: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15239: $as_echo_n "(cached) " >&6
1.128 moko 15240: else
15241: lt_cv_prog_compiler_static_works_CXX=no
15242: save_LDFLAGS="$LDFLAGS"
15243: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15244: echo "$lt_simple_link_test_code" > conftest.$ac_ext
15245: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15246: # The linker can only warn and ignore the option if not recognized
15247: # So say no if there are warnings
15248: if test -s conftest.err; then
15249: # Append any errors to the config.log.
15250: cat conftest.err 1>&5
15251: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15252: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15253: if diff conftest.exp conftest.er2 >/dev/null; then
15254: lt_cv_prog_compiler_static_works_CXX=yes
15255: fi
15256: else
15257: lt_cv_prog_compiler_static_works_CXX=yes
15258: fi
15259: fi
15260: $RM -r conftest*
15261: LDFLAGS="$save_LDFLAGS"
15262:
15263: fi
1.150 moko 15264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15265: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 15266:
15267: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15268: :
15269: else
15270: lt_prog_compiler_static_CXX=
15271: fi
15272:
15273:
15274:
15275:
1.150 moko 15276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15277: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15278: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15279: $as_echo_n "(cached) " >&6
1.128 moko 15280: else
15281: lt_cv_prog_compiler_c_o_CXX=no
15282: $RM -r conftest 2>/dev/null
15283: mkdir conftest
15284: cd conftest
15285: mkdir out
15286: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15287:
15288: lt_compiler_flag="-o out/conftest2.$ac_objext"
15289: # Insert the option either (1) after the last *FLAGS variable, or
15290: # (2) before a word containing "conftest.", or (3) at the end.
15291: # Note that $ac_compile itself does not contain backslashes and begins
15292: # with a dollar sign (not a hyphen), so the echo should work correctly.
15293: lt_compile=`echo "$ac_compile" | $SED \
15294: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15295: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15296: -e 's:$: $lt_compiler_flag:'`
15297: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15298: (eval "$lt_compile" 2>out/conftest.err)
15299: ac_status=$?
15300: cat out/conftest.err >&5
15301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15303: then
15304: # The compiler can only warn and ignore the option if not recognized
15305: # So say no if there are warnings
15306: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15307: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15308: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15309: lt_cv_prog_compiler_c_o_CXX=yes
15310: fi
15311: fi
15312: chmod u+w . 2>&5
15313: $RM conftest*
15314: # SGI C++ compiler will create directory out/ii_files/ for
15315: # template instantiation
15316: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15317: $RM out/* && rmdir out
15318: cd ..
15319: $RM -r conftest
15320: $RM conftest*
15321:
15322: fi
1.150 moko 15323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15324: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15325:
15326:
15327:
1.150 moko 15328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15329: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15330: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15331: $as_echo_n "(cached) " >&6
1.128 moko 15332: else
15333: lt_cv_prog_compiler_c_o_CXX=no
15334: $RM -r conftest 2>/dev/null
15335: mkdir conftest
15336: cd conftest
15337: mkdir out
15338: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15339:
15340: lt_compiler_flag="-o out/conftest2.$ac_objext"
15341: # Insert the option either (1) after the last *FLAGS variable, or
15342: # (2) before a word containing "conftest.", or (3) at the end.
15343: # Note that $ac_compile itself does not contain backslashes and begins
15344: # with a dollar sign (not a hyphen), so the echo should work correctly.
15345: lt_compile=`echo "$ac_compile" | $SED \
15346: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15347: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15348: -e 's:$: $lt_compiler_flag:'`
15349: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15350: (eval "$lt_compile" 2>out/conftest.err)
15351: ac_status=$?
15352: cat out/conftest.err >&5
15353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15355: then
15356: # The compiler can only warn and ignore the option if not recognized
15357: # So say no if there are warnings
15358: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15359: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15360: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15361: lt_cv_prog_compiler_c_o_CXX=yes
15362: fi
15363: fi
15364: chmod u+w . 2>&5
15365: $RM conftest*
15366: # SGI C++ compiler will create directory out/ii_files/ for
15367: # template instantiation
15368: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15369: $RM out/* && rmdir out
15370: cd ..
15371: $RM -r conftest
15372: $RM conftest*
15373:
15374: fi
1.150 moko 15375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15376: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15377:
15378:
15379:
15380:
15381: hard_links="nottested"
15382: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15383: # do not overwrite the value of need_locks provided by the user
1.150 moko 15384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15385: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 15386: hard_links=yes
15387: $RM conftest*
15388: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15389: touch conftest.a
15390: ln conftest.a conftest.b 2>&5 || hard_links=no
15391: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 15392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15393: $as_echo "$hard_links" >&6; }
1.128 moko 15394: if test "$hard_links" = no; then
1.150 moko 15395: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15396: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 15397: need_locks=warn
15398: fi
15399: else
15400: need_locks=no
15401: fi
15402:
15403:
15404:
1.150 moko 15405: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15406: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 15407:
15408: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15409: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15410: case $host_os in
15411: aix[4-9]*)
15412: # If we're using GNU nm, then we don't want the "-C" option.
15413: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15414: # Also, AIX nm treats weak defined symbols like other global defined
15415: # symbols, whereas GNU nm marks them as "W".
15416: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15417: 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'
15418: else
15419: 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'
15420: fi
15421: ;;
15422: pw32*)
15423: export_symbols_cmds_CXX="$ltdll_cmds"
15424: ;;
15425: cygwin* | mingw* | cegcc*)
15426: case $cc_basename in
15427: cl*)
15428: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15429: ;;
15430: *)
15431: 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'
15432: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15433: ;;
15434: esac
15435: ;;
15436: *)
15437: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15438: ;;
15439: esac
15440:
1.150 moko 15441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15442: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 15443: test "$ld_shlibs_CXX" = no && can_build_shared=no
15444:
15445: with_gnu_ld_CXX=$with_gnu_ld
15446:
15447:
15448:
15449:
15450:
15451:
15452: #
15453: # Do we need to explicitly link libc?
15454: #
15455: case "x$archive_cmds_need_lc_CXX" in
15456: x|xyes)
15457: # Assume -lc should be added
15458: archive_cmds_need_lc_CXX=yes
15459:
15460: if test "$enable_shared" = yes && test "$GCC" = yes; then
15461: case $archive_cmds_CXX in
15462: *'~'*)
15463: # FIXME: we may have to deal with multi-command sequences.
15464: ;;
15465: '$CC '*)
15466: # Test whether the compiler implicitly links with -lc since on some
15467: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15468: # to ld, don't add -lc before -lgcc.
1.150 moko 15469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15470: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15471: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15472: $as_echo_n "(cached) " >&6
1.128 moko 15473: else
15474: $RM conftest*
15475: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15476:
1.150 moko 15477: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 15478: (eval $ac_compile) 2>&5
15479: ac_status=$?
1.150 moko 15480: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15481: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 15482: soname=conftest
15483: lib=conftest
15484: libobjs=conftest.$ac_objext
15485: deplibs=
15486: wl=$lt_prog_compiler_wl_CXX
15487: pic_flag=$lt_prog_compiler_pic_CXX
15488: compiler_flags=-v
15489: linker_flags=-v
15490: verstring=
15491: output_objdir=.
15492: libname=conftest
15493: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15494: allow_undefined_flag_CXX=
1.150 moko 15495: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 15496: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15497: ac_status=$?
1.150 moko 15498: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15499: test $ac_status = 0; }
1.128 moko 15500: then
15501: lt_cv_archive_cmds_need_lc_CXX=no
15502: else
15503: lt_cv_archive_cmds_need_lc_CXX=yes
15504: fi
15505: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15506: else
15507: cat conftest.err 1>&5
15508: fi
15509: $RM conftest*
15510:
15511: fi
1.150 moko 15512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15513: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 15514: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15515: ;;
15516: esac
15517: fi
15518: ;;
15519: esac
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:
15566:
15567:
15568:
15569:
15570:
15571:
15572:
15573:
15574:
15575:
15576:
15577:
15578:
15579:
15580:
15581:
1.150 moko 15582: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15583: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 15584:
15585: library_names_spec=
15586: libname_spec='lib$name'
15587: soname_spec=
15588: shrext_cmds=".so"
15589: postinstall_cmds=
15590: postuninstall_cmds=
15591: finish_cmds=
15592: finish_eval=
15593: shlibpath_var=
15594: shlibpath_overrides_runpath=unknown
15595: version_type=none
15596: dynamic_linker="$host_os ld.so"
15597: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15598: need_lib_prefix=unknown
15599: hardcode_into_libs=no
15600:
15601: # when you set need_version to no, make sure it does not cause -set_version
15602: # flags to be left without arguments
15603: need_version=unknown
15604:
15605: case $host_os in
15606: aix3*)
15607: version_type=linux # correct to gnu/linux during the next big refactor
15608: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15609: shlibpath_var=LIBPATH
15610:
15611: # AIX 3 has no versioning support, so we append a major version to the name.
15612: soname_spec='${libname}${release}${shared_ext}$major'
15613: ;;
15614:
15615: aix[4-9]*)
15616: version_type=linux # correct to gnu/linux during the next big refactor
15617: need_lib_prefix=no
15618: need_version=no
15619: hardcode_into_libs=yes
15620: if test "$host_cpu" = ia64; then
15621: # AIX 5 supports IA64
15622: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15623: shlibpath_var=LD_LIBRARY_PATH
15624: else
15625: # With GCC up to 2.95.x, collect2 would create an import file
15626: # for dependence libraries. The import file would start with
15627: # the line `#! .'. This would cause the generated library to
15628: # depend on `.', always an invalid library. This was fixed in
15629: # development snapshots of GCC prior to 3.0.
15630: case $host_os in
15631: aix4 | aix4.[01] | aix4.[01].*)
15632: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15633: echo ' yes '
15634: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15635: :
15636: else
15637: can_build_shared=no
15638: fi
15639: ;;
15640: esac
15641: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15642: # soname into executable. Probably we can add versioning support to
15643: # collect2, so additional links can be useful in future.
15644: if test "$aix_use_runtimelinking" = yes; then
15645: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15646: # instead of lib<name>.a to let people know that these are not
15647: # typical AIX shared libraries.
15648: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649: else
15650: # We preserve .a as extension for shared libraries through AIX4.2
15651: # and later when we are not doing run time linking.
15652: library_names_spec='${libname}${release}.a $libname.a'
15653: soname_spec='${libname}${release}${shared_ext}$major'
15654: fi
15655: shlibpath_var=LIBPATH
15656: fi
15657: ;;
15658:
15659: amigaos*)
15660: case $host_cpu in
15661: powerpc)
15662: # Since July 2007 AmigaOS4 officially supports .so libraries.
15663: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15664: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665: ;;
15666: m68k)
15667: library_names_spec='$libname.ixlibrary $libname.a'
15668: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15669: 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'
15670: ;;
15671: esac
15672: ;;
15673:
15674: beos*)
15675: library_names_spec='${libname}${shared_ext}'
15676: dynamic_linker="$host_os ld.so"
15677: shlibpath_var=LIBRARY_PATH
15678: ;;
15679:
15680: bsdi[45]*)
15681: version_type=linux # correct to gnu/linux during the next big refactor
15682: need_version=no
15683: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684: soname_spec='${libname}${release}${shared_ext}$major'
15685: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15686: shlibpath_var=LD_LIBRARY_PATH
15687: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15688: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15689: # the default ld.so.conf also contains /usr/contrib/lib and
15690: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15691: # libtool to hard-code these into programs
15692: ;;
15693:
15694: cygwin* | mingw* | pw32* | cegcc*)
15695: version_type=windows
15696: shrext_cmds=".dll"
15697: need_version=no
15698: need_lib_prefix=no
15699:
15700: case $GCC,$cc_basename in
15701: yes,*)
15702: # gcc
15703: library_names_spec='$libname.dll.a'
15704: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15705: postinstall_cmds='base_file=`basename \${file}`~
15706: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15707: dldir=$destdir/`dirname \$dlpath`~
15708: test -d \$dldir || mkdir -p \$dldir~
15709: $install_prog $dir/$dlname \$dldir/$dlname~
15710: chmod a+x \$dldir/$dlname~
15711: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15712: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15713: fi'
15714: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15715: dlpath=$dir/\$dldll~
15716: $RM \$dlpath'
15717: shlibpath_overrides_runpath=yes
15718:
15719: case $host_os in
15720: cygwin*)
15721: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15722: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15723:
15724: ;;
15725: mingw* | cegcc*)
15726: # MinGW DLLs use traditional 'lib' prefix
15727: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15728: ;;
15729: pw32*)
15730: # pw32 DLLs use 'pw' prefix rather than 'lib'
15731: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15732: ;;
15733: esac
15734: dynamic_linker='Win32 ld.exe'
15735: ;;
15736:
15737: *,cl*)
15738: # Native MSVC
15739: libname_spec='$name'
15740: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15741: library_names_spec='${libname}.dll.lib'
15742:
15743: case $build_os in
15744: mingw*)
15745: sys_lib_search_path_spec=
15746: lt_save_ifs=$IFS
15747: IFS=';'
15748: for lt_path in $LIB
15749: do
15750: IFS=$lt_save_ifs
15751: # Let DOS variable expansion print the short 8.3 style file name.
15752: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15753: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15754: done
15755: IFS=$lt_save_ifs
15756: # Convert to MSYS style.
15757: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15758: ;;
15759: cygwin*)
15760: # Convert to unix form, then to dos form, then back to unix form
15761: # but this time dos style (no spaces!) so that the unix form looks
15762: # like /cygdrive/c/PROGRA~1:/cygdr...
15763: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15764: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15765: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15766: ;;
15767: *)
15768: sys_lib_search_path_spec="$LIB"
15769: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15770: # It is most probably a Windows format PATH.
15771: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15772: else
15773: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15774: fi
15775: # FIXME: find the short name or the path components, as spaces are
15776: # common. (e.g. "Program Files" -> "PROGRA~1")
15777: ;;
15778: esac
15779:
15780: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15781: postinstall_cmds='base_file=`basename \${file}`~
15782: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15783: dldir=$destdir/`dirname \$dlpath`~
15784: test -d \$dldir || mkdir -p \$dldir~
15785: $install_prog $dir/$dlname \$dldir/$dlname'
15786: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15787: dlpath=$dir/\$dldll~
15788: $RM \$dlpath'
15789: shlibpath_overrides_runpath=yes
15790: dynamic_linker='Win32 link.exe'
15791: ;;
15792:
15793: *)
15794: # Assume MSVC wrapper
15795: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15796: dynamic_linker='Win32 ld.exe'
15797: ;;
15798: esac
15799: # FIXME: first we should search . and the directory the executable is in
15800: shlibpath_var=PATH
15801: ;;
15802:
15803: darwin* | rhapsody*)
15804: dynamic_linker="$host_os dyld"
15805: version_type=darwin
15806: need_lib_prefix=no
15807: need_version=no
15808: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15809: soname_spec='${libname}${release}${major}$shared_ext'
15810: shlibpath_overrides_runpath=yes
15811: shlibpath_var=DYLD_LIBRARY_PATH
15812: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15813:
15814: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15815: ;;
15816:
15817: dgux*)
15818: version_type=linux # correct to gnu/linux during the next big refactor
15819: need_lib_prefix=no
15820: need_version=no
15821: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15822: soname_spec='${libname}${release}${shared_ext}$major'
15823: shlibpath_var=LD_LIBRARY_PATH
15824: ;;
15825:
15826: freebsd* | dragonfly*)
15827: # DragonFly does not have aout. When/if they implement a new
15828: # versioning mechanism, adjust this.
15829: if test -x /usr/bin/objformat; then
15830: objformat=`/usr/bin/objformat`
15831: else
15832: case $host_os in
15833: freebsd[23].*) objformat=aout ;;
15834: *) objformat=elf ;;
15835: esac
15836: fi
15837: version_type=freebsd-$objformat
15838: case $version_type in
15839: freebsd-elf*)
15840: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15841: need_version=no
15842: need_lib_prefix=no
15843: ;;
15844: freebsd-*)
15845: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15846: need_version=yes
15847: ;;
15848: esac
15849: shlibpath_var=LD_LIBRARY_PATH
15850: case $host_os in
15851: freebsd2.*)
15852: shlibpath_overrides_runpath=yes
15853: ;;
15854: freebsd3.[01]* | freebsdelf3.[01]*)
15855: shlibpath_overrides_runpath=yes
15856: hardcode_into_libs=yes
15857: ;;
15858: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15859: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15860: shlibpath_overrides_runpath=no
15861: hardcode_into_libs=yes
15862: ;;
15863: *) # from 4.6 on, and DragonFly
15864: shlibpath_overrides_runpath=yes
15865: hardcode_into_libs=yes
15866: ;;
15867: esac
15868: ;;
15869:
15870: gnu*)
15871: version_type=linux # correct to gnu/linux during the next big refactor
15872: need_lib_prefix=no
15873: need_version=no
15874: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15875: soname_spec='${libname}${release}${shared_ext}$major'
15876: shlibpath_var=LD_LIBRARY_PATH
15877: shlibpath_overrides_runpath=no
15878: hardcode_into_libs=yes
15879: ;;
15880:
15881: haiku*)
15882: version_type=linux # correct to gnu/linux during the next big refactor
15883: need_lib_prefix=no
15884: need_version=no
15885: dynamic_linker="$host_os runtime_loader"
15886: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15887: soname_spec='${libname}${release}${shared_ext}$major'
15888: shlibpath_var=LIBRARY_PATH
15889: shlibpath_overrides_runpath=yes
15890: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15891: hardcode_into_libs=yes
15892: ;;
15893:
15894: hpux9* | hpux10* | hpux11*)
15895: # Give a soname corresponding to the major version so that dld.sl refuses to
15896: # link against other versions.
15897: version_type=sunos
15898: need_lib_prefix=no
15899: need_version=no
15900: case $host_cpu in
15901: ia64*)
15902: shrext_cmds='.so'
15903: hardcode_into_libs=yes
15904: dynamic_linker="$host_os dld.so"
15905: shlibpath_var=LD_LIBRARY_PATH
15906: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15907: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908: soname_spec='${libname}${release}${shared_ext}$major'
15909: if test "X$HPUX_IA64_MODE" = X32; then
15910: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15911: else
15912: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15913: fi
15914: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15915: ;;
15916: hppa*64*)
15917: shrext_cmds='.sl'
15918: hardcode_into_libs=yes
15919: dynamic_linker="$host_os dld.sl"
15920: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15921: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15922: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923: soname_spec='${libname}${release}${shared_ext}$major'
15924: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15925: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15926: ;;
15927: *)
15928: shrext_cmds='.sl'
15929: dynamic_linker="$host_os dld.sl"
15930: shlibpath_var=SHLIB_PATH
15931: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15932: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933: soname_spec='${libname}${release}${shared_ext}$major'
15934: ;;
15935: esac
15936: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15937: postinstall_cmds='chmod 555 $lib'
15938: # or fails outright, so override atomically:
15939: install_override_mode=555
15940: ;;
15941:
15942: interix[3-9]*)
15943: version_type=linux # correct to gnu/linux during the next big refactor
15944: need_lib_prefix=no
15945: need_version=no
15946: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15947: soname_spec='${libname}${release}${shared_ext}$major'
15948: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15949: shlibpath_var=LD_LIBRARY_PATH
15950: shlibpath_overrides_runpath=no
15951: hardcode_into_libs=yes
15952: ;;
15953:
15954: irix5* | irix6* | nonstopux*)
15955: case $host_os in
15956: nonstopux*) version_type=nonstopux ;;
15957: *)
15958: if test "$lt_cv_prog_gnu_ld" = yes; then
15959: version_type=linux # correct to gnu/linux during the next big refactor
15960: else
15961: version_type=irix
15962: fi ;;
15963: esac
15964: need_lib_prefix=no
15965: need_version=no
15966: soname_spec='${libname}${release}${shared_ext}$major'
15967: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15968: case $host_os in
15969: irix5* | nonstopux*)
15970: libsuff= shlibsuff=
15971: ;;
15972: *)
15973: case $LD in # libtool.m4 will add one of these switches to LD
15974: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15975: libsuff= shlibsuff= libmagic=32-bit;;
15976: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15977: libsuff=32 shlibsuff=N32 libmagic=N32;;
15978: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15979: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15980: *) libsuff= shlibsuff= libmagic=never-match;;
15981: esac
15982: ;;
15983: esac
15984: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15985: shlibpath_overrides_runpath=no
15986: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15987: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15988: hardcode_into_libs=yes
15989: ;;
15990:
15991: # No shared lib support for Linux oldld, aout, or coff.
15992: linux*oldld* | linux*aout* | linux*coff*)
15993: dynamic_linker=no
15994: ;;
15995:
15996: # This must be glibc/ELF.
15997: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15998: version_type=linux # correct to gnu/linux during the next big refactor
15999: need_lib_prefix=no
16000: need_version=no
16001: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002: soname_spec='${libname}${release}${shared_ext}$major'
16003: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16004: shlibpath_var=LD_LIBRARY_PATH
16005: shlibpath_overrides_runpath=no
16006:
16007: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 16008: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16009: $as_echo_n "(cached) " >&6
1.128 moko 16010: else
16011: lt_cv_shlibpath_overrides_runpath=no
16012: save_LDFLAGS=$LDFLAGS
16013: save_libdir=$libdir
16014: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16015: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 16016: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16017: /* end confdefs.h. */
16018:
16019: int
16020: main ()
16021: {
16022:
16023: ;
16024: return 0;
16025: }
16026: _ACEOF
1.150 moko 16027: if ac_fn_cxx_try_link "$LINENO"; then :
16028: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 16029: lt_cv_shlibpath_overrides_runpath=yes
16030: fi
16031: fi
1.150 moko 16032: rm -f core conftest.err conftest.$ac_objext \
16033: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16034: LDFLAGS=$save_LDFLAGS
16035: libdir=$save_libdir
16036:
16037: fi
16038:
16039: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16040:
16041: # This implies no fast_install, which is unacceptable.
16042: # Some rework will be needed to allow for fast_install
16043: # before this can be enabled.
16044: hardcode_into_libs=yes
16045:
16046: # Append ld.so.conf contents to the search path
16047: if test -f /etc/ld.so.conf; then
16048: 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' ' '`
16049: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16050: fi
16051:
16052: # We used to test for /lib/ld.so.1 and disable shared libraries on
16053: # powerpc, because MkLinux only supported shared libraries with the
16054: # GNU dynamic linker. Since this was broken with cross compilers,
16055: # most powerpc-linux boxes support dynamic linking these days and
16056: # people can always --disable-shared, the test was removed, and we
16057: # assume the GNU/Linux dynamic linker is in use.
16058: dynamic_linker='GNU/Linux ld.so'
16059: ;;
16060:
16061: netbsd*)
16062: version_type=sunos
16063: need_lib_prefix=no
16064: need_version=no
16065: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16066: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16067: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16068: dynamic_linker='NetBSD (a.out) ld.so'
16069: else
16070: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16071: soname_spec='${libname}${release}${shared_ext}$major'
16072: dynamic_linker='NetBSD ld.elf_so'
16073: fi
16074: shlibpath_var=LD_LIBRARY_PATH
16075: shlibpath_overrides_runpath=yes
16076: hardcode_into_libs=yes
16077: ;;
16078:
16079: newsos6)
16080: version_type=linux # correct to gnu/linux during the next big refactor
16081: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16082: shlibpath_var=LD_LIBRARY_PATH
16083: shlibpath_overrides_runpath=yes
16084: ;;
16085:
16086: *nto* | *qnx*)
16087: version_type=qnx
16088: need_lib_prefix=no
16089: need_version=no
16090: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091: soname_spec='${libname}${release}${shared_ext}$major'
16092: shlibpath_var=LD_LIBRARY_PATH
16093: shlibpath_overrides_runpath=no
16094: hardcode_into_libs=yes
16095: dynamic_linker='ldqnx.so'
16096: ;;
16097:
16098: openbsd*)
16099: version_type=sunos
16100: sys_lib_dlsearch_path_spec="/usr/lib"
16101: need_lib_prefix=no
16102: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16103: case $host_os in
16104: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16105: *) need_version=no ;;
16106: esac
16107: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16108: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16109: shlibpath_var=LD_LIBRARY_PATH
16110: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16111: case $host_os in
16112: openbsd2.[89] | openbsd2.[89].*)
16113: shlibpath_overrides_runpath=no
16114: ;;
16115: *)
16116: shlibpath_overrides_runpath=yes
16117: ;;
16118: esac
16119: else
16120: shlibpath_overrides_runpath=yes
16121: fi
16122: ;;
16123:
16124: os2*)
16125: libname_spec='$name'
16126: shrext_cmds=".dll"
16127: need_lib_prefix=no
16128: library_names_spec='$libname${shared_ext} $libname.a'
16129: dynamic_linker='OS/2 ld.exe'
16130: shlibpath_var=LIBPATH
16131: ;;
16132:
16133: osf3* | osf4* | osf5*)
16134: version_type=osf
16135: need_lib_prefix=no
16136: need_version=no
16137: soname_spec='${libname}${release}${shared_ext}$major'
16138: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139: shlibpath_var=LD_LIBRARY_PATH
16140: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16141: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16142: ;;
16143:
16144: rdos*)
16145: dynamic_linker=no
16146: ;;
16147:
16148: solaris*)
16149: version_type=linux # correct to gnu/linux during the next big refactor
16150: need_lib_prefix=no
16151: need_version=no
16152: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153: soname_spec='${libname}${release}${shared_ext}$major'
16154: shlibpath_var=LD_LIBRARY_PATH
16155: shlibpath_overrides_runpath=yes
16156: hardcode_into_libs=yes
16157: # ldd complains unless libraries are executable
16158: postinstall_cmds='chmod +x $lib'
16159: ;;
16160:
16161: sunos4*)
16162: version_type=sunos
16163: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16164: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16165: shlibpath_var=LD_LIBRARY_PATH
16166: shlibpath_overrides_runpath=yes
16167: if test "$with_gnu_ld" = yes; then
16168: need_lib_prefix=no
16169: fi
16170: need_version=yes
16171: ;;
16172:
16173: sysv4 | sysv4.3*)
16174: version_type=linux # correct to gnu/linux during the next big refactor
16175: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176: soname_spec='${libname}${release}${shared_ext}$major'
16177: shlibpath_var=LD_LIBRARY_PATH
16178: case $host_vendor in
16179: sni)
16180: shlibpath_overrides_runpath=no
16181: need_lib_prefix=no
16182: runpath_var=LD_RUN_PATH
16183: ;;
16184: siemens)
16185: need_lib_prefix=no
16186: ;;
16187: motorola)
16188: need_lib_prefix=no
16189: need_version=no
16190: shlibpath_overrides_runpath=no
16191: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16192: ;;
16193: esac
16194: ;;
16195:
16196: sysv4*MP*)
16197: if test -d /usr/nec ;then
16198: version_type=linux # correct to gnu/linux during the next big refactor
16199: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16200: soname_spec='$libname${shared_ext}.$major'
16201: shlibpath_var=LD_LIBRARY_PATH
16202: fi
16203: ;;
16204:
16205: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16206: version_type=freebsd-elf
16207: need_lib_prefix=no
16208: need_version=no
16209: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16210: soname_spec='${libname}${release}${shared_ext}$major'
16211: shlibpath_var=LD_LIBRARY_PATH
16212: shlibpath_overrides_runpath=yes
16213: hardcode_into_libs=yes
16214: if test "$with_gnu_ld" = yes; then
16215: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16216: else
16217: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16218: case $host_os in
16219: sco3.2v5*)
16220: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16221: ;;
16222: esac
16223: fi
16224: sys_lib_dlsearch_path_spec='/usr/lib'
16225: ;;
16226:
16227: tpf*)
16228: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16229: version_type=linux # correct to gnu/linux during the next big refactor
16230: need_lib_prefix=no
16231: need_version=no
16232: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233: shlibpath_var=LD_LIBRARY_PATH
16234: shlibpath_overrides_runpath=no
16235: hardcode_into_libs=yes
16236: ;;
16237:
16238: uts4*)
16239: version_type=linux # correct to gnu/linux during the next big refactor
16240: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241: soname_spec='${libname}${release}${shared_ext}$major'
16242: shlibpath_var=LD_LIBRARY_PATH
16243: ;;
16244:
16245: *)
16246: dynamic_linker=no
16247: ;;
16248: esac
1.150 moko 16249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16250: $as_echo "$dynamic_linker" >&6; }
1.128 moko 16251: test "$dynamic_linker" = no && can_build_shared=no
16252:
16253: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16254: if test "$GCC" = yes; then
16255: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16256: fi
16257:
16258: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16259: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16260: fi
16261: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16262: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16263: fi
16264:
16265:
16266:
16267:
16268:
16269:
16270:
16271:
16272:
16273:
16274:
16275:
16276:
16277:
16278:
16279:
16280:
16281:
16282:
16283:
16284:
16285:
16286:
16287:
16288:
16289:
16290:
16291:
16292:
16293:
16294:
16295:
16296:
16297:
16298:
16299:
16300:
16301:
1.150 moko 16302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16303: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 16304: hardcode_action_CXX=
16305: if test -n "$hardcode_libdir_flag_spec_CXX" ||
16306: test -n "$runpath_var_CXX" ||
16307: test "X$hardcode_automatic_CXX" = "Xyes" ; then
16308:
16309: # We can hardcode non-existent directories.
16310: if test "$hardcode_direct_CXX" != no &&
16311: # If the only mechanism to avoid hardcoding is shlibpath_var, we
16312: # have to relink, otherwise we might link with an installed library
16313: # when we should be linking with a yet-to-be-installed one
16314: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16315: test "$hardcode_minus_L_CXX" != no; then
16316: # Linking always hardcodes the temporary library directory.
16317: hardcode_action_CXX=relink
16318: else
16319: # We can link without hardcoding, and we can hardcode nonexisting dirs.
16320: hardcode_action_CXX=immediate
16321: fi
16322: else
16323: # We cannot hardcode anything, or else we can only hardcode existing
16324: # directories.
16325: hardcode_action_CXX=unsupported
16326: fi
1.150 moko 16327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16328: $as_echo "$hardcode_action_CXX" >&6; }
1.128 moko 16329:
16330: if test "$hardcode_action_CXX" = relink ||
16331: test "$inherit_rpath_CXX" = yes; then
16332: # Fast installation is not supported
16333: enable_fast_install=no
16334: elif test "$shlibpath_overrides_runpath" = yes ||
16335: test "$enable_shared" = no; then
16336: # Fast installation is not necessary
16337: enable_fast_install=needless
16338: fi
16339:
16340:
16341:
16342:
16343:
16344:
16345:
16346: fi # test -n "$compiler"
16347:
16348: CC=$lt_save_CC
16349: CFLAGS=$lt_save_CFLAGS
16350: LDCXX=$LD
16351: LD=$lt_save_LD
16352: GCC=$lt_save_GCC
16353: with_gnu_ld=$lt_save_with_gnu_ld
16354: lt_cv_path_LDCXX=$lt_cv_path_LD
16355: lt_cv_path_LD=$lt_save_path_LD
16356: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16357: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16358: fi # test "$_lt_caught_CXX_error" != yes
16359:
16360: ac_ext=c
16361: ac_cpp='$CPP $CPPFLAGS'
16362: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16363: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16364: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16365:
16366:
16367:
16368:
16369:
16370:
16371:
16372:
16373:
16374:
16375:
16376:
16377:
16378:
16379:
1.150 moko 16380: ac_config_commands="$ac_config_commands libtool"
1.128 moko 16381:
16382:
16383:
16384:
16385: # Only expand once:
16386:
16387:
1.150 moko 16388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
16389: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
16390: if ${libltdl_cv_shlibext+:} false; then :
16391: $as_echo_n "(cached) " >&6
1.128 moko 16392: else
16393:
16394: module=yes
16395: eval libltdl_cv_shlibext=$shrext_cmds
16396: module=no
16397: eval libltdl_cv_shrext=$shrext_cmds
16398:
16399: fi
1.150 moko 16400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16401: $as_echo "$libltdl_cv_shlibext" >&6; }
1.128 moko 16402: if test -n "$libltdl_cv_shlibext"; then
16403:
16404: cat >>confdefs.h <<_ACEOF
16405: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16406: _ACEOF
16407:
16408: fi
16409: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16410:
16411: cat >>confdefs.h <<_ACEOF
16412: #define LT_SHARED_EXT "$libltdl_cv_shrext"
16413: _ACEOF
16414:
16415: fi
16416:
1.150 moko 16417: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
16418: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
16419: if ${lt_cv_module_path_var+:} false; then :
16420: $as_echo_n "(cached) " >&6
1.128 moko 16421: else
16422: lt_cv_module_path_var="$shlibpath_var"
16423: fi
1.150 moko 16424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16425: $as_echo "$lt_cv_module_path_var" >&6; }
1.128 moko 16426: if test -n "$lt_cv_module_path_var"; then
16427:
16428: cat >>confdefs.h <<_ACEOF
16429: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16430: _ACEOF
16431:
16432: fi
16433:
1.150 moko 16434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16435: $as_echo_n "checking for the default library search path... " >&6; }
16436: if ${lt_cv_sys_dlsearch_path+:} false; then :
16437: $as_echo_n "(cached) " >&6
1.128 moko 16438: else
16439: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
16440: fi
1.150 moko 16441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16442: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 16443: if test -n "$lt_cv_sys_dlsearch_path"; then
16444: sys_dlsearch_path=
16445: for dir in $lt_cv_sys_dlsearch_path; do
16446: if test -z "$sys_dlsearch_path"; then
16447: sys_dlsearch_path="$dir"
16448: else
16449: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
16450: fi
16451: done
16452:
16453: cat >>confdefs.h <<_ACEOF
16454: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16455: _ACEOF
16456:
16457: fi
16458:
16459:
16460: LT_DLLOADERS=
16461:
16462:
16463: ac_ext=c
16464: ac_cpp='$CPP $CPPFLAGS'
16465: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16466: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16467: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16468:
16469:
16470: LIBADD_DLOPEN=
1.150 moko 16471: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16472: $as_echo_n "checking for library containing dlopen... " >&6; }
16473: if ${ac_cv_search_dlopen+:} false; then :
16474: $as_echo_n "(cached) " >&6
1.128 moko 16475: else
16476: ac_func_search_save_LIBS=$LIBS
1.150 moko 16477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16478: /* end confdefs.h. */
16479:
1.150 moko 16480: /* Override any GCC internal prototype to avoid an error.
16481: Use char because int might match the return type of a GCC
16482: builtin and then its argument prototype would still apply. */
1.128 moko 16483: #ifdef __cplusplus
16484: extern "C"
16485: #endif
16486: char dlopen ();
16487: int
16488: main ()
16489: {
1.150 moko 16490: return dlopen ();
1.128 moko 16491: ;
16492: return 0;
16493: }
16494: _ACEOF
1.150 moko 16495: for ac_lib in '' dl; do
16496: if test -z "$ac_lib"; then
16497: ac_res="none required"
16498: else
16499: ac_res=-l$ac_lib
16500: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16501: fi
16502: if ac_fn_c_try_link "$LINENO"; then :
16503: ac_cv_search_dlopen=$ac_res
16504: fi
16505: rm -f core conftest.err conftest.$ac_objext \
16506: conftest$ac_exeext
16507: if ${ac_cv_search_dlopen+:} false; then :
16508: break
1.128 moko 16509: fi
1.150 moko 16510: done
16511: if ${ac_cv_search_dlopen+:} false; then :
1.128 moko 16512:
16513: else
1.150 moko 16514: ac_cv_search_dlopen=no
1.128 moko 16515: fi
1.150 moko 16516: rm conftest.$ac_ext
1.128 moko 16517: LIBS=$ac_func_search_save_LIBS
16518: fi
1.150 moko 16519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16520: $as_echo "$ac_cv_search_dlopen" >&6; }
16521: ac_res=$ac_cv_search_dlopen
16522: if test "$ac_res" != no; then :
16523: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 16524:
1.150 moko 16525: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16526:
16527: if test "$ac_cv_search_dlopen" != "none required" ; then
16528: LIBADD_DLOPEN="-ldl"
16529: fi
16530: libltdl_cv_lib_dl_dlopen="yes"
16531: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16532: else
1.150 moko 16533: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16534: /* end confdefs.h. */
16535: #if HAVE_DLFCN_H
16536: # include <dlfcn.h>
16537: #endif
16538:
16539: int
16540: main ()
16541: {
16542: dlopen(0, 0);
16543: ;
16544: return 0;
16545: }
16546: _ACEOF
1.150 moko 16547: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16548:
1.150 moko 16549: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16550:
16551: libltdl_cv_func_dlopen="yes"
16552: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16553: else
1.150 moko 16554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16555: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16556: if ${ac_cv_lib_svld_dlopen+:} false; then :
16557: $as_echo_n "(cached) " >&6
1.128 moko 16558: else
16559: ac_check_lib_save_LIBS=$LIBS
16560: LIBS="-lsvld $LIBS"
1.150 moko 16561: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16562: /* end confdefs.h. */
16563:
1.150 moko 16564: /* Override any GCC internal prototype to avoid an error.
16565: Use char because int might match the return type of a GCC
16566: builtin and then its argument prototype would still apply. */
1.128 moko 16567: #ifdef __cplusplus
16568: extern "C"
16569: #endif
16570: char dlopen ();
16571: int
16572: main ()
16573: {
1.150 moko 16574: return dlopen ();
1.128 moko 16575: ;
16576: return 0;
16577: }
16578: _ACEOF
1.150 moko 16579: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16580: ac_cv_lib_svld_dlopen=yes
16581: else
1.150 moko 16582: ac_cv_lib_svld_dlopen=no
1.128 moko 16583: fi
1.150 moko 16584: rm -f core conftest.err conftest.$ac_objext \
16585: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16586: LIBS=$ac_check_lib_save_LIBS
16587: fi
1.150 moko 16588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16589: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16590: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 16591:
1.150 moko 16592: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16593:
16594: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16595: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16596: fi
16597:
16598: fi
1.150 moko 16599: rm -f core conftest.err conftest.$ac_objext \
16600: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16601: fi
16602:
16603: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16604: then
16605: lt_save_LIBS="$LIBS"
16606: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 16607: for ac_func in dlerror
16608: do :
16609: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16610: if test "x$ac_cv_func_dlerror" = xyes; then :
1.128 moko 16611: cat >>confdefs.h <<_ACEOF
1.150 moko 16612: #define HAVE_DLERROR 1
1.128 moko 16613: _ACEOF
16614:
16615: fi
16616: done
16617:
16618: LIBS="$lt_save_LIBS"
16619: fi
16620:
16621:
16622: LIBADD_SHL_LOAD=
1.150 moko 16623: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16624: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 16625:
1.150 moko 16626: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 16627:
16628: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16629: else
1.150 moko 16630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16631: $as_echo_n "checking for shl_load in -ldld... " >&6; }
16632: if ${ac_cv_lib_dld_shl_load+:} false; then :
16633: $as_echo_n "(cached) " >&6
1.66 paf 16634: else
16635: ac_check_lib_save_LIBS=$LIBS
16636: LIBS="-ldld $LIBS"
1.150 moko 16637: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16638: /* end confdefs.h. */
1.10 paf 16639:
1.150 moko 16640: /* Override any GCC internal prototype to avoid an error.
16641: Use char because int might match the return type of a GCC
16642: builtin and then its argument prototype would still apply. */
1.66 paf 16643: #ifdef __cplusplus
16644: extern "C"
16645: #endif
16646: char shl_load ();
16647: int
16648: main ()
16649: {
1.150 moko 16650: return shl_load ();
1.66 paf 16651: ;
16652: return 0;
16653: }
16654: _ACEOF
1.150 moko 16655: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 16656: ac_cv_lib_dld_shl_load=yes
16657: else
1.150 moko 16658: ac_cv_lib_dld_shl_load=no
1.66 paf 16659: fi
1.150 moko 16660: rm -f core conftest.err conftest.$ac_objext \
16661: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16662: LIBS=$ac_check_lib_save_LIBS
16663: fi
1.150 moko 16664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16665: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16666: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 paf 16667:
1.150 moko 16668: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 16669:
1.128 moko 16670: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16671: LIBADD_SHL_LOAD="-ldld"
16672: fi
16673:
16674: fi
16675:
16676:
16677:
16678: case $host_os in
16679: darwin[1567].*)
16680: # We only want this for pre-Mac OS X 10.4.
1.150 moko 16681: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16682: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16683:
16684: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 16685:
1.150 moko 16686: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16687: fi
1.128 moko 16688:
1.150 moko 16689: ;;
16690: beos*)
1.128 moko 16691: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16692: ;;
16693: cygwin* | mingw* | os2* | pw32*)
1.150 moko 16694: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16695: "
16696: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16697: ac_have_decl=1
1.128 moko 16698: else
1.150 moko 16699: ac_have_decl=0
1.128 moko 16700: fi
16701:
16702: cat >>confdefs.h <<_ACEOF
1.150 moko 16703: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.128 moko 16704: _ACEOF
16705:
16706: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16707: ;;
16708: esac
16709:
1.150 moko 16710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16711: $as_echo_n "checking for dld_link in -ldld... " >&6; }
16712: if ${ac_cv_lib_dld_dld_link+:} false; then :
16713: $as_echo_n "(cached) " >&6
1.66 paf 16714: else
16715: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16716: LIBS="-ldld $LIBS"
1.150 moko 16717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16718: /* end confdefs.h. */
1.62 paf 16719:
1.150 moko 16720: /* Override any GCC internal prototype to avoid an error.
16721: Use char because int might match the return type of a GCC
16722: builtin and then its argument prototype would still apply. */
1.66 paf 16723: #ifdef __cplusplus
16724: extern "C"
16725: #endif
1.128 moko 16726: char dld_link ();
1.66 paf 16727: int
16728: main ()
16729: {
1.150 moko 16730: return dld_link ();
1.66 paf 16731: ;
16732: return 0;
16733: }
16734: _ACEOF
1.150 moko 16735: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16736: ac_cv_lib_dld_dld_link=yes
1.66 paf 16737: else
1.150 moko 16738: ac_cv_lib_dld_dld_link=no
1.128 moko 16739: fi
1.150 moko 16740: rm -f core conftest.err conftest.$ac_objext \
16741: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16742: LIBS=$ac_check_lib_save_LIBS
16743: fi
1.150 moko 16744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16745: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16746: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 16747:
1.150 moko 16748: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 16749:
16750: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16751: fi
16752:
16753:
16754:
16755:
16756: LT_DLPREOPEN=
16757: if test -n "$LT_DLLOADERS"
16758: then
16759: for lt_loader in $LT_DLLOADERS; do
16760: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16761: done
16762:
1.150 moko 16763: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 16764:
16765: fi
16766:
16767:
16768: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16769:
16770:
16771: ac_ext=c
16772: ac_cpp='$CPP $CPPFLAGS'
16773: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16774: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16775: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16776:
16777:
1.150 moko 16778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16779: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16780: if ${lt_cv_sys_symbol_underscore+:} false; then :
16781: $as_echo_n "(cached) " >&6
1.128 moko 16782: else
16783: lt_cv_sys_symbol_underscore=no
16784: cat > conftest.$ac_ext <<_LT_EOF
16785: void nm_test_func(){}
16786: int main(){nm_test_func;return 0;}
16787: _LT_EOF
1.150 moko 16788: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 16789: (eval $ac_compile) 2>&5
16790: ac_status=$?
1.150 moko 16791: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16792: test $ac_status = 0; }; then
1.128 moko 16793: # Now try to grab the symbols.
16794: ac_nlist=conftest.nm
1.150 moko 16795: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 16796: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16797: ac_status=$?
1.150 moko 16798: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16799: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 16800: # See whether the symbols have a leading underscore.
16801: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16802: lt_cv_sys_symbol_underscore=yes
16803: else
16804: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16805: :
16806: else
16807: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16808: fi
16809: fi
16810: else
16811: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16812: fi
16813: else
16814: echo "configure: failed program was:" >&5
16815: cat conftest.c >&5
16816: fi
16817: rm -rf conftest*
1.29 paf 16818:
1.66 paf 16819: fi
1.150 moko 16820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16821: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 16822: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16823:
1.62 paf 16824:
1.128 moko 16825: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16826: if test x"$libltdl_cv_func_dlopen" = xyes ||
16827: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.150 moko 16828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16829: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16830: if ${libltdl_cv_need_uscore+:} false; then :
16831: $as_echo_n "(cached) " >&6
1.66 paf 16832: else
1.128 moko 16833: libltdl_cv_need_uscore=unknown
16834: save_LIBS="$LIBS"
16835: LIBS="$LIBS $LIBADD_DLOPEN"
16836: if test "$cross_compiling" = yes; then :
16837: libltdl_cv_need_uscore=cross
16838: else
16839: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16840: lt_status=$lt_dlunknown
16841: cat > conftest.$ac_ext <<_LT_EOF
16842: #line $LINENO "configure"
16843: #include "confdefs.h"
16844:
1.66 paf 16845: #if HAVE_DLFCN_H
1.128 moko 16846: #include <dlfcn.h>
16847: #endif
16848:
16849: #include <stdio.h>
16850:
16851: #ifdef RTLD_GLOBAL
16852: # define LT_DLGLOBAL RTLD_GLOBAL
16853: #else
16854: # ifdef DL_GLOBAL
16855: # define LT_DLGLOBAL DL_GLOBAL
16856: # else
16857: # define LT_DLGLOBAL 0
16858: # endif
16859: #endif
16860:
16861: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16862: find out it does not work in some platform. */
16863: #ifndef LT_DLLAZY_OR_NOW
16864: # ifdef RTLD_LAZY
16865: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16866: # else
16867: # ifdef DL_LAZY
16868: # define LT_DLLAZY_OR_NOW DL_LAZY
16869: # else
16870: # ifdef RTLD_NOW
16871: # define LT_DLLAZY_OR_NOW RTLD_NOW
16872: # else
16873: # ifdef DL_NOW
16874: # define LT_DLLAZY_OR_NOW DL_NOW
16875: # else
16876: # define LT_DLLAZY_OR_NOW 0
16877: # endif
16878: # endif
16879: # endif
16880: # endif
16881: #endif
16882:
16883: /* When -fvisbility=hidden is used, assume the code has been annotated
16884: correspondingly for the symbols needed. */
16885: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16886: int fnord () __attribute__((visibility("default")));
1.66 paf 16887: #endif
1.62 paf 16888:
1.128 moko 16889: int fnord () { return 42; }
16890: int main ()
1.66 paf 16891: {
1.128 moko 16892: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16893: int status = $lt_dlunknown;
16894:
16895: if (self)
16896: {
16897: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16898: else
16899: {
16900: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16901: else puts (dlerror ());
16902: }
16903: /* dlclose (self); */
16904: }
16905: else
16906: puts (dlerror ());
16907:
16908: return status;
1.66 paf 16909: }
1.128 moko 16910: _LT_EOF
1.150 moko 16911: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16912: (eval $ac_link) 2>&5
1.66 paf 16913: ac_status=$?
1.150 moko 16914: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16915: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 16916: (./conftest; exit; ) >&5 2>/dev/null
16917: lt_status=$?
16918: case x$lt_status in
16919: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16920: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16921: x$lt_dlunknown|x*) ;;
16922: esac
16923: else :
16924: # compilation failed
16925:
16926: fi
16927: fi
16928: rm -fr conftest*
16929:
16930: LIBS="$save_LIBS"
16931:
16932: fi
1.150 moko 16933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16934: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.128 moko 16935: fi
16936: fi
16937:
16938: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16939:
1.150 moko 16940: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 16941:
1.128 moko 16942: fi
16943:
1.150 moko 16944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16945: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16946: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16947: $as_echo_n "(cached) " >&6
1.66 paf 16948: else
1.128 moko 16949: # PORTME does your system automatically load deplibs for dlopen?
16950: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16951: # For now, we just catch OSes we know something about -- in the
16952: # future, we'll try test this programmatically.
16953: lt_cv_sys_dlopen_deplibs=unknown
16954: case $host_os in
16955: aix3*|aix4.1.*|aix4.2.*)
16956: # Unknown whether this is true for these versions of AIX, but
16957: # we want this `case' here to explicitly catch those versions.
16958: lt_cv_sys_dlopen_deplibs=unknown
16959: ;;
16960: aix[4-9]*)
16961: lt_cv_sys_dlopen_deplibs=yes
16962: ;;
16963: amigaos*)
16964: case $host_cpu in
16965: powerpc)
16966: lt_cv_sys_dlopen_deplibs=no
16967: ;;
16968: esac
16969: ;;
16970: darwin*)
16971: # Assuming the user has installed a libdl from somewhere, this is true
16972: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16973: lt_cv_sys_dlopen_deplibs=yes
16974: ;;
16975: freebsd* | dragonfly*)
16976: lt_cv_sys_dlopen_deplibs=yes
16977: ;;
16978: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16979: # GNU and its variants, using gnu ld.so (Glibc)
16980: lt_cv_sys_dlopen_deplibs=yes
16981: ;;
16982: hpux10*|hpux11*)
16983: lt_cv_sys_dlopen_deplibs=yes
16984: ;;
16985: interix*)
16986: lt_cv_sys_dlopen_deplibs=yes
16987: ;;
16988: irix[12345]*|irix6.[01]*)
16989: # Catch all versions of IRIX before 6.2, and indicate that we don't
16990: # know how it worked for any of those versions.
16991: lt_cv_sys_dlopen_deplibs=unknown
16992: ;;
16993: irix*)
16994: # The case above catches anything before 6.2, and it's known that
16995: # at 6.2 and later dlopen does load deplibs.
16996: lt_cv_sys_dlopen_deplibs=yes
16997: ;;
16998: netbsd*)
16999: lt_cv_sys_dlopen_deplibs=yes
17000: ;;
17001: openbsd*)
17002: lt_cv_sys_dlopen_deplibs=yes
17003: ;;
17004: osf[1234]*)
17005: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
17006: # it did *not* use an RPATH in a shared library to find objects the
17007: # library depends on, so we explicitly say `no'.
17008: lt_cv_sys_dlopen_deplibs=no
17009: ;;
17010: osf5.0|osf5.0a|osf5.1)
17011: # dlopen *does* load deplibs and with the right loader patch applied
17012: # it even uses RPATH in a shared library to search for shared objects
17013: # that the library depends on, but there's no easy way to know if that
17014: # patch is installed. Since this is the case, all we can really
17015: # say is unknown -- it depends on the patch being installed. If
17016: # it is, this changes to `yes'. Without it, it would be `no'.
17017: lt_cv_sys_dlopen_deplibs=unknown
17018: ;;
17019: osf*)
17020: # the two cases above should catch all versions of osf <= 5.1. Read
17021: # the comments above for what we know about them.
17022: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
17023: # is used to find them so we can finally say `yes'.
17024: lt_cv_sys_dlopen_deplibs=yes
17025: ;;
17026: qnx*)
17027: lt_cv_sys_dlopen_deplibs=yes
17028: ;;
17029: solaris*)
17030: lt_cv_sys_dlopen_deplibs=yes
17031: ;;
17032: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17033: libltdl_cv_sys_dlopen_deplibs=yes
17034: ;;
17035: esac
17036:
17037: fi
1.150 moko 17038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
17039: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.128 moko 17040: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
17041:
1.150 moko 17042: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 17043:
17044: fi
17045:
17046: :
17047:
17048: for ac_header in argz.h
1.150 moko 17049: do :
17050: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
17051: "
17052: if test "x$ac_cv_header_argz_h" = xyes; then :
1.128 moko 17053: cat >>confdefs.h <<_ACEOF
1.150 moko 17054: #define HAVE_ARGZ_H 1
1.128 moko 17055: _ACEOF
17056:
1.66 paf 17057: fi
1.62 paf 17058:
1.128 moko 17059: done
17060:
1.29 paf 17061:
1.150 moko 17062: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 17063: # include <argz.h>
17064: #endif
1.150 moko 17065: "
17066: if test "x$ac_cv_type_error_t" = xyes; then :
1.29 paf 17067:
1.128 moko 17068: cat >>confdefs.h <<_ACEOF
17069: #define HAVE_ERROR_T 1
1.62 paf 17070: _ACEOF
1.16 paf 17071:
17072:
1.128 moko 17073: else
1.16 paf 17074:
1.150 moko 17075: $as_echo "#define error_t int" >>confdefs.h
1.16 paf 17076:
1.12 paf 17077:
1.150 moko 17078: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.12 paf 17079:
1.66 paf 17080: fi
1.12 paf 17081:
1.128 moko 17082:
17083: ARGZ_H=
17084: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
17085: argz_next argz_stringify
1.150 moko 17086: do :
17087: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17088: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17089: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17090: cat >>confdefs.h <<_ACEOF
1.150 moko 17091: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17092: _ACEOF
17093:
17094: else
17095: ARGZ_H=argz.h;
17096:
17097: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17098:
17099: fi
17100: done
17101:
17102:
1.150 moko 17103: if test -z "$ARGZ_H"; then :
17104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
17105: $as_echo_n "checking if argz actually works... " >&6; }
17106: if ${lt_cv_sys_argz_works+:} false; then :
17107: $as_echo_n "(cached) " >&6
1.128 moko 17108: else
17109: case $host_os in #(
17110: *cygwin*)
17111: lt_cv_sys_argz_works=no
17112: if test "$cross_compiling" != no; then
17113: lt_cv_sys_argz_works="guessing no"
17114: else
17115: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
17116: save_IFS=$IFS
17117: IFS=-.
17118: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
17119: IFS=$save_IFS
17120: lt_os_major=${2-0}
17121: lt_os_minor=${3-0}
17122: lt_os_micro=${4-0}
17123: if test "$lt_os_major" -gt 1 \
17124: || { test "$lt_os_major" -eq 1 \
17125: && { test "$lt_os_minor" -gt 5 \
17126: || { test "$lt_os_minor" -eq 5 \
17127: && test "$lt_os_micro" -gt 24; }; }; }; then
17128: lt_cv_sys_argz_works=yes
17129: fi
17130: fi
17131: ;; #(
17132: *) lt_cv_sys_argz_works=yes ;;
17133: esac
17134: fi
1.150 moko 17135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
17136: $as_echo "$lt_cv_sys_argz_works" >&6; }
17137: if test "$lt_cv_sys_argz_works" = yes; then :
1.128 moko 17138:
1.150 moko 17139: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 17140:
1.62 paf 17141: else
1.128 moko 17142: ARGZ_H=argz.h
17143:
17144:
17145: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17146:
17147: fi
1.62 paf 17148: fi
1.128 moko 17149:
17150:
17151:
1.150 moko 17152: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
17153: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
17154: if ${libltdl_cv_preloaded_symbols+:} false; then :
17155: $as_echo_n "(cached) " >&6
1.128 moko 17156: else
17157: if test -n "$lt_cv_sys_global_symbol_pipe"; then
17158: libltdl_cv_preloaded_symbols=yes
17159: else
17160: libltdl_cv_preloaded_symbols=no
17161: fi
17162:
1.62 paf 17163: fi
1.150 moko 17164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
17165: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.128 moko 17166: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17167:
1.150 moko 17168: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 17169:
17170: fi
17171:
1.150 moko 17172:
17173:
1.128 moko 17174: # Set options
17175:
17176:
17177:
17178:
17179:
17180:
17181:
17182:
17183:
17184:
1.66 paf 17185:
17186:
1.150 moko 17187: # Check whether --with-included_ltdl was given.
17188: if test "${with_included_ltdl+set}" = set; then :
17189: withval=$with_included_ltdl;
17190: fi
1.64 paf 17191:
17192:
1.128 moko 17193: if test "x$with_included_ltdl" != xyes; then
17194: # We are not being forced to use the included libltdl sources, so
17195: # decide whether there is a useful installed version we can use.
1.150 moko 17196: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 17197:
1.150 moko 17198: "
17199: if test "x$ac_cv_header_ltdl_h" = xyes; then :
17200: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 17201: #include <ltdl.h>
1.150 moko 17202: "
17203: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
17204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
17205: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
17206: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
17207: $as_echo_n "(cached) " >&6
1.79 paf 17208: else
1.128 moko 17209: ac_check_lib_save_LIBS=$LIBS
17210: LIBS="-lltdl $LIBS"
1.150 moko 17211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 17212: /* end confdefs.h. */
1.128 moko 17213:
1.150 moko 17214: /* Override any GCC internal prototype to avoid an error.
17215: Use char because int might match the return type of a GCC
17216: builtin and then its argument prototype would still apply. */
1.128 moko 17217: #ifdef __cplusplus
17218: extern "C"
17219: #endif
17220: char lt_dladvise_preload ();
1.79 paf 17221: int
17222: main ()
17223: {
1.150 moko 17224: return lt_dladvise_preload ();
1.79 paf 17225: ;
17226: return 0;
17227: }
17228: _ACEOF
1.150 moko 17229: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 17230: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 17231: else
1.150 moko 17232: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.128 moko 17233: fi
1.150 moko 17234: rm -f core conftest.err conftest.$ac_objext \
17235: conftest$ac_exeext conftest.$ac_ext
1.128 moko 17236: LIBS=$ac_check_lib_save_LIBS
1.79 paf 17237: fi
1.150 moko 17238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17239: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
17240: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.128 moko 17241: with_included_ltdl=no
1.79 paf 17242: else
1.128 moko 17243: with_included_ltdl=yes
17244: fi
17245:
1.79 paf 17246: else
1.128 moko 17247: with_included_ltdl=yes
17248: fi
1.79 paf 17249:
1.128 moko 17250: else
17251: with_included_ltdl=yes
1.79 paf 17252: fi
1.128 moko 17253:
17254:
1.79 paf 17255: fi
1.128 moko 17256:
17257:
17258:
17259:
1.150 moko 17260: # Check whether --with-ltdl_include was given.
17261: if test "${with_ltdl_include+set}" = set; then :
17262: withval=$with_ltdl_include;
17263: fi
1.128 moko 17264:
17265:
17266: if test -n "$with_ltdl_include"; then
17267: if test -f "$with_ltdl_include/ltdl.h"; then :
17268: else
1.150 moko 17269: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.128 moko 17270: fi
17271: else
17272: with_ltdl_include=no
1.79 paf 17273: fi
1.128 moko 17274:
17275:
1.150 moko 17276: # Check whether --with-ltdl_lib was given.
17277: if test "${with_ltdl_lib+set}" = set; then :
17278: withval=$with_ltdl_lib;
17279: fi
1.128 moko 17280:
17281:
17282: if test -n "$with_ltdl_lib"; then
17283: if test -f "$with_ltdl_lib/libltdl.la"; then :
17284: else
1.150 moko 17285: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.128 moko 17286: fi
17287: else
17288: with_ltdl_lib=no
1.79 paf 17289: fi
17290:
1.128 moko 17291: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17292: ,yes,no,no,)
17293: case $enable_ltdl_convenience in
1.150 moko 17294: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 17295: "") enable_ltdl_convenience=yes
17296: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17297: esac
1.150 moko 17298: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 17299: LTDLDEPS=$LIBLTDL
17300: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17301:
17302:
17303:
17304:
17305:
17306: # For backwards non-gettext consistent compatibility...
17307: INCLTDL="$LTDLINCL"
17308:
1.79 paf 17309:
1.128 moko 17310: ;;
17311: ,no,no,no,)
17312: # If the included ltdl is not to be used, then use the
17313: # preinstalled libltdl we found.
1.79 paf 17314:
1.150 moko 17315: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 17316:
1.128 moko 17317: LIBLTDL=-lltdl
17318: LTDLDEPS=
17319: LTDLINCL=
17320: ;;
17321: ,no*,no,*)
1.150 moko 17322: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 17323: ;;
17324: *) with_included_ltdl=no
17325: LIBLTDL="-L$with_ltdl_lib -lltdl"
17326: LTDLDEPS=
17327: LTDLINCL="-I$with_ltdl_include"
17328: ;;
17329: esac
17330: INCLTDL="$LTDLINCL"
17331:
17332: # Report our decision...
1.150 moko 17333: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17334: $as_echo_n "checking where to find libltdl headers... " >&6; }
17335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17336: $as_echo "$LTDLINCL" >&6; }
17337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17338: $as_echo_n "checking where to find libltdl library... " >&6; }
17339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17340: $as_echo "$LIBLTDL" >&6; }
1.128 moko 17341:
17342:
17343:
1.150 moko 17344: # Check whether --enable-ltdl-install was given.
17345: if test "${enable_ltdl_install+set}" = set; then :
17346: enableval=$enable_ltdl_install;
17347: fi
1.128 moko 17348:
17349:
17350: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17351: *yes*) ;;
17352: *) enable_ltdl_convenience=yes ;;
17353: esac
17354:
1.150 moko 17355: if test x"${enable_ltdl_install-no}" != xno; then
1.128 moko 17356: INSTALL_LTDL_TRUE=
17357: INSTALL_LTDL_FALSE='#'
17358: else
17359: INSTALL_LTDL_TRUE='#'
17360: INSTALL_LTDL_FALSE=
17361: fi
17362:
1.150 moko 17363: if test x"${enable_ltdl_convenience-no}" != xno; then
1.128 moko 17364: CONVENIENCE_LTDL_TRUE=
17365: CONVENIENCE_LTDL_FALSE='#'
17366: else
17367: CONVENIENCE_LTDL_TRUE='#'
17368: CONVENIENCE_LTDL_FALSE=
17369: fi
17370:
17371:
17372:
1.150 moko 17373: subdirs="$subdirs src/lib/ltdl"
1.128 moko 17374:
17375:
17376:
17377:
17378: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17379: # the user used. This is so that ltdl.h can pick up the parent projects
17380: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17381: # definitions required by ltdl.c.
17382: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17383:
17384:
17385:
1.150 moko 17386: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17387: do :
17388: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17389: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17390: "
17391: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17392: cat >>confdefs.h <<_ACEOF
17393: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17394: _ACEOF
1.128 moko 17395:
1.150 moko 17396: fi
1.128 moko 17397:
1.150 moko 17398: done
1.128 moko 17399:
17400:
1.150 moko 17401: for ac_func in closedir opendir readdir
17402: do :
17403: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17404: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17405: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17406: cat >>confdefs.h <<_ACEOF
17407: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17408: _ACEOF
1.66 paf 17409:
17410: else
1.64 paf 17411:
1.66 paf 17412:
1.128 moko 17413: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17414:
1.66 paf 17415: fi
1.128 moko 17416: done
17417:
17418: for ac_func in strlcat strlcpy
1.150 moko 17419: do :
17420: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17421: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17422: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17423: cat >>confdefs.h <<_ACEOF
1.150 moko 17424: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17425: _ACEOF
17426:
17427: else
17428:
17429:
17430: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17431:
1.62 paf 17432: fi
1.128 moko 17433: done
17434:
17435:
1.64 paf 17436:
1.128 moko 17437: cat >>confdefs.h <<_ACEOF
17438: #define LT_LIBEXT "$libext"
1.62 paf 17439: _ACEOF
1.64 paf 17440:
1.128 moko 17441:
17442: name=
17443: eval "lt_libprefix=\"$libname_spec\""
17444:
17445: cat >>confdefs.h <<_ACEOF
17446: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17447: _ACEOF
1.128 moko 17448:
17449:
17450: name=ltdl
17451: eval "LTDLOPEN=\"$libname_spec\""
17452:
17453:
17454:
17455:
17456:
17457:
17458:
17459:
17460: # Only expand once:
17461:
17462:
17463:
17464:
1.150 moko 17465: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17466: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17467: if ${ac_cv_c_bigendian+:} false; then :
17468: $as_echo_n "(cached) " >&6
17469: else
17470: ac_cv_c_bigendian=unknown
17471: # See if we're dealing with a universal compiler.
17472: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473: /* end confdefs.h. */
17474: #ifndef __APPLE_CC__
17475: not a universal capable compiler
17476: #endif
17477: typedef int dummy;
17478:
17479: _ACEOF
17480: if ac_fn_c_try_compile "$LINENO"; then :
17481:
17482: # Check for potential -arch flags. It is not universal unless
17483: # there are at least two -arch flags with different values.
17484: ac_arch=
17485: ac_prev=
17486: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17487: if test -n "$ac_prev"; then
17488: case $ac_word in
17489: i?86 | x86_64 | ppc | ppc64)
17490: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17491: ac_arch=$ac_word
17492: else
17493: ac_cv_c_bigendian=universal
17494: break
17495: fi
17496: ;;
17497: esac
17498: ac_prev=
17499: elif test "x$ac_word" = "x-arch"; then
17500: ac_prev=arch
17501: fi
17502: done
17503: fi
17504: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17505: if test $ac_cv_c_bigendian = unknown; then
17506: # See if sys/param.h defines the BYTE_ORDER macro.
17507: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 17508: /* end confdefs.h. */
1.128 moko 17509: #include <sys/types.h>
1.150 moko 17510: #include <sys/param.h>
1.128 moko 17511:
17512: int
17513: main ()
17514: {
1.150 moko 17515: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17516: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17517: && LITTLE_ENDIAN)
17518: bogus endian macros
17519: #endif
1.64 paf 17520:
1.128 moko 17521: ;
17522: return 0;
17523: }
1.66 paf 17524: _ACEOF
1.150 moko 17525: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17526: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 17527: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 17528: /* end confdefs.h. */
1.128 moko 17529: #include <sys/types.h>
1.150 moko 17530: #include <sys/param.h>
1.64 paf 17531:
17532: int
17533: main ()
1.128 moko 17534: {
17535: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 17536: not big endian
17537: #endif
1.128 moko 17538:
17539: ;
17540: return 0;
1.64 paf 17541: }
17542: _ACEOF
1.150 moko 17543: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17544: ac_cv_c_bigendian=yes
1.64 paf 17545: else
1.150 moko 17546: ac_cv_c_bigendian=no
17547: fi
17548: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549: fi
17550: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17551: fi
17552: if test $ac_cv_c_bigendian = unknown; then
17553: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17554: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555: /* end confdefs.h. */
17556: #include <limits.h>
1.64 paf 17557:
1.150 moko 17558: int
17559: main ()
17560: {
17561: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17562: bogus endian macros
17563: #endif
1.66 paf 17564:
1.150 moko 17565: ;
17566: return 0;
17567: }
1.62 paf 17568: _ACEOF
1.150 moko 17569: if ac_fn_c_try_compile "$LINENO"; then :
17570: # It does; now see whether it defined to _BIG_ENDIAN or not.
17571: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17572: /* end confdefs.h. */
1.150 moko 17573: #include <limits.h>
17574:
1.128 moko 17575: int
17576: main ()
17577: {
1.150 moko 17578: #ifndef _BIG_ENDIAN
17579: not big endian
17580: #endif
17581:
1.128 moko 17582: ;
17583: return 0;
17584: }
1.62 paf 17585: _ACEOF
1.150 moko 17586: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17587: ac_cv_c_bigendian=yes
1.150 moko 17588: else
17589: ac_cv_c_bigendian=no
1.128 moko 17590: fi
1.150 moko 17591: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17592: fi
1.150 moko 17593: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594: fi
17595: if test $ac_cv_c_bigendian = unknown; then
17596: # Compile a test program.
17597: if test "$cross_compiling" = yes; then :
17598: # Try to guess by grepping values from an object file.
17599: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600: /* end confdefs.h. */
17601: short int ascii_mm[] =
17602: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17603: short int ascii_ii[] =
17604: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17605: int use_ascii (int i) {
17606: return ascii_mm[i] + ascii_ii[i];
17607: }
17608: short int ebcdic_ii[] =
17609: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17610: short int ebcdic_mm[] =
17611: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17612: int use_ebcdic (int i) {
17613: return ebcdic_mm[i] + ebcdic_ii[i];
17614: }
17615: extern int foo;
1.62 paf 17616:
1.150 moko 17617: int
17618: main ()
17619: {
17620: return use_ascii (foo) == use_ebcdic (foo);
17621: ;
17622: return 0;
17623: }
17624: _ACEOF
17625: if ac_fn_c_try_compile "$LINENO"; then :
17626: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17627: ac_cv_c_bigendian=yes
17628: fi
17629: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17630: if test "$ac_cv_c_bigendian" = unknown; then
17631: ac_cv_c_bigendian=no
17632: else
17633: # finding both strings is unlikely to happen, but who knows?
17634: ac_cv_c_bigendian=unknown
17635: fi
17636: fi
1.128 moko 17637: fi
1.150 moko 17638: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17639: else
1.150 moko 17640: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17641: /* end confdefs.h. */
1.150 moko 17642: $ac_includes_default
1.128 moko 17643: int
17644: main ()
17645: {
1.150 moko 17646:
17647: /* Are we little or big endian? From Harbison&Steele. */
17648: union
17649: {
17650: long int l;
17651: char c[sizeof (long int)];
17652: } u;
17653: u.l = 1;
17654: return u.c[sizeof (long int) - 1] == 1;
17655:
17656: ;
17657: return 0;
1.128 moko 17658: }
17659: _ACEOF
1.150 moko 17660: if ac_fn_c_try_run "$LINENO"; then :
1.128 moko 17661: ac_cv_c_bigendian=no
17662: else
1.150 moko 17663: ac_cv_c_bigendian=yes
1.128 moko 17664: fi
1.150 moko 17665: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17666: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 17667: fi
1.150 moko 17668:
17669: fi
1.66 paf 17670: fi
1.150 moko 17671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17672: $as_echo "$ac_cv_c_bigendian" >&6; }
17673: case $ac_cv_c_bigendian in #(
17674: yes)
17675:
17676: $as_echo "#define PA_BIG_ENDIAN /**/" >>confdefs.h
17677:
17678: ;; #(
17679: no)
1.128 moko 17680:
1.150 moko 17681: $as_echo "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 17682:
1.150 moko 17683: ;; #(
17684: universal)
1.128 moko 17685:
1.150 moko 17686: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 17687:
1.150 moko 17688: ;; #(
17689: *)
17690: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 17691: ;;
1.150 moko 17692: esac
1.66 paf 17693:
17694:
1.150 moko 17695: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17696: if test "x$ac_cv_type_size_t" = xyes; then :
1.62 paf 17697:
1.66 paf 17698: else
1.1 paf 17699:
1.66 paf 17700: cat >>confdefs.h <<_ACEOF
1.150 moko 17701: #define size_t unsigned int
1.66 paf 17702: _ACEOF
1.62 paf 17703:
17704: fi
1.66 paf 17705:
1.156 moko 17706: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17707: if test "x$ac_cv_type_ssize_t" = xyes; then :
17708:
17709: else
17710:
17711: cat >>confdefs.h <<_ACEOF
17712: #define ssize_t int
17713: _ACEOF
17714:
17715: fi
17716:
1.159 moko 17717: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17718: case $ac_cv_c_uint8_t in #(
17719: no|yes) ;; #(
17720: *)
17721:
17722: $as_echo "#define _UINT8_T 1" >>confdefs.h
17723:
17724:
17725: cat >>confdefs.h <<_ACEOF
17726: #define uint8_t $ac_cv_c_uint8_t
17727: _ACEOF
17728: ;;
17729: esac
17730:
1.165 moko 17731: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17732: case $ac_cv_c_uint16_t in #(
17733: no|yes) ;; #(
17734: *)
17735:
17736:
17737: cat >>confdefs.h <<_ACEOF
17738: #define uint16_t $ac_cv_c_uint16_t
17739: _ACEOF
17740: ;;
17741: esac
17742:
1.156 moko 17743: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17744: case $ac_cv_c_uint32_t in #(
17745: no|yes) ;; #(
17746: *)
17747:
17748: $as_echo "#define _UINT32_T 1" >>confdefs.h
17749:
17750:
17751: cat >>confdefs.h <<_ACEOF
17752: #define uint32_t $ac_cv_c_uint32_t
17753: _ACEOF
17754: ;;
17755: esac
1.128 moko 17756:
1.159 moko 17757: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17758: case $ac_cv_c_uint64_t in #(
17759: no|yes) ;; #(
17760: *)
17761:
17762: $as_echo "#define _UINT64_T 1" >>confdefs.h
17763:
17764:
17765: cat >>confdefs.h <<_ACEOF
17766: #define uint64_t $ac_cv_c_uint64_t
17767: _ACEOF
17768: ;;
17769: esac
17770:
17771:
1.161 moko 17772: ac_header_dirent=no
17773: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17774: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17775: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17776: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17777: if eval \${$as_ac_Header+:} false; then :
17778: $as_echo_n "(cached) " >&6
17779: else
17780: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17781: /* end confdefs.h. */
17782: #include <sys/types.h>
17783: #include <$ac_hdr>
17784:
17785: int
17786: main ()
17787: {
17788: if ((DIR *) 0)
17789: return 0;
17790: ;
17791: return 0;
17792: }
17793: _ACEOF
17794: if ac_fn_c_try_compile "$LINENO"; then :
17795: eval "$as_ac_Header=yes"
17796: else
17797: eval "$as_ac_Header=no"
17798: fi
17799: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800: fi
17801: eval ac_res=\$$as_ac_Header
17802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17803: $as_echo "$ac_res" >&6; }
17804: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17805: cat >>confdefs.h <<_ACEOF
17806: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17807: _ACEOF
17808:
17809: ac_header_dirent=$ac_hdr; break
17810: fi
17811:
17812: done
17813: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17814: if test $ac_header_dirent = dirent.h; then
17815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17816: $as_echo_n "checking for library containing opendir... " >&6; }
17817: if ${ac_cv_search_opendir+:} false; then :
17818: $as_echo_n "(cached) " >&6
17819: else
17820: ac_func_search_save_LIBS=$LIBS
17821: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822: /* end confdefs.h. */
17823:
17824: /* Override any GCC internal prototype to avoid an error.
17825: Use char because int might match the return type of a GCC
17826: builtin and then its argument prototype would still apply. */
17827: #ifdef __cplusplus
17828: extern "C"
17829: #endif
17830: char opendir ();
17831: int
17832: main ()
17833: {
17834: return opendir ();
17835: ;
17836: return 0;
17837: }
17838: _ACEOF
17839: for ac_lib in '' dir; do
17840: if test -z "$ac_lib"; then
17841: ac_res="none required"
17842: else
17843: ac_res=-l$ac_lib
17844: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17845: fi
17846: if ac_fn_c_try_link "$LINENO"; then :
17847: ac_cv_search_opendir=$ac_res
17848: fi
17849: rm -f core conftest.err conftest.$ac_objext \
17850: conftest$ac_exeext
17851: if ${ac_cv_search_opendir+:} false; then :
17852: break
17853: fi
17854: done
17855: if ${ac_cv_search_opendir+:} false; then :
17856:
17857: else
17858: ac_cv_search_opendir=no
17859: fi
17860: rm conftest.$ac_ext
17861: LIBS=$ac_func_search_save_LIBS
17862: fi
17863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17864: $as_echo "$ac_cv_search_opendir" >&6; }
17865: ac_res=$ac_cv_search_opendir
17866: if test "$ac_res" != no; then :
17867: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17868:
17869: fi
17870:
17871: else
17872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17873: $as_echo_n "checking for library containing opendir... " >&6; }
17874: if ${ac_cv_search_opendir+:} false; then :
17875: $as_echo_n "(cached) " >&6
17876: else
17877: ac_func_search_save_LIBS=$LIBS
17878: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17879: /* end confdefs.h. */
17880:
17881: /* Override any GCC internal prototype to avoid an error.
17882: Use char because int might match the return type of a GCC
17883: builtin and then its argument prototype would still apply. */
17884: #ifdef __cplusplus
17885: extern "C"
17886: #endif
17887: char opendir ();
17888: int
17889: main ()
17890: {
17891: return opendir ();
17892: ;
17893: return 0;
17894: }
17895: _ACEOF
17896: for ac_lib in '' x; do
17897: if test -z "$ac_lib"; then
17898: ac_res="none required"
17899: else
17900: ac_res=-l$ac_lib
17901: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17902: fi
17903: if ac_fn_c_try_link "$LINENO"; then :
17904: ac_cv_search_opendir=$ac_res
17905: fi
17906: rm -f core conftest.err conftest.$ac_objext \
17907: conftest$ac_exeext
17908: if ${ac_cv_search_opendir+:} false; then :
17909: break
17910: fi
17911: done
17912: if ${ac_cv_search_opendir+:} false; then :
17913:
17914: else
17915: ac_cv_search_opendir=no
17916: fi
17917: rm conftest.$ac_ext
17918: LIBS=$ac_func_search_save_LIBS
17919: fi
17920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17921: $as_echo "$ac_cv_search_opendir" >&6; }
17922: ac_res=$ac_cv_search_opendir
17923: if test "$ac_res" != no; then :
17924: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17925:
17926: fi
17927:
17928: fi
17929:
17930:
17931:
17932: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17933: #include <sys/types.h>
17934: #ifdef HAVE_DIRENT_H
17935: # include <dirent.h>
17936: #else
17937: # define dirent direct
17938: # ifdef HAVE_SYS_NDIR_H
17939: # include <sys/ndir.h>
17940: # endif
17941: # ifdef HAVE_SYS_DIR_H
17942: # include <sys/dir.h>
17943: # endif
17944: # ifdef HAVE_NDIR_H
17945: # include <ndir.h>
17946: # endif
17947: #endif
17948:
17949: "
17950: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17951:
17952: cat >>confdefs.h <<_ACEOF
17953: #define HAVE_STRUCT_DIRENT_D_TYPE 1
17954: _ACEOF
17955:
17956:
17957: fi
17958:
17959:
1.159 moko 17960:
1.171 moko 17961: # Check whether --enable-largefile was given.
17962: if test "${enable_largefile+set}" = set; then :
17963: enableval=$enable_largefile;
17964: fi
17965:
17966: if test "$enable_largefile" != no; then
17967:
17968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17969: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17970: if ${ac_cv_sys_largefile_CC+:} false; then :
17971: $as_echo_n "(cached) " >&6
17972: else
17973: ac_cv_sys_largefile_CC=no
17974: if test "$GCC" != yes; then
17975: ac_save_CC=$CC
17976: while :; do
17977: # IRIX 6.2 and later do not support large files by default,
17978: # so use the C compiler's -n32 option if that helps.
17979: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980: /* end confdefs.h. */
17981: #include <sys/types.h>
17982: /* Check that off_t can represent 2**63 - 1 correctly.
17983: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17984: since some C++ compilers masquerading as C compilers
17985: incorrectly reject 9223372036854775807. */
1.191 moko 17986: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 17987: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17988: && LARGE_OFF_T % 2147483647 == 1)
17989: ? 1 : -1];
17990: int
17991: main ()
17992: {
17993:
17994: ;
17995: return 0;
17996: }
17997: _ACEOF
17998: if ac_fn_c_try_compile "$LINENO"; then :
17999: break
18000: fi
18001: rm -f core conftest.err conftest.$ac_objext
18002: CC="$CC -n32"
18003: if ac_fn_c_try_compile "$LINENO"; then :
18004: ac_cv_sys_largefile_CC=' -n32'; break
18005: fi
18006: rm -f core conftest.err conftest.$ac_objext
18007: break
18008: done
18009: CC=$ac_save_CC
18010: rm -f conftest.$ac_ext
18011: fi
18012: fi
18013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18014: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18015: if test "$ac_cv_sys_largefile_CC" != no; then
18016: CC=$CC$ac_cv_sys_largefile_CC
18017: fi
18018:
18019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18020: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18021: if ${ac_cv_sys_file_offset_bits+:} false; then :
18022: $as_echo_n "(cached) " >&6
18023: else
18024: while :; do
18025: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18026: /* end confdefs.h. */
18027: #include <sys/types.h>
18028: /* Check that off_t can represent 2**63 - 1 correctly.
18029: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18030: since some C++ compilers masquerading as C compilers
18031: incorrectly reject 9223372036854775807. */
1.191 moko 18032: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18033: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18034: && LARGE_OFF_T % 2147483647 == 1)
18035: ? 1 : -1];
18036: int
18037: main ()
18038: {
18039:
18040: ;
18041: return 0;
18042: }
18043: _ACEOF
18044: if ac_fn_c_try_compile "$LINENO"; then :
18045: ac_cv_sys_file_offset_bits=no; break
18046: fi
18047: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18048: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049: /* end confdefs.h. */
18050: #define _FILE_OFFSET_BITS 64
18051: #include <sys/types.h>
18052: /* Check that off_t can represent 2**63 - 1 correctly.
18053: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18054: since some C++ compilers masquerading as C compilers
18055: incorrectly reject 9223372036854775807. */
1.191 moko 18056: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18057: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18058: && LARGE_OFF_T % 2147483647 == 1)
18059: ? 1 : -1];
18060: int
18061: main ()
18062: {
18063:
18064: ;
18065: return 0;
18066: }
18067: _ACEOF
18068: if ac_fn_c_try_compile "$LINENO"; then :
18069: ac_cv_sys_file_offset_bits=64; break
18070: fi
18071: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072: ac_cv_sys_file_offset_bits=unknown
18073: break
18074: done
18075: fi
18076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18077: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18078: case $ac_cv_sys_file_offset_bits in #(
18079: no | unknown) ;;
18080: *)
18081: cat >>confdefs.h <<_ACEOF
18082: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18083: _ACEOF
18084: ;;
18085: esac
18086: rm -rf conftest*
18087: if test $ac_cv_sys_file_offset_bits = unknown; then
18088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18089: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18090: if ${ac_cv_sys_large_files+:} false; then :
18091: $as_echo_n "(cached) " >&6
18092: else
18093: while :; do
18094: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095: /* end confdefs.h. */
18096: #include <sys/types.h>
18097: /* Check that off_t can represent 2**63 - 1 correctly.
18098: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18099: since some C++ compilers masquerading as C compilers
18100: incorrectly reject 9223372036854775807. */
1.191 moko 18101: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18102: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18103: && LARGE_OFF_T % 2147483647 == 1)
18104: ? 1 : -1];
18105: int
18106: main ()
18107: {
18108:
18109: ;
18110: return 0;
18111: }
18112: _ACEOF
18113: if ac_fn_c_try_compile "$LINENO"; then :
18114: ac_cv_sys_large_files=no; break
18115: fi
18116: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18118: /* end confdefs.h. */
18119: #define _LARGE_FILES 1
18120: #include <sys/types.h>
18121: /* Check that off_t can represent 2**63 - 1 correctly.
18122: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18123: since some C++ compilers masquerading as C compilers
18124: incorrectly reject 9223372036854775807. */
1.191 moko 18125: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18126: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18127: && LARGE_OFF_T % 2147483647 == 1)
18128: ? 1 : -1];
18129: int
18130: main ()
18131: {
18132:
18133: ;
18134: return 0;
18135: }
18136: _ACEOF
18137: if ac_fn_c_try_compile "$LINENO"; then :
18138: ac_cv_sys_large_files=1; break
18139: fi
18140: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141: ac_cv_sys_large_files=unknown
18142: break
18143: done
18144: fi
18145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18146: $as_echo "$ac_cv_sys_large_files" >&6; }
18147: case $ac_cv_sys_large_files in #(
18148: no | unknown) ;;
18149: *)
18150: cat >>confdefs.h <<_ACEOF
18151: #define _LARGE_FILES $ac_cv_sys_large_files
18152: _ACEOF
18153: ;;
18154: esac
18155: rm -rf conftest*
18156: fi
18157:
18158:
18159: fi
18160:
18161:
1.159 moko 18162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18163: $as_echo_n "checking for ANSI C header files... " >&6; }
18164: if ${ac_cv_header_stdc+:} false; then :
18165: $as_echo_n "(cached) " >&6
18166: else
18167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168: /* end confdefs.h. */
18169: #include <stdlib.h>
18170: #include <stdarg.h>
18171: #include <string.h>
18172: #include <float.h>
18173:
18174: int
18175: main ()
18176: {
18177:
18178: ;
18179: return 0;
18180: }
18181: _ACEOF
18182: if ac_fn_c_try_compile "$LINENO"; then :
18183: ac_cv_header_stdc=yes
18184: else
18185: ac_cv_header_stdc=no
18186: fi
18187: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18188:
18189: if test $ac_cv_header_stdc = yes; then
18190: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18191: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192: /* end confdefs.h. */
18193: #include <string.h>
18194:
18195: _ACEOF
18196: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18197: $EGREP "memchr" >/dev/null 2>&1; then :
18198:
18199: else
18200: ac_cv_header_stdc=no
18201: fi
18202: rm -f conftest*
18203:
18204: fi
18205:
18206: if test $ac_cv_header_stdc = yes; then
18207: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18208: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209: /* end confdefs.h. */
18210: #include <stdlib.h>
18211:
18212: _ACEOF
18213: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18214: $EGREP "free" >/dev/null 2>&1; then :
18215:
18216: else
18217: ac_cv_header_stdc=no
18218: fi
18219: rm -f conftest*
18220:
18221: fi
18222:
18223: if test $ac_cv_header_stdc = yes; then
18224: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18225: if test "$cross_compiling" = yes; then :
18226: :
18227: else
18228: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229: /* end confdefs.h. */
18230: #include <ctype.h>
18231: #include <stdlib.h>
18232: #if ((' ' & 0x0FF) == 0x020)
18233: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18234: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18235: #else
18236: # define ISLOWER(c) \
18237: (('a' <= (c) && (c) <= 'i') \
18238: || ('j' <= (c) && (c) <= 'r') \
18239: || ('s' <= (c) && (c) <= 'z'))
18240: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18241: #endif
18242:
18243: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18244: int
18245: main ()
18246: {
18247: int i;
18248: for (i = 0; i < 256; i++)
18249: if (XOR (islower (i), ISLOWER (i))
18250: || toupper (i) != TOUPPER (i))
18251: return 2;
18252: return 0;
18253: }
18254: _ACEOF
18255: if ac_fn_c_try_run "$LINENO"; then :
18256:
18257: else
18258: ac_cv_header_stdc=no
18259: fi
18260: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18261: conftest.$ac_objext conftest.beam conftest.$ac_ext
18262: fi
18263:
18264: fi
18265: fi
18266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18267: $as_echo "$ac_cv_header_stdc" >&6; }
18268: if test $ac_cv_header_stdc = yes; then
18269:
18270: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18271:
18272: fi
1.128 moko 18273:
1.150 moko 18274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18275: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18276: if ${ac_cv_header_time+:} false; then :
18277: $as_echo_n "(cached) " >&6
1.62 paf 18278: else
1.150 moko 18279: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18280: /* end confdefs.h. */
1.66 paf 18281: #include <sys/types.h>
18282: #include <sys/time.h>
18283: #include <time.h>
1.62 paf 18284:
18285: int
18286: main ()
18287: {
1.66 paf 18288: if ((struct tm *) 0)
18289: return 0;
1.62 paf 18290: ;
18291: return 0;
18292: }
18293: _ACEOF
1.150 moko 18294: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 18295: ac_cv_header_time=yes
1.1 paf 18296: else
1.150 moko 18297: ac_cv_header_time=no
1.1 paf 18298: fi
1.150 moko 18299: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18300: fi
1.150 moko 18301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18302: $as_echo "$ac_cv_header_time" >&6; }
1.66 paf 18303: if test $ac_cv_header_time = yes; then
1.1 paf 18304:
1.150 moko 18305: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.66 paf 18306:
1.1 paf 18307: fi
1.66 paf 18308:
1.1 paf 18309:
1.159 moko 18310: 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
18311: do :
18312: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18313: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18314: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18315: cat >>confdefs.h <<_ACEOF
18316: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18317: _ACEOF
18318:
18319: fi
1.150 moko 18320:
1.159 moko 18321: done
18322:
18323: for ac_header in assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h
18324: do :
18325: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18326: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18327: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18328: cat >>confdefs.h <<_ACEOF
18329: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18330: _ACEOF
18331:
18332: fi
18333:
18334: done
18335:
1.164 moko 18336: 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 18337: do :
18338: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18339: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18340: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18341: cat >>confdefs.h <<_ACEOF
18342: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18343: _ACEOF
18344:
18345: fi
18346:
18347: done
18348:
1.163 moko 18349: for ac_header in sys/socket.h netinet/in.h arpa/inet.h netdb.h
1.150 moko 18350: do :
18351: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18352: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18353: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.66 paf 18354: cat >>confdefs.h <<_ACEOF
1.150 moko 18355: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18356: _ACEOF
18357:
18358: fi
18359:
1.66 paf 18360: done
1.62 paf 18361:
18362:
18363:
1.66 paf 18364: case "$host" in
1.107 misha 18365: *-freebsd4*)
18366:
1.150 moko 18367: $as_echo "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 18368:
18369: ;;
1.195 moko 18370: *-freebsd1*)
18371:
18372: $as_echo "#define FREEBSD1X /**/" >>confdefs.h
18373:
18374: ;;
1.66 paf 18375: *-sunos5.6* | *-solaris2.6*)
1.150 moko 18376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
18377: $as_echo_n "checking for main in -lxnet... " >&6; }
18378: if ${ac_cv_lib_xnet_main+:} false; then :
18379: $as_echo_n "(cached) " >&6
1.62 paf 18380: else
1.66 paf 18381: ac_check_lib_save_LIBS=$LIBS
18382: LIBS="-lxnet $LIBS"
1.150 moko 18383: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18384: /* end confdefs.h. */
18385:
1.66 paf 18386:
18387: int
18388: main ()
18389: {
1.150 moko 18390: return main ();
1.66 paf 18391: ;
18392: return 0;
18393: }
1.62 paf 18394: _ACEOF
1.150 moko 18395: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18396: ac_cv_lib_xnet_main=yes
1.62 paf 18397: else
1.150 moko 18398: ac_cv_lib_xnet_main=no
1.62 paf 18399: fi
1.150 moko 18400: rm -f core conftest.err conftest.$ac_objext \
18401: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18402: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18403: fi
1.150 moko 18404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
18405: $as_echo "$ac_cv_lib_xnet_main" >&6; }
18406: if test "x$ac_cv_lib_xnet_main" = xyes; then :
1.62 paf 18407: cat >>confdefs.h <<_ACEOF
1.66 paf 18408: #define HAVE_LIBXNET 1
1.62 paf 18409: _ACEOF
1.1 paf 18410:
1.66 paf 18411: LIBS="-lxnet $LIBS"
18412:
1.1 paf 18413: fi
18414:
1.66 paf 18415: ;;
18416: *-sunos5* | *-solaris2*)
1.150 moko 18417: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
18418: $as_echo_n "checking for main in -lsocket... " >&6; }
18419: if ${ac_cv_lib_socket_main+:} false; then :
18420: $as_echo_n "(cached) " >&6
1.62 paf 18421: else
1.66 paf 18422: ac_check_lib_save_LIBS=$LIBS
18423: LIBS="-lsocket $LIBS"
1.150 moko 18424: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18425: /* end confdefs.h. */
1.66 paf 18426:
18427:
1.62 paf 18428: int
18429: main ()
18430: {
1.150 moko 18431: return main ();
1.62 paf 18432: ;
18433: return 0;
18434: }
18435: _ACEOF
1.150 moko 18436: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18437: ac_cv_lib_socket_main=yes
1.1 paf 18438: else
1.150 moko 18439: ac_cv_lib_socket_main=no
1.1 paf 18440: fi
1.150 moko 18441: rm -f core conftest.err conftest.$ac_objext \
18442: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18443: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18444: fi
1.150 moko 18445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
18446: $as_echo "$ac_cv_lib_socket_main" >&6; }
18447: if test "x$ac_cv_lib_socket_main" = xyes; then :
1.66 paf 18448: cat >>confdefs.h <<_ACEOF
18449: #define HAVE_LIBSOCKET 1
18450: _ACEOF
1.1 paf 18451:
1.66 paf 18452: LIBS="-lsocket $LIBS"
1.1 paf 18453:
18454: fi
18455:
1.150 moko 18456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
18457: $as_echo_n "checking for main in -lnsl... " >&6; }
18458: if ${ac_cv_lib_nsl_main+:} false; then :
18459: $as_echo_n "(cached) " >&6
1.62 paf 18460: else
1.66 paf 18461: ac_check_lib_save_LIBS=$LIBS
18462: LIBS="-lnsl $LIBS"
1.150 moko 18463: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18464: /* end confdefs.h. */
1.66 paf 18465:
18466:
1.62 paf 18467: int
18468: main ()
18469: {
1.150 moko 18470: return main ();
1.62 paf 18471: ;
18472: return 0;
18473: }
18474: _ACEOF
1.150 moko 18475: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18476: ac_cv_lib_nsl_main=yes
1.30 paf 18477: else
1.150 moko 18478: ac_cv_lib_nsl_main=no
1.30 paf 18479: fi
1.150 moko 18480: rm -f core conftest.err conftest.$ac_objext \
18481: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18482: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18483: fi
1.150 moko 18484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
18485: $as_echo "$ac_cv_lib_nsl_main" >&6; }
18486: if test "x$ac_cv_lib_nsl_main" = xyes; then :
1.66 paf 18487: cat >>confdefs.h <<_ACEOF
18488: #define HAVE_LIBNSL 1
18489: _ACEOF
1.30 paf 18490:
1.66 paf 18491: LIBS="-lnsl $LIBS"
1.30 paf 18492:
18493: fi
18494:
1.66 paf 18495: ;;
18496: *-nec-sysv4*)
1.150 moko 18497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18498: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18499: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18500: $as_echo_n "(cached) " >&6
1.62 paf 18501: else
1.66 paf 18502: ac_check_lib_save_LIBS=$LIBS
18503: LIBS="-lnsl $LIBS"
1.150 moko 18504: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18505: /* end confdefs.h. */
1.66 paf 18506:
1.150 moko 18507: /* Override any GCC internal prototype to avoid an error.
18508: Use char because int might match the return type of a GCC
18509: builtin and then its argument prototype would still apply. */
1.66 paf 18510: #ifdef __cplusplus
18511: extern "C"
18512: #endif
18513: char gethostbyname ();
1.62 paf 18514: int
18515: main ()
18516: {
1.150 moko 18517: return gethostbyname ();
1.62 paf 18518: ;
18519: return 0;
18520: }
18521: _ACEOF
1.150 moko 18522: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18523: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18524: else
1.150 moko 18525: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18526: fi
1.150 moko 18527: rm -f core conftest.err conftest.$ac_objext \
18528: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18529: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18530: fi
1.150 moko 18531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18532: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18533: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.66 paf 18534: cat >>confdefs.h <<_ACEOF
18535: #define HAVE_LIBNSL 1
18536: _ACEOF
1.30 paf 18537:
1.66 paf 18538: LIBS="-lnsl $LIBS"
1.30 paf 18539:
18540: fi
18541:
1.150 moko 18542: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18543: $as_echo_n "checking for socket in -lsocket... " >&6; }
18544: if ${ac_cv_lib_socket_socket+:} false; then :
18545: $as_echo_n "(cached) " >&6
1.8 paf 18546: else
1.66 paf 18547: ac_check_lib_save_LIBS=$LIBS
18548: LIBS="-lsocket $LIBS"
1.150 moko 18549: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18550: /* end confdefs.h. */
18551:
1.150 moko 18552: /* Override any GCC internal prototype to avoid an error.
18553: Use char because int might match the return type of a GCC
18554: builtin and then its argument prototype would still apply. */
1.66 paf 18555: #ifdef __cplusplus
18556: extern "C"
18557: #endif
18558: char socket ();
1.62 paf 18559: int
18560: main ()
18561: {
1.150 moko 18562: return socket ();
1.62 paf 18563: ;
18564: return 0;
18565: }
18566: _ACEOF
1.150 moko 18567: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18568: ac_cv_lib_socket_socket=yes
1.8 paf 18569: else
1.150 moko 18570: ac_cv_lib_socket_socket=no
1.8 paf 18571: fi
1.150 moko 18572: rm -f core conftest.err conftest.$ac_objext \
18573: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18574: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18575: fi
1.150 moko 18576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18577: $as_echo "$ac_cv_lib_socket_socket" >&6; }
18578: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.66 paf 18579: cat >>confdefs.h <<_ACEOF
1.128 moko 18580: #define HAVE_LIBSOCKET 1
1.66 paf 18581: _ACEOF
18582:
1.128 moko 18583: LIBS="-lsocket $LIBS"
1.66 paf 18584:
1.62 paf 18585: fi
18586:
1.66 paf 18587: ;;
1.128 moko 18588: *-cygwin*)
18589:
1.150 moko 18590: $as_echo "#define WIN32 /**/" >>confdefs.h
1.128 moko 18591:
1.66 paf 18592: ;;
18593: esac
1.1 paf 18594:
1.150 moko 18595: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18596: $as_echo_n "checking for sin in -lm... " >&6; }
18597: if ${ac_cv_lib_m_sin+:} false; then :
18598: $as_echo_n "(cached) " >&6
1.1 paf 18599: else
1.62 paf 18600: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18601: LIBS="-lm $LIBS"
1.150 moko 18602: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18603: /* end confdefs.h. */
18604:
1.150 moko 18605: /* Override any GCC internal prototype to avoid an error.
18606: Use char because int might match the return type of a GCC
18607: builtin and then its argument prototype would still apply. */
1.66 paf 18608: #ifdef __cplusplus
18609: extern "C"
18610: #endif
18611: char sin ();
1.62 paf 18612: int
18613: main ()
18614: {
1.150 moko 18615: return sin ();
1.62 paf 18616: ;
18617: return 0;
18618: }
18619: _ACEOF
1.150 moko 18620: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18621: ac_cv_lib_m_sin=yes
1.62 paf 18622: else
1.150 moko 18623: ac_cv_lib_m_sin=no
1.62 paf 18624: fi
1.150 moko 18625: rm -f core conftest.err conftest.$ac_objext \
18626: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18627: LIBS=$ac_check_lib_save_LIBS
18628: fi
1.150 moko 18629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18630: $as_echo "$ac_cv_lib_m_sin" >&6; }
18631: if test "x$ac_cv_lib_m_sin" = xyes; then :
1.62 paf 18632: cat >>confdefs.h <<_ACEOF
1.66 paf 18633: #define HAVE_LIBM 1
1.62 paf 18634: _ACEOF
1.1 paf 18635:
1.66 paf 18636: LIBS="-lm $LIBS"
1.1 paf 18637:
18638: fi
18639:
1.150 moko 18640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18641: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18642: if ${ac_cv_lib_crypt_crypt+:} false; then :
18643: $as_echo_n "(cached) " >&6
1.1 paf 18644: else
1.62 paf 18645: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18646: LIBS="-lcrypt $LIBS"
1.150 moko 18647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18648: /* end confdefs.h. */
18649:
1.150 moko 18650: /* Override any GCC internal prototype to avoid an error.
18651: Use char because int might match the return type of a GCC
18652: builtin and then its argument prototype would still apply. */
1.66 paf 18653: #ifdef __cplusplus
18654: extern "C"
18655: #endif
18656: char crypt ();
1.62 paf 18657: int
18658: main ()
18659: {
1.150 moko 18660: return crypt ();
1.62 paf 18661: ;
18662: return 0;
18663: }
18664: _ACEOF
1.150 moko 18665: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18666: ac_cv_lib_crypt_crypt=yes
1.62 paf 18667: else
1.150 moko 18668: ac_cv_lib_crypt_crypt=no
1.62 paf 18669: fi
1.150 moko 18670: rm -f core conftest.err conftest.$ac_objext \
18671: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18672: LIBS=$ac_check_lib_save_LIBS
18673: fi
1.150 moko 18674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18675: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18676: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
1.62 paf 18677: cat >>confdefs.h <<_ACEOF
1.66 paf 18678: #define HAVE_LIBCRYPT 1
1.62 paf 18679: _ACEOF
1.1 paf 18680:
1.66 paf 18681: LIBS="-lcrypt $LIBS"
18682:
18683: fi
18684:
18685:
18686:
1.159 moko 18687: for ac_func in flock _locking fcntl lockf ftruncate fchmod
18688: do :
18689: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18690: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18691: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18692: cat >>confdefs.h <<_ACEOF
18693: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18694: _ACEOF
18695:
18696: fi
18697: done
1.66 paf 18698:
1.159 moko 18699: for ac_func in getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv
1.150 moko 18700: do :
18701: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18702: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18703: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.62 paf 18704: cat >>confdefs.h <<_ACEOF
1.150 moko 18705: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 18706: _ACEOF
1.1 paf 18707:
1.66 paf 18708: fi
18709: done
18710:
1.1 paf 18711:
18712:
1.159 moko 18713:
1.67 paf 18714: pa_func=sigsetjmp
1.150 moko 18715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
18716: $as_echo_n "checking for (maybe built-in) function $pa_func... " >&6; }
18717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18718: /* end confdefs.h. */
18719:
18720: #ifdef HAVE_SETJMP_H
18721: # include <setjmp.h>
18722: #endif
18723:
18724: int
18725: main ()
18726: {
18727:
18728: $pa_func(0,0);
18729:
18730: ;
18731: return 0;
18732: }
18733: _ACEOF
1.150 moko 18734: if ac_fn_c_try_compile "$LINENO"; then :
18735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18736: $as_echo "yes" >&6; }
1.67 paf 18737: cat >>confdefs.h <<_ACEOF
1.150 moko 18738: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.67 paf 18739: _ACEOF
18740:
18741:
18742: else
1.150 moko 18743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18744: $as_echo "no" >&6; }
1.67 paf 18745:
18746: fi
1.150 moko 18747: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 18748:
18749:
18750:
1.159 moko 18751:
1.150 moko 18752: ac_ext=cpp
1.67 paf 18753: ac_cpp='$CXXCPP $CPPFLAGS'
18754: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18755: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18756: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18757:
18758:
18759:
1.188 moko 18760: for pa_func in trunc round sign isfinite
1.67 paf 18761: do
18762:
1.150 moko 18763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
18764: $as_echo_n "checking for (maybe built-in) math function $pa_func... " >&6; }
18765: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18766: /* end confdefs.h. */
18767:
18768: #ifdef HAVE_MATH_H
18769: # include <math.h>
18770: #endif
18771:
18772: int
18773: main ()
18774: {
18775:
18776: double result=$pa_func(1.6);
18777:
18778: ;
18779: return 0;
18780: }
18781: _ACEOF
1.150 moko 18782: if ac_fn_cxx_try_compile "$LINENO"; then :
18783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18784: $as_echo "yes" >&6; }
1.67 paf 18785: cat >>confdefs.h <<_ACEOF
1.150 moko 18786: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.62 paf 18787: _ACEOF
1.66 paf 18788:
1.62 paf 18789: else
1.150 moko 18790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18791: $as_echo "no" >&6; }
1.62 paf 18792:
18793: fi
1.150 moko 18794: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18795:
18796: done
18797:
18798: ac_ext=c
18799: ac_cpp='$CPP $CPPFLAGS'
18800: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18801: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18802: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18803:
18804:
18805:
18806: for ac_func in qsort
18807: do :
18808: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
18809: if test "x$ac_cv_func_qsort" = xyes; then :
1.62 paf 18810: cat >>confdefs.h <<_ACEOF
1.150 moko 18811: #define HAVE_QSORT 1
1.62 paf 18812: _ACEOF
1.1 paf 18813:
1.66 paf 18814: else
1.150 moko 18815: as_fn_error $? "No qsort library function." "$LINENO" 5
1.1 paf 18816: fi
1.66 paf 18817: done
1.1 paf 18818:
18819:
1.62 paf 18820:
1.159 moko 18821:
1.177 moko 18822: ac_ext=cpp
18823: ac_cpp='$CXXCPP $CPPFLAGS'
18824: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18825: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18826: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18827:
1.150 moko 18828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
18829: $as_echo_n "checking for timezone variable... " >&6; }
18830: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18831: /* end confdefs.h. */
1.66 paf 18832: #include <time.h>
1.62 paf 18833: int
18834: main ()
18835: {
1.177 moko 18836: int test=timezone;
1.62 paf 18837: ;
18838: return 0;
18839: }
18840: _ACEOF
1.177 moko 18841: if ac_fn_cxx_try_compile "$LINENO"; then :
1.150 moko 18842: $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1.158 moko 18843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18844: $as_echo "yes" >&6; }
1.62 paf 18845: else
1.150 moko 18846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18847: $as_echo "no" >&6; }
1.62 paf 18848: fi
1.150 moko 18849: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.177 moko 18850: ac_ext=c
18851: ac_cpp='$CPP $CPPFLAGS'
18852: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18853: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18854: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18855:
1.1 paf 18856:
1.176 moko 18857: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18858: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
1.150 moko 18859: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18860: /* end confdefs.h. */
1.66 paf 18861: #include <time.h>
1.62 paf 18862: int
18863: main ()
18864: {
1.176 moko 18865: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 18866: ;
18867: return 0;
18868: }
18869: _ACEOF
1.150 moko 18870: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18871: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
1.158 moko 18872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18873: $as_echo "yes" >&6; }
1.62 paf 18874: else
1.150 moko 18875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18876: $as_echo "no" >&6; }
1.62 paf 18877: fi
1.150 moko 18878: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18879:
1.176 moko 18880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
18881: $as_echo_n "checking for tm_tzadj in struct tm... " >&6; }
1.150 moko 18882: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18883: /* end confdefs.h. */
1.66 paf 18884: #include <time.h>
1.62 paf 18885: int
18886: main ()
18887: {
1.176 moko 18888: struct tm tm; tm.tm_tzadj=0;
1.62 paf 18889: ;
18890: return 0;
18891: }
18892: _ACEOF
1.150 moko 18893: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18894: $as_echo "#define HAVE_TM_TZADJ 1" >>confdefs.h
1.158 moko 18895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18896: $as_echo "yes" >&6; }
1.62 paf 18897: else
1.150 moko 18898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18899: $as_echo "no" >&6; }
1.62 paf 18900: fi
1.150 moko 18901: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18902:
1.176 moko 18903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
18904: $as_echo_n "checking for 0..9999 year date range support... " >&6; }
18905: if test "$cross_compiling" = yes; then :
18906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907: $as_echo "no" >&6; }
18908: else
18909: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18910: /* end confdefs.h. */
1.176 moko 18911:
18912: #include <string.h>
1.66 paf 18913: #include <time.h>
1.176 moko 18914:
18915: int main() {
18916: struct tm tmL,tmH;
18917: memset(&tmL, 0, sizeof(tmL));
18918: memset(&tmH, 0, sizeof(tmH));
18919: tmL.tm_year=-1900;
18920: tmL.tm_mon=-1;
18921: tmH.tm_year=9999-1900;
18922: tmH.tm_mon=12-1;
18923: tmH.tm_mday=31;
18924: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 18925: }
1.176 moko 18926:
1.62 paf 18927: _ACEOF
1.176 moko 18928: if ac_fn_c_try_run "$LINENO"; then :
18929: $as_echo "#define PA_DATE64 1" >>confdefs.h
1.158 moko 18930: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18931: $as_echo "yes" >&6; }
1.62 paf 18932: else
1.150 moko 18933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18934: $as_echo "no" >&6; }
1.62 paf 18935: fi
1.176 moko 18936: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18937: conftest.$ac_objext conftest.beam conftest.$ac_ext
18938: fi
1.31 paf 18939:
1.1 paf 18940:
18941:
18942:
1.62 paf 18943:
18944:
18945:
1.150 moko 18946: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 18947:
18948:
1.200 moko 18949: 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 18950:
18951: cat >confcache <<\_ACEOF
1.1 paf 18952: # This file is a shell script that caches the results of configure
18953: # tests run on this system so they can be shared between configure
1.62 paf 18954: # scripts and configure runs, see configure's option --config-cache.
18955: # It is not useful on other systems. If it contains results you don't
18956: # want to keep, you may remove or edit it.
1.1 paf 18957: #
1.62 paf 18958: # config.status only pays attention to the cache file if you give it
18959: # the --recheck option to rerun configure.
1.1 paf 18960: #
1.62 paf 18961: # `ac_cv_env_foo' variables (set or unset) will be overridden when
18962: # loading this file, other *unset* `ac_cv_foo' will be assigned the
18963: # following values.
18964:
18965: _ACEOF
18966:
1.1 paf 18967: # The following way of writing the cache mishandles newlines in values,
18968: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 18969: # So, we kill variables containing newlines.
1.1 paf 18970: # Ultrix sh set writes to stderr and can't be redirected directly,
18971: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 18972: (
18973: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18974: eval ac_val=\$$ac_var
18975: case $ac_val in #(
18976: *${as_nl}*)
18977: case $ac_var in #(
18978: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18979: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18980: esac
18981: case $ac_var in #(
18982: _ | IFS | as_nl) ;; #(
18983: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18984: *) { eval $ac_var=; unset $ac_var;} ;;
18985: esac ;;
18986: esac
18987: done
18988:
1.62 paf 18989: (set) 2>&1 |
1.150 moko 18990: case $as_nl`(ac_space=' '; set) 2>&1` in #(
18991: *${as_nl}ac_space=\ *)
18992: # `set' does not quote correctly, so add quotes: double-quote
18993: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 18994: sed -n \
1.86 paf 18995: "s/'/'\\\\''/g;
18996: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 18997: ;; #(
1.62 paf 18998: *)
18999: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 19000: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 19001: ;;
1.150 moko 19002: esac |
19003: sort
19004: ) |
1.62 paf 19005: sed '
1.150 moko 19006: /^ac_cv_env_/b end
1.62 paf 19007: t clear
1.150 moko 19008: :clear
1.62 paf 19009: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19010: t end
1.150 moko 19011: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19012: :end' >>confcache
19013: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19014: if test -w "$cache_file"; then
19015: if test "x$cache_file" != "x/dev/null"; then
19016: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19017: $as_echo "$as_me: updating cache $cache_file" >&6;}
19018: if test ! -f "$cache_file" || test -h "$cache_file"; then
19019: cat confcache >"$cache_file"
19020: else
19021: case $cache_file in #(
19022: */* | ?:*)
19023: mv -f confcache "$cache_file"$$ &&
19024: mv -f "$cache_file"$$ "$cache_file" ;; #(
19025: *)
19026: mv -f confcache "$cache_file" ;;
19027: esac
19028: fi
19029: fi
1.1 paf 19030: else
1.150 moko 19031: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19032: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 19033: fi
19034: fi
19035: rm -f confcache
19036:
19037: test "x$prefix" = xNONE && prefix=$ac_default_prefix
19038: # Let make expand exec_prefix.
19039: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19040:
1.62 paf 19041: DEFS=-DHAVE_CONFIG_H
19042:
19043: ac_libobjs=
19044: ac_ltlibobjs=
19045: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19046: # 1. Remove the extension, and $U if already installed.
1.150 moko 19047: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19048: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19049: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19050: # will be set to the directory where LIBOBJS objects are built.
19051: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19052: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 19053: done
19054: LIBOBJS=$ac_libobjs
19055:
19056: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 19057:
19058:
1.187 moko 19059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19060: $as_echo_n "checking that generated files are newer than configure... " >&6; }
19061: if test -n "$am_sleep_pid"; then
19062: # Hide warnings about reused PIDs.
19063: wait $am_sleep_pid 2>/dev/null
19064: fi
19065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19066: $as_echo "done" >&6; }
1.150 moko 19067: if test -n "$EXEEXT"; then
19068: am__EXEEXT_TRUE=
19069: am__EXEEXT_FALSE='#'
19070: else
19071: am__EXEEXT_TRUE='#'
19072: am__EXEEXT_FALSE=
19073: fi
19074:
1.62 paf 19075: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 19076: as_fn_error $? "conditional \"AMDEP\" was never defined.
19077: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19078: fi
1.66 paf 19079: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 19080: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19081: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19082: fi
1.66 paf 19083: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 19084: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19085: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19086: fi
1.122 moko 19087: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 19088: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
19089: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19090: fi
1.128 moko 19091: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 19092: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
19093: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19094: fi
19095: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 19096: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
19097: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19098: fi
1.150 moko 19099: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 19100:
19101: _ltdl_libobjs=
19102: _ltdl_ltlibobjs=
19103: if test -n "$_LT_LIBOBJS"; then
19104: # Remove the extension.
19105: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
19106: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
19107: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
19108: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
19109: done
19110: fi
19111: ltdl_LIBOBJS=$_ltdl_libobjs
19112:
19113: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
19114:
19115:
1.62 paf 19116:
1.150 moko 19117:
19118: : "${CONFIG_STATUS=./config.status}"
19119: ac_write_fail=0
1.62 paf 19120: ac_clean_files_save=$ac_clean_files
19121: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.150 moko 19122: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19123: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19124: as_write_fail=0
19125: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 19126: #! $SHELL
19127: # Generated by $as_me.
19128: # Run this file to recreate the current configuration.
19129: # Compiler output produced by configure, useful for debugging
19130: # configure, is in config.log if it exists.
19131:
19132: debug=false
19133: ac_cs_recheck=false
19134: ac_cs_silent=false
1.150 moko 19135:
1.62 paf 19136: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 19137: export SHELL
19138: _ASEOF
19139: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19140: ## -------------------- ##
19141: ## M4sh Initialization. ##
19142: ## -------------------- ##
1.62 paf 19143:
1.150 moko 19144: # Be more Bourne compatible
19145: DUALCASE=1; export DUALCASE # for MKS sh
19146: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 19147: emulate sh
19148: NULLCMD=:
1.150 moko 19149: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 19150: # is contrary to our usage. Disable this feature.
19151: alias -g '${1+"$@"}'='"$@"'
1.150 moko 19152: setopt NO_GLOB_SUBST
19153: else
19154: case `(set -o) 2>/dev/null` in #(
19155: *posix*) :
19156: set -o posix ;; #(
19157: *) :
19158: ;;
19159: esac
19160: fi
19161:
19162:
19163: as_nl='
19164: '
19165: export as_nl
19166: # Printing a long string crashes Solaris 7 /usr/bin/printf.
19167: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19168: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19169: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19170: # Prefer a ksh shell builtin over an external printf program on Solaris,
19171: # but without wasting forks for bash or zsh.
19172: if test -z "$BASH_VERSION$ZSH_VERSION" \
19173: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19174: as_echo='print -r --'
19175: as_echo_n='print -rn --'
19176: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19177: as_echo='printf %s\n'
19178: as_echo_n='printf %s'
19179: else
19180: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19181: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19182: as_echo_n='/usr/ucb/echo -n'
19183: else
19184: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19185: as_echo_n_body='eval
19186: arg=$1;
19187: case $arg in #(
19188: *"$as_nl"*)
19189: expr "X$arg" : "X\\(.*\\)$as_nl";
19190: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19191: esac;
19192: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19193: '
19194: export as_echo_n_body
19195: as_echo_n='sh -c $as_echo_n_body as_echo'
19196: fi
19197: export as_echo_body
19198: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 19199: fi
19200:
1.150 moko 19201: # The user is always right.
19202: if test "${PATH_SEPARATOR+set}" != set; then
19203: PATH_SEPARATOR=:
19204: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19205: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19206: PATH_SEPARATOR=';'
19207: }
1.62 paf 19208: fi
19209:
19210:
1.150 moko 19211: # IFS
19212: # We need space, tab and new line, in precisely that order. Quoting is
19213: # there to prevent editors from complaining about space-tab.
19214: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19215: # splitting by setting IFS to empty value.)
19216: IFS=" "" $as_nl"
19217:
19218: # Find who we are. Look in the path if we contain no directory separator.
19219: as_myself=
19220: case $0 in #((
19221: *[\\/]* ) as_myself=$0 ;;
19222: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19223: for as_dir in $PATH
19224: do
19225: IFS=$as_save_IFS
19226: test -z "$as_dir" && as_dir=.
19227: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19228: done
19229: IFS=$as_save_IFS
19230:
19231: ;;
19232: esac
19233: # We did not find ourselves, most probably we were run as `sh COMMAND'
19234: # in which case we are not to be found in the path.
19235: if test "x$as_myself" = x; then
19236: as_myself=$0
19237: fi
19238: if test ! -f "$as_myself"; then
19239: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19240: exit 1
19241: fi
19242:
19243: # Unset variables that we do not need and which cause bugs (e.g. in
19244: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19245: # suppresses any "Segmentation fault" message there. '((' could
19246: # trigger a bug in pdksh 5.2.14.
19247: for as_var in BASH_ENV ENV MAIL MAILPATH
19248: do eval test x\${$as_var+set} = xset \
19249: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19250: done
1.62 paf 19251: PS1='$ '
19252: PS2='> '
19253: PS4='+ '
19254:
19255: # NLS nuisances.
1.150 moko 19256: LC_ALL=C
19257: export LC_ALL
19258: LANGUAGE=C
19259: export LANGUAGE
19260:
19261: # CDPATH.
19262: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19263:
19264:
19265: # as_fn_error STATUS ERROR [LINENO LOG_FD]
19266: # ----------------------------------------
19267: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19268: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19269: # script with STATUS, using 1 if that was 0.
19270: as_fn_error ()
19271: {
19272: as_status=$1; test $as_status -eq 0 && as_status=1
19273: if test "$4"; then
19274: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19275: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19276: fi
19277: $as_echo "$as_me: error: $2" >&2
19278: as_fn_exit $as_status
19279: } # as_fn_error
19280:
19281:
19282: # as_fn_set_status STATUS
19283: # -----------------------
19284: # Set $? to STATUS, without forking.
19285: as_fn_set_status ()
19286: {
19287: return $1
19288: } # as_fn_set_status
19289:
19290: # as_fn_exit STATUS
19291: # -----------------
19292: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19293: as_fn_exit ()
19294: {
19295: set +e
19296: as_fn_set_status $1
19297: exit $1
19298: } # as_fn_exit
19299:
19300: # as_fn_unset VAR
19301: # ---------------
19302: # Portably unset VAR.
19303: as_fn_unset ()
19304: {
19305: { eval $1=; unset $1;}
19306: }
19307: as_unset=as_fn_unset
19308: # as_fn_append VAR VALUE
19309: # ----------------------
19310: # Append the text in VALUE to the end of the definition contained in VAR. Take
19311: # advantage of any shell optimizations that allow amortized linear growth over
19312: # repeated appends, instead of the typical quadratic growth present in naive
19313: # implementations.
19314: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19315: eval 'as_fn_append ()
19316: {
19317: eval $1+=\$2
19318: }'
19319: else
19320: as_fn_append ()
19321: {
19322: eval $1=\$$1\$2
19323: }
19324: fi # as_fn_append
19325:
19326: # as_fn_arith ARG...
19327: # ------------------
19328: # Perform arithmetic evaluation on the ARGs, and store the result in the
19329: # global $as_val. Take advantage of shells that can avoid forks. The arguments
19330: # must be portable across $(()) and expr.
19331: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19332: eval 'as_fn_arith ()
19333: {
19334: as_val=$(( $* ))
19335: }'
19336: else
19337: as_fn_arith ()
19338: {
19339: as_val=`expr "$@" || test $? -eq 1`
19340: }
19341: fi # as_fn_arith
19342:
1.1 paf 19343:
1.150 moko 19344: if expr a : '\(a\)' >/dev/null 2>&1 &&
19345: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 19346: as_expr=expr
19347: else
19348: as_expr=false
19349: fi
19350:
1.150 moko 19351: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 19352: as_basename=basename
19353: else
19354: as_basename=false
19355: fi
19356:
1.150 moko 19357: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19358: as_dirname=dirname
19359: else
19360: as_dirname=false
19361: fi
1.62 paf 19362:
1.150 moko 19363: as_me=`$as_basename -- "$0" ||
1.62 paf 19364: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19365: X"$0" : 'X\(//\)$' \| \
1.150 moko 19366: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19367: $as_echo X/"$0" |
19368: sed '/^.*\/\([^/][^/]*\)\/*$/{
19369: s//\1/
19370: q
19371: }
19372: /^X\/\(\/\/\)$/{
19373: s//\1/
19374: q
19375: }
19376: /^X\/\(\/\).*/{
19377: s//\1/
19378: q
19379: }
19380: s/.*/./; q'`
1.62 paf 19381:
19382: # Avoid depending upon Character Ranges.
19383: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19384: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19385: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19386: as_cr_digits='0123456789'
19387: as_cr_alnum=$as_cr_Letters$as_cr_digits
19388:
1.150 moko 19389: ECHO_C= ECHO_N= ECHO_T=
19390: case `echo -n x` in #(((((
19391: -n*)
19392: case `echo 'xy\c'` in
19393: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19394: xy) ECHO_C='\c';;
19395: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19396: ECHO_T=' ';;
19397: esac;;
19398: *)
19399: ECHO_N='-n';;
1.62 paf 19400: esac
19401:
1.150 moko 19402: rm -f conf$$ conf$$.exe conf$$.file
19403: if test -d conf$$.dir; then
19404: rm -f conf$$.dir/conf$$.file
1.62 paf 19405: else
1.150 moko 19406: rm -f conf$$.dir
19407: mkdir conf$$.dir 2>/dev/null
1.62 paf 19408: fi
1.150 moko 19409: if (echo >conf$$.file) 2>/dev/null; then
19410: if ln -s conf$$.file conf$$ 2>/dev/null; then
19411: as_ln_s='ln -s'
19412: # ... but there are two gotchas:
19413: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19414: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 19415: # In both cases, we have to default to `cp -pR'.
1.150 moko 19416: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 19417: as_ln_s='cp -pR'
1.150 moko 19418: elif ln conf$$.file conf$$ 2>/dev/null; then
19419: as_ln_s=ln
19420: else
1.166 moko 19421: as_ln_s='cp -pR'
1.62 paf 19422: fi
19423: else
1.166 moko 19424: as_ln_s='cp -pR'
1.62 paf 19425: fi
1.150 moko 19426: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19427: rmdir conf$$.dir 2>/dev/null
19428:
19429:
19430: # as_fn_mkdir_p
19431: # -------------
19432: # Create "$as_dir" as a directory, including parents if necessary.
19433: as_fn_mkdir_p ()
19434: {
19435:
19436: case $as_dir in #(
19437: -*) as_dir=./$as_dir;;
19438: esac
19439: test -d "$as_dir" || eval $as_mkdir_p || {
19440: as_dirs=
19441: while :; do
19442: case $as_dir in #(
19443: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19444: *) as_qdir=$as_dir;;
19445: esac
19446: as_dirs="'$as_qdir' $as_dirs"
19447: as_dir=`$as_dirname -- "$as_dir" ||
19448: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19449: X"$as_dir" : 'X\(//\)[^/]' \| \
19450: X"$as_dir" : 'X\(//\)$' \| \
19451: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19452: $as_echo X"$as_dir" |
19453: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19454: s//\1/
19455: q
19456: }
19457: /^X\(\/\/\)[^/].*/{
19458: s//\1/
19459: q
19460: }
19461: /^X\(\/\/\)$/{
19462: s//\1/
19463: q
19464: }
19465: /^X\(\/\).*/{
19466: s//\1/
19467: q
19468: }
19469: s/.*/./; q'`
19470: test -d "$as_dir" && break
19471: done
19472: test -z "$as_dirs" || eval "mkdir $as_dirs"
19473: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19474:
1.62 paf 19475:
1.150 moko 19476: } # as_fn_mkdir_p
1.62 paf 19477: if mkdir -p . 2>/dev/null; then
1.150 moko 19478: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 19479: else
1.86 paf 19480: test -d ./-p && rmdir ./-p
1.62 paf 19481: as_mkdir_p=false
19482: fi
19483:
1.166 moko 19484:
19485: # as_fn_executable_p FILE
19486: # -----------------------
19487: # Test if FILE is an executable regular file.
19488: as_fn_executable_p ()
19489: {
19490: test -f "$1" && test -x "$1"
19491: } # as_fn_executable_p
19492: as_test_x='test -x'
19493: as_executable_p=as_fn_executable_p
1.62 paf 19494:
19495: # Sed expression to map a string onto a valid CPP name.
1.86 paf 19496: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19497:
19498: # Sed expression to map a string onto a valid variable name.
1.86 paf 19499: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19500:
19501:
19502: exec 6>&1
1.150 moko 19503: ## ----------------------------------- ##
19504: ## Main body of $CONFIG_STATUS script. ##
19505: ## ----------------------------------- ##
19506: _ASEOF
19507: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 19508:
1.150 moko 19509: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19510: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 19511: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 19512: # values after options handling.
19513: ac_log="
1.186 moko 19514: This file was extended by parser $as_me 3.4.6b, which was
1.166 moko 19515: generated by GNU Autoconf 2.69. Invocation command line was
1.62 paf 19516:
19517: CONFIG_FILES = $CONFIG_FILES
19518: CONFIG_HEADERS = $CONFIG_HEADERS
19519: CONFIG_LINKS = $CONFIG_LINKS
19520: CONFIG_COMMANDS = $CONFIG_COMMANDS
19521: $ $0 $@
19522:
1.150 moko 19523: on `(hostname || uname -n) 2>/dev/null | sed 1q`
19524: "
19525:
1.62 paf 19526: _ACEOF
19527:
1.150 moko 19528: case $ac_config_files in *"
19529: "*) set x $ac_config_files; shift; ac_config_files=$*;;
19530: esac
1.62 paf 19531:
1.150 moko 19532: case $ac_config_headers in *"
19533: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19534: esac
1.62 paf 19535:
19536:
1.150 moko 19537: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19538: # Files that config.status was made for.
19539: config_files="$ac_config_files"
19540: config_headers="$ac_config_headers"
19541: config_commands="$ac_config_commands"
1.62 paf 19542:
1.150 moko 19543: _ACEOF
1.62 paf 19544:
1.150 moko 19545: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19546: ac_cs_usage="\
1.150 moko 19547: \`$as_me' instantiates files and other configuration actions
19548: from templates according to the current configuration. Unless the files
19549: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 19550:
1.150 moko 19551: Usage: $0 [OPTION]... [TAG]...
1.62 paf 19552:
19553: -h, --help print this help, then exit
1.150 moko 19554: -V, --version print version number and configuration settings, then exit
19555: --config print configuration, then exit
19556: -q, --quiet, --silent
19557: do not print progress messages
1.62 paf 19558: -d, --debug don't remove temporary files
19559: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 19560: --file=FILE[:TEMPLATE]
19561: instantiate the configuration file FILE
19562: --header=FILE[:TEMPLATE]
19563: instantiate the configuration header FILE
1.62 paf 19564:
19565: Configuration files:
19566: $config_files
19567:
19568: Configuration headers:
19569: $config_headers
19570:
19571: Configuration commands:
19572: $config_commands
19573:
1.150 moko 19574: Report bugs to the package provider."
19575:
1.62 paf 19576: _ACEOF
1.150 moko 19577: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19578: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.62 paf 19579: ac_cs_version="\\
1.186 moko 19580: parser config.status 3.4.6b
1.166 moko 19581: configured by $0, generated by GNU Autoconf 2.69,
1.150 moko 19582: with options \\"\$ac_cs_config\\"
1.62 paf 19583:
1.166 moko 19584: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 19585: This config.status script is free software; the Free Software Foundation
19586: gives unlimited permission to copy, distribute and modify it."
1.150 moko 19587:
19588: ac_pwd='$ac_pwd'
19589: srcdir='$srcdir'
19590: INSTALL='$INSTALL'
19591: MKDIR_P='$MKDIR_P'
19592: AWK='$AWK'
19593: test -n "\$AWK" || AWK=awk
1.62 paf 19594: _ACEOF
19595:
1.150 moko 19596: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19597: # The default lists apply if the user does not specify any file.
1.62 paf 19598: ac_need_defaults=:
19599: while test $# != 0
19600: do
19601: case $1 in
1.150 moko 19602: --*=?*)
19603: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19604: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 19605: ac_shift=:
19606: ;;
1.150 moko 19607: --*=)
19608: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19609: ac_optarg=
19610: ac_shift=:
19611: ;;
19612: *)
1.62 paf 19613: ac_option=$1
19614: ac_optarg=$2
19615: ac_shift=shift
19616: ;;
19617: esac
19618:
19619: case $ac_option in
19620: # Handling of the options.
19621: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19622: ac_cs_recheck=: ;;
1.150 moko 19623: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19624: $as_echo "$ac_cs_version"; exit ;;
19625: --config | --confi | --conf | --con | --co | --c )
19626: $as_echo "$ac_cs_config"; exit ;;
19627: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 19628: debug=: ;;
19629: --file | --fil | --fi | --f )
19630: $ac_shift
1.150 moko 19631: case $ac_optarg in
19632: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19633: '') as_fn_error $? "missing file argument" ;;
19634: esac
19635: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 19636: ac_need_defaults=false;;
19637: --header | --heade | --head | --hea )
19638: $ac_shift
1.150 moko 19639: case $ac_optarg in
19640: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19641: esac
19642: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 19643: ac_need_defaults=false;;
1.150 moko 19644: --he | --h)
19645: # Conflict between --help and --header
19646: as_fn_error $? "ambiguous option: \`$1'
19647: Try \`$0 --help' for more information.";;
19648: --help | --hel | -h )
19649: $as_echo "$ac_cs_usage"; exit ;;
1.62 paf 19650: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19651: | -silent | --silent | --silen | --sile | --sil | --si | --s)
19652: ac_cs_silent=: ;;
19653:
19654: # This is an error.
1.150 moko 19655: -*) as_fn_error $? "unrecognized option: \`$1'
19656: Try \`$0 --help' for more information." ;;
1.62 paf 19657:
1.150 moko 19658: *) as_fn_append ac_config_targets " $1"
19659: ac_need_defaults=false ;;
1.62 paf 19660:
19661: esac
19662: shift
19663: done
19664:
19665: ac_configure_extra_args=
19666:
19667: if $ac_cs_silent; then
19668: exec 6>/dev/null
1.150 moko 19669: ac_configure_extra_args="$ac_configure_extra_args --silent"
19670: fi
19671:
19672: _ACEOF
19673: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19674: if \$ac_cs_recheck; then
1.166 moko 19675: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 19676: shift
19677: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19678: CONFIG_SHELL='$SHELL'
19679: export CONFIG_SHELL
19680: exec "\$@"
19681: fi
19682:
19683: _ACEOF
19684: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19685: exec 5>>config.log
19686: {
19687: echo
19688: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19689: ## Running $as_me. ##
19690: _ASBOX
19691: $as_echo "$ac_log"
19692: } >&5
1.62 paf 19693:
19694: _ACEOF
1.150 moko 19695: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 19696: #
1.150 moko 19697: # INIT-COMMANDS
1.1 paf 19698: #
1.199 moko 19699: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1.62 paf 19700:
1.128 moko 19701:
19702: # The HP-UX ksh and POSIX shell print the target directory to stdout
19703: # if CDPATH is set.
19704: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19705:
19706: sed_quote_subst='$sed_quote_subst'
19707: double_quote_subst='$double_quote_subst'
19708: delay_variable_subst='$delay_variable_subst'
19709: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19710: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19711: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19712: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19713: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 19714: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 19715: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 19716: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 19717: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19718: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19719: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19720: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19721: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19722: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19723: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19724: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19725: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19726: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19727: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19728: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19729: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19730: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19731: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19732: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19733: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19734: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19735: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19736: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19737: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19738: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19739: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19740: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19741: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19742: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19743: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19744: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19745: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19746: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19747: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19748: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19749: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19750: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19751: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19752: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19753: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19754: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19755: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19756: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19757: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19758: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19759: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19760: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19761: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19762: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19763: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19764: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19765: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19766: 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"`'
19767: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19768: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19769: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19770: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19771: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19772: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19773: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19774: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19775: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19776: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19777: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19778: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19779: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19780: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19781: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19782: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19783: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19784: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19785: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19786: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19787: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19788: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19789: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19790: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19791: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19792: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19793: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19794: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19795: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19796: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19797: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19798: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19799: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19800: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19801: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19802: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19803: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19804: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19805: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19806: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19807: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19808: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19809: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19810: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19811: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19812: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19813: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19814: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19815: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19816: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19817: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19818: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19819: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19820: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19821: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19822: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19823: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19824: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19825: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19826: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19827: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19828: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19829: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19830: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19831: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19832: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19833: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19834: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19835: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19836: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19837: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19838: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19839: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19840: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19841: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19842: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19843: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19844: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19845: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19846: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19847: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19848: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19849: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19850: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19851: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19852: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19853: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19854: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19855: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19856: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19857: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19858: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19859: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19860: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19861: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19862: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19863: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19864: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19865: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19866: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19867: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19868: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19869: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19870: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19871: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19872: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19873: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19874: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19875: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19876: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19877: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19878: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19879: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19880: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19881: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19882: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19883: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19884: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19885: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19886: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19887: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19888: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19889: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19890: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19891: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19892: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19893: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19894:
19895: LTCC='$LTCC'
19896: LTCFLAGS='$LTCFLAGS'
19897: compiler='$compiler_DEFAULT'
19898:
19899: # A function that is used when there is no print builtin or printf.
19900: func_fallback_echo ()
19901: {
19902: eval 'cat <<_LTECHO_EOF
19903: \$1
19904: _LTECHO_EOF'
19905: }
19906:
19907: # Quote evaled strings.
19908: for var in AS \
19909: DLLTOOL \
19910: OBJDUMP \
19911: SHELL \
19912: ECHO \
19913: PATH_SEPARATOR \
19914: SED \
19915: GREP \
19916: EGREP \
19917: FGREP \
19918: LD \
19919: NM \
19920: LN_S \
19921: lt_SP2NL \
19922: lt_NL2SP \
19923: reload_flag \
19924: deplibs_check_method \
19925: file_magic_cmd \
19926: file_magic_glob \
19927: want_nocaseglob \
19928: sharedlib_from_linklib_cmd \
19929: AR \
19930: AR_FLAGS \
19931: archiver_list_spec \
19932: STRIP \
19933: RANLIB \
19934: CC \
19935: CFLAGS \
19936: compiler \
19937: lt_cv_sys_global_symbol_pipe \
19938: lt_cv_sys_global_symbol_to_cdecl \
19939: lt_cv_sys_global_symbol_to_c_name_address \
19940: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19941: nm_file_list_spec \
19942: lt_prog_compiler_no_builtin_flag \
19943: lt_prog_compiler_pic \
19944: lt_prog_compiler_wl \
19945: lt_prog_compiler_static \
19946: lt_cv_prog_compiler_c_o \
19947: need_locks \
19948: MANIFEST_TOOL \
19949: DSYMUTIL \
19950: NMEDIT \
19951: LIPO \
19952: OTOOL \
19953: OTOOL64 \
19954: shrext_cmds \
19955: export_dynamic_flag_spec \
19956: whole_archive_flag_spec \
19957: compiler_needs_object \
19958: with_gnu_ld \
19959: allow_undefined_flag \
19960: no_undefined_flag \
19961: hardcode_libdir_flag_spec \
19962: hardcode_libdir_separator \
19963: exclude_expsyms \
19964: include_expsyms \
19965: file_list_spec \
19966: variables_saved_for_relink \
19967: libname_spec \
19968: library_names_spec \
19969: soname_spec \
19970: install_override_mode \
19971: finish_eval \
19972: old_striplib \
19973: striplib \
19974: compiler_lib_search_dirs \
19975: predep_objects \
19976: postdep_objects \
19977: predeps \
19978: postdeps \
19979: compiler_lib_search_path \
19980: LD_CXX \
19981: reload_flag_CXX \
19982: compiler_CXX \
19983: lt_prog_compiler_no_builtin_flag_CXX \
19984: lt_prog_compiler_pic_CXX \
19985: lt_prog_compiler_wl_CXX \
19986: lt_prog_compiler_static_CXX \
19987: lt_cv_prog_compiler_c_o_CXX \
19988: export_dynamic_flag_spec_CXX \
19989: whole_archive_flag_spec_CXX \
19990: compiler_needs_object_CXX \
19991: with_gnu_ld_CXX \
19992: allow_undefined_flag_CXX \
19993: no_undefined_flag_CXX \
19994: hardcode_libdir_flag_spec_CXX \
19995: hardcode_libdir_separator_CXX \
19996: exclude_expsyms_CXX \
19997: include_expsyms_CXX \
19998: file_list_spec_CXX \
19999: compiler_lib_search_dirs_CXX \
20000: predep_objects_CXX \
20001: postdep_objects_CXX \
20002: predeps_CXX \
20003: postdeps_CXX \
20004: compiler_lib_search_path_CXX; do
20005: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20006: *[\\\\\\\`\\"\\\$]*)
20007: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20008: ;;
20009: *)
20010: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20011: ;;
20012: esac
20013: done
20014:
20015: # Double-quote double-evaled strings.
20016: for var in reload_cmds \
20017: old_postinstall_cmds \
20018: old_postuninstall_cmds \
20019: old_archive_cmds \
20020: extract_expsyms_cmds \
20021: old_archive_from_new_cmds \
20022: old_archive_from_expsyms_cmds \
20023: archive_cmds \
20024: archive_expsym_cmds \
20025: module_cmds \
20026: module_expsym_cmds \
20027: export_symbols_cmds \
20028: prelink_cmds \
20029: postlink_cmds \
20030: postinstall_cmds \
20031: postuninstall_cmds \
20032: finish_cmds \
20033: sys_lib_search_path_spec \
20034: sys_lib_dlsearch_path_spec \
20035: reload_cmds_CXX \
20036: old_archive_cmds_CXX \
20037: old_archive_from_new_cmds_CXX \
20038: old_archive_from_expsyms_cmds_CXX \
20039: archive_cmds_CXX \
20040: archive_expsym_cmds_CXX \
20041: module_cmds_CXX \
20042: module_expsym_cmds_CXX \
20043: export_symbols_cmds_CXX \
20044: prelink_cmds_CXX \
20045: postlink_cmds_CXX; do
20046: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20047: *[\\\\\\\`\\"\\\$]*)
20048: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20049: ;;
20050: *)
20051: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20052: ;;
20053: esac
20054: done
20055:
20056: ac_aux_dir='$ac_aux_dir'
20057: xsi_shell='$xsi_shell'
20058: lt_shell_append='$lt_shell_append'
20059:
20060: # See if we are running on zsh, and set the options which allow our
20061: # commands through without removal of \ escapes INIT.
20062: if test -n "\${ZSH_VERSION+set}" ; then
20063: setopt NO_GLOB_SUBST
20064: fi
20065:
20066:
20067: PACKAGE='$PACKAGE'
20068: VERSION='$VERSION'
20069: TIMESTAMP='$TIMESTAMP'
20070: RM='$RM'
20071: ofile='$ofile'
20072:
20073:
20074:
20075:
20076:
20077:
1.62 paf 20078: _ACEOF
20079:
1.150 moko 20080: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20081:
1.150 moko 20082: # Handling of arguments.
1.62 paf 20083: for ac_config_target in $ac_config_targets
1.1 paf 20084: do
1.150 moko 20085: case $ac_config_target in
20086: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20087: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20088: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
20089: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20090: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20091: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
20092: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
20093: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
20094: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
20095: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20096: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
20097: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
20098: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
20099: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
20100: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
20101: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
20102: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
20103: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
20104: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
20105: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
20106: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
20107: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
20108: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 20109: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
20110: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 20111: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
20112: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
20113: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
20114: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
20115: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
20116: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20117: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
1.200 moko 20118: "etc/auto.p") CONFIG_FILES="$CONFIG_FILES etc/auto.p" ;;
1.150 moko 20119:
20120: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 paf 20121: esac
20122: done
20123:
1.150 moko 20124:
1.62 paf 20125: # If the user did not use the arguments to specify the items to instantiate,
20126: # then the envvar interface is used. Set only those that are not.
20127: # We use the long form for the default assignment because of an extremely
20128: # bizarre bug on SunOS 4.1.3.
20129: if $ac_need_defaults; then
20130: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20131: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20132: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20133: fi
20134:
20135: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 20136: # simply because there is no reason against having it here, and in addition,
1.62 paf 20137: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 20138: # Hook for its removal unless debugging.
20139: # Note that there is a small window in which the directory will not be cleaned:
20140: # after its creation but before its name has been assigned to `$tmp'.
1.62 paf 20141: $debug ||
20142: {
1.150 moko 20143: tmp= ac_tmp=
20144: trap 'exit_status=$?
20145: : "${ac_tmp:=$tmp}"
20146: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20147: ' 0
20148: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 20149: }
20150: # Create a (secure) tmp directory for tmp files.
20151:
20152: {
1.150 moko 20153: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20154: test -d "$tmp"
1.62 paf 20155: } ||
20156: {
1.150 moko 20157: tmp=./conf$$-$RANDOM
20158: (umask 077 && mkdir "$tmp")
20159: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20160: ac_tmp=$tmp
20161:
20162: # Set up the scripts for CONFIG_FILES section.
20163: # No need to generate them if there are no CONFIG_FILES.
20164: # This happens for instance with `./config.status config.h'.
20165: if test -n "$CONFIG_FILES"; then
20166:
20167:
20168: ac_cr=`echo X | tr X '\015'`
20169: # On cygwin, bash can eat \r inside `` if the user requested igncr.
20170: # But we know of no other shell where ac_cr would be empty at this
20171: # point, so we can use a bashism as a fallback.
20172: if test "x$ac_cr" = x; then
20173: eval ac_cr=\$\'\\r\'
20174: fi
20175: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20176: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20177: ac_cs_awk_cr='\\r'
20178: else
20179: ac_cs_awk_cr=$ac_cr
20180: fi
20181:
20182: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20183: _ACEOF
20184:
20185:
1.62 paf 20186: {
1.150 moko 20187: echo "cat >conf$$subs.awk <<_ACEOF" &&
20188: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20189: echo "_ACEOF"
20190: } >conf$$subs.sh ||
20191: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20192: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20193: ac_delim='%!_!# '
20194: for ac_last_try in false false false false false :; do
20195: . ./conf$$subs.sh ||
20196: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20197:
20198: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20199: if test $ac_delim_n = $ac_delim_num; then
20200: break
20201: elif $ac_last_try; then
20202: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20203: else
20204: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20205: fi
20206: done
20207: rm -f conf$$subs.sh
20208:
20209: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20210: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20211: _ACEOF
20212: sed -n '
20213: h
20214: s/^/S["/; s/!.*/"]=/
20215: p
20216: g
20217: s/^[^!]*!//
20218: :repl
20219: t repl
20220: s/'"$ac_delim"'$//
20221: t delim
20222: :nl
20223: h
20224: s/\(.\{148\}\)..*/\1/
20225: t more1
20226: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20227: p
20228: n
20229: b repl
20230: :more1
20231: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20232: p
20233: g
20234: s/.\{148\}//
20235: t nl
20236: :delim
20237: h
20238: s/\(.\{148\}\)..*/\1/
20239: t more2
20240: s/["\\]/\\&/g; s/^/"/; s/$/"/
20241: p
20242: b
20243: :more2
20244: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20245: p
20246: g
20247: s/.\{148\}//
20248: t delim
20249: ' <conf$$subs.awk | sed '
20250: /^[^""]/{
20251: N
20252: s/\n//
20253: }
20254: ' >>$CONFIG_STATUS || ac_write_fail=1
20255: rm -f conf$$subs.awk
20256: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20257: _ACAWK
20258: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20259: for (key in S) S_is_set[key] = 1
20260: FS = ""
20261:
20262: }
20263: {
20264: line = $ 0
20265: nfields = split(line, field, "@")
20266: substed = 0
20267: len = length(field[1])
20268: for (i = 2; i < nfields; i++) {
20269: key = field[i]
20270: keylen = length(key)
20271: if (S_is_set[key]) {
20272: value = S[key]
20273: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20274: len += length(value) + length(field[++i])
20275: substed = 1
20276: } else
20277: len += 1 + keylen
20278: }
20279:
20280: print line
1.62 paf 20281: }
20282:
1.150 moko 20283: _ACAWK
20284: _ACEOF
20285: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20286: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20287: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20288: else
20289: cat
20290: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20291: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 20292: _ACEOF
1.1 paf 20293:
1.150 moko 20294: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20295: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20296: # trailing colons and then remove the whole line if VPATH becomes empty
20297: # (actually we leave an empty line to preserve line numbers).
20298: if test "x$srcdir" = x.; then
20299: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20300: h
20301: s///
20302: s/^/:/
20303: s/[ ]*$/:/
20304: s/:\$(srcdir):/:/g
20305: s/:\${srcdir}:/:/g
20306: s/:@srcdir@:/:/g
20307: s/^:*//
20308: s/:*$//
20309: x
20310: s/\(=[ ]*\).*/\1/
20311: G
20312: s/\n//
20313: s/^[^=]*=[ ]*$//
20314: }'
20315: fi
1.62 paf 20316:
1.150 moko 20317: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20318: fi # test -n "$CONFIG_FILES"
1.1 paf 20319:
1.150 moko 20320: # Set up the scripts for CONFIG_HEADERS section.
20321: # No need to generate them if there are no CONFIG_HEADERS.
20322: # This happens for instance with `./config.status Makefile'.
20323: if test -n "$CONFIG_HEADERS"; then
20324: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20325: BEGIN {
20326: _ACEOF
20327:
20328: # Transform confdefs.h into an awk script `defines.awk', embedded as
20329: # here-document in config.status, that substitutes the proper values into
20330: # config.h.in to produce config.h.
20331:
20332: # Create a delimiter string that does not exist in confdefs.h, to ease
20333: # handling of long lines.
20334: ac_delim='%!_!# '
20335: for ac_last_try in false false :; do
20336: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20337: if test -z "$ac_tt"; then
20338: break
20339: elif $ac_last_try; then
20340: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20341: else
20342: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 20343: fi
1.150 moko 20344: done
1.1 paf 20345:
1.150 moko 20346: # For the awk script, D is an array of macro values keyed by name,
20347: # likewise P contains macro parameters if any. Preserve backslash
20348: # newline sequences.
20349:
20350: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20351: sed -n '
20352: s/.\{148\}/&'"$ac_delim"'/g
20353: t rset
20354: :rset
20355: s/^[ ]*#[ ]*define[ ][ ]*/ /
20356: t def
20357: d
20358: :def
20359: s/\\$//
20360: t bsnl
20361: s/["\\]/\\&/g
20362: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20363: D["\1"]=" \3"/p
20364: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20365: d
20366: :bsnl
20367: s/["\\]/\\&/g
20368: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20369: D["\1"]=" \3\\\\\\n"\\/p
20370: t cont
20371: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20372: t cont
20373: d
20374: :cont
20375: n
20376: s/.\{148\}/&'"$ac_delim"'/g
20377: t clear
20378: :clear
20379: s/\\$//
20380: t bsnlc
20381: s/["\\]/\\&/g; s/^/"/; s/$/"/p
20382: d
20383: :bsnlc
20384: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20385: b cont
20386: ' <confdefs.h | sed '
20387: s/'"$ac_delim"'/"\\\
20388: "/g' >>$CONFIG_STATUS || ac_write_fail=1
20389:
20390: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20391: for (key in D) D_is_set[key] = 1
20392: FS = ""
20393: }
20394: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20395: line = \$ 0
20396: split(line, arg, " ")
20397: if (arg[1] == "#") {
20398: defundef = arg[2]
20399: mac1 = arg[3]
20400: } else {
20401: defundef = substr(arg[1], 2)
20402: mac1 = arg[2]
20403: }
20404: split(mac1, mac2, "(") #)
20405: macro = mac2[1]
20406: prefix = substr(line, 1, index(line, defundef) - 1)
20407: if (D_is_set[macro]) {
20408: # Preserve the white space surrounding the "#".
20409: print prefix "define", macro P[macro] D[macro]
20410: next
20411: } else {
20412: # Replace #undef with comments. This is necessary, for example,
20413: # in the case of _POSIX_SOURCE, which is predefined and required
20414: # on some systems where configure will not decide to define it.
20415: if (defundef == "undef") {
20416: print "/*", prefix defundef, macro, "*/"
20417: next
20418: }
20419: }
20420: }
20421: { print }
20422: _ACAWK
1.62 paf 20423: _ACEOF
1.150 moko 20424: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20425: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20426: fi # test -n "$CONFIG_HEADERS"
20427:
20428:
20429: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20430: shift
20431: for ac_tag
20432: do
20433: case $ac_tag in
20434: :[FHLC]) ac_mode=$ac_tag; continue;;
20435: esac
20436: case $ac_mode$ac_tag in
20437: :[FHL]*:*);;
20438: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20439: :[FH]-) ac_tag=-:-;;
20440: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20441: esac
20442: ac_save_IFS=$IFS
20443: IFS=:
20444: set x $ac_tag
20445: IFS=$ac_save_IFS
20446: shift
20447: ac_file=$1
20448: shift
20449:
20450: case $ac_mode in
20451: :L) ac_source=$1;;
20452: :[FH])
20453: ac_file_inputs=
20454: for ac_f
20455: do
20456: case $ac_f in
20457: -) ac_f="$ac_tmp/stdin";;
20458: *) # Look for the file first in the build tree, then in the source tree
20459: # (if the path is not absolute). The absolute path cannot be DOS-style,
20460: # because $ac_f cannot contain `:'.
20461: test -f "$ac_f" ||
20462: case $ac_f in
20463: [\\/$]*) false;;
20464: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20465: esac ||
20466: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20467: esac
20468: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20469: as_fn_append ac_file_inputs " '$ac_f'"
20470: done
20471:
20472: # Let's still pretend it is `configure' which instantiates (i.e., don't
20473: # use $as_me), people would be surprised to read:
20474: # /* config.h. Generated by config.status. */
20475: configure_input='Generated from '`
20476: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20477: `' by configure.'
20478: if test x"$ac_file" != x-; then
20479: configure_input="$ac_file. $configure_input"
20480: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20481: $as_echo "$as_me: creating $ac_file" >&6;}
20482: fi
20483: # Neutralize special characters interpreted by sed in replacement strings.
20484: case $configure_input in #(
20485: *\&* | *\|* | *\\* )
20486: ac_sed_conf_input=`$as_echo "$configure_input" |
20487: sed 's/[\\\\&|]/\\\\&/g'`;; #(
20488: *) ac_sed_conf_input=$configure_input;;
20489: esac
20490:
20491: case $ac_tag in
20492: *:-:* | *:-) cat >"$ac_tmp/stdin" \
20493: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20494: esac
20495: ;;
1.1 paf 20496: esac
20497:
1.150 moko 20498: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 20499: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20500: X"$ac_file" : 'X\(//\)[^/]' \| \
20501: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 20502: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20503: $as_echo X"$ac_file" |
20504: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20505: s//\1/
20506: q
20507: }
20508: /^X\(\/\/\)[^/].*/{
20509: s//\1/
20510: q
20511: }
20512: /^X\(\/\/\)$/{
20513: s//\1/
20514: q
20515: }
20516: /^X\(\/\).*/{
20517: s//\1/
20518: q
20519: }
20520: s/.*/./; q'`
20521: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 20522: ac_builddir=.
20523:
1.150 moko 20524: case "$ac_dir" in
20525: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20526: *)
20527: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20528: # A ".." for each directory in $ac_dir_suffix.
20529: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20530: case $ac_top_builddir_sub in
20531: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20532: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20533: esac ;;
20534: esac
20535: ac_abs_top_builddir=$ac_pwd
20536: ac_abs_builddir=$ac_pwd$ac_dir_suffix
20537: # for backward compatibility:
20538: ac_top_builddir=$ac_top_build_prefix
1.62 paf 20539:
20540: case $srcdir in
1.150 moko 20541: .) # We are building in place.
1.62 paf 20542: ac_srcdir=.
1.150 moko 20543: ac_top_srcdir=$ac_top_builddir_sub
20544: ac_abs_top_srcdir=$ac_pwd ;;
20545: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 20546: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 20547: ac_top_srcdir=$srcdir
20548: ac_abs_top_srcdir=$srcdir ;;
20549: *) # Relative name.
20550: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20551: ac_top_srcdir=$ac_top_build_prefix$srcdir
20552: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 20553: esac
1.150 moko 20554: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 20555:
1.62 paf 20556:
1.150 moko 20557: case $ac_mode in
20558: :F)
20559: #
20560: # CONFIG_FILE
20561: #
1.1 paf 20562:
1.62 paf 20563: case $INSTALL in
20564: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 20565: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 20566: esac
1.150 moko 20567: ac_MKDIR_P=$MKDIR_P
20568: case $MKDIR_P in
20569: [\\/$]* | ?:[\\/]* ) ;;
20570: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20571: esac
20572: _ACEOF
1.1 paf 20573:
1.150 moko 20574: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20575: # If the template does not know about datarootdir, expand it.
20576: # FIXME: This hack should be removed a few years after 2.60.
20577: ac_datarootdir_hack=; ac_datarootdir_seen=
20578: ac_sed_dataroot='
20579: /datarootdir/ {
20580: p
20581: q
20582: }
20583: /@datadir@/p
20584: /@docdir@/p
20585: /@infodir@/p
20586: /@localedir@/p
20587: /@mandir@/p'
20588: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20589: *datarootdir*) ac_datarootdir_seen=yes;;
20590: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20591: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20592: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20593: _ACEOF
20594: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20595: ac_datarootdir_hack='
20596: s&@datadir@&$datadir&g
20597: s&@docdir@&$docdir&g
20598: s&@infodir@&$infodir&g
20599: s&@localedir@&$localedir&g
20600: s&@mandir@&$mandir&g
20601: s&\\\${datarootdir}&$datarootdir&g' ;;
20602: esac
20603: _ACEOF
1.62 paf 20604:
1.150 moko 20605: # Neutralize VPATH when `$srcdir' = `.'.
20606: # Shell code in configure.ac might set extrasub.
20607: # FIXME: do we really want to maintain this feature?
20608: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20609: ac_sed_extra="$ac_vpsub
1.62 paf 20610: $extrasub
20611: _ACEOF
1.150 moko 20612: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20613: :t
20614: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 20615: s|@configure_input@|$ac_sed_conf_input|;t t
20616: s&@top_builddir@&$ac_top_builddir_sub&;t t
20617: s&@top_build_prefix@&$ac_top_build_prefix&;t t
20618: s&@srcdir@&$ac_srcdir&;t t
20619: s&@abs_srcdir@&$ac_abs_srcdir&;t t
20620: s&@top_srcdir@&$ac_top_srcdir&;t t
20621: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20622: s&@builddir@&$ac_builddir&;t t
20623: s&@abs_builddir@&$ac_abs_builddir&;t t
20624: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20625: s&@INSTALL@&$ac_INSTALL&;t t
20626: s&@MKDIR_P@&$ac_MKDIR_P&;t t
20627: $ac_datarootdir_hack
20628: "
20629: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20630: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20631:
20632: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20633: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20634: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20635: "$ac_tmp/out"`; test -z "$ac_out"; } &&
20636: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20637: which seems to be undefined. Please make sure it is defined" >&5
20638: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20639: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 20640:
1.150 moko 20641: rm -f "$ac_tmp/stdin"
1.62 paf 20642: case $ac_file in
1.150 moko 20643: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20644: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20645: esac \
20646: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20647: ;;
20648: :H)
20649: #
20650: # CONFIG_HEADER
20651: #
1.62 paf 20652: if test x"$ac_file" != x-; then
1.150 moko 20653: {
20654: $as_echo "/* $configure_input */" \
20655: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20656: } >"$ac_tmp/config.h" \
20657: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20658: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20659: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20660: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 20661: else
1.150 moko 20662: rm -f "$ac_file"
20663: mv "$ac_tmp/config.h" "$ac_file" \
20664: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 20665: fi
20666: else
1.150 moko 20667: $as_echo "/* $configure_input */" \
20668: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20669: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 20670: fi
1.150 moko 20671: # Compute "$ac_file"'s index in $config_headers.
20672: _am_arg="$ac_file"
1.86 paf 20673: _am_stamp_count=1
20674: for _am_header in $config_headers :; do
20675: case $_am_header in
1.150 moko 20676: $_am_arg | $_am_arg:* )
1.86 paf 20677: break ;;
20678: * )
20679: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20680: esac
20681: done
1.150 moko 20682: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20683: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20684: X"$_am_arg" : 'X\(//\)[^/]' \| \
20685: X"$_am_arg" : 'X\(//\)$' \| \
20686: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20687: $as_echo X"$_am_arg" |
20688: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20689: s//\1/
20690: q
20691: }
20692: /^X\(\/\/\)[^/].*/{
20693: s//\1/
20694: q
20695: }
20696: /^X\(\/\/\)$/{
20697: s//\1/
20698: q
20699: }
20700: /^X\(\/\).*/{
20701: s//\1/
20702: q
20703: }
20704: s/.*/./; q'`/stamp-h$_am_stamp_count
20705: ;;
1.62 paf 20706:
1.150 moko 20707: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20708: $as_echo "$as_me: executing $ac_file commands" >&6;}
20709: ;;
20710: esac
1.86 paf 20711:
1.62 paf 20712:
1.150 moko 20713: case $ac_file$ac_mode in
20714: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.187 moko 20715: # Older Autoconf quotes --file arguments for eval, but not when files
1.150 moko 20716: # are listed without --file. Let's play safe and only enable the eval
20717: # if we detect the quoting.
1.199 moko 20718: # TODO: see whether this extra hack can be removed once we start
20719: # requiring Autoconf 2.70 or later.
20720: case $CONFIG_FILES in #(
20721: *\'*) :
20722: eval set x "$CONFIG_FILES" ;; #(
20723: *) :
20724: set x $CONFIG_FILES ;; #(
20725: *) :
20726: ;;
20727: esac
1.150 moko 20728: shift
1.199 moko 20729: # Used to flag and report bootstrapping failures.
20730: am_rc=0
20731: for am_mf
1.150 moko 20732: do
20733: # Strip MF so we end up with the name of the file.
1.199 moko 20734: am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20735: # Check whether this is an Automake generated Makefile which includes
20736: # dependency-tracking related rules and includes.
20737: # Grep'ing the whole file directly is not great: AIX grep has a line
1.150 moko 20738: # limit of 2048, but all sed's we know have understand at least 4000.
1.199 moko 20739: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20740: || continue
20741: am_dirpart=`$as_dirname -- "$am_mf" ||
20742: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20743: X"$am_mf" : 'X\(//\)[^/]' \| \
20744: X"$am_mf" : 'X\(//\)$' \| \
20745: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20746: $as_echo X"$am_mf" |
1.150 moko 20747: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20748: s//\1/
20749: q
20750: }
20751: /^X\(\/\/\)[^/].*/{
20752: s//\1/
20753: q
20754: }
20755: /^X\(\/\/\)$/{
20756: s//\1/
20757: q
20758: }
20759: /^X\(\/\).*/{
20760: s//\1/
20761: q
20762: }
20763: s/.*/./; q'`
1.199 moko 20764: am_filepart=`$as_basename -- "$am_mf" ||
20765: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20766: X"$am_mf" : 'X\(//\)$' \| \
20767: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20768: $as_echo X/"$am_mf" |
20769: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.150 moko 20770: s//\1/
20771: q
20772: }
1.199 moko 20773: /^X\/\(\/\/\)$/{
1.150 moko 20774: s//\1/
20775: q
20776: }
1.199 moko 20777: /^X\/\(\/\).*/{
1.150 moko 20778: s//\1/
20779: q
20780: }
20781: s/.*/./; q'`
1.199 moko 20782: { echo "$as_me:$LINENO: cd "$am_dirpart" \
20783: && sed -e '/# am--include-marker/d' "$am_filepart" \
20784: | $MAKE -f - am--depfiles" >&5
20785: (cd "$am_dirpart" \
20786: && sed -e '/# am--include-marker/d' "$am_filepart" \
20787: | $MAKE -f - am--depfiles) >&5 2>&5
20788: ac_status=$?
20789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790: (exit $ac_status); } || am_rc=$?
1.62 paf 20791: done
1.199 moko 20792: if test $am_rc -ne 0; then
20793: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20794: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20795: as_fn_error $? "Something went wrong bootstrapping makefile fragments
20796: for automatic dependency tracking. Try re-running configure with the
20797: '--disable-dependency-tracking' option to at least be able to build
20798: the package (albeit without support for automatic dependency tracking).
20799: See \`config.log' for more details" "$LINENO" 5; }
20800: fi
20801: { am_dirpart=; unset am_dirpart;}
20802: { am_filepart=; unset am_filepart;}
20803: { am_mf=; unset am_mf;}
20804: { am_rc=; unset am_rc;}
20805: rm -f conftest-deps.mk
1.150 moko 20806: }
1.62 paf 20807: ;;
1.150 moko 20808: "libtool":C)
1.128 moko 20809:
20810: # See if we are running on zsh, and set the options which allow our
20811: # commands through without removal of \ escapes.
20812: if test -n "${ZSH_VERSION+set}" ; then
20813: setopt NO_GLOB_SUBST
20814: fi
20815:
20816: cfgfile="${ofile}T"
20817: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20818: $RM "$cfgfile"
20819:
20820: cat <<_LT_EOF >> "$cfgfile"
20821: #! $SHELL
20822:
20823: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20824: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20825: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20826: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20827: #
20828: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20829: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20830: # Foundation, Inc.
20831: # Written by Gordon Matzigkeit, 1996
20832: #
20833: # This file is part of GNU Libtool.
20834: #
20835: # GNU Libtool is free software; you can redistribute it and/or
20836: # modify it under the terms of the GNU General Public License as
20837: # published by the Free Software Foundation; either version 2 of
20838: # the License, or (at your option) any later version.
20839: #
20840: # As a special exception to the GNU General Public License,
20841: # if you distribute this file as part of a program or library that
20842: # is built using GNU Libtool, you may include this file under the
20843: # same distribution terms that you use for the rest of that program.
20844: #
20845: # GNU Libtool is distributed in the hope that it will be useful,
20846: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20847: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20848: # GNU General Public License for more details.
20849: #
20850: # You should have received a copy of the GNU General Public License
20851: # along with GNU Libtool; see the file COPYING. If not, a copy
20852: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20853: # obtained by writing to the Free Software Foundation, Inc.,
20854: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20855:
20856:
20857: # The names of the tagged configurations supported by this script.
20858: available_tags="CXX "
20859:
20860: # ### BEGIN LIBTOOL CONFIG
20861:
20862: # Which release of libtool.m4 was used?
20863: macro_version=$macro_version
20864: macro_revision=$macro_revision
20865:
20866: # Assembler program.
20867: AS=$lt_AS
20868:
20869: # DLL creation program.
20870: DLLTOOL=$lt_DLLTOOL
20871:
20872: # Object dumper program.
20873: OBJDUMP=$lt_OBJDUMP
20874:
1.145 moko 20875: # What type of objects to build.
20876: pic_mode=$pic_mode
20877:
1.128 moko 20878: # Whether or not to build shared libraries.
20879: build_libtool_libs=$enable_shared
20880:
1.138 moko 20881: # Whether or not to build static libraries.
20882: build_old_libs=$enable_static
20883:
1.128 moko 20884: # Whether or not to optimize for fast installation.
20885: fast_install=$enable_fast_install
20886:
20887: # Shell to use when invoking shell scripts.
20888: SHELL=$lt_SHELL
20889:
20890: # An echo program that protects backslashes.
20891: ECHO=$lt_ECHO
20892:
20893: # The PATH separator for the build system.
20894: PATH_SEPARATOR=$lt_PATH_SEPARATOR
20895:
20896: # The host system.
20897: host_alias=$host_alias
20898: host=$host
20899: host_os=$host_os
20900:
20901: # The build system.
20902: build_alias=$build_alias
20903: build=$build
20904: build_os=$build_os
20905:
20906: # A sed program that does not truncate output.
20907: SED=$lt_SED
20908:
20909: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20910: Xsed="\$SED -e 1s/^X//"
20911:
20912: # A grep program that handles long lines.
20913: GREP=$lt_GREP
20914:
20915: # An ERE matcher.
20916: EGREP=$lt_EGREP
20917:
20918: # A literal string matcher.
20919: FGREP=$lt_FGREP
20920:
20921: # A BSD- or MS-compatible name lister.
20922: NM=$lt_NM
20923:
20924: # Whether we need soft or hard links.
20925: LN_S=$lt_LN_S
20926:
20927: # What is the maximum length of a command?
20928: max_cmd_len=$max_cmd_len
20929:
20930: # Object file suffix (normally "o").
20931: objext=$ac_objext
20932:
20933: # Executable file suffix (normally "").
20934: exeext=$exeext
20935:
20936: # whether the shell understands "unset".
20937: lt_unset=$lt_unset
20938:
20939: # turn spaces into newlines.
20940: SP2NL=$lt_lt_SP2NL
20941:
20942: # turn newlines into spaces.
20943: NL2SP=$lt_lt_NL2SP
20944:
20945: # convert \$build file names to \$host format.
20946: to_host_file_cmd=$lt_cv_to_host_file_cmd
20947:
20948: # convert \$build files to toolchain format.
20949: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20950:
20951: # Method to check whether dependent libraries are shared objects.
20952: deplibs_check_method=$lt_deplibs_check_method
20953:
20954: # Command to use when deplibs_check_method = "file_magic".
20955: file_magic_cmd=$lt_file_magic_cmd
20956:
20957: # How to find potential files when deplibs_check_method = "file_magic".
20958: file_magic_glob=$lt_file_magic_glob
20959:
20960: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20961: want_nocaseglob=$lt_want_nocaseglob
20962:
20963: # Command to associate shared and link libraries.
20964: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20965:
20966: # The archiver.
20967: AR=$lt_AR
20968:
20969: # Flags to create an archive.
20970: AR_FLAGS=$lt_AR_FLAGS
20971:
20972: # How to feed a file listing to the archiver.
20973: archiver_list_spec=$lt_archiver_list_spec
20974:
20975: # A symbol stripping program.
20976: STRIP=$lt_STRIP
20977:
20978: # Commands used to install an old-style archive.
20979: RANLIB=$lt_RANLIB
20980: old_postinstall_cmds=$lt_old_postinstall_cmds
20981: old_postuninstall_cmds=$lt_old_postuninstall_cmds
20982:
20983: # Whether to use a lock for old archive extraction.
20984: lock_old_archive_extraction=$lock_old_archive_extraction
20985:
20986: # A C compiler.
20987: LTCC=$lt_CC
20988:
20989: # LTCC compiler flags.
20990: LTCFLAGS=$lt_CFLAGS
20991:
20992: # Take the output of nm and produce a listing of raw symbols and C names.
20993: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20994:
20995: # Transform the output of nm in a proper C declaration.
20996: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20997:
20998: # Transform the output of nm in a C name address pair.
20999: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21000:
21001: # Transform the output of nm in a C name address pair when lib prefix is needed.
21002: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21003:
21004: # Specify filename containing input files for \$NM.
21005: nm_file_list_spec=$lt_nm_file_list_spec
21006:
21007: # The root where to search for dependent libraries,and in which our libraries should be installed.
21008: lt_sysroot=$lt_sysroot
21009:
21010: # The name of the directory that contains temporary libtool files.
21011: objdir=$objdir
21012:
21013: # Used to examine libraries when file_magic_cmd begins with "file".
21014: MAGIC_CMD=$MAGIC_CMD
21015:
21016: # Must we lock files when doing compilation?
21017: need_locks=$lt_need_locks
21018:
21019: # Manifest tool.
21020: MANIFEST_TOOL=$lt_MANIFEST_TOOL
21021:
21022: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21023: DSYMUTIL=$lt_DSYMUTIL
21024:
21025: # Tool to change global to local symbols on Mac OS X.
21026: NMEDIT=$lt_NMEDIT
21027:
21028: # Tool to manipulate fat objects and archives on Mac OS X.
21029: LIPO=$lt_LIPO
21030:
21031: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21032: OTOOL=$lt_OTOOL
21033:
21034: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21035: OTOOL64=$lt_OTOOL64
21036:
21037: # Old archive suffix (normally "a").
21038: libext=$libext
21039:
21040: # Shared library suffix (normally ".so").
21041: shrext_cmds=$lt_shrext_cmds
21042:
21043: # The commands to extract the exported symbol list from a shared archive.
21044: extract_expsyms_cmds=$lt_extract_expsyms_cmds
21045:
21046: # Variables whose values should be saved in libtool wrapper scripts and
21047: # restored at link time.
21048: variables_saved_for_relink=$lt_variables_saved_for_relink
21049:
21050: # Do we need the "lib" prefix for modules?
21051: need_lib_prefix=$need_lib_prefix
21052:
21053: # Do we need a version for libraries?
21054: need_version=$need_version
21055:
21056: # Library versioning type.
21057: version_type=$version_type
21058:
21059: # Shared library runtime path variable.
21060: runpath_var=$runpath_var
21061:
21062: # Shared library path variable.
21063: shlibpath_var=$shlibpath_var
21064:
21065: # Is shlibpath searched before the hard-coded library search path?
21066: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21067:
21068: # Format of library name prefix.
21069: libname_spec=$lt_libname_spec
21070:
21071: # List of archive names. First name is the real one, the rest are links.
21072: # The last name is the one that the linker finds with -lNAME
21073: library_names_spec=$lt_library_names_spec
21074:
21075: # The coded name of the library, if different from the real name.
21076: soname_spec=$lt_soname_spec
21077:
21078: # Permission mode override for installation of shared libraries.
21079: install_override_mode=$lt_install_override_mode
21080:
21081: # Command to use after installation of a shared archive.
21082: postinstall_cmds=$lt_postinstall_cmds
21083:
21084: # Command to use after uninstallation of a shared archive.
21085: postuninstall_cmds=$lt_postuninstall_cmds
21086:
21087: # Commands used to finish a libtool library installation in a directory.
21088: finish_cmds=$lt_finish_cmds
21089:
21090: # As "finish_cmds", except a single script fragment to be evaled but
21091: # not shown.
21092: finish_eval=$lt_finish_eval
21093:
21094: # Whether we should hardcode library paths into libraries.
21095: hardcode_into_libs=$hardcode_into_libs
21096:
21097: # Compile-time system search path for libraries.
21098: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21099:
21100: # Run-time system search path for libraries.
21101: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21102:
21103: # Whether dlopen is supported.
21104: dlopen_support=$enable_dlopen
21105:
21106: # Whether dlopen of programs is supported.
21107: dlopen_self=$enable_dlopen_self
21108:
21109: # Whether dlopen of statically linked programs is supported.
21110: dlopen_self_static=$enable_dlopen_self_static
21111:
21112: # Commands to strip libraries.
21113: old_striplib=$lt_old_striplib
21114: striplib=$lt_striplib
21115:
21116:
21117: # The linker used to build libraries.
21118: LD=$lt_LD
21119:
21120: # How to create reloadable object files.
21121: reload_flag=$lt_reload_flag
21122: reload_cmds=$lt_reload_cmds
21123:
21124: # Commands used to build an old-style archive.
21125: old_archive_cmds=$lt_old_archive_cmds
21126:
21127: # A language specific compiler.
21128: CC=$lt_compiler
21129:
21130: # Is the compiler the GNU compiler?
21131: with_gcc=$GCC
21132:
21133: # Compiler flag to turn off builtin functions.
21134: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21135:
21136: # Additional compiler flags for building library objects.
21137: pic_flag=$lt_lt_prog_compiler_pic
21138:
21139: # How to pass a linker flag through the compiler.
21140: wl=$lt_lt_prog_compiler_wl
21141:
21142: # Compiler flag to prevent dynamic linking.
21143: link_static_flag=$lt_lt_prog_compiler_static
21144:
21145: # Does compiler simultaneously support -c and -o options?
21146: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21147:
21148: # Whether or not to add -lc for building shared libraries.
21149: build_libtool_need_lc=$archive_cmds_need_lc
21150:
21151: # Whether or not to disallow shared libs when runtime libs are static.
21152: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21153:
21154: # Compiler flag to allow reflexive dlopens.
21155: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21156:
21157: # Compiler flag to generate shared objects directly from archives.
21158: whole_archive_flag_spec=$lt_whole_archive_flag_spec
21159:
21160: # Whether the compiler copes with passing no objects directly.
21161: compiler_needs_object=$lt_compiler_needs_object
21162:
21163: # Create an old-style archive from a shared archive.
21164: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21165:
21166: # Create a temporary old-style archive to link instead of a shared archive.
21167: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21168:
21169: # Commands used to build a shared archive.
21170: archive_cmds=$lt_archive_cmds
21171: archive_expsym_cmds=$lt_archive_expsym_cmds
21172:
21173: # Commands used to build a loadable module if different from building
21174: # a shared archive.
21175: module_cmds=$lt_module_cmds
21176: module_expsym_cmds=$lt_module_expsym_cmds
21177:
21178: # Whether we are building with GNU ld or not.
21179: with_gnu_ld=$lt_with_gnu_ld
21180:
21181: # Flag that allows shared libraries with undefined symbols to be built.
21182: allow_undefined_flag=$lt_allow_undefined_flag
21183:
21184: # Flag that enforces no undefined symbols.
21185: no_undefined_flag=$lt_no_undefined_flag
21186:
21187: # Flag to hardcode \$libdir into a binary during linking.
21188: # This must work even if \$libdir does not exist
21189: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21190:
21191: # Whether we need a single "-rpath" flag with a separated argument.
21192: hardcode_libdir_separator=$lt_hardcode_libdir_separator
21193:
21194: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21195: # DIR into the resulting binary.
21196: hardcode_direct=$hardcode_direct
21197:
21198: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21199: # DIR into the resulting binary and the resulting library dependency is
21200: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21201: # library is relocated.
21202: hardcode_direct_absolute=$hardcode_direct_absolute
21203:
21204: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21205: # into the resulting binary.
21206: hardcode_minus_L=$hardcode_minus_L
21207:
21208: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21209: # into the resulting binary.
21210: hardcode_shlibpath_var=$hardcode_shlibpath_var
21211:
21212: # Set to "yes" if building a shared library automatically hardcodes DIR
21213: # into the library and all subsequent libraries and executables linked
21214: # against it.
21215: hardcode_automatic=$hardcode_automatic
21216:
21217: # Set to yes if linker adds runtime paths of dependent libraries
21218: # to runtime path list.
21219: inherit_rpath=$inherit_rpath
21220:
21221: # Whether libtool must link a program against all its dependency libraries.
21222: link_all_deplibs=$link_all_deplibs
21223:
21224: # Set to "yes" if exported symbols are required.
21225: always_export_symbols=$always_export_symbols
21226:
21227: # The commands to list exported symbols.
21228: export_symbols_cmds=$lt_export_symbols_cmds
21229:
21230: # Symbols that should not be listed in the preloaded symbols.
21231: exclude_expsyms=$lt_exclude_expsyms
21232:
21233: # Symbols that must always be exported.
21234: include_expsyms=$lt_include_expsyms
21235:
21236: # Commands necessary for linking programs (against libraries) with templates.
21237: prelink_cmds=$lt_prelink_cmds
21238:
21239: # Commands necessary for finishing linking programs.
21240: postlink_cmds=$lt_postlink_cmds
21241:
21242: # Specify filename containing input files.
21243: file_list_spec=$lt_file_list_spec
21244:
21245: # How to hardcode a shared library path into an executable.
21246: hardcode_action=$hardcode_action
21247:
21248: # The directories searched by this compiler when creating a shared library.
21249: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21250:
21251: # Dependencies to place before and after the objects being linked to
21252: # create a shared library.
21253: predep_objects=$lt_predep_objects
21254: postdep_objects=$lt_postdep_objects
21255: predeps=$lt_predeps
21256: postdeps=$lt_postdeps
21257:
21258: # The library search path used internally by the compiler when linking
21259: # a shared library.
21260: compiler_lib_search_path=$lt_compiler_lib_search_path
21261:
21262: # ### END LIBTOOL CONFIG
21263:
21264: _LT_EOF
21265:
21266: case $host_os in
21267: aix3*)
21268: cat <<\_LT_EOF >> "$cfgfile"
21269: # AIX sometimes has problems with the GCC collect2 program. For some
21270: # reason, if we set the COLLECT_NAMES environment variable, the problems
21271: # vanish in a puff of smoke.
21272: if test "X${COLLECT_NAMES+set}" != Xset; then
21273: COLLECT_NAMES=
21274: export COLLECT_NAMES
21275: fi
21276: _LT_EOF
21277: ;;
21278: esac
21279:
21280:
21281: ltmain="$ac_aux_dir/ltmain.sh"
21282:
21283:
21284: # We use sed instead of cat because bash on DJGPP gets confused if
21285: # if finds mixed CR/LF and LF-only lines. Since sed operates in
21286: # text mode, it properly converts lines to CR/LF. This bash problem
21287: # is reportedly fixed, but why not run on old versions too?
21288: sed '$q' "$ltmain" >> "$cfgfile" \
21289: || (rm -f "$cfgfile"; exit 1)
21290:
21291: if test x"$xsi_shell" = xyes; then
21292: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21293: func_dirname ()\
21294: {\
21295: \ case ${1} in\
21296: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21297: \ * ) func_dirname_result="${3}" ;;\
21298: \ esac\
21299: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21300: && mv -f "$cfgfile.tmp" "$cfgfile" \
21301: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21302: test 0 -eq $? || _lt_function_replace_fail=:
21303:
21304:
21305: sed -e '/^func_basename ()$/,/^} # func_basename /c\
21306: func_basename ()\
21307: {\
21308: \ func_basename_result="${1##*/}"\
21309: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21310: && mv -f "$cfgfile.tmp" "$cfgfile" \
21311: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21312: test 0 -eq $? || _lt_function_replace_fail=:
21313:
21314:
21315: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21316: func_dirname_and_basename ()\
21317: {\
21318: \ case ${1} in\
21319: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21320: \ * ) func_dirname_result="${3}" ;;\
21321: \ esac\
21322: \ func_basename_result="${1##*/}"\
21323: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21324: && mv -f "$cfgfile.tmp" "$cfgfile" \
21325: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21326: test 0 -eq $? || _lt_function_replace_fail=:
21327:
21328:
21329: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21330: func_stripname ()\
21331: {\
21332: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21333: \ # positional parameters, so assign one to ordinary parameter first.\
21334: \ func_stripname_result=${3}\
21335: \ func_stripname_result=${func_stripname_result#"${1}"}\
21336: \ func_stripname_result=${func_stripname_result%"${2}"}\
21337: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21338: && mv -f "$cfgfile.tmp" "$cfgfile" \
21339: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21340: test 0 -eq $? || _lt_function_replace_fail=:
21341:
21342:
21343: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21344: func_split_long_opt ()\
21345: {\
21346: \ func_split_long_opt_name=${1%%=*}\
21347: \ func_split_long_opt_arg=${1#*=}\
21348: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21349: && mv -f "$cfgfile.tmp" "$cfgfile" \
21350: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21351: test 0 -eq $? || _lt_function_replace_fail=:
21352:
21353:
21354: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21355: func_split_short_opt ()\
21356: {\
21357: \ func_split_short_opt_arg=${1#??}\
21358: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21359: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21360: && mv -f "$cfgfile.tmp" "$cfgfile" \
21361: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21362: test 0 -eq $? || _lt_function_replace_fail=:
21363:
21364:
21365: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21366: func_lo2o ()\
21367: {\
21368: \ case ${1} in\
21369: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21370: \ *) func_lo2o_result=${1} ;;\
21371: \ esac\
21372: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21373: && mv -f "$cfgfile.tmp" "$cfgfile" \
21374: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21375: test 0 -eq $? || _lt_function_replace_fail=:
21376:
21377:
21378: sed -e '/^func_xform ()$/,/^} # func_xform /c\
21379: func_xform ()\
21380: {\
21381: func_xform_result=${1%.*}.lo\
21382: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21383: && mv -f "$cfgfile.tmp" "$cfgfile" \
21384: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21385: test 0 -eq $? || _lt_function_replace_fail=:
21386:
21387:
21388: sed -e '/^func_arith ()$/,/^} # func_arith /c\
21389: func_arith ()\
21390: {\
21391: func_arith_result=$(( $* ))\
21392: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21393: && mv -f "$cfgfile.tmp" "$cfgfile" \
21394: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21395: test 0 -eq $? || _lt_function_replace_fail=:
21396:
21397:
21398: sed -e '/^func_len ()$/,/^} # func_len /c\
21399: func_len ()\
21400: {\
21401: func_len_result=${#1}\
21402: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21403: && mv -f "$cfgfile.tmp" "$cfgfile" \
21404: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21405: test 0 -eq $? || _lt_function_replace_fail=:
21406:
21407: fi
21408:
21409: if test x"$lt_shell_append" = xyes; then
21410: sed -e '/^func_append ()$/,/^} # func_append /c\
21411: func_append ()\
21412: {\
21413: eval "${1}+=\\${2}"\
21414: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21415: && mv -f "$cfgfile.tmp" "$cfgfile" \
21416: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21417: test 0 -eq $? || _lt_function_replace_fail=:
21418:
21419:
21420: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21421: func_append_quoted ()\
21422: {\
21423: \ func_quote_for_eval "${2}"\
21424: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21425: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21426: && mv -f "$cfgfile.tmp" "$cfgfile" \
21427: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21428: test 0 -eq $? || _lt_function_replace_fail=:
21429:
21430:
21431: # Save a `func_append' function call where possible by direct use of '+='
21432: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21433: && mv -f "$cfgfile.tmp" "$cfgfile" \
21434: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21435: test 0 -eq $? || _lt_function_replace_fail=:
21436: else
21437: # Save a `func_append' function call even when '+=' is not available
21438: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21439: && mv -f "$cfgfile.tmp" "$cfgfile" \
21440: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21441: test 0 -eq $? || _lt_function_replace_fail=:
21442: fi
21443:
21444: if test x"$_lt_function_replace_fail" = x":"; then
1.150 moko 21445: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21446: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.128 moko 21447: fi
21448:
21449:
21450: mv -f "$cfgfile" "$ofile" ||
21451: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21452: chmod +x "$ofile"
21453:
21454:
21455: cat <<_LT_EOF >> "$ofile"
21456:
21457: # ### BEGIN LIBTOOL TAG CONFIG: CXX
21458:
21459: # The linker used to build libraries.
21460: LD=$lt_LD_CXX
21461:
21462: # How to create reloadable object files.
21463: reload_flag=$lt_reload_flag_CXX
21464: reload_cmds=$lt_reload_cmds_CXX
21465:
21466: # Commands used to build an old-style archive.
21467: old_archive_cmds=$lt_old_archive_cmds_CXX
21468:
21469: # A language specific compiler.
21470: CC=$lt_compiler_CXX
21471:
21472: # Is the compiler the GNU compiler?
21473: with_gcc=$GCC_CXX
21474:
21475: # Compiler flag to turn off builtin functions.
21476: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21477:
21478: # Additional compiler flags for building library objects.
21479: pic_flag=$lt_lt_prog_compiler_pic_CXX
21480:
21481: # How to pass a linker flag through the compiler.
21482: wl=$lt_lt_prog_compiler_wl_CXX
21483:
21484: # Compiler flag to prevent dynamic linking.
21485: link_static_flag=$lt_lt_prog_compiler_static_CXX
21486:
21487: # Does compiler simultaneously support -c and -o options?
21488: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21489:
21490: # Whether or not to add -lc for building shared libraries.
21491: build_libtool_need_lc=$archive_cmds_need_lc_CXX
21492:
21493: # Whether or not to disallow shared libs when runtime libs are static.
21494: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21495:
21496: # Compiler flag to allow reflexive dlopens.
21497: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21498:
21499: # Compiler flag to generate shared objects directly from archives.
21500: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21501:
21502: # Whether the compiler copes with passing no objects directly.
21503: compiler_needs_object=$lt_compiler_needs_object_CXX
21504:
21505: # Create an old-style archive from a shared archive.
21506: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21507:
21508: # Create a temporary old-style archive to link instead of a shared archive.
21509: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21510:
21511: # Commands used to build a shared archive.
21512: archive_cmds=$lt_archive_cmds_CXX
21513: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21514:
21515: # Commands used to build a loadable module if different from building
21516: # a shared archive.
21517: module_cmds=$lt_module_cmds_CXX
21518: module_expsym_cmds=$lt_module_expsym_cmds_CXX
21519:
21520: # Whether we are building with GNU ld or not.
21521: with_gnu_ld=$lt_with_gnu_ld_CXX
21522:
21523: # Flag that allows shared libraries with undefined symbols to be built.
21524: allow_undefined_flag=$lt_allow_undefined_flag_CXX
21525:
21526: # Flag that enforces no undefined symbols.
21527: no_undefined_flag=$lt_no_undefined_flag_CXX
21528:
21529: # Flag to hardcode \$libdir into a binary during linking.
21530: # This must work even if \$libdir does not exist
21531: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21532:
21533: # Whether we need a single "-rpath" flag with a separated argument.
21534: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21535:
21536: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21537: # DIR into the resulting binary.
21538: hardcode_direct=$hardcode_direct_CXX
21539:
21540: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21541: # DIR into the resulting binary and the resulting library dependency is
21542: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21543: # library is relocated.
21544: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21545:
21546: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21547: # into the resulting binary.
21548: hardcode_minus_L=$hardcode_minus_L_CXX
21549:
21550: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21551: # into the resulting binary.
21552: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21553:
21554: # Set to "yes" if building a shared library automatically hardcodes DIR
21555: # into the library and all subsequent libraries and executables linked
21556: # against it.
21557: hardcode_automatic=$hardcode_automatic_CXX
21558:
21559: # Set to yes if linker adds runtime paths of dependent libraries
21560: # to runtime path list.
21561: inherit_rpath=$inherit_rpath_CXX
21562:
21563: # Whether libtool must link a program against all its dependency libraries.
21564: link_all_deplibs=$link_all_deplibs_CXX
21565:
21566: # Set to "yes" if exported symbols are required.
21567: always_export_symbols=$always_export_symbols_CXX
21568:
21569: # The commands to list exported symbols.
21570: export_symbols_cmds=$lt_export_symbols_cmds_CXX
21571:
21572: # Symbols that should not be listed in the preloaded symbols.
21573: exclude_expsyms=$lt_exclude_expsyms_CXX
21574:
21575: # Symbols that must always be exported.
21576: include_expsyms=$lt_include_expsyms_CXX
21577:
21578: # Commands necessary for linking programs (against libraries) with templates.
21579: prelink_cmds=$lt_prelink_cmds_CXX
21580:
21581: # Commands necessary for finishing linking programs.
21582: postlink_cmds=$lt_postlink_cmds_CXX
21583:
21584: # Specify filename containing input files.
21585: file_list_spec=$lt_file_list_spec_CXX
21586:
21587: # How to hardcode a shared library path into an executable.
21588: hardcode_action=$hardcode_action_CXX
21589:
21590: # The directories searched by this compiler when creating a shared library.
21591: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21592:
21593: # Dependencies to place before and after the objects being linked to
21594: # create a shared library.
21595: predep_objects=$lt_predep_objects_CXX
21596: postdep_objects=$lt_postdep_objects_CXX
21597: predeps=$lt_predeps_CXX
21598: postdeps=$lt_postdeps_CXX
21599:
21600: # The library search path used internally by the compiler when linking
21601: # a shared library.
21602: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21603:
21604: # ### END LIBTOOL TAG CONFIG: CXX
21605: _LT_EOF
21606:
21607: ;;
1.150 moko 21608:
1.62 paf 21609: esac
1.150 moko 21610: done # for ac_tag
1.62 paf 21611:
21612:
1.150 moko 21613: as_fn_exit 0
1.62 paf 21614: _ACEOF
21615: ac_clean_files=$ac_clean_files_save
21616:
1.150 moko 21617: test $ac_write_fail = 0 ||
21618: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21619:
1.1 paf 21620:
1.62 paf 21621: # configure is writing to config.log, and then calls config.status.
21622: # config.status does its own redirection, appending to config.log.
21623: # Unfortunately, on DOS this fails, as config.log is still kept open
21624: # by configure, so config.status won't be able to write to it; its
21625: # output is simply discarded. So we exec the FD to /dev/null,
21626: # effectively closing config.log, so it can be properly (re)opened and
21627: # appended to by config.status. When coming back to configure, we
21628: # need to make the FD available again.
21629: if test "$no_create" != yes; then
21630: ac_cs_success=:
21631: ac_config_status_args=
21632: test "$silent" = yes &&
21633: ac_config_status_args="$ac_config_status_args --quiet"
21634: exec 5>/dev/null
21635: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21636: exec 5>>config.log
21637: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21638: # would make configure fail if this is the last instruction.
1.150 moko 21639: $ac_cs_success || as_fn_exit 1
1.62 paf 21640: fi
21641:
21642: #
21643: # CONFIG_SUBDIRS section.
21644: #
1.1 paf 21645: if test "$no_recursion" != yes; then
21646:
1.150 moko 21647: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21648: # so they do not pile up.
1.1 paf 21649: ac_sub_configure_args=
21650: ac_prev=
1.150 moko 21651: eval "set x $ac_configure_args"
21652: shift
21653: for ac_arg
21654: do
1.1 paf 21655: if test -n "$ac_prev"; then
21656: ac_prev=
21657: continue
21658: fi
1.62 paf 21659: case $ac_arg in
1.1 paf 21660: -cache-file | --cache-file | --cache-fil | --cache-fi \
21661: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21662: ac_prev=cache_file ;;
21663: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 21664: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21665: | --c=*)
21666: ;;
21667: --config-cache | -C)
1.1 paf 21668: ;;
21669: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21670: ac_prev=srcdir ;;
21671: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21672: ;;
1.62 paf 21673: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21674: ac_prev=prefix ;;
21675: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21676: ;;
1.150 moko 21677: --disable-option-checking)
21678: ;;
21679: *)
21680: case $ac_arg in
21681: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21682: esac
21683: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 21684: esac
21685: done
21686:
1.62 paf 21687: # Always prepend --prefix to ensure using the same prefix
21688: # in subdir configurations.
1.150 moko 21689: ac_arg="--prefix=$prefix"
21690: case $ac_arg in
21691: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21692: esac
21693: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21694:
21695: # Pass --silent
21696: if test "$silent" = yes; then
21697: ac_sub_configure_args="--silent $ac_sub_configure_args"
21698: fi
21699:
21700: # Always prepend --disable-option-checking to silence warnings, since
21701: # different subdirs can have different --enable and --with options.
21702: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 21703:
21704: ac_popdir=`pwd`
21705: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 21706:
21707: # Do not complain, so a configure script can configure whichever
21708: # parts of a large source tree are present.
1.150 moko 21709: test -d "$srcdir/$ac_dir" || continue
1.62 paf 21710:
1.150 moko 21711: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21712: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21713: $as_echo "$ac_msg" >&6
21714: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 21715: ac_builddir=.
21716:
1.150 moko 21717: case "$ac_dir" in
21718: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21719: *)
21720: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21721: # A ".." for each directory in $ac_dir_suffix.
21722: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21723: case $ac_top_builddir_sub in
21724: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21725: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21726: esac ;;
21727: esac
21728: ac_abs_top_builddir=$ac_pwd
21729: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21730: # for backward compatibility:
21731: ac_top_builddir=$ac_top_build_prefix
1.62 paf 21732:
21733: case $srcdir in
1.150 moko 21734: .) # We are building in place.
1.62 paf 21735: ac_srcdir=.
1.150 moko 21736: ac_top_srcdir=$ac_top_builddir_sub
21737: ac_abs_top_srcdir=$ac_pwd ;;
21738: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 21739: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 21740: ac_top_srcdir=$srcdir
21741: ac_abs_top_srcdir=$srcdir ;;
21742: *) # Relative name.
21743: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21744: ac_top_srcdir=$ac_top_build_prefix$srcdir
21745: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 21746: esac
1.150 moko 21747: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 21748:
21749:
1.150 moko 21750: cd "$ac_dir"
1.1 paf 21751:
21752: # Check for guested configure; otherwise get Cygnus style configure.
1.150 moko 21753: if test -f "$ac_srcdir/configure.gnu"; then
21754: ac_sub_configure=$ac_srcdir/configure.gnu
21755: elif test -f "$ac_srcdir/configure"; then
21756: ac_sub_configure=$ac_srcdir/configure
21757: elif test -f "$ac_srcdir/configure.in"; then
21758: # This should be Cygnus configure.
21759: ac_sub_configure=$ac_aux_dir/configure
1.1 paf 21760: else
1.150 moko 21761: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21762: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 21763: ac_sub_configure=
21764: fi
21765:
21766: # The recursion is here.
21767: if test -n "$ac_sub_configure"; then
21768: # Make the cache file name correct relative to the subdirectory.
1.62 paf 21769: case $cache_file in
21770: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 21771: *) # Relative name.
21772: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 21773: esac
21774:
1.150 moko 21775: { $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
21776: $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 21777: # The eval makes quoting arguments work.
1.150 moko 21778: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21779: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21780: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 21781: fi
21782:
1.150 moko 21783: cd "$ac_popdir"
1.1 paf 21784: done
21785: fi
1.150 moko 21786: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21787: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21788: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21789: fi
1.1 paf 21790:
E-mail: