Annotation of parser3/configure, revision 1.169
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.169 ! moko 3: # Generated by GNU Autoconf 2.69 for parser 3.4.4b.
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.169 ! moko 594: PACKAGE_VERSION='3.4.4b'
! 595: PACKAGE_STRING='parser 3.4.4b'
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
708: AMDEPBACKSLASH
709: AMDEP_FALSE
710: AMDEP_TRUE
711: am__quote
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
732: am__untar
733: am__tar
734: AMTAR
735: am__leading_dot
736: SET_MAKE
737: AWK
738: mkdir_p
739: MKDIR_P
740: INSTALL_STRIP_PROGRAM
741: STRIP
742: install_sh
743: MAKEINFO
744: AUTOHEADER
745: AUTOMAKE
746: AUTOCONF
747: ACLOCAL
748: VERSION
749: PACKAGE
750: CYGPATH_W
751: am__isrc
752: INSTALL_DATA
753: INSTALL_SCRIPT
754: INSTALL_PROGRAM
755: target_alias
756: host_alias
757: build_alias
758: LIBS
759: ECHO_T
760: ECHO_N
761: ECHO_C
762: DEFS
763: mandir
764: localedir
765: libdir
766: psdir
767: pdfdir
768: dvidir
769: htmldir
770: infodir
771: docdir
772: oldincludedir
773: includedir
774: localstatedir
775: sharedstatedir
776: sysconfdir
777: datadir
778: datarootdir
779: libexecdir
780: sbindir
781: bindir
782: program_transform_name
783: prefix
784: exec_prefix
785: PACKAGE_URL
786: PACKAGE_BUGREPORT
787: PACKAGE_STRING
788: PACKAGE_VERSION
789: PACKAGE_TARNAME
790: PACKAGE_NAME
791: PATH_SEPARATOR
792: SHELL'
1.62 paf 793: ac_subst_files=''
1.150 moko 794: ac_user_opts='
795: enable_option_checking
796: enable_dependency_tracking
797: with_build_warnings
798: with_assertions
799: with_sjlj_exceptions
800: enable_safe_mode
801: enable_execs
802: enable_stringstream
803: with_gc
804: with_pcre
805: with_xml
1.154 moko 806: with_mailreceive
1.150 moko 807: with_sendmail
808: with_apache
809: with_pic
810: enable_shared
811: enable_static
812: enable_fast_install
813: with_gnu_ld
814: with_sysroot
815: enable_libtool_lock
816: with_included_ltdl
817: with_ltdl_include
818: with_ltdl_lib
819: enable_ltdl_install
820: '
821: ac_precious_vars='build_alias
822: host_alias
823: target_alias
824: YACC
825: YFLAGS
826: CXX
827: CXXFLAGS
828: LDFLAGS
829: LIBS
830: CPPFLAGS
831: CCC
832: CC
833: CFLAGS
834: CPP
835: CXXCPP'
836: ac_subdirs_all='src/lib/ltdl'
1.1 paf 837:
838: # Initialize some variables set by options.
1.62 paf 839: ac_init_help=
840: ac_init_version=false
1.150 moko 841: ac_unrecognized_opts=
842: ac_unrecognized_sep=
1.1 paf 843: # The variables have the same names as the options, with
844: # dashes changed to underlines.
1.62 paf 845: cache_file=/dev/null
1.1 paf 846: exec_prefix=NONE
847: no_create=
848: no_recursion=
849: prefix=NONE
850: program_prefix=NONE
851: program_suffix=NONE
852: program_transform_name=s,x,x,
853: silent=
854: site=
855: srcdir=
856: verbose=
857: x_includes=NONE
858: x_libraries=NONE
1.62 paf 859:
860: # Installation directory options.
861: # These are left unexpanded so users can "make install exec_prefix=/foo"
862: # and all the variables that are supposed to be based on exec_prefix
863: # by default will actually change.
864: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 865: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 866: bindir='${exec_prefix}/bin'
867: sbindir='${exec_prefix}/sbin'
868: libexecdir='${exec_prefix}/libexec'
1.150 moko 869: datarootdir='${prefix}/share'
870: datadir='${datarootdir}'
1.1 paf 871: sysconfdir='${prefix}/etc'
872: sharedstatedir='${prefix}/com'
873: localstatedir='${prefix}/var'
874: includedir='${prefix}/include'
875: oldincludedir='/usr/include'
1.150 moko 876: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877: infodir='${datarootdir}/info'
878: htmldir='${docdir}'
879: dvidir='${docdir}'
880: pdfdir='${docdir}'
881: psdir='${docdir}'
882: libdir='${exec_prefix}/lib'
883: localedir='${datarootdir}/locale'
884: mandir='${datarootdir}/man'
1.1 paf 885:
886: ac_prev=
1.150 moko 887: ac_dashdash=
1.1 paf 888: for ac_option
889: do
890: # If the previous option needs an argument, assign it.
891: if test -n "$ac_prev"; then
1.150 moko 892: eval $ac_prev=\$ac_option
1.1 paf 893: ac_prev=
894: continue
895: fi
896:
1.150 moko 897: case $ac_option in
898: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899: *=) ac_optarg= ;;
900: *) ac_optarg=yes ;;
901: esac
1.1 paf 902:
903: # Accept the important Cygnus configure options, so we can diagnose typos.
904:
1.150 moko 905: case $ac_dashdash$ac_option in
906: --)
907: ac_dashdash=yes ;;
1.1 paf 908:
909: -bindir | --bindir | --bindi | --bind | --bin | --bi)
910: ac_prev=bindir ;;
911: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 912: bindir=$ac_optarg ;;
1.1 paf 913:
914: -build | --build | --buil | --bui | --bu)
1.62 paf 915: ac_prev=build_alias ;;
1.1 paf 916: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 917: build_alias=$ac_optarg ;;
1.1 paf 918:
919: -cache-file | --cache-file | --cache-fil | --cache-fi \
920: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921: ac_prev=cache_file ;;
922: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 924: cache_file=$ac_optarg ;;
925:
926: --config-cache | -C)
927: cache_file=config.cache ;;
1.1 paf 928:
1.150 moko 929: -datadir | --datadir | --datadi | --datad)
1.1 paf 930: ac_prev=datadir ;;
1.150 moko 931: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 932: datadir=$ac_optarg ;;
1.1 paf 933:
1.150 moko 934: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935: | --dataroo | --dataro | --datar)
936: ac_prev=datarootdir ;;
937: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939: datarootdir=$ac_optarg ;;
940:
1.1 paf 941: -disable-* | --disable-*)
1.150 moko 942: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 943: # Reject names that are not valid shell variable names.
1.150 moko 944: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945: as_fn_error $? "invalid feature name: $ac_useropt"
946: ac_useropt_orig=$ac_useropt
947: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948: case $ac_user_opts in
949: *"
950: "enable_$ac_useropt"
951: "*) ;;
952: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953: ac_unrecognized_sep=', ';;
954: esac
955: eval enable_$ac_useropt=no ;;
956:
957: -docdir | --docdir | --docdi | --doc | --do)
958: ac_prev=docdir ;;
959: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960: docdir=$ac_optarg ;;
961:
962: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963: ac_prev=dvidir ;;
964: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965: dvidir=$ac_optarg ;;
1.1 paf 966:
967: -enable-* | --enable-*)
1.150 moko 968: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 969: # Reject names that are not valid shell variable names.
1.150 moko 970: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971: as_fn_error $? "invalid feature name: $ac_useropt"
972: ac_useropt_orig=$ac_useropt
973: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974: case $ac_user_opts in
975: *"
976: "enable_$ac_useropt"
977: "*) ;;
978: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979: ac_unrecognized_sep=', ';;
1.1 paf 980: esac
1.150 moko 981: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 982:
983: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985: | --exec | --exe | --ex)
986: ac_prev=exec_prefix ;;
987: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989: | --exec=* | --exe=* | --ex=*)
1.62 paf 990: exec_prefix=$ac_optarg ;;
1.1 paf 991:
992: -gas | --gas | --ga | --g)
993: # Obsolete; use --with-gas.
994: with_gas=yes ;;
995:
1.62 paf 996: -help | --help | --hel | --he | -h)
997: ac_init_help=long ;;
998: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999: ac_init_help=recursive ;;
1000: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001: ac_init_help=short ;;
1.1 paf 1002:
1003: -host | --host | --hos | --ho)
1.62 paf 1004: ac_prev=host_alias ;;
1.1 paf 1005: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1006: host_alias=$ac_optarg ;;
1.1 paf 1007:
1.150 moko 1008: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009: ac_prev=htmldir ;;
1010: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011: | --ht=*)
1012: htmldir=$ac_optarg ;;
1013:
1.1 paf 1014: -includedir | --includedir | --includedi | --included | --include \
1015: | --includ | --inclu | --incl | --inc)
1016: ac_prev=includedir ;;
1017: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1019: includedir=$ac_optarg ;;
1.1 paf 1020:
1021: -infodir | --infodir | --infodi | --infod | --info | --inf)
1022: ac_prev=infodir ;;
1023: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1024: infodir=$ac_optarg ;;
1.1 paf 1025:
1026: -libdir | --libdir | --libdi | --libd)
1027: ac_prev=libdir ;;
1028: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1029: libdir=$ac_optarg ;;
1.1 paf 1030:
1031: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032: | --libexe | --libex | --libe)
1033: ac_prev=libexecdir ;;
1034: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1036: libexecdir=$ac_optarg ;;
1.1 paf 1037:
1.150 moko 1038: -localedir | --localedir | --localedi | --localed | --locale)
1039: ac_prev=localedir ;;
1040: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041: localedir=$ac_optarg ;;
1042:
1.1 paf 1043: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1044: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1045: ac_prev=localstatedir ;;
1046: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1047: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1048: localstatedir=$ac_optarg ;;
1.1 paf 1049:
1050: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051: ac_prev=mandir ;;
1052: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1053: mandir=$ac_optarg ;;
1.1 paf 1054:
1055: -nfp | --nfp | --nf)
1056: # Obsolete; use --without-fp.
1057: with_fp=no ;;
1058:
1059: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1060: | --no-cr | --no-c | -n)
1.1 paf 1061: no_create=yes ;;
1062:
1063: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065: no_recursion=yes ;;
1066:
1067: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069: | --oldin | --oldi | --old | --ol | --o)
1070: ac_prev=oldincludedir ;;
1071: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1074: oldincludedir=$ac_optarg ;;
1.1 paf 1075:
1076: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077: ac_prev=prefix ;;
1078: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1079: prefix=$ac_optarg ;;
1.1 paf 1080:
1081: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082: | --program-pre | --program-pr | --program-p)
1083: ac_prev=program_prefix ;;
1084: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1086: program_prefix=$ac_optarg ;;
1.1 paf 1087:
1088: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089: | --program-suf | --program-su | --program-s)
1090: ac_prev=program_suffix ;;
1091: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1093: program_suffix=$ac_optarg ;;
1.1 paf 1094:
1095: -program-transform-name | --program-transform-name \
1096: | --program-transform-nam | --program-transform-na \
1097: | --program-transform-n | --program-transform- \
1098: | --program-transform | --program-transfor \
1099: | --program-transfo | --program-transf \
1100: | --program-trans | --program-tran \
1101: | --progr-tra | --program-tr | --program-t)
1102: ac_prev=program_transform_name ;;
1103: -program-transform-name=* | --program-transform-name=* \
1104: | --program-transform-nam=* | --program-transform-na=* \
1105: | --program-transform-n=* | --program-transform-=* \
1106: | --program-transform=* | --program-transfor=* \
1107: | --program-transfo=* | --program-transf=* \
1108: | --program-trans=* | --program-tran=* \
1109: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1110: program_transform_name=$ac_optarg ;;
1.1 paf 1111:
1.150 moko 1112: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113: ac_prev=pdfdir ;;
1114: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115: pdfdir=$ac_optarg ;;
1116:
1117: -psdir | --psdir | --psdi | --psd | --ps)
1118: ac_prev=psdir ;;
1119: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120: psdir=$ac_optarg ;;
1121:
1.1 paf 1122: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123: | -silent | --silent | --silen | --sile | --sil)
1124: silent=yes ;;
1125:
1126: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127: ac_prev=sbindir ;;
1128: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129: | --sbi=* | --sb=*)
1.62 paf 1130: sbindir=$ac_optarg ;;
1.1 paf 1131:
1132: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134: | --sharedst | --shareds | --shared | --share | --shar \
1135: | --sha | --sh)
1136: ac_prev=sharedstatedir ;;
1137: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140: | --sha=* | --sh=*)
1.62 paf 1141: sharedstatedir=$ac_optarg ;;
1.1 paf 1142:
1143: -site | --site | --sit)
1144: ac_prev=site ;;
1145: -site=* | --site=* | --sit=*)
1.62 paf 1146: site=$ac_optarg ;;
1.1 paf 1147:
1148: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149: ac_prev=srcdir ;;
1150: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1151: srcdir=$ac_optarg ;;
1.1 paf 1152:
1153: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154: | --syscon | --sysco | --sysc | --sys | --sy)
1155: ac_prev=sysconfdir ;;
1156: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1158: sysconfdir=$ac_optarg ;;
1.1 paf 1159:
1160: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1161: ac_prev=target_alias ;;
1.1 paf 1162: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1163: target_alias=$ac_optarg ;;
1.1 paf 1164:
1165: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166: verbose=yes ;;
1167:
1.62 paf 1168: -version | --version | --versio | --versi | --vers | -V)
1169: ac_init_version=: ;;
1.1 paf 1170:
1171: -with-* | --with-*)
1.150 moko 1172: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1173: # Reject names that are not valid shell variable names.
1.150 moko 1174: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175: as_fn_error $? "invalid package name: $ac_useropt"
1176: ac_useropt_orig=$ac_useropt
1177: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178: case $ac_user_opts in
1179: *"
1180: "with_$ac_useropt"
1181: "*) ;;
1182: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183: ac_unrecognized_sep=', ';;
1.1 paf 1184: esac
1.150 moko 1185: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1186:
1187: -without-* | --without-*)
1.150 moko 1188: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1189: # Reject names that are not valid shell variable names.
1.150 moko 1190: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191: as_fn_error $? "invalid package name: $ac_useropt"
1192: ac_useropt_orig=$ac_useropt
1193: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194: case $ac_user_opts in
1195: *"
1196: "with_$ac_useropt"
1197: "*) ;;
1198: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199: ac_unrecognized_sep=', ';;
1200: esac
1201: eval with_$ac_useropt=no ;;
1.1 paf 1202:
1203: --x)
1204: # Obsolete; use --with-x.
1205: with_x=yes ;;
1206:
1207: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208: | --x-incl | --x-inc | --x-in | --x-i)
1209: ac_prev=x_includes ;;
1210: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1212: x_includes=$ac_optarg ;;
1.1 paf 1213:
1214: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216: ac_prev=x_libraries ;;
1217: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1219: x_libraries=$ac_optarg ;;
1.1 paf 1220:
1.150 moko 1221: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222: Try \`$0 --help' for more information"
1.1 paf 1223: ;;
1224:
1.62 paf 1225: *=*)
1226: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227: # Reject names that are not valid shell variable names.
1.150 moko 1228: case $ac_envvar in #(
1229: '' | [0-9]* | *[!_$as_cr_alnum]* )
1230: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231: esac
1232: eval $ac_envvar=\$ac_optarg
1.62 paf 1233: export $ac_envvar ;;
1234:
1.1 paf 1235: *)
1.62 paf 1236: # FIXME: should be removed in autoconf 3.0.
1.150 moko 1237: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1238: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.150 moko 1239: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1241: ;;
1242:
1243: esac
1244: done
1245:
1246: if test -n "$ac_prev"; then
1.62 paf 1247: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1248: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1249: fi
1250:
1.150 moko 1251: if test -n "$ac_unrecognized_opts"; then
1252: case $enable_option_checking in
1253: no) ;;
1254: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256: esac
1257: fi
1258:
1259: # Check all directory arguments for consistency.
1260: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261: datadir sysconfdir sharedstatedir localstatedir includedir \
1262: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263: libdir localedir mandir
1.62 paf 1264: do
1.150 moko 1265: eval ac_val=\$$ac_var
1266: # Remove trailing slashes.
1.62 paf 1267: case $ac_val in
1.150 moko 1268: */ )
1269: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270: eval $ac_var=\$ac_val;;
1.62 paf 1271: esac
1.150 moko 1272: # Be sure to have absolute directory names.
1.62 paf 1273: case $ac_val in
1.150 moko 1274: [\\/$]* | ?:[\\/]* ) continue;;
1275: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1276: esac
1.150 moko 1277: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1278: done
1279:
1.62 paf 1280: # There might be people who depend on the old broken behavior: `$host'
1281: # used to hold the argument of --host etc.
1282: # FIXME: To remove some day.
1283: build=$build_alias
1284: host=$host_alias
1285: target=$target_alias
1286:
1287: # FIXME: To remove some day.
1288: if test "x$host_alias" != x; then
1289: if test "x$build_alias" = x; then
1290: cross_compiling=maybe
1291: elif test "x$build_alias" != "x$host_alias"; then
1292: cross_compiling=yes
1293: fi
1294: fi
1295:
1296: ac_tool_prefix=
1297: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1298:
1.62 paf 1299: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1300:
1301:
1.150 moko 1302: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303: ac_ls_di=`ls -di .` &&
1304: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305: as_fn_error $? "working directory cannot be determined"
1306: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307: as_fn_error $? "pwd does not report name of working directory"
1308:
1309:
1.1 paf 1310: # Find the source files, if location was not specified.
1311: if test -z "$srcdir"; then
1312: ac_srcdir_defaulted=yes
1.150 moko 1313: # Try the directory containing this script, then the parent directory.
1314: ac_confdir=`$as_dirname -- "$as_myself" ||
1315: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316: X"$as_myself" : 'X\(//\)[^/]' \| \
1317: X"$as_myself" : 'X\(//\)$' \| \
1318: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319: $as_echo X"$as_myself" |
1320: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321: s//\1/
1322: q
1323: }
1324: /^X\(\/\/\)[^/].*/{
1325: s//\1/
1326: q
1327: }
1328: /^X\(\/\/\)$/{
1329: s//\1/
1330: q
1331: }
1332: /^X\(\/\).*/{
1333: s//\1/
1334: q
1335: }
1336: s/.*/./; q'`
1.1 paf 1337: srcdir=$ac_confdir
1.150 moko 1338: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1339: srcdir=..
1340: fi
1341: else
1342: ac_srcdir_defaulted=no
1343: fi
1.150 moko 1344: if test ! -r "$srcdir/$ac_unique_file"; then
1345: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347: fi
1348: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349: ac_abs_confdir=`(
1350: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351: pwd)`
1352: # When building in place, set srcdir=.
1353: if test "$ac_abs_confdir" = "$ac_pwd"; then
1354: srcdir=.
1355: fi
1356: # Remove unnecessary trailing slashes from srcdir.
1357: # Double slashes in file names in object file debugging info
1358: # mess up M-x gdb in Emacs.
1359: case $srcdir in
1360: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361: esac
1362: for ac_var in $ac_precious_vars; do
1363: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364: eval ac_env_${ac_var}_value=\$${ac_var}
1365: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367: done
1.62 paf 1368:
1369: #
1370: # Report the --help message.
1371: #
1372: if test "$ac_init_help" = "long"; then
1373: # Omit some internal or obsolete options to make the list less imposing.
1374: # This message is too long to be a string in the A/UX 3.1 sh.
1375: cat <<_ACEOF
1.169 ! moko 1376: \`configure' configures parser 3.4.4b to adapt to many kinds of systems.
1.62 paf 1377:
1378: Usage: $0 [OPTION]... [VAR=VALUE]...
1379:
1380: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381: VAR=VALUE. See below for descriptions of some of the useful variables.
1382:
1383: Defaults for the options are specified in brackets.
1384:
1385: Configuration:
1386: -h, --help display this help and exit
1387: --help=short display options specific to this package
1388: --help=recursive display the short help of all the included packages
1389: -V, --version display version information and exit
1.150 moko 1390: -q, --quiet, --silent do not print \`checking ...' messages
1.62 paf 1391: --cache-file=FILE cache test results in FILE [disabled]
1392: -C, --config-cache alias for \`--cache-file=config.cache'
1393: -n, --no-create do not create output files
1394: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395:
1396: Installation directories:
1397: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1398: [$ac_default_prefix]
1.62 paf 1399: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1400: [PREFIX]
1.62 paf 1401:
1402: By default, \`make install' will install all the files in
1403: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405: for instance \`--prefix=\$HOME'.
1406:
1407: For better control, use the options below.
1408:
1409: Fine tuning of the installation directories:
1.150 moko 1410: --bindir=DIR user executables [EPREFIX/bin]
1411: --sbindir=DIR system admin executables [EPREFIX/sbin]
1412: --libexecdir=DIR program executables [EPREFIX/libexec]
1413: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416: --libdir=DIR object code libraries [EPREFIX/lib]
1417: --includedir=DIR C header files [PREFIX/include]
1418: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421: --infodir=DIR info documentation [DATAROOTDIR/info]
1422: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423: --mandir=DIR man documentation [DATAROOTDIR/man]
1424: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1425: --htmldir=DIR html documentation [DOCDIR]
1426: --dvidir=DIR dvi documentation [DOCDIR]
1427: --pdfdir=DIR pdf documentation [DOCDIR]
1428: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1429: _ACEOF
1430:
1431: cat <<\_ACEOF
1432:
1433: Program names:
1434: --program-prefix=PREFIX prepend PREFIX to installed program names
1435: --program-suffix=SUFFIX append SUFFIX to installed program names
1436: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437:
1438: System types:
1439: --build=BUILD configure for building on BUILD [guessed]
1440: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441: _ACEOF
1442: fi
1443:
1444: if test -n "$ac_init_help"; then
1.128 moko 1445: case $ac_init_help in
1.169 ! moko 1446: short | recursive ) echo "Configuration of parser 3.4.4b:";;
1.128 moko 1447: esac
1.62 paf 1448: cat <<\_ACEOF
1449:
1450: Optional Features:
1.150 moko 1451: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1452: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.86 paf 1454: --disable-dependency-tracking speeds up one-time build
1455: --enable-dependency-tracking do not reject slow dependency extractors
1.67 paf 1456: --disable-safe-mode to enable reading and executing
1.62 paf 1457: files belonging to group+user other then effective
1.146 moko 1458: --disable-execs to disable any execs
1.62 paf 1459: (file::exec, file::cgi, unix mail:send)
1.94 misha 1460: --disable-stringstream to disable stringstream usage.
1461: when disabled table.save use more memory but it's safer on freebsd 4.x
1.150 moko 1462: --enable-shared[=PKGS] build shared libraries [default=yes]
1463: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1464: --enable-fast-install[=PKGS]
1465: optimize for fast installation [default=yes]
1466: --disable-libtool-lock avoid locking (might break parallel builds)
1467: --enable-ltdl-install install libltdl
1.62 paf 1468:
1469: Optional Packages:
1470: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1472: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.67 paf 1473: --with-assertions to enable assertions
1.128 moko 1474: --with-sjlj-exceptions enable simple 'throw' from dynamic library
1.146 moko 1475: --with-gc=D D is the directory where
1.142 moko 1476: Boehm garbage collecting library is installed
1.146 moko 1477: --with-pcre=D D is the directory where
1.142 moko 1478: PCRE library is installed
1.146 moko 1479: --with-xml=D D is the directory where
1.142 moko 1480: Gnome XML libraries are installed
1.154 moko 1481: --with-mailreceive=D is the directory where
1482: Gnome MIME library is installed
1.62 paf 1483: \"--with-sendmail=COMMAND\" forces this command to send mail.
1484: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1485: (makes parser ignore user-defined sendmail commands)
1.146 moko 1486: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1487: builds apache DSO module using apxs
1.150 moko 1488: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.128 moko 1489: both]
1490: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491: --with-sysroot=DIR Search for dependent libraries within DIR
1492: (or the compiler's sysroot if not specified).
1493: --with-included-ltdl use the GNU ltdl sources included here
1494: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1495: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1496:
1497: Some influential environment variables:
1.150 moko 1498: YACC The `Yet Another Compiler Compiler' implementation to use.
1499: Defaults to the first program found out of: `bison -y', `byacc',
1500: `yacc'.
1501: YFLAGS The list of arguments that will be passed by default to $YACC.
1502: This script will default YFLAGS to the empty string to avoid a
1503: default value of `-d' given by some make applications.
1.66 paf 1504: CXX C++ compiler command
1505: CXXFLAGS C++ compiler flags
1.62 paf 1506: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507: nonstandard directory <lib dir>
1.150 moko 1508: LIBS libraries to pass to the linker, e.g. -l<library>
1509: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510: you have headers in a nonstandard directory <include dir>
1.66 paf 1511: CC C compiler command
1512: CFLAGS C compiler flags
1513: CPP C preprocessor
1.128 moko 1514: CXXCPP C++ preprocessor
1.62 paf 1515:
1516: Use these variables to override the choices made by `configure' or to help
1517: it to find libraries and programs with nonstandard names/locations.
1518:
1.150 moko 1519: Report bugs to the package provider.
1.62 paf 1520: _ACEOF
1.150 moko 1521: ac_status=$?
1.62 paf 1522: fi
1523:
1524: if test "$ac_init_help" = "recursive"; then
1525: # If there are subdirs, report their specific --help.
1526: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1527: test -d "$ac_dir" ||
1528: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529: continue
1.62 paf 1530: ac_builddir=.
1531:
1.150 moko 1532: case "$ac_dir" in
1533: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534: *)
1535: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536: # A ".." for each directory in $ac_dir_suffix.
1537: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538: case $ac_top_builddir_sub in
1539: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541: esac ;;
1542: esac
1543: ac_abs_top_builddir=$ac_pwd
1544: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545: # for backward compatibility:
1546: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1547:
1548: case $srcdir in
1.150 moko 1549: .) # We are building in place.
1.62 paf 1550: ac_srcdir=.
1.150 moko 1551: ac_top_srcdir=$ac_top_builddir_sub
1552: ac_abs_top_srcdir=$ac_pwd ;;
1553: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1554: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1555: ac_top_srcdir=$srcdir
1556: ac_abs_top_srcdir=$srcdir ;;
1557: *) # Relative name.
1558: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559: ac_top_srcdir=$ac_top_build_prefix$srcdir
1560: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1561: esac
1.150 moko 1562: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1563:
1.150 moko 1564: cd "$ac_dir" || { ac_status=$?; continue; }
1565: # Check for guested configure.
1566: if test -f "$ac_srcdir/configure.gnu"; then
1567: echo &&
1568: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569: elif test -f "$ac_srcdir/configure"; then
1570: echo &&
1571: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1572: else
1.150 moko 1573: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574: fi || ac_status=$?
1575: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1576: done
1577: fi
1578:
1.150 moko 1579: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1580: if $ac_init_version; then
1581: cat <<\_ACEOF
1.169 ! moko 1582: parser configure 3.4.4b
1.166 moko 1583: generated by GNU Autoconf 2.69
1.62 paf 1584:
1.166 moko 1585: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 1586: This configure script is free software; the Free Software Foundation
1587: gives unlimited permission to copy, distribute and modify it.
1588: _ACEOF
1.150 moko 1589: exit
1.62 paf 1590: fi
1591:
1.150 moko 1592: ## ------------------------ ##
1593: ## Autoconf initialization. ##
1594: ## ------------------------ ##
1595:
1596: # ac_fn_cxx_try_compile LINENO
1597: # ----------------------------
1598: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599: ac_fn_cxx_try_compile ()
1.62 paf 1600: {
1.150 moko 1601: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602: rm -f conftest.$ac_objext
1603: if { { ac_try="$ac_compile"
1604: case "(($ac_try" in
1605: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606: *) ac_try_echo=$ac_try;;
1607: esac
1608: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609: $as_echo "$ac_try_echo"; } >&5
1610: (eval "$ac_compile") 2>conftest.err
1611: ac_status=$?
1612: if test -s conftest.err; then
1613: grep -v '^ *+' conftest.err >conftest.er1
1614: cat conftest.er1 >&5
1615: mv -f conftest.er1 conftest.err
1616: fi
1617: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618: test $ac_status = 0; } && {
1619: test -z "$ac_cxx_werror_flag" ||
1620: test ! -s conftest.err
1621: } && test -s conftest.$ac_objext; then :
1622: ac_retval=0
1623: else
1624: $as_echo "$as_me: failed program was:" >&5
1625: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1626:
1.150 moko 1627: ac_retval=1
1628: fi
1629: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630: as_fn_set_status $ac_retval
1.62 paf 1631:
1.150 moko 1632: } # ac_fn_cxx_try_compile
1633:
1634: # ac_fn_c_try_compile LINENO
1635: # --------------------------
1636: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1637: ac_fn_c_try_compile ()
1638: {
1639: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640: rm -f conftest.$ac_objext
1641: if { { ac_try="$ac_compile"
1642: case "(($ac_try" in
1643: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644: *) ac_try_echo=$ac_try;;
1645: esac
1646: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647: $as_echo "$ac_try_echo"; } >&5
1648: (eval "$ac_compile") 2>conftest.err
1649: ac_status=$?
1650: if test -s conftest.err; then
1651: grep -v '^ *+' conftest.err >conftest.er1
1652: cat conftest.er1 >&5
1653: mv -f conftest.er1 conftest.err
1654: fi
1655: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656: test $ac_status = 0; } && {
1657: test -z "$ac_c_werror_flag" ||
1658: test ! -s conftest.err
1659: } && test -s conftest.$ac_objext; then :
1660: ac_retval=0
1661: else
1662: $as_echo "$as_me: failed program was:" >&5
1663: sed 's/^/| /' conftest.$ac_ext >&5
1664:
1665: ac_retval=1
1666: fi
1667: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668: as_fn_set_status $ac_retval
1669:
1670: } # ac_fn_c_try_compile
1671:
1672: # ac_fn_c_try_link LINENO
1673: # -----------------------
1674: # Try to link conftest.$ac_ext, and return whether this succeeded.
1675: ac_fn_c_try_link ()
1676: {
1677: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678: rm -f conftest.$ac_objext conftest$ac_exeext
1679: if { { ac_try="$ac_link"
1680: case "(($ac_try" in
1681: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682: *) ac_try_echo=$ac_try;;
1683: esac
1684: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685: $as_echo "$ac_try_echo"; } >&5
1686: (eval "$ac_link") 2>conftest.err
1687: ac_status=$?
1688: if test -s conftest.err; then
1689: grep -v '^ *+' conftest.err >conftest.er1
1690: cat conftest.er1 >&5
1691: mv -f conftest.er1 conftest.err
1692: fi
1693: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694: test $ac_status = 0; } && {
1695: test -z "$ac_c_werror_flag" ||
1696: test ! -s conftest.err
1697: } && test -s conftest$ac_exeext && {
1698: test "$cross_compiling" = yes ||
1.166 moko 1699: test -x conftest$ac_exeext
1.150 moko 1700: }; then :
1701: ac_retval=0
1702: else
1703: $as_echo "$as_me: failed program was:" >&5
1704: sed 's/^/| /' conftest.$ac_ext >&5
1705:
1706: ac_retval=1
1707: fi
1708: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710: # interfere with the next link command; also delete a directory that is
1711: # left behind by Apple's compiler. We do this before executing the actions.
1712: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714: as_fn_set_status $ac_retval
1715:
1716: } # ac_fn_c_try_link
1717:
1718: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719: # -------------------------------------------------------
1720: # Tests whether HEADER exists and can be compiled using the include files in
1721: # INCLUDES, setting the cache variable VAR accordingly.
1722: ac_fn_c_check_header_compile ()
1723: {
1724: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726: $as_echo_n "checking for $2... " >&6; }
1727: if eval \${$3+:} false; then :
1728: $as_echo_n "(cached) " >&6
1729: else
1730: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731: /* end confdefs.h. */
1732: $4
1733: #include <$2>
1734: _ACEOF
1735: if ac_fn_c_try_compile "$LINENO"; then :
1736: eval "$3=yes"
1737: else
1738: eval "$3=no"
1739: fi
1740: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741: fi
1742: eval ac_res=\$$3
1743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744: $as_echo "$ac_res" >&6; }
1745: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746:
1747: } # ac_fn_c_check_header_compile
1748:
1749: # ac_fn_c_try_cpp LINENO
1750: # ----------------------
1751: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752: ac_fn_c_try_cpp ()
1753: {
1754: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755: if { { ac_try="$ac_cpp conftest.$ac_ext"
1756: case "(($ac_try" in
1757: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758: *) ac_try_echo=$ac_try;;
1759: esac
1760: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761: $as_echo "$ac_try_echo"; } >&5
1762: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763: ac_status=$?
1764: if test -s conftest.err; then
1765: grep -v '^ *+' conftest.err >conftest.er1
1766: cat conftest.er1 >&5
1767: mv -f conftest.er1 conftest.err
1768: fi
1769: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770: test $ac_status = 0; } > conftest.i && {
1771: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1772: test ! -s conftest.err
1773: }; then :
1774: ac_retval=0
1775: else
1776: $as_echo "$as_me: failed program was:" >&5
1777: sed 's/^/| /' conftest.$ac_ext >&5
1778:
1779: ac_retval=1
1780: fi
1781: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782: as_fn_set_status $ac_retval
1783:
1784: } # ac_fn_c_try_cpp
1785:
1786: # ac_fn_c_try_run LINENO
1787: # ----------------------
1788: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1789: # that executables *can* be run.
1790: ac_fn_c_try_run ()
1791: {
1792: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793: if { { ac_try="$ac_link"
1794: case "(($ac_try" in
1795: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796: *) ac_try_echo=$ac_try;;
1797: esac
1798: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799: $as_echo "$ac_try_echo"; } >&5
1800: (eval "$ac_link") 2>&5
1801: ac_status=$?
1802: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1804: { { case "(($ac_try" in
1805: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806: *) ac_try_echo=$ac_try;;
1807: esac
1808: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809: $as_echo "$ac_try_echo"; } >&5
1810: (eval "$ac_try") 2>&5
1811: ac_status=$?
1812: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813: test $ac_status = 0; }; }; then :
1814: ac_retval=0
1815: else
1816: $as_echo "$as_me: program exited with status $ac_status" >&5
1817: $as_echo "$as_me: failed program was:" >&5
1818: sed 's/^/| /' conftest.$ac_ext >&5
1819:
1820: ac_retval=$ac_status
1821: fi
1822: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824: as_fn_set_status $ac_retval
1825:
1826: } # ac_fn_c_try_run
1827:
1828: # ac_fn_c_check_func LINENO FUNC VAR
1829: # ----------------------------------
1830: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1831: ac_fn_c_check_func ()
1832: {
1833: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835: $as_echo_n "checking for $2... " >&6; }
1836: if eval \${$3+:} false; then :
1837: $as_echo_n "(cached) " >&6
1838: else
1839: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840: /* end confdefs.h. */
1841: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1843: #define $2 innocuous_$2
1844:
1845: /* System header to define __stub macros and hopefully few prototypes,
1846: which can conflict with char $2 (); below.
1847: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1848: <limits.h> exists even on freestanding compilers. */
1849:
1850: #ifdef __STDC__
1851: # include <limits.h>
1852: #else
1853: # include <assert.h>
1854: #endif
1855:
1856: #undef $2
1857:
1858: /* Override any GCC internal prototype to avoid an error.
1859: Use char because int might match the return type of a GCC
1860: builtin and then its argument prototype would still apply. */
1861: #ifdef __cplusplus
1862: extern "C"
1863: #endif
1864: char $2 ();
1865: /* The GNU C library defines this for functions which it implements
1866: to always fail with ENOSYS. Some functions are actually named
1867: something starting with __ and the normal name is an alias. */
1868: #if defined __stub_$2 || defined __stub___$2
1869: choke me
1870: #endif
1871:
1872: int
1873: main ()
1874: {
1875: return $2 ();
1876: ;
1877: return 0;
1878: }
1879: _ACEOF
1880: if ac_fn_c_try_link "$LINENO"; then :
1881: eval "$3=yes"
1882: else
1883: eval "$3=no"
1884: fi
1885: rm -f core conftest.err conftest.$ac_objext \
1886: conftest$ac_exeext conftest.$ac_ext
1887: fi
1888: eval ac_res=\$$3
1889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890: $as_echo "$ac_res" >&6; }
1891: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892:
1893: } # ac_fn_c_check_func
1894:
1895: # ac_fn_cxx_try_cpp LINENO
1896: # ------------------------
1897: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1898: ac_fn_cxx_try_cpp ()
1899: {
1900: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901: if { { ac_try="$ac_cpp conftest.$ac_ext"
1902: case "(($ac_try" in
1903: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904: *) ac_try_echo=$ac_try;;
1905: esac
1906: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907: $as_echo "$ac_try_echo"; } >&5
1908: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1909: ac_status=$?
1910: if test -s conftest.err; then
1911: grep -v '^ *+' conftest.err >conftest.er1
1912: cat conftest.er1 >&5
1913: mv -f conftest.er1 conftest.err
1914: fi
1915: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916: test $ac_status = 0; } > conftest.i && {
1917: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1918: test ! -s conftest.err
1919: }; then :
1920: ac_retval=0
1921: else
1922: $as_echo "$as_me: failed program was:" >&5
1923: sed 's/^/| /' conftest.$ac_ext >&5
1924:
1925: ac_retval=1
1926: fi
1927: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928: as_fn_set_status $ac_retval
1929:
1930: } # ac_fn_cxx_try_cpp
1931:
1932: # ac_fn_cxx_try_link LINENO
1933: # -------------------------
1934: # Try to link conftest.$ac_ext, and return whether this succeeded.
1935: ac_fn_cxx_try_link ()
1936: {
1937: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938: rm -f conftest.$ac_objext conftest$ac_exeext
1939: if { { ac_try="$ac_link"
1940: case "(($ac_try" in
1941: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942: *) ac_try_echo=$ac_try;;
1943: esac
1944: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945: $as_echo "$ac_try_echo"; } >&5
1946: (eval "$ac_link") 2>conftest.err
1947: ac_status=$?
1948: if test -s conftest.err; then
1949: grep -v '^ *+' conftest.err >conftest.er1
1950: cat conftest.er1 >&5
1951: mv -f conftest.er1 conftest.err
1952: fi
1953: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954: test $ac_status = 0; } && {
1955: test -z "$ac_cxx_werror_flag" ||
1956: test ! -s conftest.err
1957: } && test -s conftest$ac_exeext && {
1958: test "$cross_compiling" = yes ||
1.166 moko 1959: test -x conftest$ac_exeext
1.150 moko 1960: }; then :
1961: ac_retval=0
1962: else
1963: $as_echo "$as_me: failed program was:" >&5
1964: sed 's/^/| /' conftest.$ac_ext >&5
1965:
1966: ac_retval=1
1967: fi
1968: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970: # interfere with the next link command; also delete a directory that is
1971: # left behind by Apple's compiler. We do this before executing the actions.
1972: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974: as_fn_set_status $ac_retval
1975:
1976: } # ac_fn_cxx_try_link
1977:
1978: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1979: # ---------------------------------------------
1980: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1981: # accordingly.
1982: ac_fn_c_check_decl ()
1983: {
1984: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985: as_decl_name=`echo $2|sed 's/ *(.*//'`
1986: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1987: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1988: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1989: if eval \${$3+:} false; then :
1990: $as_echo_n "(cached) " >&6
1991: else
1992: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993: /* end confdefs.h. */
1994: $4
1995: int
1996: main ()
1997: {
1998: #ifndef $as_decl_name
1999: #ifdef __cplusplus
2000: (void) $as_decl_use;
2001: #else
2002: (void) $as_decl_name;
2003: #endif
2004: #endif
2005:
2006: ;
2007: return 0;
2008: }
2009: _ACEOF
2010: if ac_fn_c_try_compile "$LINENO"; then :
2011: eval "$3=yes"
2012: else
2013: eval "$3=no"
2014: fi
2015: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016: fi
2017: eval ac_res=\$$3
2018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019: $as_echo "$ac_res" >&6; }
2020: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021:
2022: } # ac_fn_c_check_decl
2023:
2024: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2025: # -------------------------------------------
2026: # Tests whether TYPE exists after having included INCLUDES, setting cache
2027: # variable VAR accordingly.
2028: ac_fn_c_check_type ()
2029: {
2030: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032: $as_echo_n "checking for $2... " >&6; }
2033: if eval \${$3+:} false; then :
2034: $as_echo_n "(cached) " >&6
2035: else
2036: eval "$3=no"
2037: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038: /* end confdefs.h. */
2039: $4
2040: int
2041: main ()
2042: {
2043: if (sizeof ($2))
2044: return 0;
2045: ;
2046: return 0;
2047: }
2048: _ACEOF
2049: if ac_fn_c_try_compile "$LINENO"; then :
2050: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051: /* end confdefs.h. */
2052: $4
2053: int
2054: main ()
2055: {
2056: if (sizeof (($2)))
2057: return 0;
2058: ;
2059: return 0;
2060: }
2061: _ACEOF
2062: if ac_fn_c_try_compile "$LINENO"; then :
2063:
2064: else
2065: eval "$3=yes"
2066: fi
2067: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068: fi
2069: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070: fi
2071: eval ac_res=\$$3
2072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073: $as_echo "$ac_res" >&6; }
2074: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075:
2076: } # ac_fn_c_check_type
2077:
1.156 moko 2078: # ac_fn_c_find_uintX_t LINENO BITS VAR
2079: # ------------------------------------
2080: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2081: # accordingly.
2082: ac_fn_c_find_uintX_t ()
2083: {
2084: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2086: $as_echo_n "checking for uint$2_t... " >&6; }
2087: if eval \${$3+:} false; then :
2088: $as_echo_n "(cached) " >&6
2089: else
2090: eval "$3=no"
2091: # Order is important - never check a type that is potentially smaller
2092: # than half of the expected target width.
2093: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2094: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2095: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096: /* end confdefs.h. */
2097: $ac_includes_default
2098: int
2099: main ()
2100: {
2101: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2102: test_array [0] = 0;
2103: return test_array [0];
1.156 moko 2104:
2105: ;
2106: return 0;
2107: }
2108: _ACEOF
2109: if ac_fn_c_try_compile "$LINENO"; then :
2110: case $ac_type in #(
2111: uint$2_t) :
2112: eval "$3=yes" ;; #(
2113: *) :
2114: eval "$3=\$ac_type" ;;
2115: esac
2116: fi
2117: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118: if eval test \"x\$"$3"\" = x"no"; then :
2119:
2120: else
2121: break
2122: fi
2123: done
2124: fi
2125: eval ac_res=\$$3
2126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127: $as_echo "$ac_res" >&6; }
2128: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129:
2130: } # ac_fn_c_find_uintX_t
2131:
1.161 moko 2132: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2133: # ----------------------------------------------------
2134: # Tries to find if the field MEMBER exists in type AGGR, after including
2135: # INCLUDES, setting cache variable VAR accordingly.
2136: ac_fn_c_check_member ()
2137: {
2138: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2140: $as_echo_n "checking for $2.$3... " >&6; }
2141: if eval \${$4+:} false; then :
2142: $as_echo_n "(cached) " >&6
2143: else
2144: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145: /* end confdefs.h. */
2146: $5
2147: int
2148: main ()
2149: {
2150: static $2 ac_aggr;
2151: if (ac_aggr.$3)
2152: return 0;
2153: ;
2154: return 0;
2155: }
2156: _ACEOF
2157: if ac_fn_c_try_compile "$LINENO"; then :
2158: eval "$4=yes"
2159: else
2160: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161: /* end confdefs.h. */
2162: $5
2163: int
2164: main ()
2165: {
2166: static $2 ac_aggr;
2167: if (sizeof ac_aggr.$3)
2168: return 0;
2169: ;
2170: return 0;
2171: }
2172: _ACEOF
2173: if ac_fn_c_try_compile "$LINENO"; then :
2174: eval "$4=yes"
2175: else
2176: eval "$4=no"
2177: fi
2178: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179: fi
2180: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181: fi
2182: eval ac_res=\$$4
2183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184: $as_echo "$ac_res" >&6; }
2185: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186:
2187: } # ac_fn_c_check_member
2188:
1.150 moko 2189: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2190: # -------------------------------------------------------
2191: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2192: # the include files in INCLUDES and setting the cache variable VAR
2193: # accordingly.
2194: ac_fn_c_check_header_mongrel ()
2195: {
2196: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197: if eval \${$3+:} false; then :
2198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199: $as_echo_n "checking for $2... " >&6; }
2200: if eval \${$3+:} false; then :
2201: $as_echo_n "(cached) " >&6
2202: fi
2203: eval ac_res=\$$3
2204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205: $as_echo "$ac_res" >&6; }
2206: else
2207: # Is the header compilable?
2208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2209: $as_echo_n "checking $2 usability... " >&6; }
2210: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211: /* end confdefs.h. */
2212: $4
2213: #include <$2>
2214: _ACEOF
2215: if ac_fn_c_try_compile "$LINENO"; then :
2216: ac_header_compiler=yes
2217: else
2218: ac_header_compiler=no
2219: fi
2220: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2222: $as_echo "$ac_header_compiler" >&6; }
2223:
2224: # Is the header present?
2225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2226: $as_echo_n "checking $2 presence... " >&6; }
2227: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228: /* end confdefs.h. */
2229: #include <$2>
2230: _ACEOF
2231: if ac_fn_c_try_cpp "$LINENO"; then :
2232: ac_header_preproc=yes
2233: else
2234: ac_header_preproc=no
2235: fi
2236: rm -f conftest.err conftest.i conftest.$ac_ext
2237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2238: $as_echo "$ac_header_preproc" >&6; }
2239:
2240: # So? What about this header?
2241: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2242: yes:no: )
2243: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2244: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2245: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2246: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2247: ;;
2248: no:yes:* )
2249: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2250: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2251: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2252: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2253: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2254: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2255: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2256: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2257: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2258: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2259: ;;
2260: esac
2261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2262: $as_echo_n "checking for $2... " >&6; }
2263: if eval \${$3+:} false; then :
2264: $as_echo_n "(cached) " >&6
2265: else
2266: eval "$3=\$ac_header_compiler"
2267: fi
2268: eval ac_res=\$$3
2269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270: $as_echo "$ac_res" >&6; }
2271: fi
2272: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273:
2274: } # ac_fn_c_check_header_mongrel
2275: cat >config.log <<_ACEOF
2276: This file contains any messages produced by compilers while
2277: running configure, to aid debugging if configure makes a mistake.
2278:
1.169 ! moko 2279: It was created by parser $as_me 3.4.4b, which was
1.166 moko 2280: generated by GNU Autoconf 2.69. Invocation command line was
1.150 moko 2281:
2282: $ $0 $@
2283:
2284: _ACEOF
2285: exec 5>>config.log
2286: {
2287: cat <<_ASUNAME
2288: ## --------- ##
2289: ## Platform. ##
2290: ## --------- ##
2291:
2292: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2293: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2294: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2295: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2296: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2297:
2298: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2299: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2300:
2301: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2302: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2303: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2304: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2305: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2306: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2307: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2308:
2309: _ASUNAME
2310:
2311: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312: for as_dir in $PATH
2313: do
2314: IFS=$as_save_IFS
2315: test -z "$as_dir" && as_dir=.
1.150 moko 2316: $as_echo "PATH: $as_dir"
2317: done
2318: IFS=$as_save_IFS
1.1 paf 2319:
1.62 paf 2320: } >&5
2321:
2322: cat >&5 <<_ACEOF
2323:
2324:
2325: ## ----------- ##
2326: ## Core tests. ##
2327: ## ----------- ##
2328:
2329: _ACEOF
2330:
2331:
2332: # Keep a trace of the command line.
2333: # Strip out --no-create and --no-recursion so they do not pile up.
2334: # Strip out --silent because we don't want to record it for future runs.
2335: # Also quote any args containing shell meta-characters.
2336: # Make two passes to allow for proper duplicate-argument suppression.
2337: ac_configure_args=
2338: ac_configure_args0=
2339: ac_configure_args1=
2340: ac_must_keep_next=false
2341: for ac_pass in 1 2
2342: do
2343: for ac_arg
2344: do
2345: case $ac_arg in
2346: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2347: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2348: | -silent | --silent | --silen | --sile | --sil)
2349: continue ;;
1.150 moko 2350: *\'*)
2351: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2352: esac
2353: case $ac_pass in
1.150 moko 2354: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2355: 2)
1.150 moko 2356: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2357: if test $ac_must_keep_next = true; then
1.86 paf 2358: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2359: else
1.86 paf 2360: case $ac_arg in
2361: *=* | --config-cache | -C | -disable-* | --disable-* \
2362: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2363: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2364: | -with-* | --with-* | -without-* | --without-* | --x)
2365: case "$ac_configure_args0 " in
2366: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2367: esac
2368: ;;
2369: -* ) ac_must_keep_next=true ;;
2370: esac
1.62 paf 2371: fi
1.150 moko 2372: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2373: ;;
2374: esac
2375: done
2376: done
1.150 moko 2377: { ac_configure_args0=; unset ac_configure_args0;}
2378: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2379:
2380: # When interrupted or exit'd, cleanup temporary files, and complete
2381: # config.log. We remove comments because anyway the quotes in there
2382: # would cause problems or look ugly.
1.150 moko 2383: # WARNING: Use '\'' to represent an apostrophe within the trap.
2384: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2385: trap 'exit_status=$?
2386: # Save into config.log some information that might help in debugging.
2387: {
2388: echo
2389:
1.150 moko 2390: $as_echo "## ---------------- ##
1.62 paf 2391: ## Cache variables. ##
1.150 moko 2392: ## ---------------- ##"
1.62 paf 2393: echo
2394: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2395: (
2396: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2397: eval ac_val=\$$ac_var
2398: case $ac_val in #(
2399: *${as_nl}*)
2400: case $ac_var in #(
2401: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2402: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2403: esac
2404: case $ac_var in #(
2405: _ | IFS | as_nl) ;; #(
2406: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2407: *) { eval $ac_var=; unset $ac_var;} ;;
2408: esac ;;
2409: esac
2410: done
1.62 paf 2411: (set) 2>&1 |
1.150 moko 2412: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2413: *${as_nl}ac_space=\ *)
1.62 paf 2414: sed -n \
1.150 moko 2415: "s/'\''/'\''\\\\'\'''\''/g;
2416: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2417: ;; #(
1.62 paf 2418: *)
1.150 moko 2419: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2420: ;;
1.150 moko 2421: esac |
2422: sort
2423: )
1.62 paf 2424: echo
2425:
1.150 moko 2426: $as_echo "## ----------------- ##
1.62 paf 2427: ## Output variables. ##
1.150 moko 2428: ## ----------------- ##"
1.62 paf 2429: echo
2430: for ac_var in $ac_subst_vars
2431: do
1.150 moko 2432: eval ac_val=\$$ac_var
2433: case $ac_val in
2434: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2435: esac
2436: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2437: done | sort
2438: echo
2439:
2440: if test -n "$ac_subst_files"; then
1.150 moko 2441: $as_echo "## ------------------- ##
2442: ## File substitutions. ##
2443: ## ------------------- ##"
1.62 paf 2444: echo
2445: for ac_var in $ac_subst_files
2446: do
1.150 moko 2447: eval ac_val=\$$ac_var
2448: case $ac_val in
2449: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450: esac
2451: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2452: done | sort
2453: echo
2454: fi
2455:
2456: if test -s confdefs.h; then
1.150 moko 2457: $as_echo "## ----------- ##
1.62 paf 2458: ## confdefs.h. ##
1.150 moko 2459: ## ----------- ##"
1.62 paf 2460: echo
1.150 moko 2461: cat confdefs.h
1.62 paf 2462: echo
2463: fi
2464: test "$ac_signal" != 0 &&
1.150 moko 2465: $as_echo "$as_me: caught signal $ac_signal"
2466: $as_echo "$as_me: exit $exit_status"
1.62 paf 2467: } >&5
1.150 moko 2468: rm -f core *.core core.conftest.* &&
2469: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2470: exit $exit_status
1.150 moko 2471: ' 0
1.62 paf 2472: for ac_signal in 1 2 13 15; do
1.150 moko 2473: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2474: done
2475: ac_signal=0
2476:
2477: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2478: rm -f -r conftest* confdefs.h
2479:
2480: $as_echo "/* confdefs.h */" > confdefs.h
1.62 paf 2481:
2482: # Predefined preprocessor variables.
2483:
2484: cat >>confdefs.h <<_ACEOF
2485: #define PACKAGE_NAME "$PACKAGE_NAME"
2486: _ACEOF
2487:
2488: cat >>confdefs.h <<_ACEOF
2489: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2490: _ACEOF
2491:
2492: cat >>confdefs.h <<_ACEOF
2493: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2494: _ACEOF
2495:
2496: cat >>confdefs.h <<_ACEOF
2497: #define PACKAGE_STRING "$PACKAGE_STRING"
2498: _ACEOF
2499:
1.150 moko 2500: cat >>confdefs.h <<_ACEOF
2501: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2502: _ACEOF
1.62 paf 2503:
2504: cat >>confdefs.h <<_ACEOF
1.150 moko 2505: #define PACKAGE_URL "$PACKAGE_URL"
1.62 paf 2506: _ACEOF
2507:
2508:
2509: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2510: # Prefer an explicitly selected file to automatically selected ones.
2511: ac_site_file1=NONE
2512: ac_site_file2=NONE
2513: if test -n "$CONFIG_SITE"; then
2514: # We do not want a PATH search for config.site.
2515: case $CONFIG_SITE in #((
2516: -*) ac_site_file1=./$CONFIG_SITE;;
2517: */*) ac_site_file1=$CONFIG_SITE;;
2518: *) ac_site_file1=./$CONFIG_SITE;;
2519: esac
2520: elif test "x$prefix" != xNONE; then
2521: ac_site_file1=$prefix/share/config.site
2522: ac_site_file2=$prefix/etc/config.site
2523: else
2524: ac_site_file1=$ac_default_prefix/share/config.site
2525: ac_site_file2=$ac_default_prefix/etc/config.site
2526: fi
2527: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2528: do
2529: test "x$ac_site_file" = xNONE && continue
2530: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2531: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2532: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2533: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2534: . "$ac_site_file" \
2535: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2536: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2537: as_fn_error $? "failed to load site script $ac_site_file
2538: See \`config.log' for more details" "$LINENO" 5; }
1.1 paf 2539: fi
2540: done
2541:
2542: if test -r "$cache_file"; then
1.150 moko 2543: # Some versions of bash will fail to source /dev/null (special files
2544: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2545: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2546: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2547: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2548: case $cache_file in
1.150 moko 2549: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2550: *) . "./$cache_file";;
1.62 paf 2551: esac
2552: fi
1.1 paf 2553: else
1.150 moko 2554: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2555: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2556: >$cache_file
2557: fi
2558:
2559: # Check that the precious variables saved in the cache have kept the same
2560: # value.
2561: ac_cache_corrupted=false
1.150 moko 2562: for ac_var in $ac_precious_vars; do
1.62 paf 2563: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2564: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 2565: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2566: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 2567: case $ac_old_set,$ac_new_set in
2568: set,)
1.150 moko 2569: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2570: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.62 paf 2571: ac_cache_corrupted=: ;;
2572: ,set)
1.150 moko 2573: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2574: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.62 paf 2575: ac_cache_corrupted=: ;;
2576: ,);;
2577: *)
2578: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 2579: # differences in whitespace do not lead to failure.
2580: ac_old_val_w=`echo x $ac_old_val`
2581: ac_new_val_w=`echo x $ac_new_val`
2582: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2583: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2584: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2585: ac_cache_corrupted=:
2586: else
2587: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2588: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2589: eval $ac_var=\$ac_old_val
2590: fi
2591: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2592: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2593: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2594: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.62 paf 2595: fi;;
2596: esac
2597: # Pass precious variables to config.status.
2598: if test "$ac_new_set" = set; then
2599: case $ac_new_val in
1.150 moko 2600: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2601: *) ac_arg=$ac_var=$ac_new_val ;;
2602: esac
2603: case " $ac_configure_args " in
2604: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 2605: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 2606: esac
2607: fi
2608: done
2609: if $ac_cache_corrupted; then
1.150 moko 2610: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2613: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2614: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2615: fi
2616: ## -------------------- ##
2617: ## Main body of script. ##
2618: ## -------------------- ##
1.1 paf 2619:
2620: ac_ext=c
2621: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 2622: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625:
2626:
2627:
2628:
2629:
1.150 moko 2630: am__api_version='1.11'
1.62 paf 2631:
1.1 paf 2632: ac_aux_dir=
1.150 moko 2633: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2634: if test -f "$ac_dir/install-sh"; then
1.1 paf 2635: ac_aux_dir=$ac_dir
2636: ac_install_sh="$ac_aux_dir/install-sh -c"
2637: break
1.150 moko 2638: elif test -f "$ac_dir/install.sh"; then
1.1 paf 2639: ac_aux_dir=$ac_dir
2640: ac_install_sh="$ac_aux_dir/install.sh -c"
2641: break
1.150 moko 2642: elif test -f "$ac_dir/shtool"; then
1.62 paf 2643: ac_aux_dir=$ac_dir
2644: ac_install_sh="$ac_aux_dir/shtool install -c"
2645: break
1.1 paf 2646: fi
2647: done
2648: if test -z "$ac_aux_dir"; then
1.150 moko 2649: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2650: fi
2651:
2652: # These three variables are undocumented and unsupported,
2653: # and are intended to be withdrawn in a future Autoconf release.
2654: # They can cause serious problems if a builder's source tree is in a directory
2655: # whose full name contains unusual characters.
2656: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2657: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2658: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2659:
1.1 paf 2660:
2661: # Find a good install program. We prefer a C program (faster),
2662: # so one script is as good as another. But avoid the broken or
2663: # incompatible versions:
2664: # SysV /etc/install, /usr/sbin/install
2665: # SunOS /usr/etc/install
2666: # IRIX /sbin/install
2667: # AIX /bin/install
1.62 paf 2668: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2669: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2670: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2671: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 2672: # OS/2's system install, which has a completely different semantic
1.1 paf 2673: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 2674: # Reject install programs that cannot install multiple files.
2675: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2676: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 paf 2677: if test -z "$INSTALL"; then
1.150 moko 2678: if ${ac_cv_path_install+:} false; then :
2679: $as_echo_n "(cached) " >&6
1.1 paf 2680: else
1.62 paf 2681: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682: for as_dir in $PATH
2683: do
2684: IFS=$as_save_IFS
2685: test -z "$as_dir" && as_dir=.
1.150 moko 2686: # Account for people who put trailing slashes in PATH elements.
2687: case $as_dir/ in #((
2688: ./ | .// | /[cC]/* | \
1.62 paf 2689: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 2690: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 2691: /usr/ucb/* ) ;;
2692: *)
2693: # OSF1 and SCO ODT 3.0 have their own names for install.
2694: # Don't use installbsd from OSF since it installs stuff as root
2695: # by default.
2696: for ac_prog in ginstall scoinst install; do
2697: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2698: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.86 paf 2699: if test $ac_prog = install &&
2700: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701: # AIX install. It has an incompatible calling convention.
2702: :
2703: elif test $ac_prog = install &&
2704: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705: # program-specific install script used by HP pwplus--don't use.
2706: :
2707: else
1.150 moko 2708: rm -rf conftest.one conftest.two conftest.dir
2709: echo one > conftest.one
2710: echo two > conftest.two
2711: mkdir conftest.dir
2712: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2713: test -s conftest.one && test -s conftest.two &&
2714: test -s conftest.dir/conftest.one &&
2715: test -s conftest.dir/conftest.two
2716: then
2717: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2718: break 3
2719: fi
1.86 paf 2720: fi
2721: fi
1.1 paf 2722: done
1.62 paf 2723: done
2724: ;;
2725: esac
2726:
1.150 moko 2727: done
2728: IFS=$as_save_IFS
2729:
2730: rm -rf conftest.one conftest.two conftest.dir
1.1 paf 2731:
2732: fi
2733: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 2734: INSTALL=$ac_cv_path_install
1.1 paf 2735: else
1.150 moko 2736: # As a last resort, use the slow shell script. Don't cache a
2737: # value for INSTALL within a source directory, because that will
1.1 paf 2738: # break other packages using the cache if that directory is
1.150 moko 2739: # removed, or if the value is a relative name.
1.62 paf 2740: INSTALL=$ac_install_sh
1.1 paf 2741: fi
2742: fi
1.150 moko 2743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2744: $as_echo "$INSTALL" >&6; }
1.1 paf 2745:
2746: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2747: # It thinks the first close brace ends the variable substitution.
2748: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2749:
1.62 paf 2750: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2751:
2752: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2753:
1.150 moko 2754: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2755: $as_echo_n "checking whether build environment is sane... " >&6; }
1.1 paf 2756: # Just in case
2757: sleep 1
1.62 paf 2758: echo timestamp > conftest.file
1.150 moko 2759: # Reject unsafe characters in $srcdir or the absolute working directory
2760: # name. Accept space and tab only in the latter.
2761: am_lf='
2762: '
2763: case `pwd` in
2764: *[\\\"\#\$\&\'\`$am_lf]*)
2765: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2766: esac
2767: case $srcdir in
2768: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2769: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2770: esac
2771:
1.1 paf 2772: # Do `set' in a subshell so we don't clobber the current shell's
2773: # arguments. Must try -L first in case configure is actually a
2774: # symlink; some systems play weird games with the mod time of symlinks
2775: # (eg FreeBSD returns the mod time of the symlink's containing
2776: # directory).
2777: if (
1.150 moko 2778: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.1 paf 2779: if test "$*" = "X"; then
2780: # -L didn't work.
1.150 moko 2781: set X `ls -t "$srcdir/configure" conftest.file`
1.1 paf 2782: fi
1.62 paf 2783: rm -f conftest.file
2784: if test "$*" != "X $srcdir/configure conftest.file" \
2785: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 2786:
2787: # If neither matched, then we have a broken ls. This can happen
2788: # if, for instance, CONFIG_SHELL is bash and it inherits a
2789: # broken ls alias from the environment. This has actually
2790: # happened. Such a system could not be considered "sane".
1.150 moko 2791: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2792: alias in your environment" "$LINENO" 5
1.1 paf 2793: fi
2794:
1.62 paf 2795: test "$2" = conftest.file
1.1 paf 2796: )
2797: then
2798: # Ok.
2799: :
2800: else
1.150 moko 2801: as_fn_error $? "newly created file is older than distributed files!
2802: Check your system clock" "$LINENO" 5
1.1 paf 2803: fi
1.150 moko 2804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2805: $as_echo "yes" >&6; }
1.1 paf 2806: test "$program_prefix" != NONE &&
1.150 moko 2807: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 2808: # Use a double $ so make ignores it.
2809: test "$program_suffix" != NONE &&
1.150 moko 2810: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2811: # Double any \ or $.
1.62 paf 2812: # By default was `s,x,x', remove it if useless.
1.150 moko 2813: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2814: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.62 paf 2815:
2816: # expand $ac_aux_dir to an absolute path
2817: am_aux_dir=`cd $ac_aux_dir && pwd`
2818:
1.150 moko 2819: if test x"${MISSING+set}" != xset; then
2820: case $am_aux_dir in
2821: *\ * | *\ *)
2822: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2823: *)
2824: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2825: esac
2826: fi
1.62 paf 2827: # Use eval to expand $SHELL
2828: if eval "$MISSING --run true"; then
2829: am_missing_run="$MISSING --run "
2830: else
2831: am_missing_run=
1.150 moko 2832: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2833: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.62 paf 2834: fi
2835:
1.150 moko 2836: if test x"${install_sh}" != xset; then
2837: case $am_aux_dir in
2838: *\ * | *\ *)
2839: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2840: *)
2841: install_sh="\${SHELL} $am_aux_dir/install-sh"
2842: esac
1.86 paf 2843: fi
2844:
1.150 moko 2845: # Installed binaries are usually stripped using `strip' when the user
2846: # run `make install-strip'. However `strip' might not be the right
2847: # tool to use in cross-compilation environments, therefore Automake
2848: # will honor the `STRIP' environment variable to overrule this program.
2849: if test "$cross_compiling" != no; then
2850: if test -n "$ac_tool_prefix"; then
2851: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2852: set dummy ${ac_tool_prefix}strip; ac_word=$2
2853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854: $as_echo_n "checking for $ac_word... " >&6; }
2855: if ${ac_cv_prog_STRIP+:} false; then :
2856: $as_echo_n "(cached) " >&6
2857: else
2858: if test -n "$STRIP"; then
2859: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2860: else
2861: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862: for as_dir in $PATH
2863: do
2864: IFS=$as_save_IFS
2865: test -z "$as_dir" && as_dir=.
2866: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2867: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2868: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2869: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870: break 2
2871: fi
2872: done
2873: done
2874: IFS=$as_save_IFS
2875:
2876: fi
2877: fi
2878: STRIP=$ac_cv_prog_STRIP
2879: if test -n "$STRIP"; then
2880: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2881: $as_echo "$STRIP" >&6; }
2882: else
2883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884: $as_echo "no" >&6; }
2885: fi
2886:
2887:
2888: fi
2889: if test -z "$ac_cv_prog_STRIP"; then
2890: ac_ct_STRIP=$STRIP
2891: # Extract the first word of "strip", so it can be a program name with args.
2892: set dummy strip; ac_word=$2
2893: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894: $as_echo_n "checking for $ac_word... " >&6; }
2895: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2896: $as_echo_n "(cached) " >&6
2897: else
2898: if test -n "$ac_ct_STRIP"; then
2899: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2900: else
2901: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902: for as_dir in $PATH
2903: do
2904: IFS=$as_save_IFS
2905: test -z "$as_dir" && as_dir=.
2906: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2907: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2908: ac_cv_prog_ac_ct_STRIP="strip"
2909: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910: break 2
2911: fi
2912: done
2913: done
2914: IFS=$as_save_IFS
2915:
2916: fi
2917: fi
2918: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2919: if test -n "$ac_ct_STRIP"; then
2920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2921: $as_echo "$ac_ct_STRIP" >&6; }
2922: else
2923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924: $as_echo "no" >&6; }
2925: fi
2926:
2927: if test "x$ac_ct_STRIP" = x; then
2928: STRIP=":"
2929: else
2930: case $cross_compiling:$ac_tool_warned in
2931: yes:)
2932: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934: ac_tool_warned=yes ;;
2935: esac
2936: STRIP=$ac_ct_STRIP
2937: fi
2938: else
2939: STRIP="$ac_cv_prog_STRIP"
2940: fi
2941:
2942: fi
2943: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2944:
2945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2946: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2947: if test -z "$MKDIR_P"; then
2948: if ${ac_cv_path_mkdir+:} false; then :
2949: $as_echo_n "(cached) " >&6
2950: else
2951: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2953: do
2954: IFS=$as_save_IFS
2955: test -z "$as_dir" && as_dir=.
2956: for ac_prog in mkdir gmkdir; do
2957: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2958: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.150 moko 2959: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2960: 'mkdir (GNU coreutils) '* | \
2961: 'mkdir (coreutils) '* | \
2962: 'mkdir (fileutils) '4.1*)
2963: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2964: break 3;;
2965: esac
2966: done
2967: done
2968: done
2969: IFS=$as_save_IFS
2970:
2971: fi
2972:
2973: test -d ./--version && rmdir ./--version
2974: if test "${ac_cv_path_mkdir+set}" = set; then
2975: MKDIR_P="$ac_cv_path_mkdir -p"
2976: else
2977: # As a last resort, use the slow shell script. Don't cache a
2978: # value for MKDIR_P within a source directory, because that will
2979: # break other packages using the cache if that directory is
2980: # removed, or if the value is a relative name.
2981: MKDIR_P="$ac_install_sh -d"
2982: fi
2983: fi
2984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2985: $as_echo "$MKDIR_P" >&6; }
2986:
2987: mkdir_p="$MKDIR_P"
2988: case $mkdir_p in
2989: [\\/$]* | ?:[\\/]*) ;;
2990: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2991: esac
2992:
2993: for ac_prog in gawk mawk nawk awk
1.62 paf 2994: do
2995: # Extract the first word of "$ac_prog", so it can be a program name with args.
2996: set dummy $ac_prog; ac_word=$2
1.150 moko 2997: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998: $as_echo_n "checking for $ac_word... " >&6; }
2999: if ${ac_cv_prog_AWK+:} false; then :
3000: $as_echo_n "(cached) " >&6
1.62 paf 3001: else
3002: if test -n "$AWK"; then
3003: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3004: else
3005: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006: for as_dir in $PATH
3007: do
3008: IFS=$as_save_IFS
3009: test -z "$as_dir" && as_dir=.
1.150 moko 3010: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3011: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3012: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3013: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3014: break 2
3015: fi
3016: done
1.150 moko 3017: done
3018: IFS=$as_save_IFS
1.62 paf 3019:
3020: fi
3021: fi
3022: AWK=$ac_cv_prog_AWK
3023: if test -n "$AWK"; then
1.150 moko 3024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3025: $as_echo "$AWK" >&6; }
1.62 paf 3026: else
1.150 moko 3027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028: $as_echo "no" >&6; }
1.62 paf 3029: fi
1.1 paf 3030:
1.150 moko 3031:
1.62 paf 3032: test -n "$AWK" && break
3033: done
1.1 paf 3034:
1.150 moko 3035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3036: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3037: set x ${MAKE-make}
3038: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3039: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3040: $as_echo_n "(cached) " >&6
1.1 paf 3041: else
1.62 paf 3042: cat >conftest.make <<\_ACEOF
1.150 moko 3043: SHELL = /bin/sh
1.1 paf 3044: all:
1.150 moko 3045: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3046: _ACEOF
1.150 moko 3047: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3048: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3049: *@@@%%%=?*=@@@%%%*)
3050: eval ac_cv_prog_make_${ac_make}_set=yes;;
3051: *)
3052: eval ac_cv_prog_make_${ac_make}_set=no;;
3053: esac
1.62 paf 3054: rm -f conftest.make
1.1 paf 3055: fi
1.150 moko 3056: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058: $as_echo "yes" >&6; }
1.1 paf 3059: SET_MAKE=
3060: else
1.150 moko 3061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062: $as_echo "no" >&6; }
1.1 paf 3063: SET_MAKE="MAKE=${MAKE-make}"
3064: fi
3065:
1.86 paf 3066: rm -rf .tst 2>/dev/null
3067: mkdir .tst 2>/dev/null
3068: if test -d .tst; then
3069: am__leading_dot=.
3070: else
3071: am__leading_dot=_
3072: fi
3073: rmdir .tst 2>/dev/null
3074:
1.150 moko 3075: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3076: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3077: # is not polluted with repeated "-I."
3078: am__isrc=' -I$(srcdir)'
3079: # test to see if srcdir already configured
3080: if test -f $srcdir/config.status; then
3081: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3082: fi
1.62 paf 3083: fi
3084:
3085: # test whether we have cygpath
3086: if test -z "$CYGPATH_W"; then
3087: if (cygpath --version) >/dev/null 2>/dev/null; then
3088: CYGPATH_W='cygpath -w'
3089: else
3090: CYGPATH_W=echo
3091: fi
3092: fi
3093:
3094:
3095: # Define the identity of the package.
1.128 moko 3096: PACKAGE='parser'
1.169 ! moko 3097: VERSION='3.4.4b'
1.128 moko 3098:
3099:
3100: cat >>confdefs.h <<_ACEOF
3101: #define PACKAGE "$PACKAGE"
3102: _ACEOF
1.1 paf 3103:
3104:
1.128 moko 3105: cat >>confdefs.h <<_ACEOF
3106: #define VERSION "$VERSION"
3107: _ACEOF
3108:
1.62 paf 3109: # Some tools Automake needs.
3110:
3111: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3112:
3113:
3114: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3115:
3116:
3117: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3118:
3119:
3120: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3121:
3122:
3123: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 3124:
1.62 paf 3125: # We need awk for the "check" target. The system "awk" is bad on
3126: # some platforms.
1.86 paf 3127: # Always define AMTAR for backward compatibility.
3128:
3129: AMTAR=${AMTAR-"${am_missing_run}tar"}
3130:
3131: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3132:
3133:
1.62 paf 3134:
1.1 paf 3135:
3136:
3137:
1.128 moko 3138:
1.12 paf 3139: P3S=`cd $srcdir/src ; pwd`
1.1 paf 3140:
3141:
1.128 moko 3142:
1.41 paf 3143: # Make sure we can run config.sub.
1.150 moko 3144: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3145: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.62 paf 3146:
1.150 moko 3147: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3148: $as_echo_n "checking build system type... " >&6; }
3149: if ${ac_cv_build+:} false; then :
3150: $as_echo_n "(cached) " >&6
3151: else
3152: ac_build_alias=$build_alias
3153: test "x$ac_build_alias" = x &&
3154: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3155: test "x$ac_build_alias" = x &&
3156: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3157: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3158: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3159:
3160: fi
3161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3162: $as_echo "$ac_cv_build" >&6; }
3163: case $ac_cv_build in
3164: *-*-*) ;;
3165: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3166: esac
3167: build=$ac_cv_build
3168: ac_save_IFS=$IFS; IFS='-'
3169: set x $ac_cv_build
3170: shift
3171: build_cpu=$1
3172: build_vendor=$2
3173: shift; shift
3174: # Remember, the first character of IFS is used to create $*,
3175: # except with old shells:
3176: build_os=$*
3177: IFS=$ac_save_IFS
3178: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3179:
3180:
3181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3182: $as_echo_n "checking host system type... " >&6; }
3183: if ${ac_cv_host+:} false; then :
3184: $as_echo_n "(cached) " >&6
3185: else
3186: if test "x$host_alias" = x; then
3187: ac_cv_host=$ac_cv_build
3188: else
3189: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3190: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.62 paf 3191: fi
3192:
3193: fi
1.150 moko 3194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3195: $as_echo "$ac_cv_host" >&6; }
3196: case $ac_cv_host in
3197: *-*-*) ;;
3198: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3199: esac
1.62 paf 3200: host=$ac_cv_host
1.150 moko 3201: ac_save_IFS=$IFS; IFS='-'
3202: set x $ac_cv_host
3203: shift
3204: host_cpu=$1
3205: host_vendor=$2
3206: shift; shift
3207: # Remember, the first character of IFS is used to create $*,
3208: # except with old shells:
3209: host_os=$*
3210: IFS=$ac_save_IFS
3211: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 3212:
3213:
3214:
1.148 moko 3215: cat >>confdefs.h <<_ACEOF
3216: #define PARSER_VERSION "$VERSION (compiled on $host)"
1.147 moko 3217: _ACEOF
3218:
3219:
1.41 paf 3220:
1.67 paf 3221: case $host_os in
3222: *cygwin* )
1.150 moko 3223: $as_echo "#define CYGWIN /**/" >>confdefs.h
1.67 paf 3224: ;;
3225: esac
1.41 paf 3226:
1.128 moko 3227:
1.1 paf 3228:
1.62 paf 3229: for ac_prog in gawk mawk nawk awk
1.41 paf 3230: do
1.62 paf 3231: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3232: set dummy $ac_prog; ac_word=$2
1.150 moko 3233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234: $as_echo_n "checking for $ac_word... " >&6; }
3235: if ${ac_cv_prog_AWK+:} false; then :
3236: $as_echo_n "(cached) " >&6
1.41 paf 3237: else
3238: if test -n "$AWK"; then
3239: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3240: else
1.62 paf 3241: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242: for as_dir in $PATH
3243: do
3244: IFS=$as_save_IFS
3245: test -z "$as_dir" && as_dir=.
1.150 moko 3246: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3247: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3248: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3249: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3250: break 2
3251: fi
3252: done
1.150 moko 3253: done
3254: IFS=$as_save_IFS
1.62 paf 3255:
1.41 paf 3256: fi
3257: fi
1.62 paf 3258: AWK=$ac_cv_prog_AWK
1.41 paf 3259: if test -n "$AWK"; then
1.150 moko 3260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3261: $as_echo "$AWK" >&6; }
1.41 paf 3262: else
1.150 moko 3263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264: $as_echo "no" >&6; }
1.41 paf 3265: fi
3266:
1.150 moko 3267:
1.62 paf 3268: test -n "$AWK" && break
1.41 paf 3269: done
3270:
3271:
3272: for ac_prog in 'bison -y' byacc
3273: do
1.62 paf 3274: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3275: set dummy $ac_prog; ac_word=$2
1.150 moko 3276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277: $as_echo_n "checking for $ac_word... " >&6; }
3278: if ${ac_cv_prog_YACC+:} false; then :
3279: $as_echo_n "(cached) " >&6
1.41 paf 3280: else
3281: if test -n "$YACC"; then
3282: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3283: else
1.62 paf 3284: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285: for as_dir in $PATH
3286: do
3287: IFS=$as_save_IFS
3288: test -z "$as_dir" && as_dir=.
1.150 moko 3289: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3290: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3291: ac_cv_prog_YACC="$ac_prog"
1.150 moko 3292: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3293: break 2
3294: fi
3295: done
1.150 moko 3296: done
3297: IFS=$as_save_IFS
1.62 paf 3298:
1.41 paf 3299: fi
3300: fi
1.62 paf 3301: YACC=$ac_cv_prog_YACC
1.41 paf 3302: if test -n "$YACC"; then
1.150 moko 3303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3304: $as_echo "$YACC" >&6; }
1.41 paf 3305: else
1.150 moko 3306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307: $as_echo "no" >&6; }
1.41 paf 3308: fi
3309:
1.150 moko 3310:
1.62 paf 3311: test -n "$YACC" && break
1.41 paf 3312: done
3313: test -n "$YACC" || YACC="yacc"
3314:
3315: if test "$YACC" != "bison -y"; then
1.150 moko 3316: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
3317: $as_echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 3318: else
1.150 moko 3319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
3320: $as_echo_n "checking bison version... " >&6; }
1.67 paf 3321: oldIFS=$IFS; IFS=.
3322: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
3323: IFS=$oldIFS
3324: if test "$1" = "1" -a "$2" -lt "25"; then
1.150 moko 3325: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
3326: $as_echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 3327: fi
1.150 moko 3328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
3329: $as_echo "$1.$2 (ok)" >&6; }
1.62 paf 3330: fi
3331:
1.150 moko 3332: ac_ext=cpp
1.66 paf 3333: ac_cpp='$CXXCPP $CPPFLAGS'
3334: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 3337: if test -z "$CXX"; then
3338: if test -n "$CCC"; then
3339: CXX=$CCC
3340: else
3341: if test -n "$ac_tool_prefix"; then
3342: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3343: do
3344: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 3346: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347: $as_echo_n "checking for $ac_word... " >&6; }
3348: if ${ac_cv_prog_CXX+:} false; then :
3349: $as_echo_n "(cached) " >&6
1.62 paf 3350: else
1.66 paf 3351: if test -n "$CXX"; then
3352: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 3353: else
3354: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355: for as_dir in $PATH
3356: do
3357: IFS=$as_save_IFS
3358: test -z "$as_dir" && as_dir=.
1.150 moko 3359: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3360: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3361: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.150 moko 3362: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3363: break 2
3364: fi
3365: done
1.150 moko 3366: done
3367: IFS=$as_save_IFS
1.62 paf 3368:
3369: fi
3370: fi
1.66 paf 3371: CXX=$ac_cv_prog_CXX
3372: if test -n "$CXX"; then
1.150 moko 3373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3374: $as_echo "$CXX" >&6; }
1.62 paf 3375: else
1.150 moko 3376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377: $as_echo "no" >&6; }
1.41 paf 3378: fi
3379:
1.150 moko 3380:
1.66 paf 3381: test -n "$CXX" && break
3382: done
1.62 paf 3383: fi
1.66 paf 3384: if test -z "$CXX"; then
3385: ac_ct_CXX=$CXX
1.150 moko 3386: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3387: do
3388: # Extract the first word of "$ac_prog", so it can be a program name with args.
3389: set dummy $ac_prog; ac_word=$2
1.150 moko 3390: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391: $as_echo_n "checking for $ac_word... " >&6; }
3392: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3393: $as_echo_n "(cached) " >&6
1.62 paf 3394: else
1.66 paf 3395: if test -n "$ac_ct_CXX"; then
3396: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 3397: else
3398: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399: for as_dir in $PATH
3400: do
3401: IFS=$as_save_IFS
3402: test -z "$as_dir" && as_dir=.
1.150 moko 3403: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3404: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3405: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.150 moko 3406: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3407: break 2
3408: fi
3409: done
1.150 moko 3410: done
3411: IFS=$as_save_IFS
1.62 paf 3412:
3413: fi
3414: fi
1.66 paf 3415: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3416: if test -n "$ac_ct_CXX"; then
1.150 moko 3417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3418: $as_echo "$ac_ct_CXX" >&6; }
1.62 paf 3419: else
1.150 moko 3420: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421: $as_echo "no" >&6; }
1.62 paf 3422: fi
3423:
1.150 moko 3424:
1.66 paf 3425: test -n "$ac_ct_CXX" && break
3426: done
3427:
1.150 moko 3428: if test "x$ac_ct_CXX" = x; then
3429: CXX="g++"
3430: else
3431: case $cross_compiling:$ac_tool_warned in
3432: yes:)
3433: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435: ac_tool_warned=yes ;;
3436: esac
3437: CXX=$ac_ct_CXX
3438: fi
1.62 paf 3439: fi
3440:
1.150 moko 3441: fi
3442: fi
1.66 paf 3443: # Provide some information about the compiler.
1.150 moko 3444: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3445: set X $ac_compile
3446: ac_compiler=$2
3447: for ac_option in --version -v -V -qversion; do
3448: { { ac_try="$ac_compiler $ac_option >&5"
3449: case "(($ac_try" in
3450: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451: *) ac_try_echo=$ac_try;;
3452: esac
3453: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454: $as_echo "$ac_try_echo"; } >&5
3455: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 3456: ac_status=$?
1.150 moko 3457: if test -s conftest.err; then
3458: sed '10a\
3459: ... rest of stderr output deleted ...
3460: 10q' conftest.err >conftest.er1
3461: cat conftest.er1 >&5
3462: fi
3463: rm -f conftest.er1 conftest.err
3464: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465: test $ac_status = 0; }
3466: done
1.66 paf 3467:
1.150 moko 3468: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3469: /* end confdefs.h. */
3470:
3471: int
3472: main ()
3473: {
3474:
3475: ;
3476: return 0;
3477: }
3478: _ACEOF
3479: ac_clean_files_save=$ac_clean_files
1.150 moko 3480: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 3481: # Try to create an executable without -o first, disregard a.out.
3482: # It will help us diagnose broken compilers, and finding out an intuition
3483: # of exeext.
1.150 moko 3484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3485: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3486: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3487:
3488: # The possible output files:
3489: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3490:
3491: ac_rmfiles=
3492: for ac_file in $ac_files
3493: do
3494: case $ac_file in
3495: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3496: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3497: esac
3498: done
3499: rm -f $ac_rmfiles
3500:
3501: if { { ac_try="$ac_link_default"
3502: case "(($ac_try" in
3503: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504: *) ac_try_echo=$ac_try;;
3505: esac
3506: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507: $as_echo "$ac_try_echo"; } >&5
3508: (eval "$ac_link_default") 2>&5
3509: ac_status=$?
3510: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511: test $ac_status = 0; }; then :
3512: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3513: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3514: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3515: # so that the user can short-circuit this test for compilers unknown to
3516: # Autoconf.
3517: for ac_file in $ac_files ''
1.62 paf 3518: do
1.66 paf 3519: test -f "$ac_file" || continue
3520: case $ac_file in
1.150 moko 3521: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 3522: ;;
1.66 paf 3523: [ab].out )
1.86 paf 3524: # We found the default executable, but exeext='' is most
3525: # certainly right.
3526: break;;
1.66 paf 3527: *.* )
1.150 moko 3528: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3529: then :; else
3530: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531: fi
3532: # We set ac_cv_exeext here because the later test for it is not
3533: # safe: cross compilers may not add the suffix if given an `-o'
3534: # argument, so we may need to know it at that point already.
3535: # Even if this section looks crufty: it has the advantage of
3536: # actually working.
1.86 paf 3537: break;;
1.66 paf 3538: * )
1.86 paf 3539: break;;
1.66 paf 3540: esac
1.62 paf 3541: done
1.150 moko 3542: test "$ac_cv_exeext" = no && ac_cv_exeext=
3543:
1.66 paf 3544: else
1.150 moko 3545: ac_file=''
3546: fi
3547: if test -z "$ac_file"; then :
3548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549: $as_echo "no" >&6; }
3550: $as_echo "$as_me: failed program was:" >&5
1.66 paf 3551: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 3552:
1.150 moko 3553: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555: as_fn_error 77 "C++ compiler cannot create executables
3556: See \`config.log' for more details" "$LINENO" 5; }
3557: else
3558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559: $as_echo "yes" >&6; }
1.1 paf 3560: fi
1.150 moko 3561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3562: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3564: $as_echo "$ac_file" >&6; }
1.66 paf 3565: ac_exeext=$ac_cv_exeext
1.62 paf 3566:
1.150 moko 3567: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 3568: ac_clean_files=$ac_clean_files_save
1.150 moko 3569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3570: $as_echo_n "checking for suffix of executables... " >&6; }
3571: if { { ac_try="$ac_link"
3572: case "(($ac_try" in
3573: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574: *) ac_try_echo=$ac_try;;
3575: esac
3576: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577: $as_echo "$ac_try_echo"; } >&5
3578: (eval "$ac_link") 2>&5
1.62 paf 3579: ac_status=$?
1.150 moko 3580: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581: test $ac_status = 0; }; then :
1.62 paf 3582: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3583: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3584: # work properly (i.e., refer to `conftest.exe'), while it won't with
3585: # `rm'.
3586: for ac_file in conftest.exe conftest conftest.*; do
3587: test -f "$ac_file" || continue
3588: case $ac_file in
1.150 moko 3589: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 3590: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 3591: break;;
1.62 paf 3592: * ) break;;
3593: esac
3594: done
3595: else
1.150 moko 3596: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3599: See \`config.log' for more details" "$LINENO" 5; }
3600: fi
3601: rm -f conftest conftest$ac_cv_exeext
3602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3603: $as_echo "$ac_cv_exeext" >&6; }
1.62 paf 3604:
3605: rm -f conftest.$ac_ext
3606: EXEEXT=$ac_cv_exeext
3607: ac_exeext=$EXEEXT
1.150 moko 3608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609: /* end confdefs.h. */
3610: #include <stdio.h>
3611: int
3612: main ()
3613: {
3614: FILE *f = fopen ("conftest.out", "w");
3615: return ferror (f) || fclose (f) != 0;
3616:
3617: ;
3618: return 0;
3619: }
3620: _ACEOF
3621: ac_clean_files="$ac_clean_files conftest.out"
3622: # Check that the compiler produces executables we can run. If not, either
3623: # the compiler is broken, or we cross compile.
3624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3625: $as_echo_n "checking whether we are cross compiling... " >&6; }
3626: if test "$cross_compiling" != yes; then
3627: { { ac_try="$ac_link"
3628: case "(($ac_try" in
3629: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630: *) ac_try_echo=$ac_try;;
3631: esac
3632: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633: $as_echo "$ac_try_echo"; } >&5
3634: (eval "$ac_link") 2>&5
3635: ac_status=$?
3636: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637: test $ac_status = 0; }
3638: if { ac_try='./conftest$ac_cv_exeext'
3639: { { case "(($ac_try" in
3640: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641: *) ac_try_echo=$ac_try;;
3642: esac
3643: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644: $as_echo "$ac_try_echo"; } >&5
3645: (eval "$ac_try") 2>&5
3646: ac_status=$?
3647: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648: test $ac_status = 0; }; }; then
3649: cross_compiling=no
3650: else
3651: if test "$cross_compiling" = maybe; then
3652: cross_compiling=yes
3653: else
3654: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656: as_fn_error $? "cannot run C++ compiled programs.
3657: If you meant to cross compile, use \`--host'.
3658: See \`config.log' for more details" "$LINENO" 5; }
3659: fi
3660: fi
3661: fi
3662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3663: $as_echo "$cross_compiling" >&6; }
3664:
3665: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3666: ac_clean_files=$ac_clean_files_save
3667: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3668: $as_echo_n "checking for suffix of object files... " >&6; }
3669: if ${ac_cv_objext+:} false; then :
3670: $as_echo_n "(cached) " >&6
1.62 paf 3671: else
1.150 moko 3672: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3673: /* end confdefs.h. */
3674:
3675: int
3676: main ()
3677: {
3678:
3679: ;
3680: return 0;
3681: }
3682: _ACEOF
3683: rm -f conftest.o conftest.obj
1.150 moko 3684: if { { ac_try="$ac_compile"
3685: case "(($ac_try" in
3686: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687: *) ac_try_echo=$ac_try;;
3688: esac
3689: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690: $as_echo "$ac_try_echo"; } >&5
3691: (eval "$ac_compile") 2>&5
3692: ac_status=$?
3693: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694: test $ac_status = 0; }; then :
3695: for ac_file in conftest.o conftest.obj conftest.*; do
3696: test -f "$ac_file" || continue;
1.62 paf 3697: case $ac_file in
1.150 moko 3698: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 3699: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3700: break;;
3701: esac
3702: done
3703: else
1.150 moko 3704: $as_echo "$as_me: failed program was:" >&5
1.62 paf 3705: sed 's/^/| /' conftest.$ac_ext >&5
3706:
1.150 moko 3707: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709: as_fn_error $? "cannot compute suffix of object files: cannot compile
3710: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 3711: fi
3712: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3713: fi
1.150 moko 3714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3715: $as_echo "$ac_cv_objext" >&6; }
1.66 paf 3716: OBJEXT=$ac_cv_objext
3717: ac_objext=$OBJEXT
1.150 moko 3718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3719: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3720: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3721: $as_echo_n "(cached) " >&6
1.62 paf 3722: else
1.150 moko 3723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3724: /* end confdefs.h. */
1.66 paf 3725:
1.62 paf 3726: int
3727: main ()
3728: {
1.66 paf 3729: #ifndef __GNUC__
3730: choke me
3731: #endif
3732:
1.62 paf 3733: ;
3734: return 0;
3735: }
3736: _ACEOF
1.150 moko 3737: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3738: ac_compiler_gnu=yes
1.62 paf 3739: else
1.150 moko 3740: ac_compiler_gnu=no
1.1 paf 3741: fi
1.150 moko 3742: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3743: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 3744:
3745: fi
1.150 moko 3746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3747: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3748: if test $ac_compiler_gnu = yes; then
3749: GXX=yes
3750: else
3751: GXX=
3752: fi
1.66 paf 3753: ac_test_CXXFLAGS=${CXXFLAGS+set}
3754: ac_save_CXXFLAGS=$CXXFLAGS
1.150 moko 3755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3756: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3757: if ${ac_cv_prog_cxx_g+:} false; then :
3758: $as_echo_n "(cached) " >&6
3759: else
3760: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3761: ac_cxx_werror_flag=yes
3762: ac_cv_prog_cxx_g=no
3763: CXXFLAGS="-g"
3764: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3765: /* end confdefs.h. */
1.1 paf 3766:
1.66 paf 3767: int
3768: main ()
3769: {
1.1 paf 3770:
1.66 paf 3771: ;
3772: return 0;
3773: }
1.62 paf 3774: _ACEOF
1.150 moko 3775: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3776: ac_cv_prog_cxx_g=yes
3777: else
1.150 moko 3778: CXXFLAGS=""
3779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780: /* end confdefs.h. */
1.66 paf 3781:
1.62 paf 3782: int
3783: main ()
3784: {
1.150 moko 3785:
1.62 paf 3786: ;
3787: return 0;
3788: }
3789: _ACEOF
1.150 moko 3790: if ac_fn_cxx_try_compile "$LINENO"; then :
3791:
1.1 paf 3792: else
1.150 moko 3793: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3794: CXXFLAGS="-g"
3795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796: /* end confdefs.h. */
1.62 paf 3797:
3798: int
3799: main ()
3800: {
1.150 moko 3801:
1.62 paf 3802: ;
3803: return 0;
3804: }
3805: _ACEOF
1.150 moko 3806: if ac_fn_cxx_try_compile "$LINENO"; then :
3807: ac_cv_prog_cxx_g=yes
3808: fi
3809: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810: fi
3811: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812: fi
3813: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3815: fi
3816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3817: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3818: if test "$ac_test_CXXFLAGS" = set; then
3819: CXXFLAGS=$ac_save_CXXFLAGS
3820: elif test $ac_cv_prog_cxx_g = yes; then
3821: if test "$GXX" = yes; then
3822: CXXFLAGS="-g -O2"
3823: else
3824: CXXFLAGS="-g"
3825: fi
1.1 paf 3826: else
1.150 moko 3827: if test "$GXX" = yes; then
3828: CXXFLAGS="-O2"
3829: else
3830: CXXFLAGS=
3831: fi
1.1 paf 3832: fi
1.62 paf 3833: ac_ext=c
3834: ac_cpp='$CPP $CPPFLAGS'
3835: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 3838: DEPDIR="${am__leading_dot}deps"
1.62 paf 3839:
1.150 moko 3840: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 3841:
3842:
3843: am_make=${MAKE-make}
3844: cat > confinc << 'END'
1.86 paf 3845: am__doit:
1.150 moko 3846: @echo this is the am__doit target
1.86 paf 3847: .PHONY: am__doit
1.62 paf 3848: END
3849: # If we don't find an include directive, just comment out the code.
1.150 moko 3850: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3851: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.62 paf 3852: am__include="#"
3853: am__quote=
3854: _am_result=none
3855: # First try GNU make style include.
3856: echo "include confinc" > confmf
1.150 moko 3857: # Ignore all kinds of additional output from `make'.
3858: case `$am_make -s -f confmf 2> /dev/null` in #(
3859: *the\ am__doit\ target*)
3860: am__include=include
3861: am__quote=
3862: _am_result=GNU
3863: ;;
3864: esac
1.62 paf 3865: # Now try BSD make style include.
3866: if test "$am__include" = "#"; then
3867: echo '.include "confinc"' > confmf
1.150 moko 3868: case `$am_make -s -f confmf 2> /dev/null` in #(
3869: *the\ am__doit\ target*)
3870: am__include=.include
3871: am__quote="\""
3872: _am_result=BSD
3873: ;;
3874: esac
1.62 paf 3875: fi
3876:
3877:
1.150 moko 3878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3879: $as_echo "$_am_result" >&6; }
1.62 paf 3880: rm -f confinc confmf
3881:
1.150 moko 3882: # Check whether --enable-dependency-tracking was given.
3883: if test "${enable_dependency_tracking+set}" = set; then :
3884: enableval=$enable_dependency_tracking;
3885: fi
1.62 paf 3886:
3887: if test "x$enable_dependency_tracking" != xno; then
3888: am_depcomp="$ac_aux_dir/depcomp"
3889: AMDEPBACKSLASH='\'
1.1 paf 3890: fi
1.150 moko 3891: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 3892: AMDEP_TRUE=
3893: AMDEP_FALSE='#'
3894: else
3895: AMDEP_TRUE='#'
3896: AMDEP_FALSE=
3897: fi
1.1 paf 3898:
3899:
3900:
1.66 paf 3901: depcc="$CXX" am_compiler_list=
1.1 paf 3902:
1.150 moko 3903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3904: $as_echo_n "checking dependency style of $depcc... " >&6; }
3905: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3906: $as_echo_n "(cached) " >&6
1.62 paf 3907: else
3908: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3909: # We make a subdir and do the tests there. Otherwise we can end up
3910: # making bogus files that we don't know about and never remove. For
3911: # instance it was reported that on HP-UX the gcc test will end up
3912: # making a dummy file named `D' -- because `-MD' means `put the output
3913: # in D'.
3914: mkdir conftest.dir
3915: # Copy depcomp to subdir because otherwise we won't find it if we're
3916: # using a relative directory.
3917: cp "$am_depcomp" conftest.dir
3918: cd conftest.dir
1.86 paf 3919: # We will build objects and dependencies in a subdirectory because
3920: # it helps to detect inapplicable dependency modes. For instance
3921: # both Tru64's cc and ICC support -MD to output dependencies as a
3922: # side effect of compilation, but ICC will put the dependencies in
3923: # the current directory while Tru64 will put them in the object
3924: # directory.
3925: mkdir sub
1.1 paf 3926:
1.66 paf 3927: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 3928: if test "$am_compiler_list" = ""; then
3929: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 3930: fi
1.150 moko 3931: am__universal=false
3932: case " $depcc " in #(
3933: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3934: esac
3935:
1.62 paf 3936: for depmode in $am_compiler_list; do
1.86 paf 3937: # Setup a source with many dependencies, because some compilers
3938: # like to wrap large dependency lists on column 80 (with \), and
3939: # we should not choose a depcomp mode which is confused by this.
3940: #
1.62 paf 3941: # We need to recreate these files for each test, as the compiler may
3942: # overwrite some of them when testing with obscure command lines.
3943: # This happens at least with the AIX C compiler.
1.86 paf 3944: : > sub/conftest.c
3945: for i in 1 2 3 4 5 6; do
3946: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3947: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3948: # Solaris 8's {/usr,}/bin/sh.
3949: touch sub/conftst$i.h
3950: done
3951: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 3952:
1.150 moko 3953: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3954: # mode. It turns out that the SunPro C++ compiler does not properly
3955: # handle `-M -o', and we need to detect this. Also, some Intel
3956: # versions had trouble with output in subdirs
3957: am__obj=sub/conftest.${OBJEXT-o}
3958: am__minus_obj="-o $am__obj"
1.62 paf 3959: case $depmode in
1.150 moko 3960: gcc)
3961: # This depmode causes a compiler race in universal mode.
3962: test "$am__universal" = false || continue
3963: ;;
1.62 paf 3964: nosideeffect)
3965: # after this tag, mechanisms are not by side-effect, so they'll
3966: # only be used when explicitly requested
3967: if test "x$enable_dependency_tracking" = xyes; then
3968: continue
3969: else
3970: break
3971: fi
3972: ;;
1.150 moko 3973: msvisualcpp | msvcmsys)
3974: # This compiler won't grok `-c -o', but also, the minuso test has
3975: # not run yet. These depmodes are late enough in the game, and
3976: # so weak that their functioning should not be impacted.
3977: am__obj=conftest.${OBJEXT-o}
3978: am__minus_obj=
3979: ;;
1.62 paf 3980: none) break ;;
3981: esac
3982: if depmode=$depmode \
1.150 moko 3983: source=sub/conftest.c object=$am__obj \
1.86 paf 3984: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 3985: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 3986: >/dev/null 2>conftest.err &&
1.150 moko 3987: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 3988: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 3989: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 3990: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 3991: # icc doesn't choke on unknown options, it will just issue warnings
3992: # or remarks (even with -Werror). So we grep stderr for any message
3993: # that says an option was ignored or not supported.
3994: # When given -MP, icc 7.0 and 7.1 complain thusly:
3995: # icc: Command line warning: ignoring option '-M'; no argument required
3996: # The diagnosis changed in icc 8.0:
3997: # icc: Command line remark: option '-MP' not supported
3998: if (grep 'ignoring option' conftest.err ||
3999: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4000: am_cv_CXX_dependencies_compiler_type=$depmode
4001: break
4002: fi
1.66 paf 4003: fi
4004: done
4005:
4006: cd ..
4007: rm -rf conftest.dir
4008: else
4009: am_cv_CXX_dependencies_compiler_type=none
4010: fi
4011:
4012: fi
1.150 moko 4013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4014: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 4015: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4016:
1.150 moko 4017: if
1.66 paf 4018: test "x$enable_dependency_tracking" != xno \
4019: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4020: am__fastdepCXX_TRUE=
4021: am__fastdepCXX_FALSE='#'
4022: else
4023: am__fastdepCXX_TRUE='#'
4024: am__fastdepCXX_FALSE=
4025: fi
4026:
4027:
4028: ac_ext=c
4029: ac_cpp='$CPP $CPPFLAGS'
4030: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033: if test -n "$ac_tool_prefix"; then
4034: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4035: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.150 moko 4036: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037: $as_echo_n "checking for $ac_word... " >&6; }
4038: if ${ac_cv_prog_CC+:} false; then :
4039: $as_echo_n "(cached) " >&6
1.66 paf 4040: else
4041: if test -n "$CC"; then
4042: ac_cv_prog_CC="$CC" # Let the user override the test.
4043: else
4044: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045: for as_dir in $PATH
4046: do
4047: IFS=$as_save_IFS
4048: test -z "$as_dir" && as_dir=.
1.150 moko 4049: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4050: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4051: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.150 moko 4052: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4053: break 2
4054: fi
4055: done
1.150 moko 4056: done
4057: IFS=$as_save_IFS
1.66 paf 4058:
4059: fi
4060: fi
4061: CC=$ac_cv_prog_CC
4062: if test -n "$CC"; then
1.150 moko 4063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4064: $as_echo "$CC" >&6; }
1.66 paf 4065: else
1.150 moko 4066: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067: $as_echo "no" >&6; }
1.66 paf 4068: fi
4069:
1.150 moko 4070:
1.66 paf 4071: fi
4072: if test -z "$ac_cv_prog_CC"; then
4073: ac_ct_CC=$CC
4074: # Extract the first word of "gcc", so it can be a program name with args.
4075: set dummy gcc; ac_word=$2
1.150 moko 4076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077: $as_echo_n "checking for $ac_word... " >&6; }
4078: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4079: $as_echo_n "(cached) " >&6
1.66 paf 4080: else
4081: if test -n "$ac_ct_CC"; then
4082: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4083: else
4084: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085: for as_dir in $PATH
4086: do
4087: IFS=$as_save_IFS
4088: test -z "$as_dir" && as_dir=.
1.150 moko 4089: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4090: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4091: ac_cv_prog_ac_ct_CC="gcc"
1.150 moko 4092: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4093: break 2
4094: fi
4095: done
1.150 moko 4096: done
4097: IFS=$as_save_IFS
1.66 paf 4098:
4099: fi
4100: fi
4101: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4102: if test -n "$ac_ct_CC"; then
1.150 moko 4103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4104: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4105: else
1.150 moko 4106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107: $as_echo "no" >&6; }
1.62 paf 4108: fi
4109:
1.150 moko 4110: if test "x$ac_ct_CC" = x; then
4111: CC=""
4112: else
4113: case $cross_compiling:$ac_tool_warned in
4114: yes:)
4115: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4116: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4117: ac_tool_warned=yes ;;
4118: esac
4119: CC=$ac_ct_CC
4120: fi
1.66 paf 4121: else
4122: CC="$ac_cv_prog_CC"
1.1 paf 4123: fi
1.62 paf 4124:
1.66 paf 4125: if test -z "$CC"; then
1.150 moko 4126: if test -n "$ac_tool_prefix"; then
4127: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 4128: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.150 moko 4129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130: $as_echo_n "checking for $ac_word... " >&6; }
4131: if ${ac_cv_prog_CC+:} false; then :
4132: $as_echo_n "(cached) " >&6
1.66 paf 4133: else
4134: if test -n "$CC"; then
4135: ac_cv_prog_CC="$CC" # Let the user override the test.
4136: else
4137: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138: for as_dir in $PATH
4139: do
4140: IFS=$as_save_IFS
4141: test -z "$as_dir" && as_dir=.
1.150 moko 4142: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4143: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4144: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.150 moko 4145: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4146: break 2
4147: fi
4148: done
1.150 moko 4149: done
4150: IFS=$as_save_IFS
1.62 paf 4151:
1.66 paf 4152: fi
4153: fi
4154: CC=$ac_cv_prog_CC
4155: if test -n "$CC"; then
1.150 moko 4156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4157: $as_echo "$CC" >&6; }
1.62 paf 4158: else
1.150 moko 4159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160: $as_echo "no" >&6; }
1.1 paf 4161: fi
4162:
1.150 moko 4163:
1.66 paf 4164: fi
1.1 paf 4165: fi
1.66 paf 4166: if test -z "$CC"; then
4167: # Extract the first word of "cc", so it can be a program name with args.
4168: set dummy cc; ac_word=$2
1.150 moko 4169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170: $as_echo_n "checking for $ac_word... " >&6; }
4171: if ${ac_cv_prog_CC+:} false; then :
4172: $as_echo_n "(cached) " >&6
1.66 paf 4173: else
4174: if test -n "$CC"; then
4175: ac_cv_prog_CC="$CC" # Let the user override the test.
4176: else
4177: ac_prog_rejected=no
4178: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179: for as_dir in $PATH
4180: do
4181: IFS=$as_save_IFS
4182: test -z "$as_dir" && as_dir=.
1.150 moko 4183: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4184: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4185: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4186: ac_prog_rejected=yes
4187: continue
4188: fi
4189: ac_cv_prog_CC="cc"
1.150 moko 4190: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4191: break 2
4192: fi
4193: done
1.150 moko 4194: done
4195: IFS=$as_save_IFS
1.62 paf 4196:
1.66 paf 4197: if test $ac_prog_rejected = yes; then
4198: # We found a bogon in the path, so make sure we never use it.
4199: set dummy $ac_cv_prog_CC
4200: shift
4201: if test $# != 0; then
4202: # We chose a different compiler from the bogus one.
4203: # However, it has the same basename, so the bogon will be chosen
4204: # first if we set CC to just the basename; use the full file name.
4205: shift
4206: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4207: fi
4208: fi
4209: fi
4210: fi
4211: CC=$ac_cv_prog_CC
4212: if test -n "$CC"; then
1.150 moko 4213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4214: $as_echo "$CC" >&6; }
1.66 paf 4215: else
1.150 moko 4216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217: $as_echo "no" >&6; }
1.1 paf 4218: fi
4219:
1.150 moko 4220:
1.66 paf 4221: fi
4222: if test -z "$CC"; then
4223: if test -n "$ac_tool_prefix"; then
1.150 moko 4224: for ac_prog in cl.exe
1.62 paf 4225: do
4226: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4227: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 4228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229: $as_echo_n "checking for $ac_word... " >&6; }
4230: if ${ac_cv_prog_CC+:} false; then :
4231: $as_echo_n "(cached) " >&6
1.62 paf 4232: else
1.66 paf 4233: if test -n "$CC"; then
4234: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 4235: else
4236: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237: for as_dir in $PATH
4238: do
4239: IFS=$as_save_IFS
4240: test -z "$as_dir" && as_dir=.
1.150 moko 4241: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4242: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4243: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.150 moko 4244: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4245: break 2
4246: fi
4247: done
1.150 moko 4248: done
4249: IFS=$as_save_IFS
1.1 paf 4250:
1.62 paf 4251: fi
4252: fi
1.66 paf 4253: CC=$ac_cv_prog_CC
4254: if test -n "$CC"; then
1.150 moko 4255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4256: $as_echo "$CC" >&6; }
1.1 paf 4257: else
1.150 moko 4258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259: $as_echo "no" >&6; }
1.1 paf 4260: fi
4261:
1.150 moko 4262:
1.66 paf 4263: test -n "$CC" && break
1.62 paf 4264: done
4265: fi
1.66 paf 4266: if test -z "$CC"; then
4267: ac_ct_CC=$CC
1.150 moko 4268: for ac_prog in cl.exe
1.62 paf 4269: do
4270: # Extract the first word of "$ac_prog", so it can be a program name with args.
4271: set dummy $ac_prog; ac_word=$2
1.150 moko 4272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273: $as_echo_n "checking for $ac_word... " >&6; }
4274: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4275: $as_echo_n "(cached) " >&6
1.62 paf 4276: else
1.66 paf 4277: if test -n "$ac_ct_CC"; then
4278: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 4279: else
1.62 paf 4280: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281: for as_dir in $PATH
4282: do
4283: IFS=$as_save_IFS
4284: test -z "$as_dir" && as_dir=.
1.150 moko 4285: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4286: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4287: ac_cv_prog_ac_ct_CC="$ac_prog"
1.150 moko 4288: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4289: break 2
4290: fi
4291: done
1.150 moko 4292: done
4293: IFS=$as_save_IFS
1.62 paf 4294:
4295: fi
4296: fi
1.66 paf 4297: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4298: if test -n "$ac_ct_CC"; then
1.150 moko 4299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4300: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4301: else
1.150 moko 4302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303: $as_echo "no" >&6; }
1.1 paf 4304: fi
4305:
1.150 moko 4306:
1.66 paf 4307: test -n "$ac_ct_CC" && break
4308: done
4309:
1.150 moko 4310: if test "x$ac_ct_CC" = x; then
4311: CC=""
4312: else
4313: case $cross_compiling:$ac_tool_warned in
4314: yes:)
4315: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317: ac_tool_warned=yes ;;
4318: esac
4319: CC=$ac_ct_CC
4320: fi
1.66 paf 4321: fi
4322:
4323: fi
1.62 paf 4324:
1.1 paf 4325:
1.150 moko 4326: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328: as_fn_error $? "no acceptable C compiler found in \$PATH
4329: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 4330:
4331: # Provide some information about the compiler.
1.150 moko 4332: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4333: set X $ac_compile
4334: ac_compiler=$2
4335: for ac_option in --version -v -V -qversion; do
4336: { { ac_try="$ac_compiler $ac_option >&5"
4337: case "(($ac_try" in
4338: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339: *) ac_try_echo=$ac_try;;
4340: esac
4341: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342: $as_echo "$ac_try_echo"; } >&5
4343: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 4344: ac_status=$?
1.150 moko 4345: if test -s conftest.err; then
4346: sed '10a\
4347: ... rest of stderr output deleted ...
4348: 10q' conftest.err >conftest.er1
4349: cat conftest.er1 >&5
4350: fi
4351: rm -f conftest.er1 conftest.err
4352: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353: test $ac_status = 0; }
4354: done
4355:
4356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4357: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4358: if ${ac_cv_c_compiler_gnu+:} false; then :
4359: $as_echo_n "(cached) " >&6
1.62 paf 4360: else
1.150 moko 4361: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4362: /* end confdefs.h. */
4363:
4364: int
4365: main ()
4366: {
4367: #ifndef __GNUC__
4368: choke me
4369: #endif
4370:
4371: ;
4372: return 0;
4373: }
4374: _ACEOF
1.150 moko 4375: if ac_fn_c_try_compile "$LINENO"; then :
1.62 paf 4376: ac_compiler_gnu=yes
4377: else
1.150 moko 4378: ac_compiler_gnu=no
1.62 paf 4379: fi
1.150 moko 4380: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 4381: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 4382:
4383: fi
1.150 moko 4384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4385: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4386: if test $ac_compiler_gnu = yes; then
4387: GCC=yes
4388: else
4389: GCC=
4390: fi
1.66 paf 4391: ac_test_CFLAGS=${CFLAGS+set}
4392: ac_save_CFLAGS=$CFLAGS
1.150 moko 4393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4394: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4395: if ${ac_cv_prog_cc_g+:} false; then :
4396: $as_echo_n "(cached) " >&6
4397: else
4398: ac_save_c_werror_flag=$ac_c_werror_flag
4399: ac_c_werror_flag=yes
4400: ac_cv_prog_cc_g=no
4401: CFLAGS="-g"
4402: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4403: /* end confdefs.h. */
4404:
4405: int
4406: main ()
4407: {
4408:
4409: ;
4410: return 0;
4411: }
4412: _ACEOF
1.150 moko 4413: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 4414: ac_cv_prog_cc_g=yes
1.62 paf 4415: else
1.150 moko 4416: CFLAGS=""
4417: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418: /* end confdefs.h. */
4419:
4420: int
4421: main ()
4422: {
1.62 paf 4423:
1.150 moko 4424: ;
4425: return 0;
4426: }
4427: _ACEOF
4428: if ac_fn_c_try_compile "$LINENO"; then :
4429:
4430: else
4431: ac_c_werror_flag=$ac_save_c_werror_flag
4432: CFLAGS="-g"
4433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434: /* end confdefs.h. */
4435:
4436: int
4437: main ()
4438: {
4439:
4440: ;
4441: return 0;
4442: }
4443: _ACEOF
4444: if ac_fn_c_try_compile "$LINENO"; then :
4445: ac_cv_prog_cc_g=yes
4446: fi
4447: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4448: fi
1.150 moko 4449: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4450: fi
1.150 moko 4451: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452: ac_c_werror_flag=$ac_save_c_werror_flag
4453: fi
4454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4455: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.66 paf 4456: if test "$ac_test_CFLAGS" = set; then
4457: CFLAGS=$ac_save_CFLAGS
4458: elif test $ac_cv_prog_cc_g = yes; then
4459: if test "$GCC" = yes; then
4460: CFLAGS="-g -O2"
1.1 paf 4461: else
1.66 paf 4462: CFLAGS="-g"
1.1 paf 4463: fi
4464: else
1.66 paf 4465: if test "$GCC" = yes; then
4466: CFLAGS="-O2"
1.1 paf 4467: else
1.66 paf 4468: CFLAGS=
1.1 paf 4469: fi
4470: fi
1.150 moko 4471: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4472: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4473: if ${ac_cv_prog_cc_c89+:} false; then :
4474: $as_echo_n "(cached) " >&6
1.66 paf 4475: else
1.150 moko 4476: ac_cv_prog_cc_c89=no
1.66 paf 4477: ac_save_CC=$CC
1.150 moko 4478: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4479: /* end confdefs.h. */
4480: #include <stdarg.h>
4481: #include <stdio.h>
1.166 moko 4482: struct stat;
1.66 paf 4483: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4484: struct buf { int x; };
4485: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4486: static char *e (p, i)
4487: char **p;
4488: int i;
4489: {
4490: return p[i];
4491: }
4492: static char *f (char * (*g) (char **, int), char **p, ...)
4493: {
4494: char *s;
4495: va_list v;
4496: va_start (v,p);
4497: s = g (p, va_arg (v,int));
4498: va_end (v);
4499: return s;
4500: }
1.86 paf 4501:
4502: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4503: function prototypes and stuff, but not '\xHH' hex character constants.
4504: These don't provoke an error unfortunately, instead are silently treated
1.150 moko 4505: as 'x'. The following induces an error, until -std is added to get
1.86 paf 4506: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4507: array size at least. It's necessary to write '\x00'==0 to get something
1.150 moko 4508: that's true only with -std. */
1.86 paf 4509: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4510:
1.150 moko 4511: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4512: inside strings and character constants. */
4513: #define FOO(x) 'x'
4514: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4515:
1.66 paf 4516: int test (int i, double x);
4517: struct s1 {int (*f) (int a);};
4518: struct s2 {int (*f) (double a);};
4519: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4520: int argc;
4521: char **argv;
4522: int
4523: main ()
4524: {
4525: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4526: ;
4527: return 0;
4528: }
4529: _ACEOF
1.150 moko 4530: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4531: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 4532: do
4533: CC="$ac_save_CC $ac_arg"
1.150 moko 4534: if ac_fn_c_try_compile "$LINENO"; then :
4535: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 4536: fi
1.150 moko 4537: rm -f core conftest.err conftest.$ac_objext
4538: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 4539: done
1.150 moko 4540: rm -f conftest.$ac_ext
1.66 paf 4541: CC=$ac_save_CC
4542:
4543: fi
1.150 moko 4544: # AC_CACHE_VAL
4545: case "x$ac_cv_prog_cc_c89" in
4546: x)
4547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4548: $as_echo "none needed" >&6; } ;;
4549: xno)
4550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4551: $as_echo "unsupported" >&6; } ;;
1.66 paf 4552: *)
1.150 moko 4553: CC="$CC $ac_cv_prog_cc_c89"
4554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4555: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.66 paf 4556: esac
1.150 moko 4557: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.62 paf 4558:
4559: fi
1.66 paf 4560:
1.62 paf 4561: ac_ext=c
4562: ac_cpp='$CPP $CPPFLAGS'
4563: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566:
1.66 paf 4567: depcc="$CC" am_compiler_list=
1.62 paf 4568:
1.150 moko 4569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4570: $as_echo_n "checking dependency style of $depcc... " >&6; }
4571: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4572: $as_echo_n "(cached) " >&6
1.62 paf 4573: else
4574: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4575: # We make a subdir and do the tests there. Otherwise we can end up
4576: # making bogus files that we don't know about and never remove. For
4577: # instance it was reported that on HP-UX the gcc test will end up
4578: # making a dummy file named `D' -- because `-MD' means `put the output
4579: # in D'.
4580: mkdir conftest.dir
4581: # Copy depcomp to subdir because otherwise we won't find it if we're
4582: # using a relative directory.
4583: cp "$am_depcomp" conftest.dir
4584: cd conftest.dir
1.86 paf 4585: # We will build objects and dependencies in a subdirectory because
4586: # it helps to detect inapplicable dependency modes. For instance
4587: # both Tru64's cc and ICC support -MD to output dependencies as a
4588: # side effect of compilation, but ICC will put the dependencies in
4589: # the current directory while Tru64 will put them in the object
4590: # directory.
4591: mkdir sub
1.62 paf 4592:
1.66 paf 4593: am_cv_CC_dependencies_compiler_type=none
1.62 paf 4594: if test "$am_compiler_list" = ""; then
4595: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4596: fi
1.150 moko 4597: am__universal=false
4598: case " $depcc " in #(
4599: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4600: esac
4601:
1.62 paf 4602: for depmode in $am_compiler_list; do
1.86 paf 4603: # Setup a source with many dependencies, because some compilers
4604: # like to wrap large dependency lists on column 80 (with \), and
4605: # we should not choose a depcomp mode which is confused by this.
4606: #
1.62 paf 4607: # We need to recreate these files for each test, as the compiler may
4608: # overwrite some of them when testing with obscure command lines.
4609: # This happens at least with the AIX C compiler.
1.86 paf 4610: : > sub/conftest.c
4611: for i in 1 2 3 4 5 6; do
4612: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4613: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4614: # Solaris 8's {/usr,}/bin/sh.
4615: touch sub/conftst$i.h
4616: done
4617: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4618:
1.150 moko 4619: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4620: # mode. It turns out that the SunPro C++ compiler does not properly
4621: # handle `-M -o', and we need to detect this. Also, some Intel
4622: # versions had trouble with output in subdirs
4623: am__obj=sub/conftest.${OBJEXT-o}
4624: am__minus_obj="-o $am__obj"
1.62 paf 4625: case $depmode in
1.150 moko 4626: gcc)
4627: # This depmode causes a compiler race in universal mode.
4628: test "$am__universal" = false || continue
4629: ;;
1.62 paf 4630: nosideeffect)
4631: # after this tag, mechanisms are not by side-effect, so they'll
4632: # only be used when explicitly requested
4633: if test "x$enable_dependency_tracking" = xyes; then
4634: continue
4635: else
4636: break
4637: fi
4638: ;;
1.150 moko 4639: msvisualcpp | msvcmsys)
4640: # This compiler won't grok `-c -o', but also, the minuso test has
4641: # not run yet. These depmodes are late enough in the game, and
4642: # so weak that their functioning should not be impacted.
4643: am__obj=conftest.${OBJEXT-o}
4644: am__minus_obj=
4645: ;;
1.62 paf 4646: none) break ;;
4647: esac
1.66 paf 4648: if depmode=$depmode \
1.150 moko 4649: source=sub/conftest.c object=$am__obj \
1.86 paf 4650: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4651: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4652: >/dev/null 2>conftest.err &&
1.150 moko 4653: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4654: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4655: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 4656: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4657: # icc doesn't choke on unknown options, it will just issue warnings
4658: # or remarks (even with -Werror). So we grep stderr for any message
4659: # that says an option was ignored or not supported.
4660: # When given -MP, icc 7.0 and 7.1 complain thusly:
4661: # icc: Command line warning: ignoring option '-M'; no argument required
4662: # The diagnosis changed in icc 8.0:
4663: # icc: Command line remark: option '-MP' not supported
4664: if (grep 'ignoring option' conftest.err ||
4665: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4666: am_cv_CC_dependencies_compiler_type=$depmode
4667: break
4668: fi
1.66 paf 4669: fi
4670: done
4671:
4672: cd ..
4673: rm -rf conftest.dir
4674: else
4675: am_cv_CC_dependencies_compiler_type=none
4676: fi
4677:
4678: fi
1.150 moko 4679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4680: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 4681: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4682:
1.150 moko 4683: if
1.66 paf 4684: test "x$enable_dependency_tracking" != xno \
4685: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4686: am__fastdepCC_TRUE=
4687: am__fastdepCC_FALSE='#'
4688: else
4689: am__fastdepCC_TRUE='#'
4690: am__fastdepCC_FALSE=
4691: fi
4692:
4693:
1.128 moko 4694:
1.66 paf 4695: ac_ext=c
4696: ac_cpp='$CPP $CPPFLAGS'
4697: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700:
1.67 paf 4701:
1.62 paf 4702:
1.150 moko 4703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
4704: $as_echo_n "checking for dynamic-link library extension... " >&6; }
1.128 moko 4705: case "$host_os" in
1.158 moko 4706: *cygwin* ) dll_extension=dll;;
4707: * ) dll_extension=so
1.66 paf 4708: esac
1.150 moko 4709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
4710: $as_echo "$dll_extension" >&6; }
1.1 paf 4711:
1.71 paf 4712:
4713:
4714:
1.150 moko 4715: # Check whether --with-build-warnings was given.
4716: if test "${with_build_warnings+set}" = set; then :
4717: withval=$with_build_warnings; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
4718: $as_echo "$as_me: WARNING: enabling compiler warnings" >&2;}
1.71 paf 4719: CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4720:
1.150 moko 4721: fi
4722:
1.1 paf 4723:
4724:
1.150 moko 4725: # Check whether --with-assertions was given.
4726: if test "${with_assertions+set}" = set; then :
4727: withval=$with_assertions; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
4728: $as_echo "$as_me: WARNING: enabling assertions" >&2;}
1.67 paf 4729:
4730: else
4731:
1.150 moko 4732: $as_echo "#define NDEBUG /**/" >>confdefs.h
4733:
1.67 paf 4734:
1.150 moko 4735: fi
1.67 paf 4736:
4737:
1.94 misha 4738:
1.150 moko 4739: # Check whether --with-sjlj-exceptions was given.
4740: if test "${with_sjlj_exceptions+set}" = set; then :
4741: withval=$with_sjlj_exceptions;
4742: $as_echo "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.128 moko 4743:
4744:
1.150 moko 4745: fi
1.128 moko 4746:
4747:
1.62 paf 4748:
1.150 moko 4749: # Check whether --enable-safe-mode was given.
4750: if test "${enable_safe_mode+set}" = set; then :
4751: enableval=$enable_safe_mode;
1.67 paf 4752: SAFE_MODE=$enableval
1.60 paf 4753:
1.1 paf 4754:
1.150 moko 4755: fi
4756:
1.128 moko 4757:
1.60 paf 4758: if test "$SAFE_MODE" = "no"; then
1.150 moko 4759: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
4760: $as_echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 4761: else
1.62 paf 4762:
1.150 moko 4763: $as_echo "#define PA_SAFE_MODE /**/" >>confdefs.h
1.1 paf 4764:
4765: fi
4766:
1.94 misha 4767:
1.150 moko 4768: # Check whether --enable-execs was given.
4769: if test "${enable_execs+set}" = set; then :
4770: enableval=$enable_execs;
1.13 paf 4771: if test "$enableval" = "no"; then
1.150 moko 4772: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
4773: $as_echo "$as_me: WARNING: disabling file execs" >&2;}
1.62 paf 4774:
1.150 moko 4775: $as_echo "#define NO_PA_EXECS /**/" >>confdefs.h
1.13 paf 4776:
4777: fi
4778:
4779:
1.150 moko 4780: fi
1.13 paf 4781:
1.60 paf 4782:
1.94 misha 4783:
1.150 moko 4784: # Check whether --enable-stringstream was given.
4785: if test "${enable_stringstream+set}" = set; then :
4786: enableval=$enable_stringstream;
1.94 misha 4787: if test "$enableval" = "no"; then
1.150 moko 4788: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
4789: $as_echo "$as_me: WARNING: disabling stringstream usage" >&2;}
1.94 misha 4790:
1.150 moko 4791: $as_echo "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.94 misha 4792:
4793: fi
4794:
4795:
1.150 moko 4796: fi
1.94 misha 4797:
4798:
1.62 paf 4799:
1.17 paf 4800:
1.150 moko 4801: # Check whether --with-gc was given.
4802: if test "${with_gc+set}" = set; then :
4803: withval=$with_gc;
1.17 paf 4804:
1.142 moko 4805: GC=$withval
4806: GC_LIBS="$GC/libgc.la"
4807:
4808: if test -f $GC_LIBS; then
4809: GC_OK="yes"
4810: else
4811: GC_LIBS="-L$GC -lgc"
4812: fi
1.62 paf 4813:
1.151 moko 4814: if test "$GC" = "yes"; then
4815: GC=""
4816: GC_LIBS="-lgc"
4817: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
4818: $as_echo "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
4819: fi
4820:
1.142 moko 4821: else
1.17 paf 4822:
1.142 moko 4823: GC_LIBS="-lgc"
1.150 moko 4824: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
4825: $as_echo "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
4826:
4827: fi
1.17 paf 4828:
4829:
1.142 moko 4830: if test -z "$GC_OK"; then
1.150 moko 4831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
4832: $as_echo_n "checking for libgc... " >&6; }
1.138 moko 4833: SAVE_LIBS=$LIBS
4834: LIBS="$LIBS $GC_LIBS"
1.128 moko 4835:
1.150 moko 4836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 4837: /* end confdefs.h. */
1.142 moko 4838: extern int GC_dont_gc;
1.67 paf 4839: int
4840: main ()
4841: {
1.142 moko 4842: GC_dont_gc=0;
1.67 paf 4843: ;
4844: return 0;
4845: }
4846: _ACEOF
1.150 moko 4847: if ac_fn_c_try_link "$LINENO"; then :
4848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849: $as_echo "yes" >&6; }
1.67 paf 4850:
4851: else
1.150 moko 4852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853: $as_echo "no" >&6; }
1.142 moko 4854: if test -z "$GC"; then
1.151 moko 4855: as_fn_error $? "please specify path to libgc: --with-gc=D" "$LINENO" 5
1.142 moko 4856: else
1.150 moko 4857: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
1.142 moko 4858: fi
1.67 paf 4859:
4860: fi
1.150 moko 4861: rm -f core conftest.err conftest.$ac_objext \
4862: conftest$ac_exeext conftest.$ac_ext
1.138 moko 4863: LIBS=$SAVE_LIBS
4864: fi
1.67 paf 4865:
4866:
1.1 paf 4867:
1.15 paf 4868:
1.142 moko 4869:
1.150 moko 4870: # Check whether --with-pcre was given.
4871: if test "${with_pcre+set}" = set; then :
4872: withval=$with_pcre;
1.100 misha 4873: PCRE=$withval
1.142 moko 4874: PCRE_INCLUDES="-I$PCRE/include"
4875: PCRE_LIBS="$PCRE/lib/libpcre.la"
1.100 misha 4876:
1.142 moko 4877: if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then
4878: PCRE_OK="yes"
4879: else
4880: PCRE_LIBS="-L$PCRE -lpcre"
1.100 misha 4881: fi
4882:
1.151 moko 4883: if test "$PCRE" = "yes"; then
4884: PCRE=""
4885: PCRE_LIBS="-lpcre"
4886: PCRE_INCLUDES=""
4887: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
4888: $as_echo "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
4889: fi
1.142 moko 4890:
4891: else
4892:
4893: PCRE_LIBS="-lpcre"
1.149 moko 4894: PCRE_INCLUDES=""
1.150 moko 4895: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
4896: $as_echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
4897:
4898: fi
1.100 misha 4899:
4900:
1.142 moko 4901: if test -z "$PCRE_OK"; then
1.150 moko 4902: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prce" >&5
4903: $as_echo_n "checking for prce... " >&6; }
1.142 moko 4904: SAVE_LIBS=$LIBS
4905: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.150 moko 4906: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 4907: /* end confdefs.h. */
4908: #include <pcre.h>
4909: int
4910: main ()
4911: {
4912: const char *v=pcre_version();
4913: ;
4914: return 0;
4915: }
4916: _ACEOF
1.150 moko 4917: if ac_fn_c_try_link "$LINENO"; then :
4918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919: $as_echo "yes" >&6; }
1.142 moko 4920:
4921: else
1.150 moko 4922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923: $as_echo "no" >&6; }
1.142 moko 4924: if test -z "$PCRE"; then
1.151 moko 4925: as_fn_error $? "please specify path to PCRE: --with-pcre=D" "$LINENO" 5
1.142 moko 4926: else
1.150 moko 4927: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
1.142 moko 4928: fi
4929:
4930: fi
1.150 moko 4931: rm -f core conftest.err conftest.$ac_objext \
4932: conftest$ac_exeext conftest.$ac_ext
1.142 moko 4933: LIBS=$SAVE_LIBS
4934: fi
1.100 misha 4935:
4936:
4937:
4938:
1.66 paf 4939:
4940:
1.150 moko 4941: # Check whether --with-xml was given.
4942: if test "${with_xml+set}" = set; then :
4943: withval=$with_xml;
1.66 paf 4944:
1.142 moko 4945: XML=$withval
4946: XML_LIBS="-lxml2 -lxslt -lexslt"
4947:
4948: if test -z "$XML" -o "$XML" = "yes"; then
4949: XML=""
4950: XML_INCLUDES="-I/usr/include/libxml2"
1.150 moko 4951: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
4952: $as_echo "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
1.142 moko 4953: else
4954: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.67 paf 4955:
1.142 moko 4956: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
4957: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
4958: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
4959: XML_OK="yes"
4960: fi
1.67 paf 4961: fi
1.66 paf 4962:
1.142 moko 4963: if test -z "$XML_OK"; then
1.150 moko 4964: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
4965: $as_echo_n "checking for xml... " >&6; }
1.142 moko 4966: SAVE_LIBS=$LIBS
4967: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.150 moko 4968: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 4969: /* end confdefs.h. */
4970: #include <libxslt/xslt.h>
4971: int
4972: main ()
4973: {
4974: const char *v=xsltEngineVersion;
4975: ;
4976: return 0;
4977: }
4978: _ACEOF
1.150 moko 4979: if ac_fn_c_try_link "$LINENO"; then :
4980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4981: $as_echo "yes" >&6; }
1.142 moko 4982:
4983: else
1.150 moko 4984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985: $as_echo "no" >&6; }
1.142 moko 4986: if test -z "$XML"; then
1.151 moko 4987: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=D" "$LINENO" 5
1.142 moko 4988: else
1.150 moko 4989: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 4990: fi
4991:
4992: fi
1.150 moko 4993: rm -f core conftest.err conftest.$ac_objext \
4994: conftest$ac_exeext conftest.$ac_ext
1.142 moko 4995: LIBS=$SAVE_LIBS
1.67 paf 4996: fi
1.66 paf 4997:
1.150 moko 4998: $as_echo "#define XML /**/" >>confdefs.h
4999:
1.66 paf 5000:
1.150 moko 5001: fi
1.66 paf 5002:
1.90 paf 5003:
1.66 paf 5004:
5005:
5006:
5007:
1.90 paf 5008:
1.154 moko 5009: # Check whether --with-mailreceive was given.
5010: if test "${with_mailreceive+set}" = set; then :
5011: withval=$with_mailreceive;
5012: MIME=$withval
1.155 moko 5013: GLIB="glib-2.0"
1.154 moko 5014: GMIME="gmime-2.4"
5015:
5016: if test -z "$MIME" -o "$MIME" = "yes"; then
5017: MIME=""
5018: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5019: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
5020: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
5021: $as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
5022: else
1.155 moko 5023: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 5024: MIME_LIBS="-l$GMIME"
5025: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
5026: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 5027: if test -f $MIME/lib/lib$GLIB.la; then
5028: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
5029: else
5030: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
5031: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
5032: fi
1.154 moko 5033: MIME_OK="yes"
5034: fi
1.67 paf 5035: fi
1.66 paf 5036:
1.154 moko 5037: if test -z "$MIME_OK"; then
5038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
5039: $as_echo_n "checking for mime... " >&6; }
5040: SAVE_LIBS=$LIBS
5041: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
5042: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043: /* end confdefs.h. */
5044: #include <gmime/gmime.h>
5045: int
5046: main ()
5047: {
5048: guint v=gmime_major_version;
5049: ;
5050: return 0;
5051: }
5052: _ACEOF
5053: if ac_fn_c_try_link "$LINENO"; then :
5054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5055: $as_echo "yes" >&6; }
1.66 paf 5056:
1.154 moko 5057: else
5058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059: $as_echo "no" >&6; }
5060: if test -z "$MIME"; then
5061: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=D" "$LINENO" 5
5062: else
5063: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 5064: fi
1.66 paf 5065:
1.150 moko 5066: fi
1.154 moko 5067: rm -f core conftest.err conftest.$ac_objext \
5068: conftest$ac_exeext conftest.$ac_ext
5069: LIBS=$SAVE_LIBS
1.67 paf 5070: fi
1.66 paf 5071:
1.150 moko 5072: $as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 5073:
5074:
1.154 moko 5075: fi
1.66 paf 5076:
5077:
5078:
5079:
5080:
5081:
5082:
1.150 moko 5083: # Check whether --with-sendmail was given.
5084: if test "${with_sendmail+set}" = set; then :
5085: withval=$with_sendmail;
1.66 paf 5086: cat >>confdefs.h <<_ACEOF
5087: #define PA_FORCED_SENDMAIL "$withval"
5088: _ACEOF
5089:
5090:
1.150 moko 5091: fi
1.66 paf 5092:
5093:
5094:
1.122 moko 5095:
1.150 moko 5096: # Check whether --with-apache was given.
5097: if test "${with_apache+set}" = set; then :
5098: withval=$with_apache;
1.122 moko 5099: APXS=$withval
5100:
5101: if test -z "$APXS" -o "$APXS" = "yes"; then
5102: APXS=`which apxs 2>/dev/null`
1.142 moko 5103: if test -z "$APXS"; then
5104: APXS=`which apxs2 2>/dev/null`
5105: fi
5106: fi
1.122 moko 5107:
5108: APACHE=`$APXS -q TARGET 2>/dev/null`
5109:
5110: if test -z "$APACHE"; then
1.150 moko 5111: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 5112: fi
1.7 paf 5113:
1.122 moko 5114: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
5115: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
5116: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
5117: APACHE_CFLAGS=`$APXS -q CFLAGS`
5118:
1.150 moko 5119: fi
1.7 paf 5120:
5121:
1.62 paf 5122:
1.122 moko 5123:
1.150 moko 5124: if test -n "$APACHE"; then
1.122 moko 5125: COMPILE_APACHE_MODULE_TRUE=
5126: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 5127: else
1.122 moko 5128: COMPILE_APACHE_MODULE_TRUE='#'
5129: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 5130: fi
1.1 paf 5131:
5132:
5133:
1.62 paf 5134:
5135:
1.7 paf 5136:
1.1 paf 5137:
5138:
5139:
1.62 paf 5140:
1.128 moko 5141: case `pwd` in
5142: *\ * | *\ *)
1.150 moko 5143: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5144: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 5145: esac
5146:
5147:
5148:
5149: macro_version='2.4.2'
5150: macro_revision='1.3337'
5151:
5152:
5153:
5154:
5155:
5156:
5157:
5158:
5159:
5160:
5161:
5162:
5163:
5164: ltmain="$ac_aux_dir/ltmain.sh"
5165:
5166: # Backslashify metacharacters that are still active within
5167: # double-quoted strings.
5168: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 5169:
1.128 moko 5170: # Same as above, but do not quote variable references.
5171: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 5172:
1.128 moko 5173: # Sed substitution to delay expansion of an escaped shell variable in a
5174: # double_quote_subst'ed string.
5175: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 5176:
1.128 moko 5177: # Sed substitution to delay expansion of an escaped single quote.
5178: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 5179:
1.128 moko 5180: # Sed substitution to avoid accidental globbing in evaled expressions
5181: no_glob_subst='s/\*/\\\*/g'
1.86 paf 5182:
1.128 moko 5183: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5184: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5185: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 5186:
1.150 moko 5187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5188: $as_echo_n "checking how to print strings... " >&6; }
1.128 moko 5189: # Test print first, because it will be a builtin if present.
5190: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5191: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5192: ECHO='print -r --'
5193: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5194: ECHO='printf %s\n'
5195: else
5196: # Use this function as a fallback that always works.
5197: func_fallback_echo ()
5198: {
5199: eval 'cat <<_LTECHO_EOF
5200: $1
5201: _LTECHO_EOF'
5202: }
5203: ECHO='func_fallback_echo'
5204: fi
1.86 paf 5205:
1.128 moko 5206: # func_echo_all arg...
5207: # Invoke $ECHO with all args, space-separated.
5208: func_echo_all ()
1.66 paf 5209: {
1.128 moko 5210: $ECHO ""
1.66 paf 5211: }
1.10 paf 5212:
1.128 moko 5213: case "$ECHO" in
1.150 moko 5214: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5215: $as_echo "printf" >&6; } ;;
5216: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5217: $as_echo "print -r" >&6; } ;;
5218: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5219: $as_echo "cat" >&6; } ;;
1.128 moko 5220: esac
5221:
5222:
5223:
5224:
5225:
5226:
5227:
5228:
5229:
5230:
5231:
5232:
5233:
5234:
1.150 moko 5235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5236: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5237: if ${ac_cv_path_SED+:} false; then :
5238: $as_echo_n "(cached) " >&6
5239: else
5240: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5241: for ac_i in 1 2 3 4 5 6 7; do
5242: ac_script="$ac_script$as_nl$ac_script"
5243: done
5244: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5245: { ac_script=; unset ac_script;}
5246: if test -z "$SED"; then
5247: ac_path_SED_found=false
5248: # Loop through the user's path and test for each of PROGNAME-LIST
5249: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 5250: for as_dir in $PATH
5251: do
5252: IFS=$as_save_IFS
5253: test -z "$as_dir" && as_dir=.
1.150 moko 5254: for ac_prog in sed gsed; do
1.128 moko 5255: for ac_exec_ext in '' $ac_executable_extensions; do
1.150 moko 5256: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5257: as_fn_executable_p "$ac_path_SED" || continue
1.150 moko 5258: # Check for GNU ac_path_SED and select it if it is found.
5259: # Check for GNU $ac_path_SED
5260: case `"$ac_path_SED" --version 2>&1` in
5261: *GNU*)
5262: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5263: *)
5264: ac_count=0
5265: $as_echo_n 0123456789 >"conftest.in"
5266: while :
5267: do
5268: cat "conftest.in" "conftest.in" >"conftest.tmp"
5269: mv "conftest.tmp" "conftest.in"
5270: cp "conftest.in" "conftest.nl"
5271: $as_echo '' >> "conftest.nl"
5272: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5273: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5274: as_fn_arith $ac_count + 1 && ac_count=$as_val
5275: if test $ac_count -gt ${ac_path_SED_max-0}; then
5276: # Best one so far, save it but keep looking for a better one
5277: ac_cv_path_SED="$ac_path_SED"
5278: ac_path_SED_max=$ac_count
5279: fi
5280: # 10*(2^10) chars as input seems more than enough
5281: test $ac_count -gt 10 && break
5282: done
5283: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5284: esac
5285:
5286: $ac_path_SED_found && break 3
1.128 moko 5287: done
5288: done
1.150 moko 5289: done
1.128 moko 5290: IFS=$as_save_IFS
1.150 moko 5291: if test -z "$ac_cv_path_SED"; then
5292: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 5293: fi
1.150 moko 5294: else
5295: ac_cv_path_SED=$SED
5296: fi
1.10 paf 5297:
1.66 paf 5298: fi
1.150 moko 5299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5300: $as_echo "$ac_cv_path_SED" >&6; }
5301: SED="$ac_cv_path_SED"
5302: rm -f conftest.sed
1.128 moko 5303:
5304: test -z "$SED" && SED=sed
5305: Xsed="$SED -e 1s/^X//"
1.10 paf 5306:
1.128 moko 5307:
5308:
5309:
5310:
5311:
5312:
5313:
5314:
5315:
5316:
1.150 moko 5317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5318: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5319: if ${ac_cv_path_GREP+:} false; then :
5320: $as_echo_n "(cached) " >&6
5321: else
5322: if test -z "$GREP"; then
5323: ac_path_GREP_found=false
5324: # Loop through the user's path and test for each of PROGNAME-LIST
5325: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5327: do
5328: IFS=$as_save_IFS
5329: test -z "$as_dir" && as_dir=.
5330: for ac_prog in grep ggrep; do
5331: for ac_exec_ext in '' $ac_executable_extensions; do
5332: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5333: as_fn_executable_p "$ac_path_GREP" || continue
1.150 moko 5334: # Check for GNU ac_path_GREP and select it if it is found.
5335: # Check for GNU $ac_path_GREP
5336: case `"$ac_path_GREP" --version 2>&1` in
5337: *GNU*)
5338: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5339: *)
5340: ac_count=0
5341: $as_echo_n 0123456789 >"conftest.in"
5342: while :
5343: do
5344: cat "conftest.in" "conftest.in" >"conftest.tmp"
5345: mv "conftest.tmp" "conftest.in"
5346: cp "conftest.in" "conftest.nl"
5347: $as_echo 'GREP' >> "conftest.nl"
5348: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350: as_fn_arith $ac_count + 1 && ac_count=$as_val
5351: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5352: # Best one so far, save it but keep looking for a better one
5353: ac_cv_path_GREP="$ac_path_GREP"
5354: ac_path_GREP_max=$ac_count
1.128 moko 5355: fi
1.150 moko 5356: # 10*(2^10) chars as input seems more than enough
5357: test $ac_count -gt 10 && break
5358: done
5359: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360: esac
5361:
5362: $ac_path_GREP_found && break 3
5363: done
5364: done
5365: done
5366: IFS=$as_save_IFS
5367: if test -z "$ac_cv_path_GREP"; then
5368: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5369: fi
5370: else
5371: ac_cv_path_GREP=$GREP
5372: fi
5373:
1.128 moko 5374: fi
1.150 moko 5375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5376: $as_echo "$ac_cv_path_GREP" >&6; }
5377: GREP="$ac_cv_path_GREP"
5378:
5379:
5380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5381: $as_echo_n "checking for egrep... " >&6; }
5382: if ${ac_cv_path_EGREP+:} false; then :
5383: $as_echo_n "(cached) " >&6
5384: else
5385: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5386: then ac_cv_path_EGREP="$GREP -E"
5387: else
5388: if test -z "$EGREP"; then
5389: ac_path_EGREP_found=false
5390: # Loop through the user's path and test for each of PROGNAME-LIST
5391: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5393: do
5394: IFS=$as_save_IFS
5395: test -z "$as_dir" && as_dir=.
5396: for ac_prog in egrep; do
5397: for ac_exec_ext in '' $ac_executable_extensions; do
5398: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5399: as_fn_executable_p "$ac_path_EGREP" || continue
1.150 moko 5400: # Check for GNU ac_path_EGREP and select it if it is found.
5401: # Check for GNU $ac_path_EGREP
5402: case `"$ac_path_EGREP" --version 2>&1` in
5403: *GNU*)
5404: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5405: *)
5406: ac_count=0
5407: $as_echo_n 0123456789 >"conftest.in"
5408: while :
5409: do
5410: cat "conftest.in" "conftest.in" >"conftest.tmp"
5411: mv "conftest.tmp" "conftest.in"
5412: cp "conftest.in" "conftest.nl"
5413: $as_echo 'EGREP' >> "conftest.nl"
5414: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5415: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5416: as_fn_arith $ac_count + 1 && ac_count=$as_val
5417: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5418: # Best one so far, save it but keep looking for a better one
5419: ac_cv_path_EGREP="$ac_path_EGREP"
5420: ac_path_EGREP_max=$ac_count
5421: fi
5422: # 10*(2^10) chars as input seems more than enough
5423: test $ac_count -gt 10 && break
5424: done
5425: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5426: esac
1.128 moko 5427:
1.150 moko 5428: $ac_path_EGREP_found && break 3
5429: done
5430: done
5431: done
5432: IFS=$as_save_IFS
5433: if test -z "$ac_cv_path_EGREP"; then
5434: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5435: fi
5436: else
5437: ac_cv_path_EGREP=$EGREP
5438: fi
1.128 moko 5439:
1.150 moko 5440: fi
5441: fi
5442: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5443: $as_echo "$ac_cv_path_EGREP" >&6; }
5444: EGREP="$ac_cv_path_EGREP"
5445:
5446:
5447: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5448: $as_echo_n "checking for fgrep... " >&6; }
5449: if ${ac_cv_path_FGREP+:} false; then :
5450: $as_echo_n "(cached) " >&6
5451: else
5452: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5453: then ac_cv_path_FGREP="$GREP -F"
5454: else
5455: if test -z "$FGREP"; then
5456: ac_path_FGREP_found=false
5457: # Loop through the user's path and test for each of PROGNAME-LIST
5458: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5460: do
5461: IFS=$as_save_IFS
5462: test -z "$as_dir" && as_dir=.
5463: for ac_prog in fgrep; do
5464: for ac_exec_ext in '' $ac_executable_extensions; do
5465: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5466: as_fn_executable_p "$ac_path_FGREP" || continue
1.150 moko 5467: # Check for GNU ac_path_FGREP and select it if it is found.
5468: # Check for GNU $ac_path_FGREP
5469: case `"$ac_path_FGREP" --version 2>&1` in
5470: *GNU*)
5471: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5472: *)
5473: ac_count=0
5474: $as_echo_n 0123456789 >"conftest.in"
5475: while :
5476: do
5477: cat "conftest.in" "conftest.in" >"conftest.tmp"
5478: mv "conftest.tmp" "conftest.in"
5479: cp "conftest.in" "conftest.nl"
5480: $as_echo 'FGREP' >> "conftest.nl"
5481: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5482: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5483: as_fn_arith $ac_count + 1 && ac_count=$as_val
5484: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5485: # Best one so far, save it but keep looking for a better one
5486: ac_cv_path_FGREP="$ac_path_FGREP"
5487: ac_path_FGREP_max=$ac_count
1.128 moko 5488: fi
1.150 moko 5489: # 10*(2^10) chars as input seems more than enough
5490: test $ac_count -gt 10 && break
5491: done
5492: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5493: esac
5494:
5495: $ac_path_FGREP_found && break 3
5496: done
5497: done
5498: done
5499: IFS=$as_save_IFS
5500: if test -z "$ac_cv_path_FGREP"; then
5501: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5502: fi
5503: else
5504: ac_cv_path_FGREP=$FGREP
5505: fi
5506:
5507: fi
1.128 moko 5508: fi
1.150 moko 5509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5510: $as_echo "$ac_cv_path_FGREP" >&6; }
5511: FGREP="$ac_cv_path_FGREP"
1.128 moko 5512:
5513:
5514: test -z "$GREP" && GREP=grep
5515:
5516:
5517:
5518:
5519:
5520:
5521:
5522:
5523:
5524:
5525:
5526:
5527:
5528:
5529:
5530:
5531:
5532:
5533:
1.150 moko 5534: # Check whether --with-gnu-ld was given.
5535: if test "${with_gnu_ld+set}" = set; then :
5536: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 5537: else
5538: with_gnu_ld=no
1.150 moko 5539: fi
5540:
1.128 moko 5541: ac_prog=ld
5542: if test "$GCC" = yes; then
5543: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 5544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5545: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 5546: case $host in
5547: *-*-mingw*)
5548: # gcc leaves a trailing carriage return which upsets mingw
5549: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5550: *)
5551: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5552: esac
5553: case $ac_prog in
5554: # Accept absolute paths.
5555: [\\/]* | ?:[\\/]*)
5556: re_direlt='/[^/][^/]*/\.\./'
5557: # Canonicalize the pathname of ld
5558: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5559: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5560: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5561: done
5562: test -z "$LD" && LD="$ac_prog"
5563: ;;
5564: "")
5565: # If it fails, then pretend we aren't using GCC.
5566: ac_prog=ld
5567: ;;
5568: *)
5569: # If it is relative, then search for the first ld in PATH.
5570: with_gnu_ld=unknown
5571: ;;
5572: esac
5573: elif test "$with_gnu_ld" = yes; then
1.150 moko 5574: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5575: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 5576: else
1.150 moko 5577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5578: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 5579: fi
1.150 moko 5580: if ${lt_cv_path_LD+:} false; then :
5581: $as_echo_n "(cached) " >&6
1.128 moko 5582: else
5583: if test -z "$LD"; then
5584: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5585: for ac_dir in $PATH; do
5586: IFS="$lt_save_ifs"
5587: test -z "$ac_dir" && ac_dir=.
5588: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5589: lt_cv_path_LD="$ac_dir/$ac_prog"
5590: # Check to see if the program is GNU ld. I'd rather use --version,
5591: # but apparently some variants of GNU ld only accept -v.
5592: # Break only if it was the GNU/non-GNU ld that we prefer.
5593: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5594: *GNU* | *'with BFD'*)
5595: test "$with_gnu_ld" != no && break
5596: ;;
5597: *)
5598: test "$with_gnu_ld" != yes && break
5599: ;;
5600: esac
5601: fi
5602: done
5603: IFS="$lt_save_ifs"
5604: else
5605: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5606: fi
5607: fi
5608:
5609: LD="$lt_cv_path_LD"
5610: if test -n "$LD"; then
1.150 moko 5611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5612: $as_echo "$LD" >&6; }
1.128 moko 5613: else
1.150 moko 5614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615: $as_echo "no" >&6; }
1.128 moko 5616: fi
1.150 moko 5617: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5619: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5620: if ${lt_cv_prog_gnu_ld+:} false; then :
5621: $as_echo_n "(cached) " >&6
1.128 moko 5622: else
5623: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5624: case `$LD -v 2>&1 </dev/null` in
5625: *GNU* | *'with BFD'*)
5626: lt_cv_prog_gnu_ld=yes
5627: ;;
5628: *)
5629: lt_cv_prog_gnu_ld=no
5630: ;;
5631: esac
5632: fi
1.150 moko 5633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5634: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 5635: with_gnu_ld=$lt_cv_prog_gnu_ld
5636:
5637:
5638:
5639:
5640:
5641:
5642:
5643:
5644:
1.150 moko 5645: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5646: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5647: if ${lt_cv_path_NM+:} false; then :
5648: $as_echo_n "(cached) " >&6
1.128 moko 5649: else
5650: if test -n "$NM"; then
5651: # Let the user override the test.
5652: lt_cv_path_NM="$NM"
5653: else
5654: lt_nm_to_check="${ac_tool_prefix}nm"
5655: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5656: lt_nm_to_check="$lt_nm_to_check nm"
5657: fi
5658: for lt_tmp_nm in $lt_nm_to_check; do
5659: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5660: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5661: IFS="$lt_save_ifs"
5662: test -z "$ac_dir" && ac_dir=.
5663: tmp_nm="$ac_dir/$lt_tmp_nm"
5664: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5665: # Check to see if the nm accepts a BSD-compat flag.
5666: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5667: # nm: unknown option "B" ignored
5668: # Tru64's nm complains that /dev/null is an invalid object file
5669: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5670: */dev/null* | *'Invalid file or object type'*)
5671: lt_cv_path_NM="$tmp_nm -B"
5672: break
5673: ;;
5674: *)
5675: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5676: */dev/null*)
5677: lt_cv_path_NM="$tmp_nm -p"
5678: break
5679: ;;
5680: *)
5681: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5682: continue # so that we can try to find one that supports BSD flags
5683: ;;
5684: esac
5685: ;;
5686: esac
5687: fi
5688: done
5689: IFS="$lt_save_ifs"
5690: done
5691: : ${lt_cv_path_NM=no}
5692: fi
5693: fi
1.150 moko 5694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5695: $as_echo "$lt_cv_path_NM" >&6; }
1.128 moko 5696: if test "$lt_cv_path_NM" != "no"; then
5697: NM="$lt_cv_path_NM"
5698: else
5699: # Didn't find any BSD compatible name lister, look for dumpbin.
5700: if test -n "$DUMPBIN"; then :
5701: # Let the user override the test.
5702: else
5703: if test -n "$ac_tool_prefix"; then
5704: for ac_prog in dumpbin "link -dump"
5705: do
5706: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5707: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 5708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709: $as_echo_n "checking for $ac_word... " >&6; }
5710: if ${ac_cv_prog_DUMPBIN+:} false; then :
5711: $as_echo_n "(cached) " >&6
1.128 moko 5712: else
5713: if test -n "$DUMPBIN"; then
5714: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5715: else
5716: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717: for as_dir in $PATH
5718: do
5719: IFS=$as_save_IFS
5720: test -z "$as_dir" && as_dir=.
1.150 moko 5721: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5722: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5723: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.150 moko 5724: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5725: break 2
5726: fi
5727: done
1.150 moko 5728: done
5729: IFS=$as_save_IFS
1.128 moko 5730:
5731: fi
5732: fi
5733: DUMPBIN=$ac_cv_prog_DUMPBIN
5734: if test -n "$DUMPBIN"; then
1.150 moko 5735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5736: $as_echo "$DUMPBIN" >&6; }
1.128 moko 5737: else
1.150 moko 5738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739: $as_echo "no" >&6; }
1.128 moko 5740: fi
5741:
1.150 moko 5742:
1.128 moko 5743: test -n "$DUMPBIN" && break
5744: done
5745: fi
5746: if test -z "$DUMPBIN"; then
5747: ac_ct_DUMPBIN=$DUMPBIN
5748: for ac_prog in dumpbin "link -dump"
5749: do
5750: # Extract the first word of "$ac_prog", so it can be a program name with args.
5751: set dummy $ac_prog; ac_word=$2
1.150 moko 5752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753: $as_echo_n "checking for $ac_word... " >&6; }
5754: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5755: $as_echo_n "(cached) " >&6
1.128 moko 5756: else
5757: if test -n "$ac_ct_DUMPBIN"; then
5758: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5759: else
5760: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761: for as_dir in $PATH
5762: do
5763: IFS=$as_save_IFS
5764: test -z "$as_dir" && as_dir=.
1.150 moko 5765: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5766: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5767: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.150 moko 5768: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5769: break 2
5770: fi
5771: done
1.150 moko 5772: done
5773: IFS=$as_save_IFS
1.128 moko 5774:
5775: fi
5776: fi
5777: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5778: if test -n "$ac_ct_DUMPBIN"; then
1.150 moko 5779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5780: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.128 moko 5781: else
1.150 moko 5782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783: $as_echo "no" >&6; }
1.128 moko 5784: fi
5785:
1.150 moko 5786:
1.128 moko 5787: test -n "$ac_ct_DUMPBIN" && break
5788: done
5789:
1.150 moko 5790: if test "x$ac_ct_DUMPBIN" = x; then
5791: DUMPBIN=":"
5792: else
5793: case $cross_compiling:$ac_tool_warned in
5794: yes:)
5795: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797: ac_tool_warned=yes ;;
5798: esac
5799: DUMPBIN=$ac_ct_DUMPBIN
5800: fi
1.128 moko 5801: fi
5802:
5803: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5804: *COFF*)
5805: DUMPBIN="$DUMPBIN -symbols"
5806: ;;
5807: *)
5808: DUMPBIN=:
5809: ;;
5810: esac
5811: fi
5812:
5813: if test "$DUMPBIN" != ":"; then
5814: NM="$DUMPBIN"
5815: fi
5816: fi
5817: test -z "$NM" && NM=nm
5818:
5819:
5820:
5821:
5822:
5823:
1.150 moko 5824: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5825: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5826: if ${lt_cv_nm_interface+:} false; then :
5827: $as_echo_n "(cached) " >&6
1.128 moko 5828: else
5829: lt_cv_nm_interface="BSD nm"
5830: echo "int some_variable = 0;" > conftest.$ac_ext
5831: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5832: (eval "$ac_compile" 2>conftest.err)
5833: cat conftest.err >&5
5834: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5835: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5836: cat conftest.err >&5
5837: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5838: cat conftest.out >&5
5839: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5840: lt_cv_nm_interface="MS dumpbin"
5841: fi
5842: rm -f conftest*
5843: fi
1.150 moko 5844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5845: $as_echo "$lt_cv_nm_interface" >&6; }
1.128 moko 5846:
1.150 moko 5847: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5848: $as_echo_n "checking whether ln -s works... " >&6; }
1.128 moko 5849: LN_S=$as_ln_s
5850: if test "$LN_S" = "ln -s"; then
1.150 moko 5851: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5852: $as_echo "yes" >&6; }
1.128 moko 5853: else
1.150 moko 5854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5855: $as_echo "no, using $LN_S" >&6; }
1.128 moko 5856: fi
5857:
5858: # find the maximum length of command line arguments
1.150 moko 5859: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5860: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5861: if ${lt_cv_sys_max_cmd_len+:} false; then :
5862: $as_echo_n "(cached) " >&6
1.128 moko 5863: else
5864: i=0
5865: teststring="ABCD"
5866:
5867: case $build_os in
5868: msdosdjgpp*)
5869: # On DJGPP, this test can blow up pretty badly due to problems in libc
5870: # (any single argument exceeding 2000 bytes causes a buffer overrun
5871: # during glob expansion). Even if it were fixed, the result of this
5872: # check would be larger than it should be.
5873: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5874: ;;
5875:
5876: gnu*)
5877: # Under GNU Hurd, this test is not required because there is
5878: # no limit to the length of command line arguments.
5879: # Libtool will interpret -1 as no limit whatsoever
5880: lt_cv_sys_max_cmd_len=-1;
5881: ;;
5882:
5883: cygwin* | mingw* | cegcc*)
5884: # On Win9x/ME, this test blows up -- it succeeds, but takes
5885: # about 5 minutes as the teststring grows exponentially.
5886: # Worse, since 9x/ME are not pre-emptively multitasking,
5887: # you end up with a "frozen" computer, even though with patience
5888: # the test eventually succeeds (with a max line length of 256k).
5889: # Instead, let's just punt: use the minimum linelength reported by
5890: # all of the supported platforms: 8192 (on NT/2K/XP).
5891: lt_cv_sys_max_cmd_len=8192;
5892: ;;
5893:
5894: mint*)
5895: # On MiNT this can take a long time and run out of memory.
5896: lt_cv_sys_max_cmd_len=8192;
5897: ;;
5898:
5899: amigaos*)
5900: # On AmigaOS with pdksh, this test takes hours, literally.
5901: # So we just punt and use a minimum line length of 8192.
5902: lt_cv_sys_max_cmd_len=8192;
5903: ;;
5904:
5905: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5906: # This has been around since 386BSD, at least. Likely further.
5907: if test -x /sbin/sysctl; then
5908: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5909: elif test -x /usr/sbin/sysctl; then
5910: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5911: else
5912: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5913: fi
5914: # And add a safety zone
5915: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5916: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5917: ;;
5918:
5919: interix*)
5920: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5921: lt_cv_sys_max_cmd_len=196608
5922: ;;
5923:
5924: os2*)
5925: # The test takes a long time on OS/2.
5926: lt_cv_sys_max_cmd_len=8192
5927: ;;
5928:
5929: osf*)
5930: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5931: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5932: # nice to cause kernel panics so lets avoid the loop below.
5933: # First set a reasonable default.
5934: lt_cv_sys_max_cmd_len=16384
5935: #
5936: if test -x /sbin/sysconfig; then
5937: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5938: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5939: esac
5940: fi
5941: ;;
5942: sco3.2v5*)
5943: lt_cv_sys_max_cmd_len=102400
5944: ;;
5945: sysv5* | sco5v6* | sysv4.2uw2*)
5946: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5947: if test -n "$kargmax"; then
5948: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5949: else
5950: lt_cv_sys_max_cmd_len=32768
5951: fi
5952: ;;
5953: *)
5954: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5955: if test -n "$lt_cv_sys_max_cmd_len"; then
5956: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5957: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5958: else
5959: # Make teststring a little bigger before we do anything with it.
5960: # a 1K string should be a reasonable start.
5961: for i in 1 2 3 4 5 6 7 8 ; do
5962: teststring=$teststring$teststring
5963: done
5964: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5965: # If test is not a shell built-in, we'll probably end up computing a
5966: # maximum length that is only half of the actual maximum length, but
5967: # we can't tell.
5968: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5969: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5970: test $i != 17 # 1/2 MB should be enough
5971: do
5972: i=`expr $i + 1`
5973: teststring=$teststring$teststring
5974: done
5975: # Only check the string length outside the loop.
5976: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5977: teststring=
5978: # Add a significant safety factor because C++ compilers can tack on
5979: # massive amounts of additional arguments before passing them to the
5980: # linker. It appears as though 1/2 is a usable value.
5981: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5982: fi
5983: ;;
5984: esac
5985:
5986: fi
5987:
5988: if test -n $lt_cv_sys_max_cmd_len ; then
1.150 moko 5989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5990: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 5991: else
1.150 moko 5992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5993: $as_echo "none" >&6; }
1.128 moko 5994: fi
5995: max_cmd_len=$lt_cv_sys_max_cmd_len
5996:
5997:
5998:
5999:
6000:
6001:
6002: : ${CP="cp -f"}
6003: : ${MV="mv -f"}
6004: : ${RM="rm -f"}
6005:
1.150 moko 6006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6007: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.128 moko 6008: # Try some XSI features
6009: xsi_shell=no
6010: ( _lt_dummy="a/b/c"
6011: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6012: = c,a/b,b/c, \
6013: && eval 'test $(( 1 + 1 )) -eq 2 \
6014: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6015: && xsi_shell=yes
1.150 moko 6016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6017: $as_echo "$xsi_shell" >&6; }
1.128 moko 6018:
6019:
1.150 moko 6020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6021: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.128 moko 6022: lt_shell_append=no
6023: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6024: >/dev/null 2>&1 \
6025: && lt_shell_append=yes
1.150 moko 6026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6027: $as_echo "$lt_shell_append" >&6; }
1.128 moko 6028:
6029:
6030: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6031: lt_unset=unset
6032: else
6033: lt_unset=false
6034: fi
6035:
6036:
6037:
6038:
6039:
6040: # test EBCDIC or ASCII
6041: case `echo X|tr X '\101'` in
6042: A) # ASCII based system
6043: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6044: lt_SP2NL='tr \040 \012'
6045: lt_NL2SP='tr \015\012 \040\040'
6046: ;;
6047: *) # EBCDIC based system
6048: lt_SP2NL='tr \100 \n'
6049: lt_NL2SP='tr \r\n \100\100'
6050: ;;
6051: esac
6052:
6053:
6054:
6055:
6056:
6057:
6058:
6059:
6060:
1.150 moko 6061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6062: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6063: if ${lt_cv_to_host_file_cmd+:} false; then :
6064: $as_echo_n "(cached) " >&6
1.128 moko 6065: else
6066: case $host in
6067: *-*-mingw* )
6068: case $build in
6069: *-*-mingw* ) # actually msys
6070: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6071: ;;
6072: *-*-cygwin* )
6073: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6074: ;;
6075: * ) # otherwise, assume *nix
6076: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6077: ;;
6078: esac
6079: ;;
6080: *-*-cygwin* )
6081: case $build in
6082: *-*-mingw* ) # actually msys
6083: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6084: ;;
6085: *-*-cygwin* )
6086: lt_cv_to_host_file_cmd=func_convert_file_noop
6087: ;;
6088: * ) # otherwise, assume *nix
6089: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6090: ;;
6091: esac
6092: ;;
6093: * ) # unhandled hosts (and "normal" native builds)
6094: lt_cv_to_host_file_cmd=func_convert_file_noop
6095: ;;
6096: esac
6097:
6098: fi
6099:
6100: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.150 moko 6101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6102: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 6103:
6104:
6105:
6106:
6107:
1.150 moko 6108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6109: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6110: if ${lt_cv_to_tool_file_cmd+:} false; then :
6111: $as_echo_n "(cached) " >&6
1.128 moko 6112: else
6113: #assume ordinary cross tools, or native build.
6114: lt_cv_to_tool_file_cmd=func_convert_file_noop
6115: case $host in
6116: *-*-mingw* )
6117: case $build in
6118: *-*-mingw* ) # actually msys
6119: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6120: ;;
6121: esac
6122: ;;
6123: esac
6124:
6125: fi
6126:
6127: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.150 moko 6128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6129: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 6130:
6131:
6132:
6133:
6134:
1.150 moko 6135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6136: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6137: if ${lt_cv_ld_reload_flag+:} false; then :
6138: $as_echo_n "(cached) " >&6
1.128 moko 6139: else
6140: lt_cv_ld_reload_flag='-r'
6141: fi
1.150 moko 6142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6143: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 6144: reload_flag=$lt_cv_ld_reload_flag
6145: case $reload_flag in
6146: "" | " "*) ;;
6147: *) reload_flag=" $reload_flag" ;;
6148: esac
6149: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6150: case $host_os in
6151: cygwin* | mingw* | pw32* | cegcc*)
6152: if test "$GCC" != yes; then
6153: reload_cmds=false
6154: fi
6155: ;;
6156: darwin*)
6157: if test "$GCC" = yes; then
6158: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6159: else
6160: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6161: fi
6162: ;;
6163: esac
6164:
6165:
6166:
6167:
6168:
6169:
6170:
6171:
6172:
6173: if test -n "$ac_tool_prefix"; then
6174: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6175: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 6176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177: $as_echo_n "checking for $ac_word... " >&6; }
6178: if ${ac_cv_prog_OBJDUMP+:} false; then :
6179: $as_echo_n "(cached) " >&6
1.128 moko 6180: else
6181: if test -n "$OBJDUMP"; then
6182: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6183: else
6184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185: for as_dir in $PATH
6186: do
6187: IFS=$as_save_IFS
6188: test -z "$as_dir" && as_dir=.
1.150 moko 6189: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6190: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6191: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 6192: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6193: break 2
6194: fi
6195: done
1.150 moko 6196: done
6197: IFS=$as_save_IFS
1.128 moko 6198:
6199: fi
6200: fi
6201: OBJDUMP=$ac_cv_prog_OBJDUMP
6202: if test -n "$OBJDUMP"; then
1.150 moko 6203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6204: $as_echo "$OBJDUMP" >&6; }
1.128 moko 6205: else
1.150 moko 6206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207: $as_echo "no" >&6; }
1.128 moko 6208: fi
6209:
1.150 moko 6210:
1.128 moko 6211: fi
6212: if test -z "$ac_cv_prog_OBJDUMP"; then
6213: ac_ct_OBJDUMP=$OBJDUMP
6214: # Extract the first word of "objdump", so it can be a program name with args.
6215: set dummy objdump; ac_word=$2
1.150 moko 6216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217: $as_echo_n "checking for $ac_word... " >&6; }
6218: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6219: $as_echo_n "(cached) " >&6
1.128 moko 6220: else
6221: if test -n "$ac_ct_OBJDUMP"; then
6222: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6223: else
6224: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225: for as_dir in $PATH
6226: do
6227: IFS=$as_save_IFS
6228: test -z "$as_dir" && as_dir=.
1.150 moko 6229: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6230: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6231: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 6232: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6233: break 2
6234: fi
6235: done
1.150 moko 6236: done
6237: IFS=$as_save_IFS
1.128 moko 6238:
6239: fi
6240: fi
6241: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6242: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 6243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6244: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 6245: else
1.150 moko 6246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247: $as_echo "no" >&6; }
1.128 moko 6248: fi
6249:
1.150 moko 6250: if test "x$ac_ct_OBJDUMP" = x; then
6251: OBJDUMP="false"
6252: else
6253: case $cross_compiling:$ac_tool_warned in
6254: yes:)
6255: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257: ac_tool_warned=yes ;;
6258: esac
6259: OBJDUMP=$ac_ct_OBJDUMP
6260: fi
1.128 moko 6261: else
6262: OBJDUMP="$ac_cv_prog_OBJDUMP"
6263: fi
6264:
6265: test -z "$OBJDUMP" && OBJDUMP=objdump
6266:
6267:
6268:
6269:
6270:
6271:
1.150 moko 6272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6273: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6274: if ${lt_cv_deplibs_check_method+:} false; then :
6275: $as_echo_n "(cached) " >&6
1.128 moko 6276: else
6277: lt_cv_file_magic_cmd='$MAGIC_CMD'
6278: lt_cv_file_magic_test_file=
6279: lt_cv_deplibs_check_method='unknown'
6280: # Need to set the preceding variable on all platforms that support
6281: # interlibrary dependencies.
6282: # 'none' -- dependencies not supported.
6283: # `unknown' -- same as none, but documents that we really don't know.
6284: # 'pass_all' -- all dependencies passed with no checks.
6285: # 'test_compile' -- check by making test program.
6286: # 'file_magic [[regex]]' -- check by looking for files in library path
6287: # which responds to the $file_magic_cmd with a given extended regex.
6288: # If you have `file' or equivalent on your system and you're not sure
6289: # whether `pass_all' will *always* work, you probably want this one.
6290:
6291: case $host_os in
6292: aix[4-9]*)
6293: lt_cv_deplibs_check_method=pass_all
6294: ;;
6295:
6296: beos*)
6297: lt_cv_deplibs_check_method=pass_all
6298: ;;
6299:
6300: bsdi[45]*)
6301: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6302: lt_cv_file_magic_cmd='/usr/bin/file -L'
6303: lt_cv_file_magic_test_file=/shlib/libc.so
6304: ;;
6305:
6306: cygwin*)
6307: # func_win32_libid is a shell function defined in ltmain.sh
6308: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6309: lt_cv_file_magic_cmd='func_win32_libid'
6310: ;;
6311:
6312: mingw* | pw32*)
6313: # Base MSYS/MinGW do not provide the 'file' command needed by
6314: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6315: # unless we find 'file', for example because we are cross-compiling.
6316: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6317: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6318: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6319: lt_cv_file_magic_cmd='func_win32_libid'
6320: else
6321: # Keep this pattern in sync with the one in func_win32_libid.
6322: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6323: lt_cv_file_magic_cmd='$OBJDUMP -f'
6324: fi
6325: ;;
6326:
6327: cegcc*)
6328: # use the weaker test based on 'objdump'. See mingw*.
6329: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6330: lt_cv_file_magic_cmd='$OBJDUMP -f'
6331: ;;
6332:
6333: darwin* | rhapsody*)
6334: lt_cv_deplibs_check_method=pass_all
6335: ;;
6336:
6337: freebsd* | dragonfly*)
6338: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6339: case $host_cpu in
6340: i*86 )
6341: # Not sure whether the presence of OpenBSD here was a mistake.
6342: # Let's accept both of them until this is cleared up.
6343: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6344: lt_cv_file_magic_cmd=/usr/bin/file
6345: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6346: ;;
6347: esac
6348: else
6349: lt_cv_deplibs_check_method=pass_all
6350: fi
6351: ;;
6352:
6353: gnu*)
6354: lt_cv_deplibs_check_method=pass_all
6355: ;;
6356:
6357: haiku*)
6358: lt_cv_deplibs_check_method=pass_all
6359: ;;
6360:
6361: hpux10.20* | hpux11*)
6362: lt_cv_file_magic_cmd=/usr/bin/file
6363: case $host_cpu in
6364: ia64*)
6365: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6366: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6367: ;;
6368: hppa*64*)
6369: 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]'
6370: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6371: ;;
6372: *)
6373: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6374: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6375: ;;
6376: esac
6377: ;;
6378:
6379: interix[3-9]*)
6380: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6381: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6382: ;;
6383:
6384: irix5* | irix6* | nonstopux*)
6385: case $LD in
6386: *-32|*"-32 ") libmagic=32-bit;;
6387: *-n32|*"-n32 ") libmagic=N32;;
6388: *-64|*"-64 ") libmagic=64-bit;;
6389: *) libmagic=never-match;;
6390: esac
6391: lt_cv_deplibs_check_method=pass_all
6392: ;;
6393:
6394: # This must be glibc/ELF.
6395: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6396: lt_cv_deplibs_check_method=pass_all
6397: ;;
6398:
6399: netbsd*)
6400: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6401: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6402: else
6403: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6404: fi
6405: ;;
6406:
6407: newos6*)
6408: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6409: lt_cv_file_magic_cmd=/usr/bin/file
6410: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6411: ;;
6412:
6413: *nto* | *qnx*)
6414: lt_cv_deplibs_check_method=pass_all
6415: ;;
6416:
6417: openbsd*)
6418: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6419: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6420: else
6421: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6422: fi
6423: ;;
6424:
6425: osf3* | osf4* | osf5*)
6426: lt_cv_deplibs_check_method=pass_all
6427: ;;
6428:
6429: rdos*)
6430: lt_cv_deplibs_check_method=pass_all
6431: ;;
6432:
6433: solaris*)
6434: lt_cv_deplibs_check_method=pass_all
6435: ;;
6436:
6437: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6438: lt_cv_deplibs_check_method=pass_all
6439: ;;
6440:
6441: sysv4 | sysv4.3*)
6442: case $host_vendor in
6443: motorola)
6444: 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]'
6445: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6446: ;;
6447: ncr)
6448: lt_cv_deplibs_check_method=pass_all
6449: ;;
6450: sequent)
6451: lt_cv_file_magic_cmd='/bin/file'
6452: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6453: ;;
6454: sni)
6455: lt_cv_file_magic_cmd='/bin/file'
6456: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6457: lt_cv_file_magic_test_file=/lib/libc.so
6458: ;;
6459: siemens)
6460: lt_cv_deplibs_check_method=pass_all
6461: ;;
6462: pc)
6463: lt_cv_deplibs_check_method=pass_all
6464: ;;
6465: esac
6466: ;;
6467:
6468: tpf*)
6469: lt_cv_deplibs_check_method=pass_all
6470: ;;
6471: esac
6472:
6473: fi
1.150 moko 6474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6475: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 6476:
6477: file_magic_glob=
6478: want_nocaseglob=no
6479: if test "$build" = "$host"; then
6480: case $host_os in
6481: mingw* | pw32*)
6482: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6483: want_nocaseglob=yes
6484: else
6485: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6486: fi
6487: ;;
6488: esac
6489: fi
6490:
6491: file_magic_cmd=$lt_cv_file_magic_cmd
6492: deplibs_check_method=$lt_cv_deplibs_check_method
6493: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6494:
6495:
6496:
6497:
6498:
6499:
6500:
6501:
6502:
6503:
6504:
6505:
6506:
6507:
6508:
6509:
6510:
6511:
6512:
6513:
6514:
6515:
6516: if test -n "$ac_tool_prefix"; then
6517: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6518: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 6519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520: $as_echo_n "checking for $ac_word... " >&6; }
6521: if ${ac_cv_prog_DLLTOOL+:} false; then :
6522: $as_echo_n "(cached) " >&6
1.128 moko 6523: else
6524: if test -n "$DLLTOOL"; then
6525: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6526: else
6527: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528: for as_dir in $PATH
6529: do
6530: IFS=$as_save_IFS
6531: test -z "$as_dir" && as_dir=.
1.150 moko 6532: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6533: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6534: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 6535: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6536: break 2
6537: fi
6538: done
1.150 moko 6539: done
6540: IFS=$as_save_IFS
1.128 moko 6541:
6542: fi
6543: fi
6544: DLLTOOL=$ac_cv_prog_DLLTOOL
6545: if test -n "$DLLTOOL"; then
1.150 moko 6546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6547: $as_echo "$DLLTOOL" >&6; }
1.128 moko 6548: else
1.150 moko 6549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550: $as_echo "no" >&6; }
1.128 moko 6551: fi
6552:
1.150 moko 6553:
1.128 moko 6554: fi
6555: if test -z "$ac_cv_prog_DLLTOOL"; then
6556: ac_ct_DLLTOOL=$DLLTOOL
6557: # Extract the first word of "dlltool", so it can be a program name with args.
6558: set dummy dlltool; ac_word=$2
1.150 moko 6559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560: $as_echo_n "checking for $ac_word... " >&6; }
6561: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6562: $as_echo_n "(cached) " >&6
1.128 moko 6563: else
6564: if test -n "$ac_ct_DLLTOOL"; then
6565: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6566: else
6567: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568: for as_dir in $PATH
6569: do
6570: IFS=$as_save_IFS
6571: test -z "$as_dir" && as_dir=.
1.150 moko 6572: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6573: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6574: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 6575: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6576: break 2
6577: fi
6578: done
1.150 moko 6579: done
6580: IFS=$as_save_IFS
1.128 moko 6581:
6582: fi
6583: fi
6584: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6585: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 6586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6587: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 6588: else
1.150 moko 6589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590: $as_echo "no" >&6; }
1.128 moko 6591: fi
6592:
1.150 moko 6593: if test "x$ac_ct_DLLTOOL" = x; then
6594: DLLTOOL="false"
6595: else
6596: case $cross_compiling:$ac_tool_warned in
6597: yes:)
6598: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6599: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600: ac_tool_warned=yes ;;
6601: esac
6602: DLLTOOL=$ac_ct_DLLTOOL
6603: fi
1.128 moko 6604: else
6605: DLLTOOL="$ac_cv_prog_DLLTOOL"
6606: fi
6607:
6608: test -z "$DLLTOOL" && DLLTOOL=dlltool
6609:
6610:
6611:
6612:
6613:
6614:
6615:
1.150 moko 6616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6617: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6618: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6619: $as_echo_n "(cached) " >&6
1.128 moko 6620: else
6621: lt_cv_sharedlib_from_linklib_cmd='unknown'
6622:
6623: case $host_os in
6624: cygwin* | mingw* | pw32* | cegcc*)
6625: # two different shell functions defined in ltmain.sh
6626: # decide which to use based on capabilities of $DLLTOOL
6627: case `$DLLTOOL --help 2>&1` in
6628: *--identify-strict*)
6629: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6630: ;;
6631: *)
6632: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6633: ;;
6634: esac
6635: ;;
6636: *)
6637: # fallback: assume linklib IS sharedlib
6638: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6639: ;;
6640: esac
6641:
6642: fi
1.150 moko 6643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6644: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 6645: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6646: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6647:
6648:
6649:
6650:
6651:
6652:
6653:
6654: if test -n "$ac_tool_prefix"; then
6655: for ac_prog in ar
6656: do
6657: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6658: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 6659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660: $as_echo_n "checking for $ac_word... " >&6; }
6661: if ${ac_cv_prog_AR+:} false; then :
6662: $as_echo_n "(cached) " >&6
1.128 moko 6663: else
6664: if test -n "$AR"; then
6665: ac_cv_prog_AR="$AR" # Let the user override the test.
6666: else
6667: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668: for as_dir in $PATH
6669: do
6670: IFS=$as_save_IFS
6671: test -z "$as_dir" && as_dir=.
1.150 moko 6672: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6673: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6674: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.150 moko 6675: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6676: break 2
6677: fi
6678: done
1.150 moko 6679: done
6680: IFS=$as_save_IFS
1.128 moko 6681:
6682: fi
6683: fi
6684: AR=$ac_cv_prog_AR
6685: if test -n "$AR"; then
1.150 moko 6686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6687: $as_echo "$AR" >&6; }
1.128 moko 6688: else
1.150 moko 6689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690: $as_echo "no" >&6; }
1.128 moko 6691: fi
6692:
1.150 moko 6693:
1.128 moko 6694: test -n "$AR" && break
6695: done
6696: fi
6697: if test -z "$AR"; then
6698: ac_ct_AR=$AR
6699: for ac_prog in ar
6700: do
6701: # Extract the first word of "$ac_prog", so it can be a program name with args.
6702: set dummy $ac_prog; ac_word=$2
1.150 moko 6703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704: $as_echo_n "checking for $ac_word... " >&6; }
6705: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6706: $as_echo_n "(cached) " >&6
1.128 moko 6707: else
6708: if test -n "$ac_ct_AR"; then
6709: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6710: else
6711: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712: for as_dir in $PATH
6713: do
6714: IFS=$as_save_IFS
6715: test -z "$as_dir" && as_dir=.
1.150 moko 6716: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6717: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6718: ac_cv_prog_ac_ct_AR="$ac_prog"
1.150 moko 6719: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6720: break 2
6721: fi
6722: done
1.150 moko 6723: done
6724: IFS=$as_save_IFS
1.128 moko 6725:
6726: fi
6727: fi
6728: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6729: if test -n "$ac_ct_AR"; then
1.150 moko 6730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6731: $as_echo "$ac_ct_AR" >&6; }
1.128 moko 6732: else
1.150 moko 6733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734: $as_echo "no" >&6; }
1.128 moko 6735: fi
6736:
1.150 moko 6737:
1.128 moko 6738: test -n "$ac_ct_AR" && break
6739: done
6740:
1.150 moko 6741: if test "x$ac_ct_AR" = x; then
6742: AR="false"
6743: else
6744: case $cross_compiling:$ac_tool_warned in
6745: yes:)
6746: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6747: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748: ac_tool_warned=yes ;;
6749: esac
6750: AR=$ac_ct_AR
6751: fi
1.128 moko 6752: fi
6753:
6754: : ${AR=ar}
6755: : ${AR_FLAGS=cru}
6756:
6757:
6758:
6759:
6760:
6761:
6762:
6763:
6764:
6765:
6766:
1.150 moko 6767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6768: $as_echo_n "checking for archiver @FILE support... " >&6; }
6769: if ${lt_cv_ar_at_file+:} false; then :
6770: $as_echo_n "(cached) " >&6
1.128 moko 6771: else
6772: lt_cv_ar_at_file=no
1.150 moko 6773: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 6774: /* end confdefs.h. */
6775:
6776: int
6777: main ()
6778: {
6779:
6780: ;
6781: return 0;
6782: }
6783: _ACEOF
1.150 moko 6784: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 6785: echo conftest.$ac_objext > conftest.lst
6786: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 6787: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 6788: (eval $lt_ar_try) 2>&5
6789: ac_status=$?
1.150 moko 6790: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791: test $ac_status = 0; }
1.128 moko 6792: if test "$ac_status" -eq 0; then
6793: # Ensure the archiver fails upon bogus file names.
6794: rm -f conftest.$ac_objext libconftest.a
1.150 moko 6795: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 6796: (eval $lt_ar_try) 2>&5
6797: ac_status=$?
1.150 moko 6798: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6799: test $ac_status = 0; }
1.128 moko 6800: if test "$ac_status" -ne 0; then
6801: lt_cv_ar_at_file=@
6802: fi
6803: fi
6804: rm -f conftest.* libconftest.a
6805:
6806: fi
1.150 moko 6807: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 6808:
6809: fi
1.150 moko 6810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6811: $as_echo "$lt_cv_ar_at_file" >&6; }
1.128 moko 6812:
6813: if test "x$lt_cv_ar_at_file" = xno; then
6814: archiver_list_spec=
6815: else
6816: archiver_list_spec=$lt_cv_ar_at_file
6817: fi
6818:
6819:
6820:
6821:
6822:
6823:
6824:
6825: if test -n "$ac_tool_prefix"; then
6826: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6827: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.150 moko 6828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829: $as_echo_n "checking for $ac_word... " >&6; }
6830: if ${ac_cv_prog_STRIP+:} false; then :
6831: $as_echo_n "(cached) " >&6
1.128 moko 6832: else
6833: if test -n "$STRIP"; then
6834: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6835: else
6836: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837: for as_dir in $PATH
6838: do
6839: IFS=$as_save_IFS
6840: test -z "$as_dir" && as_dir=.
1.150 moko 6841: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6842: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6843: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.150 moko 6844: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6845: break 2
6846: fi
6847: done
1.150 moko 6848: done
6849: IFS=$as_save_IFS
1.128 moko 6850:
6851: fi
6852: fi
6853: STRIP=$ac_cv_prog_STRIP
6854: if test -n "$STRIP"; then
1.150 moko 6855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6856: $as_echo "$STRIP" >&6; }
1.128 moko 6857: else
1.150 moko 6858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859: $as_echo "no" >&6; }
1.128 moko 6860: fi
6861:
1.150 moko 6862:
1.128 moko 6863: fi
6864: if test -z "$ac_cv_prog_STRIP"; then
6865: ac_ct_STRIP=$STRIP
6866: # Extract the first word of "strip", so it can be a program name with args.
6867: set dummy strip; ac_word=$2
1.150 moko 6868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869: $as_echo_n "checking for $ac_word... " >&6; }
6870: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6871: $as_echo_n "(cached) " >&6
1.128 moko 6872: else
6873: if test -n "$ac_ct_STRIP"; then
6874: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6875: else
6876: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877: for as_dir in $PATH
6878: do
6879: IFS=$as_save_IFS
6880: test -z "$as_dir" && as_dir=.
1.150 moko 6881: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6882: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6883: ac_cv_prog_ac_ct_STRIP="strip"
1.150 moko 6884: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6885: break 2
6886: fi
6887: done
1.150 moko 6888: done
6889: IFS=$as_save_IFS
1.128 moko 6890:
6891: fi
6892: fi
6893: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6894: if test -n "$ac_ct_STRIP"; then
1.150 moko 6895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6896: $as_echo "$ac_ct_STRIP" >&6; }
1.128 moko 6897: else
1.150 moko 6898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899: $as_echo "no" >&6; }
1.128 moko 6900: fi
6901:
1.150 moko 6902: if test "x$ac_ct_STRIP" = x; then
6903: STRIP=":"
6904: else
6905: case $cross_compiling:$ac_tool_warned in
6906: yes:)
6907: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909: ac_tool_warned=yes ;;
6910: esac
6911: STRIP=$ac_ct_STRIP
6912: fi
1.128 moko 6913: else
6914: STRIP="$ac_cv_prog_STRIP"
6915: fi
6916:
6917: test -z "$STRIP" && STRIP=:
6918:
6919:
6920:
6921:
6922:
6923:
6924: if test -n "$ac_tool_prefix"; then
6925: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6926: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.150 moko 6927: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928: $as_echo_n "checking for $ac_word... " >&6; }
6929: if ${ac_cv_prog_RANLIB+:} false; then :
6930: $as_echo_n "(cached) " >&6
1.128 moko 6931: else
6932: if test -n "$RANLIB"; then
6933: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6934: else
6935: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936: for as_dir in $PATH
6937: do
6938: IFS=$as_save_IFS
6939: test -z "$as_dir" && as_dir=.
1.150 moko 6940: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6941: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6942: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.150 moko 6943: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6944: break 2
6945: fi
6946: done
1.150 moko 6947: done
6948: IFS=$as_save_IFS
1.128 moko 6949:
6950: fi
6951: fi
6952: RANLIB=$ac_cv_prog_RANLIB
6953: if test -n "$RANLIB"; then
1.150 moko 6954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6955: $as_echo "$RANLIB" >&6; }
1.128 moko 6956: else
1.150 moko 6957: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958: $as_echo "no" >&6; }
1.128 moko 6959: fi
6960:
1.150 moko 6961:
1.128 moko 6962: fi
6963: if test -z "$ac_cv_prog_RANLIB"; then
6964: ac_ct_RANLIB=$RANLIB
6965: # Extract the first word of "ranlib", so it can be a program name with args.
6966: set dummy ranlib; ac_word=$2
1.150 moko 6967: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968: $as_echo_n "checking for $ac_word... " >&6; }
6969: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6970: $as_echo_n "(cached) " >&6
1.128 moko 6971: else
6972: if test -n "$ac_ct_RANLIB"; then
6973: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6974: else
6975: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976: for as_dir in $PATH
6977: do
6978: IFS=$as_save_IFS
6979: test -z "$as_dir" && as_dir=.
1.150 moko 6980: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6981: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6982: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.150 moko 6983: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6984: break 2
6985: fi
6986: done
1.150 moko 6987: done
6988: IFS=$as_save_IFS
1.128 moko 6989:
6990: fi
6991: fi
6992: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6993: if test -n "$ac_ct_RANLIB"; then
1.150 moko 6994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6995: $as_echo "$ac_ct_RANLIB" >&6; }
1.128 moko 6996: else
1.150 moko 6997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998: $as_echo "no" >&6; }
1.128 moko 6999: fi
7000:
1.150 moko 7001: if test "x$ac_ct_RANLIB" = x; then
7002: RANLIB=":"
7003: else
7004: case $cross_compiling:$ac_tool_warned in
7005: yes:)
7006: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008: ac_tool_warned=yes ;;
7009: esac
7010: RANLIB=$ac_ct_RANLIB
7011: fi
1.128 moko 7012: else
7013: RANLIB="$ac_cv_prog_RANLIB"
7014: fi
7015:
7016: test -z "$RANLIB" && RANLIB=:
7017:
7018:
7019:
7020:
7021:
7022:
7023: # Determine commands to create old-style static archives.
7024: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7025: old_postinstall_cmds='chmod 644 $oldlib'
7026: old_postuninstall_cmds=
7027:
7028: if test -n "$RANLIB"; then
7029: case $host_os in
7030: openbsd*)
7031: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7032: ;;
7033: *)
7034: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7035: ;;
7036: esac
7037: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7038: fi
7039:
7040: case $host_os in
7041: darwin*)
7042: lock_old_archive_extraction=yes ;;
7043: *)
7044: lock_old_archive_extraction=no ;;
7045: esac
7046:
7047:
7048:
7049:
7050:
7051:
7052:
7053:
7054:
7055:
7056:
7057:
7058:
7059:
7060:
7061:
7062:
7063:
7064:
7065:
7066:
7067:
7068:
7069:
7070:
7071:
7072:
7073:
7074:
7075:
7076:
7077:
7078:
7079:
7080:
7081:
7082:
7083:
7084:
7085: # If no C compiler was specified, use CC.
7086: LTCC=${LTCC-"$CC"}
7087:
7088: # If no C compiler flags were specified, use CFLAGS.
7089: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7090:
7091: # Allow CC to be a program name with arguments.
7092: compiler=$CC
7093:
7094:
7095: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.150 moko 7096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7097: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7098: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7099: $as_echo_n "(cached) " >&6
1.128 moko 7100: else
7101:
7102: # These are sane defaults that work on at least a few old systems.
7103: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7104:
7105: # Character class describing NM global symbol codes.
7106: symcode='[BCDEGRST]'
7107:
7108: # Regexp to match symbols that can be accessed directly from C.
7109: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7110:
7111: # Define system-specific variables.
7112: case $host_os in
7113: aix*)
7114: symcode='[BCDT]'
7115: ;;
7116: cygwin* | mingw* | pw32* | cegcc*)
7117: symcode='[ABCDGISTW]'
7118: ;;
7119: hpux*)
7120: if test "$host_cpu" = ia64; then
7121: symcode='[ABCDEGRST]'
7122: fi
7123: ;;
7124: irix* | nonstopux*)
7125: symcode='[BCDEGRST]'
7126: ;;
7127: osf*)
7128: symcode='[BCDEGQRST]'
7129: ;;
7130: solaris*)
7131: symcode='[BDRT]'
7132: ;;
7133: sco3.2v5*)
7134: symcode='[DT]'
7135: ;;
7136: sysv4.2uw2*)
7137: symcode='[DT]'
7138: ;;
7139: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7140: symcode='[ABDT]'
7141: ;;
7142: sysv4)
7143: symcode='[DFNSTU]'
7144: ;;
7145: esac
7146:
7147: # If we're using GNU nm, then use its standard symbol codes.
7148: case `$NM -V 2>&1` in
7149: *GNU* | *'with BFD'*)
7150: symcode='[ABCDGIRSTW]' ;;
7151: esac
7152:
7153: # Transform an extracted symbol line into a proper C declaration.
7154: # Some systems (esp. on ia64) link data and code symbols differently,
7155: # so use this general approach.
7156: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7157:
7158: # Transform an extracted symbol line into symbol name and symbol address
7159: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7160: 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'"
7161:
7162: # Handle CRLF in mingw tool chain
7163: opt_cr=
7164: case $build_os in
7165: mingw*)
7166: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7167: ;;
7168: esac
7169:
7170: # Try without a prefix underscore, then with it.
7171: for ac_symprfx in "" "_"; do
7172:
7173: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7174: symxfrm="\\1 $ac_symprfx\\2 \\2"
7175:
7176: # Write the raw and C identifiers.
7177: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7178: # Fake it for dumpbin and say T for any non-static function
7179: # and D for any global variable.
7180: # Also find C++ and __fastcall symbols from MSVC++,
7181: # which start with @ or ?.
7182: lt_cv_sys_global_symbol_pipe="$AWK '"\
7183: " {last_section=section; section=\$ 3};"\
7184: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7185: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7186: " \$ 0!~/External *\|/{next};"\
7187: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7188: " {if(hide[section]) next};"\
7189: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7190: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7191: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7192: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7193: " ' prfx=^$ac_symprfx"
7194: else
7195: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7196: fi
7197: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7198:
7199: # Check to see that the pipe works correctly.
7200: pipe_works=no
7201:
7202: rm -f conftest*
7203: cat > conftest.$ac_ext <<_LT_EOF
7204: #ifdef __cplusplus
7205: extern "C" {
7206: #endif
7207: char nm_test_var;
7208: void nm_test_func(void);
7209: void nm_test_func(void){}
7210: #ifdef __cplusplus
7211: }
7212: #endif
7213: int main(){nm_test_var='a';nm_test_func();return(0);}
7214: _LT_EOF
7215:
1.150 moko 7216: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7217: (eval $ac_compile) 2>&5
7218: ac_status=$?
1.150 moko 7219: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7220: test $ac_status = 0; }; then
1.128 moko 7221: # Now try to grab the symbols.
7222: nlist=conftest.nm
1.150 moko 7223: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.128 moko 7224: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7225: ac_status=$?
1.150 moko 7226: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227: test $ac_status = 0; } && test -s "$nlist"; then
1.128 moko 7228: # Try sorting and uniquifying the output.
7229: if sort "$nlist" | uniq > "$nlist"T; then
7230: mv -f "$nlist"T "$nlist"
7231: else
7232: rm -f "$nlist"T
7233: fi
7234:
7235: # Make sure that we snagged all the symbols we need.
7236: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7237: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7238: cat <<_LT_EOF > conftest.$ac_ext
7239: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7240: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7241: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7242: relocations are performed -- see ld's documentation on pseudo-relocs. */
7243: # define LT_DLSYM_CONST
7244: #elif defined(__osf__)
7245: /* This system does not cope well with relocations in const data. */
7246: # define LT_DLSYM_CONST
7247: #else
7248: # define LT_DLSYM_CONST const
7249: #endif
7250:
7251: #ifdef __cplusplus
7252: extern "C" {
7253: #endif
7254:
7255: _LT_EOF
7256: # Now generate the symbol file.
7257: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7258:
7259: cat <<_LT_EOF >> conftest.$ac_ext
7260:
7261: /* The mapping between symbol names and symbols. */
7262: LT_DLSYM_CONST struct {
7263: const char *name;
7264: void *address;
7265: }
7266: lt__PROGRAM__LTX_preloaded_symbols[] =
7267: {
7268: { "@PROGRAM@", (void *) 0 },
7269: _LT_EOF
7270: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7271: cat <<\_LT_EOF >> conftest.$ac_ext
7272: {0, (void *) 0}
7273: };
7274:
7275: /* This works around a problem in FreeBSD linker */
7276: #ifdef FREEBSD_WORKAROUND
7277: static const void *lt_preloaded_setup() {
7278: return lt__PROGRAM__LTX_preloaded_symbols;
7279: }
7280: #endif
7281:
7282: #ifdef __cplusplus
7283: }
7284: #endif
7285: _LT_EOF
7286: # Now try linking the two files.
7287: mv conftest.$ac_objext conftstm.$ac_objext
7288: lt_globsym_save_LIBS=$LIBS
7289: lt_globsym_save_CFLAGS=$CFLAGS
7290: LIBS="conftstm.$ac_objext"
7291: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 7292: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 7293: (eval $ac_link) 2>&5
7294: ac_status=$?
1.150 moko 7295: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7296: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.128 moko 7297: pipe_works=yes
7298: fi
7299: LIBS=$lt_globsym_save_LIBS
7300: CFLAGS=$lt_globsym_save_CFLAGS
7301: else
7302: echo "cannot find nm_test_func in $nlist" >&5
7303: fi
7304: else
7305: echo "cannot find nm_test_var in $nlist" >&5
7306: fi
7307: else
7308: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7309: fi
7310: else
7311: echo "$progname: failed program was:" >&5
7312: cat conftest.$ac_ext >&5
7313: fi
7314: rm -rf conftest* conftst*
7315:
7316: # Do not use the global_symbol_pipe unless it works.
7317: if test "$pipe_works" = yes; then
7318: break
7319: else
7320: lt_cv_sys_global_symbol_pipe=
7321: fi
7322: done
7323:
7324: fi
7325:
7326: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7327: lt_cv_sys_global_symbol_to_cdecl=
7328: fi
7329: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.150 moko 7330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7331: $as_echo "failed" >&6; }
1.128 moko 7332: else
1.150 moko 7333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7334: $as_echo "ok" >&6; }
1.128 moko 7335: fi
7336:
7337: # Response file support.
7338: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7339: nm_file_list_spec='@'
7340: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7341: nm_file_list_spec='@'
7342: fi
7343:
7344:
7345:
7346:
7347:
7348:
7349:
7350:
7351:
7352:
7353:
7354:
7355:
7356:
7357:
7358:
7359:
7360:
7361:
7362:
7363:
7364:
7365:
7366:
7367:
7368:
7369:
1.150 moko 7370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7371: $as_echo_n "checking for sysroot... " >&6; }
1.128 moko 7372:
1.150 moko 7373: # Check whether --with-sysroot was given.
7374: if test "${with_sysroot+set}" = set; then :
7375: withval=$with_sysroot;
1.128 moko 7376: else
7377: with_sysroot=no
1.150 moko 7378: fi
7379:
1.128 moko 7380:
7381: lt_sysroot=
7382: case ${with_sysroot} in #(
7383: yes)
7384: if test "$GCC" = yes; then
7385: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7386: fi
7387: ;; #(
7388: /*)
7389: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7390: ;; #(
7391: no|'')
7392: ;; #(
7393: *)
1.150 moko 7394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7395: $as_echo "${with_sysroot}" >&6; }
7396: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 7397: ;;
7398: esac
7399:
1.150 moko 7400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7401: $as_echo "${lt_sysroot:-no}" >&6; }
1.128 moko 7402:
7403:
7404:
7405:
7406:
1.150 moko 7407: # Check whether --enable-libtool-lock was given.
7408: if test "${enable_libtool_lock+set}" = set; then :
7409: enableval=$enable_libtool_lock;
7410: fi
1.128 moko 7411:
7412: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7413:
7414: # Some flags need to be propagated to the compiler or linker for good
7415: # libtool support.
7416: case $host in
7417: ia64-*-hpux*)
7418: # Find out which ABI we are using.
7419: echo 'int i;' > conftest.$ac_ext
1.150 moko 7420: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7421: (eval $ac_compile) 2>&5
7422: ac_status=$?
1.150 moko 7423: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424: test $ac_status = 0; }; then
1.128 moko 7425: case `/usr/bin/file conftest.$ac_objext` in
7426: *ELF-32*)
7427: HPUX_IA64_MODE="32"
7428: ;;
7429: *ELF-64*)
7430: HPUX_IA64_MODE="64"
7431: ;;
7432: esac
7433: fi
7434: rm -rf conftest*
7435: ;;
7436: *-*-irix6*)
7437: # Find out which ABI we are using.
7438: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 7439: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7440: (eval $ac_compile) 2>&5
7441: ac_status=$?
1.150 moko 7442: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443: test $ac_status = 0; }; then
1.128 moko 7444: if test "$lt_cv_prog_gnu_ld" = yes; then
7445: case `/usr/bin/file conftest.$ac_objext` in
7446: *32-bit*)
7447: LD="${LD-ld} -melf32bsmip"
7448: ;;
7449: *N32*)
7450: LD="${LD-ld} -melf32bmipn32"
7451: ;;
7452: *64-bit*)
7453: LD="${LD-ld} -melf64bmip"
7454: ;;
7455: esac
7456: else
7457: case `/usr/bin/file conftest.$ac_objext` in
7458: *32-bit*)
7459: LD="${LD-ld} -32"
7460: ;;
7461: *N32*)
7462: LD="${LD-ld} -n32"
7463: ;;
7464: *64-bit*)
7465: LD="${LD-ld} -64"
7466: ;;
7467: esac
7468: fi
7469: fi
7470: rm -rf conftest*
7471: ;;
7472:
7473: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7474: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7475: # Find out which ABI we are using.
7476: echo 'int i;' > conftest.$ac_ext
1.150 moko 7477: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7478: (eval $ac_compile) 2>&5
7479: ac_status=$?
1.150 moko 7480: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7481: test $ac_status = 0; }; then
1.128 moko 7482: case `/usr/bin/file conftest.o` in
7483: *32-bit*)
7484: case $host in
7485: x86_64-*kfreebsd*-gnu)
7486: LD="${LD-ld} -m elf_i386_fbsd"
7487: ;;
7488: x86_64-*linux*)
7489: LD="${LD-ld} -m elf_i386"
7490: ;;
7491: ppc64-*linux*|powerpc64-*linux*)
7492: LD="${LD-ld} -m elf32ppclinux"
7493: ;;
7494: s390x-*linux*)
7495: LD="${LD-ld} -m elf_s390"
7496: ;;
7497: sparc64-*linux*)
7498: LD="${LD-ld} -m elf32_sparc"
7499: ;;
7500: esac
7501: ;;
7502: *64-bit*)
7503: case $host in
7504: x86_64-*kfreebsd*-gnu)
7505: LD="${LD-ld} -m elf_x86_64_fbsd"
7506: ;;
7507: x86_64-*linux*)
7508: LD="${LD-ld} -m elf_x86_64"
7509: ;;
7510: ppc*-*linux*|powerpc*-*linux*)
7511: LD="${LD-ld} -m elf64ppc"
7512: ;;
7513: s390*-*linux*|s390*-*tpf*)
7514: LD="${LD-ld} -m elf64_s390"
7515: ;;
7516: sparc*-*linux*)
7517: LD="${LD-ld} -m elf64_sparc"
7518: ;;
7519: esac
7520: ;;
7521: esac
7522: fi
7523: rm -rf conftest*
7524: ;;
7525:
7526: *-*-sco3.2v5*)
7527: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7528: SAVE_CFLAGS="$CFLAGS"
7529: CFLAGS="$CFLAGS -belf"
1.150 moko 7530: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7531: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7532: if ${lt_cv_cc_needs_belf+:} false; then :
7533: $as_echo_n "(cached) " >&6
1.128 moko 7534: else
7535: ac_ext=c
7536: ac_cpp='$CPP $CPPFLAGS'
7537: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7538: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7539: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7540:
1.150 moko 7541: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7542: /* end confdefs.h. */
7543:
7544: int
7545: main ()
7546: {
7547:
7548: ;
7549: return 0;
7550: }
7551: _ACEOF
1.150 moko 7552: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 7553: lt_cv_cc_needs_belf=yes
7554: else
1.150 moko 7555: lt_cv_cc_needs_belf=no
1.128 moko 7556: fi
1.150 moko 7557: rm -f core conftest.err conftest.$ac_objext \
7558: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7559: ac_ext=c
7560: ac_cpp='$CPP $CPPFLAGS'
7561: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7562: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7563: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7564:
7565: fi
1.150 moko 7566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7567: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.128 moko 7568: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7569: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7570: CFLAGS="$SAVE_CFLAGS"
7571: fi
7572: ;;
7573: *-*solaris*)
7574: # Find out which ABI we are using.
7575: echo 'int i;' > conftest.$ac_ext
1.150 moko 7576: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7577: (eval $ac_compile) 2>&5
7578: ac_status=$?
1.150 moko 7579: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580: test $ac_status = 0; }; then
1.128 moko 7581: case `/usr/bin/file conftest.o` in
7582: *64-bit*)
7583: case $lt_cv_prog_gnu_ld in
7584: yes*)
7585: case $host in
7586: i?86-*-solaris*)
7587: LD="${LD-ld} -m elf_x86_64"
7588: ;;
7589: sparc*-*-solaris*)
7590: LD="${LD-ld} -m elf64_sparc"
7591: ;;
7592: esac
7593: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7594: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7595: LD="${LD-ld}_sol2"
7596: fi
7597: ;;
7598: *)
7599: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7600: LD="${LD-ld} -64"
7601: fi
7602: ;;
7603: esac
7604: ;;
7605: esac
7606: fi
7607: rm -rf conftest*
7608: ;;
7609: esac
7610:
7611: need_locks="$enable_libtool_lock"
7612:
7613: if test -n "$ac_tool_prefix"; then
7614: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7615: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.150 moko 7616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617: $as_echo_n "checking for $ac_word... " >&6; }
7618: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7619: $as_echo_n "(cached) " >&6
1.128 moko 7620: else
7621: if test -n "$MANIFEST_TOOL"; then
7622: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7623: else
7624: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625: for as_dir in $PATH
7626: do
7627: IFS=$as_save_IFS
7628: test -z "$as_dir" && as_dir=.
1.150 moko 7629: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7630: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7631: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.150 moko 7632: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7633: break 2
7634: fi
7635: done
1.150 moko 7636: done
7637: IFS=$as_save_IFS
1.128 moko 7638:
7639: fi
7640: fi
7641: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7642: if test -n "$MANIFEST_TOOL"; then
1.150 moko 7643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7644: $as_echo "$MANIFEST_TOOL" >&6; }
1.128 moko 7645: else
1.150 moko 7646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647: $as_echo "no" >&6; }
1.128 moko 7648: fi
7649:
1.150 moko 7650:
1.128 moko 7651: fi
7652: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7653: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7654: # Extract the first word of "mt", so it can be a program name with args.
7655: set dummy mt; ac_word=$2
1.150 moko 7656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657: $as_echo_n "checking for $ac_word... " >&6; }
7658: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7659: $as_echo_n "(cached) " >&6
1.128 moko 7660: else
7661: if test -n "$ac_ct_MANIFEST_TOOL"; then
7662: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7663: else
7664: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665: for as_dir in $PATH
7666: do
7667: IFS=$as_save_IFS
7668: test -z "$as_dir" && as_dir=.
1.150 moko 7669: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7670: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7671: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.150 moko 7672: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7673: break 2
7674: fi
7675: done
1.150 moko 7676: done
7677: IFS=$as_save_IFS
1.128 moko 7678:
7679: fi
7680: fi
7681: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7682: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.150 moko 7683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7684: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 7685: else
1.150 moko 7686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687: $as_echo "no" >&6; }
1.128 moko 7688: fi
7689:
1.150 moko 7690: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7691: MANIFEST_TOOL=":"
7692: else
7693: case $cross_compiling:$ac_tool_warned in
7694: yes:)
7695: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7696: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7697: ac_tool_warned=yes ;;
7698: esac
7699: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7700: fi
1.128 moko 7701: else
7702: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7703: fi
7704:
7705: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.150 moko 7706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7707: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7708: if ${lt_cv_path_mainfest_tool+:} false; then :
7709: $as_echo_n "(cached) " >&6
1.128 moko 7710: else
7711: lt_cv_path_mainfest_tool=no
7712: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7713: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7714: cat conftest.err >&5
7715: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7716: lt_cv_path_mainfest_tool=yes
7717: fi
7718: rm -f conftest*
7719: fi
1.150 moko 7720: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7721: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.128 moko 7722: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7723: MANIFEST_TOOL=:
7724: fi
7725:
7726:
7727:
7728:
7729:
7730:
7731: case $host_os in
7732: rhapsody* | darwin*)
7733: if test -n "$ac_tool_prefix"; then
7734: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7735: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.150 moko 7736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737: $as_echo_n "checking for $ac_word... " >&6; }
7738: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7739: $as_echo_n "(cached) " >&6
1.128 moko 7740: else
7741: if test -n "$DSYMUTIL"; then
7742: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7743: else
7744: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745: for as_dir in $PATH
7746: do
7747: IFS=$as_save_IFS
7748: test -z "$as_dir" && as_dir=.
1.150 moko 7749: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7750: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7751: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.150 moko 7752: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7753: break 2
7754: fi
7755: done
1.150 moko 7756: done
7757: IFS=$as_save_IFS
1.128 moko 7758:
7759: fi
7760: fi
7761: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7762: if test -n "$DSYMUTIL"; then
1.150 moko 7763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7764: $as_echo "$DSYMUTIL" >&6; }
1.128 moko 7765: else
1.150 moko 7766: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767: $as_echo "no" >&6; }
1.128 moko 7768: fi
7769:
1.150 moko 7770:
1.128 moko 7771: fi
7772: if test -z "$ac_cv_prog_DSYMUTIL"; then
7773: ac_ct_DSYMUTIL=$DSYMUTIL
7774: # Extract the first word of "dsymutil", so it can be a program name with args.
7775: set dummy dsymutil; ac_word=$2
1.150 moko 7776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777: $as_echo_n "checking for $ac_word... " >&6; }
7778: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7779: $as_echo_n "(cached) " >&6
1.128 moko 7780: else
7781: if test -n "$ac_ct_DSYMUTIL"; then
7782: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7783: else
7784: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785: for as_dir in $PATH
7786: do
7787: IFS=$as_save_IFS
7788: test -z "$as_dir" && as_dir=.
1.150 moko 7789: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7790: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7791: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.150 moko 7792: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7793: break 2
7794: fi
7795: done
1.150 moko 7796: done
7797: IFS=$as_save_IFS
1.128 moko 7798:
7799: fi
7800: fi
7801: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7802: if test -n "$ac_ct_DSYMUTIL"; then
1.150 moko 7803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7804: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 7805: else
1.150 moko 7806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807: $as_echo "no" >&6; }
1.128 moko 7808: fi
7809:
1.150 moko 7810: if test "x$ac_ct_DSYMUTIL" = x; then
7811: DSYMUTIL=":"
7812: else
7813: case $cross_compiling:$ac_tool_warned in
7814: yes:)
7815: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7816: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817: ac_tool_warned=yes ;;
7818: esac
7819: DSYMUTIL=$ac_ct_DSYMUTIL
7820: fi
1.128 moko 7821: else
7822: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7823: fi
7824:
7825: if test -n "$ac_tool_prefix"; then
7826: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7827: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.150 moko 7828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829: $as_echo_n "checking for $ac_word... " >&6; }
7830: if ${ac_cv_prog_NMEDIT+:} false; then :
7831: $as_echo_n "(cached) " >&6
1.128 moko 7832: else
7833: if test -n "$NMEDIT"; then
7834: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7835: else
7836: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837: for as_dir in $PATH
7838: do
7839: IFS=$as_save_IFS
7840: test -z "$as_dir" && as_dir=.
1.150 moko 7841: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7842: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7843: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.150 moko 7844: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7845: break 2
7846: fi
7847: done
1.150 moko 7848: done
7849: IFS=$as_save_IFS
1.128 moko 7850:
7851: fi
7852: fi
7853: NMEDIT=$ac_cv_prog_NMEDIT
7854: if test -n "$NMEDIT"; then
1.150 moko 7855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7856: $as_echo "$NMEDIT" >&6; }
1.128 moko 7857: else
1.150 moko 7858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859: $as_echo "no" >&6; }
1.128 moko 7860: fi
7861:
1.150 moko 7862:
1.128 moko 7863: fi
7864: if test -z "$ac_cv_prog_NMEDIT"; then
7865: ac_ct_NMEDIT=$NMEDIT
7866: # Extract the first word of "nmedit", so it can be a program name with args.
7867: set dummy nmedit; ac_word=$2
1.150 moko 7868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869: $as_echo_n "checking for $ac_word... " >&6; }
7870: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7871: $as_echo_n "(cached) " >&6
1.128 moko 7872: else
7873: if test -n "$ac_ct_NMEDIT"; then
7874: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7875: else
7876: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877: for as_dir in $PATH
7878: do
7879: IFS=$as_save_IFS
7880: test -z "$as_dir" && as_dir=.
1.150 moko 7881: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7882: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7883: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.150 moko 7884: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7885: break 2
7886: fi
7887: done
1.150 moko 7888: done
7889: IFS=$as_save_IFS
1.128 moko 7890:
7891: fi
7892: fi
7893: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7894: if test -n "$ac_ct_NMEDIT"; then
1.150 moko 7895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7896: $as_echo "$ac_ct_NMEDIT" >&6; }
1.128 moko 7897: else
1.150 moko 7898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899: $as_echo "no" >&6; }
1.128 moko 7900: fi
7901:
1.150 moko 7902: if test "x$ac_ct_NMEDIT" = x; then
7903: NMEDIT=":"
7904: else
7905: case $cross_compiling:$ac_tool_warned in
7906: yes:)
7907: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7908: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7909: ac_tool_warned=yes ;;
7910: esac
7911: NMEDIT=$ac_ct_NMEDIT
7912: fi
1.128 moko 7913: else
7914: NMEDIT="$ac_cv_prog_NMEDIT"
7915: fi
7916:
7917: if test -n "$ac_tool_prefix"; then
7918: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7919: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.150 moko 7920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921: $as_echo_n "checking for $ac_word... " >&6; }
7922: if ${ac_cv_prog_LIPO+:} false; then :
7923: $as_echo_n "(cached) " >&6
1.128 moko 7924: else
7925: if test -n "$LIPO"; then
7926: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7927: else
7928: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929: for as_dir in $PATH
7930: do
7931: IFS=$as_save_IFS
7932: test -z "$as_dir" && as_dir=.
1.150 moko 7933: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7934: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7935: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.150 moko 7936: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7937: break 2
7938: fi
7939: done
1.150 moko 7940: done
7941: IFS=$as_save_IFS
1.128 moko 7942:
7943: fi
7944: fi
7945: LIPO=$ac_cv_prog_LIPO
7946: if test -n "$LIPO"; then
1.150 moko 7947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7948: $as_echo "$LIPO" >&6; }
1.128 moko 7949: else
1.150 moko 7950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951: $as_echo "no" >&6; }
1.128 moko 7952: fi
7953:
1.150 moko 7954:
1.128 moko 7955: fi
7956: if test -z "$ac_cv_prog_LIPO"; then
7957: ac_ct_LIPO=$LIPO
7958: # Extract the first word of "lipo", so it can be a program name with args.
7959: set dummy lipo; ac_word=$2
1.150 moko 7960: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961: $as_echo_n "checking for $ac_word... " >&6; }
7962: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7963: $as_echo_n "(cached) " >&6
1.128 moko 7964: else
7965: if test -n "$ac_ct_LIPO"; then
7966: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7967: else
7968: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969: for as_dir in $PATH
7970: do
7971: IFS=$as_save_IFS
7972: test -z "$as_dir" && as_dir=.
1.150 moko 7973: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7974: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7975: ac_cv_prog_ac_ct_LIPO="lipo"
1.150 moko 7976: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7977: break 2
7978: fi
7979: done
1.150 moko 7980: done
7981: IFS=$as_save_IFS
1.128 moko 7982:
7983: fi
7984: fi
7985: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7986: if test -n "$ac_ct_LIPO"; then
1.150 moko 7987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7988: $as_echo "$ac_ct_LIPO" >&6; }
1.128 moko 7989: else
1.150 moko 7990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991: $as_echo "no" >&6; }
1.128 moko 7992: fi
7993:
1.150 moko 7994: if test "x$ac_ct_LIPO" = x; then
7995: LIPO=":"
7996: else
7997: case $cross_compiling:$ac_tool_warned in
7998: yes:)
7999: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8000: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001: ac_tool_warned=yes ;;
8002: esac
8003: LIPO=$ac_ct_LIPO
8004: fi
1.128 moko 8005: else
8006: LIPO="$ac_cv_prog_LIPO"
8007: fi
8008:
8009: if test -n "$ac_tool_prefix"; then
8010: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8011: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.150 moko 8012: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013: $as_echo_n "checking for $ac_word... " >&6; }
8014: if ${ac_cv_prog_OTOOL+:} false; then :
8015: $as_echo_n "(cached) " >&6
1.128 moko 8016: else
8017: if test -n "$OTOOL"; then
8018: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8019: else
8020: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021: for as_dir in $PATH
8022: do
8023: IFS=$as_save_IFS
8024: test -z "$as_dir" && as_dir=.
1.150 moko 8025: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8026: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8027: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.150 moko 8028: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8029: break 2
8030: fi
8031: done
1.150 moko 8032: done
8033: IFS=$as_save_IFS
1.128 moko 8034:
8035: fi
8036: fi
8037: OTOOL=$ac_cv_prog_OTOOL
8038: if test -n "$OTOOL"; then
1.150 moko 8039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8040: $as_echo "$OTOOL" >&6; }
1.128 moko 8041: else
1.150 moko 8042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043: $as_echo "no" >&6; }
1.128 moko 8044: fi
8045:
1.150 moko 8046:
1.128 moko 8047: fi
8048: if test -z "$ac_cv_prog_OTOOL"; then
8049: ac_ct_OTOOL=$OTOOL
8050: # Extract the first word of "otool", so it can be a program name with args.
8051: set dummy otool; ac_word=$2
1.150 moko 8052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053: $as_echo_n "checking for $ac_word... " >&6; }
8054: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8055: $as_echo_n "(cached) " >&6
1.128 moko 8056: else
8057: if test -n "$ac_ct_OTOOL"; then
8058: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8059: else
8060: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061: for as_dir in $PATH
8062: do
8063: IFS=$as_save_IFS
8064: test -z "$as_dir" && as_dir=.
1.150 moko 8065: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8066: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8067: ac_cv_prog_ac_ct_OTOOL="otool"
1.150 moko 8068: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8069: break 2
8070: fi
8071: done
1.150 moko 8072: done
8073: IFS=$as_save_IFS
1.128 moko 8074:
8075: fi
8076: fi
8077: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8078: if test -n "$ac_ct_OTOOL"; then
1.150 moko 8079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8080: $as_echo "$ac_ct_OTOOL" >&6; }
1.128 moko 8081: else
1.150 moko 8082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083: $as_echo "no" >&6; }
1.128 moko 8084: fi
8085:
1.150 moko 8086: if test "x$ac_ct_OTOOL" = x; then
8087: OTOOL=":"
8088: else
8089: case $cross_compiling:$ac_tool_warned in
8090: yes:)
8091: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8092: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8093: ac_tool_warned=yes ;;
8094: esac
8095: OTOOL=$ac_ct_OTOOL
8096: fi
1.128 moko 8097: else
8098: OTOOL="$ac_cv_prog_OTOOL"
8099: fi
8100:
8101: if test -n "$ac_tool_prefix"; then
8102: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8103: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.150 moko 8104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8105: $as_echo_n "checking for $ac_word... " >&6; }
8106: if ${ac_cv_prog_OTOOL64+:} false; then :
8107: $as_echo_n "(cached) " >&6
1.128 moko 8108: else
8109: if test -n "$OTOOL64"; then
8110: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8111: else
8112: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113: for as_dir in $PATH
8114: do
8115: IFS=$as_save_IFS
8116: test -z "$as_dir" && as_dir=.
1.150 moko 8117: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8118: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8119: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.150 moko 8120: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8121: break 2
8122: fi
8123: done
1.150 moko 8124: done
8125: IFS=$as_save_IFS
1.128 moko 8126:
8127: fi
8128: fi
8129: OTOOL64=$ac_cv_prog_OTOOL64
8130: if test -n "$OTOOL64"; then
1.150 moko 8131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8132: $as_echo "$OTOOL64" >&6; }
1.128 moko 8133: else
1.150 moko 8134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135: $as_echo "no" >&6; }
1.128 moko 8136: fi
8137:
1.150 moko 8138:
1.128 moko 8139: fi
8140: if test -z "$ac_cv_prog_OTOOL64"; then
8141: ac_ct_OTOOL64=$OTOOL64
8142: # Extract the first word of "otool64", so it can be a program name with args.
8143: set dummy otool64; ac_word=$2
1.150 moko 8144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145: $as_echo_n "checking for $ac_word... " >&6; }
8146: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8147: $as_echo_n "(cached) " >&6
1.128 moko 8148: else
8149: if test -n "$ac_ct_OTOOL64"; then
8150: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8151: else
8152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153: for as_dir in $PATH
8154: do
8155: IFS=$as_save_IFS
8156: test -z "$as_dir" && as_dir=.
1.150 moko 8157: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8158: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8159: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.150 moko 8160: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8161: break 2
8162: fi
8163: done
1.150 moko 8164: done
8165: IFS=$as_save_IFS
1.128 moko 8166:
8167: fi
8168: fi
8169: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8170: if test -n "$ac_ct_OTOOL64"; then
1.150 moko 8171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8172: $as_echo "$ac_ct_OTOOL64" >&6; }
1.128 moko 8173: else
1.150 moko 8174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175: $as_echo "no" >&6; }
1.128 moko 8176: fi
8177:
1.150 moko 8178: if test "x$ac_ct_OTOOL64" = x; then
8179: OTOOL64=":"
8180: else
8181: case $cross_compiling:$ac_tool_warned in
8182: yes:)
8183: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8184: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8185: ac_tool_warned=yes ;;
8186: esac
8187: OTOOL64=$ac_ct_OTOOL64
8188: fi
1.128 moko 8189: else
8190: OTOOL64="$ac_cv_prog_OTOOL64"
8191: fi
8192:
8193:
8194:
8195:
8196:
8197:
8198:
8199:
8200:
8201:
8202:
8203:
8204:
8205:
8206:
8207:
8208:
8209:
8210:
8211:
8212:
8213:
8214:
8215:
8216:
8217:
8218:
1.150 moko 8219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8220: $as_echo_n "checking for -single_module linker flag... " >&6; }
8221: if ${lt_cv_apple_cc_single_mod+:} false; then :
8222: $as_echo_n "(cached) " >&6
1.128 moko 8223: else
8224: lt_cv_apple_cc_single_mod=no
8225: if test -z "${LT_MULTI_MODULE}"; then
8226: # By default we will add the -single_module flag. You can override
8227: # by either setting the environment variable LT_MULTI_MODULE
8228: # non-empty at configure time, or by adding -multi_module to the
8229: # link flags.
8230: rm -rf libconftest.dylib*
8231: echo "int foo(void){return 1;}" > conftest.c
8232: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8233: -dynamiclib -Wl,-single_module conftest.c" >&5
8234: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8235: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8236: _lt_result=$?
8237: # If there is a non-empty error log, and "single_module"
8238: # appears in it, assume the flag caused a linker warning
8239: if test -s conftest.err && $GREP single_module conftest.err; then
8240: cat conftest.err >&5
8241: # Otherwise, if the output was created with a 0 exit code from
8242: # the compiler, it worked.
8243: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8244: lt_cv_apple_cc_single_mod=yes
8245: else
8246: cat conftest.err >&5
8247: fi
8248: rm -rf libconftest.dylib*
8249: rm -f conftest.*
8250: fi
8251: fi
1.150 moko 8252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8253: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.128 moko 8254:
1.150 moko 8255: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8256: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8257: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8258: $as_echo_n "(cached) " >&6
1.128 moko 8259: else
8260: lt_cv_ld_exported_symbols_list=no
8261: save_LDFLAGS=$LDFLAGS
8262: echo "_main" > conftest.sym
8263: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 8264: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8265: /* end confdefs.h. */
8266:
8267: int
8268: main ()
8269: {
8270:
8271: ;
8272: return 0;
8273: }
8274: _ACEOF
1.150 moko 8275: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 8276: lt_cv_ld_exported_symbols_list=yes
8277: else
1.150 moko 8278: lt_cv_ld_exported_symbols_list=no
1.128 moko 8279: fi
1.150 moko 8280: rm -f core conftest.err conftest.$ac_objext \
8281: conftest$ac_exeext conftest.$ac_ext
1.128 moko 8282: LDFLAGS="$save_LDFLAGS"
8283:
8284: fi
1.150 moko 8285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8286: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 8287:
1.150 moko 8288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8289: $as_echo_n "checking for -force_load linker flag... " >&6; }
8290: if ${lt_cv_ld_force_load+:} false; then :
8291: $as_echo_n "(cached) " >&6
1.128 moko 8292: else
8293: lt_cv_ld_force_load=no
8294: cat > conftest.c << _LT_EOF
8295: int forced_loaded() { return 2;}
8296: _LT_EOF
8297: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8298: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8299: echo "$AR cru libconftest.a conftest.o" >&5
8300: $AR cru libconftest.a conftest.o 2>&5
8301: echo "$RANLIB libconftest.a" >&5
8302: $RANLIB libconftest.a 2>&5
8303: cat > conftest.c << _LT_EOF
8304: int main() { return 0;}
8305: _LT_EOF
8306: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8307: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8308: _lt_result=$?
8309: if test -s conftest.err && $GREP force_load conftest.err; then
8310: cat conftest.err >&5
8311: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8312: lt_cv_ld_force_load=yes
8313: else
8314: cat conftest.err >&5
8315: fi
8316: rm -f conftest.err libconftest.a conftest conftest.c
8317: rm -rf conftest.dSYM
8318:
8319: fi
1.150 moko 8320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8321: $as_echo "$lt_cv_ld_force_load" >&6; }
1.128 moko 8322: case $host_os in
8323: rhapsody* | darwin1.[012])
8324: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8325: darwin1.*)
8326: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8327: darwin*) # darwin 5.x on
8328: # if running on 10.5 or later, the deployment target defaults
8329: # to the OS version, if on x86, and 10.4, the deployment
8330: # target defaults to 10.4. Don't you love it?
8331: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8332: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8333: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8334: 10.[012]*)
8335: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8336: 10.*)
8337: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8338: esac
8339: ;;
8340: esac
8341: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8342: _lt_dar_single_mod='$single_module'
8343: fi
8344: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8345: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8346: else
8347: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8348: fi
8349: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8350: _lt_dsymutil='~$DSYMUTIL $lib || :'
8351: else
8352: _lt_dsymutil=
8353: fi
8354: ;;
8355: esac
8356:
8357: ac_ext=c
8358: ac_cpp='$CPP $CPPFLAGS'
8359: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.150 moko 8362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8363: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.128 moko 8364: # On Suns, sometimes $CPP names a directory.
8365: if test -n "$CPP" && test -d "$CPP"; then
8366: CPP=
8367: fi
8368: if test -z "$CPP"; then
1.150 moko 8369: if ${ac_cv_prog_CPP+:} false; then :
8370: $as_echo_n "(cached) " >&6
1.128 moko 8371: else
8372: # Double quotes because CPP needs to be expanded
8373: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8374: do
8375: ac_preproc_ok=false
8376: for ac_c_preproc_warn_flag in '' yes
8377: do
8378: # Use a header file that comes with gcc, so configuring glibc
8379: # with a fresh cross-compiler works.
8380: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8381: # <limits.h> exists even on freestanding compilers.
8382: # On the NeXT, cc -E runs the code through the compiler's parser,
8383: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8384: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8385: /* end confdefs.h. */
8386: #ifdef __STDC__
8387: # include <limits.h>
8388: #else
8389: # include <assert.h>
8390: #endif
8391: Syntax error
8392: _ACEOF
1.150 moko 8393: if ac_fn_c_try_cpp "$LINENO"; then :
8394:
1.128 moko 8395: else
8396: # Broken: fails on valid input.
8397: continue
8398: fi
1.150 moko 8399: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8400:
1.150 moko 8401: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8402: # can be detected and how.
1.150 moko 8403: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8404: /* end confdefs.h. */
8405: #include <ac_nonexistent.h>
8406: _ACEOF
1.150 moko 8407: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8408: # Broken: success on invalid input.
8409: continue
8410: else
8411: # Passes both tests.
8412: ac_preproc_ok=:
8413: break
8414: fi
1.150 moko 8415: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8416:
8417: done
8418: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8419: rm -f conftest.i conftest.err conftest.$ac_ext
8420: if $ac_preproc_ok; then :
1.128 moko 8421: break
8422: fi
8423:
8424: done
8425: ac_cv_prog_CPP=$CPP
8426:
8427: fi
8428: CPP=$ac_cv_prog_CPP
8429: else
8430: ac_cv_prog_CPP=$CPP
8431: fi
1.150 moko 8432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8433: $as_echo "$CPP" >&6; }
1.128 moko 8434: ac_preproc_ok=false
8435: for ac_c_preproc_warn_flag in '' yes
8436: do
8437: # Use a header file that comes with gcc, so configuring glibc
8438: # with a fresh cross-compiler works.
8439: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8440: # <limits.h> exists even on freestanding compilers.
8441: # On the NeXT, cc -E runs the code through the compiler's parser,
8442: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8443: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8444: /* end confdefs.h. */
8445: #ifdef __STDC__
8446: # include <limits.h>
8447: #else
8448: # include <assert.h>
8449: #endif
8450: Syntax error
8451: _ACEOF
1.150 moko 8452: if ac_fn_c_try_cpp "$LINENO"; then :
8453:
1.128 moko 8454: else
8455: # Broken: fails on valid input.
8456: continue
8457: fi
1.150 moko 8458: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8459:
1.150 moko 8460: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8461: # can be detected and how.
1.150 moko 8462: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8463: /* end confdefs.h. */
8464: #include <ac_nonexistent.h>
8465: _ACEOF
1.150 moko 8466: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8467: # Broken: success on invalid input.
8468: continue
8469: else
8470: # Passes both tests.
8471: ac_preproc_ok=:
8472: break
8473: fi
1.150 moko 8474: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8475:
8476: done
8477: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8478: rm -f conftest.i conftest.err conftest.$ac_ext
8479: if $ac_preproc_ok; then :
8480:
1.128 moko 8481: else
1.150 moko 8482: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8483: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8484: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8485: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 8486: fi
8487:
8488: ac_ext=c
8489: ac_cpp='$CPP $CPPFLAGS'
8490: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8493:
8494:
1.150 moko 8495: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8496: $as_echo_n "checking for ANSI C header files... " >&6; }
8497: if ${ac_cv_header_stdc+:} false; then :
8498: $as_echo_n "(cached) " >&6
1.128 moko 8499: else
1.150 moko 8500: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8501: /* end confdefs.h. */
8502: #include <stdlib.h>
8503: #include <stdarg.h>
8504: #include <string.h>
8505: #include <float.h>
8506:
8507: int
8508: main ()
8509: {
8510:
8511: ;
8512: return 0;
8513: }
8514: _ACEOF
1.150 moko 8515: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 8516: ac_cv_header_stdc=yes
8517: else
1.150 moko 8518: ac_cv_header_stdc=no
1.128 moko 8519: fi
1.150 moko 8520: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 8521:
8522: if test $ac_cv_header_stdc = yes; then
8523: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.150 moko 8524: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8525: /* end confdefs.h. */
8526: #include <string.h>
8527:
8528: _ACEOF
8529: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8530: $EGREP "memchr" >/dev/null 2>&1; then :
8531:
1.128 moko 8532: else
8533: ac_cv_header_stdc=no
8534: fi
8535: rm -f conftest*
8536:
8537: fi
8538:
8539: if test $ac_cv_header_stdc = yes; then
8540: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.150 moko 8541: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8542: /* end confdefs.h. */
8543: #include <stdlib.h>
8544:
8545: _ACEOF
8546: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8547: $EGREP "free" >/dev/null 2>&1; then :
8548:
1.128 moko 8549: else
8550: ac_cv_header_stdc=no
8551: fi
8552: rm -f conftest*
8553:
8554: fi
8555:
8556: if test $ac_cv_header_stdc = yes; then
8557: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.150 moko 8558: if test "$cross_compiling" = yes; then :
1.128 moko 8559: :
8560: else
1.150 moko 8561: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8562: /* end confdefs.h. */
8563: #include <ctype.h>
1.150 moko 8564: #include <stdlib.h>
1.128 moko 8565: #if ((' ' & 0x0FF) == 0x020)
8566: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8567: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8568: #else
8569: # define ISLOWER(c) \
8570: (('a' <= (c) && (c) <= 'i') \
8571: || ('j' <= (c) && (c) <= 'r') \
8572: || ('s' <= (c) && (c) <= 'z'))
8573: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8574: #endif
8575:
8576: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8577: int
8578: main ()
8579: {
8580: int i;
8581: for (i = 0; i < 256; i++)
8582: if (XOR (islower (i), ISLOWER (i))
8583: || toupper (i) != TOUPPER (i))
1.150 moko 8584: return 2;
8585: return 0;
1.128 moko 8586: }
8587: _ACEOF
1.150 moko 8588: if ac_fn_c_try_run "$LINENO"; then :
8589:
1.128 moko 8590: else
1.150 moko 8591: ac_cv_header_stdc=no
1.128 moko 8592: fi
1.150 moko 8593: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8594: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 8595: fi
1.150 moko 8596:
1.128 moko 8597: fi
8598: fi
1.150 moko 8599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8600: $as_echo "$ac_cv_header_stdc" >&6; }
1.128 moko 8601: if test $ac_cv_header_stdc = yes; then
8602:
1.150 moko 8603: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 8604:
8605: fi
8606:
8607: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.150 moko 8608: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8609: inttypes.h stdint.h unistd.h
8610: do :
8611: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8612: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8613: "
8614: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8615: cat >>confdefs.h <<_ACEOF
8616: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8617: _ACEOF
1.128 moko 8618:
1.150 moko 8619: fi
1.128 moko 8620:
1.150 moko 8621: done
1.128 moko 8622:
8623:
1.150 moko 8624: for ac_header in dlfcn.h
8625: do :
8626: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8627: "
8628: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8629: cat >>confdefs.h <<_ACEOF
8630: #define HAVE_DLFCN_H 1
8631: _ACEOF
1.128 moko 8632:
1.150 moko 8633: fi
1.128 moko 8634:
1.150 moko 8635: done
1.128 moko 8636:
8637:
8638:
8639:
1.150 moko 8640: func_stripname_cnf ()
8641: {
8642: case ${2} in
8643: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8644: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8645: esac
8646: } # func_stripname_cnf
1.128 moko 8647:
8648:
8649:
8650:
8651:
8652: # Set options
8653: enable_dlopen=yes
8654: enable_win32_dll=yes
8655:
8656: case $host in
8657: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8658: if test -n "$ac_tool_prefix"; then
8659: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8660: set dummy ${ac_tool_prefix}as; ac_word=$2
1.150 moko 8661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662: $as_echo_n "checking for $ac_word... " >&6; }
8663: if ${ac_cv_prog_AS+:} false; then :
8664: $as_echo_n "(cached) " >&6
1.128 moko 8665: else
8666: if test -n "$AS"; then
8667: ac_cv_prog_AS="$AS" # Let the user override the test.
8668: else
8669: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670: for as_dir in $PATH
8671: do
8672: IFS=$as_save_IFS
8673: test -z "$as_dir" && as_dir=.
1.150 moko 8674: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8675: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8676: ac_cv_prog_AS="${ac_tool_prefix}as"
1.150 moko 8677: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8678: break 2
8679: fi
8680: done
1.150 moko 8681: done
8682: IFS=$as_save_IFS
1.128 moko 8683:
8684: fi
8685: fi
8686: AS=$ac_cv_prog_AS
8687: if test -n "$AS"; then
1.150 moko 8688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8689: $as_echo "$AS" >&6; }
1.128 moko 8690: else
1.150 moko 8691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692: $as_echo "no" >&6; }
1.128 moko 8693: fi
8694:
1.150 moko 8695:
1.128 moko 8696: fi
8697: if test -z "$ac_cv_prog_AS"; then
8698: ac_ct_AS=$AS
8699: # Extract the first word of "as", so it can be a program name with args.
8700: set dummy as; ac_word=$2
1.150 moko 8701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8702: $as_echo_n "checking for $ac_word... " >&6; }
8703: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8704: $as_echo_n "(cached) " >&6
1.128 moko 8705: else
8706: if test -n "$ac_ct_AS"; then
8707: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8708: else
8709: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710: for as_dir in $PATH
8711: do
8712: IFS=$as_save_IFS
8713: test -z "$as_dir" && as_dir=.
1.150 moko 8714: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8715: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8716: ac_cv_prog_ac_ct_AS="as"
1.150 moko 8717: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8718: break 2
8719: fi
8720: done
1.150 moko 8721: done
8722: IFS=$as_save_IFS
1.128 moko 8723:
8724: fi
8725: fi
8726: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8727: if test -n "$ac_ct_AS"; then
1.150 moko 8728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8729: $as_echo "$ac_ct_AS" >&6; }
1.128 moko 8730: else
1.150 moko 8731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732: $as_echo "no" >&6; }
1.128 moko 8733: fi
8734:
1.150 moko 8735: if test "x$ac_ct_AS" = x; then
8736: AS="false"
8737: else
8738: case $cross_compiling:$ac_tool_warned in
8739: yes:)
8740: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8741: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8742: ac_tool_warned=yes ;;
8743: esac
8744: AS=$ac_ct_AS
8745: fi
1.128 moko 8746: else
8747: AS="$ac_cv_prog_AS"
8748: fi
8749:
8750: if test -n "$ac_tool_prefix"; then
8751: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8752: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 8753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754: $as_echo_n "checking for $ac_word... " >&6; }
8755: if ${ac_cv_prog_DLLTOOL+:} false; then :
8756: $as_echo_n "(cached) " >&6
1.128 moko 8757: else
8758: if test -n "$DLLTOOL"; then
8759: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8760: else
8761: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762: for as_dir in $PATH
8763: do
8764: IFS=$as_save_IFS
8765: test -z "$as_dir" && as_dir=.
1.150 moko 8766: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8767: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8768: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 8769: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8770: break 2
8771: fi
8772: done
1.150 moko 8773: done
8774: IFS=$as_save_IFS
1.128 moko 8775:
8776: fi
8777: fi
8778: DLLTOOL=$ac_cv_prog_DLLTOOL
8779: if test -n "$DLLTOOL"; then
1.150 moko 8780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8781: $as_echo "$DLLTOOL" >&6; }
1.128 moko 8782: else
1.150 moko 8783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784: $as_echo "no" >&6; }
1.128 moko 8785: fi
8786:
1.150 moko 8787:
1.128 moko 8788: fi
8789: if test -z "$ac_cv_prog_DLLTOOL"; then
8790: ac_ct_DLLTOOL=$DLLTOOL
8791: # Extract the first word of "dlltool", so it can be a program name with args.
8792: set dummy dlltool; ac_word=$2
1.150 moko 8793: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794: $as_echo_n "checking for $ac_word... " >&6; }
8795: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8796: $as_echo_n "(cached) " >&6
1.128 moko 8797: else
8798: if test -n "$ac_ct_DLLTOOL"; then
8799: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8800: else
8801: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802: for as_dir in $PATH
8803: do
8804: IFS=$as_save_IFS
8805: test -z "$as_dir" && as_dir=.
1.150 moko 8806: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8807: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8808: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 8809: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8810: break 2
8811: fi
8812: done
1.150 moko 8813: done
8814: IFS=$as_save_IFS
1.128 moko 8815:
8816: fi
8817: fi
8818: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8819: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 8820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8821: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 8822: else
1.150 moko 8823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824: $as_echo "no" >&6; }
1.128 moko 8825: fi
8826:
1.150 moko 8827: if test "x$ac_ct_DLLTOOL" = x; then
8828: DLLTOOL="false"
8829: else
8830: case $cross_compiling:$ac_tool_warned in
8831: yes:)
8832: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8833: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8834: ac_tool_warned=yes ;;
8835: esac
8836: DLLTOOL=$ac_ct_DLLTOOL
8837: fi
1.128 moko 8838: else
8839: DLLTOOL="$ac_cv_prog_DLLTOOL"
8840: fi
8841:
8842: if test -n "$ac_tool_prefix"; then
8843: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8844: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 8845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8846: $as_echo_n "checking for $ac_word... " >&6; }
8847: if ${ac_cv_prog_OBJDUMP+:} false; then :
8848: $as_echo_n "(cached) " >&6
1.128 moko 8849: else
8850: if test -n "$OBJDUMP"; then
8851: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8852: else
8853: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854: for as_dir in $PATH
8855: do
8856: IFS=$as_save_IFS
8857: test -z "$as_dir" && as_dir=.
1.150 moko 8858: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8859: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8860: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 8861: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8862: break 2
8863: fi
8864: done
1.150 moko 8865: done
8866: IFS=$as_save_IFS
1.128 moko 8867:
8868: fi
8869: fi
8870: OBJDUMP=$ac_cv_prog_OBJDUMP
8871: if test -n "$OBJDUMP"; then
1.150 moko 8872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8873: $as_echo "$OBJDUMP" >&6; }
1.128 moko 8874: else
1.150 moko 8875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876: $as_echo "no" >&6; }
1.128 moko 8877: fi
8878:
1.150 moko 8879:
1.128 moko 8880: fi
8881: if test -z "$ac_cv_prog_OBJDUMP"; then
8882: ac_ct_OBJDUMP=$OBJDUMP
8883: # Extract the first word of "objdump", so it can be a program name with args.
8884: set dummy objdump; ac_word=$2
1.150 moko 8885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886: $as_echo_n "checking for $ac_word... " >&6; }
8887: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8888: $as_echo_n "(cached) " >&6
1.128 moko 8889: else
8890: if test -n "$ac_ct_OBJDUMP"; then
8891: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8892: else
8893: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894: for as_dir in $PATH
8895: do
8896: IFS=$as_save_IFS
8897: test -z "$as_dir" && as_dir=.
1.150 moko 8898: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8899: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8900: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 8901: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8902: break 2
8903: fi
8904: done
1.150 moko 8905: done
8906: IFS=$as_save_IFS
1.128 moko 8907:
8908: fi
8909: fi
8910: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8911: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 8912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8913: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 8914: else
1.150 moko 8915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916: $as_echo "no" >&6; }
1.128 moko 8917: fi
8918:
1.150 moko 8919: if test "x$ac_ct_OBJDUMP" = x; then
8920: OBJDUMP="false"
8921: else
8922: case $cross_compiling:$ac_tool_warned in
8923: yes:)
8924: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8925: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8926: ac_tool_warned=yes ;;
8927: esac
8928: OBJDUMP=$ac_ct_OBJDUMP
8929: fi
1.128 moko 8930: else
8931: OBJDUMP="$ac_cv_prog_OBJDUMP"
8932: fi
8933:
8934: ;;
8935: esac
8936:
8937: test -z "$AS" && AS=as
8938:
8939:
8940:
8941:
8942:
8943: test -z "$DLLTOOL" && DLLTOOL=dlltool
8944:
8945:
8946:
8947:
8948:
8949: test -z "$OBJDUMP" && OBJDUMP=objdump
8950:
8951:
8952:
8953:
8954:
1.150 moko 8955: # Check whether --with-pic was given.
8956: if test "${with_pic+set}" = set; then :
8957: withval=$with_pic; lt_p=${PACKAGE-default}
1.145 moko 8958: case $withval in
8959: yes|no) pic_mode=$withval ;;
8960: *)
8961: pic_mode=default
8962: # Look at the argument we got. We use all the common list separators.
8963: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8964: for lt_pkg in $withval; do
8965: IFS="$lt_save_ifs"
8966: if test "X$lt_pkg" = "X$lt_p"; then
8967: pic_mode=yes
8968: fi
8969: done
8970: IFS="$lt_save_ifs"
8971: ;;
8972: esac
8973: else
8974: pic_mode=default
1.150 moko 8975: fi
8976:
1.145 moko 8977:
8978: test -z "$pic_mode" && pic_mode=no
8979:
8980:
8981:
8982:
8983:
8984:
1.128 moko 8985:
8986:
8987:
8988:
1.150 moko 8989: # Check whether --enable-shared was given.
8990: if test "${enable_shared+set}" = set; then :
8991: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 8992: case $enableval in
8993: yes) enable_shared=yes ;;
8994: no) enable_shared=no ;;
8995: *)
8996: enable_shared=no
8997: # Look at the argument we got. We use all the common list separators.
8998: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8999: for pkg in $enableval; do
9000: IFS="$lt_save_ifs"
9001: if test "X$pkg" = "X$p"; then
9002: enable_shared=yes
9003: fi
9004: done
9005: IFS="$lt_save_ifs"
9006: ;;
9007: esac
9008: else
9009: enable_shared=yes
1.150 moko 9010: fi
9011:
1.128 moko 9012:
9013:
9014:
9015:
9016:
9017:
9018:
9019:
1.150 moko 9020: # Check whether --enable-static was given.
9021: if test "${enable_static+set}" = set; then :
9022: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 9023: case $enableval in
9024: yes) enable_static=yes ;;
9025: no) enable_static=no ;;
9026: *)
9027: enable_static=no
9028: # Look at the argument we got. We use all the common list separators.
9029: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9030: for pkg in $enableval; do
9031: IFS="$lt_save_ifs"
9032: if test "X$pkg" = "X$p"; then
9033: enable_static=yes
9034: fi
9035: done
9036: IFS="$lt_save_ifs"
9037: ;;
9038: esac
9039: else
9040: enable_static=yes
1.150 moko 9041: fi
9042:
1.138 moko 9043:
9044:
9045:
9046:
9047:
9048:
9049:
1.128 moko 9050:
9051:
1.150 moko 9052: # Check whether --enable-fast-install was given.
9053: if test "${enable_fast_install+set}" = set; then :
9054: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 9055: case $enableval in
9056: yes) enable_fast_install=yes ;;
9057: no) enable_fast_install=no ;;
9058: *)
9059: enable_fast_install=no
9060: # Look at the argument we got. We use all the common list separators.
9061: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9062: for pkg in $enableval; do
9063: IFS="$lt_save_ifs"
9064: if test "X$pkg" = "X$p"; then
9065: enable_fast_install=yes
9066: fi
9067: done
9068: IFS="$lt_save_ifs"
9069: ;;
9070: esac
9071: else
9072: enable_fast_install=yes
1.150 moko 9073: fi
9074:
1.128 moko 9075:
9076:
9077:
9078:
9079:
9080:
9081:
9082:
9083:
9084:
9085: # This can be used to rebuild libtool when needed
9086: LIBTOOL_DEPS="$ltmain"
9087:
9088: # Always use our own libtool.
9089: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9090:
9091:
9092:
9093:
9094:
9095:
9096:
9097:
9098:
9099:
9100:
9101:
9102:
9103:
9104:
9105:
9106:
9107:
9108:
9109:
9110:
9111:
9112:
9113:
9114:
9115:
9116:
9117:
9118:
9119:
9120: test -z "$LN_S" && LN_S="ln -s"
9121:
9122:
9123:
9124:
9125:
9126:
9127:
9128:
9129:
9130:
9131:
9132:
9133:
9134:
9135: if test -n "${ZSH_VERSION+set}" ; then
9136: setopt NO_GLOB_SUBST
9137: fi
9138:
1.150 moko 9139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9140: $as_echo_n "checking for objdir... " >&6; }
9141: if ${lt_cv_objdir+:} false; then :
9142: $as_echo_n "(cached) " >&6
1.128 moko 9143: else
9144: rm -f .libs 2>/dev/null
9145: mkdir .libs 2>/dev/null
9146: if test -d .libs; then
9147: lt_cv_objdir=.libs
9148: else
9149: # MS-DOS does not allow filenames that begin with a dot.
9150: lt_cv_objdir=_libs
9151: fi
9152: rmdir .libs 2>/dev/null
9153: fi
1.150 moko 9154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9155: $as_echo "$lt_cv_objdir" >&6; }
1.128 moko 9156: objdir=$lt_cv_objdir
9157:
9158:
9159:
9160:
9161:
9162: cat >>confdefs.h <<_ACEOF
9163: #define LT_OBJDIR "$lt_cv_objdir/"
9164: _ACEOF
9165:
9166:
9167:
9168:
9169: case $host_os in
9170: aix3*)
9171: # AIX sometimes has problems with the GCC collect2 program. For some
9172: # reason, if we set the COLLECT_NAMES environment variable, the problems
9173: # vanish in a puff of smoke.
9174: if test "X${COLLECT_NAMES+set}" != Xset; then
9175: COLLECT_NAMES=
9176: export COLLECT_NAMES
9177: fi
9178: ;;
9179: esac
9180:
9181: # Global variables:
9182: ofile=libtool
9183: can_build_shared=yes
9184:
9185: # All known linkers require a `.a' archive for static linking (except MSVC,
9186: # which needs '.lib').
9187: libext=a
9188:
9189: with_gnu_ld="$lt_cv_prog_gnu_ld"
9190:
9191: old_CC="$CC"
9192: old_CFLAGS="$CFLAGS"
9193:
9194: # Set sane defaults for various variables
9195: test -z "$CC" && CC=cc
9196: test -z "$LTCC" && LTCC=$CC
9197: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9198: test -z "$LD" && LD=ld
9199: test -z "$ac_objext" && ac_objext=o
9200:
9201: for cc_temp in $compiler""; do
9202: case $cc_temp in
9203: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9204: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9205: \-*) ;;
9206: *) break;;
9207: esac
9208: done
9209: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9210:
9211:
9212: # Only perform the check for file, if the check method requires it
9213: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9214: case $deplibs_check_method in
9215: file_magic*)
9216: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.150 moko 9217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9218: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9219: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9220: $as_echo_n "(cached) " >&6
1.128 moko 9221: else
9222: case $MAGIC_CMD in
9223: [\\/*] | ?:[\\/]*)
9224: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9225: ;;
9226: *)
9227: lt_save_MAGIC_CMD="$MAGIC_CMD"
9228: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9229: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9230: for ac_dir in $ac_dummy; do
9231: IFS="$lt_save_ifs"
9232: test -z "$ac_dir" && ac_dir=.
9233: if test -f $ac_dir/${ac_tool_prefix}file; then
9234: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9235: if test -n "$file_magic_test_file"; then
9236: case $deplibs_check_method in
9237: "file_magic "*)
9238: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9239: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9240: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9241: $EGREP "$file_magic_regex" > /dev/null; then
9242: :
9243: else
9244: cat <<_LT_EOF 1>&2
9245:
9246: *** Warning: the command libtool uses to detect shared libraries,
9247: *** $file_magic_cmd, produces output that libtool cannot recognize.
9248: *** The result is that libtool may fail to recognize shared libraries
9249: *** as such. This will affect the creation of libtool libraries that
9250: *** depend on shared libraries, but programs linked with such libtool
9251: *** libraries will work regardless of this problem. Nevertheless, you
9252: *** may want to report the problem to your system manager and/or to
9253: *** bug-libtool@gnu.org
9254:
9255: _LT_EOF
9256: fi ;;
9257: esac
9258: fi
9259: break
9260: fi
9261: done
9262: IFS="$lt_save_ifs"
9263: MAGIC_CMD="$lt_save_MAGIC_CMD"
9264: ;;
9265: esac
9266: fi
9267:
9268: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9269: if test -n "$MAGIC_CMD"; then
1.150 moko 9270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9271: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9272: else
1.150 moko 9273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274: $as_echo "no" >&6; }
1.128 moko 9275: fi
9276:
9277:
9278:
9279:
9280:
9281: if test -z "$lt_cv_path_MAGIC_CMD"; then
9282: if test -n "$ac_tool_prefix"; then
1.150 moko 9283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9284: $as_echo_n "checking for file... " >&6; }
9285: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9286: $as_echo_n "(cached) " >&6
1.128 moko 9287: else
9288: case $MAGIC_CMD in
9289: [\\/*] | ?:[\\/]*)
9290: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9291: ;;
9292: *)
9293: lt_save_MAGIC_CMD="$MAGIC_CMD"
9294: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9295: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9296: for ac_dir in $ac_dummy; do
9297: IFS="$lt_save_ifs"
9298: test -z "$ac_dir" && ac_dir=.
9299: if test -f $ac_dir/file; then
9300: lt_cv_path_MAGIC_CMD="$ac_dir/file"
9301: if test -n "$file_magic_test_file"; then
9302: case $deplibs_check_method in
9303: "file_magic "*)
9304: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9305: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9306: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9307: $EGREP "$file_magic_regex" > /dev/null; then
9308: :
9309: else
9310: cat <<_LT_EOF 1>&2
9311:
9312: *** Warning: the command libtool uses to detect shared libraries,
9313: *** $file_magic_cmd, produces output that libtool cannot recognize.
9314: *** The result is that libtool may fail to recognize shared libraries
9315: *** as such. This will affect the creation of libtool libraries that
9316: *** depend on shared libraries, but programs linked with such libtool
9317: *** libraries will work regardless of this problem. Nevertheless, you
9318: *** may want to report the problem to your system manager and/or to
9319: *** bug-libtool@gnu.org
9320:
9321: _LT_EOF
9322: fi ;;
9323: esac
9324: fi
9325: break
9326: fi
9327: done
9328: IFS="$lt_save_ifs"
9329: MAGIC_CMD="$lt_save_MAGIC_CMD"
9330: ;;
9331: esac
9332: fi
9333:
9334: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9335: if test -n "$MAGIC_CMD"; then
1.150 moko 9336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9337: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9338: else
1.150 moko 9339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340: $as_echo "no" >&6; }
1.128 moko 9341: fi
9342:
9343:
9344: else
9345: MAGIC_CMD=:
9346: fi
9347: fi
9348:
9349: fi
9350: ;;
9351: esac
9352:
9353: # Use C for the default configuration in the libtool script
9354:
9355: lt_save_CC="$CC"
9356: ac_ext=c
9357: ac_cpp='$CPP $CPPFLAGS'
9358: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9359: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9360: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9361:
9362:
9363: # Source file extension for C test sources.
9364: ac_ext=c
9365:
9366: # Object file extension for compiled C test sources.
9367: objext=o
9368: objext=$objext
9369:
9370: # Code to be used in simple compile tests
9371: lt_simple_compile_test_code="int some_variable = 0;"
9372:
9373: # Code to be used in simple link tests
9374: lt_simple_link_test_code='int main(){return(0);}'
9375:
9376:
9377:
9378:
9379:
9380:
9381:
9382: # If no C compiler was specified, use CC.
9383: LTCC=${LTCC-"$CC"}
9384:
9385: # If no C compiler flags were specified, use CFLAGS.
9386: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9387:
9388: # Allow CC to be a program name with arguments.
9389: compiler=$CC
9390:
9391: # Save the default compiler, since it gets overwritten when the other
9392: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9393: compiler_DEFAULT=$CC
9394:
9395: # save warnings/boilerplate of simple test code
9396: ac_outfile=conftest.$ac_objext
9397: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9398: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9399: _lt_compiler_boilerplate=`cat conftest.err`
9400: $RM conftest*
9401:
9402: ac_outfile=conftest.$ac_objext
9403: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9404: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9405: _lt_linker_boilerplate=`cat conftest.err`
9406: $RM -r conftest*
9407:
9408:
9409: ## CAVEAT EMPTOR:
9410: ## There is no encapsulation within the following macros, do not change
9411: ## the running order or otherwise move them around unless you know exactly
9412: ## what you are doing...
9413: if test -n "$compiler"; then
9414:
9415: lt_prog_compiler_no_builtin_flag=
9416:
9417: if test "$GCC" = yes; then
9418: case $cc_basename in
9419: nvcc*)
9420: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9421: *)
9422: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9423: esac
9424:
1.150 moko 9425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9426: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9427: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9428: $as_echo_n "(cached) " >&6
1.128 moko 9429: else
9430: lt_cv_prog_compiler_rtti_exceptions=no
9431: ac_outfile=conftest.$ac_objext
9432: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9433: lt_compiler_flag="-fno-rtti -fno-exceptions"
9434: # Insert the option either (1) after the last *FLAGS variable, or
9435: # (2) before a word containing "conftest.", or (3) at the end.
9436: # Note that $ac_compile itself does not contain backslashes and begins
9437: # with a dollar sign (not a hyphen), so the echo should work correctly.
9438: # The option is referenced via a variable to avoid confusing sed.
9439: lt_compile=`echo "$ac_compile" | $SED \
9440: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9441: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9442: -e 's:$: $lt_compiler_flag:'`
9443: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9444: (eval "$lt_compile" 2>conftest.err)
9445: ac_status=$?
9446: cat conftest.err >&5
9447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448: if (exit $ac_status) && test -s "$ac_outfile"; then
9449: # The compiler can only warn and ignore the option if not recognized
9450: # So say no if there are warnings other than the usual output.
9451: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9452: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9454: lt_cv_prog_compiler_rtti_exceptions=yes
9455: fi
9456: fi
9457: $RM conftest*
9458:
9459: fi
1.150 moko 9460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9461: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 9462:
9463: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9464: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9465: else
9466: :
9467: fi
9468:
9469: fi
9470:
9471:
9472:
9473:
9474:
9475:
9476: lt_prog_compiler_wl=
9477: lt_prog_compiler_pic=
9478: lt_prog_compiler_static=
9479:
9480:
9481: if test "$GCC" = yes; then
9482: lt_prog_compiler_wl='-Wl,'
9483: lt_prog_compiler_static='-static'
9484:
9485: case $host_os in
9486: aix*)
9487: # All AIX code is PIC.
9488: if test "$host_cpu" = ia64; then
9489: # AIX 5 now supports IA64 processor
9490: lt_prog_compiler_static='-Bstatic'
9491: fi
9492: ;;
9493:
9494: amigaos*)
9495: case $host_cpu in
9496: powerpc)
9497: # see comment about AmigaOS4 .so support
9498: lt_prog_compiler_pic='-fPIC'
9499: ;;
9500: m68k)
9501: # FIXME: we need at least 68020 code to build shared libraries, but
9502: # adding the `-m68020' flag to GCC prevents building anything better,
9503: # like `-m68040'.
9504: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9505: ;;
9506: esac
9507: ;;
9508:
9509: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9510: # PIC is the default for these OSes.
9511: ;;
9512:
9513: mingw* | cygwin* | pw32* | os2* | cegcc*)
9514: # This hack is so that the source file can tell whether it is being
9515: # built for inclusion in a dll (and should export symbols for example).
9516: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9517: # (--disable-auto-import) libraries
9518: lt_prog_compiler_pic='-DDLL_EXPORT'
9519: ;;
9520:
9521: darwin* | rhapsody*)
9522: # PIC is the default on this platform
9523: # Common symbols not allowed in MH_DYLIB files
9524: lt_prog_compiler_pic='-fno-common'
9525: ;;
9526:
9527: haiku*)
9528: # PIC is the default for Haiku.
9529: # The "-static" flag exists, but is broken.
9530: lt_prog_compiler_static=
9531: ;;
9532:
9533: hpux*)
9534: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9535: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9536: # sets the default TLS model and affects inlining.
9537: case $host_cpu in
9538: hppa*64*)
9539: # +Z the default
9540: ;;
9541: *)
9542: lt_prog_compiler_pic='-fPIC'
9543: ;;
9544: esac
9545: ;;
9546:
9547: interix[3-9]*)
9548: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9549: # Instead, we relocate shared libraries at runtime.
9550: ;;
9551:
9552: msdosdjgpp*)
9553: # Just because we use GCC doesn't mean we suddenly get shared libraries
9554: # on systems that don't support them.
9555: lt_prog_compiler_can_build_shared=no
9556: enable_shared=no
9557: ;;
9558:
9559: *nto* | *qnx*)
9560: # QNX uses GNU C++, but need to define -shared option too, otherwise
9561: # it will coredump.
9562: lt_prog_compiler_pic='-fPIC -shared'
9563: ;;
9564:
9565: sysv4*MP*)
9566: if test -d /usr/nec; then
9567: lt_prog_compiler_pic=-Kconform_pic
9568: fi
9569: ;;
9570:
9571: *)
9572: lt_prog_compiler_pic='-fPIC'
9573: ;;
9574: esac
9575:
9576: case $cc_basename in
9577: nvcc*) # Cuda Compiler Driver 2.2
9578: lt_prog_compiler_wl='-Xlinker '
9579: if test -n "$lt_prog_compiler_pic"; then
9580: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9581: fi
9582: ;;
9583: esac
9584: else
9585: # PORTME Check for flag to pass linker flags through the system compiler.
9586: case $host_os in
9587: aix*)
9588: lt_prog_compiler_wl='-Wl,'
9589: if test "$host_cpu" = ia64; then
9590: # AIX 5 now supports IA64 processor
9591: lt_prog_compiler_static='-Bstatic'
9592: else
9593: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9594: fi
9595: ;;
9596:
9597: mingw* | cygwin* | pw32* | os2* | cegcc*)
9598: # This hack is so that the source file can tell whether it is being
9599: # built for inclusion in a dll (and should export symbols for example).
9600: lt_prog_compiler_pic='-DDLL_EXPORT'
9601: ;;
9602:
9603: hpux9* | hpux10* | hpux11*)
9604: lt_prog_compiler_wl='-Wl,'
9605: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9606: # not for PA HP-UX.
9607: case $host_cpu in
9608: hppa*64*|ia64*)
9609: # +Z the default
9610: ;;
9611: *)
9612: lt_prog_compiler_pic='+Z'
9613: ;;
9614: esac
9615: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9616: lt_prog_compiler_static='${wl}-a ${wl}archive'
9617: ;;
9618:
9619: irix5* | irix6* | nonstopux*)
9620: lt_prog_compiler_wl='-Wl,'
9621: # PIC (with -KPIC) is the default.
9622: lt_prog_compiler_static='-non_shared'
9623: ;;
9624:
9625: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9626: case $cc_basename in
9627: # old Intel for x86_64 which still supported -KPIC.
9628: ecc*)
9629: lt_prog_compiler_wl='-Wl,'
9630: lt_prog_compiler_pic='-KPIC'
9631: lt_prog_compiler_static='-static'
9632: ;;
9633: # icc used to be incompatible with GCC.
9634: # ICC 10 doesn't accept -KPIC any more.
9635: icc* | ifort*)
9636: lt_prog_compiler_wl='-Wl,'
9637: lt_prog_compiler_pic='-fPIC'
9638: lt_prog_compiler_static='-static'
9639: ;;
9640: # Lahey Fortran 8.1.
9641: lf95*)
9642: lt_prog_compiler_wl='-Wl,'
9643: lt_prog_compiler_pic='--shared'
9644: lt_prog_compiler_static='--static'
9645: ;;
9646: nagfor*)
9647: # NAG Fortran compiler
9648: lt_prog_compiler_wl='-Wl,-Wl,,'
9649: lt_prog_compiler_pic='-PIC'
9650: lt_prog_compiler_static='-Bstatic'
9651: ;;
9652: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9653: # Portland Group compilers (*not* the Pentium gcc compiler,
9654: # which looks to be a dead project)
9655: lt_prog_compiler_wl='-Wl,'
9656: lt_prog_compiler_pic='-fpic'
9657: lt_prog_compiler_static='-Bstatic'
9658: ;;
9659: ccc*)
9660: lt_prog_compiler_wl='-Wl,'
9661: # All Alpha code is PIC.
9662: lt_prog_compiler_static='-non_shared'
9663: ;;
9664: xl* | bgxl* | bgf* | mpixl*)
9665: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9666: lt_prog_compiler_wl='-Wl,'
9667: lt_prog_compiler_pic='-qpic'
9668: lt_prog_compiler_static='-qstaticlink'
9669: ;;
9670: *)
9671: case `$CC -V 2>&1 | sed 5q` in
9672: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9673: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9674: lt_prog_compiler_pic='-KPIC'
9675: lt_prog_compiler_static='-Bstatic'
9676: lt_prog_compiler_wl=''
9677: ;;
9678: *Sun\ F* | *Sun*Fortran*)
9679: lt_prog_compiler_pic='-KPIC'
9680: lt_prog_compiler_static='-Bstatic'
9681: lt_prog_compiler_wl='-Qoption ld '
9682: ;;
9683: *Sun\ C*)
9684: # Sun C 5.9
9685: lt_prog_compiler_pic='-KPIC'
9686: lt_prog_compiler_static='-Bstatic'
9687: lt_prog_compiler_wl='-Wl,'
9688: ;;
9689: *Intel*\ [CF]*Compiler*)
9690: lt_prog_compiler_wl='-Wl,'
9691: lt_prog_compiler_pic='-fPIC'
9692: lt_prog_compiler_static='-static'
9693: ;;
9694: *Portland\ Group*)
9695: lt_prog_compiler_wl='-Wl,'
9696: lt_prog_compiler_pic='-fpic'
9697: lt_prog_compiler_static='-Bstatic'
9698: ;;
9699: esac
9700: ;;
9701: esac
9702: ;;
9703:
9704: newsos6)
9705: lt_prog_compiler_pic='-KPIC'
9706: lt_prog_compiler_static='-Bstatic'
9707: ;;
9708:
9709: *nto* | *qnx*)
9710: # QNX uses GNU C++, but need to define -shared option too, otherwise
9711: # it will coredump.
9712: lt_prog_compiler_pic='-fPIC -shared'
9713: ;;
9714:
9715: osf3* | osf4* | osf5*)
9716: lt_prog_compiler_wl='-Wl,'
9717: # All OSF/1 code is PIC.
9718: lt_prog_compiler_static='-non_shared'
9719: ;;
9720:
9721: rdos*)
9722: lt_prog_compiler_static='-non_shared'
9723: ;;
9724:
9725: solaris*)
9726: lt_prog_compiler_pic='-KPIC'
9727: lt_prog_compiler_static='-Bstatic'
9728: case $cc_basename in
9729: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9730: lt_prog_compiler_wl='-Qoption ld ';;
9731: *)
9732: lt_prog_compiler_wl='-Wl,';;
9733: esac
9734: ;;
9735:
9736: sunos4*)
9737: lt_prog_compiler_wl='-Qoption ld '
9738: lt_prog_compiler_pic='-PIC'
9739: lt_prog_compiler_static='-Bstatic'
9740: ;;
9741:
9742: sysv4 | sysv4.2uw2* | sysv4.3*)
9743: lt_prog_compiler_wl='-Wl,'
9744: lt_prog_compiler_pic='-KPIC'
9745: lt_prog_compiler_static='-Bstatic'
9746: ;;
9747:
9748: sysv4*MP*)
9749: if test -d /usr/nec ;then
9750: lt_prog_compiler_pic='-Kconform_pic'
9751: lt_prog_compiler_static='-Bstatic'
9752: fi
9753: ;;
9754:
9755: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9756: lt_prog_compiler_wl='-Wl,'
9757: lt_prog_compiler_pic='-KPIC'
9758: lt_prog_compiler_static='-Bstatic'
9759: ;;
9760:
9761: unicos*)
9762: lt_prog_compiler_wl='-Wl,'
9763: lt_prog_compiler_can_build_shared=no
9764: ;;
9765:
9766: uts4*)
9767: lt_prog_compiler_pic='-pic'
9768: lt_prog_compiler_static='-Bstatic'
9769: ;;
9770:
9771: *)
9772: lt_prog_compiler_can_build_shared=no
9773: ;;
9774: esac
9775: fi
9776:
9777: case $host_os in
9778: # For platforms which do not support PIC, -DPIC is meaningless:
9779: *djgpp*)
9780: lt_prog_compiler_pic=
9781: ;;
9782: *)
9783: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9784: ;;
9785: esac
9786:
1.150 moko 9787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9788: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9789: if ${lt_cv_prog_compiler_pic+:} false; then :
9790: $as_echo_n "(cached) " >&6
1.128 moko 9791: else
9792: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9793: fi
1.150 moko 9794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9795: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 9796: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9797:
9798: #
9799: # Check to make sure the PIC flag actually works.
9800: #
9801: if test -n "$lt_prog_compiler_pic"; then
1.150 moko 9802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9803: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9804: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9805: $as_echo_n "(cached) " >&6
1.128 moko 9806: else
9807: lt_cv_prog_compiler_pic_works=no
9808: ac_outfile=conftest.$ac_objext
9809: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9810: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9811: # Insert the option either (1) after the last *FLAGS variable, or
9812: # (2) before a word containing "conftest.", or (3) at the end.
9813: # Note that $ac_compile itself does not contain backslashes and begins
9814: # with a dollar sign (not a hyphen), so the echo should work correctly.
9815: # The option is referenced via a variable to avoid confusing sed.
9816: lt_compile=`echo "$ac_compile" | $SED \
9817: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9818: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9819: -e 's:$: $lt_compiler_flag:'`
9820: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9821: (eval "$lt_compile" 2>conftest.err)
9822: ac_status=$?
9823: cat conftest.err >&5
9824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825: if (exit $ac_status) && test -s "$ac_outfile"; then
9826: # The compiler can only warn and ignore the option if not recognized
9827: # So say no if there are warnings other than the usual output.
9828: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9829: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9831: lt_cv_prog_compiler_pic_works=yes
9832: fi
9833: fi
9834: $RM conftest*
9835:
9836: fi
1.150 moko 9837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9838: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 9839:
9840: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9841: case $lt_prog_compiler_pic in
9842: "" | " "*) ;;
9843: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9844: esac
9845: else
9846: lt_prog_compiler_pic=
9847: lt_prog_compiler_can_build_shared=no
9848: fi
9849:
9850: fi
9851:
9852:
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862: #
9863: # Check to make sure the static flag actually works.
9864: #
9865: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.150 moko 9866: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9867: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9868: if ${lt_cv_prog_compiler_static_works+:} false; then :
9869: $as_echo_n "(cached) " >&6
1.128 moko 9870: else
9871: lt_cv_prog_compiler_static_works=no
9872: save_LDFLAGS="$LDFLAGS"
9873: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9874: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9875: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9876: # The linker can only warn and ignore the option if not recognized
9877: # So say no if there are warnings
9878: if test -s conftest.err; then
9879: # Append any errors to the config.log.
9880: cat conftest.err 1>&5
9881: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9882: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9883: if diff conftest.exp conftest.er2 >/dev/null; then
9884: lt_cv_prog_compiler_static_works=yes
9885: fi
9886: else
9887: lt_cv_prog_compiler_static_works=yes
9888: fi
9889: fi
9890: $RM -r conftest*
9891: LDFLAGS="$save_LDFLAGS"
9892:
9893: fi
1.150 moko 9894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9895: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 9896:
9897: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9898: :
9899: else
9900: lt_prog_compiler_static=
9901: fi
9902:
9903:
9904:
9905:
9906:
9907:
9908:
1.150 moko 9909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9910: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9911: if ${lt_cv_prog_compiler_c_o+:} false; then :
9912: $as_echo_n "(cached) " >&6
1.128 moko 9913: else
9914: lt_cv_prog_compiler_c_o=no
9915: $RM -r conftest 2>/dev/null
9916: mkdir conftest
9917: cd conftest
9918: mkdir out
9919: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9920:
9921: lt_compiler_flag="-o out/conftest2.$ac_objext"
9922: # Insert the option either (1) after the last *FLAGS variable, or
9923: # (2) before a word containing "conftest.", or (3) at the end.
9924: # Note that $ac_compile itself does not contain backslashes and begins
9925: # with a dollar sign (not a hyphen), so the echo should work correctly.
9926: lt_compile=`echo "$ac_compile" | $SED \
9927: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9928: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9929: -e 's:$: $lt_compiler_flag:'`
9930: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9931: (eval "$lt_compile" 2>out/conftest.err)
9932: ac_status=$?
9933: cat out/conftest.err >&5
9934: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9936: then
9937: # The compiler can only warn and ignore the option if not recognized
9938: # So say no if there are warnings
9939: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9940: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9941: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9942: lt_cv_prog_compiler_c_o=yes
9943: fi
9944: fi
9945: chmod u+w . 2>&5
9946: $RM conftest*
9947: # SGI C++ compiler will create directory out/ii_files/ for
9948: # template instantiation
9949: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9950: $RM out/* && rmdir out
9951: cd ..
9952: $RM -r conftest
9953: $RM conftest*
9954:
9955: fi
1.150 moko 9956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9957: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 9958:
9959:
9960:
9961:
9962:
9963:
1.150 moko 9964: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9965: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9966: if ${lt_cv_prog_compiler_c_o+:} false; then :
9967: $as_echo_n "(cached) " >&6
1.128 moko 9968: else
9969: lt_cv_prog_compiler_c_o=no
9970: $RM -r conftest 2>/dev/null
9971: mkdir conftest
9972: cd conftest
9973: mkdir out
9974: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9975:
9976: lt_compiler_flag="-o out/conftest2.$ac_objext"
9977: # Insert the option either (1) after the last *FLAGS variable, or
9978: # (2) before a word containing "conftest.", or (3) at the end.
9979: # Note that $ac_compile itself does not contain backslashes and begins
9980: # with a dollar sign (not a hyphen), so the echo should work correctly.
9981: lt_compile=`echo "$ac_compile" | $SED \
9982: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9983: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9984: -e 's:$: $lt_compiler_flag:'`
9985: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9986: (eval "$lt_compile" 2>out/conftest.err)
9987: ac_status=$?
9988: cat out/conftest.err >&5
9989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9991: then
9992: # The compiler can only warn and ignore the option if not recognized
9993: # So say no if there are warnings
9994: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9995: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9996: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9997: lt_cv_prog_compiler_c_o=yes
9998: fi
9999: fi
10000: chmod u+w . 2>&5
10001: $RM conftest*
10002: # SGI C++ compiler will create directory out/ii_files/ for
10003: # template instantiation
10004: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10005: $RM out/* && rmdir out
10006: cd ..
10007: $RM -r conftest
10008: $RM conftest*
10009:
10010: fi
1.150 moko 10011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10012: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10013:
10014:
10015:
10016:
10017: hard_links="nottested"
10018: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10019: # do not overwrite the value of need_locks provided by the user
1.150 moko 10020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10021: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 10022: hard_links=yes
10023: $RM conftest*
10024: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10025: touch conftest.a
10026: ln conftest.a conftest.b 2>&5 || hard_links=no
10027: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 10028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10029: $as_echo "$hard_links" >&6; }
1.128 moko 10030: if test "$hard_links" = no; then
1.150 moko 10031: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10032: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 10033: need_locks=warn
10034: fi
10035: else
10036: need_locks=no
10037: fi
10038:
10039:
10040:
10041:
10042:
10043:
1.150 moko 10044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10045: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 10046:
10047: runpath_var=
10048: allow_undefined_flag=
10049: always_export_symbols=no
10050: archive_cmds=
10051: archive_expsym_cmds=
10052: compiler_needs_object=no
10053: enable_shared_with_static_runtimes=no
10054: export_dynamic_flag_spec=
10055: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10056: hardcode_automatic=no
10057: hardcode_direct=no
10058: hardcode_direct_absolute=no
10059: hardcode_libdir_flag_spec=
10060: hardcode_libdir_separator=
10061: hardcode_minus_L=no
10062: hardcode_shlibpath_var=unsupported
10063: inherit_rpath=no
10064: link_all_deplibs=unknown
10065: module_cmds=
10066: module_expsym_cmds=
10067: old_archive_from_new_cmds=
10068: old_archive_from_expsyms_cmds=
10069: thread_safe_flag_spec=
10070: whole_archive_flag_spec=
10071: # include_expsyms should be a list of space-separated symbols to be *always*
10072: # included in the symbol list
10073: include_expsyms=
10074: # exclude_expsyms can be an extended regexp of symbols to exclude
10075: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10076: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10077: # as well as any symbol that contains `d'.
10078: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10079: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10080: # platforms (ab)use it in PIC code, but their linkers get confused if
10081: # the symbol is explicitly referenced. Since portable code cannot
10082: # rely on this symbol name, it's probably fine to never include it in
10083: # preloaded symbol tables.
10084: # Exclude shared library initialization/finalization symbols.
10085: extract_expsyms_cmds=
10086:
10087: case $host_os in
10088: cygwin* | mingw* | pw32* | cegcc*)
10089: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10090: # When not using gcc, we currently assume that we are using
10091: # Microsoft Visual C++.
10092: if test "$GCC" != yes; then
10093: with_gnu_ld=no
10094: fi
10095: ;;
10096: interix*)
10097: # we just hope/assume this is gcc and not c89 (= MSVC++)
10098: with_gnu_ld=yes
10099: ;;
10100: openbsd*)
10101: with_gnu_ld=no
10102: ;;
10103: esac
10104:
10105: ld_shlibs=yes
10106:
10107: # On some targets, GNU ld is compatible enough with the native linker
10108: # that we're better off using the native interface for both.
10109: lt_use_gnu_ld_interface=no
10110: if test "$with_gnu_ld" = yes; then
10111: case $host_os in
10112: aix*)
10113: # The AIX port of GNU ld has always aspired to compatibility
10114: # with the native linker. However, as the warning in the GNU ld
10115: # block says, versions before 2.19.5* couldn't really create working
10116: # shared libraries, regardless of the interface used.
10117: case `$LD -v 2>&1` in
10118: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10119: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10120: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10121: *)
10122: lt_use_gnu_ld_interface=yes
10123: ;;
10124: esac
10125: ;;
10126: *)
10127: lt_use_gnu_ld_interface=yes
10128: ;;
10129: esac
10130: fi
10131:
10132: if test "$lt_use_gnu_ld_interface" = yes; then
10133: # If archive_cmds runs LD, not CC, wlarc should be empty
10134: wlarc='${wl}'
10135:
10136: # Set some defaults for GNU ld with shared library support. These
10137: # are reset later if shared libraries are not supported. Putting them
10138: # here allows them to be overridden if necessary.
10139: runpath_var=LD_RUN_PATH
10140: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10141: export_dynamic_flag_spec='${wl}--export-dynamic'
10142: # ancient GNU ld didn't support --whole-archive et. al.
10143: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10144: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10145: else
10146: whole_archive_flag_spec=
10147: fi
10148: supports_anon_versioning=no
10149: case `$LD -v 2>&1` in
10150: *GNU\ gold*) supports_anon_versioning=yes ;;
10151: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10152: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10153: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10154: *\ 2.11.*) ;; # other 2.11 versions
10155: *) supports_anon_versioning=yes ;;
10156: esac
10157:
10158: # See if GNU ld supports shared libraries.
10159: case $host_os in
10160: aix[3-9]*)
10161: # On AIX/PPC, the GNU linker is very broken
10162: if test "$host_cpu" != ia64; then
10163: ld_shlibs=no
10164: cat <<_LT_EOF 1>&2
10165:
10166: *** Warning: the GNU linker, at least up to release 2.19, is reported
10167: *** to be unable to reliably create shared libraries on AIX.
10168: *** Therefore, libtool is disabling shared libraries support. If you
10169: *** really care for shared libraries, you may want to install binutils
10170: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10171: *** You will then need to restart the configuration process.
10172:
10173: _LT_EOF
10174: fi
10175: ;;
10176:
10177: amigaos*)
10178: case $host_cpu in
10179: powerpc)
10180: # see comment about AmigaOS4 .so support
10181: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10182: archive_expsym_cmds=''
10183: ;;
10184: m68k)
10185: 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)'
10186: hardcode_libdir_flag_spec='-L$libdir'
10187: hardcode_minus_L=yes
10188: ;;
10189: esac
10190: ;;
10191:
10192: beos*)
10193: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10194: allow_undefined_flag=unsupported
10195: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10196: # support --undefined. This deserves some investigation. FIXME
10197: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10198: else
10199: ld_shlibs=no
10200: fi
10201: ;;
10202:
10203: cygwin* | mingw* | pw32* | cegcc*)
10204: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10205: # as there is no search path for DLLs.
10206: hardcode_libdir_flag_spec='-L$libdir'
10207: export_dynamic_flag_spec='${wl}--export-all-symbols'
10208: allow_undefined_flag=unsupported
10209: always_export_symbols=no
10210: enable_shared_with_static_runtimes=yes
10211: 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'
10212: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10213:
10214: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10215: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10216: # If the export-symbols file already is a .def file (1st line
10217: # is EXPORTS), use it as is; otherwise, prepend...
10218: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10219: cp $export_symbols $output_objdir/$soname.def;
10220: else
10221: echo EXPORTS > $output_objdir/$soname.def;
10222: cat $export_symbols >> $output_objdir/$soname.def;
10223: fi~
10224: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10225: else
10226: ld_shlibs=no
10227: fi
10228: ;;
10229:
10230: haiku*)
10231: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10232: link_all_deplibs=yes
10233: ;;
10234:
10235: interix[3-9]*)
10236: hardcode_direct=no
10237: hardcode_shlibpath_var=no
10238: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10239: export_dynamic_flag_spec='${wl}-E'
10240: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10241: # Instead, shared libraries are loaded at an image base (0x10000000 by
10242: # default) and relocated if they conflict, which is a slow very memory
10243: # consuming and fragmenting process. To avoid this, we pick a random,
10244: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10245: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10246: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10247: 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'
10248: ;;
10249:
10250: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10251: tmp_diet=no
10252: if test "$host_os" = linux-dietlibc; then
10253: case $cc_basename in
10254: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10255: esac
10256: fi
10257: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10258: && test "$tmp_diet" = no
10259: then
10260: tmp_addflag=' $pic_flag'
10261: tmp_sharedflag='-shared'
10262: case $cc_basename,$host_cpu in
10263: pgcc*) # Portland Group C compiler
10264: 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'
10265: tmp_addflag=' $pic_flag'
10266: ;;
10267: pgf77* | pgf90* | pgf95* | pgfortran*)
10268: # Portland Group f77 and f90 compilers
10269: 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'
10270: tmp_addflag=' $pic_flag -Mnomain' ;;
10271: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10272: tmp_addflag=' -i_dynamic' ;;
10273: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10274: tmp_addflag=' -i_dynamic -nofor_main' ;;
10275: ifc* | ifort*) # Intel Fortran compiler
10276: tmp_addflag=' -nofor_main' ;;
10277: lf95*) # Lahey Fortran 8.1
10278: whole_archive_flag_spec=
10279: tmp_sharedflag='--shared' ;;
10280: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10281: tmp_sharedflag='-qmkshrobj'
10282: tmp_addflag= ;;
10283: nvcc*) # Cuda Compiler Driver 2.2
10284: 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'
10285: compiler_needs_object=yes
10286: ;;
10287: esac
10288: case `$CC -V 2>&1 | sed 5q` in
10289: *Sun\ C*) # Sun C 5.9
10290: 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'
10291: compiler_needs_object=yes
10292: tmp_sharedflag='-G' ;;
10293: *Sun\ F*) # Sun Fortran 8.3
10294: tmp_sharedflag='-G' ;;
10295: esac
10296: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10297:
10298: if test "x$supports_anon_versioning" = xyes; then
10299: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10300: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10301: echo "local: *; };" >> $output_objdir/$libname.ver~
10302: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10303: fi
10304:
10305: case $cc_basename in
10306: xlf* | bgf* | bgxlf* | mpixlf*)
10307: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10308: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10309: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10310: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10311: if test "x$supports_anon_versioning" = xyes; then
10312: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10313: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10314: echo "local: *; };" >> $output_objdir/$libname.ver~
10315: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10316: fi
10317: ;;
10318: esac
10319: else
10320: ld_shlibs=no
10321: fi
10322: ;;
10323:
10324: netbsd*)
10325: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10326: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10327: wlarc=
10328: else
10329: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10330: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10331: fi
10332: ;;
10333:
10334: solaris*)
10335: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10336: ld_shlibs=no
10337: cat <<_LT_EOF 1>&2
10338:
10339: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10340: *** create shared libraries on Solaris systems. Therefore, libtool
10341: *** is disabling shared libraries support. We urge you to upgrade GNU
10342: *** binutils to release 2.9.1 or newer. Another option is to modify
10343: *** your PATH or compiler configuration so that the native linker is
10344: *** used, and then restart.
10345:
10346: _LT_EOF
10347: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10348: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10349: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10350: else
10351: ld_shlibs=no
10352: fi
10353: ;;
10354:
10355: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10356: case `$LD -v 2>&1` in
10357: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10358: ld_shlibs=no
10359: cat <<_LT_EOF 1>&2
10360:
10361: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10362: *** reliably create shared libraries on SCO systems. Therefore, libtool
10363: *** is disabling shared libraries support. We urge you to upgrade GNU
10364: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10365: *** your PATH or compiler configuration so that the native linker is
10366: *** used, and then restart.
10367:
10368: _LT_EOF
10369: ;;
10370: *)
10371: # For security reasons, it is highly recommended that you always
10372: # use absolute paths for naming shared libraries, and exclude the
10373: # DT_RUNPATH tag from executables and libraries. But doing so
10374: # requires that you compile everything twice, which is a pain.
10375: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10376: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10377: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10378: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10379: else
10380: ld_shlibs=no
10381: fi
10382: ;;
10383: esac
10384: ;;
10385:
10386: sunos4*)
10387: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10388: wlarc=
10389: hardcode_direct=yes
10390: hardcode_shlibpath_var=no
10391: ;;
10392:
10393: *)
10394: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10395: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10396: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10397: else
10398: ld_shlibs=no
10399: fi
10400: ;;
10401: esac
10402:
10403: if test "$ld_shlibs" = no; then
10404: runpath_var=
10405: hardcode_libdir_flag_spec=
10406: export_dynamic_flag_spec=
10407: whole_archive_flag_spec=
10408: fi
10409: else
10410: # PORTME fill in a description of your system's linker (not GNU ld)
10411: case $host_os in
10412: aix3*)
10413: allow_undefined_flag=unsupported
10414: always_export_symbols=yes
10415: 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'
10416: # Note: this linker hardcodes the directories in LIBPATH if there
10417: # are no directories specified by -L.
10418: hardcode_minus_L=yes
10419: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10420: # Neither direct hardcoding nor static linking is supported with a
10421: # broken collect2.
10422: hardcode_direct=unsupported
10423: fi
10424: ;;
10425:
10426: aix[4-9]*)
10427: if test "$host_cpu" = ia64; then
10428: # On IA64, the linker does run time linking by default, so we don't
10429: # have to do anything special.
10430: aix_use_runtimelinking=no
10431: exp_sym_flag='-Bexport'
10432: no_entry_flag=""
10433: else
10434: # If we're using GNU nm, then we don't want the "-C" option.
10435: # -C means demangle to AIX nm, but means don't demangle with GNU nm
10436: # Also, AIX nm treats weak defined symbols like other global
10437: # defined symbols, whereas GNU nm marks them as "W".
10438: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10439: 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'
10440: else
10441: 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'
10442: fi
10443: aix_use_runtimelinking=no
10444:
10445: # Test if we are trying to use run time linking or normal
10446: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10447: # need to do runtime linking.
10448: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10449: for ld_flag in $LDFLAGS; do
10450: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10451: aix_use_runtimelinking=yes
10452: break
10453: fi
10454: done
10455: ;;
10456: esac
10457:
10458: exp_sym_flag='-bexport'
10459: no_entry_flag='-bnoentry'
10460: fi
10461:
10462: # When large executables or shared objects are built, AIX ld can
10463: # have problems creating the table of contents. If linking a library
10464: # or program results in "error TOC overflow" add -mminimal-toc to
10465: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10466: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10467:
10468: archive_cmds=''
10469: hardcode_direct=yes
10470: hardcode_direct_absolute=yes
10471: hardcode_libdir_separator=':'
10472: link_all_deplibs=yes
10473: file_list_spec='${wl}-f,'
10474:
10475: if test "$GCC" = yes; then
10476: case $host_os in aix4.[012]|aix4.[012].*)
10477: # We only want to do this on AIX 4.2 and lower, the check
10478: # below for broken collect2 doesn't work under 4.3+
10479: collect2name=`${CC} -print-prog-name=collect2`
10480: if test -f "$collect2name" &&
10481: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10482: then
10483: # We have reworked collect2
10484: :
10485: else
10486: # We have old collect2
10487: hardcode_direct=unsupported
10488: # It fails to find uninstalled libraries when the uninstalled
10489: # path is not listed in the libpath. Setting hardcode_minus_L
10490: # to unsupported forces relinking
10491: hardcode_minus_L=yes
10492: hardcode_libdir_flag_spec='-L$libdir'
10493: hardcode_libdir_separator=
10494: fi
10495: ;;
10496: esac
10497: shared_flag='-shared'
10498: if test "$aix_use_runtimelinking" = yes; then
10499: shared_flag="$shared_flag "'${wl}-G'
10500: fi
10501: else
10502: # not using gcc
10503: if test "$host_cpu" = ia64; then
10504: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10505: # chokes on -Wl,-G. The following line is correct:
10506: shared_flag='-G'
10507: else
10508: if test "$aix_use_runtimelinking" = yes; then
10509: shared_flag='${wl}-G'
10510: else
10511: shared_flag='${wl}-bM:SRE'
10512: fi
10513: fi
10514: fi
10515:
10516: export_dynamic_flag_spec='${wl}-bexpall'
10517: # It seems that -bexpall does not export symbols beginning with
10518: # underscore (_), so it is better to generate a list of symbols to export.
10519: always_export_symbols=yes
10520: if test "$aix_use_runtimelinking" = yes; then
10521: # Warning - without using the other runtime loading flags (-brtl),
10522: # -berok will link without error, but may produce a broken library.
10523: allow_undefined_flag='-berok'
10524: # Determine the default libpath from the value encoded in an
10525: # empty executable.
10526: if test "${lt_cv_aix_libpath+set}" = set; then
10527: aix_libpath=$lt_cv_aix_libpath
10528: else
1.150 moko 10529: if ${lt_cv_aix_libpath_+:} false; then :
10530: $as_echo_n "(cached) " >&6
1.128 moko 10531: else
1.150 moko 10532: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10533: /* end confdefs.h. */
10534:
10535: int
10536: main ()
10537: {
10538:
10539: ;
10540: return 0;
10541: }
10542: _ACEOF
1.150 moko 10543: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10544:
10545: lt_aix_libpath_sed='
10546: /Import File Strings/,/^$/ {
10547: /^0/ {
10548: s/^0 *\([^ ]*\) *$/\1/
10549: p
10550: }
10551: }'
10552: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10553: # Check for a 64-bit object if we didn't find anything.
10554: if test -z "$lt_cv_aix_libpath_"; then
10555: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10556: fi
10557: fi
1.150 moko 10558: rm -f core conftest.err conftest.$ac_objext \
10559: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10560: if test -z "$lt_cv_aix_libpath_"; then
10561: lt_cv_aix_libpath_="/usr/lib:/lib"
10562: fi
10563:
10564: fi
10565:
10566: aix_libpath=$lt_cv_aix_libpath_
10567: fi
10568:
10569: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10570: 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"
10571: else
10572: if test "$host_cpu" = ia64; then
10573: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10574: allow_undefined_flag="-z nodefs"
10575: 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"
10576: else
10577: # Determine the default libpath from the value encoded in an
10578: # empty executable.
10579: if test "${lt_cv_aix_libpath+set}" = set; then
10580: aix_libpath=$lt_cv_aix_libpath
10581: else
1.150 moko 10582: if ${lt_cv_aix_libpath_+:} false; then :
10583: $as_echo_n "(cached) " >&6
1.128 moko 10584: else
1.150 moko 10585: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10586: /* end confdefs.h. */
10587:
10588: int
10589: main ()
10590: {
10591:
10592: ;
10593: return 0;
10594: }
10595: _ACEOF
1.150 moko 10596: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10597:
10598: lt_aix_libpath_sed='
10599: /Import File Strings/,/^$/ {
10600: /^0/ {
10601: s/^0 *\([^ ]*\) *$/\1/
10602: p
10603: }
10604: }'
10605: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10606: # Check for a 64-bit object if we didn't find anything.
10607: if test -z "$lt_cv_aix_libpath_"; then
10608: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10609: fi
10610: fi
1.150 moko 10611: rm -f core conftest.err conftest.$ac_objext \
10612: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10613: if test -z "$lt_cv_aix_libpath_"; then
10614: lt_cv_aix_libpath_="/usr/lib:/lib"
10615: fi
10616:
10617: fi
10618:
10619: aix_libpath=$lt_cv_aix_libpath_
10620: fi
10621:
10622: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10623: # Warning - without using the other run time loading flags,
10624: # -berok will link without error, but may produce a broken library.
10625: no_undefined_flag=' ${wl}-bernotok'
10626: allow_undefined_flag=' ${wl}-berok'
10627: if test "$with_gnu_ld" = yes; then
10628: # We only use this code for GNU lds that support --whole-archive.
10629: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10630: else
10631: # Exported symbols can be pulled into shared objects from archives
10632: whole_archive_flag_spec='$convenience'
10633: fi
10634: archive_cmds_need_lc=yes
10635: # This is similar to how AIX traditionally builds its shared libraries.
10636: 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'
10637: fi
10638: fi
10639: ;;
10640:
10641: amigaos*)
10642: case $host_cpu in
10643: powerpc)
10644: # see comment about AmigaOS4 .so support
10645: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10646: archive_expsym_cmds=''
10647: ;;
10648: m68k)
10649: 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)'
10650: hardcode_libdir_flag_spec='-L$libdir'
10651: hardcode_minus_L=yes
10652: ;;
10653: esac
10654: ;;
10655:
10656: bsdi[45]*)
10657: export_dynamic_flag_spec=-rdynamic
10658: ;;
10659:
10660: cygwin* | mingw* | pw32* | cegcc*)
10661: # When not using gcc, we currently assume that we are using
10662: # Microsoft Visual C++.
10663: # hardcode_libdir_flag_spec is actually meaningless, as there is
10664: # no search path for DLLs.
10665: case $cc_basename in
10666: cl*)
10667: # Native MSVC
10668: hardcode_libdir_flag_spec=' '
10669: allow_undefined_flag=unsupported
10670: always_export_symbols=yes
10671: file_list_spec='@'
10672: # Tell ltmain to make .lib files, not .a files.
10673: libext=lib
10674: # Tell ltmain to make .dll files, not .so files.
10675: shrext_cmds=".dll"
10676: # FIXME: Setting linknames here is a bad hack.
10677: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10678: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10679: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10680: else
10681: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10682: fi~
10683: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10684: linknames='
10685: # The linker will not automatically build a static lib if we build a DLL.
10686: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10687: enable_shared_with_static_runtimes=yes
10688: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10689: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10690: # Don't use ranlib
10691: old_postinstall_cmds='chmod 644 $oldlib'
10692: postlink_cmds='lt_outputfile="@OUTPUT@"~
10693: lt_tool_outputfile="@TOOL_OUTPUT@"~
10694: case $lt_outputfile in
10695: *.exe|*.EXE) ;;
10696: *)
10697: lt_outputfile="$lt_outputfile.exe"
10698: lt_tool_outputfile="$lt_tool_outputfile.exe"
10699: ;;
10700: esac~
10701: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10702: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10703: $RM "$lt_outputfile.manifest";
10704: fi'
10705: ;;
10706: *)
10707: # Assume MSVC wrapper
10708: hardcode_libdir_flag_spec=' '
10709: allow_undefined_flag=unsupported
10710: # Tell ltmain to make .lib files, not .a files.
10711: libext=lib
10712: # Tell ltmain to make .dll files, not .so files.
10713: shrext_cmds=".dll"
10714: # FIXME: Setting linknames here is a bad hack.
10715: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10716: # The linker will automatically build a .lib file if we build a DLL.
10717: old_archive_from_new_cmds='true'
10718: # FIXME: Should let the user specify the lib program.
10719: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10720: enable_shared_with_static_runtimes=yes
10721: ;;
10722: esac
10723: ;;
10724:
10725: darwin* | rhapsody*)
10726:
10727:
10728: archive_cmds_need_lc=no
10729: hardcode_direct=no
10730: hardcode_automatic=yes
10731: hardcode_shlibpath_var=unsupported
10732: if test "$lt_cv_ld_force_load" = "yes"; then
10733: 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\"`'
10734:
10735: else
10736: whole_archive_flag_spec=''
10737: fi
10738: link_all_deplibs=yes
10739: allow_undefined_flag="$_lt_dar_allow_undefined"
10740: case $cc_basename in
10741: ifort*) _lt_dar_can_shared=yes ;;
10742: *) _lt_dar_can_shared=$GCC ;;
10743: esac
10744: if test "$_lt_dar_can_shared" = "yes"; then
10745: output_verbose_link_cmd=func_echo_all
10746: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10747: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10748: 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}"
10749: 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}"
10750:
10751: else
10752: ld_shlibs=no
10753: fi
10754:
10755: ;;
10756:
10757: dgux*)
10758: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10759: hardcode_libdir_flag_spec='-L$libdir'
10760: hardcode_shlibpath_var=no
10761: ;;
10762:
10763: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10764: # support. Future versions do this automatically, but an explicit c++rt0.o
10765: # does not break anything, and helps significantly (at the cost of a little
10766: # extra space).
10767: freebsd2.2*)
10768: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10769: hardcode_libdir_flag_spec='-R$libdir'
10770: hardcode_direct=yes
10771: hardcode_shlibpath_var=no
10772: ;;
10773:
10774: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10775: freebsd2.*)
10776: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10777: hardcode_direct=yes
10778: hardcode_minus_L=yes
10779: hardcode_shlibpath_var=no
10780: ;;
10781:
10782: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10783: freebsd* | dragonfly*)
10784: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10785: hardcode_libdir_flag_spec='-R$libdir'
10786: hardcode_direct=yes
10787: hardcode_shlibpath_var=no
10788: ;;
10789:
10790: hpux9*)
10791: if test "$GCC" = yes; then
10792: 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'
10793: else
10794: 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'
10795: fi
10796: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10797: hardcode_libdir_separator=:
10798: hardcode_direct=yes
10799:
10800: # hardcode_minus_L: Not really in the search PATH,
10801: # but as the default location of the library.
10802: hardcode_minus_L=yes
10803: export_dynamic_flag_spec='${wl}-E'
10804: ;;
10805:
10806: hpux10*)
10807: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10808: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10809: else
10810: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10811: fi
10812: if test "$with_gnu_ld" = no; then
10813: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10814: hardcode_libdir_separator=:
10815: hardcode_direct=yes
10816: hardcode_direct_absolute=yes
10817: export_dynamic_flag_spec='${wl}-E'
10818: # hardcode_minus_L: Not really in the search PATH,
10819: # but as the default location of the library.
10820: hardcode_minus_L=yes
10821: fi
10822: ;;
10823:
10824: hpux11*)
10825: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10826: case $host_cpu in
10827: hppa*64*)
10828: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10829: ;;
10830: ia64*)
10831: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10832: ;;
10833: *)
10834: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10835: ;;
10836: esac
10837: else
10838: case $host_cpu in
10839: hppa*64*)
10840: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10841: ;;
10842: ia64*)
10843: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10844: ;;
10845: *)
10846:
10847: # Older versions of the 11.00 compiler do not understand -b yet
10848: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.150 moko 10849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10850: $as_echo_n "checking if $CC understands -b... " >&6; }
10851: if ${lt_cv_prog_compiler__b+:} false; then :
10852: $as_echo_n "(cached) " >&6
1.128 moko 10853: else
10854: lt_cv_prog_compiler__b=no
10855: save_LDFLAGS="$LDFLAGS"
10856: LDFLAGS="$LDFLAGS -b"
10857: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10858: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10859: # The linker can only warn and ignore the option if not recognized
10860: # So say no if there are warnings
10861: if test -s conftest.err; then
10862: # Append any errors to the config.log.
10863: cat conftest.err 1>&5
10864: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10865: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10866: if diff conftest.exp conftest.er2 >/dev/null; then
10867: lt_cv_prog_compiler__b=yes
10868: fi
10869: else
10870: lt_cv_prog_compiler__b=yes
10871: fi
10872: fi
10873: $RM -r conftest*
10874: LDFLAGS="$save_LDFLAGS"
10875:
10876: fi
1.150 moko 10877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10878: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 10879:
10880: if test x"$lt_cv_prog_compiler__b" = xyes; then
10881: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10882: else
10883: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10884: fi
10885:
10886: ;;
10887: esac
10888: fi
10889: if test "$with_gnu_ld" = no; then
10890: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10891: hardcode_libdir_separator=:
10892:
10893: case $host_cpu in
10894: hppa*64*|ia64*)
10895: hardcode_direct=no
10896: hardcode_shlibpath_var=no
10897: ;;
10898: *)
10899: hardcode_direct=yes
10900: hardcode_direct_absolute=yes
10901: export_dynamic_flag_spec='${wl}-E'
10902:
10903: # hardcode_minus_L: Not really in the search PATH,
10904: # but as the default location of the library.
10905: hardcode_minus_L=yes
10906: ;;
10907: esac
10908: fi
10909: ;;
10910:
10911: irix5* | irix6* | nonstopux*)
10912: if test "$GCC" = yes; then
10913: 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'
10914: # Try to use the -exported_symbol ld option, if it does not
10915: # work, assume that -exports_file does not work either and
10916: # implicitly export all symbols.
10917: # This should be the same for all languages, so no per-tag cache variable.
1.150 moko 10918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10919: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10920: if ${lt_cv_irix_exported_symbol+:} false; then :
10921: $as_echo_n "(cached) " >&6
1.128 moko 10922: else
10923: save_LDFLAGS="$LDFLAGS"
10924: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.150 moko 10925: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10926: /* end confdefs.h. */
10927: int foo (void) { return 0; }
10928: _ACEOF
1.150 moko 10929: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10930: lt_cv_irix_exported_symbol=yes
10931: else
1.150 moko 10932: lt_cv_irix_exported_symbol=no
1.128 moko 10933: fi
1.150 moko 10934: rm -f core conftest.err conftest.$ac_objext \
10935: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10936: LDFLAGS="$save_LDFLAGS"
10937: fi
1.150 moko 10938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10939: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.128 moko 10940: if test "$lt_cv_irix_exported_symbol" = yes; then
10941: 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'
10942: fi
10943: else
10944: 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'
10945: 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'
10946: fi
10947: archive_cmds_need_lc='no'
10948: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10949: hardcode_libdir_separator=:
10950: inherit_rpath=yes
10951: link_all_deplibs=yes
10952: ;;
10953:
10954: netbsd*)
10955: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10956: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10957: else
10958: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10959: fi
10960: hardcode_libdir_flag_spec='-R$libdir'
10961: hardcode_direct=yes
10962: hardcode_shlibpath_var=no
10963: ;;
10964:
10965: newsos6)
10966: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10967: hardcode_direct=yes
10968: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10969: hardcode_libdir_separator=:
10970: hardcode_shlibpath_var=no
10971: ;;
10972:
10973: *nto* | *qnx*)
10974: ;;
10975:
10976: openbsd*)
10977: if test -f /usr/libexec/ld.so; then
10978: hardcode_direct=yes
10979: hardcode_shlibpath_var=no
10980: hardcode_direct_absolute=yes
10981: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10982: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10983: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10984: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10985: export_dynamic_flag_spec='${wl}-E'
10986: else
10987: case $host_os in
10988: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10989: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10990: hardcode_libdir_flag_spec='-R$libdir'
10991: ;;
10992: *)
10993: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10994: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10995: ;;
10996: esac
10997: fi
10998: else
10999: ld_shlibs=no
11000: fi
11001: ;;
11002:
11003: os2*)
11004: hardcode_libdir_flag_spec='-L$libdir'
11005: hardcode_minus_L=yes
11006: allow_undefined_flag=unsupported
11007: 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'
11008: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11009: ;;
11010:
11011: osf3*)
11012: if test "$GCC" = yes; then
11013: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11014: 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'
11015: else
11016: allow_undefined_flag=' -expect_unresolved \*'
11017: 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'
11018: fi
11019: archive_cmds_need_lc='no'
11020: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11021: hardcode_libdir_separator=:
11022: ;;
11023:
11024: osf4* | osf5*) # as osf3* with the addition of -msym flag
11025: if test "$GCC" = yes; then
11026: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11027: 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'
11028: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11029: else
11030: allow_undefined_flag=' -expect_unresolved \*'
11031: 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'
11032: 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~
11033: $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'
11034:
11035: # Both c and cxx compiler support -rpath directly
11036: hardcode_libdir_flag_spec='-rpath $libdir'
11037: fi
11038: archive_cmds_need_lc='no'
11039: hardcode_libdir_separator=:
11040: ;;
11041:
11042: solaris*)
11043: no_undefined_flag=' -z defs'
11044: if test "$GCC" = yes; then
11045: wlarc='${wl}'
11046: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11047: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11048: $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'
11049: else
11050: case `$CC -V 2>&1` in
11051: *"Compilers 5.0"*)
11052: wlarc=''
11053: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11054: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11055: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11056: ;;
11057: *)
11058: wlarc='${wl}'
11059: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11060: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11061: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11062: ;;
11063: esac
11064: fi
11065: hardcode_libdir_flag_spec='-R$libdir'
11066: hardcode_shlibpath_var=no
11067: case $host_os in
11068: solaris2.[0-5] | solaris2.[0-5].*) ;;
11069: *)
11070: # The compiler driver will combine and reorder linker options,
11071: # but understands `-z linker_flag'. GCC discards it without `$wl',
11072: # but is careful enough not to reorder.
11073: # Supported since Solaris 2.6 (maybe 2.5.1?)
11074: if test "$GCC" = yes; then
11075: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11076: else
11077: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11078: fi
11079: ;;
11080: esac
11081: link_all_deplibs=yes
11082: ;;
11083:
11084: sunos4*)
11085: if test "x$host_vendor" = xsequent; then
11086: # Use $CC to link under sequent, because it throws in some extra .o
11087: # files that make .init and .fini sections work.
11088: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11089: else
11090: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11091: fi
11092: hardcode_libdir_flag_spec='-L$libdir'
11093: hardcode_direct=yes
11094: hardcode_minus_L=yes
11095: hardcode_shlibpath_var=no
11096: ;;
11097:
11098: sysv4)
11099: case $host_vendor in
11100: sni)
11101: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11102: hardcode_direct=yes # is this really true???
11103: ;;
11104: siemens)
11105: ## LD is ld it makes a PLAMLIB
11106: ## CC just makes a GrossModule.
11107: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11108: reload_cmds='$CC -r -o $output$reload_objs'
11109: hardcode_direct=no
11110: ;;
11111: motorola)
11112: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11113: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11114: ;;
11115: esac
11116: runpath_var='LD_RUN_PATH'
11117: hardcode_shlibpath_var=no
11118: ;;
11119:
11120: sysv4.3*)
11121: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11122: hardcode_shlibpath_var=no
11123: export_dynamic_flag_spec='-Bexport'
11124: ;;
11125:
11126: sysv4*MP*)
11127: if test -d /usr/nec; then
11128: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11129: hardcode_shlibpath_var=no
11130: runpath_var=LD_RUN_PATH
11131: hardcode_runpath_var=yes
11132: ld_shlibs=yes
11133: fi
11134: ;;
11135:
11136: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11137: no_undefined_flag='${wl}-z,text'
11138: archive_cmds_need_lc=no
11139: hardcode_shlibpath_var=no
11140: runpath_var='LD_RUN_PATH'
11141:
11142: if test "$GCC" = yes; then
11143: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11144: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11145: else
11146: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11147: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11148: fi
11149: ;;
11150:
11151: sysv5* | sco3.2v5* | sco5v6*)
11152: # Note: We can NOT use -z defs as we might desire, because we do not
11153: # link with -lc, and that would cause any symbols used from libc to
11154: # always be unresolved, which means just about no library would
11155: # ever link correctly. If we're not using GNU ld we use -z text
11156: # though, which does catch some bad symbols but isn't as heavy-handed
11157: # as -z defs.
11158: no_undefined_flag='${wl}-z,text'
11159: allow_undefined_flag='${wl}-z,nodefs'
11160: archive_cmds_need_lc=no
11161: hardcode_shlibpath_var=no
11162: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11163: hardcode_libdir_separator=':'
11164: link_all_deplibs=yes
11165: export_dynamic_flag_spec='${wl}-Bexport'
11166: runpath_var='LD_RUN_PATH'
11167:
11168: if test "$GCC" = yes; then
11169: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11170: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11171: else
11172: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11173: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11174: fi
11175: ;;
11176:
11177: uts4*)
11178: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11179: hardcode_libdir_flag_spec='-L$libdir'
11180: hardcode_shlibpath_var=no
11181: ;;
11182:
11183: *)
11184: ld_shlibs=no
11185: ;;
11186: esac
11187:
11188: if test x$host_vendor = xsni; then
11189: case $host in
11190: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11191: export_dynamic_flag_spec='${wl}-Blargedynsym'
11192: ;;
11193: esac
11194: fi
11195: fi
11196:
1.150 moko 11197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11198: $as_echo "$ld_shlibs" >&6; }
1.128 moko 11199: test "$ld_shlibs" = no && can_build_shared=no
11200:
11201: with_gnu_ld=$with_gnu_ld
11202:
11203:
11204:
11205:
11206:
11207:
11208:
11209:
11210:
11211:
11212:
11213:
11214:
11215:
11216:
11217: #
11218: # Do we need to explicitly link libc?
11219: #
11220: case "x$archive_cmds_need_lc" in
11221: x|xyes)
11222: # Assume -lc should be added
11223: archive_cmds_need_lc=yes
11224:
11225: if test "$enable_shared" = yes && test "$GCC" = yes; then
11226: case $archive_cmds in
11227: *'~'*)
11228: # FIXME: we may have to deal with multi-command sequences.
11229: ;;
11230: '$CC '*)
11231: # Test whether the compiler implicitly links with -lc since on some
11232: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11233: # to ld, don't add -lc before -lgcc.
1.150 moko 11234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11235: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11236: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11237: $as_echo_n "(cached) " >&6
1.128 moko 11238: else
11239: $RM conftest*
11240: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11241:
1.150 moko 11242: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 11243: (eval $ac_compile) 2>&5
11244: ac_status=$?
1.150 moko 11245: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11246: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 11247: soname=conftest
11248: lib=conftest
11249: libobjs=conftest.$ac_objext
11250: deplibs=
11251: wl=$lt_prog_compiler_wl
11252: pic_flag=$lt_prog_compiler_pic
11253: compiler_flags=-v
11254: linker_flags=-v
11255: verstring=
11256: output_objdir=.
11257: libname=conftest
11258: lt_save_allow_undefined_flag=$allow_undefined_flag
11259: allow_undefined_flag=
1.150 moko 11260: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 11261: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11262: ac_status=$?
1.150 moko 11263: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264: test $ac_status = 0; }
1.128 moko 11265: then
11266: lt_cv_archive_cmds_need_lc=no
11267: else
11268: lt_cv_archive_cmds_need_lc=yes
11269: fi
11270: allow_undefined_flag=$lt_save_allow_undefined_flag
11271: else
11272: cat conftest.err 1>&5
11273: fi
11274: $RM conftest*
11275:
11276: fi
1.150 moko 11277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11278: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 11279: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11280: ;;
11281: esac
11282: fi
11283: ;;
11284: esac
11285:
11286:
11287:
11288:
11289:
11290:
11291:
11292:
11293:
11294:
11295:
11296:
11297:
11298:
11299:
11300:
11301:
11302:
11303:
11304:
11305:
11306:
11307:
11308:
11309:
11310:
11311:
11312:
11313:
11314:
11315:
11316:
11317:
11318:
11319:
11320:
11321:
11322:
11323:
11324:
11325:
11326:
11327:
11328:
11329:
11330:
11331:
11332:
11333:
11334:
11335:
11336:
11337:
11338:
11339:
11340:
11341:
11342:
11343:
11344:
11345:
11346:
11347:
11348:
11349:
11350:
11351:
11352:
11353:
11354:
11355:
11356:
11357:
11358:
11359:
11360:
11361:
11362:
11363:
11364:
11365:
11366:
11367:
11368:
11369:
11370:
11371:
11372:
11373:
11374:
11375:
11376:
11377:
11378:
11379:
11380:
11381:
11382:
11383:
11384:
11385:
11386:
11387:
11388:
11389:
11390:
11391:
11392:
11393:
11394:
11395:
11396:
11397:
11398:
11399:
11400:
11401:
11402:
11403:
11404:
11405:
11406:
11407:
11408:
11409:
11410:
11411:
11412:
11413:
11414:
11415:
11416:
11417:
11418:
11419:
11420:
11421:
11422:
11423:
11424:
11425:
11426:
11427:
11428:
11429:
11430:
11431:
11432:
11433:
11434:
11435:
11436:
1.150 moko 11437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11438: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 11439:
11440: if test "$GCC" = yes; then
11441: case $host_os in
11442: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11443: *) lt_awk_arg="/^libraries:/" ;;
11444: esac
11445: case $host_os in
11446: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11447: *) lt_sed_strip_eq="s,=/,/,g" ;;
11448: esac
11449: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11450: case $lt_search_path_spec in
11451: *\;*)
11452: # if the path contains ";" then we assume it to be the separator
11453: # otherwise default to the standard path separator (i.e. ":") - it is
11454: # assumed that no part of a normal pathname contains ";" but that should
11455: # okay in the real world where ";" in dirpaths is itself problematic.
11456: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11457: ;;
11458: *)
11459: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11460: ;;
11461: esac
11462: # Ok, now we have the path, separated by spaces, we can step through it
11463: # and add multilib dir if necessary.
11464: lt_tmp_lt_search_path_spec=
11465: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11466: for lt_sys_path in $lt_search_path_spec; do
11467: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11468: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11469: else
11470: test -d "$lt_sys_path" && \
11471: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11472: fi
11473: done
11474: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11475: BEGIN {RS=" "; FS="/|\n";} {
11476: lt_foo="";
11477: lt_count=0;
11478: for (lt_i = NF; lt_i > 0; lt_i--) {
11479: if ($lt_i != "" && $lt_i != ".") {
11480: if ($lt_i == "..") {
11481: lt_count++;
11482: } else {
11483: if (lt_count == 0) {
11484: lt_foo="/" $lt_i lt_foo;
11485: } else {
11486: lt_count--;
11487: }
11488: }
11489: }
11490: }
11491: if (lt_foo != "") { lt_freq[lt_foo]++; }
11492: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11493: }'`
11494: # AWK program above erroneously prepends '/' to C:/dos/paths
11495: # for these hosts.
11496: case $host_os in
11497: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11498: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11499: esac
11500: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11501: else
11502: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11503: fi
11504: library_names_spec=
11505: libname_spec='lib$name'
11506: soname_spec=
11507: shrext_cmds=".so"
11508: postinstall_cmds=
11509: postuninstall_cmds=
11510: finish_cmds=
11511: finish_eval=
11512: shlibpath_var=
11513: shlibpath_overrides_runpath=unknown
11514: version_type=none
11515: dynamic_linker="$host_os ld.so"
11516: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11517: need_lib_prefix=unknown
11518: hardcode_into_libs=no
11519:
11520: # when you set need_version to no, make sure it does not cause -set_version
11521: # flags to be left without arguments
11522: need_version=unknown
11523:
11524: case $host_os in
11525: aix3*)
11526: version_type=linux # correct to gnu/linux during the next big refactor
11527: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11528: shlibpath_var=LIBPATH
11529:
11530: # AIX 3 has no versioning support, so we append a major version to the name.
11531: soname_spec='${libname}${release}${shared_ext}$major'
11532: ;;
11533:
11534: aix[4-9]*)
11535: version_type=linux # correct to gnu/linux during the next big refactor
11536: need_lib_prefix=no
11537: need_version=no
11538: hardcode_into_libs=yes
11539: if test "$host_cpu" = ia64; then
11540: # AIX 5 supports IA64
11541: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11542: shlibpath_var=LD_LIBRARY_PATH
11543: else
11544: # With GCC up to 2.95.x, collect2 would create an import file
11545: # for dependence libraries. The import file would start with
11546: # the line `#! .'. This would cause the generated library to
11547: # depend on `.', always an invalid library. This was fixed in
11548: # development snapshots of GCC prior to 3.0.
11549: case $host_os in
11550: aix4 | aix4.[01] | aix4.[01].*)
11551: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11552: echo ' yes '
11553: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11554: :
11555: else
11556: can_build_shared=no
11557: fi
11558: ;;
11559: esac
11560: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11561: # soname into executable. Probably we can add versioning support to
11562: # collect2, so additional links can be useful in future.
11563: if test "$aix_use_runtimelinking" = yes; then
11564: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11565: # instead of lib<name>.a to let people know that these are not
11566: # typical AIX shared libraries.
11567: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568: else
11569: # We preserve .a as extension for shared libraries through AIX4.2
11570: # and later when we are not doing run time linking.
11571: library_names_spec='${libname}${release}.a $libname.a'
11572: soname_spec='${libname}${release}${shared_ext}$major'
11573: fi
11574: shlibpath_var=LIBPATH
11575: fi
11576: ;;
11577:
11578: amigaos*)
11579: case $host_cpu in
11580: powerpc)
11581: # Since July 2007 AmigaOS4 officially supports .so libraries.
11582: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11583: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584: ;;
11585: m68k)
11586: library_names_spec='$libname.ixlibrary $libname.a'
11587: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11588: 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'
11589: ;;
11590: esac
11591: ;;
11592:
11593: beos*)
11594: library_names_spec='${libname}${shared_ext}'
11595: dynamic_linker="$host_os ld.so"
11596: shlibpath_var=LIBRARY_PATH
11597: ;;
11598:
11599: bsdi[45]*)
11600: version_type=linux # correct to gnu/linux during the next big refactor
11601: need_version=no
11602: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11603: soname_spec='${libname}${release}${shared_ext}$major'
11604: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11605: shlibpath_var=LD_LIBRARY_PATH
11606: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11607: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11608: # the default ld.so.conf also contains /usr/contrib/lib and
11609: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11610: # libtool to hard-code these into programs
11611: ;;
11612:
11613: cygwin* | mingw* | pw32* | cegcc*)
11614: version_type=windows
11615: shrext_cmds=".dll"
11616: need_version=no
11617: need_lib_prefix=no
11618:
11619: case $GCC,$cc_basename in
11620: yes,*)
11621: # gcc
11622: library_names_spec='$libname.dll.a'
11623: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11624: postinstall_cmds='base_file=`basename \${file}`~
11625: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11626: dldir=$destdir/`dirname \$dlpath`~
11627: test -d \$dldir || mkdir -p \$dldir~
11628: $install_prog $dir/$dlname \$dldir/$dlname~
11629: chmod a+x \$dldir/$dlname~
11630: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11631: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11632: fi'
11633: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11634: dlpath=$dir/\$dldll~
11635: $RM \$dlpath'
11636: shlibpath_overrides_runpath=yes
11637:
11638: case $host_os in
11639: cygwin*)
11640: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11641: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11642:
11643: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11644: ;;
11645: mingw* | cegcc*)
11646: # MinGW DLLs use traditional 'lib' prefix
11647: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11648: ;;
11649: pw32*)
11650: # pw32 DLLs use 'pw' prefix rather than 'lib'
11651: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11652: ;;
11653: esac
11654: dynamic_linker='Win32 ld.exe'
11655: ;;
11656:
11657: *,cl*)
11658: # Native MSVC
11659: libname_spec='$name'
11660: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11661: library_names_spec='${libname}.dll.lib'
11662:
11663: case $build_os in
11664: mingw*)
11665: sys_lib_search_path_spec=
11666: lt_save_ifs=$IFS
11667: IFS=';'
11668: for lt_path in $LIB
11669: do
11670: IFS=$lt_save_ifs
11671: # Let DOS variable expansion print the short 8.3 style file name.
11672: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11673: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11674: done
11675: IFS=$lt_save_ifs
11676: # Convert to MSYS style.
11677: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11678: ;;
11679: cygwin*)
11680: # Convert to unix form, then to dos form, then back to unix form
11681: # but this time dos style (no spaces!) so that the unix form looks
11682: # like /cygdrive/c/PROGRA~1:/cygdr...
11683: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11684: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11685: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11686: ;;
11687: *)
11688: sys_lib_search_path_spec="$LIB"
11689: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11690: # It is most probably a Windows format PATH.
11691: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11692: else
11693: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11694: fi
11695: # FIXME: find the short name or the path components, as spaces are
11696: # common. (e.g. "Program Files" -> "PROGRA~1")
11697: ;;
11698: esac
11699:
11700: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11701: postinstall_cmds='base_file=`basename \${file}`~
11702: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11703: dldir=$destdir/`dirname \$dlpath`~
11704: test -d \$dldir || mkdir -p \$dldir~
11705: $install_prog $dir/$dlname \$dldir/$dlname'
11706: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11707: dlpath=$dir/\$dldll~
11708: $RM \$dlpath'
11709: shlibpath_overrides_runpath=yes
11710: dynamic_linker='Win32 link.exe'
11711: ;;
11712:
11713: *)
11714: # Assume MSVC wrapper
11715: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11716: dynamic_linker='Win32 ld.exe'
11717: ;;
11718: esac
11719: # FIXME: first we should search . and the directory the executable is in
11720: shlibpath_var=PATH
11721: ;;
11722:
11723: darwin* | rhapsody*)
11724: dynamic_linker="$host_os dyld"
11725: version_type=darwin
11726: need_lib_prefix=no
11727: need_version=no
11728: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11729: soname_spec='${libname}${release}${major}$shared_ext'
11730: shlibpath_overrides_runpath=yes
11731: shlibpath_var=DYLD_LIBRARY_PATH
11732: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11733:
11734: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11735: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11736: ;;
11737:
11738: dgux*)
11739: version_type=linux # correct to gnu/linux during the next big refactor
11740: need_lib_prefix=no
11741: need_version=no
11742: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11743: soname_spec='${libname}${release}${shared_ext}$major'
11744: shlibpath_var=LD_LIBRARY_PATH
11745: ;;
11746:
11747: freebsd* | dragonfly*)
11748: # DragonFly does not have aout. When/if they implement a new
11749: # versioning mechanism, adjust this.
11750: if test -x /usr/bin/objformat; then
11751: objformat=`/usr/bin/objformat`
11752: else
11753: case $host_os in
11754: freebsd[23].*) objformat=aout ;;
11755: *) objformat=elf ;;
11756: esac
11757: fi
11758: version_type=freebsd-$objformat
11759: case $version_type in
11760: freebsd-elf*)
11761: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11762: need_version=no
11763: need_lib_prefix=no
11764: ;;
11765: freebsd-*)
11766: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11767: need_version=yes
11768: ;;
11769: esac
11770: shlibpath_var=LD_LIBRARY_PATH
11771: case $host_os in
11772: freebsd2.*)
11773: shlibpath_overrides_runpath=yes
11774: ;;
11775: freebsd3.[01]* | freebsdelf3.[01]*)
11776: shlibpath_overrides_runpath=yes
11777: hardcode_into_libs=yes
11778: ;;
11779: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11780: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11781: shlibpath_overrides_runpath=no
11782: hardcode_into_libs=yes
11783: ;;
11784: *) # from 4.6 on, and DragonFly
11785: shlibpath_overrides_runpath=yes
11786: hardcode_into_libs=yes
11787: ;;
11788: esac
11789: ;;
11790:
11791: gnu*)
11792: version_type=linux # correct to gnu/linux during the next big refactor
11793: need_lib_prefix=no
11794: need_version=no
11795: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11796: soname_spec='${libname}${release}${shared_ext}$major'
11797: shlibpath_var=LD_LIBRARY_PATH
11798: shlibpath_overrides_runpath=no
11799: hardcode_into_libs=yes
11800: ;;
11801:
11802: haiku*)
11803: version_type=linux # correct to gnu/linux during the next big refactor
11804: need_lib_prefix=no
11805: need_version=no
11806: dynamic_linker="$host_os runtime_loader"
11807: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11808: soname_spec='${libname}${release}${shared_ext}$major'
11809: shlibpath_var=LIBRARY_PATH
11810: shlibpath_overrides_runpath=yes
11811: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11812: hardcode_into_libs=yes
11813: ;;
11814:
11815: hpux9* | hpux10* | hpux11*)
11816: # Give a soname corresponding to the major version so that dld.sl refuses to
11817: # link against other versions.
11818: version_type=sunos
11819: need_lib_prefix=no
11820: need_version=no
11821: case $host_cpu in
11822: ia64*)
11823: shrext_cmds='.so'
11824: hardcode_into_libs=yes
11825: dynamic_linker="$host_os dld.so"
11826: shlibpath_var=LD_LIBRARY_PATH
11827: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11828: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829: soname_spec='${libname}${release}${shared_ext}$major'
11830: if test "X$HPUX_IA64_MODE" = X32; then
11831: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11832: else
11833: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11834: fi
11835: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11836: ;;
11837: hppa*64*)
11838: shrext_cmds='.sl'
11839: hardcode_into_libs=yes
11840: dynamic_linker="$host_os dld.sl"
11841: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11842: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11843: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844: soname_spec='${libname}${release}${shared_ext}$major'
11845: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11846: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11847: ;;
11848: *)
11849: shrext_cmds='.sl'
11850: dynamic_linker="$host_os dld.sl"
11851: shlibpath_var=SHLIB_PATH
11852: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11853: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854: soname_spec='${libname}${release}${shared_ext}$major'
11855: ;;
11856: esac
11857: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11858: postinstall_cmds='chmod 555 $lib'
11859: # or fails outright, so override atomically:
11860: install_override_mode=555
11861: ;;
11862:
11863: interix[3-9]*)
11864: version_type=linux # correct to gnu/linux during the next big refactor
11865: need_lib_prefix=no
11866: need_version=no
11867: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11868: soname_spec='${libname}${release}${shared_ext}$major'
11869: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11870: shlibpath_var=LD_LIBRARY_PATH
11871: shlibpath_overrides_runpath=no
11872: hardcode_into_libs=yes
11873: ;;
11874:
11875: irix5* | irix6* | nonstopux*)
11876: case $host_os in
11877: nonstopux*) version_type=nonstopux ;;
11878: *)
11879: if test "$lt_cv_prog_gnu_ld" = yes; then
11880: version_type=linux # correct to gnu/linux during the next big refactor
11881: else
11882: version_type=irix
11883: fi ;;
11884: esac
11885: need_lib_prefix=no
11886: need_version=no
11887: soname_spec='${libname}${release}${shared_ext}$major'
11888: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11889: case $host_os in
11890: irix5* | nonstopux*)
11891: libsuff= shlibsuff=
11892: ;;
11893: *)
11894: case $LD in # libtool.m4 will add one of these switches to LD
11895: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11896: libsuff= shlibsuff= libmagic=32-bit;;
11897: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11898: libsuff=32 shlibsuff=N32 libmagic=N32;;
11899: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11900: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11901: *) libsuff= shlibsuff= libmagic=never-match;;
11902: esac
11903: ;;
11904: esac
11905: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11906: shlibpath_overrides_runpath=no
11907: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11908: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11909: hardcode_into_libs=yes
11910: ;;
11911:
11912: # No shared lib support for Linux oldld, aout, or coff.
11913: linux*oldld* | linux*aout* | linux*coff*)
11914: dynamic_linker=no
11915: ;;
11916:
11917: # This must be glibc/ELF.
11918: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11919: version_type=linux # correct to gnu/linux during the next big refactor
11920: need_lib_prefix=no
11921: need_version=no
11922: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11923: soname_spec='${libname}${release}${shared_ext}$major'
11924: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11925: shlibpath_var=LD_LIBRARY_PATH
11926: shlibpath_overrides_runpath=no
11927:
11928: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 11929: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11930: $as_echo_n "(cached) " >&6
1.128 moko 11931: else
11932: lt_cv_shlibpath_overrides_runpath=no
11933: save_LDFLAGS=$LDFLAGS
11934: save_libdir=$libdir
11935: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11936: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 11937: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 11938: /* end confdefs.h. */
11939:
11940: int
11941: main ()
11942: {
11943:
11944: ;
11945: return 0;
11946: }
11947: _ACEOF
1.150 moko 11948: if ac_fn_c_try_link "$LINENO"; then :
11949: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 11950: lt_cv_shlibpath_overrides_runpath=yes
11951: fi
11952: fi
1.150 moko 11953: rm -f core conftest.err conftest.$ac_objext \
11954: conftest$ac_exeext conftest.$ac_ext
1.128 moko 11955: LDFLAGS=$save_LDFLAGS
11956: libdir=$save_libdir
11957:
11958: fi
11959:
11960: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11961:
11962: # This implies no fast_install, which is unacceptable.
11963: # Some rework will be needed to allow for fast_install
11964: # before this can be enabled.
11965: hardcode_into_libs=yes
11966:
11967: # Append ld.so.conf contents to the search path
11968: if test -f /etc/ld.so.conf; then
11969: 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' ' '`
11970: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11971: fi
11972:
11973: # We used to test for /lib/ld.so.1 and disable shared libraries on
11974: # powerpc, because MkLinux only supported shared libraries with the
11975: # GNU dynamic linker. Since this was broken with cross compilers,
11976: # most powerpc-linux boxes support dynamic linking these days and
11977: # people can always --disable-shared, the test was removed, and we
11978: # assume the GNU/Linux dynamic linker is in use.
11979: dynamic_linker='GNU/Linux ld.so'
11980: ;;
11981:
11982: netbsd*)
11983: version_type=sunos
11984: need_lib_prefix=no
11985: need_version=no
11986: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11987: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11988: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11989: dynamic_linker='NetBSD (a.out) ld.so'
11990: else
11991: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11992: soname_spec='${libname}${release}${shared_ext}$major'
11993: dynamic_linker='NetBSD ld.elf_so'
11994: fi
11995: shlibpath_var=LD_LIBRARY_PATH
11996: shlibpath_overrides_runpath=yes
11997: hardcode_into_libs=yes
11998: ;;
11999:
12000: newsos6)
12001: version_type=linux # correct to gnu/linux during the next big refactor
12002: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003: shlibpath_var=LD_LIBRARY_PATH
12004: shlibpath_overrides_runpath=yes
12005: ;;
12006:
12007: *nto* | *qnx*)
12008: version_type=qnx
12009: need_lib_prefix=no
12010: need_version=no
12011: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012: soname_spec='${libname}${release}${shared_ext}$major'
12013: shlibpath_var=LD_LIBRARY_PATH
12014: shlibpath_overrides_runpath=no
12015: hardcode_into_libs=yes
12016: dynamic_linker='ldqnx.so'
12017: ;;
12018:
12019: openbsd*)
12020: version_type=sunos
12021: sys_lib_dlsearch_path_spec="/usr/lib"
12022: need_lib_prefix=no
12023: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12024: case $host_os in
12025: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12026: *) need_version=no ;;
12027: esac
12028: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12029: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12030: shlibpath_var=LD_LIBRARY_PATH
12031: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12032: case $host_os in
12033: openbsd2.[89] | openbsd2.[89].*)
12034: shlibpath_overrides_runpath=no
12035: ;;
12036: *)
12037: shlibpath_overrides_runpath=yes
12038: ;;
12039: esac
12040: else
12041: shlibpath_overrides_runpath=yes
12042: fi
12043: ;;
12044:
12045: os2*)
12046: libname_spec='$name'
12047: shrext_cmds=".dll"
12048: need_lib_prefix=no
12049: library_names_spec='$libname${shared_ext} $libname.a'
12050: dynamic_linker='OS/2 ld.exe'
12051: shlibpath_var=LIBPATH
12052: ;;
12053:
12054: osf3* | osf4* | osf5*)
12055: version_type=osf
12056: need_lib_prefix=no
12057: need_version=no
12058: soname_spec='${libname}${release}${shared_ext}$major'
12059: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12060: shlibpath_var=LD_LIBRARY_PATH
12061: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12062: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12063: ;;
12064:
12065: rdos*)
12066: dynamic_linker=no
12067: ;;
12068:
12069: solaris*)
12070: version_type=linux # correct to gnu/linux during the next big refactor
12071: need_lib_prefix=no
12072: need_version=no
12073: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12074: soname_spec='${libname}${release}${shared_ext}$major'
12075: shlibpath_var=LD_LIBRARY_PATH
12076: shlibpath_overrides_runpath=yes
12077: hardcode_into_libs=yes
12078: # ldd complains unless libraries are executable
12079: postinstall_cmds='chmod +x $lib'
12080: ;;
12081:
12082: sunos4*)
12083: version_type=sunos
12084: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12085: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12086: shlibpath_var=LD_LIBRARY_PATH
12087: shlibpath_overrides_runpath=yes
12088: if test "$with_gnu_ld" = yes; then
12089: need_lib_prefix=no
12090: fi
12091: need_version=yes
12092: ;;
12093:
12094: sysv4 | sysv4.3*)
12095: version_type=linux # correct to gnu/linux during the next big refactor
12096: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097: soname_spec='${libname}${release}${shared_ext}$major'
12098: shlibpath_var=LD_LIBRARY_PATH
12099: case $host_vendor in
12100: sni)
12101: shlibpath_overrides_runpath=no
12102: need_lib_prefix=no
12103: runpath_var=LD_RUN_PATH
12104: ;;
12105: siemens)
12106: need_lib_prefix=no
12107: ;;
12108: motorola)
12109: need_lib_prefix=no
12110: need_version=no
12111: shlibpath_overrides_runpath=no
12112: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12113: ;;
12114: esac
12115: ;;
12116:
12117: sysv4*MP*)
12118: if test -d /usr/nec ;then
12119: version_type=linux # correct to gnu/linux during the next big refactor
12120: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12121: soname_spec='$libname${shared_ext}.$major'
12122: shlibpath_var=LD_LIBRARY_PATH
12123: fi
12124: ;;
12125:
12126: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12127: version_type=freebsd-elf
12128: need_lib_prefix=no
12129: need_version=no
12130: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12131: soname_spec='${libname}${release}${shared_ext}$major'
12132: shlibpath_var=LD_LIBRARY_PATH
12133: shlibpath_overrides_runpath=yes
12134: hardcode_into_libs=yes
12135: if test "$with_gnu_ld" = yes; then
12136: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12137: else
12138: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12139: case $host_os in
12140: sco3.2v5*)
12141: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12142: ;;
12143: esac
12144: fi
12145: sys_lib_dlsearch_path_spec='/usr/lib'
12146: ;;
12147:
12148: tpf*)
12149: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12150: version_type=linux # correct to gnu/linux during the next big refactor
12151: need_lib_prefix=no
12152: need_version=no
12153: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12154: shlibpath_var=LD_LIBRARY_PATH
12155: shlibpath_overrides_runpath=no
12156: hardcode_into_libs=yes
12157: ;;
12158:
12159: uts4*)
12160: version_type=linux # correct to gnu/linux during the next big refactor
12161: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12162: soname_spec='${libname}${release}${shared_ext}$major'
12163: shlibpath_var=LD_LIBRARY_PATH
12164: ;;
12165:
12166: *)
12167: dynamic_linker=no
12168: ;;
12169: esac
1.150 moko 12170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12171: $as_echo "$dynamic_linker" >&6; }
1.128 moko 12172: test "$dynamic_linker" = no && can_build_shared=no
12173:
12174: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12175: if test "$GCC" = yes; then
12176: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12177: fi
12178:
12179: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12180: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12181: fi
12182: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12183: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12184: fi
12185:
12186:
12187:
12188:
12189:
12190:
12191:
12192:
12193:
12194:
12195:
12196:
12197:
12198:
12199:
12200:
12201:
12202:
12203:
12204:
12205:
12206:
12207:
12208:
12209:
12210:
12211:
12212:
12213:
12214:
12215:
12216:
12217:
12218:
12219:
12220:
12221:
12222:
12223:
12224:
12225:
12226:
12227:
12228:
12229:
12230:
12231:
12232:
12233:
12234:
12235:
12236:
12237:
12238:
12239:
12240:
12241:
12242:
12243:
12244:
12245:
12246:
12247:
12248:
12249:
12250:
12251:
12252:
12253:
12254:
12255:
12256:
12257:
12258:
12259:
12260:
12261:
12262:
12263:
12264:
12265:
12266:
12267:
12268:
12269:
12270:
12271:
12272:
12273:
12274:
12275:
12276:
1.150 moko 12277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12278: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 12279: hardcode_action=
12280: if test -n "$hardcode_libdir_flag_spec" ||
12281: test -n "$runpath_var" ||
12282: test "X$hardcode_automatic" = "Xyes" ; then
12283:
12284: # We can hardcode non-existent directories.
12285: if test "$hardcode_direct" != no &&
12286: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12287: # have to relink, otherwise we might link with an installed library
12288: # when we should be linking with a yet-to-be-installed one
12289: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12290: test "$hardcode_minus_L" != no; then
12291: # Linking always hardcodes the temporary library directory.
12292: hardcode_action=relink
12293: else
12294: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12295: hardcode_action=immediate
12296: fi
12297: else
12298: # We cannot hardcode anything, or else we can only hardcode existing
12299: # directories.
12300: hardcode_action=unsupported
12301: fi
1.150 moko 12302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12303: $as_echo "$hardcode_action" >&6; }
1.128 moko 12304:
12305: if test "$hardcode_action" = relink ||
12306: test "$inherit_rpath" = yes; then
12307: # Fast installation is not supported
12308: enable_fast_install=no
12309: elif test "$shlibpath_overrides_runpath" = yes ||
12310: test "$enable_shared" = no; then
12311: # Fast installation is not necessary
12312: enable_fast_install=needless
12313: fi
12314:
12315:
12316:
12317:
12318:
12319:
12320: if test "x$enable_dlopen" != xyes; then
12321: enable_dlopen=unknown
12322: enable_dlopen_self=unknown
12323: enable_dlopen_self_static=unknown
12324: else
12325: lt_cv_dlopen=no
12326: lt_cv_dlopen_libs=
12327:
12328: case $host_os in
12329: beos*)
12330: lt_cv_dlopen="load_add_on"
12331: lt_cv_dlopen_libs=
12332: lt_cv_dlopen_self=yes
12333: ;;
12334:
12335: mingw* | pw32* | cegcc*)
12336: lt_cv_dlopen="LoadLibrary"
12337: lt_cv_dlopen_libs=
12338: ;;
12339:
12340: cygwin*)
12341: lt_cv_dlopen="dlopen"
12342: lt_cv_dlopen_libs=
12343: ;;
12344:
12345: darwin*)
12346: # if libdl is installed we need to link against it
1.150 moko 12347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12348: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12349: if ${ac_cv_lib_dl_dlopen+:} false; then :
12350: $as_echo_n "(cached) " >&6
1.128 moko 12351: else
12352: ac_check_lib_save_LIBS=$LIBS
12353: LIBS="-ldl $LIBS"
1.150 moko 12354: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12355: /* end confdefs.h. */
12356:
1.150 moko 12357: /* Override any GCC internal prototype to avoid an error.
12358: Use char because int might match the return type of a GCC
12359: builtin and then its argument prototype would still apply. */
1.128 moko 12360: #ifdef __cplusplus
12361: extern "C"
12362: #endif
12363: char dlopen ();
12364: int
12365: main ()
12366: {
1.150 moko 12367: return dlopen ();
1.128 moko 12368: ;
12369: return 0;
12370: }
12371: _ACEOF
1.150 moko 12372: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12373: ac_cv_lib_dl_dlopen=yes
12374: else
1.150 moko 12375: ac_cv_lib_dl_dlopen=no
1.128 moko 12376: fi
1.150 moko 12377: rm -f core conftest.err conftest.$ac_objext \
12378: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12379: LIBS=$ac_check_lib_save_LIBS
12380: fi
1.150 moko 12381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12382: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12383: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12384: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12385: else
12386:
12387: lt_cv_dlopen="dyld"
12388: lt_cv_dlopen_libs=
12389: lt_cv_dlopen_self=yes
12390:
12391: fi
12392:
12393: ;;
12394:
12395: *)
1.150 moko 12396: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12397: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 12398: lt_cv_dlopen="shl_load"
12399: else
1.150 moko 12400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12401: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12402: if ${ac_cv_lib_dld_shl_load+:} false; then :
12403: $as_echo_n "(cached) " >&6
1.128 moko 12404: else
12405: ac_check_lib_save_LIBS=$LIBS
12406: LIBS="-ldld $LIBS"
1.150 moko 12407: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12408: /* end confdefs.h. */
12409:
1.150 moko 12410: /* Override any GCC internal prototype to avoid an error.
12411: Use char because int might match the return type of a GCC
12412: builtin and then its argument prototype would still apply. */
1.128 moko 12413: #ifdef __cplusplus
12414: extern "C"
12415: #endif
12416: char shl_load ();
12417: int
12418: main ()
12419: {
1.150 moko 12420: return shl_load ();
1.128 moko 12421: ;
12422: return 0;
12423: }
12424: _ACEOF
1.150 moko 12425: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12426: ac_cv_lib_dld_shl_load=yes
12427: else
1.150 moko 12428: ac_cv_lib_dld_shl_load=no
1.128 moko 12429: fi
1.150 moko 12430: rm -f core conftest.err conftest.$ac_objext \
12431: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12432: LIBS=$ac_check_lib_save_LIBS
12433: fi
1.150 moko 12434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12435: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12436: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.128 moko 12437: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12438: else
1.150 moko 12439: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12440: if test "x$ac_cv_func_dlopen" = xyes; then :
1.128 moko 12441: lt_cv_dlopen="dlopen"
12442: else
1.150 moko 12443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12444: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12445: if ${ac_cv_lib_dl_dlopen+:} false; then :
12446: $as_echo_n "(cached) " >&6
1.128 moko 12447: else
12448: ac_check_lib_save_LIBS=$LIBS
12449: LIBS="-ldl $LIBS"
1.150 moko 12450: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12451: /* end confdefs.h. */
12452:
1.150 moko 12453: /* Override any GCC internal prototype to avoid an error.
12454: Use char because int might match the return type of a GCC
12455: builtin and then its argument prototype would still apply. */
1.128 moko 12456: #ifdef __cplusplus
12457: extern "C"
12458: #endif
12459: char dlopen ();
12460: int
12461: main ()
12462: {
1.150 moko 12463: return dlopen ();
1.128 moko 12464: ;
12465: return 0;
12466: }
12467: _ACEOF
1.150 moko 12468: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12469: ac_cv_lib_dl_dlopen=yes
12470: else
1.150 moko 12471: ac_cv_lib_dl_dlopen=no
1.128 moko 12472: fi
1.150 moko 12473: rm -f core conftest.err conftest.$ac_objext \
12474: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12475: LIBS=$ac_check_lib_save_LIBS
12476: fi
1.150 moko 12477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12478: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12479: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12480: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12481: else
1.150 moko 12482: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12483: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12484: if ${ac_cv_lib_svld_dlopen+:} false; then :
12485: $as_echo_n "(cached) " >&6
1.128 moko 12486: else
12487: ac_check_lib_save_LIBS=$LIBS
12488: LIBS="-lsvld $LIBS"
1.150 moko 12489: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12490: /* end confdefs.h. */
12491:
1.150 moko 12492: /* Override any GCC internal prototype to avoid an error.
12493: Use char because int might match the return type of a GCC
12494: builtin and then its argument prototype would still apply. */
1.128 moko 12495: #ifdef __cplusplus
12496: extern "C"
12497: #endif
12498: char dlopen ();
12499: int
12500: main ()
12501: {
1.150 moko 12502: return dlopen ();
1.128 moko 12503: ;
12504: return 0;
12505: }
12506: _ACEOF
1.150 moko 12507: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12508: ac_cv_lib_svld_dlopen=yes
12509: else
1.150 moko 12510: ac_cv_lib_svld_dlopen=no
1.128 moko 12511: fi
1.150 moko 12512: rm -f core conftest.err conftest.$ac_objext \
12513: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12514: LIBS=$ac_check_lib_save_LIBS
12515: fi
1.150 moko 12516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12517: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12518: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 12519: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12520: else
1.150 moko 12521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12522: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12523: if ${ac_cv_lib_dld_dld_link+:} false; then :
12524: $as_echo_n "(cached) " >&6
1.128 moko 12525: else
12526: ac_check_lib_save_LIBS=$LIBS
12527: LIBS="-ldld $LIBS"
1.150 moko 12528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12529: /* end confdefs.h. */
12530:
1.150 moko 12531: /* Override any GCC internal prototype to avoid an error.
12532: Use char because int might match the return type of a GCC
12533: builtin and then its argument prototype would still apply. */
1.128 moko 12534: #ifdef __cplusplus
12535: extern "C"
12536: #endif
12537: char dld_link ();
12538: int
12539: main ()
12540: {
1.150 moko 12541: return dld_link ();
1.128 moko 12542: ;
12543: return 0;
12544: }
12545: _ACEOF
1.150 moko 12546: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12547: ac_cv_lib_dld_dld_link=yes
12548: else
1.150 moko 12549: ac_cv_lib_dld_dld_link=no
12550: fi
12551: rm -f core conftest.err conftest.$ac_objext \
12552: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12553: LIBS=$ac_check_lib_save_LIBS
12554: fi
1.150 moko 12555: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12556: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12557: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 12558: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12559: fi
12560:
12561:
12562: fi
12563:
12564:
12565: fi
12566:
12567:
12568: fi
12569:
12570:
12571: fi
12572:
12573:
12574: fi
12575:
12576: ;;
12577: esac
12578:
12579: if test "x$lt_cv_dlopen" != xno; then
12580: enable_dlopen=yes
12581: else
12582: enable_dlopen=no
12583: fi
12584:
12585: case $lt_cv_dlopen in
12586: dlopen)
12587: save_CPPFLAGS="$CPPFLAGS"
12588: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12589:
12590: save_LDFLAGS="$LDFLAGS"
12591: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12592:
12593: save_LIBS="$LIBS"
12594: LIBS="$lt_cv_dlopen_libs $LIBS"
12595:
1.150 moko 12596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12597: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12598: if ${lt_cv_dlopen_self+:} false; then :
12599: $as_echo_n "(cached) " >&6
1.128 moko 12600: else
12601: if test "$cross_compiling" = yes; then :
12602: lt_cv_dlopen_self=cross
12603: else
12604: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12605: lt_status=$lt_dlunknown
12606: cat > conftest.$ac_ext <<_LT_EOF
12607: #line $LINENO "configure"
12608: #include "confdefs.h"
12609:
12610: #if HAVE_DLFCN_H
12611: #include <dlfcn.h>
12612: #endif
12613:
12614: #include <stdio.h>
12615:
12616: #ifdef RTLD_GLOBAL
12617: # define LT_DLGLOBAL RTLD_GLOBAL
12618: #else
12619: # ifdef DL_GLOBAL
12620: # define LT_DLGLOBAL DL_GLOBAL
12621: # else
12622: # define LT_DLGLOBAL 0
12623: # endif
12624: #endif
12625:
12626: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12627: find out it does not work in some platform. */
12628: #ifndef LT_DLLAZY_OR_NOW
12629: # ifdef RTLD_LAZY
12630: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12631: # else
12632: # ifdef DL_LAZY
12633: # define LT_DLLAZY_OR_NOW DL_LAZY
12634: # else
12635: # ifdef RTLD_NOW
12636: # define LT_DLLAZY_OR_NOW RTLD_NOW
12637: # else
12638: # ifdef DL_NOW
12639: # define LT_DLLAZY_OR_NOW DL_NOW
12640: # else
12641: # define LT_DLLAZY_OR_NOW 0
12642: # endif
12643: # endif
12644: # endif
12645: # endif
12646: #endif
12647:
12648: /* When -fvisbility=hidden is used, assume the code has been annotated
12649: correspondingly for the symbols needed. */
12650: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12651: int fnord () __attribute__((visibility("default")));
12652: #endif
12653:
12654: int fnord () { return 42; }
12655: int main ()
12656: {
12657: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12658: int status = $lt_dlunknown;
12659:
12660: if (self)
12661: {
12662: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12663: else
12664: {
12665: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12666: else puts (dlerror ());
12667: }
12668: /* dlclose (self); */
12669: }
12670: else
12671: puts (dlerror ());
12672:
12673: return status;
12674: }
12675: _LT_EOF
1.150 moko 12676: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12677: (eval $ac_link) 2>&5
12678: ac_status=$?
1.150 moko 12679: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12680: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12681: (./conftest; exit; ) >&5 2>/dev/null
12682: lt_status=$?
12683: case x$lt_status in
12684: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12685: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12686: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12687: esac
12688: else :
12689: # compilation failed
12690: lt_cv_dlopen_self=no
12691: fi
12692: fi
12693: rm -fr conftest*
12694:
12695:
12696: fi
1.150 moko 12697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12698: $as_echo "$lt_cv_dlopen_self" >&6; }
1.128 moko 12699:
12700: if test "x$lt_cv_dlopen_self" = xyes; then
12701: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.150 moko 12702: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12703: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12704: if ${lt_cv_dlopen_self_static+:} false; then :
12705: $as_echo_n "(cached) " >&6
1.128 moko 12706: else
12707: if test "$cross_compiling" = yes; then :
12708: lt_cv_dlopen_self_static=cross
12709: else
12710: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12711: lt_status=$lt_dlunknown
12712: cat > conftest.$ac_ext <<_LT_EOF
12713: #line $LINENO "configure"
12714: #include "confdefs.h"
12715:
12716: #if HAVE_DLFCN_H
12717: #include <dlfcn.h>
12718: #endif
12719:
12720: #include <stdio.h>
12721:
12722: #ifdef RTLD_GLOBAL
12723: # define LT_DLGLOBAL RTLD_GLOBAL
12724: #else
12725: # ifdef DL_GLOBAL
12726: # define LT_DLGLOBAL DL_GLOBAL
12727: # else
12728: # define LT_DLGLOBAL 0
12729: # endif
12730: #endif
12731:
12732: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12733: find out it does not work in some platform. */
12734: #ifndef LT_DLLAZY_OR_NOW
12735: # ifdef RTLD_LAZY
12736: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12737: # else
12738: # ifdef DL_LAZY
12739: # define LT_DLLAZY_OR_NOW DL_LAZY
12740: # else
12741: # ifdef RTLD_NOW
12742: # define LT_DLLAZY_OR_NOW RTLD_NOW
12743: # else
12744: # ifdef DL_NOW
12745: # define LT_DLLAZY_OR_NOW DL_NOW
12746: # else
12747: # define LT_DLLAZY_OR_NOW 0
12748: # endif
12749: # endif
12750: # endif
12751: # endif
12752: #endif
12753:
12754: /* When -fvisbility=hidden is used, assume the code has been annotated
12755: correspondingly for the symbols needed. */
12756: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12757: int fnord () __attribute__((visibility("default")));
12758: #endif
12759:
12760: int fnord () { return 42; }
12761: int main ()
12762: {
12763: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12764: int status = $lt_dlunknown;
12765:
12766: if (self)
12767: {
12768: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12769: else
12770: {
12771: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12772: else puts (dlerror ());
12773: }
12774: /* dlclose (self); */
12775: }
12776: else
12777: puts (dlerror ());
12778:
12779: return status;
12780: }
12781: _LT_EOF
1.150 moko 12782: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12783: (eval $ac_link) 2>&5
12784: ac_status=$?
1.150 moko 12785: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12786: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12787: (./conftest; exit; ) >&5 2>/dev/null
12788: lt_status=$?
12789: case x$lt_status in
12790: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12791: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12792: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12793: esac
12794: else :
12795: # compilation failed
12796: lt_cv_dlopen_self_static=no
12797: fi
12798: fi
12799: rm -fr conftest*
12800:
12801:
12802: fi
1.150 moko 12803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12804: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 12805: fi
12806:
12807: CPPFLAGS="$save_CPPFLAGS"
12808: LDFLAGS="$save_LDFLAGS"
12809: LIBS="$save_LIBS"
12810: ;;
12811: esac
12812:
12813: case $lt_cv_dlopen_self in
12814: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12815: *) enable_dlopen_self=unknown ;;
12816: esac
12817:
12818: case $lt_cv_dlopen_self_static in
12819: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12820: *) enable_dlopen_self_static=unknown ;;
12821: esac
12822: fi
12823:
12824:
12825:
12826:
12827:
12828:
12829:
12830:
12831:
12832:
12833:
12834:
12835:
12836:
12837:
12838:
12839:
12840: striplib=
12841: old_striplib=
1.150 moko 12842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12843: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.128 moko 12844: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12845: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12846: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.150 moko 12847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12848: $as_echo "yes" >&6; }
1.128 moko 12849: else
12850: # FIXME - insert some real tests, host_os isn't really good enough
12851: case $host_os in
12852: darwin*)
12853: if test -n "$STRIP" ; then
12854: striplib="$STRIP -x"
12855: old_striplib="$STRIP -S"
1.150 moko 12856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12857: $as_echo "yes" >&6; }
1.128 moko 12858: else
1.150 moko 12859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860: $as_echo "no" >&6; }
1.128 moko 12861: fi
12862: ;;
12863: *)
1.150 moko 12864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865: $as_echo "no" >&6; }
1.128 moko 12866: ;;
12867: esac
12868: fi
12869:
12870:
12871:
12872:
12873:
12874:
12875:
12876:
12877:
12878:
12879:
12880:
12881: # Report which library types will actually be built
1.150 moko 12882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12883: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12885: $as_echo "$can_build_shared" >&6; }
1.128 moko 12886:
1.150 moko 12887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12888: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.128 moko 12889: test "$can_build_shared" = "no" && enable_shared=no
12890:
12891: # On AIX, shared libraries and static libraries use the same namespace, and
12892: # are all built from PIC.
12893: case $host_os in
12894: aix3*)
12895: test "$enable_shared" = yes && enable_static=no
12896: if test -n "$RANLIB"; then
12897: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12898: postinstall_cmds='$RANLIB $lib'
12899: fi
12900: ;;
12901:
12902: aix[4-9]*)
12903: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12904: test "$enable_shared" = yes && enable_static=no
12905: fi
12906: ;;
12907: esac
1.150 moko 12908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12909: $as_echo "$enable_shared" >&6; }
1.128 moko 12910:
1.150 moko 12911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12912: $as_echo_n "checking whether to build static libraries... " >&6; }
1.128 moko 12913: # Make sure either enable_shared or enable_static is yes.
12914: test "$enable_shared" = yes || enable_static=yes
1.150 moko 12915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12916: $as_echo "$enable_static" >&6; }
1.128 moko 12917:
12918:
12919:
12920:
12921: fi
12922: ac_ext=c
12923: ac_cpp='$CPP $CPPFLAGS'
12924: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12927:
12928: CC="$lt_save_CC"
12929:
12930: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12931: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12932: (test "X$CXX" != "Xg++"))) ; then
1.150 moko 12933: ac_ext=cpp
1.128 moko 12934: ac_cpp='$CXXCPP $CPPFLAGS'
12935: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 12938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12939: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 12940: if test -z "$CXXCPP"; then
1.150 moko 12941: if ${ac_cv_prog_CXXCPP+:} false; then :
12942: $as_echo_n "(cached) " >&6
1.128 moko 12943: else
12944: # Double quotes because CXXCPP needs to be expanded
12945: for CXXCPP in "$CXX -E" "/lib/cpp"
12946: do
12947: ac_preproc_ok=false
12948: for ac_cxx_preproc_warn_flag in '' yes
12949: do
12950: # Use a header file that comes with gcc, so configuring glibc
12951: # with a fresh cross-compiler works.
12952: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12953: # <limits.h> exists even on freestanding compilers.
12954: # On the NeXT, cc -E runs the code through the compiler's parser,
12955: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 12956: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12957: /* end confdefs.h. */
12958: #ifdef __STDC__
12959: # include <limits.h>
12960: #else
12961: # include <assert.h>
12962: #endif
12963: Syntax error
12964: _ACEOF
1.150 moko 12965: if ac_fn_cxx_try_cpp "$LINENO"; then :
12966:
1.128 moko 12967: else
12968: # Broken: fails on valid input.
12969: continue
12970: fi
1.150 moko 12971: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 12972:
1.150 moko 12973: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 12974: # can be detected and how.
1.150 moko 12975: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12976: /* end confdefs.h. */
12977: #include <ac_nonexistent.h>
12978: _ACEOF
1.150 moko 12979: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 12980: # Broken: success on invalid input.
12981: continue
12982: else
12983: # Passes both tests.
12984: ac_preproc_ok=:
12985: break
12986: fi
1.150 moko 12987: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 12988:
12989: done
12990: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 12991: rm -f conftest.i conftest.err conftest.$ac_ext
12992: if $ac_preproc_ok; then :
1.128 moko 12993: break
12994: fi
12995:
12996: done
12997: ac_cv_prog_CXXCPP=$CXXCPP
12998:
12999: fi
13000: CXXCPP=$ac_cv_prog_CXXCPP
13001: else
13002: ac_cv_prog_CXXCPP=$CXXCPP
13003: fi
1.150 moko 13004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13005: $as_echo "$CXXCPP" >&6; }
1.128 moko 13006: ac_preproc_ok=false
13007: for ac_cxx_preproc_warn_flag in '' yes
13008: do
13009: # Use a header file that comes with gcc, so configuring glibc
13010: # with a fresh cross-compiler works.
13011: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13012: # <limits.h> exists even on freestanding compilers.
13013: # On the NeXT, cc -E runs the code through the compiler's parser,
13014: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13015: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13016: /* end confdefs.h. */
13017: #ifdef __STDC__
13018: # include <limits.h>
13019: #else
13020: # include <assert.h>
13021: #endif
13022: Syntax error
13023: _ACEOF
1.150 moko 13024: if ac_fn_cxx_try_cpp "$LINENO"; then :
13025:
1.128 moko 13026: else
13027: # Broken: fails on valid input.
13028: continue
13029: fi
1.150 moko 13030: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13031:
1.150 moko 13032: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13033: # can be detected and how.
1.150 moko 13034: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13035: /* end confdefs.h. */
13036: #include <ac_nonexistent.h>
13037: _ACEOF
1.150 moko 13038: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13039: # Broken: success on invalid input.
13040: continue
13041: else
13042: # Passes both tests.
13043: ac_preproc_ok=:
13044: break
13045: fi
1.150 moko 13046: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13047:
13048: done
13049: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13050: rm -f conftest.i conftest.err conftest.$ac_ext
13051: if $ac_preproc_ok; then :
13052:
1.128 moko 13053: else
1.150 moko 13054: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13055: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13056: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13057: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 13058: fi
13059:
13060: ac_ext=c
13061: ac_cpp='$CPP $CPPFLAGS'
13062: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13063: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13064: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13065:
13066: else
13067: _lt_caught_CXX_error=yes
13068: fi
13069:
1.150 moko 13070: ac_ext=cpp
1.128 moko 13071: ac_cpp='$CXXCPP $CPPFLAGS'
13072: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13073: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13074: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13075:
13076: archive_cmds_need_lc_CXX=no
13077: allow_undefined_flag_CXX=
13078: always_export_symbols_CXX=no
13079: archive_expsym_cmds_CXX=
13080: compiler_needs_object_CXX=no
13081: export_dynamic_flag_spec_CXX=
13082: hardcode_direct_CXX=no
13083: hardcode_direct_absolute_CXX=no
13084: hardcode_libdir_flag_spec_CXX=
13085: hardcode_libdir_separator_CXX=
13086: hardcode_minus_L_CXX=no
13087: hardcode_shlibpath_var_CXX=unsupported
13088: hardcode_automatic_CXX=no
13089: inherit_rpath_CXX=no
13090: module_cmds_CXX=
13091: module_expsym_cmds_CXX=
13092: link_all_deplibs_CXX=unknown
13093: old_archive_cmds_CXX=$old_archive_cmds
13094: reload_flag_CXX=$reload_flag
13095: reload_cmds_CXX=$reload_cmds
13096: no_undefined_flag_CXX=
13097: whole_archive_flag_spec_CXX=
13098: enable_shared_with_static_runtimes_CXX=no
13099:
13100: # Source file extension for C++ test sources.
13101: ac_ext=cpp
13102:
13103: # Object file extension for compiled C++ test sources.
13104: objext=o
13105: objext_CXX=$objext
13106:
13107: # No sense in running all these tests if we already determined that
13108: # the CXX compiler isn't working. Some variables (like enable_shared)
13109: # are currently assumed to apply to all compilers on this platform,
13110: # and will be corrupted by setting them based on a non-working compiler.
13111: if test "$_lt_caught_CXX_error" != yes; then
13112: # Code to be used in simple compile tests
13113: lt_simple_compile_test_code="int some_variable = 0;"
13114:
13115: # Code to be used in simple link tests
13116: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13117:
13118: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13119:
13120:
13121:
13122:
13123:
13124:
13125: # If no C compiler was specified, use CC.
13126: LTCC=${LTCC-"$CC"}
13127:
13128: # If no C compiler flags were specified, use CFLAGS.
13129: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13130:
13131: # Allow CC to be a program name with arguments.
13132: compiler=$CC
13133:
13134:
13135: # save warnings/boilerplate of simple test code
13136: ac_outfile=conftest.$ac_objext
13137: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13138: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13139: _lt_compiler_boilerplate=`cat conftest.err`
13140: $RM conftest*
13141:
13142: ac_outfile=conftest.$ac_objext
13143: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13144: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13145: _lt_linker_boilerplate=`cat conftest.err`
13146: $RM -r conftest*
13147:
13148:
13149: # Allow CC to be a program name with arguments.
13150: lt_save_CC=$CC
13151: lt_save_CFLAGS=$CFLAGS
13152: lt_save_LD=$LD
13153: lt_save_GCC=$GCC
13154: GCC=$GXX
13155: lt_save_with_gnu_ld=$with_gnu_ld
13156: lt_save_path_LD=$lt_cv_path_LD
13157: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13158: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13159: else
13160: $as_unset lt_cv_prog_gnu_ld
13161: fi
13162: if test -n "${lt_cv_path_LDCXX+set}"; then
13163: lt_cv_path_LD=$lt_cv_path_LDCXX
13164: else
13165: $as_unset lt_cv_path_LD
13166: fi
13167: test -z "${LDCXX+set}" || LD=$LDCXX
13168: CC=${CXX-"c++"}
13169: CFLAGS=$CXXFLAGS
13170: compiler=$CC
13171: compiler_CXX=$CC
13172: for cc_temp in $compiler""; do
13173: case $cc_temp in
13174: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13175: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13176: \-*) ;;
13177: *) break;;
13178: esac
13179: done
13180: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13181:
13182:
13183: if test -n "$compiler"; then
13184: # We don't want -fno-exception when compiling C++ code, so set the
13185: # no_builtin_flag separately
13186: if test "$GXX" = yes; then
13187: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13188: else
13189: lt_prog_compiler_no_builtin_flag_CXX=
13190: fi
13191:
13192: if test "$GXX" = yes; then
13193: # Set up default GNU C++ configuration
13194:
13195:
13196:
1.150 moko 13197: # Check whether --with-gnu-ld was given.
13198: if test "${with_gnu_ld+set}" = set; then :
13199: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 13200: else
13201: with_gnu_ld=no
1.150 moko 13202: fi
13203:
1.128 moko 13204: ac_prog=ld
13205: if test "$GCC" = yes; then
13206: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 13207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13208: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 13209: case $host in
13210: *-*-mingw*)
13211: # gcc leaves a trailing carriage return which upsets mingw
13212: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13213: *)
13214: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13215: esac
13216: case $ac_prog in
13217: # Accept absolute paths.
13218: [\\/]* | ?:[\\/]*)
13219: re_direlt='/[^/][^/]*/\.\./'
13220: # Canonicalize the pathname of ld
13221: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13222: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13223: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13224: done
13225: test -z "$LD" && LD="$ac_prog"
13226: ;;
13227: "")
13228: # If it fails, then pretend we aren't using GCC.
13229: ac_prog=ld
13230: ;;
13231: *)
13232: # If it is relative, then search for the first ld in PATH.
13233: with_gnu_ld=unknown
13234: ;;
13235: esac
13236: elif test "$with_gnu_ld" = yes; then
1.150 moko 13237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13238: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 13239: else
1.150 moko 13240: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13241: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 13242: fi
1.150 moko 13243: if ${lt_cv_path_LD+:} false; then :
13244: $as_echo_n "(cached) " >&6
1.128 moko 13245: else
13246: if test -z "$LD"; then
13247: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13248: for ac_dir in $PATH; do
13249: IFS="$lt_save_ifs"
13250: test -z "$ac_dir" && ac_dir=.
13251: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13252: lt_cv_path_LD="$ac_dir/$ac_prog"
13253: # Check to see if the program is GNU ld. I'd rather use --version,
13254: # but apparently some variants of GNU ld only accept -v.
13255: # Break only if it was the GNU/non-GNU ld that we prefer.
13256: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13257: *GNU* | *'with BFD'*)
13258: test "$with_gnu_ld" != no && break
13259: ;;
13260: *)
13261: test "$with_gnu_ld" != yes && break
13262: ;;
13263: esac
13264: fi
13265: done
13266: IFS="$lt_save_ifs"
13267: else
13268: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13269: fi
13270: fi
13271:
13272: LD="$lt_cv_path_LD"
13273: if test -n "$LD"; then
1.150 moko 13274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13275: $as_echo "$LD" >&6; }
1.128 moko 13276: else
1.150 moko 13277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278: $as_echo "no" >&6; }
1.128 moko 13279: fi
1.150 moko 13280: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13281: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13282: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13283: if ${lt_cv_prog_gnu_ld+:} false; then :
13284: $as_echo_n "(cached) " >&6
1.128 moko 13285: else
13286: # I'd rather use --version here, but apparently some GNU lds only accept -v.
13287: case `$LD -v 2>&1 </dev/null` in
13288: *GNU* | *'with BFD'*)
13289: lt_cv_prog_gnu_ld=yes
13290: ;;
13291: *)
13292: lt_cv_prog_gnu_ld=no
13293: ;;
13294: esac
13295: fi
1.150 moko 13296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13297: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 13298: with_gnu_ld=$lt_cv_prog_gnu_ld
13299:
13300:
13301:
13302:
13303:
13304:
13305:
13306: # Check if GNU C++ uses GNU ld as the underlying linker, since the
13307: # archiving commands below assume that GNU ld is being used.
13308: if test "$with_gnu_ld" = yes; then
13309: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13310: 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'
13311:
13312: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13313: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13314:
13315: # If archive_cmds runs LD, not CC, wlarc should be empty
13316: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13317: # investigate it a little bit more. (MM)
13318: wlarc='${wl}'
13319:
13320: # ancient GNU ld didn't support --whole-archive et. al.
13321: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13322: $GREP 'no-whole-archive' > /dev/null; then
13323: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13324: else
13325: whole_archive_flag_spec_CXX=
13326: fi
13327: else
13328: with_gnu_ld=no
13329: wlarc=
13330:
13331: # A generic and very simple default shared library creation
13332: # command for GNU C++ for the case where it uses the native
13333: # linker, instead of GNU ld. If possible, this setting should
13334: # overridden to take advantage of the native linker features on
13335: # the platform it is being used on.
13336: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13337: fi
13338:
13339: # Commands to make compiler produce verbose output that lists
13340: # what "hidden" libraries, object files and flags are used when
13341: # linking a shared library.
13342: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13343:
13344: else
13345: GXX=no
13346: with_gnu_ld=no
13347: wlarc=
13348: fi
13349:
13350: # PORTME: fill in a description of your system's C++ link characteristics
1.150 moko 13351: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13352: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 13353: ld_shlibs_CXX=yes
13354: case $host_os in
13355: aix3*)
13356: # FIXME: insert proper C++ library support
13357: ld_shlibs_CXX=no
13358: ;;
13359: aix[4-9]*)
13360: if test "$host_cpu" = ia64; then
13361: # On IA64, the linker does run time linking by default, so we don't
13362: # have to do anything special.
13363: aix_use_runtimelinking=no
13364: exp_sym_flag='-Bexport'
13365: no_entry_flag=""
13366: else
13367: aix_use_runtimelinking=no
13368:
13369: # Test if we are trying to use run time linking or normal
13370: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13371: # need to do runtime linking.
13372: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13373: for ld_flag in $LDFLAGS; do
13374: case $ld_flag in
13375: *-brtl*)
13376: aix_use_runtimelinking=yes
13377: break
13378: ;;
13379: esac
13380: done
13381: ;;
13382: esac
13383:
13384: exp_sym_flag='-bexport'
13385: no_entry_flag='-bnoentry'
13386: fi
13387:
13388: # When large executables or shared objects are built, AIX ld can
13389: # have problems creating the table of contents. If linking a library
13390: # or program results in "error TOC overflow" add -mminimal-toc to
13391: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13392: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13393:
13394: archive_cmds_CXX=''
13395: hardcode_direct_CXX=yes
13396: hardcode_direct_absolute_CXX=yes
13397: hardcode_libdir_separator_CXX=':'
13398: link_all_deplibs_CXX=yes
13399: file_list_spec_CXX='${wl}-f,'
13400:
13401: if test "$GXX" = yes; then
13402: case $host_os in aix4.[012]|aix4.[012].*)
13403: # We only want to do this on AIX 4.2 and lower, the check
13404: # below for broken collect2 doesn't work under 4.3+
13405: collect2name=`${CC} -print-prog-name=collect2`
13406: if test -f "$collect2name" &&
13407: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13408: then
13409: # We have reworked collect2
13410: :
13411: else
13412: # We have old collect2
13413: hardcode_direct_CXX=unsupported
13414: # It fails to find uninstalled libraries when the uninstalled
13415: # path is not listed in the libpath. Setting hardcode_minus_L
13416: # to unsupported forces relinking
13417: hardcode_minus_L_CXX=yes
13418: hardcode_libdir_flag_spec_CXX='-L$libdir'
13419: hardcode_libdir_separator_CXX=
13420: fi
13421: esac
13422: shared_flag='-shared'
13423: if test "$aix_use_runtimelinking" = yes; then
13424: shared_flag="$shared_flag "'${wl}-G'
13425: fi
13426: else
13427: # not using gcc
13428: if test "$host_cpu" = ia64; then
13429: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13430: # chokes on -Wl,-G. The following line is correct:
13431: shared_flag='-G'
13432: else
13433: if test "$aix_use_runtimelinking" = yes; then
13434: shared_flag='${wl}-G'
13435: else
13436: shared_flag='${wl}-bM:SRE'
13437: fi
13438: fi
13439: fi
13440:
13441: export_dynamic_flag_spec_CXX='${wl}-bexpall'
13442: # It seems that -bexpall does not export symbols beginning with
13443: # underscore (_), so it is better to generate a list of symbols to
13444: # export.
13445: always_export_symbols_CXX=yes
13446: if test "$aix_use_runtimelinking" = yes; then
13447: # Warning - without using the other runtime loading flags (-brtl),
13448: # -berok will link without error, but may produce a broken library.
13449: allow_undefined_flag_CXX='-berok'
13450: # Determine the default libpath from the value encoded in an empty
13451: # executable.
13452: if test "${lt_cv_aix_libpath+set}" = set; then
13453: aix_libpath=$lt_cv_aix_libpath
13454: else
1.150 moko 13455: if ${lt_cv_aix_libpath__CXX+:} false; then :
13456: $as_echo_n "(cached) " >&6
1.128 moko 13457: else
1.150 moko 13458: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13459: /* end confdefs.h. */
13460:
13461: int
13462: main ()
13463: {
13464:
13465: ;
13466: return 0;
13467: }
13468: _ACEOF
1.150 moko 13469: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13470:
13471: lt_aix_libpath_sed='
13472: /Import File Strings/,/^$/ {
13473: /^0/ {
13474: s/^0 *\([^ ]*\) *$/\1/
13475: p
13476: }
13477: }'
13478: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13479: # Check for a 64-bit object if we didn't find anything.
13480: if test -z "$lt_cv_aix_libpath__CXX"; then
13481: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13482: fi
13483: fi
1.150 moko 13484: rm -f core conftest.err conftest.$ac_objext \
13485: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13486: if test -z "$lt_cv_aix_libpath__CXX"; then
13487: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13488: fi
13489:
13490: fi
13491:
13492: aix_libpath=$lt_cv_aix_libpath__CXX
13493: fi
13494:
13495: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13496:
13497: 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"
13498: else
13499: if test "$host_cpu" = ia64; then
13500: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13501: allow_undefined_flag_CXX="-z nodefs"
13502: 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"
13503: else
13504: # Determine the default libpath from the value encoded in an
13505: # empty executable.
13506: if test "${lt_cv_aix_libpath+set}" = set; then
13507: aix_libpath=$lt_cv_aix_libpath
13508: else
1.150 moko 13509: if ${lt_cv_aix_libpath__CXX+:} false; then :
13510: $as_echo_n "(cached) " >&6
1.128 moko 13511: else
1.150 moko 13512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13513: /* end confdefs.h. */
13514:
13515: int
13516: main ()
13517: {
13518:
13519: ;
13520: return 0;
13521: }
13522: _ACEOF
1.150 moko 13523: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13524:
13525: lt_aix_libpath_sed='
13526: /Import File Strings/,/^$/ {
13527: /^0/ {
13528: s/^0 *\([^ ]*\) *$/\1/
13529: p
13530: }
13531: }'
13532: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13533: # Check for a 64-bit object if we didn't find anything.
13534: if test -z "$lt_cv_aix_libpath__CXX"; then
13535: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13536: fi
13537: fi
1.150 moko 13538: rm -f core conftest.err conftest.$ac_objext \
13539: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13540: if test -z "$lt_cv_aix_libpath__CXX"; then
13541: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13542: fi
13543:
13544: fi
13545:
13546: aix_libpath=$lt_cv_aix_libpath__CXX
13547: fi
13548:
13549: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13550: # Warning - without using the other run time loading flags,
13551: # -berok will link without error, but may produce a broken library.
13552: no_undefined_flag_CXX=' ${wl}-bernotok'
13553: allow_undefined_flag_CXX=' ${wl}-berok'
13554: if test "$with_gnu_ld" = yes; then
13555: # We only use this code for GNU lds that support --whole-archive.
13556: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13557: else
13558: # Exported symbols can be pulled into shared objects from archives
13559: whole_archive_flag_spec_CXX='$convenience'
13560: fi
13561: archive_cmds_need_lc_CXX=yes
13562: # This is similar to how AIX traditionally builds its shared
13563: # libraries.
13564: 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'
13565: fi
13566: fi
13567: ;;
13568:
13569: beos*)
13570: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13571: allow_undefined_flag_CXX=unsupported
13572: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13573: # support --undefined. This deserves some investigation. FIXME
13574: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575: else
13576: ld_shlibs_CXX=no
13577: fi
13578: ;;
13579:
13580: chorus*)
13581: case $cc_basename in
13582: *)
13583: # FIXME: insert proper C++ library support
13584: ld_shlibs_CXX=no
13585: ;;
13586: esac
13587: ;;
13588:
13589: cygwin* | mingw* | pw32* | cegcc*)
13590: case $GXX,$cc_basename in
13591: ,cl* | no,cl*)
13592: # Native MSVC
13593: # hardcode_libdir_flag_spec is actually meaningless, as there is
13594: # no search path for DLLs.
13595: hardcode_libdir_flag_spec_CXX=' '
13596: allow_undefined_flag_CXX=unsupported
13597: always_export_symbols_CXX=yes
13598: file_list_spec_CXX='@'
13599: # Tell ltmain to make .lib files, not .a files.
13600: libext=lib
13601: # Tell ltmain to make .dll files, not .so files.
13602: shrext_cmds=".dll"
13603: # FIXME: Setting linknames here is a bad hack.
13604: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13605: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13606: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13607: else
13608: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13609: fi~
13610: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13611: linknames='
13612: # The linker will not automatically build a static lib if we build a DLL.
13613: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13614: enable_shared_with_static_runtimes_CXX=yes
13615: # Don't use ranlib
13616: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13617: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13618: lt_tool_outputfile="@TOOL_OUTPUT@"~
13619: case $lt_outputfile in
13620: *.exe|*.EXE) ;;
13621: *)
13622: lt_outputfile="$lt_outputfile.exe"
13623: lt_tool_outputfile="$lt_tool_outputfile.exe"
13624: ;;
13625: esac~
13626: func_to_tool_file "$lt_outputfile"~
13627: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13628: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13629: $RM "$lt_outputfile.manifest";
13630: fi'
13631: ;;
13632: *)
13633: # g++
13634: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13635: # as there is no search path for DLLs.
13636: hardcode_libdir_flag_spec_CXX='-L$libdir'
13637: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13638: allow_undefined_flag_CXX=unsupported
13639: always_export_symbols_CXX=no
13640: enable_shared_with_static_runtimes_CXX=yes
13641:
13642: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13643: 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'
13644: # If the export-symbols file already is a .def file (1st line
13645: # is EXPORTS), use it as is; otherwise, prepend...
13646: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13647: cp $export_symbols $output_objdir/$soname.def;
13648: else
13649: echo EXPORTS > $output_objdir/$soname.def;
13650: cat $export_symbols >> $output_objdir/$soname.def;
13651: fi~
13652: $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'
13653: else
13654: ld_shlibs_CXX=no
13655: fi
13656: ;;
13657: esac
13658: ;;
13659: darwin* | rhapsody*)
13660:
13661:
13662: archive_cmds_need_lc_CXX=no
13663: hardcode_direct_CXX=no
13664: hardcode_automatic_CXX=yes
13665: hardcode_shlibpath_var_CXX=unsupported
13666: if test "$lt_cv_ld_force_load" = "yes"; then
13667: 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\"`'
13668:
13669: else
13670: whole_archive_flag_spec_CXX=''
13671: fi
13672: link_all_deplibs_CXX=yes
13673: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13674: case $cc_basename in
13675: ifort*) _lt_dar_can_shared=yes ;;
13676: *) _lt_dar_can_shared=$GCC ;;
13677: esac
13678: if test "$_lt_dar_can_shared" = "yes"; then
13679: output_verbose_link_cmd=func_echo_all
13680: 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}"
13681: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13682: 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}"
13683: 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}"
13684: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13685: 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}"
13686: 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}"
13687: fi
13688:
13689: else
13690: ld_shlibs_CXX=no
13691: fi
13692:
13693: ;;
13694:
13695: dgux*)
13696: case $cc_basename in
13697: ec++*)
13698: # FIXME: insert proper C++ library support
13699: ld_shlibs_CXX=no
13700: ;;
13701: ghcx*)
13702: # Green Hills C++ Compiler
13703: # FIXME: insert proper C++ library support
13704: ld_shlibs_CXX=no
13705: ;;
13706: *)
13707: # FIXME: insert proper C++ library support
13708: ld_shlibs_CXX=no
13709: ;;
13710: esac
13711: ;;
13712:
13713: freebsd2.*)
13714: # C++ shared libraries reported to be fairly broken before
13715: # switch to ELF
13716: ld_shlibs_CXX=no
13717: ;;
13718:
13719: freebsd-elf*)
13720: archive_cmds_need_lc_CXX=no
13721: ;;
13722:
13723: freebsd* | dragonfly*)
13724: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13725: # conventions
13726: ld_shlibs_CXX=yes
13727: ;;
13728:
13729: gnu*)
13730: ;;
13731:
13732: haiku*)
13733: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13734: link_all_deplibs_CXX=yes
13735: ;;
13736:
13737: hpux9*)
13738: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13739: hardcode_libdir_separator_CXX=:
13740: export_dynamic_flag_spec_CXX='${wl}-E'
13741: hardcode_direct_CXX=yes
13742: hardcode_minus_L_CXX=yes # Not in the search PATH,
13743: # but as the default
13744: # location of the library.
13745:
13746: case $cc_basename in
13747: CC*)
13748: # FIXME: insert proper C++ library support
13749: ld_shlibs_CXX=no
13750: ;;
13751: aCC*)
13752: 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'
13753: # Commands to make compiler produce verbose output that lists
13754: # what "hidden" libraries, object files and flags are used when
13755: # linking a shared library.
13756: #
13757: # There doesn't appear to be a way to prevent this compiler from
13758: # explicitly linking system object files so we need to strip them
13759: # from the output so that they don't get included in the library
13760: # dependencies.
13761: 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"'
13762: ;;
13763: *)
13764: if test "$GXX" = yes; then
13765: 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'
13766: else
13767: # FIXME: insert proper C++ library support
13768: ld_shlibs_CXX=no
13769: fi
13770: ;;
13771: esac
13772: ;;
13773:
13774: hpux10*|hpux11*)
13775: if test $with_gnu_ld = no; then
13776: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13777: hardcode_libdir_separator_CXX=:
13778:
13779: case $host_cpu in
13780: hppa*64*|ia64*)
13781: ;;
13782: *)
13783: export_dynamic_flag_spec_CXX='${wl}-E'
13784: ;;
13785: esac
13786: fi
13787: case $host_cpu in
13788: hppa*64*|ia64*)
13789: hardcode_direct_CXX=no
13790: hardcode_shlibpath_var_CXX=no
13791: ;;
13792: *)
13793: hardcode_direct_CXX=yes
13794: hardcode_direct_absolute_CXX=yes
13795: hardcode_minus_L_CXX=yes # Not in the search PATH,
13796: # but as the default
13797: # location of the library.
13798: ;;
13799: esac
13800:
13801: case $cc_basename in
13802: CC*)
13803: # FIXME: insert proper C++ library support
13804: ld_shlibs_CXX=no
13805: ;;
13806: aCC*)
13807: case $host_cpu in
13808: hppa*64*)
13809: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13810: ;;
13811: ia64*)
13812: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13813: ;;
13814: *)
13815: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13816: ;;
13817: esac
13818: # Commands to make compiler produce verbose output that lists
13819: # what "hidden" libraries, object files and flags are used when
13820: # linking a shared library.
13821: #
13822: # There doesn't appear to be a way to prevent this compiler from
13823: # explicitly linking system object files so we need to strip them
13824: # from the output so that they don't get included in the library
13825: # dependencies.
13826: 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"'
13827: ;;
13828: *)
13829: if test "$GXX" = yes; then
13830: if test $with_gnu_ld = no; then
13831: case $host_cpu in
13832: hppa*64*)
13833: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13834: ;;
13835: ia64*)
13836: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13837: ;;
13838: *)
13839: 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'
13840: ;;
13841: esac
13842: fi
13843: else
13844: # FIXME: insert proper C++ library support
13845: ld_shlibs_CXX=no
13846: fi
13847: ;;
13848: esac
13849: ;;
13850:
13851: interix[3-9]*)
13852: hardcode_direct_CXX=no
13853: hardcode_shlibpath_var_CXX=no
13854: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13855: export_dynamic_flag_spec_CXX='${wl}-E'
13856: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13857: # Instead, shared libraries are loaded at an image base (0x10000000 by
13858: # default) and relocated if they conflict, which is a slow very memory
13859: # consuming and fragmenting process. To avoid this, we pick a random,
13860: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13861: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13862: 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'
13863: 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'
13864: ;;
13865: irix5* | irix6*)
13866: case $cc_basename in
13867: CC*)
13868: # SGI C++
13869: 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'
13870:
13871: # Archives containing C++ object files must be created using
13872: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13873: # necessary to make sure instantiated templates are included
13874: # in the archive.
13875: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13876: ;;
13877: *)
13878: if test "$GXX" = yes; then
13879: if test "$with_gnu_ld" = no; then
13880: 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'
13881: else
13882: 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'
13883: fi
13884: fi
13885: link_all_deplibs_CXX=yes
13886: ;;
13887: esac
13888: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13889: hardcode_libdir_separator_CXX=:
13890: inherit_rpath_CXX=yes
13891: ;;
13892:
13893: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13894: case $cc_basename in
13895: KCC*)
13896: # Kuck and Associates, Inc. (KAI) C++ Compiler
13897:
13898: # KCC will only create a shared library if the output file
13899: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13900: # to its proper name (with version) after linking.
13901: 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'
13902: 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'
13903: # Commands to make compiler produce verbose output that lists
13904: # what "hidden" libraries, object files and flags are used when
13905: # linking a shared library.
13906: #
13907: # There doesn't appear to be a way to prevent this compiler from
13908: # explicitly linking system object files so we need to strip them
13909: # from the output so that they don't get included in the library
13910: # dependencies.
13911: 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"'
13912:
13913: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13914: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13915:
13916: # Archives containing C++ object files must be created using
13917: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13918: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13919: ;;
13920: icpc* | ecpc* )
13921: # Intel C++
13922: with_gnu_ld=yes
13923: # version 8.0 and above of icpc choke on multiply defined symbols
13924: # if we add $predep_objects and $postdep_objects, however 7.1 and
13925: # earlier do not add the objects themselves.
13926: case `$CC -V 2>&1` in
13927: *"Version 7."*)
13928: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13929: 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'
13930: ;;
13931: *) # Version 8.0 or newer
13932: tmp_idyn=
13933: case $host_cpu in
13934: ia64*) tmp_idyn=' -i_dynamic';;
13935: esac
13936: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13937: 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'
13938: ;;
13939: esac
13940: archive_cmds_need_lc_CXX=no
13941: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13942: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13943: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13944: ;;
13945: pgCC* | pgcpp*)
13946: # Portland Group C++ compiler
13947: case `$CC -V` in
13948: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13949: prelink_cmds_CXX='tpldir=Template.dir~
13950: rm -rf $tpldir~
13951: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13952: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13953: old_archive_cmds_CXX='tpldir=Template.dir~
13954: rm -rf $tpldir~
13955: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13956: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13957: $RANLIB $oldlib'
13958: archive_cmds_CXX='tpldir=Template.dir~
13959: rm -rf $tpldir~
13960: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13961: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13962: archive_expsym_cmds_CXX='tpldir=Template.dir~
13963: rm -rf $tpldir~
13964: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13965: $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'
13966: ;;
13967: *) # Version 6 and above use weak symbols
13968: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13969: 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'
13970: ;;
13971: esac
13972:
13973: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13974: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13975: 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'
13976: ;;
13977: cxx*)
13978: # Compaq C++
13979: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13980: 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'
13981:
13982: runpath_var=LD_RUN_PATH
13983: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13984: hardcode_libdir_separator_CXX=:
13985:
13986: # Commands to make compiler produce verbose output that lists
13987: # what "hidden" libraries, object files and flags are used when
13988: # linking a shared library.
13989: #
13990: # There doesn't appear to be a way to prevent this compiler from
13991: # explicitly linking system object files so we need to strip them
13992: # from the output so that they don't get included in the library
13993: # dependencies.
13994: 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'
13995: ;;
13996: xl* | mpixl* | bgxl*)
13997: # IBM XL 8.0 on PPC, with GNU ld
13998: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13999: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14000: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14001: if test "x$supports_anon_versioning" = xyes; then
14002: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14003: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14004: echo "local: *; };" >> $output_objdir/$libname.ver~
14005: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14006: fi
14007: ;;
14008: *)
14009: case `$CC -V 2>&1 | sed 5q` in
14010: *Sun\ C*)
14011: # Sun C++ 5.9
14012: no_undefined_flag_CXX=' -zdefs'
14013: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14014: 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'
14015: hardcode_libdir_flag_spec_CXX='-R$libdir'
14016: 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'
14017: compiler_needs_object_CXX=yes
14018:
14019: # Not sure whether something based on
14020: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14021: # would be better.
14022: output_verbose_link_cmd='func_echo_all'
14023:
14024: # Archives containing C++ object files must be created using
14025: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14026: # necessary to make sure instantiated templates are included
14027: # in the archive.
14028: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14029: ;;
14030: esac
14031: ;;
14032: esac
14033: ;;
14034:
14035: lynxos*)
14036: # FIXME: insert proper C++ library support
14037: ld_shlibs_CXX=no
14038: ;;
14039:
14040: m88k*)
14041: # FIXME: insert proper C++ library support
14042: ld_shlibs_CXX=no
14043: ;;
14044:
14045: mvs*)
14046: case $cc_basename in
14047: cxx*)
14048: # FIXME: insert proper C++ library support
14049: ld_shlibs_CXX=no
14050: ;;
14051: *)
14052: # FIXME: insert proper C++ library support
14053: ld_shlibs_CXX=no
14054: ;;
14055: esac
14056: ;;
14057:
14058: netbsd*)
14059: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14060: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14061: wlarc=
14062: hardcode_libdir_flag_spec_CXX='-R$libdir'
14063: hardcode_direct_CXX=yes
14064: hardcode_shlibpath_var_CXX=no
14065: fi
14066: # Workaround some broken pre-1.5 toolchains
14067: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14068: ;;
14069:
14070: *nto* | *qnx*)
14071: ld_shlibs_CXX=yes
14072: ;;
14073:
14074: openbsd2*)
14075: # C++ shared libraries are fairly broken
14076: ld_shlibs_CXX=no
14077: ;;
14078:
14079: openbsd*)
14080: if test -f /usr/libexec/ld.so; then
14081: hardcode_direct_CXX=yes
14082: hardcode_shlibpath_var_CXX=no
14083: hardcode_direct_absolute_CXX=yes
14084: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14085: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14086: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14087: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14088: export_dynamic_flag_spec_CXX='${wl}-E'
14089: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14090: fi
14091: output_verbose_link_cmd=func_echo_all
14092: else
14093: ld_shlibs_CXX=no
14094: fi
14095: ;;
14096:
14097: osf3* | osf4* | osf5*)
14098: case $cc_basename in
14099: KCC*)
14100: # Kuck and Associates, Inc. (KAI) C++ Compiler
14101:
14102: # KCC will only create a shared library if the output file
14103: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14104: # to its proper name (with version) after linking.
14105: 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'
14106:
14107: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14108: hardcode_libdir_separator_CXX=:
14109:
14110: # Archives containing C++ object files must be created using
14111: # the KAI C++ compiler.
14112: case $host in
14113: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14114: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14115: esac
14116: ;;
14117: RCC*)
14118: # Rational C++ 2.4.1
14119: # FIXME: insert proper C++ library support
14120: ld_shlibs_CXX=no
14121: ;;
14122: cxx*)
14123: case $host in
14124: osf3*)
14125: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14126: 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'
14127: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14128: ;;
14129: *)
14130: allow_undefined_flag_CXX=' -expect_unresolved \*'
14131: 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'
14132: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14133: echo "-hidden">> $lib.exp~
14134: $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~
14135: $RM $lib.exp'
14136: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14137: ;;
14138: esac
14139:
14140: hardcode_libdir_separator_CXX=:
14141:
14142: # Commands to make compiler produce verbose output that lists
14143: # what "hidden" libraries, object files and flags are used when
14144: # linking a shared library.
14145: #
14146: # There doesn't appear to be a way to prevent this compiler from
14147: # explicitly linking system object files so we need to strip them
14148: # from the output so that they don't get included in the library
14149: # dependencies.
14150: 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"'
14151: ;;
14152: *)
14153: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14154: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14155: case $host in
14156: osf3*)
14157: 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'
14158: ;;
14159: *)
14160: 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'
14161: ;;
14162: esac
14163:
14164: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14165: hardcode_libdir_separator_CXX=:
14166:
14167: # Commands to make compiler produce verbose output that lists
14168: # what "hidden" libraries, object files and flags are used when
14169: # linking a shared library.
14170: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14171:
14172: else
14173: # FIXME: insert proper C++ library support
14174: ld_shlibs_CXX=no
14175: fi
14176: ;;
14177: esac
14178: ;;
14179:
14180: psos*)
14181: # FIXME: insert proper C++ library support
14182: ld_shlibs_CXX=no
14183: ;;
14184:
14185: sunos4*)
14186: case $cc_basename in
14187: CC*)
14188: # Sun C++ 4.x
14189: # FIXME: insert proper C++ library support
14190: ld_shlibs_CXX=no
14191: ;;
14192: lcc*)
14193: # Lucid
14194: # FIXME: insert proper C++ library support
14195: ld_shlibs_CXX=no
14196: ;;
14197: *)
14198: # FIXME: insert proper C++ library support
14199: ld_shlibs_CXX=no
14200: ;;
14201: esac
14202: ;;
14203:
14204: solaris*)
14205: case $cc_basename in
14206: CC* | sunCC*)
14207: # Sun C++ 4.2, 5.x and Centerline C++
14208: archive_cmds_need_lc_CXX=yes
14209: no_undefined_flag_CXX=' -zdefs'
14210: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14211: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14212: $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'
14213:
14214: hardcode_libdir_flag_spec_CXX='-R$libdir'
14215: hardcode_shlibpath_var_CXX=no
14216: case $host_os in
14217: solaris2.[0-5] | solaris2.[0-5].*) ;;
14218: *)
14219: # The compiler driver will combine and reorder linker options,
14220: # but understands `-z linker_flag'.
14221: # Supported since Solaris 2.6 (maybe 2.5.1?)
14222: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14223: ;;
14224: esac
14225: link_all_deplibs_CXX=yes
14226:
14227: output_verbose_link_cmd='func_echo_all'
14228:
14229: # Archives containing C++ object files must be created using
14230: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14231: # necessary to make sure instantiated templates are included
14232: # in the archive.
14233: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14234: ;;
14235: gcx*)
14236: # Green Hills C++ Compiler
14237: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14238:
14239: # The C++ compiler must be used to create the archive.
14240: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14241: ;;
14242: *)
14243: # GNU C++ compiler with Solaris linker
14244: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14245: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14246: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14247: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14248: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14249: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14250:
14251: # Commands to make compiler produce verbose output that lists
14252: # what "hidden" libraries, object files and flags are used when
14253: # linking a shared library.
14254: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14255: else
14256: # g++ 2.7 appears to require `-G' NOT `-shared' on this
14257: # platform.
14258: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14259: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14260: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14261:
14262: # Commands to make compiler produce verbose output that lists
14263: # what "hidden" libraries, object files and flags are used when
14264: # linking a shared library.
14265: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14266: fi
14267:
14268: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14269: case $host_os in
14270: solaris2.[0-5] | solaris2.[0-5].*) ;;
14271: *)
14272: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14273: ;;
14274: esac
14275: fi
14276: ;;
14277: esac
14278: ;;
14279:
14280: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14281: no_undefined_flag_CXX='${wl}-z,text'
14282: archive_cmds_need_lc_CXX=no
14283: hardcode_shlibpath_var_CXX=no
14284: runpath_var='LD_RUN_PATH'
14285:
14286: case $cc_basename in
14287: CC*)
14288: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14289: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14290: ;;
14291: *)
14292: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14293: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14294: ;;
14295: esac
14296: ;;
14297:
14298: sysv5* | sco3.2v5* | sco5v6*)
14299: # Note: We can NOT use -z defs as we might desire, because we do not
14300: # link with -lc, and that would cause any symbols used from libc to
14301: # always be unresolved, which means just about no library would
14302: # ever link correctly. If we're not using GNU ld we use -z text
14303: # though, which does catch some bad symbols but isn't as heavy-handed
14304: # as -z defs.
14305: no_undefined_flag_CXX='${wl}-z,text'
14306: allow_undefined_flag_CXX='${wl}-z,nodefs'
14307: archive_cmds_need_lc_CXX=no
14308: hardcode_shlibpath_var_CXX=no
14309: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14310: hardcode_libdir_separator_CXX=':'
14311: link_all_deplibs_CXX=yes
14312: export_dynamic_flag_spec_CXX='${wl}-Bexport'
14313: runpath_var='LD_RUN_PATH'
14314:
14315: case $cc_basename in
14316: CC*)
14317: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14318: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14319: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14320: '"$old_archive_cmds_CXX"
14321: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14322: '"$reload_cmds_CXX"
14323: ;;
14324: *)
14325: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14326: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14327: ;;
14328: esac
14329: ;;
14330:
14331: tandem*)
14332: case $cc_basename in
14333: NCC*)
14334: # NonStop-UX NCC 3.20
14335: # FIXME: insert proper C++ library support
14336: ld_shlibs_CXX=no
14337: ;;
14338: *)
14339: # FIXME: insert proper C++ library support
14340: ld_shlibs_CXX=no
14341: ;;
14342: esac
14343: ;;
14344:
14345: vxworks*)
14346: # FIXME: insert proper C++ library support
14347: ld_shlibs_CXX=no
14348: ;;
14349:
14350: *)
14351: # FIXME: insert proper C++ library support
14352: ld_shlibs_CXX=no
14353: ;;
14354: esac
14355:
1.150 moko 14356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14357: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 14358: test "$ld_shlibs_CXX" = no && can_build_shared=no
14359:
14360: GCC_CXX="$GXX"
14361: LD_CXX="$LD"
14362:
14363: ## CAVEAT EMPTOR:
14364: ## There is no encapsulation within the following macros, do not change
14365: ## the running order or otherwise move them around unless you know exactly
14366: ## what you are doing...
14367: # Dependencies to place before and after the object being linked:
14368: predep_objects_CXX=
14369: postdep_objects_CXX=
14370: predeps_CXX=
14371: postdeps_CXX=
14372: compiler_lib_search_path_CXX=
14373:
14374: cat > conftest.$ac_ext <<_LT_EOF
14375: class Foo
14376: {
14377: public:
14378: Foo (void) { a = 0; }
14379: private:
14380: int a;
14381: };
14382: _LT_EOF
14383:
14384:
14385: _lt_libdeps_save_CFLAGS=$CFLAGS
14386: case "$CC $CFLAGS " in #(
14387: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14388: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14389: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14390: esac
14391:
1.150 moko 14392: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 14393: (eval $ac_compile) 2>&5
14394: ac_status=$?
1.150 moko 14395: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14396: test $ac_status = 0; }; then
1.128 moko 14397: # Parse the compiler output and extract the necessary
14398: # objects, libraries and library flags.
14399:
14400: # Sentinel used to keep track of whether or not we are before
14401: # the conftest object file.
14402: pre_test_object_deps_done=no
14403:
14404: for p in `eval "$output_verbose_link_cmd"`; do
14405: case ${prev}${p} in
14406:
14407: -L* | -R* | -l*)
14408: # Some compilers place space between "-{L,R}" and the path.
14409: # Remove the space.
14410: if test $p = "-L" ||
14411: test $p = "-R"; then
14412: prev=$p
14413: continue
14414: fi
14415:
14416: # Expand the sysroot to ease extracting the directories later.
14417: if test -z "$prev"; then
14418: case $p in
14419: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14420: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14421: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14422: esac
14423: fi
14424: case $p in
14425: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14426: esac
14427: if test "$pre_test_object_deps_done" = no; then
14428: case ${prev} in
14429: -L | -R)
14430: # Internal compiler library paths should come after those
14431: # provided the user. The postdeps already come after the
14432: # user supplied libs so there is no need to process them.
14433: if test -z "$compiler_lib_search_path_CXX"; then
14434: compiler_lib_search_path_CXX="${prev}${p}"
14435: else
14436: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14437: fi
14438: ;;
14439: # The "-l" case would never come before the object being
14440: # linked, so don't bother handling this case.
14441: esac
14442: else
14443: if test -z "$postdeps_CXX"; then
14444: postdeps_CXX="${prev}${p}"
14445: else
14446: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14447: fi
14448: fi
14449: prev=
14450: ;;
14451:
14452: *.lto.$objext) ;; # Ignore GCC LTO objects
14453: *.$objext)
14454: # This assumes that the test object file only shows up
14455: # once in the compiler output.
14456: if test "$p" = "conftest.$objext"; then
14457: pre_test_object_deps_done=yes
14458: continue
14459: fi
14460:
14461: if test "$pre_test_object_deps_done" = no; then
14462: if test -z "$predep_objects_CXX"; then
14463: predep_objects_CXX="$p"
14464: else
14465: predep_objects_CXX="$predep_objects_CXX $p"
14466: fi
14467: else
14468: if test -z "$postdep_objects_CXX"; then
14469: postdep_objects_CXX="$p"
14470: else
14471: postdep_objects_CXX="$postdep_objects_CXX $p"
14472: fi
14473: fi
14474: ;;
14475:
14476: *) ;; # Ignore the rest.
14477:
14478: esac
14479: done
14480:
14481: # Clean up.
14482: rm -f a.out a.exe
14483: else
14484: echo "libtool.m4: error: problem compiling CXX test program"
14485: fi
14486:
14487: $RM -f confest.$objext
14488: CFLAGS=$_lt_libdeps_save_CFLAGS
14489:
14490: # PORTME: override above test on systems where it is broken
14491: case $host_os in
14492: interix[3-9]*)
14493: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14494: # hack all around it, let's just trust "g++" to DTRT.
14495: predep_objects_CXX=
14496: postdep_objects_CXX=
14497: postdeps_CXX=
14498: ;;
14499:
14500: linux*)
14501: case `$CC -V 2>&1 | sed 5q` in
14502: *Sun\ C*)
14503: # Sun C++ 5.9
14504:
14505: # The more standards-conforming stlport4 library is
14506: # incompatible with the Cstd library. Avoid specifying
14507: # it if it's in CXXFLAGS. Ignore libCrun as
14508: # -library=stlport4 depends on it.
14509: case " $CXX $CXXFLAGS " in
14510: *" -library=stlport4 "*)
14511: solaris_use_stlport4=yes
14512: ;;
14513: esac
14514:
14515: if test "$solaris_use_stlport4" != yes; then
14516: postdeps_CXX='-library=Cstd -library=Crun'
14517: fi
14518: ;;
14519: esac
14520: ;;
14521:
14522: solaris*)
14523: case $cc_basename in
14524: CC* | sunCC*)
14525: # The more standards-conforming stlport4 library is
14526: # incompatible with the Cstd library. Avoid specifying
14527: # it if it's in CXXFLAGS. Ignore libCrun as
14528: # -library=stlport4 depends on it.
14529: case " $CXX $CXXFLAGS " in
14530: *" -library=stlport4 "*)
14531: solaris_use_stlport4=yes
14532: ;;
14533: esac
14534:
14535: # Adding this requires a known-good setup of shared libraries for
14536: # Sun compiler versions before 5.6, else PIC objects from an old
14537: # archive will be linked into the output, leading to subtle bugs.
14538: if test "$solaris_use_stlport4" != yes; then
14539: postdeps_CXX='-library=Cstd -library=Crun'
14540: fi
14541: ;;
14542: esac
14543: ;;
14544: esac
14545:
14546:
14547: case " $postdeps_CXX " in
14548: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14549: esac
14550: compiler_lib_search_dirs_CXX=
14551: if test -n "${compiler_lib_search_path_CXX}"; then
14552: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14553: fi
14554:
14555:
14556:
14557:
14558:
14559:
14560:
14561:
14562:
14563:
14564:
14565:
14566:
14567:
14568:
14569:
14570:
14571:
14572:
14573:
14574:
14575:
14576:
14577:
14578:
14579:
14580:
14581:
14582:
14583:
14584:
14585: lt_prog_compiler_wl_CXX=
14586: lt_prog_compiler_pic_CXX=
14587: lt_prog_compiler_static_CXX=
14588:
14589:
14590: # C++ specific cases for pic, static, wl, etc.
14591: if test "$GXX" = yes; then
14592: lt_prog_compiler_wl_CXX='-Wl,'
14593: lt_prog_compiler_static_CXX='-static'
14594:
14595: case $host_os in
14596: aix*)
14597: # All AIX code is PIC.
14598: if test "$host_cpu" = ia64; then
14599: # AIX 5 now supports IA64 processor
14600: lt_prog_compiler_static_CXX='-Bstatic'
14601: fi
14602: ;;
14603:
14604: amigaos*)
14605: case $host_cpu in
14606: powerpc)
14607: # see comment about AmigaOS4 .so support
14608: lt_prog_compiler_pic_CXX='-fPIC'
14609: ;;
14610: m68k)
14611: # FIXME: we need at least 68020 code to build shared libraries, but
14612: # adding the `-m68020' flag to GCC prevents building anything better,
14613: # like `-m68040'.
14614: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14615: ;;
14616: esac
14617: ;;
14618:
14619: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14620: # PIC is the default for these OSes.
14621: ;;
14622: mingw* | cygwin* | os2* | pw32* | cegcc*)
14623: # This hack is so that the source file can tell whether it is being
14624: # built for inclusion in a dll (and should export symbols for example).
14625: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14626: # (--disable-auto-import) libraries
14627: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14628: ;;
14629: darwin* | rhapsody*)
14630: # PIC is the default on this platform
14631: # Common symbols not allowed in MH_DYLIB files
14632: lt_prog_compiler_pic_CXX='-fno-common'
14633: ;;
14634: *djgpp*)
14635: # DJGPP does not support shared libraries at all
14636: lt_prog_compiler_pic_CXX=
14637: ;;
14638: haiku*)
14639: # PIC is the default for Haiku.
14640: # The "-static" flag exists, but is broken.
14641: lt_prog_compiler_static_CXX=
14642: ;;
14643: interix[3-9]*)
14644: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14645: # Instead, we relocate shared libraries at runtime.
14646: ;;
14647: sysv4*MP*)
14648: if test -d /usr/nec; then
14649: lt_prog_compiler_pic_CXX=-Kconform_pic
14650: fi
14651: ;;
14652: hpux*)
14653: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14654: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14655: # sets the default TLS model and affects inlining.
14656: case $host_cpu in
14657: hppa*64*)
14658: ;;
14659: *)
14660: lt_prog_compiler_pic_CXX='-fPIC'
14661: ;;
14662: esac
14663: ;;
14664: *qnx* | *nto*)
14665: # QNX uses GNU C++, but need to define -shared option too, otherwise
14666: # it will coredump.
14667: lt_prog_compiler_pic_CXX='-fPIC -shared'
14668: ;;
14669: *)
14670: lt_prog_compiler_pic_CXX='-fPIC'
14671: ;;
14672: esac
14673: else
14674: case $host_os in
14675: aix[4-9]*)
14676: # All AIX code is PIC.
14677: if test "$host_cpu" = ia64; then
14678: # AIX 5 now supports IA64 processor
14679: lt_prog_compiler_static_CXX='-Bstatic'
14680: else
14681: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14682: fi
14683: ;;
14684: chorus*)
14685: case $cc_basename in
14686: cxch68*)
14687: # Green Hills C++ Compiler
14688: # _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"
14689: ;;
14690: esac
14691: ;;
14692: mingw* | cygwin* | os2* | pw32* | cegcc*)
14693: # This hack is so that the source file can tell whether it is being
14694: # built for inclusion in a dll (and should export symbols for example).
14695: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14696: ;;
14697: dgux*)
14698: case $cc_basename in
14699: ec++*)
14700: lt_prog_compiler_pic_CXX='-KPIC'
14701: ;;
14702: ghcx*)
14703: # Green Hills C++ Compiler
14704: lt_prog_compiler_pic_CXX='-pic'
14705: ;;
14706: *)
14707: ;;
14708: esac
14709: ;;
14710: freebsd* | dragonfly*)
14711: # FreeBSD uses GNU C++
14712: ;;
14713: hpux9* | hpux10* | hpux11*)
14714: case $cc_basename in
14715: CC*)
14716: lt_prog_compiler_wl_CXX='-Wl,'
14717: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14718: if test "$host_cpu" != ia64; then
14719: lt_prog_compiler_pic_CXX='+Z'
14720: fi
14721: ;;
14722: aCC*)
14723: lt_prog_compiler_wl_CXX='-Wl,'
14724: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14725: case $host_cpu in
14726: hppa*64*|ia64*)
14727: # +Z the default
14728: ;;
14729: *)
14730: lt_prog_compiler_pic_CXX='+Z'
14731: ;;
14732: esac
14733: ;;
14734: *)
14735: ;;
14736: esac
14737: ;;
14738: interix*)
14739: # This is c89, which is MS Visual C++ (no shared libs)
14740: # Anyone wants to do a port?
14741: ;;
14742: irix5* | irix6* | nonstopux*)
14743: case $cc_basename in
14744: CC*)
14745: lt_prog_compiler_wl_CXX='-Wl,'
14746: lt_prog_compiler_static_CXX='-non_shared'
14747: # CC pic flag -KPIC is the default.
14748: ;;
14749: *)
14750: ;;
14751: esac
14752: ;;
14753: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14754: case $cc_basename in
14755: KCC*)
14756: # KAI C++ Compiler
14757: lt_prog_compiler_wl_CXX='--backend -Wl,'
14758: lt_prog_compiler_pic_CXX='-fPIC'
14759: ;;
14760: ecpc* )
14761: # old Intel C++ for x86_64 which still supported -KPIC.
14762: lt_prog_compiler_wl_CXX='-Wl,'
14763: lt_prog_compiler_pic_CXX='-KPIC'
14764: lt_prog_compiler_static_CXX='-static'
14765: ;;
14766: icpc* )
14767: # Intel C++, used to be incompatible with GCC.
14768: # ICC 10 doesn't accept -KPIC any more.
14769: lt_prog_compiler_wl_CXX='-Wl,'
14770: lt_prog_compiler_pic_CXX='-fPIC'
14771: lt_prog_compiler_static_CXX='-static'
14772: ;;
14773: pgCC* | pgcpp*)
14774: # Portland Group C++ compiler
14775: lt_prog_compiler_wl_CXX='-Wl,'
14776: lt_prog_compiler_pic_CXX='-fpic'
14777: lt_prog_compiler_static_CXX='-Bstatic'
14778: ;;
14779: cxx*)
14780: # Compaq C++
14781: # Make sure the PIC flag is empty. It appears that all Alpha
14782: # Linux and Compaq Tru64 Unix objects are PIC.
14783: lt_prog_compiler_pic_CXX=
14784: lt_prog_compiler_static_CXX='-non_shared'
14785: ;;
14786: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14787: # IBM XL 8.0, 9.0 on PPC and BlueGene
14788: lt_prog_compiler_wl_CXX='-Wl,'
14789: lt_prog_compiler_pic_CXX='-qpic'
14790: lt_prog_compiler_static_CXX='-qstaticlink'
14791: ;;
14792: *)
14793: case `$CC -V 2>&1 | sed 5q` in
14794: *Sun\ C*)
14795: # Sun C++ 5.9
14796: lt_prog_compiler_pic_CXX='-KPIC'
14797: lt_prog_compiler_static_CXX='-Bstatic'
14798: lt_prog_compiler_wl_CXX='-Qoption ld '
14799: ;;
14800: esac
14801: ;;
14802: esac
14803: ;;
14804: lynxos*)
14805: ;;
14806: m88k*)
14807: ;;
14808: mvs*)
14809: case $cc_basename in
14810: cxx*)
14811: lt_prog_compiler_pic_CXX='-W c,exportall'
14812: ;;
14813: *)
14814: ;;
14815: esac
14816: ;;
14817: netbsd*)
14818: ;;
14819: *qnx* | *nto*)
14820: # QNX uses GNU C++, but need to define -shared option too, otherwise
14821: # it will coredump.
14822: lt_prog_compiler_pic_CXX='-fPIC -shared'
14823: ;;
14824: osf3* | osf4* | osf5*)
14825: case $cc_basename in
14826: KCC*)
14827: lt_prog_compiler_wl_CXX='--backend -Wl,'
14828: ;;
14829: RCC*)
14830: # Rational C++ 2.4.1
14831: lt_prog_compiler_pic_CXX='-pic'
14832: ;;
14833: cxx*)
14834: # Digital/Compaq C++
14835: lt_prog_compiler_wl_CXX='-Wl,'
14836: # Make sure the PIC flag is empty. It appears that all Alpha
14837: # Linux and Compaq Tru64 Unix objects are PIC.
14838: lt_prog_compiler_pic_CXX=
14839: lt_prog_compiler_static_CXX='-non_shared'
14840: ;;
14841: *)
14842: ;;
14843: esac
14844: ;;
14845: psos*)
14846: ;;
14847: solaris*)
14848: case $cc_basename in
14849: CC* | sunCC*)
14850: # Sun C++ 4.2, 5.x and Centerline C++
14851: lt_prog_compiler_pic_CXX='-KPIC'
14852: lt_prog_compiler_static_CXX='-Bstatic'
14853: lt_prog_compiler_wl_CXX='-Qoption ld '
14854: ;;
14855: gcx*)
14856: # Green Hills C++ Compiler
14857: lt_prog_compiler_pic_CXX='-PIC'
14858: ;;
14859: *)
14860: ;;
14861: esac
14862: ;;
14863: sunos4*)
14864: case $cc_basename in
14865: CC*)
14866: # Sun C++ 4.x
14867: lt_prog_compiler_pic_CXX='-pic'
14868: lt_prog_compiler_static_CXX='-Bstatic'
14869: ;;
14870: lcc*)
14871: # Lucid
14872: lt_prog_compiler_pic_CXX='-pic'
14873: ;;
14874: *)
14875: ;;
14876: esac
14877: ;;
14878: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14879: case $cc_basename in
14880: CC*)
14881: lt_prog_compiler_wl_CXX='-Wl,'
14882: lt_prog_compiler_pic_CXX='-KPIC'
14883: lt_prog_compiler_static_CXX='-Bstatic'
14884: ;;
14885: esac
14886: ;;
14887: tandem*)
14888: case $cc_basename in
14889: NCC*)
14890: # NonStop-UX NCC 3.20
14891: lt_prog_compiler_pic_CXX='-KPIC'
14892: ;;
14893: *)
14894: ;;
14895: esac
14896: ;;
14897: vxworks*)
14898: ;;
14899: *)
14900: lt_prog_compiler_can_build_shared_CXX=no
14901: ;;
14902: esac
14903: fi
14904:
14905: case $host_os in
14906: # For platforms which do not support PIC, -DPIC is meaningless:
14907: *djgpp*)
14908: lt_prog_compiler_pic_CXX=
14909: ;;
14910: *)
14911: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14912: ;;
14913: esac
14914:
1.150 moko 14915: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14916: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14917: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14918: $as_echo_n "(cached) " >&6
1.128 moko 14919: else
14920: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14921: fi
1.150 moko 14922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14923: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 14924: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14925:
14926: #
14927: # Check to make sure the PIC flag actually works.
14928: #
14929: if test -n "$lt_prog_compiler_pic_CXX"; then
1.150 moko 14930: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14931: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14932: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14933: $as_echo_n "(cached) " >&6
1.128 moko 14934: else
14935: lt_cv_prog_compiler_pic_works_CXX=no
14936: ac_outfile=conftest.$ac_objext
14937: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14938: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14939: # Insert the option either (1) after the last *FLAGS variable, or
14940: # (2) before a word containing "conftest.", or (3) at the end.
14941: # Note that $ac_compile itself does not contain backslashes and begins
14942: # with a dollar sign (not a hyphen), so the echo should work correctly.
14943: # The option is referenced via a variable to avoid confusing sed.
14944: lt_compile=`echo "$ac_compile" | $SED \
14945: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14946: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14947: -e 's:$: $lt_compiler_flag:'`
14948: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14949: (eval "$lt_compile" 2>conftest.err)
14950: ac_status=$?
14951: cat conftest.err >&5
14952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953: if (exit $ac_status) && test -s "$ac_outfile"; then
14954: # The compiler can only warn and ignore the option if not recognized
14955: # So say no if there are warnings other than the usual output.
14956: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14957: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14958: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14959: lt_cv_prog_compiler_pic_works_CXX=yes
14960: fi
14961: fi
14962: $RM conftest*
14963:
14964: fi
1.150 moko 14965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14966: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 14967:
14968: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14969: case $lt_prog_compiler_pic_CXX in
14970: "" | " "*) ;;
14971: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14972: esac
14973: else
14974: lt_prog_compiler_pic_CXX=
14975: lt_prog_compiler_can_build_shared_CXX=no
14976: fi
14977:
14978: fi
14979:
14980:
14981:
14982:
14983:
14984: #
14985: # Check to make sure the static flag actually works.
14986: #
14987: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.150 moko 14988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14989: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14990: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14991: $as_echo_n "(cached) " >&6
1.128 moko 14992: else
14993: lt_cv_prog_compiler_static_works_CXX=no
14994: save_LDFLAGS="$LDFLAGS"
14995: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14996: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14997: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14998: # The linker can only warn and ignore the option if not recognized
14999: # So say no if there are warnings
15000: if test -s conftest.err; then
15001: # Append any errors to the config.log.
15002: cat conftest.err 1>&5
15003: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15004: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15005: if diff conftest.exp conftest.er2 >/dev/null; then
15006: lt_cv_prog_compiler_static_works_CXX=yes
15007: fi
15008: else
15009: lt_cv_prog_compiler_static_works_CXX=yes
15010: fi
15011: fi
15012: $RM -r conftest*
15013: LDFLAGS="$save_LDFLAGS"
15014:
15015: fi
1.150 moko 15016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15017: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 15018:
15019: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15020: :
15021: else
15022: lt_prog_compiler_static_CXX=
15023: fi
15024:
15025:
15026:
15027:
1.150 moko 15028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15029: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15030: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15031: $as_echo_n "(cached) " >&6
1.128 moko 15032: else
15033: lt_cv_prog_compiler_c_o_CXX=no
15034: $RM -r conftest 2>/dev/null
15035: mkdir conftest
15036: cd conftest
15037: mkdir out
15038: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15039:
15040: lt_compiler_flag="-o out/conftest2.$ac_objext"
15041: # Insert the option either (1) after the last *FLAGS variable, or
15042: # (2) before a word containing "conftest.", or (3) at the end.
15043: # Note that $ac_compile itself does not contain backslashes and begins
15044: # with a dollar sign (not a hyphen), so the echo should work correctly.
15045: lt_compile=`echo "$ac_compile" | $SED \
15046: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15047: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15048: -e 's:$: $lt_compiler_flag:'`
15049: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15050: (eval "$lt_compile" 2>out/conftest.err)
15051: ac_status=$?
15052: cat out/conftest.err >&5
15053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15055: then
15056: # The compiler can only warn and ignore the option if not recognized
15057: # So say no if there are warnings
15058: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15059: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15060: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15061: lt_cv_prog_compiler_c_o_CXX=yes
15062: fi
15063: fi
15064: chmod u+w . 2>&5
15065: $RM conftest*
15066: # SGI C++ compiler will create directory out/ii_files/ for
15067: # template instantiation
15068: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15069: $RM out/* && rmdir out
15070: cd ..
15071: $RM -r conftest
15072: $RM conftest*
15073:
15074: fi
1.150 moko 15075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15076: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15077:
15078:
15079:
1.150 moko 15080: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15081: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15082: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15083: $as_echo_n "(cached) " >&6
1.128 moko 15084: else
15085: lt_cv_prog_compiler_c_o_CXX=no
15086: $RM -r conftest 2>/dev/null
15087: mkdir conftest
15088: cd conftest
15089: mkdir out
15090: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15091:
15092: lt_compiler_flag="-o out/conftest2.$ac_objext"
15093: # Insert the option either (1) after the last *FLAGS variable, or
15094: # (2) before a word containing "conftest.", or (3) at the end.
15095: # Note that $ac_compile itself does not contain backslashes and begins
15096: # with a dollar sign (not a hyphen), so the echo should work correctly.
15097: lt_compile=`echo "$ac_compile" | $SED \
15098: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15099: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15100: -e 's:$: $lt_compiler_flag:'`
15101: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15102: (eval "$lt_compile" 2>out/conftest.err)
15103: ac_status=$?
15104: cat out/conftest.err >&5
15105: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15107: then
15108: # The compiler can only warn and ignore the option if not recognized
15109: # So say no if there are warnings
15110: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15111: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15112: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15113: lt_cv_prog_compiler_c_o_CXX=yes
15114: fi
15115: fi
15116: chmod u+w . 2>&5
15117: $RM conftest*
15118: # SGI C++ compiler will create directory out/ii_files/ for
15119: # template instantiation
15120: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15121: $RM out/* && rmdir out
15122: cd ..
15123: $RM -r conftest
15124: $RM conftest*
15125:
15126: fi
1.150 moko 15127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15128: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15129:
15130:
15131:
15132:
15133: hard_links="nottested"
15134: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15135: # do not overwrite the value of need_locks provided by the user
1.150 moko 15136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15137: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 15138: hard_links=yes
15139: $RM conftest*
15140: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15141: touch conftest.a
15142: ln conftest.a conftest.b 2>&5 || hard_links=no
15143: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 15144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15145: $as_echo "$hard_links" >&6; }
1.128 moko 15146: if test "$hard_links" = no; then
1.150 moko 15147: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15148: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 15149: need_locks=warn
15150: fi
15151: else
15152: need_locks=no
15153: fi
15154:
15155:
15156:
1.150 moko 15157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15158: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 15159:
15160: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15161: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15162: case $host_os in
15163: aix[4-9]*)
15164: # If we're using GNU nm, then we don't want the "-C" option.
15165: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15166: # Also, AIX nm treats weak defined symbols like other global defined
15167: # symbols, whereas GNU nm marks them as "W".
15168: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15169: 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'
15170: else
15171: 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'
15172: fi
15173: ;;
15174: pw32*)
15175: export_symbols_cmds_CXX="$ltdll_cmds"
15176: ;;
15177: cygwin* | mingw* | cegcc*)
15178: case $cc_basename in
15179: cl*)
15180: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15181: ;;
15182: *)
15183: 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'
15184: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15185: ;;
15186: esac
15187: ;;
15188: *)
15189: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15190: ;;
15191: esac
15192:
1.150 moko 15193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15194: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 15195: test "$ld_shlibs_CXX" = no && can_build_shared=no
15196:
15197: with_gnu_ld_CXX=$with_gnu_ld
15198:
15199:
15200:
15201:
15202:
15203:
15204: #
15205: # Do we need to explicitly link libc?
15206: #
15207: case "x$archive_cmds_need_lc_CXX" in
15208: x|xyes)
15209: # Assume -lc should be added
15210: archive_cmds_need_lc_CXX=yes
15211:
15212: if test "$enable_shared" = yes && test "$GCC" = yes; then
15213: case $archive_cmds_CXX in
15214: *'~'*)
15215: # FIXME: we may have to deal with multi-command sequences.
15216: ;;
15217: '$CC '*)
15218: # Test whether the compiler implicitly links with -lc since on some
15219: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15220: # to ld, don't add -lc before -lgcc.
1.150 moko 15221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15222: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15223: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15224: $as_echo_n "(cached) " >&6
1.128 moko 15225: else
15226: $RM conftest*
15227: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15228:
1.150 moko 15229: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 15230: (eval $ac_compile) 2>&5
15231: ac_status=$?
1.150 moko 15232: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15233: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 15234: soname=conftest
15235: lib=conftest
15236: libobjs=conftest.$ac_objext
15237: deplibs=
15238: wl=$lt_prog_compiler_wl_CXX
15239: pic_flag=$lt_prog_compiler_pic_CXX
15240: compiler_flags=-v
15241: linker_flags=-v
15242: verstring=
15243: output_objdir=.
15244: libname=conftest
15245: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15246: allow_undefined_flag_CXX=
1.150 moko 15247: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 15248: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15249: ac_status=$?
1.150 moko 15250: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15251: test $ac_status = 0; }
1.128 moko 15252: then
15253: lt_cv_archive_cmds_need_lc_CXX=no
15254: else
15255: lt_cv_archive_cmds_need_lc_CXX=yes
15256: fi
15257: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15258: else
15259: cat conftest.err 1>&5
15260: fi
15261: $RM conftest*
15262:
15263: fi
1.150 moko 15264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15265: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 15266: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15267: ;;
15268: esac
15269: fi
15270: ;;
15271: esac
15272:
15273:
15274:
15275:
15276:
15277:
15278:
15279:
15280:
15281:
15282:
15283:
15284:
15285:
15286:
15287:
15288:
15289:
15290:
15291:
15292:
15293:
15294:
15295:
15296:
15297:
15298:
15299:
15300:
15301:
15302:
15303:
15304:
15305:
15306:
15307:
15308:
15309:
15310:
15311:
15312:
15313:
15314:
15315:
15316:
15317:
15318:
15319:
15320:
15321:
15322:
15323:
15324:
15325:
15326:
15327:
15328:
15329:
15330:
15331:
15332:
15333:
1.150 moko 15334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15335: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 15336:
15337: library_names_spec=
15338: libname_spec='lib$name'
15339: soname_spec=
15340: shrext_cmds=".so"
15341: postinstall_cmds=
15342: postuninstall_cmds=
15343: finish_cmds=
15344: finish_eval=
15345: shlibpath_var=
15346: shlibpath_overrides_runpath=unknown
15347: version_type=none
15348: dynamic_linker="$host_os ld.so"
15349: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15350: need_lib_prefix=unknown
15351: hardcode_into_libs=no
15352:
15353: # when you set need_version to no, make sure it does not cause -set_version
15354: # flags to be left without arguments
15355: need_version=unknown
15356:
15357: case $host_os in
15358: aix3*)
15359: version_type=linux # correct to gnu/linux during the next big refactor
15360: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15361: shlibpath_var=LIBPATH
15362:
15363: # AIX 3 has no versioning support, so we append a major version to the name.
15364: soname_spec='${libname}${release}${shared_ext}$major'
15365: ;;
15366:
15367: aix[4-9]*)
15368: version_type=linux # correct to gnu/linux during the next big refactor
15369: need_lib_prefix=no
15370: need_version=no
15371: hardcode_into_libs=yes
15372: if test "$host_cpu" = ia64; then
15373: # AIX 5 supports IA64
15374: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15375: shlibpath_var=LD_LIBRARY_PATH
15376: else
15377: # With GCC up to 2.95.x, collect2 would create an import file
15378: # for dependence libraries. The import file would start with
15379: # the line `#! .'. This would cause the generated library to
15380: # depend on `.', always an invalid library. This was fixed in
15381: # development snapshots of GCC prior to 3.0.
15382: case $host_os in
15383: aix4 | aix4.[01] | aix4.[01].*)
15384: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15385: echo ' yes '
15386: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15387: :
15388: else
15389: can_build_shared=no
15390: fi
15391: ;;
15392: esac
15393: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15394: # soname into executable. Probably we can add versioning support to
15395: # collect2, so additional links can be useful in future.
15396: if test "$aix_use_runtimelinking" = yes; then
15397: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15398: # instead of lib<name>.a to let people know that these are not
15399: # typical AIX shared libraries.
15400: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401: else
15402: # We preserve .a as extension for shared libraries through AIX4.2
15403: # and later when we are not doing run time linking.
15404: library_names_spec='${libname}${release}.a $libname.a'
15405: soname_spec='${libname}${release}${shared_ext}$major'
15406: fi
15407: shlibpath_var=LIBPATH
15408: fi
15409: ;;
15410:
15411: amigaos*)
15412: case $host_cpu in
15413: powerpc)
15414: # Since July 2007 AmigaOS4 officially supports .so libraries.
15415: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15416: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15417: ;;
15418: m68k)
15419: library_names_spec='$libname.ixlibrary $libname.a'
15420: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15421: 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'
15422: ;;
15423: esac
15424: ;;
15425:
15426: beos*)
15427: library_names_spec='${libname}${shared_ext}'
15428: dynamic_linker="$host_os ld.so"
15429: shlibpath_var=LIBRARY_PATH
15430: ;;
15431:
15432: bsdi[45]*)
15433: version_type=linux # correct to gnu/linux during the next big refactor
15434: need_version=no
15435: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436: soname_spec='${libname}${release}${shared_ext}$major'
15437: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15438: shlibpath_var=LD_LIBRARY_PATH
15439: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15440: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15441: # the default ld.so.conf also contains /usr/contrib/lib and
15442: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15443: # libtool to hard-code these into programs
15444: ;;
15445:
15446: cygwin* | mingw* | pw32* | cegcc*)
15447: version_type=windows
15448: shrext_cmds=".dll"
15449: need_version=no
15450: need_lib_prefix=no
15451:
15452: case $GCC,$cc_basename in
15453: yes,*)
15454: # gcc
15455: library_names_spec='$libname.dll.a'
15456: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15457: postinstall_cmds='base_file=`basename \${file}`~
15458: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15459: dldir=$destdir/`dirname \$dlpath`~
15460: test -d \$dldir || mkdir -p \$dldir~
15461: $install_prog $dir/$dlname \$dldir/$dlname~
15462: chmod a+x \$dldir/$dlname~
15463: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15464: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15465: fi'
15466: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15467: dlpath=$dir/\$dldll~
15468: $RM \$dlpath'
15469: shlibpath_overrides_runpath=yes
15470:
15471: case $host_os in
15472: cygwin*)
15473: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15474: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15475:
15476: ;;
15477: mingw* | cegcc*)
15478: # MinGW DLLs use traditional 'lib' prefix
15479: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15480: ;;
15481: pw32*)
15482: # pw32 DLLs use 'pw' prefix rather than 'lib'
15483: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15484: ;;
15485: esac
15486: dynamic_linker='Win32 ld.exe'
15487: ;;
15488:
15489: *,cl*)
15490: # Native MSVC
15491: libname_spec='$name'
15492: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15493: library_names_spec='${libname}.dll.lib'
15494:
15495: case $build_os in
15496: mingw*)
15497: sys_lib_search_path_spec=
15498: lt_save_ifs=$IFS
15499: IFS=';'
15500: for lt_path in $LIB
15501: do
15502: IFS=$lt_save_ifs
15503: # Let DOS variable expansion print the short 8.3 style file name.
15504: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15505: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15506: done
15507: IFS=$lt_save_ifs
15508: # Convert to MSYS style.
15509: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15510: ;;
15511: cygwin*)
15512: # Convert to unix form, then to dos form, then back to unix form
15513: # but this time dos style (no spaces!) so that the unix form looks
15514: # like /cygdrive/c/PROGRA~1:/cygdr...
15515: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15516: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15517: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15518: ;;
15519: *)
15520: sys_lib_search_path_spec="$LIB"
15521: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15522: # It is most probably a Windows format PATH.
15523: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15524: else
15525: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15526: fi
15527: # FIXME: find the short name or the path components, as spaces are
15528: # common. (e.g. "Program Files" -> "PROGRA~1")
15529: ;;
15530: esac
15531:
15532: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15533: postinstall_cmds='base_file=`basename \${file}`~
15534: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15535: dldir=$destdir/`dirname \$dlpath`~
15536: test -d \$dldir || mkdir -p \$dldir~
15537: $install_prog $dir/$dlname \$dldir/$dlname'
15538: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15539: dlpath=$dir/\$dldll~
15540: $RM \$dlpath'
15541: shlibpath_overrides_runpath=yes
15542: dynamic_linker='Win32 link.exe'
15543: ;;
15544:
15545: *)
15546: # Assume MSVC wrapper
15547: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15548: dynamic_linker='Win32 ld.exe'
15549: ;;
15550: esac
15551: # FIXME: first we should search . and the directory the executable is in
15552: shlibpath_var=PATH
15553: ;;
15554:
15555: darwin* | rhapsody*)
15556: dynamic_linker="$host_os dyld"
15557: version_type=darwin
15558: need_lib_prefix=no
15559: need_version=no
15560: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15561: soname_spec='${libname}${release}${major}$shared_ext'
15562: shlibpath_overrides_runpath=yes
15563: shlibpath_var=DYLD_LIBRARY_PATH
15564: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15565:
15566: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15567: ;;
15568:
15569: dgux*)
15570: version_type=linux # correct to gnu/linux during the next big refactor
15571: need_lib_prefix=no
15572: need_version=no
15573: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15574: soname_spec='${libname}${release}${shared_ext}$major'
15575: shlibpath_var=LD_LIBRARY_PATH
15576: ;;
15577:
15578: freebsd* | dragonfly*)
15579: # DragonFly does not have aout. When/if they implement a new
15580: # versioning mechanism, adjust this.
15581: if test -x /usr/bin/objformat; then
15582: objformat=`/usr/bin/objformat`
15583: else
15584: case $host_os in
15585: freebsd[23].*) objformat=aout ;;
15586: *) objformat=elf ;;
15587: esac
15588: fi
15589: version_type=freebsd-$objformat
15590: case $version_type in
15591: freebsd-elf*)
15592: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15593: need_version=no
15594: need_lib_prefix=no
15595: ;;
15596: freebsd-*)
15597: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15598: need_version=yes
15599: ;;
15600: esac
15601: shlibpath_var=LD_LIBRARY_PATH
15602: case $host_os in
15603: freebsd2.*)
15604: shlibpath_overrides_runpath=yes
15605: ;;
15606: freebsd3.[01]* | freebsdelf3.[01]*)
15607: shlibpath_overrides_runpath=yes
15608: hardcode_into_libs=yes
15609: ;;
15610: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15611: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15612: shlibpath_overrides_runpath=no
15613: hardcode_into_libs=yes
15614: ;;
15615: *) # from 4.6 on, and DragonFly
15616: shlibpath_overrides_runpath=yes
15617: hardcode_into_libs=yes
15618: ;;
15619: esac
15620: ;;
15621:
15622: gnu*)
15623: version_type=linux # correct to gnu/linux during the next big refactor
15624: need_lib_prefix=no
15625: need_version=no
15626: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15627: soname_spec='${libname}${release}${shared_ext}$major'
15628: shlibpath_var=LD_LIBRARY_PATH
15629: shlibpath_overrides_runpath=no
15630: hardcode_into_libs=yes
15631: ;;
15632:
15633: haiku*)
15634: version_type=linux # correct to gnu/linux during the next big refactor
15635: need_lib_prefix=no
15636: need_version=no
15637: dynamic_linker="$host_os runtime_loader"
15638: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15639: soname_spec='${libname}${release}${shared_ext}$major'
15640: shlibpath_var=LIBRARY_PATH
15641: shlibpath_overrides_runpath=yes
15642: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15643: hardcode_into_libs=yes
15644: ;;
15645:
15646: hpux9* | hpux10* | hpux11*)
15647: # Give a soname corresponding to the major version so that dld.sl refuses to
15648: # link against other versions.
15649: version_type=sunos
15650: need_lib_prefix=no
15651: need_version=no
15652: case $host_cpu in
15653: ia64*)
15654: shrext_cmds='.so'
15655: hardcode_into_libs=yes
15656: dynamic_linker="$host_os dld.so"
15657: shlibpath_var=LD_LIBRARY_PATH
15658: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15659: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660: soname_spec='${libname}${release}${shared_ext}$major'
15661: if test "X$HPUX_IA64_MODE" = X32; then
15662: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15663: else
15664: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15665: fi
15666: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15667: ;;
15668: hppa*64*)
15669: shrext_cmds='.sl'
15670: hardcode_into_libs=yes
15671: dynamic_linker="$host_os dld.sl"
15672: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15673: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15674: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675: soname_spec='${libname}${release}${shared_ext}$major'
15676: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15677: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15678: ;;
15679: *)
15680: shrext_cmds='.sl'
15681: dynamic_linker="$host_os dld.sl"
15682: shlibpath_var=SHLIB_PATH
15683: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15684: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685: soname_spec='${libname}${release}${shared_ext}$major'
15686: ;;
15687: esac
15688: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15689: postinstall_cmds='chmod 555 $lib'
15690: # or fails outright, so override atomically:
15691: install_override_mode=555
15692: ;;
15693:
15694: interix[3-9]*)
15695: version_type=linux # correct to gnu/linux during the next big refactor
15696: need_lib_prefix=no
15697: need_version=no
15698: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15699: soname_spec='${libname}${release}${shared_ext}$major'
15700: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15701: shlibpath_var=LD_LIBRARY_PATH
15702: shlibpath_overrides_runpath=no
15703: hardcode_into_libs=yes
15704: ;;
15705:
15706: irix5* | irix6* | nonstopux*)
15707: case $host_os in
15708: nonstopux*) version_type=nonstopux ;;
15709: *)
15710: if test "$lt_cv_prog_gnu_ld" = yes; then
15711: version_type=linux # correct to gnu/linux during the next big refactor
15712: else
15713: version_type=irix
15714: fi ;;
15715: esac
15716: need_lib_prefix=no
15717: need_version=no
15718: soname_spec='${libname}${release}${shared_ext}$major'
15719: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15720: case $host_os in
15721: irix5* | nonstopux*)
15722: libsuff= shlibsuff=
15723: ;;
15724: *)
15725: case $LD in # libtool.m4 will add one of these switches to LD
15726: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15727: libsuff= shlibsuff= libmagic=32-bit;;
15728: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15729: libsuff=32 shlibsuff=N32 libmagic=N32;;
15730: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15731: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15732: *) libsuff= shlibsuff= libmagic=never-match;;
15733: esac
15734: ;;
15735: esac
15736: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15737: shlibpath_overrides_runpath=no
15738: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15739: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15740: hardcode_into_libs=yes
15741: ;;
15742:
15743: # No shared lib support for Linux oldld, aout, or coff.
15744: linux*oldld* | linux*aout* | linux*coff*)
15745: dynamic_linker=no
15746: ;;
15747:
15748: # This must be glibc/ELF.
15749: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15750: version_type=linux # correct to gnu/linux during the next big refactor
15751: need_lib_prefix=no
15752: need_version=no
15753: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754: soname_spec='${libname}${release}${shared_ext}$major'
15755: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15756: shlibpath_var=LD_LIBRARY_PATH
15757: shlibpath_overrides_runpath=no
15758:
15759: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 15760: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15761: $as_echo_n "(cached) " >&6
1.128 moko 15762: else
15763: lt_cv_shlibpath_overrides_runpath=no
15764: save_LDFLAGS=$LDFLAGS
15765: save_libdir=$libdir
15766: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15767: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 15768: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15769: /* end confdefs.h. */
15770:
15771: int
15772: main ()
15773: {
15774:
15775: ;
15776: return 0;
15777: }
15778: _ACEOF
1.150 moko 15779: if ac_fn_cxx_try_link "$LINENO"; then :
15780: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 15781: lt_cv_shlibpath_overrides_runpath=yes
15782: fi
15783: fi
1.150 moko 15784: rm -f core conftest.err conftest.$ac_objext \
15785: conftest$ac_exeext conftest.$ac_ext
1.128 moko 15786: LDFLAGS=$save_LDFLAGS
15787: libdir=$save_libdir
15788:
15789: fi
15790:
15791: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15792:
15793: # This implies no fast_install, which is unacceptable.
15794: # Some rework will be needed to allow for fast_install
15795: # before this can be enabled.
15796: hardcode_into_libs=yes
15797:
15798: # Append ld.so.conf contents to the search path
15799: if test -f /etc/ld.so.conf; then
15800: 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' ' '`
15801: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15802: fi
15803:
15804: # We used to test for /lib/ld.so.1 and disable shared libraries on
15805: # powerpc, because MkLinux only supported shared libraries with the
15806: # GNU dynamic linker. Since this was broken with cross compilers,
15807: # most powerpc-linux boxes support dynamic linking these days and
15808: # people can always --disable-shared, the test was removed, and we
15809: # assume the GNU/Linux dynamic linker is in use.
15810: dynamic_linker='GNU/Linux ld.so'
15811: ;;
15812:
15813: netbsd*)
15814: version_type=sunos
15815: need_lib_prefix=no
15816: need_version=no
15817: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15818: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15819: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15820: dynamic_linker='NetBSD (a.out) ld.so'
15821: else
15822: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15823: soname_spec='${libname}${release}${shared_ext}$major'
15824: dynamic_linker='NetBSD ld.elf_so'
15825: fi
15826: shlibpath_var=LD_LIBRARY_PATH
15827: shlibpath_overrides_runpath=yes
15828: hardcode_into_libs=yes
15829: ;;
15830:
15831: newsos6)
15832: version_type=linux # correct to gnu/linux during the next big refactor
15833: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834: shlibpath_var=LD_LIBRARY_PATH
15835: shlibpath_overrides_runpath=yes
15836: ;;
15837:
15838: *nto* | *qnx*)
15839: version_type=qnx
15840: need_lib_prefix=no
15841: need_version=no
15842: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843: soname_spec='${libname}${release}${shared_ext}$major'
15844: shlibpath_var=LD_LIBRARY_PATH
15845: shlibpath_overrides_runpath=no
15846: hardcode_into_libs=yes
15847: dynamic_linker='ldqnx.so'
15848: ;;
15849:
15850: openbsd*)
15851: version_type=sunos
15852: sys_lib_dlsearch_path_spec="/usr/lib"
15853: need_lib_prefix=no
15854: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15855: case $host_os in
15856: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15857: *) need_version=no ;;
15858: esac
15859: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15860: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15861: shlibpath_var=LD_LIBRARY_PATH
15862: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15863: case $host_os in
15864: openbsd2.[89] | openbsd2.[89].*)
15865: shlibpath_overrides_runpath=no
15866: ;;
15867: *)
15868: shlibpath_overrides_runpath=yes
15869: ;;
15870: esac
15871: else
15872: shlibpath_overrides_runpath=yes
15873: fi
15874: ;;
15875:
15876: os2*)
15877: libname_spec='$name'
15878: shrext_cmds=".dll"
15879: need_lib_prefix=no
15880: library_names_spec='$libname${shared_ext} $libname.a'
15881: dynamic_linker='OS/2 ld.exe'
15882: shlibpath_var=LIBPATH
15883: ;;
15884:
15885: osf3* | osf4* | osf5*)
15886: version_type=osf
15887: need_lib_prefix=no
15888: need_version=no
15889: soname_spec='${libname}${release}${shared_ext}$major'
15890: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15891: shlibpath_var=LD_LIBRARY_PATH
15892: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15893: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15894: ;;
15895:
15896: rdos*)
15897: dynamic_linker=no
15898: ;;
15899:
15900: solaris*)
15901: version_type=linux # correct to gnu/linux during the next big refactor
15902: need_lib_prefix=no
15903: need_version=no
15904: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905: soname_spec='${libname}${release}${shared_ext}$major'
15906: shlibpath_var=LD_LIBRARY_PATH
15907: shlibpath_overrides_runpath=yes
15908: hardcode_into_libs=yes
15909: # ldd complains unless libraries are executable
15910: postinstall_cmds='chmod +x $lib'
15911: ;;
15912:
15913: sunos4*)
15914: version_type=sunos
15915: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15916: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15917: shlibpath_var=LD_LIBRARY_PATH
15918: shlibpath_overrides_runpath=yes
15919: if test "$with_gnu_ld" = yes; then
15920: need_lib_prefix=no
15921: fi
15922: need_version=yes
15923: ;;
15924:
15925: sysv4 | sysv4.3*)
15926: version_type=linux # correct to gnu/linux during the next big refactor
15927: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928: soname_spec='${libname}${release}${shared_ext}$major'
15929: shlibpath_var=LD_LIBRARY_PATH
15930: case $host_vendor in
15931: sni)
15932: shlibpath_overrides_runpath=no
15933: need_lib_prefix=no
15934: runpath_var=LD_RUN_PATH
15935: ;;
15936: siemens)
15937: need_lib_prefix=no
15938: ;;
15939: motorola)
15940: need_lib_prefix=no
15941: need_version=no
15942: shlibpath_overrides_runpath=no
15943: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15944: ;;
15945: esac
15946: ;;
15947:
15948: sysv4*MP*)
15949: if test -d /usr/nec ;then
15950: version_type=linux # correct to gnu/linux during the next big refactor
15951: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15952: soname_spec='$libname${shared_ext}.$major'
15953: shlibpath_var=LD_LIBRARY_PATH
15954: fi
15955: ;;
15956:
15957: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15958: version_type=freebsd-elf
15959: need_lib_prefix=no
15960: need_version=no
15961: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15962: soname_spec='${libname}${release}${shared_ext}$major'
15963: shlibpath_var=LD_LIBRARY_PATH
15964: shlibpath_overrides_runpath=yes
15965: hardcode_into_libs=yes
15966: if test "$with_gnu_ld" = yes; then
15967: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15968: else
15969: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15970: case $host_os in
15971: sco3.2v5*)
15972: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15973: ;;
15974: esac
15975: fi
15976: sys_lib_dlsearch_path_spec='/usr/lib'
15977: ;;
15978:
15979: tpf*)
15980: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15981: version_type=linux # correct to gnu/linux during the next big refactor
15982: need_lib_prefix=no
15983: need_version=no
15984: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985: shlibpath_var=LD_LIBRARY_PATH
15986: shlibpath_overrides_runpath=no
15987: hardcode_into_libs=yes
15988: ;;
15989:
15990: uts4*)
15991: version_type=linux # correct to gnu/linux during the next big refactor
15992: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993: soname_spec='${libname}${release}${shared_ext}$major'
15994: shlibpath_var=LD_LIBRARY_PATH
15995: ;;
15996:
15997: *)
15998: dynamic_linker=no
15999: ;;
16000: esac
1.150 moko 16001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16002: $as_echo "$dynamic_linker" >&6; }
1.128 moko 16003: test "$dynamic_linker" = no && can_build_shared=no
16004:
16005: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16006: if test "$GCC" = yes; then
16007: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16008: fi
16009:
16010: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16011: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16012: fi
16013: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16014: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16015: fi
16016:
16017:
16018:
16019:
16020:
16021:
16022:
16023:
16024:
16025:
16026:
16027:
16028:
16029:
16030:
16031:
16032:
16033:
16034:
16035:
16036:
16037:
16038:
16039:
16040:
16041:
16042:
16043:
16044:
16045:
16046:
16047:
16048:
16049:
16050:
16051:
16052:
16053:
1.150 moko 16054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16055: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 16056: hardcode_action_CXX=
16057: if test -n "$hardcode_libdir_flag_spec_CXX" ||
16058: test -n "$runpath_var_CXX" ||
16059: test "X$hardcode_automatic_CXX" = "Xyes" ; then
16060:
16061: # We can hardcode non-existent directories.
16062: if test "$hardcode_direct_CXX" != no &&
16063: # If the only mechanism to avoid hardcoding is shlibpath_var, we
16064: # have to relink, otherwise we might link with an installed library
16065: # when we should be linking with a yet-to-be-installed one
16066: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16067: test "$hardcode_minus_L_CXX" != no; then
16068: # Linking always hardcodes the temporary library directory.
16069: hardcode_action_CXX=relink
16070: else
16071: # We can link without hardcoding, and we can hardcode nonexisting dirs.
16072: hardcode_action_CXX=immediate
16073: fi
16074: else
16075: # We cannot hardcode anything, or else we can only hardcode existing
16076: # directories.
16077: hardcode_action_CXX=unsupported
16078: fi
1.150 moko 16079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16080: $as_echo "$hardcode_action_CXX" >&6; }
1.128 moko 16081:
16082: if test "$hardcode_action_CXX" = relink ||
16083: test "$inherit_rpath_CXX" = yes; then
16084: # Fast installation is not supported
16085: enable_fast_install=no
16086: elif test "$shlibpath_overrides_runpath" = yes ||
16087: test "$enable_shared" = no; then
16088: # Fast installation is not necessary
16089: enable_fast_install=needless
16090: fi
16091:
16092:
16093:
16094:
16095:
16096:
16097:
16098: fi # test -n "$compiler"
16099:
16100: CC=$lt_save_CC
16101: CFLAGS=$lt_save_CFLAGS
16102: LDCXX=$LD
16103: LD=$lt_save_LD
16104: GCC=$lt_save_GCC
16105: with_gnu_ld=$lt_save_with_gnu_ld
16106: lt_cv_path_LDCXX=$lt_cv_path_LD
16107: lt_cv_path_LD=$lt_save_path_LD
16108: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16109: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16110: fi # test "$_lt_caught_CXX_error" != yes
16111:
16112: ac_ext=c
16113: ac_cpp='$CPP $CPPFLAGS'
16114: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16115: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16116: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16117:
16118:
16119:
16120:
16121:
16122:
16123:
16124:
16125:
16126:
16127:
16128:
16129:
16130:
16131:
1.150 moko 16132: ac_config_commands="$ac_config_commands libtool"
1.128 moko 16133:
16134:
16135:
16136:
16137: # Only expand once:
16138:
16139:
1.150 moko 16140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
16141: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
16142: if ${libltdl_cv_shlibext+:} false; then :
16143: $as_echo_n "(cached) " >&6
1.128 moko 16144: else
16145:
16146: module=yes
16147: eval libltdl_cv_shlibext=$shrext_cmds
16148: module=no
16149: eval libltdl_cv_shrext=$shrext_cmds
16150:
16151: fi
1.150 moko 16152: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16153: $as_echo "$libltdl_cv_shlibext" >&6; }
1.128 moko 16154: if test -n "$libltdl_cv_shlibext"; then
16155:
16156: cat >>confdefs.h <<_ACEOF
16157: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16158: _ACEOF
16159:
16160: fi
16161: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16162:
16163: cat >>confdefs.h <<_ACEOF
16164: #define LT_SHARED_EXT "$libltdl_cv_shrext"
16165: _ACEOF
16166:
16167: fi
16168:
1.150 moko 16169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
16170: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
16171: if ${lt_cv_module_path_var+:} false; then :
16172: $as_echo_n "(cached) " >&6
1.128 moko 16173: else
16174: lt_cv_module_path_var="$shlibpath_var"
16175: fi
1.150 moko 16176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16177: $as_echo "$lt_cv_module_path_var" >&6; }
1.128 moko 16178: if test -n "$lt_cv_module_path_var"; then
16179:
16180: cat >>confdefs.h <<_ACEOF
16181: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16182: _ACEOF
16183:
16184: fi
16185:
1.150 moko 16186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16187: $as_echo_n "checking for the default library search path... " >&6; }
16188: if ${lt_cv_sys_dlsearch_path+:} false; then :
16189: $as_echo_n "(cached) " >&6
1.128 moko 16190: else
16191: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
16192: fi
1.150 moko 16193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16194: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 16195: if test -n "$lt_cv_sys_dlsearch_path"; then
16196: sys_dlsearch_path=
16197: for dir in $lt_cv_sys_dlsearch_path; do
16198: if test -z "$sys_dlsearch_path"; then
16199: sys_dlsearch_path="$dir"
16200: else
16201: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
16202: fi
16203: done
16204:
16205: cat >>confdefs.h <<_ACEOF
16206: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16207: _ACEOF
16208:
16209: fi
16210:
16211:
16212: LT_DLLOADERS=
16213:
16214:
16215: ac_ext=c
16216: ac_cpp='$CPP $CPPFLAGS'
16217: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16218: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16219: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16220:
16221:
16222: LIBADD_DLOPEN=
1.150 moko 16223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16224: $as_echo_n "checking for library containing dlopen... " >&6; }
16225: if ${ac_cv_search_dlopen+:} false; then :
16226: $as_echo_n "(cached) " >&6
1.128 moko 16227: else
16228: ac_func_search_save_LIBS=$LIBS
1.150 moko 16229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16230: /* end confdefs.h. */
16231:
1.150 moko 16232: /* Override any GCC internal prototype to avoid an error.
16233: Use char because int might match the return type of a GCC
16234: builtin and then its argument prototype would still apply. */
1.128 moko 16235: #ifdef __cplusplus
16236: extern "C"
16237: #endif
16238: char dlopen ();
16239: int
16240: main ()
16241: {
1.150 moko 16242: return dlopen ();
1.128 moko 16243: ;
16244: return 0;
16245: }
16246: _ACEOF
1.150 moko 16247: for ac_lib in '' dl; do
16248: if test -z "$ac_lib"; then
16249: ac_res="none required"
16250: else
16251: ac_res=-l$ac_lib
16252: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16253: fi
16254: if ac_fn_c_try_link "$LINENO"; then :
16255: ac_cv_search_dlopen=$ac_res
16256: fi
16257: rm -f core conftest.err conftest.$ac_objext \
16258: conftest$ac_exeext
16259: if ${ac_cv_search_dlopen+:} false; then :
16260: break
1.128 moko 16261: fi
1.150 moko 16262: done
16263: if ${ac_cv_search_dlopen+:} false; then :
1.128 moko 16264:
16265: else
1.150 moko 16266: ac_cv_search_dlopen=no
1.128 moko 16267: fi
1.150 moko 16268: rm conftest.$ac_ext
1.128 moko 16269: LIBS=$ac_func_search_save_LIBS
16270: fi
1.150 moko 16271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16272: $as_echo "$ac_cv_search_dlopen" >&6; }
16273: ac_res=$ac_cv_search_dlopen
16274: if test "$ac_res" != no; then :
16275: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 16276:
1.150 moko 16277: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16278:
16279: if test "$ac_cv_search_dlopen" != "none required" ; then
16280: LIBADD_DLOPEN="-ldl"
16281: fi
16282: libltdl_cv_lib_dl_dlopen="yes"
16283: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16284: else
1.150 moko 16285: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16286: /* end confdefs.h. */
16287: #if HAVE_DLFCN_H
16288: # include <dlfcn.h>
16289: #endif
16290:
16291: int
16292: main ()
16293: {
16294: dlopen(0, 0);
16295: ;
16296: return 0;
16297: }
16298: _ACEOF
1.150 moko 16299: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16300:
1.150 moko 16301: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16302:
16303: libltdl_cv_func_dlopen="yes"
16304: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16305: else
1.150 moko 16306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16307: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16308: if ${ac_cv_lib_svld_dlopen+:} false; then :
16309: $as_echo_n "(cached) " >&6
1.128 moko 16310: else
16311: ac_check_lib_save_LIBS=$LIBS
16312: LIBS="-lsvld $LIBS"
1.150 moko 16313: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16314: /* end confdefs.h. */
16315:
1.150 moko 16316: /* Override any GCC internal prototype to avoid an error.
16317: Use char because int might match the return type of a GCC
16318: builtin and then its argument prototype would still apply. */
1.128 moko 16319: #ifdef __cplusplus
16320: extern "C"
16321: #endif
16322: char dlopen ();
16323: int
16324: main ()
16325: {
1.150 moko 16326: return dlopen ();
1.128 moko 16327: ;
16328: return 0;
16329: }
16330: _ACEOF
1.150 moko 16331: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16332: ac_cv_lib_svld_dlopen=yes
16333: else
1.150 moko 16334: ac_cv_lib_svld_dlopen=no
1.128 moko 16335: fi
1.150 moko 16336: rm -f core conftest.err conftest.$ac_objext \
16337: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16338: LIBS=$ac_check_lib_save_LIBS
16339: fi
1.150 moko 16340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16341: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16342: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 16343:
1.150 moko 16344: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16345:
16346: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16347: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16348: fi
16349:
16350: fi
1.150 moko 16351: rm -f core conftest.err conftest.$ac_objext \
16352: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16353: fi
16354:
16355: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16356: then
16357: lt_save_LIBS="$LIBS"
16358: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 16359: for ac_func in dlerror
16360: do :
16361: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16362: if test "x$ac_cv_func_dlerror" = xyes; then :
1.128 moko 16363: cat >>confdefs.h <<_ACEOF
1.150 moko 16364: #define HAVE_DLERROR 1
1.128 moko 16365: _ACEOF
16366:
16367: fi
16368: done
16369:
16370: LIBS="$lt_save_LIBS"
16371: fi
16372:
16373:
16374: LIBADD_SHL_LOAD=
1.150 moko 16375: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16376: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 16377:
1.150 moko 16378: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 16379:
16380: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16381: else
1.150 moko 16382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16383: $as_echo_n "checking for shl_load in -ldld... " >&6; }
16384: if ${ac_cv_lib_dld_shl_load+:} false; then :
16385: $as_echo_n "(cached) " >&6
1.66 paf 16386: else
16387: ac_check_lib_save_LIBS=$LIBS
16388: LIBS="-ldld $LIBS"
1.150 moko 16389: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16390: /* end confdefs.h. */
1.10 paf 16391:
1.150 moko 16392: /* Override any GCC internal prototype to avoid an error.
16393: Use char because int might match the return type of a GCC
16394: builtin and then its argument prototype would still apply. */
1.66 paf 16395: #ifdef __cplusplus
16396: extern "C"
16397: #endif
16398: char shl_load ();
16399: int
16400: main ()
16401: {
1.150 moko 16402: return shl_load ();
1.66 paf 16403: ;
16404: return 0;
16405: }
16406: _ACEOF
1.150 moko 16407: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 16408: ac_cv_lib_dld_shl_load=yes
16409: else
1.150 moko 16410: ac_cv_lib_dld_shl_load=no
1.66 paf 16411: fi
1.150 moko 16412: rm -f core conftest.err conftest.$ac_objext \
16413: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16414: LIBS=$ac_check_lib_save_LIBS
16415: fi
1.150 moko 16416: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16417: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16418: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 paf 16419:
1.150 moko 16420: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 16421:
1.128 moko 16422: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16423: LIBADD_SHL_LOAD="-ldld"
16424: fi
16425:
16426: fi
16427:
16428:
16429:
16430: case $host_os in
16431: darwin[1567].*)
16432: # We only want this for pre-Mac OS X 10.4.
1.150 moko 16433: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16434: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16435:
16436: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 16437:
1.150 moko 16438: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16439: fi
1.128 moko 16440:
1.150 moko 16441: ;;
16442: beos*)
1.128 moko 16443: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16444: ;;
16445: cygwin* | mingw* | os2* | pw32*)
1.150 moko 16446: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16447: "
16448: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16449: ac_have_decl=1
1.128 moko 16450: else
1.150 moko 16451: ac_have_decl=0
1.128 moko 16452: fi
16453:
16454: cat >>confdefs.h <<_ACEOF
1.150 moko 16455: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.128 moko 16456: _ACEOF
16457:
16458: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16459: ;;
16460: esac
16461:
1.150 moko 16462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16463: $as_echo_n "checking for dld_link in -ldld... " >&6; }
16464: if ${ac_cv_lib_dld_dld_link+:} false; then :
16465: $as_echo_n "(cached) " >&6
1.66 paf 16466: else
16467: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16468: LIBS="-ldld $LIBS"
1.150 moko 16469: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16470: /* end confdefs.h. */
1.62 paf 16471:
1.150 moko 16472: /* Override any GCC internal prototype to avoid an error.
16473: Use char because int might match the return type of a GCC
16474: builtin and then its argument prototype would still apply. */
1.66 paf 16475: #ifdef __cplusplus
16476: extern "C"
16477: #endif
1.128 moko 16478: char dld_link ();
1.66 paf 16479: int
16480: main ()
16481: {
1.150 moko 16482: return dld_link ();
1.66 paf 16483: ;
16484: return 0;
16485: }
16486: _ACEOF
1.150 moko 16487: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16488: ac_cv_lib_dld_dld_link=yes
1.66 paf 16489: else
1.150 moko 16490: ac_cv_lib_dld_dld_link=no
1.128 moko 16491: fi
1.150 moko 16492: rm -f core conftest.err conftest.$ac_objext \
16493: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16494: LIBS=$ac_check_lib_save_LIBS
16495: fi
1.150 moko 16496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16497: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16498: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 16499:
1.150 moko 16500: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 16501:
16502: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16503: fi
16504:
16505:
16506:
16507:
16508: LT_DLPREOPEN=
16509: if test -n "$LT_DLLOADERS"
16510: then
16511: for lt_loader in $LT_DLLOADERS; do
16512: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16513: done
16514:
1.150 moko 16515: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 16516:
16517: fi
16518:
16519:
16520: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16521:
16522:
16523: ac_ext=c
16524: ac_cpp='$CPP $CPPFLAGS'
16525: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16526: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16527: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16528:
16529:
1.150 moko 16530: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16531: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16532: if ${lt_cv_sys_symbol_underscore+:} false; then :
16533: $as_echo_n "(cached) " >&6
1.128 moko 16534: else
16535: lt_cv_sys_symbol_underscore=no
16536: cat > conftest.$ac_ext <<_LT_EOF
16537: void nm_test_func(){}
16538: int main(){nm_test_func;return 0;}
16539: _LT_EOF
1.150 moko 16540: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 16541: (eval $ac_compile) 2>&5
16542: ac_status=$?
1.150 moko 16543: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16544: test $ac_status = 0; }; then
1.128 moko 16545: # Now try to grab the symbols.
16546: ac_nlist=conftest.nm
1.150 moko 16547: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 16548: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16549: ac_status=$?
1.150 moko 16550: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16551: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 16552: # See whether the symbols have a leading underscore.
16553: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16554: lt_cv_sys_symbol_underscore=yes
16555: else
16556: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16557: :
16558: else
16559: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16560: fi
16561: fi
16562: else
16563: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16564: fi
16565: else
16566: echo "configure: failed program was:" >&5
16567: cat conftest.c >&5
16568: fi
16569: rm -rf conftest*
1.29 paf 16570:
1.66 paf 16571: fi
1.150 moko 16572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16573: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 16574: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16575:
1.62 paf 16576:
1.128 moko 16577: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16578: if test x"$libltdl_cv_func_dlopen" = xyes ||
16579: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.150 moko 16580: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16581: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16582: if ${libltdl_cv_need_uscore+:} false; then :
16583: $as_echo_n "(cached) " >&6
1.66 paf 16584: else
1.128 moko 16585: libltdl_cv_need_uscore=unknown
16586: save_LIBS="$LIBS"
16587: LIBS="$LIBS $LIBADD_DLOPEN"
16588: if test "$cross_compiling" = yes; then :
16589: libltdl_cv_need_uscore=cross
16590: else
16591: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16592: lt_status=$lt_dlunknown
16593: cat > conftest.$ac_ext <<_LT_EOF
16594: #line $LINENO "configure"
16595: #include "confdefs.h"
16596:
1.66 paf 16597: #if HAVE_DLFCN_H
1.128 moko 16598: #include <dlfcn.h>
16599: #endif
16600:
16601: #include <stdio.h>
16602:
16603: #ifdef RTLD_GLOBAL
16604: # define LT_DLGLOBAL RTLD_GLOBAL
16605: #else
16606: # ifdef DL_GLOBAL
16607: # define LT_DLGLOBAL DL_GLOBAL
16608: # else
16609: # define LT_DLGLOBAL 0
16610: # endif
16611: #endif
16612:
16613: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16614: find out it does not work in some platform. */
16615: #ifndef LT_DLLAZY_OR_NOW
16616: # ifdef RTLD_LAZY
16617: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16618: # else
16619: # ifdef DL_LAZY
16620: # define LT_DLLAZY_OR_NOW DL_LAZY
16621: # else
16622: # ifdef RTLD_NOW
16623: # define LT_DLLAZY_OR_NOW RTLD_NOW
16624: # else
16625: # ifdef DL_NOW
16626: # define LT_DLLAZY_OR_NOW DL_NOW
16627: # else
16628: # define LT_DLLAZY_OR_NOW 0
16629: # endif
16630: # endif
16631: # endif
16632: # endif
16633: #endif
16634:
16635: /* When -fvisbility=hidden is used, assume the code has been annotated
16636: correspondingly for the symbols needed. */
16637: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16638: int fnord () __attribute__((visibility("default")));
1.66 paf 16639: #endif
1.62 paf 16640:
1.128 moko 16641: int fnord () { return 42; }
16642: int main ()
1.66 paf 16643: {
1.128 moko 16644: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16645: int status = $lt_dlunknown;
16646:
16647: if (self)
16648: {
16649: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16650: else
16651: {
16652: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16653: else puts (dlerror ());
16654: }
16655: /* dlclose (self); */
16656: }
16657: else
16658: puts (dlerror ());
16659:
16660: return status;
1.66 paf 16661: }
1.128 moko 16662: _LT_EOF
1.150 moko 16663: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16664: (eval $ac_link) 2>&5
1.66 paf 16665: ac_status=$?
1.150 moko 16666: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16667: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 16668: (./conftest; exit; ) >&5 2>/dev/null
16669: lt_status=$?
16670: case x$lt_status in
16671: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16672: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16673: x$lt_dlunknown|x*) ;;
16674: esac
16675: else :
16676: # compilation failed
16677:
16678: fi
16679: fi
16680: rm -fr conftest*
16681:
16682: LIBS="$save_LIBS"
16683:
16684: fi
1.150 moko 16685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16686: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.128 moko 16687: fi
16688: fi
16689:
16690: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16691:
1.150 moko 16692: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 16693:
1.128 moko 16694: fi
16695:
1.150 moko 16696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16697: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16698: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16699: $as_echo_n "(cached) " >&6
1.66 paf 16700: else
1.128 moko 16701: # PORTME does your system automatically load deplibs for dlopen?
16702: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16703: # For now, we just catch OSes we know something about -- in the
16704: # future, we'll try test this programmatically.
16705: lt_cv_sys_dlopen_deplibs=unknown
16706: case $host_os in
16707: aix3*|aix4.1.*|aix4.2.*)
16708: # Unknown whether this is true for these versions of AIX, but
16709: # we want this `case' here to explicitly catch those versions.
16710: lt_cv_sys_dlopen_deplibs=unknown
16711: ;;
16712: aix[4-9]*)
16713: lt_cv_sys_dlopen_deplibs=yes
16714: ;;
16715: amigaos*)
16716: case $host_cpu in
16717: powerpc)
16718: lt_cv_sys_dlopen_deplibs=no
16719: ;;
16720: esac
16721: ;;
16722: darwin*)
16723: # Assuming the user has installed a libdl from somewhere, this is true
16724: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16725: lt_cv_sys_dlopen_deplibs=yes
16726: ;;
16727: freebsd* | dragonfly*)
16728: lt_cv_sys_dlopen_deplibs=yes
16729: ;;
16730: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16731: # GNU and its variants, using gnu ld.so (Glibc)
16732: lt_cv_sys_dlopen_deplibs=yes
16733: ;;
16734: hpux10*|hpux11*)
16735: lt_cv_sys_dlopen_deplibs=yes
16736: ;;
16737: interix*)
16738: lt_cv_sys_dlopen_deplibs=yes
16739: ;;
16740: irix[12345]*|irix6.[01]*)
16741: # Catch all versions of IRIX before 6.2, and indicate that we don't
16742: # know how it worked for any of those versions.
16743: lt_cv_sys_dlopen_deplibs=unknown
16744: ;;
16745: irix*)
16746: # The case above catches anything before 6.2, and it's known that
16747: # at 6.2 and later dlopen does load deplibs.
16748: lt_cv_sys_dlopen_deplibs=yes
16749: ;;
16750: netbsd*)
16751: lt_cv_sys_dlopen_deplibs=yes
16752: ;;
16753: openbsd*)
16754: lt_cv_sys_dlopen_deplibs=yes
16755: ;;
16756: osf[1234]*)
16757: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16758: # it did *not* use an RPATH in a shared library to find objects the
16759: # library depends on, so we explicitly say `no'.
16760: lt_cv_sys_dlopen_deplibs=no
16761: ;;
16762: osf5.0|osf5.0a|osf5.1)
16763: # dlopen *does* load deplibs and with the right loader patch applied
16764: # it even uses RPATH in a shared library to search for shared objects
16765: # that the library depends on, but there's no easy way to know if that
16766: # patch is installed. Since this is the case, all we can really
16767: # say is unknown -- it depends on the patch being installed. If
16768: # it is, this changes to `yes'. Without it, it would be `no'.
16769: lt_cv_sys_dlopen_deplibs=unknown
16770: ;;
16771: osf*)
16772: # the two cases above should catch all versions of osf <= 5.1. Read
16773: # the comments above for what we know about them.
16774: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16775: # is used to find them so we can finally say `yes'.
16776: lt_cv_sys_dlopen_deplibs=yes
16777: ;;
16778: qnx*)
16779: lt_cv_sys_dlopen_deplibs=yes
16780: ;;
16781: solaris*)
16782: lt_cv_sys_dlopen_deplibs=yes
16783: ;;
16784: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16785: libltdl_cv_sys_dlopen_deplibs=yes
16786: ;;
16787: esac
16788:
16789: fi
1.150 moko 16790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16791: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.128 moko 16792: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16793:
1.150 moko 16794: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 16795:
16796: fi
16797:
16798: :
16799:
16800: for ac_header in argz.h
1.150 moko 16801: do :
16802: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16803: "
16804: if test "x$ac_cv_header_argz_h" = xyes; then :
1.128 moko 16805: cat >>confdefs.h <<_ACEOF
1.150 moko 16806: #define HAVE_ARGZ_H 1
1.128 moko 16807: _ACEOF
16808:
1.66 paf 16809: fi
1.62 paf 16810:
1.128 moko 16811: done
16812:
1.29 paf 16813:
1.150 moko 16814: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 16815: # include <argz.h>
16816: #endif
1.150 moko 16817: "
16818: if test "x$ac_cv_type_error_t" = xyes; then :
1.29 paf 16819:
1.128 moko 16820: cat >>confdefs.h <<_ACEOF
16821: #define HAVE_ERROR_T 1
1.62 paf 16822: _ACEOF
1.16 paf 16823:
16824:
1.128 moko 16825: else
1.16 paf 16826:
1.150 moko 16827: $as_echo "#define error_t int" >>confdefs.h
1.16 paf 16828:
1.12 paf 16829:
1.150 moko 16830: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.12 paf 16831:
1.66 paf 16832: fi
1.12 paf 16833:
1.128 moko 16834:
16835: ARGZ_H=
16836: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16837: argz_next argz_stringify
1.150 moko 16838: do :
16839: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16840: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16841: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 16842: cat >>confdefs.h <<_ACEOF
1.150 moko 16843: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 16844: _ACEOF
16845:
16846: else
16847: ARGZ_H=argz.h;
16848:
16849: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16850:
16851: fi
16852: done
16853:
16854:
1.150 moko 16855: if test -z "$ARGZ_H"; then :
16856: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16857: $as_echo_n "checking if argz actually works... " >&6; }
16858: if ${lt_cv_sys_argz_works+:} false; then :
16859: $as_echo_n "(cached) " >&6
1.128 moko 16860: else
16861: case $host_os in #(
16862: *cygwin*)
16863: lt_cv_sys_argz_works=no
16864: if test "$cross_compiling" != no; then
16865: lt_cv_sys_argz_works="guessing no"
16866: else
16867: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16868: save_IFS=$IFS
16869: IFS=-.
16870: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16871: IFS=$save_IFS
16872: lt_os_major=${2-0}
16873: lt_os_minor=${3-0}
16874: lt_os_micro=${4-0}
16875: if test "$lt_os_major" -gt 1 \
16876: || { test "$lt_os_major" -eq 1 \
16877: && { test "$lt_os_minor" -gt 5 \
16878: || { test "$lt_os_minor" -eq 5 \
16879: && test "$lt_os_micro" -gt 24; }; }; }; then
16880: lt_cv_sys_argz_works=yes
16881: fi
16882: fi
16883: ;; #(
16884: *) lt_cv_sys_argz_works=yes ;;
16885: esac
16886: fi
1.150 moko 16887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16888: $as_echo "$lt_cv_sys_argz_works" >&6; }
16889: if test "$lt_cv_sys_argz_works" = yes; then :
1.128 moko 16890:
1.150 moko 16891: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 16892:
1.62 paf 16893: else
1.128 moko 16894: ARGZ_H=argz.h
16895:
16896:
16897: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16898:
16899: fi
1.62 paf 16900: fi
1.128 moko 16901:
16902:
16903:
1.150 moko 16904: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16905: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16906: if ${libltdl_cv_preloaded_symbols+:} false; then :
16907: $as_echo_n "(cached) " >&6
1.128 moko 16908: else
16909: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16910: libltdl_cv_preloaded_symbols=yes
16911: else
16912: libltdl_cv_preloaded_symbols=no
16913: fi
16914:
1.62 paf 16915: fi
1.150 moko 16916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16917: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.128 moko 16918: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16919:
1.150 moko 16920: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 16921:
16922: fi
16923:
1.150 moko 16924:
16925:
1.128 moko 16926: # Set options
16927:
16928:
16929:
16930:
16931:
16932:
16933:
16934:
16935:
16936:
1.66 paf 16937:
16938:
1.150 moko 16939: # Check whether --with-included_ltdl was given.
16940: if test "${with_included_ltdl+set}" = set; then :
16941: withval=$with_included_ltdl;
16942: fi
1.64 paf 16943:
16944:
1.128 moko 16945: if test "x$with_included_ltdl" != xyes; then
16946: # We are not being forced to use the included libltdl sources, so
16947: # decide whether there is a useful installed version we can use.
1.150 moko 16948: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 16949:
1.150 moko 16950: "
16951: if test "x$ac_cv_header_ltdl_h" = xyes; then :
16952: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 16953: #include <ltdl.h>
1.150 moko 16954: "
16955: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16956: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16957: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16958: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16959: $as_echo_n "(cached) " >&6
1.79 paf 16960: else
1.128 moko 16961: ac_check_lib_save_LIBS=$LIBS
16962: LIBS="-lltdl $LIBS"
1.150 moko 16963: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 16964: /* end confdefs.h. */
1.128 moko 16965:
1.150 moko 16966: /* Override any GCC internal prototype to avoid an error.
16967: Use char because int might match the return type of a GCC
16968: builtin and then its argument prototype would still apply. */
1.128 moko 16969: #ifdef __cplusplus
16970: extern "C"
16971: #endif
16972: char lt_dladvise_preload ();
1.79 paf 16973: int
16974: main ()
16975: {
1.150 moko 16976: return lt_dladvise_preload ();
1.79 paf 16977: ;
16978: return 0;
16979: }
16980: _ACEOF
1.150 moko 16981: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16982: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 16983: else
1.150 moko 16984: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.128 moko 16985: fi
1.150 moko 16986: rm -f core conftest.err conftest.$ac_objext \
16987: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16988: LIBS=$ac_check_lib_save_LIBS
1.79 paf 16989: fi
1.150 moko 16990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16991: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16992: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.128 moko 16993: with_included_ltdl=no
1.79 paf 16994: else
1.128 moko 16995: with_included_ltdl=yes
16996: fi
16997:
1.79 paf 16998: else
1.128 moko 16999: with_included_ltdl=yes
17000: fi
1.79 paf 17001:
1.128 moko 17002: else
17003: with_included_ltdl=yes
1.79 paf 17004: fi
1.128 moko 17005:
17006:
1.79 paf 17007: fi
1.128 moko 17008:
17009:
17010:
17011:
1.150 moko 17012: # Check whether --with-ltdl_include was given.
17013: if test "${with_ltdl_include+set}" = set; then :
17014: withval=$with_ltdl_include;
17015: fi
1.128 moko 17016:
17017:
17018: if test -n "$with_ltdl_include"; then
17019: if test -f "$with_ltdl_include/ltdl.h"; then :
17020: else
1.150 moko 17021: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.128 moko 17022: fi
17023: else
17024: with_ltdl_include=no
1.79 paf 17025: fi
1.128 moko 17026:
17027:
1.150 moko 17028: # Check whether --with-ltdl_lib was given.
17029: if test "${with_ltdl_lib+set}" = set; then :
17030: withval=$with_ltdl_lib;
17031: fi
1.128 moko 17032:
17033:
17034: if test -n "$with_ltdl_lib"; then
17035: if test -f "$with_ltdl_lib/libltdl.la"; then :
17036: else
1.150 moko 17037: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.128 moko 17038: fi
17039: else
17040: with_ltdl_lib=no
1.79 paf 17041: fi
17042:
1.128 moko 17043: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17044: ,yes,no,no,)
17045: case $enable_ltdl_convenience in
1.150 moko 17046: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 17047: "") enable_ltdl_convenience=yes
17048: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17049: esac
1.150 moko 17050: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 17051: LTDLDEPS=$LIBLTDL
17052: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17053:
17054:
17055:
17056:
17057:
17058: # For backwards non-gettext consistent compatibility...
17059: INCLTDL="$LTDLINCL"
17060:
1.79 paf 17061:
1.128 moko 17062: ;;
17063: ,no,no,no,)
17064: # If the included ltdl is not to be used, then use the
17065: # preinstalled libltdl we found.
1.79 paf 17066:
1.150 moko 17067: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 17068:
1.128 moko 17069: LIBLTDL=-lltdl
17070: LTDLDEPS=
17071: LTDLINCL=
17072: ;;
17073: ,no*,no,*)
1.150 moko 17074: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 17075: ;;
17076: *) with_included_ltdl=no
17077: LIBLTDL="-L$with_ltdl_lib -lltdl"
17078: LTDLDEPS=
17079: LTDLINCL="-I$with_ltdl_include"
17080: ;;
17081: esac
17082: INCLTDL="$LTDLINCL"
17083:
17084: # Report our decision...
1.150 moko 17085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17086: $as_echo_n "checking where to find libltdl headers... " >&6; }
17087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17088: $as_echo "$LTDLINCL" >&6; }
17089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17090: $as_echo_n "checking where to find libltdl library... " >&6; }
17091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17092: $as_echo "$LIBLTDL" >&6; }
1.128 moko 17093:
17094:
17095:
1.150 moko 17096: # Check whether --enable-ltdl-install was given.
17097: if test "${enable_ltdl_install+set}" = set; then :
17098: enableval=$enable_ltdl_install;
17099: fi
1.128 moko 17100:
17101:
17102: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17103: *yes*) ;;
17104: *) enable_ltdl_convenience=yes ;;
17105: esac
17106:
1.150 moko 17107: if test x"${enable_ltdl_install-no}" != xno; then
1.128 moko 17108: INSTALL_LTDL_TRUE=
17109: INSTALL_LTDL_FALSE='#'
17110: else
17111: INSTALL_LTDL_TRUE='#'
17112: INSTALL_LTDL_FALSE=
17113: fi
17114:
1.150 moko 17115: if test x"${enable_ltdl_convenience-no}" != xno; then
1.128 moko 17116: CONVENIENCE_LTDL_TRUE=
17117: CONVENIENCE_LTDL_FALSE='#'
17118: else
17119: CONVENIENCE_LTDL_TRUE='#'
17120: CONVENIENCE_LTDL_FALSE=
17121: fi
17122:
17123:
17124:
1.150 moko 17125: subdirs="$subdirs src/lib/ltdl"
1.128 moko 17126:
17127:
17128:
17129:
17130: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17131: # the user used. This is so that ltdl.h can pick up the parent projects
17132: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17133: # definitions required by ltdl.c.
17134: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17135:
17136:
17137:
1.150 moko 17138: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17139: do :
17140: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17141: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17142: "
17143: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17144: cat >>confdefs.h <<_ACEOF
17145: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17146: _ACEOF
1.128 moko 17147:
1.150 moko 17148: fi
1.128 moko 17149:
1.150 moko 17150: done
1.128 moko 17151:
17152:
1.150 moko 17153: for ac_func in closedir opendir readdir
17154: do :
17155: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17156: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17157: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17158: cat >>confdefs.h <<_ACEOF
17159: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17160: _ACEOF
1.66 paf 17161:
17162: else
1.64 paf 17163:
1.66 paf 17164:
1.128 moko 17165: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17166:
1.66 paf 17167: fi
1.128 moko 17168: done
17169:
17170: for ac_func in strlcat strlcpy
1.150 moko 17171: do :
17172: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17173: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17174: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17175: cat >>confdefs.h <<_ACEOF
1.150 moko 17176: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17177: _ACEOF
17178:
17179: else
17180:
17181:
17182: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17183:
1.62 paf 17184: fi
1.128 moko 17185: done
17186:
17187:
1.64 paf 17188:
1.128 moko 17189: cat >>confdefs.h <<_ACEOF
17190: #define LT_LIBEXT "$libext"
1.62 paf 17191: _ACEOF
1.64 paf 17192:
1.128 moko 17193:
17194: name=
17195: eval "lt_libprefix=\"$libname_spec\""
17196:
17197: cat >>confdefs.h <<_ACEOF
17198: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17199: _ACEOF
1.128 moko 17200:
17201:
17202: name=ltdl
17203: eval "LTDLOPEN=\"$libname_spec\""
17204:
17205:
17206:
17207:
17208:
17209:
17210:
17211:
17212: # Only expand once:
17213:
17214:
17215:
17216:
1.150 moko 17217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17218: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17219: if ${ac_cv_c_bigendian+:} false; then :
17220: $as_echo_n "(cached) " >&6
17221: else
17222: ac_cv_c_bigendian=unknown
17223: # See if we're dealing with a universal compiler.
17224: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225: /* end confdefs.h. */
17226: #ifndef __APPLE_CC__
17227: not a universal capable compiler
17228: #endif
17229: typedef int dummy;
17230:
17231: _ACEOF
17232: if ac_fn_c_try_compile "$LINENO"; then :
17233:
17234: # Check for potential -arch flags. It is not universal unless
17235: # there are at least two -arch flags with different values.
17236: ac_arch=
17237: ac_prev=
17238: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17239: if test -n "$ac_prev"; then
17240: case $ac_word in
17241: i?86 | x86_64 | ppc | ppc64)
17242: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17243: ac_arch=$ac_word
17244: else
17245: ac_cv_c_bigendian=universal
17246: break
17247: fi
17248: ;;
17249: esac
17250: ac_prev=
17251: elif test "x$ac_word" = "x-arch"; then
17252: ac_prev=arch
17253: fi
17254: done
17255: fi
17256: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17257: if test $ac_cv_c_bigendian = unknown; then
17258: # See if sys/param.h defines the BYTE_ORDER macro.
17259: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 17260: /* end confdefs.h. */
1.128 moko 17261: #include <sys/types.h>
1.150 moko 17262: #include <sys/param.h>
1.128 moko 17263:
17264: int
17265: main ()
17266: {
1.150 moko 17267: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17268: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17269: && LITTLE_ENDIAN)
17270: bogus endian macros
17271: #endif
1.64 paf 17272:
1.128 moko 17273: ;
17274: return 0;
17275: }
1.66 paf 17276: _ACEOF
1.150 moko 17277: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17278: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 17279: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 17280: /* end confdefs.h. */
1.128 moko 17281: #include <sys/types.h>
1.150 moko 17282: #include <sys/param.h>
1.64 paf 17283:
17284: int
17285: main ()
1.128 moko 17286: {
17287: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 17288: not big endian
17289: #endif
1.128 moko 17290:
17291: ;
17292: return 0;
1.64 paf 17293: }
17294: _ACEOF
1.150 moko 17295: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17296: ac_cv_c_bigendian=yes
1.64 paf 17297: else
1.150 moko 17298: ac_cv_c_bigendian=no
17299: fi
17300: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301: fi
17302: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17303: fi
17304: if test $ac_cv_c_bigendian = unknown; then
17305: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17306: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17307: /* end confdefs.h. */
17308: #include <limits.h>
1.64 paf 17309:
1.150 moko 17310: int
17311: main ()
17312: {
17313: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17314: bogus endian macros
17315: #endif
1.66 paf 17316:
1.150 moko 17317: ;
17318: return 0;
17319: }
1.62 paf 17320: _ACEOF
1.150 moko 17321: if ac_fn_c_try_compile "$LINENO"; then :
17322: # It does; now see whether it defined to _BIG_ENDIAN or not.
17323: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17324: /* end confdefs.h. */
1.150 moko 17325: #include <limits.h>
17326:
1.128 moko 17327: int
17328: main ()
17329: {
1.150 moko 17330: #ifndef _BIG_ENDIAN
17331: not big endian
17332: #endif
17333:
1.128 moko 17334: ;
17335: return 0;
17336: }
1.62 paf 17337: _ACEOF
1.150 moko 17338: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17339: ac_cv_c_bigendian=yes
1.150 moko 17340: else
17341: ac_cv_c_bigendian=no
1.128 moko 17342: fi
1.150 moko 17343: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17344: fi
1.150 moko 17345: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346: fi
17347: if test $ac_cv_c_bigendian = unknown; then
17348: # Compile a test program.
17349: if test "$cross_compiling" = yes; then :
17350: # Try to guess by grepping values from an object file.
17351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352: /* end confdefs.h. */
17353: short int ascii_mm[] =
17354: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17355: short int ascii_ii[] =
17356: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17357: int use_ascii (int i) {
17358: return ascii_mm[i] + ascii_ii[i];
17359: }
17360: short int ebcdic_ii[] =
17361: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17362: short int ebcdic_mm[] =
17363: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17364: int use_ebcdic (int i) {
17365: return ebcdic_mm[i] + ebcdic_ii[i];
17366: }
17367: extern int foo;
1.62 paf 17368:
1.150 moko 17369: int
17370: main ()
17371: {
17372: return use_ascii (foo) == use_ebcdic (foo);
17373: ;
17374: return 0;
17375: }
17376: _ACEOF
17377: if ac_fn_c_try_compile "$LINENO"; then :
17378: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17379: ac_cv_c_bigendian=yes
17380: fi
17381: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17382: if test "$ac_cv_c_bigendian" = unknown; then
17383: ac_cv_c_bigendian=no
17384: else
17385: # finding both strings is unlikely to happen, but who knows?
17386: ac_cv_c_bigendian=unknown
17387: fi
17388: fi
1.128 moko 17389: fi
1.150 moko 17390: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17391: else
1.150 moko 17392: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17393: /* end confdefs.h. */
1.150 moko 17394: $ac_includes_default
1.128 moko 17395: int
17396: main ()
17397: {
1.150 moko 17398:
17399: /* Are we little or big endian? From Harbison&Steele. */
17400: union
17401: {
17402: long int l;
17403: char c[sizeof (long int)];
17404: } u;
17405: u.l = 1;
17406: return u.c[sizeof (long int) - 1] == 1;
17407:
17408: ;
17409: return 0;
1.128 moko 17410: }
17411: _ACEOF
1.150 moko 17412: if ac_fn_c_try_run "$LINENO"; then :
1.128 moko 17413: ac_cv_c_bigendian=no
17414: else
1.150 moko 17415: ac_cv_c_bigendian=yes
1.128 moko 17416: fi
1.150 moko 17417: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17418: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 17419: fi
1.150 moko 17420:
17421: fi
1.66 paf 17422: fi
1.150 moko 17423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17424: $as_echo "$ac_cv_c_bigendian" >&6; }
17425: case $ac_cv_c_bigendian in #(
17426: yes)
17427:
17428: $as_echo "#define PA_BIG_ENDIAN /**/" >>confdefs.h
17429:
17430: ;; #(
17431: no)
1.128 moko 17432:
1.150 moko 17433: $as_echo "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 17434:
1.150 moko 17435: ;; #(
17436: universal)
1.128 moko 17437:
1.150 moko 17438: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 17439:
1.150 moko 17440: ;; #(
17441: *)
17442: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 17443: ;;
1.150 moko 17444: esac
1.66 paf 17445:
17446:
1.150 moko 17447: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17448: if test "x$ac_cv_type_size_t" = xyes; then :
1.62 paf 17449:
1.66 paf 17450: else
1.1 paf 17451:
1.66 paf 17452: cat >>confdefs.h <<_ACEOF
1.150 moko 17453: #define size_t unsigned int
1.66 paf 17454: _ACEOF
1.62 paf 17455:
17456: fi
1.66 paf 17457:
1.156 moko 17458: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17459: if test "x$ac_cv_type_ssize_t" = xyes; then :
17460:
17461: else
17462:
17463: cat >>confdefs.h <<_ACEOF
17464: #define ssize_t int
17465: _ACEOF
17466:
17467: fi
17468:
1.159 moko 17469: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17470: case $ac_cv_c_uint8_t in #(
17471: no|yes) ;; #(
17472: *)
17473:
17474: $as_echo "#define _UINT8_T 1" >>confdefs.h
17475:
17476:
17477: cat >>confdefs.h <<_ACEOF
17478: #define uint8_t $ac_cv_c_uint8_t
17479: _ACEOF
17480: ;;
17481: esac
17482:
1.165 moko 17483: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17484: case $ac_cv_c_uint16_t in #(
17485: no|yes) ;; #(
17486: *)
17487:
17488:
17489: cat >>confdefs.h <<_ACEOF
17490: #define uint16_t $ac_cv_c_uint16_t
17491: _ACEOF
17492: ;;
17493: esac
17494:
1.156 moko 17495: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17496: case $ac_cv_c_uint32_t in #(
17497: no|yes) ;; #(
17498: *)
17499:
17500: $as_echo "#define _UINT32_T 1" >>confdefs.h
17501:
17502:
17503: cat >>confdefs.h <<_ACEOF
17504: #define uint32_t $ac_cv_c_uint32_t
17505: _ACEOF
17506: ;;
17507: esac
1.128 moko 17508:
1.159 moko 17509: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17510: case $ac_cv_c_uint64_t in #(
17511: no|yes) ;; #(
17512: *)
17513:
17514: $as_echo "#define _UINT64_T 1" >>confdefs.h
17515:
17516:
17517: cat >>confdefs.h <<_ACEOF
17518: #define uint64_t $ac_cv_c_uint64_t
17519: _ACEOF
17520: ;;
17521: esac
17522:
17523:
1.161 moko 17524: ac_header_dirent=no
17525: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17526: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17528: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17529: if eval \${$as_ac_Header+:} false; then :
17530: $as_echo_n "(cached) " >&6
17531: else
17532: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533: /* end confdefs.h. */
17534: #include <sys/types.h>
17535: #include <$ac_hdr>
17536:
17537: int
17538: main ()
17539: {
17540: if ((DIR *) 0)
17541: return 0;
17542: ;
17543: return 0;
17544: }
17545: _ACEOF
17546: if ac_fn_c_try_compile "$LINENO"; then :
17547: eval "$as_ac_Header=yes"
17548: else
17549: eval "$as_ac_Header=no"
17550: fi
17551: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17552: fi
17553: eval ac_res=\$$as_ac_Header
17554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17555: $as_echo "$ac_res" >&6; }
17556: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17557: cat >>confdefs.h <<_ACEOF
17558: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17559: _ACEOF
17560:
17561: ac_header_dirent=$ac_hdr; break
17562: fi
17563:
17564: done
17565: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17566: if test $ac_header_dirent = dirent.h; then
17567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17568: $as_echo_n "checking for library containing opendir... " >&6; }
17569: if ${ac_cv_search_opendir+:} false; then :
17570: $as_echo_n "(cached) " >&6
17571: else
17572: ac_func_search_save_LIBS=$LIBS
17573: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574: /* end confdefs.h. */
17575:
17576: /* Override any GCC internal prototype to avoid an error.
17577: Use char because int might match the return type of a GCC
17578: builtin and then its argument prototype would still apply. */
17579: #ifdef __cplusplus
17580: extern "C"
17581: #endif
17582: char opendir ();
17583: int
17584: main ()
17585: {
17586: return opendir ();
17587: ;
17588: return 0;
17589: }
17590: _ACEOF
17591: for ac_lib in '' dir; do
17592: if test -z "$ac_lib"; then
17593: ac_res="none required"
17594: else
17595: ac_res=-l$ac_lib
17596: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17597: fi
17598: if ac_fn_c_try_link "$LINENO"; then :
17599: ac_cv_search_opendir=$ac_res
17600: fi
17601: rm -f core conftest.err conftest.$ac_objext \
17602: conftest$ac_exeext
17603: if ${ac_cv_search_opendir+:} false; then :
17604: break
17605: fi
17606: done
17607: if ${ac_cv_search_opendir+:} false; then :
17608:
17609: else
17610: ac_cv_search_opendir=no
17611: fi
17612: rm conftest.$ac_ext
17613: LIBS=$ac_func_search_save_LIBS
17614: fi
17615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17616: $as_echo "$ac_cv_search_opendir" >&6; }
17617: ac_res=$ac_cv_search_opendir
17618: if test "$ac_res" != no; then :
17619: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17620:
17621: fi
17622:
17623: else
17624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17625: $as_echo_n "checking for library containing opendir... " >&6; }
17626: if ${ac_cv_search_opendir+:} false; then :
17627: $as_echo_n "(cached) " >&6
17628: else
17629: ac_func_search_save_LIBS=$LIBS
17630: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631: /* end confdefs.h. */
17632:
17633: /* Override any GCC internal prototype to avoid an error.
17634: Use char because int might match the return type of a GCC
17635: builtin and then its argument prototype would still apply. */
17636: #ifdef __cplusplus
17637: extern "C"
17638: #endif
17639: char opendir ();
17640: int
17641: main ()
17642: {
17643: return opendir ();
17644: ;
17645: return 0;
17646: }
17647: _ACEOF
17648: for ac_lib in '' x; do
17649: if test -z "$ac_lib"; then
17650: ac_res="none required"
17651: else
17652: ac_res=-l$ac_lib
17653: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17654: fi
17655: if ac_fn_c_try_link "$LINENO"; then :
17656: ac_cv_search_opendir=$ac_res
17657: fi
17658: rm -f core conftest.err conftest.$ac_objext \
17659: conftest$ac_exeext
17660: if ${ac_cv_search_opendir+:} false; then :
17661: break
17662: fi
17663: done
17664: if ${ac_cv_search_opendir+:} false; then :
17665:
17666: else
17667: ac_cv_search_opendir=no
17668: fi
17669: rm conftest.$ac_ext
17670: LIBS=$ac_func_search_save_LIBS
17671: fi
17672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17673: $as_echo "$ac_cv_search_opendir" >&6; }
17674: ac_res=$ac_cv_search_opendir
17675: if test "$ac_res" != no; then :
17676: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17677:
17678: fi
17679:
17680: fi
17681:
17682:
17683:
17684: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17685: #include <sys/types.h>
17686: #ifdef HAVE_DIRENT_H
17687: # include <dirent.h>
17688: #else
17689: # define dirent direct
17690: # ifdef HAVE_SYS_NDIR_H
17691: # include <sys/ndir.h>
17692: # endif
17693: # ifdef HAVE_SYS_DIR_H
17694: # include <sys/dir.h>
17695: # endif
17696: # ifdef HAVE_NDIR_H
17697: # include <ndir.h>
17698: # endif
17699: #endif
17700:
17701: "
17702: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17703:
17704: cat >>confdefs.h <<_ACEOF
17705: #define HAVE_STRUCT_DIRENT_D_TYPE 1
17706: _ACEOF
17707:
17708:
17709: fi
17710:
17711:
1.159 moko 17712:
17713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17714: $as_echo_n "checking for ANSI C header files... " >&6; }
17715: if ${ac_cv_header_stdc+:} false; then :
17716: $as_echo_n "(cached) " >&6
17717: else
17718: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719: /* end confdefs.h. */
17720: #include <stdlib.h>
17721: #include <stdarg.h>
17722: #include <string.h>
17723: #include <float.h>
17724:
17725: int
17726: main ()
17727: {
17728:
17729: ;
17730: return 0;
17731: }
17732: _ACEOF
17733: if ac_fn_c_try_compile "$LINENO"; then :
17734: ac_cv_header_stdc=yes
17735: else
17736: ac_cv_header_stdc=no
17737: fi
17738: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739:
17740: if test $ac_cv_header_stdc = yes; then
17741: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17742: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743: /* end confdefs.h. */
17744: #include <string.h>
17745:
17746: _ACEOF
17747: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17748: $EGREP "memchr" >/dev/null 2>&1; then :
17749:
17750: else
17751: ac_cv_header_stdc=no
17752: fi
17753: rm -f conftest*
17754:
17755: fi
17756:
17757: if test $ac_cv_header_stdc = yes; then
17758: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17759: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760: /* end confdefs.h. */
17761: #include <stdlib.h>
17762:
17763: _ACEOF
17764: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17765: $EGREP "free" >/dev/null 2>&1; then :
17766:
17767: else
17768: ac_cv_header_stdc=no
17769: fi
17770: rm -f conftest*
17771:
17772: fi
17773:
17774: if test $ac_cv_header_stdc = yes; then
17775: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17776: if test "$cross_compiling" = yes; then :
17777: :
17778: else
17779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780: /* end confdefs.h. */
17781: #include <ctype.h>
17782: #include <stdlib.h>
17783: #if ((' ' & 0x0FF) == 0x020)
17784: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17785: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17786: #else
17787: # define ISLOWER(c) \
17788: (('a' <= (c) && (c) <= 'i') \
17789: || ('j' <= (c) && (c) <= 'r') \
17790: || ('s' <= (c) && (c) <= 'z'))
17791: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17792: #endif
17793:
17794: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17795: int
17796: main ()
17797: {
17798: int i;
17799: for (i = 0; i < 256; i++)
17800: if (XOR (islower (i), ISLOWER (i))
17801: || toupper (i) != TOUPPER (i))
17802: return 2;
17803: return 0;
17804: }
17805: _ACEOF
17806: if ac_fn_c_try_run "$LINENO"; then :
17807:
17808: else
17809: ac_cv_header_stdc=no
17810: fi
17811: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17812: conftest.$ac_objext conftest.beam conftest.$ac_ext
17813: fi
17814:
17815: fi
17816: fi
17817: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17818: $as_echo "$ac_cv_header_stdc" >&6; }
17819: if test $ac_cv_header_stdc = yes; then
17820:
17821: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17822:
17823: fi
1.128 moko 17824:
1.150 moko 17825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17826: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17827: if ${ac_cv_header_time+:} false; then :
17828: $as_echo_n "(cached) " >&6
1.62 paf 17829: else
1.150 moko 17830: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17831: /* end confdefs.h. */
1.66 paf 17832: #include <sys/types.h>
17833: #include <sys/time.h>
17834: #include <time.h>
1.62 paf 17835:
17836: int
17837: main ()
17838: {
1.66 paf 17839: if ((struct tm *) 0)
17840: return 0;
1.62 paf 17841: ;
17842: return 0;
17843: }
17844: _ACEOF
1.150 moko 17845: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 17846: ac_cv_header_time=yes
1.1 paf 17847: else
1.150 moko 17848: ac_cv_header_time=no
1.1 paf 17849: fi
1.150 moko 17850: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 17851: fi
1.150 moko 17852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17853: $as_echo "$ac_cv_header_time" >&6; }
1.66 paf 17854: if test $ac_cv_header_time = yes; then
1.1 paf 17855:
1.150 moko 17856: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.66 paf 17857:
1.1 paf 17858: fi
1.66 paf 17859:
1.1 paf 17860:
1.159 moko 17861: 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
17862: do :
17863: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17864: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17865: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17866: cat >>confdefs.h <<_ACEOF
17867: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17868: _ACEOF
17869:
17870: fi
1.150 moko 17871:
1.159 moko 17872: done
17873:
17874: for ac_header in assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h
17875: do :
17876: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17877: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17878: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17879: cat >>confdefs.h <<_ACEOF
17880: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17881: _ACEOF
17882:
17883: fi
17884:
17885: done
17886:
1.164 moko 17887: 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 17888: do :
17889: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17890: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17891: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17892: cat >>confdefs.h <<_ACEOF
17893: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17894: _ACEOF
17895:
17896: fi
17897:
17898: done
17899:
1.163 moko 17900: for ac_header in sys/socket.h netinet/in.h arpa/inet.h netdb.h
1.150 moko 17901: do :
17902: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17903: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17904: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.66 paf 17905: cat >>confdefs.h <<_ACEOF
1.150 moko 17906: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 17907: _ACEOF
17908:
17909: fi
17910:
1.66 paf 17911: done
1.62 paf 17912:
17913:
17914:
1.66 paf 17915: case "$host" in
1.107 misha 17916: *-freebsd4*)
17917:
1.150 moko 17918: $as_echo "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 17919:
17920: ;;
1.66 paf 17921: *-sunos5.6* | *-solaris2.6*)
1.150 moko 17922: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
17923: $as_echo_n "checking for main in -lxnet... " >&6; }
17924: if ${ac_cv_lib_xnet_main+:} false; then :
17925: $as_echo_n "(cached) " >&6
1.62 paf 17926: else
1.66 paf 17927: ac_check_lib_save_LIBS=$LIBS
17928: LIBS="-lxnet $LIBS"
1.150 moko 17929: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17930: /* end confdefs.h. */
17931:
1.66 paf 17932:
17933: int
17934: main ()
17935: {
1.150 moko 17936: return main ();
1.66 paf 17937: ;
17938: return 0;
17939: }
1.62 paf 17940: _ACEOF
1.150 moko 17941: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 17942: ac_cv_lib_xnet_main=yes
1.62 paf 17943: else
1.150 moko 17944: ac_cv_lib_xnet_main=no
1.62 paf 17945: fi
1.150 moko 17946: rm -f core conftest.err conftest.$ac_objext \
17947: conftest$ac_exeext conftest.$ac_ext
1.66 paf 17948: LIBS=$ac_check_lib_save_LIBS
1.62 paf 17949: fi
1.150 moko 17950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
17951: $as_echo "$ac_cv_lib_xnet_main" >&6; }
17952: if test "x$ac_cv_lib_xnet_main" = xyes; then :
1.62 paf 17953: cat >>confdefs.h <<_ACEOF
1.66 paf 17954: #define HAVE_LIBXNET 1
1.62 paf 17955: _ACEOF
1.1 paf 17956:
1.66 paf 17957: LIBS="-lxnet $LIBS"
17958:
1.1 paf 17959: fi
17960:
1.66 paf 17961: ;;
17962: *-sunos5* | *-solaris2*)
1.150 moko 17963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
17964: $as_echo_n "checking for main in -lsocket... " >&6; }
17965: if ${ac_cv_lib_socket_main+:} false; then :
17966: $as_echo_n "(cached) " >&6
1.62 paf 17967: else
1.66 paf 17968: ac_check_lib_save_LIBS=$LIBS
17969: LIBS="-lsocket $LIBS"
1.150 moko 17970: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17971: /* end confdefs.h. */
1.66 paf 17972:
17973:
1.62 paf 17974: int
17975: main ()
17976: {
1.150 moko 17977: return main ();
1.62 paf 17978: ;
17979: return 0;
17980: }
17981: _ACEOF
1.150 moko 17982: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 17983: ac_cv_lib_socket_main=yes
1.1 paf 17984: else
1.150 moko 17985: ac_cv_lib_socket_main=no
1.1 paf 17986: fi
1.150 moko 17987: rm -f core conftest.err conftest.$ac_objext \
17988: conftest$ac_exeext conftest.$ac_ext
1.66 paf 17989: LIBS=$ac_check_lib_save_LIBS
1.62 paf 17990: fi
1.150 moko 17991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
17992: $as_echo "$ac_cv_lib_socket_main" >&6; }
17993: if test "x$ac_cv_lib_socket_main" = xyes; then :
1.66 paf 17994: cat >>confdefs.h <<_ACEOF
17995: #define HAVE_LIBSOCKET 1
17996: _ACEOF
1.1 paf 17997:
1.66 paf 17998: LIBS="-lsocket $LIBS"
1.1 paf 17999:
18000: fi
18001:
1.150 moko 18002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
18003: $as_echo_n "checking for main in -lnsl... " >&6; }
18004: if ${ac_cv_lib_nsl_main+:} false; then :
18005: $as_echo_n "(cached) " >&6
1.62 paf 18006: else
1.66 paf 18007: ac_check_lib_save_LIBS=$LIBS
18008: LIBS="-lnsl $LIBS"
1.150 moko 18009: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18010: /* end confdefs.h. */
1.66 paf 18011:
18012:
1.62 paf 18013: int
18014: main ()
18015: {
1.150 moko 18016: return main ();
1.62 paf 18017: ;
18018: return 0;
18019: }
18020: _ACEOF
1.150 moko 18021: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18022: ac_cv_lib_nsl_main=yes
1.30 paf 18023: else
1.150 moko 18024: ac_cv_lib_nsl_main=no
1.30 paf 18025: fi
1.150 moko 18026: rm -f core conftest.err conftest.$ac_objext \
18027: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18028: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18029: fi
1.150 moko 18030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
18031: $as_echo "$ac_cv_lib_nsl_main" >&6; }
18032: if test "x$ac_cv_lib_nsl_main" = xyes; then :
1.66 paf 18033: cat >>confdefs.h <<_ACEOF
18034: #define HAVE_LIBNSL 1
18035: _ACEOF
1.30 paf 18036:
1.66 paf 18037: LIBS="-lnsl $LIBS"
1.30 paf 18038:
18039: fi
18040:
1.66 paf 18041: ;;
18042: *-nec-sysv4*)
1.150 moko 18043: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18044: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18045: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18046: $as_echo_n "(cached) " >&6
1.62 paf 18047: else
1.66 paf 18048: ac_check_lib_save_LIBS=$LIBS
18049: LIBS="-lnsl $LIBS"
1.150 moko 18050: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18051: /* end confdefs.h. */
1.66 paf 18052:
1.150 moko 18053: /* Override any GCC internal prototype to avoid an error.
18054: Use char because int might match the return type of a GCC
18055: builtin and then its argument prototype would still apply. */
1.66 paf 18056: #ifdef __cplusplus
18057: extern "C"
18058: #endif
18059: char gethostbyname ();
1.62 paf 18060: int
18061: main ()
18062: {
1.150 moko 18063: return gethostbyname ();
1.62 paf 18064: ;
18065: return 0;
18066: }
18067: _ACEOF
1.150 moko 18068: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18069: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18070: else
1.150 moko 18071: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18072: fi
1.150 moko 18073: rm -f core conftest.err conftest.$ac_objext \
18074: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18075: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18076: fi
1.150 moko 18077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18078: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18079: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.66 paf 18080: cat >>confdefs.h <<_ACEOF
18081: #define HAVE_LIBNSL 1
18082: _ACEOF
1.30 paf 18083:
1.66 paf 18084: LIBS="-lnsl $LIBS"
1.30 paf 18085:
18086: fi
18087:
1.150 moko 18088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18089: $as_echo_n "checking for socket in -lsocket... " >&6; }
18090: if ${ac_cv_lib_socket_socket+:} false; then :
18091: $as_echo_n "(cached) " >&6
1.8 paf 18092: else
1.66 paf 18093: ac_check_lib_save_LIBS=$LIBS
18094: LIBS="-lsocket $LIBS"
1.150 moko 18095: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18096: /* end confdefs.h. */
18097:
1.150 moko 18098: /* Override any GCC internal prototype to avoid an error.
18099: Use char because int might match the return type of a GCC
18100: builtin and then its argument prototype would still apply. */
1.66 paf 18101: #ifdef __cplusplus
18102: extern "C"
18103: #endif
18104: char socket ();
1.62 paf 18105: int
18106: main ()
18107: {
1.150 moko 18108: return socket ();
1.62 paf 18109: ;
18110: return 0;
18111: }
18112: _ACEOF
1.150 moko 18113: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18114: ac_cv_lib_socket_socket=yes
1.8 paf 18115: else
1.150 moko 18116: ac_cv_lib_socket_socket=no
1.8 paf 18117: fi
1.150 moko 18118: rm -f core conftest.err conftest.$ac_objext \
18119: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18120: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18121: fi
1.150 moko 18122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18123: $as_echo "$ac_cv_lib_socket_socket" >&6; }
18124: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.66 paf 18125: cat >>confdefs.h <<_ACEOF
1.128 moko 18126: #define HAVE_LIBSOCKET 1
1.66 paf 18127: _ACEOF
18128:
1.128 moko 18129: LIBS="-lsocket $LIBS"
1.66 paf 18130:
1.62 paf 18131: fi
18132:
1.66 paf 18133: ;;
1.128 moko 18134: *-cygwin*)
18135:
1.150 moko 18136: $as_echo "#define WIN32 /**/" >>confdefs.h
1.128 moko 18137:
1.66 paf 18138: ;;
18139: esac
1.1 paf 18140:
1.150 moko 18141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18142: $as_echo_n "checking for sin in -lm... " >&6; }
18143: if ${ac_cv_lib_m_sin+:} false; then :
18144: $as_echo_n "(cached) " >&6
1.1 paf 18145: else
1.62 paf 18146: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18147: LIBS="-lm $LIBS"
1.150 moko 18148: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18149: /* end confdefs.h. */
18150:
1.150 moko 18151: /* Override any GCC internal prototype to avoid an error.
18152: Use char because int might match the return type of a GCC
18153: builtin and then its argument prototype would still apply. */
1.66 paf 18154: #ifdef __cplusplus
18155: extern "C"
18156: #endif
18157: char sin ();
1.62 paf 18158: int
18159: main ()
18160: {
1.150 moko 18161: return sin ();
1.62 paf 18162: ;
18163: return 0;
18164: }
18165: _ACEOF
1.150 moko 18166: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18167: ac_cv_lib_m_sin=yes
1.62 paf 18168: else
1.150 moko 18169: ac_cv_lib_m_sin=no
1.62 paf 18170: fi
1.150 moko 18171: rm -f core conftest.err conftest.$ac_objext \
18172: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18173: LIBS=$ac_check_lib_save_LIBS
18174: fi
1.150 moko 18175: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18176: $as_echo "$ac_cv_lib_m_sin" >&6; }
18177: if test "x$ac_cv_lib_m_sin" = xyes; then :
1.62 paf 18178: cat >>confdefs.h <<_ACEOF
1.66 paf 18179: #define HAVE_LIBM 1
1.62 paf 18180: _ACEOF
1.1 paf 18181:
1.66 paf 18182: LIBS="-lm $LIBS"
1.1 paf 18183:
18184: fi
18185:
1.150 moko 18186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18187: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18188: if ${ac_cv_lib_crypt_crypt+:} false; then :
18189: $as_echo_n "(cached) " >&6
1.1 paf 18190: else
1.62 paf 18191: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18192: LIBS="-lcrypt $LIBS"
1.150 moko 18193: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18194: /* end confdefs.h. */
18195:
1.150 moko 18196: /* Override any GCC internal prototype to avoid an error.
18197: Use char because int might match the return type of a GCC
18198: builtin and then its argument prototype would still apply. */
1.66 paf 18199: #ifdef __cplusplus
18200: extern "C"
18201: #endif
18202: char crypt ();
1.62 paf 18203: int
18204: main ()
18205: {
1.150 moko 18206: return crypt ();
1.62 paf 18207: ;
18208: return 0;
18209: }
18210: _ACEOF
1.150 moko 18211: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18212: ac_cv_lib_crypt_crypt=yes
1.62 paf 18213: else
1.150 moko 18214: ac_cv_lib_crypt_crypt=no
1.62 paf 18215: fi
1.150 moko 18216: rm -f core conftest.err conftest.$ac_objext \
18217: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18218: LIBS=$ac_check_lib_save_LIBS
18219: fi
1.150 moko 18220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18221: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18222: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
1.62 paf 18223: cat >>confdefs.h <<_ACEOF
1.66 paf 18224: #define HAVE_LIBCRYPT 1
1.62 paf 18225: _ACEOF
1.1 paf 18226:
1.66 paf 18227: LIBS="-lcrypt $LIBS"
18228:
18229: fi
18230:
18231:
18232:
1.159 moko 18233: for ac_func in flock _locking fcntl lockf ftruncate fchmod
18234: do :
18235: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18236: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18237: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18238: cat >>confdefs.h <<_ACEOF
18239: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18240: _ACEOF
18241:
18242: fi
18243: done
1.66 paf 18244:
1.159 moko 18245: for ac_func in getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv
1.150 moko 18246: do :
18247: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18248: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18249: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.62 paf 18250: cat >>confdefs.h <<_ACEOF
1.150 moko 18251: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 18252: _ACEOF
1.1 paf 18253:
1.66 paf 18254: fi
18255: done
18256:
1.1 paf 18257:
18258:
1.159 moko 18259:
1.67 paf 18260: pa_func=sigsetjmp
1.150 moko 18261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
18262: $as_echo_n "checking for (maybe built-in) function $pa_func... " >&6; }
18263: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18264: /* end confdefs.h. */
18265:
18266: #ifdef HAVE_SETJMP_H
18267: # include <setjmp.h>
18268: #endif
18269:
18270: int
18271: main ()
18272: {
18273:
18274: $pa_func(0,0);
18275:
18276: ;
18277: return 0;
18278: }
18279: _ACEOF
1.150 moko 18280: if ac_fn_c_try_compile "$LINENO"; then :
18281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18282: $as_echo "yes" >&6; }
1.67 paf 18283: cat >>confdefs.h <<_ACEOF
1.150 moko 18284: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.67 paf 18285: _ACEOF
18286:
18287:
18288: else
1.150 moko 18289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18290: $as_echo "no" >&6; }
1.67 paf 18291:
18292: fi
1.150 moko 18293: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 18294:
18295:
18296:
1.159 moko 18297:
1.150 moko 18298: ac_ext=cpp
1.67 paf 18299: ac_cpp='$CXXCPP $CPPFLAGS'
18300: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18301: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18302: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18303:
18304:
18305:
1.158 moko 18306: for pa_func in trunc round sign
1.67 paf 18307: do
18308:
1.150 moko 18309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
18310: $as_echo_n "checking for (maybe built-in) math function $pa_func... " >&6; }
18311: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18312: /* end confdefs.h. */
18313:
18314: #ifdef HAVE_MATH_H
18315: # include <math.h>
18316: #endif
18317:
18318: int
18319: main ()
18320: {
18321:
18322: double result=$pa_func(1.6);
18323:
18324: ;
18325: return 0;
18326: }
18327: _ACEOF
1.150 moko 18328: if ac_fn_cxx_try_compile "$LINENO"; then :
18329: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18330: $as_echo "yes" >&6; }
1.67 paf 18331: cat >>confdefs.h <<_ACEOF
1.150 moko 18332: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.62 paf 18333: _ACEOF
1.66 paf 18334:
1.62 paf 18335: else
1.150 moko 18336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18337: $as_echo "no" >&6; }
1.62 paf 18338:
18339: fi
1.150 moko 18340: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18341:
18342: done
18343:
18344: ac_ext=c
18345: ac_cpp='$CPP $CPPFLAGS'
18346: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18347: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18348: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18349:
18350:
18351:
18352: for ac_func in qsort
18353: do :
18354: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
18355: if test "x$ac_cv_func_qsort" = xyes; then :
1.62 paf 18356: cat >>confdefs.h <<_ACEOF
1.150 moko 18357: #define HAVE_QSORT 1
1.62 paf 18358: _ACEOF
1.1 paf 18359:
1.66 paf 18360: else
1.150 moko 18361: as_fn_error $? "No qsort library function." "$LINENO" 5
1.1 paf 18362: fi
1.66 paf 18363: done
1.1 paf 18364:
18365:
1.62 paf 18366:
1.159 moko 18367:
1.150 moko 18368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
18369: $as_echo_n "checking for timezone variable... " >&6; }
18370: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18371: /* end confdefs.h. */
1.66 paf 18372: #include <time.h>
1.62 paf 18373: int
18374: main ()
18375: {
1.66 paf 18376: time_t test=timezone;
1.62 paf 18377: ;
18378: return 0;
18379: }
18380: _ACEOF
1.150 moko 18381: if ac_fn_c_try_compile "$LINENO"; then :
18382: $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1.158 moko 18383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18384: $as_echo "yes" >&6; }
1.62 paf 18385: else
1.150 moko 18386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387: $as_echo "no" >&6; }
1.62 paf 18388: fi
1.150 moko 18389: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18390:
1.150 moko 18391: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
18392: $as_echo_n "checking for daylight variable... " >&6; }
18393: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18394: /* end confdefs.h. */
1.66 paf 18395: #include <time.h>
1.62 paf 18396: int
18397: main ()
18398: {
1.66 paf 18399: int test=daylight;
1.62 paf 18400: ;
18401: return 0;
18402: }
18403: _ACEOF
1.150 moko 18404: if ac_fn_c_try_compile "$LINENO"; then :
18405: $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
1.158 moko 18406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18407: $as_echo "yes" >&6; }
1.62 paf 18408: else
1.150 moko 18409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18410: $as_echo "no" >&6; }
1.62 paf 18411: fi
1.150 moko 18412: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18413:
1.150 moko 18414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18415: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
18416: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18417: /* end confdefs.h. */
1.66 paf 18418: #include <time.h>
1.62 paf 18419: int
18420: main ()
18421: {
1.158 moko 18422: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 18423: ;
18424: return 0;
18425: }
18426: _ACEOF
1.150 moko 18427: if ac_fn_c_try_compile "$LINENO"; then :
18428: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
1.158 moko 18429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18430: $as_echo "yes" >&6; }
1.62 paf 18431: else
1.150 moko 18432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18433: $as_echo "no" >&6; }
1.62 paf 18434: fi
1.150 moko 18435: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18436:
1.150 moko 18437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
18438: $as_echo_n "checking for tm_tzadj in struct tm... " >&6; }
18439: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18440: /* end confdefs.h. */
1.66 paf 18441: #include <time.h>
1.62 paf 18442: int
18443: main ()
18444: {
1.158 moko 18445: struct tm tm; tm.tm_tzadj=0;
1.62 paf 18446: ;
18447: return 0;
18448: }
18449: _ACEOF
1.150 moko 18450: if ac_fn_c_try_compile "$LINENO"; then :
18451: $as_echo "#define HAVE_TM_TZADJ 1" >>confdefs.h
1.158 moko 18452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18453: $as_echo "yes" >&6; }
1.62 paf 18454: else
1.150 moko 18455: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18456: $as_echo "no" >&6; }
1.62 paf 18457: fi
1.150 moko 18458: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.31 paf 18459:
1.1 paf 18460:
18461:
18462:
1.62 paf 18463:
18464:
18465:
1.150 moko 18466: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 18467:
18468:
1.150 moko 18469: 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/memcached/Makefile src/lib/curl/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache/Makefile src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"
1.62 paf 18470:
18471: cat >confcache <<\_ACEOF
1.1 paf 18472: # This file is a shell script that caches the results of configure
18473: # tests run on this system so they can be shared between configure
1.62 paf 18474: # scripts and configure runs, see configure's option --config-cache.
18475: # It is not useful on other systems. If it contains results you don't
18476: # want to keep, you may remove or edit it.
1.1 paf 18477: #
1.62 paf 18478: # config.status only pays attention to the cache file if you give it
18479: # the --recheck option to rerun configure.
1.1 paf 18480: #
1.62 paf 18481: # `ac_cv_env_foo' variables (set or unset) will be overridden when
18482: # loading this file, other *unset* `ac_cv_foo' will be assigned the
18483: # following values.
18484:
18485: _ACEOF
18486:
1.1 paf 18487: # The following way of writing the cache mishandles newlines in values,
18488: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 18489: # So, we kill variables containing newlines.
1.1 paf 18490: # Ultrix sh set writes to stderr and can't be redirected directly,
18491: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 18492: (
18493: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18494: eval ac_val=\$$ac_var
18495: case $ac_val in #(
18496: *${as_nl}*)
18497: case $ac_var in #(
18498: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18499: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18500: esac
18501: case $ac_var in #(
18502: _ | IFS | as_nl) ;; #(
18503: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18504: *) { eval $ac_var=; unset $ac_var;} ;;
18505: esac ;;
18506: esac
18507: done
18508:
1.62 paf 18509: (set) 2>&1 |
1.150 moko 18510: case $as_nl`(ac_space=' '; set) 2>&1` in #(
18511: *${as_nl}ac_space=\ *)
18512: # `set' does not quote correctly, so add quotes: double-quote
18513: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 18514: sed -n \
1.86 paf 18515: "s/'/'\\\\''/g;
18516: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 18517: ;; #(
1.62 paf 18518: *)
18519: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 18520: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 18521: ;;
1.150 moko 18522: esac |
18523: sort
18524: ) |
1.62 paf 18525: sed '
1.150 moko 18526: /^ac_cv_env_/b end
1.62 paf 18527: t clear
1.150 moko 18528: :clear
1.62 paf 18529: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18530: t end
1.150 moko 18531: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18532: :end' >>confcache
18533: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18534: if test -w "$cache_file"; then
18535: if test "x$cache_file" != "x/dev/null"; then
18536: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18537: $as_echo "$as_me: updating cache $cache_file" >&6;}
18538: if test ! -f "$cache_file" || test -h "$cache_file"; then
18539: cat confcache >"$cache_file"
18540: else
18541: case $cache_file in #(
18542: */* | ?:*)
18543: mv -f confcache "$cache_file"$$ &&
18544: mv -f "$cache_file"$$ "$cache_file" ;; #(
18545: *)
18546: mv -f confcache "$cache_file" ;;
18547: esac
18548: fi
18549: fi
1.1 paf 18550: else
1.150 moko 18551: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18552: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 18553: fi
18554: fi
18555: rm -f confcache
18556:
18557: test "x$prefix" = xNONE && prefix=$ac_default_prefix
18558: # Let make expand exec_prefix.
18559: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18560:
1.62 paf 18561: DEFS=-DHAVE_CONFIG_H
18562:
18563: ac_libobjs=
18564: ac_ltlibobjs=
1.150 moko 18565: U=
1.62 paf 18566: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18567: # 1. Remove the extension, and $U if already installed.
1.150 moko 18568: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18569: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18570: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18571: # will be set to the directory where LIBOBJS objects are built.
18572: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18573: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 18574: done
18575: LIBOBJS=$ac_libobjs
18576:
18577: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 18578:
18579:
1.150 moko 18580: if test -n "$EXEEXT"; then
18581: am__EXEEXT_TRUE=
18582: am__EXEEXT_FALSE='#'
18583: else
18584: am__EXEEXT_TRUE='#'
18585: am__EXEEXT_FALSE=
18586: fi
18587:
1.62 paf 18588: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 18589: as_fn_error $? "conditional \"AMDEP\" was never defined.
18590: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18591: fi
1.66 paf 18592: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 18593: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18594: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18595: fi
1.66 paf 18596: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 18597: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18598: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18599: fi
1.122 moko 18600: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 18601: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
18602: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18603: fi
1.128 moko 18604: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 18605: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
18606: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 18607: fi
18608: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 18609: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
18610: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 18611: fi
1.150 moko 18612: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 18613:
18614: _ltdl_libobjs=
18615: _ltdl_ltlibobjs=
18616: if test -n "$_LT_LIBOBJS"; then
18617: # Remove the extension.
18618: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
18619: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
18620: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
18621: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
18622: done
18623: fi
18624: ltdl_LIBOBJS=$_ltdl_libobjs
18625:
18626: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
18627:
18628:
1.62 paf 18629:
1.150 moko 18630:
18631: : "${CONFIG_STATUS=./config.status}"
18632: ac_write_fail=0
1.62 paf 18633: ac_clean_files_save=$ac_clean_files
18634: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.150 moko 18635: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18636: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18637: as_write_fail=0
18638: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 18639: #! $SHELL
18640: # Generated by $as_me.
18641: # Run this file to recreate the current configuration.
18642: # Compiler output produced by configure, useful for debugging
18643: # configure, is in config.log if it exists.
18644:
18645: debug=false
18646: ac_cs_recheck=false
18647: ac_cs_silent=false
1.150 moko 18648:
1.62 paf 18649: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 18650: export SHELL
18651: _ASEOF
18652: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18653: ## -------------------- ##
18654: ## M4sh Initialization. ##
18655: ## -------------------- ##
1.62 paf 18656:
1.150 moko 18657: # Be more Bourne compatible
18658: DUALCASE=1; export DUALCASE # for MKS sh
18659: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 18660: emulate sh
18661: NULLCMD=:
1.150 moko 18662: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 18663: # is contrary to our usage. Disable this feature.
18664: alias -g '${1+"$@"}'='"$@"'
1.150 moko 18665: setopt NO_GLOB_SUBST
18666: else
18667: case `(set -o) 2>/dev/null` in #(
18668: *posix*) :
18669: set -o posix ;; #(
18670: *) :
18671: ;;
18672: esac
18673: fi
18674:
18675:
18676: as_nl='
18677: '
18678: export as_nl
18679: # Printing a long string crashes Solaris 7 /usr/bin/printf.
18680: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18681: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18682: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18683: # Prefer a ksh shell builtin over an external printf program on Solaris,
18684: # but without wasting forks for bash or zsh.
18685: if test -z "$BASH_VERSION$ZSH_VERSION" \
18686: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18687: as_echo='print -r --'
18688: as_echo_n='print -rn --'
18689: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18690: as_echo='printf %s\n'
18691: as_echo_n='printf %s'
18692: else
18693: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18694: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18695: as_echo_n='/usr/ucb/echo -n'
18696: else
18697: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18698: as_echo_n_body='eval
18699: arg=$1;
18700: case $arg in #(
18701: *"$as_nl"*)
18702: expr "X$arg" : "X\\(.*\\)$as_nl";
18703: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18704: esac;
18705: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18706: '
18707: export as_echo_n_body
18708: as_echo_n='sh -c $as_echo_n_body as_echo'
18709: fi
18710: export as_echo_body
18711: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 18712: fi
18713:
1.150 moko 18714: # The user is always right.
18715: if test "${PATH_SEPARATOR+set}" != set; then
18716: PATH_SEPARATOR=:
18717: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18718: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18719: PATH_SEPARATOR=';'
18720: }
1.62 paf 18721: fi
18722:
18723:
1.150 moko 18724: # IFS
18725: # We need space, tab and new line, in precisely that order. Quoting is
18726: # there to prevent editors from complaining about space-tab.
18727: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18728: # splitting by setting IFS to empty value.)
18729: IFS=" "" $as_nl"
18730:
18731: # Find who we are. Look in the path if we contain no directory separator.
18732: as_myself=
18733: case $0 in #((
18734: *[\\/]* ) as_myself=$0 ;;
18735: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18736: for as_dir in $PATH
18737: do
18738: IFS=$as_save_IFS
18739: test -z "$as_dir" && as_dir=.
18740: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18741: done
18742: IFS=$as_save_IFS
18743:
18744: ;;
18745: esac
18746: # We did not find ourselves, most probably we were run as `sh COMMAND'
18747: # in which case we are not to be found in the path.
18748: if test "x$as_myself" = x; then
18749: as_myself=$0
18750: fi
18751: if test ! -f "$as_myself"; then
18752: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18753: exit 1
18754: fi
18755:
18756: # Unset variables that we do not need and which cause bugs (e.g. in
18757: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18758: # suppresses any "Segmentation fault" message there. '((' could
18759: # trigger a bug in pdksh 5.2.14.
18760: for as_var in BASH_ENV ENV MAIL MAILPATH
18761: do eval test x\${$as_var+set} = xset \
18762: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18763: done
1.62 paf 18764: PS1='$ '
18765: PS2='> '
18766: PS4='+ '
18767:
18768: # NLS nuisances.
1.150 moko 18769: LC_ALL=C
18770: export LC_ALL
18771: LANGUAGE=C
18772: export LANGUAGE
18773:
18774: # CDPATH.
18775: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18776:
18777:
18778: # as_fn_error STATUS ERROR [LINENO LOG_FD]
18779: # ----------------------------------------
18780: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18781: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18782: # script with STATUS, using 1 if that was 0.
18783: as_fn_error ()
18784: {
18785: as_status=$1; test $as_status -eq 0 && as_status=1
18786: if test "$4"; then
18787: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18788: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18789: fi
18790: $as_echo "$as_me: error: $2" >&2
18791: as_fn_exit $as_status
18792: } # as_fn_error
18793:
18794:
18795: # as_fn_set_status STATUS
18796: # -----------------------
18797: # Set $? to STATUS, without forking.
18798: as_fn_set_status ()
18799: {
18800: return $1
18801: } # as_fn_set_status
18802:
18803: # as_fn_exit STATUS
18804: # -----------------
18805: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18806: as_fn_exit ()
18807: {
18808: set +e
18809: as_fn_set_status $1
18810: exit $1
18811: } # as_fn_exit
18812:
18813: # as_fn_unset VAR
18814: # ---------------
18815: # Portably unset VAR.
18816: as_fn_unset ()
18817: {
18818: { eval $1=; unset $1;}
18819: }
18820: as_unset=as_fn_unset
18821: # as_fn_append VAR VALUE
18822: # ----------------------
18823: # Append the text in VALUE to the end of the definition contained in VAR. Take
18824: # advantage of any shell optimizations that allow amortized linear growth over
18825: # repeated appends, instead of the typical quadratic growth present in naive
18826: # implementations.
18827: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18828: eval 'as_fn_append ()
18829: {
18830: eval $1+=\$2
18831: }'
18832: else
18833: as_fn_append ()
18834: {
18835: eval $1=\$$1\$2
18836: }
18837: fi # as_fn_append
18838:
18839: # as_fn_arith ARG...
18840: # ------------------
18841: # Perform arithmetic evaluation on the ARGs, and store the result in the
18842: # global $as_val. Take advantage of shells that can avoid forks. The arguments
18843: # must be portable across $(()) and expr.
18844: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18845: eval 'as_fn_arith ()
18846: {
18847: as_val=$(( $* ))
18848: }'
18849: else
18850: as_fn_arith ()
18851: {
18852: as_val=`expr "$@" || test $? -eq 1`
18853: }
18854: fi # as_fn_arith
18855:
1.1 paf 18856:
1.150 moko 18857: if expr a : '\(a\)' >/dev/null 2>&1 &&
18858: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 18859: as_expr=expr
18860: else
18861: as_expr=false
18862: fi
18863:
1.150 moko 18864: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 18865: as_basename=basename
18866: else
18867: as_basename=false
18868: fi
18869:
1.150 moko 18870: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18871: as_dirname=dirname
18872: else
18873: as_dirname=false
18874: fi
1.62 paf 18875:
1.150 moko 18876: as_me=`$as_basename -- "$0" ||
1.62 paf 18877: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18878: X"$0" : 'X\(//\)$' \| \
1.150 moko 18879: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18880: $as_echo X/"$0" |
18881: sed '/^.*\/\([^/][^/]*\)\/*$/{
18882: s//\1/
18883: q
18884: }
18885: /^X\/\(\/\/\)$/{
18886: s//\1/
18887: q
18888: }
18889: /^X\/\(\/\).*/{
18890: s//\1/
18891: q
18892: }
18893: s/.*/./; q'`
1.62 paf 18894:
18895: # Avoid depending upon Character Ranges.
18896: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18897: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18898: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18899: as_cr_digits='0123456789'
18900: as_cr_alnum=$as_cr_Letters$as_cr_digits
18901:
1.150 moko 18902: ECHO_C= ECHO_N= ECHO_T=
18903: case `echo -n x` in #(((((
18904: -n*)
18905: case `echo 'xy\c'` in
18906: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18907: xy) ECHO_C='\c';;
18908: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18909: ECHO_T=' ';;
18910: esac;;
18911: *)
18912: ECHO_N='-n';;
1.62 paf 18913: esac
18914:
1.150 moko 18915: rm -f conf$$ conf$$.exe conf$$.file
18916: if test -d conf$$.dir; then
18917: rm -f conf$$.dir/conf$$.file
1.62 paf 18918: else
1.150 moko 18919: rm -f conf$$.dir
18920: mkdir conf$$.dir 2>/dev/null
1.62 paf 18921: fi
1.150 moko 18922: if (echo >conf$$.file) 2>/dev/null; then
18923: if ln -s conf$$.file conf$$ 2>/dev/null; then
18924: as_ln_s='ln -s'
18925: # ... but there are two gotchas:
18926: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18927: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 18928: # In both cases, we have to default to `cp -pR'.
1.150 moko 18929: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 18930: as_ln_s='cp -pR'
1.150 moko 18931: elif ln conf$$.file conf$$ 2>/dev/null; then
18932: as_ln_s=ln
18933: else
1.166 moko 18934: as_ln_s='cp -pR'
1.62 paf 18935: fi
18936: else
1.166 moko 18937: as_ln_s='cp -pR'
1.62 paf 18938: fi
1.150 moko 18939: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18940: rmdir conf$$.dir 2>/dev/null
18941:
18942:
18943: # as_fn_mkdir_p
18944: # -------------
18945: # Create "$as_dir" as a directory, including parents if necessary.
18946: as_fn_mkdir_p ()
18947: {
18948:
18949: case $as_dir in #(
18950: -*) as_dir=./$as_dir;;
18951: esac
18952: test -d "$as_dir" || eval $as_mkdir_p || {
18953: as_dirs=
18954: while :; do
18955: case $as_dir in #(
18956: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18957: *) as_qdir=$as_dir;;
18958: esac
18959: as_dirs="'$as_qdir' $as_dirs"
18960: as_dir=`$as_dirname -- "$as_dir" ||
18961: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18962: X"$as_dir" : 'X\(//\)[^/]' \| \
18963: X"$as_dir" : 'X\(//\)$' \| \
18964: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18965: $as_echo X"$as_dir" |
18966: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18967: s//\1/
18968: q
18969: }
18970: /^X\(\/\/\)[^/].*/{
18971: s//\1/
18972: q
18973: }
18974: /^X\(\/\/\)$/{
18975: s//\1/
18976: q
18977: }
18978: /^X\(\/\).*/{
18979: s//\1/
18980: q
18981: }
18982: s/.*/./; q'`
18983: test -d "$as_dir" && break
18984: done
18985: test -z "$as_dirs" || eval "mkdir $as_dirs"
18986: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18987:
1.62 paf 18988:
1.150 moko 18989: } # as_fn_mkdir_p
1.62 paf 18990: if mkdir -p . 2>/dev/null; then
1.150 moko 18991: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 18992: else
1.86 paf 18993: test -d ./-p && rmdir ./-p
1.62 paf 18994: as_mkdir_p=false
18995: fi
18996:
1.166 moko 18997:
18998: # as_fn_executable_p FILE
18999: # -----------------------
19000: # Test if FILE is an executable regular file.
19001: as_fn_executable_p ()
19002: {
19003: test -f "$1" && test -x "$1"
19004: } # as_fn_executable_p
19005: as_test_x='test -x'
19006: as_executable_p=as_fn_executable_p
1.62 paf 19007:
19008: # Sed expression to map a string onto a valid CPP name.
1.86 paf 19009: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19010:
19011: # Sed expression to map a string onto a valid variable name.
1.86 paf 19012: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19013:
19014:
19015: exec 6>&1
1.150 moko 19016: ## ----------------------------------- ##
19017: ## Main body of $CONFIG_STATUS script. ##
19018: ## ----------------------------------- ##
19019: _ASEOF
19020: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 19021:
1.150 moko 19022: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19023: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 19024: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 19025: # values after options handling.
19026: ac_log="
1.169 ! moko 19027: This file was extended by parser $as_me 3.4.4b, which was
1.166 moko 19028: generated by GNU Autoconf 2.69. Invocation command line was
1.62 paf 19029:
19030: CONFIG_FILES = $CONFIG_FILES
19031: CONFIG_HEADERS = $CONFIG_HEADERS
19032: CONFIG_LINKS = $CONFIG_LINKS
19033: CONFIG_COMMANDS = $CONFIG_COMMANDS
19034: $ $0 $@
19035:
1.150 moko 19036: on `(hostname || uname -n) 2>/dev/null | sed 1q`
19037: "
19038:
1.62 paf 19039: _ACEOF
19040:
1.150 moko 19041: case $ac_config_files in *"
19042: "*) set x $ac_config_files; shift; ac_config_files=$*;;
19043: esac
1.62 paf 19044:
1.150 moko 19045: case $ac_config_headers in *"
19046: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19047: esac
1.62 paf 19048:
19049:
1.150 moko 19050: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19051: # Files that config.status was made for.
19052: config_files="$ac_config_files"
19053: config_headers="$ac_config_headers"
19054: config_commands="$ac_config_commands"
1.62 paf 19055:
1.150 moko 19056: _ACEOF
1.62 paf 19057:
1.150 moko 19058: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19059: ac_cs_usage="\
1.150 moko 19060: \`$as_me' instantiates files and other configuration actions
19061: from templates according to the current configuration. Unless the files
19062: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 19063:
1.150 moko 19064: Usage: $0 [OPTION]... [TAG]...
1.62 paf 19065:
19066: -h, --help print this help, then exit
1.150 moko 19067: -V, --version print version number and configuration settings, then exit
19068: --config print configuration, then exit
19069: -q, --quiet, --silent
19070: do not print progress messages
1.62 paf 19071: -d, --debug don't remove temporary files
19072: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 19073: --file=FILE[:TEMPLATE]
19074: instantiate the configuration file FILE
19075: --header=FILE[:TEMPLATE]
19076: instantiate the configuration header FILE
1.62 paf 19077:
19078: Configuration files:
19079: $config_files
19080:
19081: Configuration headers:
19082: $config_headers
19083:
19084: Configuration commands:
19085: $config_commands
19086:
1.150 moko 19087: Report bugs to the package provider."
19088:
1.62 paf 19089: _ACEOF
1.150 moko 19090: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19091: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.62 paf 19092: ac_cs_version="\\
1.169 ! moko 19093: parser config.status 3.4.4b
1.166 moko 19094: configured by $0, generated by GNU Autoconf 2.69,
1.150 moko 19095: with options \\"\$ac_cs_config\\"
1.62 paf 19096:
1.166 moko 19097: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 19098: This config.status script is free software; the Free Software Foundation
19099: gives unlimited permission to copy, distribute and modify it."
1.150 moko 19100:
19101: ac_pwd='$ac_pwd'
19102: srcdir='$srcdir'
19103: INSTALL='$INSTALL'
19104: MKDIR_P='$MKDIR_P'
19105: AWK='$AWK'
19106: test -n "\$AWK" || AWK=awk
1.62 paf 19107: _ACEOF
19108:
1.150 moko 19109: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19110: # The default lists apply if the user does not specify any file.
1.62 paf 19111: ac_need_defaults=:
19112: while test $# != 0
19113: do
19114: case $1 in
1.150 moko 19115: --*=?*)
19116: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19117: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 19118: ac_shift=:
19119: ;;
1.150 moko 19120: --*=)
19121: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19122: ac_optarg=
19123: ac_shift=:
19124: ;;
19125: *)
1.62 paf 19126: ac_option=$1
19127: ac_optarg=$2
19128: ac_shift=shift
19129: ;;
19130: esac
19131:
19132: case $ac_option in
19133: # Handling of the options.
19134: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19135: ac_cs_recheck=: ;;
1.150 moko 19136: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19137: $as_echo "$ac_cs_version"; exit ;;
19138: --config | --confi | --conf | --con | --co | --c )
19139: $as_echo "$ac_cs_config"; exit ;;
19140: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 19141: debug=: ;;
19142: --file | --fil | --fi | --f )
19143: $ac_shift
1.150 moko 19144: case $ac_optarg in
19145: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19146: '') as_fn_error $? "missing file argument" ;;
19147: esac
19148: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 19149: ac_need_defaults=false;;
19150: --header | --heade | --head | --hea )
19151: $ac_shift
1.150 moko 19152: case $ac_optarg in
19153: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19154: esac
19155: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 19156: ac_need_defaults=false;;
1.150 moko 19157: --he | --h)
19158: # Conflict between --help and --header
19159: as_fn_error $? "ambiguous option: \`$1'
19160: Try \`$0 --help' for more information.";;
19161: --help | --hel | -h )
19162: $as_echo "$ac_cs_usage"; exit ;;
1.62 paf 19163: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19164: | -silent | --silent | --silen | --sile | --sil | --si | --s)
19165: ac_cs_silent=: ;;
19166:
19167: # This is an error.
1.150 moko 19168: -*) as_fn_error $? "unrecognized option: \`$1'
19169: Try \`$0 --help' for more information." ;;
1.62 paf 19170:
1.150 moko 19171: *) as_fn_append ac_config_targets " $1"
19172: ac_need_defaults=false ;;
1.62 paf 19173:
19174: esac
19175: shift
19176: done
19177:
19178: ac_configure_extra_args=
19179:
19180: if $ac_cs_silent; then
19181: exec 6>/dev/null
1.150 moko 19182: ac_configure_extra_args="$ac_configure_extra_args --silent"
19183: fi
19184:
19185: _ACEOF
19186: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19187: if \$ac_cs_recheck; then
1.166 moko 19188: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 19189: shift
19190: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19191: CONFIG_SHELL='$SHELL'
19192: export CONFIG_SHELL
19193: exec "\$@"
19194: fi
19195:
19196: _ACEOF
19197: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19198: exec 5>>config.log
19199: {
19200: echo
19201: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19202: ## Running $as_me. ##
19203: _ASBOX
19204: $as_echo "$ac_log"
19205: } >&5
1.62 paf 19206:
19207: _ACEOF
1.150 moko 19208: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 19209: #
1.150 moko 19210: # INIT-COMMANDS
1.1 paf 19211: #
1.62 paf 19212: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19213:
1.128 moko 19214:
19215: # The HP-UX ksh and POSIX shell print the target directory to stdout
19216: # if CDPATH is set.
19217: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19218:
19219: sed_quote_subst='$sed_quote_subst'
19220: double_quote_subst='$double_quote_subst'
19221: delay_variable_subst='$delay_variable_subst'
19222: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19223: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19224: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19225: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19226: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 19227: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 19228: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 19229: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 19230: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19231: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19232: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19233: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19234: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19235: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19236: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19237: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19238: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19239: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19240: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19241: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19242: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19243: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19244: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19245: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19246: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19247: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19248: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19249: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19250: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19251: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19252: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19253: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19254: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19255: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19256: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19257: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19258: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19259: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19260: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19261: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19262: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19263: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19264: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19265: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19266: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19267: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19268: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19269: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19270: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19271: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19272: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19273: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19274: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19275: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19276: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19277: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19278: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19279: 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"`'
19280: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19281: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19282: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19283: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19284: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19285: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19286: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19287: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19288: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19289: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19290: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19291: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19292: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19293: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19294: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19295: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19296: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19297: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19298: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19299: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19300: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19301: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19302: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19303: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19304: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19305: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19306: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19307: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19308: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19309: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19310: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19311: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19312: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19313: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19314: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19315: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19316: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19317: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19318: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19319: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19320: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19321: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19322: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19323: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19324: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19325: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19326: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19327: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19328: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19329: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19330: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19331: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19332: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19333: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19334: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19335: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19336: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19337: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19338: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19339: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19340: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19341: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19342: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19343: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19344: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19345: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19346: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19347: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19348: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19349: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19350: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19351: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19352: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19353: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19354: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19355: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19356: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19357: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19358: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19359: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19360: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19361: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19362: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19363: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19364: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19365: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19366: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19367: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19368: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19369: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19370: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19371: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19372: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19373: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19374: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19375: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19376: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19377: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19378: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19379: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19380: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19381: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19382: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19383: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19384: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19385: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19386: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19387: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19388: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19389: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19390: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19391: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19392: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19393: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19394: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19395: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19396: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19397: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19398: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19399: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19400: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19401: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19402: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19403: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19404: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19405: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19406: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19407:
19408: LTCC='$LTCC'
19409: LTCFLAGS='$LTCFLAGS'
19410: compiler='$compiler_DEFAULT'
19411:
19412: # A function that is used when there is no print builtin or printf.
19413: func_fallback_echo ()
19414: {
19415: eval 'cat <<_LTECHO_EOF
19416: \$1
19417: _LTECHO_EOF'
19418: }
19419:
19420: # Quote evaled strings.
19421: for var in AS \
19422: DLLTOOL \
19423: OBJDUMP \
19424: SHELL \
19425: ECHO \
19426: PATH_SEPARATOR \
19427: SED \
19428: GREP \
19429: EGREP \
19430: FGREP \
19431: LD \
19432: NM \
19433: LN_S \
19434: lt_SP2NL \
19435: lt_NL2SP \
19436: reload_flag \
19437: deplibs_check_method \
19438: file_magic_cmd \
19439: file_magic_glob \
19440: want_nocaseglob \
19441: sharedlib_from_linklib_cmd \
19442: AR \
19443: AR_FLAGS \
19444: archiver_list_spec \
19445: STRIP \
19446: RANLIB \
19447: CC \
19448: CFLAGS \
19449: compiler \
19450: lt_cv_sys_global_symbol_pipe \
19451: lt_cv_sys_global_symbol_to_cdecl \
19452: lt_cv_sys_global_symbol_to_c_name_address \
19453: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19454: nm_file_list_spec \
19455: lt_prog_compiler_no_builtin_flag \
19456: lt_prog_compiler_pic \
19457: lt_prog_compiler_wl \
19458: lt_prog_compiler_static \
19459: lt_cv_prog_compiler_c_o \
19460: need_locks \
19461: MANIFEST_TOOL \
19462: DSYMUTIL \
19463: NMEDIT \
19464: LIPO \
19465: OTOOL \
19466: OTOOL64 \
19467: shrext_cmds \
19468: export_dynamic_flag_spec \
19469: whole_archive_flag_spec \
19470: compiler_needs_object \
19471: with_gnu_ld \
19472: allow_undefined_flag \
19473: no_undefined_flag \
19474: hardcode_libdir_flag_spec \
19475: hardcode_libdir_separator \
19476: exclude_expsyms \
19477: include_expsyms \
19478: file_list_spec \
19479: variables_saved_for_relink \
19480: libname_spec \
19481: library_names_spec \
19482: soname_spec \
19483: install_override_mode \
19484: finish_eval \
19485: old_striplib \
19486: striplib \
19487: compiler_lib_search_dirs \
19488: predep_objects \
19489: postdep_objects \
19490: predeps \
19491: postdeps \
19492: compiler_lib_search_path \
19493: LD_CXX \
19494: reload_flag_CXX \
19495: compiler_CXX \
19496: lt_prog_compiler_no_builtin_flag_CXX \
19497: lt_prog_compiler_pic_CXX \
19498: lt_prog_compiler_wl_CXX \
19499: lt_prog_compiler_static_CXX \
19500: lt_cv_prog_compiler_c_o_CXX \
19501: export_dynamic_flag_spec_CXX \
19502: whole_archive_flag_spec_CXX \
19503: compiler_needs_object_CXX \
19504: with_gnu_ld_CXX \
19505: allow_undefined_flag_CXX \
19506: no_undefined_flag_CXX \
19507: hardcode_libdir_flag_spec_CXX \
19508: hardcode_libdir_separator_CXX \
19509: exclude_expsyms_CXX \
19510: include_expsyms_CXX \
19511: file_list_spec_CXX \
19512: compiler_lib_search_dirs_CXX \
19513: predep_objects_CXX \
19514: postdep_objects_CXX \
19515: predeps_CXX \
19516: postdeps_CXX \
19517: compiler_lib_search_path_CXX; do
19518: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19519: *[\\\\\\\`\\"\\\$]*)
19520: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19521: ;;
19522: *)
19523: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19524: ;;
19525: esac
19526: done
19527:
19528: # Double-quote double-evaled strings.
19529: for var in reload_cmds \
19530: old_postinstall_cmds \
19531: old_postuninstall_cmds \
19532: old_archive_cmds \
19533: extract_expsyms_cmds \
19534: old_archive_from_new_cmds \
19535: old_archive_from_expsyms_cmds \
19536: archive_cmds \
19537: archive_expsym_cmds \
19538: module_cmds \
19539: module_expsym_cmds \
19540: export_symbols_cmds \
19541: prelink_cmds \
19542: postlink_cmds \
19543: postinstall_cmds \
19544: postuninstall_cmds \
19545: finish_cmds \
19546: sys_lib_search_path_spec \
19547: sys_lib_dlsearch_path_spec \
19548: reload_cmds_CXX \
19549: old_archive_cmds_CXX \
19550: old_archive_from_new_cmds_CXX \
19551: old_archive_from_expsyms_cmds_CXX \
19552: archive_cmds_CXX \
19553: archive_expsym_cmds_CXX \
19554: module_cmds_CXX \
19555: module_expsym_cmds_CXX \
19556: export_symbols_cmds_CXX \
19557: prelink_cmds_CXX \
19558: postlink_cmds_CXX; do
19559: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19560: *[\\\\\\\`\\"\\\$]*)
19561: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19562: ;;
19563: *)
19564: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19565: ;;
19566: esac
19567: done
19568:
19569: ac_aux_dir='$ac_aux_dir'
19570: xsi_shell='$xsi_shell'
19571: lt_shell_append='$lt_shell_append'
19572:
19573: # See if we are running on zsh, and set the options which allow our
19574: # commands through without removal of \ escapes INIT.
19575: if test -n "\${ZSH_VERSION+set}" ; then
19576: setopt NO_GLOB_SUBST
19577: fi
19578:
19579:
19580: PACKAGE='$PACKAGE'
19581: VERSION='$VERSION'
19582: TIMESTAMP='$TIMESTAMP'
19583: RM='$RM'
19584: ofile='$ofile'
19585:
19586:
19587:
19588:
19589:
19590:
1.62 paf 19591: _ACEOF
19592:
1.150 moko 19593: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19594:
1.150 moko 19595: # Handling of arguments.
1.62 paf 19596: for ac_config_target in $ac_config_targets
1.1 paf 19597: do
1.150 moko 19598: case $ac_config_target in
19599: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19600: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19601: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
19602: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19603: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19604: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
19605: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
19606: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
19607: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
19608: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
19609: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19610: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
19611: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
19612: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
19613: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
19614: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
19615: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
19616: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
19617: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
19618: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
19619: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
19620: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
19621: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
19622: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
19623: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
19624: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
19625: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
19626: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
19627: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
19628: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
19629: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
19630: "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
19631: "bin/auto.p.dist") CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
19632:
19633: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 paf 19634: esac
19635: done
19636:
1.150 moko 19637:
1.62 paf 19638: # If the user did not use the arguments to specify the items to instantiate,
19639: # then the envvar interface is used. Set only those that are not.
19640: # We use the long form for the default assignment because of an extremely
19641: # bizarre bug on SunOS 4.1.3.
19642: if $ac_need_defaults; then
19643: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19644: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19645: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19646: fi
19647:
19648: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 19649: # simply because there is no reason against having it here, and in addition,
1.62 paf 19650: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 19651: # Hook for its removal unless debugging.
19652: # Note that there is a small window in which the directory will not be cleaned:
19653: # after its creation but before its name has been assigned to `$tmp'.
1.62 paf 19654: $debug ||
19655: {
1.150 moko 19656: tmp= ac_tmp=
19657: trap 'exit_status=$?
19658: : "${ac_tmp:=$tmp}"
19659: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19660: ' 0
19661: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 19662: }
19663: # Create a (secure) tmp directory for tmp files.
19664:
19665: {
1.150 moko 19666: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19667: test -d "$tmp"
1.62 paf 19668: } ||
19669: {
1.150 moko 19670: tmp=./conf$$-$RANDOM
19671: (umask 077 && mkdir "$tmp")
19672: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19673: ac_tmp=$tmp
19674:
19675: # Set up the scripts for CONFIG_FILES section.
19676: # No need to generate them if there are no CONFIG_FILES.
19677: # This happens for instance with `./config.status config.h'.
19678: if test -n "$CONFIG_FILES"; then
19679:
19680:
19681: ac_cr=`echo X | tr X '\015'`
19682: # On cygwin, bash can eat \r inside `` if the user requested igncr.
19683: # But we know of no other shell where ac_cr would be empty at this
19684: # point, so we can use a bashism as a fallback.
19685: if test "x$ac_cr" = x; then
19686: eval ac_cr=\$\'\\r\'
19687: fi
19688: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19689: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19690: ac_cs_awk_cr='\\r'
19691: else
19692: ac_cs_awk_cr=$ac_cr
19693: fi
19694:
19695: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19696: _ACEOF
19697:
19698:
1.62 paf 19699: {
1.150 moko 19700: echo "cat >conf$$subs.awk <<_ACEOF" &&
19701: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19702: echo "_ACEOF"
19703: } >conf$$subs.sh ||
19704: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19705: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19706: ac_delim='%!_!# '
19707: for ac_last_try in false false false false false :; do
19708: . ./conf$$subs.sh ||
19709: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19710:
19711: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19712: if test $ac_delim_n = $ac_delim_num; then
19713: break
19714: elif $ac_last_try; then
19715: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19716: else
19717: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19718: fi
19719: done
19720: rm -f conf$$subs.sh
19721:
19722: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19723: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19724: _ACEOF
19725: sed -n '
19726: h
19727: s/^/S["/; s/!.*/"]=/
19728: p
19729: g
19730: s/^[^!]*!//
19731: :repl
19732: t repl
19733: s/'"$ac_delim"'$//
19734: t delim
19735: :nl
19736: h
19737: s/\(.\{148\}\)..*/\1/
19738: t more1
19739: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19740: p
19741: n
19742: b repl
19743: :more1
19744: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19745: p
19746: g
19747: s/.\{148\}//
19748: t nl
19749: :delim
19750: h
19751: s/\(.\{148\}\)..*/\1/
19752: t more2
19753: s/["\\]/\\&/g; s/^/"/; s/$/"/
19754: p
19755: b
19756: :more2
19757: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19758: p
19759: g
19760: s/.\{148\}//
19761: t delim
19762: ' <conf$$subs.awk | sed '
19763: /^[^""]/{
19764: N
19765: s/\n//
19766: }
19767: ' >>$CONFIG_STATUS || ac_write_fail=1
19768: rm -f conf$$subs.awk
19769: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19770: _ACAWK
19771: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19772: for (key in S) S_is_set[key] = 1
19773: FS = ""
19774:
19775: }
19776: {
19777: line = $ 0
19778: nfields = split(line, field, "@")
19779: substed = 0
19780: len = length(field[1])
19781: for (i = 2; i < nfields; i++) {
19782: key = field[i]
19783: keylen = length(key)
19784: if (S_is_set[key]) {
19785: value = S[key]
19786: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19787: len += length(value) + length(field[++i])
19788: substed = 1
19789: } else
19790: len += 1 + keylen
19791: }
19792:
19793: print line
1.62 paf 19794: }
19795:
1.150 moko 19796: _ACAWK
19797: _ACEOF
19798: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19799: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19800: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19801: else
19802: cat
19803: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19804: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 19805: _ACEOF
1.1 paf 19806:
1.150 moko 19807: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19808: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19809: # trailing colons and then remove the whole line if VPATH becomes empty
19810: # (actually we leave an empty line to preserve line numbers).
19811: if test "x$srcdir" = x.; then
19812: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19813: h
19814: s///
19815: s/^/:/
19816: s/[ ]*$/:/
19817: s/:\$(srcdir):/:/g
19818: s/:\${srcdir}:/:/g
19819: s/:@srcdir@:/:/g
19820: s/^:*//
19821: s/:*$//
19822: x
19823: s/\(=[ ]*\).*/\1/
19824: G
19825: s/\n//
19826: s/^[^=]*=[ ]*$//
19827: }'
19828: fi
1.62 paf 19829:
1.150 moko 19830: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19831: fi # test -n "$CONFIG_FILES"
1.1 paf 19832:
1.150 moko 19833: # Set up the scripts for CONFIG_HEADERS section.
19834: # No need to generate them if there are no CONFIG_HEADERS.
19835: # This happens for instance with `./config.status Makefile'.
19836: if test -n "$CONFIG_HEADERS"; then
19837: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19838: BEGIN {
19839: _ACEOF
19840:
19841: # Transform confdefs.h into an awk script `defines.awk', embedded as
19842: # here-document in config.status, that substitutes the proper values into
19843: # config.h.in to produce config.h.
19844:
19845: # Create a delimiter string that does not exist in confdefs.h, to ease
19846: # handling of long lines.
19847: ac_delim='%!_!# '
19848: for ac_last_try in false false :; do
19849: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19850: if test -z "$ac_tt"; then
19851: break
19852: elif $ac_last_try; then
19853: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19854: else
19855: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 19856: fi
1.150 moko 19857: done
1.1 paf 19858:
1.150 moko 19859: # For the awk script, D is an array of macro values keyed by name,
19860: # likewise P contains macro parameters if any. Preserve backslash
19861: # newline sequences.
19862:
19863: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19864: sed -n '
19865: s/.\{148\}/&'"$ac_delim"'/g
19866: t rset
19867: :rset
19868: s/^[ ]*#[ ]*define[ ][ ]*/ /
19869: t def
19870: d
19871: :def
19872: s/\\$//
19873: t bsnl
19874: s/["\\]/\\&/g
19875: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19876: D["\1"]=" \3"/p
19877: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19878: d
19879: :bsnl
19880: s/["\\]/\\&/g
19881: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19882: D["\1"]=" \3\\\\\\n"\\/p
19883: t cont
19884: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19885: t cont
19886: d
19887: :cont
19888: n
19889: s/.\{148\}/&'"$ac_delim"'/g
19890: t clear
19891: :clear
19892: s/\\$//
19893: t bsnlc
19894: s/["\\]/\\&/g; s/^/"/; s/$/"/p
19895: d
19896: :bsnlc
19897: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19898: b cont
19899: ' <confdefs.h | sed '
19900: s/'"$ac_delim"'/"\\\
19901: "/g' >>$CONFIG_STATUS || ac_write_fail=1
19902:
19903: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19904: for (key in D) D_is_set[key] = 1
19905: FS = ""
19906: }
19907: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19908: line = \$ 0
19909: split(line, arg, " ")
19910: if (arg[1] == "#") {
19911: defundef = arg[2]
19912: mac1 = arg[3]
19913: } else {
19914: defundef = substr(arg[1], 2)
19915: mac1 = arg[2]
19916: }
19917: split(mac1, mac2, "(") #)
19918: macro = mac2[1]
19919: prefix = substr(line, 1, index(line, defundef) - 1)
19920: if (D_is_set[macro]) {
19921: # Preserve the white space surrounding the "#".
19922: print prefix "define", macro P[macro] D[macro]
19923: next
19924: } else {
19925: # Replace #undef with comments. This is necessary, for example,
19926: # in the case of _POSIX_SOURCE, which is predefined and required
19927: # on some systems where configure will not decide to define it.
19928: if (defundef == "undef") {
19929: print "/*", prefix defundef, macro, "*/"
19930: next
19931: }
19932: }
19933: }
19934: { print }
19935: _ACAWK
1.62 paf 19936: _ACEOF
1.150 moko 19937: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19938: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19939: fi # test -n "$CONFIG_HEADERS"
19940:
19941:
19942: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19943: shift
19944: for ac_tag
19945: do
19946: case $ac_tag in
19947: :[FHLC]) ac_mode=$ac_tag; continue;;
19948: esac
19949: case $ac_mode$ac_tag in
19950: :[FHL]*:*);;
19951: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19952: :[FH]-) ac_tag=-:-;;
19953: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19954: esac
19955: ac_save_IFS=$IFS
19956: IFS=:
19957: set x $ac_tag
19958: IFS=$ac_save_IFS
19959: shift
19960: ac_file=$1
19961: shift
19962:
19963: case $ac_mode in
19964: :L) ac_source=$1;;
19965: :[FH])
19966: ac_file_inputs=
19967: for ac_f
19968: do
19969: case $ac_f in
19970: -) ac_f="$ac_tmp/stdin";;
19971: *) # Look for the file first in the build tree, then in the source tree
19972: # (if the path is not absolute). The absolute path cannot be DOS-style,
19973: # because $ac_f cannot contain `:'.
19974: test -f "$ac_f" ||
19975: case $ac_f in
19976: [\\/$]*) false;;
19977: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19978: esac ||
19979: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19980: esac
19981: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19982: as_fn_append ac_file_inputs " '$ac_f'"
19983: done
19984:
19985: # Let's still pretend it is `configure' which instantiates (i.e., don't
19986: # use $as_me), people would be surprised to read:
19987: # /* config.h. Generated by config.status. */
19988: configure_input='Generated from '`
19989: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19990: `' by configure.'
19991: if test x"$ac_file" != x-; then
19992: configure_input="$ac_file. $configure_input"
19993: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19994: $as_echo "$as_me: creating $ac_file" >&6;}
19995: fi
19996: # Neutralize special characters interpreted by sed in replacement strings.
19997: case $configure_input in #(
19998: *\&* | *\|* | *\\* )
19999: ac_sed_conf_input=`$as_echo "$configure_input" |
20000: sed 's/[\\\\&|]/\\\\&/g'`;; #(
20001: *) ac_sed_conf_input=$configure_input;;
20002: esac
20003:
20004: case $ac_tag in
20005: *:-:* | *:-) cat >"$ac_tmp/stdin" \
20006: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20007: esac
20008: ;;
1.1 paf 20009: esac
20010:
1.150 moko 20011: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 20012: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20013: X"$ac_file" : 'X\(//\)[^/]' \| \
20014: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 20015: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20016: $as_echo X"$ac_file" |
20017: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20018: s//\1/
20019: q
20020: }
20021: /^X\(\/\/\)[^/].*/{
20022: s//\1/
20023: q
20024: }
20025: /^X\(\/\/\)$/{
20026: s//\1/
20027: q
20028: }
20029: /^X\(\/\).*/{
20030: s//\1/
20031: q
20032: }
20033: s/.*/./; q'`
20034: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 20035: ac_builddir=.
20036:
1.150 moko 20037: case "$ac_dir" in
20038: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20039: *)
20040: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20041: # A ".." for each directory in $ac_dir_suffix.
20042: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20043: case $ac_top_builddir_sub in
20044: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20045: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20046: esac ;;
20047: esac
20048: ac_abs_top_builddir=$ac_pwd
20049: ac_abs_builddir=$ac_pwd$ac_dir_suffix
20050: # for backward compatibility:
20051: ac_top_builddir=$ac_top_build_prefix
1.62 paf 20052:
20053: case $srcdir in
1.150 moko 20054: .) # We are building in place.
1.62 paf 20055: ac_srcdir=.
1.150 moko 20056: ac_top_srcdir=$ac_top_builddir_sub
20057: ac_abs_top_srcdir=$ac_pwd ;;
20058: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 20059: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 20060: ac_top_srcdir=$srcdir
20061: ac_abs_top_srcdir=$srcdir ;;
20062: *) # Relative name.
20063: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20064: ac_top_srcdir=$ac_top_build_prefix$srcdir
20065: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 20066: esac
1.150 moko 20067: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 20068:
1.62 paf 20069:
1.150 moko 20070: case $ac_mode in
20071: :F)
20072: #
20073: # CONFIG_FILE
20074: #
1.1 paf 20075:
1.62 paf 20076: case $INSTALL in
20077: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 20078: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 20079: esac
1.150 moko 20080: ac_MKDIR_P=$MKDIR_P
20081: case $MKDIR_P in
20082: [\\/$]* | ?:[\\/]* ) ;;
20083: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20084: esac
20085: _ACEOF
1.1 paf 20086:
1.150 moko 20087: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20088: # If the template does not know about datarootdir, expand it.
20089: # FIXME: This hack should be removed a few years after 2.60.
20090: ac_datarootdir_hack=; ac_datarootdir_seen=
20091: ac_sed_dataroot='
20092: /datarootdir/ {
20093: p
20094: q
20095: }
20096: /@datadir@/p
20097: /@docdir@/p
20098: /@infodir@/p
20099: /@localedir@/p
20100: /@mandir@/p'
20101: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20102: *datarootdir*) ac_datarootdir_seen=yes;;
20103: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20104: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20105: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20106: _ACEOF
20107: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20108: ac_datarootdir_hack='
20109: s&@datadir@&$datadir&g
20110: s&@docdir@&$docdir&g
20111: s&@infodir@&$infodir&g
20112: s&@localedir@&$localedir&g
20113: s&@mandir@&$mandir&g
20114: s&\\\${datarootdir}&$datarootdir&g' ;;
20115: esac
20116: _ACEOF
1.62 paf 20117:
1.150 moko 20118: # Neutralize VPATH when `$srcdir' = `.'.
20119: # Shell code in configure.ac might set extrasub.
20120: # FIXME: do we really want to maintain this feature?
20121: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20122: ac_sed_extra="$ac_vpsub
1.62 paf 20123: $extrasub
20124: _ACEOF
1.150 moko 20125: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20126: :t
20127: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 20128: s|@configure_input@|$ac_sed_conf_input|;t t
20129: s&@top_builddir@&$ac_top_builddir_sub&;t t
20130: s&@top_build_prefix@&$ac_top_build_prefix&;t t
20131: s&@srcdir@&$ac_srcdir&;t t
20132: s&@abs_srcdir@&$ac_abs_srcdir&;t t
20133: s&@top_srcdir@&$ac_top_srcdir&;t t
20134: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20135: s&@builddir@&$ac_builddir&;t t
20136: s&@abs_builddir@&$ac_abs_builddir&;t t
20137: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20138: s&@INSTALL@&$ac_INSTALL&;t t
20139: s&@MKDIR_P@&$ac_MKDIR_P&;t t
20140: $ac_datarootdir_hack
20141: "
20142: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20143: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20144:
20145: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20146: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20147: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20148: "$ac_tmp/out"`; test -z "$ac_out"; } &&
20149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20150: which seems to be undefined. Please make sure it is defined" >&5
20151: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20152: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 20153:
1.150 moko 20154: rm -f "$ac_tmp/stdin"
1.62 paf 20155: case $ac_file in
1.150 moko 20156: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20157: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20158: esac \
20159: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20160: ;;
20161: :H)
20162: #
20163: # CONFIG_HEADER
20164: #
1.62 paf 20165: if test x"$ac_file" != x-; then
1.150 moko 20166: {
20167: $as_echo "/* $configure_input */" \
20168: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20169: } >"$ac_tmp/config.h" \
20170: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20171: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20172: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20173: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 20174: else
1.150 moko 20175: rm -f "$ac_file"
20176: mv "$ac_tmp/config.h" "$ac_file" \
20177: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 20178: fi
20179: else
1.150 moko 20180: $as_echo "/* $configure_input */" \
20181: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20182: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 20183: fi
1.150 moko 20184: # Compute "$ac_file"'s index in $config_headers.
20185: _am_arg="$ac_file"
1.86 paf 20186: _am_stamp_count=1
20187: for _am_header in $config_headers :; do
20188: case $_am_header in
1.150 moko 20189: $_am_arg | $_am_arg:* )
1.86 paf 20190: break ;;
20191: * )
20192: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20193: esac
20194: done
1.150 moko 20195: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20196: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20197: X"$_am_arg" : 'X\(//\)[^/]' \| \
20198: X"$_am_arg" : 'X\(//\)$' \| \
20199: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20200: $as_echo X"$_am_arg" |
20201: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20202: s//\1/
20203: q
20204: }
20205: /^X\(\/\/\)[^/].*/{
20206: s//\1/
20207: q
20208: }
20209: /^X\(\/\/\)$/{
20210: s//\1/
20211: q
20212: }
20213: /^X\(\/\).*/{
20214: s//\1/
20215: q
20216: }
20217: s/.*/./; q'`/stamp-h$_am_stamp_count
20218: ;;
1.62 paf 20219:
1.150 moko 20220: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20221: $as_echo "$as_me: executing $ac_file commands" >&6;}
20222: ;;
20223: esac
1.86 paf 20224:
1.62 paf 20225:
1.150 moko 20226: case $ac_file$ac_mode in
20227: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20228: # Autoconf 2.62 quotes --file arguments for eval, but not when files
20229: # are listed without --file. Let's play safe and only enable the eval
20230: # if we detect the quoting.
20231: case $CONFIG_FILES in
20232: *\'*) eval set x "$CONFIG_FILES" ;;
20233: *) set x $CONFIG_FILES ;;
20234: esac
20235: shift
20236: for mf
20237: do
20238: # Strip MF so we end up with the name of the file.
20239: mf=`echo "$mf" | sed -e 's/:.*$//'`
20240: # Check whether this is an Automake generated Makefile or not.
20241: # We used to match only the files named `Makefile.in', but
20242: # some people rename them; so instead we look at the file content.
20243: # Grep'ing the first line is not enough: some people post-process
20244: # each Makefile.in and add a new line on top of each file to say so.
20245: # Grep'ing the whole file is not good either: AIX grep has a line
20246: # limit of 2048, but all sed's we know have understand at least 4000.
20247: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20248: dirpart=`$as_dirname -- "$mf" ||
1.62 paf 20249: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20250: X"$mf" : 'X\(//\)[^/]' \| \
20251: X"$mf" : 'X\(//\)$' \| \
1.150 moko 20252: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20253: $as_echo X"$mf" |
20254: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20255: s//\1/
20256: q
20257: }
20258: /^X\(\/\/\)[^/].*/{
20259: s//\1/
20260: q
20261: }
20262: /^X\(\/\/\)$/{
20263: s//\1/
20264: q
20265: }
20266: /^X\(\/\).*/{
20267: s//\1/
20268: q
20269: }
20270: s/.*/./; q'`
20271: else
20272: continue
20273: fi
20274: # Extract the definition of DEPDIR, am__include, and am__quote
20275: # from the Makefile without running `make'.
20276: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20277: test -z "$DEPDIR" && continue
20278: am__include=`sed -n 's/^am__include = //p' < "$mf"`
20279: test -z "am__include" && continue
20280: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20281: # When using ansi2knr, U may be empty or an underscore; expand it
20282: U=`sed -n 's/^U = //p' < "$mf"`
20283: # Find all dependency output files, they are included files with
20284: # $(DEPDIR) in their names. We invoke sed twice because it is the
20285: # simplest approach to changing $(DEPDIR) to its actual value in the
20286: # expansion.
20287: for file in `sed -n "
20288: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20289: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20290: # Make sure the directory exists.
20291: test -f "$dirpart/$file" && continue
20292: fdir=`$as_dirname -- "$file" ||
1.62 paf 20293: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20294: X"$file" : 'X\(//\)[^/]' \| \
20295: X"$file" : 'X\(//\)$' \| \
1.150 moko 20296: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20297: $as_echo X"$file" |
20298: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20299: s//\1/
20300: q
20301: }
20302: /^X\(\/\/\)[^/].*/{
20303: s//\1/
20304: q
20305: }
20306: /^X\(\/\/\)$/{
20307: s//\1/
20308: q
20309: }
20310: /^X\(\/\).*/{
20311: s//\1/
20312: q
20313: }
20314: s/.*/./; q'`
20315: as_dir=$dirpart/$fdir; as_fn_mkdir_p
20316: # echo "creating $dirpart/$file"
20317: echo '# dummy' > "$dirpart/$file"
1.62 paf 20318: done
20319: done
1.150 moko 20320: }
1.62 paf 20321: ;;
1.150 moko 20322: "libtool":C)
1.128 moko 20323:
20324: # See if we are running on zsh, and set the options which allow our
20325: # commands through without removal of \ escapes.
20326: if test -n "${ZSH_VERSION+set}" ; then
20327: setopt NO_GLOB_SUBST
20328: fi
20329:
20330: cfgfile="${ofile}T"
20331: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20332: $RM "$cfgfile"
20333:
20334: cat <<_LT_EOF >> "$cfgfile"
20335: #! $SHELL
20336:
20337: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20338: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20339: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20340: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20341: #
20342: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20343: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20344: # Foundation, Inc.
20345: # Written by Gordon Matzigkeit, 1996
20346: #
20347: # This file is part of GNU Libtool.
20348: #
20349: # GNU Libtool is free software; you can redistribute it and/or
20350: # modify it under the terms of the GNU General Public License as
20351: # published by the Free Software Foundation; either version 2 of
20352: # the License, or (at your option) any later version.
20353: #
20354: # As a special exception to the GNU General Public License,
20355: # if you distribute this file as part of a program or library that
20356: # is built using GNU Libtool, you may include this file under the
20357: # same distribution terms that you use for the rest of that program.
20358: #
20359: # GNU Libtool is distributed in the hope that it will be useful,
20360: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20361: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20362: # GNU General Public License for more details.
20363: #
20364: # You should have received a copy of the GNU General Public License
20365: # along with GNU Libtool; see the file COPYING. If not, a copy
20366: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20367: # obtained by writing to the Free Software Foundation, Inc.,
20368: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20369:
20370:
20371: # The names of the tagged configurations supported by this script.
20372: available_tags="CXX "
20373:
20374: # ### BEGIN LIBTOOL CONFIG
20375:
20376: # Which release of libtool.m4 was used?
20377: macro_version=$macro_version
20378: macro_revision=$macro_revision
20379:
20380: # Assembler program.
20381: AS=$lt_AS
20382:
20383: # DLL creation program.
20384: DLLTOOL=$lt_DLLTOOL
20385:
20386: # Object dumper program.
20387: OBJDUMP=$lt_OBJDUMP
20388:
1.145 moko 20389: # What type of objects to build.
20390: pic_mode=$pic_mode
20391:
1.128 moko 20392: # Whether or not to build shared libraries.
20393: build_libtool_libs=$enable_shared
20394:
1.138 moko 20395: # Whether or not to build static libraries.
20396: build_old_libs=$enable_static
20397:
1.128 moko 20398: # Whether or not to optimize for fast installation.
20399: fast_install=$enable_fast_install
20400:
20401: # Shell to use when invoking shell scripts.
20402: SHELL=$lt_SHELL
20403:
20404: # An echo program that protects backslashes.
20405: ECHO=$lt_ECHO
20406:
20407: # The PATH separator for the build system.
20408: PATH_SEPARATOR=$lt_PATH_SEPARATOR
20409:
20410: # The host system.
20411: host_alias=$host_alias
20412: host=$host
20413: host_os=$host_os
20414:
20415: # The build system.
20416: build_alias=$build_alias
20417: build=$build
20418: build_os=$build_os
20419:
20420: # A sed program that does not truncate output.
20421: SED=$lt_SED
20422:
20423: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20424: Xsed="\$SED -e 1s/^X//"
20425:
20426: # A grep program that handles long lines.
20427: GREP=$lt_GREP
20428:
20429: # An ERE matcher.
20430: EGREP=$lt_EGREP
20431:
20432: # A literal string matcher.
20433: FGREP=$lt_FGREP
20434:
20435: # A BSD- or MS-compatible name lister.
20436: NM=$lt_NM
20437:
20438: # Whether we need soft or hard links.
20439: LN_S=$lt_LN_S
20440:
20441: # What is the maximum length of a command?
20442: max_cmd_len=$max_cmd_len
20443:
20444: # Object file suffix (normally "o").
20445: objext=$ac_objext
20446:
20447: # Executable file suffix (normally "").
20448: exeext=$exeext
20449:
20450: # whether the shell understands "unset".
20451: lt_unset=$lt_unset
20452:
20453: # turn spaces into newlines.
20454: SP2NL=$lt_lt_SP2NL
20455:
20456: # turn newlines into spaces.
20457: NL2SP=$lt_lt_NL2SP
20458:
20459: # convert \$build file names to \$host format.
20460: to_host_file_cmd=$lt_cv_to_host_file_cmd
20461:
20462: # convert \$build files to toolchain format.
20463: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20464:
20465: # Method to check whether dependent libraries are shared objects.
20466: deplibs_check_method=$lt_deplibs_check_method
20467:
20468: # Command to use when deplibs_check_method = "file_magic".
20469: file_magic_cmd=$lt_file_magic_cmd
20470:
20471: # How to find potential files when deplibs_check_method = "file_magic".
20472: file_magic_glob=$lt_file_magic_glob
20473:
20474: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20475: want_nocaseglob=$lt_want_nocaseglob
20476:
20477: # Command to associate shared and link libraries.
20478: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20479:
20480: # The archiver.
20481: AR=$lt_AR
20482:
20483: # Flags to create an archive.
20484: AR_FLAGS=$lt_AR_FLAGS
20485:
20486: # How to feed a file listing to the archiver.
20487: archiver_list_spec=$lt_archiver_list_spec
20488:
20489: # A symbol stripping program.
20490: STRIP=$lt_STRIP
20491:
20492: # Commands used to install an old-style archive.
20493: RANLIB=$lt_RANLIB
20494: old_postinstall_cmds=$lt_old_postinstall_cmds
20495: old_postuninstall_cmds=$lt_old_postuninstall_cmds
20496:
20497: # Whether to use a lock for old archive extraction.
20498: lock_old_archive_extraction=$lock_old_archive_extraction
20499:
20500: # A C compiler.
20501: LTCC=$lt_CC
20502:
20503: # LTCC compiler flags.
20504: LTCFLAGS=$lt_CFLAGS
20505:
20506: # Take the output of nm and produce a listing of raw symbols and C names.
20507: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20508:
20509: # Transform the output of nm in a proper C declaration.
20510: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20511:
20512: # Transform the output of nm in a C name address pair.
20513: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20514:
20515: # Transform the output of nm in a C name address pair when lib prefix is needed.
20516: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20517:
20518: # Specify filename containing input files for \$NM.
20519: nm_file_list_spec=$lt_nm_file_list_spec
20520:
20521: # The root where to search for dependent libraries,and in which our libraries should be installed.
20522: lt_sysroot=$lt_sysroot
20523:
20524: # The name of the directory that contains temporary libtool files.
20525: objdir=$objdir
20526:
20527: # Used to examine libraries when file_magic_cmd begins with "file".
20528: MAGIC_CMD=$MAGIC_CMD
20529:
20530: # Must we lock files when doing compilation?
20531: need_locks=$lt_need_locks
20532:
20533: # Manifest tool.
20534: MANIFEST_TOOL=$lt_MANIFEST_TOOL
20535:
20536: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20537: DSYMUTIL=$lt_DSYMUTIL
20538:
20539: # Tool to change global to local symbols on Mac OS X.
20540: NMEDIT=$lt_NMEDIT
20541:
20542: # Tool to manipulate fat objects and archives on Mac OS X.
20543: LIPO=$lt_LIPO
20544:
20545: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20546: OTOOL=$lt_OTOOL
20547:
20548: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20549: OTOOL64=$lt_OTOOL64
20550:
20551: # Old archive suffix (normally "a").
20552: libext=$libext
20553:
20554: # Shared library suffix (normally ".so").
20555: shrext_cmds=$lt_shrext_cmds
20556:
20557: # The commands to extract the exported symbol list from a shared archive.
20558: extract_expsyms_cmds=$lt_extract_expsyms_cmds
20559:
20560: # Variables whose values should be saved in libtool wrapper scripts and
20561: # restored at link time.
20562: variables_saved_for_relink=$lt_variables_saved_for_relink
20563:
20564: # Do we need the "lib" prefix for modules?
20565: need_lib_prefix=$need_lib_prefix
20566:
20567: # Do we need a version for libraries?
20568: need_version=$need_version
20569:
20570: # Library versioning type.
20571: version_type=$version_type
20572:
20573: # Shared library runtime path variable.
20574: runpath_var=$runpath_var
20575:
20576: # Shared library path variable.
20577: shlibpath_var=$shlibpath_var
20578:
20579: # Is shlibpath searched before the hard-coded library search path?
20580: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20581:
20582: # Format of library name prefix.
20583: libname_spec=$lt_libname_spec
20584:
20585: # List of archive names. First name is the real one, the rest are links.
20586: # The last name is the one that the linker finds with -lNAME
20587: library_names_spec=$lt_library_names_spec
20588:
20589: # The coded name of the library, if different from the real name.
20590: soname_spec=$lt_soname_spec
20591:
20592: # Permission mode override for installation of shared libraries.
20593: install_override_mode=$lt_install_override_mode
20594:
20595: # Command to use after installation of a shared archive.
20596: postinstall_cmds=$lt_postinstall_cmds
20597:
20598: # Command to use after uninstallation of a shared archive.
20599: postuninstall_cmds=$lt_postuninstall_cmds
20600:
20601: # Commands used to finish a libtool library installation in a directory.
20602: finish_cmds=$lt_finish_cmds
20603:
20604: # As "finish_cmds", except a single script fragment to be evaled but
20605: # not shown.
20606: finish_eval=$lt_finish_eval
20607:
20608: # Whether we should hardcode library paths into libraries.
20609: hardcode_into_libs=$hardcode_into_libs
20610:
20611: # Compile-time system search path for libraries.
20612: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20613:
20614: # Run-time system search path for libraries.
20615: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20616:
20617: # Whether dlopen is supported.
20618: dlopen_support=$enable_dlopen
20619:
20620: # Whether dlopen of programs is supported.
20621: dlopen_self=$enable_dlopen_self
20622:
20623: # Whether dlopen of statically linked programs is supported.
20624: dlopen_self_static=$enable_dlopen_self_static
20625:
20626: # Commands to strip libraries.
20627: old_striplib=$lt_old_striplib
20628: striplib=$lt_striplib
20629:
20630:
20631: # The linker used to build libraries.
20632: LD=$lt_LD
20633:
20634: # How to create reloadable object files.
20635: reload_flag=$lt_reload_flag
20636: reload_cmds=$lt_reload_cmds
20637:
20638: # Commands used to build an old-style archive.
20639: old_archive_cmds=$lt_old_archive_cmds
20640:
20641: # A language specific compiler.
20642: CC=$lt_compiler
20643:
20644: # Is the compiler the GNU compiler?
20645: with_gcc=$GCC
20646:
20647: # Compiler flag to turn off builtin functions.
20648: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20649:
20650: # Additional compiler flags for building library objects.
20651: pic_flag=$lt_lt_prog_compiler_pic
20652:
20653: # How to pass a linker flag through the compiler.
20654: wl=$lt_lt_prog_compiler_wl
20655:
20656: # Compiler flag to prevent dynamic linking.
20657: link_static_flag=$lt_lt_prog_compiler_static
20658:
20659: # Does compiler simultaneously support -c and -o options?
20660: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20661:
20662: # Whether or not to add -lc for building shared libraries.
20663: build_libtool_need_lc=$archive_cmds_need_lc
20664:
20665: # Whether or not to disallow shared libs when runtime libs are static.
20666: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20667:
20668: # Compiler flag to allow reflexive dlopens.
20669: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20670:
20671: # Compiler flag to generate shared objects directly from archives.
20672: whole_archive_flag_spec=$lt_whole_archive_flag_spec
20673:
20674: # Whether the compiler copes with passing no objects directly.
20675: compiler_needs_object=$lt_compiler_needs_object
20676:
20677: # Create an old-style archive from a shared archive.
20678: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20679:
20680: # Create a temporary old-style archive to link instead of a shared archive.
20681: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20682:
20683: # Commands used to build a shared archive.
20684: archive_cmds=$lt_archive_cmds
20685: archive_expsym_cmds=$lt_archive_expsym_cmds
20686:
20687: # Commands used to build a loadable module if different from building
20688: # a shared archive.
20689: module_cmds=$lt_module_cmds
20690: module_expsym_cmds=$lt_module_expsym_cmds
20691:
20692: # Whether we are building with GNU ld or not.
20693: with_gnu_ld=$lt_with_gnu_ld
20694:
20695: # Flag that allows shared libraries with undefined symbols to be built.
20696: allow_undefined_flag=$lt_allow_undefined_flag
20697:
20698: # Flag that enforces no undefined symbols.
20699: no_undefined_flag=$lt_no_undefined_flag
20700:
20701: # Flag to hardcode \$libdir into a binary during linking.
20702: # This must work even if \$libdir does not exist
20703: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20704:
20705: # Whether we need a single "-rpath" flag with a separated argument.
20706: hardcode_libdir_separator=$lt_hardcode_libdir_separator
20707:
20708: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20709: # DIR into the resulting binary.
20710: hardcode_direct=$hardcode_direct
20711:
20712: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20713: # DIR into the resulting binary and the resulting library dependency is
20714: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20715: # library is relocated.
20716: hardcode_direct_absolute=$hardcode_direct_absolute
20717:
20718: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20719: # into the resulting binary.
20720: hardcode_minus_L=$hardcode_minus_L
20721:
20722: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20723: # into the resulting binary.
20724: hardcode_shlibpath_var=$hardcode_shlibpath_var
20725:
20726: # Set to "yes" if building a shared library automatically hardcodes DIR
20727: # into the library and all subsequent libraries and executables linked
20728: # against it.
20729: hardcode_automatic=$hardcode_automatic
20730:
20731: # Set to yes if linker adds runtime paths of dependent libraries
20732: # to runtime path list.
20733: inherit_rpath=$inherit_rpath
20734:
20735: # Whether libtool must link a program against all its dependency libraries.
20736: link_all_deplibs=$link_all_deplibs
20737:
20738: # Set to "yes" if exported symbols are required.
20739: always_export_symbols=$always_export_symbols
20740:
20741: # The commands to list exported symbols.
20742: export_symbols_cmds=$lt_export_symbols_cmds
20743:
20744: # Symbols that should not be listed in the preloaded symbols.
20745: exclude_expsyms=$lt_exclude_expsyms
20746:
20747: # Symbols that must always be exported.
20748: include_expsyms=$lt_include_expsyms
20749:
20750: # Commands necessary for linking programs (against libraries) with templates.
20751: prelink_cmds=$lt_prelink_cmds
20752:
20753: # Commands necessary for finishing linking programs.
20754: postlink_cmds=$lt_postlink_cmds
20755:
20756: # Specify filename containing input files.
20757: file_list_spec=$lt_file_list_spec
20758:
20759: # How to hardcode a shared library path into an executable.
20760: hardcode_action=$hardcode_action
20761:
20762: # The directories searched by this compiler when creating a shared library.
20763: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20764:
20765: # Dependencies to place before and after the objects being linked to
20766: # create a shared library.
20767: predep_objects=$lt_predep_objects
20768: postdep_objects=$lt_postdep_objects
20769: predeps=$lt_predeps
20770: postdeps=$lt_postdeps
20771:
20772: # The library search path used internally by the compiler when linking
20773: # a shared library.
20774: compiler_lib_search_path=$lt_compiler_lib_search_path
20775:
20776: # ### END LIBTOOL CONFIG
20777:
20778: _LT_EOF
20779:
20780: case $host_os in
20781: aix3*)
20782: cat <<\_LT_EOF >> "$cfgfile"
20783: # AIX sometimes has problems with the GCC collect2 program. For some
20784: # reason, if we set the COLLECT_NAMES environment variable, the problems
20785: # vanish in a puff of smoke.
20786: if test "X${COLLECT_NAMES+set}" != Xset; then
20787: COLLECT_NAMES=
20788: export COLLECT_NAMES
20789: fi
20790: _LT_EOF
20791: ;;
20792: esac
20793:
20794:
20795: ltmain="$ac_aux_dir/ltmain.sh"
20796:
20797:
20798: # We use sed instead of cat because bash on DJGPP gets confused if
20799: # if finds mixed CR/LF and LF-only lines. Since sed operates in
20800: # text mode, it properly converts lines to CR/LF. This bash problem
20801: # is reportedly fixed, but why not run on old versions too?
20802: sed '$q' "$ltmain" >> "$cfgfile" \
20803: || (rm -f "$cfgfile"; exit 1)
20804:
20805: if test x"$xsi_shell" = xyes; then
20806: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20807: func_dirname ()\
20808: {\
20809: \ case ${1} in\
20810: \ */*) func_dirname_result="${1%/*}${2}" ;;\
20811: \ * ) func_dirname_result="${3}" ;;\
20812: \ esac\
20813: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20814: && mv -f "$cfgfile.tmp" "$cfgfile" \
20815: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20816: test 0 -eq $? || _lt_function_replace_fail=:
20817:
20818:
20819: sed -e '/^func_basename ()$/,/^} # func_basename /c\
20820: func_basename ()\
20821: {\
20822: \ func_basename_result="${1##*/}"\
20823: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20824: && mv -f "$cfgfile.tmp" "$cfgfile" \
20825: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20826: test 0 -eq $? || _lt_function_replace_fail=:
20827:
20828:
20829: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20830: func_dirname_and_basename ()\
20831: {\
20832: \ case ${1} in\
20833: \ */*) func_dirname_result="${1%/*}${2}" ;;\
20834: \ * ) func_dirname_result="${3}" ;;\
20835: \ esac\
20836: \ func_basename_result="${1##*/}"\
20837: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20838: && mv -f "$cfgfile.tmp" "$cfgfile" \
20839: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20840: test 0 -eq $? || _lt_function_replace_fail=:
20841:
20842:
20843: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20844: func_stripname ()\
20845: {\
20846: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20847: \ # positional parameters, so assign one to ordinary parameter first.\
20848: \ func_stripname_result=${3}\
20849: \ func_stripname_result=${func_stripname_result#"${1}"}\
20850: \ func_stripname_result=${func_stripname_result%"${2}"}\
20851: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20852: && mv -f "$cfgfile.tmp" "$cfgfile" \
20853: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20854: test 0 -eq $? || _lt_function_replace_fail=:
20855:
20856:
20857: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20858: func_split_long_opt ()\
20859: {\
20860: \ func_split_long_opt_name=${1%%=*}\
20861: \ func_split_long_opt_arg=${1#*=}\
20862: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20863: && mv -f "$cfgfile.tmp" "$cfgfile" \
20864: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20865: test 0 -eq $? || _lt_function_replace_fail=:
20866:
20867:
20868: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20869: func_split_short_opt ()\
20870: {\
20871: \ func_split_short_opt_arg=${1#??}\
20872: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20873: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20874: && mv -f "$cfgfile.tmp" "$cfgfile" \
20875: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20876: test 0 -eq $? || _lt_function_replace_fail=:
20877:
20878:
20879: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20880: func_lo2o ()\
20881: {\
20882: \ case ${1} in\
20883: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20884: \ *) func_lo2o_result=${1} ;;\
20885: \ esac\
20886: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20887: && mv -f "$cfgfile.tmp" "$cfgfile" \
20888: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20889: test 0 -eq $? || _lt_function_replace_fail=:
20890:
20891:
20892: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20893: func_xform ()\
20894: {\
20895: func_xform_result=${1%.*}.lo\
20896: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20897: && mv -f "$cfgfile.tmp" "$cfgfile" \
20898: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20899: test 0 -eq $? || _lt_function_replace_fail=:
20900:
20901:
20902: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20903: func_arith ()\
20904: {\
20905: func_arith_result=$(( $* ))\
20906: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20907: && mv -f "$cfgfile.tmp" "$cfgfile" \
20908: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20909: test 0 -eq $? || _lt_function_replace_fail=:
20910:
20911:
20912: sed -e '/^func_len ()$/,/^} # func_len /c\
20913: func_len ()\
20914: {\
20915: func_len_result=${#1}\
20916: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20917: && mv -f "$cfgfile.tmp" "$cfgfile" \
20918: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20919: test 0 -eq $? || _lt_function_replace_fail=:
20920:
20921: fi
20922:
20923: if test x"$lt_shell_append" = xyes; then
20924: sed -e '/^func_append ()$/,/^} # func_append /c\
20925: func_append ()\
20926: {\
20927: eval "${1}+=\\${2}"\
20928: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20929: && mv -f "$cfgfile.tmp" "$cfgfile" \
20930: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20931: test 0 -eq $? || _lt_function_replace_fail=:
20932:
20933:
20934: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20935: func_append_quoted ()\
20936: {\
20937: \ func_quote_for_eval "${2}"\
20938: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20939: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20940: && mv -f "$cfgfile.tmp" "$cfgfile" \
20941: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20942: test 0 -eq $? || _lt_function_replace_fail=:
20943:
20944:
20945: # Save a `func_append' function call where possible by direct use of '+='
20946: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20947: && mv -f "$cfgfile.tmp" "$cfgfile" \
20948: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20949: test 0 -eq $? || _lt_function_replace_fail=:
20950: else
20951: # Save a `func_append' function call even when '+=' is not available
20952: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20953: && mv -f "$cfgfile.tmp" "$cfgfile" \
20954: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20955: test 0 -eq $? || _lt_function_replace_fail=:
20956: fi
20957:
20958: if test x"$_lt_function_replace_fail" = x":"; then
1.150 moko 20959: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20960: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.128 moko 20961: fi
20962:
20963:
20964: mv -f "$cfgfile" "$ofile" ||
20965: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20966: chmod +x "$ofile"
20967:
20968:
20969: cat <<_LT_EOF >> "$ofile"
20970:
20971: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20972:
20973: # The linker used to build libraries.
20974: LD=$lt_LD_CXX
20975:
20976: # How to create reloadable object files.
20977: reload_flag=$lt_reload_flag_CXX
20978: reload_cmds=$lt_reload_cmds_CXX
20979:
20980: # Commands used to build an old-style archive.
20981: old_archive_cmds=$lt_old_archive_cmds_CXX
20982:
20983: # A language specific compiler.
20984: CC=$lt_compiler_CXX
20985:
20986: # Is the compiler the GNU compiler?
20987: with_gcc=$GCC_CXX
20988:
20989: # Compiler flag to turn off builtin functions.
20990: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20991:
20992: # Additional compiler flags for building library objects.
20993: pic_flag=$lt_lt_prog_compiler_pic_CXX
20994:
20995: # How to pass a linker flag through the compiler.
20996: wl=$lt_lt_prog_compiler_wl_CXX
20997:
20998: # Compiler flag to prevent dynamic linking.
20999: link_static_flag=$lt_lt_prog_compiler_static_CXX
21000:
21001: # Does compiler simultaneously support -c and -o options?
21002: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21003:
21004: # Whether or not to add -lc for building shared libraries.
21005: build_libtool_need_lc=$archive_cmds_need_lc_CXX
21006:
21007: # Whether or not to disallow shared libs when runtime libs are static.
21008: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21009:
21010: # Compiler flag to allow reflexive dlopens.
21011: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21012:
21013: # Compiler flag to generate shared objects directly from archives.
21014: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21015:
21016: # Whether the compiler copes with passing no objects directly.
21017: compiler_needs_object=$lt_compiler_needs_object_CXX
21018:
21019: # Create an old-style archive from a shared archive.
21020: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21021:
21022: # Create a temporary old-style archive to link instead of a shared archive.
21023: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21024:
21025: # Commands used to build a shared archive.
21026: archive_cmds=$lt_archive_cmds_CXX
21027: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21028:
21029: # Commands used to build a loadable module if different from building
21030: # a shared archive.
21031: module_cmds=$lt_module_cmds_CXX
21032: module_expsym_cmds=$lt_module_expsym_cmds_CXX
21033:
21034: # Whether we are building with GNU ld or not.
21035: with_gnu_ld=$lt_with_gnu_ld_CXX
21036:
21037: # Flag that allows shared libraries with undefined symbols to be built.
21038: allow_undefined_flag=$lt_allow_undefined_flag_CXX
21039:
21040: # Flag that enforces no undefined symbols.
21041: no_undefined_flag=$lt_no_undefined_flag_CXX
21042:
21043: # Flag to hardcode \$libdir into a binary during linking.
21044: # This must work even if \$libdir does not exist
21045: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21046:
21047: # Whether we need a single "-rpath" flag with a separated argument.
21048: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21049:
21050: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21051: # DIR into the resulting binary.
21052: hardcode_direct=$hardcode_direct_CXX
21053:
21054: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21055: # DIR into the resulting binary and the resulting library dependency is
21056: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21057: # library is relocated.
21058: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21059:
21060: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21061: # into the resulting binary.
21062: hardcode_minus_L=$hardcode_minus_L_CXX
21063:
21064: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21065: # into the resulting binary.
21066: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21067:
21068: # Set to "yes" if building a shared library automatically hardcodes DIR
21069: # into the library and all subsequent libraries and executables linked
21070: # against it.
21071: hardcode_automatic=$hardcode_automatic_CXX
21072:
21073: # Set to yes if linker adds runtime paths of dependent libraries
21074: # to runtime path list.
21075: inherit_rpath=$inherit_rpath_CXX
21076:
21077: # Whether libtool must link a program against all its dependency libraries.
21078: link_all_deplibs=$link_all_deplibs_CXX
21079:
21080: # Set to "yes" if exported symbols are required.
21081: always_export_symbols=$always_export_symbols_CXX
21082:
21083: # The commands to list exported symbols.
21084: export_symbols_cmds=$lt_export_symbols_cmds_CXX
21085:
21086: # Symbols that should not be listed in the preloaded symbols.
21087: exclude_expsyms=$lt_exclude_expsyms_CXX
21088:
21089: # Symbols that must always be exported.
21090: include_expsyms=$lt_include_expsyms_CXX
21091:
21092: # Commands necessary for linking programs (against libraries) with templates.
21093: prelink_cmds=$lt_prelink_cmds_CXX
21094:
21095: # Commands necessary for finishing linking programs.
21096: postlink_cmds=$lt_postlink_cmds_CXX
21097:
21098: # Specify filename containing input files.
21099: file_list_spec=$lt_file_list_spec_CXX
21100:
21101: # How to hardcode a shared library path into an executable.
21102: hardcode_action=$hardcode_action_CXX
21103:
21104: # The directories searched by this compiler when creating a shared library.
21105: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21106:
21107: # Dependencies to place before and after the objects being linked to
21108: # create a shared library.
21109: predep_objects=$lt_predep_objects_CXX
21110: postdep_objects=$lt_postdep_objects_CXX
21111: predeps=$lt_predeps_CXX
21112: postdeps=$lt_postdeps_CXX
21113:
21114: # The library search path used internally by the compiler when linking
21115: # a shared library.
21116: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21117:
21118: # ### END LIBTOOL TAG CONFIG: CXX
21119: _LT_EOF
21120:
21121: ;;
1.150 moko 21122:
1.62 paf 21123: esac
1.150 moko 21124: done # for ac_tag
1.62 paf 21125:
21126:
1.150 moko 21127: as_fn_exit 0
1.62 paf 21128: _ACEOF
21129: ac_clean_files=$ac_clean_files_save
21130:
1.150 moko 21131: test $ac_write_fail = 0 ||
21132: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21133:
1.1 paf 21134:
1.62 paf 21135: # configure is writing to config.log, and then calls config.status.
21136: # config.status does its own redirection, appending to config.log.
21137: # Unfortunately, on DOS this fails, as config.log is still kept open
21138: # by configure, so config.status won't be able to write to it; its
21139: # output is simply discarded. So we exec the FD to /dev/null,
21140: # effectively closing config.log, so it can be properly (re)opened and
21141: # appended to by config.status. When coming back to configure, we
21142: # need to make the FD available again.
21143: if test "$no_create" != yes; then
21144: ac_cs_success=:
21145: ac_config_status_args=
21146: test "$silent" = yes &&
21147: ac_config_status_args="$ac_config_status_args --quiet"
21148: exec 5>/dev/null
21149: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21150: exec 5>>config.log
21151: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21152: # would make configure fail if this is the last instruction.
1.150 moko 21153: $ac_cs_success || as_fn_exit 1
1.62 paf 21154: fi
21155:
21156: #
21157: # CONFIG_SUBDIRS section.
21158: #
1.1 paf 21159: if test "$no_recursion" != yes; then
21160:
1.150 moko 21161: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21162: # so they do not pile up.
1.1 paf 21163: ac_sub_configure_args=
21164: ac_prev=
1.150 moko 21165: eval "set x $ac_configure_args"
21166: shift
21167: for ac_arg
21168: do
1.1 paf 21169: if test -n "$ac_prev"; then
21170: ac_prev=
21171: continue
21172: fi
1.62 paf 21173: case $ac_arg in
1.1 paf 21174: -cache-file | --cache-file | --cache-fil | --cache-fi \
21175: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21176: ac_prev=cache_file ;;
21177: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 21178: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21179: | --c=*)
21180: ;;
21181: --config-cache | -C)
1.1 paf 21182: ;;
21183: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21184: ac_prev=srcdir ;;
21185: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21186: ;;
1.62 paf 21187: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21188: ac_prev=prefix ;;
21189: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21190: ;;
1.150 moko 21191: --disable-option-checking)
21192: ;;
21193: *)
21194: case $ac_arg in
21195: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21196: esac
21197: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 21198: esac
21199: done
21200:
1.62 paf 21201: # Always prepend --prefix to ensure using the same prefix
21202: # in subdir configurations.
1.150 moko 21203: ac_arg="--prefix=$prefix"
21204: case $ac_arg in
21205: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21206: esac
21207: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21208:
21209: # Pass --silent
21210: if test "$silent" = yes; then
21211: ac_sub_configure_args="--silent $ac_sub_configure_args"
21212: fi
21213:
21214: # Always prepend --disable-option-checking to silence warnings, since
21215: # different subdirs can have different --enable and --with options.
21216: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 21217:
21218: ac_popdir=`pwd`
21219: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 21220:
21221: # Do not complain, so a configure script can configure whichever
21222: # parts of a large source tree are present.
1.150 moko 21223: test -d "$srcdir/$ac_dir" || continue
1.62 paf 21224:
1.150 moko 21225: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21226: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21227: $as_echo "$ac_msg" >&6
21228: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 21229: ac_builddir=.
21230:
1.150 moko 21231: case "$ac_dir" in
21232: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21233: *)
21234: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21235: # A ".." for each directory in $ac_dir_suffix.
21236: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21237: case $ac_top_builddir_sub in
21238: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21239: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21240: esac ;;
21241: esac
21242: ac_abs_top_builddir=$ac_pwd
21243: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21244: # for backward compatibility:
21245: ac_top_builddir=$ac_top_build_prefix
1.62 paf 21246:
21247: case $srcdir in
1.150 moko 21248: .) # We are building in place.
1.62 paf 21249: ac_srcdir=.
1.150 moko 21250: ac_top_srcdir=$ac_top_builddir_sub
21251: ac_abs_top_srcdir=$ac_pwd ;;
21252: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 21253: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 21254: ac_top_srcdir=$srcdir
21255: ac_abs_top_srcdir=$srcdir ;;
21256: *) # Relative name.
21257: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21258: ac_top_srcdir=$ac_top_build_prefix$srcdir
21259: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 21260: esac
1.150 moko 21261: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 21262:
21263:
1.150 moko 21264: cd "$ac_dir"
1.1 paf 21265:
21266: # Check for guested configure; otherwise get Cygnus style configure.
1.150 moko 21267: if test -f "$ac_srcdir/configure.gnu"; then
21268: ac_sub_configure=$ac_srcdir/configure.gnu
21269: elif test -f "$ac_srcdir/configure"; then
21270: ac_sub_configure=$ac_srcdir/configure
21271: elif test -f "$ac_srcdir/configure.in"; then
21272: # This should be Cygnus configure.
21273: ac_sub_configure=$ac_aux_dir/configure
1.1 paf 21274: else
1.150 moko 21275: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21276: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 21277: ac_sub_configure=
21278: fi
21279:
21280: # The recursion is here.
21281: if test -n "$ac_sub_configure"; then
21282: # Make the cache file name correct relative to the subdirectory.
1.62 paf 21283: case $cache_file in
21284: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 21285: *) # Relative name.
21286: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 21287: esac
21288:
1.150 moko 21289: { $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
21290: $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 21291: # The eval makes quoting arguments work.
1.150 moko 21292: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21293: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21294: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 21295: fi
21296:
1.150 moko 21297: cd "$ac_popdir"
1.1 paf 21298: done
21299: fi
1.150 moko 21300: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21301: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21302: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21303: fi
1.1 paf 21304:
E-mail: