Annotation of parser3/configure, revision 1.179
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.179 ! moko 3: # Generated by GNU Autoconf 2.69 for parser 3.4.4rc.
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.179 ! moko 594: PACKAGE_VERSION='3.4.4rc'
! 595: PACKAGE_STRING='parser 3.4.4rc'
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
1.171 moko 820: enable_largefile
1.150 moko 821: '
822: ac_precious_vars='build_alias
823: host_alias
824: target_alias
825: YACC
826: YFLAGS
827: CXX
828: CXXFLAGS
829: LDFLAGS
830: LIBS
831: CPPFLAGS
832: CCC
833: CC
834: CFLAGS
835: CPP
836: CXXCPP'
837: ac_subdirs_all='src/lib/ltdl'
1.1 paf 838:
839: # Initialize some variables set by options.
1.62 paf 840: ac_init_help=
841: ac_init_version=false
1.150 moko 842: ac_unrecognized_opts=
843: ac_unrecognized_sep=
1.1 paf 844: # The variables have the same names as the options, with
845: # dashes changed to underlines.
1.62 paf 846: cache_file=/dev/null
1.1 paf 847: exec_prefix=NONE
848: no_create=
849: no_recursion=
850: prefix=NONE
851: program_prefix=NONE
852: program_suffix=NONE
853: program_transform_name=s,x,x,
854: silent=
855: site=
856: srcdir=
857: verbose=
858: x_includes=NONE
859: x_libraries=NONE
1.62 paf 860:
861: # Installation directory options.
862: # These are left unexpanded so users can "make install exec_prefix=/foo"
863: # and all the variables that are supposed to be based on exec_prefix
864: # by default will actually change.
865: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 866: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 867: bindir='${exec_prefix}/bin'
868: sbindir='${exec_prefix}/sbin'
869: libexecdir='${exec_prefix}/libexec'
1.150 moko 870: datarootdir='${prefix}/share'
871: datadir='${datarootdir}'
1.1 paf 872: sysconfdir='${prefix}/etc'
873: sharedstatedir='${prefix}/com'
874: localstatedir='${prefix}/var'
875: includedir='${prefix}/include'
876: oldincludedir='/usr/include'
1.150 moko 877: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878: infodir='${datarootdir}/info'
879: htmldir='${docdir}'
880: dvidir='${docdir}'
881: pdfdir='${docdir}'
882: psdir='${docdir}'
883: libdir='${exec_prefix}/lib'
884: localedir='${datarootdir}/locale'
885: mandir='${datarootdir}/man'
1.1 paf 886:
887: ac_prev=
1.150 moko 888: ac_dashdash=
1.1 paf 889: for ac_option
890: do
891: # If the previous option needs an argument, assign it.
892: if test -n "$ac_prev"; then
1.150 moko 893: eval $ac_prev=\$ac_option
1.1 paf 894: ac_prev=
895: continue
896: fi
897:
1.150 moko 898: case $ac_option in
899: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900: *=) ac_optarg= ;;
901: *) ac_optarg=yes ;;
902: esac
1.1 paf 903:
904: # Accept the important Cygnus configure options, so we can diagnose typos.
905:
1.150 moko 906: case $ac_dashdash$ac_option in
907: --)
908: ac_dashdash=yes ;;
1.1 paf 909:
910: -bindir | --bindir | --bindi | --bind | --bin | --bi)
911: ac_prev=bindir ;;
912: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 913: bindir=$ac_optarg ;;
1.1 paf 914:
915: -build | --build | --buil | --bui | --bu)
1.62 paf 916: ac_prev=build_alias ;;
1.1 paf 917: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 918: build_alias=$ac_optarg ;;
1.1 paf 919:
920: -cache-file | --cache-file | --cache-fil | --cache-fi \
921: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922: ac_prev=cache_file ;;
923: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 925: cache_file=$ac_optarg ;;
926:
927: --config-cache | -C)
928: cache_file=config.cache ;;
1.1 paf 929:
1.150 moko 930: -datadir | --datadir | --datadi | --datad)
1.1 paf 931: ac_prev=datadir ;;
1.150 moko 932: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 933: datadir=$ac_optarg ;;
1.1 paf 934:
1.150 moko 935: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936: | --dataroo | --dataro | --datar)
937: ac_prev=datarootdir ;;
938: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940: datarootdir=$ac_optarg ;;
941:
1.1 paf 942: -disable-* | --disable-*)
1.150 moko 943: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 944: # Reject names that are not valid shell variable names.
1.150 moko 945: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946: as_fn_error $? "invalid feature name: $ac_useropt"
947: ac_useropt_orig=$ac_useropt
948: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949: case $ac_user_opts in
950: *"
951: "enable_$ac_useropt"
952: "*) ;;
953: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954: ac_unrecognized_sep=', ';;
955: esac
956: eval enable_$ac_useropt=no ;;
957:
958: -docdir | --docdir | --docdi | --doc | --do)
959: ac_prev=docdir ;;
960: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961: docdir=$ac_optarg ;;
962:
963: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964: ac_prev=dvidir ;;
965: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966: dvidir=$ac_optarg ;;
1.1 paf 967:
968: -enable-* | --enable-*)
1.150 moko 969: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 970: # Reject names that are not valid shell variable names.
1.150 moko 971: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972: as_fn_error $? "invalid feature name: $ac_useropt"
973: ac_useropt_orig=$ac_useropt
974: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975: case $ac_user_opts in
976: *"
977: "enable_$ac_useropt"
978: "*) ;;
979: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980: ac_unrecognized_sep=', ';;
1.1 paf 981: esac
1.150 moko 982: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 983:
984: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986: | --exec | --exe | --ex)
987: ac_prev=exec_prefix ;;
988: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990: | --exec=* | --exe=* | --ex=*)
1.62 paf 991: exec_prefix=$ac_optarg ;;
1.1 paf 992:
993: -gas | --gas | --ga | --g)
994: # Obsolete; use --with-gas.
995: with_gas=yes ;;
996:
1.62 paf 997: -help | --help | --hel | --he | -h)
998: ac_init_help=long ;;
999: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000: ac_init_help=recursive ;;
1001: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002: ac_init_help=short ;;
1.1 paf 1003:
1004: -host | --host | --hos | --ho)
1.62 paf 1005: ac_prev=host_alias ;;
1.1 paf 1006: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1007: host_alias=$ac_optarg ;;
1.1 paf 1008:
1.150 moko 1009: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010: ac_prev=htmldir ;;
1011: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012: | --ht=*)
1013: htmldir=$ac_optarg ;;
1014:
1.1 paf 1015: -includedir | --includedir | --includedi | --included | --include \
1016: | --includ | --inclu | --incl | --inc)
1017: ac_prev=includedir ;;
1018: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1020: includedir=$ac_optarg ;;
1.1 paf 1021:
1022: -infodir | --infodir | --infodi | --infod | --info | --inf)
1023: ac_prev=infodir ;;
1024: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1025: infodir=$ac_optarg ;;
1.1 paf 1026:
1027: -libdir | --libdir | --libdi | --libd)
1028: ac_prev=libdir ;;
1029: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1030: libdir=$ac_optarg ;;
1.1 paf 1031:
1032: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033: | --libexe | --libex | --libe)
1034: ac_prev=libexecdir ;;
1035: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1037: libexecdir=$ac_optarg ;;
1.1 paf 1038:
1.150 moko 1039: -localedir | --localedir | --localedi | --localed | --locale)
1040: ac_prev=localedir ;;
1041: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042: localedir=$ac_optarg ;;
1043:
1.1 paf 1044: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1045: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1046: ac_prev=localstatedir ;;
1047: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1048: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1049: localstatedir=$ac_optarg ;;
1.1 paf 1050:
1051: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052: ac_prev=mandir ;;
1053: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1054: mandir=$ac_optarg ;;
1.1 paf 1055:
1056: -nfp | --nfp | --nf)
1057: # Obsolete; use --without-fp.
1058: with_fp=no ;;
1059:
1060: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1061: | --no-cr | --no-c | -n)
1.1 paf 1062: no_create=yes ;;
1063:
1064: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066: no_recursion=yes ;;
1067:
1068: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070: | --oldin | --oldi | --old | --ol | --o)
1071: ac_prev=oldincludedir ;;
1072: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1075: oldincludedir=$ac_optarg ;;
1.1 paf 1076:
1077: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078: ac_prev=prefix ;;
1079: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1080: prefix=$ac_optarg ;;
1.1 paf 1081:
1082: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083: | --program-pre | --program-pr | --program-p)
1084: ac_prev=program_prefix ;;
1085: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1087: program_prefix=$ac_optarg ;;
1.1 paf 1088:
1089: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090: | --program-suf | --program-su | --program-s)
1091: ac_prev=program_suffix ;;
1092: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1094: program_suffix=$ac_optarg ;;
1.1 paf 1095:
1096: -program-transform-name | --program-transform-name \
1097: | --program-transform-nam | --program-transform-na \
1098: | --program-transform-n | --program-transform- \
1099: | --program-transform | --program-transfor \
1100: | --program-transfo | --program-transf \
1101: | --program-trans | --program-tran \
1102: | --progr-tra | --program-tr | --program-t)
1103: ac_prev=program_transform_name ;;
1104: -program-transform-name=* | --program-transform-name=* \
1105: | --program-transform-nam=* | --program-transform-na=* \
1106: | --program-transform-n=* | --program-transform-=* \
1107: | --program-transform=* | --program-transfor=* \
1108: | --program-transfo=* | --program-transf=* \
1109: | --program-trans=* | --program-tran=* \
1110: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1111: program_transform_name=$ac_optarg ;;
1.1 paf 1112:
1.150 moko 1113: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114: ac_prev=pdfdir ;;
1115: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116: pdfdir=$ac_optarg ;;
1117:
1118: -psdir | --psdir | --psdi | --psd | --ps)
1119: ac_prev=psdir ;;
1120: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121: psdir=$ac_optarg ;;
1122:
1.1 paf 1123: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124: | -silent | --silent | --silen | --sile | --sil)
1125: silent=yes ;;
1126:
1127: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128: ac_prev=sbindir ;;
1129: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130: | --sbi=* | --sb=*)
1.62 paf 1131: sbindir=$ac_optarg ;;
1.1 paf 1132:
1133: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135: | --sharedst | --shareds | --shared | --share | --shar \
1136: | --sha | --sh)
1137: ac_prev=sharedstatedir ;;
1138: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141: | --sha=* | --sh=*)
1.62 paf 1142: sharedstatedir=$ac_optarg ;;
1.1 paf 1143:
1144: -site | --site | --sit)
1145: ac_prev=site ;;
1146: -site=* | --site=* | --sit=*)
1.62 paf 1147: site=$ac_optarg ;;
1.1 paf 1148:
1149: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150: ac_prev=srcdir ;;
1151: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1152: srcdir=$ac_optarg ;;
1.1 paf 1153:
1154: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155: | --syscon | --sysco | --sysc | --sys | --sy)
1156: ac_prev=sysconfdir ;;
1157: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1159: sysconfdir=$ac_optarg ;;
1.1 paf 1160:
1161: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1162: ac_prev=target_alias ;;
1.1 paf 1163: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1164: target_alias=$ac_optarg ;;
1.1 paf 1165:
1166: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167: verbose=yes ;;
1168:
1.62 paf 1169: -version | --version | --versio | --versi | --vers | -V)
1170: ac_init_version=: ;;
1.1 paf 1171:
1172: -with-* | --with-*)
1.150 moko 1173: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1174: # Reject names that are not valid shell variable names.
1.150 moko 1175: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176: as_fn_error $? "invalid package name: $ac_useropt"
1177: ac_useropt_orig=$ac_useropt
1178: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179: case $ac_user_opts in
1180: *"
1181: "with_$ac_useropt"
1182: "*) ;;
1183: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184: ac_unrecognized_sep=', ';;
1.1 paf 1185: esac
1.150 moko 1186: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1187:
1188: -without-* | --without-*)
1.150 moko 1189: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1190: # Reject names that are not valid shell variable names.
1.150 moko 1191: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192: as_fn_error $? "invalid package name: $ac_useropt"
1193: ac_useropt_orig=$ac_useropt
1194: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195: case $ac_user_opts in
1196: *"
1197: "with_$ac_useropt"
1198: "*) ;;
1199: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200: ac_unrecognized_sep=', ';;
1201: esac
1202: eval with_$ac_useropt=no ;;
1.1 paf 1203:
1204: --x)
1205: # Obsolete; use --with-x.
1206: with_x=yes ;;
1207:
1208: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209: | --x-incl | --x-inc | --x-in | --x-i)
1210: ac_prev=x_includes ;;
1211: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1213: x_includes=$ac_optarg ;;
1.1 paf 1214:
1215: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217: ac_prev=x_libraries ;;
1218: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1220: x_libraries=$ac_optarg ;;
1.1 paf 1221:
1.150 moko 1222: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223: Try \`$0 --help' for more information"
1.1 paf 1224: ;;
1225:
1.62 paf 1226: *=*)
1227: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228: # Reject names that are not valid shell variable names.
1.150 moko 1229: case $ac_envvar in #(
1230: '' | [0-9]* | *[!_$as_cr_alnum]* )
1231: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232: esac
1233: eval $ac_envvar=\$ac_optarg
1.62 paf 1234: export $ac_envvar ;;
1235:
1.1 paf 1236: *)
1.62 paf 1237: # FIXME: should be removed in autoconf 3.0.
1.150 moko 1238: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1239: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.150 moko 1240: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1242: ;;
1243:
1244: esac
1245: done
1246:
1247: if test -n "$ac_prev"; then
1.62 paf 1248: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1249: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1250: fi
1251:
1.150 moko 1252: if test -n "$ac_unrecognized_opts"; then
1253: case $enable_option_checking in
1254: no) ;;
1255: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257: esac
1258: fi
1259:
1260: # Check all directory arguments for consistency.
1261: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262: datadir sysconfdir sharedstatedir localstatedir includedir \
1263: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264: libdir localedir mandir
1.62 paf 1265: do
1.150 moko 1266: eval ac_val=\$$ac_var
1267: # Remove trailing slashes.
1.62 paf 1268: case $ac_val in
1.150 moko 1269: */ )
1270: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271: eval $ac_var=\$ac_val;;
1.62 paf 1272: esac
1.150 moko 1273: # Be sure to have absolute directory names.
1.62 paf 1274: case $ac_val in
1.150 moko 1275: [\\/$]* | ?:[\\/]* ) continue;;
1276: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1277: esac
1.150 moko 1278: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1279: done
1280:
1.62 paf 1281: # There might be people who depend on the old broken behavior: `$host'
1282: # used to hold the argument of --host etc.
1283: # FIXME: To remove some day.
1284: build=$build_alias
1285: host=$host_alias
1286: target=$target_alias
1287:
1288: # FIXME: To remove some day.
1289: if test "x$host_alias" != x; then
1290: if test "x$build_alias" = x; then
1291: cross_compiling=maybe
1292: elif test "x$build_alias" != "x$host_alias"; then
1293: cross_compiling=yes
1294: fi
1295: fi
1296:
1297: ac_tool_prefix=
1298: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1299:
1.62 paf 1300: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1301:
1302:
1.150 moko 1303: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304: ac_ls_di=`ls -di .` &&
1305: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306: as_fn_error $? "working directory cannot be determined"
1307: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308: as_fn_error $? "pwd does not report name of working directory"
1309:
1310:
1.1 paf 1311: # Find the source files, if location was not specified.
1312: if test -z "$srcdir"; then
1313: ac_srcdir_defaulted=yes
1.150 moko 1314: # Try the directory containing this script, then the parent directory.
1315: ac_confdir=`$as_dirname -- "$as_myself" ||
1316: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317: X"$as_myself" : 'X\(//\)[^/]' \| \
1318: X"$as_myself" : 'X\(//\)$' \| \
1319: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320: $as_echo X"$as_myself" |
1321: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322: s//\1/
1323: q
1324: }
1325: /^X\(\/\/\)[^/].*/{
1326: s//\1/
1327: q
1328: }
1329: /^X\(\/\/\)$/{
1330: s//\1/
1331: q
1332: }
1333: /^X\(\/\).*/{
1334: s//\1/
1335: q
1336: }
1337: s/.*/./; q'`
1.1 paf 1338: srcdir=$ac_confdir
1.150 moko 1339: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1340: srcdir=..
1341: fi
1342: else
1343: ac_srcdir_defaulted=no
1344: fi
1.150 moko 1345: if test ! -r "$srcdir/$ac_unique_file"; then
1346: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348: fi
1349: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350: ac_abs_confdir=`(
1351: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352: pwd)`
1353: # When building in place, set srcdir=.
1354: if test "$ac_abs_confdir" = "$ac_pwd"; then
1355: srcdir=.
1356: fi
1357: # Remove unnecessary trailing slashes from srcdir.
1358: # Double slashes in file names in object file debugging info
1359: # mess up M-x gdb in Emacs.
1360: case $srcdir in
1361: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362: esac
1363: for ac_var in $ac_precious_vars; do
1364: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365: eval ac_env_${ac_var}_value=\$${ac_var}
1366: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368: done
1.62 paf 1369:
1370: #
1371: # Report the --help message.
1372: #
1373: if test "$ac_init_help" = "long"; then
1374: # Omit some internal or obsolete options to make the list less imposing.
1375: # This message is too long to be a string in the A/UX 3.1 sh.
1376: cat <<_ACEOF
1.179 ! moko 1377: \`configure' configures parser 3.4.4rc to adapt to many kinds of systems.
1.62 paf 1378:
1379: Usage: $0 [OPTION]... [VAR=VALUE]...
1380:
1381: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382: VAR=VALUE. See below for descriptions of some of the useful variables.
1383:
1384: Defaults for the options are specified in brackets.
1385:
1386: Configuration:
1387: -h, --help display this help and exit
1388: --help=short display options specific to this package
1389: --help=recursive display the short help of all the included packages
1390: -V, --version display version information and exit
1.150 moko 1391: -q, --quiet, --silent do not print \`checking ...' messages
1.62 paf 1392: --cache-file=FILE cache test results in FILE [disabled]
1393: -C, --config-cache alias for \`--cache-file=config.cache'
1394: -n, --no-create do not create output files
1395: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396:
1397: Installation directories:
1398: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1399: [$ac_default_prefix]
1.62 paf 1400: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1401: [PREFIX]
1.62 paf 1402:
1403: By default, \`make install' will install all the files in
1404: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406: for instance \`--prefix=\$HOME'.
1407:
1408: For better control, use the options below.
1409:
1410: Fine tuning of the installation directories:
1.150 moko 1411: --bindir=DIR user executables [EPREFIX/bin]
1412: --sbindir=DIR system admin executables [EPREFIX/sbin]
1413: --libexecdir=DIR program executables [EPREFIX/libexec]
1414: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417: --libdir=DIR object code libraries [EPREFIX/lib]
1418: --includedir=DIR C header files [PREFIX/include]
1419: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422: --infodir=DIR info documentation [DATAROOTDIR/info]
1423: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424: --mandir=DIR man documentation [DATAROOTDIR/man]
1425: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1426: --htmldir=DIR html documentation [DOCDIR]
1427: --dvidir=DIR dvi documentation [DOCDIR]
1428: --pdfdir=DIR pdf documentation [DOCDIR]
1429: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1430: _ACEOF
1431:
1432: cat <<\_ACEOF
1433:
1434: Program names:
1435: --program-prefix=PREFIX prepend PREFIX to installed program names
1436: --program-suffix=SUFFIX append SUFFIX to installed program names
1437: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438:
1439: System types:
1440: --build=BUILD configure for building on BUILD [guessed]
1441: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442: _ACEOF
1443: fi
1444:
1445: if test -n "$ac_init_help"; then
1.128 moko 1446: case $ac_init_help in
1.179 ! moko 1447: short | recursive ) echo "Configuration of parser 3.4.4rc:";;
1.128 moko 1448: esac
1.62 paf 1449: cat <<\_ACEOF
1450:
1451: Optional Features:
1.150 moko 1452: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1453: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.86 paf 1455: --disable-dependency-tracking speeds up one-time build
1456: --enable-dependency-tracking do not reject slow dependency extractors
1.67 paf 1457: --disable-safe-mode to enable reading and executing
1.62 paf 1458: files belonging to group+user other then effective
1.146 moko 1459: --disable-execs to disable any execs
1.62 paf 1460: (file::exec, file::cgi, unix mail:send)
1.94 misha 1461: --disable-stringstream to disable stringstream usage.
1462: when disabled table.save use more memory but it's safer on freebsd 4.x
1.150 moko 1463: --enable-shared[=PKGS] build shared libraries [default=yes]
1464: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1465: --enable-fast-install[=PKGS]
1466: optimize for fast installation [default=yes]
1467: --disable-libtool-lock avoid locking (might break parallel builds)
1468: --enable-ltdl-install install libltdl
1.171 moko 1469: --disable-largefile omit support for large files
1.62 paf 1470:
1471: Optional Packages:
1472: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1474: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.67 paf 1475: --with-assertions to enable assertions
1.128 moko 1476: --with-sjlj-exceptions enable simple 'throw' from dynamic library
1.146 moko 1477: --with-gc=D D is the directory where
1.142 moko 1478: Boehm garbage collecting library is installed
1.146 moko 1479: --with-pcre=D D is the directory where
1.142 moko 1480: PCRE library is installed
1.146 moko 1481: --with-xml=D D is the directory where
1.142 moko 1482: Gnome XML libraries are installed
1.154 moko 1483: --with-mailreceive=D is the directory where
1484: Gnome MIME library is installed
1.62 paf 1485: \"--with-sendmail=COMMAND\" forces this command to send mail.
1486: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1487: (makes parser ignore user-defined sendmail commands)
1.146 moko 1488: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1489: builds apache DSO module using apxs
1.150 moko 1490: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.128 moko 1491: both]
1492: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493: --with-sysroot=DIR Search for dependent libraries within DIR
1494: (or the compiler's sysroot if not specified).
1495: --with-included-ltdl use the GNU ltdl sources included here
1496: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1497: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1498:
1499: Some influential environment variables:
1.150 moko 1500: YACC The `Yet Another Compiler Compiler' implementation to use.
1501: Defaults to the first program found out of: `bison -y', `byacc',
1502: `yacc'.
1503: YFLAGS The list of arguments that will be passed by default to $YACC.
1504: This script will default YFLAGS to the empty string to avoid a
1505: default value of `-d' given by some make applications.
1.66 paf 1506: CXX C++ compiler command
1507: CXXFLAGS C++ compiler flags
1.62 paf 1508: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509: nonstandard directory <lib dir>
1.150 moko 1510: LIBS libraries to pass to the linker, e.g. -l<library>
1511: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1512: you have headers in a nonstandard directory <include dir>
1.66 paf 1513: CC C compiler command
1514: CFLAGS C compiler flags
1515: CPP C preprocessor
1.128 moko 1516: CXXCPP C++ preprocessor
1.62 paf 1517:
1518: Use these variables to override the choices made by `configure' or to help
1519: it to find libraries and programs with nonstandard names/locations.
1520:
1.150 moko 1521: Report bugs to the package provider.
1.62 paf 1522: _ACEOF
1.150 moko 1523: ac_status=$?
1.62 paf 1524: fi
1525:
1526: if test "$ac_init_help" = "recursive"; then
1527: # If there are subdirs, report their specific --help.
1528: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1529: test -d "$ac_dir" ||
1530: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531: continue
1.62 paf 1532: ac_builddir=.
1533:
1.150 moko 1534: case "$ac_dir" in
1535: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536: *)
1537: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1538: # A ".." for each directory in $ac_dir_suffix.
1539: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540: case $ac_top_builddir_sub in
1541: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543: esac ;;
1544: esac
1545: ac_abs_top_builddir=$ac_pwd
1546: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547: # for backward compatibility:
1548: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1549:
1550: case $srcdir in
1.150 moko 1551: .) # We are building in place.
1.62 paf 1552: ac_srcdir=.
1.150 moko 1553: ac_top_srcdir=$ac_top_builddir_sub
1554: ac_abs_top_srcdir=$ac_pwd ;;
1555: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1556: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1557: ac_top_srcdir=$srcdir
1558: ac_abs_top_srcdir=$srcdir ;;
1559: *) # Relative name.
1560: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561: ac_top_srcdir=$ac_top_build_prefix$srcdir
1562: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1563: esac
1.150 moko 1564: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1565:
1.150 moko 1566: cd "$ac_dir" || { ac_status=$?; continue; }
1567: # Check for guested configure.
1568: if test -f "$ac_srcdir/configure.gnu"; then
1569: echo &&
1570: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571: elif test -f "$ac_srcdir/configure"; then
1572: echo &&
1573: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1574: else
1.150 moko 1575: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576: fi || ac_status=$?
1577: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1578: done
1579: fi
1580:
1.150 moko 1581: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1582: if $ac_init_version; then
1583: cat <<\_ACEOF
1.179 ! moko 1584: parser configure 3.4.4rc
1.166 moko 1585: generated by GNU Autoconf 2.69
1.62 paf 1586:
1.166 moko 1587: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 1588: This configure script is free software; the Free Software Foundation
1589: gives unlimited permission to copy, distribute and modify it.
1590: _ACEOF
1.150 moko 1591: exit
1.62 paf 1592: fi
1593:
1.150 moko 1594: ## ------------------------ ##
1595: ## Autoconf initialization. ##
1596: ## ------------------------ ##
1597:
1598: # ac_fn_cxx_try_compile LINENO
1599: # ----------------------------
1600: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601: ac_fn_cxx_try_compile ()
1.62 paf 1602: {
1.150 moko 1603: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604: rm -f conftest.$ac_objext
1605: if { { ac_try="$ac_compile"
1606: case "(($ac_try" in
1607: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608: *) ac_try_echo=$ac_try;;
1609: esac
1610: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611: $as_echo "$ac_try_echo"; } >&5
1612: (eval "$ac_compile") 2>conftest.err
1613: ac_status=$?
1614: if test -s conftest.err; then
1615: grep -v '^ *+' conftest.err >conftest.er1
1616: cat conftest.er1 >&5
1617: mv -f conftest.er1 conftest.err
1618: fi
1619: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620: test $ac_status = 0; } && {
1621: test -z "$ac_cxx_werror_flag" ||
1622: test ! -s conftest.err
1623: } && test -s conftest.$ac_objext; then :
1624: ac_retval=0
1625: else
1626: $as_echo "$as_me: failed program was:" >&5
1627: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1628:
1.150 moko 1629: ac_retval=1
1630: fi
1631: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632: as_fn_set_status $ac_retval
1.62 paf 1633:
1.150 moko 1634: } # ac_fn_cxx_try_compile
1635:
1636: # ac_fn_c_try_compile LINENO
1637: # --------------------------
1638: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639: ac_fn_c_try_compile ()
1640: {
1641: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642: rm -f conftest.$ac_objext
1643: if { { ac_try="$ac_compile"
1644: case "(($ac_try" in
1645: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646: *) ac_try_echo=$ac_try;;
1647: esac
1648: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649: $as_echo "$ac_try_echo"; } >&5
1650: (eval "$ac_compile") 2>conftest.err
1651: ac_status=$?
1652: if test -s conftest.err; then
1653: grep -v '^ *+' conftest.err >conftest.er1
1654: cat conftest.er1 >&5
1655: mv -f conftest.er1 conftest.err
1656: fi
1657: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658: test $ac_status = 0; } && {
1659: test -z "$ac_c_werror_flag" ||
1660: test ! -s conftest.err
1661: } && test -s conftest.$ac_objext; then :
1662: ac_retval=0
1663: else
1664: $as_echo "$as_me: failed program was:" >&5
1665: sed 's/^/| /' conftest.$ac_ext >&5
1666:
1667: ac_retval=1
1668: fi
1669: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670: as_fn_set_status $ac_retval
1671:
1672: } # ac_fn_c_try_compile
1673:
1674: # ac_fn_c_try_link LINENO
1675: # -----------------------
1676: # Try to link conftest.$ac_ext, and return whether this succeeded.
1677: ac_fn_c_try_link ()
1678: {
1679: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680: rm -f conftest.$ac_objext conftest$ac_exeext
1681: if { { ac_try="$ac_link"
1682: case "(($ac_try" in
1683: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684: *) ac_try_echo=$ac_try;;
1685: esac
1686: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687: $as_echo "$ac_try_echo"; } >&5
1688: (eval "$ac_link") 2>conftest.err
1689: ac_status=$?
1690: if test -s conftest.err; then
1691: grep -v '^ *+' conftest.err >conftest.er1
1692: cat conftest.er1 >&5
1693: mv -f conftest.er1 conftest.err
1694: fi
1695: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696: test $ac_status = 0; } && {
1697: test -z "$ac_c_werror_flag" ||
1698: test ! -s conftest.err
1699: } && test -s conftest$ac_exeext && {
1700: test "$cross_compiling" = yes ||
1.166 moko 1701: test -x conftest$ac_exeext
1.150 moko 1702: }; then :
1703: ac_retval=0
1704: else
1705: $as_echo "$as_me: failed program was:" >&5
1706: sed 's/^/| /' conftest.$ac_ext >&5
1707:
1708: ac_retval=1
1709: fi
1710: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712: # interfere with the next link command; also delete a directory that is
1713: # left behind by Apple's compiler. We do this before executing the actions.
1714: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716: as_fn_set_status $ac_retval
1717:
1718: } # ac_fn_c_try_link
1719:
1720: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1721: # -------------------------------------------------------
1722: # Tests whether HEADER exists and can be compiled using the include files in
1723: # INCLUDES, setting the cache variable VAR accordingly.
1724: ac_fn_c_check_header_compile ()
1725: {
1726: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728: $as_echo_n "checking for $2... " >&6; }
1729: if eval \${$3+:} false; then :
1730: $as_echo_n "(cached) " >&6
1731: else
1732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733: /* end confdefs.h. */
1734: $4
1735: #include <$2>
1736: _ACEOF
1737: if ac_fn_c_try_compile "$LINENO"; then :
1738: eval "$3=yes"
1739: else
1740: eval "$3=no"
1741: fi
1742: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743: fi
1744: eval ac_res=\$$3
1745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746: $as_echo "$ac_res" >&6; }
1747: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748:
1749: } # ac_fn_c_check_header_compile
1750:
1751: # ac_fn_c_try_cpp LINENO
1752: # ----------------------
1753: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754: ac_fn_c_try_cpp ()
1755: {
1756: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757: if { { ac_try="$ac_cpp conftest.$ac_ext"
1758: case "(($ac_try" in
1759: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760: *) ac_try_echo=$ac_try;;
1761: esac
1762: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763: $as_echo "$ac_try_echo"; } >&5
1764: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765: ac_status=$?
1766: if test -s conftest.err; then
1767: grep -v '^ *+' conftest.err >conftest.er1
1768: cat conftest.er1 >&5
1769: mv -f conftest.er1 conftest.err
1770: fi
1771: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772: test $ac_status = 0; } > conftest.i && {
1773: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774: test ! -s conftest.err
1775: }; then :
1776: ac_retval=0
1777: else
1778: $as_echo "$as_me: failed program was:" >&5
1779: sed 's/^/| /' conftest.$ac_ext >&5
1780:
1781: ac_retval=1
1782: fi
1783: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784: as_fn_set_status $ac_retval
1785:
1786: } # ac_fn_c_try_cpp
1787:
1788: # ac_fn_c_try_run LINENO
1789: # ----------------------
1790: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791: # that executables *can* be run.
1792: ac_fn_c_try_run ()
1793: {
1794: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795: if { { ac_try="$ac_link"
1796: case "(($ac_try" in
1797: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798: *) ac_try_echo=$ac_try;;
1799: esac
1800: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801: $as_echo "$ac_try_echo"; } >&5
1802: (eval "$ac_link") 2>&5
1803: ac_status=$?
1804: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806: { { case "(($ac_try" in
1807: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808: *) ac_try_echo=$ac_try;;
1809: esac
1810: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811: $as_echo "$ac_try_echo"; } >&5
1812: (eval "$ac_try") 2>&5
1813: ac_status=$?
1814: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815: test $ac_status = 0; }; }; then :
1816: ac_retval=0
1817: else
1818: $as_echo "$as_me: program exited with status $ac_status" >&5
1819: $as_echo "$as_me: failed program was:" >&5
1820: sed 's/^/| /' conftest.$ac_ext >&5
1821:
1822: ac_retval=$ac_status
1823: fi
1824: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826: as_fn_set_status $ac_retval
1827:
1828: } # ac_fn_c_try_run
1829:
1830: # ac_fn_c_check_func LINENO FUNC VAR
1831: # ----------------------------------
1832: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833: ac_fn_c_check_func ()
1834: {
1835: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837: $as_echo_n "checking for $2... " >&6; }
1838: if eval \${$3+:} false; then :
1839: $as_echo_n "(cached) " >&6
1840: else
1841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842: /* end confdefs.h. */
1843: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845: #define $2 innocuous_$2
1846:
1847: /* System header to define __stub macros and hopefully few prototypes,
1848: which can conflict with char $2 (); below.
1849: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850: <limits.h> exists even on freestanding compilers. */
1851:
1852: #ifdef __STDC__
1853: # include <limits.h>
1854: #else
1855: # include <assert.h>
1856: #endif
1857:
1858: #undef $2
1859:
1860: /* Override any GCC internal prototype to avoid an error.
1861: Use char because int might match the return type of a GCC
1862: builtin and then its argument prototype would still apply. */
1863: #ifdef __cplusplus
1864: extern "C"
1865: #endif
1866: char $2 ();
1867: /* The GNU C library defines this for functions which it implements
1868: to always fail with ENOSYS. Some functions are actually named
1869: something starting with __ and the normal name is an alias. */
1870: #if defined __stub_$2 || defined __stub___$2
1871: choke me
1872: #endif
1873:
1874: int
1875: main ()
1876: {
1877: return $2 ();
1878: ;
1879: return 0;
1880: }
1881: _ACEOF
1882: if ac_fn_c_try_link "$LINENO"; then :
1883: eval "$3=yes"
1884: else
1885: eval "$3=no"
1886: fi
1887: rm -f core conftest.err conftest.$ac_objext \
1888: conftest$ac_exeext conftest.$ac_ext
1889: fi
1890: eval ac_res=\$$3
1891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892: $as_echo "$ac_res" >&6; }
1893: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894:
1895: } # ac_fn_c_check_func
1896:
1897: # ac_fn_cxx_try_cpp LINENO
1898: # ------------------------
1899: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1900: ac_fn_cxx_try_cpp ()
1901: {
1902: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903: if { { ac_try="$ac_cpp conftest.$ac_ext"
1904: case "(($ac_try" in
1905: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906: *) ac_try_echo=$ac_try;;
1907: esac
1908: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909: $as_echo "$ac_try_echo"; } >&5
1910: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1911: ac_status=$?
1912: if test -s conftest.err; then
1913: grep -v '^ *+' conftest.err >conftest.er1
1914: cat conftest.er1 >&5
1915: mv -f conftest.er1 conftest.err
1916: fi
1917: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918: test $ac_status = 0; } > conftest.i && {
1919: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1920: test ! -s conftest.err
1921: }; then :
1922: ac_retval=0
1923: else
1924: $as_echo "$as_me: failed program was:" >&5
1925: sed 's/^/| /' conftest.$ac_ext >&5
1926:
1927: ac_retval=1
1928: fi
1929: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930: as_fn_set_status $ac_retval
1931:
1932: } # ac_fn_cxx_try_cpp
1933:
1934: # ac_fn_cxx_try_link LINENO
1935: # -------------------------
1936: # Try to link conftest.$ac_ext, and return whether this succeeded.
1937: ac_fn_cxx_try_link ()
1938: {
1939: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940: rm -f conftest.$ac_objext conftest$ac_exeext
1941: if { { ac_try="$ac_link"
1942: case "(($ac_try" in
1943: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944: *) ac_try_echo=$ac_try;;
1945: esac
1946: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947: $as_echo "$ac_try_echo"; } >&5
1948: (eval "$ac_link") 2>conftest.err
1949: ac_status=$?
1950: if test -s conftest.err; then
1951: grep -v '^ *+' conftest.err >conftest.er1
1952: cat conftest.er1 >&5
1953: mv -f conftest.er1 conftest.err
1954: fi
1955: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956: test $ac_status = 0; } && {
1957: test -z "$ac_cxx_werror_flag" ||
1958: test ! -s conftest.err
1959: } && test -s conftest$ac_exeext && {
1960: test "$cross_compiling" = yes ||
1.166 moko 1961: test -x conftest$ac_exeext
1.150 moko 1962: }; then :
1963: ac_retval=0
1964: else
1965: $as_echo "$as_me: failed program was:" >&5
1966: sed 's/^/| /' conftest.$ac_ext >&5
1967:
1968: ac_retval=1
1969: fi
1970: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972: # interfere with the next link command; also delete a directory that is
1973: # left behind by Apple's compiler. We do this before executing the actions.
1974: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976: as_fn_set_status $ac_retval
1977:
1978: } # ac_fn_cxx_try_link
1979:
1980: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1981: # ---------------------------------------------
1982: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1983: # accordingly.
1984: ac_fn_c_check_decl ()
1985: {
1986: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987: as_decl_name=`echo $2|sed 's/ *(.*//'`
1988: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1990: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1991: if eval \${$3+:} false; then :
1992: $as_echo_n "(cached) " >&6
1993: else
1994: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995: /* end confdefs.h. */
1996: $4
1997: int
1998: main ()
1999: {
2000: #ifndef $as_decl_name
2001: #ifdef __cplusplus
2002: (void) $as_decl_use;
2003: #else
2004: (void) $as_decl_name;
2005: #endif
2006: #endif
2007:
2008: ;
2009: return 0;
2010: }
2011: _ACEOF
2012: if ac_fn_c_try_compile "$LINENO"; then :
2013: eval "$3=yes"
2014: else
2015: eval "$3=no"
2016: fi
2017: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018: fi
2019: eval ac_res=\$$3
2020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021: $as_echo "$ac_res" >&6; }
2022: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023:
2024: } # ac_fn_c_check_decl
2025:
2026: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2027: # -------------------------------------------
2028: # Tests whether TYPE exists after having included INCLUDES, setting cache
2029: # variable VAR accordingly.
2030: ac_fn_c_check_type ()
2031: {
2032: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034: $as_echo_n "checking for $2... " >&6; }
2035: if eval \${$3+:} false; then :
2036: $as_echo_n "(cached) " >&6
2037: else
2038: eval "$3=no"
2039: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040: /* end confdefs.h. */
2041: $4
2042: int
2043: main ()
2044: {
2045: if (sizeof ($2))
2046: return 0;
2047: ;
2048: return 0;
2049: }
2050: _ACEOF
2051: if ac_fn_c_try_compile "$LINENO"; then :
2052: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053: /* end confdefs.h. */
2054: $4
2055: int
2056: main ()
2057: {
2058: if (sizeof (($2)))
2059: return 0;
2060: ;
2061: return 0;
2062: }
2063: _ACEOF
2064: if ac_fn_c_try_compile "$LINENO"; then :
2065:
2066: else
2067: eval "$3=yes"
2068: fi
2069: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070: fi
2071: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072: fi
2073: eval ac_res=\$$3
2074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075: $as_echo "$ac_res" >&6; }
2076: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077:
2078: } # ac_fn_c_check_type
2079:
1.156 moko 2080: # ac_fn_c_find_uintX_t LINENO BITS VAR
2081: # ------------------------------------
2082: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2083: # accordingly.
2084: ac_fn_c_find_uintX_t ()
2085: {
2086: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2088: $as_echo_n "checking for uint$2_t... " >&6; }
2089: if eval \${$3+:} false; then :
2090: $as_echo_n "(cached) " >&6
2091: else
2092: eval "$3=no"
2093: # Order is important - never check a type that is potentially smaller
2094: # than half of the expected target width.
2095: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2096: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2097: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098: /* end confdefs.h. */
2099: $ac_includes_default
2100: int
2101: main ()
2102: {
2103: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2104: test_array [0] = 0;
2105: return test_array [0];
1.156 moko 2106:
2107: ;
2108: return 0;
2109: }
2110: _ACEOF
2111: if ac_fn_c_try_compile "$LINENO"; then :
2112: case $ac_type in #(
2113: uint$2_t) :
2114: eval "$3=yes" ;; #(
2115: *) :
2116: eval "$3=\$ac_type" ;;
2117: esac
2118: fi
2119: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120: if eval test \"x\$"$3"\" = x"no"; then :
2121:
2122: else
2123: break
2124: fi
2125: done
2126: fi
2127: eval ac_res=\$$3
2128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129: $as_echo "$ac_res" >&6; }
2130: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131:
2132: } # ac_fn_c_find_uintX_t
2133:
1.161 moko 2134: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2135: # ----------------------------------------------------
2136: # Tries to find if the field MEMBER exists in type AGGR, after including
2137: # INCLUDES, setting cache variable VAR accordingly.
2138: ac_fn_c_check_member ()
2139: {
2140: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2142: $as_echo_n "checking for $2.$3... " >&6; }
2143: if eval \${$4+:} false; then :
2144: $as_echo_n "(cached) " >&6
2145: else
2146: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147: /* end confdefs.h. */
2148: $5
2149: int
2150: main ()
2151: {
2152: static $2 ac_aggr;
2153: if (ac_aggr.$3)
2154: return 0;
2155: ;
2156: return 0;
2157: }
2158: _ACEOF
2159: if ac_fn_c_try_compile "$LINENO"; then :
2160: eval "$4=yes"
2161: else
2162: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163: /* end confdefs.h. */
2164: $5
2165: int
2166: main ()
2167: {
2168: static $2 ac_aggr;
2169: if (sizeof ac_aggr.$3)
2170: return 0;
2171: ;
2172: return 0;
2173: }
2174: _ACEOF
2175: if ac_fn_c_try_compile "$LINENO"; then :
2176: eval "$4=yes"
2177: else
2178: eval "$4=no"
2179: fi
2180: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181: fi
2182: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183: fi
2184: eval ac_res=\$$4
2185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186: $as_echo "$ac_res" >&6; }
2187: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188:
2189: } # ac_fn_c_check_member
2190:
1.150 moko 2191: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2192: # -------------------------------------------------------
2193: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2194: # the include files in INCLUDES and setting the cache variable VAR
2195: # accordingly.
2196: ac_fn_c_check_header_mongrel ()
2197: {
2198: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199: if eval \${$3+:} false; then :
2200: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201: $as_echo_n "checking for $2... " >&6; }
2202: if eval \${$3+:} false; then :
2203: $as_echo_n "(cached) " >&6
2204: fi
2205: eval ac_res=\$$3
2206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207: $as_echo "$ac_res" >&6; }
2208: else
2209: # Is the header compilable?
2210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2211: $as_echo_n "checking $2 usability... " >&6; }
2212: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213: /* end confdefs.h. */
2214: $4
2215: #include <$2>
2216: _ACEOF
2217: if ac_fn_c_try_compile "$LINENO"; then :
2218: ac_header_compiler=yes
2219: else
2220: ac_header_compiler=no
2221: fi
2222: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2224: $as_echo "$ac_header_compiler" >&6; }
2225:
2226: # Is the header present?
2227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2228: $as_echo_n "checking $2 presence... " >&6; }
2229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230: /* end confdefs.h. */
2231: #include <$2>
2232: _ACEOF
2233: if ac_fn_c_try_cpp "$LINENO"; then :
2234: ac_header_preproc=yes
2235: else
2236: ac_header_preproc=no
2237: fi
2238: rm -f conftest.err conftest.i conftest.$ac_ext
2239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2240: $as_echo "$ac_header_preproc" >&6; }
2241:
2242: # So? What about this header?
2243: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2244: yes:no: )
2245: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2246: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2247: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2248: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2249: ;;
2250: no:yes:* )
2251: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2252: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2253: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2254: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2255: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2256: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2257: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2258: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2259: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2260: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2261: ;;
2262: esac
2263: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2264: $as_echo_n "checking for $2... " >&6; }
2265: if eval \${$3+:} false; then :
2266: $as_echo_n "(cached) " >&6
2267: else
2268: eval "$3=\$ac_header_compiler"
2269: fi
2270: eval ac_res=\$$3
2271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272: $as_echo "$ac_res" >&6; }
2273: fi
2274: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275:
2276: } # ac_fn_c_check_header_mongrel
2277: cat >config.log <<_ACEOF
2278: This file contains any messages produced by compilers while
2279: running configure, to aid debugging if configure makes a mistake.
2280:
1.179 ! moko 2281: It was created by parser $as_me 3.4.4rc, which was
1.166 moko 2282: generated by GNU Autoconf 2.69. Invocation command line was
1.150 moko 2283:
2284: $ $0 $@
2285:
2286: _ACEOF
2287: exec 5>>config.log
2288: {
2289: cat <<_ASUNAME
2290: ## --------- ##
2291: ## Platform. ##
2292: ## --------- ##
2293:
2294: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2295: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2296: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2297: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2298: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2299:
2300: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2301: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2302:
2303: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2304: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2305: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2306: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2307: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2308: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2309: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2310:
2311: _ASUNAME
2312:
2313: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314: for as_dir in $PATH
2315: do
2316: IFS=$as_save_IFS
2317: test -z "$as_dir" && as_dir=.
1.150 moko 2318: $as_echo "PATH: $as_dir"
2319: done
2320: IFS=$as_save_IFS
1.1 paf 2321:
1.62 paf 2322: } >&5
2323:
2324: cat >&5 <<_ACEOF
2325:
2326:
2327: ## ----------- ##
2328: ## Core tests. ##
2329: ## ----------- ##
2330:
2331: _ACEOF
2332:
2333:
2334: # Keep a trace of the command line.
2335: # Strip out --no-create and --no-recursion so they do not pile up.
2336: # Strip out --silent because we don't want to record it for future runs.
2337: # Also quote any args containing shell meta-characters.
2338: # Make two passes to allow for proper duplicate-argument suppression.
2339: ac_configure_args=
2340: ac_configure_args0=
2341: ac_configure_args1=
2342: ac_must_keep_next=false
2343: for ac_pass in 1 2
2344: do
2345: for ac_arg
2346: do
2347: case $ac_arg in
2348: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2349: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2350: | -silent | --silent | --silen | --sile | --sil)
2351: continue ;;
1.150 moko 2352: *\'*)
2353: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2354: esac
2355: case $ac_pass in
1.150 moko 2356: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2357: 2)
1.150 moko 2358: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2359: if test $ac_must_keep_next = true; then
1.86 paf 2360: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2361: else
1.86 paf 2362: case $ac_arg in
2363: *=* | --config-cache | -C | -disable-* | --disable-* \
2364: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2365: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2366: | -with-* | --with-* | -without-* | --without-* | --x)
2367: case "$ac_configure_args0 " in
2368: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2369: esac
2370: ;;
2371: -* ) ac_must_keep_next=true ;;
2372: esac
1.62 paf 2373: fi
1.150 moko 2374: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2375: ;;
2376: esac
2377: done
2378: done
1.150 moko 2379: { ac_configure_args0=; unset ac_configure_args0;}
2380: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2381:
2382: # When interrupted or exit'd, cleanup temporary files, and complete
2383: # config.log. We remove comments because anyway the quotes in there
2384: # would cause problems or look ugly.
1.150 moko 2385: # WARNING: Use '\'' to represent an apostrophe within the trap.
2386: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2387: trap 'exit_status=$?
2388: # Save into config.log some information that might help in debugging.
2389: {
2390: echo
2391:
1.150 moko 2392: $as_echo "## ---------------- ##
1.62 paf 2393: ## Cache variables. ##
1.150 moko 2394: ## ---------------- ##"
1.62 paf 2395: echo
2396: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2397: (
2398: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2399: eval ac_val=\$$ac_var
2400: case $ac_val in #(
2401: *${as_nl}*)
2402: case $ac_var in #(
2403: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2404: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2405: esac
2406: case $ac_var in #(
2407: _ | IFS | as_nl) ;; #(
2408: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2409: *) { eval $ac_var=; unset $ac_var;} ;;
2410: esac ;;
2411: esac
2412: done
1.62 paf 2413: (set) 2>&1 |
1.150 moko 2414: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2415: *${as_nl}ac_space=\ *)
1.62 paf 2416: sed -n \
1.150 moko 2417: "s/'\''/'\''\\\\'\'''\''/g;
2418: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2419: ;; #(
1.62 paf 2420: *)
1.150 moko 2421: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2422: ;;
1.150 moko 2423: esac |
2424: sort
2425: )
1.62 paf 2426: echo
2427:
1.150 moko 2428: $as_echo "## ----------------- ##
1.62 paf 2429: ## Output variables. ##
1.150 moko 2430: ## ----------------- ##"
1.62 paf 2431: echo
2432: for ac_var in $ac_subst_vars
2433: do
1.150 moko 2434: eval ac_val=\$$ac_var
2435: case $ac_val in
2436: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437: esac
2438: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2439: done | sort
2440: echo
2441:
2442: if test -n "$ac_subst_files"; then
1.150 moko 2443: $as_echo "## ------------------- ##
2444: ## File substitutions. ##
2445: ## ------------------- ##"
1.62 paf 2446: echo
2447: for ac_var in $ac_subst_files
2448: do
1.150 moko 2449: eval ac_val=\$$ac_var
2450: case $ac_val in
2451: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2452: esac
2453: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2454: done | sort
2455: echo
2456: fi
2457:
2458: if test -s confdefs.h; then
1.150 moko 2459: $as_echo "## ----------- ##
1.62 paf 2460: ## confdefs.h. ##
1.150 moko 2461: ## ----------- ##"
1.62 paf 2462: echo
1.150 moko 2463: cat confdefs.h
1.62 paf 2464: echo
2465: fi
2466: test "$ac_signal" != 0 &&
1.150 moko 2467: $as_echo "$as_me: caught signal $ac_signal"
2468: $as_echo "$as_me: exit $exit_status"
1.62 paf 2469: } >&5
1.150 moko 2470: rm -f core *.core core.conftest.* &&
2471: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2472: exit $exit_status
1.150 moko 2473: ' 0
1.62 paf 2474: for ac_signal in 1 2 13 15; do
1.150 moko 2475: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2476: done
2477: ac_signal=0
2478:
2479: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2480: rm -f -r conftest* confdefs.h
2481:
2482: $as_echo "/* confdefs.h */" > confdefs.h
1.62 paf 2483:
2484: # Predefined preprocessor variables.
2485:
2486: cat >>confdefs.h <<_ACEOF
2487: #define PACKAGE_NAME "$PACKAGE_NAME"
2488: _ACEOF
2489:
2490: cat >>confdefs.h <<_ACEOF
2491: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2492: _ACEOF
2493:
2494: cat >>confdefs.h <<_ACEOF
2495: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2496: _ACEOF
2497:
2498: cat >>confdefs.h <<_ACEOF
2499: #define PACKAGE_STRING "$PACKAGE_STRING"
2500: _ACEOF
2501:
1.150 moko 2502: cat >>confdefs.h <<_ACEOF
2503: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2504: _ACEOF
1.62 paf 2505:
2506: cat >>confdefs.h <<_ACEOF
1.150 moko 2507: #define PACKAGE_URL "$PACKAGE_URL"
1.62 paf 2508: _ACEOF
2509:
2510:
2511: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2512: # Prefer an explicitly selected file to automatically selected ones.
2513: ac_site_file1=NONE
2514: ac_site_file2=NONE
2515: if test -n "$CONFIG_SITE"; then
2516: # We do not want a PATH search for config.site.
2517: case $CONFIG_SITE in #((
2518: -*) ac_site_file1=./$CONFIG_SITE;;
2519: */*) ac_site_file1=$CONFIG_SITE;;
2520: *) ac_site_file1=./$CONFIG_SITE;;
2521: esac
2522: elif test "x$prefix" != xNONE; then
2523: ac_site_file1=$prefix/share/config.site
2524: ac_site_file2=$prefix/etc/config.site
2525: else
2526: ac_site_file1=$ac_default_prefix/share/config.site
2527: ac_site_file2=$ac_default_prefix/etc/config.site
2528: fi
2529: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2530: do
2531: test "x$ac_site_file" = xNONE && continue
2532: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2533: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2534: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2535: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2536: . "$ac_site_file" \
2537: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539: as_fn_error $? "failed to load site script $ac_site_file
2540: See \`config.log' for more details" "$LINENO" 5; }
1.1 paf 2541: fi
2542: done
2543:
2544: if test -r "$cache_file"; then
1.150 moko 2545: # Some versions of bash will fail to source /dev/null (special files
2546: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2547: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2548: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2549: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2550: case $cache_file in
1.150 moko 2551: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2552: *) . "./$cache_file";;
1.62 paf 2553: esac
2554: fi
1.1 paf 2555: else
1.150 moko 2556: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2557: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2558: >$cache_file
2559: fi
2560:
2561: # Check that the precious variables saved in the cache have kept the same
2562: # value.
2563: ac_cache_corrupted=false
1.150 moko 2564: for ac_var in $ac_precious_vars; do
1.62 paf 2565: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2566: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 2567: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2568: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 2569: case $ac_old_set,$ac_new_set in
2570: set,)
1.150 moko 2571: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2572: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.62 paf 2573: ac_cache_corrupted=: ;;
2574: ,set)
1.150 moko 2575: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2576: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.62 paf 2577: ac_cache_corrupted=: ;;
2578: ,);;
2579: *)
2580: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 2581: # differences in whitespace do not lead to failure.
2582: ac_old_val_w=`echo x $ac_old_val`
2583: ac_new_val_w=`echo x $ac_new_val`
2584: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2585: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2586: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2587: ac_cache_corrupted=:
2588: else
2589: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2590: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2591: eval $ac_var=\$ac_old_val
2592: fi
2593: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2594: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2595: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2596: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.62 paf 2597: fi;;
2598: esac
2599: # Pass precious variables to config.status.
2600: if test "$ac_new_set" = set; then
2601: case $ac_new_val in
1.150 moko 2602: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2603: *) ac_arg=$ac_var=$ac_new_val ;;
2604: esac
2605: case " $ac_configure_args " in
2606: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 2607: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 2608: esac
2609: fi
2610: done
2611: if $ac_cache_corrupted; then
1.150 moko 2612: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2613: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2614: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2615: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2616: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2617: fi
2618: ## -------------------- ##
2619: ## Main body of script. ##
2620: ## -------------------- ##
1.1 paf 2621:
2622: ac_ext=c
2623: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 2624: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627:
2628:
2629:
2630:
2631:
1.150 moko 2632: am__api_version='1.11'
1.62 paf 2633:
1.1 paf 2634: ac_aux_dir=
1.150 moko 2635: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2636: if test -f "$ac_dir/install-sh"; then
1.1 paf 2637: ac_aux_dir=$ac_dir
2638: ac_install_sh="$ac_aux_dir/install-sh -c"
2639: break
1.150 moko 2640: elif test -f "$ac_dir/install.sh"; then
1.1 paf 2641: ac_aux_dir=$ac_dir
2642: ac_install_sh="$ac_aux_dir/install.sh -c"
2643: break
1.150 moko 2644: elif test -f "$ac_dir/shtool"; then
1.62 paf 2645: ac_aux_dir=$ac_dir
2646: ac_install_sh="$ac_aux_dir/shtool install -c"
2647: break
1.1 paf 2648: fi
2649: done
2650: if test -z "$ac_aux_dir"; then
1.150 moko 2651: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2652: fi
2653:
2654: # These three variables are undocumented and unsupported,
2655: # and are intended to be withdrawn in a future Autoconf release.
2656: # They can cause serious problems if a builder's source tree is in a directory
2657: # whose full name contains unusual characters.
2658: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2659: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2660: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2661:
1.1 paf 2662:
2663: # Find a good install program. We prefer a C program (faster),
2664: # so one script is as good as another. But avoid the broken or
2665: # incompatible versions:
2666: # SysV /etc/install, /usr/sbin/install
2667: # SunOS /usr/etc/install
2668: # IRIX /sbin/install
2669: # AIX /bin/install
1.62 paf 2670: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2671: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2672: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2673: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 2674: # OS/2's system install, which has a completely different semantic
1.1 paf 2675: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 2676: # Reject install programs that cannot install multiple files.
2677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2678: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 paf 2679: if test -z "$INSTALL"; then
1.150 moko 2680: if ${ac_cv_path_install+:} false; then :
2681: $as_echo_n "(cached) " >&6
1.1 paf 2682: else
1.62 paf 2683: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684: for as_dir in $PATH
2685: do
2686: IFS=$as_save_IFS
2687: test -z "$as_dir" && as_dir=.
1.150 moko 2688: # Account for people who put trailing slashes in PATH elements.
2689: case $as_dir/ in #((
2690: ./ | .// | /[cC]/* | \
1.62 paf 2691: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 2692: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 2693: /usr/ucb/* ) ;;
2694: *)
2695: # OSF1 and SCO ODT 3.0 have their own names for install.
2696: # Don't use installbsd from OSF since it installs stuff as root
2697: # by default.
2698: for ac_prog in ginstall scoinst install; do
2699: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2700: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.86 paf 2701: if test $ac_prog = install &&
2702: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2703: # AIX install. It has an incompatible calling convention.
2704: :
2705: elif test $ac_prog = install &&
2706: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707: # program-specific install script used by HP pwplus--don't use.
2708: :
2709: else
1.150 moko 2710: rm -rf conftest.one conftest.two conftest.dir
2711: echo one > conftest.one
2712: echo two > conftest.two
2713: mkdir conftest.dir
2714: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2715: test -s conftest.one && test -s conftest.two &&
2716: test -s conftest.dir/conftest.one &&
2717: test -s conftest.dir/conftest.two
2718: then
2719: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2720: break 3
2721: fi
1.86 paf 2722: fi
2723: fi
1.1 paf 2724: done
1.62 paf 2725: done
2726: ;;
2727: esac
2728:
1.150 moko 2729: done
2730: IFS=$as_save_IFS
2731:
2732: rm -rf conftest.one conftest.two conftest.dir
1.1 paf 2733:
2734: fi
2735: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 2736: INSTALL=$ac_cv_path_install
1.1 paf 2737: else
1.150 moko 2738: # As a last resort, use the slow shell script. Don't cache a
2739: # value for INSTALL within a source directory, because that will
1.1 paf 2740: # break other packages using the cache if that directory is
1.150 moko 2741: # removed, or if the value is a relative name.
1.62 paf 2742: INSTALL=$ac_install_sh
1.1 paf 2743: fi
2744: fi
1.150 moko 2745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2746: $as_echo "$INSTALL" >&6; }
1.1 paf 2747:
2748: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2749: # It thinks the first close brace ends the variable substitution.
2750: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2751:
1.62 paf 2752: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2753:
2754: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2755:
1.150 moko 2756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2757: $as_echo_n "checking whether build environment is sane... " >&6; }
1.1 paf 2758: # Just in case
2759: sleep 1
1.62 paf 2760: echo timestamp > conftest.file
1.150 moko 2761: # Reject unsafe characters in $srcdir or the absolute working directory
2762: # name. Accept space and tab only in the latter.
2763: am_lf='
2764: '
2765: case `pwd` in
2766: *[\\\"\#\$\&\'\`$am_lf]*)
2767: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2768: esac
2769: case $srcdir in
2770: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2771: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2772: esac
2773:
1.1 paf 2774: # Do `set' in a subshell so we don't clobber the current shell's
2775: # arguments. Must try -L first in case configure is actually a
2776: # symlink; some systems play weird games with the mod time of symlinks
2777: # (eg FreeBSD returns the mod time of the symlink's containing
2778: # directory).
2779: if (
1.150 moko 2780: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.1 paf 2781: if test "$*" = "X"; then
2782: # -L didn't work.
1.150 moko 2783: set X `ls -t "$srcdir/configure" conftest.file`
1.1 paf 2784: fi
1.62 paf 2785: rm -f conftest.file
2786: if test "$*" != "X $srcdir/configure conftest.file" \
2787: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 2788:
2789: # If neither matched, then we have a broken ls. This can happen
2790: # if, for instance, CONFIG_SHELL is bash and it inherits a
2791: # broken ls alias from the environment. This has actually
2792: # happened. Such a system could not be considered "sane".
1.150 moko 2793: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2794: alias in your environment" "$LINENO" 5
1.1 paf 2795: fi
2796:
1.62 paf 2797: test "$2" = conftest.file
1.1 paf 2798: )
2799: then
2800: # Ok.
2801: :
2802: else
1.150 moko 2803: as_fn_error $? "newly created file is older than distributed files!
2804: Check your system clock" "$LINENO" 5
1.1 paf 2805: fi
1.150 moko 2806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2807: $as_echo "yes" >&6; }
1.1 paf 2808: test "$program_prefix" != NONE &&
1.150 moko 2809: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 2810: # Use a double $ so make ignores it.
2811: test "$program_suffix" != NONE &&
1.150 moko 2812: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2813: # Double any \ or $.
1.62 paf 2814: # By default was `s,x,x', remove it if useless.
1.150 moko 2815: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2816: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.62 paf 2817:
2818: # expand $ac_aux_dir to an absolute path
2819: am_aux_dir=`cd $ac_aux_dir && pwd`
2820:
1.150 moko 2821: if test x"${MISSING+set}" != xset; then
2822: case $am_aux_dir in
2823: *\ * | *\ *)
2824: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2825: *)
2826: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2827: esac
2828: fi
1.62 paf 2829: # Use eval to expand $SHELL
2830: if eval "$MISSING --run true"; then
2831: am_missing_run="$MISSING --run "
2832: else
2833: am_missing_run=
1.150 moko 2834: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2835: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.62 paf 2836: fi
2837:
1.150 moko 2838: if test x"${install_sh}" != xset; then
2839: case $am_aux_dir in
2840: *\ * | *\ *)
2841: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2842: *)
2843: install_sh="\${SHELL} $am_aux_dir/install-sh"
2844: esac
1.86 paf 2845: fi
2846:
1.150 moko 2847: # Installed binaries are usually stripped using `strip' when the user
2848: # run `make install-strip'. However `strip' might not be the right
2849: # tool to use in cross-compilation environments, therefore Automake
2850: # will honor the `STRIP' environment variable to overrule this program.
2851: if test "$cross_compiling" != no; then
2852: if test -n "$ac_tool_prefix"; then
2853: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2854: set dummy ${ac_tool_prefix}strip; ac_word=$2
2855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856: $as_echo_n "checking for $ac_word... " >&6; }
2857: if ${ac_cv_prog_STRIP+:} false; then :
2858: $as_echo_n "(cached) " >&6
2859: else
2860: if test -n "$STRIP"; then
2861: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2862: else
2863: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864: for as_dir in $PATH
2865: do
2866: IFS=$as_save_IFS
2867: test -z "$as_dir" && as_dir=.
2868: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2869: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2870: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2871: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872: break 2
2873: fi
2874: done
2875: done
2876: IFS=$as_save_IFS
2877:
2878: fi
2879: fi
2880: STRIP=$ac_cv_prog_STRIP
2881: if test -n "$STRIP"; then
2882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2883: $as_echo "$STRIP" >&6; }
2884: else
2885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886: $as_echo "no" >&6; }
2887: fi
2888:
2889:
2890: fi
2891: if test -z "$ac_cv_prog_STRIP"; then
2892: ac_ct_STRIP=$STRIP
2893: # Extract the first word of "strip", so it can be a program name with args.
2894: set dummy strip; ac_word=$2
2895: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896: $as_echo_n "checking for $ac_word... " >&6; }
2897: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2898: $as_echo_n "(cached) " >&6
2899: else
2900: if test -n "$ac_ct_STRIP"; then
2901: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2902: else
2903: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904: for as_dir in $PATH
2905: do
2906: IFS=$as_save_IFS
2907: test -z "$as_dir" && as_dir=.
2908: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2909: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2910: ac_cv_prog_ac_ct_STRIP="strip"
2911: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912: break 2
2913: fi
2914: done
2915: done
2916: IFS=$as_save_IFS
2917:
2918: fi
2919: fi
2920: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2921: if test -n "$ac_ct_STRIP"; then
2922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2923: $as_echo "$ac_ct_STRIP" >&6; }
2924: else
2925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926: $as_echo "no" >&6; }
2927: fi
2928:
2929: if test "x$ac_ct_STRIP" = x; then
2930: STRIP=":"
2931: else
2932: case $cross_compiling:$ac_tool_warned in
2933: yes:)
2934: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2935: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2936: ac_tool_warned=yes ;;
2937: esac
2938: STRIP=$ac_ct_STRIP
2939: fi
2940: else
2941: STRIP="$ac_cv_prog_STRIP"
2942: fi
2943:
2944: fi
2945: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2946:
2947: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2948: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2949: if test -z "$MKDIR_P"; then
2950: if ${ac_cv_path_mkdir+:} false; then :
2951: $as_echo_n "(cached) " >&6
2952: else
2953: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2955: do
2956: IFS=$as_save_IFS
2957: test -z "$as_dir" && as_dir=.
2958: for ac_prog in mkdir gmkdir; do
2959: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2960: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.150 moko 2961: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2962: 'mkdir (GNU coreutils) '* | \
2963: 'mkdir (coreutils) '* | \
2964: 'mkdir (fileutils) '4.1*)
2965: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2966: break 3;;
2967: esac
2968: done
2969: done
2970: done
2971: IFS=$as_save_IFS
2972:
2973: fi
2974:
2975: test -d ./--version && rmdir ./--version
2976: if test "${ac_cv_path_mkdir+set}" = set; then
2977: MKDIR_P="$ac_cv_path_mkdir -p"
2978: else
2979: # As a last resort, use the slow shell script. Don't cache a
2980: # value for MKDIR_P within a source directory, because that will
2981: # break other packages using the cache if that directory is
2982: # removed, or if the value is a relative name.
2983: MKDIR_P="$ac_install_sh -d"
2984: fi
2985: fi
2986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2987: $as_echo "$MKDIR_P" >&6; }
2988:
2989: mkdir_p="$MKDIR_P"
2990: case $mkdir_p in
2991: [\\/$]* | ?:[\\/]*) ;;
2992: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2993: esac
2994:
2995: for ac_prog in gawk mawk nawk awk
1.62 paf 2996: do
2997: # Extract the first word of "$ac_prog", so it can be a program name with args.
2998: set dummy $ac_prog; ac_word=$2
1.150 moko 2999: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000: $as_echo_n "checking for $ac_word... " >&6; }
3001: if ${ac_cv_prog_AWK+:} false; then :
3002: $as_echo_n "(cached) " >&6
1.62 paf 3003: else
3004: if test -n "$AWK"; then
3005: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3006: else
3007: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008: for as_dir in $PATH
3009: do
3010: IFS=$as_save_IFS
3011: test -z "$as_dir" && as_dir=.
1.150 moko 3012: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3013: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3014: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3015: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3016: break 2
3017: fi
3018: done
1.150 moko 3019: done
3020: IFS=$as_save_IFS
1.62 paf 3021:
3022: fi
3023: fi
3024: AWK=$ac_cv_prog_AWK
3025: if test -n "$AWK"; then
1.150 moko 3026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3027: $as_echo "$AWK" >&6; }
1.62 paf 3028: else
1.150 moko 3029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030: $as_echo "no" >&6; }
1.62 paf 3031: fi
1.1 paf 3032:
1.150 moko 3033:
1.62 paf 3034: test -n "$AWK" && break
3035: done
1.1 paf 3036:
1.150 moko 3037: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3038: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3039: set x ${MAKE-make}
3040: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3041: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3042: $as_echo_n "(cached) " >&6
1.1 paf 3043: else
1.62 paf 3044: cat >conftest.make <<\_ACEOF
1.150 moko 3045: SHELL = /bin/sh
1.1 paf 3046: all:
1.150 moko 3047: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3048: _ACEOF
1.150 moko 3049: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3050: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3051: *@@@%%%=?*=@@@%%%*)
3052: eval ac_cv_prog_make_${ac_make}_set=yes;;
3053: *)
3054: eval ac_cv_prog_make_${ac_make}_set=no;;
3055: esac
1.62 paf 3056: rm -f conftest.make
1.1 paf 3057: fi
1.150 moko 3058: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3060: $as_echo "yes" >&6; }
1.1 paf 3061: SET_MAKE=
3062: else
1.150 moko 3063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064: $as_echo "no" >&6; }
1.1 paf 3065: SET_MAKE="MAKE=${MAKE-make}"
3066: fi
3067:
1.86 paf 3068: rm -rf .tst 2>/dev/null
3069: mkdir .tst 2>/dev/null
3070: if test -d .tst; then
3071: am__leading_dot=.
3072: else
3073: am__leading_dot=_
3074: fi
3075: rmdir .tst 2>/dev/null
3076:
1.150 moko 3077: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3078: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3079: # is not polluted with repeated "-I."
3080: am__isrc=' -I$(srcdir)'
3081: # test to see if srcdir already configured
3082: if test -f $srcdir/config.status; then
3083: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3084: fi
1.62 paf 3085: fi
3086:
3087: # test whether we have cygpath
3088: if test -z "$CYGPATH_W"; then
3089: if (cygpath --version) >/dev/null 2>/dev/null; then
3090: CYGPATH_W='cygpath -w'
3091: else
3092: CYGPATH_W=echo
3093: fi
3094: fi
3095:
3096:
3097: # Define the identity of the package.
1.128 moko 3098: PACKAGE='parser'
1.179 ! moko 3099: VERSION='3.4.4rc'
1.128 moko 3100:
3101:
3102: cat >>confdefs.h <<_ACEOF
3103: #define PACKAGE "$PACKAGE"
3104: _ACEOF
1.1 paf 3105:
3106:
1.128 moko 3107: cat >>confdefs.h <<_ACEOF
3108: #define VERSION "$VERSION"
3109: _ACEOF
3110:
1.62 paf 3111: # Some tools Automake needs.
3112:
3113: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3114:
3115:
3116: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3117:
3118:
3119: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3120:
3121:
3122: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3123:
3124:
3125: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 3126:
1.62 paf 3127: # We need awk for the "check" target. The system "awk" is bad on
3128: # some platforms.
1.86 paf 3129: # Always define AMTAR for backward compatibility.
3130:
3131: AMTAR=${AMTAR-"${am_missing_run}tar"}
3132:
3133: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3134:
3135:
1.62 paf 3136:
1.1 paf 3137:
3138:
3139:
1.128 moko 3140:
1.12 paf 3141: P3S=`cd $srcdir/src ; pwd`
1.1 paf 3142:
3143:
1.128 moko 3144:
1.41 paf 3145: # Make sure we can run config.sub.
1.150 moko 3146: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3147: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.62 paf 3148:
1.150 moko 3149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3150: $as_echo_n "checking build system type... " >&6; }
3151: if ${ac_cv_build+:} false; then :
3152: $as_echo_n "(cached) " >&6
3153: else
3154: ac_build_alias=$build_alias
3155: test "x$ac_build_alias" = x &&
3156: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3157: test "x$ac_build_alias" = x &&
3158: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3159: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3160: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3161:
3162: fi
3163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3164: $as_echo "$ac_cv_build" >&6; }
3165: case $ac_cv_build in
3166: *-*-*) ;;
3167: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3168: esac
3169: build=$ac_cv_build
3170: ac_save_IFS=$IFS; IFS='-'
3171: set x $ac_cv_build
3172: shift
3173: build_cpu=$1
3174: build_vendor=$2
3175: shift; shift
3176: # Remember, the first character of IFS is used to create $*,
3177: # except with old shells:
3178: build_os=$*
3179: IFS=$ac_save_IFS
3180: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3181:
3182:
3183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3184: $as_echo_n "checking host system type... " >&6; }
3185: if ${ac_cv_host+:} false; then :
3186: $as_echo_n "(cached) " >&6
3187: else
3188: if test "x$host_alias" = x; then
3189: ac_cv_host=$ac_cv_build
3190: else
3191: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3192: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.62 paf 3193: fi
3194:
3195: fi
1.150 moko 3196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3197: $as_echo "$ac_cv_host" >&6; }
3198: case $ac_cv_host in
3199: *-*-*) ;;
3200: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3201: esac
1.62 paf 3202: host=$ac_cv_host
1.150 moko 3203: ac_save_IFS=$IFS; IFS='-'
3204: set x $ac_cv_host
3205: shift
3206: host_cpu=$1
3207: host_vendor=$2
3208: shift; shift
3209: # Remember, the first character of IFS is used to create $*,
3210: # except with old shells:
3211: host_os=$*
3212: IFS=$ac_save_IFS
3213: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 3214:
3215:
3216:
1.148 moko 3217: cat >>confdefs.h <<_ACEOF
3218: #define PARSER_VERSION "$VERSION (compiled on $host)"
1.147 moko 3219: _ACEOF
3220:
3221:
1.41 paf 3222:
1.67 paf 3223: case $host_os in
3224: *cygwin* )
1.150 moko 3225: $as_echo "#define CYGWIN /**/" >>confdefs.h
1.67 paf 3226: ;;
3227: esac
1.41 paf 3228:
1.128 moko 3229:
1.1 paf 3230:
1.62 paf 3231: for ac_prog in gawk mawk nawk awk
1.41 paf 3232: do
1.62 paf 3233: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3234: set dummy $ac_prog; ac_word=$2
1.150 moko 3235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236: $as_echo_n "checking for $ac_word... " >&6; }
3237: if ${ac_cv_prog_AWK+:} false; then :
3238: $as_echo_n "(cached) " >&6
1.41 paf 3239: else
3240: if test -n "$AWK"; then
3241: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3242: else
1.62 paf 3243: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244: for as_dir in $PATH
3245: do
3246: IFS=$as_save_IFS
3247: test -z "$as_dir" && as_dir=.
1.150 moko 3248: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3249: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3250: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3251: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3252: break 2
3253: fi
3254: done
1.150 moko 3255: done
3256: IFS=$as_save_IFS
1.62 paf 3257:
1.41 paf 3258: fi
3259: fi
1.62 paf 3260: AWK=$ac_cv_prog_AWK
1.41 paf 3261: if test -n "$AWK"; then
1.150 moko 3262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3263: $as_echo "$AWK" >&6; }
1.41 paf 3264: else
1.150 moko 3265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266: $as_echo "no" >&6; }
1.41 paf 3267: fi
3268:
1.150 moko 3269:
1.62 paf 3270: test -n "$AWK" && break
1.41 paf 3271: done
3272:
3273:
3274: for ac_prog in 'bison -y' byacc
3275: do
1.62 paf 3276: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3277: set dummy $ac_prog; ac_word=$2
1.150 moko 3278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279: $as_echo_n "checking for $ac_word... " >&6; }
3280: if ${ac_cv_prog_YACC+:} false; then :
3281: $as_echo_n "(cached) " >&6
1.41 paf 3282: else
3283: if test -n "$YACC"; then
3284: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3285: else
1.62 paf 3286: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287: for as_dir in $PATH
3288: do
3289: IFS=$as_save_IFS
3290: test -z "$as_dir" && as_dir=.
1.150 moko 3291: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3292: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3293: ac_cv_prog_YACC="$ac_prog"
1.150 moko 3294: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3295: break 2
3296: fi
3297: done
1.150 moko 3298: done
3299: IFS=$as_save_IFS
1.62 paf 3300:
1.41 paf 3301: fi
3302: fi
1.62 paf 3303: YACC=$ac_cv_prog_YACC
1.41 paf 3304: if test -n "$YACC"; then
1.150 moko 3305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3306: $as_echo "$YACC" >&6; }
1.41 paf 3307: else
1.150 moko 3308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309: $as_echo "no" >&6; }
1.41 paf 3310: fi
3311:
1.150 moko 3312:
1.62 paf 3313: test -n "$YACC" && break
1.41 paf 3314: done
3315: test -n "$YACC" || YACC="yacc"
3316:
3317: if test "$YACC" != "bison -y"; then
1.150 moko 3318: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
3319: $as_echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 3320: else
1.150 moko 3321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
3322: $as_echo_n "checking bison version... " >&6; }
1.67 paf 3323: oldIFS=$IFS; IFS=.
3324: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
3325: IFS=$oldIFS
3326: if test "$1" = "1" -a "$2" -lt "25"; then
1.150 moko 3327: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
3328: $as_echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 3329: fi
1.150 moko 3330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
3331: $as_echo "$1.$2 (ok)" >&6; }
1.62 paf 3332: fi
3333:
1.150 moko 3334: ac_ext=cpp
1.66 paf 3335: ac_cpp='$CXXCPP $CPPFLAGS'
3336: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 3339: if test -z "$CXX"; then
3340: if test -n "$CCC"; then
3341: CXX=$CCC
3342: else
3343: if test -n "$ac_tool_prefix"; then
3344: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3345: do
3346: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3347: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 3348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349: $as_echo_n "checking for $ac_word... " >&6; }
3350: if ${ac_cv_prog_CXX+:} false; then :
3351: $as_echo_n "(cached) " >&6
1.62 paf 3352: else
1.66 paf 3353: if test -n "$CXX"; then
3354: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 3355: else
3356: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357: for as_dir in $PATH
3358: do
3359: IFS=$as_save_IFS
3360: test -z "$as_dir" && as_dir=.
1.150 moko 3361: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3362: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3363: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.150 moko 3364: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3365: break 2
3366: fi
3367: done
1.150 moko 3368: done
3369: IFS=$as_save_IFS
1.62 paf 3370:
3371: fi
3372: fi
1.66 paf 3373: CXX=$ac_cv_prog_CXX
3374: if test -n "$CXX"; then
1.150 moko 3375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3376: $as_echo "$CXX" >&6; }
1.62 paf 3377: else
1.150 moko 3378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379: $as_echo "no" >&6; }
1.41 paf 3380: fi
3381:
1.150 moko 3382:
1.66 paf 3383: test -n "$CXX" && break
3384: done
1.62 paf 3385: fi
1.66 paf 3386: if test -z "$CXX"; then
3387: ac_ct_CXX=$CXX
1.150 moko 3388: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3389: do
3390: # Extract the first word of "$ac_prog", so it can be a program name with args.
3391: set dummy $ac_prog; ac_word=$2
1.150 moko 3392: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393: $as_echo_n "checking for $ac_word... " >&6; }
3394: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3395: $as_echo_n "(cached) " >&6
1.62 paf 3396: else
1.66 paf 3397: if test -n "$ac_ct_CXX"; then
3398: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 3399: else
3400: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401: for as_dir in $PATH
3402: do
3403: IFS=$as_save_IFS
3404: test -z "$as_dir" && as_dir=.
1.150 moko 3405: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3406: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3407: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.150 moko 3408: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3409: break 2
3410: fi
3411: done
1.150 moko 3412: done
3413: IFS=$as_save_IFS
1.62 paf 3414:
3415: fi
3416: fi
1.66 paf 3417: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3418: if test -n "$ac_ct_CXX"; then
1.150 moko 3419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3420: $as_echo "$ac_ct_CXX" >&6; }
1.62 paf 3421: else
1.150 moko 3422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423: $as_echo "no" >&6; }
1.62 paf 3424: fi
3425:
1.150 moko 3426:
1.66 paf 3427: test -n "$ac_ct_CXX" && break
3428: done
3429:
1.150 moko 3430: if test "x$ac_ct_CXX" = x; then
3431: CXX="g++"
3432: else
3433: case $cross_compiling:$ac_tool_warned in
3434: yes:)
3435: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437: ac_tool_warned=yes ;;
3438: esac
3439: CXX=$ac_ct_CXX
3440: fi
1.62 paf 3441: fi
3442:
1.150 moko 3443: fi
3444: fi
1.66 paf 3445: # Provide some information about the compiler.
1.150 moko 3446: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3447: set X $ac_compile
3448: ac_compiler=$2
3449: for ac_option in --version -v -V -qversion; do
3450: { { ac_try="$ac_compiler $ac_option >&5"
3451: case "(($ac_try" in
3452: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453: *) ac_try_echo=$ac_try;;
3454: esac
3455: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456: $as_echo "$ac_try_echo"; } >&5
3457: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 3458: ac_status=$?
1.150 moko 3459: if test -s conftest.err; then
3460: sed '10a\
3461: ... rest of stderr output deleted ...
3462: 10q' conftest.err >conftest.er1
3463: cat conftest.er1 >&5
3464: fi
3465: rm -f conftest.er1 conftest.err
3466: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467: test $ac_status = 0; }
3468: done
1.66 paf 3469:
1.150 moko 3470: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3471: /* end confdefs.h. */
3472:
3473: int
3474: main ()
3475: {
3476:
3477: ;
3478: return 0;
3479: }
3480: _ACEOF
3481: ac_clean_files_save=$ac_clean_files
1.150 moko 3482: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 3483: # Try to create an executable without -o first, disregard a.out.
3484: # It will help us diagnose broken compilers, and finding out an intuition
3485: # of exeext.
1.150 moko 3486: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3487: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3488: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3489:
3490: # The possible output files:
3491: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3492:
3493: ac_rmfiles=
3494: for ac_file in $ac_files
3495: do
3496: case $ac_file in
3497: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3499: esac
3500: done
3501: rm -f $ac_rmfiles
3502:
3503: if { { ac_try="$ac_link_default"
3504: case "(($ac_try" in
3505: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506: *) ac_try_echo=$ac_try;;
3507: esac
3508: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509: $as_echo "$ac_try_echo"; } >&5
3510: (eval "$ac_link_default") 2>&5
3511: ac_status=$?
3512: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513: test $ac_status = 0; }; then :
3514: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3515: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3516: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3517: # so that the user can short-circuit this test for compilers unknown to
3518: # Autoconf.
3519: for ac_file in $ac_files ''
1.62 paf 3520: do
1.66 paf 3521: test -f "$ac_file" || continue
3522: case $ac_file in
1.150 moko 3523: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 3524: ;;
1.66 paf 3525: [ab].out )
1.86 paf 3526: # We found the default executable, but exeext='' is most
3527: # certainly right.
3528: break;;
1.66 paf 3529: *.* )
1.150 moko 3530: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3531: then :; else
3532: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3533: fi
3534: # We set ac_cv_exeext here because the later test for it is not
3535: # safe: cross compilers may not add the suffix if given an `-o'
3536: # argument, so we may need to know it at that point already.
3537: # Even if this section looks crufty: it has the advantage of
3538: # actually working.
1.86 paf 3539: break;;
1.66 paf 3540: * )
1.86 paf 3541: break;;
1.66 paf 3542: esac
1.62 paf 3543: done
1.150 moko 3544: test "$ac_cv_exeext" = no && ac_cv_exeext=
3545:
1.66 paf 3546: else
1.150 moko 3547: ac_file=''
3548: fi
3549: if test -z "$ac_file"; then :
3550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551: $as_echo "no" >&6; }
3552: $as_echo "$as_me: failed program was:" >&5
1.66 paf 3553: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 3554:
1.150 moko 3555: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557: as_fn_error 77 "C++ compiler cannot create executables
3558: See \`config.log' for more details" "$LINENO" 5; }
3559: else
3560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3561: $as_echo "yes" >&6; }
1.1 paf 3562: fi
1.150 moko 3563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3564: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3566: $as_echo "$ac_file" >&6; }
1.66 paf 3567: ac_exeext=$ac_cv_exeext
1.62 paf 3568:
1.150 moko 3569: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 3570: ac_clean_files=$ac_clean_files_save
1.150 moko 3571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3572: $as_echo_n "checking for suffix of executables... " >&6; }
3573: if { { ac_try="$ac_link"
3574: case "(($ac_try" in
3575: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576: *) ac_try_echo=$ac_try;;
3577: esac
3578: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579: $as_echo "$ac_try_echo"; } >&5
3580: (eval "$ac_link") 2>&5
1.62 paf 3581: ac_status=$?
1.150 moko 3582: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583: test $ac_status = 0; }; then :
1.62 paf 3584: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3585: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3586: # work properly (i.e., refer to `conftest.exe'), while it won't with
3587: # `rm'.
3588: for ac_file in conftest.exe conftest conftest.*; do
3589: test -f "$ac_file" || continue
3590: case $ac_file in
1.150 moko 3591: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 3592: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 3593: break;;
1.62 paf 3594: * ) break;;
3595: esac
3596: done
3597: else
1.150 moko 3598: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3601: See \`config.log' for more details" "$LINENO" 5; }
3602: fi
3603: rm -f conftest conftest$ac_cv_exeext
3604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3605: $as_echo "$ac_cv_exeext" >&6; }
1.62 paf 3606:
3607: rm -f conftest.$ac_ext
3608: EXEEXT=$ac_cv_exeext
3609: ac_exeext=$EXEEXT
1.150 moko 3610: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611: /* end confdefs.h. */
3612: #include <stdio.h>
3613: int
3614: main ()
3615: {
3616: FILE *f = fopen ("conftest.out", "w");
3617: return ferror (f) || fclose (f) != 0;
3618:
3619: ;
3620: return 0;
3621: }
3622: _ACEOF
3623: ac_clean_files="$ac_clean_files conftest.out"
3624: # Check that the compiler produces executables we can run. If not, either
3625: # the compiler is broken, or we cross compile.
3626: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3627: $as_echo_n "checking whether we are cross compiling... " >&6; }
3628: if test "$cross_compiling" != yes; then
3629: { { ac_try="$ac_link"
3630: case "(($ac_try" in
3631: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632: *) ac_try_echo=$ac_try;;
3633: esac
3634: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635: $as_echo "$ac_try_echo"; } >&5
3636: (eval "$ac_link") 2>&5
3637: ac_status=$?
3638: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639: test $ac_status = 0; }
3640: if { ac_try='./conftest$ac_cv_exeext'
3641: { { case "(($ac_try" in
3642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643: *) ac_try_echo=$ac_try;;
3644: esac
3645: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646: $as_echo "$ac_try_echo"; } >&5
3647: (eval "$ac_try") 2>&5
3648: ac_status=$?
3649: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650: test $ac_status = 0; }; }; then
3651: cross_compiling=no
3652: else
3653: if test "$cross_compiling" = maybe; then
3654: cross_compiling=yes
3655: else
3656: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658: as_fn_error $? "cannot run C++ compiled programs.
3659: If you meant to cross compile, use \`--host'.
3660: See \`config.log' for more details" "$LINENO" 5; }
3661: fi
3662: fi
3663: fi
3664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3665: $as_echo "$cross_compiling" >&6; }
3666:
3667: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3668: ac_clean_files=$ac_clean_files_save
3669: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3670: $as_echo_n "checking for suffix of object files... " >&6; }
3671: if ${ac_cv_objext+:} false; then :
3672: $as_echo_n "(cached) " >&6
1.62 paf 3673: else
1.150 moko 3674: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3675: /* end confdefs.h. */
3676:
3677: int
3678: main ()
3679: {
3680:
3681: ;
3682: return 0;
3683: }
3684: _ACEOF
3685: rm -f conftest.o conftest.obj
1.150 moko 3686: if { { ac_try="$ac_compile"
3687: case "(($ac_try" in
3688: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689: *) ac_try_echo=$ac_try;;
3690: esac
3691: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692: $as_echo "$ac_try_echo"; } >&5
3693: (eval "$ac_compile") 2>&5
3694: ac_status=$?
3695: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696: test $ac_status = 0; }; then :
3697: for ac_file in conftest.o conftest.obj conftest.*; do
3698: test -f "$ac_file" || continue;
1.62 paf 3699: case $ac_file in
1.150 moko 3700: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 3701: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3702: break;;
3703: esac
3704: done
3705: else
1.150 moko 3706: $as_echo "$as_me: failed program was:" >&5
1.62 paf 3707: sed 's/^/| /' conftest.$ac_ext >&5
3708:
1.150 moko 3709: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711: as_fn_error $? "cannot compute suffix of object files: cannot compile
3712: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 3713: fi
3714: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3715: fi
1.150 moko 3716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3717: $as_echo "$ac_cv_objext" >&6; }
1.66 paf 3718: OBJEXT=$ac_cv_objext
3719: ac_objext=$OBJEXT
1.150 moko 3720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3721: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3722: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3723: $as_echo_n "(cached) " >&6
1.62 paf 3724: else
1.150 moko 3725: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3726: /* end confdefs.h. */
1.66 paf 3727:
1.62 paf 3728: int
3729: main ()
3730: {
1.66 paf 3731: #ifndef __GNUC__
3732: choke me
3733: #endif
3734:
1.62 paf 3735: ;
3736: return 0;
3737: }
3738: _ACEOF
1.150 moko 3739: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3740: ac_compiler_gnu=yes
1.62 paf 3741: else
1.150 moko 3742: ac_compiler_gnu=no
1.1 paf 3743: fi
1.150 moko 3744: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3745: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 3746:
3747: fi
1.150 moko 3748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3749: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3750: if test $ac_compiler_gnu = yes; then
3751: GXX=yes
3752: else
3753: GXX=
3754: fi
1.66 paf 3755: ac_test_CXXFLAGS=${CXXFLAGS+set}
3756: ac_save_CXXFLAGS=$CXXFLAGS
1.150 moko 3757: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3758: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3759: if ${ac_cv_prog_cxx_g+:} false; then :
3760: $as_echo_n "(cached) " >&6
3761: else
3762: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3763: ac_cxx_werror_flag=yes
3764: ac_cv_prog_cxx_g=no
3765: CXXFLAGS="-g"
3766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3767: /* end confdefs.h. */
1.1 paf 3768:
1.66 paf 3769: int
3770: main ()
3771: {
1.1 paf 3772:
1.66 paf 3773: ;
3774: return 0;
3775: }
1.62 paf 3776: _ACEOF
1.150 moko 3777: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3778: ac_cv_prog_cxx_g=yes
3779: else
1.150 moko 3780: CXXFLAGS=""
3781: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782: /* end confdefs.h. */
1.66 paf 3783:
1.62 paf 3784: int
3785: main ()
3786: {
1.150 moko 3787:
1.62 paf 3788: ;
3789: return 0;
3790: }
3791: _ACEOF
1.150 moko 3792: if ac_fn_cxx_try_compile "$LINENO"; then :
3793:
1.1 paf 3794: else
1.150 moko 3795: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3796: CXXFLAGS="-g"
3797: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798: /* end confdefs.h. */
1.62 paf 3799:
3800: int
3801: main ()
3802: {
1.150 moko 3803:
1.62 paf 3804: ;
3805: return 0;
3806: }
3807: _ACEOF
1.150 moko 3808: if ac_fn_cxx_try_compile "$LINENO"; then :
3809: ac_cv_prog_cxx_g=yes
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: fi
3815: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3817: fi
3818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3819: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3820: if test "$ac_test_CXXFLAGS" = set; then
3821: CXXFLAGS=$ac_save_CXXFLAGS
3822: elif test $ac_cv_prog_cxx_g = yes; then
3823: if test "$GXX" = yes; then
3824: CXXFLAGS="-g -O2"
3825: else
3826: CXXFLAGS="-g"
3827: fi
1.1 paf 3828: else
1.150 moko 3829: if test "$GXX" = yes; then
3830: CXXFLAGS="-O2"
3831: else
3832: CXXFLAGS=
3833: fi
1.1 paf 3834: fi
1.62 paf 3835: ac_ext=c
3836: ac_cpp='$CPP $CPPFLAGS'
3837: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 3840: DEPDIR="${am__leading_dot}deps"
1.62 paf 3841:
1.150 moko 3842: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 3843:
3844:
3845: am_make=${MAKE-make}
3846: cat > confinc << 'END'
1.86 paf 3847: am__doit:
1.150 moko 3848: @echo this is the am__doit target
1.86 paf 3849: .PHONY: am__doit
1.62 paf 3850: END
3851: # If we don't find an include directive, just comment out the code.
1.150 moko 3852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3853: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.62 paf 3854: am__include="#"
3855: am__quote=
3856: _am_result=none
3857: # First try GNU make style include.
3858: echo "include confinc" > confmf
1.150 moko 3859: # Ignore all kinds of additional output from `make'.
3860: case `$am_make -s -f confmf 2> /dev/null` in #(
3861: *the\ am__doit\ target*)
3862: am__include=include
3863: am__quote=
3864: _am_result=GNU
3865: ;;
3866: esac
1.62 paf 3867: # Now try BSD make style include.
3868: if test "$am__include" = "#"; then
3869: echo '.include "confinc"' > confmf
1.150 moko 3870: case `$am_make -s -f confmf 2> /dev/null` in #(
3871: *the\ am__doit\ target*)
3872: am__include=.include
3873: am__quote="\""
3874: _am_result=BSD
3875: ;;
3876: esac
1.62 paf 3877: fi
3878:
3879:
1.150 moko 3880: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3881: $as_echo "$_am_result" >&6; }
1.62 paf 3882: rm -f confinc confmf
3883:
1.150 moko 3884: # Check whether --enable-dependency-tracking was given.
3885: if test "${enable_dependency_tracking+set}" = set; then :
3886: enableval=$enable_dependency_tracking;
3887: fi
1.62 paf 3888:
3889: if test "x$enable_dependency_tracking" != xno; then
3890: am_depcomp="$ac_aux_dir/depcomp"
3891: AMDEPBACKSLASH='\'
1.1 paf 3892: fi
1.150 moko 3893: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 3894: AMDEP_TRUE=
3895: AMDEP_FALSE='#'
3896: else
3897: AMDEP_TRUE='#'
3898: AMDEP_FALSE=
3899: fi
1.1 paf 3900:
3901:
3902:
1.66 paf 3903: depcc="$CXX" am_compiler_list=
1.1 paf 3904:
1.150 moko 3905: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3906: $as_echo_n "checking dependency style of $depcc... " >&6; }
3907: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3908: $as_echo_n "(cached) " >&6
1.62 paf 3909: else
3910: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3911: # We make a subdir and do the tests there. Otherwise we can end up
3912: # making bogus files that we don't know about and never remove. For
3913: # instance it was reported that on HP-UX the gcc test will end up
3914: # making a dummy file named `D' -- because `-MD' means `put the output
3915: # in D'.
3916: mkdir conftest.dir
3917: # Copy depcomp to subdir because otherwise we won't find it if we're
3918: # using a relative directory.
3919: cp "$am_depcomp" conftest.dir
3920: cd conftest.dir
1.86 paf 3921: # We will build objects and dependencies in a subdirectory because
3922: # it helps to detect inapplicable dependency modes. For instance
3923: # both Tru64's cc and ICC support -MD to output dependencies as a
3924: # side effect of compilation, but ICC will put the dependencies in
3925: # the current directory while Tru64 will put them in the object
3926: # directory.
3927: mkdir sub
1.1 paf 3928:
1.66 paf 3929: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 3930: if test "$am_compiler_list" = ""; then
3931: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 3932: fi
1.150 moko 3933: am__universal=false
3934: case " $depcc " in #(
3935: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3936: esac
3937:
1.62 paf 3938: for depmode in $am_compiler_list; do
1.86 paf 3939: # Setup a source with many dependencies, because some compilers
3940: # like to wrap large dependency lists on column 80 (with \), and
3941: # we should not choose a depcomp mode which is confused by this.
3942: #
1.62 paf 3943: # We need to recreate these files for each test, as the compiler may
3944: # overwrite some of them when testing with obscure command lines.
3945: # This happens at least with the AIX C compiler.
1.86 paf 3946: : > sub/conftest.c
3947: for i in 1 2 3 4 5 6; do
3948: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3949: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3950: # Solaris 8's {/usr,}/bin/sh.
3951: touch sub/conftst$i.h
3952: done
3953: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 3954:
1.150 moko 3955: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3956: # mode. It turns out that the SunPro C++ compiler does not properly
3957: # handle `-M -o', and we need to detect this. Also, some Intel
3958: # versions had trouble with output in subdirs
3959: am__obj=sub/conftest.${OBJEXT-o}
3960: am__minus_obj="-o $am__obj"
1.62 paf 3961: case $depmode in
1.150 moko 3962: gcc)
3963: # This depmode causes a compiler race in universal mode.
3964: test "$am__universal" = false || continue
3965: ;;
1.62 paf 3966: nosideeffect)
3967: # after this tag, mechanisms are not by side-effect, so they'll
3968: # only be used when explicitly requested
3969: if test "x$enable_dependency_tracking" = xyes; then
3970: continue
3971: else
3972: break
3973: fi
3974: ;;
1.150 moko 3975: msvisualcpp | msvcmsys)
3976: # This compiler won't grok `-c -o', but also, the minuso test has
3977: # not run yet. These depmodes are late enough in the game, and
3978: # so weak that their functioning should not be impacted.
3979: am__obj=conftest.${OBJEXT-o}
3980: am__minus_obj=
3981: ;;
1.62 paf 3982: none) break ;;
3983: esac
3984: if depmode=$depmode \
1.150 moko 3985: source=sub/conftest.c object=$am__obj \
1.86 paf 3986: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 3987: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 3988: >/dev/null 2>conftest.err &&
1.150 moko 3989: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 3990: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 3991: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 3992: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 3993: # icc doesn't choke on unknown options, it will just issue warnings
3994: # or remarks (even with -Werror). So we grep stderr for any message
3995: # that says an option was ignored or not supported.
3996: # When given -MP, icc 7.0 and 7.1 complain thusly:
3997: # icc: Command line warning: ignoring option '-M'; no argument required
3998: # The diagnosis changed in icc 8.0:
3999: # icc: Command line remark: option '-MP' not supported
4000: if (grep 'ignoring option' conftest.err ||
4001: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4002: am_cv_CXX_dependencies_compiler_type=$depmode
4003: break
4004: fi
1.66 paf 4005: fi
4006: done
4007:
4008: cd ..
4009: rm -rf conftest.dir
4010: else
4011: am_cv_CXX_dependencies_compiler_type=none
4012: fi
4013:
4014: fi
1.150 moko 4015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4016: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 4017: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4018:
1.150 moko 4019: if
1.66 paf 4020: test "x$enable_dependency_tracking" != xno \
4021: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4022: am__fastdepCXX_TRUE=
4023: am__fastdepCXX_FALSE='#'
4024: else
4025: am__fastdepCXX_TRUE='#'
4026: am__fastdepCXX_FALSE=
4027: fi
4028:
4029:
4030: ac_ext=c
4031: ac_cpp='$CPP $CPPFLAGS'
4032: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035: if test -n "$ac_tool_prefix"; then
4036: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4037: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.150 moko 4038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039: $as_echo_n "checking for $ac_word... " >&6; }
4040: if ${ac_cv_prog_CC+:} false; then :
4041: $as_echo_n "(cached) " >&6
1.66 paf 4042: else
4043: if test -n "$CC"; then
4044: ac_cv_prog_CC="$CC" # Let the user override the test.
4045: else
4046: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047: for as_dir in $PATH
4048: do
4049: IFS=$as_save_IFS
4050: test -z "$as_dir" && as_dir=.
1.150 moko 4051: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4052: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4053: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.150 moko 4054: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4055: break 2
4056: fi
4057: done
1.150 moko 4058: done
4059: IFS=$as_save_IFS
1.66 paf 4060:
4061: fi
4062: fi
4063: CC=$ac_cv_prog_CC
4064: if test -n "$CC"; then
1.150 moko 4065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066: $as_echo "$CC" >&6; }
1.66 paf 4067: else
1.150 moko 4068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069: $as_echo "no" >&6; }
1.66 paf 4070: fi
4071:
1.150 moko 4072:
1.66 paf 4073: fi
4074: if test -z "$ac_cv_prog_CC"; then
4075: ac_ct_CC=$CC
4076: # Extract the first word of "gcc", so it can be a program name with args.
4077: set dummy gcc; ac_word=$2
1.150 moko 4078: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079: $as_echo_n "checking for $ac_word... " >&6; }
4080: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4081: $as_echo_n "(cached) " >&6
1.66 paf 4082: else
4083: if test -n "$ac_ct_CC"; then
4084: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4085: else
4086: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087: for as_dir in $PATH
4088: do
4089: IFS=$as_save_IFS
4090: test -z "$as_dir" && as_dir=.
1.150 moko 4091: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4092: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4093: ac_cv_prog_ac_ct_CC="gcc"
1.150 moko 4094: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4095: break 2
4096: fi
4097: done
1.150 moko 4098: done
4099: IFS=$as_save_IFS
1.66 paf 4100:
4101: fi
4102: fi
4103: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4104: if test -n "$ac_ct_CC"; then
1.150 moko 4105: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4106: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4107: else
1.150 moko 4108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109: $as_echo "no" >&6; }
1.62 paf 4110: fi
4111:
1.150 moko 4112: if test "x$ac_ct_CC" = x; then
4113: CC=""
4114: else
4115: case $cross_compiling:$ac_tool_warned in
4116: yes:)
4117: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4118: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4119: ac_tool_warned=yes ;;
4120: esac
4121: CC=$ac_ct_CC
4122: fi
1.66 paf 4123: else
4124: CC="$ac_cv_prog_CC"
1.1 paf 4125: fi
1.62 paf 4126:
1.66 paf 4127: if test -z "$CC"; then
1.150 moko 4128: if test -n "$ac_tool_prefix"; then
4129: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 4130: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.150 moko 4131: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132: $as_echo_n "checking for $ac_word... " >&6; }
4133: if ${ac_cv_prog_CC+:} false; then :
4134: $as_echo_n "(cached) " >&6
1.66 paf 4135: else
4136: if test -n "$CC"; then
4137: ac_cv_prog_CC="$CC" # Let the user override the test.
4138: else
4139: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140: for as_dir in $PATH
4141: do
4142: IFS=$as_save_IFS
4143: test -z "$as_dir" && as_dir=.
1.150 moko 4144: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4145: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4146: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.150 moko 4147: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4148: break 2
4149: fi
4150: done
1.150 moko 4151: done
4152: IFS=$as_save_IFS
1.62 paf 4153:
1.66 paf 4154: fi
4155: fi
4156: CC=$ac_cv_prog_CC
4157: if test -n "$CC"; then
1.150 moko 4158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4159: $as_echo "$CC" >&6; }
1.62 paf 4160: else
1.150 moko 4161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162: $as_echo "no" >&6; }
1.1 paf 4163: fi
4164:
1.150 moko 4165:
1.66 paf 4166: fi
1.1 paf 4167: fi
1.66 paf 4168: if test -z "$CC"; then
4169: # Extract the first word of "cc", so it can be a program name with args.
4170: set dummy cc; ac_word=$2
1.150 moko 4171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172: $as_echo_n "checking for $ac_word... " >&6; }
4173: if ${ac_cv_prog_CC+:} false; then :
4174: $as_echo_n "(cached) " >&6
1.66 paf 4175: else
4176: if test -n "$CC"; then
4177: ac_cv_prog_CC="$CC" # Let the user override the test.
4178: else
4179: ac_prog_rejected=no
4180: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181: for as_dir in $PATH
4182: do
4183: IFS=$as_save_IFS
4184: test -z "$as_dir" && as_dir=.
1.150 moko 4185: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4186: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4187: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4188: ac_prog_rejected=yes
4189: continue
4190: fi
4191: ac_cv_prog_CC="cc"
1.150 moko 4192: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4193: break 2
4194: fi
4195: done
1.150 moko 4196: done
4197: IFS=$as_save_IFS
1.62 paf 4198:
1.66 paf 4199: if test $ac_prog_rejected = yes; then
4200: # We found a bogon in the path, so make sure we never use it.
4201: set dummy $ac_cv_prog_CC
4202: shift
4203: if test $# != 0; then
4204: # We chose a different compiler from the bogus one.
4205: # However, it has the same basename, so the bogon will be chosen
4206: # first if we set CC to just the basename; use the full file name.
4207: shift
4208: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4209: fi
4210: fi
4211: fi
4212: fi
4213: CC=$ac_cv_prog_CC
4214: if test -n "$CC"; then
1.150 moko 4215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216: $as_echo "$CC" >&6; }
1.66 paf 4217: else
1.150 moko 4218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219: $as_echo "no" >&6; }
1.1 paf 4220: fi
4221:
1.150 moko 4222:
1.66 paf 4223: fi
4224: if test -z "$CC"; then
4225: if test -n "$ac_tool_prefix"; then
1.150 moko 4226: for ac_prog in cl.exe
1.62 paf 4227: do
4228: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4229: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 4230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231: $as_echo_n "checking for $ac_word... " >&6; }
4232: if ${ac_cv_prog_CC+:} false; then :
4233: $as_echo_n "(cached) " >&6
1.62 paf 4234: else
1.66 paf 4235: if test -n "$CC"; then
4236: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 4237: else
4238: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239: for as_dir in $PATH
4240: do
4241: IFS=$as_save_IFS
4242: test -z "$as_dir" && as_dir=.
1.150 moko 4243: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4244: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4245: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.150 moko 4246: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4247: break 2
4248: fi
4249: done
1.150 moko 4250: done
4251: IFS=$as_save_IFS
1.1 paf 4252:
1.62 paf 4253: fi
4254: fi
1.66 paf 4255: CC=$ac_cv_prog_CC
4256: if test -n "$CC"; then
1.150 moko 4257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4258: $as_echo "$CC" >&6; }
1.1 paf 4259: else
1.150 moko 4260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261: $as_echo "no" >&6; }
1.1 paf 4262: fi
4263:
1.150 moko 4264:
1.66 paf 4265: test -n "$CC" && break
1.62 paf 4266: done
4267: fi
1.66 paf 4268: if test -z "$CC"; then
4269: ac_ct_CC=$CC
1.150 moko 4270: for ac_prog in cl.exe
1.62 paf 4271: do
4272: # Extract the first word of "$ac_prog", so it can be a program name with args.
4273: set dummy $ac_prog; ac_word=$2
1.150 moko 4274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275: $as_echo_n "checking for $ac_word... " >&6; }
4276: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4277: $as_echo_n "(cached) " >&6
1.62 paf 4278: else
1.66 paf 4279: if test -n "$ac_ct_CC"; then
4280: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 4281: else
1.62 paf 4282: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283: for as_dir in $PATH
4284: do
4285: IFS=$as_save_IFS
4286: test -z "$as_dir" && as_dir=.
1.150 moko 4287: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4288: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4289: ac_cv_prog_ac_ct_CC="$ac_prog"
1.150 moko 4290: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4291: break 2
4292: fi
4293: done
1.150 moko 4294: done
4295: IFS=$as_save_IFS
1.62 paf 4296:
4297: fi
4298: fi
1.66 paf 4299: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4300: if test -n "$ac_ct_CC"; then
1.150 moko 4301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4302: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4303: else
1.150 moko 4304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305: $as_echo "no" >&6; }
1.1 paf 4306: fi
4307:
1.150 moko 4308:
1.66 paf 4309: test -n "$ac_ct_CC" && break
4310: done
4311:
1.150 moko 4312: if test "x$ac_ct_CC" = x; then
4313: CC=""
4314: else
4315: case $cross_compiling:$ac_tool_warned in
4316: yes:)
4317: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4318: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4319: ac_tool_warned=yes ;;
4320: esac
4321: CC=$ac_ct_CC
4322: fi
1.66 paf 4323: fi
4324:
4325: fi
1.62 paf 4326:
1.1 paf 4327:
1.150 moko 4328: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330: as_fn_error $? "no acceptable C compiler found in \$PATH
4331: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 4332:
4333: # Provide some information about the compiler.
1.150 moko 4334: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4335: set X $ac_compile
4336: ac_compiler=$2
4337: for ac_option in --version -v -V -qversion; do
4338: { { ac_try="$ac_compiler $ac_option >&5"
4339: case "(($ac_try" in
4340: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341: *) ac_try_echo=$ac_try;;
4342: esac
4343: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344: $as_echo "$ac_try_echo"; } >&5
4345: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 4346: ac_status=$?
1.150 moko 4347: if test -s conftest.err; then
4348: sed '10a\
4349: ... rest of stderr output deleted ...
4350: 10q' conftest.err >conftest.er1
4351: cat conftest.er1 >&5
4352: fi
4353: rm -f conftest.er1 conftest.err
4354: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355: test $ac_status = 0; }
4356: done
4357:
4358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4359: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4360: if ${ac_cv_c_compiler_gnu+:} false; then :
4361: $as_echo_n "(cached) " >&6
1.62 paf 4362: else
1.150 moko 4363: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4364: /* end confdefs.h. */
4365:
4366: int
4367: main ()
4368: {
4369: #ifndef __GNUC__
4370: choke me
4371: #endif
4372:
4373: ;
4374: return 0;
4375: }
4376: _ACEOF
1.150 moko 4377: if ac_fn_c_try_compile "$LINENO"; then :
1.62 paf 4378: ac_compiler_gnu=yes
4379: else
1.150 moko 4380: ac_compiler_gnu=no
1.62 paf 4381: fi
1.150 moko 4382: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 4383: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 4384:
4385: fi
1.150 moko 4386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4387: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4388: if test $ac_compiler_gnu = yes; then
4389: GCC=yes
4390: else
4391: GCC=
4392: fi
1.66 paf 4393: ac_test_CFLAGS=${CFLAGS+set}
4394: ac_save_CFLAGS=$CFLAGS
1.150 moko 4395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4396: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4397: if ${ac_cv_prog_cc_g+:} false; then :
4398: $as_echo_n "(cached) " >&6
4399: else
4400: ac_save_c_werror_flag=$ac_c_werror_flag
4401: ac_c_werror_flag=yes
4402: ac_cv_prog_cc_g=no
4403: CFLAGS="-g"
4404: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4405: /* end confdefs.h. */
4406:
4407: int
4408: main ()
4409: {
4410:
4411: ;
4412: return 0;
4413: }
4414: _ACEOF
1.150 moko 4415: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 4416: ac_cv_prog_cc_g=yes
1.62 paf 4417: else
1.150 moko 4418: CFLAGS=""
4419: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420: /* end confdefs.h. */
4421:
4422: int
4423: main ()
4424: {
1.62 paf 4425:
1.150 moko 4426: ;
4427: return 0;
4428: }
4429: _ACEOF
4430: if ac_fn_c_try_compile "$LINENO"; then :
4431:
4432: else
4433: ac_c_werror_flag=$ac_save_c_werror_flag
4434: CFLAGS="-g"
4435: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436: /* end confdefs.h. */
4437:
4438: int
4439: main ()
4440: {
4441:
4442: ;
4443: return 0;
4444: }
4445: _ACEOF
4446: if ac_fn_c_try_compile "$LINENO"; then :
4447: ac_cv_prog_cc_g=yes
4448: fi
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
1.62 paf 4452: fi
1.150 moko 4453: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454: ac_c_werror_flag=$ac_save_c_werror_flag
4455: fi
4456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4457: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.66 paf 4458: if test "$ac_test_CFLAGS" = set; then
4459: CFLAGS=$ac_save_CFLAGS
4460: elif test $ac_cv_prog_cc_g = yes; then
4461: if test "$GCC" = yes; then
4462: CFLAGS="-g -O2"
1.1 paf 4463: else
1.66 paf 4464: CFLAGS="-g"
1.1 paf 4465: fi
4466: else
1.66 paf 4467: if test "$GCC" = yes; then
4468: CFLAGS="-O2"
1.1 paf 4469: else
1.66 paf 4470: CFLAGS=
1.1 paf 4471: fi
4472: fi
1.150 moko 4473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4474: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4475: if ${ac_cv_prog_cc_c89+:} false; then :
4476: $as_echo_n "(cached) " >&6
1.66 paf 4477: else
1.150 moko 4478: ac_cv_prog_cc_c89=no
1.66 paf 4479: ac_save_CC=$CC
1.150 moko 4480: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4481: /* end confdefs.h. */
4482: #include <stdarg.h>
4483: #include <stdio.h>
1.166 moko 4484: struct stat;
1.66 paf 4485: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4486: struct buf { int x; };
4487: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4488: static char *e (p, i)
4489: char **p;
4490: int i;
4491: {
4492: return p[i];
4493: }
4494: static char *f (char * (*g) (char **, int), char **p, ...)
4495: {
4496: char *s;
4497: va_list v;
4498: va_start (v,p);
4499: s = g (p, va_arg (v,int));
4500: va_end (v);
4501: return s;
4502: }
1.86 paf 4503:
4504: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4505: function prototypes and stuff, but not '\xHH' hex character constants.
4506: These don't provoke an error unfortunately, instead are silently treated
1.150 moko 4507: as 'x'. The following induces an error, until -std is added to get
1.86 paf 4508: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4509: array size at least. It's necessary to write '\x00'==0 to get something
1.150 moko 4510: that's true only with -std. */
1.86 paf 4511: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4512:
1.150 moko 4513: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4514: inside strings and character constants. */
4515: #define FOO(x) 'x'
4516: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4517:
1.66 paf 4518: int test (int i, double x);
4519: struct s1 {int (*f) (int a);};
4520: struct s2 {int (*f) (double a);};
4521: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4522: int argc;
4523: char **argv;
4524: int
4525: main ()
4526: {
4527: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4528: ;
4529: return 0;
4530: }
4531: _ACEOF
1.150 moko 4532: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4533: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 4534: do
4535: CC="$ac_save_CC $ac_arg"
1.150 moko 4536: if ac_fn_c_try_compile "$LINENO"; then :
4537: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 4538: fi
1.150 moko 4539: rm -f core conftest.err conftest.$ac_objext
4540: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 4541: done
1.150 moko 4542: rm -f conftest.$ac_ext
1.66 paf 4543: CC=$ac_save_CC
4544:
4545: fi
1.150 moko 4546: # AC_CACHE_VAL
4547: case "x$ac_cv_prog_cc_c89" in
4548: x)
4549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4550: $as_echo "none needed" >&6; } ;;
4551: xno)
4552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4553: $as_echo "unsupported" >&6; } ;;
1.66 paf 4554: *)
1.150 moko 4555: CC="$CC $ac_cv_prog_cc_c89"
4556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4557: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.66 paf 4558: esac
1.150 moko 4559: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.62 paf 4560:
4561: fi
1.66 paf 4562:
1.62 paf 4563: ac_ext=c
4564: ac_cpp='$CPP $CPPFLAGS'
4565: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568:
1.66 paf 4569: depcc="$CC" am_compiler_list=
1.62 paf 4570:
1.150 moko 4571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4572: $as_echo_n "checking dependency style of $depcc... " >&6; }
4573: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4574: $as_echo_n "(cached) " >&6
1.62 paf 4575: else
4576: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4577: # We make a subdir and do the tests there. Otherwise we can end up
4578: # making bogus files that we don't know about and never remove. For
4579: # instance it was reported that on HP-UX the gcc test will end up
4580: # making a dummy file named `D' -- because `-MD' means `put the output
4581: # in D'.
4582: mkdir conftest.dir
4583: # Copy depcomp to subdir because otherwise we won't find it if we're
4584: # using a relative directory.
4585: cp "$am_depcomp" conftest.dir
4586: cd conftest.dir
1.86 paf 4587: # We will build objects and dependencies in a subdirectory because
4588: # it helps to detect inapplicable dependency modes. For instance
4589: # both Tru64's cc and ICC support -MD to output dependencies as a
4590: # side effect of compilation, but ICC will put the dependencies in
4591: # the current directory while Tru64 will put them in the object
4592: # directory.
4593: mkdir sub
1.62 paf 4594:
1.66 paf 4595: am_cv_CC_dependencies_compiler_type=none
1.62 paf 4596: if test "$am_compiler_list" = ""; then
4597: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4598: fi
1.150 moko 4599: am__universal=false
4600: case " $depcc " in #(
4601: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4602: esac
4603:
1.62 paf 4604: for depmode in $am_compiler_list; do
1.86 paf 4605: # Setup a source with many dependencies, because some compilers
4606: # like to wrap large dependency lists on column 80 (with \), and
4607: # we should not choose a depcomp mode which is confused by this.
4608: #
1.62 paf 4609: # We need to recreate these files for each test, as the compiler may
4610: # overwrite some of them when testing with obscure command lines.
4611: # This happens at least with the AIX C compiler.
1.86 paf 4612: : > sub/conftest.c
4613: for i in 1 2 3 4 5 6; do
4614: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4615: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4616: # Solaris 8's {/usr,}/bin/sh.
4617: touch sub/conftst$i.h
4618: done
4619: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4620:
1.150 moko 4621: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4622: # mode. It turns out that the SunPro C++ compiler does not properly
4623: # handle `-M -o', and we need to detect this. Also, some Intel
4624: # versions had trouble with output in subdirs
4625: am__obj=sub/conftest.${OBJEXT-o}
4626: am__minus_obj="-o $am__obj"
1.62 paf 4627: case $depmode in
1.150 moko 4628: gcc)
4629: # This depmode causes a compiler race in universal mode.
4630: test "$am__universal" = false || continue
4631: ;;
1.62 paf 4632: nosideeffect)
4633: # after this tag, mechanisms are not by side-effect, so they'll
4634: # only be used when explicitly requested
4635: if test "x$enable_dependency_tracking" = xyes; then
4636: continue
4637: else
4638: break
4639: fi
4640: ;;
1.150 moko 4641: msvisualcpp | msvcmsys)
4642: # This compiler won't grok `-c -o', but also, the minuso test has
4643: # not run yet. These depmodes are late enough in the game, and
4644: # so weak that their functioning should not be impacted.
4645: am__obj=conftest.${OBJEXT-o}
4646: am__minus_obj=
4647: ;;
1.62 paf 4648: none) break ;;
4649: esac
1.66 paf 4650: if depmode=$depmode \
1.150 moko 4651: source=sub/conftest.c object=$am__obj \
1.86 paf 4652: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4653: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4654: >/dev/null 2>conftest.err &&
1.150 moko 4655: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4656: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4657: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 4658: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4659: # icc doesn't choke on unknown options, it will just issue warnings
4660: # or remarks (even with -Werror). So we grep stderr for any message
4661: # that says an option was ignored or not supported.
4662: # When given -MP, icc 7.0 and 7.1 complain thusly:
4663: # icc: Command line warning: ignoring option '-M'; no argument required
4664: # The diagnosis changed in icc 8.0:
4665: # icc: Command line remark: option '-MP' not supported
4666: if (grep 'ignoring option' conftest.err ||
4667: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4668: am_cv_CC_dependencies_compiler_type=$depmode
4669: break
4670: fi
1.66 paf 4671: fi
4672: done
4673:
4674: cd ..
4675: rm -rf conftest.dir
4676: else
4677: am_cv_CC_dependencies_compiler_type=none
4678: fi
4679:
4680: fi
1.150 moko 4681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4682: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 4683: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4684:
1.150 moko 4685: if
1.66 paf 4686: test "x$enable_dependency_tracking" != xno \
4687: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4688: am__fastdepCC_TRUE=
4689: am__fastdepCC_FALSE='#'
4690: else
4691: am__fastdepCC_TRUE='#'
4692: am__fastdepCC_FALSE=
4693: fi
4694:
4695:
1.128 moko 4696:
1.66 paf 4697: ac_ext=c
4698: ac_cpp='$CPP $CPPFLAGS'
4699: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702:
1.67 paf 4703:
1.62 paf 4704:
1.150 moko 4705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
4706: $as_echo_n "checking for dynamic-link library extension... " >&6; }
1.128 moko 4707: case "$host_os" in
1.158 moko 4708: *cygwin* ) dll_extension=dll;;
4709: * ) dll_extension=so
1.66 paf 4710: esac
1.150 moko 4711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
4712: $as_echo "$dll_extension" >&6; }
1.1 paf 4713:
1.71 paf 4714:
4715:
4716:
1.150 moko 4717: # Check whether --with-build-warnings was given.
4718: if test "${with_build_warnings+set}" = set; then :
4719: withval=$with_build_warnings; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
4720: $as_echo "$as_me: WARNING: enabling compiler warnings" >&2;}
1.71 paf 4721: CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4722:
1.150 moko 4723: fi
4724:
1.1 paf 4725:
4726:
1.150 moko 4727: # Check whether --with-assertions was given.
4728: if test "${with_assertions+set}" = set; then :
4729: withval=$with_assertions; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
4730: $as_echo "$as_me: WARNING: enabling assertions" >&2;}
1.67 paf 4731:
4732: else
4733:
1.150 moko 4734: $as_echo "#define NDEBUG /**/" >>confdefs.h
4735:
1.67 paf 4736:
1.150 moko 4737: fi
1.67 paf 4738:
4739:
1.94 misha 4740:
1.150 moko 4741: # Check whether --with-sjlj-exceptions was given.
4742: if test "${with_sjlj_exceptions+set}" = set; then :
4743: withval=$with_sjlj_exceptions;
4744: $as_echo "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.128 moko 4745:
4746:
1.150 moko 4747: fi
1.128 moko 4748:
4749:
1.62 paf 4750:
1.150 moko 4751: # Check whether --enable-safe-mode was given.
4752: if test "${enable_safe_mode+set}" = set; then :
4753: enableval=$enable_safe_mode;
1.67 paf 4754: SAFE_MODE=$enableval
1.60 paf 4755:
1.1 paf 4756:
1.150 moko 4757: fi
4758:
1.128 moko 4759:
1.60 paf 4760: if test "$SAFE_MODE" = "no"; then
1.150 moko 4761: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
4762: $as_echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 4763: else
1.62 paf 4764:
1.150 moko 4765: $as_echo "#define PA_SAFE_MODE /**/" >>confdefs.h
1.1 paf 4766:
4767: fi
4768:
1.94 misha 4769:
1.150 moko 4770: # Check whether --enable-execs was given.
4771: if test "${enable_execs+set}" = set; then :
4772: enableval=$enable_execs;
1.13 paf 4773: if test "$enableval" = "no"; then
1.150 moko 4774: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
4775: $as_echo "$as_me: WARNING: disabling file execs" >&2;}
1.62 paf 4776:
1.150 moko 4777: $as_echo "#define NO_PA_EXECS /**/" >>confdefs.h
1.13 paf 4778:
4779: fi
4780:
4781:
1.150 moko 4782: fi
1.13 paf 4783:
1.60 paf 4784:
1.94 misha 4785:
1.150 moko 4786: # Check whether --enable-stringstream was given.
4787: if test "${enable_stringstream+set}" = set; then :
4788: enableval=$enable_stringstream;
1.94 misha 4789: if test "$enableval" = "no"; then
1.150 moko 4790: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
4791: $as_echo "$as_me: WARNING: disabling stringstream usage" >&2;}
1.94 misha 4792:
1.150 moko 4793: $as_echo "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.94 misha 4794:
4795: fi
4796:
4797:
1.150 moko 4798: fi
1.94 misha 4799:
4800:
1.62 paf 4801:
1.17 paf 4802:
1.150 moko 4803: # Check whether --with-gc was given.
4804: if test "${with_gc+set}" = set; then :
4805: withval=$with_gc;
1.17 paf 4806:
1.142 moko 4807: GC=$withval
4808: GC_LIBS="$GC/libgc.la"
4809:
4810: if test -f $GC_LIBS; then
4811: GC_OK="yes"
4812: else
4813: GC_LIBS="-L$GC -lgc"
4814: fi
1.62 paf 4815:
1.151 moko 4816: if test "$GC" = "yes"; then
4817: GC=""
4818: GC_LIBS="-lgc"
4819: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
4820: $as_echo "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
4821: fi
4822:
1.142 moko 4823: else
1.17 paf 4824:
1.142 moko 4825: GC_LIBS="-lgc"
1.150 moko 4826: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
4827: $as_echo "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
4828:
4829: fi
1.17 paf 4830:
4831:
1.142 moko 4832: if test -z "$GC_OK"; then
1.150 moko 4833: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
4834: $as_echo_n "checking for libgc... " >&6; }
1.138 moko 4835: SAVE_LIBS=$LIBS
4836: LIBS="$LIBS $GC_LIBS"
1.128 moko 4837:
1.150 moko 4838: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 4839: /* end confdefs.h. */
1.142 moko 4840: extern int GC_dont_gc;
1.67 paf 4841: int
4842: main ()
4843: {
1.142 moko 4844: GC_dont_gc=0;
1.67 paf 4845: ;
4846: return 0;
4847: }
4848: _ACEOF
1.150 moko 4849: if ac_fn_c_try_link "$LINENO"; then :
4850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4851: $as_echo "yes" >&6; }
1.67 paf 4852:
4853: else
1.150 moko 4854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855: $as_echo "no" >&6; }
1.142 moko 4856: if test -z "$GC"; then
1.151 moko 4857: as_fn_error $? "please specify path to libgc: --with-gc=D" "$LINENO" 5
1.142 moko 4858: else
1.150 moko 4859: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
1.142 moko 4860: fi
1.67 paf 4861:
4862: fi
1.150 moko 4863: rm -f core conftest.err conftest.$ac_objext \
4864: conftest$ac_exeext conftest.$ac_ext
1.138 moko 4865: LIBS=$SAVE_LIBS
4866: fi
1.67 paf 4867:
4868:
1.1 paf 4869:
1.15 paf 4870:
1.142 moko 4871:
1.150 moko 4872: # Check whether --with-pcre was given.
4873: if test "${with_pcre+set}" = set; then :
4874: withval=$with_pcre;
1.100 misha 4875: PCRE=$withval
1.142 moko 4876: PCRE_INCLUDES="-I$PCRE/include"
4877: PCRE_LIBS="$PCRE/lib/libpcre.la"
1.100 misha 4878:
1.142 moko 4879: if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then
4880: PCRE_OK="yes"
4881: else
4882: PCRE_LIBS="-L$PCRE -lpcre"
1.100 misha 4883: fi
4884:
1.151 moko 4885: if test "$PCRE" = "yes"; then
4886: PCRE=""
4887: PCRE_LIBS="-lpcre"
4888: PCRE_INCLUDES=""
4889: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
4890: $as_echo "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
4891: fi
1.142 moko 4892:
4893: else
4894:
4895: PCRE_LIBS="-lpcre"
1.149 moko 4896: PCRE_INCLUDES=""
1.150 moko 4897: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
4898: $as_echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
4899:
4900: fi
1.100 misha 4901:
4902:
1.142 moko 4903: if test -z "$PCRE_OK"; then
1.150 moko 4904: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prce" >&5
4905: $as_echo_n "checking for prce... " >&6; }
1.142 moko 4906: SAVE_LIBS=$LIBS
4907: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.150 moko 4908: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 4909: /* end confdefs.h. */
4910: #include <pcre.h>
4911: int
4912: main ()
4913: {
4914: const char *v=pcre_version();
4915: ;
4916: return 0;
4917: }
4918: _ACEOF
1.150 moko 4919: if ac_fn_c_try_link "$LINENO"; then :
4920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4921: $as_echo "yes" >&6; }
1.142 moko 4922:
4923: else
1.150 moko 4924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925: $as_echo "no" >&6; }
1.142 moko 4926: if test -z "$PCRE"; then
1.151 moko 4927: as_fn_error $? "please specify path to PCRE: --with-pcre=D" "$LINENO" 5
1.142 moko 4928: else
1.150 moko 4929: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
1.142 moko 4930: fi
4931:
4932: fi
1.150 moko 4933: rm -f core conftest.err conftest.$ac_objext \
4934: conftest$ac_exeext conftest.$ac_ext
1.142 moko 4935: LIBS=$SAVE_LIBS
4936: fi
1.100 misha 4937:
4938:
4939:
4940:
1.66 paf 4941:
4942:
1.150 moko 4943: # Check whether --with-xml was given.
4944: if test "${with_xml+set}" = set; then :
4945: withval=$with_xml;
1.66 paf 4946:
1.142 moko 4947: XML=$withval
4948: XML_LIBS="-lxml2 -lxslt -lexslt"
4949:
4950: if test -z "$XML" -o "$XML" = "yes"; then
4951: XML=""
4952: XML_INCLUDES="-I/usr/include/libxml2"
1.150 moko 4953: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
4954: $as_echo "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
1.142 moko 4955: else
4956: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.67 paf 4957:
1.142 moko 4958: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
4959: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
4960: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
4961: XML_OK="yes"
4962: fi
1.67 paf 4963: fi
1.66 paf 4964:
1.142 moko 4965: if test -z "$XML_OK"; then
1.150 moko 4966: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
4967: $as_echo_n "checking for xml... " >&6; }
1.142 moko 4968: SAVE_LIBS=$LIBS
4969: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.150 moko 4970: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 4971: /* end confdefs.h. */
4972: #include <libxslt/xslt.h>
4973: int
4974: main ()
4975: {
4976: const char *v=xsltEngineVersion;
4977: ;
4978: return 0;
4979: }
4980: _ACEOF
1.150 moko 4981: if ac_fn_c_try_link "$LINENO"; then :
4982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4983: $as_echo "yes" >&6; }
1.142 moko 4984:
4985: else
1.150 moko 4986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987: $as_echo "no" >&6; }
1.142 moko 4988: if test -z "$XML"; then
1.151 moko 4989: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=D" "$LINENO" 5
1.142 moko 4990: else
1.150 moko 4991: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 4992: fi
4993:
4994: fi
1.150 moko 4995: rm -f core conftest.err conftest.$ac_objext \
4996: conftest$ac_exeext conftest.$ac_ext
1.142 moko 4997: LIBS=$SAVE_LIBS
1.67 paf 4998: fi
1.66 paf 4999:
1.150 moko 5000: $as_echo "#define XML /**/" >>confdefs.h
5001:
1.66 paf 5002:
1.150 moko 5003: fi
1.66 paf 5004:
1.90 paf 5005:
1.66 paf 5006:
5007:
5008:
5009:
1.90 paf 5010:
1.154 moko 5011: # Check whether --with-mailreceive was given.
5012: if test "${with_mailreceive+set}" = set; then :
5013: withval=$with_mailreceive;
5014: MIME=$withval
1.155 moko 5015: GLIB="glib-2.0"
1.154 moko 5016: GMIME="gmime-2.4"
5017:
5018: if test -z "$MIME" -o "$MIME" = "yes"; then
5019: MIME=""
5020: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5021: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
5022: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
5023: $as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
5024: else
1.155 moko 5025: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 5026: MIME_LIBS="-l$GMIME"
5027: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
5028: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 5029: if test -f $MIME/lib/lib$GLIB.la; then
5030: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
5031: else
5032: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
5033: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
5034: fi
1.154 moko 5035: MIME_OK="yes"
5036: fi
1.67 paf 5037: fi
1.66 paf 5038:
1.154 moko 5039: if test -z "$MIME_OK"; then
5040: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
5041: $as_echo_n "checking for mime... " >&6; }
5042: SAVE_LIBS=$LIBS
5043: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
5044: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045: /* end confdefs.h. */
5046: #include <gmime/gmime.h>
5047: int
5048: main ()
5049: {
5050: guint v=gmime_major_version;
5051: ;
5052: return 0;
5053: }
5054: _ACEOF
5055: if ac_fn_c_try_link "$LINENO"; then :
5056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5057: $as_echo "yes" >&6; }
1.66 paf 5058:
1.154 moko 5059: else
5060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061: $as_echo "no" >&6; }
5062: if test -z "$MIME"; then
5063: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=D" "$LINENO" 5
5064: else
5065: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 5066: fi
1.66 paf 5067:
1.150 moko 5068: fi
1.154 moko 5069: rm -f core conftest.err conftest.$ac_objext \
5070: conftest$ac_exeext conftest.$ac_ext
5071: LIBS=$SAVE_LIBS
1.67 paf 5072: fi
1.66 paf 5073:
1.150 moko 5074: $as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 5075:
5076:
1.154 moko 5077: fi
1.66 paf 5078:
5079:
5080:
5081:
5082:
5083:
5084:
1.150 moko 5085: # Check whether --with-sendmail was given.
5086: if test "${with_sendmail+set}" = set; then :
5087: withval=$with_sendmail;
1.66 paf 5088: cat >>confdefs.h <<_ACEOF
5089: #define PA_FORCED_SENDMAIL "$withval"
5090: _ACEOF
5091:
5092:
1.150 moko 5093: fi
1.66 paf 5094:
5095:
5096:
1.122 moko 5097:
1.150 moko 5098: # Check whether --with-apache was given.
5099: if test "${with_apache+set}" = set; then :
5100: withval=$with_apache;
1.122 moko 5101: APXS=$withval
5102:
5103: if test -z "$APXS" -o "$APXS" = "yes"; then
5104: APXS=`which apxs 2>/dev/null`
1.142 moko 5105: if test -z "$APXS"; then
5106: APXS=`which apxs2 2>/dev/null`
5107: fi
5108: fi
1.122 moko 5109:
5110: APACHE=`$APXS -q TARGET 2>/dev/null`
5111:
5112: if test -z "$APACHE"; then
1.150 moko 5113: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 5114: fi
1.7 paf 5115:
1.122 moko 5116: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
5117: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
5118: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
5119: APACHE_CFLAGS=`$APXS -q CFLAGS`
5120:
1.150 moko 5121: fi
1.7 paf 5122:
5123:
1.62 paf 5124:
1.122 moko 5125:
1.150 moko 5126: if test -n "$APACHE"; then
1.122 moko 5127: COMPILE_APACHE_MODULE_TRUE=
5128: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 5129: else
1.122 moko 5130: COMPILE_APACHE_MODULE_TRUE='#'
5131: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 5132: fi
1.1 paf 5133:
5134:
5135:
1.62 paf 5136:
5137:
1.7 paf 5138:
1.1 paf 5139:
5140:
5141:
1.62 paf 5142:
1.128 moko 5143: case `pwd` in
5144: *\ * | *\ *)
1.150 moko 5145: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5146: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 5147: esac
5148:
5149:
5150:
5151: macro_version='2.4.2'
5152: macro_revision='1.3337'
5153:
5154:
5155:
5156:
5157:
5158:
5159:
5160:
5161:
5162:
5163:
5164:
5165:
5166: ltmain="$ac_aux_dir/ltmain.sh"
5167:
5168: # Backslashify metacharacters that are still active within
5169: # double-quoted strings.
5170: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 5171:
1.128 moko 5172: # Same as above, but do not quote variable references.
5173: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 5174:
1.128 moko 5175: # Sed substitution to delay expansion of an escaped shell variable in a
5176: # double_quote_subst'ed string.
5177: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 5178:
1.128 moko 5179: # Sed substitution to delay expansion of an escaped single quote.
5180: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 5181:
1.128 moko 5182: # Sed substitution to avoid accidental globbing in evaled expressions
5183: no_glob_subst='s/\*/\\\*/g'
1.86 paf 5184:
1.128 moko 5185: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5186: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5187: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 5188:
1.150 moko 5189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5190: $as_echo_n "checking how to print strings... " >&6; }
1.128 moko 5191: # Test print first, because it will be a builtin if present.
5192: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5193: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5194: ECHO='print -r --'
5195: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5196: ECHO='printf %s\n'
5197: else
5198: # Use this function as a fallback that always works.
5199: func_fallback_echo ()
5200: {
5201: eval 'cat <<_LTECHO_EOF
5202: $1
5203: _LTECHO_EOF'
5204: }
5205: ECHO='func_fallback_echo'
5206: fi
1.86 paf 5207:
1.128 moko 5208: # func_echo_all arg...
5209: # Invoke $ECHO with all args, space-separated.
5210: func_echo_all ()
1.66 paf 5211: {
1.128 moko 5212: $ECHO ""
1.66 paf 5213: }
1.10 paf 5214:
1.128 moko 5215: case "$ECHO" in
1.150 moko 5216: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5217: $as_echo "printf" >&6; } ;;
5218: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5219: $as_echo "print -r" >&6; } ;;
5220: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5221: $as_echo "cat" >&6; } ;;
1.128 moko 5222: esac
5223:
5224:
5225:
5226:
5227:
5228:
5229:
5230:
5231:
5232:
5233:
5234:
5235:
5236:
1.150 moko 5237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5238: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5239: if ${ac_cv_path_SED+:} false; then :
5240: $as_echo_n "(cached) " >&6
5241: else
5242: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5243: for ac_i in 1 2 3 4 5 6 7; do
5244: ac_script="$ac_script$as_nl$ac_script"
5245: done
5246: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5247: { ac_script=; unset ac_script;}
5248: if test -z "$SED"; then
5249: ac_path_SED_found=false
5250: # Loop through the user's path and test for each of PROGNAME-LIST
5251: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 5252: for as_dir in $PATH
5253: do
5254: IFS=$as_save_IFS
5255: test -z "$as_dir" && as_dir=.
1.150 moko 5256: for ac_prog in sed gsed; do
1.128 moko 5257: for ac_exec_ext in '' $ac_executable_extensions; do
1.150 moko 5258: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5259: as_fn_executable_p "$ac_path_SED" || continue
1.150 moko 5260: # Check for GNU ac_path_SED and select it if it is found.
5261: # Check for GNU $ac_path_SED
5262: case `"$ac_path_SED" --version 2>&1` in
5263: *GNU*)
5264: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5265: *)
5266: ac_count=0
5267: $as_echo_n 0123456789 >"conftest.in"
5268: while :
5269: do
5270: cat "conftest.in" "conftest.in" >"conftest.tmp"
5271: mv "conftest.tmp" "conftest.in"
5272: cp "conftest.in" "conftest.nl"
5273: $as_echo '' >> "conftest.nl"
5274: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5275: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5276: as_fn_arith $ac_count + 1 && ac_count=$as_val
5277: if test $ac_count -gt ${ac_path_SED_max-0}; then
5278: # Best one so far, save it but keep looking for a better one
5279: ac_cv_path_SED="$ac_path_SED"
5280: ac_path_SED_max=$ac_count
5281: fi
5282: # 10*(2^10) chars as input seems more than enough
5283: test $ac_count -gt 10 && break
5284: done
5285: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5286: esac
5287:
5288: $ac_path_SED_found && break 3
1.128 moko 5289: done
5290: done
1.150 moko 5291: done
1.128 moko 5292: IFS=$as_save_IFS
1.150 moko 5293: if test -z "$ac_cv_path_SED"; then
5294: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 5295: fi
1.150 moko 5296: else
5297: ac_cv_path_SED=$SED
5298: fi
1.10 paf 5299:
1.66 paf 5300: fi
1.150 moko 5301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5302: $as_echo "$ac_cv_path_SED" >&6; }
5303: SED="$ac_cv_path_SED"
5304: rm -f conftest.sed
1.128 moko 5305:
5306: test -z "$SED" && SED=sed
5307: Xsed="$SED -e 1s/^X//"
1.10 paf 5308:
1.128 moko 5309:
5310:
5311:
5312:
5313:
5314:
5315:
5316:
5317:
5318:
1.150 moko 5319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5320: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5321: if ${ac_cv_path_GREP+:} false; then :
5322: $as_echo_n "(cached) " >&6
5323: else
5324: if test -z "$GREP"; then
5325: ac_path_GREP_found=false
5326: # Loop through the user's path and test for each of PROGNAME-LIST
5327: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5329: do
5330: IFS=$as_save_IFS
5331: test -z "$as_dir" && as_dir=.
5332: for ac_prog in grep ggrep; do
5333: for ac_exec_ext in '' $ac_executable_extensions; do
5334: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5335: as_fn_executable_p "$ac_path_GREP" || continue
1.150 moko 5336: # Check for GNU ac_path_GREP and select it if it is found.
5337: # Check for GNU $ac_path_GREP
5338: case `"$ac_path_GREP" --version 2>&1` in
5339: *GNU*)
5340: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5341: *)
5342: ac_count=0
5343: $as_echo_n 0123456789 >"conftest.in"
5344: while :
5345: do
5346: cat "conftest.in" "conftest.in" >"conftest.tmp"
5347: mv "conftest.tmp" "conftest.in"
5348: cp "conftest.in" "conftest.nl"
5349: $as_echo 'GREP' >> "conftest.nl"
5350: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5351: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5352: as_fn_arith $ac_count + 1 && ac_count=$as_val
5353: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5354: # Best one so far, save it but keep looking for a better one
5355: ac_cv_path_GREP="$ac_path_GREP"
5356: ac_path_GREP_max=$ac_count
1.128 moko 5357: fi
1.150 moko 5358: # 10*(2^10) chars as input seems more than enough
5359: test $ac_count -gt 10 && break
5360: done
5361: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5362: esac
5363:
5364: $ac_path_GREP_found && break 3
5365: done
5366: done
5367: done
5368: IFS=$as_save_IFS
5369: if test -z "$ac_cv_path_GREP"; then
5370: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5371: fi
5372: else
5373: ac_cv_path_GREP=$GREP
5374: fi
5375:
1.128 moko 5376: fi
1.150 moko 5377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5378: $as_echo "$ac_cv_path_GREP" >&6; }
5379: GREP="$ac_cv_path_GREP"
5380:
5381:
5382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5383: $as_echo_n "checking for egrep... " >&6; }
5384: if ${ac_cv_path_EGREP+:} false; then :
5385: $as_echo_n "(cached) " >&6
5386: else
5387: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5388: then ac_cv_path_EGREP="$GREP -E"
5389: else
5390: if test -z "$EGREP"; then
5391: ac_path_EGREP_found=false
5392: # Loop through the user's path and test for each of PROGNAME-LIST
5393: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5395: do
5396: IFS=$as_save_IFS
5397: test -z "$as_dir" && as_dir=.
5398: for ac_prog in egrep; do
5399: for ac_exec_ext in '' $ac_executable_extensions; do
5400: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5401: as_fn_executable_p "$ac_path_EGREP" || continue
1.150 moko 5402: # Check for GNU ac_path_EGREP and select it if it is found.
5403: # Check for GNU $ac_path_EGREP
5404: case `"$ac_path_EGREP" --version 2>&1` in
5405: *GNU*)
5406: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5407: *)
5408: ac_count=0
5409: $as_echo_n 0123456789 >"conftest.in"
5410: while :
5411: do
5412: cat "conftest.in" "conftest.in" >"conftest.tmp"
5413: mv "conftest.tmp" "conftest.in"
5414: cp "conftest.in" "conftest.nl"
5415: $as_echo 'EGREP' >> "conftest.nl"
5416: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5417: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5418: as_fn_arith $ac_count + 1 && ac_count=$as_val
5419: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5420: # Best one so far, save it but keep looking for a better one
5421: ac_cv_path_EGREP="$ac_path_EGREP"
5422: ac_path_EGREP_max=$ac_count
5423: fi
5424: # 10*(2^10) chars as input seems more than enough
5425: test $ac_count -gt 10 && break
5426: done
5427: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5428: esac
1.128 moko 5429:
1.150 moko 5430: $ac_path_EGREP_found && break 3
5431: done
5432: done
5433: done
5434: IFS=$as_save_IFS
5435: if test -z "$ac_cv_path_EGREP"; then
5436: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5437: fi
5438: else
5439: ac_cv_path_EGREP=$EGREP
5440: fi
1.128 moko 5441:
1.150 moko 5442: fi
5443: fi
5444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5445: $as_echo "$ac_cv_path_EGREP" >&6; }
5446: EGREP="$ac_cv_path_EGREP"
5447:
5448:
5449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5450: $as_echo_n "checking for fgrep... " >&6; }
5451: if ${ac_cv_path_FGREP+:} false; then :
5452: $as_echo_n "(cached) " >&6
5453: else
5454: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5455: then ac_cv_path_FGREP="$GREP -F"
5456: else
5457: if test -z "$FGREP"; then
5458: ac_path_FGREP_found=false
5459: # Loop through the user's path and test for each of PROGNAME-LIST
5460: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5462: do
5463: IFS=$as_save_IFS
5464: test -z "$as_dir" && as_dir=.
5465: for ac_prog in fgrep; do
5466: for ac_exec_ext in '' $ac_executable_extensions; do
5467: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5468: as_fn_executable_p "$ac_path_FGREP" || continue
1.150 moko 5469: # Check for GNU ac_path_FGREP and select it if it is found.
5470: # Check for GNU $ac_path_FGREP
5471: case `"$ac_path_FGREP" --version 2>&1` in
5472: *GNU*)
5473: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5474: *)
5475: ac_count=0
5476: $as_echo_n 0123456789 >"conftest.in"
5477: while :
5478: do
5479: cat "conftest.in" "conftest.in" >"conftest.tmp"
5480: mv "conftest.tmp" "conftest.in"
5481: cp "conftest.in" "conftest.nl"
5482: $as_echo 'FGREP' >> "conftest.nl"
5483: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5484: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5485: as_fn_arith $ac_count + 1 && ac_count=$as_val
5486: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5487: # Best one so far, save it but keep looking for a better one
5488: ac_cv_path_FGREP="$ac_path_FGREP"
5489: ac_path_FGREP_max=$ac_count
1.128 moko 5490: fi
1.150 moko 5491: # 10*(2^10) chars as input seems more than enough
5492: test $ac_count -gt 10 && break
5493: done
5494: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5495: esac
5496:
5497: $ac_path_FGREP_found && break 3
5498: done
5499: done
5500: done
5501: IFS=$as_save_IFS
5502: if test -z "$ac_cv_path_FGREP"; then
5503: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5504: fi
5505: else
5506: ac_cv_path_FGREP=$FGREP
5507: fi
5508:
5509: fi
1.128 moko 5510: fi
1.150 moko 5511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5512: $as_echo "$ac_cv_path_FGREP" >&6; }
5513: FGREP="$ac_cv_path_FGREP"
1.128 moko 5514:
5515:
5516: test -z "$GREP" && GREP=grep
5517:
5518:
5519:
5520:
5521:
5522:
5523:
5524:
5525:
5526:
5527:
5528:
5529:
5530:
5531:
5532:
5533:
5534:
5535:
1.150 moko 5536: # Check whether --with-gnu-ld was given.
5537: if test "${with_gnu_ld+set}" = set; then :
5538: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 5539: else
5540: with_gnu_ld=no
1.150 moko 5541: fi
5542:
1.128 moko 5543: ac_prog=ld
5544: if test "$GCC" = yes; then
5545: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 5546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5547: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 5548: case $host in
5549: *-*-mingw*)
5550: # gcc leaves a trailing carriage return which upsets mingw
5551: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5552: *)
5553: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5554: esac
5555: case $ac_prog in
5556: # Accept absolute paths.
5557: [\\/]* | ?:[\\/]*)
5558: re_direlt='/[^/][^/]*/\.\./'
5559: # Canonicalize the pathname of ld
5560: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5561: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5562: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5563: done
5564: test -z "$LD" && LD="$ac_prog"
5565: ;;
5566: "")
5567: # If it fails, then pretend we aren't using GCC.
5568: ac_prog=ld
5569: ;;
5570: *)
5571: # If it is relative, then search for the first ld in PATH.
5572: with_gnu_ld=unknown
5573: ;;
5574: esac
5575: elif test "$with_gnu_ld" = yes; then
1.150 moko 5576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5577: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 5578: else
1.150 moko 5579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5580: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 5581: fi
1.150 moko 5582: if ${lt_cv_path_LD+:} false; then :
5583: $as_echo_n "(cached) " >&6
1.128 moko 5584: else
5585: if test -z "$LD"; then
5586: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5587: for ac_dir in $PATH; do
5588: IFS="$lt_save_ifs"
5589: test -z "$ac_dir" && ac_dir=.
5590: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5591: lt_cv_path_LD="$ac_dir/$ac_prog"
5592: # Check to see if the program is GNU ld. I'd rather use --version,
5593: # but apparently some variants of GNU ld only accept -v.
5594: # Break only if it was the GNU/non-GNU ld that we prefer.
5595: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5596: *GNU* | *'with BFD'*)
5597: test "$with_gnu_ld" != no && break
5598: ;;
5599: *)
5600: test "$with_gnu_ld" != yes && break
5601: ;;
5602: esac
5603: fi
5604: done
5605: IFS="$lt_save_ifs"
5606: else
5607: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5608: fi
5609: fi
5610:
5611: LD="$lt_cv_path_LD"
5612: if test -n "$LD"; then
1.150 moko 5613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5614: $as_echo "$LD" >&6; }
1.128 moko 5615: else
1.150 moko 5616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617: $as_echo "no" >&6; }
1.128 moko 5618: fi
1.150 moko 5619: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5620: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5621: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5622: if ${lt_cv_prog_gnu_ld+:} false; then :
5623: $as_echo_n "(cached) " >&6
1.128 moko 5624: else
5625: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5626: case `$LD -v 2>&1 </dev/null` in
5627: *GNU* | *'with BFD'*)
5628: lt_cv_prog_gnu_ld=yes
5629: ;;
5630: *)
5631: lt_cv_prog_gnu_ld=no
5632: ;;
5633: esac
5634: fi
1.150 moko 5635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5636: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 5637: with_gnu_ld=$lt_cv_prog_gnu_ld
5638:
5639:
5640:
5641:
5642:
5643:
5644:
5645:
5646:
1.150 moko 5647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5648: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5649: if ${lt_cv_path_NM+:} false; then :
5650: $as_echo_n "(cached) " >&6
1.128 moko 5651: else
5652: if test -n "$NM"; then
5653: # Let the user override the test.
5654: lt_cv_path_NM="$NM"
5655: else
5656: lt_nm_to_check="${ac_tool_prefix}nm"
5657: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5658: lt_nm_to_check="$lt_nm_to_check nm"
5659: fi
5660: for lt_tmp_nm in $lt_nm_to_check; do
5661: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5662: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5663: IFS="$lt_save_ifs"
5664: test -z "$ac_dir" && ac_dir=.
5665: tmp_nm="$ac_dir/$lt_tmp_nm"
5666: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5667: # Check to see if the nm accepts a BSD-compat flag.
5668: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5669: # nm: unknown option "B" ignored
5670: # Tru64's nm complains that /dev/null is an invalid object file
5671: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5672: */dev/null* | *'Invalid file or object type'*)
5673: lt_cv_path_NM="$tmp_nm -B"
5674: break
5675: ;;
5676: *)
5677: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5678: */dev/null*)
5679: lt_cv_path_NM="$tmp_nm -p"
5680: break
5681: ;;
5682: *)
5683: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5684: continue # so that we can try to find one that supports BSD flags
5685: ;;
5686: esac
5687: ;;
5688: esac
5689: fi
5690: done
5691: IFS="$lt_save_ifs"
5692: done
5693: : ${lt_cv_path_NM=no}
5694: fi
5695: fi
1.150 moko 5696: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5697: $as_echo "$lt_cv_path_NM" >&6; }
1.128 moko 5698: if test "$lt_cv_path_NM" != "no"; then
5699: NM="$lt_cv_path_NM"
5700: else
5701: # Didn't find any BSD compatible name lister, look for dumpbin.
5702: if test -n "$DUMPBIN"; then :
5703: # Let the user override the test.
5704: else
5705: if test -n "$ac_tool_prefix"; then
5706: for ac_prog in dumpbin "link -dump"
5707: do
5708: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5709: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 5710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711: $as_echo_n "checking for $ac_word... " >&6; }
5712: if ${ac_cv_prog_DUMPBIN+:} false; then :
5713: $as_echo_n "(cached) " >&6
1.128 moko 5714: else
5715: if test -n "$DUMPBIN"; then
5716: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5717: else
5718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719: for as_dir in $PATH
5720: do
5721: IFS=$as_save_IFS
5722: test -z "$as_dir" && as_dir=.
1.150 moko 5723: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5724: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5725: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.150 moko 5726: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5727: break 2
5728: fi
5729: done
1.150 moko 5730: done
5731: IFS=$as_save_IFS
1.128 moko 5732:
5733: fi
5734: fi
5735: DUMPBIN=$ac_cv_prog_DUMPBIN
5736: if test -n "$DUMPBIN"; then
1.150 moko 5737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5738: $as_echo "$DUMPBIN" >&6; }
1.128 moko 5739: else
1.150 moko 5740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741: $as_echo "no" >&6; }
1.128 moko 5742: fi
5743:
1.150 moko 5744:
1.128 moko 5745: test -n "$DUMPBIN" && break
5746: done
5747: fi
5748: if test -z "$DUMPBIN"; then
5749: ac_ct_DUMPBIN=$DUMPBIN
5750: for ac_prog in dumpbin "link -dump"
5751: do
5752: # Extract the first word of "$ac_prog", so it can be a program name with args.
5753: set dummy $ac_prog; ac_word=$2
1.150 moko 5754: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755: $as_echo_n "checking for $ac_word... " >&6; }
5756: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5757: $as_echo_n "(cached) " >&6
1.128 moko 5758: else
5759: if test -n "$ac_ct_DUMPBIN"; then
5760: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5761: else
5762: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763: for as_dir in $PATH
5764: do
5765: IFS=$as_save_IFS
5766: test -z "$as_dir" && as_dir=.
1.150 moko 5767: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 5768: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 5769: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.150 moko 5770: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 5771: break 2
5772: fi
5773: done
1.150 moko 5774: done
5775: IFS=$as_save_IFS
1.128 moko 5776:
5777: fi
5778: fi
5779: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5780: if test -n "$ac_ct_DUMPBIN"; then
1.150 moko 5781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5782: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.128 moko 5783: else
1.150 moko 5784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785: $as_echo "no" >&6; }
1.128 moko 5786: fi
5787:
1.150 moko 5788:
1.128 moko 5789: test -n "$ac_ct_DUMPBIN" && break
5790: done
5791:
1.150 moko 5792: if test "x$ac_ct_DUMPBIN" = x; then
5793: DUMPBIN=":"
5794: else
5795: case $cross_compiling:$ac_tool_warned in
5796: yes:)
5797: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799: ac_tool_warned=yes ;;
5800: esac
5801: DUMPBIN=$ac_ct_DUMPBIN
5802: fi
1.128 moko 5803: fi
5804:
5805: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5806: *COFF*)
5807: DUMPBIN="$DUMPBIN -symbols"
5808: ;;
5809: *)
5810: DUMPBIN=:
5811: ;;
5812: esac
5813: fi
5814:
5815: if test "$DUMPBIN" != ":"; then
5816: NM="$DUMPBIN"
5817: fi
5818: fi
5819: test -z "$NM" && NM=nm
5820:
5821:
5822:
5823:
5824:
5825:
1.150 moko 5826: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5827: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5828: if ${lt_cv_nm_interface+:} false; then :
5829: $as_echo_n "(cached) " >&6
1.128 moko 5830: else
5831: lt_cv_nm_interface="BSD nm"
5832: echo "int some_variable = 0;" > conftest.$ac_ext
5833: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5834: (eval "$ac_compile" 2>conftest.err)
5835: cat conftest.err >&5
5836: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5837: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5838: cat conftest.err >&5
5839: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5840: cat conftest.out >&5
5841: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5842: lt_cv_nm_interface="MS dumpbin"
5843: fi
5844: rm -f conftest*
5845: fi
1.150 moko 5846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5847: $as_echo "$lt_cv_nm_interface" >&6; }
1.128 moko 5848:
1.150 moko 5849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5850: $as_echo_n "checking whether ln -s works... " >&6; }
1.128 moko 5851: LN_S=$as_ln_s
5852: if test "$LN_S" = "ln -s"; then
1.150 moko 5853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5854: $as_echo "yes" >&6; }
1.128 moko 5855: else
1.150 moko 5856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5857: $as_echo "no, using $LN_S" >&6; }
1.128 moko 5858: fi
5859:
5860: # find the maximum length of command line arguments
1.150 moko 5861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5862: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5863: if ${lt_cv_sys_max_cmd_len+:} false; then :
5864: $as_echo_n "(cached) " >&6
1.128 moko 5865: else
5866: i=0
5867: teststring="ABCD"
5868:
5869: case $build_os in
5870: msdosdjgpp*)
5871: # On DJGPP, this test can blow up pretty badly due to problems in libc
5872: # (any single argument exceeding 2000 bytes causes a buffer overrun
5873: # during glob expansion). Even if it were fixed, the result of this
5874: # check would be larger than it should be.
5875: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5876: ;;
5877:
5878: gnu*)
5879: # Under GNU Hurd, this test is not required because there is
5880: # no limit to the length of command line arguments.
5881: # Libtool will interpret -1 as no limit whatsoever
5882: lt_cv_sys_max_cmd_len=-1;
5883: ;;
5884:
5885: cygwin* | mingw* | cegcc*)
5886: # On Win9x/ME, this test blows up -- it succeeds, but takes
5887: # about 5 minutes as the teststring grows exponentially.
5888: # Worse, since 9x/ME are not pre-emptively multitasking,
5889: # you end up with a "frozen" computer, even though with patience
5890: # the test eventually succeeds (with a max line length of 256k).
5891: # Instead, let's just punt: use the minimum linelength reported by
5892: # all of the supported platforms: 8192 (on NT/2K/XP).
5893: lt_cv_sys_max_cmd_len=8192;
5894: ;;
5895:
5896: mint*)
5897: # On MiNT this can take a long time and run out of memory.
5898: lt_cv_sys_max_cmd_len=8192;
5899: ;;
5900:
5901: amigaos*)
5902: # On AmigaOS with pdksh, this test takes hours, literally.
5903: # So we just punt and use a minimum line length of 8192.
5904: lt_cv_sys_max_cmd_len=8192;
5905: ;;
5906:
5907: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5908: # This has been around since 386BSD, at least. Likely further.
5909: if test -x /sbin/sysctl; then
5910: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5911: elif test -x /usr/sbin/sysctl; then
5912: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5913: else
5914: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5915: fi
5916: # And add a safety zone
5917: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5918: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5919: ;;
5920:
5921: interix*)
5922: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5923: lt_cv_sys_max_cmd_len=196608
5924: ;;
5925:
5926: os2*)
5927: # The test takes a long time on OS/2.
5928: lt_cv_sys_max_cmd_len=8192
5929: ;;
5930:
5931: osf*)
5932: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5933: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5934: # nice to cause kernel panics so lets avoid the loop below.
5935: # First set a reasonable default.
5936: lt_cv_sys_max_cmd_len=16384
5937: #
5938: if test -x /sbin/sysconfig; then
5939: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5940: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5941: esac
5942: fi
5943: ;;
5944: sco3.2v5*)
5945: lt_cv_sys_max_cmd_len=102400
5946: ;;
5947: sysv5* | sco5v6* | sysv4.2uw2*)
5948: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5949: if test -n "$kargmax"; then
5950: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5951: else
5952: lt_cv_sys_max_cmd_len=32768
5953: fi
5954: ;;
5955: *)
5956: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5957: if test -n "$lt_cv_sys_max_cmd_len"; then
5958: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5959: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5960: else
5961: # Make teststring a little bigger before we do anything with it.
5962: # a 1K string should be a reasonable start.
5963: for i in 1 2 3 4 5 6 7 8 ; do
5964: teststring=$teststring$teststring
5965: done
5966: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5967: # If test is not a shell built-in, we'll probably end up computing a
5968: # maximum length that is only half of the actual maximum length, but
5969: # we can't tell.
5970: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5971: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5972: test $i != 17 # 1/2 MB should be enough
5973: do
5974: i=`expr $i + 1`
5975: teststring=$teststring$teststring
5976: done
5977: # Only check the string length outside the loop.
5978: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5979: teststring=
5980: # Add a significant safety factor because C++ compilers can tack on
5981: # massive amounts of additional arguments before passing them to the
5982: # linker. It appears as though 1/2 is a usable value.
5983: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5984: fi
5985: ;;
5986: esac
5987:
5988: fi
5989:
5990: if test -n $lt_cv_sys_max_cmd_len ; then
1.150 moko 5991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5992: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 5993: else
1.150 moko 5994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5995: $as_echo "none" >&6; }
1.128 moko 5996: fi
5997: max_cmd_len=$lt_cv_sys_max_cmd_len
5998:
5999:
6000:
6001:
6002:
6003:
6004: : ${CP="cp -f"}
6005: : ${MV="mv -f"}
6006: : ${RM="rm -f"}
6007:
1.150 moko 6008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6009: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.128 moko 6010: # Try some XSI features
6011: xsi_shell=no
6012: ( _lt_dummy="a/b/c"
6013: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6014: = c,a/b,b/c, \
6015: && eval 'test $(( 1 + 1 )) -eq 2 \
6016: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6017: && xsi_shell=yes
1.150 moko 6018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6019: $as_echo "$xsi_shell" >&6; }
1.128 moko 6020:
6021:
1.150 moko 6022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6023: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.128 moko 6024: lt_shell_append=no
6025: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6026: >/dev/null 2>&1 \
6027: && lt_shell_append=yes
1.150 moko 6028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6029: $as_echo "$lt_shell_append" >&6; }
1.128 moko 6030:
6031:
6032: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6033: lt_unset=unset
6034: else
6035: lt_unset=false
6036: fi
6037:
6038:
6039:
6040:
6041:
6042: # test EBCDIC or ASCII
6043: case `echo X|tr X '\101'` in
6044: A) # ASCII based system
6045: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6046: lt_SP2NL='tr \040 \012'
6047: lt_NL2SP='tr \015\012 \040\040'
6048: ;;
6049: *) # EBCDIC based system
6050: lt_SP2NL='tr \100 \n'
6051: lt_NL2SP='tr \r\n \100\100'
6052: ;;
6053: esac
6054:
6055:
6056:
6057:
6058:
6059:
6060:
6061:
6062:
1.150 moko 6063: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6064: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6065: if ${lt_cv_to_host_file_cmd+:} false; then :
6066: $as_echo_n "(cached) " >&6
1.128 moko 6067: else
6068: case $host in
6069: *-*-mingw* )
6070: case $build in
6071: *-*-mingw* ) # actually msys
6072: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6073: ;;
6074: *-*-cygwin* )
6075: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6076: ;;
6077: * ) # otherwise, assume *nix
6078: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6079: ;;
6080: esac
6081: ;;
6082: *-*-cygwin* )
6083: case $build in
6084: *-*-mingw* ) # actually msys
6085: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6086: ;;
6087: *-*-cygwin* )
6088: lt_cv_to_host_file_cmd=func_convert_file_noop
6089: ;;
6090: * ) # otherwise, assume *nix
6091: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6092: ;;
6093: esac
6094: ;;
6095: * ) # unhandled hosts (and "normal" native builds)
6096: lt_cv_to_host_file_cmd=func_convert_file_noop
6097: ;;
6098: esac
6099:
6100: fi
6101:
6102: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.150 moko 6103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6104: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 6105:
6106:
6107:
6108:
6109:
1.150 moko 6110: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6111: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6112: if ${lt_cv_to_tool_file_cmd+:} false; then :
6113: $as_echo_n "(cached) " >&6
1.128 moko 6114: else
6115: #assume ordinary cross tools, or native build.
6116: lt_cv_to_tool_file_cmd=func_convert_file_noop
6117: case $host in
6118: *-*-mingw* )
6119: case $build in
6120: *-*-mingw* ) # actually msys
6121: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6122: ;;
6123: esac
6124: ;;
6125: esac
6126:
6127: fi
6128:
6129: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.150 moko 6130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6131: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 6132:
6133:
6134:
6135:
6136:
1.150 moko 6137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6138: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6139: if ${lt_cv_ld_reload_flag+:} false; then :
6140: $as_echo_n "(cached) " >&6
1.128 moko 6141: else
6142: lt_cv_ld_reload_flag='-r'
6143: fi
1.150 moko 6144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6145: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 6146: reload_flag=$lt_cv_ld_reload_flag
6147: case $reload_flag in
6148: "" | " "*) ;;
6149: *) reload_flag=" $reload_flag" ;;
6150: esac
6151: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6152: case $host_os in
6153: cygwin* | mingw* | pw32* | cegcc*)
6154: if test "$GCC" != yes; then
6155: reload_cmds=false
6156: fi
6157: ;;
6158: darwin*)
6159: if test "$GCC" = yes; then
6160: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6161: else
6162: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6163: fi
6164: ;;
6165: esac
6166:
6167:
6168:
6169:
6170:
6171:
6172:
6173:
6174:
6175: if test -n "$ac_tool_prefix"; then
6176: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6177: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 6178: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179: $as_echo_n "checking for $ac_word... " >&6; }
6180: if ${ac_cv_prog_OBJDUMP+:} false; then :
6181: $as_echo_n "(cached) " >&6
1.128 moko 6182: else
6183: if test -n "$OBJDUMP"; then
6184: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6185: else
6186: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187: for as_dir in $PATH
6188: do
6189: IFS=$as_save_IFS
6190: test -z "$as_dir" && as_dir=.
1.150 moko 6191: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6192: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6193: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 6194: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6195: break 2
6196: fi
6197: done
1.150 moko 6198: done
6199: IFS=$as_save_IFS
1.128 moko 6200:
6201: fi
6202: fi
6203: OBJDUMP=$ac_cv_prog_OBJDUMP
6204: if test -n "$OBJDUMP"; then
1.150 moko 6205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6206: $as_echo "$OBJDUMP" >&6; }
1.128 moko 6207: else
1.150 moko 6208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209: $as_echo "no" >&6; }
1.128 moko 6210: fi
6211:
1.150 moko 6212:
1.128 moko 6213: fi
6214: if test -z "$ac_cv_prog_OBJDUMP"; then
6215: ac_ct_OBJDUMP=$OBJDUMP
6216: # Extract the first word of "objdump", so it can be a program name with args.
6217: set dummy objdump; ac_word=$2
1.150 moko 6218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219: $as_echo_n "checking for $ac_word... " >&6; }
6220: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6221: $as_echo_n "(cached) " >&6
1.128 moko 6222: else
6223: if test -n "$ac_ct_OBJDUMP"; then
6224: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6225: else
6226: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227: for as_dir in $PATH
6228: do
6229: IFS=$as_save_IFS
6230: test -z "$as_dir" && as_dir=.
1.150 moko 6231: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6232: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6233: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 6234: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6235: break 2
6236: fi
6237: done
1.150 moko 6238: done
6239: IFS=$as_save_IFS
1.128 moko 6240:
6241: fi
6242: fi
6243: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6244: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 6245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6246: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 6247: else
1.150 moko 6248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249: $as_echo "no" >&6; }
1.128 moko 6250: fi
6251:
1.150 moko 6252: if test "x$ac_ct_OBJDUMP" = x; then
6253: OBJDUMP="false"
6254: else
6255: case $cross_compiling:$ac_tool_warned in
6256: yes:)
6257: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6258: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6259: ac_tool_warned=yes ;;
6260: esac
6261: OBJDUMP=$ac_ct_OBJDUMP
6262: fi
1.128 moko 6263: else
6264: OBJDUMP="$ac_cv_prog_OBJDUMP"
6265: fi
6266:
6267: test -z "$OBJDUMP" && OBJDUMP=objdump
6268:
6269:
6270:
6271:
6272:
6273:
1.150 moko 6274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6275: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6276: if ${lt_cv_deplibs_check_method+:} false; then :
6277: $as_echo_n "(cached) " >&6
1.128 moko 6278: else
6279: lt_cv_file_magic_cmd='$MAGIC_CMD'
6280: lt_cv_file_magic_test_file=
6281: lt_cv_deplibs_check_method='unknown'
6282: # Need to set the preceding variable on all platforms that support
6283: # interlibrary dependencies.
6284: # 'none' -- dependencies not supported.
6285: # `unknown' -- same as none, but documents that we really don't know.
6286: # 'pass_all' -- all dependencies passed with no checks.
6287: # 'test_compile' -- check by making test program.
6288: # 'file_magic [[regex]]' -- check by looking for files in library path
6289: # which responds to the $file_magic_cmd with a given extended regex.
6290: # If you have `file' or equivalent on your system and you're not sure
6291: # whether `pass_all' will *always* work, you probably want this one.
6292:
6293: case $host_os in
6294: aix[4-9]*)
6295: lt_cv_deplibs_check_method=pass_all
6296: ;;
6297:
6298: beos*)
6299: lt_cv_deplibs_check_method=pass_all
6300: ;;
6301:
6302: bsdi[45]*)
6303: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6304: lt_cv_file_magic_cmd='/usr/bin/file -L'
6305: lt_cv_file_magic_test_file=/shlib/libc.so
6306: ;;
6307:
6308: cygwin*)
6309: # func_win32_libid is a shell function defined in ltmain.sh
6310: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6311: lt_cv_file_magic_cmd='func_win32_libid'
6312: ;;
6313:
6314: mingw* | pw32*)
6315: # Base MSYS/MinGW do not provide the 'file' command needed by
6316: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6317: # unless we find 'file', for example because we are cross-compiling.
6318: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6319: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6320: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6321: lt_cv_file_magic_cmd='func_win32_libid'
6322: else
6323: # Keep this pattern in sync with the one in func_win32_libid.
6324: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6325: lt_cv_file_magic_cmd='$OBJDUMP -f'
6326: fi
6327: ;;
6328:
6329: cegcc*)
6330: # use the weaker test based on 'objdump'. See mingw*.
6331: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6332: lt_cv_file_magic_cmd='$OBJDUMP -f'
6333: ;;
6334:
6335: darwin* | rhapsody*)
6336: lt_cv_deplibs_check_method=pass_all
6337: ;;
6338:
6339: freebsd* | dragonfly*)
6340: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6341: case $host_cpu in
6342: i*86 )
6343: # Not sure whether the presence of OpenBSD here was a mistake.
6344: # Let's accept both of them until this is cleared up.
6345: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6346: lt_cv_file_magic_cmd=/usr/bin/file
6347: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6348: ;;
6349: esac
6350: else
6351: lt_cv_deplibs_check_method=pass_all
6352: fi
6353: ;;
6354:
6355: gnu*)
6356: lt_cv_deplibs_check_method=pass_all
6357: ;;
6358:
6359: haiku*)
6360: lt_cv_deplibs_check_method=pass_all
6361: ;;
6362:
6363: hpux10.20* | hpux11*)
6364: lt_cv_file_magic_cmd=/usr/bin/file
6365: case $host_cpu in
6366: ia64*)
6367: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6368: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6369: ;;
6370: hppa*64*)
6371: 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]'
6372: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6373: ;;
6374: *)
6375: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6376: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6377: ;;
6378: esac
6379: ;;
6380:
6381: interix[3-9]*)
6382: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6383: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6384: ;;
6385:
6386: irix5* | irix6* | nonstopux*)
6387: case $LD in
6388: *-32|*"-32 ") libmagic=32-bit;;
6389: *-n32|*"-n32 ") libmagic=N32;;
6390: *-64|*"-64 ") libmagic=64-bit;;
6391: *) libmagic=never-match;;
6392: esac
6393: lt_cv_deplibs_check_method=pass_all
6394: ;;
6395:
6396: # This must be glibc/ELF.
6397: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6398: lt_cv_deplibs_check_method=pass_all
6399: ;;
6400:
6401: netbsd*)
6402: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6403: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6404: else
6405: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6406: fi
6407: ;;
6408:
6409: newos6*)
6410: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6411: lt_cv_file_magic_cmd=/usr/bin/file
6412: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6413: ;;
6414:
6415: *nto* | *qnx*)
6416: lt_cv_deplibs_check_method=pass_all
6417: ;;
6418:
6419: openbsd*)
6420: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6421: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6422: else
6423: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6424: fi
6425: ;;
6426:
6427: osf3* | osf4* | osf5*)
6428: lt_cv_deplibs_check_method=pass_all
6429: ;;
6430:
6431: rdos*)
6432: lt_cv_deplibs_check_method=pass_all
6433: ;;
6434:
6435: solaris*)
6436: lt_cv_deplibs_check_method=pass_all
6437: ;;
6438:
6439: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6440: lt_cv_deplibs_check_method=pass_all
6441: ;;
6442:
6443: sysv4 | sysv4.3*)
6444: case $host_vendor in
6445: motorola)
6446: 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]'
6447: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6448: ;;
6449: ncr)
6450: lt_cv_deplibs_check_method=pass_all
6451: ;;
6452: sequent)
6453: lt_cv_file_magic_cmd='/bin/file'
6454: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6455: ;;
6456: sni)
6457: lt_cv_file_magic_cmd='/bin/file'
6458: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6459: lt_cv_file_magic_test_file=/lib/libc.so
6460: ;;
6461: siemens)
6462: lt_cv_deplibs_check_method=pass_all
6463: ;;
6464: pc)
6465: lt_cv_deplibs_check_method=pass_all
6466: ;;
6467: esac
6468: ;;
6469:
6470: tpf*)
6471: lt_cv_deplibs_check_method=pass_all
6472: ;;
6473: esac
6474:
6475: fi
1.150 moko 6476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6477: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 6478:
6479: file_magic_glob=
6480: want_nocaseglob=no
6481: if test "$build" = "$host"; then
6482: case $host_os in
6483: mingw* | pw32*)
6484: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6485: want_nocaseglob=yes
6486: else
6487: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6488: fi
6489: ;;
6490: esac
6491: fi
6492:
6493: file_magic_cmd=$lt_cv_file_magic_cmd
6494: deplibs_check_method=$lt_cv_deplibs_check_method
6495: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6496:
6497:
6498:
6499:
6500:
6501:
6502:
6503:
6504:
6505:
6506:
6507:
6508:
6509:
6510:
6511:
6512:
6513:
6514:
6515:
6516:
6517:
6518: if test -n "$ac_tool_prefix"; then
6519: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6520: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 6521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522: $as_echo_n "checking for $ac_word... " >&6; }
6523: if ${ac_cv_prog_DLLTOOL+:} false; then :
6524: $as_echo_n "(cached) " >&6
1.128 moko 6525: else
6526: if test -n "$DLLTOOL"; then
6527: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6528: else
6529: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530: for as_dir in $PATH
6531: do
6532: IFS=$as_save_IFS
6533: test -z "$as_dir" && as_dir=.
1.150 moko 6534: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6535: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6536: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 6537: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6538: break 2
6539: fi
6540: done
1.150 moko 6541: done
6542: IFS=$as_save_IFS
1.128 moko 6543:
6544: fi
6545: fi
6546: DLLTOOL=$ac_cv_prog_DLLTOOL
6547: if test -n "$DLLTOOL"; then
1.150 moko 6548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6549: $as_echo "$DLLTOOL" >&6; }
1.128 moko 6550: else
1.150 moko 6551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552: $as_echo "no" >&6; }
1.128 moko 6553: fi
6554:
1.150 moko 6555:
1.128 moko 6556: fi
6557: if test -z "$ac_cv_prog_DLLTOOL"; then
6558: ac_ct_DLLTOOL=$DLLTOOL
6559: # Extract the first word of "dlltool", so it can be a program name with args.
6560: set dummy dlltool; ac_word=$2
1.150 moko 6561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562: $as_echo_n "checking for $ac_word... " >&6; }
6563: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6564: $as_echo_n "(cached) " >&6
1.128 moko 6565: else
6566: if test -n "$ac_ct_DLLTOOL"; then
6567: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6568: else
6569: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570: for as_dir in $PATH
6571: do
6572: IFS=$as_save_IFS
6573: test -z "$as_dir" && as_dir=.
1.150 moko 6574: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6575: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6576: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 6577: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6578: break 2
6579: fi
6580: done
1.150 moko 6581: done
6582: IFS=$as_save_IFS
1.128 moko 6583:
6584: fi
6585: fi
6586: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6587: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 6588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6589: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 6590: else
1.150 moko 6591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592: $as_echo "no" >&6; }
1.128 moko 6593: fi
6594:
1.150 moko 6595: if test "x$ac_ct_DLLTOOL" = x; then
6596: DLLTOOL="false"
6597: else
6598: case $cross_compiling:$ac_tool_warned in
6599: yes:)
6600: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6601: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6602: ac_tool_warned=yes ;;
6603: esac
6604: DLLTOOL=$ac_ct_DLLTOOL
6605: fi
1.128 moko 6606: else
6607: DLLTOOL="$ac_cv_prog_DLLTOOL"
6608: fi
6609:
6610: test -z "$DLLTOOL" && DLLTOOL=dlltool
6611:
6612:
6613:
6614:
6615:
6616:
6617:
1.150 moko 6618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6619: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6620: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6621: $as_echo_n "(cached) " >&6
1.128 moko 6622: else
6623: lt_cv_sharedlib_from_linklib_cmd='unknown'
6624:
6625: case $host_os in
6626: cygwin* | mingw* | pw32* | cegcc*)
6627: # two different shell functions defined in ltmain.sh
6628: # decide which to use based on capabilities of $DLLTOOL
6629: case `$DLLTOOL --help 2>&1` in
6630: *--identify-strict*)
6631: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6632: ;;
6633: *)
6634: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6635: ;;
6636: esac
6637: ;;
6638: *)
6639: # fallback: assume linklib IS sharedlib
6640: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6641: ;;
6642: esac
6643:
6644: fi
1.150 moko 6645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6646: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 6647: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6648: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6649:
6650:
6651:
6652:
6653:
6654:
6655:
6656: if test -n "$ac_tool_prefix"; then
6657: for ac_prog in ar
6658: do
6659: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6660: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 6661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662: $as_echo_n "checking for $ac_word... " >&6; }
6663: if ${ac_cv_prog_AR+:} false; then :
6664: $as_echo_n "(cached) " >&6
1.128 moko 6665: else
6666: if test -n "$AR"; then
6667: ac_cv_prog_AR="$AR" # Let the user override the test.
6668: else
6669: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670: for as_dir in $PATH
6671: do
6672: IFS=$as_save_IFS
6673: test -z "$as_dir" && as_dir=.
1.150 moko 6674: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6675: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6676: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.150 moko 6677: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6678: break 2
6679: fi
6680: done
1.150 moko 6681: done
6682: IFS=$as_save_IFS
1.128 moko 6683:
6684: fi
6685: fi
6686: AR=$ac_cv_prog_AR
6687: if test -n "$AR"; then
1.150 moko 6688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6689: $as_echo "$AR" >&6; }
1.128 moko 6690: else
1.150 moko 6691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692: $as_echo "no" >&6; }
1.128 moko 6693: fi
6694:
1.150 moko 6695:
1.128 moko 6696: test -n "$AR" && break
6697: done
6698: fi
6699: if test -z "$AR"; then
6700: ac_ct_AR=$AR
6701: for ac_prog in ar
6702: do
6703: # Extract the first word of "$ac_prog", so it can be a program name with args.
6704: set dummy $ac_prog; ac_word=$2
1.150 moko 6705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706: $as_echo_n "checking for $ac_word... " >&6; }
6707: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6708: $as_echo_n "(cached) " >&6
1.128 moko 6709: else
6710: if test -n "$ac_ct_AR"; then
6711: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6712: else
6713: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714: for as_dir in $PATH
6715: do
6716: IFS=$as_save_IFS
6717: test -z "$as_dir" && as_dir=.
1.150 moko 6718: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6719: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6720: ac_cv_prog_ac_ct_AR="$ac_prog"
1.150 moko 6721: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6722: break 2
6723: fi
6724: done
1.150 moko 6725: done
6726: IFS=$as_save_IFS
1.128 moko 6727:
6728: fi
6729: fi
6730: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6731: if test -n "$ac_ct_AR"; then
1.150 moko 6732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6733: $as_echo "$ac_ct_AR" >&6; }
1.128 moko 6734: else
1.150 moko 6735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736: $as_echo "no" >&6; }
1.128 moko 6737: fi
6738:
1.150 moko 6739:
1.128 moko 6740: test -n "$ac_ct_AR" && break
6741: done
6742:
1.150 moko 6743: if test "x$ac_ct_AR" = x; then
6744: AR="false"
6745: else
6746: case $cross_compiling:$ac_tool_warned in
6747: yes:)
6748: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6749: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6750: ac_tool_warned=yes ;;
6751: esac
6752: AR=$ac_ct_AR
6753: fi
1.128 moko 6754: fi
6755:
6756: : ${AR=ar}
6757: : ${AR_FLAGS=cru}
6758:
6759:
6760:
6761:
6762:
6763:
6764:
6765:
6766:
6767:
6768:
1.150 moko 6769: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6770: $as_echo_n "checking for archiver @FILE support... " >&6; }
6771: if ${lt_cv_ar_at_file+:} false; then :
6772: $as_echo_n "(cached) " >&6
1.128 moko 6773: else
6774: lt_cv_ar_at_file=no
1.150 moko 6775: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 6776: /* end confdefs.h. */
6777:
6778: int
6779: main ()
6780: {
6781:
6782: ;
6783: return 0;
6784: }
6785: _ACEOF
1.150 moko 6786: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 6787: echo conftest.$ac_objext > conftest.lst
6788: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 6789: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 6790: (eval $lt_ar_try) 2>&5
6791: ac_status=$?
1.150 moko 6792: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793: test $ac_status = 0; }
1.128 moko 6794: if test "$ac_status" -eq 0; then
6795: # Ensure the archiver fails upon bogus file names.
6796: rm -f conftest.$ac_objext libconftest.a
1.150 moko 6797: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 6798: (eval $lt_ar_try) 2>&5
6799: ac_status=$?
1.150 moko 6800: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6801: test $ac_status = 0; }
1.128 moko 6802: if test "$ac_status" -ne 0; then
6803: lt_cv_ar_at_file=@
6804: fi
6805: fi
6806: rm -f conftest.* libconftest.a
6807:
6808: fi
1.150 moko 6809: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 6810:
6811: fi
1.150 moko 6812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6813: $as_echo "$lt_cv_ar_at_file" >&6; }
1.128 moko 6814:
6815: if test "x$lt_cv_ar_at_file" = xno; then
6816: archiver_list_spec=
6817: else
6818: archiver_list_spec=$lt_cv_ar_at_file
6819: fi
6820:
6821:
6822:
6823:
6824:
6825:
6826:
6827: if test -n "$ac_tool_prefix"; then
6828: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6829: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.150 moko 6830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831: $as_echo_n "checking for $ac_word... " >&6; }
6832: if ${ac_cv_prog_STRIP+:} false; then :
6833: $as_echo_n "(cached) " >&6
1.128 moko 6834: else
6835: if test -n "$STRIP"; then
6836: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6837: else
6838: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839: for as_dir in $PATH
6840: do
6841: IFS=$as_save_IFS
6842: test -z "$as_dir" && as_dir=.
1.150 moko 6843: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6844: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6845: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.150 moko 6846: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6847: break 2
6848: fi
6849: done
1.150 moko 6850: done
6851: IFS=$as_save_IFS
1.128 moko 6852:
6853: fi
6854: fi
6855: STRIP=$ac_cv_prog_STRIP
6856: if test -n "$STRIP"; then
1.150 moko 6857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6858: $as_echo "$STRIP" >&6; }
1.128 moko 6859: else
1.150 moko 6860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861: $as_echo "no" >&6; }
1.128 moko 6862: fi
6863:
1.150 moko 6864:
1.128 moko 6865: fi
6866: if test -z "$ac_cv_prog_STRIP"; then
6867: ac_ct_STRIP=$STRIP
6868: # Extract the first word of "strip", so it can be a program name with args.
6869: set dummy strip; ac_word=$2
1.150 moko 6870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871: $as_echo_n "checking for $ac_word... " >&6; }
6872: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6873: $as_echo_n "(cached) " >&6
1.128 moko 6874: else
6875: if test -n "$ac_ct_STRIP"; then
6876: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6877: else
6878: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879: for as_dir in $PATH
6880: do
6881: IFS=$as_save_IFS
6882: test -z "$as_dir" && as_dir=.
1.150 moko 6883: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6884: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6885: ac_cv_prog_ac_ct_STRIP="strip"
1.150 moko 6886: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6887: break 2
6888: fi
6889: done
1.150 moko 6890: done
6891: IFS=$as_save_IFS
1.128 moko 6892:
6893: fi
6894: fi
6895: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6896: if test -n "$ac_ct_STRIP"; then
1.150 moko 6897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6898: $as_echo "$ac_ct_STRIP" >&6; }
1.128 moko 6899: else
1.150 moko 6900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901: $as_echo "no" >&6; }
1.128 moko 6902: fi
6903:
1.150 moko 6904: if test "x$ac_ct_STRIP" = x; then
6905: STRIP=":"
6906: else
6907: case $cross_compiling:$ac_tool_warned in
6908: yes:)
6909: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6910: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6911: ac_tool_warned=yes ;;
6912: esac
6913: STRIP=$ac_ct_STRIP
6914: fi
1.128 moko 6915: else
6916: STRIP="$ac_cv_prog_STRIP"
6917: fi
6918:
6919: test -z "$STRIP" && STRIP=:
6920:
6921:
6922:
6923:
6924:
6925:
6926: if test -n "$ac_tool_prefix"; then
6927: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6928: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.150 moko 6929: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930: $as_echo_n "checking for $ac_word... " >&6; }
6931: if ${ac_cv_prog_RANLIB+:} false; then :
6932: $as_echo_n "(cached) " >&6
1.128 moko 6933: else
6934: if test -n "$RANLIB"; then
6935: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6936: else
6937: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938: for as_dir in $PATH
6939: do
6940: IFS=$as_save_IFS
6941: test -z "$as_dir" && as_dir=.
1.150 moko 6942: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6943: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6944: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.150 moko 6945: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6946: break 2
6947: fi
6948: done
1.150 moko 6949: done
6950: IFS=$as_save_IFS
1.128 moko 6951:
6952: fi
6953: fi
6954: RANLIB=$ac_cv_prog_RANLIB
6955: if test -n "$RANLIB"; then
1.150 moko 6956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6957: $as_echo "$RANLIB" >&6; }
1.128 moko 6958: else
1.150 moko 6959: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960: $as_echo "no" >&6; }
1.128 moko 6961: fi
6962:
1.150 moko 6963:
1.128 moko 6964: fi
6965: if test -z "$ac_cv_prog_RANLIB"; then
6966: ac_ct_RANLIB=$RANLIB
6967: # Extract the first word of "ranlib", so it can be a program name with args.
6968: set dummy ranlib; ac_word=$2
1.150 moko 6969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970: $as_echo_n "checking for $ac_word... " >&6; }
6971: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6972: $as_echo_n "(cached) " >&6
1.128 moko 6973: else
6974: if test -n "$ac_ct_RANLIB"; then
6975: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6976: else
6977: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978: for as_dir in $PATH
6979: do
6980: IFS=$as_save_IFS
6981: test -z "$as_dir" && as_dir=.
1.150 moko 6982: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6983: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6984: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.150 moko 6985: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6986: break 2
6987: fi
6988: done
1.150 moko 6989: done
6990: IFS=$as_save_IFS
1.128 moko 6991:
6992: fi
6993: fi
6994: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6995: if test -n "$ac_ct_RANLIB"; then
1.150 moko 6996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6997: $as_echo "$ac_ct_RANLIB" >&6; }
1.128 moko 6998: else
1.150 moko 6999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000: $as_echo "no" >&6; }
1.128 moko 7001: fi
7002:
1.150 moko 7003: if test "x$ac_ct_RANLIB" = x; then
7004: RANLIB=":"
7005: else
7006: case $cross_compiling:$ac_tool_warned in
7007: yes:)
7008: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010: ac_tool_warned=yes ;;
7011: esac
7012: RANLIB=$ac_ct_RANLIB
7013: fi
1.128 moko 7014: else
7015: RANLIB="$ac_cv_prog_RANLIB"
7016: fi
7017:
7018: test -z "$RANLIB" && RANLIB=:
7019:
7020:
7021:
7022:
7023:
7024:
7025: # Determine commands to create old-style static archives.
7026: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7027: old_postinstall_cmds='chmod 644 $oldlib'
7028: old_postuninstall_cmds=
7029:
7030: if test -n "$RANLIB"; then
7031: case $host_os in
7032: openbsd*)
7033: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7034: ;;
7035: *)
7036: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7037: ;;
7038: esac
7039: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7040: fi
7041:
7042: case $host_os in
7043: darwin*)
7044: lock_old_archive_extraction=yes ;;
7045: *)
7046: lock_old_archive_extraction=no ;;
7047: esac
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:
7086:
7087: # If no C compiler was specified, use CC.
7088: LTCC=${LTCC-"$CC"}
7089:
7090: # If no C compiler flags were specified, use CFLAGS.
7091: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7092:
7093: # Allow CC to be a program name with arguments.
7094: compiler=$CC
7095:
7096:
7097: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.150 moko 7098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7099: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7100: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7101: $as_echo_n "(cached) " >&6
1.128 moko 7102: else
7103:
7104: # These are sane defaults that work on at least a few old systems.
7105: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7106:
7107: # Character class describing NM global symbol codes.
7108: symcode='[BCDEGRST]'
7109:
7110: # Regexp to match symbols that can be accessed directly from C.
7111: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7112:
7113: # Define system-specific variables.
7114: case $host_os in
7115: aix*)
7116: symcode='[BCDT]'
7117: ;;
7118: cygwin* | mingw* | pw32* | cegcc*)
7119: symcode='[ABCDGISTW]'
7120: ;;
7121: hpux*)
7122: if test "$host_cpu" = ia64; then
7123: symcode='[ABCDEGRST]'
7124: fi
7125: ;;
7126: irix* | nonstopux*)
7127: symcode='[BCDEGRST]'
7128: ;;
7129: osf*)
7130: symcode='[BCDEGQRST]'
7131: ;;
7132: solaris*)
7133: symcode='[BDRT]'
7134: ;;
7135: sco3.2v5*)
7136: symcode='[DT]'
7137: ;;
7138: sysv4.2uw2*)
7139: symcode='[DT]'
7140: ;;
7141: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7142: symcode='[ABDT]'
7143: ;;
7144: sysv4)
7145: symcode='[DFNSTU]'
7146: ;;
7147: esac
7148:
7149: # If we're using GNU nm, then use its standard symbol codes.
7150: case `$NM -V 2>&1` in
7151: *GNU* | *'with BFD'*)
7152: symcode='[ABCDGIRSTW]' ;;
7153: esac
7154:
7155: # Transform an extracted symbol line into a proper C declaration.
7156: # Some systems (esp. on ia64) link data and code symbols differently,
7157: # so use this general approach.
7158: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7159:
7160: # Transform an extracted symbol line into symbol name and symbol address
7161: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7162: 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'"
7163:
7164: # Handle CRLF in mingw tool chain
7165: opt_cr=
7166: case $build_os in
7167: mingw*)
7168: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7169: ;;
7170: esac
7171:
7172: # Try without a prefix underscore, then with it.
7173: for ac_symprfx in "" "_"; do
7174:
7175: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7176: symxfrm="\\1 $ac_symprfx\\2 \\2"
7177:
7178: # Write the raw and C identifiers.
7179: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7180: # Fake it for dumpbin and say T for any non-static function
7181: # and D for any global variable.
7182: # Also find C++ and __fastcall symbols from MSVC++,
7183: # which start with @ or ?.
7184: lt_cv_sys_global_symbol_pipe="$AWK '"\
7185: " {last_section=section; section=\$ 3};"\
7186: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7187: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7188: " \$ 0!~/External *\|/{next};"\
7189: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7190: " {if(hide[section]) next};"\
7191: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7192: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7193: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7194: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7195: " ' prfx=^$ac_symprfx"
7196: else
7197: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7198: fi
7199: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7200:
7201: # Check to see that the pipe works correctly.
7202: pipe_works=no
7203:
7204: rm -f conftest*
7205: cat > conftest.$ac_ext <<_LT_EOF
7206: #ifdef __cplusplus
7207: extern "C" {
7208: #endif
7209: char nm_test_var;
7210: void nm_test_func(void);
7211: void nm_test_func(void){}
7212: #ifdef __cplusplus
7213: }
7214: #endif
7215: int main(){nm_test_var='a';nm_test_func();return(0);}
7216: _LT_EOF
7217:
1.150 moko 7218: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7219: (eval $ac_compile) 2>&5
7220: ac_status=$?
1.150 moko 7221: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222: test $ac_status = 0; }; then
1.128 moko 7223: # Now try to grab the symbols.
7224: nlist=conftest.nm
1.150 moko 7225: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.128 moko 7226: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7227: ac_status=$?
1.150 moko 7228: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7229: test $ac_status = 0; } && test -s "$nlist"; then
1.128 moko 7230: # Try sorting and uniquifying the output.
7231: if sort "$nlist" | uniq > "$nlist"T; then
7232: mv -f "$nlist"T "$nlist"
7233: else
7234: rm -f "$nlist"T
7235: fi
7236:
7237: # Make sure that we snagged all the symbols we need.
7238: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7239: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7240: cat <<_LT_EOF > conftest.$ac_ext
7241: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7242: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7243: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7244: relocations are performed -- see ld's documentation on pseudo-relocs. */
7245: # define LT_DLSYM_CONST
7246: #elif defined(__osf__)
7247: /* This system does not cope well with relocations in const data. */
7248: # define LT_DLSYM_CONST
7249: #else
7250: # define LT_DLSYM_CONST const
7251: #endif
7252:
7253: #ifdef __cplusplus
7254: extern "C" {
7255: #endif
7256:
7257: _LT_EOF
7258: # Now generate the symbol file.
7259: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7260:
7261: cat <<_LT_EOF >> conftest.$ac_ext
7262:
7263: /* The mapping between symbol names and symbols. */
7264: LT_DLSYM_CONST struct {
7265: const char *name;
7266: void *address;
7267: }
7268: lt__PROGRAM__LTX_preloaded_symbols[] =
7269: {
7270: { "@PROGRAM@", (void *) 0 },
7271: _LT_EOF
7272: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7273: cat <<\_LT_EOF >> conftest.$ac_ext
7274: {0, (void *) 0}
7275: };
7276:
7277: /* This works around a problem in FreeBSD linker */
7278: #ifdef FREEBSD_WORKAROUND
7279: static const void *lt_preloaded_setup() {
7280: return lt__PROGRAM__LTX_preloaded_symbols;
7281: }
7282: #endif
7283:
7284: #ifdef __cplusplus
7285: }
7286: #endif
7287: _LT_EOF
7288: # Now try linking the two files.
7289: mv conftest.$ac_objext conftstm.$ac_objext
7290: lt_globsym_save_LIBS=$LIBS
7291: lt_globsym_save_CFLAGS=$CFLAGS
7292: LIBS="conftstm.$ac_objext"
7293: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 7294: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 7295: (eval $ac_link) 2>&5
7296: ac_status=$?
1.150 moko 7297: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.128 moko 7299: pipe_works=yes
7300: fi
7301: LIBS=$lt_globsym_save_LIBS
7302: CFLAGS=$lt_globsym_save_CFLAGS
7303: else
7304: echo "cannot find nm_test_func in $nlist" >&5
7305: fi
7306: else
7307: echo "cannot find nm_test_var in $nlist" >&5
7308: fi
7309: else
7310: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7311: fi
7312: else
7313: echo "$progname: failed program was:" >&5
7314: cat conftest.$ac_ext >&5
7315: fi
7316: rm -rf conftest* conftst*
7317:
7318: # Do not use the global_symbol_pipe unless it works.
7319: if test "$pipe_works" = yes; then
7320: break
7321: else
7322: lt_cv_sys_global_symbol_pipe=
7323: fi
7324: done
7325:
7326: fi
7327:
7328: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7329: lt_cv_sys_global_symbol_to_cdecl=
7330: fi
7331: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.150 moko 7332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7333: $as_echo "failed" >&6; }
1.128 moko 7334: else
1.150 moko 7335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7336: $as_echo "ok" >&6; }
1.128 moko 7337: fi
7338:
7339: # Response file support.
7340: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7341: nm_file_list_spec='@'
7342: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7343: nm_file_list_spec='@'
7344: fi
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:
7370:
7371:
1.150 moko 7372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7373: $as_echo_n "checking for sysroot... " >&6; }
1.128 moko 7374:
1.150 moko 7375: # Check whether --with-sysroot was given.
7376: if test "${with_sysroot+set}" = set; then :
7377: withval=$with_sysroot;
1.128 moko 7378: else
7379: with_sysroot=no
1.150 moko 7380: fi
7381:
1.128 moko 7382:
7383: lt_sysroot=
7384: case ${with_sysroot} in #(
7385: yes)
7386: if test "$GCC" = yes; then
7387: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7388: fi
7389: ;; #(
7390: /*)
7391: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7392: ;; #(
7393: no|'')
7394: ;; #(
7395: *)
1.150 moko 7396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7397: $as_echo "${with_sysroot}" >&6; }
7398: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 7399: ;;
7400: esac
7401:
1.150 moko 7402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7403: $as_echo "${lt_sysroot:-no}" >&6; }
1.128 moko 7404:
7405:
7406:
7407:
7408:
1.150 moko 7409: # Check whether --enable-libtool-lock was given.
7410: if test "${enable_libtool_lock+set}" = set; then :
7411: enableval=$enable_libtool_lock;
7412: fi
1.128 moko 7413:
7414: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7415:
7416: # Some flags need to be propagated to the compiler or linker for good
7417: # libtool support.
7418: case $host in
7419: ia64-*-hpux*)
7420: # Find out which ABI we are using.
7421: echo 'int i;' > conftest.$ac_ext
1.150 moko 7422: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7423: (eval $ac_compile) 2>&5
7424: ac_status=$?
1.150 moko 7425: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426: test $ac_status = 0; }; then
1.128 moko 7427: case `/usr/bin/file conftest.$ac_objext` in
7428: *ELF-32*)
7429: HPUX_IA64_MODE="32"
7430: ;;
7431: *ELF-64*)
7432: HPUX_IA64_MODE="64"
7433: ;;
7434: esac
7435: fi
7436: rm -rf conftest*
7437: ;;
7438: *-*-irix6*)
7439: # Find out which ABI we are using.
7440: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 7441: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7442: (eval $ac_compile) 2>&5
7443: ac_status=$?
1.150 moko 7444: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445: test $ac_status = 0; }; then
1.128 moko 7446: if test "$lt_cv_prog_gnu_ld" = yes; then
7447: case `/usr/bin/file conftest.$ac_objext` in
7448: *32-bit*)
7449: LD="${LD-ld} -melf32bsmip"
7450: ;;
7451: *N32*)
7452: LD="${LD-ld} -melf32bmipn32"
7453: ;;
7454: *64-bit*)
7455: LD="${LD-ld} -melf64bmip"
7456: ;;
7457: esac
7458: else
7459: case `/usr/bin/file conftest.$ac_objext` in
7460: *32-bit*)
7461: LD="${LD-ld} -32"
7462: ;;
7463: *N32*)
7464: LD="${LD-ld} -n32"
7465: ;;
7466: *64-bit*)
7467: LD="${LD-ld} -64"
7468: ;;
7469: esac
7470: fi
7471: fi
7472: rm -rf conftest*
7473: ;;
7474:
7475: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7476: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7477: # Find out which ABI we are using.
7478: echo 'int i;' > conftest.$ac_ext
1.150 moko 7479: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7480: (eval $ac_compile) 2>&5
7481: ac_status=$?
1.150 moko 7482: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7483: test $ac_status = 0; }; then
1.128 moko 7484: case `/usr/bin/file conftest.o` in
7485: *32-bit*)
7486: case $host in
7487: x86_64-*kfreebsd*-gnu)
7488: LD="${LD-ld} -m elf_i386_fbsd"
7489: ;;
7490: x86_64-*linux*)
7491: LD="${LD-ld} -m elf_i386"
7492: ;;
7493: ppc64-*linux*|powerpc64-*linux*)
7494: LD="${LD-ld} -m elf32ppclinux"
7495: ;;
7496: s390x-*linux*)
7497: LD="${LD-ld} -m elf_s390"
7498: ;;
7499: sparc64-*linux*)
7500: LD="${LD-ld} -m elf32_sparc"
7501: ;;
7502: esac
7503: ;;
7504: *64-bit*)
7505: case $host in
7506: x86_64-*kfreebsd*-gnu)
7507: LD="${LD-ld} -m elf_x86_64_fbsd"
7508: ;;
7509: x86_64-*linux*)
7510: LD="${LD-ld} -m elf_x86_64"
7511: ;;
7512: ppc*-*linux*|powerpc*-*linux*)
7513: LD="${LD-ld} -m elf64ppc"
7514: ;;
7515: s390*-*linux*|s390*-*tpf*)
7516: LD="${LD-ld} -m elf64_s390"
7517: ;;
7518: sparc*-*linux*)
7519: LD="${LD-ld} -m elf64_sparc"
7520: ;;
7521: esac
7522: ;;
7523: esac
7524: fi
7525: rm -rf conftest*
7526: ;;
7527:
7528: *-*-sco3.2v5*)
7529: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7530: SAVE_CFLAGS="$CFLAGS"
7531: CFLAGS="$CFLAGS -belf"
1.150 moko 7532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7533: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7534: if ${lt_cv_cc_needs_belf+:} false; then :
7535: $as_echo_n "(cached) " >&6
1.128 moko 7536: else
7537: ac_ext=c
7538: ac_cpp='$CPP $CPPFLAGS'
7539: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542:
1.150 moko 7543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7544: /* end confdefs.h. */
7545:
7546: int
7547: main ()
7548: {
7549:
7550: ;
7551: return 0;
7552: }
7553: _ACEOF
1.150 moko 7554: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 7555: lt_cv_cc_needs_belf=yes
7556: else
1.150 moko 7557: lt_cv_cc_needs_belf=no
1.128 moko 7558: fi
1.150 moko 7559: rm -f core conftest.err conftest.$ac_objext \
7560: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7561: ac_ext=c
7562: ac_cpp='$CPP $CPPFLAGS'
7563: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7564: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7565: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7566:
7567: fi
1.150 moko 7568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7569: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.128 moko 7570: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7571: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7572: CFLAGS="$SAVE_CFLAGS"
7573: fi
7574: ;;
7575: *-*solaris*)
7576: # Find out which ABI we are using.
7577: echo 'int i;' > conftest.$ac_ext
1.150 moko 7578: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7579: (eval $ac_compile) 2>&5
7580: ac_status=$?
1.150 moko 7581: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7582: test $ac_status = 0; }; then
1.128 moko 7583: case `/usr/bin/file conftest.o` in
7584: *64-bit*)
7585: case $lt_cv_prog_gnu_ld in
7586: yes*)
7587: case $host in
7588: i?86-*-solaris*)
7589: LD="${LD-ld} -m elf_x86_64"
7590: ;;
7591: sparc*-*-solaris*)
7592: LD="${LD-ld} -m elf64_sparc"
7593: ;;
7594: esac
7595: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7596: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7597: LD="${LD-ld}_sol2"
7598: fi
7599: ;;
7600: *)
7601: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7602: LD="${LD-ld} -64"
7603: fi
7604: ;;
7605: esac
7606: ;;
7607: esac
7608: fi
7609: rm -rf conftest*
7610: ;;
7611: esac
7612:
7613: need_locks="$enable_libtool_lock"
7614:
7615: if test -n "$ac_tool_prefix"; then
7616: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7617: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.150 moko 7618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619: $as_echo_n "checking for $ac_word... " >&6; }
7620: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7621: $as_echo_n "(cached) " >&6
1.128 moko 7622: else
7623: if test -n "$MANIFEST_TOOL"; then
7624: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7625: else
7626: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627: for as_dir in $PATH
7628: do
7629: IFS=$as_save_IFS
7630: test -z "$as_dir" && as_dir=.
1.150 moko 7631: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7632: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7633: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.150 moko 7634: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7635: break 2
7636: fi
7637: done
1.150 moko 7638: done
7639: IFS=$as_save_IFS
1.128 moko 7640:
7641: fi
7642: fi
7643: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7644: if test -n "$MANIFEST_TOOL"; then
1.150 moko 7645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7646: $as_echo "$MANIFEST_TOOL" >&6; }
1.128 moko 7647: else
1.150 moko 7648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649: $as_echo "no" >&6; }
1.128 moko 7650: fi
7651:
1.150 moko 7652:
1.128 moko 7653: fi
7654: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7655: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7656: # Extract the first word of "mt", so it can be a program name with args.
7657: set dummy mt; ac_word=$2
1.150 moko 7658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659: $as_echo_n "checking for $ac_word... " >&6; }
7660: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7661: $as_echo_n "(cached) " >&6
1.128 moko 7662: else
7663: if test -n "$ac_ct_MANIFEST_TOOL"; then
7664: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7665: else
7666: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667: for as_dir in $PATH
7668: do
7669: IFS=$as_save_IFS
7670: test -z "$as_dir" && as_dir=.
1.150 moko 7671: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7672: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7673: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.150 moko 7674: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7675: break 2
7676: fi
7677: done
1.150 moko 7678: done
7679: IFS=$as_save_IFS
1.128 moko 7680:
7681: fi
7682: fi
7683: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7684: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.150 moko 7685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7686: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 7687: else
1.150 moko 7688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689: $as_echo "no" >&6; }
1.128 moko 7690: fi
7691:
1.150 moko 7692: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7693: MANIFEST_TOOL=":"
7694: else
7695: case $cross_compiling:$ac_tool_warned in
7696: yes:)
7697: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699: ac_tool_warned=yes ;;
7700: esac
7701: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7702: fi
1.128 moko 7703: else
7704: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7705: fi
7706:
7707: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.150 moko 7708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7709: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7710: if ${lt_cv_path_mainfest_tool+:} false; then :
7711: $as_echo_n "(cached) " >&6
1.128 moko 7712: else
7713: lt_cv_path_mainfest_tool=no
7714: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7715: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7716: cat conftest.err >&5
7717: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7718: lt_cv_path_mainfest_tool=yes
7719: fi
7720: rm -f conftest*
7721: fi
1.150 moko 7722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7723: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.128 moko 7724: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7725: MANIFEST_TOOL=:
7726: fi
7727:
7728:
7729:
7730:
7731:
7732:
7733: case $host_os in
7734: rhapsody* | darwin*)
7735: if test -n "$ac_tool_prefix"; then
7736: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7737: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.150 moko 7738: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739: $as_echo_n "checking for $ac_word... " >&6; }
7740: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7741: $as_echo_n "(cached) " >&6
1.128 moko 7742: else
7743: if test -n "$DSYMUTIL"; then
7744: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7745: else
7746: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747: for as_dir in $PATH
7748: do
7749: IFS=$as_save_IFS
7750: test -z "$as_dir" && as_dir=.
1.150 moko 7751: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7752: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7753: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.150 moko 7754: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7755: break 2
7756: fi
7757: done
1.150 moko 7758: done
7759: IFS=$as_save_IFS
1.128 moko 7760:
7761: fi
7762: fi
7763: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7764: if test -n "$DSYMUTIL"; then
1.150 moko 7765: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7766: $as_echo "$DSYMUTIL" >&6; }
1.128 moko 7767: else
1.150 moko 7768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769: $as_echo "no" >&6; }
1.128 moko 7770: fi
7771:
1.150 moko 7772:
1.128 moko 7773: fi
7774: if test -z "$ac_cv_prog_DSYMUTIL"; then
7775: ac_ct_DSYMUTIL=$DSYMUTIL
7776: # Extract the first word of "dsymutil", so it can be a program name with args.
7777: set dummy dsymutil; ac_word=$2
1.150 moko 7778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779: $as_echo_n "checking for $ac_word... " >&6; }
7780: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7781: $as_echo_n "(cached) " >&6
1.128 moko 7782: else
7783: if test -n "$ac_ct_DSYMUTIL"; then
7784: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7785: else
7786: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787: for as_dir in $PATH
7788: do
7789: IFS=$as_save_IFS
7790: test -z "$as_dir" && as_dir=.
1.150 moko 7791: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7792: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7793: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.150 moko 7794: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7795: break 2
7796: fi
7797: done
1.150 moko 7798: done
7799: IFS=$as_save_IFS
1.128 moko 7800:
7801: fi
7802: fi
7803: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7804: if test -n "$ac_ct_DSYMUTIL"; then
1.150 moko 7805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7806: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 7807: else
1.150 moko 7808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809: $as_echo "no" >&6; }
1.128 moko 7810: fi
7811:
1.150 moko 7812: if test "x$ac_ct_DSYMUTIL" = x; then
7813: DSYMUTIL=":"
7814: else
7815: case $cross_compiling:$ac_tool_warned in
7816: yes:)
7817: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7818: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7819: ac_tool_warned=yes ;;
7820: esac
7821: DSYMUTIL=$ac_ct_DSYMUTIL
7822: fi
1.128 moko 7823: else
7824: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7825: fi
7826:
7827: if test -n "$ac_tool_prefix"; then
7828: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7829: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.150 moko 7830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831: $as_echo_n "checking for $ac_word... " >&6; }
7832: if ${ac_cv_prog_NMEDIT+:} false; then :
7833: $as_echo_n "(cached) " >&6
1.128 moko 7834: else
7835: if test -n "$NMEDIT"; then
7836: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7837: else
7838: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839: for as_dir in $PATH
7840: do
7841: IFS=$as_save_IFS
7842: test -z "$as_dir" && as_dir=.
1.150 moko 7843: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7844: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7845: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.150 moko 7846: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7847: break 2
7848: fi
7849: done
1.150 moko 7850: done
7851: IFS=$as_save_IFS
1.128 moko 7852:
7853: fi
7854: fi
7855: NMEDIT=$ac_cv_prog_NMEDIT
7856: if test -n "$NMEDIT"; then
1.150 moko 7857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7858: $as_echo "$NMEDIT" >&6; }
1.128 moko 7859: else
1.150 moko 7860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861: $as_echo "no" >&6; }
1.128 moko 7862: fi
7863:
1.150 moko 7864:
1.128 moko 7865: fi
7866: if test -z "$ac_cv_prog_NMEDIT"; then
7867: ac_ct_NMEDIT=$NMEDIT
7868: # Extract the first word of "nmedit", so it can be a program name with args.
7869: set dummy nmedit; ac_word=$2
1.150 moko 7870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871: $as_echo_n "checking for $ac_word... " >&6; }
7872: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7873: $as_echo_n "(cached) " >&6
1.128 moko 7874: else
7875: if test -n "$ac_ct_NMEDIT"; then
7876: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7877: else
7878: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879: for as_dir in $PATH
7880: do
7881: IFS=$as_save_IFS
7882: test -z "$as_dir" && as_dir=.
1.150 moko 7883: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7884: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7885: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.150 moko 7886: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7887: break 2
7888: fi
7889: done
1.150 moko 7890: done
7891: IFS=$as_save_IFS
1.128 moko 7892:
7893: fi
7894: fi
7895: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7896: if test -n "$ac_ct_NMEDIT"; then
1.150 moko 7897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7898: $as_echo "$ac_ct_NMEDIT" >&6; }
1.128 moko 7899: else
1.150 moko 7900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901: $as_echo "no" >&6; }
1.128 moko 7902: fi
7903:
1.150 moko 7904: if test "x$ac_ct_NMEDIT" = x; then
7905: NMEDIT=":"
7906: else
7907: case $cross_compiling:$ac_tool_warned in
7908: yes:)
7909: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7910: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7911: ac_tool_warned=yes ;;
7912: esac
7913: NMEDIT=$ac_ct_NMEDIT
7914: fi
1.128 moko 7915: else
7916: NMEDIT="$ac_cv_prog_NMEDIT"
7917: fi
7918:
7919: if test -n "$ac_tool_prefix"; then
7920: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7921: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.150 moko 7922: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923: $as_echo_n "checking for $ac_word... " >&6; }
7924: if ${ac_cv_prog_LIPO+:} false; then :
7925: $as_echo_n "(cached) " >&6
1.128 moko 7926: else
7927: if test -n "$LIPO"; then
7928: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7929: else
7930: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931: for as_dir in $PATH
7932: do
7933: IFS=$as_save_IFS
7934: test -z "$as_dir" && as_dir=.
1.150 moko 7935: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7936: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7937: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.150 moko 7938: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7939: break 2
7940: fi
7941: done
1.150 moko 7942: done
7943: IFS=$as_save_IFS
1.128 moko 7944:
7945: fi
7946: fi
7947: LIPO=$ac_cv_prog_LIPO
7948: if test -n "$LIPO"; then
1.150 moko 7949: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7950: $as_echo "$LIPO" >&6; }
1.128 moko 7951: else
1.150 moko 7952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953: $as_echo "no" >&6; }
1.128 moko 7954: fi
7955:
1.150 moko 7956:
1.128 moko 7957: fi
7958: if test -z "$ac_cv_prog_LIPO"; then
7959: ac_ct_LIPO=$LIPO
7960: # Extract the first word of "lipo", so it can be a program name with args.
7961: set dummy lipo; ac_word=$2
1.150 moko 7962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963: $as_echo_n "checking for $ac_word... " >&6; }
7964: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7965: $as_echo_n "(cached) " >&6
1.128 moko 7966: else
7967: if test -n "$ac_ct_LIPO"; then
7968: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7969: else
7970: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971: for as_dir in $PATH
7972: do
7973: IFS=$as_save_IFS
7974: test -z "$as_dir" && as_dir=.
1.150 moko 7975: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7976: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7977: ac_cv_prog_ac_ct_LIPO="lipo"
1.150 moko 7978: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7979: break 2
7980: fi
7981: done
1.150 moko 7982: done
7983: IFS=$as_save_IFS
1.128 moko 7984:
7985: fi
7986: fi
7987: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7988: if test -n "$ac_ct_LIPO"; then
1.150 moko 7989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7990: $as_echo "$ac_ct_LIPO" >&6; }
1.128 moko 7991: else
1.150 moko 7992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993: $as_echo "no" >&6; }
1.128 moko 7994: fi
7995:
1.150 moko 7996: if test "x$ac_ct_LIPO" = x; then
7997: LIPO=":"
7998: else
7999: case $cross_compiling:$ac_tool_warned in
8000: yes:)
8001: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8002: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8003: ac_tool_warned=yes ;;
8004: esac
8005: LIPO=$ac_ct_LIPO
8006: fi
1.128 moko 8007: else
8008: LIPO="$ac_cv_prog_LIPO"
8009: fi
8010:
8011: if test -n "$ac_tool_prefix"; then
8012: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8013: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.150 moko 8014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015: $as_echo_n "checking for $ac_word... " >&6; }
8016: if ${ac_cv_prog_OTOOL+:} false; then :
8017: $as_echo_n "(cached) " >&6
1.128 moko 8018: else
8019: if test -n "$OTOOL"; then
8020: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8021: else
8022: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023: for as_dir in $PATH
8024: do
8025: IFS=$as_save_IFS
8026: test -z "$as_dir" && as_dir=.
1.150 moko 8027: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8028: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8029: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.150 moko 8030: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8031: break 2
8032: fi
8033: done
1.150 moko 8034: done
8035: IFS=$as_save_IFS
1.128 moko 8036:
8037: fi
8038: fi
8039: OTOOL=$ac_cv_prog_OTOOL
8040: if test -n "$OTOOL"; then
1.150 moko 8041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8042: $as_echo "$OTOOL" >&6; }
1.128 moko 8043: else
1.150 moko 8044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045: $as_echo "no" >&6; }
1.128 moko 8046: fi
8047:
1.150 moko 8048:
1.128 moko 8049: fi
8050: if test -z "$ac_cv_prog_OTOOL"; then
8051: ac_ct_OTOOL=$OTOOL
8052: # Extract the first word of "otool", so it can be a program name with args.
8053: set dummy otool; ac_word=$2
1.150 moko 8054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055: $as_echo_n "checking for $ac_word... " >&6; }
8056: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8057: $as_echo_n "(cached) " >&6
1.128 moko 8058: else
8059: if test -n "$ac_ct_OTOOL"; then
8060: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8061: else
8062: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063: for as_dir in $PATH
8064: do
8065: IFS=$as_save_IFS
8066: test -z "$as_dir" && as_dir=.
1.150 moko 8067: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8068: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8069: ac_cv_prog_ac_ct_OTOOL="otool"
1.150 moko 8070: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8071: break 2
8072: fi
8073: done
1.150 moko 8074: done
8075: IFS=$as_save_IFS
1.128 moko 8076:
8077: fi
8078: fi
8079: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8080: if test -n "$ac_ct_OTOOL"; then
1.150 moko 8081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8082: $as_echo "$ac_ct_OTOOL" >&6; }
1.128 moko 8083: else
1.150 moko 8084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085: $as_echo "no" >&6; }
1.128 moko 8086: fi
8087:
1.150 moko 8088: if test "x$ac_ct_OTOOL" = x; then
8089: OTOOL=":"
8090: else
8091: case $cross_compiling:$ac_tool_warned in
8092: yes:)
8093: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8094: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8095: ac_tool_warned=yes ;;
8096: esac
8097: OTOOL=$ac_ct_OTOOL
8098: fi
1.128 moko 8099: else
8100: OTOOL="$ac_cv_prog_OTOOL"
8101: fi
8102:
8103: if test -n "$ac_tool_prefix"; then
8104: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8105: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.150 moko 8106: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107: $as_echo_n "checking for $ac_word... " >&6; }
8108: if ${ac_cv_prog_OTOOL64+:} false; then :
8109: $as_echo_n "(cached) " >&6
1.128 moko 8110: else
8111: if test -n "$OTOOL64"; then
8112: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8113: else
8114: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115: for as_dir in $PATH
8116: do
8117: IFS=$as_save_IFS
8118: test -z "$as_dir" && as_dir=.
1.150 moko 8119: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8120: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8121: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.150 moko 8122: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8123: break 2
8124: fi
8125: done
1.150 moko 8126: done
8127: IFS=$as_save_IFS
1.128 moko 8128:
8129: fi
8130: fi
8131: OTOOL64=$ac_cv_prog_OTOOL64
8132: if test -n "$OTOOL64"; then
1.150 moko 8133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8134: $as_echo "$OTOOL64" >&6; }
1.128 moko 8135: else
1.150 moko 8136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137: $as_echo "no" >&6; }
1.128 moko 8138: fi
8139:
1.150 moko 8140:
1.128 moko 8141: fi
8142: if test -z "$ac_cv_prog_OTOOL64"; then
8143: ac_ct_OTOOL64=$OTOOL64
8144: # Extract the first word of "otool64", so it can be a program name with args.
8145: set dummy otool64; ac_word=$2
1.150 moko 8146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147: $as_echo_n "checking for $ac_word... " >&6; }
8148: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8149: $as_echo_n "(cached) " >&6
1.128 moko 8150: else
8151: if test -n "$ac_ct_OTOOL64"; then
8152: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8153: else
8154: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155: for as_dir in $PATH
8156: do
8157: IFS=$as_save_IFS
8158: test -z "$as_dir" && as_dir=.
1.150 moko 8159: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8160: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8161: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.150 moko 8162: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8163: break 2
8164: fi
8165: done
1.150 moko 8166: done
8167: IFS=$as_save_IFS
1.128 moko 8168:
8169: fi
8170: fi
8171: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8172: if test -n "$ac_ct_OTOOL64"; then
1.150 moko 8173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8174: $as_echo "$ac_ct_OTOOL64" >&6; }
1.128 moko 8175: else
1.150 moko 8176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177: $as_echo "no" >&6; }
1.128 moko 8178: fi
8179:
1.150 moko 8180: if test "x$ac_ct_OTOOL64" = x; then
8181: OTOOL64=":"
8182: else
8183: case $cross_compiling:$ac_tool_warned in
8184: yes:)
8185: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8186: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8187: ac_tool_warned=yes ;;
8188: esac
8189: OTOOL64=$ac_ct_OTOOL64
8190: fi
1.128 moko 8191: else
8192: OTOOL64="$ac_cv_prog_OTOOL64"
8193: fi
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:
8219:
8220:
1.150 moko 8221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8222: $as_echo_n "checking for -single_module linker flag... " >&6; }
8223: if ${lt_cv_apple_cc_single_mod+:} false; then :
8224: $as_echo_n "(cached) " >&6
1.128 moko 8225: else
8226: lt_cv_apple_cc_single_mod=no
8227: if test -z "${LT_MULTI_MODULE}"; then
8228: # By default we will add the -single_module flag. You can override
8229: # by either setting the environment variable LT_MULTI_MODULE
8230: # non-empty at configure time, or by adding -multi_module to the
8231: # link flags.
8232: rm -rf libconftest.dylib*
8233: echo "int foo(void){return 1;}" > conftest.c
8234: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8235: -dynamiclib -Wl,-single_module conftest.c" >&5
8236: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8237: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8238: _lt_result=$?
8239: # If there is a non-empty error log, and "single_module"
8240: # appears in it, assume the flag caused a linker warning
8241: if test -s conftest.err && $GREP single_module conftest.err; then
8242: cat conftest.err >&5
8243: # Otherwise, if the output was created with a 0 exit code from
8244: # the compiler, it worked.
8245: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8246: lt_cv_apple_cc_single_mod=yes
8247: else
8248: cat conftest.err >&5
8249: fi
8250: rm -rf libconftest.dylib*
8251: rm -f conftest.*
8252: fi
8253: fi
1.150 moko 8254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8255: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.128 moko 8256:
1.150 moko 8257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8258: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8259: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8260: $as_echo_n "(cached) " >&6
1.128 moko 8261: else
8262: lt_cv_ld_exported_symbols_list=no
8263: save_LDFLAGS=$LDFLAGS
8264: echo "_main" > conftest.sym
8265: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 8266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8267: /* end confdefs.h. */
8268:
8269: int
8270: main ()
8271: {
8272:
8273: ;
8274: return 0;
8275: }
8276: _ACEOF
1.150 moko 8277: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 8278: lt_cv_ld_exported_symbols_list=yes
8279: else
1.150 moko 8280: lt_cv_ld_exported_symbols_list=no
1.128 moko 8281: fi
1.150 moko 8282: rm -f core conftest.err conftest.$ac_objext \
8283: conftest$ac_exeext conftest.$ac_ext
1.128 moko 8284: LDFLAGS="$save_LDFLAGS"
8285:
8286: fi
1.150 moko 8287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8288: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 8289:
1.150 moko 8290: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8291: $as_echo_n "checking for -force_load linker flag... " >&6; }
8292: if ${lt_cv_ld_force_load+:} false; then :
8293: $as_echo_n "(cached) " >&6
1.128 moko 8294: else
8295: lt_cv_ld_force_load=no
8296: cat > conftest.c << _LT_EOF
8297: int forced_loaded() { return 2;}
8298: _LT_EOF
8299: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8300: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8301: echo "$AR cru libconftest.a conftest.o" >&5
8302: $AR cru libconftest.a conftest.o 2>&5
8303: echo "$RANLIB libconftest.a" >&5
8304: $RANLIB libconftest.a 2>&5
8305: cat > conftest.c << _LT_EOF
8306: int main() { return 0;}
8307: _LT_EOF
8308: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8309: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8310: _lt_result=$?
8311: if test -s conftest.err && $GREP force_load conftest.err; then
8312: cat conftest.err >&5
8313: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8314: lt_cv_ld_force_load=yes
8315: else
8316: cat conftest.err >&5
8317: fi
8318: rm -f conftest.err libconftest.a conftest conftest.c
8319: rm -rf conftest.dSYM
8320:
8321: fi
1.150 moko 8322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8323: $as_echo "$lt_cv_ld_force_load" >&6; }
1.128 moko 8324: case $host_os in
8325: rhapsody* | darwin1.[012])
8326: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8327: darwin1.*)
8328: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8329: darwin*) # darwin 5.x on
8330: # if running on 10.5 or later, the deployment target defaults
8331: # to the OS version, if on x86, and 10.4, the deployment
8332: # target defaults to 10.4. Don't you love it?
8333: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8334: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8335: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8336: 10.[012]*)
8337: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8338: 10.*)
8339: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8340: esac
8341: ;;
8342: esac
8343: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8344: _lt_dar_single_mod='$single_module'
8345: fi
8346: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8347: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8348: else
8349: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8350: fi
8351: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8352: _lt_dsymutil='~$DSYMUTIL $lib || :'
8353: else
8354: _lt_dsymutil=
8355: fi
8356: ;;
8357: esac
8358:
8359: ac_ext=c
8360: ac_cpp='$CPP $CPPFLAGS'
8361: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8362: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8363: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.150 moko 8364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8365: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.128 moko 8366: # On Suns, sometimes $CPP names a directory.
8367: if test -n "$CPP" && test -d "$CPP"; then
8368: CPP=
8369: fi
8370: if test -z "$CPP"; then
1.150 moko 8371: if ${ac_cv_prog_CPP+:} false; then :
8372: $as_echo_n "(cached) " >&6
1.128 moko 8373: else
8374: # Double quotes because CPP needs to be expanded
8375: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8376: do
8377: ac_preproc_ok=false
8378: for ac_c_preproc_warn_flag in '' yes
8379: do
8380: # Use a header file that comes with gcc, so configuring glibc
8381: # with a fresh cross-compiler works.
8382: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8383: # <limits.h> exists even on freestanding compilers.
8384: # On the NeXT, cc -E runs the code through the compiler's parser,
8385: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8386: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8387: /* end confdefs.h. */
8388: #ifdef __STDC__
8389: # include <limits.h>
8390: #else
8391: # include <assert.h>
8392: #endif
8393: Syntax error
8394: _ACEOF
1.150 moko 8395: if ac_fn_c_try_cpp "$LINENO"; then :
8396:
1.128 moko 8397: else
8398: # Broken: fails on valid input.
8399: continue
8400: fi
1.150 moko 8401: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8402:
1.150 moko 8403: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8404: # can be detected and how.
1.150 moko 8405: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8406: /* end confdefs.h. */
8407: #include <ac_nonexistent.h>
8408: _ACEOF
1.150 moko 8409: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8410: # Broken: success on invalid input.
8411: continue
8412: else
8413: # Passes both tests.
8414: ac_preproc_ok=:
8415: break
8416: fi
1.150 moko 8417: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8418:
8419: done
8420: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8421: rm -f conftest.i conftest.err conftest.$ac_ext
8422: if $ac_preproc_ok; then :
1.128 moko 8423: break
8424: fi
8425:
8426: done
8427: ac_cv_prog_CPP=$CPP
8428:
8429: fi
8430: CPP=$ac_cv_prog_CPP
8431: else
8432: ac_cv_prog_CPP=$CPP
8433: fi
1.150 moko 8434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8435: $as_echo "$CPP" >&6; }
1.128 moko 8436: ac_preproc_ok=false
8437: for ac_c_preproc_warn_flag in '' yes
8438: do
8439: # Use a header file that comes with gcc, so configuring glibc
8440: # with a fresh cross-compiler works.
8441: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8442: # <limits.h> exists even on freestanding compilers.
8443: # On the NeXT, cc -E runs the code through the compiler's parser,
8444: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8445: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8446: /* end confdefs.h. */
8447: #ifdef __STDC__
8448: # include <limits.h>
8449: #else
8450: # include <assert.h>
8451: #endif
8452: Syntax error
8453: _ACEOF
1.150 moko 8454: if ac_fn_c_try_cpp "$LINENO"; then :
8455:
1.128 moko 8456: else
8457: # Broken: fails on valid input.
8458: continue
8459: fi
1.150 moko 8460: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8461:
1.150 moko 8462: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8463: # can be detected and how.
1.150 moko 8464: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8465: /* end confdefs.h. */
8466: #include <ac_nonexistent.h>
8467: _ACEOF
1.150 moko 8468: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8469: # Broken: success on invalid input.
8470: continue
8471: else
8472: # Passes both tests.
8473: ac_preproc_ok=:
8474: break
8475: fi
1.150 moko 8476: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8477:
8478: done
8479: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8480: rm -f conftest.i conftest.err conftest.$ac_ext
8481: if $ac_preproc_ok; then :
8482:
1.128 moko 8483: else
1.150 moko 8484: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8485: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8486: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8487: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 8488: fi
8489:
8490: ac_ext=c
8491: ac_cpp='$CPP $CPPFLAGS'
8492: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8493: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8494: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8495:
8496:
1.150 moko 8497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8498: $as_echo_n "checking for ANSI C header files... " >&6; }
8499: if ${ac_cv_header_stdc+:} false; then :
8500: $as_echo_n "(cached) " >&6
1.128 moko 8501: else
1.150 moko 8502: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8503: /* end confdefs.h. */
8504: #include <stdlib.h>
8505: #include <stdarg.h>
8506: #include <string.h>
8507: #include <float.h>
8508:
8509: int
8510: main ()
8511: {
8512:
8513: ;
8514: return 0;
8515: }
8516: _ACEOF
1.150 moko 8517: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 8518: ac_cv_header_stdc=yes
8519: else
1.150 moko 8520: ac_cv_header_stdc=no
1.128 moko 8521: fi
1.150 moko 8522: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 8523:
8524: if test $ac_cv_header_stdc = yes; then
8525: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.150 moko 8526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8527: /* end confdefs.h. */
8528: #include <string.h>
8529:
8530: _ACEOF
8531: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8532: $EGREP "memchr" >/dev/null 2>&1; then :
8533:
1.128 moko 8534: else
8535: ac_cv_header_stdc=no
8536: fi
8537: rm -f conftest*
8538:
8539: fi
8540:
8541: if test $ac_cv_header_stdc = yes; then
8542: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.150 moko 8543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8544: /* end confdefs.h. */
8545: #include <stdlib.h>
8546:
8547: _ACEOF
8548: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8549: $EGREP "free" >/dev/null 2>&1; then :
8550:
1.128 moko 8551: else
8552: ac_cv_header_stdc=no
8553: fi
8554: rm -f conftest*
8555:
8556: fi
8557:
8558: if test $ac_cv_header_stdc = yes; then
8559: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.150 moko 8560: if test "$cross_compiling" = yes; then :
1.128 moko 8561: :
8562: else
1.150 moko 8563: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8564: /* end confdefs.h. */
8565: #include <ctype.h>
1.150 moko 8566: #include <stdlib.h>
1.128 moko 8567: #if ((' ' & 0x0FF) == 0x020)
8568: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8569: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8570: #else
8571: # define ISLOWER(c) \
8572: (('a' <= (c) && (c) <= 'i') \
8573: || ('j' <= (c) && (c) <= 'r') \
8574: || ('s' <= (c) && (c) <= 'z'))
8575: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8576: #endif
8577:
8578: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8579: int
8580: main ()
8581: {
8582: int i;
8583: for (i = 0; i < 256; i++)
8584: if (XOR (islower (i), ISLOWER (i))
8585: || toupper (i) != TOUPPER (i))
1.150 moko 8586: return 2;
8587: return 0;
1.128 moko 8588: }
8589: _ACEOF
1.150 moko 8590: if ac_fn_c_try_run "$LINENO"; then :
8591:
1.128 moko 8592: else
1.150 moko 8593: ac_cv_header_stdc=no
1.128 moko 8594: fi
1.150 moko 8595: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8596: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 8597: fi
1.150 moko 8598:
1.128 moko 8599: fi
8600: fi
1.150 moko 8601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8602: $as_echo "$ac_cv_header_stdc" >&6; }
1.128 moko 8603: if test $ac_cv_header_stdc = yes; then
8604:
1.150 moko 8605: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 8606:
8607: fi
8608:
8609: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.150 moko 8610: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8611: inttypes.h stdint.h unistd.h
8612: do :
8613: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8614: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8615: "
8616: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8617: cat >>confdefs.h <<_ACEOF
8618: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8619: _ACEOF
1.128 moko 8620:
1.150 moko 8621: fi
1.128 moko 8622:
1.150 moko 8623: done
1.128 moko 8624:
8625:
1.150 moko 8626: for ac_header in dlfcn.h
8627: do :
8628: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8629: "
8630: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8631: cat >>confdefs.h <<_ACEOF
8632: #define HAVE_DLFCN_H 1
8633: _ACEOF
1.128 moko 8634:
1.150 moko 8635: fi
1.128 moko 8636:
1.150 moko 8637: done
1.128 moko 8638:
8639:
8640:
8641:
1.150 moko 8642: func_stripname_cnf ()
8643: {
8644: case ${2} in
8645: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8646: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8647: esac
8648: } # func_stripname_cnf
1.128 moko 8649:
8650:
8651:
8652:
8653:
8654: # Set options
8655: enable_dlopen=yes
8656: enable_win32_dll=yes
8657:
8658: case $host in
8659: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8660: if test -n "$ac_tool_prefix"; then
8661: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8662: set dummy ${ac_tool_prefix}as; ac_word=$2
1.150 moko 8663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664: $as_echo_n "checking for $ac_word... " >&6; }
8665: if ${ac_cv_prog_AS+:} false; then :
8666: $as_echo_n "(cached) " >&6
1.128 moko 8667: else
8668: if test -n "$AS"; then
8669: ac_cv_prog_AS="$AS" # Let the user override the test.
8670: else
8671: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672: for as_dir in $PATH
8673: do
8674: IFS=$as_save_IFS
8675: test -z "$as_dir" && as_dir=.
1.150 moko 8676: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8677: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8678: ac_cv_prog_AS="${ac_tool_prefix}as"
1.150 moko 8679: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8680: break 2
8681: fi
8682: done
1.150 moko 8683: done
8684: IFS=$as_save_IFS
1.128 moko 8685:
8686: fi
8687: fi
8688: AS=$ac_cv_prog_AS
8689: if test -n "$AS"; then
1.150 moko 8690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8691: $as_echo "$AS" >&6; }
1.128 moko 8692: else
1.150 moko 8693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694: $as_echo "no" >&6; }
1.128 moko 8695: fi
8696:
1.150 moko 8697:
1.128 moko 8698: fi
8699: if test -z "$ac_cv_prog_AS"; then
8700: ac_ct_AS=$AS
8701: # Extract the first word of "as", so it can be a program name with args.
8702: set dummy as; ac_word=$2
1.150 moko 8703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704: $as_echo_n "checking for $ac_word... " >&6; }
8705: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8706: $as_echo_n "(cached) " >&6
1.128 moko 8707: else
8708: if test -n "$ac_ct_AS"; then
8709: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8710: else
8711: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712: for as_dir in $PATH
8713: do
8714: IFS=$as_save_IFS
8715: test -z "$as_dir" && as_dir=.
1.150 moko 8716: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8717: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8718: ac_cv_prog_ac_ct_AS="as"
1.150 moko 8719: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8720: break 2
8721: fi
8722: done
1.150 moko 8723: done
8724: IFS=$as_save_IFS
1.128 moko 8725:
8726: fi
8727: fi
8728: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8729: if test -n "$ac_ct_AS"; then
1.150 moko 8730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8731: $as_echo "$ac_ct_AS" >&6; }
1.128 moko 8732: else
1.150 moko 8733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734: $as_echo "no" >&6; }
1.128 moko 8735: fi
8736:
1.150 moko 8737: if test "x$ac_ct_AS" = x; then
8738: AS="false"
8739: else
8740: case $cross_compiling:$ac_tool_warned in
8741: yes:)
8742: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8743: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8744: ac_tool_warned=yes ;;
8745: esac
8746: AS=$ac_ct_AS
8747: fi
1.128 moko 8748: else
8749: AS="$ac_cv_prog_AS"
8750: fi
8751:
8752: if test -n "$ac_tool_prefix"; then
8753: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8754: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 8755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756: $as_echo_n "checking for $ac_word... " >&6; }
8757: if ${ac_cv_prog_DLLTOOL+:} false; then :
8758: $as_echo_n "(cached) " >&6
1.128 moko 8759: else
8760: if test -n "$DLLTOOL"; then
8761: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8762: else
8763: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764: for as_dir in $PATH
8765: do
8766: IFS=$as_save_IFS
8767: test -z "$as_dir" && as_dir=.
1.150 moko 8768: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8769: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8770: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 8771: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8772: break 2
8773: fi
8774: done
1.150 moko 8775: done
8776: IFS=$as_save_IFS
1.128 moko 8777:
8778: fi
8779: fi
8780: DLLTOOL=$ac_cv_prog_DLLTOOL
8781: if test -n "$DLLTOOL"; then
1.150 moko 8782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8783: $as_echo "$DLLTOOL" >&6; }
1.128 moko 8784: else
1.150 moko 8785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786: $as_echo "no" >&6; }
1.128 moko 8787: fi
8788:
1.150 moko 8789:
1.128 moko 8790: fi
8791: if test -z "$ac_cv_prog_DLLTOOL"; then
8792: ac_ct_DLLTOOL=$DLLTOOL
8793: # Extract the first word of "dlltool", so it can be a program name with args.
8794: set dummy dlltool; ac_word=$2
1.150 moko 8795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796: $as_echo_n "checking for $ac_word... " >&6; }
8797: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8798: $as_echo_n "(cached) " >&6
1.128 moko 8799: else
8800: if test -n "$ac_ct_DLLTOOL"; then
8801: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8802: else
8803: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804: for as_dir in $PATH
8805: do
8806: IFS=$as_save_IFS
8807: test -z "$as_dir" && as_dir=.
1.150 moko 8808: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8809: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8810: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 8811: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8812: break 2
8813: fi
8814: done
1.150 moko 8815: done
8816: IFS=$as_save_IFS
1.128 moko 8817:
8818: fi
8819: fi
8820: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8821: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 8822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8823: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 8824: else
1.150 moko 8825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826: $as_echo "no" >&6; }
1.128 moko 8827: fi
8828:
1.150 moko 8829: if test "x$ac_ct_DLLTOOL" = x; then
8830: DLLTOOL="false"
8831: else
8832: case $cross_compiling:$ac_tool_warned in
8833: yes:)
8834: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8835: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8836: ac_tool_warned=yes ;;
8837: esac
8838: DLLTOOL=$ac_ct_DLLTOOL
8839: fi
1.128 moko 8840: else
8841: DLLTOOL="$ac_cv_prog_DLLTOOL"
8842: fi
8843:
8844: if test -n "$ac_tool_prefix"; then
8845: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8846: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 8847: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848: $as_echo_n "checking for $ac_word... " >&6; }
8849: if ${ac_cv_prog_OBJDUMP+:} false; then :
8850: $as_echo_n "(cached) " >&6
1.128 moko 8851: else
8852: if test -n "$OBJDUMP"; then
8853: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8854: else
8855: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856: for as_dir in $PATH
8857: do
8858: IFS=$as_save_IFS
8859: test -z "$as_dir" && as_dir=.
1.150 moko 8860: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8861: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8862: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 8863: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8864: break 2
8865: fi
8866: done
1.150 moko 8867: done
8868: IFS=$as_save_IFS
1.128 moko 8869:
8870: fi
8871: fi
8872: OBJDUMP=$ac_cv_prog_OBJDUMP
8873: if test -n "$OBJDUMP"; then
1.150 moko 8874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8875: $as_echo "$OBJDUMP" >&6; }
1.128 moko 8876: else
1.150 moko 8877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878: $as_echo "no" >&6; }
1.128 moko 8879: fi
8880:
1.150 moko 8881:
1.128 moko 8882: fi
8883: if test -z "$ac_cv_prog_OBJDUMP"; then
8884: ac_ct_OBJDUMP=$OBJDUMP
8885: # Extract the first word of "objdump", so it can be a program name with args.
8886: set dummy objdump; ac_word=$2
1.150 moko 8887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888: $as_echo_n "checking for $ac_word... " >&6; }
8889: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8890: $as_echo_n "(cached) " >&6
1.128 moko 8891: else
8892: if test -n "$ac_ct_OBJDUMP"; then
8893: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8894: else
8895: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896: for as_dir in $PATH
8897: do
8898: IFS=$as_save_IFS
8899: test -z "$as_dir" && as_dir=.
1.150 moko 8900: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8901: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8902: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 8903: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8904: break 2
8905: fi
8906: done
1.150 moko 8907: done
8908: IFS=$as_save_IFS
1.128 moko 8909:
8910: fi
8911: fi
8912: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8913: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 8914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8915: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 8916: else
1.150 moko 8917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918: $as_echo "no" >&6; }
1.128 moko 8919: fi
8920:
1.150 moko 8921: if test "x$ac_ct_OBJDUMP" = x; then
8922: OBJDUMP="false"
8923: else
8924: case $cross_compiling:$ac_tool_warned in
8925: yes:)
8926: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8927: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8928: ac_tool_warned=yes ;;
8929: esac
8930: OBJDUMP=$ac_ct_OBJDUMP
8931: fi
1.128 moko 8932: else
8933: OBJDUMP="$ac_cv_prog_OBJDUMP"
8934: fi
8935:
8936: ;;
8937: esac
8938:
8939: test -z "$AS" && AS=as
8940:
8941:
8942:
8943:
8944:
8945: test -z "$DLLTOOL" && DLLTOOL=dlltool
8946:
8947:
8948:
8949:
8950:
8951: test -z "$OBJDUMP" && OBJDUMP=objdump
8952:
8953:
8954:
8955:
8956:
1.150 moko 8957: # Check whether --with-pic was given.
8958: if test "${with_pic+set}" = set; then :
8959: withval=$with_pic; lt_p=${PACKAGE-default}
1.145 moko 8960: case $withval in
8961: yes|no) pic_mode=$withval ;;
8962: *)
8963: pic_mode=default
8964: # Look at the argument we got. We use all the common list separators.
8965: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8966: for lt_pkg in $withval; do
8967: IFS="$lt_save_ifs"
8968: if test "X$lt_pkg" = "X$lt_p"; then
8969: pic_mode=yes
8970: fi
8971: done
8972: IFS="$lt_save_ifs"
8973: ;;
8974: esac
8975: else
8976: pic_mode=default
1.150 moko 8977: fi
8978:
1.145 moko 8979:
8980: test -z "$pic_mode" && pic_mode=no
8981:
8982:
8983:
8984:
8985:
8986:
1.128 moko 8987:
8988:
8989:
8990:
1.150 moko 8991: # Check whether --enable-shared was given.
8992: if test "${enable_shared+set}" = set; then :
8993: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 8994: case $enableval in
8995: yes) enable_shared=yes ;;
8996: no) enable_shared=no ;;
8997: *)
8998: enable_shared=no
8999: # Look at the argument we got. We use all the common list separators.
9000: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9001: for pkg in $enableval; do
9002: IFS="$lt_save_ifs"
9003: if test "X$pkg" = "X$p"; then
9004: enable_shared=yes
9005: fi
9006: done
9007: IFS="$lt_save_ifs"
9008: ;;
9009: esac
9010: else
9011: enable_shared=yes
1.150 moko 9012: fi
9013:
1.128 moko 9014:
9015:
9016:
9017:
9018:
9019:
9020:
9021:
1.150 moko 9022: # Check whether --enable-static was given.
9023: if test "${enable_static+set}" = set; then :
9024: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 9025: case $enableval in
9026: yes) enable_static=yes ;;
9027: no) enable_static=no ;;
9028: *)
9029: enable_static=no
9030: # Look at the argument we got. We use all the common list separators.
9031: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9032: for pkg in $enableval; do
9033: IFS="$lt_save_ifs"
9034: if test "X$pkg" = "X$p"; then
9035: enable_static=yes
9036: fi
9037: done
9038: IFS="$lt_save_ifs"
9039: ;;
9040: esac
9041: else
9042: enable_static=yes
1.150 moko 9043: fi
9044:
1.138 moko 9045:
9046:
9047:
9048:
9049:
9050:
9051:
1.128 moko 9052:
9053:
1.150 moko 9054: # Check whether --enable-fast-install was given.
9055: if test "${enable_fast_install+set}" = set; then :
9056: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 9057: case $enableval in
9058: yes) enable_fast_install=yes ;;
9059: no) enable_fast_install=no ;;
9060: *)
9061: enable_fast_install=no
9062: # Look at the argument we got. We use all the common list separators.
9063: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9064: for pkg in $enableval; do
9065: IFS="$lt_save_ifs"
9066: if test "X$pkg" = "X$p"; then
9067: enable_fast_install=yes
9068: fi
9069: done
9070: IFS="$lt_save_ifs"
9071: ;;
9072: esac
9073: else
9074: enable_fast_install=yes
1.150 moko 9075: fi
9076:
1.128 moko 9077:
9078:
9079:
9080:
9081:
9082:
9083:
9084:
9085:
9086:
9087: # This can be used to rebuild libtool when needed
9088: LIBTOOL_DEPS="$ltmain"
9089:
9090: # Always use our own libtool.
9091: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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:
9121:
9122: test -z "$LN_S" && LN_S="ln -s"
9123:
9124:
9125:
9126:
9127:
9128:
9129:
9130:
9131:
9132:
9133:
9134:
9135:
9136:
9137: if test -n "${ZSH_VERSION+set}" ; then
9138: setopt NO_GLOB_SUBST
9139: fi
9140:
1.150 moko 9141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9142: $as_echo_n "checking for objdir... " >&6; }
9143: if ${lt_cv_objdir+:} false; then :
9144: $as_echo_n "(cached) " >&6
1.128 moko 9145: else
9146: rm -f .libs 2>/dev/null
9147: mkdir .libs 2>/dev/null
9148: if test -d .libs; then
9149: lt_cv_objdir=.libs
9150: else
9151: # MS-DOS does not allow filenames that begin with a dot.
9152: lt_cv_objdir=_libs
9153: fi
9154: rmdir .libs 2>/dev/null
9155: fi
1.150 moko 9156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9157: $as_echo "$lt_cv_objdir" >&6; }
1.128 moko 9158: objdir=$lt_cv_objdir
9159:
9160:
9161:
9162:
9163:
9164: cat >>confdefs.h <<_ACEOF
9165: #define LT_OBJDIR "$lt_cv_objdir/"
9166: _ACEOF
9167:
9168:
9169:
9170:
9171: case $host_os in
9172: aix3*)
9173: # AIX sometimes has problems with the GCC collect2 program. For some
9174: # reason, if we set the COLLECT_NAMES environment variable, the problems
9175: # vanish in a puff of smoke.
9176: if test "X${COLLECT_NAMES+set}" != Xset; then
9177: COLLECT_NAMES=
9178: export COLLECT_NAMES
9179: fi
9180: ;;
9181: esac
9182:
9183: # Global variables:
9184: ofile=libtool
9185: can_build_shared=yes
9186:
9187: # All known linkers require a `.a' archive for static linking (except MSVC,
9188: # which needs '.lib').
9189: libext=a
9190:
9191: with_gnu_ld="$lt_cv_prog_gnu_ld"
9192:
9193: old_CC="$CC"
9194: old_CFLAGS="$CFLAGS"
9195:
9196: # Set sane defaults for various variables
9197: test -z "$CC" && CC=cc
9198: test -z "$LTCC" && LTCC=$CC
9199: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9200: test -z "$LD" && LD=ld
9201: test -z "$ac_objext" && ac_objext=o
9202:
9203: for cc_temp in $compiler""; do
9204: case $cc_temp in
9205: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9206: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9207: \-*) ;;
9208: *) break;;
9209: esac
9210: done
9211: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9212:
9213:
9214: # Only perform the check for file, if the check method requires it
9215: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9216: case $deplibs_check_method in
9217: file_magic*)
9218: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.150 moko 9219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9220: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9221: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9222: $as_echo_n "(cached) " >&6
1.128 moko 9223: else
9224: case $MAGIC_CMD in
9225: [\\/*] | ?:[\\/]*)
9226: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9227: ;;
9228: *)
9229: lt_save_MAGIC_CMD="$MAGIC_CMD"
9230: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9231: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9232: for ac_dir in $ac_dummy; do
9233: IFS="$lt_save_ifs"
9234: test -z "$ac_dir" && ac_dir=.
9235: if test -f $ac_dir/${ac_tool_prefix}file; then
9236: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9237: if test -n "$file_magic_test_file"; then
9238: case $deplibs_check_method in
9239: "file_magic "*)
9240: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9241: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9242: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9243: $EGREP "$file_magic_regex" > /dev/null; then
9244: :
9245: else
9246: cat <<_LT_EOF 1>&2
9247:
9248: *** Warning: the command libtool uses to detect shared libraries,
9249: *** $file_magic_cmd, produces output that libtool cannot recognize.
9250: *** The result is that libtool may fail to recognize shared libraries
9251: *** as such. This will affect the creation of libtool libraries that
9252: *** depend on shared libraries, but programs linked with such libtool
9253: *** libraries will work regardless of this problem. Nevertheless, you
9254: *** may want to report the problem to your system manager and/or to
9255: *** bug-libtool@gnu.org
9256:
9257: _LT_EOF
9258: fi ;;
9259: esac
9260: fi
9261: break
9262: fi
9263: done
9264: IFS="$lt_save_ifs"
9265: MAGIC_CMD="$lt_save_MAGIC_CMD"
9266: ;;
9267: esac
9268: fi
9269:
9270: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9271: if test -n "$MAGIC_CMD"; then
1.150 moko 9272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9273: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9274: else
1.150 moko 9275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276: $as_echo "no" >&6; }
1.128 moko 9277: fi
9278:
9279:
9280:
9281:
9282:
9283: if test -z "$lt_cv_path_MAGIC_CMD"; then
9284: if test -n "$ac_tool_prefix"; then
1.150 moko 9285: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9286: $as_echo_n "checking for file... " >&6; }
9287: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9288: $as_echo_n "(cached) " >&6
1.128 moko 9289: else
9290: case $MAGIC_CMD in
9291: [\\/*] | ?:[\\/]*)
9292: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9293: ;;
9294: *)
9295: lt_save_MAGIC_CMD="$MAGIC_CMD"
9296: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9297: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9298: for ac_dir in $ac_dummy; do
9299: IFS="$lt_save_ifs"
9300: test -z "$ac_dir" && ac_dir=.
9301: if test -f $ac_dir/file; then
9302: lt_cv_path_MAGIC_CMD="$ac_dir/file"
9303: if test -n "$file_magic_test_file"; then
9304: case $deplibs_check_method in
9305: "file_magic "*)
9306: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9307: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9308: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9309: $EGREP "$file_magic_regex" > /dev/null; then
9310: :
9311: else
9312: cat <<_LT_EOF 1>&2
9313:
9314: *** Warning: the command libtool uses to detect shared libraries,
9315: *** $file_magic_cmd, produces output that libtool cannot recognize.
9316: *** The result is that libtool may fail to recognize shared libraries
9317: *** as such. This will affect the creation of libtool libraries that
9318: *** depend on shared libraries, but programs linked with such libtool
9319: *** libraries will work regardless of this problem. Nevertheless, you
9320: *** may want to report the problem to your system manager and/or to
9321: *** bug-libtool@gnu.org
9322:
9323: _LT_EOF
9324: fi ;;
9325: esac
9326: fi
9327: break
9328: fi
9329: done
9330: IFS="$lt_save_ifs"
9331: MAGIC_CMD="$lt_save_MAGIC_CMD"
9332: ;;
9333: esac
9334: fi
9335:
9336: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9337: if test -n "$MAGIC_CMD"; then
1.150 moko 9338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9339: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9340: else
1.150 moko 9341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9342: $as_echo "no" >&6; }
1.128 moko 9343: fi
9344:
9345:
9346: else
9347: MAGIC_CMD=:
9348: fi
9349: fi
9350:
9351: fi
9352: ;;
9353: esac
9354:
9355: # Use C for the default configuration in the libtool script
9356:
9357: lt_save_CC="$CC"
9358: ac_ext=c
9359: ac_cpp='$CPP $CPPFLAGS'
9360: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9361: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9362: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9363:
9364:
9365: # Source file extension for C test sources.
9366: ac_ext=c
9367:
9368: # Object file extension for compiled C test sources.
9369: objext=o
9370: objext=$objext
9371:
9372: # Code to be used in simple compile tests
9373: lt_simple_compile_test_code="int some_variable = 0;"
9374:
9375: # Code to be used in simple link tests
9376: lt_simple_link_test_code='int main(){return(0);}'
9377:
9378:
9379:
9380:
9381:
9382:
9383:
9384: # If no C compiler was specified, use CC.
9385: LTCC=${LTCC-"$CC"}
9386:
9387: # If no C compiler flags were specified, use CFLAGS.
9388: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9389:
9390: # Allow CC to be a program name with arguments.
9391: compiler=$CC
9392:
9393: # Save the default compiler, since it gets overwritten when the other
9394: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9395: compiler_DEFAULT=$CC
9396:
9397: # save warnings/boilerplate of simple test code
9398: ac_outfile=conftest.$ac_objext
9399: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9400: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9401: _lt_compiler_boilerplate=`cat conftest.err`
9402: $RM conftest*
9403:
9404: ac_outfile=conftest.$ac_objext
9405: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9406: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9407: _lt_linker_boilerplate=`cat conftest.err`
9408: $RM -r conftest*
9409:
9410:
9411: ## CAVEAT EMPTOR:
9412: ## There is no encapsulation within the following macros, do not change
9413: ## the running order or otherwise move them around unless you know exactly
9414: ## what you are doing...
9415: if test -n "$compiler"; then
9416:
9417: lt_prog_compiler_no_builtin_flag=
9418:
9419: if test "$GCC" = yes; then
9420: case $cc_basename in
9421: nvcc*)
9422: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9423: *)
9424: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9425: esac
9426:
1.150 moko 9427: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9428: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9429: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9430: $as_echo_n "(cached) " >&6
1.128 moko 9431: else
9432: lt_cv_prog_compiler_rtti_exceptions=no
9433: ac_outfile=conftest.$ac_objext
9434: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9435: lt_compiler_flag="-fno-rtti -fno-exceptions"
9436: # Insert the option either (1) after the last *FLAGS variable, or
9437: # (2) before a word containing "conftest.", or (3) at the end.
9438: # Note that $ac_compile itself does not contain backslashes and begins
9439: # with a dollar sign (not a hyphen), so the echo should work correctly.
9440: # The option is referenced via a variable to avoid confusing sed.
9441: lt_compile=`echo "$ac_compile" | $SED \
9442: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9443: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9444: -e 's:$: $lt_compiler_flag:'`
9445: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9446: (eval "$lt_compile" 2>conftest.err)
9447: ac_status=$?
9448: cat conftest.err >&5
9449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450: if (exit $ac_status) && test -s "$ac_outfile"; then
9451: # The compiler can only warn and ignore the option if not recognized
9452: # So say no if there are warnings other than the usual output.
9453: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9454: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9455: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9456: lt_cv_prog_compiler_rtti_exceptions=yes
9457: fi
9458: fi
9459: $RM conftest*
9460:
9461: fi
1.150 moko 9462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9463: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 9464:
9465: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9466: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9467: else
9468: :
9469: fi
9470:
9471: fi
9472:
9473:
9474:
9475:
9476:
9477:
9478: lt_prog_compiler_wl=
9479: lt_prog_compiler_pic=
9480: lt_prog_compiler_static=
9481:
9482:
9483: if test "$GCC" = yes; then
9484: lt_prog_compiler_wl='-Wl,'
9485: lt_prog_compiler_static='-static'
9486:
9487: case $host_os in
9488: aix*)
9489: # All AIX code is PIC.
9490: if test "$host_cpu" = ia64; then
9491: # AIX 5 now supports IA64 processor
9492: lt_prog_compiler_static='-Bstatic'
9493: fi
9494: ;;
9495:
9496: amigaos*)
9497: case $host_cpu in
9498: powerpc)
9499: # see comment about AmigaOS4 .so support
9500: lt_prog_compiler_pic='-fPIC'
9501: ;;
9502: m68k)
9503: # FIXME: we need at least 68020 code to build shared libraries, but
9504: # adding the `-m68020' flag to GCC prevents building anything better,
9505: # like `-m68040'.
9506: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9507: ;;
9508: esac
9509: ;;
9510:
9511: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9512: # PIC is the default for these OSes.
9513: ;;
9514:
9515: mingw* | cygwin* | pw32* | os2* | cegcc*)
9516: # This hack is so that the source file can tell whether it is being
9517: # built for inclusion in a dll (and should export symbols for example).
9518: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9519: # (--disable-auto-import) libraries
9520: lt_prog_compiler_pic='-DDLL_EXPORT'
9521: ;;
9522:
9523: darwin* | rhapsody*)
9524: # PIC is the default on this platform
9525: # Common symbols not allowed in MH_DYLIB files
9526: lt_prog_compiler_pic='-fno-common'
9527: ;;
9528:
9529: haiku*)
9530: # PIC is the default for Haiku.
9531: # The "-static" flag exists, but is broken.
9532: lt_prog_compiler_static=
9533: ;;
9534:
9535: hpux*)
9536: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9537: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9538: # sets the default TLS model and affects inlining.
9539: case $host_cpu in
9540: hppa*64*)
9541: # +Z the default
9542: ;;
9543: *)
9544: lt_prog_compiler_pic='-fPIC'
9545: ;;
9546: esac
9547: ;;
9548:
9549: interix[3-9]*)
9550: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9551: # Instead, we relocate shared libraries at runtime.
9552: ;;
9553:
9554: msdosdjgpp*)
9555: # Just because we use GCC doesn't mean we suddenly get shared libraries
9556: # on systems that don't support them.
9557: lt_prog_compiler_can_build_shared=no
9558: enable_shared=no
9559: ;;
9560:
9561: *nto* | *qnx*)
9562: # QNX uses GNU C++, but need to define -shared option too, otherwise
9563: # it will coredump.
9564: lt_prog_compiler_pic='-fPIC -shared'
9565: ;;
9566:
9567: sysv4*MP*)
9568: if test -d /usr/nec; then
9569: lt_prog_compiler_pic=-Kconform_pic
9570: fi
9571: ;;
9572:
9573: *)
9574: lt_prog_compiler_pic='-fPIC'
9575: ;;
9576: esac
9577:
9578: case $cc_basename in
9579: nvcc*) # Cuda Compiler Driver 2.2
9580: lt_prog_compiler_wl='-Xlinker '
9581: if test -n "$lt_prog_compiler_pic"; then
9582: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9583: fi
9584: ;;
9585: esac
9586: else
9587: # PORTME Check for flag to pass linker flags through the system compiler.
9588: case $host_os in
9589: aix*)
9590: lt_prog_compiler_wl='-Wl,'
9591: if test "$host_cpu" = ia64; then
9592: # AIX 5 now supports IA64 processor
9593: lt_prog_compiler_static='-Bstatic'
9594: else
9595: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9596: fi
9597: ;;
9598:
9599: mingw* | cygwin* | pw32* | os2* | cegcc*)
9600: # This hack is so that the source file can tell whether it is being
9601: # built for inclusion in a dll (and should export symbols for example).
9602: lt_prog_compiler_pic='-DDLL_EXPORT'
9603: ;;
9604:
9605: hpux9* | hpux10* | hpux11*)
9606: lt_prog_compiler_wl='-Wl,'
9607: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9608: # not for PA HP-UX.
9609: case $host_cpu in
9610: hppa*64*|ia64*)
9611: # +Z the default
9612: ;;
9613: *)
9614: lt_prog_compiler_pic='+Z'
9615: ;;
9616: esac
9617: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9618: lt_prog_compiler_static='${wl}-a ${wl}archive'
9619: ;;
9620:
9621: irix5* | irix6* | nonstopux*)
9622: lt_prog_compiler_wl='-Wl,'
9623: # PIC (with -KPIC) is the default.
9624: lt_prog_compiler_static='-non_shared'
9625: ;;
9626:
9627: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9628: case $cc_basename in
9629: # old Intel for x86_64 which still supported -KPIC.
9630: ecc*)
9631: lt_prog_compiler_wl='-Wl,'
9632: lt_prog_compiler_pic='-KPIC'
9633: lt_prog_compiler_static='-static'
9634: ;;
9635: # icc used to be incompatible with GCC.
9636: # ICC 10 doesn't accept -KPIC any more.
9637: icc* | ifort*)
9638: lt_prog_compiler_wl='-Wl,'
9639: lt_prog_compiler_pic='-fPIC'
9640: lt_prog_compiler_static='-static'
9641: ;;
9642: # Lahey Fortran 8.1.
9643: lf95*)
9644: lt_prog_compiler_wl='-Wl,'
9645: lt_prog_compiler_pic='--shared'
9646: lt_prog_compiler_static='--static'
9647: ;;
9648: nagfor*)
9649: # NAG Fortran compiler
9650: lt_prog_compiler_wl='-Wl,-Wl,,'
9651: lt_prog_compiler_pic='-PIC'
9652: lt_prog_compiler_static='-Bstatic'
9653: ;;
9654: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9655: # Portland Group compilers (*not* the Pentium gcc compiler,
9656: # which looks to be a dead project)
9657: lt_prog_compiler_wl='-Wl,'
9658: lt_prog_compiler_pic='-fpic'
9659: lt_prog_compiler_static='-Bstatic'
9660: ;;
9661: ccc*)
9662: lt_prog_compiler_wl='-Wl,'
9663: # All Alpha code is PIC.
9664: lt_prog_compiler_static='-non_shared'
9665: ;;
9666: xl* | bgxl* | bgf* | mpixl*)
9667: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9668: lt_prog_compiler_wl='-Wl,'
9669: lt_prog_compiler_pic='-qpic'
9670: lt_prog_compiler_static='-qstaticlink'
9671: ;;
9672: *)
9673: case `$CC -V 2>&1 | sed 5q` in
9674: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9675: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9676: lt_prog_compiler_pic='-KPIC'
9677: lt_prog_compiler_static='-Bstatic'
9678: lt_prog_compiler_wl=''
9679: ;;
9680: *Sun\ F* | *Sun*Fortran*)
9681: lt_prog_compiler_pic='-KPIC'
9682: lt_prog_compiler_static='-Bstatic'
9683: lt_prog_compiler_wl='-Qoption ld '
9684: ;;
9685: *Sun\ C*)
9686: # Sun C 5.9
9687: lt_prog_compiler_pic='-KPIC'
9688: lt_prog_compiler_static='-Bstatic'
9689: lt_prog_compiler_wl='-Wl,'
9690: ;;
9691: *Intel*\ [CF]*Compiler*)
9692: lt_prog_compiler_wl='-Wl,'
9693: lt_prog_compiler_pic='-fPIC'
9694: lt_prog_compiler_static='-static'
9695: ;;
9696: *Portland\ Group*)
9697: lt_prog_compiler_wl='-Wl,'
9698: lt_prog_compiler_pic='-fpic'
9699: lt_prog_compiler_static='-Bstatic'
9700: ;;
9701: esac
9702: ;;
9703: esac
9704: ;;
9705:
9706: newsos6)
9707: lt_prog_compiler_pic='-KPIC'
9708: lt_prog_compiler_static='-Bstatic'
9709: ;;
9710:
9711: *nto* | *qnx*)
9712: # QNX uses GNU C++, but need to define -shared option too, otherwise
9713: # it will coredump.
9714: lt_prog_compiler_pic='-fPIC -shared'
9715: ;;
9716:
9717: osf3* | osf4* | osf5*)
9718: lt_prog_compiler_wl='-Wl,'
9719: # All OSF/1 code is PIC.
9720: lt_prog_compiler_static='-non_shared'
9721: ;;
9722:
9723: rdos*)
9724: lt_prog_compiler_static='-non_shared'
9725: ;;
9726:
9727: solaris*)
9728: lt_prog_compiler_pic='-KPIC'
9729: lt_prog_compiler_static='-Bstatic'
9730: case $cc_basename in
9731: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9732: lt_prog_compiler_wl='-Qoption ld ';;
9733: *)
9734: lt_prog_compiler_wl='-Wl,';;
9735: esac
9736: ;;
9737:
9738: sunos4*)
9739: lt_prog_compiler_wl='-Qoption ld '
9740: lt_prog_compiler_pic='-PIC'
9741: lt_prog_compiler_static='-Bstatic'
9742: ;;
9743:
9744: sysv4 | sysv4.2uw2* | sysv4.3*)
9745: lt_prog_compiler_wl='-Wl,'
9746: lt_prog_compiler_pic='-KPIC'
9747: lt_prog_compiler_static='-Bstatic'
9748: ;;
9749:
9750: sysv4*MP*)
9751: if test -d /usr/nec ;then
9752: lt_prog_compiler_pic='-Kconform_pic'
9753: lt_prog_compiler_static='-Bstatic'
9754: fi
9755: ;;
9756:
9757: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9758: lt_prog_compiler_wl='-Wl,'
9759: lt_prog_compiler_pic='-KPIC'
9760: lt_prog_compiler_static='-Bstatic'
9761: ;;
9762:
9763: unicos*)
9764: lt_prog_compiler_wl='-Wl,'
9765: lt_prog_compiler_can_build_shared=no
9766: ;;
9767:
9768: uts4*)
9769: lt_prog_compiler_pic='-pic'
9770: lt_prog_compiler_static='-Bstatic'
9771: ;;
9772:
9773: *)
9774: lt_prog_compiler_can_build_shared=no
9775: ;;
9776: esac
9777: fi
9778:
9779: case $host_os in
9780: # For platforms which do not support PIC, -DPIC is meaningless:
9781: *djgpp*)
9782: lt_prog_compiler_pic=
9783: ;;
9784: *)
9785: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9786: ;;
9787: esac
9788:
1.150 moko 9789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9790: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9791: if ${lt_cv_prog_compiler_pic+:} false; then :
9792: $as_echo_n "(cached) " >&6
1.128 moko 9793: else
9794: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9795: fi
1.150 moko 9796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9797: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 9798: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9799:
9800: #
9801: # Check to make sure the PIC flag actually works.
9802: #
9803: if test -n "$lt_prog_compiler_pic"; then
1.150 moko 9804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9805: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9806: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9807: $as_echo_n "(cached) " >&6
1.128 moko 9808: else
9809: lt_cv_prog_compiler_pic_works=no
9810: ac_outfile=conftest.$ac_objext
9811: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9812: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9813: # Insert the option either (1) after the last *FLAGS variable, or
9814: # (2) before a word containing "conftest.", or (3) at the end.
9815: # Note that $ac_compile itself does not contain backslashes and begins
9816: # with a dollar sign (not a hyphen), so the echo should work correctly.
9817: # The option is referenced via a variable to avoid confusing sed.
9818: lt_compile=`echo "$ac_compile" | $SED \
9819: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9820: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9821: -e 's:$: $lt_compiler_flag:'`
9822: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9823: (eval "$lt_compile" 2>conftest.err)
9824: ac_status=$?
9825: cat conftest.err >&5
9826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827: if (exit $ac_status) && test -s "$ac_outfile"; then
9828: # The compiler can only warn and ignore the option if not recognized
9829: # So say no if there are warnings other than the usual output.
9830: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9831: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9832: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9833: lt_cv_prog_compiler_pic_works=yes
9834: fi
9835: fi
9836: $RM conftest*
9837:
9838: fi
1.150 moko 9839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9840: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 9841:
9842: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9843: case $lt_prog_compiler_pic in
9844: "" | " "*) ;;
9845: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9846: esac
9847: else
9848: lt_prog_compiler_pic=
9849: lt_prog_compiler_can_build_shared=no
9850: fi
9851:
9852: fi
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862:
9863:
9864: #
9865: # Check to make sure the static flag actually works.
9866: #
9867: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.150 moko 9868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9869: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9870: if ${lt_cv_prog_compiler_static_works+:} false; then :
9871: $as_echo_n "(cached) " >&6
1.128 moko 9872: else
9873: lt_cv_prog_compiler_static_works=no
9874: save_LDFLAGS="$LDFLAGS"
9875: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9876: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9877: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9878: # The linker can only warn and ignore the option if not recognized
9879: # So say no if there are warnings
9880: if test -s conftest.err; then
9881: # Append any errors to the config.log.
9882: cat conftest.err 1>&5
9883: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9884: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9885: if diff conftest.exp conftest.er2 >/dev/null; then
9886: lt_cv_prog_compiler_static_works=yes
9887: fi
9888: else
9889: lt_cv_prog_compiler_static_works=yes
9890: fi
9891: fi
9892: $RM -r conftest*
9893: LDFLAGS="$save_LDFLAGS"
9894:
9895: fi
1.150 moko 9896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9897: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 9898:
9899: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9900: :
9901: else
9902: lt_prog_compiler_static=
9903: fi
9904:
9905:
9906:
9907:
9908:
9909:
9910:
1.150 moko 9911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9912: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9913: if ${lt_cv_prog_compiler_c_o+:} false; then :
9914: $as_echo_n "(cached) " >&6
1.128 moko 9915: else
9916: lt_cv_prog_compiler_c_o=no
9917: $RM -r conftest 2>/dev/null
9918: mkdir conftest
9919: cd conftest
9920: mkdir out
9921: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9922:
9923: lt_compiler_flag="-o out/conftest2.$ac_objext"
9924: # Insert the option either (1) after the last *FLAGS variable, or
9925: # (2) before a word containing "conftest.", or (3) at the end.
9926: # Note that $ac_compile itself does not contain backslashes and begins
9927: # with a dollar sign (not a hyphen), so the echo should work correctly.
9928: lt_compile=`echo "$ac_compile" | $SED \
9929: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9930: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9931: -e 's:$: $lt_compiler_flag:'`
9932: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9933: (eval "$lt_compile" 2>out/conftest.err)
9934: ac_status=$?
9935: cat out/conftest.err >&5
9936: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9938: then
9939: # The compiler can only warn and ignore the option if not recognized
9940: # So say no if there are warnings
9941: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9942: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9943: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9944: lt_cv_prog_compiler_c_o=yes
9945: fi
9946: fi
9947: chmod u+w . 2>&5
9948: $RM conftest*
9949: # SGI C++ compiler will create directory out/ii_files/ for
9950: # template instantiation
9951: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9952: $RM out/* && rmdir out
9953: cd ..
9954: $RM -r conftest
9955: $RM conftest*
9956:
9957: fi
1.150 moko 9958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9959: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 9960:
9961:
9962:
9963:
9964:
9965:
1.150 moko 9966: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9967: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9968: if ${lt_cv_prog_compiler_c_o+:} false; then :
9969: $as_echo_n "(cached) " >&6
1.128 moko 9970: else
9971: lt_cv_prog_compiler_c_o=no
9972: $RM -r conftest 2>/dev/null
9973: mkdir conftest
9974: cd conftest
9975: mkdir out
9976: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9977:
9978: lt_compiler_flag="-o out/conftest2.$ac_objext"
9979: # Insert the option either (1) after the last *FLAGS variable, or
9980: # (2) before a word containing "conftest.", or (3) at the end.
9981: # Note that $ac_compile itself does not contain backslashes and begins
9982: # with a dollar sign (not a hyphen), so the echo should work correctly.
9983: lt_compile=`echo "$ac_compile" | $SED \
9984: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9985: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9986: -e 's:$: $lt_compiler_flag:'`
9987: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9988: (eval "$lt_compile" 2>out/conftest.err)
9989: ac_status=$?
9990: cat out/conftest.err >&5
9991: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9993: then
9994: # The compiler can only warn and ignore the option if not recognized
9995: # So say no if there are warnings
9996: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9997: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9998: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9999: lt_cv_prog_compiler_c_o=yes
10000: fi
10001: fi
10002: chmod u+w . 2>&5
10003: $RM conftest*
10004: # SGI C++ compiler will create directory out/ii_files/ for
10005: # template instantiation
10006: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10007: $RM out/* && rmdir out
10008: cd ..
10009: $RM -r conftest
10010: $RM conftest*
10011:
10012: fi
1.150 moko 10013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10014: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10015:
10016:
10017:
10018:
10019: hard_links="nottested"
10020: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10021: # do not overwrite the value of need_locks provided by the user
1.150 moko 10022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10023: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 10024: hard_links=yes
10025: $RM conftest*
10026: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10027: touch conftest.a
10028: ln conftest.a conftest.b 2>&5 || hard_links=no
10029: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 10030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10031: $as_echo "$hard_links" >&6; }
1.128 moko 10032: if test "$hard_links" = no; then
1.150 moko 10033: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10034: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 10035: need_locks=warn
10036: fi
10037: else
10038: need_locks=no
10039: fi
10040:
10041:
10042:
10043:
10044:
10045:
1.150 moko 10046: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10047: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 10048:
10049: runpath_var=
10050: allow_undefined_flag=
10051: always_export_symbols=no
10052: archive_cmds=
10053: archive_expsym_cmds=
10054: compiler_needs_object=no
10055: enable_shared_with_static_runtimes=no
10056: export_dynamic_flag_spec=
10057: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10058: hardcode_automatic=no
10059: hardcode_direct=no
10060: hardcode_direct_absolute=no
10061: hardcode_libdir_flag_spec=
10062: hardcode_libdir_separator=
10063: hardcode_minus_L=no
10064: hardcode_shlibpath_var=unsupported
10065: inherit_rpath=no
10066: link_all_deplibs=unknown
10067: module_cmds=
10068: module_expsym_cmds=
10069: old_archive_from_new_cmds=
10070: old_archive_from_expsyms_cmds=
10071: thread_safe_flag_spec=
10072: whole_archive_flag_spec=
10073: # include_expsyms should be a list of space-separated symbols to be *always*
10074: # included in the symbol list
10075: include_expsyms=
10076: # exclude_expsyms can be an extended regexp of symbols to exclude
10077: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10078: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10079: # as well as any symbol that contains `d'.
10080: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10081: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10082: # platforms (ab)use it in PIC code, but their linkers get confused if
10083: # the symbol is explicitly referenced. Since portable code cannot
10084: # rely on this symbol name, it's probably fine to never include it in
10085: # preloaded symbol tables.
10086: # Exclude shared library initialization/finalization symbols.
10087: extract_expsyms_cmds=
10088:
10089: case $host_os in
10090: cygwin* | mingw* | pw32* | cegcc*)
10091: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10092: # When not using gcc, we currently assume that we are using
10093: # Microsoft Visual C++.
10094: if test "$GCC" != yes; then
10095: with_gnu_ld=no
10096: fi
10097: ;;
10098: interix*)
10099: # we just hope/assume this is gcc and not c89 (= MSVC++)
10100: with_gnu_ld=yes
10101: ;;
10102: openbsd*)
10103: with_gnu_ld=no
10104: ;;
10105: esac
10106:
10107: ld_shlibs=yes
10108:
10109: # On some targets, GNU ld is compatible enough with the native linker
10110: # that we're better off using the native interface for both.
10111: lt_use_gnu_ld_interface=no
10112: if test "$with_gnu_ld" = yes; then
10113: case $host_os in
10114: aix*)
10115: # The AIX port of GNU ld has always aspired to compatibility
10116: # with the native linker. However, as the warning in the GNU ld
10117: # block says, versions before 2.19.5* couldn't really create working
10118: # shared libraries, regardless of the interface used.
10119: case `$LD -v 2>&1` in
10120: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10121: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10122: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10123: *)
10124: lt_use_gnu_ld_interface=yes
10125: ;;
10126: esac
10127: ;;
10128: *)
10129: lt_use_gnu_ld_interface=yes
10130: ;;
10131: esac
10132: fi
10133:
10134: if test "$lt_use_gnu_ld_interface" = yes; then
10135: # If archive_cmds runs LD, not CC, wlarc should be empty
10136: wlarc='${wl}'
10137:
10138: # Set some defaults for GNU ld with shared library support. These
10139: # are reset later if shared libraries are not supported. Putting them
10140: # here allows them to be overridden if necessary.
10141: runpath_var=LD_RUN_PATH
10142: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10143: export_dynamic_flag_spec='${wl}--export-dynamic'
10144: # ancient GNU ld didn't support --whole-archive et. al.
10145: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10146: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10147: else
10148: whole_archive_flag_spec=
10149: fi
10150: supports_anon_versioning=no
10151: case `$LD -v 2>&1` in
10152: *GNU\ gold*) supports_anon_versioning=yes ;;
10153: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10154: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10155: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10156: *\ 2.11.*) ;; # other 2.11 versions
10157: *) supports_anon_versioning=yes ;;
10158: esac
10159:
10160: # See if GNU ld supports shared libraries.
10161: case $host_os in
10162: aix[3-9]*)
10163: # On AIX/PPC, the GNU linker is very broken
10164: if test "$host_cpu" != ia64; then
10165: ld_shlibs=no
10166: cat <<_LT_EOF 1>&2
10167:
10168: *** Warning: the GNU linker, at least up to release 2.19, is reported
10169: *** to be unable to reliably create shared libraries on AIX.
10170: *** Therefore, libtool is disabling shared libraries support. If you
10171: *** really care for shared libraries, you may want to install binutils
10172: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10173: *** You will then need to restart the configuration process.
10174:
10175: _LT_EOF
10176: fi
10177: ;;
10178:
10179: amigaos*)
10180: case $host_cpu in
10181: powerpc)
10182: # see comment about AmigaOS4 .so support
10183: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10184: archive_expsym_cmds=''
10185: ;;
10186: m68k)
10187: 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)'
10188: hardcode_libdir_flag_spec='-L$libdir'
10189: hardcode_minus_L=yes
10190: ;;
10191: esac
10192: ;;
10193:
10194: beos*)
10195: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10196: allow_undefined_flag=unsupported
10197: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10198: # support --undefined. This deserves some investigation. FIXME
10199: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10200: else
10201: ld_shlibs=no
10202: fi
10203: ;;
10204:
10205: cygwin* | mingw* | pw32* | cegcc*)
10206: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10207: # as there is no search path for DLLs.
10208: hardcode_libdir_flag_spec='-L$libdir'
10209: export_dynamic_flag_spec='${wl}--export-all-symbols'
10210: allow_undefined_flag=unsupported
10211: always_export_symbols=no
10212: enable_shared_with_static_runtimes=yes
10213: 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'
10214: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10215:
10216: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10217: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10218: # If the export-symbols file already is a .def file (1st line
10219: # is EXPORTS), use it as is; otherwise, prepend...
10220: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10221: cp $export_symbols $output_objdir/$soname.def;
10222: else
10223: echo EXPORTS > $output_objdir/$soname.def;
10224: cat $export_symbols >> $output_objdir/$soname.def;
10225: fi~
10226: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10227: else
10228: ld_shlibs=no
10229: fi
10230: ;;
10231:
10232: haiku*)
10233: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234: link_all_deplibs=yes
10235: ;;
10236:
10237: interix[3-9]*)
10238: hardcode_direct=no
10239: hardcode_shlibpath_var=no
10240: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10241: export_dynamic_flag_spec='${wl}-E'
10242: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10243: # Instead, shared libraries are loaded at an image base (0x10000000 by
10244: # default) and relocated if they conflict, which is a slow very memory
10245: # consuming and fragmenting process. To avoid this, we pick a random,
10246: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10247: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10248: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10249: 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'
10250: ;;
10251:
10252: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10253: tmp_diet=no
10254: if test "$host_os" = linux-dietlibc; then
10255: case $cc_basename in
10256: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10257: esac
10258: fi
10259: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10260: && test "$tmp_diet" = no
10261: then
10262: tmp_addflag=' $pic_flag'
10263: tmp_sharedflag='-shared'
10264: case $cc_basename,$host_cpu in
10265: pgcc*) # Portland Group C compiler
10266: 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'
10267: tmp_addflag=' $pic_flag'
10268: ;;
10269: pgf77* | pgf90* | pgf95* | pgfortran*)
10270: # Portland Group f77 and f90 compilers
10271: 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'
10272: tmp_addflag=' $pic_flag -Mnomain' ;;
10273: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10274: tmp_addflag=' -i_dynamic' ;;
10275: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10276: tmp_addflag=' -i_dynamic -nofor_main' ;;
10277: ifc* | ifort*) # Intel Fortran compiler
10278: tmp_addflag=' -nofor_main' ;;
10279: lf95*) # Lahey Fortran 8.1
10280: whole_archive_flag_spec=
10281: tmp_sharedflag='--shared' ;;
10282: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10283: tmp_sharedflag='-qmkshrobj'
10284: tmp_addflag= ;;
10285: nvcc*) # Cuda Compiler Driver 2.2
10286: 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'
10287: compiler_needs_object=yes
10288: ;;
10289: esac
10290: case `$CC -V 2>&1 | sed 5q` in
10291: *Sun\ C*) # Sun C 5.9
10292: 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'
10293: compiler_needs_object=yes
10294: tmp_sharedflag='-G' ;;
10295: *Sun\ F*) # Sun Fortran 8.3
10296: tmp_sharedflag='-G' ;;
10297: esac
10298: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10299:
10300: if test "x$supports_anon_versioning" = xyes; then
10301: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10302: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10303: echo "local: *; };" >> $output_objdir/$libname.ver~
10304: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10305: fi
10306:
10307: case $cc_basename in
10308: xlf* | bgf* | bgxlf* | mpixlf*)
10309: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10310: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10311: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10312: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10313: if test "x$supports_anon_versioning" = xyes; then
10314: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10315: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10316: echo "local: *; };" >> $output_objdir/$libname.ver~
10317: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10318: fi
10319: ;;
10320: esac
10321: else
10322: ld_shlibs=no
10323: fi
10324: ;;
10325:
10326: netbsd*)
10327: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10328: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10329: wlarc=
10330: else
10331: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10332: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10333: fi
10334: ;;
10335:
10336: solaris*)
10337: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10338: ld_shlibs=no
10339: cat <<_LT_EOF 1>&2
10340:
10341: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10342: *** create shared libraries on Solaris systems. Therefore, libtool
10343: *** is disabling shared libraries support. We urge you to upgrade GNU
10344: *** binutils to release 2.9.1 or newer. Another option is to modify
10345: *** your PATH or compiler configuration so that the native linker is
10346: *** used, and then restart.
10347:
10348: _LT_EOF
10349: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10350: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10351: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10352: else
10353: ld_shlibs=no
10354: fi
10355: ;;
10356:
10357: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10358: case `$LD -v 2>&1` in
10359: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10360: ld_shlibs=no
10361: cat <<_LT_EOF 1>&2
10362:
10363: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10364: *** reliably create shared libraries on SCO systems. Therefore, libtool
10365: *** is disabling shared libraries support. We urge you to upgrade GNU
10366: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10367: *** your PATH or compiler configuration so that the native linker is
10368: *** used, and then restart.
10369:
10370: _LT_EOF
10371: ;;
10372: *)
10373: # For security reasons, it is highly recommended that you always
10374: # use absolute paths for naming shared libraries, and exclude the
10375: # DT_RUNPATH tag from executables and libraries. But doing so
10376: # requires that you compile everything twice, which is a pain.
10377: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10378: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10379: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10380: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10381: else
10382: ld_shlibs=no
10383: fi
10384: ;;
10385: esac
10386: ;;
10387:
10388: sunos4*)
10389: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10390: wlarc=
10391: hardcode_direct=yes
10392: hardcode_shlibpath_var=no
10393: ;;
10394:
10395: *)
10396: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10397: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10398: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10399: else
10400: ld_shlibs=no
10401: fi
10402: ;;
10403: esac
10404:
10405: if test "$ld_shlibs" = no; then
10406: runpath_var=
10407: hardcode_libdir_flag_spec=
10408: export_dynamic_flag_spec=
10409: whole_archive_flag_spec=
10410: fi
10411: else
10412: # PORTME fill in a description of your system's linker (not GNU ld)
10413: case $host_os in
10414: aix3*)
10415: allow_undefined_flag=unsupported
10416: always_export_symbols=yes
10417: 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'
10418: # Note: this linker hardcodes the directories in LIBPATH if there
10419: # are no directories specified by -L.
10420: hardcode_minus_L=yes
10421: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10422: # Neither direct hardcoding nor static linking is supported with a
10423: # broken collect2.
10424: hardcode_direct=unsupported
10425: fi
10426: ;;
10427:
10428: aix[4-9]*)
10429: if test "$host_cpu" = ia64; then
10430: # On IA64, the linker does run time linking by default, so we don't
10431: # have to do anything special.
10432: aix_use_runtimelinking=no
10433: exp_sym_flag='-Bexport'
10434: no_entry_flag=""
10435: else
10436: # If we're using GNU nm, then we don't want the "-C" option.
10437: # -C means demangle to AIX nm, but means don't demangle with GNU nm
10438: # Also, AIX nm treats weak defined symbols like other global
10439: # defined symbols, whereas GNU nm marks them as "W".
10440: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10441: 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'
10442: else
10443: 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'
10444: fi
10445: aix_use_runtimelinking=no
10446:
10447: # Test if we are trying to use run time linking or normal
10448: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10449: # need to do runtime linking.
10450: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10451: for ld_flag in $LDFLAGS; do
10452: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10453: aix_use_runtimelinking=yes
10454: break
10455: fi
10456: done
10457: ;;
10458: esac
10459:
10460: exp_sym_flag='-bexport'
10461: no_entry_flag='-bnoentry'
10462: fi
10463:
10464: # When large executables or shared objects are built, AIX ld can
10465: # have problems creating the table of contents. If linking a library
10466: # or program results in "error TOC overflow" add -mminimal-toc to
10467: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10468: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10469:
10470: archive_cmds=''
10471: hardcode_direct=yes
10472: hardcode_direct_absolute=yes
10473: hardcode_libdir_separator=':'
10474: link_all_deplibs=yes
10475: file_list_spec='${wl}-f,'
10476:
10477: if test "$GCC" = yes; then
10478: case $host_os in aix4.[012]|aix4.[012].*)
10479: # We only want to do this on AIX 4.2 and lower, the check
10480: # below for broken collect2 doesn't work under 4.3+
10481: collect2name=`${CC} -print-prog-name=collect2`
10482: if test -f "$collect2name" &&
10483: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10484: then
10485: # We have reworked collect2
10486: :
10487: else
10488: # We have old collect2
10489: hardcode_direct=unsupported
10490: # It fails to find uninstalled libraries when the uninstalled
10491: # path is not listed in the libpath. Setting hardcode_minus_L
10492: # to unsupported forces relinking
10493: hardcode_minus_L=yes
10494: hardcode_libdir_flag_spec='-L$libdir'
10495: hardcode_libdir_separator=
10496: fi
10497: ;;
10498: esac
10499: shared_flag='-shared'
10500: if test "$aix_use_runtimelinking" = yes; then
10501: shared_flag="$shared_flag "'${wl}-G'
10502: fi
10503: else
10504: # not using gcc
10505: if test "$host_cpu" = ia64; then
10506: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10507: # chokes on -Wl,-G. The following line is correct:
10508: shared_flag='-G'
10509: else
10510: if test "$aix_use_runtimelinking" = yes; then
10511: shared_flag='${wl}-G'
10512: else
10513: shared_flag='${wl}-bM:SRE'
10514: fi
10515: fi
10516: fi
10517:
10518: export_dynamic_flag_spec='${wl}-bexpall'
10519: # It seems that -bexpall does not export symbols beginning with
10520: # underscore (_), so it is better to generate a list of symbols to export.
10521: always_export_symbols=yes
10522: if test "$aix_use_runtimelinking" = yes; then
10523: # Warning - without using the other runtime loading flags (-brtl),
10524: # -berok will link without error, but may produce a broken library.
10525: allow_undefined_flag='-berok'
10526: # Determine the default libpath from the value encoded in an
10527: # empty executable.
10528: if test "${lt_cv_aix_libpath+set}" = set; then
10529: aix_libpath=$lt_cv_aix_libpath
10530: else
1.150 moko 10531: if ${lt_cv_aix_libpath_+:} false; then :
10532: $as_echo_n "(cached) " >&6
1.128 moko 10533: else
1.150 moko 10534: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10535: /* end confdefs.h. */
10536:
10537: int
10538: main ()
10539: {
10540:
10541: ;
10542: return 0;
10543: }
10544: _ACEOF
1.150 moko 10545: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10546:
10547: lt_aix_libpath_sed='
10548: /Import File Strings/,/^$/ {
10549: /^0/ {
10550: s/^0 *\([^ ]*\) *$/\1/
10551: p
10552: }
10553: }'
10554: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10555: # Check for a 64-bit object if we didn't find anything.
10556: if test -z "$lt_cv_aix_libpath_"; then
10557: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10558: fi
10559: fi
1.150 moko 10560: rm -f core conftest.err conftest.$ac_objext \
10561: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10562: if test -z "$lt_cv_aix_libpath_"; then
10563: lt_cv_aix_libpath_="/usr/lib:/lib"
10564: fi
10565:
10566: fi
10567:
10568: aix_libpath=$lt_cv_aix_libpath_
10569: fi
10570:
10571: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10572: 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"
10573: else
10574: if test "$host_cpu" = ia64; then
10575: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10576: allow_undefined_flag="-z nodefs"
10577: 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"
10578: else
10579: # Determine the default libpath from the value encoded in an
10580: # empty executable.
10581: if test "${lt_cv_aix_libpath+set}" = set; then
10582: aix_libpath=$lt_cv_aix_libpath
10583: else
1.150 moko 10584: if ${lt_cv_aix_libpath_+:} false; then :
10585: $as_echo_n "(cached) " >&6
1.128 moko 10586: else
1.150 moko 10587: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10588: /* end confdefs.h. */
10589:
10590: int
10591: main ()
10592: {
10593:
10594: ;
10595: return 0;
10596: }
10597: _ACEOF
1.150 moko 10598: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10599:
10600: lt_aix_libpath_sed='
10601: /Import File Strings/,/^$/ {
10602: /^0/ {
10603: s/^0 *\([^ ]*\) *$/\1/
10604: p
10605: }
10606: }'
10607: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10608: # Check for a 64-bit object if we didn't find anything.
10609: if test -z "$lt_cv_aix_libpath_"; then
10610: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10611: fi
10612: fi
1.150 moko 10613: rm -f core conftest.err conftest.$ac_objext \
10614: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10615: if test -z "$lt_cv_aix_libpath_"; then
10616: lt_cv_aix_libpath_="/usr/lib:/lib"
10617: fi
10618:
10619: fi
10620:
10621: aix_libpath=$lt_cv_aix_libpath_
10622: fi
10623:
10624: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10625: # Warning - without using the other run time loading flags,
10626: # -berok will link without error, but may produce a broken library.
10627: no_undefined_flag=' ${wl}-bernotok'
10628: allow_undefined_flag=' ${wl}-berok'
10629: if test "$with_gnu_ld" = yes; then
10630: # We only use this code for GNU lds that support --whole-archive.
10631: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10632: else
10633: # Exported symbols can be pulled into shared objects from archives
10634: whole_archive_flag_spec='$convenience'
10635: fi
10636: archive_cmds_need_lc=yes
10637: # This is similar to how AIX traditionally builds its shared libraries.
10638: 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'
10639: fi
10640: fi
10641: ;;
10642:
10643: amigaos*)
10644: case $host_cpu in
10645: powerpc)
10646: # see comment about AmigaOS4 .so support
10647: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10648: archive_expsym_cmds=''
10649: ;;
10650: m68k)
10651: 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)'
10652: hardcode_libdir_flag_spec='-L$libdir'
10653: hardcode_minus_L=yes
10654: ;;
10655: esac
10656: ;;
10657:
10658: bsdi[45]*)
10659: export_dynamic_flag_spec=-rdynamic
10660: ;;
10661:
10662: cygwin* | mingw* | pw32* | cegcc*)
10663: # When not using gcc, we currently assume that we are using
10664: # Microsoft Visual C++.
10665: # hardcode_libdir_flag_spec is actually meaningless, as there is
10666: # no search path for DLLs.
10667: case $cc_basename in
10668: cl*)
10669: # Native MSVC
10670: hardcode_libdir_flag_spec=' '
10671: allow_undefined_flag=unsupported
10672: always_export_symbols=yes
10673: file_list_spec='@'
10674: # Tell ltmain to make .lib files, not .a files.
10675: libext=lib
10676: # Tell ltmain to make .dll files, not .so files.
10677: shrext_cmds=".dll"
10678: # FIXME: Setting linknames here is a bad hack.
10679: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10680: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10681: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10682: else
10683: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10684: fi~
10685: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10686: linknames='
10687: # The linker will not automatically build a static lib if we build a DLL.
10688: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10689: enable_shared_with_static_runtimes=yes
10690: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10691: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10692: # Don't use ranlib
10693: old_postinstall_cmds='chmod 644 $oldlib'
10694: postlink_cmds='lt_outputfile="@OUTPUT@"~
10695: lt_tool_outputfile="@TOOL_OUTPUT@"~
10696: case $lt_outputfile in
10697: *.exe|*.EXE) ;;
10698: *)
10699: lt_outputfile="$lt_outputfile.exe"
10700: lt_tool_outputfile="$lt_tool_outputfile.exe"
10701: ;;
10702: esac~
10703: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10704: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10705: $RM "$lt_outputfile.manifest";
10706: fi'
10707: ;;
10708: *)
10709: # Assume MSVC wrapper
10710: hardcode_libdir_flag_spec=' '
10711: allow_undefined_flag=unsupported
10712: # Tell ltmain to make .lib files, not .a files.
10713: libext=lib
10714: # Tell ltmain to make .dll files, not .so files.
10715: shrext_cmds=".dll"
10716: # FIXME: Setting linknames here is a bad hack.
10717: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10718: # The linker will automatically build a .lib file if we build a DLL.
10719: old_archive_from_new_cmds='true'
10720: # FIXME: Should let the user specify the lib program.
10721: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10722: enable_shared_with_static_runtimes=yes
10723: ;;
10724: esac
10725: ;;
10726:
10727: darwin* | rhapsody*)
10728:
10729:
10730: archive_cmds_need_lc=no
10731: hardcode_direct=no
10732: hardcode_automatic=yes
10733: hardcode_shlibpath_var=unsupported
10734: if test "$lt_cv_ld_force_load" = "yes"; then
10735: 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\"`'
10736:
10737: else
10738: whole_archive_flag_spec=''
10739: fi
10740: link_all_deplibs=yes
10741: allow_undefined_flag="$_lt_dar_allow_undefined"
10742: case $cc_basename in
10743: ifort*) _lt_dar_can_shared=yes ;;
10744: *) _lt_dar_can_shared=$GCC ;;
10745: esac
10746: if test "$_lt_dar_can_shared" = "yes"; then
10747: output_verbose_link_cmd=func_echo_all
10748: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10749: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10750: 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}"
10751: 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}"
10752:
10753: else
10754: ld_shlibs=no
10755: fi
10756:
10757: ;;
10758:
10759: dgux*)
10760: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10761: hardcode_libdir_flag_spec='-L$libdir'
10762: hardcode_shlibpath_var=no
10763: ;;
10764:
10765: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10766: # support. Future versions do this automatically, but an explicit c++rt0.o
10767: # does not break anything, and helps significantly (at the cost of a little
10768: # extra space).
10769: freebsd2.2*)
10770: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10771: hardcode_libdir_flag_spec='-R$libdir'
10772: hardcode_direct=yes
10773: hardcode_shlibpath_var=no
10774: ;;
10775:
10776: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10777: freebsd2.*)
10778: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10779: hardcode_direct=yes
10780: hardcode_minus_L=yes
10781: hardcode_shlibpath_var=no
10782: ;;
10783:
10784: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10785: freebsd* | dragonfly*)
10786: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10787: hardcode_libdir_flag_spec='-R$libdir'
10788: hardcode_direct=yes
10789: hardcode_shlibpath_var=no
10790: ;;
10791:
10792: hpux9*)
10793: if test "$GCC" = yes; then
10794: 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'
10795: else
10796: 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'
10797: fi
10798: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10799: hardcode_libdir_separator=:
10800: hardcode_direct=yes
10801:
10802: # hardcode_minus_L: Not really in the search PATH,
10803: # but as the default location of the library.
10804: hardcode_minus_L=yes
10805: export_dynamic_flag_spec='${wl}-E'
10806: ;;
10807:
10808: hpux10*)
10809: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10810: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10811: else
10812: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10813: fi
10814: if test "$with_gnu_ld" = no; then
10815: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10816: hardcode_libdir_separator=:
10817: hardcode_direct=yes
10818: hardcode_direct_absolute=yes
10819: export_dynamic_flag_spec='${wl}-E'
10820: # hardcode_minus_L: Not really in the search PATH,
10821: # but as the default location of the library.
10822: hardcode_minus_L=yes
10823: fi
10824: ;;
10825:
10826: hpux11*)
10827: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10828: case $host_cpu in
10829: hppa*64*)
10830: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10831: ;;
10832: ia64*)
10833: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10834: ;;
10835: *)
10836: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10837: ;;
10838: esac
10839: else
10840: case $host_cpu in
10841: hppa*64*)
10842: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10843: ;;
10844: ia64*)
10845: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10846: ;;
10847: *)
10848:
10849: # Older versions of the 11.00 compiler do not understand -b yet
10850: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.150 moko 10851: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10852: $as_echo_n "checking if $CC understands -b... " >&6; }
10853: if ${lt_cv_prog_compiler__b+:} false; then :
10854: $as_echo_n "(cached) " >&6
1.128 moko 10855: else
10856: lt_cv_prog_compiler__b=no
10857: save_LDFLAGS="$LDFLAGS"
10858: LDFLAGS="$LDFLAGS -b"
10859: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10860: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10861: # The linker can only warn and ignore the option if not recognized
10862: # So say no if there are warnings
10863: if test -s conftest.err; then
10864: # Append any errors to the config.log.
10865: cat conftest.err 1>&5
10866: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10867: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10868: if diff conftest.exp conftest.er2 >/dev/null; then
10869: lt_cv_prog_compiler__b=yes
10870: fi
10871: else
10872: lt_cv_prog_compiler__b=yes
10873: fi
10874: fi
10875: $RM -r conftest*
10876: LDFLAGS="$save_LDFLAGS"
10877:
10878: fi
1.150 moko 10879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10880: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 10881:
10882: if test x"$lt_cv_prog_compiler__b" = xyes; then
10883: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10884: else
10885: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10886: fi
10887:
10888: ;;
10889: esac
10890: fi
10891: if test "$with_gnu_ld" = no; then
10892: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10893: hardcode_libdir_separator=:
10894:
10895: case $host_cpu in
10896: hppa*64*|ia64*)
10897: hardcode_direct=no
10898: hardcode_shlibpath_var=no
10899: ;;
10900: *)
10901: hardcode_direct=yes
10902: hardcode_direct_absolute=yes
10903: export_dynamic_flag_spec='${wl}-E'
10904:
10905: # hardcode_minus_L: Not really in the search PATH,
10906: # but as the default location of the library.
10907: hardcode_minus_L=yes
10908: ;;
10909: esac
10910: fi
10911: ;;
10912:
10913: irix5* | irix6* | nonstopux*)
10914: if test "$GCC" = yes; then
10915: 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'
10916: # Try to use the -exported_symbol ld option, if it does not
10917: # work, assume that -exports_file does not work either and
10918: # implicitly export all symbols.
10919: # This should be the same for all languages, so no per-tag cache variable.
1.150 moko 10920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10921: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10922: if ${lt_cv_irix_exported_symbol+:} false; then :
10923: $as_echo_n "(cached) " >&6
1.128 moko 10924: else
10925: save_LDFLAGS="$LDFLAGS"
10926: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.150 moko 10927: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10928: /* end confdefs.h. */
10929: int foo (void) { return 0; }
10930: _ACEOF
1.150 moko 10931: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10932: lt_cv_irix_exported_symbol=yes
10933: else
1.150 moko 10934: lt_cv_irix_exported_symbol=no
1.128 moko 10935: fi
1.150 moko 10936: rm -f core conftest.err conftest.$ac_objext \
10937: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10938: LDFLAGS="$save_LDFLAGS"
10939: fi
1.150 moko 10940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10941: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.128 moko 10942: if test "$lt_cv_irix_exported_symbol" = yes; then
10943: 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'
10944: fi
10945: else
10946: 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'
10947: 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'
10948: fi
10949: archive_cmds_need_lc='no'
10950: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10951: hardcode_libdir_separator=:
10952: inherit_rpath=yes
10953: link_all_deplibs=yes
10954: ;;
10955:
10956: netbsd*)
10957: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10958: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10959: else
10960: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10961: fi
10962: hardcode_libdir_flag_spec='-R$libdir'
10963: hardcode_direct=yes
10964: hardcode_shlibpath_var=no
10965: ;;
10966:
10967: newsos6)
10968: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969: hardcode_direct=yes
10970: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10971: hardcode_libdir_separator=:
10972: hardcode_shlibpath_var=no
10973: ;;
10974:
10975: *nto* | *qnx*)
10976: ;;
10977:
10978: openbsd*)
10979: if test -f /usr/libexec/ld.so; then
10980: hardcode_direct=yes
10981: hardcode_shlibpath_var=no
10982: hardcode_direct_absolute=yes
10983: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10984: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10985: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10986: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10987: export_dynamic_flag_spec='${wl}-E'
10988: else
10989: case $host_os in
10990: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10991: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10992: hardcode_libdir_flag_spec='-R$libdir'
10993: ;;
10994: *)
10995: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10996: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10997: ;;
10998: esac
10999: fi
11000: else
11001: ld_shlibs=no
11002: fi
11003: ;;
11004:
11005: os2*)
11006: hardcode_libdir_flag_spec='-L$libdir'
11007: hardcode_minus_L=yes
11008: allow_undefined_flag=unsupported
11009: 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'
11010: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11011: ;;
11012:
11013: osf3*)
11014: if test "$GCC" = yes; then
11015: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11016: 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'
11017: else
11018: allow_undefined_flag=' -expect_unresolved \*'
11019: 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'
11020: fi
11021: archive_cmds_need_lc='no'
11022: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11023: hardcode_libdir_separator=:
11024: ;;
11025:
11026: osf4* | osf5*) # as osf3* with the addition of -msym flag
11027: if test "$GCC" = yes; then
11028: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11029: 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'
11030: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11031: else
11032: allow_undefined_flag=' -expect_unresolved \*'
11033: 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'
11034: 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~
11035: $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'
11036:
11037: # Both c and cxx compiler support -rpath directly
11038: hardcode_libdir_flag_spec='-rpath $libdir'
11039: fi
11040: archive_cmds_need_lc='no'
11041: hardcode_libdir_separator=:
11042: ;;
11043:
11044: solaris*)
11045: no_undefined_flag=' -z defs'
11046: if test "$GCC" = yes; then
11047: wlarc='${wl}'
11048: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11049: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11050: $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'
11051: else
11052: case `$CC -V 2>&1` in
11053: *"Compilers 5.0"*)
11054: wlarc=''
11055: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11056: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11057: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11058: ;;
11059: *)
11060: wlarc='${wl}'
11061: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11062: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11063: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11064: ;;
11065: esac
11066: fi
11067: hardcode_libdir_flag_spec='-R$libdir'
11068: hardcode_shlibpath_var=no
11069: case $host_os in
11070: solaris2.[0-5] | solaris2.[0-5].*) ;;
11071: *)
11072: # The compiler driver will combine and reorder linker options,
11073: # but understands `-z linker_flag'. GCC discards it without `$wl',
11074: # but is careful enough not to reorder.
11075: # Supported since Solaris 2.6 (maybe 2.5.1?)
11076: if test "$GCC" = yes; then
11077: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11078: else
11079: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11080: fi
11081: ;;
11082: esac
11083: link_all_deplibs=yes
11084: ;;
11085:
11086: sunos4*)
11087: if test "x$host_vendor" = xsequent; then
11088: # Use $CC to link under sequent, because it throws in some extra .o
11089: # files that make .init and .fini sections work.
11090: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11091: else
11092: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11093: fi
11094: hardcode_libdir_flag_spec='-L$libdir'
11095: hardcode_direct=yes
11096: hardcode_minus_L=yes
11097: hardcode_shlibpath_var=no
11098: ;;
11099:
11100: sysv4)
11101: case $host_vendor in
11102: sni)
11103: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11104: hardcode_direct=yes # is this really true???
11105: ;;
11106: siemens)
11107: ## LD is ld it makes a PLAMLIB
11108: ## CC just makes a GrossModule.
11109: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11110: reload_cmds='$CC -r -o $output$reload_objs'
11111: hardcode_direct=no
11112: ;;
11113: motorola)
11114: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11115: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11116: ;;
11117: esac
11118: runpath_var='LD_RUN_PATH'
11119: hardcode_shlibpath_var=no
11120: ;;
11121:
11122: sysv4.3*)
11123: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11124: hardcode_shlibpath_var=no
11125: export_dynamic_flag_spec='-Bexport'
11126: ;;
11127:
11128: sysv4*MP*)
11129: if test -d /usr/nec; then
11130: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11131: hardcode_shlibpath_var=no
11132: runpath_var=LD_RUN_PATH
11133: hardcode_runpath_var=yes
11134: ld_shlibs=yes
11135: fi
11136: ;;
11137:
11138: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11139: no_undefined_flag='${wl}-z,text'
11140: archive_cmds_need_lc=no
11141: hardcode_shlibpath_var=no
11142: runpath_var='LD_RUN_PATH'
11143:
11144: if test "$GCC" = yes; then
11145: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11146: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11147: else
11148: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11149: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11150: fi
11151: ;;
11152:
11153: sysv5* | sco3.2v5* | sco5v6*)
11154: # Note: We can NOT use -z defs as we might desire, because we do not
11155: # link with -lc, and that would cause any symbols used from libc to
11156: # always be unresolved, which means just about no library would
11157: # ever link correctly. If we're not using GNU ld we use -z text
11158: # though, which does catch some bad symbols but isn't as heavy-handed
11159: # as -z defs.
11160: no_undefined_flag='${wl}-z,text'
11161: allow_undefined_flag='${wl}-z,nodefs'
11162: archive_cmds_need_lc=no
11163: hardcode_shlibpath_var=no
11164: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11165: hardcode_libdir_separator=':'
11166: link_all_deplibs=yes
11167: export_dynamic_flag_spec='${wl}-Bexport'
11168: runpath_var='LD_RUN_PATH'
11169:
11170: if test "$GCC" = yes; then
11171: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11172: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11173: else
11174: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11175: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11176: fi
11177: ;;
11178:
11179: uts4*)
11180: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11181: hardcode_libdir_flag_spec='-L$libdir'
11182: hardcode_shlibpath_var=no
11183: ;;
11184:
11185: *)
11186: ld_shlibs=no
11187: ;;
11188: esac
11189:
11190: if test x$host_vendor = xsni; then
11191: case $host in
11192: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11193: export_dynamic_flag_spec='${wl}-Blargedynsym'
11194: ;;
11195: esac
11196: fi
11197: fi
11198:
1.150 moko 11199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11200: $as_echo "$ld_shlibs" >&6; }
1.128 moko 11201: test "$ld_shlibs" = no && can_build_shared=no
11202:
11203: with_gnu_ld=$with_gnu_ld
11204:
11205:
11206:
11207:
11208:
11209:
11210:
11211:
11212:
11213:
11214:
11215:
11216:
11217:
11218:
11219: #
11220: # Do we need to explicitly link libc?
11221: #
11222: case "x$archive_cmds_need_lc" in
11223: x|xyes)
11224: # Assume -lc should be added
11225: archive_cmds_need_lc=yes
11226:
11227: if test "$enable_shared" = yes && test "$GCC" = yes; then
11228: case $archive_cmds in
11229: *'~'*)
11230: # FIXME: we may have to deal with multi-command sequences.
11231: ;;
11232: '$CC '*)
11233: # Test whether the compiler implicitly links with -lc since on some
11234: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11235: # to ld, don't add -lc before -lgcc.
1.150 moko 11236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11237: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11238: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11239: $as_echo_n "(cached) " >&6
1.128 moko 11240: else
11241: $RM conftest*
11242: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11243:
1.150 moko 11244: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 11245: (eval $ac_compile) 2>&5
11246: ac_status=$?
1.150 moko 11247: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11248: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 11249: soname=conftest
11250: lib=conftest
11251: libobjs=conftest.$ac_objext
11252: deplibs=
11253: wl=$lt_prog_compiler_wl
11254: pic_flag=$lt_prog_compiler_pic
11255: compiler_flags=-v
11256: linker_flags=-v
11257: verstring=
11258: output_objdir=.
11259: libname=conftest
11260: lt_save_allow_undefined_flag=$allow_undefined_flag
11261: allow_undefined_flag=
1.150 moko 11262: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 11263: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11264: ac_status=$?
1.150 moko 11265: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11266: test $ac_status = 0; }
1.128 moko 11267: then
11268: lt_cv_archive_cmds_need_lc=no
11269: else
11270: lt_cv_archive_cmds_need_lc=yes
11271: fi
11272: allow_undefined_flag=$lt_save_allow_undefined_flag
11273: else
11274: cat conftest.err 1>&5
11275: fi
11276: $RM conftest*
11277:
11278: fi
1.150 moko 11279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11280: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 11281: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11282: ;;
11283: esac
11284: fi
11285: ;;
11286: esac
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:
11437:
11438:
1.150 moko 11439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11440: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 11441:
11442: if test "$GCC" = yes; then
11443: case $host_os in
11444: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11445: *) lt_awk_arg="/^libraries:/" ;;
11446: esac
11447: case $host_os in
11448: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11449: *) lt_sed_strip_eq="s,=/,/,g" ;;
11450: esac
11451: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11452: case $lt_search_path_spec in
11453: *\;*)
11454: # if the path contains ";" then we assume it to be the separator
11455: # otherwise default to the standard path separator (i.e. ":") - it is
11456: # assumed that no part of a normal pathname contains ";" but that should
11457: # okay in the real world where ";" in dirpaths is itself problematic.
11458: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11459: ;;
11460: *)
11461: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11462: ;;
11463: esac
11464: # Ok, now we have the path, separated by spaces, we can step through it
11465: # and add multilib dir if necessary.
11466: lt_tmp_lt_search_path_spec=
11467: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11468: for lt_sys_path in $lt_search_path_spec; do
11469: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11470: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11471: else
11472: test -d "$lt_sys_path" && \
11473: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11474: fi
11475: done
11476: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11477: BEGIN {RS=" "; FS="/|\n";} {
11478: lt_foo="";
11479: lt_count=0;
11480: for (lt_i = NF; lt_i > 0; lt_i--) {
11481: if ($lt_i != "" && $lt_i != ".") {
11482: if ($lt_i == "..") {
11483: lt_count++;
11484: } else {
11485: if (lt_count == 0) {
11486: lt_foo="/" $lt_i lt_foo;
11487: } else {
11488: lt_count--;
11489: }
11490: }
11491: }
11492: }
11493: if (lt_foo != "") { lt_freq[lt_foo]++; }
11494: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11495: }'`
11496: # AWK program above erroneously prepends '/' to C:/dos/paths
11497: # for these hosts.
11498: case $host_os in
11499: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11500: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11501: esac
11502: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11503: else
11504: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11505: fi
11506: library_names_spec=
11507: libname_spec='lib$name'
11508: soname_spec=
11509: shrext_cmds=".so"
11510: postinstall_cmds=
11511: postuninstall_cmds=
11512: finish_cmds=
11513: finish_eval=
11514: shlibpath_var=
11515: shlibpath_overrides_runpath=unknown
11516: version_type=none
11517: dynamic_linker="$host_os ld.so"
11518: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11519: need_lib_prefix=unknown
11520: hardcode_into_libs=no
11521:
11522: # when you set need_version to no, make sure it does not cause -set_version
11523: # flags to be left without arguments
11524: need_version=unknown
11525:
11526: case $host_os in
11527: aix3*)
11528: version_type=linux # correct to gnu/linux during the next big refactor
11529: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11530: shlibpath_var=LIBPATH
11531:
11532: # AIX 3 has no versioning support, so we append a major version to the name.
11533: soname_spec='${libname}${release}${shared_ext}$major'
11534: ;;
11535:
11536: aix[4-9]*)
11537: version_type=linux # correct to gnu/linux during the next big refactor
11538: need_lib_prefix=no
11539: need_version=no
11540: hardcode_into_libs=yes
11541: if test "$host_cpu" = ia64; then
11542: # AIX 5 supports IA64
11543: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11544: shlibpath_var=LD_LIBRARY_PATH
11545: else
11546: # With GCC up to 2.95.x, collect2 would create an import file
11547: # for dependence libraries. The import file would start with
11548: # the line `#! .'. This would cause the generated library to
11549: # depend on `.', always an invalid library. This was fixed in
11550: # development snapshots of GCC prior to 3.0.
11551: case $host_os in
11552: aix4 | aix4.[01] | aix4.[01].*)
11553: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11554: echo ' yes '
11555: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11556: :
11557: else
11558: can_build_shared=no
11559: fi
11560: ;;
11561: esac
11562: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11563: # soname into executable. Probably we can add versioning support to
11564: # collect2, so additional links can be useful in future.
11565: if test "$aix_use_runtimelinking" = yes; then
11566: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11567: # instead of lib<name>.a to let people know that these are not
11568: # typical AIX shared libraries.
11569: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570: else
11571: # We preserve .a as extension for shared libraries through AIX4.2
11572: # and later when we are not doing run time linking.
11573: library_names_spec='${libname}${release}.a $libname.a'
11574: soname_spec='${libname}${release}${shared_ext}$major'
11575: fi
11576: shlibpath_var=LIBPATH
11577: fi
11578: ;;
11579:
11580: amigaos*)
11581: case $host_cpu in
11582: powerpc)
11583: # Since July 2007 AmigaOS4 officially supports .so libraries.
11584: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11585: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586: ;;
11587: m68k)
11588: library_names_spec='$libname.ixlibrary $libname.a'
11589: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11590: 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'
11591: ;;
11592: esac
11593: ;;
11594:
11595: beos*)
11596: library_names_spec='${libname}${shared_ext}'
11597: dynamic_linker="$host_os ld.so"
11598: shlibpath_var=LIBRARY_PATH
11599: ;;
11600:
11601: bsdi[45]*)
11602: version_type=linux # correct to gnu/linux during the next big refactor
11603: need_version=no
11604: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605: soname_spec='${libname}${release}${shared_ext}$major'
11606: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11607: shlibpath_var=LD_LIBRARY_PATH
11608: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11609: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11610: # the default ld.so.conf also contains /usr/contrib/lib and
11611: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11612: # libtool to hard-code these into programs
11613: ;;
11614:
11615: cygwin* | mingw* | pw32* | cegcc*)
11616: version_type=windows
11617: shrext_cmds=".dll"
11618: need_version=no
11619: need_lib_prefix=no
11620:
11621: case $GCC,$cc_basename in
11622: yes,*)
11623: # gcc
11624: library_names_spec='$libname.dll.a'
11625: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11626: postinstall_cmds='base_file=`basename \${file}`~
11627: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11628: dldir=$destdir/`dirname \$dlpath`~
11629: test -d \$dldir || mkdir -p \$dldir~
11630: $install_prog $dir/$dlname \$dldir/$dlname~
11631: chmod a+x \$dldir/$dlname~
11632: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11633: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11634: fi'
11635: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11636: dlpath=$dir/\$dldll~
11637: $RM \$dlpath'
11638: shlibpath_overrides_runpath=yes
11639:
11640: case $host_os in
11641: cygwin*)
11642: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11643: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11644:
11645: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11646: ;;
11647: mingw* | cegcc*)
11648: # MinGW DLLs use traditional 'lib' prefix
11649: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11650: ;;
11651: pw32*)
11652: # pw32 DLLs use 'pw' prefix rather than 'lib'
11653: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11654: ;;
11655: esac
11656: dynamic_linker='Win32 ld.exe'
11657: ;;
11658:
11659: *,cl*)
11660: # Native MSVC
11661: libname_spec='$name'
11662: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11663: library_names_spec='${libname}.dll.lib'
11664:
11665: case $build_os in
11666: mingw*)
11667: sys_lib_search_path_spec=
11668: lt_save_ifs=$IFS
11669: IFS=';'
11670: for lt_path in $LIB
11671: do
11672: IFS=$lt_save_ifs
11673: # Let DOS variable expansion print the short 8.3 style file name.
11674: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11675: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11676: done
11677: IFS=$lt_save_ifs
11678: # Convert to MSYS style.
11679: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11680: ;;
11681: cygwin*)
11682: # Convert to unix form, then to dos form, then back to unix form
11683: # but this time dos style (no spaces!) so that the unix form looks
11684: # like /cygdrive/c/PROGRA~1:/cygdr...
11685: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11686: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11687: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11688: ;;
11689: *)
11690: sys_lib_search_path_spec="$LIB"
11691: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11692: # It is most probably a Windows format PATH.
11693: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11694: else
11695: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11696: fi
11697: # FIXME: find the short name or the path components, as spaces are
11698: # common. (e.g. "Program Files" -> "PROGRA~1")
11699: ;;
11700: esac
11701:
11702: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11703: postinstall_cmds='base_file=`basename \${file}`~
11704: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11705: dldir=$destdir/`dirname \$dlpath`~
11706: test -d \$dldir || mkdir -p \$dldir~
11707: $install_prog $dir/$dlname \$dldir/$dlname'
11708: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11709: dlpath=$dir/\$dldll~
11710: $RM \$dlpath'
11711: shlibpath_overrides_runpath=yes
11712: dynamic_linker='Win32 link.exe'
11713: ;;
11714:
11715: *)
11716: # Assume MSVC wrapper
11717: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11718: dynamic_linker='Win32 ld.exe'
11719: ;;
11720: esac
11721: # FIXME: first we should search . and the directory the executable is in
11722: shlibpath_var=PATH
11723: ;;
11724:
11725: darwin* | rhapsody*)
11726: dynamic_linker="$host_os dyld"
11727: version_type=darwin
11728: need_lib_prefix=no
11729: need_version=no
11730: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11731: soname_spec='${libname}${release}${major}$shared_ext'
11732: shlibpath_overrides_runpath=yes
11733: shlibpath_var=DYLD_LIBRARY_PATH
11734: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11735:
11736: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11737: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11738: ;;
11739:
11740: dgux*)
11741: version_type=linux # correct to gnu/linux during the next big refactor
11742: need_lib_prefix=no
11743: need_version=no
11744: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11745: soname_spec='${libname}${release}${shared_ext}$major'
11746: shlibpath_var=LD_LIBRARY_PATH
11747: ;;
11748:
11749: freebsd* | dragonfly*)
11750: # DragonFly does not have aout. When/if they implement a new
11751: # versioning mechanism, adjust this.
11752: if test -x /usr/bin/objformat; then
11753: objformat=`/usr/bin/objformat`
11754: else
11755: case $host_os in
11756: freebsd[23].*) objformat=aout ;;
11757: *) objformat=elf ;;
11758: esac
11759: fi
11760: version_type=freebsd-$objformat
11761: case $version_type in
11762: freebsd-elf*)
11763: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11764: need_version=no
11765: need_lib_prefix=no
11766: ;;
11767: freebsd-*)
11768: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11769: need_version=yes
11770: ;;
11771: esac
11772: shlibpath_var=LD_LIBRARY_PATH
11773: case $host_os in
11774: freebsd2.*)
11775: shlibpath_overrides_runpath=yes
11776: ;;
11777: freebsd3.[01]* | freebsdelf3.[01]*)
11778: shlibpath_overrides_runpath=yes
11779: hardcode_into_libs=yes
11780: ;;
11781: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11782: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11783: shlibpath_overrides_runpath=no
11784: hardcode_into_libs=yes
11785: ;;
11786: *) # from 4.6 on, and DragonFly
11787: shlibpath_overrides_runpath=yes
11788: hardcode_into_libs=yes
11789: ;;
11790: esac
11791: ;;
11792:
11793: gnu*)
11794: version_type=linux # correct to gnu/linux during the next big refactor
11795: need_lib_prefix=no
11796: need_version=no
11797: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11798: soname_spec='${libname}${release}${shared_ext}$major'
11799: shlibpath_var=LD_LIBRARY_PATH
11800: shlibpath_overrides_runpath=no
11801: hardcode_into_libs=yes
11802: ;;
11803:
11804: haiku*)
11805: version_type=linux # correct to gnu/linux during the next big refactor
11806: need_lib_prefix=no
11807: need_version=no
11808: dynamic_linker="$host_os runtime_loader"
11809: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11810: soname_spec='${libname}${release}${shared_ext}$major'
11811: shlibpath_var=LIBRARY_PATH
11812: shlibpath_overrides_runpath=yes
11813: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11814: hardcode_into_libs=yes
11815: ;;
11816:
11817: hpux9* | hpux10* | hpux11*)
11818: # Give a soname corresponding to the major version so that dld.sl refuses to
11819: # link against other versions.
11820: version_type=sunos
11821: need_lib_prefix=no
11822: need_version=no
11823: case $host_cpu in
11824: ia64*)
11825: shrext_cmds='.so'
11826: hardcode_into_libs=yes
11827: dynamic_linker="$host_os dld.so"
11828: shlibpath_var=LD_LIBRARY_PATH
11829: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11830: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831: soname_spec='${libname}${release}${shared_ext}$major'
11832: if test "X$HPUX_IA64_MODE" = X32; then
11833: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11834: else
11835: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11836: fi
11837: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11838: ;;
11839: hppa*64*)
11840: shrext_cmds='.sl'
11841: hardcode_into_libs=yes
11842: dynamic_linker="$host_os dld.sl"
11843: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11844: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11845: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11846: soname_spec='${libname}${release}${shared_ext}$major'
11847: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11848: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11849: ;;
11850: *)
11851: shrext_cmds='.sl'
11852: dynamic_linker="$host_os dld.sl"
11853: shlibpath_var=SHLIB_PATH
11854: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11855: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856: soname_spec='${libname}${release}${shared_ext}$major'
11857: ;;
11858: esac
11859: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11860: postinstall_cmds='chmod 555 $lib'
11861: # or fails outright, so override atomically:
11862: install_override_mode=555
11863: ;;
11864:
11865: interix[3-9]*)
11866: version_type=linux # correct to gnu/linux during the next big refactor
11867: need_lib_prefix=no
11868: need_version=no
11869: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11870: soname_spec='${libname}${release}${shared_ext}$major'
11871: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11872: shlibpath_var=LD_LIBRARY_PATH
11873: shlibpath_overrides_runpath=no
11874: hardcode_into_libs=yes
11875: ;;
11876:
11877: irix5* | irix6* | nonstopux*)
11878: case $host_os in
11879: nonstopux*) version_type=nonstopux ;;
11880: *)
11881: if test "$lt_cv_prog_gnu_ld" = yes; then
11882: version_type=linux # correct to gnu/linux during the next big refactor
11883: else
11884: version_type=irix
11885: fi ;;
11886: esac
11887: need_lib_prefix=no
11888: need_version=no
11889: soname_spec='${libname}${release}${shared_ext}$major'
11890: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11891: case $host_os in
11892: irix5* | nonstopux*)
11893: libsuff= shlibsuff=
11894: ;;
11895: *)
11896: case $LD in # libtool.m4 will add one of these switches to LD
11897: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11898: libsuff= shlibsuff= libmagic=32-bit;;
11899: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11900: libsuff=32 shlibsuff=N32 libmagic=N32;;
11901: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11902: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11903: *) libsuff= shlibsuff= libmagic=never-match;;
11904: esac
11905: ;;
11906: esac
11907: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11908: shlibpath_overrides_runpath=no
11909: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11910: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11911: hardcode_into_libs=yes
11912: ;;
11913:
11914: # No shared lib support for Linux oldld, aout, or coff.
11915: linux*oldld* | linux*aout* | linux*coff*)
11916: dynamic_linker=no
11917: ;;
11918:
11919: # This must be glibc/ELF.
11920: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11921: version_type=linux # correct to gnu/linux during the next big refactor
11922: need_lib_prefix=no
11923: need_version=no
11924: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11925: soname_spec='${libname}${release}${shared_ext}$major'
11926: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11927: shlibpath_var=LD_LIBRARY_PATH
11928: shlibpath_overrides_runpath=no
11929:
11930: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 11931: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11932: $as_echo_n "(cached) " >&6
1.128 moko 11933: else
11934: lt_cv_shlibpath_overrides_runpath=no
11935: save_LDFLAGS=$LDFLAGS
11936: save_libdir=$libdir
11937: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11938: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 11939: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 11940: /* end confdefs.h. */
11941:
11942: int
11943: main ()
11944: {
11945:
11946: ;
11947: return 0;
11948: }
11949: _ACEOF
1.150 moko 11950: if ac_fn_c_try_link "$LINENO"; then :
11951: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 11952: lt_cv_shlibpath_overrides_runpath=yes
11953: fi
11954: fi
1.150 moko 11955: rm -f core conftest.err conftest.$ac_objext \
11956: conftest$ac_exeext conftest.$ac_ext
1.128 moko 11957: LDFLAGS=$save_LDFLAGS
11958: libdir=$save_libdir
11959:
11960: fi
11961:
11962: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11963:
11964: # This implies no fast_install, which is unacceptable.
11965: # Some rework will be needed to allow for fast_install
11966: # before this can be enabled.
11967: hardcode_into_libs=yes
11968:
11969: # Append ld.so.conf contents to the search path
11970: if test -f /etc/ld.so.conf; then
11971: 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' ' '`
11972: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11973: fi
11974:
11975: # We used to test for /lib/ld.so.1 and disable shared libraries on
11976: # powerpc, because MkLinux only supported shared libraries with the
11977: # GNU dynamic linker. Since this was broken with cross compilers,
11978: # most powerpc-linux boxes support dynamic linking these days and
11979: # people can always --disable-shared, the test was removed, and we
11980: # assume the GNU/Linux dynamic linker is in use.
11981: dynamic_linker='GNU/Linux ld.so'
11982: ;;
11983:
11984: netbsd*)
11985: version_type=sunos
11986: need_lib_prefix=no
11987: need_version=no
11988: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11989: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11990: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11991: dynamic_linker='NetBSD (a.out) ld.so'
11992: else
11993: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11994: soname_spec='${libname}${release}${shared_ext}$major'
11995: dynamic_linker='NetBSD ld.elf_so'
11996: fi
11997: shlibpath_var=LD_LIBRARY_PATH
11998: shlibpath_overrides_runpath=yes
11999: hardcode_into_libs=yes
12000: ;;
12001:
12002: newsos6)
12003: version_type=linux # correct to gnu/linux during the next big refactor
12004: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12005: shlibpath_var=LD_LIBRARY_PATH
12006: shlibpath_overrides_runpath=yes
12007: ;;
12008:
12009: *nto* | *qnx*)
12010: version_type=qnx
12011: need_lib_prefix=no
12012: need_version=no
12013: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12014: soname_spec='${libname}${release}${shared_ext}$major'
12015: shlibpath_var=LD_LIBRARY_PATH
12016: shlibpath_overrides_runpath=no
12017: hardcode_into_libs=yes
12018: dynamic_linker='ldqnx.so'
12019: ;;
12020:
12021: openbsd*)
12022: version_type=sunos
12023: sys_lib_dlsearch_path_spec="/usr/lib"
12024: need_lib_prefix=no
12025: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12026: case $host_os in
12027: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12028: *) need_version=no ;;
12029: esac
12030: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12031: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12032: shlibpath_var=LD_LIBRARY_PATH
12033: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12034: case $host_os in
12035: openbsd2.[89] | openbsd2.[89].*)
12036: shlibpath_overrides_runpath=no
12037: ;;
12038: *)
12039: shlibpath_overrides_runpath=yes
12040: ;;
12041: esac
12042: else
12043: shlibpath_overrides_runpath=yes
12044: fi
12045: ;;
12046:
12047: os2*)
12048: libname_spec='$name'
12049: shrext_cmds=".dll"
12050: need_lib_prefix=no
12051: library_names_spec='$libname${shared_ext} $libname.a'
12052: dynamic_linker='OS/2 ld.exe'
12053: shlibpath_var=LIBPATH
12054: ;;
12055:
12056: osf3* | osf4* | osf5*)
12057: version_type=osf
12058: need_lib_prefix=no
12059: need_version=no
12060: soname_spec='${libname}${release}${shared_ext}$major'
12061: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062: shlibpath_var=LD_LIBRARY_PATH
12063: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12064: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12065: ;;
12066:
12067: rdos*)
12068: dynamic_linker=no
12069: ;;
12070:
12071: solaris*)
12072: version_type=linux # correct to gnu/linux during the next big refactor
12073: need_lib_prefix=no
12074: need_version=no
12075: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076: soname_spec='${libname}${release}${shared_ext}$major'
12077: shlibpath_var=LD_LIBRARY_PATH
12078: shlibpath_overrides_runpath=yes
12079: hardcode_into_libs=yes
12080: # ldd complains unless libraries are executable
12081: postinstall_cmds='chmod +x $lib'
12082: ;;
12083:
12084: sunos4*)
12085: version_type=sunos
12086: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12087: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12088: shlibpath_var=LD_LIBRARY_PATH
12089: shlibpath_overrides_runpath=yes
12090: if test "$with_gnu_ld" = yes; then
12091: need_lib_prefix=no
12092: fi
12093: need_version=yes
12094: ;;
12095:
12096: sysv4 | sysv4.3*)
12097: version_type=linux # correct to gnu/linux during the next big refactor
12098: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12099: soname_spec='${libname}${release}${shared_ext}$major'
12100: shlibpath_var=LD_LIBRARY_PATH
12101: case $host_vendor in
12102: sni)
12103: shlibpath_overrides_runpath=no
12104: need_lib_prefix=no
12105: runpath_var=LD_RUN_PATH
12106: ;;
12107: siemens)
12108: need_lib_prefix=no
12109: ;;
12110: motorola)
12111: need_lib_prefix=no
12112: need_version=no
12113: shlibpath_overrides_runpath=no
12114: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12115: ;;
12116: esac
12117: ;;
12118:
12119: sysv4*MP*)
12120: if test -d /usr/nec ;then
12121: version_type=linux # correct to gnu/linux during the next big refactor
12122: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12123: soname_spec='$libname${shared_ext}.$major'
12124: shlibpath_var=LD_LIBRARY_PATH
12125: fi
12126: ;;
12127:
12128: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12129: version_type=freebsd-elf
12130: need_lib_prefix=no
12131: need_version=no
12132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12133: soname_spec='${libname}${release}${shared_ext}$major'
12134: shlibpath_var=LD_LIBRARY_PATH
12135: shlibpath_overrides_runpath=yes
12136: hardcode_into_libs=yes
12137: if test "$with_gnu_ld" = yes; then
12138: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12139: else
12140: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12141: case $host_os in
12142: sco3.2v5*)
12143: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12144: ;;
12145: esac
12146: fi
12147: sys_lib_dlsearch_path_spec='/usr/lib'
12148: ;;
12149:
12150: tpf*)
12151: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12152: version_type=linux # correct to gnu/linux during the next big refactor
12153: need_lib_prefix=no
12154: need_version=no
12155: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12156: shlibpath_var=LD_LIBRARY_PATH
12157: shlibpath_overrides_runpath=no
12158: hardcode_into_libs=yes
12159: ;;
12160:
12161: uts4*)
12162: version_type=linux # correct to gnu/linux during the next big refactor
12163: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12164: soname_spec='${libname}${release}${shared_ext}$major'
12165: shlibpath_var=LD_LIBRARY_PATH
12166: ;;
12167:
12168: *)
12169: dynamic_linker=no
12170: ;;
12171: esac
1.150 moko 12172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12173: $as_echo "$dynamic_linker" >&6; }
1.128 moko 12174: test "$dynamic_linker" = no && can_build_shared=no
12175:
12176: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12177: if test "$GCC" = yes; then
12178: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12179: fi
12180:
12181: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12182: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12183: fi
12184: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12185: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12186: fi
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:
12277:
12278:
1.150 moko 12279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12280: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 12281: hardcode_action=
12282: if test -n "$hardcode_libdir_flag_spec" ||
12283: test -n "$runpath_var" ||
12284: test "X$hardcode_automatic" = "Xyes" ; then
12285:
12286: # We can hardcode non-existent directories.
12287: if test "$hardcode_direct" != no &&
12288: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12289: # have to relink, otherwise we might link with an installed library
12290: # when we should be linking with a yet-to-be-installed one
12291: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12292: test "$hardcode_minus_L" != no; then
12293: # Linking always hardcodes the temporary library directory.
12294: hardcode_action=relink
12295: else
12296: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12297: hardcode_action=immediate
12298: fi
12299: else
12300: # We cannot hardcode anything, or else we can only hardcode existing
12301: # directories.
12302: hardcode_action=unsupported
12303: fi
1.150 moko 12304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12305: $as_echo "$hardcode_action" >&6; }
1.128 moko 12306:
12307: if test "$hardcode_action" = relink ||
12308: test "$inherit_rpath" = yes; then
12309: # Fast installation is not supported
12310: enable_fast_install=no
12311: elif test "$shlibpath_overrides_runpath" = yes ||
12312: test "$enable_shared" = no; then
12313: # Fast installation is not necessary
12314: enable_fast_install=needless
12315: fi
12316:
12317:
12318:
12319:
12320:
12321:
12322: if test "x$enable_dlopen" != xyes; then
12323: enable_dlopen=unknown
12324: enable_dlopen_self=unknown
12325: enable_dlopen_self_static=unknown
12326: else
12327: lt_cv_dlopen=no
12328: lt_cv_dlopen_libs=
12329:
12330: case $host_os in
12331: beos*)
12332: lt_cv_dlopen="load_add_on"
12333: lt_cv_dlopen_libs=
12334: lt_cv_dlopen_self=yes
12335: ;;
12336:
12337: mingw* | pw32* | cegcc*)
12338: lt_cv_dlopen="LoadLibrary"
12339: lt_cv_dlopen_libs=
12340: ;;
12341:
12342: cygwin*)
12343: lt_cv_dlopen="dlopen"
12344: lt_cv_dlopen_libs=
12345: ;;
12346:
12347: darwin*)
12348: # if libdl is installed we need to link against it
1.150 moko 12349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12350: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12351: if ${ac_cv_lib_dl_dlopen+:} false; then :
12352: $as_echo_n "(cached) " >&6
1.128 moko 12353: else
12354: ac_check_lib_save_LIBS=$LIBS
12355: LIBS="-ldl $LIBS"
1.150 moko 12356: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12357: /* end confdefs.h. */
12358:
1.150 moko 12359: /* Override any GCC internal prototype to avoid an error.
12360: Use char because int might match the return type of a GCC
12361: builtin and then its argument prototype would still apply. */
1.128 moko 12362: #ifdef __cplusplus
12363: extern "C"
12364: #endif
12365: char dlopen ();
12366: int
12367: main ()
12368: {
1.150 moko 12369: return dlopen ();
1.128 moko 12370: ;
12371: return 0;
12372: }
12373: _ACEOF
1.150 moko 12374: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12375: ac_cv_lib_dl_dlopen=yes
12376: else
1.150 moko 12377: ac_cv_lib_dl_dlopen=no
1.128 moko 12378: fi
1.150 moko 12379: rm -f core conftest.err conftest.$ac_objext \
12380: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12381: LIBS=$ac_check_lib_save_LIBS
12382: fi
1.150 moko 12383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12384: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12385: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12386: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12387: else
12388:
12389: lt_cv_dlopen="dyld"
12390: lt_cv_dlopen_libs=
12391: lt_cv_dlopen_self=yes
12392:
12393: fi
12394:
12395: ;;
12396:
12397: *)
1.150 moko 12398: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12399: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 12400: lt_cv_dlopen="shl_load"
12401: else
1.150 moko 12402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12403: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12404: if ${ac_cv_lib_dld_shl_load+:} false; then :
12405: $as_echo_n "(cached) " >&6
1.128 moko 12406: else
12407: ac_check_lib_save_LIBS=$LIBS
12408: LIBS="-ldld $LIBS"
1.150 moko 12409: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12410: /* end confdefs.h. */
12411:
1.150 moko 12412: /* Override any GCC internal prototype to avoid an error.
12413: Use char because int might match the return type of a GCC
12414: builtin and then its argument prototype would still apply. */
1.128 moko 12415: #ifdef __cplusplus
12416: extern "C"
12417: #endif
12418: char shl_load ();
12419: int
12420: main ()
12421: {
1.150 moko 12422: return shl_load ();
1.128 moko 12423: ;
12424: return 0;
12425: }
12426: _ACEOF
1.150 moko 12427: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12428: ac_cv_lib_dld_shl_load=yes
12429: else
1.150 moko 12430: ac_cv_lib_dld_shl_load=no
1.128 moko 12431: fi
1.150 moko 12432: rm -f core conftest.err conftest.$ac_objext \
12433: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12434: LIBS=$ac_check_lib_save_LIBS
12435: fi
1.150 moko 12436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12437: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12438: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.128 moko 12439: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12440: else
1.150 moko 12441: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12442: if test "x$ac_cv_func_dlopen" = xyes; then :
1.128 moko 12443: lt_cv_dlopen="dlopen"
12444: else
1.150 moko 12445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12446: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12447: if ${ac_cv_lib_dl_dlopen+:} false; then :
12448: $as_echo_n "(cached) " >&6
1.128 moko 12449: else
12450: ac_check_lib_save_LIBS=$LIBS
12451: LIBS="-ldl $LIBS"
1.150 moko 12452: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12453: /* end confdefs.h. */
12454:
1.150 moko 12455: /* Override any GCC internal prototype to avoid an error.
12456: Use char because int might match the return type of a GCC
12457: builtin and then its argument prototype would still apply. */
1.128 moko 12458: #ifdef __cplusplus
12459: extern "C"
12460: #endif
12461: char dlopen ();
12462: int
12463: main ()
12464: {
1.150 moko 12465: return dlopen ();
1.128 moko 12466: ;
12467: return 0;
12468: }
12469: _ACEOF
1.150 moko 12470: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12471: ac_cv_lib_dl_dlopen=yes
12472: else
1.150 moko 12473: ac_cv_lib_dl_dlopen=no
1.128 moko 12474: fi
1.150 moko 12475: rm -f core conftest.err conftest.$ac_objext \
12476: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12477: LIBS=$ac_check_lib_save_LIBS
12478: fi
1.150 moko 12479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12480: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12481: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12482: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12483: else
1.150 moko 12484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12485: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12486: if ${ac_cv_lib_svld_dlopen+:} false; then :
12487: $as_echo_n "(cached) " >&6
1.128 moko 12488: else
12489: ac_check_lib_save_LIBS=$LIBS
12490: LIBS="-lsvld $LIBS"
1.150 moko 12491: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12492: /* end confdefs.h. */
12493:
1.150 moko 12494: /* Override any GCC internal prototype to avoid an error.
12495: Use char because int might match the return type of a GCC
12496: builtin and then its argument prototype would still apply. */
1.128 moko 12497: #ifdef __cplusplus
12498: extern "C"
12499: #endif
12500: char dlopen ();
12501: int
12502: main ()
12503: {
1.150 moko 12504: return dlopen ();
1.128 moko 12505: ;
12506: return 0;
12507: }
12508: _ACEOF
1.150 moko 12509: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12510: ac_cv_lib_svld_dlopen=yes
12511: else
1.150 moko 12512: ac_cv_lib_svld_dlopen=no
1.128 moko 12513: fi
1.150 moko 12514: rm -f core conftest.err conftest.$ac_objext \
12515: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12516: LIBS=$ac_check_lib_save_LIBS
12517: fi
1.150 moko 12518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12519: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12520: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 12521: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12522: else
1.150 moko 12523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12524: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12525: if ${ac_cv_lib_dld_dld_link+:} false; then :
12526: $as_echo_n "(cached) " >&6
1.128 moko 12527: else
12528: ac_check_lib_save_LIBS=$LIBS
12529: LIBS="-ldld $LIBS"
1.150 moko 12530: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12531: /* end confdefs.h. */
12532:
1.150 moko 12533: /* Override any GCC internal prototype to avoid an error.
12534: Use char because int might match the return type of a GCC
12535: builtin and then its argument prototype would still apply. */
1.128 moko 12536: #ifdef __cplusplus
12537: extern "C"
12538: #endif
12539: char dld_link ();
12540: int
12541: main ()
12542: {
1.150 moko 12543: return dld_link ();
1.128 moko 12544: ;
12545: return 0;
12546: }
12547: _ACEOF
1.150 moko 12548: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12549: ac_cv_lib_dld_dld_link=yes
12550: else
1.150 moko 12551: ac_cv_lib_dld_dld_link=no
12552: fi
12553: rm -f core conftest.err conftest.$ac_objext \
12554: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12555: LIBS=$ac_check_lib_save_LIBS
12556: fi
1.150 moko 12557: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12558: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12559: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 12560: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12561: fi
12562:
12563:
12564: fi
12565:
12566:
12567: fi
12568:
12569:
12570: fi
12571:
12572:
12573: fi
12574:
12575:
12576: fi
12577:
12578: ;;
12579: esac
12580:
12581: if test "x$lt_cv_dlopen" != xno; then
12582: enable_dlopen=yes
12583: else
12584: enable_dlopen=no
12585: fi
12586:
12587: case $lt_cv_dlopen in
12588: dlopen)
12589: save_CPPFLAGS="$CPPFLAGS"
12590: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12591:
12592: save_LDFLAGS="$LDFLAGS"
12593: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12594:
12595: save_LIBS="$LIBS"
12596: LIBS="$lt_cv_dlopen_libs $LIBS"
12597:
1.150 moko 12598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12599: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12600: if ${lt_cv_dlopen_self+:} false; then :
12601: $as_echo_n "(cached) " >&6
1.128 moko 12602: else
12603: if test "$cross_compiling" = yes; then :
12604: lt_cv_dlopen_self=cross
12605: else
12606: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12607: lt_status=$lt_dlunknown
12608: cat > conftest.$ac_ext <<_LT_EOF
12609: #line $LINENO "configure"
12610: #include "confdefs.h"
12611:
12612: #if HAVE_DLFCN_H
12613: #include <dlfcn.h>
12614: #endif
12615:
12616: #include <stdio.h>
12617:
12618: #ifdef RTLD_GLOBAL
12619: # define LT_DLGLOBAL RTLD_GLOBAL
12620: #else
12621: # ifdef DL_GLOBAL
12622: # define LT_DLGLOBAL DL_GLOBAL
12623: # else
12624: # define LT_DLGLOBAL 0
12625: # endif
12626: #endif
12627:
12628: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12629: find out it does not work in some platform. */
12630: #ifndef LT_DLLAZY_OR_NOW
12631: # ifdef RTLD_LAZY
12632: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12633: # else
12634: # ifdef DL_LAZY
12635: # define LT_DLLAZY_OR_NOW DL_LAZY
12636: # else
12637: # ifdef RTLD_NOW
12638: # define LT_DLLAZY_OR_NOW RTLD_NOW
12639: # else
12640: # ifdef DL_NOW
12641: # define LT_DLLAZY_OR_NOW DL_NOW
12642: # else
12643: # define LT_DLLAZY_OR_NOW 0
12644: # endif
12645: # endif
12646: # endif
12647: # endif
12648: #endif
12649:
12650: /* When -fvisbility=hidden is used, assume the code has been annotated
12651: correspondingly for the symbols needed. */
12652: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12653: int fnord () __attribute__((visibility("default")));
12654: #endif
12655:
12656: int fnord () { return 42; }
12657: int main ()
12658: {
12659: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12660: int status = $lt_dlunknown;
12661:
12662: if (self)
12663: {
12664: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12665: else
12666: {
12667: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12668: else puts (dlerror ());
12669: }
12670: /* dlclose (self); */
12671: }
12672: else
12673: puts (dlerror ());
12674:
12675: return status;
12676: }
12677: _LT_EOF
1.150 moko 12678: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12679: (eval $ac_link) 2>&5
12680: ac_status=$?
1.150 moko 12681: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12682: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12683: (./conftest; exit; ) >&5 2>/dev/null
12684: lt_status=$?
12685: case x$lt_status in
12686: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12687: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12688: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12689: esac
12690: else :
12691: # compilation failed
12692: lt_cv_dlopen_self=no
12693: fi
12694: fi
12695: rm -fr conftest*
12696:
12697:
12698: fi
1.150 moko 12699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12700: $as_echo "$lt_cv_dlopen_self" >&6; }
1.128 moko 12701:
12702: if test "x$lt_cv_dlopen_self" = xyes; then
12703: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.150 moko 12704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12705: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12706: if ${lt_cv_dlopen_self_static+:} false; then :
12707: $as_echo_n "(cached) " >&6
1.128 moko 12708: else
12709: if test "$cross_compiling" = yes; then :
12710: lt_cv_dlopen_self_static=cross
12711: else
12712: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12713: lt_status=$lt_dlunknown
12714: cat > conftest.$ac_ext <<_LT_EOF
12715: #line $LINENO "configure"
12716: #include "confdefs.h"
12717:
12718: #if HAVE_DLFCN_H
12719: #include <dlfcn.h>
12720: #endif
12721:
12722: #include <stdio.h>
12723:
12724: #ifdef RTLD_GLOBAL
12725: # define LT_DLGLOBAL RTLD_GLOBAL
12726: #else
12727: # ifdef DL_GLOBAL
12728: # define LT_DLGLOBAL DL_GLOBAL
12729: # else
12730: # define LT_DLGLOBAL 0
12731: # endif
12732: #endif
12733:
12734: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12735: find out it does not work in some platform. */
12736: #ifndef LT_DLLAZY_OR_NOW
12737: # ifdef RTLD_LAZY
12738: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12739: # else
12740: # ifdef DL_LAZY
12741: # define LT_DLLAZY_OR_NOW DL_LAZY
12742: # else
12743: # ifdef RTLD_NOW
12744: # define LT_DLLAZY_OR_NOW RTLD_NOW
12745: # else
12746: # ifdef DL_NOW
12747: # define LT_DLLAZY_OR_NOW DL_NOW
12748: # else
12749: # define LT_DLLAZY_OR_NOW 0
12750: # endif
12751: # endif
12752: # endif
12753: # endif
12754: #endif
12755:
12756: /* When -fvisbility=hidden is used, assume the code has been annotated
12757: correspondingly for the symbols needed. */
12758: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12759: int fnord () __attribute__((visibility("default")));
12760: #endif
12761:
12762: int fnord () { return 42; }
12763: int main ()
12764: {
12765: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12766: int status = $lt_dlunknown;
12767:
12768: if (self)
12769: {
12770: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12771: else
12772: {
12773: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12774: else puts (dlerror ());
12775: }
12776: /* dlclose (self); */
12777: }
12778: else
12779: puts (dlerror ());
12780:
12781: return status;
12782: }
12783: _LT_EOF
1.150 moko 12784: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12785: (eval $ac_link) 2>&5
12786: ac_status=$?
1.150 moko 12787: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12788: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12789: (./conftest; exit; ) >&5 2>/dev/null
12790: lt_status=$?
12791: case x$lt_status in
12792: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12793: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12794: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12795: esac
12796: else :
12797: # compilation failed
12798: lt_cv_dlopen_self_static=no
12799: fi
12800: fi
12801: rm -fr conftest*
12802:
12803:
12804: fi
1.150 moko 12805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12806: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 12807: fi
12808:
12809: CPPFLAGS="$save_CPPFLAGS"
12810: LDFLAGS="$save_LDFLAGS"
12811: LIBS="$save_LIBS"
12812: ;;
12813: esac
12814:
12815: case $lt_cv_dlopen_self in
12816: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12817: *) enable_dlopen_self=unknown ;;
12818: esac
12819:
12820: case $lt_cv_dlopen_self_static in
12821: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12822: *) enable_dlopen_self_static=unknown ;;
12823: esac
12824: fi
12825:
12826:
12827:
12828:
12829:
12830:
12831:
12832:
12833:
12834:
12835:
12836:
12837:
12838:
12839:
12840:
12841:
12842: striplib=
12843: old_striplib=
1.150 moko 12844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12845: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.128 moko 12846: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12847: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12848: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.150 moko 12849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12850: $as_echo "yes" >&6; }
1.128 moko 12851: else
12852: # FIXME - insert some real tests, host_os isn't really good enough
12853: case $host_os in
12854: darwin*)
12855: if test -n "$STRIP" ; then
12856: striplib="$STRIP -x"
12857: old_striplib="$STRIP -S"
1.150 moko 12858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12859: $as_echo "yes" >&6; }
1.128 moko 12860: else
1.150 moko 12861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862: $as_echo "no" >&6; }
1.128 moko 12863: fi
12864: ;;
12865: *)
1.150 moko 12866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867: $as_echo "no" >&6; }
1.128 moko 12868: ;;
12869: esac
12870: fi
12871:
12872:
12873:
12874:
12875:
12876:
12877:
12878:
12879:
12880:
12881:
12882:
12883: # Report which library types will actually be built
1.150 moko 12884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12885: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12887: $as_echo "$can_build_shared" >&6; }
1.128 moko 12888:
1.150 moko 12889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12890: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.128 moko 12891: test "$can_build_shared" = "no" && enable_shared=no
12892:
12893: # On AIX, shared libraries and static libraries use the same namespace, and
12894: # are all built from PIC.
12895: case $host_os in
12896: aix3*)
12897: test "$enable_shared" = yes && enable_static=no
12898: if test -n "$RANLIB"; then
12899: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12900: postinstall_cmds='$RANLIB $lib'
12901: fi
12902: ;;
12903:
12904: aix[4-9]*)
12905: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12906: test "$enable_shared" = yes && enable_static=no
12907: fi
12908: ;;
12909: esac
1.150 moko 12910: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12911: $as_echo "$enable_shared" >&6; }
1.128 moko 12912:
1.150 moko 12913: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12914: $as_echo_n "checking whether to build static libraries... " >&6; }
1.128 moko 12915: # Make sure either enable_shared or enable_static is yes.
12916: test "$enable_shared" = yes || enable_static=yes
1.150 moko 12917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12918: $as_echo "$enable_static" >&6; }
1.128 moko 12919:
12920:
12921:
12922:
12923: fi
12924: ac_ext=c
12925: ac_cpp='$CPP $CPPFLAGS'
12926: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12929:
12930: CC="$lt_save_CC"
12931:
12932: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12933: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12934: (test "X$CXX" != "Xg++"))) ; then
1.150 moko 12935: ac_ext=cpp
1.128 moko 12936: ac_cpp='$CXXCPP $CPPFLAGS'
12937: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 12940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12941: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 12942: if test -z "$CXXCPP"; then
1.150 moko 12943: if ${ac_cv_prog_CXXCPP+:} false; then :
12944: $as_echo_n "(cached) " >&6
1.128 moko 12945: else
12946: # Double quotes because CXXCPP needs to be expanded
12947: for CXXCPP in "$CXX -E" "/lib/cpp"
12948: do
12949: ac_preproc_ok=false
12950: for ac_cxx_preproc_warn_flag in '' yes
12951: do
12952: # Use a header file that comes with gcc, so configuring glibc
12953: # with a fresh cross-compiler works.
12954: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12955: # <limits.h> exists even on freestanding compilers.
12956: # On the NeXT, cc -E runs the code through the compiler's parser,
12957: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 12958: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12959: /* end confdefs.h. */
12960: #ifdef __STDC__
12961: # include <limits.h>
12962: #else
12963: # include <assert.h>
12964: #endif
12965: Syntax error
12966: _ACEOF
1.150 moko 12967: if ac_fn_cxx_try_cpp "$LINENO"; then :
12968:
1.128 moko 12969: else
12970: # Broken: fails on valid input.
12971: continue
12972: fi
1.150 moko 12973: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 12974:
1.150 moko 12975: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 12976: # can be detected and how.
1.150 moko 12977: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12978: /* end confdefs.h. */
12979: #include <ac_nonexistent.h>
12980: _ACEOF
1.150 moko 12981: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 12982: # Broken: success on invalid input.
12983: continue
12984: else
12985: # Passes both tests.
12986: ac_preproc_ok=:
12987: break
12988: fi
1.150 moko 12989: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 12990:
12991: done
12992: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 12993: rm -f conftest.i conftest.err conftest.$ac_ext
12994: if $ac_preproc_ok; then :
1.128 moko 12995: break
12996: fi
12997:
12998: done
12999: ac_cv_prog_CXXCPP=$CXXCPP
13000:
13001: fi
13002: CXXCPP=$ac_cv_prog_CXXCPP
13003: else
13004: ac_cv_prog_CXXCPP=$CXXCPP
13005: fi
1.150 moko 13006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13007: $as_echo "$CXXCPP" >&6; }
1.128 moko 13008: ac_preproc_ok=false
13009: for ac_cxx_preproc_warn_flag in '' yes
13010: do
13011: # Use a header file that comes with gcc, so configuring glibc
13012: # with a fresh cross-compiler works.
13013: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13014: # <limits.h> exists even on freestanding compilers.
13015: # On the NeXT, cc -E runs the code through the compiler's parser,
13016: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13017: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13018: /* end confdefs.h. */
13019: #ifdef __STDC__
13020: # include <limits.h>
13021: #else
13022: # include <assert.h>
13023: #endif
13024: Syntax error
13025: _ACEOF
1.150 moko 13026: if ac_fn_cxx_try_cpp "$LINENO"; then :
13027:
1.128 moko 13028: else
13029: # Broken: fails on valid input.
13030: continue
13031: fi
1.150 moko 13032: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13033:
1.150 moko 13034: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13035: # can be detected and how.
1.150 moko 13036: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13037: /* end confdefs.h. */
13038: #include <ac_nonexistent.h>
13039: _ACEOF
1.150 moko 13040: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13041: # Broken: success on invalid input.
13042: continue
13043: else
13044: # Passes both tests.
13045: ac_preproc_ok=:
13046: break
13047: fi
1.150 moko 13048: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13049:
13050: done
13051: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13052: rm -f conftest.i conftest.err conftest.$ac_ext
13053: if $ac_preproc_ok; then :
13054:
1.128 moko 13055: else
1.150 moko 13056: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13057: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13058: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13059: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 13060: fi
13061:
13062: ac_ext=c
13063: ac_cpp='$CPP $CPPFLAGS'
13064: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13065: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13066: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13067:
13068: else
13069: _lt_caught_CXX_error=yes
13070: fi
13071:
1.150 moko 13072: ac_ext=cpp
1.128 moko 13073: ac_cpp='$CXXCPP $CPPFLAGS'
13074: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13075: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13076: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13077:
13078: archive_cmds_need_lc_CXX=no
13079: allow_undefined_flag_CXX=
13080: always_export_symbols_CXX=no
13081: archive_expsym_cmds_CXX=
13082: compiler_needs_object_CXX=no
13083: export_dynamic_flag_spec_CXX=
13084: hardcode_direct_CXX=no
13085: hardcode_direct_absolute_CXX=no
13086: hardcode_libdir_flag_spec_CXX=
13087: hardcode_libdir_separator_CXX=
13088: hardcode_minus_L_CXX=no
13089: hardcode_shlibpath_var_CXX=unsupported
13090: hardcode_automatic_CXX=no
13091: inherit_rpath_CXX=no
13092: module_cmds_CXX=
13093: module_expsym_cmds_CXX=
13094: link_all_deplibs_CXX=unknown
13095: old_archive_cmds_CXX=$old_archive_cmds
13096: reload_flag_CXX=$reload_flag
13097: reload_cmds_CXX=$reload_cmds
13098: no_undefined_flag_CXX=
13099: whole_archive_flag_spec_CXX=
13100: enable_shared_with_static_runtimes_CXX=no
13101:
13102: # Source file extension for C++ test sources.
13103: ac_ext=cpp
13104:
13105: # Object file extension for compiled C++ test sources.
13106: objext=o
13107: objext_CXX=$objext
13108:
13109: # No sense in running all these tests if we already determined that
13110: # the CXX compiler isn't working. Some variables (like enable_shared)
13111: # are currently assumed to apply to all compilers on this platform,
13112: # and will be corrupted by setting them based on a non-working compiler.
13113: if test "$_lt_caught_CXX_error" != yes; then
13114: # Code to be used in simple compile tests
13115: lt_simple_compile_test_code="int some_variable = 0;"
13116:
13117: # Code to be used in simple link tests
13118: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13119:
13120: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13121:
13122:
13123:
13124:
13125:
13126:
13127: # If no C compiler was specified, use CC.
13128: LTCC=${LTCC-"$CC"}
13129:
13130: # If no C compiler flags were specified, use CFLAGS.
13131: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13132:
13133: # Allow CC to be a program name with arguments.
13134: compiler=$CC
13135:
13136:
13137: # save warnings/boilerplate of simple test code
13138: ac_outfile=conftest.$ac_objext
13139: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13140: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13141: _lt_compiler_boilerplate=`cat conftest.err`
13142: $RM conftest*
13143:
13144: ac_outfile=conftest.$ac_objext
13145: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13146: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13147: _lt_linker_boilerplate=`cat conftest.err`
13148: $RM -r conftest*
13149:
13150:
13151: # Allow CC to be a program name with arguments.
13152: lt_save_CC=$CC
13153: lt_save_CFLAGS=$CFLAGS
13154: lt_save_LD=$LD
13155: lt_save_GCC=$GCC
13156: GCC=$GXX
13157: lt_save_with_gnu_ld=$with_gnu_ld
13158: lt_save_path_LD=$lt_cv_path_LD
13159: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13160: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13161: else
13162: $as_unset lt_cv_prog_gnu_ld
13163: fi
13164: if test -n "${lt_cv_path_LDCXX+set}"; then
13165: lt_cv_path_LD=$lt_cv_path_LDCXX
13166: else
13167: $as_unset lt_cv_path_LD
13168: fi
13169: test -z "${LDCXX+set}" || LD=$LDCXX
13170: CC=${CXX-"c++"}
13171: CFLAGS=$CXXFLAGS
13172: compiler=$CC
13173: compiler_CXX=$CC
13174: for cc_temp in $compiler""; do
13175: case $cc_temp in
13176: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13177: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13178: \-*) ;;
13179: *) break;;
13180: esac
13181: done
13182: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13183:
13184:
13185: if test -n "$compiler"; then
13186: # We don't want -fno-exception when compiling C++ code, so set the
13187: # no_builtin_flag separately
13188: if test "$GXX" = yes; then
13189: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13190: else
13191: lt_prog_compiler_no_builtin_flag_CXX=
13192: fi
13193:
13194: if test "$GXX" = yes; then
13195: # Set up default GNU C++ configuration
13196:
13197:
13198:
1.150 moko 13199: # Check whether --with-gnu-ld was given.
13200: if test "${with_gnu_ld+set}" = set; then :
13201: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 13202: else
13203: with_gnu_ld=no
1.150 moko 13204: fi
13205:
1.128 moko 13206: ac_prog=ld
13207: if test "$GCC" = yes; then
13208: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 13209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13210: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 13211: case $host in
13212: *-*-mingw*)
13213: # gcc leaves a trailing carriage return which upsets mingw
13214: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13215: *)
13216: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13217: esac
13218: case $ac_prog in
13219: # Accept absolute paths.
13220: [\\/]* | ?:[\\/]*)
13221: re_direlt='/[^/][^/]*/\.\./'
13222: # Canonicalize the pathname of ld
13223: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13224: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13225: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13226: done
13227: test -z "$LD" && LD="$ac_prog"
13228: ;;
13229: "")
13230: # If it fails, then pretend we aren't using GCC.
13231: ac_prog=ld
13232: ;;
13233: *)
13234: # If it is relative, then search for the first ld in PATH.
13235: with_gnu_ld=unknown
13236: ;;
13237: esac
13238: elif test "$with_gnu_ld" = yes; then
1.150 moko 13239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13240: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 13241: else
1.150 moko 13242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13243: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 13244: fi
1.150 moko 13245: if ${lt_cv_path_LD+:} false; then :
13246: $as_echo_n "(cached) " >&6
1.128 moko 13247: else
13248: if test -z "$LD"; then
13249: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13250: for ac_dir in $PATH; do
13251: IFS="$lt_save_ifs"
13252: test -z "$ac_dir" && ac_dir=.
13253: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13254: lt_cv_path_LD="$ac_dir/$ac_prog"
13255: # Check to see if the program is GNU ld. I'd rather use --version,
13256: # but apparently some variants of GNU ld only accept -v.
13257: # Break only if it was the GNU/non-GNU ld that we prefer.
13258: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13259: *GNU* | *'with BFD'*)
13260: test "$with_gnu_ld" != no && break
13261: ;;
13262: *)
13263: test "$with_gnu_ld" != yes && break
13264: ;;
13265: esac
13266: fi
13267: done
13268: IFS="$lt_save_ifs"
13269: else
13270: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13271: fi
13272: fi
13273:
13274: LD="$lt_cv_path_LD"
13275: if test -n "$LD"; then
1.150 moko 13276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13277: $as_echo "$LD" >&6; }
1.128 moko 13278: else
1.150 moko 13279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280: $as_echo "no" >&6; }
1.128 moko 13281: fi
1.150 moko 13282: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13284: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13285: if ${lt_cv_prog_gnu_ld+:} false; then :
13286: $as_echo_n "(cached) " >&6
1.128 moko 13287: else
13288: # I'd rather use --version here, but apparently some GNU lds only accept -v.
13289: case `$LD -v 2>&1 </dev/null` in
13290: *GNU* | *'with BFD'*)
13291: lt_cv_prog_gnu_ld=yes
13292: ;;
13293: *)
13294: lt_cv_prog_gnu_ld=no
13295: ;;
13296: esac
13297: fi
1.150 moko 13298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13299: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 13300: with_gnu_ld=$lt_cv_prog_gnu_ld
13301:
13302:
13303:
13304:
13305:
13306:
13307:
13308: # Check if GNU C++ uses GNU ld as the underlying linker, since the
13309: # archiving commands below assume that GNU ld is being used.
13310: if test "$with_gnu_ld" = yes; then
13311: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13312: 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'
13313:
13314: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13315: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13316:
13317: # If archive_cmds runs LD, not CC, wlarc should be empty
13318: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13319: # investigate it a little bit more. (MM)
13320: wlarc='${wl}'
13321:
13322: # ancient GNU ld didn't support --whole-archive et. al.
13323: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13324: $GREP 'no-whole-archive' > /dev/null; then
13325: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13326: else
13327: whole_archive_flag_spec_CXX=
13328: fi
13329: else
13330: with_gnu_ld=no
13331: wlarc=
13332:
13333: # A generic and very simple default shared library creation
13334: # command for GNU C++ for the case where it uses the native
13335: # linker, instead of GNU ld. If possible, this setting should
13336: # overridden to take advantage of the native linker features on
13337: # the platform it is being used on.
13338: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13339: fi
13340:
13341: # Commands to make compiler produce verbose output that lists
13342: # what "hidden" libraries, object files and flags are used when
13343: # linking a shared library.
13344: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13345:
13346: else
13347: GXX=no
13348: with_gnu_ld=no
13349: wlarc=
13350: fi
13351:
13352: # PORTME: fill in a description of your system's C++ link characteristics
1.150 moko 13353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13354: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 13355: ld_shlibs_CXX=yes
13356: case $host_os in
13357: aix3*)
13358: # FIXME: insert proper C++ library support
13359: ld_shlibs_CXX=no
13360: ;;
13361: aix[4-9]*)
13362: if test "$host_cpu" = ia64; then
13363: # On IA64, the linker does run time linking by default, so we don't
13364: # have to do anything special.
13365: aix_use_runtimelinking=no
13366: exp_sym_flag='-Bexport'
13367: no_entry_flag=""
13368: else
13369: aix_use_runtimelinking=no
13370:
13371: # Test if we are trying to use run time linking or normal
13372: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13373: # need to do runtime linking.
13374: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13375: for ld_flag in $LDFLAGS; do
13376: case $ld_flag in
13377: *-brtl*)
13378: aix_use_runtimelinking=yes
13379: break
13380: ;;
13381: esac
13382: done
13383: ;;
13384: esac
13385:
13386: exp_sym_flag='-bexport'
13387: no_entry_flag='-bnoentry'
13388: fi
13389:
13390: # When large executables or shared objects are built, AIX ld can
13391: # have problems creating the table of contents. If linking a library
13392: # or program results in "error TOC overflow" add -mminimal-toc to
13393: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13394: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13395:
13396: archive_cmds_CXX=''
13397: hardcode_direct_CXX=yes
13398: hardcode_direct_absolute_CXX=yes
13399: hardcode_libdir_separator_CXX=':'
13400: link_all_deplibs_CXX=yes
13401: file_list_spec_CXX='${wl}-f,'
13402:
13403: if test "$GXX" = yes; then
13404: case $host_os in aix4.[012]|aix4.[012].*)
13405: # We only want to do this on AIX 4.2 and lower, the check
13406: # below for broken collect2 doesn't work under 4.3+
13407: collect2name=`${CC} -print-prog-name=collect2`
13408: if test -f "$collect2name" &&
13409: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13410: then
13411: # We have reworked collect2
13412: :
13413: else
13414: # We have old collect2
13415: hardcode_direct_CXX=unsupported
13416: # It fails to find uninstalled libraries when the uninstalled
13417: # path is not listed in the libpath. Setting hardcode_minus_L
13418: # to unsupported forces relinking
13419: hardcode_minus_L_CXX=yes
13420: hardcode_libdir_flag_spec_CXX='-L$libdir'
13421: hardcode_libdir_separator_CXX=
13422: fi
13423: esac
13424: shared_flag='-shared'
13425: if test "$aix_use_runtimelinking" = yes; then
13426: shared_flag="$shared_flag "'${wl}-G'
13427: fi
13428: else
13429: # not using gcc
13430: if test "$host_cpu" = ia64; then
13431: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13432: # chokes on -Wl,-G. The following line is correct:
13433: shared_flag='-G'
13434: else
13435: if test "$aix_use_runtimelinking" = yes; then
13436: shared_flag='${wl}-G'
13437: else
13438: shared_flag='${wl}-bM:SRE'
13439: fi
13440: fi
13441: fi
13442:
13443: export_dynamic_flag_spec_CXX='${wl}-bexpall'
13444: # It seems that -bexpall does not export symbols beginning with
13445: # underscore (_), so it is better to generate a list of symbols to
13446: # export.
13447: always_export_symbols_CXX=yes
13448: if test "$aix_use_runtimelinking" = yes; then
13449: # Warning - without using the other runtime loading flags (-brtl),
13450: # -berok will link without error, but may produce a broken library.
13451: allow_undefined_flag_CXX='-berok'
13452: # Determine the default libpath from the value encoded in an empty
13453: # executable.
13454: if test "${lt_cv_aix_libpath+set}" = set; then
13455: aix_libpath=$lt_cv_aix_libpath
13456: else
1.150 moko 13457: if ${lt_cv_aix_libpath__CXX+:} false; then :
13458: $as_echo_n "(cached) " >&6
1.128 moko 13459: else
1.150 moko 13460: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13461: /* end confdefs.h. */
13462:
13463: int
13464: main ()
13465: {
13466:
13467: ;
13468: return 0;
13469: }
13470: _ACEOF
1.150 moko 13471: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13472:
13473: lt_aix_libpath_sed='
13474: /Import File Strings/,/^$/ {
13475: /^0/ {
13476: s/^0 *\([^ ]*\) *$/\1/
13477: p
13478: }
13479: }'
13480: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13481: # Check for a 64-bit object if we didn't find anything.
13482: if test -z "$lt_cv_aix_libpath__CXX"; then
13483: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13484: fi
13485: fi
1.150 moko 13486: rm -f core conftest.err conftest.$ac_objext \
13487: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13488: if test -z "$lt_cv_aix_libpath__CXX"; then
13489: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13490: fi
13491:
13492: fi
13493:
13494: aix_libpath=$lt_cv_aix_libpath__CXX
13495: fi
13496:
13497: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13498:
13499: 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"
13500: else
13501: if test "$host_cpu" = ia64; then
13502: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13503: allow_undefined_flag_CXX="-z nodefs"
13504: 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"
13505: else
13506: # Determine the default libpath from the value encoded in an
13507: # empty executable.
13508: if test "${lt_cv_aix_libpath+set}" = set; then
13509: aix_libpath=$lt_cv_aix_libpath
13510: else
1.150 moko 13511: if ${lt_cv_aix_libpath__CXX+:} false; then :
13512: $as_echo_n "(cached) " >&6
1.128 moko 13513: else
1.150 moko 13514: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13515: /* end confdefs.h. */
13516:
13517: int
13518: main ()
13519: {
13520:
13521: ;
13522: return 0;
13523: }
13524: _ACEOF
1.150 moko 13525: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13526:
13527: lt_aix_libpath_sed='
13528: /Import File Strings/,/^$/ {
13529: /^0/ {
13530: s/^0 *\([^ ]*\) *$/\1/
13531: p
13532: }
13533: }'
13534: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13535: # Check for a 64-bit object if we didn't find anything.
13536: if test -z "$lt_cv_aix_libpath__CXX"; then
13537: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13538: fi
13539: fi
1.150 moko 13540: rm -f core conftest.err conftest.$ac_objext \
13541: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13542: if test -z "$lt_cv_aix_libpath__CXX"; then
13543: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13544: fi
13545:
13546: fi
13547:
13548: aix_libpath=$lt_cv_aix_libpath__CXX
13549: fi
13550:
13551: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13552: # Warning - without using the other run time loading flags,
13553: # -berok will link without error, but may produce a broken library.
13554: no_undefined_flag_CXX=' ${wl}-bernotok'
13555: allow_undefined_flag_CXX=' ${wl}-berok'
13556: if test "$with_gnu_ld" = yes; then
13557: # We only use this code for GNU lds that support --whole-archive.
13558: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13559: else
13560: # Exported symbols can be pulled into shared objects from archives
13561: whole_archive_flag_spec_CXX='$convenience'
13562: fi
13563: archive_cmds_need_lc_CXX=yes
13564: # This is similar to how AIX traditionally builds its shared
13565: # libraries.
13566: 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'
13567: fi
13568: fi
13569: ;;
13570:
13571: beos*)
13572: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13573: allow_undefined_flag_CXX=unsupported
13574: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13575: # support --undefined. This deserves some investigation. FIXME
13576: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13577: else
13578: ld_shlibs_CXX=no
13579: fi
13580: ;;
13581:
13582: chorus*)
13583: case $cc_basename in
13584: *)
13585: # FIXME: insert proper C++ library support
13586: ld_shlibs_CXX=no
13587: ;;
13588: esac
13589: ;;
13590:
13591: cygwin* | mingw* | pw32* | cegcc*)
13592: case $GXX,$cc_basename in
13593: ,cl* | no,cl*)
13594: # Native MSVC
13595: # hardcode_libdir_flag_spec is actually meaningless, as there is
13596: # no search path for DLLs.
13597: hardcode_libdir_flag_spec_CXX=' '
13598: allow_undefined_flag_CXX=unsupported
13599: always_export_symbols_CXX=yes
13600: file_list_spec_CXX='@'
13601: # Tell ltmain to make .lib files, not .a files.
13602: libext=lib
13603: # Tell ltmain to make .dll files, not .so files.
13604: shrext_cmds=".dll"
13605: # FIXME: Setting linknames here is a bad hack.
13606: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13607: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13608: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13609: else
13610: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13611: fi~
13612: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13613: linknames='
13614: # The linker will not automatically build a static lib if we build a DLL.
13615: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13616: enable_shared_with_static_runtimes_CXX=yes
13617: # Don't use ranlib
13618: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13619: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13620: lt_tool_outputfile="@TOOL_OUTPUT@"~
13621: case $lt_outputfile in
13622: *.exe|*.EXE) ;;
13623: *)
13624: lt_outputfile="$lt_outputfile.exe"
13625: lt_tool_outputfile="$lt_tool_outputfile.exe"
13626: ;;
13627: esac~
13628: func_to_tool_file "$lt_outputfile"~
13629: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13630: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13631: $RM "$lt_outputfile.manifest";
13632: fi'
13633: ;;
13634: *)
13635: # g++
13636: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13637: # as there is no search path for DLLs.
13638: hardcode_libdir_flag_spec_CXX='-L$libdir'
13639: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13640: allow_undefined_flag_CXX=unsupported
13641: always_export_symbols_CXX=no
13642: enable_shared_with_static_runtimes_CXX=yes
13643:
13644: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13645: 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'
13646: # If the export-symbols file already is a .def file (1st line
13647: # is EXPORTS), use it as is; otherwise, prepend...
13648: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13649: cp $export_symbols $output_objdir/$soname.def;
13650: else
13651: echo EXPORTS > $output_objdir/$soname.def;
13652: cat $export_symbols >> $output_objdir/$soname.def;
13653: fi~
13654: $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'
13655: else
13656: ld_shlibs_CXX=no
13657: fi
13658: ;;
13659: esac
13660: ;;
13661: darwin* | rhapsody*)
13662:
13663:
13664: archive_cmds_need_lc_CXX=no
13665: hardcode_direct_CXX=no
13666: hardcode_automatic_CXX=yes
13667: hardcode_shlibpath_var_CXX=unsupported
13668: if test "$lt_cv_ld_force_load" = "yes"; then
13669: 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\"`'
13670:
13671: else
13672: whole_archive_flag_spec_CXX=''
13673: fi
13674: link_all_deplibs_CXX=yes
13675: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13676: case $cc_basename in
13677: ifort*) _lt_dar_can_shared=yes ;;
13678: *) _lt_dar_can_shared=$GCC ;;
13679: esac
13680: if test "$_lt_dar_can_shared" = "yes"; then
13681: output_verbose_link_cmd=func_echo_all
13682: 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}"
13683: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13684: 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}"
13685: 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}"
13686: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13687: 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}"
13688: 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}"
13689: fi
13690:
13691: else
13692: ld_shlibs_CXX=no
13693: fi
13694:
13695: ;;
13696:
13697: dgux*)
13698: case $cc_basename in
13699: ec++*)
13700: # FIXME: insert proper C++ library support
13701: ld_shlibs_CXX=no
13702: ;;
13703: ghcx*)
13704: # Green Hills C++ Compiler
13705: # FIXME: insert proper C++ library support
13706: ld_shlibs_CXX=no
13707: ;;
13708: *)
13709: # FIXME: insert proper C++ library support
13710: ld_shlibs_CXX=no
13711: ;;
13712: esac
13713: ;;
13714:
13715: freebsd2.*)
13716: # C++ shared libraries reported to be fairly broken before
13717: # switch to ELF
13718: ld_shlibs_CXX=no
13719: ;;
13720:
13721: freebsd-elf*)
13722: archive_cmds_need_lc_CXX=no
13723: ;;
13724:
13725: freebsd* | dragonfly*)
13726: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13727: # conventions
13728: ld_shlibs_CXX=yes
13729: ;;
13730:
13731: gnu*)
13732: ;;
13733:
13734: haiku*)
13735: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13736: link_all_deplibs_CXX=yes
13737: ;;
13738:
13739: hpux9*)
13740: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13741: hardcode_libdir_separator_CXX=:
13742: export_dynamic_flag_spec_CXX='${wl}-E'
13743: hardcode_direct_CXX=yes
13744: hardcode_minus_L_CXX=yes # Not in the search PATH,
13745: # but as the default
13746: # location of the library.
13747:
13748: case $cc_basename in
13749: CC*)
13750: # FIXME: insert proper C++ library support
13751: ld_shlibs_CXX=no
13752: ;;
13753: aCC*)
13754: 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'
13755: # Commands to make compiler produce verbose output that lists
13756: # what "hidden" libraries, object files and flags are used when
13757: # linking a shared library.
13758: #
13759: # There doesn't appear to be a way to prevent this compiler from
13760: # explicitly linking system object files so we need to strip them
13761: # from the output so that they don't get included in the library
13762: # dependencies.
13763: 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"'
13764: ;;
13765: *)
13766: if test "$GXX" = yes; then
13767: 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'
13768: else
13769: # FIXME: insert proper C++ library support
13770: ld_shlibs_CXX=no
13771: fi
13772: ;;
13773: esac
13774: ;;
13775:
13776: hpux10*|hpux11*)
13777: if test $with_gnu_ld = no; then
13778: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13779: hardcode_libdir_separator_CXX=:
13780:
13781: case $host_cpu in
13782: hppa*64*|ia64*)
13783: ;;
13784: *)
13785: export_dynamic_flag_spec_CXX='${wl}-E'
13786: ;;
13787: esac
13788: fi
13789: case $host_cpu in
13790: hppa*64*|ia64*)
13791: hardcode_direct_CXX=no
13792: hardcode_shlibpath_var_CXX=no
13793: ;;
13794: *)
13795: hardcode_direct_CXX=yes
13796: hardcode_direct_absolute_CXX=yes
13797: hardcode_minus_L_CXX=yes # Not in the search PATH,
13798: # but as the default
13799: # location of the library.
13800: ;;
13801: esac
13802:
13803: case $cc_basename in
13804: CC*)
13805: # FIXME: insert proper C++ library support
13806: ld_shlibs_CXX=no
13807: ;;
13808: aCC*)
13809: case $host_cpu in
13810: hppa*64*)
13811: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13812: ;;
13813: ia64*)
13814: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13815: ;;
13816: *)
13817: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13818: ;;
13819: esac
13820: # Commands to make compiler produce verbose output that lists
13821: # what "hidden" libraries, object files and flags are used when
13822: # linking a shared library.
13823: #
13824: # There doesn't appear to be a way to prevent this compiler from
13825: # explicitly linking system object files so we need to strip them
13826: # from the output so that they don't get included in the library
13827: # dependencies.
13828: 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"'
13829: ;;
13830: *)
13831: if test "$GXX" = yes; then
13832: if test $with_gnu_ld = no; then
13833: case $host_cpu in
13834: hppa*64*)
13835: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13836: ;;
13837: ia64*)
13838: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13839: ;;
13840: *)
13841: 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'
13842: ;;
13843: esac
13844: fi
13845: else
13846: # FIXME: insert proper C++ library support
13847: ld_shlibs_CXX=no
13848: fi
13849: ;;
13850: esac
13851: ;;
13852:
13853: interix[3-9]*)
13854: hardcode_direct_CXX=no
13855: hardcode_shlibpath_var_CXX=no
13856: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13857: export_dynamic_flag_spec_CXX='${wl}-E'
13858: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13859: # Instead, shared libraries are loaded at an image base (0x10000000 by
13860: # default) and relocated if they conflict, which is a slow very memory
13861: # consuming and fragmenting process. To avoid this, we pick a random,
13862: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13863: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13864: 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'
13865: 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'
13866: ;;
13867: irix5* | irix6*)
13868: case $cc_basename in
13869: CC*)
13870: # SGI C++
13871: 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'
13872:
13873: # Archives containing C++ object files must be created using
13874: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13875: # necessary to make sure instantiated templates are included
13876: # in the archive.
13877: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13878: ;;
13879: *)
13880: if test "$GXX" = yes; then
13881: if test "$with_gnu_ld" = no; then
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"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13883: else
13884: 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'
13885: fi
13886: fi
13887: link_all_deplibs_CXX=yes
13888: ;;
13889: esac
13890: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13891: hardcode_libdir_separator_CXX=:
13892: inherit_rpath_CXX=yes
13893: ;;
13894:
13895: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13896: case $cc_basename in
13897: KCC*)
13898: # Kuck and Associates, Inc. (KAI) C++ Compiler
13899:
13900: # KCC will only create a shared library if the output file
13901: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13902: # to its proper name (with version) after linking.
13903: 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'
13904: 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'
13905: # Commands to make compiler produce verbose output that lists
13906: # what "hidden" libraries, object files and flags are used when
13907: # linking a shared library.
13908: #
13909: # There doesn't appear to be a way to prevent this compiler from
13910: # explicitly linking system object files so we need to strip them
13911: # from the output so that they don't get included in the library
13912: # dependencies.
13913: 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"'
13914:
13915: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13916: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13917:
13918: # Archives containing C++ object files must be created using
13919: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13920: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13921: ;;
13922: icpc* | ecpc* )
13923: # Intel C++
13924: with_gnu_ld=yes
13925: # version 8.0 and above of icpc choke on multiply defined symbols
13926: # if we add $predep_objects and $postdep_objects, however 7.1 and
13927: # earlier do not add the objects themselves.
13928: case `$CC -V 2>&1` in
13929: *"Version 7."*)
13930: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13931: 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'
13932: ;;
13933: *) # Version 8.0 or newer
13934: tmp_idyn=
13935: case $host_cpu in
13936: ia64*) tmp_idyn=' -i_dynamic';;
13937: esac
13938: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13939: 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'
13940: ;;
13941: esac
13942: archive_cmds_need_lc_CXX=no
13943: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13944: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13945: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13946: ;;
13947: pgCC* | pgcpp*)
13948: # Portland Group C++ compiler
13949: case `$CC -V` in
13950: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13951: prelink_cmds_CXX='tpldir=Template.dir~
13952: rm -rf $tpldir~
13953: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13954: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13955: old_archive_cmds_CXX='tpldir=Template.dir~
13956: rm -rf $tpldir~
13957: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13958: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13959: $RANLIB $oldlib'
13960: archive_cmds_CXX='tpldir=Template.dir~
13961: rm -rf $tpldir~
13962: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13963: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13964: archive_expsym_cmds_CXX='tpldir=Template.dir~
13965: rm -rf $tpldir~
13966: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13967: $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'
13968: ;;
13969: *) # Version 6 and above use weak symbols
13970: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13971: 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'
13972: ;;
13973: esac
13974:
13975: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13976: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13977: 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'
13978: ;;
13979: cxx*)
13980: # Compaq C++
13981: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13982: 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'
13983:
13984: runpath_var=LD_RUN_PATH
13985: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13986: hardcode_libdir_separator_CXX=:
13987:
13988: # Commands to make compiler produce verbose output that lists
13989: # what "hidden" libraries, object files and flags are used when
13990: # linking a shared library.
13991: #
13992: # There doesn't appear to be a way to prevent this compiler from
13993: # explicitly linking system object files so we need to strip them
13994: # from the output so that they don't get included in the library
13995: # dependencies.
13996: 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'
13997: ;;
13998: xl* | mpixl* | bgxl*)
13999: # IBM XL 8.0 on PPC, with GNU ld
14000: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14001: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14002: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14003: if test "x$supports_anon_versioning" = xyes; then
14004: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14005: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14006: echo "local: *; };" >> $output_objdir/$libname.ver~
14007: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14008: fi
14009: ;;
14010: *)
14011: case `$CC -V 2>&1 | sed 5q` in
14012: *Sun\ C*)
14013: # Sun C++ 5.9
14014: no_undefined_flag_CXX=' -zdefs'
14015: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14016: 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'
14017: hardcode_libdir_flag_spec_CXX='-R$libdir'
14018: 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'
14019: compiler_needs_object_CXX=yes
14020:
14021: # Not sure whether something based on
14022: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14023: # would be better.
14024: output_verbose_link_cmd='func_echo_all'
14025:
14026: # Archives containing C++ object files must be created using
14027: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14028: # necessary to make sure instantiated templates are included
14029: # in the archive.
14030: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14031: ;;
14032: esac
14033: ;;
14034: esac
14035: ;;
14036:
14037: lynxos*)
14038: # FIXME: insert proper C++ library support
14039: ld_shlibs_CXX=no
14040: ;;
14041:
14042: m88k*)
14043: # FIXME: insert proper C++ library support
14044: ld_shlibs_CXX=no
14045: ;;
14046:
14047: mvs*)
14048: case $cc_basename in
14049: cxx*)
14050: # FIXME: insert proper C++ library support
14051: ld_shlibs_CXX=no
14052: ;;
14053: *)
14054: # FIXME: insert proper C++ library support
14055: ld_shlibs_CXX=no
14056: ;;
14057: esac
14058: ;;
14059:
14060: netbsd*)
14061: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14062: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14063: wlarc=
14064: hardcode_libdir_flag_spec_CXX='-R$libdir'
14065: hardcode_direct_CXX=yes
14066: hardcode_shlibpath_var_CXX=no
14067: fi
14068: # Workaround some broken pre-1.5 toolchains
14069: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14070: ;;
14071:
14072: *nto* | *qnx*)
14073: ld_shlibs_CXX=yes
14074: ;;
14075:
14076: openbsd2*)
14077: # C++ shared libraries are fairly broken
14078: ld_shlibs_CXX=no
14079: ;;
14080:
14081: openbsd*)
14082: if test -f /usr/libexec/ld.so; then
14083: hardcode_direct_CXX=yes
14084: hardcode_shlibpath_var_CXX=no
14085: hardcode_direct_absolute_CXX=yes
14086: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14087: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14088: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14089: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14090: export_dynamic_flag_spec_CXX='${wl}-E'
14091: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14092: fi
14093: output_verbose_link_cmd=func_echo_all
14094: else
14095: ld_shlibs_CXX=no
14096: fi
14097: ;;
14098:
14099: osf3* | osf4* | osf5*)
14100: case $cc_basename in
14101: KCC*)
14102: # Kuck and Associates, Inc. (KAI) C++ Compiler
14103:
14104: # KCC will only create a shared library if the output file
14105: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14106: # to its proper name (with version) after linking.
14107: 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'
14108:
14109: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14110: hardcode_libdir_separator_CXX=:
14111:
14112: # Archives containing C++ object files must be created using
14113: # the KAI C++ compiler.
14114: case $host in
14115: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14116: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14117: esac
14118: ;;
14119: RCC*)
14120: # Rational C++ 2.4.1
14121: # FIXME: insert proper C++ library support
14122: ld_shlibs_CXX=no
14123: ;;
14124: cxx*)
14125: case $host in
14126: osf3*)
14127: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14128: 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'
14129: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14130: ;;
14131: *)
14132: allow_undefined_flag_CXX=' -expect_unresolved \*'
14133: 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'
14134: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14135: echo "-hidden">> $lib.exp~
14136: $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~
14137: $RM $lib.exp'
14138: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14139: ;;
14140: esac
14141:
14142: hardcode_libdir_separator_CXX=:
14143:
14144: # Commands to make compiler produce verbose output that lists
14145: # what "hidden" libraries, object files and flags are used when
14146: # linking a shared library.
14147: #
14148: # There doesn't appear to be a way to prevent this compiler from
14149: # explicitly linking system object files so we need to strip them
14150: # from the output so that they don't get included in the library
14151: # dependencies.
14152: 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"'
14153: ;;
14154: *)
14155: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14156: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14157: case $host in
14158: osf3*)
14159: 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'
14160: ;;
14161: *)
14162: 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'
14163: ;;
14164: esac
14165:
14166: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14167: hardcode_libdir_separator_CXX=:
14168:
14169: # Commands to make compiler produce verbose output that lists
14170: # what "hidden" libraries, object files and flags are used when
14171: # linking a shared library.
14172: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14173:
14174: else
14175: # FIXME: insert proper C++ library support
14176: ld_shlibs_CXX=no
14177: fi
14178: ;;
14179: esac
14180: ;;
14181:
14182: psos*)
14183: # FIXME: insert proper C++ library support
14184: ld_shlibs_CXX=no
14185: ;;
14186:
14187: sunos4*)
14188: case $cc_basename in
14189: CC*)
14190: # Sun C++ 4.x
14191: # FIXME: insert proper C++ library support
14192: ld_shlibs_CXX=no
14193: ;;
14194: lcc*)
14195: # Lucid
14196: # FIXME: insert proper C++ library support
14197: ld_shlibs_CXX=no
14198: ;;
14199: *)
14200: # FIXME: insert proper C++ library support
14201: ld_shlibs_CXX=no
14202: ;;
14203: esac
14204: ;;
14205:
14206: solaris*)
14207: case $cc_basename in
14208: CC* | sunCC*)
14209: # Sun C++ 4.2, 5.x and Centerline C++
14210: archive_cmds_need_lc_CXX=yes
14211: no_undefined_flag_CXX=' -zdefs'
14212: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14213: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14214: $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'
14215:
14216: hardcode_libdir_flag_spec_CXX='-R$libdir'
14217: hardcode_shlibpath_var_CXX=no
14218: case $host_os in
14219: solaris2.[0-5] | solaris2.[0-5].*) ;;
14220: *)
14221: # The compiler driver will combine and reorder linker options,
14222: # but understands `-z linker_flag'.
14223: # Supported since Solaris 2.6 (maybe 2.5.1?)
14224: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14225: ;;
14226: esac
14227: link_all_deplibs_CXX=yes
14228:
14229: output_verbose_link_cmd='func_echo_all'
14230:
14231: # Archives containing C++ object files must be created using
14232: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14233: # necessary to make sure instantiated templates are included
14234: # in the archive.
14235: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14236: ;;
14237: gcx*)
14238: # Green Hills C++ Compiler
14239: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14240:
14241: # The C++ compiler must be used to create the archive.
14242: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14243: ;;
14244: *)
14245: # GNU C++ compiler with Solaris linker
14246: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14247: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14248: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14249: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14250: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14251: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14252:
14253: # Commands to make compiler produce verbose output that lists
14254: # what "hidden" libraries, object files and flags are used when
14255: # linking a shared library.
14256: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14257: else
14258: # g++ 2.7 appears to require `-G' NOT `-shared' on this
14259: # platform.
14260: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14261: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14262: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14263:
14264: # Commands to make compiler produce verbose output that lists
14265: # what "hidden" libraries, object files and flags are used when
14266: # linking a shared library.
14267: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14268: fi
14269:
14270: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14271: case $host_os in
14272: solaris2.[0-5] | solaris2.[0-5].*) ;;
14273: *)
14274: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14275: ;;
14276: esac
14277: fi
14278: ;;
14279: esac
14280: ;;
14281:
14282: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14283: no_undefined_flag_CXX='${wl}-z,text'
14284: archive_cmds_need_lc_CXX=no
14285: hardcode_shlibpath_var_CXX=no
14286: runpath_var='LD_RUN_PATH'
14287:
14288: case $cc_basename in
14289: CC*)
14290: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14291: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14292: ;;
14293: *)
14294: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14295: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14296: ;;
14297: esac
14298: ;;
14299:
14300: sysv5* | sco3.2v5* | sco5v6*)
14301: # Note: We can NOT use -z defs as we might desire, because we do not
14302: # link with -lc, and that would cause any symbols used from libc to
14303: # always be unresolved, which means just about no library would
14304: # ever link correctly. If we're not using GNU ld we use -z text
14305: # though, which does catch some bad symbols but isn't as heavy-handed
14306: # as -z defs.
14307: no_undefined_flag_CXX='${wl}-z,text'
14308: allow_undefined_flag_CXX='${wl}-z,nodefs'
14309: archive_cmds_need_lc_CXX=no
14310: hardcode_shlibpath_var_CXX=no
14311: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14312: hardcode_libdir_separator_CXX=':'
14313: link_all_deplibs_CXX=yes
14314: export_dynamic_flag_spec_CXX='${wl}-Bexport'
14315: runpath_var='LD_RUN_PATH'
14316:
14317: case $cc_basename in
14318: CC*)
14319: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14320: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14321: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14322: '"$old_archive_cmds_CXX"
14323: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14324: '"$reload_cmds_CXX"
14325: ;;
14326: *)
14327: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14328: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14329: ;;
14330: esac
14331: ;;
14332:
14333: tandem*)
14334: case $cc_basename in
14335: NCC*)
14336: # NonStop-UX NCC 3.20
14337: # FIXME: insert proper C++ library support
14338: ld_shlibs_CXX=no
14339: ;;
14340: *)
14341: # FIXME: insert proper C++ library support
14342: ld_shlibs_CXX=no
14343: ;;
14344: esac
14345: ;;
14346:
14347: vxworks*)
14348: # FIXME: insert proper C++ library support
14349: ld_shlibs_CXX=no
14350: ;;
14351:
14352: *)
14353: # FIXME: insert proper C++ library support
14354: ld_shlibs_CXX=no
14355: ;;
14356: esac
14357:
1.150 moko 14358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14359: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 14360: test "$ld_shlibs_CXX" = no && can_build_shared=no
14361:
14362: GCC_CXX="$GXX"
14363: LD_CXX="$LD"
14364:
14365: ## CAVEAT EMPTOR:
14366: ## There is no encapsulation within the following macros, do not change
14367: ## the running order or otherwise move them around unless you know exactly
14368: ## what you are doing...
14369: # Dependencies to place before and after the object being linked:
14370: predep_objects_CXX=
14371: postdep_objects_CXX=
14372: predeps_CXX=
14373: postdeps_CXX=
14374: compiler_lib_search_path_CXX=
14375:
14376: cat > conftest.$ac_ext <<_LT_EOF
14377: class Foo
14378: {
14379: public:
14380: Foo (void) { a = 0; }
14381: private:
14382: int a;
14383: };
14384: _LT_EOF
14385:
14386:
14387: _lt_libdeps_save_CFLAGS=$CFLAGS
14388: case "$CC $CFLAGS " in #(
14389: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14390: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14391: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14392: esac
14393:
1.150 moko 14394: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 14395: (eval $ac_compile) 2>&5
14396: ac_status=$?
1.150 moko 14397: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14398: test $ac_status = 0; }; then
1.128 moko 14399: # Parse the compiler output and extract the necessary
14400: # objects, libraries and library flags.
14401:
14402: # Sentinel used to keep track of whether or not we are before
14403: # the conftest object file.
14404: pre_test_object_deps_done=no
14405:
14406: for p in `eval "$output_verbose_link_cmd"`; do
14407: case ${prev}${p} in
14408:
14409: -L* | -R* | -l*)
14410: # Some compilers place space between "-{L,R}" and the path.
14411: # Remove the space.
14412: if test $p = "-L" ||
14413: test $p = "-R"; then
14414: prev=$p
14415: continue
14416: fi
14417:
14418: # Expand the sysroot to ease extracting the directories later.
14419: if test -z "$prev"; then
14420: case $p in
14421: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14422: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14423: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14424: esac
14425: fi
14426: case $p in
14427: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14428: esac
14429: if test "$pre_test_object_deps_done" = no; then
14430: case ${prev} in
14431: -L | -R)
14432: # Internal compiler library paths should come after those
14433: # provided the user. The postdeps already come after the
14434: # user supplied libs so there is no need to process them.
14435: if test -z "$compiler_lib_search_path_CXX"; then
14436: compiler_lib_search_path_CXX="${prev}${p}"
14437: else
14438: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14439: fi
14440: ;;
14441: # The "-l" case would never come before the object being
14442: # linked, so don't bother handling this case.
14443: esac
14444: else
14445: if test -z "$postdeps_CXX"; then
14446: postdeps_CXX="${prev}${p}"
14447: else
14448: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14449: fi
14450: fi
14451: prev=
14452: ;;
14453:
14454: *.lto.$objext) ;; # Ignore GCC LTO objects
14455: *.$objext)
14456: # This assumes that the test object file only shows up
14457: # once in the compiler output.
14458: if test "$p" = "conftest.$objext"; then
14459: pre_test_object_deps_done=yes
14460: continue
14461: fi
14462:
14463: if test "$pre_test_object_deps_done" = no; then
14464: if test -z "$predep_objects_CXX"; then
14465: predep_objects_CXX="$p"
14466: else
14467: predep_objects_CXX="$predep_objects_CXX $p"
14468: fi
14469: else
14470: if test -z "$postdep_objects_CXX"; then
14471: postdep_objects_CXX="$p"
14472: else
14473: postdep_objects_CXX="$postdep_objects_CXX $p"
14474: fi
14475: fi
14476: ;;
14477:
14478: *) ;; # Ignore the rest.
14479:
14480: esac
14481: done
14482:
14483: # Clean up.
14484: rm -f a.out a.exe
14485: else
14486: echo "libtool.m4: error: problem compiling CXX test program"
14487: fi
14488:
14489: $RM -f confest.$objext
14490: CFLAGS=$_lt_libdeps_save_CFLAGS
14491:
14492: # PORTME: override above test on systems where it is broken
14493: case $host_os in
14494: interix[3-9]*)
14495: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14496: # hack all around it, let's just trust "g++" to DTRT.
14497: predep_objects_CXX=
14498: postdep_objects_CXX=
14499: postdeps_CXX=
14500: ;;
14501:
14502: linux*)
14503: case `$CC -V 2>&1 | sed 5q` in
14504: *Sun\ C*)
14505: # Sun C++ 5.9
14506:
14507: # The more standards-conforming stlport4 library is
14508: # incompatible with the Cstd library. Avoid specifying
14509: # it if it's in CXXFLAGS. Ignore libCrun as
14510: # -library=stlport4 depends on it.
14511: case " $CXX $CXXFLAGS " in
14512: *" -library=stlport4 "*)
14513: solaris_use_stlport4=yes
14514: ;;
14515: esac
14516:
14517: if test "$solaris_use_stlport4" != yes; then
14518: postdeps_CXX='-library=Cstd -library=Crun'
14519: fi
14520: ;;
14521: esac
14522: ;;
14523:
14524: solaris*)
14525: case $cc_basename in
14526: CC* | sunCC*)
14527: # The more standards-conforming stlport4 library is
14528: # incompatible with the Cstd library. Avoid specifying
14529: # it if it's in CXXFLAGS. Ignore libCrun as
14530: # -library=stlport4 depends on it.
14531: case " $CXX $CXXFLAGS " in
14532: *" -library=stlport4 "*)
14533: solaris_use_stlport4=yes
14534: ;;
14535: esac
14536:
14537: # Adding this requires a known-good setup of shared libraries for
14538: # Sun compiler versions before 5.6, else PIC objects from an old
14539: # archive will be linked into the output, leading to subtle bugs.
14540: if test "$solaris_use_stlport4" != yes; then
14541: postdeps_CXX='-library=Cstd -library=Crun'
14542: fi
14543: ;;
14544: esac
14545: ;;
14546: esac
14547:
14548:
14549: case " $postdeps_CXX " in
14550: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14551: esac
14552: compiler_lib_search_dirs_CXX=
14553: if test -n "${compiler_lib_search_path_CXX}"; then
14554: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14555: fi
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:
14586:
14587: lt_prog_compiler_wl_CXX=
14588: lt_prog_compiler_pic_CXX=
14589: lt_prog_compiler_static_CXX=
14590:
14591:
14592: # C++ specific cases for pic, static, wl, etc.
14593: if test "$GXX" = yes; then
14594: lt_prog_compiler_wl_CXX='-Wl,'
14595: lt_prog_compiler_static_CXX='-static'
14596:
14597: case $host_os in
14598: aix*)
14599: # All AIX code is PIC.
14600: if test "$host_cpu" = ia64; then
14601: # AIX 5 now supports IA64 processor
14602: lt_prog_compiler_static_CXX='-Bstatic'
14603: fi
14604: ;;
14605:
14606: amigaos*)
14607: case $host_cpu in
14608: powerpc)
14609: # see comment about AmigaOS4 .so support
14610: lt_prog_compiler_pic_CXX='-fPIC'
14611: ;;
14612: m68k)
14613: # FIXME: we need at least 68020 code to build shared libraries, but
14614: # adding the `-m68020' flag to GCC prevents building anything better,
14615: # like `-m68040'.
14616: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14617: ;;
14618: esac
14619: ;;
14620:
14621: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14622: # PIC is the default for these OSes.
14623: ;;
14624: mingw* | cygwin* | os2* | pw32* | cegcc*)
14625: # This hack is so that the source file can tell whether it is being
14626: # built for inclusion in a dll (and should export symbols for example).
14627: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14628: # (--disable-auto-import) libraries
14629: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14630: ;;
14631: darwin* | rhapsody*)
14632: # PIC is the default on this platform
14633: # Common symbols not allowed in MH_DYLIB files
14634: lt_prog_compiler_pic_CXX='-fno-common'
14635: ;;
14636: *djgpp*)
14637: # DJGPP does not support shared libraries at all
14638: lt_prog_compiler_pic_CXX=
14639: ;;
14640: haiku*)
14641: # PIC is the default for Haiku.
14642: # The "-static" flag exists, but is broken.
14643: lt_prog_compiler_static_CXX=
14644: ;;
14645: interix[3-9]*)
14646: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14647: # Instead, we relocate shared libraries at runtime.
14648: ;;
14649: sysv4*MP*)
14650: if test -d /usr/nec; then
14651: lt_prog_compiler_pic_CXX=-Kconform_pic
14652: fi
14653: ;;
14654: hpux*)
14655: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14656: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14657: # sets the default TLS model and affects inlining.
14658: case $host_cpu in
14659: hppa*64*)
14660: ;;
14661: *)
14662: lt_prog_compiler_pic_CXX='-fPIC'
14663: ;;
14664: esac
14665: ;;
14666: *qnx* | *nto*)
14667: # QNX uses GNU C++, but need to define -shared option too, otherwise
14668: # it will coredump.
14669: lt_prog_compiler_pic_CXX='-fPIC -shared'
14670: ;;
14671: *)
14672: lt_prog_compiler_pic_CXX='-fPIC'
14673: ;;
14674: esac
14675: else
14676: case $host_os in
14677: aix[4-9]*)
14678: # All AIX code is PIC.
14679: if test "$host_cpu" = ia64; then
14680: # AIX 5 now supports IA64 processor
14681: lt_prog_compiler_static_CXX='-Bstatic'
14682: else
14683: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14684: fi
14685: ;;
14686: chorus*)
14687: case $cc_basename in
14688: cxch68*)
14689: # Green Hills C++ Compiler
14690: # _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"
14691: ;;
14692: esac
14693: ;;
14694: mingw* | cygwin* | os2* | pw32* | cegcc*)
14695: # This hack is so that the source file can tell whether it is being
14696: # built for inclusion in a dll (and should export symbols for example).
14697: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14698: ;;
14699: dgux*)
14700: case $cc_basename in
14701: ec++*)
14702: lt_prog_compiler_pic_CXX='-KPIC'
14703: ;;
14704: ghcx*)
14705: # Green Hills C++ Compiler
14706: lt_prog_compiler_pic_CXX='-pic'
14707: ;;
14708: *)
14709: ;;
14710: esac
14711: ;;
14712: freebsd* | dragonfly*)
14713: # FreeBSD uses GNU C++
14714: ;;
14715: hpux9* | hpux10* | hpux11*)
14716: case $cc_basename in
14717: CC*)
14718: lt_prog_compiler_wl_CXX='-Wl,'
14719: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14720: if test "$host_cpu" != ia64; then
14721: lt_prog_compiler_pic_CXX='+Z'
14722: fi
14723: ;;
14724: aCC*)
14725: lt_prog_compiler_wl_CXX='-Wl,'
14726: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14727: case $host_cpu in
14728: hppa*64*|ia64*)
14729: # +Z the default
14730: ;;
14731: *)
14732: lt_prog_compiler_pic_CXX='+Z'
14733: ;;
14734: esac
14735: ;;
14736: *)
14737: ;;
14738: esac
14739: ;;
14740: interix*)
14741: # This is c89, which is MS Visual C++ (no shared libs)
14742: # Anyone wants to do a port?
14743: ;;
14744: irix5* | irix6* | nonstopux*)
14745: case $cc_basename in
14746: CC*)
14747: lt_prog_compiler_wl_CXX='-Wl,'
14748: lt_prog_compiler_static_CXX='-non_shared'
14749: # CC pic flag -KPIC is the default.
14750: ;;
14751: *)
14752: ;;
14753: esac
14754: ;;
14755: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14756: case $cc_basename in
14757: KCC*)
14758: # KAI C++ Compiler
14759: lt_prog_compiler_wl_CXX='--backend -Wl,'
14760: lt_prog_compiler_pic_CXX='-fPIC'
14761: ;;
14762: ecpc* )
14763: # old Intel C++ for x86_64 which still supported -KPIC.
14764: lt_prog_compiler_wl_CXX='-Wl,'
14765: lt_prog_compiler_pic_CXX='-KPIC'
14766: lt_prog_compiler_static_CXX='-static'
14767: ;;
14768: icpc* )
14769: # Intel C++, used to be incompatible with GCC.
14770: # ICC 10 doesn't accept -KPIC any more.
14771: lt_prog_compiler_wl_CXX='-Wl,'
14772: lt_prog_compiler_pic_CXX='-fPIC'
14773: lt_prog_compiler_static_CXX='-static'
14774: ;;
14775: pgCC* | pgcpp*)
14776: # Portland Group C++ compiler
14777: lt_prog_compiler_wl_CXX='-Wl,'
14778: lt_prog_compiler_pic_CXX='-fpic'
14779: lt_prog_compiler_static_CXX='-Bstatic'
14780: ;;
14781: cxx*)
14782: # Compaq C++
14783: # Make sure the PIC flag is empty. It appears that all Alpha
14784: # Linux and Compaq Tru64 Unix objects are PIC.
14785: lt_prog_compiler_pic_CXX=
14786: lt_prog_compiler_static_CXX='-non_shared'
14787: ;;
14788: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14789: # IBM XL 8.0, 9.0 on PPC and BlueGene
14790: lt_prog_compiler_wl_CXX='-Wl,'
14791: lt_prog_compiler_pic_CXX='-qpic'
14792: lt_prog_compiler_static_CXX='-qstaticlink'
14793: ;;
14794: *)
14795: case `$CC -V 2>&1 | sed 5q` in
14796: *Sun\ C*)
14797: # Sun C++ 5.9
14798: lt_prog_compiler_pic_CXX='-KPIC'
14799: lt_prog_compiler_static_CXX='-Bstatic'
14800: lt_prog_compiler_wl_CXX='-Qoption ld '
14801: ;;
14802: esac
14803: ;;
14804: esac
14805: ;;
14806: lynxos*)
14807: ;;
14808: m88k*)
14809: ;;
14810: mvs*)
14811: case $cc_basename in
14812: cxx*)
14813: lt_prog_compiler_pic_CXX='-W c,exportall'
14814: ;;
14815: *)
14816: ;;
14817: esac
14818: ;;
14819: netbsd*)
14820: ;;
14821: *qnx* | *nto*)
14822: # QNX uses GNU C++, but need to define -shared option too, otherwise
14823: # it will coredump.
14824: lt_prog_compiler_pic_CXX='-fPIC -shared'
14825: ;;
14826: osf3* | osf4* | osf5*)
14827: case $cc_basename in
14828: KCC*)
14829: lt_prog_compiler_wl_CXX='--backend -Wl,'
14830: ;;
14831: RCC*)
14832: # Rational C++ 2.4.1
14833: lt_prog_compiler_pic_CXX='-pic'
14834: ;;
14835: cxx*)
14836: # Digital/Compaq C++
14837: lt_prog_compiler_wl_CXX='-Wl,'
14838: # Make sure the PIC flag is empty. It appears that all Alpha
14839: # Linux and Compaq Tru64 Unix objects are PIC.
14840: lt_prog_compiler_pic_CXX=
14841: lt_prog_compiler_static_CXX='-non_shared'
14842: ;;
14843: *)
14844: ;;
14845: esac
14846: ;;
14847: psos*)
14848: ;;
14849: solaris*)
14850: case $cc_basename in
14851: CC* | sunCC*)
14852: # Sun C++ 4.2, 5.x and Centerline C++
14853: lt_prog_compiler_pic_CXX='-KPIC'
14854: lt_prog_compiler_static_CXX='-Bstatic'
14855: lt_prog_compiler_wl_CXX='-Qoption ld '
14856: ;;
14857: gcx*)
14858: # Green Hills C++ Compiler
14859: lt_prog_compiler_pic_CXX='-PIC'
14860: ;;
14861: *)
14862: ;;
14863: esac
14864: ;;
14865: sunos4*)
14866: case $cc_basename in
14867: CC*)
14868: # Sun C++ 4.x
14869: lt_prog_compiler_pic_CXX='-pic'
14870: lt_prog_compiler_static_CXX='-Bstatic'
14871: ;;
14872: lcc*)
14873: # Lucid
14874: lt_prog_compiler_pic_CXX='-pic'
14875: ;;
14876: *)
14877: ;;
14878: esac
14879: ;;
14880: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14881: case $cc_basename in
14882: CC*)
14883: lt_prog_compiler_wl_CXX='-Wl,'
14884: lt_prog_compiler_pic_CXX='-KPIC'
14885: lt_prog_compiler_static_CXX='-Bstatic'
14886: ;;
14887: esac
14888: ;;
14889: tandem*)
14890: case $cc_basename in
14891: NCC*)
14892: # NonStop-UX NCC 3.20
14893: lt_prog_compiler_pic_CXX='-KPIC'
14894: ;;
14895: *)
14896: ;;
14897: esac
14898: ;;
14899: vxworks*)
14900: ;;
14901: *)
14902: lt_prog_compiler_can_build_shared_CXX=no
14903: ;;
14904: esac
14905: fi
14906:
14907: case $host_os in
14908: # For platforms which do not support PIC, -DPIC is meaningless:
14909: *djgpp*)
14910: lt_prog_compiler_pic_CXX=
14911: ;;
14912: *)
14913: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14914: ;;
14915: esac
14916:
1.150 moko 14917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14918: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14919: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14920: $as_echo_n "(cached) " >&6
1.128 moko 14921: else
14922: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14923: fi
1.150 moko 14924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14925: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 14926: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14927:
14928: #
14929: # Check to make sure the PIC flag actually works.
14930: #
14931: if test -n "$lt_prog_compiler_pic_CXX"; then
1.150 moko 14932: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14933: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14934: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14935: $as_echo_n "(cached) " >&6
1.128 moko 14936: else
14937: lt_cv_prog_compiler_pic_works_CXX=no
14938: ac_outfile=conftest.$ac_objext
14939: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14940: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14941: # Insert the option either (1) after the last *FLAGS variable, or
14942: # (2) before a word containing "conftest.", or (3) at the end.
14943: # Note that $ac_compile itself does not contain backslashes and begins
14944: # with a dollar sign (not a hyphen), so the echo should work correctly.
14945: # The option is referenced via a variable to avoid confusing sed.
14946: lt_compile=`echo "$ac_compile" | $SED \
14947: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14948: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14949: -e 's:$: $lt_compiler_flag:'`
14950: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14951: (eval "$lt_compile" 2>conftest.err)
14952: ac_status=$?
14953: cat conftest.err >&5
14954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955: if (exit $ac_status) && test -s "$ac_outfile"; then
14956: # The compiler can only warn and ignore the option if not recognized
14957: # So say no if there are warnings other than the usual output.
14958: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14959: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14960: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14961: lt_cv_prog_compiler_pic_works_CXX=yes
14962: fi
14963: fi
14964: $RM conftest*
14965:
14966: fi
1.150 moko 14967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14968: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 14969:
14970: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14971: case $lt_prog_compiler_pic_CXX in
14972: "" | " "*) ;;
14973: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14974: esac
14975: else
14976: lt_prog_compiler_pic_CXX=
14977: lt_prog_compiler_can_build_shared_CXX=no
14978: fi
14979:
14980: fi
14981:
14982:
14983:
14984:
14985:
14986: #
14987: # Check to make sure the static flag actually works.
14988: #
14989: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.150 moko 14990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14991: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14992: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14993: $as_echo_n "(cached) " >&6
1.128 moko 14994: else
14995: lt_cv_prog_compiler_static_works_CXX=no
14996: save_LDFLAGS="$LDFLAGS"
14997: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14998: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14999: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15000: # The linker can only warn and ignore the option if not recognized
15001: # So say no if there are warnings
15002: if test -s conftest.err; then
15003: # Append any errors to the config.log.
15004: cat conftest.err 1>&5
15005: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15006: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15007: if diff conftest.exp conftest.er2 >/dev/null; then
15008: lt_cv_prog_compiler_static_works_CXX=yes
15009: fi
15010: else
15011: lt_cv_prog_compiler_static_works_CXX=yes
15012: fi
15013: fi
15014: $RM -r conftest*
15015: LDFLAGS="$save_LDFLAGS"
15016:
15017: fi
1.150 moko 15018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15019: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 15020:
15021: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15022: :
15023: else
15024: lt_prog_compiler_static_CXX=
15025: fi
15026:
15027:
15028:
15029:
1.150 moko 15030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15031: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15032: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15033: $as_echo_n "(cached) " >&6
1.128 moko 15034: else
15035: lt_cv_prog_compiler_c_o_CXX=no
15036: $RM -r conftest 2>/dev/null
15037: mkdir conftest
15038: cd conftest
15039: mkdir out
15040: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15041:
15042: lt_compiler_flag="-o out/conftest2.$ac_objext"
15043: # Insert the option either (1) after the last *FLAGS variable, or
15044: # (2) before a word containing "conftest.", or (3) at the end.
15045: # Note that $ac_compile itself does not contain backslashes and begins
15046: # with a dollar sign (not a hyphen), so the echo should work correctly.
15047: lt_compile=`echo "$ac_compile" | $SED \
15048: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15049: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15050: -e 's:$: $lt_compiler_flag:'`
15051: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15052: (eval "$lt_compile" 2>out/conftest.err)
15053: ac_status=$?
15054: cat out/conftest.err >&5
15055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15057: then
15058: # The compiler can only warn and ignore the option if not recognized
15059: # So say no if there are warnings
15060: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15061: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15062: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15063: lt_cv_prog_compiler_c_o_CXX=yes
15064: fi
15065: fi
15066: chmod u+w . 2>&5
15067: $RM conftest*
15068: # SGI C++ compiler will create directory out/ii_files/ for
15069: # template instantiation
15070: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15071: $RM out/* && rmdir out
15072: cd ..
15073: $RM -r conftest
15074: $RM conftest*
15075:
15076: fi
1.150 moko 15077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15078: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15079:
15080:
15081:
1.150 moko 15082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15083: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15084: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15085: $as_echo_n "(cached) " >&6
1.128 moko 15086: else
15087: lt_cv_prog_compiler_c_o_CXX=no
15088: $RM -r conftest 2>/dev/null
15089: mkdir conftest
15090: cd conftest
15091: mkdir out
15092: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15093:
15094: lt_compiler_flag="-o out/conftest2.$ac_objext"
15095: # Insert the option either (1) after the last *FLAGS variable, or
15096: # (2) before a word containing "conftest.", or (3) at the end.
15097: # Note that $ac_compile itself does not contain backslashes and begins
15098: # with a dollar sign (not a hyphen), so the echo should work correctly.
15099: lt_compile=`echo "$ac_compile" | $SED \
15100: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15101: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15102: -e 's:$: $lt_compiler_flag:'`
15103: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15104: (eval "$lt_compile" 2>out/conftest.err)
15105: ac_status=$?
15106: cat out/conftest.err >&5
15107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15109: then
15110: # The compiler can only warn and ignore the option if not recognized
15111: # So say no if there are warnings
15112: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15113: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15114: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15115: lt_cv_prog_compiler_c_o_CXX=yes
15116: fi
15117: fi
15118: chmod u+w . 2>&5
15119: $RM conftest*
15120: # SGI C++ compiler will create directory out/ii_files/ for
15121: # template instantiation
15122: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15123: $RM out/* && rmdir out
15124: cd ..
15125: $RM -r conftest
15126: $RM conftest*
15127:
15128: fi
1.150 moko 15129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15130: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15131:
15132:
15133:
15134:
15135: hard_links="nottested"
15136: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15137: # do not overwrite the value of need_locks provided by the user
1.150 moko 15138: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15139: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 15140: hard_links=yes
15141: $RM conftest*
15142: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15143: touch conftest.a
15144: ln conftest.a conftest.b 2>&5 || hard_links=no
15145: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 15146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15147: $as_echo "$hard_links" >&6; }
1.128 moko 15148: if test "$hard_links" = no; then
1.150 moko 15149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15150: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 15151: need_locks=warn
15152: fi
15153: else
15154: need_locks=no
15155: fi
15156:
15157:
15158:
1.150 moko 15159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15160: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 15161:
15162: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15163: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15164: case $host_os in
15165: aix[4-9]*)
15166: # If we're using GNU nm, then we don't want the "-C" option.
15167: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15168: # Also, AIX nm treats weak defined symbols like other global defined
15169: # symbols, whereas GNU nm marks them as "W".
15170: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15171: 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'
15172: else
15173: 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'
15174: fi
15175: ;;
15176: pw32*)
15177: export_symbols_cmds_CXX="$ltdll_cmds"
15178: ;;
15179: cygwin* | mingw* | cegcc*)
15180: case $cc_basename in
15181: cl*)
15182: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15183: ;;
15184: *)
15185: 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'
15186: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15187: ;;
15188: esac
15189: ;;
15190: *)
15191: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15192: ;;
15193: esac
15194:
1.150 moko 15195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15196: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 15197: test "$ld_shlibs_CXX" = no && can_build_shared=no
15198:
15199: with_gnu_ld_CXX=$with_gnu_ld
15200:
15201:
15202:
15203:
15204:
15205:
15206: #
15207: # Do we need to explicitly link libc?
15208: #
15209: case "x$archive_cmds_need_lc_CXX" in
15210: x|xyes)
15211: # Assume -lc should be added
15212: archive_cmds_need_lc_CXX=yes
15213:
15214: if test "$enable_shared" = yes && test "$GCC" = yes; then
15215: case $archive_cmds_CXX in
15216: *'~'*)
15217: # FIXME: we may have to deal with multi-command sequences.
15218: ;;
15219: '$CC '*)
15220: # Test whether the compiler implicitly links with -lc since on some
15221: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15222: # to ld, don't add -lc before -lgcc.
1.150 moko 15223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15224: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15225: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15226: $as_echo_n "(cached) " >&6
1.128 moko 15227: else
15228: $RM conftest*
15229: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15230:
1.150 moko 15231: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 15232: (eval $ac_compile) 2>&5
15233: ac_status=$?
1.150 moko 15234: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15235: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 15236: soname=conftest
15237: lib=conftest
15238: libobjs=conftest.$ac_objext
15239: deplibs=
15240: wl=$lt_prog_compiler_wl_CXX
15241: pic_flag=$lt_prog_compiler_pic_CXX
15242: compiler_flags=-v
15243: linker_flags=-v
15244: verstring=
15245: output_objdir=.
15246: libname=conftest
15247: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15248: allow_undefined_flag_CXX=
1.150 moko 15249: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 15250: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15251: ac_status=$?
1.150 moko 15252: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15253: test $ac_status = 0; }
1.128 moko 15254: then
15255: lt_cv_archive_cmds_need_lc_CXX=no
15256: else
15257: lt_cv_archive_cmds_need_lc_CXX=yes
15258: fi
15259: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15260: else
15261: cat conftest.err 1>&5
15262: fi
15263: $RM conftest*
15264:
15265: fi
1.150 moko 15266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15267: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 15268: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15269: ;;
15270: esac
15271: fi
15272: ;;
15273: esac
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:
15334:
15335:
1.150 moko 15336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15337: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 15338:
15339: library_names_spec=
15340: libname_spec='lib$name'
15341: soname_spec=
15342: shrext_cmds=".so"
15343: postinstall_cmds=
15344: postuninstall_cmds=
15345: finish_cmds=
15346: finish_eval=
15347: shlibpath_var=
15348: shlibpath_overrides_runpath=unknown
15349: version_type=none
15350: dynamic_linker="$host_os ld.so"
15351: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15352: need_lib_prefix=unknown
15353: hardcode_into_libs=no
15354:
15355: # when you set need_version to no, make sure it does not cause -set_version
15356: # flags to be left without arguments
15357: need_version=unknown
15358:
15359: case $host_os in
15360: aix3*)
15361: version_type=linux # correct to gnu/linux during the next big refactor
15362: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15363: shlibpath_var=LIBPATH
15364:
15365: # AIX 3 has no versioning support, so we append a major version to the name.
15366: soname_spec='${libname}${release}${shared_ext}$major'
15367: ;;
15368:
15369: aix[4-9]*)
15370: version_type=linux # correct to gnu/linux during the next big refactor
15371: need_lib_prefix=no
15372: need_version=no
15373: hardcode_into_libs=yes
15374: if test "$host_cpu" = ia64; then
15375: # AIX 5 supports IA64
15376: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15377: shlibpath_var=LD_LIBRARY_PATH
15378: else
15379: # With GCC up to 2.95.x, collect2 would create an import file
15380: # for dependence libraries. The import file would start with
15381: # the line `#! .'. This would cause the generated library to
15382: # depend on `.', always an invalid library. This was fixed in
15383: # development snapshots of GCC prior to 3.0.
15384: case $host_os in
15385: aix4 | aix4.[01] | aix4.[01].*)
15386: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15387: echo ' yes '
15388: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15389: :
15390: else
15391: can_build_shared=no
15392: fi
15393: ;;
15394: esac
15395: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15396: # soname into executable. Probably we can add versioning support to
15397: # collect2, so additional links can be useful in future.
15398: if test "$aix_use_runtimelinking" = yes; then
15399: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15400: # instead of lib<name>.a to let people know that these are not
15401: # typical AIX shared libraries.
15402: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403: else
15404: # We preserve .a as extension for shared libraries through AIX4.2
15405: # and later when we are not doing run time linking.
15406: library_names_spec='${libname}${release}.a $libname.a'
15407: soname_spec='${libname}${release}${shared_ext}$major'
15408: fi
15409: shlibpath_var=LIBPATH
15410: fi
15411: ;;
15412:
15413: amigaos*)
15414: case $host_cpu in
15415: powerpc)
15416: # Since July 2007 AmigaOS4 officially supports .so libraries.
15417: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15418: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419: ;;
15420: m68k)
15421: library_names_spec='$libname.ixlibrary $libname.a'
15422: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15423: 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'
15424: ;;
15425: esac
15426: ;;
15427:
15428: beos*)
15429: library_names_spec='${libname}${shared_ext}'
15430: dynamic_linker="$host_os ld.so"
15431: shlibpath_var=LIBRARY_PATH
15432: ;;
15433:
15434: bsdi[45]*)
15435: version_type=linux # correct to gnu/linux during the next big refactor
15436: need_version=no
15437: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438: soname_spec='${libname}${release}${shared_ext}$major'
15439: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15440: shlibpath_var=LD_LIBRARY_PATH
15441: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15442: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15443: # the default ld.so.conf also contains /usr/contrib/lib and
15444: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15445: # libtool to hard-code these into programs
15446: ;;
15447:
15448: cygwin* | mingw* | pw32* | cegcc*)
15449: version_type=windows
15450: shrext_cmds=".dll"
15451: need_version=no
15452: need_lib_prefix=no
15453:
15454: case $GCC,$cc_basename in
15455: yes,*)
15456: # gcc
15457: library_names_spec='$libname.dll.a'
15458: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15459: postinstall_cmds='base_file=`basename \${file}`~
15460: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15461: dldir=$destdir/`dirname \$dlpath`~
15462: test -d \$dldir || mkdir -p \$dldir~
15463: $install_prog $dir/$dlname \$dldir/$dlname~
15464: chmod a+x \$dldir/$dlname~
15465: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15466: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15467: fi'
15468: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15469: dlpath=$dir/\$dldll~
15470: $RM \$dlpath'
15471: shlibpath_overrides_runpath=yes
15472:
15473: case $host_os in
15474: cygwin*)
15475: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15476: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15477:
15478: ;;
15479: mingw* | cegcc*)
15480: # MinGW DLLs use traditional 'lib' prefix
15481: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15482: ;;
15483: pw32*)
15484: # pw32 DLLs use 'pw' prefix rather than 'lib'
15485: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15486: ;;
15487: esac
15488: dynamic_linker='Win32 ld.exe'
15489: ;;
15490:
15491: *,cl*)
15492: # Native MSVC
15493: libname_spec='$name'
15494: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15495: library_names_spec='${libname}.dll.lib'
15496:
15497: case $build_os in
15498: mingw*)
15499: sys_lib_search_path_spec=
15500: lt_save_ifs=$IFS
15501: IFS=';'
15502: for lt_path in $LIB
15503: do
15504: IFS=$lt_save_ifs
15505: # Let DOS variable expansion print the short 8.3 style file name.
15506: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15507: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15508: done
15509: IFS=$lt_save_ifs
15510: # Convert to MSYS style.
15511: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15512: ;;
15513: cygwin*)
15514: # Convert to unix form, then to dos form, then back to unix form
15515: # but this time dos style (no spaces!) so that the unix form looks
15516: # like /cygdrive/c/PROGRA~1:/cygdr...
15517: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15518: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15519: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15520: ;;
15521: *)
15522: sys_lib_search_path_spec="$LIB"
15523: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15524: # It is most probably a Windows format PATH.
15525: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15526: else
15527: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15528: fi
15529: # FIXME: find the short name or the path components, as spaces are
15530: # common. (e.g. "Program Files" -> "PROGRA~1")
15531: ;;
15532: esac
15533:
15534: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15535: postinstall_cmds='base_file=`basename \${file}`~
15536: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15537: dldir=$destdir/`dirname \$dlpath`~
15538: test -d \$dldir || mkdir -p \$dldir~
15539: $install_prog $dir/$dlname \$dldir/$dlname'
15540: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15541: dlpath=$dir/\$dldll~
15542: $RM \$dlpath'
15543: shlibpath_overrides_runpath=yes
15544: dynamic_linker='Win32 link.exe'
15545: ;;
15546:
15547: *)
15548: # Assume MSVC wrapper
15549: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15550: dynamic_linker='Win32 ld.exe'
15551: ;;
15552: esac
15553: # FIXME: first we should search . and the directory the executable is in
15554: shlibpath_var=PATH
15555: ;;
15556:
15557: darwin* | rhapsody*)
15558: dynamic_linker="$host_os dyld"
15559: version_type=darwin
15560: need_lib_prefix=no
15561: need_version=no
15562: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15563: soname_spec='${libname}${release}${major}$shared_ext'
15564: shlibpath_overrides_runpath=yes
15565: shlibpath_var=DYLD_LIBRARY_PATH
15566: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15567:
15568: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15569: ;;
15570:
15571: dgux*)
15572: version_type=linux # correct to gnu/linux during the next big refactor
15573: need_lib_prefix=no
15574: need_version=no
15575: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15576: soname_spec='${libname}${release}${shared_ext}$major'
15577: shlibpath_var=LD_LIBRARY_PATH
15578: ;;
15579:
15580: freebsd* | dragonfly*)
15581: # DragonFly does not have aout. When/if they implement a new
15582: # versioning mechanism, adjust this.
15583: if test -x /usr/bin/objformat; then
15584: objformat=`/usr/bin/objformat`
15585: else
15586: case $host_os in
15587: freebsd[23].*) objformat=aout ;;
15588: *) objformat=elf ;;
15589: esac
15590: fi
15591: version_type=freebsd-$objformat
15592: case $version_type in
15593: freebsd-elf*)
15594: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15595: need_version=no
15596: need_lib_prefix=no
15597: ;;
15598: freebsd-*)
15599: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15600: need_version=yes
15601: ;;
15602: esac
15603: shlibpath_var=LD_LIBRARY_PATH
15604: case $host_os in
15605: freebsd2.*)
15606: shlibpath_overrides_runpath=yes
15607: ;;
15608: freebsd3.[01]* | freebsdelf3.[01]*)
15609: shlibpath_overrides_runpath=yes
15610: hardcode_into_libs=yes
15611: ;;
15612: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15613: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15614: shlibpath_overrides_runpath=no
15615: hardcode_into_libs=yes
15616: ;;
15617: *) # from 4.6 on, and DragonFly
15618: shlibpath_overrides_runpath=yes
15619: hardcode_into_libs=yes
15620: ;;
15621: esac
15622: ;;
15623:
15624: gnu*)
15625: version_type=linux # correct to gnu/linux during the next big refactor
15626: need_lib_prefix=no
15627: need_version=no
15628: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15629: soname_spec='${libname}${release}${shared_ext}$major'
15630: shlibpath_var=LD_LIBRARY_PATH
15631: shlibpath_overrides_runpath=no
15632: hardcode_into_libs=yes
15633: ;;
15634:
15635: haiku*)
15636: version_type=linux # correct to gnu/linux during the next big refactor
15637: need_lib_prefix=no
15638: need_version=no
15639: dynamic_linker="$host_os runtime_loader"
15640: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15641: soname_spec='${libname}${release}${shared_ext}$major'
15642: shlibpath_var=LIBRARY_PATH
15643: shlibpath_overrides_runpath=yes
15644: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15645: hardcode_into_libs=yes
15646: ;;
15647:
15648: hpux9* | hpux10* | hpux11*)
15649: # Give a soname corresponding to the major version so that dld.sl refuses to
15650: # link against other versions.
15651: version_type=sunos
15652: need_lib_prefix=no
15653: need_version=no
15654: case $host_cpu in
15655: ia64*)
15656: shrext_cmds='.so'
15657: hardcode_into_libs=yes
15658: dynamic_linker="$host_os dld.so"
15659: shlibpath_var=LD_LIBRARY_PATH
15660: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15661: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15662: soname_spec='${libname}${release}${shared_ext}$major'
15663: if test "X$HPUX_IA64_MODE" = X32; then
15664: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15665: else
15666: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15667: fi
15668: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15669: ;;
15670: hppa*64*)
15671: shrext_cmds='.sl'
15672: hardcode_into_libs=yes
15673: dynamic_linker="$host_os dld.sl"
15674: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15675: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15676: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15677: soname_spec='${libname}${release}${shared_ext}$major'
15678: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15679: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15680: ;;
15681: *)
15682: shrext_cmds='.sl'
15683: dynamic_linker="$host_os dld.sl"
15684: shlibpath_var=SHLIB_PATH
15685: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15686: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687: soname_spec='${libname}${release}${shared_ext}$major'
15688: ;;
15689: esac
15690: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15691: postinstall_cmds='chmod 555 $lib'
15692: # or fails outright, so override atomically:
15693: install_override_mode=555
15694: ;;
15695:
15696: interix[3-9]*)
15697: version_type=linux # correct to gnu/linux during the next big refactor
15698: need_lib_prefix=no
15699: need_version=no
15700: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15701: soname_spec='${libname}${release}${shared_ext}$major'
15702: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15703: shlibpath_var=LD_LIBRARY_PATH
15704: shlibpath_overrides_runpath=no
15705: hardcode_into_libs=yes
15706: ;;
15707:
15708: irix5* | irix6* | nonstopux*)
15709: case $host_os in
15710: nonstopux*) version_type=nonstopux ;;
15711: *)
15712: if test "$lt_cv_prog_gnu_ld" = yes; then
15713: version_type=linux # correct to gnu/linux during the next big refactor
15714: else
15715: version_type=irix
15716: fi ;;
15717: esac
15718: need_lib_prefix=no
15719: need_version=no
15720: soname_spec='${libname}${release}${shared_ext}$major'
15721: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15722: case $host_os in
15723: irix5* | nonstopux*)
15724: libsuff= shlibsuff=
15725: ;;
15726: *)
15727: case $LD in # libtool.m4 will add one of these switches to LD
15728: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15729: libsuff= shlibsuff= libmagic=32-bit;;
15730: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15731: libsuff=32 shlibsuff=N32 libmagic=N32;;
15732: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15733: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15734: *) libsuff= shlibsuff= libmagic=never-match;;
15735: esac
15736: ;;
15737: esac
15738: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15739: shlibpath_overrides_runpath=no
15740: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15741: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15742: hardcode_into_libs=yes
15743: ;;
15744:
15745: # No shared lib support for Linux oldld, aout, or coff.
15746: linux*oldld* | linux*aout* | linux*coff*)
15747: dynamic_linker=no
15748: ;;
15749:
15750: # This must be glibc/ELF.
15751: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15752: version_type=linux # correct to gnu/linux during the next big refactor
15753: need_lib_prefix=no
15754: need_version=no
15755: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15756: soname_spec='${libname}${release}${shared_ext}$major'
15757: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15758: shlibpath_var=LD_LIBRARY_PATH
15759: shlibpath_overrides_runpath=no
15760:
15761: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 15762: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15763: $as_echo_n "(cached) " >&6
1.128 moko 15764: else
15765: lt_cv_shlibpath_overrides_runpath=no
15766: save_LDFLAGS=$LDFLAGS
15767: save_libdir=$libdir
15768: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15769: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 15770: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15771: /* end confdefs.h. */
15772:
15773: int
15774: main ()
15775: {
15776:
15777: ;
15778: return 0;
15779: }
15780: _ACEOF
1.150 moko 15781: if ac_fn_cxx_try_link "$LINENO"; then :
15782: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 15783: lt_cv_shlibpath_overrides_runpath=yes
15784: fi
15785: fi
1.150 moko 15786: rm -f core conftest.err conftest.$ac_objext \
15787: conftest$ac_exeext conftest.$ac_ext
1.128 moko 15788: LDFLAGS=$save_LDFLAGS
15789: libdir=$save_libdir
15790:
15791: fi
15792:
15793: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15794:
15795: # This implies no fast_install, which is unacceptable.
15796: # Some rework will be needed to allow for fast_install
15797: # before this can be enabled.
15798: hardcode_into_libs=yes
15799:
15800: # Append ld.so.conf contents to the search path
15801: if test -f /etc/ld.so.conf; then
15802: 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' ' '`
15803: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15804: fi
15805:
15806: # We used to test for /lib/ld.so.1 and disable shared libraries on
15807: # powerpc, because MkLinux only supported shared libraries with the
15808: # GNU dynamic linker. Since this was broken with cross compilers,
15809: # most powerpc-linux boxes support dynamic linking these days and
15810: # people can always --disable-shared, the test was removed, and we
15811: # assume the GNU/Linux dynamic linker is in use.
15812: dynamic_linker='GNU/Linux ld.so'
15813: ;;
15814:
15815: netbsd*)
15816: version_type=sunos
15817: need_lib_prefix=no
15818: need_version=no
15819: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15820: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15821: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15822: dynamic_linker='NetBSD (a.out) ld.so'
15823: else
15824: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15825: soname_spec='${libname}${release}${shared_ext}$major'
15826: dynamic_linker='NetBSD ld.elf_so'
15827: fi
15828: shlibpath_var=LD_LIBRARY_PATH
15829: shlibpath_overrides_runpath=yes
15830: hardcode_into_libs=yes
15831: ;;
15832:
15833: newsos6)
15834: version_type=linux # correct to gnu/linux during the next big refactor
15835: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836: shlibpath_var=LD_LIBRARY_PATH
15837: shlibpath_overrides_runpath=yes
15838: ;;
15839:
15840: *nto* | *qnx*)
15841: version_type=qnx
15842: need_lib_prefix=no
15843: need_version=no
15844: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845: soname_spec='${libname}${release}${shared_ext}$major'
15846: shlibpath_var=LD_LIBRARY_PATH
15847: shlibpath_overrides_runpath=no
15848: hardcode_into_libs=yes
15849: dynamic_linker='ldqnx.so'
15850: ;;
15851:
15852: openbsd*)
15853: version_type=sunos
15854: sys_lib_dlsearch_path_spec="/usr/lib"
15855: need_lib_prefix=no
15856: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15857: case $host_os in
15858: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15859: *) need_version=no ;;
15860: esac
15861: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15862: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15863: shlibpath_var=LD_LIBRARY_PATH
15864: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15865: case $host_os in
15866: openbsd2.[89] | openbsd2.[89].*)
15867: shlibpath_overrides_runpath=no
15868: ;;
15869: *)
15870: shlibpath_overrides_runpath=yes
15871: ;;
15872: esac
15873: else
15874: shlibpath_overrides_runpath=yes
15875: fi
15876: ;;
15877:
15878: os2*)
15879: libname_spec='$name'
15880: shrext_cmds=".dll"
15881: need_lib_prefix=no
15882: library_names_spec='$libname${shared_ext} $libname.a'
15883: dynamic_linker='OS/2 ld.exe'
15884: shlibpath_var=LIBPATH
15885: ;;
15886:
15887: osf3* | osf4* | osf5*)
15888: version_type=osf
15889: need_lib_prefix=no
15890: need_version=no
15891: soname_spec='${libname}${release}${shared_ext}$major'
15892: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15893: shlibpath_var=LD_LIBRARY_PATH
15894: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15895: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15896: ;;
15897:
15898: rdos*)
15899: dynamic_linker=no
15900: ;;
15901:
15902: solaris*)
15903: version_type=linux # correct to gnu/linux during the next big refactor
15904: need_lib_prefix=no
15905: need_version=no
15906: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907: soname_spec='${libname}${release}${shared_ext}$major'
15908: shlibpath_var=LD_LIBRARY_PATH
15909: shlibpath_overrides_runpath=yes
15910: hardcode_into_libs=yes
15911: # ldd complains unless libraries are executable
15912: postinstall_cmds='chmod +x $lib'
15913: ;;
15914:
15915: sunos4*)
15916: version_type=sunos
15917: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15918: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15919: shlibpath_var=LD_LIBRARY_PATH
15920: shlibpath_overrides_runpath=yes
15921: if test "$with_gnu_ld" = yes; then
15922: need_lib_prefix=no
15923: fi
15924: need_version=yes
15925: ;;
15926:
15927: sysv4 | sysv4.3*)
15928: version_type=linux # correct to gnu/linux during the next big refactor
15929: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15930: soname_spec='${libname}${release}${shared_ext}$major'
15931: shlibpath_var=LD_LIBRARY_PATH
15932: case $host_vendor in
15933: sni)
15934: shlibpath_overrides_runpath=no
15935: need_lib_prefix=no
15936: runpath_var=LD_RUN_PATH
15937: ;;
15938: siemens)
15939: need_lib_prefix=no
15940: ;;
15941: motorola)
15942: need_lib_prefix=no
15943: need_version=no
15944: shlibpath_overrides_runpath=no
15945: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15946: ;;
15947: esac
15948: ;;
15949:
15950: sysv4*MP*)
15951: if test -d /usr/nec ;then
15952: version_type=linux # correct to gnu/linux during the next big refactor
15953: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15954: soname_spec='$libname${shared_ext}.$major'
15955: shlibpath_var=LD_LIBRARY_PATH
15956: fi
15957: ;;
15958:
15959: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15960: version_type=freebsd-elf
15961: need_lib_prefix=no
15962: need_version=no
15963: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15964: soname_spec='${libname}${release}${shared_ext}$major'
15965: shlibpath_var=LD_LIBRARY_PATH
15966: shlibpath_overrides_runpath=yes
15967: hardcode_into_libs=yes
15968: if test "$with_gnu_ld" = yes; then
15969: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15970: else
15971: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15972: case $host_os in
15973: sco3.2v5*)
15974: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15975: ;;
15976: esac
15977: fi
15978: sys_lib_dlsearch_path_spec='/usr/lib'
15979: ;;
15980:
15981: tpf*)
15982: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15983: version_type=linux # correct to gnu/linux during the next big refactor
15984: need_lib_prefix=no
15985: need_version=no
15986: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15987: shlibpath_var=LD_LIBRARY_PATH
15988: shlibpath_overrides_runpath=no
15989: hardcode_into_libs=yes
15990: ;;
15991:
15992: uts4*)
15993: version_type=linux # correct to gnu/linux during the next big refactor
15994: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995: soname_spec='${libname}${release}${shared_ext}$major'
15996: shlibpath_var=LD_LIBRARY_PATH
15997: ;;
15998:
15999: *)
16000: dynamic_linker=no
16001: ;;
16002: esac
1.150 moko 16003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16004: $as_echo "$dynamic_linker" >&6; }
1.128 moko 16005: test "$dynamic_linker" = no && can_build_shared=no
16006:
16007: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16008: if test "$GCC" = yes; then
16009: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16010: fi
16011:
16012: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16013: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16014: fi
16015: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16016: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16017: fi
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:
16054:
16055:
1.150 moko 16056: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16057: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 16058: hardcode_action_CXX=
16059: if test -n "$hardcode_libdir_flag_spec_CXX" ||
16060: test -n "$runpath_var_CXX" ||
16061: test "X$hardcode_automatic_CXX" = "Xyes" ; then
16062:
16063: # We can hardcode non-existent directories.
16064: if test "$hardcode_direct_CXX" != no &&
16065: # If the only mechanism to avoid hardcoding is shlibpath_var, we
16066: # have to relink, otherwise we might link with an installed library
16067: # when we should be linking with a yet-to-be-installed one
16068: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16069: test "$hardcode_minus_L_CXX" != no; then
16070: # Linking always hardcodes the temporary library directory.
16071: hardcode_action_CXX=relink
16072: else
16073: # We can link without hardcoding, and we can hardcode nonexisting dirs.
16074: hardcode_action_CXX=immediate
16075: fi
16076: else
16077: # We cannot hardcode anything, or else we can only hardcode existing
16078: # directories.
16079: hardcode_action_CXX=unsupported
16080: fi
1.150 moko 16081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16082: $as_echo "$hardcode_action_CXX" >&6; }
1.128 moko 16083:
16084: if test "$hardcode_action_CXX" = relink ||
16085: test "$inherit_rpath_CXX" = yes; then
16086: # Fast installation is not supported
16087: enable_fast_install=no
16088: elif test "$shlibpath_overrides_runpath" = yes ||
16089: test "$enable_shared" = no; then
16090: # Fast installation is not necessary
16091: enable_fast_install=needless
16092: fi
16093:
16094:
16095:
16096:
16097:
16098:
16099:
16100: fi # test -n "$compiler"
16101:
16102: CC=$lt_save_CC
16103: CFLAGS=$lt_save_CFLAGS
16104: LDCXX=$LD
16105: LD=$lt_save_LD
16106: GCC=$lt_save_GCC
16107: with_gnu_ld=$lt_save_with_gnu_ld
16108: lt_cv_path_LDCXX=$lt_cv_path_LD
16109: lt_cv_path_LD=$lt_save_path_LD
16110: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16111: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16112: fi # test "$_lt_caught_CXX_error" != yes
16113:
16114: ac_ext=c
16115: ac_cpp='$CPP $CPPFLAGS'
16116: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16117: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16118: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16119:
16120:
16121:
16122:
16123:
16124:
16125:
16126:
16127:
16128:
16129:
16130:
16131:
16132:
16133:
1.150 moko 16134: ac_config_commands="$ac_config_commands libtool"
1.128 moko 16135:
16136:
16137:
16138:
16139: # Only expand once:
16140:
16141:
1.150 moko 16142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
16143: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
16144: if ${libltdl_cv_shlibext+:} false; then :
16145: $as_echo_n "(cached) " >&6
1.128 moko 16146: else
16147:
16148: module=yes
16149: eval libltdl_cv_shlibext=$shrext_cmds
16150: module=no
16151: eval libltdl_cv_shrext=$shrext_cmds
16152:
16153: fi
1.150 moko 16154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16155: $as_echo "$libltdl_cv_shlibext" >&6; }
1.128 moko 16156: if test -n "$libltdl_cv_shlibext"; then
16157:
16158: cat >>confdefs.h <<_ACEOF
16159: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16160: _ACEOF
16161:
16162: fi
16163: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16164:
16165: cat >>confdefs.h <<_ACEOF
16166: #define LT_SHARED_EXT "$libltdl_cv_shrext"
16167: _ACEOF
16168:
16169: fi
16170:
1.150 moko 16171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
16172: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
16173: if ${lt_cv_module_path_var+:} false; then :
16174: $as_echo_n "(cached) " >&6
1.128 moko 16175: else
16176: lt_cv_module_path_var="$shlibpath_var"
16177: fi
1.150 moko 16178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16179: $as_echo "$lt_cv_module_path_var" >&6; }
1.128 moko 16180: if test -n "$lt_cv_module_path_var"; then
16181:
16182: cat >>confdefs.h <<_ACEOF
16183: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16184: _ACEOF
16185:
16186: fi
16187:
1.150 moko 16188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16189: $as_echo_n "checking for the default library search path... " >&6; }
16190: if ${lt_cv_sys_dlsearch_path+:} false; then :
16191: $as_echo_n "(cached) " >&6
1.128 moko 16192: else
16193: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
16194: fi
1.150 moko 16195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16196: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 16197: if test -n "$lt_cv_sys_dlsearch_path"; then
16198: sys_dlsearch_path=
16199: for dir in $lt_cv_sys_dlsearch_path; do
16200: if test -z "$sys_dlsearch_path"; then
16201: sys_dlsearch_path="$dir"
16202: else
16203: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
16204: fi
16205: done
16206:
16207: cat >>confdefs.h <<_ACEOF
16208: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16209: _ACEOF
16210:
16211: fi
16212:
16213:
16214: LT_DLLOADERS=
16215:
16216:
16217: ac_ext=c
16218: ac_cpp='$CPP $CPPFLAGS'
16219: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16220: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16221: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16222:
16223:
16224: LIBADD_DLOPEN=
1.150 moko 16225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16226: $as_echo_n "checking for library containing dlopen... " >&6; }
16227: if ${ac_cv_search_dlopen+:} false; then :
16228: $as_echo_n "(cached) " >&6
1.128 moko 16229: else
16230: ac_func_search_save_LIBS=$LIBS
1.150 moko 16231: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16232: /* end confdefs.h. */
16233:
1.150 moko 16234: /* Override any GCC internal prototype to avoid an error.
16235: Use char because int might match the return type of a GCC
16236: builtin and then its argument prototype would still apply. */
1.128 moko 16237: #ifdef __cplusplus
16238: extern "C"
16239: #endif
16240: char dlopen ();
16241: int
16242: main ()
16243: {
1.150 moko 16244: return dlopen ();
1.128 moko 16245: ;
16246: return 0;
16247: }
16248: _ACEOF
1.150 moko 16249: for ac_lib in '' dl; do
16250: if test -z "$ac_lib"; then
16251: ac_res="none required"
16252: else
16253: ac_res=-l$ac_lib
16254: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16255: fi
16256: if ac_fn_c_try_link "$LINENO"; then :
16257: ac_cv_search_dlopen=$ac_res
16258: fi
16259: rm -f core conftest.err conftest.$ac_objext \
16260: conftest$ac_exeext
16261: if ${ac_cv_search_dlopen+:} false; then :
16262: break
1.128 moko 16263: fi
1.150 moko 16264: done
16265: if ${ac_cv_search_dlopen+:} false; then :
1.128 moko 16266:
16267: else
1.150 moko 16268: ac_cv_search_dlopen=no
1.128 moko 16269: fi
1.150 moko 16270: rm conftest.$ac_ext
1.128 moko 16271: LIBS=$ac_func_search_save_LIBS
16272: fi
1.150 moko 16273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16274: $as_echo "$ac_cv_search_dlopen" >&6; }
16275: ac_res=$ac_cv_search_dlopen
16276: if test "$ac_res" != no; then :
16277: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 16278:
1.150 moko 16279: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16280:
16281: if test "$ac_cv_search_dlopen" != "none required" ; then
16282: LIBADD_DLOPEN="-ldl"
16283: fi
16284: libltdl_cv_lib_dl_dlopen="yes"
16285: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16286: else
1.150 moko 16287: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16288: /* end confdefs.h. */
16289: #if HAVE_DLFCN_H
16290: # include <dlfcn.h>
16291: #endif
16292:
16293: int
16294: main ()
16295: {
16296: dlopen(0, 0);
16297: ;
16298: return 0;
16299: }
16300: _ACEOF
1.150 moko 16301: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16302:
1.150 moko 16303: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16304:
16305: libltdl_cv_func_dlopen="yes"
16306: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16307: else
1.150 moko 16308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16309: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16310: if ${ac_cv_lib_svld_dlopen+:} false; then :
16311: $as_echo_n "(cached) " >&6
1.128 moko 16312: else
16313: ac_check_lib_save_LIBS=$LIBS
16314: LIBS="-lsvld $LIBS"
1.150 moko 16315: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16316: /* end confdefs.h. */
16317:
1.150 moko 16318: /* Override any GCC internal prototype to avoid an error.
16319: Use char because int might match the return type of a GCC
16320: builtin and then its argument prototype would still apply. */
1.128 moko 16321: #ifdef __cplusplus
16322: extern "C"
16323: #endif
16324: char dlopen ();
16325: int
16326: main ()
16327: {
1.150 moko 16328: return dlopen ();
1.128 moko 16329: ;
16330: return 0;
16331: }
16332: _ACEOF
1.150 moko 16333: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16334: ac_cv_lib_svld_dlopen=yes
16335: else
1.150 moko 16336: ac_cv_lib_svld_dlopen=no
1.128 moko 16337: fi
1.150 moko 16338: rm -f core conftest.err conftest.$ac_objext \
16339: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16340: LIBS=$ac_check_lib_save_LIBS
16341: fi
1.150 moko 16342: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16343: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16344: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 16345:
1.150 moko 16346: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16347:
16348: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16349: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16350: fi
16351:
16352: fi
1.150 moko 16353: rm -f core conftest.err conftest.$ac_objext \
16354: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16355: fi
16356:
16357: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16358: then
16359: lt_save_LIBS="$LIBS"
16360: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 16361: for ac_func in dlerror
16362: do :
16363: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16364: if test "x$ac_cv_func_dlerror" = xyes; then :
1.128 moko 16365: cat >>confdefs.h <<_ACEOF
1.150 moko 16366: #define HAVE_DLERROR 1
1.128 moko 16367: _ACEOF
16368:
16369: fi
16370: done
16371:
16372: LIBS="$lt_save_LIBS"
16373: fi
16374:
16375:
16376: LIBADD_SHL_LOAD=
1.150 moko 16377: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16378: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 16379:
1.150 moko 16380: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 16381:
16382: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16383: else
1.150 moko 16384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16385: $as_echo_n "checking for shl_load in -ldld... " >&6; }
16386: if ${ac_cv_lib_dld_shl_load+:} false; then :
16387: $as_echo_n "(cached) " >&6
1.66 paf 16388: else
16389: ac_check_lib_save_LIBS=$LIBS
16390: LIBS="-ldld $LIBS"
1.150 moko 16391: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16392: /* end confdefs.h. */
1.10 paf 16393:
1.150 moko 16394: /* Override any GCC internal prototype to avoid an error.
16395: Use char because int might match the return type of a GCC
16396: builtin and then its argument prototype would still apply. */
1.66 paf 16397: #ifdef __cplusplus
16398: extern "C"
16399: #endif
16400: char shl_load ();
16401: int
16402: main ()
16403: {
1.150 moko 16404: return shl_load ();
1.66 paf 16405: ;
16406: return 0;
16407: }
16408: _ACEOF
1.150 moko 16409: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 16410: ac_cv_lib_dld_shl_load=yes
16411: else
1.150 moko 16412: ac_cv_lib_dld_shl_load=no
1.66 paf 16413: fi
1.150 moko 16414: rm -f core conftest.err conftest.$ac_objext \
16415: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16416: LIBS=$ac_check_lib_save_LIBS
16417: fi
1.150 moko 16418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16419: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16420: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 paf 16421:
1.150 moko 16422: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 16423:
1.128 moko 16424: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16425: LIBADD_SHL_LOAD="-ldld"
16426: fi
16427:
16428: fi
16429:
16430:
16431:
16432: case $host_os in
16433: darwin[1567].*)
16434: # We only want this for pre-Mac OS X 10.4.
1.150 moko 16435: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16436: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16437:
16438: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 16439:
1.150 moko 16440: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16441: fi
1.128 moko 16442:
1.150 moko 16443: ;;
16444: beos*)
1.128 moko 16445: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16446: ;;
16447: cygwin* | mingw* | os2* | pw32*)
1.150 moko 16448: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16449: "
16450: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16451: ac_have_decl=1
1.128 moko 16452: else
1.150 moko 16453: ac_have_decl=0
1.128 moko 16454: fi
16455:
16456: cat >>confdefs.h <<_ACEOF
1.150 moko 16457: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.128 moko 16458: _ACEOF
16459:
16460: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16461: ;;
16462: esac
16463:
1.150 moko 16464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16465: $as_echo_n "checking for dld_link in -ldld... " >&6; }
16466: if ${ac_cv_lib_dld_dld_link+:} false; then :
16467: $as_echo_n "(cached) " >&6
1.66 paf 16468: else
16469: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16470: LIBS="-ldld $LIBS"
1.150 moko 16471: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16472: /* end confdefs.h. */
1.62 paf 16473:
1.150 moko 16474: /* Override any GCC internal prototype to avoid an error.
16475: Use char because int might match the return type of a GCC
16476: builtin and then its argument prototype would still apply. */
1.66 paf 16477: #ifdef __cplusplus
16478: extern "C"
16479: #endif
1.128 moko 16480: char dld_link ();
1.66 paf 16481: int
16482: main ()
16483: {
1.150 moko 16484: return dld_link ();
1.66 paf 16485: ;
16486: return 0;
16487: }
16488: _ACEOF
1.150 moko 16489: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16490: ac_cv_lib_dld_dld_link=yes
1.66 paf 16491: else
1.150 moko 16492: ac_cv_lib_dld_dld_link=no
1.128 moko 16493: fi
1.150 moko 16494: rm -f core conftest.err conftest.$ac_objext \
16495: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16496: LIBS=$ac_check_lib_save_LIBS
16497: fi
1.150 moko 16498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16499: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16500: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 16501:
1.150 moko 16502: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 16503:
16504: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16505: fi
16506:
16507:
16508:
16509:
16510: LT_DLPREOPEN=
16511: if test -n "$LT_DLLOADERS"
16512: then
16513: for lt_loader in $LT_DLLOADERS; do
16514: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16515: done
16516:
1.150 moko 16517: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 16518:
16519: fi
16520:
16521:
16522: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16523:
16524:
16525: ac_ext=c
16526: ac_cpp='$CPP $CPPFLAGS'
16527: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16528: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16529: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16530:
16531:
1.150 moko 16532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16533: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16534: if ${lt_cv_sys_symbol_underscore+:} false; then :
16535: $as_echo_n "(cached) " >&6
1.128 moko 16536: else
16537: lt_cv_sys_symbol_underscore=no
16538: cat > conftest.$ac_ext <<_LT_EOF
16539: void nm_test_func(){}
16540: int main(){nm_test_func;return 0;}
16541: _LT_EOF
1.150 moko 16542: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 16543: (eval $ac_compile) 2>&5
16544: ac_status=$?
1.150 moko 16545: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16546: test $ac_status = 0; }; then
1.128 moko 16547: # Now try to grab the symbols.
16548: ac_nlist=conftest.nm
1.150 moko 16549: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 16550: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16551: ac_status=$?
1.150 moko 16552: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16553: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 16554: # See whether the symbols have a leading underscore.
16555: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16556: lt_cv_sys_symbol_underscore=yes
16557: else
16558: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16559: :
16560: else
16561: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16562: fi
16563: fi
16564: else
16565: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16566: fi
16567: else
16568: echo "configure: failed program was:" >&5
16569: cat conftest.c >&5
16570: fi
16571: rm -rf conftest*
1.29 paf 16572:
1.66 paf 16573: fi
1.150 moko 16574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16575: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 16576: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16577:
1.62 paf 16578:
1.128 moko 16579: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16580: if test x"$libltdl_cv_func_dlopen" = xyes ||
16581: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.150 moko 16582: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16583: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16584: if ${libltdl_cv_need_uscore+:} false; then :
16585: $as_echo_n "(cached) " >&6
1.66 paf 16586: else
1.128 moko 16587: libltdl_cv_need_uscore=unknown
16588: save_LIBS="$LIBS"
16589: LIBS="$LIBS $LIBADD_DLOPEN"
16590: if test "$cross_compiling" = yes; then :
16591: libltdl_cv_need_uscore=cross
16592: else
16593: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16594: lt_status=$lt_dlunknown
16595: cat > conftest.$ac_ext <<_LT_EOF
16596: #line $LINENO "configure"
16597: #include "confdefs.h"
16598:
1.66 paf 16599: #if HAVE_DLFCN_H
1.128 moko 16600: #include <dlfcn.h>
16601: #endif
16602:
16603: #include <stdio.h>
16604:
16605: #ifdef RTLD_GLOBAL
16606: # define LT_DLGLOBAL RTLD_GLOBAL
16607: #else
16608: # ifdef DL_GLOBAL
16609: # define LT_DLGLOBAL DL_GLOBAL
16610: # else
16611: # define LT_DLGLOBAL 0
16612: # endif
16613: #endif
16614:
16615: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16616: find out it does not work in some platform. */
16617: #ifndef LT_DLLAZY_OR_NOW
16618: # ifdef RTLD_LAZY
16619: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16620: # else
16621: # ifdef DL_LAZY
16622: # define LT_DLLAZY_OR_NOW DL_LAZY
16623: # else
16624: # ifdef RTLD_NOW
16625: # define LT_DLLAZY_OR_NOW RTLD_NOW
16626: # else
16627: # ifdef DL_NOW
16628: # define LT_DLLAZY_OR_NOW DL_NOW
16629: # else
16630: # define LT_DLLAZY_OR_NOW 0
16631: # endif
16632: # endif
16633: # endif
16634: # endif
16635: #endif
16636:
16637: /* When -fvisbility=hidden is used, assume the code has been annotated
16638: correspondingly for the symbols needed. */
16639: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16640: int fnord () __attribute__((visibility("default")));
1.66 paf 16641: #endif
1.62 paf 16642:
1.128 moko 16643: int fnord () { return 42; }
16644: int main ()
1.66 paf 16645: {
1.128 moko 16646: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16647: int status = $lt_dlunknown;
16648:
16649: if (self)
16650: {
16651: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16652: else
16653: {
16654: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16655: else puts (dlerror ());
16656: }
16657: /* dlclose (self); */
16658: }
16659: else
16660: puts (dlerror ());
16661:
16662: return status;
1.66 paf 16663: }
1.128 moko 16664: _LT_EOF
1.150 moko 16665: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16666: (eval $ac_link) 2>&5
1.66 paf 16667: ac_status=$?
1.150 moko 16668: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16669: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 16670: (./conftest; exit; ) >&5 2>/dev/null
16671: lt_status=$?
16672: case x$lt_status in
16673: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16674: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16675: x$lt_dlunknown|x*) ;;
16676: esac
16677: else :
16678: # compilation failed
16679:
16680: fi
16681: fi
16682: rm -fr conftest*
16683:
16684: LIBS="$save_LIBS"
16685:
16686: fi
1.150 moko 16687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16688: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.128 moko 16689: fi
16690: fi
16691:
16692: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16693:
1.150 moko 16694: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 16695:
1.128 moko 16696: fi
16697:
1.150 moko 16698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16699: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16700: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16701: $as_echo_n "(cached) " >&6
1.66 paf 16702: else
1.128 moko 16703: # PORTME does your system automatically load deplibs for dlopen?
16704: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16705: # For now, we just catch OSes we know something about -- in the
16706: # future, we'll try test this programmatically.
16707: lt_cv_sys_dlopen_deplibs=unknown
16708: case $host_os in
16709: aix3*|aix4.1.*|aix4.2.*)
16710: # Unknown whether this is true for these versions of AIX, but
16711: # we want this `case' here to explicitly catch those versions.
16712: lt_cv_sys_dlopen_deplibs=unknown
16713: ;;
16714: aix[4-9]*)
16715: lt_cv_sys_dlopen_deplibs=yes
16716: ;;
16717: amigaos*)
16718: case $host_cpu in
16719: powerpc)
16720: lt_cv_sys_dlopen_deplibs=no
16721: ;;
16722: esac
16723: ;;
16724: darwin*)
16725: # Assuming the user has installed a libdl from somewhere, this is true
16726: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16727: lt_cv_sys_dlopen_deplibs=yes
16728: ;;
16729: freebsd* | dragonfly*)
16730: lt_cv_sys_dlopen_deplibs=yes
16731: ;;
16732: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16733: # GNU and its variants, using gnu ld.so (Glibc)
16734: lt_cv_sys_dlopen_deplibs=yes
16735: ;;
16736: hpux10*|hpux11*)
16737: lt_cv_sys_dlopen_deplibs=yes
16738: ;;
16739: interix*)
16740: lt_cv_sys_dlopen_deplibs=yes
16741: ;;
16742: irix[12345]*|irix6.[01]*)
16743: # Catch all versions of IRIX before 6.2, and indicate that we don't
16744: # know how it worked for any of those versions.
16745: lt_cv_sys_dlopen_deplibs=unknown
16746: ;;
16747: irix*)
16748: # The case above catches anything before 6.2, and it's known that
16749: # at 6.2 and later dlopen does load deplibs.
16750: lt_cv_sys_dlopen_deplibs=yes
16751: ;;
16752: netbsd*)
16753: lt_cv_sys_dlopen_deplibs=yes
16754: ;;
16755: openbsd*)
16756: lt_cv_sys_dlopen_deplibs=yes
16757: ;;
16758: osf[1234]*)
16759: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16760: # it did *not* use an RPATH in a shared library to find objects the
16761: # library depends on, so we explicitly say `no'.
16762: lt_cv_sys_dlopen_deplibs=no
16763: ;;
16764: osf5.0|osf5.0a|osf5.1)
16765: # dlopen *does* load deplibs and with the right loader patch applied
16766: # it even uses RPATH in a shared library to search for shared objects
16767: # that the library depends on, but there's no easy way to know if that
16768: # patch is installed. Since this is the case, all we can really
16769: # say is unknown -- it depends on the patch being installed. If
16770: # it is, this changes to `yes'. Without it, it would be `no'.
16771: lt_cv_sys_dlopen_deplibs=unknown
16772: ;;
16773: osf*)
16774: # the two cases above should catch all versions of osf <= 5.1. Read
16775: # the comments above for what we know about them.
16776: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16777: # is used to find them so we can finally say `yes'.
16778: lt_cv_sys_dlopen_deplibs=yes
16779: ;;
16780: qnx*)
16781: lt_cv_sys_dlopen_deplibs=yes
16782: ;;
16783: solaris*)
16784: lt_cv_sys_dlopen_deplibs=yes
16785: ;;
16786: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16787: libltdl_cv_sys_dlopen_deplibs=yes
16788: ;;
16789: esac
16790:
16791: fi
1.150 moko 16792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16793: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.128 moko 16794: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16795:
1.150 moko 16796: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 16797:
16798: fi
16799:
16800: :
16801:
16802: for ac_header in argz.h
1.150 moko 16803: do :
16804: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16805: "
16806: if test "x$ac_cv_header_argz_h" = xyes; then :
1.128 moko 16807: cat >>confdefs.h <<_ACEOF
1.150 moko 16808: #define HAVE_ARGZ_H 1
1.128 moko 16809: _ACEOF
16810:
1.66 paf 16811: fi
1.62 paf 16812:
1.128 moko 16813: done
16814:
1.29 paf 16815:
1.150 moko 16816: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 16817: # include <argz.h>
16818: #endif
1.150 moko 16819: "
16820: if test "x$ac_cv_type_error_t" = xyes; then :
1.29 paf 16821:
1.128 moko 16822: cat >>confdefs.h <<_ACEOF
16823: #define HAVE_ERROR_T 1
1.62 paf 16824: _ACEOF
1.16 paf 16825:
16826:
1.128 moko 16827: else
1.16 paf 16828:
1.150 moko 16829: $as_echo "#define error_t int" >>confdefs.h
1.16 paf 16830:
1.12 paf 16831:
1.150 moko 16832: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.12 paf 16833:
1.66 paf 16834: fi
1.12 paf 16835:
1.128 moko 16836:
16837: ARGZ_H=
16838: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16839: argz_next argz_stringify
1.150 moko 16840: do :
16841: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16842: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16843: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 16844: cat >>confdefs.h <<_ACEOF
1.150 moko 16845: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 16846: _ACEOF
16847:
16848: else
16849: ARGZ_H=argz.h;
16850:
16851: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16852:
16853: fi
16854: done
16855:
16856:
1.150 moko 16857: if test -z "$ARGZ_H"; then :
16858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16859: $as_echo_n "checking if argz actually works... " >&6; }
16860: if ${lt_cv_sys_argz_works+:} false; then :
16861: $as_echo_n "(cached) " >&6
1.128 moko 16862: else
16863: case $host_os in #(
16864: *cygwin*)
16865: lt_cv_sys_argz_works=no
16866: if test "$cross_compiling" != no; then
16867: lt_cv_sys_argz_works="guessing no"
16868: else
16869: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16870: save_IFS=$IFS
16871: IFS=-.
16872: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16873: IFS=$save_IFS
16874: lt_os_major=${2-0}
16875: lt_os_minor=${3-0}
16876: lt_os_micro=${4-0}
16877: if test "$lt_os_major" -gt 1 \
16878: || { test "$lt_os_major" -eq 1 \
16879: && { test "$lt_os_minor" -gt 5 \
16880: || { test "$lt_os_minor" -eq 5 \
16881: && test "$lt_os_micro" -gt 24; }; }; }; then
16882: lt_cv_sys_argz_works=yes
16883: fi
16884: fi
16885: ;; #(
16886: *) lt_cv_sys_argz_works=yes ;;
16887: esac
16888: fi
1.150 moko 16889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16890: $as_echo "$lt_cv_sys_argz_works" >&6; }
16891: if test "$lt_cv_sys_argz_works" = yes; then :
1.128 moko 16892:
1.150 moko 16893: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 16894:
1.62 paf 16895: else
1.128 moko 16896: ARGZ_H=argz.h
16897:
16898:
16899: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16900:
16901: fi
1.62 paf 16902: fi
1.128 moko 16903:
16904:
16905:
1.150 moko 16906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16907: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16908: if ${libltdl_cv_preloaded_symbols+:} false; then :
16909: $as_echo_n "(cached) " >&6
1.128 moko 16910: else
16911: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16912: libltdl_cv_preloaded_symbols=yes
16913: else
16914: libltdl_cv_preloaded_symbols=no
16915: fi
16916:
1.62 paf 16917: fi
1.150 moko 16918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16919: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.128 moko 16920: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16921:
1.150 moko 16922: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 16923:
16924: fi
16925:
1.150 moko 16926:
16927:
1.128 moko 16928: # Set options
16929:
16930:
16931:
16932:
16933:
16934:
16935:
16936:
16937:
16938:
1.66 paf 16939:
16940:
1.150 moko 16941: # Check whether --with-included_ltdl was given.
16942: if test "${with_included_ltdl+set}" = set; then :
16943: withval=$with_included_ltdl;
16944: fi
1.64 paf 16945:
16946:
1.128 moko 16947: if test "x$with_included_ltdl" != xyes; then
16948: # We are not being forced to use the included libltdl sources, so
16949: # decide whether there is a useful installed version we can use.
1.150 moko 16950: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 16951:
1.150 moko 16952: "
16953: if test "x$ac_cv_header_ltdl_h" = xyes; then :
16954: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 16955: #include <ltdl.h>
1.150 moko 16956: "
16957: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16959: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16960: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16961: $as_echo_n "(cached) " >&6
1.79 paf 16962: else
1.128 moko 16963: ac_check_lib_save_LIBS=$LIBS
16964: LIBS="-lltdl $LIBS"
1.150 moko 16965: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 16966: /* end confdefs.h. */
1.128 moko 16967:
1.150 moko 16968: /* Override any GCC internal prototype to avoid an error.
16969: Use char because int might match the return type of a GCC
16970: builtin and then its argument prototype would still apply. */
1.128 moko 16971: #ifdef __cplusplus
16972: extern "C"
16973: #endif
16974: char lt_dladvise_preload ();
1.79 paf 16975: int
16976: main ()
16977: {
1.150 moko 16978: return lt_dladvise_preload ();
1.79 paf 16979: ;
16980: return 0;
16981: }
16982: _ACEOF
1.150 moko 16983: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16984: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 16985: else
1.150 moko 16986: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.128 moko 16987: fi
1.150 moko 16988: rm -f core conftest.err conftest.$ac_objext \
16989: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16990: LIBS=$ac_check_lib_save_LIBS
1.79 paf 16991: fi
1.150 moko 16992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16993: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16994: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.128 moko 16995: with_included_ltdl=no
1.79 paf 16996: else
1.128 moko 16997: with_included_ltdl=yes
16998: fi
16999:
1.79 paf 17000: else
1.128 moko 17001: with_included_ltdl=yes
17002: fi
1.79 paf 17003:
1.128 moko 17004: else
17005: with_included_ltdl=yes
1.79 paf 17006: fi
1.128 moko 17007:
17008:
1.79 paf 17009: fi
1.128 moko 17010:
17011:
17012:
17013:
1.150 moko 17014: # Check whether --with-ltdl_include was given.
17015: if test "${with_ltdl_include+set}" = set; then :
17016: withval=$with_ltdl_include;
17017: fi
1.128 moko 17018:
17019:
17020: if test -n "$with_ltdl_include"; then
17021: if test -f "$with_ltdl_include/ltdl.h"; then :
17022: else
1.150 moko 17023: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.128 moko 17024: fi
17025: else
17026: with_ltdl_include=no
1.79 paf 17027: fi
1.128 moko 17028:
17029:
1.150 moko 17030: # Check whether --with-ltdl_lib was given.
17031: if test "${with_ltdl_lib+set}" = set; then :
17032: withval=$with_ltdl_lib;
17033: fi
1.128 moko 17034:
17035:
17036: if test -n "$with_ltdl_lib"; then
17037: if test -f "$with_ltdl_lib/libltdl.la"; then :
17038: else
1.150 moko 17039: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.128 moko 17040: fi
17041: else
17042: with_ltdl_lib=no
1.79 paf 17043: fi
17044:
1.128 moko 17045: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17046: ,yes,no,no,)
17047: case $enable_ltdl_convenience in
1.150 moko 17048: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 17049: "") enable_ltdl_convenience=yes
17050: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17051: esac
1.150 moko 17052: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 17053: LTDLDEPS=$LIBLTDL
17054: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17055:
17056:
17057:
17058:
17059:
17060: # For backwards non-gettext consistent compatibility...
17061: INCLTDL="$LTDLINCL"
17062:
1.79 paf 17063:
1.128 moko 17064: ;;
17065: ,no,no,no,)
17066: # If the included ltdl is not to be used, then use the
17067: # preinstalled libltdl we found.
1.79 paf 17068:
1.150 moko 17069: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 17070:
1.128 moko 17071: LIBLTDL=-lltdl
17072: LTDLDEPS=
17073: LTDLINCL=
17074: ;;
17075: ,no*,no,*)
1.150 moko 17076: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 17077: ;;
17078: *) with_included_ltdl=no
17079: LIBLTDL="-L$with_ltdl_lib -lltdl"
17080: LTDLDEPS=
17081: LTDLINCL="-I$with_ltdl_include"
17082: ;;
17083: esac
17084: INCLTDL="$LTDLINCL"
17085:
17086: # Report our decision...
1.150 moko 17087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17088: $as_echo_n "checking where to find libltdl headers... " >&6; }
17089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17090: $as_echo "$LTDLINCL" >&6; }
17091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17092: $as_echo_n "checking where to find libltdl library... " >&6; }
17093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17094: $as_echo "$LIBLTDL" >&6; }
1.128 moko 17095:
17096:
17097:
1.150 moko 17098: # Check whether --enable-ltdl-install was given.
17099: if test "${enable_ltdl_install+set}" = set; then :
17100: enableval=$enable_ltdl_install;
17101: fi
1.128 moko 17102:
17103:
17104: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17105: *yes*) ;;
17106: *) enable_ltdl_convenience=yes ;;
17107: esac
17108:
1.150 moko 17109: if test x"${enable_ltdl_install-no}" != xno; then
1.128 moko 17110: INSTALL_LTDL_TRUE=
17111: INSTALL_LTDL_FALSE='#'
17112: else
17113: INSTALL_LTDL_TRUE='#'
17114: INSTALL_LTDL_FALSE=
17115: fi
17116:
1.150 moko 17117: if test x"${enable_ltdl_convenience-no}" != xno; then
1.128 moko 17118: CONVENIENCE_LTDL_TRUE=
17119: CONVENIENCE_LTDL_FALSE='#'
17120: else
17121: CONVENIENCE_LTDL_TRUE='#'
17122: CONVENIENCE_LTDL_FALSE=
17123: fi
17124:
17125:
17126:
1.150 moko 17127: subdirs="$subdirs src/lib/ltdl"
1.128 moko 17128:
17129:
17130:
17131:
17132: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17133: # the user used. This is so that ltdl.h can pick up the parent projects
17134: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17135: # definitions required by ltdl.c.
17136: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17137:
17138:
17139:
1.150 moko 17140: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17141: do :
17142: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17143: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17144: "
17145: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17146: cat >>confdefs.h <<_ACEOF
17147: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17148: _ACEOF
1.128 moko 17149:
1.150 moko 17150: fi
1.128 moko 17151:
1.150 moko 17152: done
1.128 moko 17153:
17154:
1.150 moko 17155: for ac_func in closedir opendir readdir
17156: do :
17157: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17158: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17159: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17160: cat >>confdefs.h <<_ACEOF
17161: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17162: _ACEOF
1.66 paf 17163:
17164: else
1.64 paf 17165:
1.66 paf 17166:
1.128 moko 17167: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17168:
1.66 paf 17169: fi
1.128 moko 17170: done
17171:
17172: for ac_func in strlcat strlcpy
1.150 moko 17173: do :
17174: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17175: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17176: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17177: cat >>confdefs.h <<_ACEOF
1.150 moko 17178: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17179: _ACEOF
17180:
17181: else
17182:
17183:
17184: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17185:
1.62 paf 17186: fi
1.128 moko 17187: done
17188:
17189:
1.64 paf 17190:
1.128 moko 17191: cat >>confdefs.h <<_ACEOF
17192: #define LT_LIBEXT "$libext"
1.62 paf 17193: _ACEOF
1.64 paf 17194:
1.128 moko 17195:
17196: name=
17197: eval "lt_libprefix=\"$libname_spec\""
17198:
17199: cat >>confdefs.h <<_ACEOF
17200: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17201: _ACEOF
1.128 moko 17202:
17203:
17204: name=ltdl
17205: eval "LTDLOPEN=\"$libname_spec\""
17206:
17207:
17208:
17209:
17210:
17211:
17212:
17213:
17214: # Only expand once:
17215:
17216:
17217:
17218:
1.150 moko 17219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17220: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17221: if ${ac_cv_c_bigendian+:} false; then :
17222: $as_echo_n "(cached) " >&6
17223: else
17224: ac_cv_c_bigendian=unknown
17225: # See if we're dealing with a universal compiler.
17226: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227: /* end confdefs.h. */
17228: #ifndef __APPLE_CC__
17229: not a universal capable compiler
17230: #endif
17231: typedef int dummy;
17232:
17233: _ACEOF
17234: if ac_fn_c_try_compile "$LINENO"; then :
17235:
17236: # Check for potential -arch flags. It is not universal unless
17237: # there are at least two -arch flags with different values.
17238: ac_arch=
17239: ac_prev=
17240: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17241: if test -n "$ac_prev"; then
17242: case $ac_word in
17243: i?86 | x86_64 | ppc | ppc64)
17244: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17245: ac_arch=$ac_word
17246: else
17247: ac_cv_c_bigendian=universal
17248: break
17249: fi
17250: ;;
17251: esac
17252: ac_prev=
17253: elif test "x$ac_word" = "x-arch"; then
17254: ac_prev=arch
17255: fi
17256: done
17257: fi
17258: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259: if test $ac_cv_c_bigendian = unknown; then
17260: # See if sys/param.h defines the BYTE_ORDER macro.
17261: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 17262: /* end confdefs.h. */
1.128 moko 17263: #include <sys/types.h>
1.150 moko 17264: #include <sys/param.h>
1.128 moko 17265:
17266: int
17267: main ()
17268: {
1.150 moko 17269: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17270: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17271: && LITTLE_ENDIAN)
17272: bogus endian macros
17273: #endif
1.64 paf 17274:
1.128 moko 17275: ;
17276: return 0;
17277: }
1.66 paf 17278: _ACEOF
1.150 moko 17279: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17280: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 17281: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 17282: /* end confdefs.h. */
1.128 moko 17283: #include <sys/types.h>
1.150 moko 17284: #include <sys/param.h>
1.64 paf 17285:
17286: int
17287: main ()
1.128 moko 17288: {
17289: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 17290: not big endian
17291: #endif
1.128 moko 17292:
17293: ;
17294: return 0;
1.64 paf 17295: }
17296: _ACEOF
1.150 moko 17297: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17298: ac_cv_c_bigendian=yes
1.64 paf 17299: else
1.150 moko 17300: ac_cv_c_bigendian=no
17301: fi
17302: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17303: fi
17304: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17305: fi
17306: if test $ac_cv_c_bigendian = unknown; then
17307: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17308: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309: /* end confdefs.h. */
17310: #include <limits.h>
1.64 paf 17311:
1.150 moko 17312: int
17313: main ()
17314: {
17315: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17316: bogus endian macros
17317: #endif
1.66 paf 17318:
1.150 moko 17319: ;
17320: return 0;
17321: }
1.62 paf 17322: _ACEOF
1.150 moko 17323: if ac_fn_c_try_compile "$LINENO"; then :
17324: # It does; now see whether it defined to _BIG_ENDIAN or not.
17325: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17326: /* end confdefs.h. */
1.150 moko 17327: #include <limits.h>
17328:
1.128 moko 17329: int
17330: main ()
17331: {
1.150 moko 17332: #ifndef _BIG_ENDIAN
17333: not big endian
17334: #endif
17335:
1.128 moko 17336: ;
17337: return 0;
17338: }
1.62 paf 17339: _ACEOF
1.150 moko 17340: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17341: ac_cv_c_bigendian=yes
1.150 moko 17342: else
17343: ac_cv_c_bigendian=no
1.128 moko 17344: fi
1.150 moko 17345: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17346: fi
1.150 moko 17347: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17348: fi
17349: if test $ac_cv_c_bigendian = unknown; then
17350: # Compile a test program.
17351: if test "$cross_compiling" = yes; then :
17352: # Try to guess by grepping values from an object file.
17353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17354: /* end confdefs.h. */
17355: short int ascii_mm[] =
17356: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17357: short int ascii_ii[] =
17358: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17359: int use_ascii (int i) {
17360: return ascii_mm[i] + ascii_ii[i];
17361: }
17362: short int ebcdic_ii[] =
17363: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17364: short int ebcdic_mm[] =
17365: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17366: int use_ebcdic (int i) {
17367: return ebcdic_mm[i] + ebcdic_ii[i];
17368: }
17369: extern int foo;
1.62 paf 17370:
1.150 moko 17371: int
17372: main ()
17373: {
17374: return use_ascii (foo) == use_ebcdic (foo);
17375: ;
17376: return 0;
17377: }
17378: _ACEOF
17379: if ac_fn_c_try_compile "$LINENO"; then :
17380: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17381: ac_cv_c_bigendian=yes
17382: fi
17383: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17384: if test "$ac_cv_c_bigendian" = unknown; then
17385: ac_cv_c_bigendian=no
17386: else
17387: # finding both strings is unlikely to happen, but who knows?
17388: ac_cv_c_bigendian=unknown
17389: fi
17390: fi
1.128 moko 17391: fi
1.150 moko 17392: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17393: else
1.150 moko 17394: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17395: /* end confdefs.h. */
1.150 moko 17396: $ac_includes_default
1.128 moko 17397: int
17398: main ()
17399: {
1.150 moko 17400:
17401: /* Are we little or big endian? From Harbison&Steele. */
17402: union
17403: {
17404: long int l;
17405: char c[sizeof (long int)];
17406: } u;
17407: u.l = 1;
17408: return u.c[sizeof (long int) - 1] == 1;
17409:
17410: ;
17411: return 0;
1.128 moko 17412: }
17413: _ACEOF
1.150 moko 17414: if ac_fn_c_try_run "$LINENO"; then :
1.128 moko 17415: ac_cv_c_bigendian=no
17416: else
1.150 moko 17417: ac_cv_c_bigendian=yes
1.128 moko 17418: fi
1.150 moko 17419: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17420: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 17421: fi
1.150 moko 17422:
17423: fi
1.66 paf 17424: fi
1.150 moko 17425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17426: $as_echo "$ac_cv_c_bigendian" >&6; }
17427: case $ac_cv_c_bigendian in #(
17428: yes)
17429:
17430: $as_echo "#define PA_BIG_ENDIAN /**/" >>confdefs.h
17431:
17432: ;; #(
17433: no)
1.128 moko 17434:
1.150 moko 17435: $as_echo "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 17436:
1.150 moko 17437: ;; #(
17438: universal)
1.128 moko 17439:
1.150 moko 17440: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 17441:
1.150 moko 17442: ;; #(
17443: *)
17444: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 17445: ;;
1.150 moko 17446: esac
1.66 paf 17447:
17448:
1.150 moko 17449: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17450: if test "x$ac_cv_type_size_t" = xyes; then :
1.62 paf 17451:
1.66 paf 17452: else
1.1 paf 17453:
1.66 paf 17454: cat >>confdefs.h <<_ACEOF
1.150 moko 17455: #define size_t unsigned int
1.66 paf 17456: _ACEOF
1.62 paf 17457:
17458: fi
1.66 paf 17459:
1.156 moko 17460: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17461: if test "x$ac_cv_type_ssize_t" = xyes; then :
17462:
17463: else
17464:
17465: cat >>confdefs.h <<_ACEOF
17466: #define ssize_t int
17467: _ACEOF
17468:
17469: fi
17470:
1.159 moko 17471: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17472: case $ac_cv_c_uint8_t in #(
17473: no|yes) ;; #(
17474: *)
17475:
17476: $as_echo "#define _UINT8_T 1" >>confdefs.h
17477:
17478:
17479: cat >>confdefs.h <<_ACEOF
17480: #define uint8_t $ac_cv_c_uint8_t
17481: _ACEOF
17482: ;;
17483: esac
17484:
1.165 moko 17485: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17486: case $ac_cv_c_uint16_t in #(
17487: no|yes) ;; #(
17488: *)
17489:
17490:
17491: cat >>confdefs.h <<_ACEOF
17492: #define uint16_t $ac_cv_c_uint16_t
17493: _ACEOF
17494: ;;
17495: esac
17496:
1.156 moko 17497: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17498: case $ac_cv_c_uint32_t in #(
17499: no|yes) ;; #(
17500: *)
17501:
17502: $as_echo "#define _UINT32_T 1" >>confdefs.h
17503:
17504:
17505: cat >>confdefs.h <<_ACEOF
17506: #define uint32_t $ac_cv_c_uint32_t
17507: _ACEOF
17508: ;;
17509: esac
1.128 moko 17510:
1.159 moko 17511: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17512: case $ac_cv_c_uint64_t in #(
17513: no|yes) ;; #(
17514: *)
17515:
17516: $as_echo "#define _UINT64_T 1" >>confdefs.h
17517:
17518:
17519: cat >>confdefs.h <<_ACEOF
17520: #define uint64_t $ac_cv_c_uint64_t
17521: _ACEOF
17522: ;;
17523: esac
17524:
17525:
1.161 moko 17526: ac_header_dirent=no
17527: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17528: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17530: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17531: if eval \${$as_ac_Header+:} false; then :
17532: $as_echo_n "(cached) " >&6
17533: else
17534: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535: /* end confdefs.h. */
17536: #include <sys/types.h>
17537: #include <$ac_hdr>
17538:
17539: int
17540: main ()
17541: {
17542: if ((DIR *) 0)
17543: return 0;
17544: ;
17545: return 0;
17546: }
17547: _ACEOF
17548: if ac_fn_c_try_compile "$LINENO"; then :
17549: eval "$as_ac_Header=yes"
17550: else
17551: eval "$as_ac_Header=no"
17552: fi
17553: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554: fi
17555: eval ac_res=\$$as_ac_Header
17556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17557: $as_echo "$ac_res" >&6; }
17558: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17559: cat >>confdefs.h <<_ACEOF
17560: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17561: _ACEOF
17562:
17563: ac_header_dirent=$ac_hdr; break
17564: fi
17565:
17566: done
17567: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17568: if test $ac_header_dirent = dirent.h; then
17569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17570: $as_echo_n "checking for library containing opendir... " >&6; }
17571: if ${ac_cv_search_opendir+:} false; then :
17572: $as_echo_n "(cached) " >&6
17573: else
17574: ac_func_search_save_LIBS=$LIBS
17575: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576: /* end confdefs.h. */
17577:
17578: /* Override any GCC internal prototype to avoid an error.
17579: Use char because int might match the return type of a GCC
17580: builtin and then its argument prototype would still apply. */
17581: #ifdef __cplusplus
17582: extern "C"
17583: #endif
17584: char opendir ();
17585: int
17586: main ()
17587: {
17588: return opendir ();
17589: ;
17590: return 0;
17591: }
17592: _ACEOF
17593: for ac_lib in '' dir; do
17594: if test -z "$ac_lib"; then
17595: ac_res="none required"
17596: else
17597: ac_res=-l$ac_lib
17598: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17599: fi
17600: if ac_fn_c_try_link "$LINENO"; then :
17601: ac_cv_search_opendir=$ac_res
17602: fi
17603: rm -f core conftest.err conftest.$ac_objext \
17604: conftest$ac_exeext
17605: if ${ac_cv_search_opendir+:} false; then :
17606: break
17607: fi
17608: done
17609: if ${ac_cv_search_opendir+:} false; then :
17610:
17611: else
17612: ac_cv_search_opendir=no
17613: fi
17614: rm conftest.$ac_ext
17615: LIBS=$ac_func_search_save_LIBS
17616: fi
17617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17618: $as_echo "$ac_cv_search_opendir" >&6; }
17619: ac_res=$ac_cv_search_opendir
17620: if test "$ac_res" != no; then :
17621: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17622:
17623: fi
17624:
17625: else
17626: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17627: $as_echo_n "checking for library containing opendir... " >&6; }
17628: if ${ac_cv_search_opendir+:} false; then :
17629: $as_echo_n "(cached) " >&6
17630: else
17631: ac_func_search_save_LIBS=$LIBS
17632: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17633: /* end confdefs.h. */
17634:
17635: /* Override any GCC internal prototype to avoid an error.
17636: Use char because int might match the return type of a GCC
17637: builtin and then its argument prototype would still apply. */
17638: #ifdef __cplusplus
17639: extern "C"
17640: #endif
17641: char opendir ();
17642: int
17643: main ()
17644: {
17645: return opendir ();
17646: ;
17647: return 0;
17648: }
17649: _ACEOF
17650: for ac_lib in '' x; do
17651: if test -z "$ac_lib"; then
17652: ac_res="none required"
17653: else
17654: ac_res=-l$ac_lib
17655: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17656: fi
17657: if ac_fn_c_try_link "$LINENO"; then :
17658: ac_cv_search_opendir=$ac_res
17659: fi
17660: rm -f core conftest.err conftest.$ac_objext \
17661: conftest$ac_exeext
17662: if ${ac_cv_search_opendir+:} false; then :
17663: break
17664: fi
17665: done
17666: if ${ac_cv_search_opendir+:} false; then :
17667:
17668: else
17669: ac_cv_search_opendir=no
17670: fi
17671: rm conftest.$ac_ext
17672: LIBS=$ac_func_search_save_LIBS
17673: fi
17674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17675: $as_echo "$ac_cv_search_opendir" >&6; }
17676: ac_res=$ac_cv_search_opendir
17677: if test "$ac_res" != no; then :
17678: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17679:
17680: fi
17681:
17682: fi
17683:
17684:
17685:
17686: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17687: #include <sys/types.h>
17688: #ifdef HAVE_DIRENT_H
17689: # include <dirent.h>
17690: #else
17691: # define dirent direct
17692: # ifdef HAVE_SYS_NDIR_H
17693: # include <sys/ndir.h>
17694: # endif
17695: # ifdef HAVE_SYS_DIR_H
17696: # include <sys/dir.h>
17697: # endif
17698: # ifdef HAVE_NDIR_H
17699: # include <ndir.h>
17700: # endif
17701: #endif
17702:
17703: "
17704: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17705:
17706: cat >>confdefs.h <<_ACEOF
17707: #define HAVE_STRUCT_DIRENT_D_TYPE 1
17708: _ACEOF
17709:
17710:
17711: fi
17712:
17713:
1.159 moko 17714:
1.171 moko 17715: # Check whether --enable-largefile was given.
17716: if test "${enable_largefile+set}" = set; then :
17717: enableval=$enable_largefile;
17718: fi
17719:
17720: if test "$enable_largefile" != no; then
17721:
17722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17723: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17724: if ${ac_cv_sys_largefile_CC+:} false; then :
17725: $as_echo_n "(cached) " >&6
17726: else
17727: ac_cv_sys_largefile_CC=no
17728: if test "$GCC" != yes; then
17729: ac_save_CC=$CC
17730: while :; do
17731: # IRIX 6.2 and later do not support large files by default,
17732: # so use the C compiler's -n32 option if that helps.
17733: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734: /* end confdefs.h. */
17735: #include <sys/types.h>
17736: /* Check that off_t can represent 2**63 - 1 correctly.
17737: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17738: since some C++ compilers masquerading as C compilers
17739: incorrectly reject 9223372036854775807. */
17740: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17741: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17742: && LARGE_OFF_T % 2147483647 == 1)
17743: ? 1 : -1];
17744: int
17745: main ()
17746: {
17747:
17748: ;
17749: return 0;
17750: }
17751: _ACEOF
17752: if ac_fn_c_try_compile "$LINENO"; then :
17753: break
17754: fi
17755: rm -f core conftest.err conftest.$ac_objext
17756: CC="$CC -n32"
17757: if ac_fn_c_try_compile "$LINENO"; then :
17758: ac_cv_sys_largefile_CC=' -n32'; break
17759: fi
17760: rm -f core conftest.err conftest.$ac_objext
17761: break
17762: done
17763: CC=$ac_save_CC
17764: rm -f conftest.$ac_ext
17765: fi
17766: fi
17767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17768: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17769: if test "$ac_cv_sys_largefile_CC" != no; then
17770: CC=$CC$ac_cv_sys_largefile_CC
17771: fi
17772:
17773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17774: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17775: if ${ac_cv_sys_file_offset_bits+:} false; then :
17776: $as_echo_n "(cached) " >&6
17777: else
17778: while :; do
17779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780: /* end confdefs.h. */
17781: #include <sys/types.h>
17782: /* Check that off_t can represent 2**63 - 1 correctly.
17783: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17784: since some C++ compilers masquerading as C compilers
17785: incorrectly reject 9223372036854775807. */
17786: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17787: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17788: && LARGE_OFF_T % 2147483647 == 1)
17789: ? 1 : -1];
17790: int
17791: main ()
17792: {
17793:
17794: ;
17795: return 0;
17796: }
17797: _ACEOF
17798: if ac_fn_c_try_compile "$LINENO"; then :
17799: ac_cv_sys_file_offset_bits=no; break
17800: fi
17801: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17802: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17803: /* end confdefs.h. */
17804: #define _FILE_OFFSET_BITS 64
17805: #include <sys/types.h>
17806: /* Check that off_t can represent 2**63 - 1 correctly.
17807: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17808: since some C++ compilers masquerading as C compilers
17809: incorrectly reject 9223372036854775807. */
17810: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17811: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17812: && LARGE_OFF_T % 2147483647 == 1)
17813: ? 1 : -1];
17814: int
17815: main ()
17816: {
17817:
17818: ;
17819: return 0;
17820: }
17821: _ACEOF
17822: if ac_fn_c_try_compile "$LINENO"; then :
17823: ac_cv_sys_file_offset_bits=64; break
17824: fi
17825: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17826: ac_cv_sys_file_offset_bits=unknown
17827: break
17828: done
17829: fi
17830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17831: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17832: case $ac_cv_sys_file_offset_bits in #(
17833: no | unknown) ;;
17834: *)
17835: cat >>confdefs.h <<_ACEOF
17836: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17837: _ACEOF
17838: ;;
17839: esac
17840: rm -rf conftest*
17841: if test $ac_cv_sys_file_offset_bits = unknown; then
17842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17843: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17844: if ${ac_cv_sys_large_files+:} false; then :
17845: $as_echo_n "(cached) " >&6
17846: else
17847: while :; do
17848: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849: /* end confdefs.h. */
17850: #include <sys/types.h>
17851: /* Check that off_t can represent 2**63 - 1 correctly.
17852: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17853: since some C++ compilers masquerading as C compilers
17854: incorrectly reject 9223372036854775807. */
17855: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17856: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17857: && LARGE_OFF_T % 2147483647 == 1)
17858: ? 1 : -1];
17859: int
17860: main ()
17861: {
17862:
17863: ;
17864: return 0;
17865: }
17866: _ACEOF
17867: if ac_fn_c_try_compile "$LINENO"; then :
17868: ac_cv_sys_large_files=no; break
17869: fi
17870: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872: /* end confdefs.h. */
17873: #define _LARGE_FILES 1
17874: #include <sys/types.h>
17875: /* Check that off_t can represent 2**63 - 1 correctly.
17876: We can't simply define LARGE_OFF_T to be 9223372036854775807,
17877: since some C++ compilers masquerading as C compilers
17878: incorrectly reject 9223372036854775807. */
17879: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17880: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17881: && LARGE_OFF_T % 2147483647 == 1)
17882: ? 1 : -1];
17883: int
17884: main ()
17885: {
17886:
17887: ;
17888: return 0;
17889: }
17890: _ACEOF
17891: if ac_fn_c_try_compile "$LINENO"; then :
17892: ac_cv_sys_large_files=1; break
17893: fi
17894: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895: ac_cv_sys_large_files=unknown
17896: break
17897: done
17898: fi
17899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17900: $as_echo "$ac_cv_sys_large_files" >&6; }
17901: case $ac_cv_sys_large_files in #(
17902: no | unknown) ;;
17903: *)
17904: cat >>confdefs.h <<_ACEOF
17905: #define _LARGE_FILES $ac_cv_sys_large_files
17906: _ACEOF
17907: ;;
17908: esac
17909: rm -rf conftest*
17910: fi
17911:
17912:
17913: fi
17914:
17915:
1.159 moko 17916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17917: $as_echo_n "checking for ANSI C header files... " >&6; }
17918: if ${ac_cv_header_stdc+:} false; then :
17919: $as_echo_n "(cached) " >&6
17920: else
17921: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922: /* end confdefs.h. */
17923: #include <stdlib.h>
17924: #include <stdarg.h>
17925: #include <string.h>
17926: #include <float.h>
17927:
17928: int
17929: main ()
17930: {
17931:
17932: ;
17933: return 0;
17934: }
17935: _ACEOF
17936: if ac_fn_c_try_compile "$LINENO"; then :
17937: ac_cv_header_stdc=yes
17938: else
17939: ac_cv_header_stdc=no
17940: fi
17941: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17942:
17943: if test $ac_cv_header_stdc = yes; then
17944: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17945: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946: /* end confdefs.h. */
17947: #include <string.h>
17948:
17949: _ACEOF
17950: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17951: $EGREP "memchr" >/dev/null 2>&1; then :
17952:
17953: else
17954: ac_cv_header_stdc=no
17955: fi
17956: rm -f conftest*
17957:
17958: fi
17959:
17960: if test $ac_cv_header_stdc = yes; then
17961: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17962: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963: /* end confdefs.h. */
17964: #include <stdlib.h>
17965:
17966: _ACEOF
17967: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17968: $EGREP "free" >/dev/null 2>&1; then :
17969:
17970: else
17971: ac_cv_header_stdc=no
17972: fi
17973: rm -f conftest*
17974:
17975: fi
17976:
17977: if test $ac_cv_header_stdc = yes; then
17978: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17979: if test "$cross_compiling" = yes; then :
17980: :
17981: else
17982: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983: /* end confdefs.h. */
17984: #include <ctype.h>
17985: #include <stdlib.h>
17986: #if ((' ' & 0x0FF) == 0x020)
17987: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17988: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17989: #else
17990: # define ISLOWER(c) \
17991: (('a' <= (c) && (c) <= 'i') \
17992: || ('j' <= (c) && (c) <= 'r') \
17993: || ('s' <= (c) && (c) <= 'z'))
17994: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17995: #endif
17996:
17997: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17998: int
17999: main ()
18000: {
18001: int i;
18002: for (i = 0; i < 256; i++)
18003: if (XOR (islower (i), ISLOWER (i))
18004: || toupper (i) != TOUPPER (i))
18005: return 2;
18006: return 0;
18007: }
18008: _ACEOF
18009: if ac_fn_c_try_run "$LINENO"; then :
18010:
18011: else
18012: ac_cv_header_stdc=no
18013: fi
18014: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18015: conftest.$ac_objext conftest.beam conftest.$ac_ext
18016: fi
18017:
18018: fi
18019: fi
18020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18021: $as_echo "$ac_cv_header_stdc" >&6; }
18022: if test $ac_cv_header_stdc = yes; then
18023:
18024: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18025:
18026: fi
1.128 moko 18027:
1.150 moko 18028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18029: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18030: if ${ac_cv_header_time+:} false; then :
18031: $as_echo_n "(cached) " >&6
1.62 paf 18032: else
1.150 moko 18033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18034: /* end confdefs.h. */
1.66 paf 18035: #include <sys/types.h>
18036: #include <sys/time.h>
18037: #include <time.h>
1.62 paf 18038:
18039: int
18040: main ()
18041: {
1.66 paf 18042: if ((struct tm *) 0)
18043: return 0;
1.62 paf 18044: ;
18045: return 0;
18046: }
18047: _ACEOF
1.150 moko 18048: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 18049: ac_cv_header_time=yes
1.1 paf 18050: else
1.150 moko 18051: ac_cv_header_time=no
1.1 paf 18052: fi
1.150 moko 18053: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18054: fi
1.150 moko 18055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18056: $as_echo "$ac_cv_header_time" >&6; }
1.66 paf 18057: if test $ac_cv_header_time = yes; then
1.1 paf 18058:
1.150 moko 18059: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.66 paf 18060:
1.1 paf 18061: fi
1.66 paf 18062:
1.1 paf 18063:
1.159 moko 18064: 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
18065: do :
18066: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18067: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18068: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18069: cat >>confdefs.h <<_ACEOF
18070: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18071: _ACEOF
18072:
18073: fi
1.150 moko 18074:
1.159 moko 18075: done
18076:
18077: for ac_header in assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h
18078: do :
18079: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18080: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18081: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18082: cat >>confdefs.h <<_ACEOF
18083: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18084: _ACEOF
18085:
18086: fi
18087:
18088: done
18089:
1.164 moko 18090: 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 18091: do :
18092: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18093: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18094: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18095: cat >>confdefs.h <<_ACEOF
18096: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18097: _ACEOF
18098:
18099: fi
18100:
18101: done
18102:
1.163 moko 18103: for ac_header in sys/socket.h netinet/in.h arpa/inet.h netdb.h
1.150 moko 18104: do :
18105: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18106: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18107: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.66 paf 18108: cat >>confdefs.h <<_ACEOF
1.150 moko 18109: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18110: _ACEOF
18111:
18112: fi
18113:
1.66 paf 18114: done
1.62 paf 18115:
18116:
18117:
1.66 paf 18118: case "$host" in
1.107 misha 18119: *-freebsd4*)
18120:
1.150 moko 18121: $as_echo "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 18122:
18123: ;;
1.66 paf 18124: *-sunos5.6* | *-solaris2.6*)
1.150 moko 18125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
18126: $as_echo_n "checking for main in -lxnet... " >&6; }
18127: if ${ac_cv_lib_xnet_main+:} false; then :
18128: $as_echo_n "(cached) " >&6
1.62 paf 18129: else
1.66 paf 18130: ac_check_lib_save_LIBS=$LIBS
18131: LIBS="-lxnet $LIBS"
1.150 moko 18132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18133: /* end confdefs.h. */
18134:
1.66 paf 18135:
18136: int
18137: main ()
18138: {
1.150 moko 18139: return main ();
1.66 paf 18140: ;
18141: return 0;
18142: }
1.62 paf 18143: _ACEOF
1.150 moko 18144: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18145: ac_cv_lib_xnet_main=yes
1.62 paf 18146: else
1.150 moko 18147: ac_cv_lib_xnet_main=no
1.62 paf 18148: fi
1.150 moko 18149: rm -f core conftest.err conftest.$ac_objext \
18150: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18151: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18152: fi
1.150 moko 18153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
18154: $as_echo "$ac_cv_lib_xnet_main" >&6; }
18155: if test "x$ac_cv_lib_xnet_main" = xyes; then :
1.62 paf 18156: cat >>confdefs.h <<_ACEOF
1.66 paf 18157: #define HAVE_LIBXNET 1
1.62 paf 18158: _ACEOF
1.1 paf 18159:
1.66 paf 18160: LIBS="-lxnet $LIBS"
18161:
1.1 paf 18162: fi
18163:
1.66 paf 18164: ;;
18165: *-sunos5* | *-solaris2*)
1.150 moko 18166: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
18167: $as_echo_n "checking for main in -lsocket... " >&6; }
18168: if ${ac_cv_lib_socket_main+:} false; then :
18169: $as_echo_n "(cached) " >&6
1.62 paf 18170: else
1.66 paf 18171: ac_check_lib_save_LIBS=$LIBS
18172: LIBS="-lsocket $LIBS"
1.150 moko 18173: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18174: /* end confdefs.h. */
1.66 paf 18175:
18176:
1.62 paf 18177: int
18178: main ()
18179: {
1.150 moko 18180: return main ();
1.62 paf 18181: ;
18182: return 0;
18183: }
18184: _ACEOF
1.150 moko 18185: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18186: ac_cv_lib_socket_main=yes
1.1 paf 18187: else
1.150 moko 18188: ac_cv_lib_socket_main=no
1.1 paf 18189: fi
1.150 moko 18190: rm -f core conftest.err conftest.$ac_objext \
18191: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18192: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18193: fi
1.150 moko 18194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
18195: $as_echo "$ac_cv_lib_socket_main" >&6; }
18196: if test "x$ac_cv_lib_socket_main" = xyes; then :
1.66 paf 18197: cat >>confdefs.h <<_ACEOF
18198: #define HAVE_LIBSOCKET 1
18199: _ACEOF
1.1 paf 18200:
1.66 paf 18201: LIBS="-lsocket $LIBS"
1.1 paf 18202:
18203: fi
18204:
1.150 moko 18205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
18206: $as_echo_n "checking for main in -lnsl... " >&6; }
18207: if ${ac_cv_lib_nsl_main+:} false; then :
18208: $as_echo_n "(cached) " >&6
1.62 paf 18209: else
1.66 paf 18210: ac_check_lib_save_LIBS=$LIBS
18211: LIBS="-lnsl $LIBS"
1.150 moko 18212: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18213: /* end confdefs.h. */
1.66 paf 18214:
18215:
1.62 paf 18216: int
18217: main ()
18218: {
1.150 moko 18219: return main ();
1.62 paf 18220: ;
18221: return 0;
18222: }
18223: _ACEOF
1.150 moko 18224: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18225: ac_cv_lib_nsl_main=yes
1.30 paf 18226: else
1.150 moko 18227: ac_cv_lib_nsl_main=no
1.30 paf 18228: fi
1.150 moko 18229: rm -f core conftest.err conftest.$ac_objext \
18230: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18231: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18232: fi
1.150 moko 18233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
18234: $as_echo "$ac_cv_lib_nsl_main" >&6; }
18235: if test "x$ac_cv_lib_nsl_main" = xyes; then :
1.66 paf 18236: cat >>confdefs.h <<_ACEOF
18237: #define HAVE_LIBNSL 1
18238: _ACEOF
1.30 paf 18239:
1.66 paf 18240: LIBS="-lnsl $LIBS"
1.30 paf 18241:
18242: fi
18243:
1.66 paf 18244: ;;
18245: *-nec-sysv4*)
1.150 moko 18246: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18247: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18248: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18249: $as_echo_n "(cached) " >&6
1.62 paf 18250: else
1.66 paf 18251: ac_check_lib_save_LIBS=$LIBS
18252: LIBS="-lnsl $LIBS"
1.150 moko 18253: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18254: /* end confdefs.h. */
1.66 paf 18255:
1.150 moko 18256: /* Override any GCC internal prototype to avoid an error.
18257: Use char because int might match the return type of a GCC
18258: builtin and then its argument prototype would still apply. */
1.66 paf 18259: #ifdef __cplusplus
18260: extern "C"
18261: #endif
18262: char gethostbyname ();
1.62 paf 18263: int
18264: main ()
18265: {
1.150 moko 18266: return gethostbyname ();
1.62 paf 18267: ;
18268: return 0;
18269: }
18270: _ACEOF
1.150 moko 18271: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18272: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18273: else
1.150 moko 18274: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18275: fi
1.150 moko 18276: rm -f core conftest.err conftest.$ac_objext \
18277: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18278: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18279: fi
1.150 moko 18280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18281: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18282: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.66 paf 18283: cat >>confdefs.h <<_ACEOF
18284: #define HAVE_LIBNSL 1
18285: _ACEOF
1.30 paf 18286:
1.66 paf 18287: LIBS="-lnsl $LIBS"
1.30 paf 18288:
18289: fi
18290:
1.150 moko 18291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18292: $as_echo_n "checking for socket in -lsocket... " >&6; }
18293: if ${ac_cv_lib_socket_socket+:} false; then :
18294: $as_echo_n "(cached) " >&6
1.8 paf 18295: else
1.66 paf 18296: ac_check_lib_save_LIBS=$LIBS
18297: LIBS="-lsocket $LIBS"
1.150 moko 18298: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18299: /* end confdefs.h. */
18300:
1.150 moko 18301: /* Override any GCC internal prototype to avoid an error.
18302: Use char because int might match the return type of a GCC
18303: builtin and then its argument prototype would still apply. */
1.66 paf 18304: #ifdef __cplusplus
18305: extern "C"
18306: #endif
18307: char socket ();
1.62 paf 18308: int
18309: main ()
18310: {
1.150 moko 18311: return socket ();
1.62 paf 18312: ;
18313: return 0;
18314: }
18315: _ACEOF
1.150 moko 18316: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18317: ac_cv_lib_socket_socket=yes
1.8 paf 18318: else
1.150 moko 18319: ac_cv_lib_socket_socket=no
1.8 paf 18320: fi
1.150 moko 18321: rm -f core conftest.err conftest.$ac_objext \
18322: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18323: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18324: fi
1.150 moko 18325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18326: $as_echo "$ac_cv_lib_socket_socket" >&6; }
18327: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.66 paf 18328: cat >>confdefs.h <<_ACEOF
1.128 moko 18329: #define HAVE_LIBSOCKET 1
1.66 paf 18330: _ACEOF
18331:
1.128 moko 18332: LIBS="-lsocket $LIBS"
1.66 paf 18333:
1.62 paf 18334: fi
18335:
1.66 paf 18336: ;;
1.128 moko 18337: *-cygwin*)
18338:
1.150 moko 18339: $as_echo "#define WIN32 /**/" >>confdefs.h
1.128 moko 18340:
1.66 paf 18341: ;;
18342: esac
1.1 paf 18343:
1.150 moko 18344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18345: $as_echo_n "checking for sin in -lm... " >&6; }
18346: if ${ac_cv_lib_m_sin+:} false; then :
18347: $as_echo_n "(cached) " >&6
1.1 paf 18348: else
1.62 paf 18349: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18350: LIBS="-lm $LIBS"
1.150 moko 18351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18352: /* end confdefs.h. */
18353:
1.150 moko 18354: /* Override any GCC internal prototype to avoid an error.
18355: Use char because int might match the return type of a GCC
18356: builtin and then its argument prototype would still apply. */
1.66 paf 18357: #ifdef __cplusplus
18358: extern "C"
18359: #endif
18360: char sin ();
1.62 paf 18361: int
18362: main ()
18363: {
1.150 moko 18364: return sin ();
1.62 paf 18365: ;
18366: return 0;
18367: }
18368: _ACEOF
1.150 moko 18369: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18370: ac_cv_lib_m_sin=yes
1.62 paf 18371: else
1.150 moko 18372: ac_cv_lib_m_sin=no
1.62 paf 18373: fi
1.150 moko 18374: rm -f core conftest.err conftest.$ac_objext \
18375: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18376: LIBS=$ac_check_lib_save_LIBS
18377: fi
1.150 moko 18378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18379: $as_echo "$ac_cv_lib_m_sin" >&6; }
18380: if test "x$ac_cv_lib_m_sin" = xyes; then :
1.62 paf 18381: cat >>confdefs.h <<_ACEOF
1.66 paf 18382: #define HAVE_LIBM 1
1.62 paf 18383: _ACEOF
1.1 paf 18384:
1.66 paf 18385: LIBS="-lm $LIBS"
1.1 paf 18386:
18387: fi
18388:
1.150 moko 18389: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18390: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18391: if ${ac_cv_lib_crypt_crypt+:} false; then :
18392: $as_echo_n "(cached) " >&6
1.1 paf 18393: else
1.62 paf 18394: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18395: LIBS="-lcrypt $LIBS"
1.150 moko 18396: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18397: /* end confdefs.h. */
18398:
1.150 moko 18399: /* Override any GCC internal prototype to avoid an error.
18400: Use char because int might match the return type of a GCC
18401: builtin and then its argument prototype would still apply. */
1.66 paf 18402: #ifdef __cplusplus
18403: extern "C"
18404: #endif
18405: char crypt ();
1.62 paf 18406: int
18407: main ()
18408: {
1.150 moko 18409: return crypt ();
1.62 paf 18410: ;
18411: return 0;
18412: }
18413: _ACEOF
1.150 moko 18414: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18415: ac_cv_lib_crypt_crypt=yes
1.62 paf 18416: else
1.150 moko 18417: ac_cv_lib_crypt_crypt=no
1.62 paf 18418: fi
1.150 moko 18419: rm -f core conftest.err conftest.$ac_objext \
18420: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18421: LIBS=$ac_check_lib_save_LIBS
18422: fi
1.150 moko 18423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18424: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18425: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
1.62 paf 18426: cat >>confdefs.h <<_ACEOF
1.66 paf 18427: #define HAVE_LIBCRYPT 1
1.62 paf 18428: _ACEOF
1.1 paf 18429:
1.66 paf 18430: LIBS="-lcrypt $LIBS"
18431:
18432: fi
18433:
18434:
18435:
1.159 moko 18436: for ac_func in flock _locking fcntl lockf ftruncate fchmod
18437: do :
18438: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18439: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18440: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18441: cat >>confdefs.h <<_ACEOF
18442: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18443: _ACEOF
18444:
18445: fi
18446: done
1.66 paf 18447:
1.159 moko 18448: for ac_func in getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv
1.150 moko 18449: do :
18450: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18451: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18452: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.62 paf 18453: cat >>confdefs.h <<_ACEOF
1.150 moko 18454: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 18455: _ACEOF
1.1 paf 18456:
1.66 paf 18457: fi
18458: done
18459:
1.1 paf 18460:
18461:
1.159 moko 18462:
1.67 paf 18463: pa_func=sigsetjmp
1.150 moko 18464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
18465: $as_echo_n "checking for (maybe built-in) function $pa_func... " >&6; }
18466: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18467: /* end confdefs.h. */
18468:
18469: #ifdef HAVE_SETJMP_H
18470: # include <setjmp.h>
18471: #endif
18472:
18473: int
18474: main ()
18475: {
18476:
18477: $pa_func(0,0);
18478:
18479: ;
18480: return 0;
18481: }
18482: _ACEOF
1.150 moko 18483: if ac_fn_c_try_compile "$LINENO"; then :
18484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18485: $as_echo "yes" >&6; }
1.67 paf 18486: cat >>confdefs.h <<_ACEOF
1.150 moko 18487: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.67 paf 18488: _ACEOF
18489:
18490:
18491: else
1.150 moko 18492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18493: $as_echo "no" >&6; }
1.67 paf 18494:
18495: fi
1.150 moko 18496: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 18497:
18498:
18499:
1.159 moko 18500:
1.150 moko 18501: ac_ext=cpp
1.67 paf 18502: ac_cpp='$CXXCPP $CPPFLAGS'
18503: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18504: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18505: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18506:
18507:
18508:
1.158 moko 18509: for pa_func in trunc round sign
1.67 paf 18510: do
18511:
1.150 moko 18512: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
18513: $as_echo_n "checking for (maybe built-in) math function $pa_func... " >&6; }
18514: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18515: /* end confdefs.h. */
18516:
18517: #ifdef HAVE_MATH_H
18518: # include <math.h>
18519: #endif
18520:
18521: int
18522: main ()
18523: {
18524:
18525: double result=$pa_func(1.6);
18526:
18527: ;
18528: return 0;
18529: }
18530: _ACEOF
1.150 moko 18531: if ac_fn_cxx_try_compile "$LINENO"; then :
18532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18533: $as_echo "yes" >&6; }
1.67 paf 18534: cat >>confdefs.h <<_ACEOF
1.150 moko 18535: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.62 paf 18536: _ACEOF
1.66 paf 18537:
1.62 paf 18538: else
1.150 moko 18539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18540: $as_echo "no" >&6; }
1.62 paf 18541:
18542: fi
1.150 moko 18543: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18544:
18545: done
18546:
18547: ac_ext=c
18548: ac_cpp='$CPP $CPPFLAGS'
18549: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18550: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18551: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18552:
18553:
18554:
18555: for ac_func in qsort
18556: do :
18557: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
18558: if test "x$ac_cv_func_qsort" = xyes; then :
1.62 paf 18559: cat >>confdefs.h <<_ACEOF
1.150 moko 18560: #define HAVE_QSORT 1
1.62 paf 18561: _ACEOF
1.1 paf 18562:
1.66 paf 18563: else
1.150 moko 18564: as_fn_error $? "No qsort library function." "$LINENO" 5
1.1 paf 18565: fi
1.66 paf 18566: done
1.1 paf 18567:
18568:
1.62 paf 18569:
1.159 moko 18570:
1.177 moko 18571: ac_ext=cpp
18572: ac_cpp='$CXXCPP $CPPFLAGS'
18573: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18574: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18575: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18576:
1.150 moko 18577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
18578: $as_echo_n "checking for timezone variable... " >&6; }
18579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18580: /* end confdefs.h. */
1.66 paf 18581: #include <time.h>
1.62 paf 18582: int
18583: main ()
18584: {
1.177 moko 18585: int test=timezone;
1.62 paf 18586: ;
18587: return 0;
18588: }
18589: _ACEOF
1.177 moko 18590: if ac_fn_cxx_try_compile "$LINENO"; then :
1.150 moko 18591: $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1.158 moko 18592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18593: $as_echo "yes" >&6; }
1.62 paf 18594: else
1.150 moko 18595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18596: $as_echo "no" >&6; }
1.62 paf 18597: fi
1.150 moko 18598: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.177 moko 18599: ac_ext=c
18600: ac_cpp='$CPP $CPPFLAGS'
18601: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18602: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18603: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18604:
1.1 paf 18605:
1.176 moko 18606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18607: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
1.150 moko 18608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18609: /* end confdefs.h. */
1.66 paf 18610: #include <time.h>
1.62 paf 18611: int
18612: main ()
18613: {
1.176 moko 18614: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 18615: ;
18616: return 0;
18617: }
18618: _ACEOF
1.150 moko 18619: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18620: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
1.158 moko 18621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18622: $as_echo "yes" >&6; }
1.62 paf 18623: else
1.150 moko 18624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18625: $as_echo "no" >&6; }
1.62 paf 18626: fi
1.150 moko 18627: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18628:
1.176 moko 18629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
18630: $as_echo_n "checking for tm_tzadj in struct tm... " >&6; }
1.150 moko 18631: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18632: /* end confdefs.h. */
1.66 paf 18633: #include <time.h>
1.62 paf 18634: int
18635: main ()
18636: {
1.176 moko 18637: struct tm tm; tm.tm_tzadj=0;
1.62 paf 18638: ;
18639: return 0;
18640: }
18641: _ACEOF
1.150 moko 18642: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18643: $as_echo "#define HAVE_TM_TZADJ 1" >>confdefs.h
1.158 moko 18644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18645: $as_echo "yes" >&6; }
1.62 paf 18646: else
1.150 moko 18647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648: $as_echo "no" >&6; }
1.62 paf 18649: fi
1.150 moko 18650: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18651:
1.176 moko 18652: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
18653: $as_echo_n "checking for 0..9999 year date range support... " >&6; }
18654: if test "$cross_compiling" = yes; then :
18655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18656: $as_echo "no" >&6; }
18657: else
18658: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18659: /* end confdefs.h. */
1.176 moko 18660:
18661: #include <string.h>
1.66 paf 18662: #include <time.h>
1.176 moko 18663:
18664: int main() {
18665: struct tm tmL,tmH;
18666: memset(&tmL, 0, sizeof(tmL));
18667: memset(&tmH, 0, sizeof(tmH));
18668: tmL.tm_year=-1900;
18669: tmL.tm_mon=-1;
18670: tmH.tm_year=9999-1900;
18671: tmH.tm_mon=12-1;
18672: tmH.tm_mday=31;
18673: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 18674: }
1.176 moko 18675:
1.62 paf 18676: _ACEOF
1.176 moko 18677: if ac_fn_c_try_run "$LINENO"; then :
18678: $as_echo "#define PA_DATE64 1" >>confdefs.h
1.158 moko 18679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18680: $as_echo "yes" >&6; }
1.62 paf 18681: else
1.150 moko 18682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18683: $as_echo "no" >&6; }
1.62 paf 18684: fi
1.176 moko 18685: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18686: conftest.$ac_objext conftest.beam conftest.$ac_ext
18687: fi
1.31 paf 18688:
1.1 paf 18689:
18690:
18691:
1.62 paf 18692:
18693:
18694:
1.150 moko 18695: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 18696:
18697:
1.173 moko 18698: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/pa-include/Makefile src/lib/json/Makefile src/lib/curl/Makefile src/lib/punycode/Makefile src/lib/memcached/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache/Makefile src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"
1.62 paf 18699:
18700: cat >confcache <<\_ACEOF
1.1 paf 18701: # This file is a shell script that caches the results of configure
18702: # tests run on this system so they can be shared between configure
1.62 paf 18703: # scripts and configure runs, see configure's option --config-cache.
18704: # It is not useful on other systems. If it contains results you don't
18705: # want to keep, you may remove or edit it.
1.1 paf 18706: #
1.62 paf 18707: # config.status only pays attention to the cache file if you give it
18708: # the --recheck option to rerun configure.
1.1 paf 18709: #
1.62 paf 18710: # `ac_cv_env_foo' variables (set or unset) will be overridden when
18711: # loading this file, other *unset* `ac_cv_foo' will be assigned the
18712: # following values.
18713:
18714: _ACEOF
18715:
1.1 paf 18716: # The following way of writing the cache mishandles newlines in values,
18717: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 18718: # So, we kill variables containing newlines.
1.1 paf 18719: # Ultrix sh set writes to stderr and can't be redirected directly,
18720: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 18721: (
18722: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18723: eval ac_val=\$$ac_var
18724: case $ac_val in #(
18725: *${as_nl}*)
18726: case $ac_var in #(
18727: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18728: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18729: esac
18730: case $ac_var in #(
18731: _ | IFS | as_nl) ;; #(
18732: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18733: *) { eval $ac_var=; unset $ac_var;} ;;
18734: esac ;;
18735: esac
18736: done
18737:
1.62 paf 18738: (set) 2>&1 |
1.150 moko 18739: case $as_nl`(ac_space=' '; set) 2>&1` in #(
18740: *${as_nl}ac_space=\ *)
18741: # `set' does not quote correctly, so add quotes: double-quote
18742: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 18743: sed -n \
1.86 paf 18744: "s/'/'\\\\''/g;
18745: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 18746: ;; #(
1.62 paf 18747: *)
18748: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 18749: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 18750: ;;
1.150 moko 18751: esac |
18752: sort
18753: ) |
1.62 paf 18754: sed '
1.150 moko 18755: /^ac_cv_env_/b end
1.62 paf 18756: t clear
1.150 moko 18757: :clear
1.62 paf 18758: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18759: t end
1.150 moko 18760: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18761: :end' >>confcache
18762: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18763: if test -w "$cache_file"; then
18764: if test "x$cache_file" != "x/dev/null"; then
18765: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18766: $as_echo "$as_me: updating cache $cache_file" >&6;}
18767: if test ! -f "$cache_file" || test -h "$cache_file"; then
18768: cat confcache >"$cache_file"
18769: else
18770: case $cache_file in #(
18771: */* | ?:*)
18772: mv -f confcache "$cache_file"$$ &&
18773: mv -f "$cache_file"$$ "$cache_file" ;; #(
18774: *)
18775: mv -f confcache "$cache_file" ;;
18776: esac
18777: fi
18778: fi
1.1 paf 18779: else
1.150 moko 18780: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18781: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 18782: fi
18783: fi
18784: rm -f confcache
18785:
18786: test "x$prefix" = xNONE && prefix=$ac_default_prefix
18787: # Let make expand exec_prefix.
18788: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18789:
1.62 paf 18790: DEFS=-DHAVE_CONFIG_H
18791:
18792: ac_libobjs=
18793: ac_ltlibobjs=
1.150 moko 18794: U=
1.62 paf 18795: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18796: # 1. Remove the extension, and $U if already installed.
1.150 moko 18797: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18798: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18799: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18800: # will be set to the directory where LIBOBJS objects are built.
18801: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18802: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 18803: done
18804: LIBOBJS=$ac_libobjs
18805:
18806: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 18807:
18808:
1.150 moko 18809: if test -n "$EXEEXT"; then
18810: am__EXEEXT_TRUE=
18811: am__EXEEXT_FALSE='#'
18812: else
18813: am__EXEEXT_TRUE='#'
18814: am__EXEEXT_FALSE=
18815: fi
18816:
1.62 paf 18817: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 18818: as_fn_error $? "conditional \"AMDEP\" was never defined.
18819: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18820: fi
1.66 paf 18821: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 18822: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18823: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18824: fi
1.66 paf 18825: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 18826: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18827: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18828: fi
1.122 moko 18829: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 18830: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
18831: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 18832: fi
1.128 moko 18833: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 18834: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
18835: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 18836: fi
18837: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 18838: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
18839: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 18840: fi
1.150 moko 18841: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 18842:
18843: _ltdl_libobjs=
18844: _ltdl_ltlibobjs=
18845: if test -n "$_LT_LIBOBJS"; then
18846: # Remove the extension.
18847: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
18848: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
18849: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
18850: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
18851: done
18852: fi
18853: ltdl_LIBOBJS=$_ltdl_libobjs
18854:
18855: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
18856:
18857:
1.62 paf 18858:
1.150 moko 18859:
18860: : "${CONFIG_STATUS=./config.status}"
18861: ac_write_fail=0
1.62 paf 18862: ac_clean_files_save=$ac_clean_files
18863: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.150 moko 18864: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18865: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18866: as_write_fail=0
18867: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 18868: #! $SHELL
18869: # Generated by $as_me.
18870: # Run this file to recreate the current configuration.
18871: # Compiler output produced by configure, useful for debugging
18872: # configure, is in config.log if it exists.
18873:
18874: debug=false
18875: ac_cs_recheck=false
18876: ac_cs_silent=false
1.150 moko 18877:
1.62 paf 18878: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 18879: export SHELL
18880: _ASEOF
18881: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18882: ## -------------------- ##
18883: ## M4sh Initialization. ##
18884: ## -------------------- ##
1.62 paf 18885:
1.150 moko 18886: # Be more Bourne compatible
18887: DUALCASE=1; export DUALCASE # for MKS sh
18888: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 18889: emulate sh
18890: NULLCMD=:
1.150 moko 18891: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 18892: # is contrary to our usage. Disable this feature.
18893: alias -g '${1+"$@"}'='"$@"'
1.150 moko 18894: setopt NO_GLOB_SUBST
18895: else
18896: case `(set -o) 2>/dev/null` in #(
18897: *posix*) :
18898: set -o posix ;; #(
18899: *) :
18900: ;;
18901: esac
18902: fi
18903:
18904:
18905: as_nl='
18906: '
18907: export as_nl
18908: # Printing a long string crashes Solaris 7 /usr/bin/printf.
18909: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18910: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18911: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18912: # Prefer a ksh shell builtin over an external printf program on Solaris,
18913: # but without wasting forks for bash or zsh.
18914: if test -z "$BASH_VERSION$ZSH_VERSION" \
18915: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18916: as_echo='print -r --'
18917: as_echo_n='print -rn --'
18918: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18919: as_echo='printf %s\n'
18920: as_echo_n='printf %s'
18921: else
18922: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18923: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18924: as_echo_n='/usr/ucb/echo -n'
18925: else
18926: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18927: as_echo_n_body='eval
18928: arg=$1;
18929: case $arg in #(
18930: *"$as_nl"*)
18931: expr "X$arg" : "X\\(.*\\)$as_nl";
18932: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18933: esac;
18934: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18935: '
18936: export as_echo_n_body
18937: as_echo_n='sh -c $as_echo_n_body as_echo'
18938: fi
18939: export as_echo_body
18940: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 18941: fi
18942:
1.150 moko 18943: # The user is always right.
18944: if test "${PATH_SEPARATOR+set}" != set; then
18945: PATH_SEPARATOR=:
18946: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18947: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18948: PATH_SEPARATOR=';'
18949: }
1.62 paf 18950: fi
18951:
18952:
1.150 moko 18953: # IFS
18954: # We need space, tab and new line, in precisely that order. Quoting is
18955: # there to prevent editors from complaining about space-tab.
18956: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18957: # splitting by setting IFS to empty value.)
18958: IFS=" "" $as_nl"
18959:
18960: # Find who we are. Look in the path if we contain no directory separator.
18961: as_myself=
18962: case $0 in #((
18963: *[\\/]* ) as_myself=$0 ;;
18964: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18965: for as_dir in $PATH
18966: do
18967: IFS=$as_save_IFS
18968: test -z "$as_dir" && as_dir=.
18969: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18970: done
18971: IFS=$as_save_IFS
18972:
18973: ;;
18974: esac
18975: # We did not find ourselves, most probably we were run as `sh COMMAND'
18976: # in which case we are not to be found in the path.
18977: if test "x$as_myself" = x; then
18978: as_myself=$0
18979: fi
18980: if test ! -f "$as_myself"; then
18981: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18982: exit 1
18983: fi
18984:
18985: # Unset variables that we do not need and which cause bugs (e.g. in
18986: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18987: # suppresses any "Segmentation fault" message there. '((' could
18988: # trigger a bug in pdksh 5.2.14.
18989: for as_var in BASH_ENV ENV MAIL MAILPATH
18990: do eval test x\${$as_var+set} = xset \
18991: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18992: done
1.62 paf 18993: PS1='$ '
18994: PS2='> '
18995: PS4='+ '
18996:
18997: # NLS nuisances.
1.150 moko 18998: LC_ALL=C
18999: export LC_ALL
19000: LANGUAGE=C
19001: export LANGUAGE
19002:
19003: # CDPATH.
19004: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19005:
19006:
19007: # as_fn_error STATUS ERROR [LINENO LOG_FD]
19008: # ----------------------------------------
19009: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19010: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19011: # script with STATUS, using 1 if that was 0.
19012: as_fn_error ()
19013: {
19014: as_status=$1; test $as_status -eq 0 && as_status=1
19015: if test "$4"; then
19016: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19017: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19018: fi
19019: $as_echo "$as_me: error: $2" >&2
19020: as_fn_exit $as_status
19021: } # as_fn_error
19022:
19023:
19024: # as_fn_set_status STATUS
19025: # -----------------------
19026: # Set $? to STATUS, without forking.
19027: as_fn_set_status ()
19028: {
19029: return $1
19030: } # as_fn_set_status
19031:
19032: # as_fn_exit STATUS
19033: # -----------------
19034: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19035: as_fn_exit ()
19036: {
19037: set +e
19038: as_fn_set_status $1
19039: exit $1
19040: } # as_fn_exit
19041:
19042: # as_fn_unset VAR
19043: # ---------------
19044: # Portably unset VAR.
19045: as_fn_unset ()
19046: {
19047: { eval $1=; unset $1;}
19048: }
19049: as_unset=as_fn_unset
19050: # as_fn_append VAR VALUE
19051: # ----------------------
19052: # Append the text in VALUE to the end of the definition contained in VAR. Take
19053: # advantage of any shell optimizations that allow amortized linear growth over
19054: # repeated appends, instead of the typical quadratic growth present in naive
19055: # implementations.
19056: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19057: eval 'as_fn_append ()
19058: {
19059: eval $1+=\$2
19060: }'
19061: else
19062: as_fn_append ()
19063: {
19064: eval $1=\$$1\$2
19065: }
19066: fi # as_fn_append
19067:
19068: # as_fn_arith ARG...
19069: # ------------------
19070: # Perform arithmetic evaluation on the ARGs, and store the result in the
19071: # global $as_val. Take advantage of shells that can avoid forks. The arguments
19072: # must be portable across $(()) and expr.
19073: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19074: eval 'as_fn_arith ()
19075: {
19076: as_val=$(( $* ))
19077: }'
19078: else
19079: as_fn_arith ()
19080: {
19081: as_val=`expr "$@" || test $? -eq 1`
19082: }
19083: fi # as_fn_arith
19084:
1.1 paf 19085:
1.150 moko 19086: if expr a : '\(a\)' >/dev/null 2>&1 &&
19087: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 19088: as_expr=expr
19089: else
19090: as_expr=false
19091: fi
19092:
1.150 moko 19093: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 19094: as_basename=basename
19095: else
19096: as_basename=false
19097: fi
19098:
1.150 moko 19099: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19100: as_dirname=dirname
19101: else
19102: as_dirname=false
19103: fi
1.62 paf 19104:
1.150 moko 19105: as_me=`$as_basename -- "$0" ||
1.62 paf 19106: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19107: X"$0" : 'X\(//\)$' \| \
1.150 moko 19108: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19109: $as_echo X/"$0" |
19110: sed '/^.*\/\([^/][^/]*\)\/*$/{
19111: s//\1/
19112: q
19113: }
19114: /^X\/\(\/\/\)$/{
19115: s//\1/
19116: q
19117: }
19118: /^X\/\(\/\).*/{
19119: s//\1/
19120: q
19121: }
19122: s/.*/./; q'`
1.62 paf 19123:
19124: # Avoid depending upon Character Ranges.
19125: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19126: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19127: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19128: as_cr_digits='0123456789'
19129: as_cr_alnum=$as_cr_Letters$as_cr_digits
19130:
1.150 moko 19131: ECHO_C= ECHO_N= ECHO_T=
19132: case `echo -n x` in #(((((
19133: -n*)
19134: case `echo 'xy\c'` in
19135: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19136: xy) ECHO_C='\c';;
19137: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19138: ECHO_T=' ';;
19139: esac;;
19140: *)
19141: ECHO_N='-n';;
1.62 paf 19142: esac
19143:
1.150 moko 19144: rm -f conf$$ conf$$.exe conf$$.file
19145: if test -d conf$$.dir; then
19146: rm -f conf$$.dir/conf$$.file
1.62 paf 19147: else
1.150 moko 19148: rm -f conf$$.dir
19149: mkdir conf$$.dir 2>/dev/null
1.62 paf 19150: fi
1.150 moko 19151: if (echo >conf$$.file) 2>/dev/null; then
19152: if ln -s conf$$.file conf$$ 2>/dev/null; then
19153: as_ln_s='ln -s'
19154: # ... but there are two gotchas:
19155: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19156: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 19157: # In both cases, we have to default to `cp -pR'.
1.150 moko 19158: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 19159: as_ln_s='cp -pR'
1.150 moko 19160: elif ln conf$$.file conf$$ 2>/dev/null; then
19161: as_ln_s=ln
19162: else
1.166 moko 19163: as_ln_s='cp -pR'
1.62 paf 19164: fi
19165: else
1.166 moko 19166: as_ln_s='cp -pR'
1.62 paf 19167: fi
1.150 moko 19168: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19169: rmdir conf$$.dir 2>/dev/null
19170:
19171:
19172: # as_fn_mkdir_p
19173: # -------------
19174: # Create "$as_dir" as a directory, including parents if necessary.
19175: as_fn_mkdir_p ()
19176: {
19177:
19178: case $as_dir in #(
19179: -*) as_dir=./$as_dir;;
19180: esac
19181: test -d "$as_dir" || eval $as_mkdir_p || {
19182: as_dirs=
19183: while :; do
19184: case $as_dir in #(
19185: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19186: *) as_qdir=$as_dir;;
19187: esac
19188: as_dirs="'$as_qdir' $as_dirs"
19189: as_dir=`$as_dirname -- "$as_dir" ||
19190: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19191: X"$as_dir" : 'X\(//\)[^/]' \| \
19192: X"$as_dir" : 'X\(//\)$' \| \
19193: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19194: $as_echo X"$as_dir" |
19195: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19196: s//\1/
19197: q
19198: }
19199: /^X\(\/\/\)[^/].*/{
19200: s//\1/
19201: q
19202: }
19203: /^X\(\/\/\)$/{
19204: s//\1/
19205: q
19206: }
19207: /^X\(\/\).*/{
19208: s//\1/
19209: q
19210: }
19211: s/.*/./; q'`
19212: test -d "$as_dir" && break
19213: done
19214: test -z "$as_dirs" || eval "mkdir $as_dirs"
19215: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19216:
1.62 paf 19217:
1.150 moko 19218: } # as_fn_mkdir_p
1.62 paf 19219: if mkdir -p . 2>/dev/null; then
1.150 moko 19220: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 19221: else
1.86 paf 19222: test -d ./-p && rmdir ./-p
1.62 paf 19223: as_mkdir_p=false
19224: fi
19225:
1.166 moko 19226:
19227: # as_fn_executable_p FILE
19228: # -----------------------
19229: # Test if FILE is an executable regular file.
19230: as_fn_executable_p ()
19231: {
19232: test -f "$1" && test -x "$1"
19233: } # as_fn_executable_p
19234: as_test_x='test -x'
19235: as_executable_p=as_fn_executable_p
1.62 paf 19236:
19237: # Sed expression to map a string onto a valid CPP name.
1.86 paf 19238: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19239:
19240: # Sed expression to map a string onto a valid variable name.
1.86 paf 19241: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19242:
19243:
19244: exec 6>&1
1.150 moko 19245: ## ----------------------------------- ##
19246: ## Main body of $CONFIG_STATUS script. ##
19247: ## ----------------------------------- ##
19248: _ASEOF
19249: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 19250:
1.150 moko 19251: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19252: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 19253: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 19254: # values after options handling.
19255: ac_log="
1.179 ! moko 19256: This file was extended by parser $as_me 3.4.4rc, which was
1.166 moko 19257: generated by GNU Autoconf 2.69. Invocation command line was
1.62 paf 19258:
19259: CONFIG_FILES = $CONFIG_FILES
19260: CONFIG_HEADERS = $CONFIG_HEADERS
19261: CONFIG_LINKS = $CONFIG_LINKS
19262: CONFIG_COMMANDS = $CONFIG_COMMANDS
19263: $ $0 $@
19264:
1.150 moko 19265: on `(hostname || uname -n) 2>/dev/null | sed 1q`
19266: "
19267:
1.62 paf 19268: _ACEOF
19269:
1.150 moko 19270: case $ac_config_files in *"
19271: "*) set x $ac_config_files; shift; ac_config_files=$*;;
19272: esac
1.62 paf 19273:
1.150 moko 19274: case $ac_config_headers in *"
19275: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19276: esac
1.62 paf 19277:
19278:
1.150 moko 19279: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19280: # Files that config.status was made for.
19281: config_files="$ac_config_files"
19282: config_headers="$ac_config_headers"
19283: config_commands="$ac_config_commands"
1.62 paf 19284:
1.150 moko 19285: _ACEOF
1.62 paf 19286:
1.150 moko 19287: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19288: ac_cs_usage="\
1.150 moko 19289: \`$as_me' instantiates files and other configuration actions
19290: from templates according to the current configuration. Unless the files
19291: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 19292:
1.150 moko 19293: Usage: $0 [OPTION]... [TAG]...
1.62 paf 19294:
19295: -h, --help print this help, then exit
1.150 moko 19296: -V, --version print version number and configuration settings, then exit
19297: --config print configuration, then exit
19298: -q, --quiet, --silent
19299: do not print progress messages
1.62 paf 19300: -d, --debug don't remove temporary files
19301: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 19302: --file=FILE[:TEMPLATE]
19303: instantiate the configuration file FILE
19304: --header=FILE[:TEMPLATE]
19305: instantiate the configuration header FILE
1.62 paf 19306:
19307: Configuration files:
19308: $config_files
19309:
19310: Configuration headers:
19311: $config_headers
19312:
19313: Configuration commands:
19314: $config_commands
19315:
1.150 moko 19316: Report bugs to the package provider."
19317:
1.62 paf 19318: _ACEOF
1.150 moko 19319: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19320: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.62 paf 19321: ac_cs_version="\\
1.179 ! moko 19322: parser config.status 3.4.4rc
1.166 moko 19323: configured by $0, generated by GNU Autoconf 2.69,
1.150 moko 19324: with options \\"\$ac_cs_config\\"
1.62 paf 19325:
1.166 moko 19326: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 19327: This config.status script is free software; the Free Software Foundation
19328: gives unlimited permission to copy, distribute and modify it."
1.150 moko 19329:
19330: ac_pwd='$ac_pwd'
19331: srcdir='$srcdir'
19332: INSTALL='$INSTALL'
19333: MKDIR_P='$MKDIR_P'
19334: AWK='$AWK'
19335: test -n "\$AWK" || AWK=awk
1.62 paf 19336: _ACEOF
19337:
1.150 moko 19338: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19339: # The default lists apply if the user does not specify any file.
1.62 paf 19340: ac_need_defaults=:
19341: while test $# != 0
19342: do
19343: case $1 in
1.150 moko 19344: --*=?*)
19345: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19346: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 19347: ac_shift=:
19348: ;;
1.150 moko 19349: --*=)
19350: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19351: ac_optarg=
19352: ac_shift=:
19353: ;;
19354: *)
1.62 paf 19355: ac_option=$1
19356: ac_optarg=$2
19357: ac_shift=shift
19358: ;;
19359: esac
19360:
19361: case $ac_option in
19362: # Handling of the options.
19363: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19364: ac_cs_recheck=: ;;
1.150 moko 19365: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19366: $as_echo "$ac_cs_version"; exit ;;
19367: --config | --confi | --conf | --con | --co | --c )
19368: $as_echo "$ac_cs_config"; exit ;;
19369: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 19370: debug=: ;;
19371: --file | --fil | --fi | --f )
19372: $ac_shift
1.150 moko 19373: case $ac_optarg in
19374: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19375: '') as_fn_error $? "missing file argument" ;;
19376: esac
19377: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 19378: ac_need_defaults=false;;
19379: --header | --heade | --head | --hea )
19380: $ac_shift
1.150 moko 19381: case $ac_optarg in
19382: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19383: esac
19384: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 19385: ac_need_defaults=false;;
1.150 moko 19386: --he | --h)
19387: # Conflict between --help and --header
19388: as_fn_error $? "ambiguous option: \`$1'
19389: Try \`$0 --help' for more information.";;
19390: --help | --hel | -h )
19391: $as_echo "$ac_cs_usage"; exit ;;
1.62 paf 19392: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19393: | -silent | --silent | --silen | --sile | --sil | --si | --s)
19394: ac_cs_silent=: ;;
19395:
19396: # This is an error.
1.150 moko 19397: -*) as_fn_error $? "unrecognized option: \`$1'
19398: Try \`$0 --help' for more information." ;;
1.62 paf 19399:
1.150 moko 19400: *) as_fn_append ac_config_targets " $1"
19401: ac_need_defaults=false ;;
1.62 paf 19402:
19403: esac
19404: shift
19405: done
19406:
19407: ac_configure_extra_args=
19408:
19409: if $ac_cs_silent; then
19410: exec 6>/dev/null
1.150 moko 19411: ac_configure_extra_args="$ac_configure_extra_args --silent"
19412: fi
19413:
19414: _ACEOF
19415: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19416: if \$ac_cs_recheck; then
1.166 moko 19417: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 19418: shift
19419: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19420: CONFIG_SHELL='$SHELL'
19421: export CONFIG_SHELL
19422: exec "\$@"
19423: fi
19424:
19425: _ACEOF
19426: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19427: exec 5>>config.log
19428: {
19429: echo
19430: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19431: ## Running $as_me. ##
19432: _ASBOX
19433: $as_echo "$ac_log"
19434: } >&5
1.62 paf 19435:
19436: _ACEOF
1.150 moko 19437: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 19438: #
1.150 moko 19439: # INIT-COMMANDS
1.1 paf 19440: #
1.62 paf 19441: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19442:
1.128 moko 19443:
19444: # The HP-UX ksh and POSIX shell print the target directory to stdout
19445: # if CDPATH is set.
19446: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19447:
19448: sed_quote_subst='$sed_quote_subst'
19449: double_quote_subst='$double_quote_subst'
19450: delay_variable_subst='$delay_variable_subst'
19451: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19452: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19453: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19454: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19455: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 19456: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 19457: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 19458: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 19459: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19460: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19461: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19462: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19463: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19464: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19465: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19466: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19467: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19468: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19469: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19470: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19471: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19472: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19473: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19474: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19475: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19476: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19477: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19478: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19479: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19480: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19481: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19482: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19483: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19484: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19485: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19486: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19487: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19488: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19489: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19490: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19491: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19492: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19493: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19494: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19495: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19496: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19497: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19498: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19499: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19500: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19501: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19502: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19503: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19504: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19505: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19506: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19507: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19508: 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"`'
19509: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19510: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19511: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19512: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19513: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19514: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19515: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19516: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19517: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19518: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19519: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19520: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19521: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19522: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19523: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19524: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19525: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19526: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19527: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19528: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19529: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19530: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19531: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19532: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19533: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19534: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19535: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19536: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19537: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19538: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19539: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19540: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19541: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19542: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19543: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19544: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19545: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19546: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19547: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19548: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19549: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19550: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19551: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19552: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19553: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19554: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19555: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19556: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19557: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19558: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19559: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19560: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19561: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19562: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19563: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19564: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19565: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19566: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19567: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19568: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19569: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19570: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19571: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19572: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19573: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19574: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19575: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19576: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19577: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19578: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19579: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19580: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19581: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19582: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19583: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19584: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19585: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19586: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19587: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19588: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19589: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19590: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19591: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19592: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19593: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19594: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19595: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19596: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19597: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19598: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19599: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19600: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19601: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19602: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19603: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19604: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19605: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19606: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19607: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19608: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19609: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19610: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19611: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19612: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19613: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19614: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19615: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19616: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19617: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19618: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19619: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19620: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19621: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19622: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19623: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19624: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19625: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19626: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19627: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19628: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19629: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19630: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19631: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19632: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19633: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19634: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19635: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19636:
19637: LTCC='$LTCC'
19638: LTCFLAGS='$LTCFLAGS'
19639: compiler='$compiler_DEFAULT'
19640:
19641: # A function that is used when there is no print builtin or printf.
19642: func_fallback_echo ()
19643: {
19644: eval 'cat <<_LTECHO_EOF
19645: \$1
19646: _LTECHO_EOF'
19647: }
19648:
19649: # Quote evaled strings.
19650: for var in AS \
19651: DLLTOOL \
19652: OBJDUMP \
19653: SHELL \
19654: ECHO \
19655: PATH_SEPARATOR \
19656: SED \
19657: GREP \
19658: EGREP \
19659: FGREP \
19660: LD \
19661: NM \
19662: LN_S \
19663: lt_SP2NL \
19664: lt_NL2SP \
19665: reload_flag \
19666: deplibs_check_method \
19667: file_magic_cmd \
19668: file_magic_glob \
19669: want_nocaseglob \
19670: sharedlib_from_linklib_cmd \
19671: AR \
19672: AR_FLAGS \
19673: archiver_list_spec \
19674: STRIP \
19675: RANLIB \
19676: CC \
19677: CFLAGS \
19678: compiler \
19679: lt_cv_sys_global_symbol_pipe \
19680: lt_cv_sys_global_symbol_to_cdecl \
19681: lt_cv_sys_global_symbol_to_c_name_address \
19682: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19683: nm_file_list_spec \
19684: lt_prog_compiler_no_builtin_flag \
19685: lt_prog_compiler_pic \
19686: lt_prog_compiler_wl \
19687: lt_prog_compiler_static \
19688: lt_cv_prog_compiler_c_o \
19689: need_locks \
19690: MANIFEST_TOOL \
19691: DSYMUTIL \
19692: NMEDIT \
19693: LIPO \
19694: OTOOL \
19695: OTOOL64 \
19696: shrext_cmds \
19697: export_dynamic_flag_spec \
19698: whole_archive_flag_spec \
19699: compiler_needs_object \
19700: with_gnu_ld \
19701: allow_undefined_flag \
19702: no_undefined_flag \
19703: hardcode_libdir_flag_spec \
19704: hardcode_libdir_separator \
19705: exclude_expsyms \
19706: include_expsyms \
19707: file_list_spec \
19708: variables_saved_for_relink \
19709: libname_spec \
19710: library_names_spec \
19711: soname_spec \
19712: install_override_mode \
19713: finish_eval \
19714: old_striplib \
19715: striplib \
19716: compiler_lib_search_dirs \
19717: predep_objects \
19718: postdep_objects \
19719: predeps \
19720: postdeps \
19721: compiler_lib_search_path \
19722: LD_CXX \
19723: reload_flag_CXX \
19724: compiler_CXX \
19725: lt_prog_compiler_no_builtin_flag_CXX \
19726: lt_prog_compiler_pic_CXX \
19727: lt_prog_compiler_wl_CXX \
19728: lt_prog_compiler_static_CXX \
19729: lt_cv_prog_compiler_c_o_CXX \
19730: export_dynamic_flag_spec_CXX \
19731: whole_archive_flag_spec_CXX \
19732: compiler_needs_object_CXX \
19733: with_gnu_ld_CXX \
19734: allow_undefined_flag_CXX \
19735: no_undefined_flag_CXX \
19736: hardcode_libdir_flag_spec_CXX \
19737: hardcode_libdir_separator_CXX \
19738: exclude_expsyms_CXX \
19739: include_expsyms_CXX \
19740: file_list_spec_CXX \
19741: compiler_lib_search_dirs_CXX \
19742: predep_objects_CXX \
19743: postdep_objects_CXX \
19744: predeps_CXX \
19745: postdeps_CXX \
19746: compiler_lib_search_path_CXX; do
19747: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19748: *[\\\\\\\`\\"\\\$]*)
19749: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19750: ;;
19751: *)
19752: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19753: ;;
19754: esac
19755: done
19756:
19757: # Double-quote double-evaled strings.
19758: for var in reload_cmds \
19759: old_postinstall_cmds \
19760: old_postuninstall_cmds \
19761: old_archive_cmds \
19762: extract_expsyms_cmds \
19763: old_archive_from_new_cmds \
19764: old_archive_from_expsyms_cmds \
19765: archive_cmds \
19766: archive_expsym_cmds \
19767: module_cmds \
19768: module_expsym_cmds \
19769: export_symbols_cmds \
19770: prelink_cmds \
19771: postlink_cmds \
19772: postinstall_cmds \
19773: postuninstall_cmds \
19774: finish_cmds \
19775: sys_lib_search_path_spec \
19776: sys_lib_dlsearch_path_spec \
19777: reload_cmds_CXX \
19778: old_archive_cmds_CXX \
19779: old_archive_from_new_cmds_CXX \
19780: old_archive_from_expsyms_cmds_CXX \
19781: archive_cmds_CXX \
19782: archive_expsym_cmds_CXX \
19783: module_cmds_CXX \
19784: module_expsym_cmds_CXX \
19785: export_symbols_cmds_CXX \
19786: prelink_cmds_CXX \
19787: postlink_cmds_CXX; do
19788: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19789: *[\\\\\\\`\\"\\\$]*)
19790: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19791: ;;
19792: *)
19793: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19794: ;;
19795: esac
19796: done
19797:
19798: ac_aux_dir='$ac_aux_dir'
19799: xsi_shell='$xsi_shell'
19800: lt_shell_append='$lt_shell_append'
19801:
19802: # See if we are running on zsh, and set the options which allow our
19803: # commands through without removal of \ escapes INIT.
19804: if test -n "\${ZSH_VERSION+set}" ; then
19805: setopt NO_GLOB_SUBST
19806: fi
19807:
19808:
19809: PACKAGE='$PACKAGE'
19810: VERSION='$VERSION'
19811: TIMESTAMP='$TIMESTAMP'
19812: RM='$RM'
19813: ofile='$ofile'
19814:
19815:
19816:
19817:
19818:
19819:
1.62 paf 19820: _ACEOF
19821:
1.150 moko 19822: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19823:
1.150 moko 19824: # Handling of arguments.
1.62 paf 19825: for ac_config_target in $ac_config_targets
1.1 paf 19826: do
1.150 moko 19827: case $ac_config_target in
19828: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19829: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19830: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
19831: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19832: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19833: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
19834: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
19835: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
19836: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
19837: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
19838: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19839: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
19840: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
19841: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
19842: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
19843: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
19844: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
19845: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
19846: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
19847: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
19848: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
19849: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
19850: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 19851: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
19852: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 19853: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
19854: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
19855: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
19856: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
19857: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
19858: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
19859: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
19860: "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
19861: "bin/auto.p.dist") CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
19862:
19863: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 paf 19864: esac
19865: done
19866:
1.150 moko 19867:
1.62 paf 19868: # If the user did not use the arguments to specify the items to instantiate,
19869: # then the envvar interface is used. Set only those that are not.
19870: # We use the long form for the default assignment because of an extremely
19871: # bizarre bug on SunOS 4.1.3.
19872: if $ac_need_defaults; then
19873: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19874: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19875: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19876: fi
19877:
19878: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 19879: # simply because there is no reason against having it here, and in addition,
1.62 paf 19880: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 19881: # Hook for its removal unless debugging.
19882: # Note that there is a small window in which the directory will not be cleaned:
19883: # after its creation but before its name has been assigned to `$tmp'.
1.62 paf 19884: $debug ||
19885: {
1.150 moko 19886: tmp= ac_tmp=
19887: trap 'exit_status=$?
19888: : "${ac_tmp:=$tmp}"
19889: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19890: ' 0
19891: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 19892: }
19893: # Create a (secure) tmp directory for tmp files.
19894:
19895: {
1.150 moko 19896: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19897: test -d "$tmp"
1.62 paf 19898: } ||
19899: {
1.150 moko 19900: tmp=./conf$$-$RANDOM
19901: (umask 077 && mkdir "$tmp")
19902: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19903: ac_tmp=$tmp
19904:
19905: # Set up the scripts for CONFIG_FILES section.
19906: # No need to generate them if there are no CONFIG_FILES.
19907: # This happens for instance with `./config.status config.h'.
19908: if test -n "$CONFIG_FILES"; then
19909:
19910:
19911: ac_cr=`echo X | tr X '\015'`
19912: # On cygwin, bash can eat \r inside `` if the user requested igncr.
19913: # But we know of no other shell where ac_cr would be empty at this
19914: # point, so we can use a bashism as a fallback.
19915: if test "x$ac_cr" = x; then
19916: eval ac_cr=\$\'\\r\'
19917: fi
19918: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19919: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19920: ac_cs_awk_cr='\\r'
19921: else
19922: ac_cs_awk_cr=$ac_cr
19923: fi
19924:
19925: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19926: _ACEOF
19927:
19928:
1.62 paf 19929: {
1.150 moko 19930: echo "cat >conf$$subs.awk <<_ACEOF" &&
19931: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19932: echo "_ACEOF"
19933: } >conf$$subs.sh ||
19934: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19935: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19936: ac_delim='%!_!# '
19937: for ac_last_try in false false false false false :; do
19938: . ./conf$$subs.sh ||
19939: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19940:
19941: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19942: if test $ac_delim_n = $ac_delim_num; then
19943: break
19944: elif $ac_last_try; then
19945: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19946: else
19947: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19948: fi
19949: done
19950: rm -f conf$$subs.sh
19951:
19952: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19953: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19954: _ACEOF
19955: sed -n '
19956: h
19957: s/^/S["/; s/!.*/"]=/
19958: p
19959: g
19960: s/^[^!]*!//
19961: :repl
19962: t repl
19963: s/'"$ac_delim"'$//
19964: t delim
19965: :nl
19966: h
19967: s/\(.\{148\}\)..*/\1/
19968: t more1
19969: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19970: p
19971: n
19972: b repl
19973: :more1
19974: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19975: p
19976: g
19977: s/.\{148\}//
19978: t nl
19979: :delim
19980: h
19981: s/\(.\{148\}\)..*/\1/
19982: t more2
19983: s/["\\]/\\&/g; s/^/"/; s/$/"/
19984: p
19985: b
19986: :more2
19987: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19988: p
19989: g
19990: s/.\{148\}//
19991: t delim
19992: ' <conf$$subs.awk | sed '
19993: /^[^""]/{
19994: N
19995: s/\n//
19996: }
19997: ' >>$CONFIG_STATUS || ac_write_fail=1
19998: rm -f conf$$subs.awk
19999: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20000: _ACAWK
20001: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20002: for (key in S) S_is_set[key] = 1
20003: FS = ""
20004:
20005: }
20006: {
20007: line = $ 0
20008: nfields = split(line, field, "@")
20009: substed = 0
20010: len = length(field[1])
20011: for (i = 2; i < nfields; i++) {
20012: key = field[i]
20013: keylen = length(key)
20014: if (S_is_set[key]) {
20015: value = S[key]
20016: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20017: len += length(value) + length(field[++i])
20018: substed = 1
20019: } else
20020: len += 1 + keylen
20021: }
20022:
20023: print line
1.62 paf 20024: }
20025:
1.150 moko 20026: _ACAWK
20027: _ACEOF
20028: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20029: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20030: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20031: else
20032: cat
20033: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20034: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 20035: _ACEOF
1.1 paf 20036:
1.150 moko 20037: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20038: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20039: # trailing colons and then remove the whole line if VPATH becomes empty
20040: # (actually we leave an empty line to preserve line numbers).
20041: if test "x$srcdir" = x.; then
20042: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20043: h
20044: s///
20045: s/^/:/
20046: s/[ ]*$/:/
20047: s/:\$(srcdir):/:/g
20048: s/:\${srcdir}:/:/g
20049: s/:@srcdir@:/:/g
20050: s/^:*//
20051: s/:*$//
20052: x
20053: s/\(=[ ]*\).*/\1/
20054: G
20055: s/\n//
20056: s/^[^=]*=[ ]*$//
20057: }'
20058: fi
1.62 paf 20059:
1.150 moko 20060: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20061: fi # test -n "$CONFIG_FILES"
1.1 paf 20062:
1.150 moko 20063: # Set up the scripts for CONFIG_HEADERS section.
20064: # No need to generate them if there are no CONFIG_HEADERS.
20065: # This happens for instance with `./config.status Makefile'.
20066: if test -n "$CONFIG_HEADERS"; then
20067: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20068: BEGIN {
20069: _ACEOF
20070:
20071: # Transform confdefs.h into an awk script `defines.awk', embedded as
20072: # here-document in config.status, that substitutes the proper values into
20073: # config.h.in to produce config.h.
20074:
20075: # Create a delimiter string that does not exist in confdefs.h, to ease
20076: # handling of long lines.
20077: ac_delim='%!_!# '
20078: for ac_last_try in false false :; do
20079: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20080: if test -z "$ac_tt"; then
20081: break
20082: elif $ac_last_try; then
20083: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20084: else
20085: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 20086: fi
1.150 moko 20087: done
1.1 paf 20088:
1.150 moko 20089: # For the awk script, D is an array of macro values keyed by name,
20090: # likewise P contains macro parameters if any. Preserve backslash
20091: # newline sequences.
20092:
20093: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20094: sed -n '
20095: s/.\{148\}/&'"$ac_delim"'/g
20096: t rset
20097: :rset
20098: s/^[ ]*#[ ]*define[ ][ ]*/ /
20099: t def
20100: d
20101: :def
20102: s/\\$//
20103: t bsnl
20104: s/["\\]/\\&/g
20105: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20106: D["\1"]=" \3"/p
20107: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20108: d
20109: :bsnl
20110: s/["\\]/\\&/g
20111: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20112: D["\1"]=" \3\\\\\\n"\\/p
20113: t cont
20114: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20115: t cont
20116: d
20117: :cont
20118: n
20119: s/.\{148\}/&'"$ac_delim"'/g
20120: t clear
20121: :clear
20122: s/\\$//
20123: t bsnlc
20124: s/["\\]/\\&/g; s/^/"/; s/$/"/p
20125: d
20126: :bsnlc
20127: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20128: b cont
20129: ' <confdefs.h | sed '
20130: s/'"$ac_delim"'/"\\\
20131: "/g' >>$CONFIG_STATUS || ac_write_fail=1
20132:
20133: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20134: for (key in D) D_is_set[key] = 1
20135: FS = ""
20136: }
20137: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20138: line = \$ 0
20139: split(line, arg, " ")
20140: if (arg[1] == "#") {
20141: defundef = arg[2]
20142: mac1 = arg[3]
20143: } else {
20144: defundef = substr(arg[1], 2)
20145: mac1 = arg[2]
20146: }
20147: split(mac1, mac2, "(") #)
20148: macro = mac2[1]
20149: prefix = substr(line, 1, index(line, defundef) - 1)
20150: if (D_is_set[macro]) {
20151: # Preserve the white space surrounding the "#".
20152: print prefix "define", macro P[macro] D[macro]
20153: next
20154: } else {
20155: # Replace #undef with comments. This is necessary, for example,
20156: # in the case of _POSIX_SOURCE, which is predefined and required
20157: # on some systems where configure will not decide to define it.
20158: if (defundef == "undef") {
20159: print "/*", prefix defundef, macro, "*/"
20160: next
20161: }
20162: }
20163: }
20164: { print }
20165: _ACAWK
1.62 paf 20166: _ACEOF
1.150 moko 20167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20168: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20169: fi # test -n "$CONFIG_HEADERS"
20170:
20171:
20172: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20173: shift
20174: for ac_tag
20175: do
20176: case $ac_tag in
20177: :[FHLC]) ac_mode=$ac_tag; continue;;
20178: esac
20179: case $ac_mode$ac_tag in
20180: :[FHL]*:*);;
20181: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20182: :[FH]-) ac_tag=-:-;;
20183: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20184: esac
20185: ac_save_IFS=$IFS
20186: IFS=:
20187: set x $ac_tag
20188: IFS=$ac_save_IFS
20189: shift
20190: ac_file=$1
20191: shift
20192:
20193: case $ac_mode in
20194: :L) ac_source=$1;;
20195: :[FH])
20196: ac_file_inputs=
20197: for ac_f
20198: do
20199: case $ac_f in
20200: -) ac_f="$ac_tmp/stdin";;
20201: *) # Look for the file first in the build tree, then in the source tree
20202: # (if the path is not absolute). The absolute path cannot be DOS-style,
20203: # because $ac_f cannot contain `:'.
20204: test -f "$ac_f" ||
20205: case $ac_f in
20206: [\\/$]*) false;;
20207: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20208: esac ||
20209: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20210: esac
20211: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20212: as_fn_append ac_file_inputs " '$ac_f'"
20213: done
20214:
20215: # Let's still pretend it is `configure' which instantiates (i.e., don't
20216: # use $as_me), people would be surprised to read:
20217: # /* config.h. Generated by config.status. */
20218: configure_input='Generated from '`
20219: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20220: `' by configure.'
20221: if test x"$ac_file" != x-; then
20222: configure_input="$ac_file. $configure_input"
20223: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20224: $as_echo "$as_me: creating $ac_file" >&6;}
20225: fi
20226: # Neutralize special characters interpreted by sed in replacement strings.
20227: case $configure_input in #(
20228: *\&* | *\|* | *\\* )
20229: ac_sed_conf_input=`$as_echo "$configure_input" |
20230: sed 's/[\\\\&|]/\\\\&/g'`;; #(
20231: *) ac_sed_conf_input=$configure_input;;
20232: esac
20233:
20234: case $ac_tag in
20235: *:-:* | *:-) cat >"$ac_tmp/stdin" \
20236: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20237: esac
20238: ;;
1.1 paf 20239: esac
20240:
1.150 moko 20241: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 20242: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20243: X"$ac_file" : 'X\(//\)[^/]' \| \
20244: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 20245: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20246: $as_echo X"$ac_file" |
20247: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20248: s//\1/
20249: q
20250: }
20251: /^X\(\/\/\)[^/].*/{
20252: s//\1/
20253: q
20254: }
20255: /^X\(\/\/\)$/{
20256: s//\1/
20257: q
20258: }
20259: /^X\(\/\).*/{
20260: s//\1/
20261: q
20262: }
20263: s/.*/./; q'`
20264: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 20265: ac_builddir=.
20266:
1.150 moko 20267: case "$ac_dir" in
20268: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20269: *)
20270: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20271: # A ".." for each directory in $ac_dir_suffix.
20272: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20273: case $ac_top_builddir_sub in
20274: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20275: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20276: esac ;;
20277: esac
20278: ac_abs_top_builddir=$ac_pwd
20279: ac_abs_builddir=$ac_pwd$ac_dir_suffix
20280: # for backward compatibility:
20281: ac_top_builddir=$ac_top_build_prefix
1.62 paf 20282:
20283: case $srcdir in
1.150 moko 20284: .) # We are building in place.
1.62 paf 20285: ac_srcdir=.
1.150 moko 20286: ac_top_srcdir=$ac_top_builddir_sub
20287: ac_abs_top_srcdir=$ac_pwd ;;
20288: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 20289: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 20290: ac_top_srcdir=$srcdir
20291: ac_abs_top_srcdir=$srcdir ;;
20292: *) # Relative name.
20293: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20294: ac_top_srcdir=$ac_top_build_prefix$srcdir
20295: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 20296: esac
1.150 moko 20297: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 20298:
1.62 paf 20299:
1.150 moko 20300: case $ac_mode in
20301: :F)
20302: #
20303: # CONFIG_FILE
20304: #
1.1 paf 20305:
1.62 paf 20306: case $INSTALL in
20307: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 20308: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 20309: esac
1.150 moko 20310: ac_MKDIR_P=$MKDIR_P
20311: case $MKDIR_P in
20312: [\\/$]* | ?:[\\/]* ) ;;
20313: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20314: esac
20315: _ACEOF
1.1 paf 20316:
1.150 moko 20317: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20318: # If the template does not know about datarootdir, expand it.
20319: # FIXME: This hack should be removed a few years after 2.60.
20320: ac_datarootdir_hack=; ac_datarootdir_seen=
20321: ac_sed_dataroot='
20322: /datarootdir/ {
20323: p
20324: q
20325: }
20326: /@datadir@/p
20327: /@docdir@/p
20328: /@infodir@/p
20329: /@localedir@/p
20330: /@mandir@/p'
20331: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20332: *datarootdir*) ac_datarootdir_seen=yes;;
20333: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20334: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20335: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20336: _ACEOF
20337: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20338: ac_datarootdir_hack='
20339: s&@datadir@&$datadir&g
20340: s&@docdir@&$docdir&g
20341: s&@infodir@&$infodir&g
20342: s&@localedir@&$localedir&g
20343: s&@mandir@&$mandir&g
20344: s&\\\${datarootdir}&$datarootdir&g' ;;
20345: esac
20346: _ACEOF
1.62 paf 20347:
1.150 moko 20348: # Neutralize VPATH when `$srcdir' = `.'.
20349: # Shell code in configure.ac might set extrasub.
20350: # FIXME: do we really want to maintain this feature?
20351: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20352: ac_sed_extra="$ac_vpsub
1.62 paf 20353: $extrasub
20354: _ACEOF
1.150 moko 20355: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20356: :t
20357: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 20358: s|@configure_input@|$ac_sed_conf_input|;t t
20359: s&@top_builddir@&$ac_top_builddir_sub&;t t
20360: s&@top_build_prefix@&$ac_top_build_prefix&;t t
20361: s&@srcdir@&$ac_srcdir&;t t
20362: s&@abs_srcdir@&$ac_abs_srcdir&;t t
20363: s&@top_srcdir@&$ac_top_srcdir&;t t
20364: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20365: s&@builddir@&$ac_builddir&;t t
20366: s&@abs_builddir@&$ac_abs_builddir&;t t
20367: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20368: s&@INSTALL@&$ac_INSTALL&;t t
20369: s&@MKDIR_P@&$ac_MKDIR_P&;t t
20370: $ac_datarootdir_hack
20371: "
20372: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20373: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20374:
20375: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20376: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20377: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20378: "$ac_tmp/out"`; test -z "$ac_out"; } &&
20379: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20380: which seems to be undefined. Please make sure it is defined" >&5
20381: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20382: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 20383:
1.150 moko 20384: rm -f "$ac_tmp/stdin"
1.62 paf 20385: case $ac_file in
1.150 moko 20386: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20387: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20388: esac \
20389: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20390: ;;
20391: :H)
20392: #
20393: # CONFIG_HEADER
20394: #
1.62 paf 20395: if test x"$ac_file" != x-; then
1.150 moko 20396: {
20397: $as_echo "/* $configure_input */" \
20398: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20399: } >"$ac_tmp/config.h" \
20400: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20401: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20402: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20403: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 20404: else
1.150 moko 20405: rm -f "$ac_file"
20406: mv "$ac_tmp/config.h" "$ac_file" \
20407: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 20408: fi
20409: else
1.150 moko 20410: $as_echo "/* $configure_input */" \
20411: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20412: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 20413: fi
1.150 moko 20414: # Compute "$ac_file"'s index in $config_headers.
20415: _am_arg="$ac_file"
1.86 paf 20416: _am_stamp_count=1
20417: for _am_header in $config_headers :; do
20418: case $_am_header in
1.150 moko 20419: $_am_arg | $_am_arg:* )
1.86 paf 20420: break ;;
20421: * )
20422: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20423: esac
20424: done
1.150 moko 20425: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20426: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20427: X"$_am_arg" : 'X\(//\)[^/]' \| \
20428: X"$_am_arg" : 'X\(//\)$' \| \
20429: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20430: $as_echo X"$_am_arg" |
20431: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20432: s//\1/
20433: q
20434: }
20435: /^X\(\/\/\)[^/].*/{
20436: s//\1/
20437: q
20438: }
20439: /^X\(\/\/\)$/{
20440: s//\1/
20441: q
20442: }
20443: /^X\(\/\).*/{
20444: s//\1/
20445: q
20446: }
20447: s/.*/./; q'`/stamp-h$_am_stamp_count
20448: ;;
1.62 paf 20449:
1.150 moko 20450: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20451: $as_echo "$as_me: executing $ac_file commands" >&6;}
20452: ;;
20453: esac
1.86 paf 20454:
1.62 paf 20455:
1.150 moko 20456: case $ac_file$ac_mode in
20457: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20458: # Autoconf 2.62 quotes --file arguments for eval, but not when files
20459: # are listed without --file. Let's play safe and only enable the eval
20460: # if we detect the quoting.
20461: case $CONFIG_FILES in
20462: *\'*) eval set x "$CONFIG_FILES" ;;
20463: *) set x $CONFIG_FILES ;;
20464: esac
20465: shift
20466: for mf
20467: do
20468: # Strip MF so we end up with the name of the file.
20469: mf=`echo "$mf" | sed -e 's/:.*$//'`
20470: # Check whether this is an Automake generated Makefile or not.
20471: # We used to match only the files named `Makefile.in', but
20472: # some people rename them; so instead we look at the file content.
20473: # Grep'ing the first line is not enough: some people post-process
20474: # each Makefile.in and add a new line on top of each file to say so.
20475: # Grep'ing the whole file is not good either: AIX grep has a line
20476: # limit of 2048, but all sed's we know have understand at least 4000.
20477: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20478: dirpart=`$as_dirname -- "$mf" ||
1.62 paf 20479: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20480: X"$mf" : 'X\(//\)[^/]' \| \
20481: X"$mf" : 'X\(//\)$' \| \
1.150 moko 20482: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20483: $as_echo X"$mf" |
20484: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20485: s//\1/
20486: q
20487: }
20488: /^X\(\/\/\)[^/].*/{
20489: s//\1/
20490: q
20491: }
20492: /^X\(\/\/\)$/{
20493: s//\1/
20494: q
20495: }
20496: /^X\(\/\).*/{
20497: s//\1/
20498: q
20499: }
20500: s/.*/./; q'`
20501: else
20502: continue
20503: fi
20504: # Extract the definition of DEPDIR, am__include, and am__quote
20505: # from the Makefile without running `make'.
20506: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20507: test -z "$DEPDIR" && continue
20508: am__include=`sed -n 's/^am__include = //p' < "$mf"`
20509: test -z "am__include" && continue
20510: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20511: # When using ansi2knr, U may be empty or an underscore; expand it
20512: U=`sed -n 's/^U = //p' < "$mf"`
20513: # Find all dependency output files, they are included files with
20514: # $(DEPDIR) in their names. We invoke sed twice because it is the
20515: # simplest approach to changing $(DEPDIR) to its actual value in the
20516: # expansion.
20517: for file in `sed -n "
20518: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20519: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20520: # Make sure the directory exists.
20521: test -f "$dirpart/$file" && continue
20522: fdir=`$as_dirname -- "$file" ||
1.62 paf 20523: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20524: X"$file" : 'X\(//\)[^/]' \| \
20525: X"$file" : 'X\(//\)$' \| \
1.150 moko 20526: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20527: $as_echo X"$file" |
20528: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20529: s//\1/
20530: q
20531: }
20532: /^X\(\/\/\)[^/].*/{
20533: s//\1/
20534: q
20535: }
20536: /^X\(\/\/\)$/{
20537: s//\1/
20538: q
20539: }
20540: /^X\(\/\).*/{
20541: s//\1/
20542: q
20543: }
20544: s/.*/./; q'`
20545: as_dir=$dirpart/$fdir; as_fn_mkdir_p
20546: # echo "creating $dirpart/$file"
20547: echo '# dummy' > "$dirpart/$file"
1.62 paf 20548: done
20549: done
1.150 moko 20550: }
1.62 paf 20551: ;;
1.150 moko 20552: "libtool":C)
1.128 moko 20553:
20554: # See if we are running on zsh, and set the options which allow our
20555: # commands through without removal of \ escapes.
20556: if test -n "${ZSH_VERSION+set}" ; then
20557: setopt NO_GLOB_SUBST
20558: fi
20559:
20560: cfgfile="${ofile}T"
20561: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20562: $RM "$cfgfile"
20563:
20564: cat <<_LT_EOF >> "$cfgfile"
20565: #! $SHELL
20566:
20567: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20568: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20569: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20570: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20571: #
20572: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20573: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20574: # Foundation, Inc.
20575: # Written by Gordon Matzigkeit, 1996
20576: #
20577: # This file is part of GNU Libtool.
20578: #
20579: # GNU Libtool is free software; you can redistribute it and/or
20580: # modify it under the terms of the GNU General Public License as
20581: # published by the Free Software Foundation; either version 2 of
20582: # the License, or (at your option) any later version.
20583: #
20584: # As a special exception to the GNU General Public License,
20585: # if you distribute this file as part of a program or library that
20586: # is built using GNU Libtool, you may include this file under the
20587: # same distribution terms that you use for the rest of that program.
20588: #
20589: # GNU Libtool is distributed in the hope that it will be useful,
20590: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20591: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20592: # GNU General Public License for more details.
20593: #
20594: # You should have received a copy of the GNU General Public License
20595: # along with GNU Libtool; see the file COPYING. If not, a copy
20596: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20597: # obtained by writing to the Free Software Foundation, Inc.,
20598: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20599:
20600:
20601: # The names of the tagged configurations supported by this script.
20602: available_tags="CXX "
20603:
20604: # ### BEGIN LIBTOOL CONFIG
20605:
20606: # Which release of libtool.m4 was used?
20607: macro_version=$macro_version
20608: macro_revision=$macro_revision
20609:
20610: # Assembler program.
20611: AS=$lt_AS
20612:
20613: # DLL creation program.
20614: DLLTOOL=$lt_DLLTOOL
20615:
20616: # Object dumper program.
20617: OBJDUMP=$lt_OBJDUMP
20618:
1.145 moko 20619: # What type of objects to build.
20620: pic_mode=$pic_mode
20621:
1.128 moko 20622: # Whether or not to build shared libraries.
20623: build_libtool_libs=$enable_shared
20624:
1.138 moko 20625: # Whether or not to build static libraries.
20626: build_old_libs=$enable_static
20627:
1.128 moko 20628: # Whether or not to optimize for fast installation.
20629: fast_install=$enable_fast_install
20630:
20631: # Shell to use when invoking shell scripts.
20632: SHELL=$lt_SHELL
20633:
20634: # An echo program that protects backslashes.
20635: ECHO=$lt_ECHO
20636:
20637: # The PATH separator for the build system.
20638: PATH_SEPARATOR=$lt_PATH_SEPARATOR
20639:
20640: # The host system.
20641: host_alias=$host_alias
20642: host=$host
20643: host_os=$host_os
20644:
20645: # The build system.
20646: build_alias=$build_alias
20647: build=$build
20648: build_os=$build_os
20649:
20650: # A sed program that does not truncate output.
20651: SED=$lt_SED
20652:
20653: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20654: Xsed="\$SED -e 1s/^X//"
20655:
20656: # A grep program that handles long lines.
20657: GREP=$lt_GREP
20658:
20659: # An ERE matcher.
20660: EGREP=$lt_EGREP
20661:
20662: # A literal string matcher.
20663: FGREP=$lt_FGREP
20664:
20665: # A BSD- or MS-compatible name lister.
20666: NM=$lt_NM
20667:
20668: # Whether we need soft or hard links.
20669: LN_S=$lt_LN_S
20670:
20671: # What is the maximum length of a command?
20672: max_cmd_len=$max_cmd_len
20673:
20674: # Object file suffix (normally "o").
20675: objext=$ac_objext
20676:
20677: # Executable file suffix (normally "").
20678: exeext=$exeext
20679:
20680: # whether the shell understands "unset".
20681: lt_unset=$lt_unset
20682:
20683: # turn spaces into newlines.
20684: SP2NL=$lt_lt_SP2NL
20685:
20686: # turn newlines into spaces.
20687: NL2SP=$lt_lt_NL2SP
20688:
20689: # convert \$build file names to \$host format.
20690: to_host_file_cmd=$lt_cv_to_host_file_cmd
20691:
20692: # convert \$build files to toolchain format.
20693: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20694:
20695: # Method to check whether dependent libraries are shared objects.
20696: deplibs_check_method=$lt_deplibs_check_method
20697:
20698: # Command to use when deplibs_check_method = "file_magic".
20699: file_magic_cmd=$lt_file_magic_cmd
20700:
20701: # How to find potential files when deplibs_check_method = "file_magic".
20702: file_magic_glob=$lt_file_magic_glob
20703:
20704: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20705: want_nocaseglob=$lt_want_nocaseglob
20706:
20707: # Command to associate shared and link libraries.
20708: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20709:
20710: # The archiver.
20711: AR=$lt_AR
20712:
20713: # Flags to create an archive.
20714: AR_FLAGS=$lt_AR_FLAGS
20715:
20716: # How to feed a file listing to the archiver.
20717: archiver_list_spec=$lt_archiver_list_spec
20718:
20719: # A symbol stripping program.
20720: STRIP=$lt_STRIP
20721:
20722: # Commands used to install an old-style archive.
20723: RANLIB=$lt_RANLIB
20724: old_postinstall_cmds=$lt_old_postinstall_cmds
20725: old_postuninstall_cmds=$lt_old_postuninstall_cmds
20726:
20727: # Whether to use a lock for old archive extraction.
20728: lock_old_archive_extraction=$lock_old_archive_extraction
20729:
20730: # A C compiler.
20731: LTCC=$lt_CC
20732:
20733: # LTCC compiler flags.
20734: LTCFLAGS=$lt_CFLAGS
20735:
20736: # Take the output of nm and produce a listing of raw symbols and C names.
20737: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20738:
20739: # Transform the output of nm in a proper C declaration.
20740: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20741:
20742: # Transform the output of nm in a C name address pair.
20743: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20744:
20745: # Transform the output of nm in a C name address pair when lib prefix is needed.
20746: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20747:
20748: # Specify filename containing input files for \$NM.
20749: nm_file_list_spec=$lt_nm_file_list_spec
20750:
20751: # The root where to search for dependent libraries,and in which our libraries should be installed.
20752: lt_sysroot=$lt_sysroot
20753:
20754: # The name of the directory that contains temporary libtool files.
20755: objdir=$objdir
20756:
20757: # Used to examine libraries when file_magic_cmd begins with "file".
20758: MAGIC_CMD=$MAGIC_CMD
20759:
20760: # Must we lock files when doing compilation?
20761: need_locks=$lt_need_locks
20762:
20763: # Manifest tool.
20764: MANIFEST_TOOL=$lt_MANIFEST_TOOL
20765:
20766: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20767: DSYMUTIL=$lt_DSYMUTIL
20768:
20769: # Tool to change global to local symbols on Mac OS X.
20770: NMEDIT=$lt_NMEDIT
20771:
20772: # Tool to manipulate fat objects and archives on Mac OS X.
20773: LIPO=$lt_LIPO
20774:
20775: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20776: OTOOL=$lt_OTOOL
20777:
20778: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20779: OTOOL64=$lt_OTOOL64
20780:
20781: # Old archive suffix (normally "a").
20782: libext=$libext
20783:
20784: # Shared library suffix (normally ".so").
20785: shrext_cmds=$lt_shrext_cmds
20786:
20787: # The commands to extract the exported symbol list from a shared archive.
20788: extract_expsyms_cmds=$lt_extract_expsyms_cmds
20789:
20790: # Variables whose values should be saved in libtool wrapper scripts and
20791: # restored at link time.
20792: variables_saved_for_relink=$lt_variables_saved_for_relink
20793:
20794: # Do we need the "lib" prefix for modules?
20795: need_lib_prefix=$need_lib_prefix
20796:
20797: # Do we need a version for libraries?
20798: need_version=$need_version
20799:
20800: # Library versioning type.
20801: version_type=$version_type
20802:
20803: # Shared library runtime path variable.
20804: runpath_var=$runpath_var
20805:
20806: # Shared library path variable.
20807: shlibpath_var=$shlibpath_var
20808:
20809: # Is shlibpath searched before the hard-coded library search path?
20810: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20811:
20812: # Format of library name prefix.
20813: libname_spec=$lt_libname_spec
20814:
20815: # List of archive names. First name is the real one, the rest are links.
20816: # The last name is the one that the linker finds with -lNAME
20817: library_names_spec=$lt_library_names_spec
20818:
20819: # The coded name of the library, if different from the real name.
20820: soname_spec=$lt_soname_spec
20821:
20822: # Permission mode override for installation of shared libraries.
20823: install_override_mode=$lt_install_override_mode
20824:
20825: # Command to use after installation of a shared archive.
20826: postinstall_cmds=$lt_postinstall_cmds
20827:
20828: # Command to use after uninstallation of a shared archive.
20829: postuninstall_cmds=$lt_postuninstall_cmds
20830:
20831: # Commands used to finish a libtool library installation in a directory.
20832: finish_cmds=$lt_finish_cmds
20833:
20834: # As "finish_cmds", except a single script fragment to be evaled but
20835: # not shown.
20836: finish_eval=$lt_finish_eval
20837:
20838: # Whether we should hardcode library paths into libraries.
20839: hardcode_into_libs=$hardcode_into_libs
20840:
20841: # Compile-time system search path for libraries.
20842: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20843:
20844: # Run-time system search path for libraries.
20845: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20846:
20847: # Whether dlopen is supported.
20848: dlopen_support=$enable_dlopen
20849:
20850: # Whether dlopen of programs is supported.
20851: dlopen_self=$enable_dlopen_self
20852:
20853: # Whether dlopen of statically linked programs is supported.
20854: dlopen_self_static=$enable_dlopen_self_static
20855:
20856: # Commands to strip libraries.
20857: old_striplib=$lt_old_striplib
20858: striplib=$lt_striplib
20859:
20860:
20861: # The linker used to build libraries.
20862: LD=$lt_LD
20863:
20864: # How to create reloadable object files.
20865: reload_flag=$lt_reload_flag
20866: reload_cmds=$lt_reload_cmds
20867:
20868: # Commands used to build an old-style archive.
20869: old_archive_cmds=$lt_old_archive_cmds
20870:
20871: # A language specific compiler.
20872: CC=$lt_compiler
20873:
20874: # Is the compiler the GNU compiler?
20875: with_gcc=$GCC
20876:
20877: # Compiler flag to turn off builtin functions.
20878: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20879:
20880: # Additional compiler flags for building library objects.
20881: pic_flag=$lt_lt_prog_compiler_pic
20882:
20883: # How to pass a linker flag through the compiler.
20884: wl=$lt_lt_prog_compiler_wl
20885:
20886: # Compiler flag to prevent dynamic linking.
20887: link_static_flag=$lt_lt_prog_compiler_static
20888:
20889: # Does compiler simultaneously support -c and -o options?
20890: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20891:
20892: # Whether or not to add -lc for building shared libraries.
20893: build_libtool_need_lc=$archive_cmds_need_lc
20894:
20895: # Whether or not to disallow shared libs when runtime libs are static.
20896: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20897:
20898: # Compiler flag to allow reflexive dlopens.
20899: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20900:
20901: # Compiler flag to generate shared objects directly from archives.
20902: whole_archive_flag_spec=$lt_whole_archive_flag_spec
20903:
20904: # Whether the compiler copes with passing no objects directly.
20905: compiler_needs_object=$lt_compiler_needs_object
20906:
20907: # Create an old-style archive from a shared archive.
20908: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20909:
20910: # Create a temporary old-style archive to link instead of a shared archive.
20911: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20912:
20913: # Commands used to build a shared archive.
20914: archive_cmds=$lt_archive_cmds
20915: archive_expsym_cmds=$lt_archive_expsym_cmds
20916:
20917: # Commands used to build a loadable module if different from building
20918: # a shared archive.
20919: module_cmds=$lt_module_cmds
20920: module_expsym_cmds=$lt_module_expsym_cmds
20921:
20922: # Whether we are building with GNU ld or not.
20923: with_gnu_ld=$lt_with_gnu_ld
20924:
20925: # Flag that allows shared libraries with undefined symbols to be built.
20926: allow_undefined_flag=$lt_allow_undefined_flag
20927:
20928: # Flag that enforces no undefined symbols.
20929: no_undefined_flag=$lt_no_undefined_flag
20930:
20931: # Flag to hardcode \$libdir into a binary during linking.
20932: # This must work even if \$libdir does not exist
20933: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20934:
20935: # Whether we need a single "-rpath" flag with a separated argument.
20936: hardcode_libdir_separator=$lt_hardcode_libdir_separator
20937:
20938: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20939: # DIR into the resulting binary.
20940: hardcode_direct=$hardcode_direct
20941:
20942: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20943: # DIR into the resulting binary and the resulting library dependency is
20944: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20945: # library is relocated.
20946: hardcode_direct_absolute=$hardcode_direct_absolute
20947:
20948: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20949: # into the resulting binary.
20950: hardcode_minus_L=$hardcode_minus_L
20951:
20952: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20953: # into the resulting binary.
20954: hardcode_shlibpath_var=$hardcode_shlibpath_var
20955:
20956: # Set to "yes" if building a shared library automatically hardcodes DIR
20957: # into the library and all subsequent libraries and executables linked
20958: # against it.
20959: hardcode_automatic=$hardcode_automatic
20960:
20961: # Set to yes if linker adds runtime paths of dependent libraries
20962: # to runtime path list.
20963: inherit_rpath=$inherit_rpath
20964:
20965: # Whether libtool must link a program against all its dependency libraries.
20966: link_all_deplibs=$link_all_deplibs
20967:
20968: # Set to "yes" if exported symbols are required.
20969: always_export_symbols=$always_export_symbols
20970:
20971: # The commands to list exported symbols.
20972: export_symbols_cmds=$lt_export_symbols_cmds
20973:
20974: # Symbols that should not be listed in the preloaded symbols.
20975: exclude_expsyms=$lt_exclude_expsyms
20976:
20977: # Symbols that must always be exported.
20978: include_expsyms=$lt_include_expsyms
20979:
20980: # Commands necessary for linking programs (against libraries) with templates.
20981: prelink_cmds=$lt_prelink_cmds
20982:
20983: # Commands necessary for finishing linking programs.
20984: postlink_cmds=$lt_postlink_cmds
20985:
20986: # Specify filename containing input files.
20987: file_list_spec=$lt_file_list_spec
20988:
20989: # How to hardcode a shared library path into an executable.
20990: hardcode_action=$hardcode_action
20991:
20992: # The directories searched by this compiler when creating a shared library.
20993: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20994:
20995: # Dependencies to place before and after the objects being linked to
20996: # create a shared library.
20997: predep_objects=$lt_predep_objects
20998: postdep_objects=$lt_postdep_objects
20999: predeps=$lt_predeps
21000: postdeps=$lt_postdeps
21001:
21002: # The library search path used internally by the compiler when linking
21003: # a shared library.
21004: compiler_lib_search_path=$lt_compiler_lib_search_path
21005:
21006: # ### END LIBTOOL CONFIG
21007:
21008: _LT_EOF
21009:
21010: case $host_os in
21011: aix3*)
21012: cat <<\_LT_EOF >> "$cfgfile"
21013: # AIX sometimes has problems with the GCC collect2 program. For some
21014: # reason, if we set the COLLECT_NAMES environment variable, the problems
21015: # vanish in a puff of smoke.
21016: if test "X${COLLECT_NAMES+set}" != Xset; then
21017: COLLECT_NAMES=
21018: export COLLECT_NAMES
21019: fi
21020: _LT_EOF
21021: ;;
21022: esac
21023:
21024:
21025: ltmain="$ac_aux_dir/ltmain.sh"
21026:
21027:
21028: # We use sed instead of cat because bash on DJGPP gets confused if
21029: # if finds mixed CR/LF and LF-only lines. Since sed operates in
21030: # text mode, it properly converts lines to CR/LF. This bash problem
21031: # is reportedly fixed, but why not run on old versions too?
21032: sed '$q' "$ltmain" >> "$cfgfile" \
21033: || (rm -f "$cfgfile"; exit 1)
21034:
21035: if test x"$xsi_shell" = xyes; then
21036: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21037: func_dirname ()\
21038: {\
21039: \ case ${1} in\
21040: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21041: \ * ) func_dirname_result="${3}" ;;\
21042: \ esac\
21043: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21044: && mv -f "$cfgfile.tmp" "$cfgfile" \
21045: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21046: test 0 -eq $? || _lt_function_replace_fail=:
21047:
21048:
21049: sed -e '/^func_basename ()$/,/^} # func_basename /c\
21050: func_basename ()\
21051: {\
21052: \ func_basename_result="${1##*/}"\
21053: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21054: && mv -f "$cfgfile.tmp" "$cfgfile" \
21055: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21056: test 0 -eq $? || _lt_function_replace_fail=:
21057:
21058:
21059: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21060: func_dirname_and_basename ()\
21061: {\
21062: \ case ${1} in\
21063: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21064: \ * ) func_dirname_result="${3}" ;;\
21065: \ esac\
21066: \ func_basename_result="${1##*/}"\
21067: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21068: && mv -f "$cfgfile.tmp" "$cfgfile" \
21069: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21070: test 0 -eq $? || _lt_function_replace_fail=:
21071:
21072:
21073: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21074: func_stripname ()\
21075: {\
21076: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21077: \ # positional parameters, so assign one to ordinary parameter first.\
21078: \ func_stripname_result=${3}\
21079: \ func_stripname_result=${func_stripname_result#"${1}"}\
21080: \ func_stripname_result=${func_stripname_result%"${2}"}\
21081: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21082: && mv -f "$cfgfile.tmp" "$cfgfile" \
21083: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21084: test 0 -eq $? || _lt_function_replace_fail=:
21085:
21086:
21087: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21088: func_split_long_opt ()\
21089: {\
21090: \ func_split_long_opt_name=${1%%=*}\
21091: \ func_split_long_opt_arg=${1#*=}\
21092: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21093: && mv -f "$cfgfile.tmp" "$cfgfile" \
21094: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21095: test 0 -eq $? || _lt_function_replace_fail=:
21096:
21097:
21098: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21099: func_split_short_opt ()\
21100: {\
21101: \ func_split_short_opt_arg=${1#??}\
21102: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21103: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21104: && mv -f "$cfgfile.tmp" "$cfgfile" \
21105: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21106: test 0 -eq $? || _lt_function_replace_fail=:
21107:
21108:
21109: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21110: func_lo2o ()\
21111: {\
21112: \ case ${1} in\
21113: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21114: \ *) func_lo2o_result=${1} ;;\
21115: \ esac\
21116: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21117: && mv -f "$cfgfile.tmp" "$cfgfile" \
21118: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21119: test 0 -eq $? || _lt_function_replace_fail=:
21120:
21121:
21122: sed -e '/^func_xform ()$/,/^} # func_xform /c\
21123: func_xform ()\
21124: {\
21125: func_xform_result=${1%.*}.lo\
21126: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21127: && mv -f "$cfgfile.tmp" "$cfgfile" \
21128: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21129: test 0 -eq $? || _lt_function_replace_fail=:
21130:
21131:
21132: sed -e '/^func_arith ()$/,/^} # func_arith /c\
21133: func_arith ()\
21134: {\
21135: func_arith_result=$(( $* ))\
21136: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21137: && mv -f "$cfgfile.tmp" "$cfgfile" \
21138: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21139: test 0 -eq $? || _lt_function_replace_fail=:
21140:
21141:
21142: sed -e '/^func_len ()$/,/^} # func_len /c\
21143: func_len ()\
21144: {\
21145: func_len_result=${#1}\
21146: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21147: && mv -f "$cfgfile.tmp" "$cfgfile" \
21148: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21149: test 0 -eq $? || _lt_function_replace_fail=:
21150:
21151: fi
21152:
21153: if test x"$lt_shell_append" = xyes; then
21154: sed -e '/^func_append ()$/,/^} # func_append /c\
21155: func_append ()\
21156: {\
21157: eval "${1}+=\\${2}"\
21158: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21159: && mv -f "$cfgfile.tmp" "$cfgfile" \
21160: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21161: test 0 -eq $? || _lt_function_replace_fail=:
21162:
21163:
21164: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21165: func_append_quoted ()\
21166: {\
21167: \ func_quote_for_eval "${2}"\
21168: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21169: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21170: && mv -f "$cfgfile.tmp" "$cfgfile" \
21171: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21172: test 0 -eq $? || _lt_function_replace_fail=:
21173:
21174:
21175: # Save a `func_append' function call where possible by direct use of '+='
21176: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21177: && mv -f "$cfgfile.tmp" "$cfgfile" \
21178: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21179: test 0 -eq $? || _lt_function_replace_fail=:
21180: else
21181: # Save a `func_append' function call even when '+=' is not available
21182: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21183: && mv -f "$cfgfile.tmp" "$cfgfile" \
21184: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21185: test 0 -eq $? || _lt_function_replace_fail=:
21186: fi
21187:
21188: if test x"$_lt_function_replace_fail" = x":"; then
1.150 moko 21189: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21190: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.128 moko 21191: fi
21192:
21193:
21194: mv -f "$cfgfile" "$ofile" ||
21195: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21196: chmod +x "$ofile"
21197:
21198:
21199: cat <<_LT_EOF >> "$ofile"
21200:
21201: # ### BEGIN LIBTOOL TAG CONFIG: CXX
21202:
21203: # The linker used to build libraries.
21204: LD=$lt_LD_CXX
21205:
21206: # How to create reloadable object files.
21207: reload_flag=$lt_reload_flag_CXX
21208: reload_cmds=$lt_reload_cmds_CXX
21209:
21210: # Commands used to build an old-style archive.
21211: old_archive_cmds=$lt_old_archive_cmds_CXX
21212:
21213: # A language specific compiler.
21214: CC=$lt_compiler_CXX
21215:
21216: # Is the compiler the GNU compiler?
21217: with_gcc=$GCC_CXX
21218:
21219: # Compiler flag to turn off builtin functions.
21220: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21221:
21222: # Additional compiler flags for building library objects.
21223: pic_flag=$lt_lt_prog_compiler_pic_CXX
21224:
21225: # How to pass a linker flag through the compiler.
21226: wl=$lt_lt_prog_compiler_wl_CXX
21227:
21228: # Compiler flag to prevent dynamic linking.
21229: link_static_flag=$lt_lt_prog_compiler_static_CXX
21230:
21231: # Does compiler simultaneously support -c and -o options?
21232: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21233:
21234: # Whether or not to add -lc for building shared libraries.
21235: build_libtool_need_lc=$archive_cmds_need_lc_CXX
21236:
21237: # Whether or not to disallow shared libs when runtime libs are static.
21238: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21239:
21240: # Compiler flag to allow reflexive dlopens.
21241: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21242:
21243: # Compiler flag to generate shared objects directly from archives.
21244: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21245:
21246: # Whether the compiler copes with passing no objects directly.
21247: compiler_needs_object=$lt_compiler_needs_object_CXX
21248:
21249: # Create an old-style archive from a shared archive.
21250: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21251:
21252: # Create a temporary old-style archive to link instead of a shared archive.
21253: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21254:
21255: # Commands used to build a shared archive.
21256: archive_cmds=$lt_archive_cmds_CXX
21257: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21258:
21259: # Commands used to build a loadable module if different from building
21260: # a shared archive.
21261: module_cmds=$lt_module_cmds_CXX
21262: module_expsym_cmds=$lt_module_expsym_cmds_CXX
21263:
21264: # Whether we are building with GNU ld or not.
21265: with_gnu_ld=$lt_with_gnu_ld_CXX
21266:
21267: # Flag that allows shared libraries with undefined symbols to be built.
21268: allow_undefined_flag=$lt_allow_undefined_flag_CXX
21269:
21270: # Flag that enforces no undefined symbols.
21271: no_undefined_flag=$lt_no_undefined_flag_CXX
21272:
21273: # Flag to hardcode \$libdir into a binary during linking.
21274: # This must work even if \$libdir does not exist
21275: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21276:
21277: # Whether we need a single "-rpath" flag with a separated argument.
21278: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21279:
21280: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21281: # DIR into the resulting binary.
21282: hardcode_direct=$hardcode_direct_CXX
21283:
21284: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21285: # DIR into the resulting binary and the resulting library dependency is
21286: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21287: # library is relocated.
21288: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21289:
21290: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21291: # into the resulting binary.
21292: hardcode_minus_L=$hardcode_minus_L_CXX
21293:
21294: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21295: # into the resulting binary.
21296: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21297:
21298: # Set to "yes" if building a shared library automatically hardcodes DIR
21299: # into the library and all subsequent libraries and executables linked
21300: # against it.
21301: hardcode_automatic=$hardcode_automatic_CXX
21302:
21303: # Set to yes if linker adds runtime paths of dependent libraries
21304: # to runtime path list.
21305: inherit_rpath=$inherit_rpath_CXX
21306:
21307: # Whether libtool must link a program against all its dependency libraries.
21308: link_all_deplibs=$link_all_deplibs_CXX
21309:
21310: # Set to "yes" if exported symbols are required.
21311: always_export_symbols=$always_export_symbols_CXX
21312:
21313: # The commands to list exported symbols.
21314: export_symbols_cmds=$lt_export_symbols_cmds_CXX
21315:
21316: # Symbols that should not be listed in the preloaded symbols.
21317: exclude_expsyms=$lt_exclude_expsyms_CXX
21318:
21319: # Symbols that must always be exported.
21320: include_expsyms=$lt_include_expsyms_CXX
21321:
21322: # Commands necessary for linking programs (against libraries) with templates.
21323: prelink_cmds=$lt_prelink_cmds_CXX
21324:
21325: # Commands necessary for finishing linking programs.
21326: postlink_cmds=$lt_postlink_cmds_CXX
21327:
21328: # Specify filename containing input files.
21329: file_list_spec=$lt_file_list_spec_CXX
21330:
21331: # How to hardcode a shared library path into an executable.
21332: hardcode_action=$hardcode_action_CXX
21333:
21334: # The directories searched by this compiler when creating a shared library.
21335: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21336:
21337: # Dependencies to place before and after the objects being linked to
21338: # create a shared library.
21339: predep_objects=$lt_predep_objects_CXX
21340: postdep_objects=$lt_postdep_objects_CXX
21341: predeps=$lt_predeps_CXX
21342: postdeps=$lt_postdeps_CXX
21343:
21344: # The library search path used internally by the compiler when linking
21345: # a shared library.
21346: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21347:
21348: # ### END LIBTOOL TAG CONFIG: CXX
21349: _LT_EOF
21350:
21351: ;;
1.150 moko 21352:
1.62 paf 21353: esac
1.150 moko 21354: done # for ac_tag
1.62 paf 21355:
21356:
1.150 moko 21357: as_fn_exit 0
1.62 paf 21358: _ACEOF
21359: ac_clean_files=$ac_clean_files_save
21360:
1.150 moko 21361: test $ac_write_fail = 0 ||
21362: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21363:
1.1 paf 21364:
1.62 paf 21365: # configure is writing to config.log, and then calls config.status.
21366: # config.status does its own redirection, appending to config.log.
21367: # Unfortunately, on DOS this fails, as config.log is still kept open
21368: # by configure, so config.status won't be able to write to it; its
21369: # output is simply discarded. So we exec the FD to /dev/null,
21370: # effectively closing config.log, so it can be properly (re)opened and
21371: # appended to by config.status. When coming back to configure, we
21372: # need to make the FD available again.
21373: if test "$no_create" != yes; then
21374: ac_cs_success=:
21375: ac_config_status_args=
21376: test "$silent" = yes &&
21377: ac_config_status_args="$ac_config_status_args --quiet"
21378: exec 5>/dev/null
21379: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21380: exec 5>>config.log
21381: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21382: # would make configure fail if this is the last instruction.
1.150 moko 21383: $ac_cs_success || as_fn_exit 1
1.62 paf 21384: fi
21385:
21386: #
21387: # CONFIG_SUBDIRS section.
21388: #
1.1 paf 21389: if test "$no_recursion" != yes; then
21390:
1.150 moko 21391: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21392: # so they do not pile up.
1.1 paf 21393: ac_sub_configure_args=
21394: ac_prev=
1.150 moko 21395: eval "set x $ac_configure_args"
21396: shift
21397: for ac_arg
21398: do
1.1 paf 21399: if test -n "$ac_prev"; then
21400: ac_prev=
21401: continue
21402: fi
1.62 paf 21403: case $ac_arg in
1.1 paf 21404: -cache-file | --cache-file | --cache-fil | --cache-fi \
21405: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21406: ac_prev=cache_file ;;
21407: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 21408: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21409: | --c=*)
21410: ;;
21411: --config-cache | -C)
1.1 paf 21412: ;;
21413: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21414: ac_prev=srcdir ;;
21415: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21416: ;;
1.62 paf 21417: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21418: ac_prev=prefix ;;
21419: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21420: ;;
1.150 moko 21421: --disable-option-checking)
21422: ;;
21423: *)
21424: case $ac_arg in
21425: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21426: esac
21427: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 21428: esac
21429: done
21430:
1.62 paf 21431: # Always prepend --prefix to ensure using the same prefix
21432: # in subdir configurations.
1.150 moko 21433: ac_arg="--prefix=$prefix"
21434: case $ac_arg in
21435: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21436: esac
21437: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21438:
21439: # Pass --silent
21440: if test "$silent" = yes; then
21441: ac_sub_configure_args="--silent $ac_sub_configure_args"
21442: fi
21443:
21444: # Always prepend --disable-option-checking to silence warnings, since
21445: # different subdirs can have different --enable and --with options.
21446: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 21447:
21448: ac_popdir=`pwd`
21449: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 21450:
21451: # Do not complain, so a configure script can configure whichever
21452: # parts of a large source tree are present.
1.150 moko 21453: test -d "$srcdir/$ac_dir" || continue
1.62 paf 21454:
1.150 moko 21455: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21456: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21457: $as_echo "$ac_msg" >&6
21458: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 21459: ac_builddir=.
21460:
1.150 moko 21461: case "$ac_dir" in
21462: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21463: *)
21464: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21465: # A ".." for each directory in $ac_dir_suffix.
21466: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21467: case $ac_top_builddir_sub in
21468: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21469: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21470: esac ;;
21471: esac
21472: ac_abs_top_builddir=$ac_pwd
21473: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21474: # for backward compatibility:
21475: ac_top_builddir=$ac_top_build_prefix
1.62 paf 21476:
21477: case $srcdir in
1.150 moko 21478: .) # We are building in place.
1.62 paf 21479: ac_srcdir=.
1.150 moko 21480: ac_top_srcdir=$ac_top_builddir_sub
21481: ac_abs_top_srcdir=$ac_pwd ;;
21482: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 21483: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 21484: ac_top_srcdir=$srcdir
21485: ac_abs_top_srcdir=$srcdir ;;
21486: *) # Relative name.
21487: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21488: ac_top_srcdir=$ac_top_build_prefix$srcdir
21489: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 21490: esac
1.150 moko 21491: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 21492:
21493:
1.150 moko 21494: cd "$ac_dir"
1.1 paf 21495:
21496: # Check for guested configure; otherwise get Cygnus style configure.
1.150 moko 21497: if test -f "$ac_srcdir/configure.gnu"; then
21498: ac_sub_configure=$ac_srcdir/configure.gnu
21499: elif test -f "$ac_srcdir/configure"; then
21500: ac_sub_configure=$ac_srcdir/configure
21501: elif test -f "$ac_srcdir/configure.in"; then
21502: # This should be Cygnus configure.
21503: ac_sub_configure=$ac_aux_dir/configure
1.1 paf 21504: else
1.150 moko 21505: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21506: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 21507: ac_sub_configure=
21508: fi
21509:
21510: # The recursion is here.
21511: if test -n "$ac_sub_configure"; then
21512: # Make the cache file name correct relative to the subdirectory.
1.62 paf 21513: case $cache_file in
21514: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 21515: *) # Relative name.
21516: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 21517: esac
21518:
1.150 moko 21519: { $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
21520: $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 21521: # The eval makes quoting arguments work.
1.150 moko 21522: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21523: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21524: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 21525: fi
21526:
1.150 moko 21527: cd "$ac_popdir"
1.1 paf 21528: done
21529: fi
1.150 moko 21530: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21531: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21532: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21533: fi
1.1 paf 21534:
E-mail: