Annotation of parser3/configure, revision 1.231
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.230 moko 3: # Generated by GNU Autoconf 2.69 for parser 3.5.2b.
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.230 moko 594: PACKAGE_VERSION='3.5.2b'
595: PACKAGE_STRING='parser 3.5.2b'
1.128 moko 596: PACKAGE_BUGREPORT=''
1.150 moko 597: PACKAGE_URL=''
1.62 paf 598:
599: ac_unique_file="README"
600: # Factoring default headers for most tests.
601: ac_includes_default="\
602: #include <stdio.h>
1.150 moko 603: #ifdef HAVE_SYS_TYPES_H
1.62 paf 604: # include <sys/types.h>
605: #endif
1.150 moko 606: #ifdef HAVE_SYS_STAT_H
1.62 paf 607: # include <sys/stat.h>
608: #endif
1.150 moko 609: #ifdef STDC_HEADERS
1.62 paf 610: # include <stdlib.h>
611: # include <stddef.h>
612: #else
1.150 moko 613: # ifdef HAVE_STDLIB_H
1.62 paf 614: # include <stdlib.h>
615: # endif
616: #endif
1.150 moko 617: #ifdef HAVE_STRING_H
618: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.62 paf 619: # include <memory.h>
620: # endif
621: # include <string.h>
622: #endif
1.150 moko 623: #ifdef HAVE_STRINGS_H
1.62 paf 624: # include <strings.h>
625: #endif
1.150 moko 626: #ifdef HAVE_INTTYPES_H
1.62 paf 627: # include <inttypes.h>
628: #endif
1.150 moko 629: #ifdef HAVE_STDINT_H
630: # include <stdint.h>
631: #endif
632: #ifdef HAVE_UNISTD_H
1.62 paf 633: # include <unistd.h>
634: #endif"
635:
1.150 moko 636: enable_option_checking=no
637: ac_subst_vars='ltdl_LTLIBOBJS
638: ltdl_LIBOBJS
639: am__EXEEXT_FALSE
640: am__EXEEXT_TRUE
641: LTLIBOBJS
642: LIBOBJS
643: LTDLOPEN
644: LT_CONFIG_H
645: subdirs
646: CONVENIENCE_LTDL_FALSE
647: CONVENIENCE_LTDL_TRUE
648: INSTALL_LTDL_FALSE
649: INSTALL_LTDL_TRUE
650: ARGZ_H
651: sys_symbol_underscore
652: LIBADD_DL
653: LT_DLPREOPEN
654: LIBADD_DLD_LINK
655: LIBADD_SHL_LOAD
656: LIBADD_DLOPEN
657: LT_DLLOADERS
658: INCLTDL
659: LTDLINCL
660: LTDLDEPS
661: LIBLTDL
662: CXXCPP
663: CPP
664: OTOOL64
665: OTOOL
666: LIPO
667: NMEDIT
668: DSYMUTIL
669: MANIFEST_TOOL
670: RANLIB
671: ac_ct_AR
672: AR
673: LN_S
674: NM
675: ac_ct_DUMPBIN
676: DUMPBIN
677: LD
678: FGREP
679: EGREP
680: GREP
681: SED
682: LIBTOOL
683: OBJDUMP
684: DLLTOOL
685: AS
686: COMPILE_APACHE_MODULE_FALSE
687: COMPILE_APACHE_MODULE_TRUE
688: APACHE_CFLAGS
689: APACHE_INC
690: APACHE
691: MIME_LIBS
692: MIME_INCLUDES
693: XML_LIBS
694: XML_INCLUDES
695: PCRE_LIBS
696: PCRE_INCLUDES
697: GC_LIBS
698: dll_extension
699: am__fastdepCC_FALSE
700: am__fastdepCC_TRUE
701: CCDEPMODE
702: ac_ct_CC
703: CFLAGS
704: CC
705: am__fastdepCXX_FALSE
706: am__fastdepCXX_TRUE
707: CXXDEPMODE
1.187 moko 708: am__nodep
1.150 moko 709: AMDEPBACKSLASH
710: AMDEP_FALSE
711: AMDEP_TRUE
712: am__include
713: DEPDIR
714: OBJEXT
715: EXEEXT
716: ac_ct_CXX
717: CPPFLAGS
718: LDFLAGS
719: CXXFLAGS
720: CXX
721: YFLAGS
722: YACC
723: host_os
724: host_vendor
725: host_cpu
726: host
727: build_os
728: build_vendor
729: build_cpu
730: build
731: P3S
1.187 moko 732: AM_BACKSLASH
733: AM_DEFAULT_VERBOSITY
734: AM_DEFAULT_V
735: AM_V
1.150 moko 736: am__untar
737: am__tar
738: AMTAR
739: am__leading_dot
740: SET_MAKE
741: AWK
742: mkdir_p
743: MKDIR_P
744: INSTALL_STRIP_PROGRAM
745: STRIP
746: install_sh
747: MAKEINFO
748: AUTOHEADER
749: AUTOMAKE
750: AUTOCONF
751: ACLOCAL
752: VERSION
753: PACKAGE
754: CYGPATH_W
755: am__isrc
756: INSTALL_DATA
757: INSTALL_SCRIPT
758: INSTALL_PROGRAM
759: target_alias
760: host_alias
761: build_alias
762: LIBS
763: ECHO_T
764: ECHO_N
765: ECHO_C
766: DEFS
767: mandir
768: localedir
769: libdir
770: psdir
771: pdfdir
772: dvidir
773: htmldir
774: infodir
775: docdir
776: oldincludedir
777: includedir
1.191 moko 778: runstatedir
1.150 moko 779: localstatedir
780: sharedstatedir
781: sysconfdir
782: datadir
783: datarootdir
784: libexecdir
785: sbindir
786: bindir
787: program_transform_name
788: prefix
789: exec_prefix
790: PACKAGE_URL
791: PACKAGE_BUGREPORT
792: PACKAGE_STRING
793: PACKAGE_VERSION
794: PACKAGE_TARNAME
795: PACKAGE_NAME
796: PATH_SEPARATOR
1.199 moko 797: SHELL
798: am__quote'
1.62 paf 799: ac_subst_files=''
1.150 moko 800: ac_user_opts='
801: enable_option_checking
1.187 moko 802: enable_silent_rules
1.150 moko 803: enable_dependency_tracking
804: with_build_warnings
1.182 moko 805: with_coverage
806: with_profiler
1.150 moko 807: with_assertions
808: with_sjlj_exceptions
1.203 moko 809: with_system_cfg
1.150 moko 810: enable_safe_mode
811: enable_execs
812: enable_stringstream
813: with_gc
814: with_pcre
815: with_xml
1.154 moko 816: with_mailreceive
1.150 moko 817: with_sendmail
818: with_apache
819: with_pic
820: enable_shared
821: enable_static
822: enable_fast_install
823: with_gnu_ld
824: with_sysroot
825: enable_libtool_lock
826: with_included_ltdl
827: with_ltdl_include
828: with_ltdl_lib
829: enable_ltdl_install
1.171 moko 830: enable_largefile
1.150 moko 831: '
832: ac_precious_vars='build_alias
833: host_alias
834: target_alias
835: YACC
836: YFLAGS
837: CXX
838: CXXFLAGS
839: LDFLAGS
840: LIBS
841: CPPFLAGS
842: CCC
843: CC
844: CFLAGS
845: CPP
846: CXXCPP'
847: ac_subdirs_all='src/lib/ltdl'
1.1 paf 848:
849: # Initialize some variables set by options.
1.62 paf 850: ac_init_help=
851: ac_init_version=false
1.150 moko 852: ac_unrecognized_opts=
853: ac_unrecognized_sep=
1.1 paf 854: # The variables have the same names as the options, with
855: # dashes changed to underlines.
1.62 paf 856: cache_file=/dev/null
1.1 paf 857: exec_prefix=NONE
858: no_create=
859: no_recursion=
860: prefix=NONE
861: program_prefix=NONE
862: program_suffix=NONE
863: program_transform_name=s,x,x,
864: silent=
865: site=
866: srcdir=
867: verbose=
868: x_includes=NONE
869: x_libraries=NONE
1.62 paf 870:
871: # Installation directory options.
872: # These are left unexpanded so users can "make install exec_prefix=/foo"
873: # and all the variables that are supposed to be based on exec_prefix
874: # by default will actually change.
875: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 876: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 877: bindir='${exec_prefix}/bin'
878: sbindir='${exec_prefix}/sbin'
879: libexecdir='${exec_prefix}/libexec'
1.150 moko 880: datarootdir='${prefix}/share'
881: datadir='${datarootdir}'
1.1 paf 882: sysconfdir='${prefix}/etc'
883: sharedstatedir='${prefix}/com'
884: localstatedir='${prefix}/var'
1.191 moko 885: runstatedir='${localstatedir}/run'
1.1 paf 886: includedir='${prefix}/include'
887: oldincludedir='/usr/include'
1.150 moko 888: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889: infodir='${datarootdir}/info'
890: htmldir='${docdir}'
891: dvidir='${docdir}'
892: pdfdir='${docdir}'
893: psdir='${docdir}'
894: libdir='${exec_prefix}/lib'
895: localedir='${datarootdir}/locale'
896: mandir='${datarootdir}/man'
1.1 paf 897:
898: ac_prev=
1.150 moko 899: ac_dashdash=
1.1 paf 900: for ac_option
901: do
902: # If the previous option needs an argument, assign it.
903: if test -n "$ac_prev"; then
1.150 moko 904: eval $ac_prev=\$ac_option
1.1 paf 905: ac_prev=
906: continue
907: fi
908:
1.150 moko 909: case $ac_option in
910: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911: *=) ac_optarg= ;;
912: *) ac_optarg=yes ;;
913: esac
1.1 paf 914:
915: # Accept the important Cygnus configure options, so we can diagnose typos.
916:
1.150 moko 917: case $ac_dashdash$ac_option in
918: --)
919: ac_dashdash=yes ;;
1.1 paf 920:
921: -bindir | --bindir | --bindi | --bind | --bin | --bi)
922: ac_prev=bindir ;;
923: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 924: bindir=$ac_optarg ;;
1.1 paf 925:
926: -build | --build | --buil | --bui | --bu)
1.62 paf 927: ac_prev=build_alias ;;
1.1 paf 928: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 929: build_alias=$ac_optarg ;;
1.1 paf 930:
931: -cache-file | --cache-file | --cache-fil | --cache-fi \
932: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933: ac_prev=cache_file ;;
934: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 936: cache_file=$ac_optarg ;;
937:
938: --config-cache | -C)
939: cache_file=config.cache ;;
1.1 paf 940:
1.150 moko 941: -datadir | --datadir | --datadi | --datad)
1.1 paf 942: ac_prev=datadir ;;
1.150 moko 943: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 944: datadir=$ac_optarg ;;
1.1 paf 945:
1.150 moko 946: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947: | --dataroo | --dataro | --datar)
948: ac_prev=datarootdir ;;
949: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951: datarootdir=$ac_optarg ;;
952:
1.1 paf 953: -disable-* | --disable-*)
1.150 moko 954: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 955: # Reject names that are not valid shell variable names.
1.150 moko 956: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957: as_fn_error $? "invalid feature name: $ac_useropt"
958: ac_useropt_orig=$ac_useropt
959: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960: case $ac_user_opts in
961: *"
962: "enable_$ac_useropt"
963: "*) ;;
964: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965: ac_unrecognized_sep=', ';;
966: esac
967: eval enable_$ac_useropt=no ;;
968:
969: -docdir | --docdir | --docdi | --doc | --do)
970: ac_prev=docdir ;;
971: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972: docdir=$ac_optarg ;;
973:
974: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975: ac_prev=dvidir ;;
976: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977: dvidir=$ac_optarg ;;
1.1 paf 978:
979: -enable-* | --enable-*)
1.150 moko 980: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 981: # Reject names that are not valid shell variable names.
1.150 moko 982: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983: as_fn_error $? "invalid feature name: $ac_useropt"
984: ac_useropt_orig=$ac_useropt
985: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986: case $ac_user_opts in
987: *"
988: "enable_$ac_useropt"
989: "*) ;;
990: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991: ac_unrecognized_sep=', ';;
1.1 paf 992: esac
1.150 moko 993: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 994:
995: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997: | --exec | --exe | --ex)
998: ac_prev=exec_prefix ;;
999: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001: | --exec=* | --exe=* | --ex=*)
1.62 paf 1002: exec_prefix=$ac_optarg ;;
1.1 paf 1003:
1004: -gas | --gas | --ga | --g)
1005: # Obsolete; use --with-gas.
1006: with_gas=yes ;;
1007:
1.62 paf 1008: -help | --help | --hel | --he | -h)
1009: ac_init_help=long ;;
1010: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011: ac_init_help=recursive ;;
1012: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013: ac_init_help=short ;;
1.1 paf 1014:
1015: -host | --host | --hos | --ho)
1.62 paf 1016: ac_prev=host_alias ;;
1.1 paf 1017: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1018: host_alias=$ac_optarg ;;
1.1 paf 1019:
1.150 moko 1020: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021: ac_prev=htmldir ;;
1022: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023: | --ht=*)
1024: htmldir=$ac_optarg ;;
1025:
1.1 paf 1026: -includedir | --includedir | --includedi | --included | --include \
1027: | --includ | --inclu | --incl | --inc)
1028: ac_prev=includedir ;;
1029: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1031: includedir=$ac_optarg ;;
1.1 paf 1032:
1033: -infodir | --infodir | --infodi | --infod | --info | --inf)
1034: ac_prev=infodir ;;
1035: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1036: infodir=$ac_optarg ;;
1.1 paf 1037:
1038: -libdir | --libdir | --libdi | --libd)
1039: ac_prev=libdir ;;
1040: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1041: libdir=$ac_optarg ;;
1.1 paf 1042:
1043: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044: | --libexe | --libex | --libe)
1045: ac_prev=libexecdir ;;
1046: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1048: libexecdir=$ac_optarg ;;
1.1 paf 1049:
1.150 moko 1050: -localedir | --localedir | --localedi | --localed | --locale)
1051: ac_prev=localedir ;;
1052: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053: localedir=$ac_optarg ;;
1054:
1.1 paf 1055: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1056: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1057: ac_prev=localstatedir ;;
1058: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1059: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1060: localstatedir=$ac_optarg ;;
1.1 paf 1061:
1062: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063: ac_prev=mandir ;;
1064: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1065: mandir=$ac_optarg ;;
1.1 paf 1066:
1067: -nfp | --nfp | --nf)
1068: # Obsolete; use --without-fp.
1069: with_fp=no ;;
1070:
1071: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1072: | --no-cr | --no-c | -n)
1.1 paf 1073: no_create=yes ;;
1074:
1075: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077: no_recursion=yes ;;
1078:
1079: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081: | --oldin | --oldi | --old | --ol | --o)
1082: ac_prev=oldincludedir ;;
1083: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1086: oldincludedir=$ac_optarg ;;
1.1 paf 1087:
1088: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089: ac_prev=prefix ;;
1090: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1091: prefix=$ac_optarg ;;
1.1 paf 1092:
1093: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094: | --program-pre | --program-pr | --program-p)
1095: ac_prev=program_prefix ;;
1096: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1098: program_prefix=$ac_optarg ;;
1.1 paf 1099:
1100: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101: | --program-suf | --program-su | --program-s)
1102: ac_prev=program_suffix ;;
1103: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1105: program_suffix=$ac_optarg ;;
1.1 paf 1106:
1107: -program-transform-name | --program-transform-name \
1108: | --program-transform-nam | --program-transform-na \
1109: | --program-transform-n | --program-transform- \
1110: | --program-transform | --program-transfor \
1111: | --program-transfo | --program-transf \
1112: | --program-trans | --program-tran \
1113: | --progr-tra | --program-tr | --program-t)
1114: ac_prev=program_transform_name ;;
1115: -program-transform-name=* | --program-transform-name=* \
1116: | --program-transform-nam=* | --program-transform-na=* \
1117: | --program-transform-n=* | --program-transform-=* \
1118: | --program-transform=* | --program-transfor=* \
1119: | --program-transfo=* | --program-transf=* \
1120: | --program-trans=* | --program-tran=* \
1121: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1122: program_transform_name=$ac_optarg ;;
1.1 paf 1123:
1.150 moko 1124: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125: ac_prev=pdfdir ;;
1126: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127: pdfdir=$ac_optarg ;;
1128:
1129: -psdir | --psdir | --psdi | --psd | --ps)
1130: ac_prev=psdir ;;
1131: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132: psdir=$ac_optarg ;;
1133:
1.1 paf 1134: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135: | -silent | --silent | --silen | --sile | --sil)
1136: silent=yes ;;
1137:
1.191 moko 1138: -runstatedir | --runstatedir | --runstatedi | --runstated \
1139: | --runstate | --runstat | --runsta | --runst | --runs \
1140: | --run | --ru | --r)
1141: ac_prev=runstatedir ;;
1142: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144: | --run=* | --ru=* | --r=*)
1145: runstatedir=$ac_optarg ;;
1146:
1.1 paf 1147: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148: ac_prev=sbindir ;;
1149: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150: | --sbi=* | --sb=*)
1.62 paf 1151: sbindir=$ac_optarg ;;
1.1 paf 1152:
1153: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155: | --sharedst | --shareds | --shared | --share | --shar \
1156: | --sha | --sh)
1157: ac_prev=sharedstatedir ;;
1158: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161: | --sha=* | --sh=*)
1.62 paf 1162: sharedstatedir=$ac_optarg ;;
1.1 paf 1163:
1164: -site | --site | --sit)
1165: ac_prev=site ;;
1166: -site=* | --site=* | --sit=*)
1.62 paf 1167: site=$ac_optarg ;;
1.1 paf 1168:
1169: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170: ac_prev=srcdir ;;
1171: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1172: srcdir=$ac_optarg ;;
1.1 paf 1173:
1174: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175: | --syscon | --sysco | --sysc | --sys | --sy)
1176: ac_prev=sysconfdir ;;
1177: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1179: sysconfdir=$ac_optarg ;;
1.1 paf 1180:
1181: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1182: ac_prev=target_alias ;;
1.1 paf 1183: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1184: target_alias=$ac_optarg ;;
1.1 paf 1185:
1186: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187: verbose=yes ;;
1188:
1.62 paf 1189: -version | --version | --versio | --versi | --vers | -V)
1190: ac_init_version=: ;;
1.1 paf 1191:
1192: -with-* | --with-*)
1.150 moko 1193: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1194: # Reject names that are not valid shell variable names.
1.150 moko 1195: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196: as_fn_error $? "invalid package name: $ac_useropt"
1197: ac_useropt_orig=$ac_useropt
1198: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199: case $ac_user_opts in
1200: *"
1201: "with_$ac_useropt"
1202: "*) ;;
1203: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204: ac_unrecognized_sep=', ';;
1.1 paf 1205: esac
1.150 moko 1206: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1207:
1208: -without-* | --without-*)
1.150 moko 1209: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1210: # Reject names that are not valid shell variable names.
1.150 moko 1211: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212: as_fn_error $? "invalid package name: $ac_useropt"
1213: ac_useropt_orig=$ac_useropt
1214: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215: case $ac_user_opts in
1216: *"
1217: "with_$ac_useropt"
1218: "*) ;;
1219: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220: ac_unrecognized_sep=', ';;
1221: esac
1222: eval with_$ac_useropt=no ;;
1.1 paf 1223:
1224: --x)
1225: # Obsolete; use --with-x.
1226: with_x=yes ;;
1227:
1228: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229: | --x-incl | --x-inc | --x-in | --x-i)
1230: ac_prev=x_includes ;;
1231: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1233: x_includes=$ac_optarg ;;
1.1 paf 1234:
1235: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237: ac_prev=x_libraries ;;
1238: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1240: x_libraries=$ac_optarg ;;
1.1 paf 1241:
1.150 moko 1242: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243: Try \`$0 --help' for more information"
1.1 paf 1244: ;;
1245:
1.62 paf 1246: *=*)
1247: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248: # Reject names that are not valid shell variable names.
1.150 moko 1249: case $ac_envvar in #(
1250: '' | [0-9]* | *[!_$as_cr_alnum]* )
1251: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252: esac
1253: eval $ac_envvar=\$ac_optarg
1.62 paf 1254: export $ac_envvar ;;
1255:
1.1 paf 1256: *)
1.62 paf 1257: # FIXME: should be removed in autoconf 3.0.
1.150 moko 1258: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1259: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.150 moko 1260: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1262: ;;
1263:
1264: esac
1265: done
1266:
1267: if test -n "$ac_prev"; then
1.62 paf 1268: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1269: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1270: fi
1271:
1.150 moko 1272: if test -n "$ac_unrecognized_opts"; then
1273: case $enable_option_checking in
1274: no) ;;
1275: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277: esac
1278: fi
1279:
1280: # Check all directory arguments for consistency.
1281: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282: datadir sysconfdir sharedstatedir localstatedir includedir \
1283: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.191 moko 1284: libdir localedir mandir runstatedir
1.62 paf 1285: do
1.150 moko 1286: eval ac_val=\$$ac_var
1287: # Remove trailing slashes.
1.62 paf 1288: case $ac_val in
1.150 moko 1289: */ )
1290: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291: eval $ac_var=\$ac_val;;
1.62 paf 1292: esac
1.150 moko 1293: # Be sure to have absolute directory names.
1.62 paf 1294: case $ac_val in
1.150 moko 1295: [\\/$]* | ?:[\\/]* ) continue;;
1296: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1297: esac
1.150 moko 1298: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1299: done
1300:
1.62 paf 1301: # There might be people who depend on the old broken behavior: `$host'
1302: # used to hold the argument of --host etc.
1303: # FIXME: To remove some day.
1304: build=$build_alias
1305: host=$host_alias
1306: target=$target_alias
1307:
1308: # FIXME: To remove some day.
1309: if test "x$host_alias" != x; then
1310: if test "x$build_alias" = x; then
1311: cross_compiling=maybe
1312: elif test "x$build_alias" != "x$host_alias"; then
1313: cross_compiling=yes
1314: fi
1315: fi
1316:
1317: ac_tool_prefix=
1318: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1319:
1.62 paf 1320: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1321:
1322:
1.150 moko 1323: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324: ac_ls_di=`ls -di .` &&
1325: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326: as_fn_error $? "working directory cannot be determined"
1327: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328: as_fn_error $? "pwd does not report name of working directory"
1329:
1330:
1.1 paf 1331: # Find the source files, if location was not specified.
1332: if test -z "$srcdir"; then
1333: ac_srcdir_defaulted=yes
1.150 moko 1334: # Try the directory containing this script, then the parent directory.
1335: ac_confdir=`$as_dirname -- "$as_myself" ||
1336: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337: X"$as_myself" : 'X\(//\)[^/]' \| \
1338: X"$as_myself" : 'X\(//\)$' \| \
1339: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340: $as_echo X"$as_myself" |
1341: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342: s//\1/
1343: q
1344: }
1345: /^X\(\/\/\)[^/].*/{
1346: s//\1/
1347: q
1348: }
1349: /^X\(\/\/\)$/{
1350: s//\1/
1351: q
1352: }
1353: /^X\(\/\).*/{
1354: s//\1/
1355: q
1356: }
1357: s/.*/./; q'`
1.1 paf 1358: srcdir=$ac_confdir
1.150 moko 1359: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1360: srcdir=..
1361: fi
1362: else
1363: ac_srcdir_defaulted=no
1364: fi
1.150 moko 1365: if test ! -r "$srcdir/$ac_unique_file"; then
1366: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368: fi
1369: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370: ac_abs_confdir=`(
1371: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372: pwd)`
1373: # When building in place, set srcdir=.
1374: if test "$ac_abs_confdir" = "$ac_pwd"; then
1375: srcdir=.
1376: fi
1377: # Remove unnecessary trailing slashes from srcdir.
1378: # Double slashes in file names in object file debugging info
1379: # mess up M-x gdb in Emacs.
1380: case $srcdir in
1381: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382: esac
1383: for ac_var in $ac_precious_vars; do
1384: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385: eval ac_env_${ac_var}_value=\$${ac_var}
1386: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388: done
1.62 paf 1389:
1390: #
1391: # Report the --help message.
1392: #
1393: if test "$ac_init_help" = "long"; then
1394: # Omit some internal or obsolete options to make the list less imposing.
1395: # This message is too long to be a string in the A/UX 3.1 sh.
1396: cat <<_ACEOF
1.230 moko 1397: \`configure' configures parser 3.5.2b to adapt to many kinds of systems.
1.62 paf 1398:
1399: Usage: $0 [OPTION]... [VAR=VALUE]...
1400:
1401: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402: VAR=VALUE. See below for descriptions of some of the useful variables.
1403:
1404: Defaults for the options are specified in brackets.
1405:
1406: Configuration:
1407: -h, --help display this help and exit
1408: --help=short display options specific to this package
1409: --help=recursive display the short help of all the included packages
1410: -V, --version display version information and exit
1.150 moko 1411: -q, --quiet, --silent do not print \`checking ...' messages
1.62 paf 1412: --cache-file=FILE cache test results in FILE [disabled]
1413: -C, --config-cache alias for \`--cache-file=config.cache'
1414: -n, --no-create do not create output files
1415: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416:
1417: Installation directories:
1418: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1419: [$ac_default_prefix]
1.62 paf 1420: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1421: [PREFIX]
1.62 paf 1422:
1423: By default, \`make install' will install all the files in
1424: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426: for instance \`--prefix=\$HOME'.
1427:
1428: For better control, use the options below.
1429:
1430: Fine tuning of the installation directories:
1.150 moko 1431: --bindir=DIR user executables [EPREFIX/bin]
1432: --sbindir=DIR system admin executables [EPREFIX/sbin]
1433: --libexecdir=DIR program executables [EPREFIX/libexec]
1434: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.191 moko 1437: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.150 moko 1438: --libdir=DIR object code libraries [EPREFIX/lib]
1439: --includedir=DIR C header files [PREFIX/include]
1440: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443: --infodir=DIR info documentation [DATAROOTDIR/info]
1444: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445: --mandir=DIR man documentation [DATAROOTDIR/man]
1446: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1447: --htmldir=DIR html documentation [DOCDIR]
1448: --dvidir=DIR dvi documentation [DOCDIR]
1449: --pdfdir=DIR pdf documentation [DOCDIR]
1450: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1451: _ACEOF
1452:
1453: cat <<\_ACEOF
1454:
1455: Program names:
1456: --program-prefix=PREFIX prepend PREFIX to installed program names
1457: --program-suffix=SUFFIX append SUFFIX to installed program names
1458: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459:
1460: System types:
1461: --build=BUILD configure for building on BUILD [guessed]
1462: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463: _ACEOF
1464: fi
1465:
1466: if test -n "$ac_init_help"; then
1.128 moko 1467: case $ac_init_help in
1.230 moko 1468: short | recursive ) echo "Configuration of parser 3.5.2b:";;
1.128 moko 1469: esac
1.62 paf 1470: cat <<\_ACEOF
1471:
1472: Optional Features:
1.150 moko 1473: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1474: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.187 moko 1476: --enable-silent-rules less verbose build output (undo: "make V=1")
1477: --disable-silent-rules verbose build output (undo: "make V=0")
1478: --enable-dependency-tracking
1479: do not reject slow dependency extractors
1480: --disable-dependency-tracking
1481: speeds up one-time build
1.67 paf 1482: --disable-safe-mode to enable reading and executing
1.62 paf 1483: files belonging to group+user other then effective
1.146 moko 1484: --disable-execs to disable any execs
1.62 paf 1485: (file::exec, file::cgi, unix mail:send)
1.195 moko 1486: --disable-stringstream to disable stringstream usage.
1487: when disabled table.save uses more memory, but more compilers are supported
1.150 moko 1488: --enable-shared[=PKGS] build shared libraries [default=yes]
1489: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1490: --enable-fast-install[=PKGS]
1491: optimize for fast installation [default=yes]
1492: --disable-libtool-lock avoid locking (might break parallel builds)
1493: --enable-ltdl-install install libltdl
1.171 moko 1494: --disable-largefile omit support for large files
1.62 paf 1495:
1496: Optional Packages:
1497: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1499: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.185 moko 1500: --with-coverage to enable gcov code coverage support
1501: --with-profiler to enable gprof code profiler support
1.67 paf 1502: --with-assertions to enable assertions
1.201 moko 1503: --with-sjlj-exceptions to enable simple 'throw' from dynamic library
1504: --with-system-cfg=FILE to specify system-wide auto.p
1505: --with-gc=DIR DIR is the directory where
1.142 moko 1506: Boehm garbage collecting library is installed
1.201 moko 1507: --with-pcre=DIR DIR is the directory where
1.142 moko 1508: PCRE library is installed
1.201 moko 1509: --with-xml=DIR DIR is the directory where
1.142 moko 1510: Gnome XML libraries are installed
1.201 moko 1511: --with-mailreceive=DIR is the directory where
1.154 moko 1512: Gnome MIME library is installed
1.62 paf 1513: \"--with-sendmail=COMMAND\" forces this command to send mail.
1514: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1515: (makes parser ignore user-defined sendmail commands)
1.146 moko 1516: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1517: builds apache DSO module using apxs
1.150 moko 1518: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.128 moko 1519: both]
1520: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521: --with-sysroot=DIR Search for dependent libraries within DIR
1522: (or the compiler's sysroot if not specified).
1523: --with-included-ltdl use the GNU ltdl sources included here
1524: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1525: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1526:
1527: Some influential environment variables:
1.150 moko 1528: YACC The `Yet Another Compiler Compiler' implementation to use.
1529: Defaults to the first program found out of: `bison -y', `byacc',
1530: `yacc'.
1531: YFLAGS The list of arguments that will be passed by default to $YACC.
1532: This script will default YFLAGS to the empty string to avoid a
1533: default value of `-d' given by some make applications.
1.66 paf 1534: CXX C++ compiler command
1535: CXXFLAGS C++ compiler flags
1.62 paf 1536: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537: nonstandard directory <lib dir>
1.150 moko 1538: LIBS libraries to pass to the linker, e.g. -l<library>
1539: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540: you have headers in a nonstandard directory <include dir>
1.66 paf 1541: CC C compiler command
1542: CFLAGS C compiler flags
1543: CPP C preprocessor
1.128 moko 1544: CXXCPP C++ preprocessor
1.62 paf 1545:
1546: Use these variables to override the choices made by `configure' or to help
1547: it to find libraries and programs with nonstandard names/locations.
1548:
1.150 moko 1549: Report bugs to the package provider.
1.62 paf 1550: _ACEOF
1.150 moko 1551: ac_status=$?
1.62 paf 1552: fi
1553:
1554: if test "$ac_init_help" = "recursive"; then
1555: # If there are subdirs, report their specific --help.
1556: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1557: test -d "$ac_dir" ||
1558: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559: continue
1.62 paf 1560: ac_builddir=.
1561:
1.150 moko 1562: case "$ac_dir" in
1563: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564: *)
1565: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566: # A ".." for each directory in $ac_dir_suffix.
1567: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568: case $ac_top_builddir_sub in
1569: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571: esac ;;
1572: esac
1573: ac_abs_top_builddir=$ac_pwd
1574: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575: # for backward compatibility:
1576: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1577:
1578: case $srcdir in
1.150 moko 1579: .) # We are building in place.
1.62 paf 1580: ac_srcdir=.
1.150 moko 1581: ac_top_srcdir=$ac_top_builddir_sub
1582: ac_abs_top_srcdir=$ac_pwd ;;
1583: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1584: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1585: ac_top_srcdir=$srcdir
1586: ac_abs_top_srcdir=$srcdir ;;
1587: *) # Relative name.
1588: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589: ac_top_srcdir=$ac_top_build_prefix$srcdir
1590: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1591: esac
1.150 moko 1592: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1593:
1.150 moko 1594: cd "$ac_dir" || { ac_status=$?; continue; }
1595: # Check for guested configure.
1596: if test -f "$ac_srcdir/configure.gnu"; then
1597: echo &&
1598: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599: elif test -f "$ac_srcdir/configure"; then
1600: echo &&
1601: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1602: else
1.150 moko 1603: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604: fi || ac_status=$?
1605: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1606: done
1607: fi
1608:
1.150 moko 1609: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1610: if $ac_init_version; then
1611: cat <<\_ACEOF
1.230 moko 1612: parser configure 3.5.2b
1.166 moko 1613: generated by GNU Autoconf 2.69
1.62 paf 1614:
1.166 moko 1615: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 1616: This configure script is free software; the Free Software Foundation
1617: gives unlimited permission to copy, distribute and modify it.
1618: _ACEOF
1.150 moko 1619: exit
1.62 paf 1620: fi
1621:
1.150 moko 1622: ## ------------------------ ##
1623: ## Autoconf initialization. ##
1624: ## ------------------------ ##
1625:
1626: # ac_fn_cxx_try_compile LINENO
1627: # ----------------------------
1628: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629: ac_fn_cxx_try_compile ()
1.62 paf 1630: {
1.150 moko 1631: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632: rm -f conftest.$ac_objext
1633: if { { ac_try="$ac_compile"
1634: case "(($ac_try" in
1635: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636: *) ac_try_echo=$ac_try;;
1637: esac
1638: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639: $as_echo "$ac_try_echo"; } >&5
1640: (eval "$ac_compile") 2>conftest.err
1641: ac_status=$?
1642: if test -s conftest.err; then
1643: grep -v '^ *+' conftest.err >conftest.er1
1644: cat conftest.er1 >&5
1645: mv -f conftest.er1 conftest.err
1646: fi
1647: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648: test $ac_status = 0; } && {
1649: test -z "$ac_cxx_werror_flag" ||
1650: test ! -s conftest.err
1651: } && test -s conftest.$ac_objext; then :
1652: ac_retval=0
1653: else
1654: $as_echo "$as_me: failed program was:" >&5
1655: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1656:
1.150 moko 1657: ac_retval=1
1658: fi
1659: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660: as_fn_set_status $ac_retval
1.62 paf 1661:
1.150 moko 1662: } # ac_fn_cxx_try_compile
1663:
1664: # ac_fn_c_try_compile LINENO
1665: # --------------------------
1666: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667: ac_fn_c_try_compile ()
1668: {
1669: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670: rm -f conftest.$ac_objext
1671: if { { ac_try="$ac_compile"
1672: case "(($ac_try" in
1673: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674: *) ac_try_echo=$ac_try;;
1675: esac
1676: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677: $as_echo "$ac_try_echo"; } >&5
1678: (eval "$ac_compile") 2>conftest.err
1679: ac_status=$?
1680: if test -s conftest.err; then
1681: grep -v '^ *+' conftest.err >conftest.er1
1682: cat conftest.er1 >&5
1683: mv -f conftest.er1 conftest.err
1684: fi
1685: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686: test $ac_status = 0; } && {
1687: test -z "$ac_c_werror_flag" ||
1688: test ! -s conftest.err
1689: } && test -s conftest.$ac_objext; then :
1690: ac_retval=0
1691: else
1692: $as_echo "$as_me: failed program was:" >&5
1693: sed 's/^/| /' conftest.$ac_ext >&5
1694:
1695: ac_retval=1
1696: fi
1697: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698: as_fn_set_status $ac_retval
1699:
1700: } # ac_fn_c_try_compile
1701:
1702: # ac_fn_c_try_link LINENO
1703: # -----------------------
1704: # Try to link conftest.$ac_ext, and return whether this succeeded.
1705: ac_fn_c_try_link ()
1706: {
1707: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708: rm -f conftest.$ac_objext conftest$ac_exeext
1709: if { { ac_try="$ac_link"
1710: case "(($ac_try" in
1711: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712: *) ac_try_echo=$ac_try;;
1713: esac
1714: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715: $as_echo "$ac_try_echo"; } >&5
1716: (eval "$ac_link") 2>conftest.err
1717: ac_status=$?
1718: if test -s conftest.err; then
1719: grep -v '^ *+' conftest.err >conftest.er1
1720: cat conftest.er1 >&5
1721: mv -f conftest.er1 conftest.err
1722: fi
1723: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724: test $ac_status = 0; } && {
1725: test -z "$ac_c_werror_flag" ||
1726: test ! -s conftest.err
1727: } && test -s conftest$ac_exeext && {
1728: test "$cross_compiling" = yes ||
1.166 moko 1729: test -x conftest$ac_exeext
1.150 moko 1730: }; then :
1731: ac_retval=0
1732: else
1733: $as_echo "$as_me: failed program was:" >&5
1734: sed 's/^/| /' conftest.$ac_ext >&5
1735:
1736: ac_retval=1
1737: fi
1738: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1739: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1740: # interfere with the next link command; also delete a directory that is
1741: # left behind by Apple's compiler. We do this before executing the actions.
1742: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744: as_fn_set_status $ac_retval
1745:
1746: } # ac_fn_c_try_link
1747:
1748: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749: # -------------------------------------------------------
1750: # Tests whether HEADER exists and can be compiled using the include files in
1751: # INCLUDES, setting the cache variable VAR accordingly.
1752: ac_fn_c_check_header_compile ()
1753: {
1754: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756: $as_echo_n "checking for $2... " >&6; }
1757: if eval \${$3+:} false; then :
1758: $as_echo_n "(cached) " >&6
1759: else
1760: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761: /* end confdefs.h. */
1762: $4
1763: #include <$2>
1764: _ACEOF
1765: if ac_fn_c_try_compile "$LINENO"; then :
1766: eval "$3=yes"
1767: else
1768: eval "$3=no"
1769: fi
1770: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771: fi
1772: eval ac_res=\$$3
1773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774: $as_echo "$ac_res" >&6; }
1775: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776:
1777: } # ac_fn_c_check_header_compile
1778:
1779: # ac_fn_c_try_cpp LINENO
1780: # ----------------------
1781: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782: ac_fn_c_try_cpp ()
1783: {
1784: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785: if { { ac_try="$ac_cpp conftest.$ac_ext"
1786: case "(($ac_try" in
1787: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788: *) ac_try_echo=$ac_try;;
1789: esac
1790: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791: $as_echo "$ac_try_echo"; } >&5
1792: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793: ac_status=$?
1794: if test -s conftest.err; then
1795: grep -v '^ *+' conftest.err >conftest.er1
1796: cat conftest.er1 >&5
1797: mv -f conftest.er1 conftest.err
1798: fi
1799: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800: test $ac_status = 0; } > conftest.i && {
1801: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802: test ! -s conftest.err
1803: }; then :
1804: ac_retval=0
1805: else
1806: $as_echo "$as_me: failed program was:" >&5
1807: sed 's/^/| /' conftest.$ac_ext >&5
1808:
1809: ac_retval=1
1810: fi
1811: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812: as_fn_set_status $ac_retval
1813:
1814: } # ac_fn_c_try_cpp
1815:
1816: # ac_fn_c_try_run LINENO
1817: # ----------------------
1818: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819: # that executables *can* be run.
1820: ac_fn_c_try_run ()
1821: {
1822: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823: if { { ac_try="$ac_link"
1824: case "(($ac_try" in
1825: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826: *) ac_try_echo=$ac_try;;
1827: esac
1828: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829: $as_echo "$ac_try_echo"; } >&5
1830: (eval "$ac_link") 2>&5
1831: ac_status=$?
1832: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834: { { case "(($ac_try" in
1835: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836: *) ac_try_echo=$ac_try;;
1837: esac
1838: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839: $as_echo "$ac_try_echo"; } >&5
1840: (eval "$ac_try") 2>&5
1841: ac_status=$?
1842: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843: test $ac_status = 0; }; }; then :
1844: ac_retval=0
1845: else
1846: $as_echo "$as_me: program exited with status $ac_status" >&5
1847: $as_echo "$as_me: failed program was:" >&5
1848: sed 's/^/| /' conftest.$ac_ext >&5
1849:
1850: ac_retval=$ac_status
1851: fi
1852: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854: as_fn_set_status $ac_retval
1855:
1856: } # ac_fn_c_try_run
1857:
1858: # ac_fn_c_check_func LINENO FUNC VAR
1859: # ----------------------------------
1860: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861: ac_fn_c_check_func ()
1862: {
1863: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865: $as_echo_n "checking for $2... " >&6; }
1866: if eval \${$3+:} false; then :
1867: $as_echo_n "(cached) " >&6
1868: else
1869: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870: /* end confdefs.h. */
1871: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873: #define $2 innocuous_$2
1874:
1875: /* System header to define __stub macros and hopefully few prototypes,
1876: which can conflict with char $2 (); below.
1877: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878: <limits.h> exists even on freestanding compilers. */
1879:
1880: #ifdef __STDC__
1881: # include <limits.h>
1882: #else
1883: # include <assert.h>
1884: #endif
1885:
1886: #undef $2
1887:
1888: /* Override any GCC internal prototype to avoid an error.
1889: Use char because int might match the return type of a GCC
1890: builtin and then its argument prototype would still apply. */
1891: #ifdef __cplusplus
1892: extern "C"
1893: #endif
1894: char $2 ();
1895: /* The GNU C library defines this for functions which it implements
1896: to always fail with ENOSYS. Some functions are actually named
1897: something starting with __ and the normal name is an alias. */
1898: #if defined __stub_$2 || defined __stub___$2
1899: choke me
1900: #endif
1901:
1902: int
1903: main ()
1904: {
1905: return $2 ();
1906: ;
1907: return 0;
1908: }
1909: _ACEOF
1910: if ac_fn_c_try_link "$LINENO"; then :
1911: eval "$3=yes"
1912: else
1913: eval "$3=no"
1914: fi
1915: rm -f core conftest.err conftest.$ac_objext \
1916: conftest$ac_exeext conftest.$ac_ext
1917: fi
1918: eval ac_res=\$$3
1919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920: $as_echo "$ac_res" >&6; }
1921: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922:
1923: } # ac_fn_c_check_func
1924:
1925: # ac_fn_cxx_try_cpp LINENO
1926: # ------------------------
1927: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1928: ac_fn_cxx_try_cpp ()
1929: {
1930: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931: if { { ac_try="$ac_cpp conftest.$ac_ext"
1932: case "(($ac_try" in
1933: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934: *) ac_try_echo=$ac_try;;
1935: esac
1936: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937: $as_echo "$ac_try_echo"; } >&5
1938: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1939: ac_status=$?
1940: if test -s conftest.err; then
1941: grep -v '^ *+' conftest.err >conftest.er1
1942: cat conftest.er1 >&5
1943: mv -f conftest.er1 conftest.err
1944: fi
1945: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946: test $ac_status = 0; } > conftest.i && {
1947: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1948: test ! -s conftest.err
1949: }; then :
1950: ac_retval=0
1951: else
1952: $as_echo "$as_me: failed program was:" >&5
1953: sed 's/^/| /' conftest.$ac_ext >&5
1954:
1955: ac_retval=1
1956: fi
1957: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958: as_fn_set_status $ac_retval
1959:
1960: } # ac_fn_cxx_try_cpp
1961:
1962: # ac_fn_cxx_try_link LINENO
1963: # -------------------------
1964: # Try to link conftest.$ac_ext, and return whether this succeeded.
1965: ac_fn_cxx_try_link ()
1966: {
1967: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968: rm -f conftest.$ac_objext conftest$ac_exeext
1969: if { { ac_try="$ac_link"
1970: case "(($ac_try" in
1971: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972: *) ac_try_echo=$ac_try;;
1973: esac
1974: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975: $as_echo "$ac_try_echo"; } >&5
1976: (eval "$ac_link") 2>conftest.err
1977: ac_status=$?
1978: if test -s conftest.err; then
1979: grep -v '^ *+' conftest.err >conftest.er1
1980: cat conftest.er1 >&5
1981: mv -f conftest.er1 conftest.err
1982: fi
1983: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984: test $ac_status = 0; } && {
1985: test -z "$ac_cxx_werror_flag" ||
1986: test ! -s conftest.err
1987: } && test -s conftest$ac_exeext && {
1988: test "$cross_compiling" = yes ||
1.166 moko 1989: test -x conftest$ac_exeext
1.150 moko 1990: }; then :
1991: ac_retval=0
1992: else
1993: $as_echo "$as_me: failed program was:" >&5
1994: sed 's/^/| /' conftest.$ac_ext >&5
1995:
1996: ac_retval=1
1997: fi
1998: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1999: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2000: # interfere with the next link command; also delete a directory that is
2001: # left behind by Apple's compiler. We do this before executing the actions.
2002: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004: as_fn_set_status $ac_retval
2005:
2006: } # ac_fn_cxx_try_link
2007:
2008: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2009: # ---------------------------------------------
2010: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2011: # accordingly.
2012: ac_fn_c_check_decl ()
2013: {
2014: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015: as_decl_name=`echo $2|sed 's/ *(.*//'`
2016: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2017: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2018: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2019: if eval \${$3+:} false; then :
2020: $as_echo_n "(cached) " >&6
2021: else
2022: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023: /* end confdefs.h. */
2024: $4
2025: int
2026: main ()
2027: {
2028: #ifndef $as_decl_name
2029: #ifdef __cplusplus
2030: (void) $as_decl_use;
2031: #else
2032: (void) $as_decl_name;
2033: #endif
2034: #endif
2035:
2036: ;
2037: return 0;
2038: }
2039: _ACEOF
2040: if ac_fn_c_try_compile "$LINENO"; then :
2041: eval "$3=yes"
2042: else
2043: eval "$3=no"
2044: fi
2045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046: fi
2047: eval ac_res=\$$3
2048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049: $as_echo "$ac_res" >&6; }
2050: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051:
2052: } # ac_fn_c_check_decl
2053:
2054: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055: # -------------------------------------------
2056: # Tests whether TYPE exists after having included INCLUDES, setting cache
2057: # variable VAR accordingly.
2058: ac_fn_c_check_type ()
2059: {
2060: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062: $as_echo_n "checking for $2... " >&6; }
2063: if eval \${$3+:} false; then :
2064: $as_echo_n "(cached) " >&6
2065: else
2066: eval "$3=no"
2067: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068: /* end confdefs.h. */
2069: $4
2070: int
2071: main ()
2072: {
2073: if (sizeof ($2))
2074: return 0;
2075: ;
2076: return 0;
2077: }
2078: _ACEOF
2079: if ac_fn_c_try_compile "$LINENO"; then :
2080: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081: /* end confdefs.h. */
2082: $4
2083: int
2084: main ()
2085: {
2086: if (sizeof (($2)))
2087: return 0;
2088: ;
2089: return 0;
2090: }
2091: _ACEOF
2092: if ac_fn_c_try_compile "$LINENO"; then :
2093:
2094: else
2095: eval "$3=yes"
2096: fi
2097: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098: fi
2099: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100: fi
2101: eval ac_res=\$$3
2102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103: $as_echo "$ac_res" >&6; }
2104: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105:
2106: } # ac_fn_c_check_type
2107:
1.156 moko 2108: # ac_fn_c_find_uintX_t LINENO BITS VAR
2109: # ------------------------------------
2110: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2111: # accordingly.
2112: ac_fn_c_find_uintX_t ()
2113: {
2114: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2116: $as_echo_n "checking for uint$2_t... " >&6; }
2117: if eval \${$3+:} false; then :
2118: $as_echo_n "(cached) " >&6
2119: else
2120: eval "$3=no"
2121: # Order is important - never check a type that is potentially smaller
2122: # than half of the expected target width.
2123: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2124: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2125: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126: /* end confdefs.h. */
2127: $ac_includes_default
2128: int
2129: main ()
2130: {
2131: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2132: test_array [0] = 0;
2133: return test_array [0];
1.156 moko 2134:
2135: ;
2136: return 0;
2137: }
2138: _ACEOF
2139: if ac_fn_c_try_compile "$LINENO"; then :
2140: case $ac_type in #(
2141: uint$2_t) :
2142: eval "$3=yes" ;; #(
2143: *) :
2144: eval "$3=\$ac_type" ;;
2145: esac
2146: fi
2147: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148: if eval test \"x\$"$3"\" = x"no"; then :
2149:
2150: else
2151: break
2152: fi
2153: done
2154: fi
2155: eval ac_res=\$$3
2156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157: $as_echo "$ac_res" >&6; }
2158: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159:
2160: } # ac_fn_c_find_uintX_t
2161:
1.161 moko 2162: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2163: # ----------------------------------------------------
2164: # Tries to find if the field MEMBER exists in type AGGR, after including
2165: # INCLUDES, setting cache variable VAR accordingly.
2166: ac_fn_c_check_member ()
2167: {
2168: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2170: $as_echo_n "checking for $2.$3... " >&6; }
2171: if eval \${$4+:} false; then :
2172: $as_echo_n "(cached) " >&6
2173: else
2174: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175: /* end confdefs.h. */
2176: $5
2177: int
2178: main ()
2179: {
2180: static $2 ac_aggr;
2181: if (ac_aggr.$3)
2182: return 0;
2183: ;
2184: return 0;
2185: }
2186: _ACEOF
2187: if ac_fn_c_try_compile "$LINENO"; then :
2188: eval "$4=yes"
2189: else
2190: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191: /* end confdefs.h. */
2192: $5
2193: int
2194: main ()
2195: {
2196: static $2 ac_aggr;
2197: if (sizeof ac_aggr.$3)
2198: return 0;
2199: ;
2200: return 0;
2201: }
2202: _ACEOF
2203: if ac_fn_c_try_compile "$LINENO"; then :
2204: eval "$4=yes"
2205: else
2206: eval "$4=no"
2207: fi
2208: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209: fi
2210: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211: fi
2212: eval ac_res=\$$4
2213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214: $as_echo "$ac_res" >&6; }
2215: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216:
2217: } # ac_fn_c_check_member
2218:
1.150 moko 2219: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2220: # -------------------------------------------------------
2221: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2222: # the include files in INCLUDES and setting the cache variable VAR
2223: # accordingly.
2224: ac_fn_c_check_header_mongrel ()
2225: {
2226: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227: if eval \${$3+:} false; then :
2228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229: $as_echo_n "checking for $2... " >&6; }
2230: if eval \${$3+:} false; then :
2231: $as_echo_n "(cached) " >&6
2232: fi
2233: eval ac_res=\$$3
2234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235: $as_echo "$ac_res" >&6; }
2236: else
2237: # Is the header compilable?
2238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2239: $as_echo_n "checking $2 usability... " >&6; }
2240: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241: /* end confdefs.h. */
2242: $4
2243: #include <$2>
2244: _ACEOF
2245: if ac_fn_c_try_compile "$LINENO"; then :
2246: ac_header_compiler=yes
2247: else
2248: ac_header_compiler=no
2249: fi
2250: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2252: $as_echo "$ac_header_compiler" >&6; }
2253:
2254: # Is the header present?
2255: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2256: $as_echo_n "checking $2 presence... " >&6; }
2257: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258: /* end confdefs.h. */
2259: #include <$2>
2260: _ACEOF
2261: if ac_fn_c_try_cpp "$LINENO"; then :
2262: ac_header_preproc=yes
2263: else
2264: ac_header_preproc=no
2265: fi
2266: rm -f conftest.err conftest.i conftest.$ac_ext
2267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2268: $as_echo "$ac_header_preproc" >&6; }
2269:
2270: # So? What about this header?
2271: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2272: yes:no: )
2273: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2274: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2275: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2276: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2277: ;;
2278: no:yes:* )
2279: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2280: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2281: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2282: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2283: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2284: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2285: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2286: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2287: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2289: ;;
2290: esac
2291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2292: $as_echo_n "checking for $2... " >&6; }
2293: if eval \${$3+:} false; then :
2294: $as_echo_n "(cached) " >&6
2295: else
2296: eval "$3=\$ac_header_compiler"
2297: fi
2298: eval ac_res=\$$3
2299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300: $as_echo "$ac_res" >&6; }
2301: fi
2302: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303:
2304: } # ac_fn_c_check_header_mongrel
2305: cat >config.log <<_ACEOF
2306: This file contains any messages produced by compilers while
2307: running configure, to aid debugging if configure makes a mistake.
2308:
1.230 moko 2309: It was created by parser $as_me 3.5.2b, which was
1.166 moko 2310: generated by GNU Autoconf 2.69. Invocation command line was
1.150 moko 2311:
2312: $ $0 $@
2313:
2314: _ACEOF
2315: exec 5>>config.log
2316: {
2317: cat <<_ASUNAME
2318: ## --------- ##
2319: ## Platform. ##
2320: ## --------- ##
2321:
2322: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2323: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2324: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2325: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2326: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2327:
2328: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2329: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2330:
2331: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2332: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2333: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2334: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2335: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2336: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2337: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2338:
2339: _ASUNAME
2340:
2341: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342: for as_dir in $PATH
2343: do
2344: IFS=$as_save_IFS
2345: test -z "$as_dir" && as_dir=.
1.150 moko 2346: $as_echo "PATH: $as_dir"
2347: done
2348: IFS=$as_save_IFS
1.1 paf 2349:
1.62 paf 2350: } >&5
2351:
2352: cat >&5 <<_ACEOF
2353:
2354:
2355: ## ----------- ##
2356: ## Core tests. ##
2357: ## ----------- ##
2358:
2359: _ACEOF
2360:
2361:
2362: # Keep a trace of the command line.
2363: # Strip out --no-create and --no-recursion so they do not pile up.
2364: # Strip out --silent because we don't want to record it for future runs.
2365: # Also quote any args containing shell meta-characters.
2366: # Make two passes to allow for proper duplicate-argument suppression.
2367: ac_configure_args=
2368: ac_configure_args0=
2369: ac_configure_args1=
2370: ac_must_keep_next=false
2371: for ac_pass in 1 2
2372: do
2373: for ac_arg
2374: do
2375: case $ac_arg in
2376: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2377: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2378: | -silent | --silent | --silen | --sile | --sil)
2379: continue ;;
1.150 moko 2380: *\'*)
2381: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2382: esac
2383: case $ac_pass in
1.150 moko 2384: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2385: 2)
1.150 moko 2386: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2387: if test $ac_must_keep_next = true; then
1.86 paf 2388: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2389: else
1.86 paf 2390: case $ac_arg in
2391: *=* | --config-cache | -C | -disable-* | --disable-* \
2392: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2393: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2394: | -with-* | --with-* | -without-* | --without-* | --x)
2395: case "$ac_configure_args0 " in
2396: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2397: esac
2398: ;;
2399: -* ) ac_must_keep_next=true ;;
2400: esac
1.62 paf 2401: fi
1.150 moko 2402: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2403: ;;
2404: esac
2405: done
2406: done
1.150 moko 2407: { ac_configure_args0=; unset ac_configure_args0;}
2408: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2409:
2410: # When interrupted or exit'd, cleanup temporary files, and complete
2411: # config.log. We remove comments because anyway the quotes in there
2412: # would cause problems or look ugly.
1.150 moko 2413: # WARNING: Use '\'' to represent an apostrophe within the trap.
2414: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2415: trap 'exit_status=$?
2416: # Save into config.log some information that might help in debugging.
2417: {
2418: echo
2419:
1.150 moko 2420: $as_echo "## ---------------- ##
1.62 paf 2421: ## Cache variables. ##
1.150 moko 2422: ## ---------------- ##"
1.62 paf 2423: echo
2424: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2425: (
2426: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2427: eval ac_val=\$$ac_var
2428: case $ac_val in #(
2429: *${as_nl}*)
2430: case $ac_var in #(
2431: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2432: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2433: esac
2434: case $ac_var in #(
2435: _ | IFS | as_nl) ;; #(
2436: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2437: *) { eval $ac_var=; unset $ac_var;} ;;
2438: esac ;;
2439: esac
2440: done
1.62 paf 2441: (set) 2>&1 |
1.150 moko 2442: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2443: *${as_nl}ac_space=\ *)
1.62 paf 2444: sed -n \
1.150 moko 2445: "s/'\''/'\''\\\\'\'''\''/g;
2446: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2447: ;; #(
1.62 paf 2448: *)
1.150 moko 2449: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2450: ;;
1.150 moko 2451: esac |
2452: sort
2453: )
1.62 paf 2454: echo
2455:
1.150 moko 2456: $as_echo "## ----------------- ##
1.62 paf 2457: ## Output variables. ##
1.150 moko 2458: ## ----------------- ##"
1.62 paf 2459: echo
2460: for ac_var in $ac_subst_vars
2461: do
1.150 moko 2462: eval ac_val=\$$ac_var
2463: case $ac_val in
2464: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465: esac
2466: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2467: done | sort
2468: echo
2469:
2470: if test -n "$ac_subst_files"; then
1.150 moko 2471: $as_echo "## ------------------- ##
2472: ## File substitutions. ##
2473: ## ------------------- ##"
1.62 paf 2474: echo
2475: for ac_var in $ac_subst_files
2476: do
1.150 moko 2477: eval ac_val=\$$ac_var
2478: case $ac_val in
2479: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2480: esac
2481: $as_echo "$ac_var='\''$ac_val'\''"
1.62 paf 2482: done | sort
2483: echo
2484: fi
2485:
2486: if test -s confdefs.h; then
1.150 moko 2487: $as_echo "## ----------- ##
1.62 paf 2488: ## confdefs.h. ##
1.150 moko 2489: ## ----------- ##"
1.62 paf 2490: echo
1.150 moko 2491: cat confdefs.h
1.62 paf 2492: echo
2493: fi
2494: test "$ac_signal" != 0 &&
1.150 moko 2495: $as_echo "$as_me: caught signal $ac_signal"
2496: $as_echo "$as_me: exit $exit_status"
1.62 paf 2497: } >&5
1.150 moko 2498: rm -f core *.core core.conftest.* &&
2499: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2500: exit $exit_status
1.150 moko 2501: ' 0
1.62 paf 2502: for ac_signal in 1 2 13 15; do
1.150 moko 2503: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2504: done
2505: ac_signal=0
2506:
2507: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2508: rm -f -r conftest* confdefs.h
2509:
2510: $as_echo "/* confdefs.h */" > confdefs.h
1.62 paf 2511:
2512: # Predefined preprocessor variables.
2513:
2514: cat >>confdefs.h <<_ACEOF
2515: #define PACKAGE_NAME "$PACKAGE_NAME"
2516: _ACEOF
2517:
2518: cat >>confdefs.h <<_ACEOF
2519: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2520: _ACEOF
2521:
2522: cat >>confdefs.h <<_ACEOF
2523: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2524: _ACEOF
2525:
2526: cat >>confdefs.h <<_ACEOF
2527: #define PACKAGE_STRING "$PACKAGE_STRING"
2528: _ACEOF
2529:
1.150 moko 2530: cat >>confdefs.h <<_ACEOF
2531: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2532: _ACEOF
1.62 paf 2533:
2534: cat >>confdefs.h <<_ACEOF
1.150 moko 2535: #define PACKAGE_URL "$PACKAGE_URL"
1.62 paf 2536: _ACEOF
2537:
2538:
2539: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2540: # Prefer an explicitly selected file to automatically selected ones.
2541: ac_site_file1=NONE
2542: ac_site_file2=NONE
2543: if test -n "$CONFIG_SITE"; then
2544: # We do not want a PATH search for config.site.
2545: case $CONFIG_SITE in #((
2546: -*) ac_site_file1=./$CONFIG_SITE;;
2547: */*) ac_site_file1=$CONFIG_SITE;;
2548: *) ac_site_file1=./$CONFIG_SITE;;
2549: esac
2550: elif test "x$prefix" != xNONE; then
2551: ac_site_file1=$prefix/share/config.site
2552: ac_site_file2=$prefix/etc/config.site
2553: else
2554: ac_site_file1=$ac_default_prefix/share/config.site
2555: ac_site_file2=$ac_default_prefix/etc/config.site
2556: fi
2557: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2558: do
2559: test "x$ac_site_file" = xNONE && continue
2560: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2561: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2562: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2563: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2564: . "$ac_site_file" \
2565: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2566: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567: as_fn_error $? "failed to load site script $ac_site_file
2568: See \`config.log' for more details" "$LINENO" 5; }
1.1 paf 2569: fi
2570: done
2571:
2572: if test -r "$cache_file"; then
1.150 moko 2573: # Some versions of bash will fail to source /dev/null (special files
2574: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2575: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2576: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2577: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2578: case $cache_file in
1.150 moko 2579: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2580: *) . "./$cache_file";;
1.62 paf 2581: esac
2582: fi
1.1 paf 2583: else
1.150 moko 2584: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2585: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2586: >$cache_file
2587: fi
2588:
2589: # Check that the precious variables saved in the cache have kept the same
2590: # value.
2591: ac_cache_corrupted=false
1.150 moko 2592: for ac_var in $ac_precious_vars; do
1.62 paf 2593: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2594: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 2595: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2596: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 2597: case $ac_old_set,$ac_new_set in
2598: set,)
1.150 moko 2599: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2600: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.62 paf 2601: ac_cache_corrupted=: ;;
2602: ,set)
1.150 moko 2603: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2604: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.62 paf 2605: ac_cache_corrupted=: ;;
2606: ,);;
2607: *)
2608: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 2609: # differences in whitespace do not lead to failure.
2610: ac_old_val_w=`echo x $ac_old_val`
2611: ac_new_val_w=`echo x $ac_new_val`
2612: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2613: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2614: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615: ac_cache_corrupted=:
2616: else
2617: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2618: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619: eval $ac_var=\$ac_old_val
2620: fi
2621: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2622: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2623: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2624: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.62 paf 2625: fi;;
2626: esac
2627: # Pass precious variables to config.status.
2628: if test "$ac_new_set" = set; then
2629: case $ac_new_val in
1.150 moko 2630: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2631: *) ac_arg=$ac_var=$ac_new_val ;;
2632: esac
2633: case " $ac_configure_args " in
2634: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 2635: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 2636: esac
2637: fi
2638: done
2639: if $ac_cache_corrupted; then
1.150 moko 2640: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2643: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2644: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2645: fi
2646: ## -------------------- ##
2647: ## Main body of script. ##
2648: ## -------------------- ##
1.1 paf 2649:
2650: ac_ext=c
2651: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 2652: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655:
2656:
2657:
2658:
2659:
1.229 moko 2660:
1.199 moko 2661: am__api_version='1.16'
1.62 paf 2662:
1.1 paf 2663: ac_aux_dir=
1.150 moko 2664: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2665: if test -f "$ac_dir/install-sh"; then
1.1 paf 2666: ac_aux_dir=$ac_dir
2667: ac_install_sh="$ac_aux_dir/install-sh -c"
2668: break
1.150 moko 2669: elif test -f "$ac_dir/install.sh"; then
1.1 paf 2670: ac_aux_dir=$ac_dir
2671: ac_install_sh="$ac_aux_dir/install.sh -c"
2672: break
1.150 moko 2673: elif test -f "$ac_dir/shtool"; then
1.62 paf 2674: ac_aux_dir=$ac_dir
2675: ac_install_sh="$ac_aux_dir/shtool install -c"
2676: break
1.1 paf 2677: fi
2678: done
2679: if test -z "$ac_aux_dir"; then
1.150 moko 2680: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2681: fi
2682:
2683: # These three variables are undocumented and unsupported,
2684: # and are intended to be withdrawn in a future Autoconf release.
2685: # They can cause serious problems if a builder's source tree is in a directory
2686: # whose full name contains unusual characters.
2687: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2688: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2689: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2690:
1.1 paf 2691:
2692: # Find a good install program. We prefer a C program (faster),
2693: # so one script is as good as another. But avoid the broken or
2694: # incompatible versions:
2695: # SysV /etc/install, /usr/sbin/install
2696: # SunOS /usr/etc/install
2697: # IRIX /sbin/install
2698: # AIX /bin/install
1.62 paf 2699: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2700: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2701: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2702: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 2703: # OS/2's system install, which has a completely different semantic
1.1 paf 2704: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 2705: # Reject install programs that cannot install multiple files.
2706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2707: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 paf 2708: if test -z "$INSTALL"; then
1.150 moko 2709: if ${ac_cv_path_install+:} false; then :
2710: $as_echo_n "(cached) " >&6
1.1 paf 2711: else
1.62 paf 2712: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713: for as_dir in $PATH
2714: do
2715: IFS=$as_save_IFS
2716: test -z "$as_dir" && as_dir=.
1.150 moko 2717: # Account for people who put trailing slashes in PATH elements.
2718: case $as_dir/ in #((
2719: ./ | .// | /[cC]/* | \
1.62 paf 2720: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 2721: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 2722: /usr/ucb/* ) ;;
2723: *)
2724: # OSF1 and SCO ODT 3.0 have their own names for install.
2725: # Don't use installbsd from OSF since it installs stuff as root
2726: # by default.
2727: for ac_prog in ginstall scoinst install; do
2728: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2729: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.86 paf 2730: if test $ac_prog = install &&
2731: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2732: # AIX install. It has an incompatible calling convention.
2733: :
2734: elif test $ac_prog = install &&
2735: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2736: # program-specific install script used by HP pwplus--don't use.
2737: :
2738: else
1.150 moko 2739: rm -rf conftest.one conftest.two conftest.dir
2740: echo one > conftest.one
2741: echo two > conftest.two
2742: mkdir conftest.dir
2743: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2744: test -s conftest.one && test -s conftest.two &&
2745: test -s conftest.dir/conftest.one &&
2746: test -s conftest.dir/conftest.two
2747: then
2748: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2749: break 3
2750: fi
1.86 paf 2751: fi
2752: fi
1.1 paf 2753: done
1.62 paf 2754: done
2755: ;;
2756: esac
2757:
1.150 moko 2758: done
2759: IFS=$as_save_IFS
2760:
2761: rm -rf conftest.one conftest.two conftest.dir
1.1 paf 2762:
2763: fi
2764: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 2765: INSTALL=$ac_cv_path_install
1.1 paf 2766: else
1.150 moko 2767: # As a last resort, use the slow shell script. Don't cache a
2768: # value for INSTALL within a source directory, because that will
1.1 paf 2769: # break other packages using the cache if that directory is
1.150 moko 2770: # removed, or if the value is a relative name.
1.62 paf 2771: INSTALL=$ac_install_sh
1.1 paf 2772: fi
2773: fi
1.150 moko 2774: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2775: $as_echo "$INSTALL" >&6; }
1.1 paf 2776:
2777: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2778: # It thinks the first close brace ends the variable substitution.
2779: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2780:
1.62 paf 2781: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2782:
2783: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2784:
1.150 moko 2785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2786: $as_echo_n "checking whether build environment is sane... " >&6; }
2787: # Reject unsafe characters in $srcdir or the absolute working directory
2788: # name. Accept space and tab only in the latter.
2789: am_lf='
2790: '
2791: case `pwd` in
2792: *[\\\"\#\$\&\'\`$am_lf]*)
2793: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2794: esac
2795: case $srcdir in
2796: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.187 moko 2797: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.150 moko 2798: esac
2799:
1.187 moko 2800: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 2801: # arguments. Must try -L first in case configure is actually a
2802: # symlink; some systems play weird games with the mod time of symlinks
2803: # (eg FreeBSD returns the mod time of the symlink's containing
2804: # directory).
2805: if (
1.187 moko 2806: am_has_slept=no
2807: for am_try in 1 2; do
2808: echo "timestamp, slept: $am_has_slept" > conftest.file
2809: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2810: if test "$*" = "X"; then
2811: # -L didn't work.
2812: set X `ls -t "$srcdir/configure" conftest.file`
2813: fi
2814: if test "$*" != "X $srcdir/configure conftest.file" \
2815: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 2816:
1.187 moko 2817: # If neither matched, then we have a broken ls. This can happen
2818: # if, for instance, CONFIG_SHELL is bash and it inherits a
2819: # broken ls alias from the environment. This has actually
2820: # happened. Such a system could not be considered "sane".
2821: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2822: alias in your environment" "$LINENO" 5
2823: fi
2824: if test "$2" = conftest.file || test $am_try -eq 2; then
2825: break
2826: fi
2827: # Just in case.
2828: sleep 1
2829: am_has_slept=yes
2830: done
1.62 paf 2831: test "$2" = conftest.file
1.1 paf 2832: )
2833: then
2834: # Ok.
2835: :
2836: else
1.150 moko 2837: as_fn_error $? "newly created file is older than distributed files!
2838: Check your system clock" "$LINENO" 5
1.1 paf 2839: fi
1.150 moko 2840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2841: $as_echo "yes" >&6; }
1.187 moko 2842: # If we didn't sleep, we still need to ensure time stamps of config.status and
2843: # generated files are strictly newer.
2844: am_sleep_pid=
2845: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2846: ( sleep 1 ) &
2847: am_sleep_pid=$!
2848: fi
2849:
2850: rm -f conftest.file
2851:
1.1 paf 2852: test "$program_prefix" != NONE &&
1.150 moko 2853: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 2854: # Use a double $ so make ignores it.
2855: test "$program_suffix" != NONE &&
1.150 moko 2856: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2857: # Double any \ or $.
1.62 paf 2858: # By default was `s,x,x', remove it if useless.
1.150 moko 2859: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2860: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.62 paf 2861:
1.187 moko 2862: # Expand $ac_aux_dir to an absolute path.
2863: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.62 paf 2864:
1.150 moko 2865: if test x"${MISSING+set}" != xset; then
1.216 moko 2866: MISSING="\${SHELL} '$am_aux_dir/missing'"
1.150 moko 2867: fi
1.62 paf 2868: # Use eval to expand $SHELL
1.187 moko 2869: if eval "$MISSING --is-lightweight"; then
2870: am_missing_run="$MISSING "
1.62 paf 2871: else
2872: am_missing_run=
1.187 moko 2873: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2874: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.62 paf 2875: fi
2876:
1.187 moko 2877: if test x"${install_sh+set}" != xset; then
1.150 moko 2878: case $am_aux_dir in
2879: *\ * | *\ *)
2880: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2881: *)
2882: install_sh="\${SHELL} $am_aux_dir/install-sh"
2883: esac
1.86 paf 2884: fi
2885:
1.187 moko 2886: # Installed binaries are usually stripped using 'strip' when the user
2887: # run "make install-strip". However 'strip' might not be the right
1.150 moko 2888: # tool to use in cross-compilation environments, therefore Automake
1.187 moko 2889: # will honor the 'STRIP' environment variable to overrule this program.
1.150 moko 2890: if test "$cross_compiling" != no; then
2891: if test -n "$ac_tool_prefix"; then
2892: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2893: set dummy ${ac_tool_prefix}strip; ac_word=$2
2894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895: $as_echo_n "checking for $ac_word... " >&6; }
2896: if ${ac_cv_prog_STRIP+:} false; then :
2897: $as_echo_n "(cached) " >&6
2898: else
2899: if test -n "$STRIP"; then
2900: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2901: else
2902: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903: for as_dir in $PATH
2904: do
2905: IFS=$as_save_IFS
2906: test -z "$as_dir" && as_dir=.
2907: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2908: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2909: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2910: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911: break 2
2912: fi
2913: done
2914: done
2915: IFS=$as_save_IFS
2916:
2917: fi
2918: fi
2919: STRIP=$ac_cv_prog_STRIP
2920: if test -n "$STRIP"; then
2921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2922: $as_echo "$STRIP" >&6; }
2923: else
2924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925: $as_echo "no" >&6; }
2926: fi
2927:
2928:
2929: fi
2930: if test -z "$ac_cv_prog_STRIP"; then
2931: ac_ct_STRIP=$STRIP
2932: # Extract the first word of "strip", so it can be a program name with args.
2933: set dummy strip; ac_word=$2
2934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935: $as_echo_n "checking for $ac_word... " >&6; }
2936: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2937: $as_echo_n "(cached) " >&6
2938: else
2939: if test -n "$ac_ct_STRIP"; then
2940: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2941: else
2942: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943: for as_dir in $PATH
2944: do
2945: IFS=$as_save_IFS
2946: test -z "$as_dir" && as_dir=.
2947: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2948: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.150 moko 2949: ac_cv_prog_ac_ct_STRIP="strip"
2950: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951: break 2
2952: fi
2953: done
2954: done
2955: IFS=$as_save_IFS
2956:
2957: fi
2958: fi
2959: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2960: if test -n "$ac_ct_STRIP"; then
2961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2962: $as_echo "$ac_ct_STRIP" >&6; }
2963: else
2964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965: $as_echo "no" >&6; }
2966: fi
2967:
2968: if test "x$ac_ct_STRIP" = x; then
2969: STRIP=":"
2970: else
2971: case $cross_compiling:$ac_tool_warned in
2972: yes:)
2973: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975: ac_tool_warned=yes ;;
2976: esac
2977: STRIP=$ac_ct_STRIP
2978: fi
2979: else
2980: STRIP="$ac_cv_prog_STRIP"
2981: fi
2982:
2983: fi
2984: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2985:
2986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2987: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2988: if test -z "$MKDIR_P"; then
2989: if ${ac_cv_path_mkdir+:} false; then :
2990: $as_echo_n "(cached) " >&6
2991: else
2992: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2994: do
2995: IFS=$as_save_IFS
2996: test -z "$as_dir" && as_dir=.
2997: for ac_prog in mkdir gmkdir; do
2998: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 2999: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.150 moko 3000: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3001: 'mkdir (GNU coreutils) '* | \
3002: 'mkdir (coreutils) '* | \
3003: 'mkdir (fileutils) '4.1*)
3004: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3005: break 3;;
3006: esac
3007: done
3008: done
3009: done
3010: IFS=$as_save_IFS
3011:
3012: fi
3013:
3014: test -d ./--version && rmdir ./--version
3015: if test "${ac_cv_path_mkdir+set}" = set; then
3016: MKDIR_P="$ac_cv_path_mkdir -p"
3017: else
3018: # As a last resort, use the slow shell script. Don't cache a
3019: # value for MKDIR_P within a source directory, because that will
3020: # break other packages using the cache if that directory is
3021: # removed, or if the value is a relative name.
3022: MKDIR_P="$ac_install_sh -d"
3023: fi
3024: fi
3025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3026: $as_echo "$MKDIR_P" >&6; }
3027:
3028: for ac_prog in gawk mawk nawk awk
1.62 paf 3029: do
3030: # Extract the first word of "$ac_prog", so it can be a program name with args.
3031: set dummy $ac_prog; ac_word=$2
1.150 moko 3032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033: $as_echo_n "checking for $ac_word... " >&6; }
3034: if ${ac_cv_prog_AWK+:} false; then :
3035: $as_echo_n "(cached) " >&6
1.62 paf 3036: else
3037: if test -n "$AWK"; then
3038: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3039: else
3040: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041: for as_dir in $PATH
3042: do
3043: IFS=$as_save_IFS
3044: test -z "$as_dir" && as_dir=.
1.150 moko 3045: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3046: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3047: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3048: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3049: break 2
3050: fi
3051: done
1.150 moko 3052: done
3053: IFS=$as_save_IFS
1.62 paf 3054:
3055: fi
3056: fi
3057: AWK=$ac_cv_prog_AWK
3058: if test -n "$AWK"; then
1.150 moko 3059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3060: $as_echo "$AWK" >&6; }
1.62 paf 3061: else
1.150 moko 3062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063: $as_echo "no" >&6; }
1.62 paf 3064: fi
1.1 paf 3065:
1.150 moko 3066:
1.62 paf 3067: test -n "$AWK" && break
3068: done
1.1 paf 3069:
1.150 moko 3070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3071: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3072: set x ${MAKE-make}
3073: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3074: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3075: $as_echo_n "(cached) " >&6
1.1 paf 3076: else
1.62 paf 3077: cat >conftest.make <<\_ACEOF
1.150 moko 3078: SHELL = /bin/sh
1.1 paf 3079: all:
1.150 moko 3080: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3081: _ACEOF
1.150 moko 3082: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3083: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3084: *@@@%%%=?*=@@@%%%*)
3085: eval ac_cv_prog_make_${ac_make}_set=yes;;
3086: *)
3087: eval ac_cv_prog_make_${ac_make}_set=no;;
3088: esac
1.62 paf 3089: rm -f conftest.make
1.1 paf 3090: fi
1.150 moko 3091: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093: $as_echo "yes" >&6; }
1.1 paf 3094: SET_MAKE=
3095: else
1.150 moko 3096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097: $as_echo "no" >&6; }
1.1 paf 3098: SET_MAKE="MAKE=${MAKE-make}"
3099: fi
3100:
1.86 paf 3101: rm -rf .tst 2>/dev/null
3102: mkdir .tst 2>/dev/null
3103: if test -d .tst; then
3104: am__leading_dot=.
3105: else
3106: am__leading_dot=_
3107: fi
3108: rmdir .tst 2>/dev/null
3109:
1.187 moko 3110: # Check whether --enable-silent-rules was given.
3111: if test "${enable_silent_rules+set}" = set; then :
3112: enableval=$enable_silent_rules;
3113: fi
3114:
3115: case $enable_silent_rules in # (((
3116: yes) AM_DEFAULT_VERBOSITY=0;;
3117: no) AM_DEFAULT_VERBOSITY=1;;
3118: *) AM_DEFAULT_VERBOSITY=1;;
3119: esac
3120: am_make=${MAKE-make}
3121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3122: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3123: if ${am_cv_make_support_nested_variables+:} false; then :
3124: $as_echo_n "(cached) " >&6
3125: else
3126: if $as_echo 'TRUE=$(BAR$(V))
3127: BAR0=false
3128: BAR1=true
3129: V=1
3130: am__doit:
3131: @$(TRUE)
3132: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3133: am_cv_make_support_nested_variables=yes
3134: else
3135: am_cv_make_support_nested_variables=no
3136: fi
3137: fi
3138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3139: $as_echo "$am_cv_make_support_nested_variables" >&6; }
3140: if test $am_cv_make_support_nested_variables = yes; then
3141: AM_V='$(V)'
3142: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3143: else
3144: AM_V=$AM_DEFAULT_VERBOSITY
3145: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3146: fi
3147: AM_BACKSLASH='\'
3148:
1.150 moko 3149: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3150: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3151: # is not polluted with repeated "-I."
3152: am__isrc=' -I$(srcdir)'
3153: # test to see if srcdir already configured
3154: if test -f $srcdir/config.status; then
3155: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3156: fi
1.62 paf 3157: fi
3158:
3159: # test whether we have cygpath
3160: if test -z "$CYGPATH_W"; then
3161: if (cygpath --version) >/dev/null 2>/dev/null; then
3162: CYGPATH_W='cygpath -w'
3163: else
3164: CYGPATH_W=echo
3165: fi
3166: fi
3167:
3168:
3169: # Define the identity of the package.
1.128 moko 3170: PACKAGE='parser'
1.230 moko 3171: VERSION='3.5.2b'
1.128 moko 3172:
3173:
3174: cat >>confdefs.h <<_ACEOF
3175: #define PACKAGE "$PACKAGE"
3176: _ACEOF
1.1 paf 3177:
3178:
1.128 moko 3179: cat >>confdefs.h <<_ACEOF
3180: #define VERSION "$VERSION"
3181: _ACEOF
3182:
1.62 paf 3183: # Some tools Automake needs.
3184:
3185: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3186:
3187:
3188: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3189:
3190:
3191: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3192:
3193:
3194: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3195:
3196:
3197: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 3198:
1.187 moko 3199: # For better backward compatibility. To be removed once Automake 1.9.x
3200: # dies out for good. For more background, see:
1.199 moko 3201: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3202: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1.187 moko 3203: mkdir_p='$(MKDIR_P)'
3204:
3205: # We need awk for the "check" target (and possibly the TAP driver). The
3206: # system "awk" is bad on some platforms.
3207: # Always define AMTAR for backward compatibility. Yes, it's still used
3208: # in the wild :-( We should find a proper way to deprecate it ...
3209: AMTAR='$${TAR-tar}'
3210:
3211:
3212: # We'll loop over all known methods to create a tar archive until one works.
3213: _am_tools='gnutar pax cpio none'
3214:
3215: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3216:
1.86 paf 3217:
3218:
3219:
3220:
1.62 paf 3221:
1.187 moko 3222: # POSIX will say in a future version that running "rm -f" with no argument
3223: # is OK; and we want to be able to make that assumption in our Makefile
3224: # recipes. So use an aggressive probe to check that the usage we want is
3225: # actually supported "in the wild" to an acceptable degree.
3226: # See automake bug#10828.
3227: # To make any issue more visible, cause the running configure to be aborted
3228: # by default if the 'rm' program in use doesn't match our expectations; the
3229: # user can still override this though.
3230: if rm -f && rm -fr && rm -rf; then : OK; else
3231: cat >&2 <<'END'
3232: Oops!
1.1 paf 3233:
1.187 moko 3234: Your 'rm' program seems unable to run without file operands specified
3235: on the command line, even when the '-f' option is present. This is contrary
3236: to the behaviour of most rm programs out there, and not conforming with
3237: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3238:
3239: Please tell bug-automake@gnu.org about your system, including the value
3240: of your $PATH and any error possibly output before this message. This
3241: can help us improve future automake versions.
3242:
3243: END
3244: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3245: echo 'Configuration will proceed anyway, since you have set the' >&2
3246: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3247: echo >&2
3248: else
3249: cat >&2 <<'END'
3250: Aborting the configuration process, to ensure you take notice of the issue.
3251:
3252: You can download and install GNU coreutils to get an 'rm' implementation
1.199 moko 3253: that behaves properly: <https://www.gnu.org/software/coreutils/>.
1.187 moko 3254:
3255: If you want to complete the configuration process using your problematic
3256: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3257: to "yes", and re-run configure.
3258:
3259: END
3260: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3261: fi
3262: fi
1.1 paf 3263:
3264:
1.128 moko 3265:
1.12 paf 3266: P3S=`cd $srcdir/src ; pwd`
1.1 paf 3267:
3268:
1.128 moko 3269:
1.41 paf 3270: # Make sure we can run config.sub.
1.150 moko 3271: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3272: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.62 paf 3273:
1.150 moko 3274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3275: $as_echo_n "checking build system type... " >&6; }
3276: if ${ac_cv_build+:} false; then :
3277: $as_echo_n "(cached) " >&6
3278: else
3279: ac_build_alias=$build_alias
3280: test "x$ac_build_alias" = x &&
3281: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3282: test "x$ac_build_alias" = x &&
3283: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3284: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3285: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3286:
3287: fi
3288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3289: $as_echo "$ac_cv_build" >&6; }
3290: case $ac_cv_build in
3291: *-*-*) ;;
3292: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3293: esac
3294: build=$ac_cv_build
3295: ac_save_IFS=$IFS; IFS='-'
3296: set x $ac_cv_build
3297: shift
3298: build_cpu=$1
3299: build_vendor=$2
3300: shift; shift
3301: # Remember, the first character of IFS is used to create $*,
3302: # except with old shells:
3303: build_os=$*
3304: IFS=$ac_save_IFS
3305: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3306:
3307:
3308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3309: $as_echo_n "checking host system type... " >&6; }
3310: if ${ac_cv_host+:} false; then :
3311: $as_echo_n "(cached) " >&6
3312: else
3313: if test "x$host_alias" = x; then
3314: ac_cv_host=$ac_cv_build
3315: else
3316: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3317: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.62 paf 3318: fi
3319:
3320: fi
1.150 moko 3321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3322: $as_echo "$ac_cv_host" >&6; }
3323: case $ac_cv_host in
3324: *-*-*) ;;
3325: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3326: esac
1.62 paf 3327: host=$ac_cv_host
1.150 moko 3328: ac_save_IFS=$IFS; IFS='-'
3329: set x $ac_cv_host
3330: shift
3331: host_cpu=$1
3332: host_vendor=$2
3333: shift; shift
3334: # Remember, the first character of IFS is used to create $*,
3335: # except with old shells:
3336: host_os=$*
3337: IFS=$ac_save_IFS
3338: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 3339:
3340:
3341:
1.148 moko 3342: cat >>confdefs.h <<_ACEOF
3343: #define PARSER_VERSION "$VERSION (compiled on $host)"
1.147 moko 3344: _ACEOF
3345:
3346:
1.41 paf 3347:
1.67 paf 3348: case $host_os in
3349: *cygwin* )
1.150 moko 3350: $as_echo "#define CYGWIN /**/" >>confdefs.h
1.67 paf 3351: ;;
3352: esac
1.41 paf 3353:
1.128 moko 3354:
1.1 paf 3355:
1.62 paf 3356: for ac_prog in gawk mawk nawk awk
1.41 paf 3357: do
1.62 paf 3358: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3359: set dummy $ac_prog; ac_word=$2
1.150 moko 3360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361: $as_echo_n "checking for $ac_word... " >&6; }
3362: if ${ac_cv_prog_AWK+:} false; then :
3363: $as_echo_n "(cached) " >&6
1.41 paf 3364: else
3365: if test -n "$AWK"; then
3366: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3367: else
1.62 paf 3368: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369: for as_dir in $PATH
3370: do
3371: IFS=$as_save_IFS
3372: test -z "$as_dir" && as_dir=.
1.150 moko 3373: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3374: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3375: ac_cv_prog_AWK="$ac_prog"
1.150 moko 3376: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3377: break 2
3378: fi
3379: done
1.150 moko 3380: done
3381: IFS=$as_save_IFS
1.62 paf 3382:
1.41 paf 3383: fi
3384: fi
1.62 paf 3385: AWK=$ac_cv_prog_AWK
1.41 paf 3386: if test -n "$AWK"; then
1.150 moko 3387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3388: $as_echo "$AWK" >&6; }
1.41 paf 3389: else
1.150 moko 3390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391: $as_echo "no" >&6; }
1.41 paf 3392: fi
3393:
1.150 moko 3394:
1.62 paf 3395: test -n "$AWK" && break
1.41 paf 3396: done
3397:
3398:
3399: for ac_prog in 'bison -y' byacc
3400: do
1.62 paf 3401: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 3402: set dummy $ac_prog; ac_word=$2
1.150 moko 3403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404: $as_echo_n "checking for $ac_word... " >&6; }
3405: if ${ac_cv_prog_YACC+:} false; then :
3406: $as_echo_n "(cached) " >&6
1.41 paf 3407: else
3408: if test -n "$YACC"; then
3409: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3410: else
1.62 paf 3411: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412: for as_dir in $PATH
3413: do
3414: IFS=$as_save_IFS
3415: test -z "$as_dir" && as_dir=.
1.150 moko 3416: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3417: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.62 paf 3418: ac_cv_prog_YACC="$ac_prog"
1.150 moko 3419: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3420: break 2
3421: fi
3422: done
1.150 moko 3423: done
3424: IFS=$as_save_IFS
1.62 paf 3425:
1.41 paf 3426: fi
3427: fi
1.62 paf 3428: YACC=$ac_cv_prog_YACC
1.41 paf 3429: if test -n "$YACC"; then
1.150 moko 3430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3431: $as_echo "$YACC" >&6; }
1.41 paf 3432: else
1.150 moko 3433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434: $as_echo "no" >&6; }
1.41 paf 3435: fi
3436:
1.150 moko 3437:
1.62 paf 3438: test -n "$YACC" && break
1.41 paf 3439: done
3440: test -n "$YACC" || YACC="yacc"
3441:
3442: if test "$YACC" != "bison -y"; then
1.150 moko 3443: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
3444: $as_echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 3445: else
1.150 moko 3446: { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
3447: $as_echo_n "checking bison version... " >&6; }
1.67 paf 3448: oldIFS=$IFS; IFS=.
3449: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
3450: IFS=$oldIFS
3451: if test "$1" = "1" -a "$2" -lt "25"; then
1.150 moko 3452: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
3453: $as_echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 3454: fi
1.150 moko 3455: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
3456: $as_echo "$1.$2 (ok)" >&6; }
1.62 paf 3457: fi
3458:
1.150 moko 3459: ac_ext=cpp
1.66 paf 3460: ac_cpp='$CXXCPP $CPPFLAGS'
3461: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 3464: if test -z "$CXX"; then
3465: if test -n "$CCC"; then
3466: CXX=$CCC
3467: else
3468: if test -n "$ac_tool_prefix"; then
3469: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3470: do
3471: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3472: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 3473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474: $as_echo_n "checking for $ac_word... " >&6; }
3475: if ${ac_cv_prog_CXX+:} false; then :
3476: $as_echo_n "(cached) " >&6
1.62 paf 3477: else
1.66 paf 3478: if test -n "$CXX"; then
3479: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 3480: else
3481: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482: for as_dir in $PATH
3483: do
3484: IFS=$as_save_IFS
3485: test -z "$as_dir" && as_dir=.
1.150 moko 3486: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3487: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3488: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.150 moko 3489: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3490: break 2
3491: fi
3492: done
1.150 moko 3493: done
3494: IFS=$as_save_IFS
1.62 paf 3495:
3496: fi
3497: fi
1.66 paf 3498: CXX=$ac_cv_prog_CXX
3499: if test -n "$CXX"; then
1.150 moko 3500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3501: $as_echo "$CXX" >&6; }
1.62 paf 3502: else
1.150 moko 3503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504: $as_echo "no" >&6; }
1.41 paf 3505: fi
3506:
1.150 moko 3507:
1.66 paf 3508: test -n "$CXX" && break
3509: done
1.62 paf 3510: fi
1.66 paf 3511: if test -z "$CXX"; then
3512: ac_ct_CXX=$CXX
1.150 moko 3513: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.66 paf 3514: do
3515: # Extract the first word of "$ac_prog", so it can be a program name with args.
3516: set dummy $ac_prog; ac_word=$2
1.150 moko 3517: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518: $as_echo_n "checking for $ac_word... " >&6; }
3519: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3520: $as_echo_n "(cached) " >&6
1.62 paf 3521: else
1.66 paf 3522: if test -n "$ac_ct_CXX"; then
3523: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 3524: else
3525: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526: for as_dir in $PATH
3527: do
3528: IFS=$as_save_IFS
3529: test -z "$as_dir" && as_dir=.
1.150 moko 3530: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 3531: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3532: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.150 moko 3533: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 3534: break 2
3535: fi
3536: done
1.150 moko 3537: done
3538: IFS=$as_save_IFS
1.62 paf 3539:
3540: fi
3541: fi
1.66 paf 3542: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3543: if test -n "$ac_ct_CXX"; then
1.150 moko 3544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3545: $as_echo "$ac_ct_CXX" >&6; }
1.62 paf 3546: else
1.150 moko 3547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548: $as_echo "no" >&6; }
1.62 paf 3549: fi
3550:
1.150 moko 3551:
1.66 paf 3552: test -n "$ac_ct_CXX" && break
3553: done
3554:
1.150 moko 3555: if test "x$ac_ct_CXX" = x; then
3556: CXX="g++"
3557: else
3558: case $cross_compiling:$ac_tool_warned in
3559: yes:)
3560: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3561: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3562: ac_tool_warned=yes ;;
3563: esac
3564: CXX=$ac_ct_CXX
3565: fi
1.62 paf 3566: fi
3567:
1.150 moko 3568: fi
3569: fi
1.66 paf 3570: # Provide some information about the compiler.
1.150 moko 3571: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3572: set X $ac_compile
3573: ac_compiler=$2
3574: for ac_option in --version -v -V -qversion; do
3575: { { ac_try="$ac_compiler $ac_option >&5"
3576: case "(($ac_try" in
3577: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578: *) ac_try_echo=$ac_try;;
3579: esac
3580: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581: $as_echo "$ac_try_echo"; } >&5
3582: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 3583: ac_status=$?
1.150 moko 3584: if test -s conftest.err; then
3585: sed '10a\
3586: ... rest of stderr output deleted ...
3587: 10q' conftest.err >conftest.er1
3588: cat conftest.er1 >&5
3589: fi
3590: rm -f conftest.er1 conftest.err
3591: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592: test $ac_status = 0; }
3593: done
1.66 paf 3594:
1.150 moko 3595: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3596: /* end confdefs.h. */
3597:
3598: int
3599: main ()
3600: {
3601:
3602: ;
3603: return 0;
3604: }
3605: _ACEOF
3606: ac_clean_files_save=$ac_clean_files
1.150 moko 3607: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 3608: # Try to create an executable without -o first, disregard a.out.
3609: # It will help us diagnose broken compilers, and finding out an intuition
3610: # of exeext.
1.150 moko 3611: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3612: $as_echo_n "checking whether the C++ compiler works... " >&6; }
3613: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3614:
3615: # The possible output files:
3616: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3617:
3618: ac_rmfiles=
3619: for ac_file in $ac_files
3620: do
3621: case $ac_file in
3622: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3623: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3624: esac
3625: done
3626: rm -f $ac_rmfiles
3627:
3628: if { { ac_try="$ac_link_default"
3629: case "(($ac_try" in
3630: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631: *) ac_try_echo=$ac_try;;
3632: esac
3633: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634: $as_echo "$ac_try_echo"; } >&5
3635: (eval "$ac_link_default") 2>&5
3636: ac_status=$?
3637: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638: test $ac_status = 0; }; then :
3639: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3640: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3641: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3642: # so that the user can short-circuit this test for compilers unknown to
3643: # Autoconf.
3644: for ac_file in $ac_files ''
1.62 paf 3645: do
1.66 paf 3646: test -f "$ac_file" || continue
3647: case $ac_file in
1.150 moko 3648: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 3649: ;;
1.66 paf 3650: [ab].out )
1.86 paf 3651: # We found the default executable, but exeext='' is most
3652: # certainly right.
3653: break;;
1.66 paf 3654: *.* )
1.150 moko 3655: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3656: then :; else
3657: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3658: fi
3659: # We set ac_cv_exeext here because the later test for it is not
3660: # safe: cross compilers may not add the suffix if given an `-o'
3661: # argument, so we may need to know it at that point already.
3662: # Even if this section looks crufty: it has the advantage of
3663: # actually working.
1.86 paf 3664: break;;
1.66 paf 3665: * )
1.86 paf 3666: break;;
1.66 paf 3667: esac
1.62 paf 3668: done
1.150 moko 3669: test "$ac_cv_exeext" = no && ac_cv_exeext=
3670:
1.66 paf 3671: else
1.150 moko 3672: ac_file=''
3673: fi
3674: if test -z "$ac_file"; then :
3675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676: $as_echo "no" >&6; }
3677: $as_echo "$as_me: failed program was:" >&5
1.66 paf 3678: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 3679:
1.150 moko 3680: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682: as_fn_error 77 "C++ compiler cannot create executables
3683: See \`config.log' for more details" "$LINENO" 5; }
3684: else
3685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686: $as_echo "yes" >&6; }
1.1 paf 3687: fi
1.150 moko 3688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3689: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3691: $as_echo "$ac_file" >&6; }
1.66 paf 3692: ac_exeext=$ac_cv_exeext
1.62 paf 3693:
1.150 moko 3694: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 3695: ac_clean_files=$ac_clean_files_save
1.150 moko 3696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3697: $as_echo_n "checking for suffix of executables... " >&6; }
3698: if { { ac_try="$ac_link"
3699: case "(($ac_try" in
3700: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701: *) ac_try_echo=$ac_try;;
3702: esac
3703: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704: $as_echo "$ac_try_echo"; } >&5
3705: (eval "$ac_link") 2>&5
1.62 paf 3706: ac_status=$?
1.150 moko 3707: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708: test $ac_status = 0; }; then :
1.62 paf 3709: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3710: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3711: # work properly (i.e., refer to `conftest.exe'), while it won't with
3712: # `rm'.
3713: for ac_file in conftest.exe conftest conftest.*; do
3714: test -f "$ac_file" || continue
3715: case $ac_file in
1.150 moko 3716: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 3717: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 3718: break;;
1.62 paf 3719: * ) break;;
3720: esac
3721: done
3722: else
1.150 moko 3723: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3726: See \`config.log' for more details" "$LINENO" 5; }
3727: fi
3728: rm -f conftest conftest$ac_cv_exeext
3729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3730: $as_echo "$ac_cv_exeext" >&6; }
1.62 paf 3731:
3732: rm -f conftest.$ac_ext
3733: EXEEXT=$ac_cv_exeext
3734: ac_exeext=$EXEEXT
1.150 moko 3735: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736: /* end confdefs.h. */
3737: #include <stdio.h>
3738: int
3739: main ()
3740: {
3741: FILE *f = fopen ("conftest.out", "w");
3742: return ferror (f) || fclose (f) != 0;
3743:
3744: ;
3745: return 0;
3746: }
3747: _ACEOF
3748: ac_clean_files="$ac_clean_files conftest.out"
3749: # Check that the compiler produces executables we can run. If not, either
3750: # the compiler is broken, or we cross compile.
3751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3752: $as_echo_n "checking whether we are cross compiling... " >&6; }
3753: if test "$cross_compiling" != yes; then
3754: { { ac_try="$ac_link"
3755: case "(($ac_try" in
3756: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757: *) ac_try_echo=$ac_try;;
3758: esac
3759: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760: $as_echo "$ac_try_echo"; } >&5
3761: (eval "$ac_link") 2>&5
3762: ac_status=$?
3763: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764: test $ac_status = 0; }
3765: if { ac_try='./conftest$ac_cv_exeext'
3766: { { case "(($ac_try" in
3767: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768: *) ac_try_echo=$ac_try;;
3769: esac
3770: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771: $as_echo "$ac_try_echo"; } >&5
3772: (eval "$ac_try") 2>&5
3773: ac_status=$?
3774: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775: test $ac_status = 0; }; }; then
3776: cross_compiling=no
3777: else
3778: if test "$cross_compiling" = maybe; then
3779: cross_compiling=yes
3780: else
3781: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783: as_fn_error $? "cannot run C++ compiled programs.
3784: If you meant to cross compile, use \`--host'.
3785: See \`config.log' for more details" "$LINENO" 5; }
3786: fi
3787: fi
3788: fi
3789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3790: $as_echo "$cross_compiling" >&6; }
3791:
3792: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3793: ac_clean_files=$ac_clean_files_save
3794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3795: $as_echo_n "checking for suffix of object files... " >&6; }
3796: if ${ac_cv_objext+:} false; then :
3797: $as_echo_n "(cached) " >&6
1.62 paf 3798: else
1.150 moko 3799: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3800: /* end confdefs.h. */
3801:
3802: int
3803: main ()
3804: {
3805:
3806: ;
3807: return 0;
3808: }
3809: _ACEOF
3810: rm -f conftest.o conftest.obj
1.150 moko 3811: if { { ac_try="$ac_compile"
3812: case "(($ac_try" in
3813: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814: *) ac_try_echo=$ac_try;;
3815: esac
3816: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817: $as_echo "$ac_try_echo"; } >&5
3818: (eval "$ac_compile") 2>&5
3819: ac_status=$?
3820: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821: test $ac_status = 0; }; then :
3822: for ac_file in conftest.o conftest.obj conftest.*; do
3823: test -f "$ac_file" || continue;
1.62 paf 3824: case $ac_file in
1.150 moko 3825: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 3826: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3827: break;;
3828: esac
3829: done
3830: else
1.150 moko 3831: $as_echo "$as_me: failed program was:" >&5
1.62 paf 3832: sed 's/^/| /' conftest.$ac_ext >&5
3833:
1.150 moko 3834: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836: as_fn_error $? "cannot compute suffix of object files: cannot compile
3837: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 3838: fi
3839: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3840: fi
1.150 moko 3841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3842: $as_echo "$ac_cv_objext" >&6; }
1.66 paf 3843: OBJEXT=$ac_cv_objext
3844: ac_objext=$OBJEXT
1.150 moko 3845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3846: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3847: if ${ac_cv_cxx_compiler_gnu+:} false; then :
3848: $as_echo_n "(cached) " >&6
1.62 paf 3849: else
1.150 moko 3850: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 3851: /* end confdefs.h. */
1.66 paf 3852:
1.62 paf 3853: int
3854: main ()
3855: {
1.66 paf 3856: #ifndef __GNUC__
3857: choke me
3858: #endif
3859:
1.62 paf 3860: ;
3861: return 0;
3862: }
3863: _ACEOF
1.150 moko 3864: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3865: ac_compiler_gnu=yes
1.62 paf 3866: else
1.150 moko 3867: ac_compiler_gnu=no
1.1 paf 3868: fi
1.150 moko 3869: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3870: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 3871:
3872: fi
1.150 moko 3873: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3874: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3875: if test $ac_compiler_gnu = yes; then
3876: GXX=yes
3877: else
3878: GXX=
3879: fi
1.66 paf 3880: ac_test_CXXFLAGS=${CXXFLAGS+set}
3881: ac_save_CXXFLAGS=$CXXFLAGS
1.150 moko 3882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3883: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3884: if ${ac_cv_prog_cxx_g+:} false; then :
3885: $as_echo_n "(cached) " >&6
3886: else
3887: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3888: ac_cxx_werror_flag=yes
3889: ac_cv_prog_cxx_g=no
3890: CXXFLAGS="-g"
3891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 3892: /* end confdefs.h. */
1.1 paf 3893:
1.66 paf 3894: int
3895: main ()
3896: {
1.1 paf 3897:
1.66 paf 3898: ;
3899: return 0;
3900: }
1.62 paf 3901: _ACEOF
1.150 moko 3902: if ac_fn_cxx_try_compile "$LINENO"; then :
1.66 paf 3903: ac_cv_prog_cxx_g=yes
3904: else
1.150 moko 3905: CXXFLAGS=""
3906: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907: /* end confdefs.h. */
1.66 paf 3908:
1.62 paf 3909: int
3910: main ()
3911: {
1.150 moko 3912:
1.62 paf 3913: ;
3914: return 0;
3915: }
3916: _ACEOF
1.150 moko 3917: if ac_fn_cxx_try_compile "$LINENO"; then :
3918:
1.1 paf 3919: else
1.150 moko 3920: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3921: CXXFLAGS="-g"
3922: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923: /* end confdefs.h. */
1.62 paf 3924:
3925: int
3926: main ()
3927: {
1.150 moko 3928:
1.62 paf 3929: ;
3930: return 0;
3931: }
3932: _ACEOF
1.150 moko 3933: if ac_fn_cxx_try_compile "$LINENO"; then :
3934: ac_cv_prog_cxx_g=yes
3935: fi
3936: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937: fi
3938: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939: fi
3940: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3942: fi
3943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3944: $as_echo "$ac_cv_prog_cxx_g" >&6; }
3945: if test "$ac_test_CXXFLAGS" = set; then
3946: CXXFLAGS=$ac_save_CXXFLAGS
3947: elif test $ac_cv_prog_cxx_g = yes; then
3948: if test "$GXX" = yes; then
3949: CXXFLAGS="-g -O2"
3950: else
3951: CXXFLAGS="-g"
3952: fi
1.1 paf 3953: else
1.150 moko 3954: if test "$GXX" = yes; then
3955: CXXFLAGS="-O2"
3956: else
3957: CXXFLAGS=
3958: fi
1.1 paf 3959: fi
1.62 paf 3960: ac_ext=c
3961: ac_cpp='$CPP $CPPFLAGS'
3962: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 3965: DEPDIR="${am__leading_dot}deps"
1.62 paf 3966:
1.150 moko 3967: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 3968:
1.199 moko 3969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3970: $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3971: cat > confinc.mk << 'END'
1.86 paf 3972: am__doit:
1.199 moko 3973: @echo this is the am__doit target >confinc.out
1.86 paf 3974: .PHONY: am__doit
1.62 paf 3975: END
3976: am__include="#"
3977: am__quote=
1.199 moko 3978: # BSD make does it like this.
3979: echo '.include "confinc.mk" # ignored' > confmf.BSD
3980: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3981: echo 'include confinc.mk # ignored' > confmf.GNU
3982: _am_result=no
3983: for s in GNU BSD; do
3984: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3985: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3986: ac_status=$?
3987: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988: (exit $ac_status); }
3989: case $?:`cat confinc.out 2>/dev/null` in #(
3990: '0:this is the am__doit target') :
3991: case $s in #(
3992: BSD) :
3993: am__include='.include' am__quote='"' ;; #(
3994: *) :
3995: am__include='include' am__quote='' ;;
3996: esac ;; #(
3997: *) :
1.150 moko 3998: ;;
1.199 moko 3999: esac
4000: if test "$am__include" != "#"; then
4001: _am_result="yes ($s style)"
4002: break
4003: fi
4004: done
4005: rm -f confinc.* confmf.*
4006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4007: $as_echo "${_am_result}" >&6; }
1.62 paf 4008:
1.150 moko 4009: # Check whether --enable-dependency-tracking was given.
4010: if test "${enable_dependency_tracking+set}" = set; then :
4011: enableval=$enable_dependency_tracking;
4012: fi
1.62 paf 4013:
4014: if test "x$enable_dependency_tracking" != xno; then
4015: am_depcomp="$ac_aux_dir/depcomp"
4016: AMDEPBACKSLASH='\'
1.187 moko 4017: am__nodep='_no'
1.1 paf 4018: fi
1.150 moko 4019: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 4020: AMDEP_TRUE=
4021: AMDEP_FALSE='#'
4022: else
4023: AMDEP_TRUE='#'
4024: AMDEP_FALSE=
4025: fi
1.1 paf 4026:
4027:
4028:
1.66 paf 4029: depcc="$CXX" am_compiler_list=
1.1 paf 4030:
1.150 moko 4031: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4032: $as_echo_n "checking dependency style of $depcc... " >&6; }
4033: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4034: $as_echo_n "(cached) " >&6
1.62 paf 4035: else
4036: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4037: # We make a subdir and do the tests there. Otherwise we can end up
4038: # making bogus files that we don't know about and never remove. For
4039: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4040: # making a dummy file named 'D' -- because '-MD' means "put the output
4041: # in D".
4042: rm -rf conftest.dir
1.62 paf 4043: mkdir conftest.dir
4044: # Copy depcomp to subdir because otherwise we won't find it if we're
4045: # using a relative directory.
4046: cp "$am_depcomp" conftest.dir
4047: cd conftest.dir
1.86 paf 4048: # We will build objects and dependencies in a subdirectory because
4049: # it helps to detect inapplicable dependency modes. For instance
4050: # both Tru64's cc and ICC support -MD to output dependencies as a
4051: # side effect of compilation, but ICC will put the dependencies in
4052: # the current directory while Tru64 will put them in the object
4053: # directory.
4054: mkdir sub
1.1 paf 4055:
1.66 paf 4056: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 4057: if test "$am_compiler_list" = ""; then
4058: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 4059: fi
1.150 moko 4060: am__universal=false
4061: case " $depcc " in #(
4062: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4063: esac
4064:
1.62 paf 4065: for depmode in $am_compiler_list; do
1.86 paf 4066: # Setup a source with many dependencies, because some compilers
4067: # like to wrap large dependency lists on column 80 (with \), and
4068: # we should not choose a depcomp mode which is confused by this.
4069: #
1.62 paf 4070: # We need to recreate these files for each test, as the compiler may
4071: # overwrite some of them when testing with obscure command lines.
4072: # This happens at least with the AIX C compiler.
1.86 paf 4073: : > sub/conftest.c
4074: for i in 1 2 3 4 5 6; do
4075: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4076: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4077: # Solaris 10 /bin/sh.
4078: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4079: done
4080: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4081:
1.187 moko 4082: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4083: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4084: # handle '-M -o', and we need to detect this. Also, some Intel
4085: # versions had trouble with output in subdirs.
1.150 moko 4086: am__obj=sub/conftest.${OBJEXT-o}
4087: am__minus_obj="-o $am__obj"
1.62 paf 4088: case $depmode in
1.150 moko 4089: gcc)
4090: # This depmode causes a compiler race in universal mode.
4091: test "$am__universal" = false || continue
4092: ;;
1.62 paf 4093: nosideeffect)
1.187 moko 4094: # After this tag, mechanisms are not by side-effect, so they'll
4095: # only be used when explicitly requested.
1.62 paf 4096: if test "x$enable_dependency_tracking" = xyes; then
4097: continue
4098: else
4099: break
4100: fi
4101: ;;
1.187 moko 4102: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4103: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4104: # not run yet. These depmodes are late enough in the game, and
4105: # so weak that their functioning should not be impacted.
4106: am__obj=conftest.${OBJEXT-o}
4107: am__minus_obj=
4108: ;;
1.62 paf 4109: none) break ;;
4110: esac
4111: if depmode=$depmode \
1.150 moko 4112: source=sub/conftest.c object=$am__obj \
1.86 paf 4113: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4114: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4115: >/dev/null 2>conftest.err &&
1.150 moko 4116: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4117: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4118: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 4119: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4120: # icc doesn't choke on unknown options, it will just issue warnings
4121: # or remarks (even with -Werror). So we grep stderr for any message
4122: # that says an option was ignored or not supported.
4123: # When given -MP, icc 7.0 and 7.1 complain thusly:
4124: # icc: Command line warning: ignoring option '-M'; no argument required
4125: # The diagnosis changed in icc 8.0:
4126: # icc: Command line remark: option '-MP' not supported
4127: if (grep 'ignoring option' conftest.err ||
4128: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4129: am_cv_CXX_dependencies_compiler_type=$depmode
4130: break
4131: fi
1.66 paf 4132: fi
4133: done
4134:
4135: cd ..
4136: rm -rf conftest.dir
4137: else
4138: am_cv_CXX_dependencies_compiler_type=none
4139: fi
4140:
4141: fi
1.150 moko 4142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4143: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 4144: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4145:
1.150 moko 4146: if
1.66 paf 4147: test "x$enable_dependency_tracking" != xno \
4148: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4149: am__fastdepCXX_TRUE=
4150: am__fastdepCXX_FALSE='#'
4151: else
4152: am__fastdepCXX_TRUE='#'
4153: am__fastdepCXX_FALSE=
4154: fi
4155:
4156:
4157: ac_ext=c
4158: ac_cpp='$CPP $CPPFLAGS'
4159: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162: if test -n "$ac_tool_prefix"; then
4163: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4164: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.150 moko 4165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166: $as_echo_n "checking for $ac_word... " >&6; }
4167: if ${ac_cv_prog_CC+:} false; then :
4168: $as_echo_n "(cached) " >&6
1.66 paf 4169: else
4170: if test -n "$CC"; then
4171: ac_cv_prog_CC="$CC" # Let the user override the test.
4172: else
4173: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174: for as_dir in $PATH
4175: do
4176: IFS=$as_save_IFS
4177: test -z "$as_dir" && as_dir=.
1.150 moko 4178: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4179: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4180: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.150 moko 4181: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4182: break 2
4183: fi
4184: done
1.150 moko 4185: done
4186: IFS=$as_save_IFS
1.66 paf 4187:
4188: fi
4189: fi
4190: CC=$ac_cv_prog_CC
4191: if test -n "$CC"; then
1.150 moko 4192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4193: $as_echo "$CC" >&6; }
1.66 paf 4194: else
1.150 moko 4195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196: $as_echo "no" >&6; }
1.66 paf 4197: fi
4198:
1.150 moko 4199:
1.66 paf 4200: fi
4201: if test -z "$ac_cv_prog_CC"; then
4202: ac_ct_CC=$CC
4203: # Extract the first word of "gcc", so it can be a program name with args.
4204: set dummy gcc; ac_word=$2
1.150 moko 4205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206: $as_echo_n "checking for $ac_word... " >&6; }
4207: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4208: $as_echo_n "(cached) " >&6
1.66 paf 4209: else
4210: if test -n "$ac_ct_CC"; then
4211: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4212: else
4213: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214: for as_dir in $PATH
4215: do
4216: IFS=$as_save_IFS
4217: test -z "$as_dir" && as_dir=.
1.150 moko 4218: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4219: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4220: ac_cv_prog_ac_ct_CC="gcc"
1.150 moko 4221: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4222: break 2
4223: fi
4224: done
1.150 moko 4225: done
4226: IFS=$as_save_IFS
1.66 paf 4227:
4228: fi
4229: fi
4230: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4231: if test -n "$ac_ct_CC"; then
1.150 moko 4232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4233: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4234: else
1.150 moko 4235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236: $as_echo "no" >&6; }
1.62 paf 4237: fi
4238:
1.150 moko 4239: if test "x$ac_ct_CC" = x; then
4240: CC=""
4241: else
4242: case $cross_compiling:$ac_tool_warned in
4243: yes:)
4244: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4245: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246: ac_tool_warned=yes ;;
4247: esac
4248: CC=$ac_ct_CC
4249: fi
1.66 paf 4250: else
4251: CC="$ac_cv_prog_CC"
1.1 paf 4252: fi
1.62 paf 4253:
1.66 paf 4254: if test -z "$CC"; then
1.150 moko 4255: if test -n "$ac_tool_prefix"; then
4256: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 4257: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.150 moko 4258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259: $as_echo_n "checking for $ac_word... " >&6; }
4260: if ${ac_cv_prog_CC+:} false; then :
4261: $as_echo_n "(cached) " >&6
1.66 paf 4262: else
4263: if test -n "$CC"; then
4264: ac_cv_prog_CC="$CC" # Let the user override the test.
4265: else
4266: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267: for as_dir in $PATH
4268: do
4269: IFS=$as_save_IFS
4270: test -z "$as_dir" && as_dir=.
1.150 moko 4271: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4272: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4273: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.150 moko 4274: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4275: break 2
4276: fi
4277: done
1.150 moko 4278: done
4279: IFS=$as_save_IFS
1.62 paf 4280:
1.66 paf 4281: fi
4282: fi
4283: CC=$ac_cv_prog_CC
4284: if test -n "$CC"; then
1.150 moko 4285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4286: $as_echo "$CC" >&6; }
1.62 paf 4287: else
1.150 moko 4288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289: $as_echo "no" >&6; }
1.1 paf 4290: fi
4291:
1.150 moko 4292:
1.66 paf 4293: fi
1.1 paf 4294: fi
1.66 paf 4295: if test -z "$CC"; then
4296: # Extract the first word of "cc", so it can be a program name with args.
4297: set dummy cc; ac_word=$2
1.150 moko 4298: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299: $as_echo_n "checking for $ac_word... " >&6; }
4300: if ${ac_cv_prog_CC+:} false; then :
4301: $as_echo_n "(cached) " >&6
1.66 paf 4302: else
4303: if test -n "$CC"; then
4304: ac_cv_prog_CC="$CC" # Let the user override the test.
4305: else
4306: ac_prog_rejected=no
4307: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308: for as_dir in $PATH
4309: do
4310: IFS=$as_save_IFS
4311: test -z "$as_dir" && as_dir=.
1.150 moko 4312: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4313: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4314: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4315: ac_prog_rejected=yes
4316: continue
4317: fi
4318: ac_cv_prog_CC="cc"
1.150 moko 4319: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.66 paf 4320: break 2
4321: fi
4322: done
1.150 moko 4323: done
4324: IFS=$as_save_IFS
1.62 paf 4325:
1.66 paf 4326: if test $ac_prog_rejected = yes; then
4327: # We found a bogon in the path, so make sure we never use it.
4328: set dummy $ac_cv_prog_CC
4329: shift
4330: if test $# != 0; then
4331: # We chose a different compiler from the bogus one.
4332: # However, it has the same basename, so the bogon will be chosen
4333: # first if we set CC to just the basename; use the full file name.
4334: shift
4335: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4336: fi
4337: fi
4338: fi
4339: fi
4340: CC=$ac_cv_prog_CC
4341: if test -n "$CC"; then
1.150 moko 4342: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4343: $as_echo "$CC" >&6; }
1.66 paf 4344: else
1.150 moko 4345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346: $as_echo "no" >&6; }
1.1 paf 4347: fi
4348:
1.150 moko 4349:
1.66 paf 4350: fi
4351: if test -z "$CC"; then
4352: if test -n "$ac_tool_prefix"; then
1.150 moko 4353: for ac_prog in cl.exe
1.62 paf 4354: do
4355: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4356: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 4357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358: $as_echo_n "checking for $ac_word... " >&6; }
4359: if ${ac_cv_prog_CC+:} false; then :
4360: $as_echo_n "(cached) " >&6
1.62 paf 4361: else
1.66 paf 4362: if test -n "$CC"; then
4363: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 4364: else
4365: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366: for as_dir in $PATH
4367: do
4368: IFS=$as_save_IFS
4369: test -z "$as_dir" && as_dir=.
1.150 moko 4370: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4371: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4372: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.150 moko 4373: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4374: break 2
4375: fi
4376: done
1.150 moko 4377: done
4378: IFS=$as_save_IFS
1.1 paf 4379:
1.62 paf 4380: fi
4381: fi
1.66 paf 4382: CC=$ac_cv_prog_CC
4383: if test -n "$CC"; then
1.150 moko 4384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4385: $as_echo "$CC" >&6; }
1.1 paf 4386: else
1.150 moko 4387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388: $as_echo "no" >&6; }
1.1 paf 4389: fi
4390:
1.150 moko 4391:
1.66 paf 4392: test -n "$CC" && break
1.62 paf 4393: done
4394: fi
1.66 paf 4395: if test -z "$CC"; then
4396: ac_ct_CC=$CC
1.150 moko 4397: for ac_prog in cl.exe
1.62 paf 4398: do
4399: # Extract the first word of "$ac_prog", so it can be a program name with args.
4400: set dummy $ac_prog; ac_word=$2
1.150 moko 4401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402: $as_echo_n "checking for $ac_word... " >&6; }
4403: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4404: $as_echo_n "(cached) " >&6
1.62 paf 4405: else
1.66 paf 4406: if test -n "$ac_ct_CC"; then
4407: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 4408: else
1.62 paf 4409: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410: for as_dir in $PATH
4411: do
4412: IFS=$as_save_IFS
4413: test -z "$as_dir" && as_dir=.
1.150 moko 4414: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 4415: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 4416: ac_cv_prog_ac_ct_CC="$ac_prog"
1.150 moko 4417: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.62 paf 4418: break 2
4419: fi
4420: done
1.150 moko 4421: done
4422: IFS=$as_save_IFS
1.62 paf 4423:
4424: fi
4425: fi
1.66 paf 4426: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4427: if test -n "$ac_ct_CC"; then
1.150 moko 4428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4429: $as_echo "$ac_ct_CC" >&6; }
1.1 paf 4430: else
1.150 moko 4431: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432: $as_echo "no" >&6; }
1.1 paf 4433: fi
4434:
1.150 moko 4435:
1.66 paf 4436: test -n "$ac_ct_CC" && break
4437: done
4438:
1.150 moko 4439: if test "x$ac_ct_CC" = x; then
4440: CC=""
4441: else
4442: case $cross_compiling:$ac_tool_warned in
4443: yes:)
4444: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4445: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4446: ac_tool_warned=yes ;;
4447: esac
4448: CC=$ac_ct_CC
4449: fi
1.66 paf 4450: fi
4451:
4452: fi
1.62 paf 4453:
1.1 paf 4454:
1.150 moko 4455: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4456: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4457: as_fn_error $? "no acceptable C compiler found in \$PATH
4458: See \`config.log' for more details" "$LINENO" 5; }
1.62 paf 4459:
4460: # Provide some information about the compiler.
1.150 moko 4461: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4462: set X $ac_compile
4463: ac_compiler=$2
4464: for ac_option in --version -v -V -qversion; do
4465: { { ac_try="$ac_compiler $ac_option >&5"
4466: case "(($ac_try" in
4467: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468: *) ac_try_echo=$ac_try;;
4469: esac
4470: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4471: $as_echo "$ac_try_echo"; } >&5
4472: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 4473: ac_status=$?
1.150 moko 4474: if test -s conftest.err; then
4475: sed '10a\
4476: ... rest of stderr output deleted ...
4477: 10q' conftest.err >conftest.er1
4478: cat conftest.er1 >&5
4479: fi
4480: rm -f conftest.er1 conftest.err
4481: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482: test $ac_status = 0; }
4483: done
4484:
4485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4486: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4487: if ${ac_cv_c_compiler_gnu+:} false; then :
4488: $as_echo_n "(cached) " >&6
1.62 paf 4489: else
1.150 moko 4490: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4491: /* end confdefs.h. */
4492:
4493: int
4494: main ()
4495: {
4496: #ifndef __GNUC__
4497: choke me
4498: #endif
4499:
4500: ;
4501: return 0;
4502: }
4503: _ACEOF
1.150 moko 4504: if ac_fn_c_try_compile "$LINENO"; then :
1.62 paf 4505: ac_compiler_gnu=yes
4506: else
1.150 moko 4507: ac_compiler_gnu=no
1.62 paf 4508: fi
1.150 moko 4509: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 4510: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 4511:
4512: fi
1.150 moko 4513: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4514: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4515: if test $ac_compiler_gnu = yes; then
4516: GCC=yes
4517: else
4518: GCC=
4519: fi
1.66 paf 4520: ac_test_CFLAGS=${CFLAGS+set}
4521: ac_save_CFLAGS=$CFLAGS
1.150 moko 4522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4523: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4524: if ${ac_cv_prog_cc_g+:} false; then :
4525: $as_echo_n "(cached) " >&6
4526: else
4527: ac_save_c_werror_flag=$ac_c_werror_flag
4528: ac_c_werror_flag=yes
4529: ac_cv_prog_cc_g=no
4530: CFLAGS="-g"
4531: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4532: /* end confdefs.h. */
4533:
4534: int
4535: main ()
4536: {
4537:
4538: ;
4539: return 0;
4540: }
4541: _ACEOF
1.150 moko 4542: if ac_fn_c_try_compile "$LINENO"; then :
1.66 paf 4543: ac_cv_prog_cc_g=yes
1.62 paf 4544: else
1.150 moko 4545: CFLAGS=""
4546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547: /* end confdefs.h. */
4548:
4549: int
4550: main ()
4551: {
1.62 paf 4552:
1.150 moko 4553: ;
4554: return 0;
4555: }
4556: _ACEOF
4557: if ac_fn_c_try_compile "$LINENO"; then :
4558:
4559: else
4560: ac_c_werror_flag=$ac_save_c_werror_flag
4561: CFLAGS="-g"
4562: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563: /* end confdefs.h. */
4564:
4565: int
4566: main ()
4567: {
4568:
4569: ;
4570: return 0;
4571: }
4572: _ACEOF
4573: if ac_fn_c_try_compile "$LINENO"; then :
4574: ac_cv_prog_cc_g=yes
4575: fi
4576: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4577: fi
1.150 moko 4578: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 4579: fi
1.150 moko 4580: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581: ac_c_werror_flag=$ac_save_c_werror_flag
4582: fi
4583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4584: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.66 paf 4585: if test "$ac_test_CFLAGS" = set; then
4586: CFLAGS=$ac_save_CFLAGS
4587: elif test $ac_cv_prog_cc_g = yes; then
4588: if test "$GCC" = yes; then
4589: CFLAGS="-g -O2"
1.1 paf 4590: else
1.66 paf 4591: CFLAGS="-g"
1.1 paf 4592: fi
4593: else
1.66 paf 4594: if test "$GCC" = yes; then
4595: CFLAGS="-O2"
1.1 paf 4596: else
1.66 paf 4597: CFLAGS=
1.1 paf 4598: fi
4599: fi
1.150 moko 4600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4601: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4602: if ${ac_cv_prog_cc_c89+:} false; then :
4603: $as_echo_n "(cached) " >&6
1.66 paf 4604: else
1.150 moko 4605: ac_cv_prog_cc_c89=no
1.66 paf 4606: ac_save_CC=$CC
1.150 moko 4607: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4608: /* end confdefs.h. */
4609: #include <stdarg.h>
4610: #include <stdio.h>
1.166 moko 4611: struct stat;
1.66 paf 4612: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4613: struct buf { int x; };
4614: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4615: static char *e (p, i)
4616: char **p;
4617: int i;
4618: {
4619: return p[i];
4620: }
4621: static char *f (char * (*g) (char **, int), char **p, ...)
4622: {
4623: char *s;
4624: va_list v;
4625: va_start (v,p);
4626: s = g (p, va_arg (v,int));
4627: va_end (v);
4628: return s;
4629: }
1.86 paf 4630:
4631: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4632: function prototypes and stuff, but not '\xHH' hex character constants.
4633: These don't provoke an error unfortunately, instead are silently treated
1.150 moko 4634: as 'x'. The following induces an error, until -std is added to get
1.86 paf 4635: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4636: array size at least. It's necessary to write '\x00'==0 to get something
1.150 moko 4637: that's true only with -std. */
1.86 paf 4638: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4639:
1.150 moko 4640: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4641: inside strings and character constants. */
4642: #define FOO(x) 'x'
4643: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4644:
1.66 paf 4645: int test (int i, double x);
4646: struct s1 {int (*f) (int a);};
4647: struct s2 {int (*f) (double a);};
4648: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4649: int argc;
4650: char **argv;
4651: int
4652: main ()
4653: {
4654: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4655: ;
4656: return 0;
4657: }
4658: _ACEOF
1.150 moko 4659: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4660: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 4661: do
4662: CC="$ac_save_CC $ac_arg"
1.150 moko 4663: if ac_fn_c_try_compile "$LINENO"; then :
4664: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 4665: fi
1.150 moko 4666: rm -f core conftest.err conftest.$ac_objext
4667: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 4668: done
1.150 moko 4669: rm -f conftest.$ac_ext
1.66 paf 4670: CC=$ac_save_CC
4671:
4672: fi
1.150 moko 4673: # AC_CACHE_VAL
4674: case "x$ac_cv_prog_cc_c89" in
4675: x)
4676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4677: $as_echo "none needed" >&6; } ;;
4678: xno)
4679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4680: $as_echo "unsupported" >&6; } ;;
1.66 paf 4681: *)
1.150 moko 4682: CC="$CC $ac_cv_prog_cc_c89"
4683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4684: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.66 paf 4685: esac
1.150 moko 4686: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.62 paf 4687:
4688: fi
1.66 paf 4689:
1.62 paf 4690: ac_ext=c
4691: ac_cpp='$CPP $CPPFLAGS'
4692: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695:
1.187 moko 4696: ac_ext=c
4697: ac_cpp='$CPP $CPPFLAGS'
4698: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4702: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4703: if ${am_cv_prog_cc_c_o+:} false; then :
4704: $as_echo_n "(cached) " >&6
4705: else
4706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707: /* end confdefs.h. */
4708:
4709: int
4710: main ()
4711: {
4712:
4713: ;
4714: return 0;
4715: }
4716: _ACEOF
4717: # Make sure it works both with $CC and with simple cc.
4718: # Following AC_PROG_CC_C_O, we do the test twice because some
4719: # compilers refuse to overwrite an existing .o file with -o,
4720: # though they will create one.
4721: am_cv_prog_cc_c_o=yes
4722: for am_i in 1 2; do
4723: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4724: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4725: ac_status=$?
4726: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727: (exit $ac_status); } \
4728: && test -f conftest2.$ac_objext; then
4729: : OK
4730: else
4731: am_cv_prog_cc_c_o=no
4732: break
4733: fi
4734: done
4735: rm -f core conftest*
4736: unset am_i
4737: fi
4738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4739: $as_echo "$am_cv_prog_cc_c_o" >&6; }
4740: if test "$am_cv_prog_cc_c_o" != yes; then
4741: # Losing compiler, so override with the script.
4742: # FIXME: It is wrong to rewrite CC.
4743: # But if we don't then we get into trouble of one sort or another.
4744: # A longer-term fix would be to have automake use am__CC in this case,
4745: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4746: CC="$am_aux_dir/compile $CC"
4747: fi
4748: ac_ext=c
4749: ac_cpp='$CPP $CPPFLAGS'
4750: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4751: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4752: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4753:
4754:
1.66 paf 4755: depcc="$CC" am_compiler_list=
1.62 paf 4756:
1.150 moko 4757: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4758: $as_echo_n "checking dependency style of $depcc... " >&6; }
4759: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4760: $as_echo_n "(cached) " >&6
1.62 paf 4761: else
4762: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4763: # We make a subdir and do the tests there. Otherwise we can end up
4764: # making bogus files that we don't know about and never remove. For
4765: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 4766: # making a dummy file named 'D' -- because '-MD' means "put the output
4767: # in D".
4768: rm -rf conftest.dir
1.62 paf 4769: mkdir conftest.dir
4770: # Copy depcomp to subdir because otherwise we won't find it if we're
4771: # using a relative directory.
4772: cp "$am_depcomp" conftest.dir
4773: cd conftest.dir
1.86 paf 4774: # We will build objects and dependencies in a subdirectory because
4775: # it helps to detect inapplicable dependency modes. For instance
4776: # both Tru64's cc and ICC support -MD to output dependencies as a
4777: # side effect of compilation, but ICC will put the dependencies in
4778: # the current directory while Tru64 will put them in the object
4779: # directory.
4780: mkdir sub
1.62 paf 4781:
1.66 paf 4782: am_cv_CC_dependencies_compiler_type=none
1.62 paf 4783: if test "$am_compiler_list" = ""; then
4784: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4785: fi
1.150 moko 4786: am__universal=false
4787: case " $depcc " in #(
4788: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4789: esac
4790:
1.62 paf 4791: for depmode in $am_compiler_list; do
1.86 paf 4792: # Setup a source with many dependencies, because some compilers
4793: # like to wrap large dependency lists on column 80 (with \), and
4794: # we should not choose a depcomp mode which is confused by this.
4795: #
1.62 paf 4796: # We need to recreate these files for each test, as the compiler may
4797: # overwrite some of them when testing with obscure command lines.
4798: # This happens at least with the AIX C compiler.
1.86 paf 4799: : > sub/conftest.c
4800: for i in 1 2 3 4 5 6; do
4801: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 4802: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4803: # Solaris 10 /bin/sh.
4804: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 4805: done
4806: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 4807:
1.187 moko 4808: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 4809: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 4810: # handle '-M -o', and we need to detect this. Also, some Intel
4811: # versions had trouble with output in subdirs.
1.150 moko 4812: am__obj=sub/conftest.${OBJEXT-o}
4813: am__minus_obj="-o $am__obj"
1.62 paf 4814: case $depmode in
1.150 moko 4815: gcc)
4816: # This depmode causes a compiler race in universal mode.
4817: test "$am__universal" = false || continue
4818: ;;
1.62 paf 4819: nosideeffect)
1.187 moko 4820: # After this tag, mechanisms are not by side-effect, so they'll
4821: # only be used when explicitly requested.
1.62 paf 4822: if test "x$enable_dependency_tracking" = xyes; then
4823: continue
4824: else
4825: break
4826: fi
4827: ;;
1.187 moko 4828: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4829: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 4830: # not run yet. These depmodes are late enough in the game, and
4831: # so weak that their functioning should not be impacted.
4832: am__obj=conftest.${OBJEXT-o}
4833: am__minus_obj=
4834: ;;
1.62 paf 4835: none) break ;;
4836: esac
1.66 paf 4837: if depmode=$depmode \
1.150 moko 4838: source=sub/conftest.c object=$am__obj \
1.86 paf 4839: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 4840: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 4841: >/dev/null 2>conftest.err &&
1.150 moko 4842: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 4843: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 4844: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 4845: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 4846: # icc doesn't choke on unknown options, it will just issue warnings
4847: # or remarks (even with -Werror). So we grep stderr for any message
4848: # that says an option was ignored or not supported.
4849: # When given -MP, icc 7.0 and 7.1 complain thusly:
4850: # icc: Command line warning: ignoring option '-M'; no argument required
4851: # The diagnosis changed in icc 8.0:
4852: # icc: Command line remark: option '-MP' not supported
4853: if (grep 'ignoring option' conftest.err ||
4854: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4855: am_cv_CC_dependencies_compiler_type=$depmode
4856: break
4857: fi
1.66 paf 4858: fi
4859: done
4860:
4861: cd ..
4862: rm -rf conftest.dir
4863: else
4864: am_cv_CC_dependencies_compiler_type=none
4865: fi
4866:
4867: fi
1.150 moko 4868: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4869: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 4870: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4871:
1.150 moko 4872: if
1.66 paf 4873: test "x$enable_dependency_tracking" != xno \
4874: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4875: am__fastdepCC_TRUE=
4876: am__fastdepCC_FALSE='#'
4877: else
4878: am__fastdepCC_TRUE='#'
4879: am__fastdepCC_FALSE=
4880: fi
4881:
4882:
1.128 moko 4883:
1.66 paf 4884: ac_ext=c
4885: ac_cpp='$CPP $CPPFLAGS'
4886: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4889:
1.67 paf 4890:
1.62 paf 4891:
1.150 moko 4892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
4893: $as_echo_n "checking for dynamic-link library extension... " >&6; }
1.128 moko 4894: case "$host_os" in
1.158 moko 4895: *cygwin* ) dll_extension=dll;;
4896: * ) dll_extension=so
1.66 paf 4897: esac
1.150 moko 4898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
4899: $as_echo "$dll_extension" >&6; }
1.1 paf 4900:
1.71 paf 4901:
4902:
4903:
1.150 moko 4904: # Check whether --with-build-warnings was given.
4905: if test "${with_build_warnings+set}" = set; then :
4906: withval=$with_build_warnings; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
4907: $as_echo "$as_me: WARNING: enabling compiler warnings" >&2;}
1.225 moko 4908: CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2 -Wextra -Wall -Wno-parentheses"
1.71 paf 4909:
1.150 moko 4910: fi
4911:
1.1 paf 4912:
4913:
1.182 moko 4914: # Check whether --with-coverage was given.
4915: if test "${with_coverage+set}" = set; then :
4916: withval=$with_coverage; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gcov support" >&5
4917: $as_echo "$as_me: WARNING: enabling gcov support" >&2;}
4918: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O0-9*//g'`
4919: CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O0-9*//g'`
4920: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
4921: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
4922: LDFLAGS="$LDFLAGS -lgcov"
4923:
4924: fi
4925:
4926:
4927:
4928: # Check whether --with-profiler was given.
4929: if test "${with_profiler+set}" = set; then :
4930: withval=$with_profiler; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling gprof support" >&5
4931: $as_echo "$as_me: WARNING: enabling gprof support" >&2;}
1.193 moko 4932: CFLAGS="$CFLAGS -O0 -pg -g"
4933: CXXFLAGS="$CXXFLAGS -O0 -pg -g"
1.182 moko 4934:
4935: fi
4936:
4937:
4938:
1.150 moko 4939: # Check whether --with-assertions was given.
4940: if test "${with_assertions+set}" = set; then :
4941: withval=$with_assertions; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
4942: $as_echo "$as_me: WARNING: enabling assertions" >&2;}
1.67 paf 4943:
4944: else
4945:
1.150 moko 4946: $as_echo "#define NDEBUG /**/" >>confdefs.h
4947:
1.67 paf 4948:
1.150 moko 4949: fi
1.67 paf 4950:
4951:
1.94 misha 4952:
1.150 moko 4953: # Check whether --with-sjlj-exceptions was given.
4954: if test "${with_sjlj_exceptions+set}" = set; then :
4955: withval=$with_sjlj_exceptions;
4956: $as_echo "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.128 moko 4957:
4958:
1.150 moko 4959: fi
1.128 moko 4960:
4961:
1.62 paf 4962:
1.201 moko 4963:
1.203 moko 4964: # Check whether --with-system-cfg was given.
4965: if test "${with_system_cfg+set}" = set; then :
4966: withval=$with_system_cfg;
4967: cat >>confdefs.h <<_ACEOF
4968: #define SYSTEM_CONFIG_FILE "$withval"
4969: _ACEOF
1.201 moko 4970:
4971:
4972: fi
4973:
4974:
4975:
1.150 moko 4976: # Check whether --enable-safe-mode was given.
4977: if test "${enable_safe_mode+set}" = set; then :
4978: enableval=$enable_safe_mode;
1.67 paf 4979: SAFE_MODE=$enableval
1.60 paf 4980:
1.1 paf 4981:
1.150 moko 4982: fi
4983:
1.128 moko 4984:
1.60 paf 4985: if test "$SAFE_MODE" = "no"; then
1.150 moko 4986: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
4987: $as_echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 4988: else
1.62 paf 4989:
1.150 moko 4990: $as_echo "#define PA_SAFE_MODE /**/" >>confdefs.h
1.1 paf 4991:
4992: fi
4993:
1.94 misha 4994:
1.150 moko 4995: # Check whether --enable-execs was given.
4996: if test "${enable_execs+set}" = set; then :
4997: enableval=$enable_execs;
1.13 paf 4998: if test "$enableval" = "no"; then
1.150 moko 4999: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
5000: $as_echo "$as_me: WARNING: disabling file execs" >&2;}
1.62 paf 5001:
1.150 moko 5002: $as_echo "#define NO_PA_EXECS /**/" >>confdefs.h
1.13 paf 5003:
5004: fi
5005:
5006:
1.150 moko 5007: fi
1.13 paf 5008:
1.60 paf 5009:
1.94 misha 5010:
1.150 moko 5011: # Check whether --enable-stringstream was given.
5012: if test "${enable_stringstream+set}" = set; then :
5013: enableval=$enable_stringstream;
1.94 misha 5014: if test "$enableval" = "no"; then
1.150 moko 5015: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
5016: $as_echo "$as_me: WARNING: disabling stringstream usage" >&2;}
1.94 misha 5017:
1.150 moko 5018: $as_echo "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.94 misha 5019:
5020: fi
5021:
5022:
1.150 moko 5023: fi
1.94 misha 5024:
5025:
1.62 paf 5026:
1.17 paf 5027:
1.150 moko 5028: # Check whether --with-gc was given.
5029: if test "${with_gc+set}" = set; then :
5030: withval=$with_gc;
1.17 paf 5031:
1.142 moko 5032: GC=$withval
5033: GC_LIBS="$GC/libgc.la"
5034:
5035: if test -f $GC_LIBS; then
5036: GC_OK="yes"
5037: else
5038: GC_LIBS="-L$GC -lgc"
5039: fi
1.62 paf 5040:
1.151 moko 5041: if test "$GC" = "yes"; then
5042: GC=""
5043: GC_LIBS="-lgc"
5044: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
5045: $as_echo "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
5046: fi
5047:
1.142 moko 5048: else
1.17 paf 5049:
1.142 moko 5050: GC_LIBS="-lgc"
1.150 moko 5051: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
5052: $as_echo "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
5053:
5054: fi
1.17 paf 5055:
5056:
1.142 moko 5057: if test -z "$GC_OK"; then
1.150 moko 5058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
5059: $as_echo_n "checking for libgc... " >&6; }
1.138 moko 5060: SAVE_LIBS=$LIBS
5061: LIBS="$LIBS $GC_LIBS"
1.128 moko 5062:
1.229 moko 5063:
5064: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 5065: /* end confdefs.h. */
1.142 moko 5066: extern int GC_dont_gc;
1.67 paf 5067: int
5068: main ()
5069: {
1.142 moko 5070: GC_dont_gc=0;
1.67 paf 5071: ;
5072: return 0;
5073: }
5074: _ACEOF
1.150 moko 5075: if ac_fn_c_try_link "$LINENO"; then :
5076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5077: $as_echo "yes" >&6; }
1.67 paf 5078:
5079: else
1.150 moko 5080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081: $as_echo "no" >&6; }
1.142 moko 5082: if test -z "$GC"; then
1.201 moko 5083: as_fn_error $? "please specify path to libgc: --with-gc=DIR" "$LINENO" 5
1.142 moko 5084: else
1.150 moko 5085: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
1.142 moko 5086: fi
1.67 paf 5087:
1.229 moko 5088:
1.67 paf 5089: fi
1.150 moko 5090: rm -f core conftest.err conftest.$ac_objext \
5091: conftest$ac_exeext conftest.$ac_ext
1.229 moko 5092:
1.138 moko 5093: LIBS=$SAVE_LIBS
5094: fi
1.67 paf 5095:
5096:
1.1 paf 5097:
1.15 paf 5098:
1.142 moko 5099:
1.150 moko 5100: # Check whether --with-pcre was given.
5101: if test "${with_pcre+set}" = set; then :
5102: withval=$with_pcre;
1.100 misha 5103: PCRE=$withval
5104:
1.151 moko 5105: if test "$PCRE" = "yes"; then
5106: PCRE=""
5107: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
5108: $as_echo "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
1.218 moko 5109: else
5110: PCRE_INCLUDES="-I$PCRE/include"
5111:
5112: if test -f $PCRE/include/pcre.h -a -f $PCRE/lib/libpcre.la; then
5113: PCRE_OK="yes"
5114: PCRE_LIBS="$PCRE/lib/libpcre.la"
5115: else
5116: if test -f $PCRE/include/pcre2.h -a -f $PCRE/lib/libpcre2-8.la; then
5117: PCRE_OK="yes"
5118: PCRE_LIBS="$PCRE/lib/libpcre2-8.la"
5119:
5120: $as_echo "#define HAVE_PCRE2 /**/" >>confdefs.h
5121:
5122: else
5123: PCRE_LIBS="-L$PCRE/lib"
5124: fi
5125: fi
1.151 moko 5126: fi
1.142 moko 5127:
5128: else
5129:
1.150 moko 5130: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
5131: $as_echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
5132:
5133: fi
1.100 misha 5134:
5135:
1.142 moko 5136: if test -z "$PCRE_OK"; then
1.218 moko 5137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre2" >&5
5138: $as_echo_n "checking for pcre2... " >&6; }
5139: SAVE_LIBS=$LIBS
5140: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES -lpcre2-8"
1.229 moko 5141:
5142: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.218 moko 5143: /* end confdefs.h. */
5144: #define PCRE2_CODE_UNIT_WIDTH 8
5145: #include <pcre2.h>
5146: int
5147: main ()
5148: {
5149: void *v=pcre2_general_context_create(0,0,0);
5150: ;
5151: return 0;
5152: }
5153: _ACEOF
5154: if ac_fn_c_try_link "$LINENO"; then :
5155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5156: $as_echo "yes" >&6; }
5157: PCRE_LIBS="$PCRE_LIBS -lpcre2-8"
5158:
5159: $as_echo "#define HAVE_PCRE2 /**/" >>confdefs.h
5160:
5161: PCRE_OK="yes"
5162:
5163: else
5164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165: $as_echo "no" >&6; }
5166:
1.229 moko 5167:
1.218 moko 5168: fi
5169: rm -f core conftest.err conftest.$ac_objext \
5170: conftest$ac_exeext conftest.$ac_ext
1.229 moko 5171:
1.218 moko 5172: LIBS=$SAVE_LIBS
5173: fi
5174:
5175: if test -z "$PCRE_OK"; then
5176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre" >&5
5177: $as_echo_n "checking for pcre... " >&6; }
5178: PCRE_LIBS="$PCRE_LIBS -lpcre"
1.142 moko 5179: SAVE_LIBS=$LIBS
5180: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.229 moko 5181:
5182: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5183: /* end confdefs.h. */
5184: #include <pcre.h>
5185: int
5186: main ()
5187: {
5188: const char *v=pcre_version();
5189: ;
5190: return 0;
5191: }
5192: _ACEOF
1.150 moko 5193: if ac_fn_c_try_link "$LINENO"; then :
5194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5195: $as_echo "yes" >&6; }
1.142 moko 5196:
5197: else
1.150 moko 5198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199: $as_echo "no" >&6; }
1.142 moko 5200: if test -z "$PCRE"; then
1.201 moko 5201: as_fn_error $? "please specify path to PCRE: --with-pcre=DIR" "$LINENO" 5
1.142 moko 5202: else
1.150 moko 5203: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
1.142 moko 5204: fi
5205:
1.229 moko 5206:
1.142 moko 5207: fi
1.150 moko 5208: rm -f core conftest.err conftest.$ac_objext \
5209: conftest$ac_exeext conftest.$ac_ext
1.229 moko 5210:
1.142 moko 5211: LIBS=$SAVE_LIBS
5212: fi
1.100 misha 5213:
5214:
5215:
5216:
1.66 paf 5217:
5218:
1.150 moko 5219: # Check whether --with-xml was given.
5220: if test "${with_xml+set}" = set; then :
5221: withval=$with_xml;
1.66 paf 5222:
1.142 moko 5223: XML=$withval
5224: XML_LIBS="-lxml2 -lxslt -lexslt"
5225:
5226: if test -z "$XML" -o "$XML" = "yes"; then
5227: XML=""
5228: XML_INCLUDES="-I/usr/include/libxml2"
1.150 moko 5229: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
5230: $as_echo "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
1.142 moko 5231: else
5232: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.193 moko 5233: XML_LIBS="-L$XML/lib $XML_LIBS"
1.67 paf 5234:
1.142 moko 5235: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
5236: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
5237: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
5238: XML_OK="yes"
5239: fi
1.67 paf 5240: fi
1.66 paf 5241:
1.142 moko 5242: if test -z "$XML_OK"; then
1.150 moko 5243: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
5244: $as_echo_n "checking for xml... " >&6; }
1.142 moko 5245: SAVE_LIBS=$LIBS
5246: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.229 moko 5247:
5248: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 5249: /* end confdefs.h. */
5250: #include <libxslt/xslt.h>
5251: int
5252: main ()
5253: {
5254: const char *v=xsltEngineVersion;
5255: ;
5256: return 0;
5257: }
5258: _ACEOF
1.150 moko 5259: if ac_fn_c_try_link "$LINENO"; then :
5260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5261: $as_echo "yes" >&6; }
1.142 moko 5262:
5263: else
1.150 moko 5264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265: $as_echo "no" >&6; }
1.142 moko 5266: if test -z "$XML"; then
1.201 moko 5267: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=DIR" "$LINENO" 5
1.142 moko 5268: else
1.150 moko 5269: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 5270: fi
5271:
1.229 moko 5272:
1.142 moko 5273: fi
1.150 moko 5274: rm -f core conftest.err conftest.$ac_objext \
5275: conftest$ac_exeext conftest.$ac_ext
1.229 moko 5276:
1.142 moko 5277: LIBS=$SAVE_LIBS
1.67 paf 5278: fi
1.66 paf 5279:
1.150 moko 5280: $as_echo "#define XML /**/" >>confdefs.h
5281:
1.66 paf 5282:
1.150 moko 5283: fi
1.66 paf 5284:
1.90 paf 5285:
1.66 paf 5286:
5287:
5288:
5289:
1.90 paf 5290:
1.154 moko 5291: # Check whether --with-mailreceive was given.
5292: if test "${with_mailreceive+set}" = set; then :
5293: withval=$with_mailreceive;
5294: MIME=$withval
1.155 moko 5295: GLIB="glib-2.0"
1.154 moko 5296: GMIME="gmime-2.4"
5297:
5298: if test -z "$MIME" -o "$MIME" = "yes"; then
5299: MIME=""
5300: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5301: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
1.194 moko 5302: if test -z "$MIME_LIBS"; then
5303: GMIME="gmime-3.0"
5304: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
5305: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
5306: fi
1.154 moko 5307: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
5308: $as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
5309: else
1.155 moko 5310: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 5311: MIME_LIBS="-l$GMIME"
5312: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
5313: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 5314: if test -f $MIME/lib/lib$GLIB.la; then
5315: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
5316: else
5317: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
5318: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
5319: fi
1.154 moko 5320: MIME_OK="yes"
5321: fi
1.67 paf 5322: fi
1.66 paf 5323:
1.154 moko 5324: if test -z "$MIME_OK"; then
5325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
5326: $as_echo_n "checking for mime... " >&6; }
5327: SAVE_LIBS=$LIBS
5328: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
1.229 moko 5329:
5330: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.154 moko 5331: /* end confdefs.h. */
5332: #include <gmime/gmime.h>
5333: int
5334: main ()
5335: {
5336: guint v=gmime_major_version;
5337: ;
5338: return 0;
5339: }
5340: _ACEOF
5341: if ac_fn_c_try_link "$LINENO"; then :
5342: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5343: $as_echo "yes" >&6; }
1.66 paf 5344:
1.154 moko 5345: else
5346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347: $as_echo "no" >&6; }
5348: if test -z "$MIME"; then
1.201 moko 5349: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=DIR" "$LINENO" 5
1.154 moko 5350: else
5351: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 5352: fi
1.66 paf 5353:
1.229 moko 5354:
1.150 moko 5355: fi
1.154 moko 5356: rm -f core conftest.err conftest.$ac_objext \
5357: conftest$ac_exeext conftest.$ac_ext
1.229 moko 5358:
1.154 moko 5359: LIBS=$SAVE_LIBS
1.67 paf 5360: fi
1.66 paf 5361:
1.150 moko 5362: $as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 5363:
5364:
1.154 moko 5365: fi
1.66 paf 5366:
5367:
5368:
5369:
5370:
5371:
5372:
1.150 moko 5373: # Check whether --with-sendmail was given.
5374: if test "${with_sendmail+set}" = set; then :
5375: withval=$with_sendmail;
1.66 paf 5376: cat >>confdefs.h <<_ACEOF
5377: #define PA_FORCED_SENDMAIL "$withval"
5378: _ACEOF
5379:
5380:
1.150 moko 5381: fi
1.66 paf 5382:
5383:
5384:
1.122 moko 5385:
1.150 moko 5386: # Check whether --with-apache was given.
5387: if test "${with_apache+set}" = set; then :
5388: withval=$with_apache;
1.122 moko 5389: APXS=$withval
5390:
5391: if test -z "$APXS" -o "$APXS" = "yes"; then
5392: APXS=`which apxs 2>/dev/null`
1.142 moko 5393: if test -z "$APXS"; then
5394: APXS=`which apxs2 2>/dev/null`
5395: fi
5396: fi
1.122 moko 5397:
5398: APACHE=`$APXS -q TARGET 2>/dev/null`
5399:
5400: if test -z "$APACHE"; then
1.150 moko 5401: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 5402: fi
1.7 paf 5403:
1.122 moko 5404: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
5405: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
5406: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
5407: APACHE_CFLAGS=`$APXS -q CFLAGS`
5408:
1.150 moko 5409: fi
1.7 paf 5410:
5411:
1.62 paf 5412:
1.122 moko 5413:
1.150 moko 5414: if test -n "$APACHE"; then
1.122 moko 5415: COMPILE_APACHE_MODULE_TRUE=
5416: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 5417: else
1.122 moko 5418: COMPILE_APACHE_MODULE_TRUE='#'
5419: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 5420: fi
1.1 paf 5421:
5422:
5423:
1.62 paf 5424:
5425:
1.7 paf 5426:
1.1 paf 5427:
5428:
5429:
1.62 paf 5430:
1.128 moko 5431: case `pwd` in
5432: *\ * | *\ *)
1.150 moko 5433: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5434: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 5435: esac
5436:
5437:
5438:
5439: macro_version='2.4.2'
5440: macro_revision='1.3337'
5441:
5442:
5443:
5444:
5445:
5446:
5447:
5448:
5449:
5450:
5451:
5452:
5453:
5454: ltmain="$ac_aux_dir/ltmain.sh"
5455:
5456: # Backslashify metacharacters that are still active within
5457: # double-quoted strings.
5458: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 5459:
1.128 moko 5460: # Same as above, but do not quote variable references.
5461: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 5462:
1.128 moko 5463: # Sed substitution to delay expansion of an escaped shell variable in a
5464: # double_quote_subst'ed string.
5465: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 5466:
1.128 moko 5467: # Sed substitution to delay expansion of an escaped single quote.
5468: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 5469:
1.128 moko 5470: # Sed substitution to avoid accidental globbing in evaled expressions
5471: no_glob_subst='s/\*/\\\*/g'
1.86 paf 5472:
1.128 moko 5473: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5474: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5475: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 5476:
1.150 moko 5477: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5478: $as_echo_n "checking how to print strings... " >&6; }
1.128 moko 5479: # Test print first, because it will be a builtin if present.
5480: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5481: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5482: ECHO='print -r --'
5483: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5484: ECHO='printf %s\n'
5485: else
5486: # Use this function as a fallback that always works.
5487: func_fallback_echo ()
5488: {
5489: eval 'cat <<_LTECHO_EOF
5490: $1
5491: _LTECHO_EOF'
5492: }
5493: ECHO='func_fallback_echo'
5494: fi
1.86 paf 5495:
1.128 moko 5496: # func_echo_all arg...
5497: # Invoke $ECHO with all args, space-separated.
5498: func_echo_all ()
1.66 paf 5499: {
1.128 moko 5500: $ECHO ""
1.66 paf 5501: }
1.10 paf 5502:
1.128 moko 5503: case "$ECHO" in
1.150 moko 5504: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5505: $as_echo "printf" >&6; } ;;
5506: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5507: $as_echo "print -r" >&6; } ;;
5508: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5509: $as_echo "cat" >&6; } ;;
1.128 moko 5510: esac
5511:
5512:
5513:
5514:
5515:
5516:
5517:
5518:
5519:
5520:
5521:
5522:
5523:
5524:
1.150 moko 5525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5526: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5527: if ${ac_cv_path_SED+:} false; then :
5528: $as_echo_n "(cached) " >&6
5529: else
5530: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5531: for ac_i in 1 2 3 4 5 6 7; do
5532: ac_script="$ac_script$as_nl$ac_script"
5533: done
5534: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5535: { ac_script=; unset ac_script;}
5536: if test -z "$SED"; then
5537: ac_path_SED_found=false
5538: # Loop through the user's path and test for each of PROGNAME-LIST
5539: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 5540: for as_dir in $PATH
5541: do
5542: IFS=$as_save_IFS
5543: test -z "$as_dir" && as_dir=.
1.150 moko 5544: for ac_prog in sed gsed; do
1.128 moko 5545: for ac_exec_ext in '' $ac_executable_extensions; do
1.150 moko 5546: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5547: as_fn_executable_p "$ac_path_SED" || continue
1.150 moko 5548: # Check for GNU ac_path_SED and select it if it is found.
5549: # Check for GNU $ac_path_SED
5550: case `"$ac_path_SED" --version 2>&1` in
5551: *GNU*)
5552: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5553: *)
5554: ac_count=0
5555: $as_echo_n 0123456789 >"conftest.in"
5556: while :
5557: do
5558: cat "conftest.in" "conftest.in" >"conftest.tmp"
5559: mv "conftest.tmp" "conftest.in"
5560: cp "conftest.in" "conftest.nl"
5561: $as_echo '' >> "conftest.nl"
5562: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5563: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5564: as_fn_arith $ac_count + 1 && ac_count=$as_val
5565: if test $ac_count -gt ${ac_path_SED_max-0}; then
5566: # Best one so far, save it but keep looking for a better one
5567: ac_cv_path_SED="$ac_path_SED"
5568: ac_path_SED_max=$ac_count
5569: fi
5570: # 10*(2^10) chars as input seems more than enough
5571: test $ac_count -gt 10 && break
5572: done
5573: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5574: esac
5575:
5576: $ac_path_SED_found && break 3
1.128 moko 5577: done
5578: done
1.150 moko 5579: done
1.128 moko 5580: IFS=$as_save_IFS
1.150 moko 5581: if test -z "$ac_cv_path_SED"; then
5582: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 5583: fi
1.150 moko 5584: else
5585: ac_cv_path_SED=$SED
5586: fi
1.10 paf 5587:
1.66 paf 5588: fi
1.150 moko 5589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5590: $as_echo "$ac_cv_path_SED" >&6; }
5591: SED="$ac_cv_path_SED"
5592: rm -f conftest.sed
1.128 moko 5593:
5594: test -z "$SED" && SED=sed
5595: Xsed="$SED -e 1s/^X//"
1.10 paf 5596:
1.128 moko 5597:
5598:
5599:
5600:
5601:
5602:
5603:
5604:
5605:
5606:
1.150 moko 5607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5608: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5609: if ${ac_cv_path_GREP+:} false; then :
5610: $as_echo_n "(cached) " >&6
5611: else
5612: if test -z "$GREP"; then
5613: ac_path_GREP_found=false
5614: # Loop through the user's path and test for each of PROGNAME-LIST
5615: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5617: do
5618: IFS=$as_save_IFS
5619: test -z "$as_dir" && as_dir=.
5620: for ac_prog in grep ggrep; do
5621: for ac_exec_ext in '' $ac_executable_extensions; do
5622: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5623: as_fn_executable_p "$ac_path_GREP" || continue
1.150 moko 5624: # Check for GNU ac_path_GREP and select it if it is found.
5625: # Check for GNU $ac_path_GREP
5626: case `"$ac_path_GREP" --version 2>&1` in
5627: *GNU*)
5628: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5629: *)
5630: ac_count=0
5631: $as_echo_n 0123456789 >"conftest.in"
5632: while :
5633: do
5634: cat "conftest.in" "conftest.in" >"conftest.tmp"
5635: mv "conftest.tmp" "conftest.in"
5636: cp "conftest.in" "conftest.nl"
5637: $as_echo 'GREP' >> "conftest.nl"
5638: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5639: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5640: as_fn_arith $ac_count + 1 && ac_count=$as_val
5641: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5642: # Best one so far, save it but keep looking for a better one
5643: ac_cv_path_GREP="$ac_path_GREP"
5644: ac_path_GREP_max=$ac_count
1.128 moko 5645: fi
1.150 moko 5646: # 10*(2^10) chars as input seems more than enough
5647: test $ac_count -gt 10 && break
5648: done
5649: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5650: esac
5651:
5652: $ac_path_GREP_found && break 3
5653: done
5654: done
5655: done
5656: IFS=$as_save_IFS
5657: if test -z "$ac_cv_path_GREP"; then
5658: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5659: fi
5660: else
5661: ac_cv_path_GREP=$GREP
5662: fi
5663:
1.128 moko 5664: fi
1.150 moko 5665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5666: $as_echo "$ac_cv_path_GREP" >&6; }
5667: GREP="$ac_cv_path_GREP"
5668:
5669:
5670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5671: $as_echo_n "checking for egrep... " >&6; }
5672: if ${ac_cv_path_EGREP+:} false; then :
5673: $as_echo_n "(cached) " >&6
5674: else
5675: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5676: then ac_cv_path_EGREP="$GREP -E"
5677: else
5678: if test -z "$EGREP"; then
5679: ac_path_EGREP_found=false
5680: # Loop through the user's path and test for each of PROGNAME-LIST
5681: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5683: do
5684: IFS=$as_save_IFS
5685: test -z "$as_dir" && as_dir=.
5686: for ac_prog in egrep; do
5687: for ac_exec_ext in '' $ac_executable_extensions; do
5688: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5689: as_fn_executable_p "$ac_path_EGREP" || continue
1.150 moko 5690: # Check for GNU ac_path_EGREP and select it if it is found.
5691: # Check for GNU $ac_path_EGREP
5692: case `"$ac_path_EGREP" --version 2>&1` in
5693: *GNU*)
5694: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5695: *)
5696: ac_count=0
5697: $as_echo_n 0123456789 >"conftest.in"
5698: while :
5699: do
5700: cat "conftest.in" "conftest.in" >"conftest.tmp"
5701: mv "conftest.tmp" "conftest.in"
5702: cp "conftest.in" "conftest.nl"
5703: $as_echo 'EGREP' >> "conftest.nl"
5704: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5705: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5706: as_fn_arith $ac_count + 1 && ac_count=$as_val
5707: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5708: # Best one so far, save it but keep looking for a better one
5709: ac_cv_path_EGREP="$ac_path_EGREP"
5710: ac_path_EGREP_max=$ac_count
5711: fi
5712: # 10*(2^10) chars as input seems more than enough
5713: test $ac_count -gt 10 && break
5714: done
5715: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5716: esac
1.128 moko 5717:
1.150 moko 5718: $ac_path_EGREP_found && break 3
5719: done
5720: done
5721: done
5722: IFS=$as_save_IFS
5723: if test -z "$ac_cv_path_EGREP"; then
5724: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5725: fi
5726: else
5727: ac_cv_path_EGREP=$EGREP
5728: fi
1.128 moko 5729:
1.150 moko 5730: fi
5731: fi
5732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5733: $as_echo "$ac_cv_path_EGREP" >&6; }
5734: EGREP="$ac_cv_path_EGREP"
5735:
5736:
5737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5738: $as_echo_n "checking for fgrep... " >&6; }
5739: if ${ac_cv_path_FGREP+:} false; then :
5740: $as_echo_n "(cached) " >&6
5741: else
5742: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5743: then ac_cv_path_FGREP="$GREP -F"
5744: else
5745: if test -z "$FGREP"; then
5746: ac_path_FGREP_found=false
5747: # Loop through the user's path and test for each of PROGNAME-LIST
5748: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5750: do
5751: IFS=$as_save_IFS
5752: test -z "$as_dir" && as_dir=.
5753: for ac_prog in fgrep; do
5754: for ac_exec_ext in '' $ac_executable_extensions; do
5755: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.166 moko 5756: as_fn_executable_p "$ac_path_FGREP" || continue
1.150 moko 5757: # Check for GNU ac_path_FGREP and select it if it is found.
5758: # Check for GNU $ac_path_FGREP
5759: case `"$ac_path_FGREP" --version 2>&1` in
5760: *GNU*)
5761: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5762: *)
5763: ac_count=0
5764: $as_echo_n 0123456789 >"conftest.in"
5765: while :
5766: do
5767: cat "conftest.in" "conftest.in" >"conftest.tmp"
5768: mv "conftest.tmp" "conftest.in"
5769: cp "conftest.in" "conftest.nl"
5770: $as_echo 'FGREP' >> "conftest.nl"
5771: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5772: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5773: as_fn_arith $ac_count + 1 && ac_count=$as_val
5774: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5775: # Best one so far, save it but keep looking for a better one
5776: ac_cv_path_FGREP="$ac_path_FGREP"
5777: ac_path_FGREP_max=$ac_count
1.128 moko 5778: fi
1.150 moko 5779: # 10*(2^10) chars as input seems more than enough
5780: test $ac_count -gt 10 && break
5781: done
5782: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5783: esac
5784:
5785: $ac_path_FGREP_found && break 3
5786: done
5787: done
5788: done
5789: IFS=$as_save_IFS
5790: if test -z "$ac_cv_path_FGREP"; then
5791: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5792: fi
5793: else
5794: ac_cv_path_FGREP=$FGREP
5795: fi
5796:
5797: fi
1.128 moko 5798: fi
1.150 moko 5799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5800: $as_echo "$ac_cv_path_FGREP" >&6; }
5801: FGREP="$ac_cv_path_FGREP"
1.128 moko 5802:
5803:
5804: test -z "$GREP" && GREP=grep
5805:
5806:
5807:
5808:
5809:
5810:
5811:
5812:
5813:
5814:
5815:
5816:
5817:
5818:
5819:
5820:
5821:
5822:
5823:
1.150 moko 5824: # Check whether --with-gnu-ld was given.
5825: if test "${with_gnu_ld+set}" = set; then :
5826: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 5827: else
5828: with_gnu_ld=no
1.150 moko 5829: fi
5830:
1.128 moko 5831: ac_prog=ld
5832: if test "$GCC" = yes; then
5833: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 5834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5835: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 5836: case $host in
5837: *-*-mingw*)
5838: # gcc leaves a trailing carriage return which upsets mingw
5839: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5840: *)
5841: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5842: esac
5843: case $ac_prog in
5844: # Accept absolute paths.
5845: [\\/]* | ?:[\\/]*)
5846: re_direlt='/[^/][^/]*/\.\./'
5847: # Canonicalize the pathname of ld
5848: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5849: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5850: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5851: done
5852: test -z "$LD" && LD="$ac_prog"
5853: ;;
5854: "")
5855: # If it fails, then pretend we aren't using GCC.
5856: ac_prog=ld
5857: ;;
5858: *)
5859: # If it is relative, then search for the first ld in PATH.
5860: with_gnu_ld=unknown
5861: ;;
5862: esac
5863: elif test "$with_gnu_ld" = yes; then
1.150 moko 5864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5865: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 5866: else
1.150 moko 5867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5868: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 5869: fi
1.150 moko 5870: if ${lt_cv_path_LD+:} false; then :
5871: $as_echo_n "(cached) " >&6
1.128 moko 5872: else
5873: if test -z "$LD"; then
5874: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5875: for ac_dir in $PATH; do
5876: IFS="$lt_save_ifs"
5877: test -z "$ac_dir" && ac_dir=.
5878: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5879: lt_cv_path_LD="$ac_dir/$ac_prog"
5880: # Check to see if the program is GNU ld. I'd rather use --version,
5881: # but apparently some variants of GNU ld only accept -v.
5882: # Break only if it was the GNU/non-GNU ld that we prefer.
5883: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5884: *GNU* | *'with BFD'*)
5885: test "$with_gnu_ld" != no && break
5886: ;;
5887: *)
5888: test "$with_gnu_ld" != yes && break
5889: ;;
5890: esac
5891: fi
5892: done
5893: IFS="$lt_save_ifs"
5894: else
5895: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5896: fi
5897: fi
5898:
5899: LD="$lt_cv_path_LD"
5900: if test -n "$LD"; then
1.150 moko 5901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5902: $as_echo "$LD" >&6; }
1.128 moko 5903: else
1.150 moko 5904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905: $as_echo "no" >&6; }
1.128 moko 5906: fi
1.150 moko 5907: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5908: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5909: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5910: if ${lt_cv_prog_gnu_ld+:} false; then :
5911: $as_echo_n "(cached) " >&6
1.128 moko 5912: else
5913: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5914: case `$LD -v 2>&1 </dev/null` in
5915: *GNU* | *'with BFD'*)
5916: lt_cv_prog_gnu_ld=yes
5917: ;;
5918: *)
5919: lt_cv_prog_gnu_ld=no
5920: ;;
5921: esac
5922: fi
1.150 moko 5923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5924: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 5925: with_gnu_ld=$lt_cv_prog_gnu_ld
5926:
5927:
5928:
5929:
5930:
5931:
5932:
5933:
5934:
1.150 moko 5935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5936: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5937: if ${lt_cv_path_NM+:} false; then :
5938: $as_echo_n "(cached) " >&6
1.128 moko 5939: else
5940: if test -n "$NM"; then
5941: # Let the user override the test.
5942: lt_cv_path_NM="$NM"
5943: else
5944: lt_nm_to_check="${ac_tool_prefix}nm"
5945: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5946: lt_nm_to_check="$lt_nm_to_check nm"
5947: fi
5948: for lt_tmp_nm in $lt_nm_to_check; do
5949: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5950: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5951: IFS="$lt_save_ifs"
5952: test -z "$ac_dir" && ac_dir=.
5953: tmp_nm="$ac_dir/$lt_tmp_nm"
5954: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5955: # Check to see if the nm accepts a BSD-compat flag.
5956: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5957: # nm: unknown option "B" ignored
5958: # Tru64's nm complains that /dev/null is an invalid object file
5959: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5960: */dev/null* | *'Invalid file or object type'*)
5961: lt_cv_path_NM="$tmp_nm -B"
5962: break
5963: ;;
5964: *)
5965: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5966: */dev/null*)
5967: lt_cv_path_NM="$tmp_nm -p"
5968: break
5969: ;;
5970: *)
5971: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5972: continue # so that we can try to find one that supports BSD flags
5973: ;;
5974: esac
5975: ;;
5976: esac
5977: fi
5978: done
5979: IFS="$lt_save_ifs"
5980: done
5981: : ${lt_cv_path_NM=no}
5982: fi
5983: fi
1.150 moko 5984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5985: $as_echo "$lt_cv_path_NM" >&6; }
1.128 moko 5986: if test "$lt_cv_path_NM" != "no"; then
5987: NM="$lt_cv_path_NM"
5988: else
5989: # Didn't find any BSD compatible name lister, look for dumpbin.
5990: if test -n "$DUMPBIN"; then :
5991: # Let the user override the test.
5992: else
5993: if test -n "$ac_tool_prefix"; then
5994: for ac_prog in dumpbin "link -dump"
5995: do
5996: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5997: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 5998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999: $as_echo_n "checking for $ac_word... " >&6; }
6000: if ${ac_cv_prog_DUMPBIN+:} false; then :
6001: $as_echo_n "(cached) " >&6
1.128 moko 6002: else
6003: if test -n "$DUMPBIN"; then
6004: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6005: else
6006: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007: for as_dir in $PATH
6008: do
6009: IFS=$as_save_IFS
6010: test -z "$as_dir" && as_dir=.
1.150 moko 6011: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6012: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6013: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.150 moko 6014: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6015: break 2
6016: fi
6017: done
1.150 moko 6018: done
6019: IFS=$as_save_IFS
1.128 moko 6020:
6021: fi
6022: fi
6023: DUMPBIN=$ac_cv_prog_DUMPBIN
6024: if test -n "$DUMPBIN"; then
1.150 moko 6025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6026: $as_echo "$DUMPBIN" >&6; }
1.128 moko 6027: else
1.150 moko 6028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029: $as_echo "no" >&6; }
1.128 moko 6030: fi
6031:
1.150 moko 6032:
1.128 moko 6033: test -n "$DUMPBIN" && break
6034: done
6035: fi
6036: if test -z "$DUMPBIN"; then
6037: ac_ct_DUMPBIN=$DUMPBIN
6038: for ac_prog in dumpbin "link -dump"
6039: do
6040: # Extract the first word of "$ac_prog", so it can be a program name with args.
6041: set dummy $ac_prog; ac_word=$2
1.150 moko 6042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043: $as_echo_n "checking for $ac_word... " >&6; }
6044: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6045: $as_echo_n "(cached) " >&6
1.128 moko 6046: else
6047: if test -n "$ac_ct_DUMPBIN"; then
6048: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6049: else
6050: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051: for as_dir in $PATH
6052: do
6053: IFS=$as_save_IFS
6054: test -z "$as_dir" && as_dir=.
1.150 moko 6055: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6056: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6057: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.150 moko 6058: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6059: break 2
6060: fi
6061: done
1.150 moko 6062: done
6063: IFS=$as_save_IFS
1.128 moko 6064:
6065: fi
6066: fi
6067: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6068: if test -n "$ac_ct_DUMPBIN"; then
1.150 moko 6069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6070: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.128 moko 6071: else
1.150 moko 6072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073: $as_echo "no" >&6; }
1.128 moko 6074: fi
6075:
1.150 moko 6076:
1.128 moko 6077: test -n "$ac_ct_DUMPBIN" && break
6078: done
6079:
1.150 moko 6080: if test "x$ac_ct_DUMPBIN" = x; then
6081: DUMPBIN=":"
6082: else
6083: case $cross_compiling:$ac_tool_warned in
6084: yes:)
6085: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6086: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6087: ac_tool_warned=yes ;;
6088: esac
6089: DUMPBIN=$ac_ct_DUMPBIN
6090: fi
1.128 moko 6091: fi
6092:
6093: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6094: *COFF*)
6095: DUMPBIN="$DUMPBIN -symbols"
6096: ;;
6097: *)
6098: DUMPBIN=:
6099: ;;
6100: esac
6101: fi
6102:
6103: if test "$DUMPBIN" != ":"; then
6104: NM="$DUMPBIN"
6105: fi
6106: fi
6107: test -z "$NM" && NM=nm
6108:
6109:
6110:
6111:
6112:
6113:
1.150 moko 6114: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6115: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6116: if ${lt_cv_nm_interface+:} false; then :
6117: $as_echo_n "(cached) " >&6
1.128 moko 6118: else
6119: lt_cv_nm_interface="BSD nm"
6120: echo "int some_variable = 0;" > conftest.$ac_ext
6121: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6122: (eval "$ac_compile" 2>conftest.err)
6123: cat conftest.err >&5
6124: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6125: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6126: cat conftest.err >&5
6127: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6128: cat conftest.out >&5
6129: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6130: lt_cv_nm_interface="MS dumpbin"
6131: fi
6132: rm -f conftest*
6133: fi
1.150 moko 6134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6135: $as_echo "$lt_cv_nm_interface" >&6; }
1.128 moko 6136:
1.150 moko 6137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6138: $as_echo_n "checking whether ln -s works... " >&6; }
1.128 moko 6139: LN_S=$as_ln_s
6140: if test "$LN_S" = "ln -s"; then
1.150 moko 6141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6142: $as_echo "yes" >&6; }
1.128 moko 6143: else
1.150 moko 6144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6145: $as_echo "no, using $LN_S" >&6; }
1.128 moko 6146: fi
6147:
6148: # find the maximum length of command line arguments
1.150 moko 6149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6150: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6151: if ${lt_cv_sys_max_cmd_len+:} false; then :
6152: $as_echo_n "(cached) " >&6
1.128 moko 6153: else
6154: i=0
6155: teststring="ABCD"
6156:
6157: case $build_os in
6158: msdosdjgpp*)
6159: # On DJGPP, this test can blow up pretty badly due to problems in libc
6160: # (any single argument exceeding 2000 bytes causes a buffer overrun
6161: # during glob expansion). Even if it were fixed, the result of this
6162: # check would be larger than it should be.
6163: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6164: ;;
6165:
6166: gnu*)
6167: # Under GNU Hurd, this test is not required because there is
6168: # no limit to the length of command line arguments.
6169: # Libtool will interpret -1 as no limit whatsoever
6170: lt_cv_sys_max_cmd_len=-1;
6171: ;;
6172:
6173: cygwin* | mingw* | cegcc*)
6174: # On Win9x/ME, this test blows up -- it succeeds, but takes
6175: # about 5 minutes as the teststring grows exponentially.
6176: # Worse, since 9x/ME are not pre-emptively multitasking,
6177: # you end up with a "frozen" computer, even though with patience
6178: # the test eventually succeeds (with a max line length of 256k).
6179: # Instead, let's just punt: use the minimum linelength reported by
6180: # all of the supported platforms: 8192 (on NT/2K/XP).
6181: lt_cv_sys_max_cmd_len=8192;
6182: ;;
6183:
6184: mint*)
6185: # On MiNT this can take a long time and run out of memory.
6186: lt_cv_sys_max_cmd_len=8192;
6187: ;;
6188:
6189: amigaos*)
6190: # On AmigaOS with pdksh, this test takes hours, literally.
6191: # So we just punt and use a minimum line length of 8192.
6192: lt_cv_sys_max_cmd_len=8192;
6193: ;;
6194:
6195: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6196: # This has been around since 386BSD, at least. Likely further.
6197: if test -x /sbin/sysctl; then
6198: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6199: elif test -x /usr/sbin/sysctl; then
6200: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6201: else
6202: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6203: fi
6204: # And add a safety zone
6205: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6206: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6207: ;;
6208:
6209: interix*)
6210: # We know the value 262144 and hardcode it with a safety zone (like BSD)
6211: lt_cv_sys_max_cmd_len=196608
6212: ;;
6213:
6214: os2*)
6215: # The test takes a long time on OS/2.
6216: lt_cv_sys_max_cmd_len=8192
6217: ;;
6218:
6219: osf*)
6220: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6221: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6222: # nice to cause kernel panics so lets avoid the loop below.
6223: # First set a reasonable default.
6224: lt_cv_sys_max_cmd_len=16384
6225: #
6226: if test -x /sbin/sysconfig; then
6227: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6228: *1*) lt_cv_sys_max_cmd_len=-1 ;;
6229: esac
6230: fi
6231: ;;
6232: sco3.2v5*)
6233: lt_cv_sys_max_cmd_len=102400
6234: ;;
6235: sysv5* | sco5v6* | sysv4.2uw2*)
6236: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6237: if test -n "$kargmax"; then
6238: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6239: else
6240: lt_cv_sys_max_cmd_len=32768
6241: fi
6242: ;;
6243: *)
6244: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6245: if test -n "$lt_cv_sys_max_cmd_len"; then
6246: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6247: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6248: else
6249: # Make teststring a little bigger before we do anything with it.
6250: # a 1K string should be a reasonable start.
6251: for i in 1 2 3 4 5 6 7 8 ; do
6252: teststring=$teststring$teststring
6253: done
6254: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6255: # If test is not a shell built-in, we'll probably end up computing a
6256: # maximum length that is only half of the actual maximum length, but
6257: # we can't tell.
6258: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6259: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6260: test $i != 17 # 1/2 MB should be enough
6261: do
6262: i=`expr $i + 1`
6263: teststring=$teststring$teststring
6264: done
6265: # Only check the string length outside the loop.
6266: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6267: teststring=
6268: # Add a significant safety factor because C++ compilers can tack on
6269: # massive amounts of additional arguments before passing them to the
6270: # linker. It appears as though 1/2 is a usable value.
6271: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6272: fi
6273: ;;
6274: esac
6275:
6276: fi
6277:
6278: if test -n $lt_cv_sys_max_cmd_len ; then
1.150 moko 6279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6280: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 6281: else
1.150 moko 6282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6283: $as_echo "none" >&6; }
1.128 moko 6284: fi
6285: max_cmd_len=$lt_cv_sys_max_cmd_len
6286:
6287:
6288:
6289:
6290:
6291:
6292: : ${CP="cp -f"}
6293: : ${MV="mv -f"}
6294: : ${RM="rm -f"}
6295:
1.150 moko 6296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6297: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.128 moko 6298: # Try some XSI features
6299: xsi_shell=no
6300: ( _lt_dummy="a/b/c"
6301: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6302: = c,a/b,b/c, \
6303: && eval 'test $(( 1 + 1 )) -eq 2 \
6304: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6305: && xsi_shell=yes
1.150 moko 6306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6307: $as_echo "$xsi_shell" >&6; }
1.128 moko 6308:
6309:
1.150 moko 6310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6311: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.128 moko 6312: lt_shell_append=no
6313: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6314: >/dev/null 2>&1 \
6315: && lt_shell_append=yes
1.150 moko 6316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6317: $as_echo "$lt_shell_append" >&6; }
1.128 moko 6318:
6319:
6320: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6321: lt_unset=unset
6322: else
6323: lt_unset=false
6324: fi
6325:
6326:
6327:
6328:
6329:
6330: # test EBCDIC or ASCII
6331: case `echo X|tr X '\101'` in
6332: A) # ASCII based system
6333: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6334: lt_SP2NL='tr \040 \012'
6335: lt_NL2SP='tr \015\012 \040\040'
6336: ;;
6337: *) # EBCDIC based system
6338: lt_SP2NL='tr \100 \n'
6339: lt_NL2SP='tr \r\n \100\100'
6340: ;;
6341: esac
6342:
6343:
6344:
6345:
6346:
6347:
6348:
6349:
6350:
1.150 moko 6351: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6352: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6353: if ${lt_cv_to_host_file_cmd+:} false; then :
6354: $as_echo_n "(cached) " >&6
1.128 moko 6355: else
6356: case $host in
6357: *-*-mingw* )
6358: case $build in
6359: *-*-mingw* ) # actually msys
6360: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6361: ;;
6362: *-*-cygwin* )
6363: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6364: ;;
6365: * ) # otherwise, assume *nix
6366: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6367: ;;
6368: esac
6369: ;;
6370: *-*-cygwin* )
6371: case $build in
6372: *-*-mingw* ) # actually msys
6373: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6374: ;;
6375: *-*-cygwin* )
6376: lt_cv_to_host_file_cmd=func_convert_file_noop
6377: ;;
6378: * ) # otherwise, assume *nix
6379: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6380: ;;
6381: esac
6382: ;;
6383: * ) # unhandled hosts (and "normal" native builds)
6384: lt_cv_to_host_file_cmd=func_convert_file_noop
6385: ;;
6386: esac
6387:
6388: fi
6389:
6390: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.150 moko 6391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6392: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 6393:
6394:
6395:
6396:
6397:
1.150 moko 6398: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6399: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6400: if ${lt_cv_to_tool_file_cmd+:} false; then :
6401: $as_echo_n "(cached) " >&6
1.128 moko 6402: else
6403: #assume ordinary cross tools, or native build.
6404: lt_cv_to_tool_file_cmd=func_convert_file_noop
6405: case $host in
6406: *-*-mingw* )
6407: case $build in
6408: *-*-mingw* ) # actually msys
6409: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6410: ;;
6411: esac
6412: ;;
6413: esac
6414:
6415: fi
6416:
6417: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.150 moko 6418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6419: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 6420:
6421:
6422:
6423:
6424:
1.150 moko 6425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6426: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6427: if ${lt_cv_ld_reload_flag+:} false; then :
6428: $as_echo_n "(cached) " >&6
1.128 moko 6429: else
6430: lt_cv_ld_reload_flag='-r'
6431: fi
1.150 moko 6432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6433: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 6434: reload_flag=$lt_cv_ld_reload_flag
6435: case $reload_flag in
6436: "" | " "*) ;;
6437: *) reload_flag=" $reload_flag" ;;
6438: esac
6439: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6440: case $host_os in
6441: cygwin* | mingw* | pw32* | cegcc*)
6442: if test "$GCC" != yes; then
6443: reload_cmds=false
6444: fi
6445: ;;
6446: darwin*)
6447: if test "$GCC" = yes; then
6448: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6449: else
6450: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6451: fi
6452: ;;
6453: esac
6454:
6455:
6456:
6457:
6458:
6459:
6460:
6461:
6462:
6463: if test -n "$ac_tool_prefix"; then
6464: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6465: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 6466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467: $as_echo_n "checking for $ac_word... " >&6; }
6468: if ${ac_cv_prog_OBJDUMP+:} false; then :
6469: $as_echo_n "(cached) " >&6
1.128 moko 6470: else
6471: if test -n "$OBJDUMP"; then
6472: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6473: else
6474: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475: for as_dir in $PATH
6476: do
6477: IFS=$as_save_IFS
6478: test -z "$as_dir" && as_dir=.
1.150 moko 6479: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6480: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6481: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 6482: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6483: break 2
6484: fi
6485: done
1.150 moko 6486: done
6487: IFS=$as_save_IFS
1.128 moko 6488:
6489: fi
6490: fi
6491: OBJDUMP=$ac_cv_prog_OBJDUMP
6492: if test -n "$OBJDUMP"; then
1.150 moko 6493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6494: $as_echo "$OBJDUMP" >&6; }
1.128 moko 6495: else
1.150 moko 6496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497: $as_echo "no" >&6; }
1.128 moko 6498: fi
6499:
1.150 moko 6500:
1.128 moko 6501: fi
6502: if test -z "$ac_cv_prog_OBJDUMP"; then
6503: ac_ct_OBJDUMP=$OBJDUMP
6504: # Extract the first word of "objdump", so it can be a program name with args.
6505: set dummy objdump; ac_word=$2
1.150 moko 6506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507: $as_echo_n "checking for $ac_word... " >&6; }
6508: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6509: $as_echo_n "(cached) " >&6
1.128 moko 6510: else
6511: if test -n "$ac_ct_OBJDUMP"; then
6512: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6513: else
6514: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515: for as_dir in $PATH
6516: do
6517: IFS=$as_save_IFS
6518: test -z "$as_dir" && as_dir=.
1.150 moko 6519: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6520: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6521: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 6522: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6523: break 2
6524: fi
6525: done
1.150 moko 6526: done
6527: IFS=$as_save_IFS
1.128 moko 6528:
6529: fi
6530: fi
6531: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6532: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 6533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6534: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 6535: else
1.150 moko 6536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537: $as_echo "no" >&6; }
1.128 moko 6538: fi
6539:
1.150 moko 6540: if test "x$ac_ct_OBJDUMP" = x; then
6541: OBJDUMP="false"
6542: else
6543: case $cross_compiling:$ac_tool_warned in
6544: yes:)
6545: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6546: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6547: ac_tool_warned=yes ;;
6548: esac
6549: OBJDUMP=$ac_ct_OBJDUMP
6550: fi
1.128 moko 6551: else
6552: OBJDUMP="$ac_cv_prog_OBJDUMP"
6553: fi
6554:
6555: test -z "$OBJDUMP" && OBJDUMP=objdump
6556:
6557:
6558:
6559:
6560:
6561:
1.150 moko 6562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6563: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6564: if ${lt_cv_deplibs_check_method+:} false; then :
6565: $as_echo_n "(cached) " >&6
1.128 moko 6566: else
6567: lt_cv_file_magic_cmd='$MAGIC_CMD'
6568: lt_cv_file_magic_test_file=
6569: lt_cv_deplibs_check_method='unknown'
6570: # Need to set the preceding variable on all platforms that support
6571: # interlibrary dependencies.
6572: # 'none' -- dependencies not supported.
6573: # `unknown' -- same as none, but documents that we really don't know.
6574: # 'pass_all' -- all dependencies passed with no checks.
6575: # 'test_compile' -- check by making test program.
6576: # 'file_magic [[regex]]' -- check by looking for files in library path
6577: # which responds to the $file_magic_cmd with a given extended regex.
6578: # If you have `file' or equivalent on your system and you're not sure
6579: # whether `pass_all' will *always* work, you probably want this one.
6580:
6581: case $host_os in
6582: aix[4-9]*)
6583: lt_cv_deplibs_check_method=pass_all
6584: ;;
6585:
6586: beos*)
6587: lt_cv_deplibs_check_method=pass_all
6588: ;;
6589:
6590: bsdi[45]*)
6591: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6592: lt_cv_file_magic_cmd='/usr/bin/file -L'
6593: lt_cv_file_magic_test_file=/shlib/libc.so
6594: ;;
6595:
6596: cygwin*)
6597: # func_win32_libid is a shell function defined in ltmain.sh
6598: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6599: lt_cv_file_magic_cmd='func_win32_libid'
6600: ;;
6601:
6602: mingw* | pw32*)
6603: # Base MSYS/MinGW do not provide the 'file' command needed by
6604: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6605: # unless we find 'file', for example because we are cross-compiling.
6606: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6607: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6608: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6609: lt_cv_file_magic_cmd='func_win32_libid'
6610: else
6611: # Keep this pattern in sync with the one in func_win32_libid.
6612: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6613: lt_cv_file_magic_cmd='$OBJDUMP -f'
6614: fi
6615: ;;
6616:
6617: cegcc*)
6618: # use the weaker test based on 'objdump'. See mingw*.
6619: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6620: lt_cv_file_magic_cmd='$OBJDUMP -f'
6621: ;;
6622:
6623: darwin* | rhapsody*)
6624: lt_cv_deplibs_check_method=pass_all
6625: ;;
6626:
6627: freebsd* | dragonfly*)
6628: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6629: case $host_cpu in
6630: i*86 )
6631: # Not sure whether the presence of OpenBSD here was a mistake.
6632: # Let's accept both of them until this is cleared up.
6633: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6634: lt_cv_file_magic_cmd=/usr/bin/file
6635: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6636: ;;
6637: esac
6638: else
6639: lt_cv_deplibs_check_method=pass_all
6640: fi
6641: ;;
6642:
6643: gnu*)
6644: lt_cv_deplibs_check_method=pass_all
6645: ;;
6646:
6647: haiku*)
6648: lt_cv_deplibs_check_method=pass_all
6649: ;;
6650:
6651: hpux10.20* | hpux11*)
6652: lt_cv_file_magic_cmd=/usr/bin/file
6653: case $host_cpu in
6654: ia64*)
6655: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6656: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6657: ;;
6658: hppa*64*)
6659: 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]'
6660: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6661: ;;
6662: *)
6663: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6664: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6665: ;;
6666: esac
6667: ;;
6668:
6669: interix[3-9]*)
6670: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6671: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6672: ;;
6673:
6674: irix5* | irix6* | nonstopux*)
6675: case $LD in
6676: *-32|*"-32 ") libmagic=32-bit;;
6677: *-n32|*"-n32 ") libmagic=N32;;
6678: *-64|*"-64 ") libmagic=64-bit;;
6679: *) libmagic=never-match;;
6680: esac
6681: lt_cv_deplibs_check_method=pass_all
6682: ;;
6683:
6684: # This must be glibc/ELF.
6685: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6686: lt_cv_deplibs_check_method=pass_all
6687: ;;
6688:
6689: netbsd*)
6690: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6691: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6692: else
6693: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6694: fi
6695: ;;
6696:
6697: newos6*)
6698: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6699: lt_cv_file_magic_cmd=/usr/bin/file
6700: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6701: ;;
6702:
6703: *nto* | *qnx*)
6704: lt_cv_deplibs_check_method=pass_all
6705: ;;
6706:
6707: openbsd*)
6708: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6709: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6710: else
6711: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6712: fi
6713: ;;
6714:
6715: osf3* | osf4* | osf5*)
6716: lt_cv_deplibs_check_method=pass_all
6717: ;;
6718:
6719: rdos*)
6720: lt_cv_deplibs_check_method=pass_all
6721: ;;
6722:
6723: solaris*)
6724: lt_cv_deplibs_check_method=pass_all
6725: ;;
6726:
6727: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6728: lt_cv_deplibs_check_method=pass_all
6729: ;;
6730:
6731: sysv4 | sysv4.3*)
6732: case $host_vendor in
6733: motorola)
6734: 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]'
6735: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6736: ;;
6737: ncr)
6738: lt_cv_deplibs_check_method=pass_all
6739: ;;
6740: sequent)
6741: lt_cv_file_magic_cmd='/bin/file'
6742: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6743: ;;
6744: sni)
6745: lt_cv_file_magic_cmd='/bin/file'
6746: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6747: lt_cv_file_magic_test_file=/lib/libc.so
6748: ;;
6749: siemens)
6750: lt_cv_deplibs_check_method=pass_all
6751: ;;
6752: pc)
6753: lt_cv_deplibs_check_method=pass_all
6754: ;;
6755: esac
6756: ;;
6757:
6758: tpf*)
6759: lt_cv_deplibs_check_method=pass_all
6760: ;;
6761: esac
6762:
6763: fi
1.150 moko 6764: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6765: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 6766:
6767: file_magic_glob=
6768: want_nocaseglob=no
6769: if test "$build" = "$host"; then
6770: case $host_os in
6771: mingw* | pw32*)
6772: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6773: want_nocaseglob=yes
6774: else
6775: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6776: fi
6777: ;;
6778: esac
6779: fi
6780:
6781: file_magic_cmd=$lt_cv_file_magic_cmd
6782: deplibs_check_method=$lt_cv_deplibs_check_method
6783: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6784:
6785:
6786:
6787:
6788:
6789:
6790:
6791:
6792:
6793:
6794:
6795:
6796:
6797:
6798:
6799:
6800:
6801:
6802:
6803:
6804:
6805:
6806: if test -n "$ac_tool_prefix"; then
6807: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6808: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 6809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810: $as_echo_n "checking for $ac_word... " >&6; }
6811: if ${ac_cv_prog_DLLTOOL+:} false; then :
6812: $as_echo_n "(cached) " >&6
1.128 moko 6813: else
6814: if test -n "$DLLTOOL"; then
6815: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6816: else
6817: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818: for as_dir in $PATH
6819: do
6820: IFS=$as_save_IFS
6821: test -z "$as_dir" && as_dir=.
1.150 moko 6822: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6823: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6824: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 6825: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6826: break 2
6827: fi
6828: done
1.150 moko 6829: done
6830: IFS=$as_save_IFS
1.128 moko 6831:
6832: fi
6833: fi
6834: DLLTOOL=$ac_cv_prog_DLLTOOL
6835: if test -n "$DLLTOOL"; then
1.150 moko 6836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6837: $as_echo "$DLLTOOL" >&6; }
1.128 moko 6838: else
1.150 moko 6839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840: $as_echo "no" >&6; }
1.128 moko 6841: fi
6842:
1.150 moko 6843:
1.128 moko 6844: fi
6845: if test -z "$ac_cv_prog_DLLTOOL"; then
6846: ac_ct_DLLTOOL=$DLLTOOL
6847: # Extract the first word of "dlltool", so it can be a program name with args.
6848: set dummy dlltool; ac_word=$2
1.150 moko 6849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850: $as_echo_n "checking for $ac_word... " >&6; }
6851: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6852: $as_echo_n "(cached) " >&6
1.128 moko 6853: else
6854: if test -n "$ac_ct_DLLTOOL"; then
6855: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6856: else
6857: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858: for as_dir in $PATH
6859: do
6860: IFS=$as_save_IFS
6861: test -z "$as_dir" && as_dir=.
1.150 moko 6862: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6863: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6864: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 6865: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6866: break 2
6867: fi
6868: done
1.150 moko 6869: done
6870: IFS=$as_save_IFS
1.128 moko 6871:
6872: fi
6873: fi
6874: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6875: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 6876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6877: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 6878: else
1.150 moko 6879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880: $as_echo "no" >&6; }
1.128 moko 6881: fi
6882:
1.150 moko 6883: if test "x$ac_ct_DLLTOOL" = x; then
6884: DLLTOOL="false"
6885: else
6886: case $cross_compiling:$ac_tool_warned in
6887: yes:)
6888: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890: ac_tool_warned=yes ;;
6891: esac
6892: DLLTOOL=$ac_ct_DLLTOOL
6893: fi
1.128 moko 6894: else
6895: DLLTOOL="$ac_cv_prog_DLLTOOL"
6896: fi
6897:
6898: test -z "$DLLTOOL" && DLLTOOL=dlltool
6899:
6900:
6901:
6902:
6903:
6904:
6905:
1.150 moko 6906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6907: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6908: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6909: $as_echo_n "(cached) " >&6
1.128 moko 6910: else
6911: lt_cv_sharedlib_from_linklib_cmd='unknown'
6912:
6913: case $host_os in
6914: cygwin* | mingw* | pw32* | cegcc*)
6915: # two different shell functions defined in ltmain.sh
6916: # decide which to use based on capabilities of $DLLTOOL
6917: case `$DLLTOOL --help 2>&1` in
6918: *--identify-strict*)
6919: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6920: ;;
6921: *)
6922: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6923: ;;
6924: esac
6925: ;;
6926: *)
6927: # fallback: assume linklib IS sharedlib
6928: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6929: ;;
6930: esac
6931:
6932: fi
1.150 moko 6933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6934: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 6935: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6936: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6937:
6938:
6939:
6940:
6941:
6942:
6943:
6944: if test -n "$ac_tool_prefix"; then
6945: for ac_prog in ar
6946: do
6947: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6948: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.150 moko 6949: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950: $as_echo_n "checking for $ac_word... " >&6; }
6951: if ${ac_cv_prog_AR+:} false; then :
6952: $as_echo_n "(cached) " >&6
1.128 moko 6953: else
6954: if test -n "$AR"; then
6955: ac_cv_prog_AR="$AR" # Let the user override the test.
6956: else
6957: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958: for as_dir in $PATH
6959: do
6960: IFS=$as_save_IFS
6961: test -z "$as_dir" && as_dir=.
1.150 moko 6962: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 6963: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 6964: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.150 moko 6965: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 6966: break 2
6967: fi
6968: done
1.150 moko 6969: done
6970: IFS=$as_save_IFS
1.128 moko 6971:
6972: fi
6973: fi
6974: AR=$ac_cv_prog_AR
6975: if test -n "$AR"; then
1.150 moko 6976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6977: $as_echo "$AR" >&6; }
1.128 moko 6978: else
1.150 moko 6979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980: $as_echo "no" >&6; }
1.128 moko 6981: fi
6982:
1.150 moko 6983:
1.128 moko 6984: test -n "$AR" && break
6985: done
6986: fi
6987: if test -z "$AR"; then
6988: ac_ct_AR=$AR
6989: for ac_prog in ar
6990: do
6991: # Extract the first word of "$ac_prog", so it can be a program name with args.
6992: set dummy $ac_prog; ac_word=$2
1.150 moko 6993: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994: $as_echo_n "checking for $ac_word... " >&6; }
6995: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6996: $as_echo_n "(cached) " >&6
1.128 moko 6997: else
6998: if test -n "$ac_ct_AR"; then
6999: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7000: else
7001: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002: for as_dir in $PATH
7003: do
7004: IFS=$as_save_IFS
7005: test -z "$as_dir" && as_dir=.
1.150 moko 7006: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7007: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7008: ac_cv_prog_ac_ct_AR="$ac_prog"
1.150 moko 7009: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7010: break 2
7011: fi
7012: done
1.150 moko 7013: done
7014: IFS=$as_save_IFS
1.128 moko 7015:
7016: fi
7017: fi
7018: ac_ct_AR=$ac_cv_prog_ac_ct_AR
7019: if test -n "$ac_ct_AR"; then
1.150 moko 7020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7021: $as_echo "$ac_ct_AR" >&6; }
1.128 moko 7022: else
1.150 moko 7023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024: $as_echo "no" >&6; }
1.128 moko 7025: fi
7026:
1.150 moko 7027:
1.128 moko 7028: test -n "$ac_ct_AR" && break
7029: done
7030:
1.150 moko 7031: if test "x$ac_ct_AR" = x; then
7032: AR="false"
7033: else
7034: case $cross_compiling:$ac_tool_warned in
7035: yes:)
7036: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7037: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7038: ac_tool_warned=yes ;;
7039: esac
7040: AR=$ac_ct_AR
7041: fi
1.128 moko 7042: fi
7043:
7044: : ${AR=ar}
7045: : ${AR_FLAGS=cru}
7046:
7047:
7048:
7049:
7050:
7051:
7052:
7053:
7054:
7055:
7056:
1.150 moko 7057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7058: $as_echo_n "checking for archiver @FILE support... " >&6; }
7059: if ${lt_cv_ar_at_file+:} false; then :
7060: $as_echo_n "(cached) " >&6
1.128 moko 7061: else
7062: lt_cv_ar_at_file=no
1.150 moko 7063: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7064: /* end confdefs.h. */
7065:
7066: int
7067: main ()
7068: {
7069:
7070: ;
7071: return 0;
7072: }
7073: _ACEOF
1.150 moko 7074: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 7075: echo conftest.$ac_objext > conftest.lst
7076: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 7077: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7078: (eval $lt_ar_try) 2>&5
7079: ac_status=$?
1.150 moko 7080: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7081: test $ac_status = 0; }
1.128 moko 7082: if test "$ac_status" -eq 0; then
7083: # Ensure the archiver fails upon bogus file names.
7084: rm -f conftest.$ac_objext libconftest.a
1.150 moko 7085: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 7086: (eval $lt_ar_try) 2>&5
7087: ac_status=$?
1.150 moko 7088: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089: test $ac_status = 0; }
1.128 moko 7090: if test "$ac_status" -ne 0; then
7091: lt_cv_ar_at_file=@
7092: fi
7093: fi
7094: rm -f conftest.* libconftest.a
7095:
7096: fi
1.150 moko 7097: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 7098:
7099: fi
1.150 moko 7100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7101: $as_echo "$lt_cv_ar_at_file" >&6; }
1.128 moko 7102:
7103: if test "x$lt_cv_ar_at_file" = xno; then
7104: archiver_list_spec=
7105: else
7106: archiver_list_spec=$lt_cv_ar_at_file
7107: fi
7108:
7109:
7110:
7111:
7112:
7113:
7114:
7115: if test -n "$ac_tool_prefix"; then
7116: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7117: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.150 moko 7118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119: $as_echo_n "checking for $ac_word... " >&6; }
7120: if ${ac_cv_prog_STRIP+:} false; then :
7121: $as_echo_n "(cached) " >&6
1.128 moko 7122: else
7123: if test -n "$STRIP"; then
7124: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7125: else
7126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127: for as_dir in $PATH
7128: do
7129: IFS=$as_save_IFS
7130: test -z "$as_dir" && as_dir=.
1.150 moko 7131: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7132: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7133: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.150 moko 7134: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7135: break 2
7136: fi
7137: done
1.150 moko 7138: done
7139: IFS=$as_save_IFS
1.128 moko 7140:
7141: fi
7142: fi
7143: STRIP=$ac_cv_prog_STRIP
7144: if test -n "$STRIP"; then
1.150 moko 7145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7146: $as_echo "$STRIP" >&6; }
1.128 moko 7147: else
1.150 moko 7148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149: $as_echo "no" >&6; }
1.128 moko 7150: fi
7151:
1.150 moko 7152:
1.128 moko 7153: fi
7154: if test -z "$ac_cv_prog_STRIP"; then
7155: ac_ct_STRIP=$STRIP
7156: # Extract the first word of "strip", so it can be a program name with args.
7157: set dummy strip; ac_word=$2
1.150 moko 7158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159: $as_echo_n "checking for $ac_word... " >&6; }
7160: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7161: $as_echo_n "(cached) " >&6
1.128 moko 7162: else
7163: if test -n "$ac_ct_STRIP"; then
7164: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7165: else
7166: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167: for as_dir in $PATH
7168: do
7169: IFS=$as_save_IFS
7170: test -z "$as_dir" && as_dir=.
1.150 moko 7171: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7172: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7173: ac_cv_prog_ac_ct_STRIP="strip"
1.150 moko 7174: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7175: break 2
7176: fi
7177: done
1.150 moko 7178: done
7179: IFS=$as_save_IFS
1.128 moko 7180:
7181: fi
7182: fi
7183: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7184: if test -n "$ac_ct_STRIP"; then
1.150 moko 7185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7186: $as_echo "$ac_ct_STRIP" >&6; }
1.128 moko 7187: else
1.150 moko 7188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189: $as_echo "no" >&6; }
1.128 moko 7190: fi
7191:
1.150 moko 7192: if test "x$ac_ct_STRIP" = x; then
7193: STRIP=":"
7194: else
7195: case $cross_compiling:$ac_tool_warned in
7196: yes:)
7197: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199: ac_tool_warned=yes ;;
7200: esac
7201: STRIP=$ac_ct_STRIP
7202: fi
1.128 moko 7203: else
7204: STRIP="$ac_cv_prog_STRIP"
7205: fi
7206:
7207: test -z "$STRIP" && STRIP=:
7208:
7209:
7210:
7211:
7212:
7213:
7214: if test -n "$ac_tool_prefix"; then
7215: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7216: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.150 moko 7217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218: $as_echo_n "checking for $ac_word... " >&6; }
7219: if ${ac_cv_prog_RANLIB+:} false; then :
7220: $as_echo_n "(cached) " >&6
1.128 moko 7221: else
7222: if test -n "$RANLIB"; then
7223: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7224: else
7225: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226: for as_dir in $PATH
7227: do
7228: IFS=$as_save_IFS
7229: test -z "$as_dir" && as_dir=.
1.150 moko 7230: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7231: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7232: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.150 moko 7233: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7234: break 2
7235: fi
7236: done
1.150 moko 7237: done
7238: IFS=$as_save_IFS
1.128 moko 7239:
7240: fi
7241: fi
7242: RANLIB=$ac_cv_prog_RANLIB
7243: if test -n "$RANLIB"; then
1.150 moko 7244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7245: $as_echo "$RANLIB" >&6; }
1.128 moko 7246: else
1.150 moko 7247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248: $as_echo "no" >&6; }
1.128 moko 7249: fi
7250:
1.150 moko 7251:
1.128 moko 7252: fi
7253: if test -z "$ac_cv_prog_RANLIB"; then
7254: ac_ct_RANLIB=$RANLIB
7255: # Extract the first word of "ranlib", so it can be a program name with args.
7256: set dummy ranlib; ac_word=$2
1.150 moko 7257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258: $as_echo_n "checking for $ac_word... " >&6; }
7259: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7260: $as_echo_n "(cached) " >&6
1.128 moko 7261: else
7262: if test -n "$ac_ct_RANLIB"; then
7263: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7264: else
7265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266: for as_dir in $PATH
7267: do
7268: IFS=$as_save_IFS
7269: test -z "$as_dir" && as_dir=.
1.150 moko 7270: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7271: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7272: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.150 moko 7273: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7274: break 2
7275: fi
7276: done
1.150 moko 7277: done
7278: IFS=$as_save_IFS
1.128 moko 7279:
7280: fi
7281: fi
7282: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7283: if test -n "$ac_ct_RANLIB"; then
1.150 moko 7284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7285: $as_echo "$ac_ct_RANLIB" >&6; }
1.128 moko 7286: else
1.150 moko 7287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288: $as_echo "no" >&6; }
1.128 moko 7289: fi
7290:
1.150 moko 7291: if test "x$ac_ct_RANLIB" = x; then
7292: RANLIB=":"
7293: else
7294: case $cross_compiling:$ac_tool_warned in
7295: yes:)
7296: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7297: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7298: ac_tool_warned=yes ;;
7299: esac
7300: RANLIB=$ac_ct_RANLIB
7301: fi
1.128 moko 7302: else
7303: RANLIB="$ac_cv_prog_RANLIB"
7304: fi
7305:
7306: test -z "$RANLIB" && RANLIB=:
7307:
7308:
7309:
7310:
7311:
7312:
7313: # Determine commands to create old-style static archives.
7314: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7315: old_postinstall_cmds='chmod 644 $oldlib'
7316: old_postuninstall_cmds=
7317:
7318: if test -n "$RANLIB"; then
7319: case $host_os in
7320: openbsd*)
7321: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7322: ;;
7323: *)
7324: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7325: ;;
7326: esac
7327: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7328: fi
7329:
7330: case $host_os in
7331: darwin*)
7332: lock_old_archive_extraction=yes ;;
7333: *)
7334: lock_old_archive_extraction=no ;;
7335: esac
7336:
7337:
7338:
7339:
7340:
7341:
7342:
7343:
7344:
7345:
7346:
7347:
7348:
7349:
7350:
7351:
7352:
7353:
7354:
7355:
7356:
7357:
7358:
7359:
7360:
7361:
7362:
7363:
7364:
7365:
7366:
7367:
7368:
7369:
7370:
7371:
7372:
7373:
7374:
7375: # If no C compiler was specified, use CC.
7376: LTCC=${LTCC-"$CC"}
7377:
7378: # If no C compiler flags were specified, use CFLAGS.
7379: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7380:
7381: # Allow CC to be a program name with arguments.
7382: compiler=$CC
7383:
7384:
7385: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.150 moko 7386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7387: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7388: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7389: $as_echo_n "(cached) " >&6
1.128 moko 7390: else
7391:
7392: # These are sane defaults that work on at least a few old systems.
7393: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7394:
7395: # Character class describing NM global symbol codes.
7396: symcode='[BCDEGRST]'
7397:
7398: # Regexp to match symbols that can be accessed directly from C.
7399: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7400:
7401: # Define system-specific variables.
7402: case $host_os in
7403: aix*)
7404: symcode='[BCDT]'
7405: ;;
7406: cygwin* | mingw* | pw32* | cegcc*)
7407: symcode='[ABCDGISTW]'
7408: ;;
7409: hpux*)
7410: if test "$host_cpu" = ia64; then
7411: symcode='[ABCDEGRST]'
7412: fi
7413: ;;
7414: irix* | nonstopux*)
7415: symcode='[BCDEGRST]'
7416: ;;
7417: osf*)
7418: symcode='[BCDEGQRST]'
7419: ;;
7420: solaris*)
7421: symcode='[BDRT]'
7422: ;;
7423: sco3.2v5*)
7424: symcode='[DT]'
7425: ;;
7426: sysv4.2uw2*)
7427: symcode='[DT]'
7428: ;;
7429: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7430: symcode='[ABDT]'
7431: ;;
7432: sysv4)
7433: symcode='[DFNSTU]'
7434: ;;
7435: esac
7436:
7437: # If we're using GNU nm, then use its standard symbol codes.
7438: case `$NM -V 2>&1` in
7439: *GNU* | *'with BFD'*)
7440: symcode='[ABCDGIRSTW]' ;;
7441: esac
7442:
7443: # Transform an extracted symbol line into a proper C declaration.
7444: # Some systems (esp. on ia64) link data and code symbols differently,
7445: # so use this general approach.
7446: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7447:
7448: # Transform an extracted symbol line into symbol name and symbol address
7449: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7450: 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'"
7451:
7452: # Handle CRLF in mingw tool chain
7453: opt_cr=
7454: case $build_os in
7455: mingw*)
7456: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7457: ;;
7458: esac
7459:
7460: # Try without a prefix underscore, then with it.
7461: for ac_symprfx in "" "_"; do
7462:
7463: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7464: symxfrm="\\1 $ac_symprfx\\2 \\2"
7465:
7466: # Write the raw and C identifiers.
7467: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7468: # Fake it for dumpbin and say T for any non-static function
7469: # and D for any global variable.
7470: # Also find C++ and __fastcall symbols from MSVC++,
7471: # which start with @ or ?.
7472: lt_cv_sys_global_symbol_pipe="$AWK '"\
7473: " {last_section=section; section=\$ 3};"\
7474: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7475: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7476: " \$ 0!~/External *\|/{next};"\
7477: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7478: " {if(hide[section]) next};"\
7479: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7480: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7481: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7482: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7483: " ' prfx=^$ac_symprfx"
7484: else
7485: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7486: fi
7487: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7488:
7489: # Check to see that the pipe works correctly.
7490: pipe_works=no
7491:
7492: rm -f conftest*
7493: cat > conftest.$ac_ext <<_LT_EOF
7494: #ifdef __cplusplus
7495: extern "C" {
7496: #endif
7497: char nm_test_var;
7498: void nm_test_func(void);
7499: void nm_test_func(void){}
7500: #ifdef __cplusplus
7501: }
7502: #endif
7503: int main(){nm_test_var='a';nm_test_func();return(0);}
7504: _LT_EOF
7505:
1.150 moko 7506: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7507: (eval $ac_compile) 2>&5
7508: ac_status=$?
1.150 moko 7509: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7510: test $ac_status = 0; }; then
1.128 moko 7511: # Now try to grab the symbols.
7512: nlist=conftest.nm
1.150 moko 7513: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.128 moko 7514: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7515: ac_status=$?
1.150 moko 7516: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517: test $ac_status = 0; } && test -s "$nlist"; then
1.128 moko 7518: # Try sorting and uniquifying the output.
7519: if sort "$nlist" | uniq > "$nlist"T; then
7520: mv -f "$nlist"T "$nlist"
7521: else
7522: rm -f "$nlist"T
7523: fi
7524:
7525: # Make sure that we snagged all the symbols we need.
7526: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7527: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7528: cat <<_LT_EOF > conftest.$ac_ext
7529: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7530: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7531: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7532: relocations are performed -- see ld's documentation on pseudo-relocs. */
7533: # define LT_DLSYM_CONST
7534: #elif defined(__osf__)
7535: /* This system does not cope well with relocations in const data. */
7536: # define LT_DLSYM_CONST
7537: #else
7538: # define LT_DLSYM_CONST const
7539: #endif
7540:
7541: #ifdef __cplusplus
7542: extern "C" {
7543: #endif
7544:
7545: _LT_EOF
7546: # Now generate the symbol file.
7547: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7548:
7549: cat <<_LT_EOF >> conftest.$ac_ext
7550:
7551: /* The mapping between symbol names and symbols. */
7552: LT_DLSYM_CONST struct {
7553: const char *name;
7554: void *address;
7555: }
7556: lt__PROGRAM__LTX_preloaded_symbols[] =
7557: {
7558: { "@PROGRAM@", (void *) 0 },
7559: _LT_EOF
7560: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7561: cat <<\_LT_EOF >> conftest.$ac_ext
7562: {0, (void *) 0}
7563: };
7564:
7565: /* This works around a problem in FreeBSD linker */
7566: #ifdef FREEBSD_WORKAROUND
7567: static const void *lt_preloaded_setup() {
7568: return lt__PROGRAM__LTX_preloaded_symbols;
7569: }
7570: #endif
7571:
7572: #ifdef __cplusplus
7573: }
7574: #endif
7575: _LT_EOF
7576: # Now try linking the two files.
7577: mv conftest.$ac_objext conftstm.$ac_objext
7578: lt_globsym_save_LIBS=$LIBS
7579: lt_globsym_save_CFLAGS=$CFLAGS
7580: LIBS="conftstm.$ac_objext"
7581: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 7582: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 7583: (eval $ac_link) 2>&5
7584: ac_status=$?
1.150 moko 7585: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7586: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.128 moko 7587: pipe_works=yes
7588: fi
7589: LIBS=$lt_globsym_save_LIBS
7590: CFLAGS=$lt_globsym_save_CFLAGS
7591: else
7592: echo "cannot find nm_test_func in $nlist" >&5
7593: fi
7594: else
7595: echo "cannot find nm_test_var in $nlist" >&5
7596: fi
7597: else
7598: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7599: fi
7600: else
7601: echo "$progname: failed program was:" >&5
7602: cat conftest.$ac_ext >&5
7603: fi
7604: rm -rf conftest* conftst*
7605:
7606: # Do not use the global_symbol_pipe unless it works.
7607: if test "$pipe_works" = yes; then
7608: break
7609: else
7610: lt_cv_sys_global_symbol_pipe=
7611: fi
7612: done
7613:
7614: fi
7615:
7616: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7617: lt_cv_sys_global_symbol_to_cdecl=
7618: fi
7619: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.150 moko 7620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7621: $as_echo "failed" >&6; }
1.128 moko 7622: else
1.150 moko 7623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7624: $as_echo "ok" >&6; }
1.128 moko 7625: fi
7626:
7627: # Response file support.
7628: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7629: nm_file_list_spec='@'
7630: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7631: nm_file_list_spec='@'
7632: fi
7633:
7634:
7635:
7636:
7637:
7638:
7639:
7640:
7641:
7642:
7643:
7644:
7645:
7646:
7647:
7648:
7649:
7650:
7651:
7652:
7653:
7654:
7655:
7656:
7657:
7658:
7659:
1.150 moko 7660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7661: $as_echo_n "checking for sysroot... " >&6; }
1.128 moko 7662:
1.150 moko 7663: # Check whether --with-sysroot was given.
7664: if test "${with_sysroot+set}" = set; then :
7665: withval=$with_sysroot;
1.128 moko 7666: else
7667: with_sysroot=no
1.150 moko 7668: fi
7669:
1.128 moko 7670:
7671: lt_sysroot=
7672: case ${with_sysroot} in #(
7673: yes)
7674: if test "$GCC" = yes; then
7675: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7676: fi
7677: ;; #(
7678: /*)
7679: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7680: ;; #(
7681: no|'')
7682: ;; #(
7683: *)
1.150 moko 7684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7685: $as_echo "${with_sysroot}" >&6; }
7686: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 7687: ;;
7688: esac
7689:
1.150 moko 7690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7691: $as_echo "${lt_sysroot:-no}" >&6; }
1.128 moko 7692:
7693:
7694:
7695:
7696:
1.150 moko 7697: # Check whether --enable-libtool-lock was given.
7698: if test "${enable_libtool_lock+set}" = set; then :
7699: enableval=$enable_libtool_lock;
7700: fi
1.128 moko 7701:
7702: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7703:
7704: # Some flags need to be propagated to the compiler or linker for good
7705: # libtool support.
7706: case $host in
7707: ia64-*-hpux*)
7708: # Find out which ABI we are using.
7709: echo 'int i;' > conftest.$ac_ext
1.150 moko 7710: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7711: (eval $ac_compile) 2>&5
7712: ac_status=$?
1.150 moko 7713: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7714: test $ac_status = 0; }; then
1.128 moko 7715: case `/usr/bin/file conftest.$ac_objext` in
7716: *ELF-32*)
7717: HPUX_IA64_MODE="32"
7718: ;;
7719: *ELF-64*)
7720: HPUX_IA64_MODE="64"
7721: ;;
7722: esac
7723: fi
7724: rm -rf conftest*
7725: ;;
7726: *-*-irix6*)
7727: # Find out which ABI we are using.
7728: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 7729: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7730: (eval $ac_compile) 2>&5
7731: ac_status=$?
1.150 moko 7732: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7733: test $ac_status = 0; }; then
1.128 moko 7734: if test "$lt_cv_prog_gnu_ld" = yes; then
7735: case `/usr/bin/file conftest.$ac_objext` in
7736: *32-bit*)
7737: LD="${LD-ld} -melf32bsmip"
7738: ;;
7739: *N32*)
7740: LD="${LD-ld} -melf32bmipn32"
7741: ;;
7742: *64-bit*)
7743: LD="${LD-ld} -melf64bmip"
7744: ;;
7745: esac
7746: else
7747: case `/usr/bin/file conftest.$ac_objext` in
7748: *32-bit*)
7749: LD="${LD-ld} -32"
7750: ;;
7751: *N32*)
7752: LD="${LD-ld} -n32"
7753: ;;
7754: *64-bit*)
7755: LD="${LD-ld} -64"
7756: ;;
7757: esac
7758: fi
7759: fi
7760: rm -rf conftest*
7761: ;;
7762:
7763: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7764: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7765: # Find out which ABI we are using.
7766: echo 'int i;' > conftest.$ac_ext
1.150 moko 7767: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7768: (eval $ac_compile) 2>&5
7769: ac_status=$?
1.150 moko 7770: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7771: test $ac_status = 0; }; then
1.128 moko 7772: case `/usr/bin/file conftest.o` in
7773: *32-bit*)
7774: case $host in
7775: x86_64-*kfreebsd*-gnu)
7776: LD="${LD-ld} -m elf_i386_fbsd"
7777: ;;
7778: x86_64-*linux*)
7779: LD="${LD-ld} -m elf_i386"
7780: ;;
7781: ppc64-*linux*|powerpc64-*linux*)
7782: LD="${LD-ld} -m elf32ppclinux"
7783: ;;
7784: s390x-*linux*)
7785: LD="${LD-ld} -m elf_s390"
7786: ;;
7787: sparc64-*linux*)
7788: LD="${LD-ld} -m elf32_sparc"
7789: ;;
7790: esac
7791: ;;
7792: *64-bit*)
7793: case $host in
7794: x86_64-*kfreebsd*-gnu)
7795: LD="${LD-ld} -m elf_x86_64_fbsd"
7796: ;;
7797: x86_64-*linux*)
7798: LD="${LD-ld} -m elf_x86_64"
7799: ;;
7800: ppc*-*linux*|powerpc*-*linux*)
7801: LD="${LD-ld} -m elf64ppc"
7802: ;;
7803: s390*-*linux*|s390*-*tpf*)
7804: LD="${LD-ld} -m elf64_s390"
7805: ;;
7806: sparc*-*linux*)
7807: LD="${LD-ld} -m elf64_sparc"
7808: ;;
7809: esac
7810: ;;
7811: esac
7812: fi
7813: rm -rf conftest*
7814: ;;
7815:
7816: *-*-sco3.2v5*)
7817: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7818: SAVE_CFLAGS="$CFLAGS"
7819: CFLAGS="$CFLAGS -belf"
1.150 moko 7820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7821: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7822: if ${lt_cv_cc_needs_belf+:} false; then :
7823: $as_echo_n "(cached) " >&6
1.128 moko 7824: else
7825: ac_ext=c
7826: ac_cpp='$CPP $CPPFLAGS'
7827: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7830:
1.150 moko 7831: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 7832: /* end confdefs.h. */
7833:
7834: int
7835: main ()
7836: {
7837:
7838: ;
7839: return 0;
7840: }
7841: _ACEOF
1.150 moko 7842: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 7843: lt_cv_cc_needs_belf=yes
7844: else
1.150 moko 7845: lt_cv_cc_needs_belf=no
1.128 moko 7846: fi
1.150 moko 7847: rm -f core conftest.err conftest.$ac_objext \
7848: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7849: ac_ext=c
7850: ac_cpp='$CPP $CPPFLAGS'
7851: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7854:
7855: fi
1.150 moko 7856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7857: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.128 moko 7858: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7859: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7860: CFLAGS="$SAVE_CFLAGS"
7861: fi
7862: ;;
7863: *-*solaris*)
7864: # Find out which ABI we are using.
7865: echo 'int i;' > conftest.$ac_ext
1.150 moko 7866: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 7867: (eval $ac_compile) 2>&5
7868: ac_status=$?
1.150 moko 7869: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870: test $ac_status = 0; }; then
1.128 moko 7871: case `/usr/bin/file conftest.o` in
7872: *64-bit*)
7873: case $lt_cv_prog_gnu_ld in
7874: yes*)
7875: case $host in
7876: i?86-*-solaris*)
7877: LD="${LD-ld} -m elf_x86_64"
7878: ;;
7879: sparc*-*-solaris*)
7880: LD="${LD-ld} -m elf64_sparc"
7881: ;;
7882: esac
7883: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7884: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7885: LD="${LD-ld}_sol2"
7886: fi
7887: ;;
7888: *)
7889: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7890: LD="${LD-ld} -64"
7891: fi
7892: ;;
7893: esac
7894: ;;
7895: esac
7896: fi
7897: rm -rf conftest*
7898: ;;
7899: esac
7900:
7901: need_locks="$enable_libtool_lock"
7902:
7903: if test -n "$ac_tool_prefix"; then
7904: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7905: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.150 moko 7906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907: $as_echo_n "checking for $ac_word... " >&6; }
7908: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7909: $as_echo_n "(cached) " >&6
1.128 moko 7910: else
7911: if test -n "$MANIFEST_TOOL"; then
7912: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7913: else
7914: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915: for as_dir in $PATH
7916: do
7917: IFS=$as_save_IFS
7918: test -z "$as_dir" && as_dir=.
1.150 moko 7919: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7920: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7921: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.150 moko 7922: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7923: break 2
7924: fi
7925: done
1.150 moko 7926: done
7927: IFS=$as_save_IFS
1.128 moko 7928:
7929: fi
7930: fi
7931: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7932: if test -n "$MANIFEST_TOOL"; then
1.150 moko 7933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7934: $as_echo "$MANIFEST_TOOL" >&6; }
1.128 moko 7935: else
1.150 moko 7936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937: $as_echo "no" >&6; }
1.128 moko 7938: fi
7939:
1.150 moko 7940:
1.128 moko 7941: fi
7942: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7943: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7944: # Extract the first word of "mt", so it can be a program name with args.
7945: set dummy mt; ac_word=$2
1.150 moko 7946: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947: $as_echo_n "checking for $ac_word... " >&6; }
7948: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7949: $as_echo_n "(cached) " >&6
1.128 moko 7950: else
7951: if test -n "$ac_ct_MANIFEST_TOOL"; then
7952: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7953: else
7954: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955: for as_dir in $PATH
7956: do
7957: IFS=$as_save_IFS
7958: test -z "$as_dir" && as_dir=.
1.150 moko 7959: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 7960: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 7961: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.150 moko 7962: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 7963: break 2
7964: fi
7965: done
1.150 moko 7966: done
7967: IFS=$as_save_IFS
1.128 moko 7968:
7969: fi
7970: fi
7971: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7972: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.150 moko 7973: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7974: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 7975: else
1.150 moko 7976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977: $as_echo "no" >&6; }
1.128 moko 7978: fi
7979:
1.150 moko 7980: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7981: MANIFEST_TOOL=":"
7982: else
7983: case $cross_compiling:$ac_tool_warned in
7984: yes:)
7985: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7986: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7987: ac_tool_warned=yes ;;
7988: esac
7989: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7990: fi
1.128 moko 7991: else
7992: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7993: fi
7994:
7995: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.150 moko 7996: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7997: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7998: if ${lt_cv_path_mainfest_tool+:} false; then :
7999: $as_echo_n "(cached) " >&6
1.128 moko 8000: else
8001: lt_cv_path_mainfest_tool=no
8002: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8003: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8004: cat conftest.err >&5
8005: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8006: lt_cv_path_mainfest_tool=yes
8007: fi
8008: rm -f conftest*
8009: fi
1.150 moko 8010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8011: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.128 moko 8012: if test "x$lt_cv_path_mainfest_tool" != xyes; then
8013: MANIFEST_TOOL=:
8014: fi
8015:
8016:
8017:
8018:
8019:
8020:
8021: case $host_os in
8022: rhapsody* | darwin*)
8023: if test -n "$ac_tool_prefix"; then
8024: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8025: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.150 moko 8026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027: $as_echo_n "checking for $ac_word... " >&6; }
8028: if ${ac_cv_prog_DSYMUTIL+:} false; then :
8029: $as_echo_n "(cached) " >&6
1.128 moko 8030: else
8031: if test -n "$DSYMUTIL"; then
8032: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8033: else
8034: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035: for as_dir in $PATH
8036: do
8037: IFS=$as_save_IFS
8038: test -z "$as_dir" && as_dir=.
1.150 moko 8039: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8040: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8041: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.150 moko 8042: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8043: break 2
8044: fi
8045: done
1.150 moko 8046: done
8047: IFS=$as_save_IFS
1.128 moko 8048:
8049: fi
8050: fi
8051: DSYMUTIL=$ac_cv_prog_DSYMUTIL
8052: if test -n "$DSYMUTIL"; then
1.150 moko 8053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8054: $as_echo "$DSYMUTIL" >&6; }
1.128 moko 8055: else
1.150 moko 8056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057: $as_echo "no" >&6; }
1.128 moko 8058: fi
8059:
1.150 moko 8060:
1.128 moko 8061: fi
8062: if test -z "$ac_cv_prog_DSYMUTIL"; then
8063: ac_ct_DSYMUTIL=$DSYMUTIL
8064: # Extract the first word of "dsymutil", so it can be a program name with args.
8065: set dummy dsymutil; ac_word=$2
1.150 moko 8066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067: $as_echo_n "checking for $ac_word... " >&6; }
8068: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8069: $as_echo_n "(cached) " >&6
1.128 moko 8070: else
8071: if test -n "$ac_ct_DSYMUTIL"; then
8072: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8073: else
8074: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075: for as_dir in $PATH
8076: do
8077: IFS=$as_save_IFS
8078: test -z "$as_dir" && as_dir=.
1.150 moko 8079: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8080: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8081: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.150 moko 8082: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8083: break 2
8084: fi
8085: done
1.150 moko 8086: done
8087: IFS=$as_save_IFS
1.128 moko 8088:
8089: fi
8090: fi
8091: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8092: if test -n "$ac_ct_DSYMUTIL"; then
1.150 moko 8093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8094: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 8095: else
1.150 moko 8096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097: $as_echo "no" >&6; }
1.128 moko 8098: fi
8099:
1.150 moko 8100: if test "x$ac_ct_DSYMUTIL" = x; then
8101: DSYMUTIL=":"
8102: else
8103: case $cross_compiling:$ac_tool_warned in
8104: yes:)
8105: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8106: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8107: ac_tool_warned=yes ;;
8108: esac
8109: DSYMUTIL=$ac_ct_DSYMUTIL
8110: fi
1.128 moko 8111: else
8112: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8113: fi
8114:
8115: if test -n "$ac_tool_prefix"; then
8116: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8117: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.150 moko 8118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119: $as_echo_n "checking for $ac_word... " >&6; }
8120: if ${ac_cv_prog_NMEDIT+:} false; then :
8121: $as_echo_n "(cached) " >&6
1.128 moko 8122: else
8123: if test -n "$NMEDIT"; then
8124: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8125: else
8126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127: for as_dir in $PATH
8128: do
8129: IFS=$as_save_IFS
8130: test -z "$as_dir" && as_dir=.
1.150 moko 8131: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8132: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8133: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.150 moko 8134: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8135: break 2
8136: fi
8137: done
1.150 moko 8138: done
8139: IFS=$as_save_IFS
1.128 moko 8140:
8141: fi
8142: fi
8143: NMEDIT=$ac_cv_prog_NMEDIT
8144: if test -n "$NMEDIT"; then
1.150 moko 8145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8146: $as_echo "$NMEDIT" >&6; }
1.128 moko 8147: else
1.150 moko 8148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149: $as_echo "no" >&6; }
1.128 moko 8150: fi
8151:
1.150 moko 8152:
1.128 moko 8153: fi
8154: if test -z "$ac_cv_prog_NMEDIT"; then
8155: ac_ct_NMEDIT=$NMEDIT
8156: # Extract the first word of "nmedit", so it can be a program name with args.
8157: set dummy nmedit; ac_word=$2
1.150 moko 8158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159: $as_echo_n "checking for $ac_word... " >&6; }
8160: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8161: $as_echo_n "(cached) " >&6
1.128 moko 8162: else
8163: if test -n "$ac_ct_NMEDIT"; then
8164: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8165: else
8166: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167: for as_dir in $PATH
8168: do
8169: IFS=$as_save_IFS
8170: test -z "$as_dir" && as_dir=.
1.150 moko 8171: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8172: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8173: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.150 moko 8174: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8175: break 2
8176: fi
8177: done
1.150 moko 8178: done
8179: IFS=$as_save_IFS
1.128 moko 8180:
8181: fi
8182: fi
8183: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8184: if test -n "$ac_ct_NMEDIT"; then
1.150 moko 8185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8186: $as_echo "$ac_ct_NMEDIT" >&6; }
1.128 moko 8187: else
1.150 moko 8188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189: $as_echo "no" >&6; }
1.128 moko 8190: fi
8191:
1.150 moko 8192: if test "x$ac_ct_NMEDIT" = x; then
8193: NMEDIT=":"
8194: else
8195: case $cross_compiling:$ac_tool_warned in
8196: yes:)
8197: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8198: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8199: ac_tool_warned=yes ;;
8200: esac
8201: NMEDIT=$ac_ct_NMEDIT
8202: fi
1.128 moko 8203: else
8204: NMEDIT="$ac_cv_prog_NMEDIT"
8205: fi
8206:
8207: if test -n "$ac_tool_prefix"; then
8208: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8209: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.150 moko 8210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211: $as_echo_n "checking for $ac_word... " >&6; }
8212: if ${ac_cv_prog_LIPO+:} false; then :
8213: $as_echo_n "(cached) " >&6
1.128 moko 8214: else
8215: if test -n "$LIPO"; then
8216: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8217: else
8218: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219: for as_dir in $PATH
8220: do
8221: IFS=$as_save_IFS
8222: test -z "$as_dir" && as_dir=.
1.150 moko 8223: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8224: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8225: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.150 moko 8226: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8227: break 2
8228: fi
8229: done
1.150 moko 8230: done
8231: IFS=$as_save_IFS
1.128 moko 8232:
8233: fi
8234: fi
8235: LIPO=$ac_cv_prog_LIPO
8236: if test -n "$LIPO"; then
1.150 moko 8237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8238: $as_echo "$LIPO" >&6; }
1.128 moko 8239: else
1.150 moko 8240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241: $as_echo "no" >&6; }
1.128 moko 8242: fi
8243:
1.150 moko 8244:
1.128 moko 8245: fi
8246: if test -z "$ac_cv_prog_LIPO"; then
8247: ac_ct_LIPO=$LIPO
8248: # Extract the first word of "lipo", so it can be a program name with args.
8249: set dummy lipo; ac_word=$2
1.150 moko 8250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8251: $as_echo_n "checking for $ac_word... " >&6; }
8252: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8253: $as_echo_n "(cached) " >&6
1.128 moko 8254: else
8255: if test -n "$ac_ct_LIPO"; then
8256: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8257: else
8258: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259: for as_dir in $PATH
8260: do
8261: IFS=$as_save_IFS
8262: test -z "$as_dir" && as_dir=.
1.150 moko 8263: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8264: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8265: ac_cv_prog_ac_ct_LIPO="lipo"
1.150 moko 8266: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8267: break 2
8268: fi
8269: done
1.150 moko 8270: done
8271: IFS=$as_save_IFS
1.128 moko 8272:
8273: fi
8274: fi
8275: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8276: if test -n "$ac_ct_LIPO"; then
1.150 moko 8277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8278: $as_echo "$ac_ct_LIPO" >&6; }
1.128 moko 8279: else
1.150 moko 8280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281: $as_echo "no" >&6; }
1.128 moko 8282: fi
8283:
1.150 moko 8284: if test "x$ac_ct_LIPO" = x; then
8285: LIPO=":"
8286: else
8287: case $cross_compiling:$ac_tool_warned in
8288: yes:)
8289: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8290: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8291: ac_tool_warned=yes ;;
8292: esac
8293: LIPO=$ac_ct_LIPO
8294: fi
1.128 moko 8295: else
8296: LIPO="$ac_cv_prog_LIPO"
8297: fi
8298:
8299: if test -n "$ac_tool_prefix"; then
8300: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8301: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.150 moko 8302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303: $as_echo_n "checking for $ac_word... " >&6; }
8304: if ${ac_cv_prog_OTOOL+:} false; then :
8305: $as_echo_n "(cached) " >&6
1.128 moko 8306: else
8307: if test -n "$OTOOL"; then
8308: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8309: else
8310: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311: for as_dir in $PATH
8312: do
8313: IFS=$as_save_IFS
8314: test -z "$as_dir" && as_dir=.
1.150 moko 8315: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8316: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8317: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.150 moko 8318: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8319: break 2
8320: fi
8321: done
1.150 moko 8322: done
8323: IFS=$as_save_IFS
1.128 moko 8324:
8325: fi
8326: fi
8327: OTOOL=$ac_cv_prog_OTOOL
8328: if test -n "$OTOOL"; then
1.150 moko 8329: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8330: $as_echo "$OTOOL" >&6; }
1.128 moko 8331: else
1.150 moko 8332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333: $as_echo "no" >&6; }
1.128 moko 8334: fi
8335:
1.150 moko 8336:
1.128 moko 8337: fi
8338: if test -z "$ac_cv_prog_OTOOL"; then
8339: ac_ct_OTOOL=$OTOOL
8340: # Extract the first word of "otool", so it can be a program name with args.
8341: set dummy otool; ac_word=$2
1.150 moko 8342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343: $as_echo_n "checking for $ac_word... " >&6; }
8344: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8345: $as_echo_n "(cached) " >&6
1.128 moko 8346: else
8347: if test -n "$ac_ct_OTOOL"; then
8348: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8349: else
8350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351: for as_dir in $PATH
8352: do
8353: IFS=$as_save_IFS
8354: test -z "$as_dir" && as_dir=.
1.150 moko 8355: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8356: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8357: ac_cv_prog_ac_ct_OTOOL="otool"
1.150 moko 8358: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8359: break 2
8360: fi
8361: done
1.150 moko 8362: done
8363: IFS=$as_save_IFS
1.128 moko 8364:
8365: fi
8366: fi
8367: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8368: if test -n "$ac_ct_OTOOL"; then
1.150 moko 8369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8370: $as_echo "$ac_ct_OTOOL" >&6; }
1.128 moko 8371: else
1.150 moko 8372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373: $as_echo "no" >&6; }
1.128 moko 8374: fi
8375:
1.150 moko 8376: if test "x$ac_ct_OTOOL" = x; then
8377: OTOOL=":"
8378: else
8379: case $cross_compiling:$ac_tool_warned in
8380: yes:)
8381: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8382: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8383: ac_tool_warned=yes ;;
8384: esac
8385: OTOOL=$ac_ct_OTOOL
8386: fi
1.128 moko 8387: else
8388: OTOOL="$ac_cv_prog_OTOOL"
8389: fi
8390:
8391: if test -n "$ac_tool_prefix"; then
8392: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8393: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.150 moko 8394: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395: $as_echo_n "checking for $ac_word... " >&6; }
8396: if ${ac_cv_prog_OTOOL64+:} false; then :
8397: $as_echo_n "(cached) " >&6
1.128 moko 8398: else
8399: if test -n "$OTOOL64"; then
8400: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8401: else
8402: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403: for as_dir in $PATH
8404: do
8405: IFS=$as_save_IFS
8406: test -z "$as_dir" && as_dir=.
1.150 moko 8407: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8408: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8409: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.150 moko 8410: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8411: break 2
8412: fi
8413: done
1.150 moko 8414: done
8415: IFS=$as_save_IFS
1.128 moko 8416:
8417: fi
8418: fi
8419: OTOOL64=$ac_cv_prog_OTOOL64
8420: if test -n "$OTOOL64"; then
1.150 moko 8421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8422: $as_echo "$OTOOL64" >&6; }
1.128 moko 8423: else
1.150 moko 8424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425: $as_echo "no" >&6; }
1.128 moko 8426: fi
8427:
1.150 moko 8428:
1.128 moko 8429: fi
8430: if test -z "$ac_cv_prog_OTOOL64"; then
8431: ac_ct_OTOOL64=$OTOOL64
8432: # Extract the first word of "otool64", so it can be a program name with args.
8433: set dummy otool64; ac_word=$2
1.150 moko 8434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435: $as_echo_n "checking for $ac_word... " >&6; }
8436: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8437: $as_echo_n "(cached) " >&6
1.128 moko 8438: else
8439: if test -n "$ac_ct_OTOOL64"; then
8440: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8441: else
8442: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443: for as_dir in $PATH
8444: do
8445: IFS=$as_save_IFS
8446: test -z "$as_dir" && as_dir=.
1.150 moko 8447: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8448: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8449: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.150 moko 8450: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8451: break 2
8452: fi
8453: done
1.150 moko 8454: done
8455: IFS=$as_save_IFS
1.128 moko 8456:
8457: fi
8458: fi
8459: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8460: if test -n "$ac_ct_OTOOL64"; then
1.150 moko 8461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8462: $as_echo "$ac_ct_OTOOL64" >&6; }
1.128 moko 8463: else
1.150 moko 8464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465: $as_echo "no" >&6; }
1.128 moko 8466: fi
8467:
1.150 moko 8468: if test "x$ac_ct_OTOOL64" = x; then
8469: OTOOL64=":"
8470: else
8471: case $cross_compiling:$ac_tool_warned in
8472: yes:)
8473: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8474: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8475: ac_tool_warned=yes ;;
8476: esac
8477: OTOOL64=$ac_ct_OTOOL64
8478: fi
1.128 moko 8479: else
8480: OTOOL64="$ac_cv_prog_OTOOL64"
8481: fi
8482:
8483:
8484:
8485:
8486:
8487:
8488:
8489:
8490:
8491:
8492:
8493:
8494:
8495:
8496:
8497:
8498:
8499:
8500:
8501:
8502:
8503:
8504:
8505:
8506:
8507:
8508:
1.150 moko 8509: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8510: $as_echo_n "checking for -single_module linker flag... " >&6; }
8511: if ${lt_cv_apple_cc_single_mod+:} false; then :
8512: $as_echo_n "(cached) " >&6
1.128 moko 8513: else
8514: lt_cv_apple_cc_single_mod=no
8515: if test -z "${LT_MULTI_MODULE}"; then
8516: # By default we will add the -single_module flag. You can override
8517: # by either setting the environment variable LT_MULTI_MODULE
8518: # non-empty at configure time, or by adding -multi_module to the
8519: # link flags.
8520: rm -rf libconftest.dylib*
8521: echo "int foo(void){return 1;}" > conftest.c
8522: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8523: -dynamiclib -Wl,-single_module conftest.c" >&5
8524: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8525: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8526: _lt_result=$?
8527: # If there is a non-empty error log, and "single_module"
8528: # appears in it, assume the flag caused a linker warning
8529: if test -s conftest.err && $GREP single_module conftest.err; then
8530: cat conftest.err >&5
8531: # Otherwise, if the output was created with a 0 exit code from
8532: # the compiler, it worked.
8533: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8534: lt_cv_apple_cc_single_mod=yes
8535: else
8536: cat conftest.err >&5
8537: fi
8538: rm -rf libconftest.dylib*
8539: rm -f conftest.*
8540: fi
8541: fi
1.150 moko 8542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8543: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.128 moko 8544:
1.150 moko 8545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8546: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8547: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8548: $as_echo_n "(cached) " >&6
1.128 moko 8549: else
8550: lt_cv_ld_exported_symbols_list=no
8551: save_LDFLAGS=$LDFLAGS
8552: echo "_main" > conftest.sym
8553: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 8554: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8555: /* end confdefs.h. */
8556:
8557: int
8558: main ()
8559: {
8560:
8561: ;
8562: return 0;
8563: }
8564: _ACEOF
1.150 moko 8565: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 8566: lt_cv_ld_exported_symbols_list=yes
8567: else
1.150 moko 8568: lt_cv_ld_exported_symbols_list=no
1.128 moko 8569: fi
1.150 moko 8570: rm -f core conftest.err conftest.$ac_objext \
8571: conftest$ac_exeext conftest.$ac_ext
1.128 moko 8572: LDFLAGS="$save_LDFLAGS"
8573:
8574: fi
1.150 moko 8575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8576: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 8577:
1.150 moko 8578: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8579: $as_echo_n "checking for -force_load linker flag... " >&6; }
8580: if ${lt_cv_ld_force_load+:} false; then :
8581: $as_echo_n "(cached) " >&6
1.128 moko 8582: else
8583: lt_cv_ld_force_load=no
8584: cat > conftest.c << _LT_EOF
8585: int forced_loaded() { return 2;}
8586: _LT_EOF
8587: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8588: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8589: echo "$AR cru libconftest.a conftest.o" >&5
8590: $AR cru libconftest.a conftest.o 2>&5
8591: echo "$RANLIB libconftest.a" >&5
8592: $RANLIB libconftest.a 2>&5
8593: cat > conftest.c << _LT_EOF
8594: int main() { return 0;}
8595: _LT_EOF
8596: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8597: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8598: _lt_result=$?
8599: if test -s conftest.err && $GREP force_load conftest.err; then
8600: cat conftest.err >&5
8601: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8602: lt_cv_ld_force_load=yes
8603: else
8604: cat conftest.err >&5
8605: fi
8606: rm -f conftest.err libconftest.a conftest conftest.c
8607: rm -rf conftest.dSYM
8608:
8609: fi
1.150 moko 8610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8611: $as_echo "$lt_cv_ld_force_load" >&6; }
1.128 moko 8612: case $host_os in
8613: rhapsody* | darwin1.[012])
8614: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8615: darwin1.*)
8616: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8617: darwin*) # darwin 5.x on
8618: # if running on 10.5 or later, the deployment target defaults
8619: # to the OS version, if on x86, and 10.4, the deployment
8620: # target defaults to 10.4. Don't you love it?
8621: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8622: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8623: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8624: 10.[012]*)
8625: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8626: 10.*)
8627: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8628: esac
8629: ;;
8630: esac
8631: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8632: _lt_dar_single_mod='$single_module'
8633: fi
8634: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8635: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8636: else
8637: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8638: fi
8639: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8640: _lt_dsymutil='~$DSYMUTIL $lib || :'
8641: else
8642: _lt_dsymutil=
8643: fi
8644: ;;
8645: esac
8646:
8647: ac_ext=c
8648: ac_cpp='$CPP $CPPFLAGS'
8649: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8650: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8651: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.150 moko 8652: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8653: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.128 moko 8654: # On Suns, sometimes $CPP names a directory.
8655: if test -n "$CPP" && test -d "$CPP"; then
8656: CPP=
8657: fi
8658: if test -z "$CPP"; then
1.150 moko 8659: if ${ac_cv_prog_CPP+:} false; then :
8660: $as_echo_n "(cached) " >&6
1.128 moko 8661: else
8662: # Double quotes because CPP needs to be expanded
8663: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8664: do
8665: ac_preproc_ok=false
8666: for ac_c_preproc_warn_flag in '' yes
8667: do
8668: # Use a header file that comes with gcc, so configuring glibc
8669: # with a fresh cross-compiler works.
8670: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8671: # <limits.h> exists even on freestanding compilers.
8672: # On the NeXT, cc -E runs the code through the compiler's parser,
8673: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8674: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8675: /* end confdefs.h. */
8676: #ifdef __STDC__
8677: # include <limits.h>
8678: #else
8679: # include <assert.h>
8680: #endif
8681: Syntax error
8682: _ACEOF
1.150 moko 8683: if ac_fn_c_try_cpp "$LINENO"; then :
8684:
1.128 moko 8685: else
8686: # Broken: fails on valid input.
8687: continue
8688: fi
1.150 moko 8689: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8690:
1.150 moko 8691: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8692: # can be detected and how.
1.150 moko 8693: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8694: /* end confdefs.h. */
8695: #include <ac_nonexistent.h>
8696: _ACEOF
1.150 moko 8697: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8698: # Broken: success on invalid input.
8699: continue
8700: else
8701: # Passes both tests.
8702: ac_preproc_ok=:
8703: break
8704: fi
1.150 moko 8705: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8706:
8707: done
8708: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8709: rm -f conftest.i conftest.err conftest.$ac_ext
8710: if $ac_preproc_ok; then :
1.128 moko 8711: break
8712: fi
8713:
8714: done
8715: ac_cv_prog_CPP=$CPP
8716:
8717: fi
8718: CPP=$ac_cv_prog_CPP
8719: else
8720: ac_cv_prog_CPP=$CPP
8721: fi
1.150 moko 8722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8723: $as_echo "$CPP" >&6; }
1.128 moko 8724: ac_preproc_ok=false
8725: for ac_c_preproc_warn_flag in '' yes
8726: do
8727: # Use a header file that comes with gcc, so configuring glibc
8728: # with a fresh cross-compiler works.
8729: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8730: # <limits.h> exists even on freestanding compilers.
8731: # On the NeXT, cc -E runs the code through the compiler's parser,
8732: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 8733: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8734: /* end confdefs.h. */
8735: #ifdef __STDC__
8736: # include <limits.h>
8737: #else
8738: # include <assert.h>
8739: #endif
8740: Syntax error
8741: _ACEOF
1.150 moko 8742: if ac_fn_c_try_cpp "$LINENO"; then :
8743:
1.128 moko 8744: else
8745: # Broken: fails on valid input.
8746: continue
8747: fi
1.150 moko 8748: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8749:
1.150 moko 8750: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 8751: # can be detected and how.
1.150 moko 8752: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8753: /* end confdefs.h. */
8754: #include <ac_nonexistent.h>
8755: _ACEOF
1.150 moko 8756: if ac_fn_c_try_cpp "$LINENO"; then :
1.128 moko 8757: # Broken: success on invalid input.
8758: continue
8759: else
8760: # Passes both tests.
8761: ac_preproc_ok=:
8762: break
8763: fi
1.150 moko 8764: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 8765:
8766: done
8767: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 8768: rm -f conftest.i conftest.err conftest.$ac_ext
8769: if $ac_preproc_ok; then :
8770:
1.128 moko 8771: else
1.150 moko 8772: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8773: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8774: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8775: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 8776: fi
8777:
8778: ac_ext=c
8779: ac_cpp='$CPP $CPPFLAGS'
8780: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8781: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8782: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8783:
8784:
1.150 moko 8785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8786: $as_echo_n "checking for ANSI C header files... " >&6; }
8787: if ${ac_cv_header_stdc+:} false; then :
8788: $as_echo_n "(cached) " >&6
1.128 moko 8789: else
1.150 moko 8790: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8791: /* end confdefs.h. */
8792: #include <stdlib.h>
8793: #include <stdarg.h>
8794: #include <string.h>
8795: #include <float.h>
8796:
8797: int
8798: main ()
8799: {
8800:
8801: ;
8802: return 0;
8803: }
8804: _ACEOF
1.150 moko 8805: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 8806: ac_cv_header_stdc=yes
8807: else
1.150 moko 8808: ac_cv_header_stdc=no
1.128 moko 8809: fi
1.150 moko 8810: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 8811:
8812: if test $ac_cv_header_stdc = yes; then
8813: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.150 moko 8814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8815: /* end confdefs.h. */
8816: #include <string.h>
8817:
8818: _ACEOF
8819: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8820: $EGREP "memchr" >/dev/null 2>&1; then :
8821:
1.128 moko 8822: else
8823: ac_cv_header_stdc=no
8824: fi
8825: rm -f conftest*
8826:
8827: fi
8828:
8829: if test $ac_cv_header_stdc = yes; then
8830: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.150 moko 8831: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8832: /* end confdefs.h. */
8833: #include <stdlib.h>
8834:
8835: _ACEOF
8836: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.150 moko 8837: $EGREP "free" >/dev/null 2>&1; then :
8838:
1.128 moko 8839: else
8840: ac_cv_header_stdc=no
8841: fi
8842: rm -f conftest*
8843:
8844: fi
8845:
8846: if test $ac_cv_header_stdc = yes; then
8847: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.150 moko 8848: if test "$cross_compiling" = yes; then :
1.128 moko 8849: :
8850: else
1.150 moko 8851: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8852: /* end confdefs.h. */
8853: #include <ctype.h>
1.150 moko 8854: #include <stdlib.h>
1.128 moko 8855: #if ((' ' & 0x0FF) == 0x020)
8856: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8857: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8858: #else
8859: # define ISLOWER(c) \
8860: (('a' <= (c) && (c) <= 'i') \
8861: || ('j' <= (c) && (c) <= 'r') \
8862: || ('s' <= (c) && (c) <= 'z'))
8863: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8864: #endif
8865:
8866: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8867: int
8868: main ()
8869: {
8870: int i;
8871: for (i = 0; i < 256; i++)
8872: if (XOR (islower (i), ISLOWER (i))
8873: || toupper (i) != TOUPPER (i))
1.150 moko 8874: return 2;
8875: return 0;
1.128 moko 8876: }
8877: _ACEOF
1.150 moko 8878: if ac_fn_c_try_run "$LINENO"; then :
8879:
1.128 moko 8880: else
1.150 moko 8881: ac_cv_header_stdc=no
1.128 moko 8882: fi
1.150 moko 8883: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8884: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 8885: fi
1.150 moko 8886:
1.128 moko 8887: fi
8888: fi
1.150 moko 8889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8890: $as_echo "$ac_cv_header_stdc" >&6; }
1.128 moko 8891: if test $ac_cv_header_stdc = yes; then
8892:
1.150 moko 8893: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 8894:
8895: fi
8896:
8897: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.150 moko 8898: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8899: inttypes.h stdint.h unistd.h
8900: do :
8901: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8902: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8903: "
8904: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8905: cat >>confdefs.h <<_ACEOF
8906: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8907: _ACEOF
1.128 moko 8908:
1.150 moko 8909: fi
1.128 moko 8910:
1.150 moko 8911: done
1.128 moko 8912:
8913:
1.150 moko 8914: for ac_header in dlfcn.h
8915: do :
8916: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8917: "
8918: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8919: cat >>confdefs.h <<_ACEOF
8920: #define HAVE_DLFCN_H 1
8921: _ACEOF
1.128 moko 8922:
1.150 moko 8923: fi
1.128 moko 8924:
1.150 moko 8925: done
1.128 moko 8926:
8927:
8928:
8929:
1.150 moko 8930: func_stripname_cnf ()
8931: {
8932: case ${2} in
8933: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8934: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8935: esac
8936: } # func_stripname_cnf
1.128 moko 8937:
8938:
8939:
8940:
8941:
8942: # Set options
8943: enable_dlopen=yes
8944: enable_win32_dll=yes
8945:
8946: case $host in
8947: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8948: if test -n "$ac_tool_prefix"; then
8949: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8950: set dummy ${ac_tool_prefix}as; ac_word=$2
1.150 moko 8951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952: $as_echo_n "checking for $ac_word... " >&6; }
8953: if ${ac_cv_prog_AS+:} false; then :
8954: $as_echo_n "(cached) " >&6
1.128 moko 8955: else
8956: if test -n "$AS"; then
8957: ac_cv_prog_AS="$AS" # Let the user override the test.
8958: else
8959: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960: for as_dir in $PATH
8961: do
8962: IFS=$as_save_IFS
8963: test -z "$as_dir" && as_dir=.
1.150 moko 8964: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 8965: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 8966: ac_cv_prog_AS="${ac_tool_prefix}as"
1.150 moko 8967: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 8968: break 2
8969: fi
8970: done
1.150 moko 8971: done
8972: IFS=$as_save_IFS
1.128 moko 8973:
8974: fi
8975: fi
8976: AS=$ac_cv_prog_AS
8977: if test -n "$AS"; then
1.150 moko 8978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8979: $as_echo "$AS" >&6; }
1.128 moko 8980: else
1.150 moko 8981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982: $as_echo "no" >&6; }
1.128 moko 8983: fi
8984:
1.150 moko 8985:
1.128 moko 8986: fi
8987: if test -z "$ac_cv_prog_AS"; then
8988: ac_ct_AS=$AS
8989: # Extract the first word of "as", so it can be a program name with args.
8990: set dummy as; ac_word=$2
1.150 moko 8991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992: $as_echo_n "checking for $ac_word... " >&6; }
8993: if ${ac_cv_prog_ac_ct_AS+:} false; then :
8994: $as_echo_n "(cached) " >&6
1.128 moko 8995: else
8996: if test -n "$ac_ct_AS"; then
8997: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8998: else
8999: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000: for as_dir in $PATH
9001: do
9002: IFS=$as_save_IFS
9003: test -z "$as_dir" && as_dir=.
1.150 moko 9004: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9005: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9006: ac_cv_prog_ac_ct_AS="as"
1.150 moko 9007: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9008: break 2
9009: fi
9010: done
1.150 moko 9011: done
9012: IFS=$as_save_IFS
1.128 moko 9013:
9014: fi
9015: fi
9016: ac_ct_AS=$ac_cv_prog_ac_ct_AS
9017: if test -n "$ac_ct_AS"; then
1.150 moko 9018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9019: $as_echo "$ac_ct_AS" >&6; }
1.128 moko 9020: else
1.150 moko 9021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022: $as_echo "no" >&6; }
1.128 moko 9023: fi
9024:
1.150 moko 9025: if test "x$ac_ct_AS" = x; then
9026: AS="false"
9027: else
9028: case $cross_compiling:$ac_tool_warned in
9029: yes:)
9030: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9031: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9032: ac_tool_warned=yes ;;
9033: esac
9034: AS=$ac_ct_AS
9035: fi
1.128 moko 9036: else
9037: AS="$ac_cv_prog_AS"
9038: fi
9039:
9040: if test -n "$ac_tool_prefix"; then
9041: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9042: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.150 moko 9043: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044: $as_echo_n "checking for $ac_word... " >&6; }
9045: if ${ac_cv_prog_DLLTOOL+:} false; then :
9046: $as_echo_n "(cached) " >&6
1.128 moko 9047: else
9048: if test -n "$DLLTOOL"; then
9049: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9050: else
9051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052: for as_dir in $PATH
9053: do
9054: IFS=$as_save_IFS
9055: test -z "$as_dir" && as_dir=.
1.150 moko 9056: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9057: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9058: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.150 moko 9059: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9060: break 2
9061: fi
9062: done
1.150 moko 9063: done
9064: IFS=$as_save_IFS
1.128 moko 9065:
9066: fi
9067: fi
9068: DLLTOOL=$ac_cv_prog_DLLTOOL
9069: if test -n "$DLLTOOL"; then
1.150 moko 9070: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9071: $as_echo "$DLLTOOL" >&6; }
1.128 moko 9072: else
1.150 moko 9073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074: $as_echo "no" >&6; }
1.128 moko 9075: fi
9076:
1.150 moko 9077:
1.128 moko 9078: fi
9079: if test -z "$ac_cv_prog_DLLTOOL"; then
9080: ac_ct_DLLTOOL=$DLLTOOL
9081: # Extract the first word of "dlltool", so it can be a program name with args.
9082: set dummy dlltool; ac_word=$2
1.150 moko 9083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084: $as_echo_n "checking for $ac_word... " >&6; }
9085: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9086: $as_echo_n "(cached) " >&6
1.128 moko 9087: else
9088: if test -n "$ac_ct_DLLTOOL"; then
9089: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9090: else
9091: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092: for as_dir in $PATH
9093: do
9094: IFS=$as_save_IFS
9095: test -z "$as_dir" && as_dir=.
1.150 moko 9096: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9097: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9098: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.150 moko 9099: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9100: break 2
9101: fi
9102: done
1.150 moko 9103: done
9104: IFS=$as_save_IFS
1.128 moko 9105:
9106: fi
9107: fi
9108: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9109: if test -n "$ac_ct_DLLTOOL"; then
1.150 moko 9110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9111: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.128 moko 9112: else
1.150 moko 9113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114: $as_echo "no" >&6; }
1.128 moko 9115: fi
9116:
1.150 moko 9117: if test "x$ac_ct_DLLTOOL" = x; then
9118: DLLTOOL="false"
9119: else
9120: case $cross_compiling:$ac_tool_warned in
9121: yes:)
9122: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9123: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9124: ac_tool_warned=yes ;;
9125: esac
9126: DLLTOOL=$ac_ct_DLLTOOL
9127: fi
1.128 moko 9128: else
9129: DLLTOOL="$ac_cv_prog_DLLTOOL"
9130: fi
9131:
9132: if test -n "$ac_tool_prefix"; then
9133: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9134: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.150 moko 9135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136: $as_echo_n "checking for $ac_word... " >&6; }
9137: if ${ac_cv_prog_OBJDUMP+:} false; then :
9138: $as_echo_n "(cached) " >&6
1.128 moko 9139: else
9140: if test -n "$OBJDUMP"; then
9141: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9142: else
9143: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144: for as_dir in $PATH
9145: do
9146: IFS=$as_save_IFS
9147: test -z "$as_dir" && as_dir=.
1.150 moko 9148: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9149: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9150: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.150 moko 9151: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9152: break 2
9153: fi
9154: done
1.150 moko 9155: done
9156: IFS=$as_save_IFS
1.128 moko 9157:
9158: fi
9159: fi
9160: OBJDUMP=$ac_cv_prog_OBJDUMP
9161: if test -n "$OBJDUMP"; then
1.150 moko 9162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9163: $as_echo "$OBJDUMP" >&6; }
1.128 moko 9164: else
1.150 moko 9165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166: $as_echo "no" >&6; }
1.128 moko 9167: fi
9168:
1.150 moko 9169:
1.128 moko 9170: fi
9171: if test -z "$ac_cv_prog_OBJDUMP"; then
9172: ac_ct_OBJDUMP=$OBJDUMP
9173: # Extract the first word of "objdump", so it can be a program name with args.
9174: set dummy objdump; ac_word=$2
1.150 moko 9175: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9176: $as_echo_n "checking for $ac_word... " >&6; }
9177: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9178: $as_echo_n "(cached) " >&6
1.128 moko 9179: else
9180: if test -n "$ac_ct_OBJDUMP"; then
9181: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9182: else
9183: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184: for as_dir in $PATH
9185: do
9186: IFS=$as_save_IFS
9187: test -z "$as_dir" && as_dir=.
1.150 moko 9188: for ac_exec_ext in '' $ac_executable_extensions; do
1.166 moko 9189: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.128 moko 9190: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.150 moko 9191: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.128 moko 9192: break 2
9193: fi
9194: done
1.150 moko 9195: done
9196: IFS=$as_save_IFS
1.128 moko 9197:
9198: fi
9199: fi
9200: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9201: if test -n "$ac_ct_OBJDUMP"; then
1.150 moko 9202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9203: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.128 moko 9204: else
1.150 moko 9205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206: $as_echo "no" >&6; }
1.128 moko 9207: fi
9208:
1.150 moko 9209: if test "x$ac_ct_OBJDUMP" = x; then
9210: OBJDUMP="false"
9211: else
9212: case $cross_compiling:$ac_tool_warned in
9213: yes:)
9214: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9215: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9216: ac_tool_warned=yes ;;
9217: esac
9218: OBJDUMP=$ac_ct_OBJDUMP
9219: fi
1.128 moko 9220: else
9221: OBJDUMP="$ac_cv_prog_OBJDUMP"
9222: fi
9223:
9224: ;;
9225: esac
9226:
9227: test -z "$AS" && AS=as
9228:
9229:
9230:
9231:
9232:
9233: test -z "$DLLTOOL" && DLLTOOL=dlltool
9234:
9235:
9236:
9237:
9238:
9239: test -z "$OBJDUMP" && OBJDUMP=objdump
9240:
9241:
9242:
9243:
9244:
1.150 moko 9245: # Check whether --with-pic was given.
9246: if test "${with_pic+set}" = set; then :
9247: withval=$with_pic; lt_p=${PACKAGE-default}
1.145 moko 9248: case $withval in
9249: yes|no) pic_mode=$withval ;;
9250: *)
9251: pic_mode=default
9252: # Look at the argument we got. We use all the common list separators.
9253: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9254: for lt_pkg in $withval; do
9255: IFS="$lt_save_ifs"
9256: if test "X$lt_pkg" = "X$lt_p"; then
9257: pic_mode=yes
9258: fi
9259: done
9260: IFS="$lt_save_ifs"
9261: ;;
9262: esac
9263: else
9264: pic_mode=default
1.150 moko 9265: fi
9266:
1.145 moko 9267:
9268: test -z "$pic_mode" && pic_mode=no
9269:
9270:
9271:
9272:
9273:
9274:
1.128 moko 9275:
9276:
9277:
9278:
1.150 moko 9279: # Check whether --enable-shared was given.
9280: if test "${enable_shared+set}" = set; then :
9281: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 9282: case $enableval in
9283: yes) enable_shared=yes ;;
9284: no) enable_shared=no ;;
9285: *)
9286: enable_shared=no
9287: # Look at the argument we got. We use all the common list separators.
9288: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9289: for pkg in $enableval; do
9290: IFS="$lt_save_ifs"
9291: if test "X$pkg" = "X$p"; then
9292: enable_shared=yes
9293: fi
9294: done
9295: IFS="$lt_save_ifs"
9296: ;;
9297: esac
9298: else
9299: enable_shared=yes
1.150 moko 9300: fi
9301:
1.128 moko 9302:
9303:
9304:
9305:
9306:
9307:
9308:
9309:
1.150 moko 9310: # Check whether --enable-static was given.
9311: if test "${enable_static+set}" = set; then :
9312: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 9313: case $enableval in
9314: yes) enable_static=yes ;;
9315: no) enable_static=no ;;
9316: *)
9317: enable_static=no
9318: # Look at the argument we got. We use all the common list separators.
9319: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9320: for pkg in $enableval; do
9321: IFS="$lt_save_ifs"
9322: if test "X$pkg" = "X$p"; then
9323: enable_static=yes
9324: fi
9325: done
9326: IFS="$lt_save_ifs"
9327: ;;
9328: esac
9329: else
9330: enable_static=yes
1.150 moko 9331: fi
9332:
1.138 moko 9333:
9334:
9335:
9336:
9337:
9338:
9339:
1.128 moko 9340:
9341:
1.150 moko 9342: # Check whether --enable-fast-install was given.
9343: if test "${enable_fast_install+set}" = set; then :
9344: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 9345: case $enableval in
9346: yes) enable_fast_install=yes ;;
9347: no) enable_fast_install=no ;;
9348: *)
9349: enable_fast_install=no
9350: # Look at the argument we got. We use all the common list separators.
9351: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9352: for pkg in $enableval; do
9353: IFS="$lt_save_ifs"
9354: if test "X$pkg" = "X$p"; then
9355: enable_fast_install=yes
9356: fi
9357: done
9358: IFS="$lt_save_ifs"
9359: ;;
9360: esac
9361: else
9362: enable_fast_install=yes
1.150 moko 9363: fi
9364:
1.128 moko 9365:
9366:
9367:
9368:
9369:
9370:
9371:
9372:
9373:
9374:
9375: # This can be used to rebuild libtool when needed
9376: LIBTOOL_DEPS="$ltmain"
9377:
9378: # Always use our own libtool.
9379: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9380:
9381:
9382:
9383:
9384:
9385:
9386:
9387:
9388:
9389:
9390:
9391:
9392:
9393:
9394:
9395:
9396:
9397:
9398:
9399:
9400:
9401:
9402:
9403:
9404:
9405:
9406:
9407:
9408:
9409:
9410: test -z "$LN_S" && LN_S="ln -s"
9411:
9412:
9413:
9414:
9415:
9416:
9417:
9418:
9419:
9420:
9421:
9422:
9423:
9424:
9425: if test -n "${ZSH_VERSION+set}" ; then
9426: setopt NO_GLOB_SUBST
9427: fi
9428:
1.150 moko 9429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9430: $as_echo_n "checking for objdir... " >&6; }
9431: if ${lt_cv_objdir+:} false; then :
9432: $as_echo_n "(cached) " >&6
1.128 moko 9433: else
9434: rm -f .libs 2>/dev/null
9435: mkdir .libs 2>/dev/null
9436: if test -d .libs; then
9437: lt_cv_objdir=.libs
9438: else
9439: # MS-DOS does not allow filenames that begin with a dot.
9440: lt_cv_objdir=_libs
9441: fi
9442: rmdir .libs 2>/dev/null
9443: fi
1.150 moko 9444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9445: $as_echo "$lt_cv_objdir" >&6; }
1.128 moko 9446: objdir=$lt_cv_objdir
9447:
9448:
9449:
9450:
9451:
9452: cat >>confdefs.h <<_ACEOF
9453: #define LT_OBJDIR "$lt_cv_objdir/"
9454: _ACEOF
9455:
9456:
9457:
9458:
9459: case $host_os in
9460: aix3*)
9461: # AIX sometimes has problems with the GCC collect2 program. For some
9462: # reason, if we set the COLLECT_NAMES environment variable, the problems
9463: # vanish in a puff of smoke.
9464: if test "X${COLLECT_NAMES+set}" != Xset; then
9465: COLLECT_NAMES=
9466: export COLLECT_NAMES
9467: fi
9468: ;;
9469: esac
9470:
9471: # Global variables:
9472: ofile=libtool
9473: can_build_shared=yes
9474:
9475: # All known linkers require a `.a' archive for static linking (except MSVC,
9476: # which needs '.lib').
9477: libext=a
9478:
9479: with_gnu_ld="$lt_cv_prog_gnu_ld"
9480:
9481: old_CC="$CC"
9482: old_CFLAGS="$CFLAGS"
9483:
9484: # Set sane defaults for various variables
9485: test -z "$CC" && CC=cc
9486: test -z "$LTCC" && LTCC=$CC
9487: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9488: test -z "$LD" && LD=ld
9489: test -z "$ac_objext" && ac_objext=o
9490:
9491: for cc_temp in $compiler""; do
9492: case $cc_temp in
9493: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9494: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9495: \-*) ;;
9496: *) break;;
9497: esac
9498: done
9499: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9500:
9501:
9502: # Only perform the check for file, if the check method requires it
9503: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9504: case $deplibs_check_method in
9505: file_magic*)
9506: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.150 moko 9507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9508: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9509: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9510: $as_echo_n "(cached) " >&6
1.128 moko 9511: else
9512: case $MAGIC_CMD in
9513: [\\/*] | ?:[\\/]*)
9514: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9515: ;;
9516: *)
9517: lt_save_MAGIC_CMD="$MAGIC_CMD"
9518: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9519: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9520: for ac_dir in $ac_dummy; do
9521: IFS="$lt_save_ifs"
9522: test -z "$ac_dir" && ac_dir=.
9523: if test -f $ac_dir/${ac_tool_prefix}file; then
9524: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9525: if test -n "$file_magic_test_file"; then
9526: case $deplibs_check_method in
9527: "file_magic "*)
9528: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9529: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9530: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9531: $EGREP "$file_magic_regex" > /dev/null; then
9532: :
9533: else
9534: cat <<_LT_EOF 1>&2
9535:
9536: *** Warning: the command libtool uses to detect shared libraries,
9537: *** $file_magic_cmd, produces output that libtool cannot recognize.
9538: *** The result is that libtool may fail to recognize shared libraries
9539: *** as such. This will affect the creation of libtool libraries that
9540: *** depend on shared libraries, but programs linked with such libtool
9541: *** libraries will work regardless of this problem. Nevertheless, you
9542: *** may want to report the problem to your system manager and/or to
9543: *** bug-libtool@gnu.org
9544:
9545: _LT_EOF
9546: fi ;;
9547: esac
9548: fi
9549: break
9550: fi
9551: done
9552: IFS="$lt_save_ifs"
9553: MAGIC_CMD="$lt_save_MAGIC_CMD"
9554: ;;
9555: esac
9556: fi
9557:
9558: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9559: if test -n "$MAGIC_CMD"; then
1.150 moko 9560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9561: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9562: else
1.150 moko 9563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564: $as_echo "no" >&6; }
1.128 moko 9565: fi
9566:
9567:
9568:
9569:
9570:
9571: if test -z "$lt_cv_path_MAGIC_CMD"; then
9572: if test -n "$ac_tool_prefix"; then
1.150 moko 9573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9574: $as_echo_n "checking for file... " >&6; }
9575: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9576: $as_echo_n "(cached) " >&6
1.128 moko 9577: else
9578: case $MAGIC_CMD in
9579: [\\/*] | ?:[\\/]*)
9580: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9581: ;;
9582: *)
9583: lt_save_MAGIC_CMD="$MAGIC_CMD"
9584: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9585: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9586: for ac_dir in $ac_dummy; do
9587: IFS="$lt_save_ifs"
9588: test -z "$ac_dir" && ac_dir=.
9589: if test -f $ac_dir/file; then
9590: lt_cv_path_MAGIC_CMD="$ac_dir/file"
9591: if test -n "$file_magic_test_file"; then
9592: case $deplibs_check_method in
9593: "file_magic "*)
9594: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9595: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9596: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9597: $EGREP "$file_magic_regex" > /dev/null; then
9598: :
9599: else
9600: cat <<_LT_EOF 1>&2
9601:
9602: *** Warning: the command libtool uses to detect shared libraries,
9603: *** $file_magic_cmd, produces output that libtool cannot recognize.
9604: *** The result is that libtool may fail to recognize shared libraries
9605: *** as such. This will affect the creation of libtool libraries that
9606: *** depend on shared libraries, but programs linked with such libtool
9607: *** libraries will work regardless of this problem. Nevertheless, you
9608: *** may want to report the problem to your system manager and/or to
9609: *** bug-libtool@gnu.org
9610:
9611: _LT_EOF
9612: fi ;;
9613: esac
9614: fi
9615: break
9616: fi
9617: done
9618: IFS="$lt_save_ifs"
9619: MAGIC_CMD="$lt_save_MAGIC_CMD"
9620: ;;
9621: esac
9622: fi
9623:
9624: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9625: if test -n "$MAGIC_CMD"; then
1.150 moko 9626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9627: $as_echo "$MAGIC_CMD" >&6; }
1.128 moko 9628: else
1.150 moko 9629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630: $as_echo "no" >&6; }
1.128 moko 9631: fi
9632:
9633:
9634: else
9635: MAGIC_CMD=:
9636: fi
9637: fi
9638:
9639: fi
9640: ;;
9641: esac
9642:
9643: # Use C for the default configuration in the libtool script
9644:
9645: lt_save_CC="$CC"
9646: ac_ext=c
9647: ac_cpp='$CPP $CPPFLAGS'
9648: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9649: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9650: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9651:
9652:
9653: # Source file extension for C test sources.
9654: ac_ext=c
9655:
9656: # Object file extension for compiled C test sources.
9657: objext=o
9658: objext=$objext
9659:
9660: # Code to be used in simple compile tests
9661: lt_simple_compile_test_code="int some_variable = 0;"
9662:
9663: # Code to be used in simple link tests
9664: lt_simple_link_test_code='int main(){return(0);}'
9665:
9666:
9667:
9668:
9669:
9670:
9671:
9672: # If no C compiler was specified, use CC.
9673: LTCC=${LTCC-"$CC"}
9674:
9675: # If no C compiler flags were specified, use CFLAGS.
9676: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9677:
9678: # Allow CC to be a program name with arguments.
9679: compiler=$CC
9680:
9681: # Save the default compiler, since it gets overwritten when the other
9682: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9683: compiler_DEFAULT=$CC
9684:
9685: # save warnings/boilerplate of simple test code
9686: ac_outfile=conftest.$ac_objext
9687: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9688: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9689: _lt_compiler_boilerplate=`cat conftest.err`
9690: $RM conftest*
9691:
9692: ac_outfile=conftest.$ac_objext
9693: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9694: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9695: _lt_linker_boilerplate=`cat conftest.err`
9696: $RM -r conftest*
9697:
9698:
9699: ## CAVEAT EMPTOR:
9700: ## There is no encapsulation within the following macros, do not change
9701: ## the running order or otherwise move them around unless you know exactly
9702: ## what you are doing...
9703: if test -n "$compiler"; then
9704:
9705: lt_prog_compiler_no_builtin_flag=
9706:
9707: if test "$GCC" = yes; then
9708: case $cc_basename in
9709: nvcc*)
9710: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9711: *)
9712: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9713: esac
9714:
1.150 moko 9715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9716: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9717: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9718: $as_echo_n "(cached) " >&6
1.128 moko 9719: else
9720: lt_cv_prog_compiler_rtti_exceptions=no
9721: ac_outfile=conftest.$ac_objext
9722: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9723: lt_compiler_flag="-fno-rtti -fno-exceptions"
9724: # Insert the option either (1) after the last *FLAGS variable, or
9725: # (2) before a word containing "conftest.", or (3) at the end.
9726: # Note that $ac_compile itself does not contain backslashes and begins
9727: # with a dollar sign (not a hyphen), so the echo should work correctly.
9728: # The option is referenced via a variable to avoid confusing sed.
9729: lt_compile=`echo "$ac_compile" | $SED \
9730: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9731: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9732: -e 's:$: $lt_compiler_flag:'`
9733: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9734: (eval "$lt_compile" 2>conftest.err)
9735: ac_status=$?
9736: cat conftest.err >&5
9737: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738: if (exit $ac_status) && test -s "$ac_outfile"; then
9739: # The compiler can only warn and ignore the option if not recognized
9740: # So say no if there are warnings other than the usual output.
9741: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9742: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9743: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9744: lt_cv_prog_compiler_rtti_exceptions=yes
9745: fi
9746: fi
9747: $RM conftest*
9748:
9749: fi
1.150 moko 9750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9751: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 9752:
9753: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9754: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9755: else
9756: :
9757: fi
9758:
9759: fi
9760:
9761:
9762:
9763:
9764:
9765:
9766: lt_prog_compiler_wl=
9767: lt_prog_compiler_pic=
9768: lt_prog_compiler_static=
9769:
9770:
9771: if test "$GCC" = yes; then
9772: lt_prog_compiler_wl='-Wl,'
9773: lt_prog_compiler_static='-static'
9774:
9775: case $host_os in
9776: aix*)
9777: # All AIX code is PIC.
9778: if test "$host_cpu" = ia64; then
9779: # AIX 5 now supports IA64 processor
9780: lt_prog_compiler_static='-Bstatic'
9781: fi
9782: ;;
9783:
9784: amigaos*)
9785: case $host_cpu in
9786: powerpc)
9787: # see comment about AmigaOS4 .so support
9788: lt_prog_compiler_pic='-fPIC'
9789: ;;
9790: m68k)
9791: # FIXME: we need at least 68020 code to build shared libraries, but
9792: # adding the `-m68020' flag to GCC prevents building anything better,
9793: # like `-m68040'.
9794: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9795: ;;
9796: esac
9797: ;;
9798:
9799: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9800: # PIC is the default for these OSes.
9801: ;;
9802:
9803: mingw* | cygwin* | pw32* | os2* | cegcc*)
9804: # This hack is so that the source file can tell whether it is being
9805: # built for inclusion in a dll (and should export symbols for example).
9806: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9807: # (--disable-auto-import) libraries
9808: lt_prog_compiler_pic='-DDLL_EXPORT'
9809: ;;
9810:
9811: darwin* | rhapsody*)
9812: # PIC is the default on this platform
9813: # Common symbols not allowed in MH_DYLIB files
9814: lt_prog_compiler_pic='-fno-common'
9815: ;;
9816:
9817: haiku*)
9818: # PIC is the default for Haiku.
9819: # The "-static" flag exists, but is broken.
9820: lt_prog_compiler_static=
9821: ;;
9822:
9823: hpux*)
9824: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9825: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9826: # sets the default TLS model and affects inlining.
9827: case $host_cpu in
9828: hppa*64*)
9829: # +Z the default
9830: ;;
9831: *)
9832: lt_prog_compiler_pic='-fPIC'
9833: ;;
9834: esac
9835: ;;
9836:
9837: interix[3-9]*)
9838: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9839: # Instead, we relocate shared libraries at runtime.
9840: ;;
9841:
9842: msdosdjgpp*)
9843: # Just because we use GCC doesn't mean we suddenly get shared libraries
9844: # on systems that don't support them.
9845: lt_prog_compiler_can_build_shared=no
9846: enable_shared=no
9847: ;;
9848:
9849: *nto* | *qnx*)
9850: # QNX uses GNU C++, but need to define -shared option too, otherwise
9851: # it will coredump.
9852: lt_prog_compiler_pic='-fPIC -shared'
9853: ;;
9854:
9855: sysv4*MP*)
9856: if test -d /usr/nec; then
9857: lt_prog_compiler_pic=-Kconform_pic
9858: fi
9859: ;;
9860:
9861: *)
9862: lt_prog_compiler_pic='-fPIC'
9863: ;;
9864: esac
9865:
9866: case $cc_basename in
9867: nvcc*) # Cuda Compiler Driver 2.2
9868: lt_prog_compiler_wl='-Xlinker '
9869: if test -n "$lt_prog_compiler_pic"; then
9870: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9871: fi
9872: ;;
9873: esac
9874: else
9875: # PORTME Check for flag to pass linker flags through the system compiler.
9876: case $host_os in
9877: aix*)
9878: lt_prog_compiler_wl='-Wl,'
9879: if test "$host_cpu" = ia64; then
9880: # AIX 5 now supports IA64 processor
9881: lt_prog_compiler_static='-Bstatic'
9882: else
9883: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9884: fi
9885: ;;
9886:
9887: mingw* | cygwin* | pw32* | os2* | cegcc*)
9888: # This hack is so that the source file can tell whether it is being
9889: # built for inclusion in a dll (and should export symbols for example).
9890: lt_prog_compiler_pic='-DDLL_EXPORT'
9891: ;;
9892:
9893: hpux9* | hpux10* | hpux11*)
9894: lt_prog_compiler_wl='-Wl,'
9895: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9896: # not for PA HP-UX.
9897: case $host_cpu in
9898: hppa*64*|ia64*)
9899: # +Z the default
9900: ;;
9901: *)
9902: lt_prog_compiler_pic='+Z'
9903: ;;
9904: esac
9905: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9906: lt_prog_compiler_static='${wl}-a ${wl}archive'
9907: ;;
9908:
9909: irix5* | irix6* | nonstopux*)
9910: lt_prog_compiler_wl='-Wl,'
9911: # PIC (with -KPIC) is the default.
9912: lt_prog_compiler_static='-non_shared'
9913: ;;
9914:
9915: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9916: case $cc_basename in
9917: # old Intel for x86_64 which still supported -KPIC.
9918: ecc*)
9919: lt_prog_compiler_wl='-Wl,'
9920: lt_prog_compiler_pic='-KPIC'
9921: lt_prog_compiler_static='-static'
9922: ;;
9923: # icc used to be incompatible with GCC.
9924: # ICC 10 doesn't accept -KPIC any more.
9925: icc* | ifort*)
9926: lt_prog_compiler_wl='-Wl,'
9927: lt_prog_compiler_pic='-fPIC'
9928: lt_prog_compiler_static='-static'
9929: ;;
9930: # Lahey Fortran 8.1.
9931: lf95*)
9932: lt_prog_compiler_wl='-Wl,'
9933: lt_prog_compiler_pic='--shared'
9934: lt_prog_compiler_static='--static'
9935: ;;
9936: nagfor*)
9937: # NAG Fortran compiler
9938: lt_prog_compiler_wl='-Wl,-Wl,,'
9939: lt_prog_compiler_pic='-PIC'
9940: lt_prog_compiler_static='-Bstatic'
9941: ;;
9942: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9943: # Portland Group compilers (*not* the Pentium gcc compiler,
9944: # which looks to be a dead project)
9945: lt_prog_compiler_wl='-Wl,'
9946: lt_prog_compiler_pic='-fpic'
9947: lt_prog_compiler_static='-Bstatic'
9948: ;;
9949: ccc*)
9950: lt_prog_compiler_wl='-Wl,'
9951: # All Alpha code is PIC.
9952: lt_prog_compiler_static='-non_shared'
9953: ;;
9954: xl* | bgxl* | bgf* | mpixl*)
9955: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9956: lt_prog_compiler_wl='-Wl,'
9957: lt_prog_compiler_pic='-qpic'
9958: lt_prog_compiler_static='-qstaticlink'
9959: ;;
9960: *)
9961: case `$CC -V 2>&1 | sed 5q` in
9962: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9963: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9964: lt_prog_compiler_pic='-KPIC'
9965: lt_prog_compiler_static='-Bstatic'
9966: lt_prog_compiler_wl=''
9967: ;;
9968: *Sun\ F* | *Sun*Fortran*)
9969: lt_prog_compiler_pic='-KPIC'
9970: lt_prog_compiler_static='-Bstatic'
9971: lt_prog_compiler_wl='-Qoption ld '
9972: ;;
9973: *Sun\ C*)
9974: # Sun C 5.9
9975: lt_prog_compiler_pic='-KPIC'
9976: lt_prog_compiler_static='-Bstatic'
9977: lt_prog_compiler_wl='-Wl,'
9978: ;;
9979: *Intel*\ [CF]*Compiler*)
9980: lt_prog_compiler_wl='-Wl,'
9981: lt_prog_compiler_pic='-fPIC'
9982: lt_prog_compiler_static='-static'
9983: ;;
9984: *Portland\ Group*)
9985: lt_prog_compiler_wl='-Wl,'
9986: lt_prog_compiler_pic='-fpic'
9987: lt_prog_compiler_static='-Bstatic'
9988: ;;
9989: esac
9990: ;;
9991: esac
9992: ;;
9993:
9994: newsos6)
9995: lt_prog_compiler_pic='-KPIC'
9996: lt_prog_compiler_static='-Bstatic'
9997: ;;
9998:
9999: *nto* | *qnx*)
10000: # QNX uses GNU C++, but need to define -shared option too, otherwise
10001: # it will coredump.
10002: lt_prog_compiler_pic='-fPIC -shared'
10003: ;;
10004:
10005: osf3* | osf4* | osf5*)
10006: lt_prog_compiler_wl='-Wl,'
10007: # All OSF/1 code is PIC.
10008: lt_prog_compiler_static='-non_shared'
10009: ;;
10010:
10011: rdos*)
10012: lt_prog_compiler_static='-non_shared'
10013: ;;
10014:
10015: solaris*)
10016: lt_prog_compiler_pic='-KPIC'
10017: lt_prog_compiler_static='-Bstatic'
10018: case $cc_basename in
10019: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10020: lt_prog_compiler_wl='-Qoption ld ';;
10021: *)
10022: lt_prog_compiler_wl='-Wl,';;
10023: esac
10024: ;;
10025:
10026: sunos4*)
10027: lt_prog_compiler_wl='-Qoption ld '
10028: lt_prog_compiler_pic='-PIC'
10029: lt_prog_compiler_static='-Bstatic'
10030: ;;
10031:
10032: sysv4 | sysv4.2uw2* | sysv4.3*)
10033: lt_prog_compiler_wl='-Wl,'
10034: lt_prog_compiler_pic='-KPIC'
10035: lt_prog_compiler_static='-Bstatic'
10036: ;;
10037:
10038: sysv4*MP*)
10039: if test -d /usr/nec ;then
10040: lt_prog_compiler_pic='-Kconform_pic'
10041: lt_prog_compiler_static='-Bstatic'
10042: fi
10043: ;;
10044:
10045: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10046: lt_prog_compiler_wl='-Wl,'
10047: lt_prog_compiler_pic='-KPIC'
10048: lt_prog_compiler_static='-Bstatic'
10049: ;;
10050:
10051: unicos*)
10052: lt_prog_compiler_wl='-Wl,'
10053: lt_prog_compiler_can_build_shared=no
10054: ;;
10055:
10056: uts4*)
10057: lt_prog_compiler_pic='-pic'
10058: lt_prog_compiler_static='-Bstatic'
10059: ;;
10060:
10061: *)
10062: lt_prog_compiler_can_build_shared=no
10063: ;;
10064: esac
10065: fi
10066:
10067: case $host_os in
10068: # For platforms which do not support PIC, -DPIC is meaningless:
10069: *djgpp*)
10070: lt_prog_compiler_pic=
10071: ;;
10072: *)
10073: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10074: ;;
10075: esac
10076:
1.150 moko 10077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10078: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10079: if ${lt_cv_prog_compiler_pic+:} false; then :
10080: $as_echo_n "(cached) " >&6
1.128 moko 10081: else
10082: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10083: fi
1.150 moko 10084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10085: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 10086: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10087:
10088: #
10089: # Check to make sure the PIC flag actually works.
10090: #
10091: if test -n "$lt_prog_compiler_pic"; then
1.150 moko 10092: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10093: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10094: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10095: $as_echo_n "(cached) " >&6
1.128 moko 10096: else
10097: lt_cv_prog_compiler_pic_works=no
10098: ac_outfile=conftest.$ac_objext
10099: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10100: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10101: # Insert the option either (1) after the last *FLAGS variable, or
10102: # (2) before a word containing "conftest.", or (3) at the end.
10103: # Note that $ac_compile itself does not contain backslashes and begins
10104: # with a dollar sign (not a hyphen), so the echo should work correctly.
10105: # The option is referenced via a variable to avoid confusing sed.
10106: lt_compile=`echo "$ac_compile" | $SED \
10107: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10108: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10109: -e 's:$: $lt_compiler_flag:'`
10110: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10111: (eval "$lt_compile" 2>conftest.err)
10112: ac_status=$?
10113: cat conftest.err >&5
10114: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115: if (exit $ac_status) && test -s "$ac_outfile"; then
10116: # The compiler can only warn and ignore the option if not recognized
10117: # So say no if there are warnings other than the usual output.
10118: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10119: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10120: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10121: lt_cv_prog_compiler_pic_works=yes
10122: fi
10123: fi
10124: $RM conftest*
10125:
10126: fi
1.150 moko 10127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10128: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 10129:
10130: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10131: case $lt_prog_compiler_pic in
10132: "" | " "*) ;;
10133: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10134: esac
10135: else
10136: lt_prog_compiler_pic=
10137: lt_prog_compiler_can_build_shared=no
10138: fi
10139:
10140: fi
10141:
10142:
10143:
10144:
10145:
10146:
10147:
10148:
10149:
10150:
10151:
10152: #
10153: # Check to make sure the static flag actually works.
10154: #
10155: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.150 moko 10156: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10157: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10158: if ${lt_cv_prog_compiler_static_works+:} false; then :
10159: $as_echo_n "(cached) " >&6
1.128 moko 10160: else
10161: lt_cv_prog_compiler_static_works=no
10162: save_LDFLAGS="$LDFLAGS"
10163: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10164: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10165: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10166: # The linker can only warn and ignore the option if not recognized
10167: # So say no if there are warnings
10168: if test -s conftest.err; then
10169: # Append any errors to the config.log.
10170: cat conftest.err 1>&5
10171: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10172: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10173: if diff conftest.exp conftest.er2 >/dev/null; then
10174: lt_cv_prog_compiler_static_works=yes
10175: fi
10176: else
10177: lt_cv_prog_compiler_static_works=yes
10178: fi
10179: fi
10180: $RM -r conftest*
10181: LDFLAGS="$save_LDFLAGS"
10182:
10183: fi
1.150 moko 10184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10185: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 10186:
10187: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10188: :
10189: else
10190: lt_prog_compiler_static=
10191: fi
10192:
10193:
10194:
10195:
10196:
10197:
10198:
1.150 moko 10199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10200: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10201: if ${lt_cv_prog_compiler_c_o+:} false; then :
10202: $as_echo_n "(cached) " >&6
1.128 moko 10203: else
10204: lt_cv_prog_compiler_c_o=no
10205: $RM -r conftest 2>/dev/null
10206: mkdir conftest
10207: cd conftest
10208: mkdir out
10209: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10210:
10211: lt_compiler_flag="-o out/conftest2.$ac_objext"
10212: # Insert the option either (1) after the last *FLAGS variable, or
10213: # (2) before a word containing "conftest.", or (3) at the end.
10214: # Note that $ac_compile itself does not contain backslashes and begins
10215: # with a dollar sign (not a hyphen), so the echo should work correctly.
10216: lt_compile=`echo "$ac_compile" | $SED \
10217: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10218: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10219: -e 's:$: $lt_compiler_flag:'`
10220: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10221: (eval "$lt_compile" 2>out/conftest.err)
10222: ac_status=$?
10223: cat out/conftest.err >&5
10224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10226: then
10227: # The compiler can only warn and ignore the option if not recognized
10228: # So say no if there are warnings
10229: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10230: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10231: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10232: lt_cv_prog_compiler_c_o=yes
10233: fi
10234: fi
10235: chmod u+w . 2>&5
10236: $RM conftest*
10237: # SGI C++ compiler will create directory out/ii_files/ for
10238: # template instantiation
10239: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10240: $RM out/* && rmdir out
10241: cd ..
10242: $RM -r conftest
10243: $RM conftest*
10244:
10245: fi
1.150 moko 10246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10247: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10248:
10249:
10250:
10251:
10252:
10253:
1.150 moko 10254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10255: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10256: if ${lt_cv_prog_compiler_c_o+:} false; then :
10257: $as_echo_n "(cached) " >&6
1.128 moko 10258: else
10259: lt_cv_prog_compiler_c_o=no
10260: $RM -r conftest 2>/dev/null
10261: mkdir conftest
10262: cd conftest
10263: mkdir out
10264: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10265:
10266: lt_compiler_flag="-o out/conftest2.$ac_objext"
10267: # Insert the option either (1) after the last *FLAGS variable, or
10268: # (2) before a word containing "conftest.", or (3) at the end.
10269: # Note that $ac_compile itself does not contain backslashes and begins
10270: # with a dollar sign (not a hyphen), so the echo should work correctly.
10271: lt_compile=`echo "$ac_compile" | $SED \
10272: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10273: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10274: -e 's:$: $lt_compiler_flag:'`
10275: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10276: (eval "$lt_compile" 2>out/conftest.err)
10277: ac_status=$?
10278: cat out/conftest.err >&5
10279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10281: then
10282: # The compiler can only warn and ignore the option if not recognized
10283: # So say no if there are warnings
10284: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10285: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10286: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10287: lt_cv_prog_compiler_c_o=yes
10288: fi
10289: fi
10290: chmod u+w . 2>&5
10291: $RM conftest*
10292: # SGI C++ compiler will create directory out/ii_files/ for
10293: # template instantiation
10294: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10295: $RM out/* && rmdir out
10296: cd ..
10297: $RM -r conftest
10298: $RM conftest*
10299:
10300: fi
1.150 moko 10301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10302: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 10303:
10304:
10305:
10306:
10307: hard_links="nottested"
10308: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10309: # do not overwrite the value of need_locks provided by the user
1.150 moko 10310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10311: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 10312: hard_links=yes
10313: $RM conftest*
10314: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10315: touch conftest.a
10316: ln conftest.a conftest.b 2>&5 || hard_links=no
10317: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 10318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10319: $as_echo "$hard_links" >&6; }
1.128 moko 10320: if test "$hard_links" = no; then
1.150 moko 10321: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10322: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 10323: need_locks=warn
10324: fi
10325: else
10326: need_locks=no
10327: fi
10328:
10329:
10330:
10331:
10332:
10333:
1.150 moko 10334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10335: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 10336:
10337: runpath_var=
10338: allow_undefined_flag=
10339: always_export_symbols=no
10340: archive_cmds=
10341: archive_expsym_cmds=
10342: compiler_needs_object=no
10343: enable_shared_with_static_runtimes=no
10344: export_dynamic_flag_spec=
10345: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10346: hardcode_automatic=no
10347: hardcode_direct=no
10348: hardcode_direct_absolute=no
10349: hardcode_libdir_flag_spec=
10350: hardcode_libdir_separator=
10351: hardcode_minus_L=no
10352: hardcode_shlibpath_var=unsupported
10353: inherit_rpath=no
10354: link_all_deplibs=unknown
10355: module_cmds=
10356: module_expsym_cmds=
10357: old_archive_from_new_cmds=
10358: old_archive_from_expsyms_cmds=
10359: thread_safe_flag_spec=
10360: whole_archive_flag_spec=
10361: # include_expsyms should be a list of space-separated symbols to be *always*
10362: # included in the symbol list
10363: include_expsyms=
10364: # exclude_expsyms can be an extended regexp of symbols to exclude
10365: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10366: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10367: # as well as any symbol that contains `d'.
10368: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10369: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10370: # platforms (ab)use it in PIC code, but their linkers get confused if
10371: # the symbol is explicitly referenced. Since portable code cannot
10372: # rely on this symbol name, it's probably fine to never include it in
10373: # preloaded symbol tables.
10374: # Exclude shared library initialization/finalization symbols.
10375: extract_expsyms_cmds=
10376:
10377: case $host_os in
10378: cygwin* | mingw* | pw32* | cegcc*)
10379: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10380: # When not using gcc, we currently assume that we are using
10381: # Microsoft Visual C++.
10382: if test "$GCC" != yes; then
10383: with_gnu_ld=no
10384: fi
10385: ;;
10386: interix*)
10387: # we just hope/assume this is gcc and not c89 (= MSVC++)
10388: with_gnu_ld=yes
10389: ;;
10390: openbsd*)
10391: with_gnu_ld=no
10392: ;;
10393: esac
10394:
10395: ld_shlibs=yes
10396:
10397: # On some targets, GNU ld is compatible enough with the native linker
10398: # that we're better off using the native interface for both.
10399: lt_use_gnu_ld_interface=no
10400: if test "$with_gnu_ld" = yes; then
10401: case $host_os in
10402: aix*)
10403: # The AIX port of GNU ld has always aspired to compatibility
10404: # with the native linker. However, as the warning in the GNU ld
10405: # block says, versions before 2.19.5* couldn't really create working
10406: # shared libraries, regardless of the interface used.
10407: case `$LD -v 2>&1` in
10408: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10409: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10410: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10411: *)
10412: lt_use_gnu_ld_interface=yes
10413: ;;
10414: esac
10415: ;;
10416: *)
10417: lt_use_gnu_ld_interface=yes
10418: ;;
10419: esac
10420: fi
10421:
10422: if test "$lt_use_gnu_ld_interface" = yes; then
10423: # If archive_cmds runs LD, not CC, wlarc should be empty
10424: wlarc='${wl}'
10425:
10426: # Set some defaults for GNU ld with shared library support. These
10427: # are reset later if shared libraries are not supported. Putting them
10428: # here allows them to be overridden if necessary.
10429: runpath_var=LD_RUN_PATH
10430: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10431: export_dynamic_flag_spec='${wl}--export-dynamic'
10432: # ancient GNU ld didn't support --whole-archive et. al.
10433: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10434: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10435: else
10436: whole_archive_flag_spec=
10437: fi
10438: supports_anon_versioning=no
10439: case `$LD -v 2>&1` in
10440: *GNU\ gold*) supports_anon_versioning=yes ;;
10441: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10442: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10443: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10444: *\ 2.11.*) ;; # other 2.11 versions
10445: *) supports_anon_versioning=yes ;;
10446: esac
10447:
10448: # See if GNU ld supports shared libraries.
10449: case $host_os in
10450: aix[3-9]*)
10451: # On AIX/PPC, the GNU linker is very broken
10452: if test "$host_cpu" != ia64; then
10453: ld_shlibs=no
10454: cat <<_LT_EOF 1>&2
10455:
10456: *** Warning: the GNU linker, at least up to release 2.19, is reported
10457: *** to be unable to reliably create shared libraries on AIX.
10458: *** Therefore, libtool is disabling shared libraries support. If you
10459: *** really care for shared libraries, you may want to install binutils
10460: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10461: *** You will then need to restart the configuration process.
10462:
10463: _LT_EOF
10464: fi
10465: ;;
10466:
10467: amigaos*)
10468: case $host_cpu in
10469: powerpc)
10470: # see comment about AmigaOS4 .so support
10471: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10472: archive_expsym_cmds=''
10473: ;;
10474: m68k)
10475: 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)'
10476: hardcode_libdir_flag_spec='-L$libdir'
10477: hardcode_minus_L=yes
10478: ;;
10479: esac
10480: ;;
10481:
10482: beos*)
10483: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10484: allow_undefined_flag=unsupported
10485: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10486: # support --undefined. This deserves some investigation. FIXME
10487: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10488: else
10489: ld_shlibs=no
10490: fi
10491: ;;
10492:
10493: cygwin* | mingw* | pw32* | cegcc*)
10494: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10495: # as there is no search path for DLLs.
10496: hardcode_libdir_flag_spec='-L$libdir'
10497: export_dynamic_flag_spec='${wl}--export-all-symbols'
10498: allow_undefined_flag=unsupported
10499: always_export_symbols=no
10500: enable_shared_with_static_runtimes=yes
10501: 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'
10502: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10503:
10504: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10505: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10506: # If the export-symbols file already is a .def file (1st line
10507: # is EXPORTS), use it as is; otherwise, prepend...
10508: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10509: cp $export_symbols $output_objdir/$soname.def;
10510: else
10511: echo EXPORTS > $output_objdir/$soname.def;
10512: cat $export_symbols >> $output_objdir/$soname.def;
10513: fi~
10514: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10515: else
10516: ld_shlibs=no
10517: fi
10518: ;;
10519:
10520: haiku*)
10521: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10522: link_all_deplibs=yes
10523: ;;
10524:
10525: interix[3-9]*)
10526: hardcode_direct=no
10527: hardcode_shlibpath_var=no
10528: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10529: export_dynamic_flag_spec='${wl}-E'
10530: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10531: # Instead, shared libraries are loaded at an image base (0x10000000 by
10532: # default) and relocated if they conflict, which is a slow very memory
10533: # consuming and fragmenting process. To avoid this, we pick a random,
10534: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10535: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10536: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10537: 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'
10538: ;;
10539:
10540: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10541: tmp_diet=no
10542: if test "$host_os" = linux-dietlibc; then
10543: case $cc_basename in
10544: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10545: esac
10546: fi
10547: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10548: && test "$tmp_diet" = no
10549: then
10550: tmp_addflag=' $pic_flag'
10551: tmp_sharedflag='-shared'
10552: case $cc_basename,$host_cpu in
10553: pgcc*) # Portland Group C compiler
10554: 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'
10555: tmp_addflag=' $pic_flag'
10556: ;;
10557: pgf77* | pgf90* | pgf95* | pgfortran*)
10558: # Portland Group f77 and f90 compilers
10559: 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'
10560: tmp_addflag=' $pic_flag -Mnomain' ;;
10561: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10562: tmp_addflag=' -i_dynamic' ;;
10563: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10564: tmp_addflag=' -i_dynamic -nofor_main' ;;
10565: ifc* | ifort*) # Intel Fortran compiler
10566: tmp_addflag=' -nofor_main' ;;
10567: lf95*) # Lahey Fortran 8.1
10568: whole_archive_flag_spec=
10569: tmp_sharedflag='--shared' ;;
10570: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10571: tmp_sharedflag='-qmkshrobj'
10572: tmp_addflag= ;;
10573: nvcc*) # Cuda Compiler Driver 2.2
10574: 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'
10575: compiler_needs_object=yes
10576: ;;
10577: esac
10578: case `$CC -V 2>&1 | sed 5q` in
10579: *Sun\ C*) # Sun C 5.9
10580: 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'
10581: compiler_needs_object=yes
10582: tmp_sharedflag='-G' ;;
10583: *Sun\ F*) # Sun Fortran 8.3
10584: tmp_sharedflag='-G' ;;
10585: esac
10586: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10587:
10588: if test "x$supports_anon_versioning" = xyes; then
10589: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10590: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10591: echo "local: *; };" >> $output_objdir/$libname.ver~
10592: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10593: fi
10594:
10595: case $cc_basename in
10596: xlf* | bgf* | bgxlf* | mpixlf*)
10597: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10598: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10599: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10600: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10601: if test "x$supports_anon_versioning" = xyes; then
10602: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10603: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10604: echo "local: *; };" >> $output_objdir/$libname.ver~
10605: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10606: fi
10607: ;;
10608: esac
10609: else
10610: ld_shlibs=no
10611: fi
10612: ;;
10613:
10614: netbsd*)
10615: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10616: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10617: wlarc=
10618: else
10619: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10620: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10621: fi
10622: ;;
10623:
10624: solaris*)
10625: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10626: ld_shlibs=no
10627: cat <<_LT_EOF 1>&2
10628:
10629: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10630: *** create shared libraries on Solaris systems. Therefore, libtool
10631: *** is disabling shared libraries support. We urge you to upgrade GNU
10632: *** binutils to release 2.9.1 or newer. Another option is to modify
10633: *** your PATH or compiler configuration so that the native linker is
10634: *** used, and then restart.
10635:
10636: _LT_EOF
10637: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10638: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10639: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10640: else
10641: ld_shlibs=no
10642: fi
10643: ;;
10644:
10645: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10646: case `$LD -v 2>&1` in
10647: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10648: ld_shlibs=no
10649: cat <<_LT_EOF 1>&2
10650:
10651: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10652: *** reliably create shared libraries on SCO systems. Therefore, libtool
10653: *** is disabling shared libraries support. We urge you to upgrade GNU
10654: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10655: *** your PATH or compiler configuration so that the native linker is
10656: *** used, and then restart.
10657:
10658: _LT_EOF
10659: ;;
10660: *)
10661: # For security reasons, it is highly recommended that you always
10662: # use absolute paths for naming shared libraries, and exclude the
10663: # DT_RUNPATH tag from executables and libraries. But doing so
10664: # requires that you compile everything twice, which is a pain.
10665: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10666: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10667: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10668: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10669: else
10670: ld_shlibs=no
10671: fi
10672: ;;
10673: esac
10674: ;;
10675:
10676: sunos4*)
10677: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10678: wlarc=
10679: hardcode_direct=yes
10680: hardcode_shlibpath_var=no
10681: ;;
10682:
10683: *)
10684: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10685: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10686: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10687: else
10688: ld_shlibs=no
10689: fi
10690: ;;
10691: esac
10692:
10693: if test "$ld_shlibs" = no; then
10694: runpath_var=
10695: hardcode_libdir_flag_spec=
10696: export_dynamic_flag_spec=
10697: whole_archive_flag_spec=
10698: fi
10699: else
10700: # PORTME fill in a description of your system's linker (not GNU ld)
10701: case $host_os in
10702: aix3*)
10703: allow_undefined_flag=unsupported
10704: always_export_symbols=yes
10705: 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'
10706: # Note: this linker hardcodes the directories in LIBPATH if there
10707: # are no directories specified by -L.
10708: hardcode_minus_L=yes
10709: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10710: # Neither direct hardcoding nor static linking is supported with a
10711: # broken collect2.
10712: hardcode_direct=unsupported
10713: fi
10714: ;;
10715:
10716: aix[4-9]*)
10717: if test "$host_cpu" = ia64; then
10718: # On IA64, the linker does run time linking by default, so we don't
10719: # have to do anything special.
10720: aix_use_runtimelinking=no
10721: exp_sym_flag='-Bexport'
10722: no_entry_flag=""
10723: else
10724: # If we're using GNU nm, then we don't want the "-C" option.
10725: # -C means demangle to AIX nm, but means don't demangle with GNU nm
10726: # Also, AIX nm treats weak defined symbols like other global
10727: # defined symbols, whereas GNU nm marks them as "W".
10728: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10729: 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'
10730: else
10731: 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'
10732: fi
10733: aix_use_runtimelinking=no
10734:
10735: # Test if we are trying to use run time linking or normal
10736: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10737: # need to do runtime linking.
10738: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10739: for ld_flag in $LDFLAGS; do
10740: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10741: aix_use_runtimelinking=yes
10742: break
10743: fi
10744: done
10745: ;;
10746: esac
10747:
10748: exp_sym_flag='-bexport'
10749: no_entry_flag='-bnoentry'
10750: fi
10751:
10752: # When large executables or shared objects are built, AIX ld can
10753: # have problems creating the table of contents. If linking a library
10754: # or program results in "error TOC overflow" add -mminimal-toc to
10755: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10756: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10757:
10758: archive_cmds=''
10759: hardcode_direct=yes
10760: hardcode_direct_absolute=yes
10761: hardcode_libdir_separator=':'
10762: link_all_deplibs=yes
10763: file_list_spec='${wl}-f,'
10764:
10765: if test "$GCC" = yes; then
10766: case $host_os in aix4.[012]|aix4.[012].*)
10767: # We only want to do this on AIX 4.2 and lower, the check
10768: # below for broken collect2 doesn't work under 4.3+
10769: collect2name=`${CC} -print-prog-name=collect2`
10770: if test -f "$collect2name" &&
10771: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10772: then
10773: # We have reworked collect2
10774: :
10775: else
10776: # We have old collect2
10777: hardcode_direct=unsupported
10778: # It fails to find uninstalled libraries when the uninstalled
10779: # path is not listed in the libpath. Setting hardcode_minus_L
10780: # to unsupported forces relinking
10781: hardcode_minus_L=yes
10782: hardcode_libdir_flag_spec='-L$libdir'
10783: hardcode_libdir_separator=
10784: fi
10785: ;;
10786: esac
10787: shared_flag='-shared'
10788: if test "$aix_use_runtimelinking" = yes; then
10789: shared_flag="$shared_flag "'${wl}-G'
10790: fi
10791: else
10792: # not using gcc
10793: if test "$host_cpu" = ia64; then
10794: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10795: # chokes on -Wl,-G. The following line is correct:
10796: shared_flag='-G'
10797: else
10798: if test "$aix_use_runtimelinking" = yes; then
10799: shared_flag='${wl}-G'
10800: else
10801: shared_flag='${wl}-bM:SRE'
10802: fi
10803: fi
10804: fi
10805:
10806: export_dynamic_flag_spec='${wl}-bexpall'
10807: # It seems that -bexpall does not export symbols beginning with
10808: # underscore (_), so it is better to generate a list of symbols to export.
10809: always_export_symbols=yes
10810: if test "$aix_use_runtimelinking" = yes; then
10811: # Warning - without using the other runtime loading flags (-brtl),
10812: # -berok will link without error, but may produce a broken library.
10813: allow_undefined_flag='-berok'
10814: # Determine the default libpath from the value encoded in an
10815: # empty executable.
10816: if test "${lt_cv_aix_libpath+set}" = set; then
10817: aix_libpath=$lt_cv_aix_libpath
10818: else
1.150 moko 10819: if ${lt_cv_aix_libpath_+:} false; then :
10820: $as_echo_n "(cached) " >&6
1.128 moko 10821: else
1.150 moko 10822: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10823: /* end confdefs.h. */
10824:
10825: int
10826: main ()
10827: {
10828:
10829: ;
10830: return 0;
10831: }
10832: _ACEOF
1.150 moko 10833: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10834:
10835: lt_aix_libpath_sed='
10836: /Import File Strings/,/^$/ {
10837: /^0/ {
10838: s/^0 *\([^ ]*\) *$/\1/
10839: p
10840: }
10841: }'
10842: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10843: # Check for a 64-bit object if we didn't find anything.
10844: if test -z "$lt_cv_aix_libpath_"; then
10845: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10846: fi
10847: fi
1.150 moko 10848: rm -f core conftest.err conftest.$ac_objext \
10849: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10850: if test -z "$lt_cv_aix_libpath_"; then
10851: lt_cv_aix_libpath_="/usr/lib:/lib"
10852: fi
10853:
10854: fi
10855:
10856: aix_libpath=$lt_cv_aix_libpath_
10857: fi
10858:
10859: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10860: 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"
10861: else
10862: if test "$host_cpu" = ia64; then
10863: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10864: allow_undefined_flag="-z nodefs"
10865: 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"
10866: else
10867: # Determine the default libpath from the value encoded in an
10868: # empty executable.
10869: if test "${lt_cv_aix_libpath+set}" = set; then
10870: aix_libpath=$lt_cv_aix_libpath
10871: else
1.150 moko 10872: if ${lt_cv_aix_libpath_+:} false; then :
10873: $as_echo_n "(cached) " >&6
1.128 moko 10874: else
1.150 moko 10875: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10876: /* end confdefs.h. */
10877:
10878: int
10879: main ()
10880: {
10881:
10882: ;
10883: return 0;
10884: }
10885: _ACEOF
1.150 moko 10886: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 10887:
10888: lt_aix_libpath_sed='
10889: /Import File Strings/,/^$/ {
10890: /^0/ {
10891: s/^0 *\([^ ]*\) *$/\1/
10892: p
10893: }
10894: }'
10895: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10896: # Check for a 64-bit object if we didn't find anything.
10897: if test -z "$lt_cv_aix_libpath_"; then
10898: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10899: fi
10900: fi
1.150 moko 10901: rm -f core conftest.err conftest.$ac_objext \
10902: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10903: if test -z "$lt_cv_aix_libpath_"; then
10904: lt_cv_aix_libpath_="/usr/lib:/lib"
10905: fi
10906:
10907: fi
10908:
10909: aix_libpath=$lt_cv_aix_libpath_
10910: fi
10911:
10912: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10913: # Warning - without using the other run time loading flags,
10914: # -berok will link without error, but may produce a broken library.
10915: no_undefined_flag=' ${wl}-bernotok'
10916: allow_undefined_flag=' ${wl}-berok'
10917: if test "$with_gnu_ld" = yes; then
10918: # We only use this code for GNU lds that support --whole-archive.
10919: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10920: else
10921: # Exported symbols can be pulled into shared objects from archives
10922: whole_archive_flag_spec='$convenience'
10923: fi
10924: archive_cmds_need_lc=yes
10925: # This is similar to how AIX traditionally builds its shared libraries.
10926: 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'
10927: fi
10928: fi
10929: ;;
10930:
10931: amigaos*)
10932: case $host_cpu in
10933: powerpc)
10934: # see comment about AmigaOS4 .so support
10935: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10936: archive_expsym_cmds=''
10937: ;;
10938: m68k)
10939: 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)'
10940: hardcode_libdir_flag_spec='-L$libdir'
10941: hardcode_minus_L=yes
10942: ;;
10943: esac
10944: ;;
10945:
10946: bsdi[45]*)
10947: export_dynamic_flag_spec=-rdynamic
10948: ;;
10949:
10950: cygwin* | mingw* | pw32* | cegcc*)
10951: # When not using gcc, we currently assume that we are using
10952: # Microsoft Visual C++.
10953: # hardcode_libdir_flag_spec is actually meaningless, as there is
10954: # no search path for DLLs.
10955: case $cc_basename in
10956: cl*)
10957: # Native MSVC
10958: hardcode_libdir_flag_spec=' '
10959: allow_undefined_flag=unsupported
10960: always_export_symbols=yes
10961: file_list_spec='@'
10962: # Tell ltmain to make .lib files, not .a files.
10963: libext=lib
10964: # Tell ltmain to make .dll files, not .so files.
10965: shrext_cmds=".dll"
10966: # FIXME: Setting linknames here is a bad hack.
10967: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10968: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10969: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10970: else
10971: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10972: fi~
10973: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10974: linknames='
10975: # The linker will not automatically build a static lib if we build a DLL.
10976: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10977: enable_shared_with_static_runtimes=yes
10978: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10979: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10980: # Don't use ranlib
10981: old_postinstall_cmds='chmod 644 $oldlib'
10982: postlink_cmds='lt_outputfile="@OUTPUT@"~
10983: lt_tool_outputfile="@TOOL_OUTPUT@"~
10984: case $lt_outputfile in
10985: *.exe|*.EXE) ;;
10986: *)
10987: lt_outputfile="$lt_outputfile.exe"
10988: lt_tool_outputfile="$lt_tool_outputfile.exe"
10989: ;;
10990: esac~
10991: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10992: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10993: $RM "$lt_outputfile.manifest";
10994: fi'
10995: ;;
10996: *)
10997: # Assume MSVC wrapper
10998: hardcode_libdir_flag_spec=' '
10999: allow_undefined_flag=unsupported
11000: # Tell ltmain to make .lib files, not .a files.
11001: libext=lib
11002: # Tell ltmain to make .dll files, not .so files.
11003: shrext_cmds=".dll"
11004: # FIXME: Setting linknames here is a bad hack.
11005: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11006: # The linker will automatically build a .lib file if we build a DLL.
11007: old_archive_from_new_cmds='true'
11008: # FIXME: Should let the user specify the lib program.
11009: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11010: enable_shared_with_static_runtimes=yes
11011: ;;
11012: esac
11013: ;;
11014:
11015: darwin* | rhapsody*)
11016:
11017:
11018: archive_cmds_need_lc=no
11019: hardcode_direct=no
11020: hardcode_automatic=yes
11021: hardcode_shlibpath_var=unsupported
11022: if test "$lt_cv_ld_force_load" = "yes"; then
11023: 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\"`'
11024:
11025: else
11026: whole_archive_flag_spec=''
11027: fi
11028: link_all_deplibs=yes
11029: allow_undefined_flag="$_lt_dar_allow_undefined"
11030: case $cc_basename in
11031: ifort*) _lt_dar_can_shared=yes ;;
11032: *) _lt_dar_can_shared=$GCC ;;
11033: esac
11034: if test "$_lt_dar_can_shared" = "yes"; then
11035: output_verbose_link_cmd=func_echo_all
11036: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11037: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11038: 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}"
11039: 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}"
11040:
11041: else
11042: ld_shlibs=no
11043: fi
11044:
11045: ;;
11046:
11047: dgux*)
11048: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11049: hardcode_libdir_flag_spec='-L$libdir'
11050: hardcode_shlibpath_var=no
11051: ;;
11052:
11053: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11054: # support. Future versions do this automatically, but an explicit c++rt0.o
11055: # does not break anything, and helps significantly (at the cost of a little
11056: # extra space).
11057: freebsd2.2*)
11058: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11059: hardcode_libdir_flag_spec='-R$libdir'
11060: hardcode_direct=yes
11061: hardcode_shlibpath_var=no
11062: ;;
11063:
11064: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11065: freebsd2.*)
11066: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11067: hardcode_direct=yes
11068: hardcode_minus_L=yes
11069: hardcode_shlibpath_var=no
11070: ;;
11071:
11072: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11073: freebsd* | dragonfly*)
11074: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11075: hardcode_libdir_flag_spec='-R$libdir'
11076: hardcode_direct=yes
11077: hardcode_shlibpath_var=no
11078: ;;
11079:
11080: hpux9*)
11081: if test "$GCC" = yes; then
11082: 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'
11083: else
11084: 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'
11085: fi
11086: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11087: hardcode_libdir_separator=:
11088: hardcode_direct=yes
11089:
11090: # hardcode_minus_L: Not really in the search PATH,
11091: # but as the default location of the library.
11092: hardcode_minus_L=yes
11093: export_dynamic_flag_spec='${wl}-E'
11094: ;;
11095:
11096: hpux10*)
11097: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11098: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11099: else
11100: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11101: fi
11102: if test "$with_gnu_ld" = no; then
11103: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11104: hardcode_libdir_separator=:
11105: hardcode_direct=yes
11106: hardcode_direct_absolute=yes
11107: export_dynamic_flag_spec='${wl}-E'
11108: # hardcode_minus_L: Not really in the search PATH,
11109: # but as the default location of the library.
11110: hardcode_minus_L=yes
11111: fi
11112: ;;
11113:
11114: hpux11*)
11115: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11116: case $host_cpu in
11117: hppa*64*)
11118: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11119: ;;
11120: ia64*)
11121: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11122: ;;
11123: *)
11124: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11125: ;;
11126: esac
11127: else
11128: case $host_cpu in
11129: hppa*64*)
11130: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11131: ;;
11132: ia64*)
11133: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11134: ;;
11135: *)
11136:
11137: # Older versions of the 11.00 compiler do not understand -b yet
11138: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.150 moko 11139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11140: $as_echo_n "checking if $CC understands -b... " >&6; }
11141: if ${lt_cv_prog_compiler__b+:} false; then :
11142: $as_echo_n "(cached) " >&6
1.128 moko 11143: else
11144: lt_cv_prog_compiler__b=no
11145: save_LDFLAGS="$LDFLAGS"
11146: LDFLAGS="$LDFLAGS -b"
11147: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11148: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11149: # The linker can only warn and ignore the option if not recognized
11150: # So say no if there are warnings
11151: if test -s conftest.err; then
11152: # Append any errors to the config.log.
11153: cat conftest.err 1>&5
11154: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11155: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11156: if diff conftest.exp conftest.er2 >/dev/null; then
11157: lt_cv_prog_compiler__b=yes
11158: fi
11159: else
11160: lt_cv_prog_compiler__b=yes
11161: fi
11162: fi
11163: $RM -r conftest*
11164: LDFLAGS="$save_LDFLAGS"
11165:
11166: fi
1.150 moko 11167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11168: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 11169:
11170: if test x"$lt_cv_prog_compiler__b" = xyes; then
11171: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11172: else
11173: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11174: fi
11175:
11176: ;;
11177: esac
11178: fi
11179: if test "$with_gnu_ld" = no; then
11180: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11181: hardcode_libdir_separator=:
11182:
11183: case $host_cpu in
11184: hppa*64*|ia64*)
11185: hardcode_direct=no
11186: hardcode_shlibpath_var=no
11187: ;;
11188: *)
11189: hardcode_direct=yes
11190: hardcode_direct_absolute=yes
11191: export_dynamic_flag_spec='${wl}-E'
11192:
11193: # hardcode_minus_L: Not really in the search PATH,
11194: # but as the default location of the library.
11195: hardcode_minus_L=yes
11196: ;;
11197: esac
11198: fi
11199: ;;
11200:
11201: irix5* | irix6* | nonstopux*)
11202: if test "$GCC" = yes; then
11203: 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'
11204: # Try to use the -exported_symbol ld option, if it does not
11205: # work, assume that -exports_file does not work either and
11206: # implicitly export all symbols.
11207: # This should be the same for all languages, so no per-tag cache variable.
1.150 moko 11208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11209: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11210: if ${lt_cv_irix_exported_symbol+:} false; then :
11211: $as_echo_n "(cached) " >&6
1.128 moko 11212: else
11213: save_LDFLAGS="$LDFLAGS"
11214: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.150 moko 11215: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 11216: /* end confdefs.h. */
11217: int foo (void) { return 0; }
11218: _ACEOF
1.150 moko 11219: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 11220: lt_cv_irix_exported_symbol=yes
11221: else
1.150 moko 11222: lt_cv_irix_exported_symbol=no
1.128 moko 11223: fi
1.150 moko 11224: rm -f core conftest.err conftest.$ac_objext \
11225: conftest$ac_exeext conftest.$ac_ext
1.128 moko 11226: LDFLAGS="$save_LDFLAGS"
11227: fi
1.150 moko 11228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11229: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.128 moko 11230: if test "$lt_cv_irix_exported_symbol" = yes; then
11231: 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'
11232: fi
11233: else
11234: 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'
11235: 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'
11236: fi
11237: archive_cmds_need_lc='no'
11238: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11239: hardcode_libdir_separator=:
11240: inherit_rpath=yes
11241: link_all_deplibs=yes
11242: ;;
11243:
11244: netbsd*)
11245: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11246: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11247: else
11248: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11249: fi
11250: hardcode_libdir_flag_spec='-R$libdir'
11251: hardcode_direct=yes
11252: hardcode_shlibpath_var=no
11253: ;;
11254:
11255: newsos6)
11256: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11257: hardcode_direct=yes
11258: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11259: hardcode_libdir_separator=:
11260: hardcode_shlibpath_var=no
11261: ;;
11262:
11263: *nto* | *qnx*)
11264: ;;
11265:
11266: openbsd*)
11267: if test -f /usr/libexec/ld.so; then
11268: hardcode_direct=yes
11269: hardcode_shlibpath_var=no
11270: hardcode_direct_absolute=yes
11271: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11272: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11273: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11274: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11275: export_dynamic_flag_spec='${wl}-E'
11276: else
11277: case $host_os in
11278: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11279: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11280: hardcode_libdir_flag_spec='-R$libdir'
11281: ;;
11282: *)
11283: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11284: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11285: ;;
11286: esac
11287: fi
11288: else
11289: ld_shlibs=no
11290: fi
11291: ;;
11292:
11293: os2*)
11294: hardcode_libdir_flag_spec='-L$libdir'
11295: hardcode_minus_L=yes
11296: allow_undefined_flag=unsupported
11297: 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'
11298: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11299: ;;
11300:
11301: osf3*)
11302: if test "$GCC" = yes; then
11303: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11304: 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'
11305: else
11306: allow_undefined_flag=' -expect_unresolved \*'
11307: 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'
11308: fi
11309: archive_cmds_need_lc='no'
11310: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11311: hardcode_libdir_separator=:
11312: ;;
11313:
11314: osf4* | osf5*) # as osf3* with the addition of -msym flag
11315: if test "$GCC" = yes; then
11316: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11317: 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'
11318: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11319: else
11320: allow_undefined_flag=' -expect_unresolved \*'
11321: 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'
11322: 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~
11323: $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'
11324:
11325: # Both c and cxx compiler support -rpath directly
11326: hardcode_libdir_flag_spec='-rpath $libdir'
11327: fi
11328: archive_cmds_need_lc='no'
11329: hardcode_libdir_separator=:
11330: ;;
11331:
11332: solaris*)
11333: no_undefined_flag=' -z defs'
11334: if test "$GCC" = yes; then
11335: wlarc='${wl}'
11336: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11337: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11338: $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'
11339: else
11340: case `$CC -V 2>&1` in
11341: *"Compilers 5.0"*)
11342: wlarc=''
11343: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11345: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11346: ;;
11347: *)
11348: wlarc='${wl}'
11349: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11350: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11351: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11352: ;;
11353: esac
11354: fi
11355: hardcode_libdir_flag_spec='-R$libdir'
11356: hardcode_shlibpath_var=no
11357: case $host_os in
11358: solaris2.[0-5] | solaris2.[0-5].*) ;;
11359: *)
11360: # The compiler driver will combine and reorder linker options,
11361: # but understands `-z linker_flag'. GCC discards it without `$wl',
11362: # but is careful enough not to reorder.
11363: # Supported since Solaris 2.6 (maybe 2.5.1?)
11364: if test "$GCC" = yes; then
11365: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11366: else
11367: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11368: fi
11369: ;;
11370: esac
11371: link_all_deplibs=yes
11372: ;;
11373:
11374: sunos4*)
11375: if test "x$host_vendor" = xsequent; then
11376: # Use $CC to link under sequent, because it throws in some extra .o
11377: # files that make .init and .fini sections work.
11378: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11379: else
11380: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11381: fi
11382: hardcode_libdir_flag_spec='-L$libdir'
11383: hardcode_direct=yes
11384: hardcode_minus_L=yes
11385: hardcode_shlibpath_var=no
11386: ;;
11387:
11388: sysv4)
11389: case $host_vendor in
11390: sni)
11391: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11392: hardcode_direct=yes # is this really true???
11393: ;;
11394: siemens)
11395: ## LD is ld it makes a PLAMLIB
11396: ## CC just makes a GrossModule.
11397: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11398: reload_cmds='$CC -r -o $output$reload_objs'
11399: hardcode_direct=no
11400: ;;
11401: motorola)
11402: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11403: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11404: ;;
11405: esac
11406: runpath_var='LD_RUN_PATH'
11407: hardcode_shlibpath_var=no
11408: ;;
11409:
11410: sysv4.3*)
11411: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11412: hardcode_shlibpath_var=no
11413: export_dynamic_flag_spec='-Bexport'
11414: ;;
11415:
11416: sysv4*MP*)
11417: if test -d /usr/nec; then
11418: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11419: hardcode_shlibpath_var=no
11420: runpath_var=LD_RUN_PATH
11421: hardcode_runpath_var=yes
11422: ld_shlibs=yes
11423: fi
11424: ;;
11425:
11426: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11427: no_undefined_flag='${wl}-z,text'
11428: archive_cmds_need_lc=no
11429: hardcode_shlibpath_var=no
11430: runpath_var='LD_RUN_PATH'
11431:
11432: if test "$GCC" = yes; then
11433: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11434: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11435: else
11436: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11437: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11438: fi
11439: ;;
11440:
11441: sysv5* | sco3.2v5* | sco5v6*)
11442: # Note: We can NOT use -z defs as we might desire, because we do not
11443: # link with -lc, and that would cause any symbols used from libc to
11444: # always be unresolved, which means just about no library would
11445: # ever link correctly. If we're not using GNU ld we use -z text
11446: # though, which does catch some bad symbols but isn't as heavy-handed
11447: # as -z defs.
11448: no_undefined_flag='${wl}-z,text'
11449: allow_undefined_flag='${wl}-z,nodefs'
11450: archive_cmds_need_lc=no
11451: hardcode_shlibpath_var=no
11452: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11453: hardcode_libdir_separator=':'
11454: link_all_deplibs=yes
11455: export_dynamic_flag_spec='${wl}-Bexport'
11456: runpath_var='LD_RUN_PATH'
11457:
11458: if test "$GCC" = yes; then
11459: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11460: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11461: else
11462: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11463: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11464: fi
11465: ;;
11466:
11467: uts4*)
11468: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11469: hardcode_libdir_flag_spec='-L$libdir'
11470: hardcode_shlibpath_var=no
11471: ;;
11472:
11473: *)
11474: ld_shlibs=no
11475: ;;
11476: esac
11477:
11478: if test x$host_vendor = xsni; then
11479: case $host in
11480: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11481: export_dynamic_flag_spec='${wl}-Blargedynsym'
11482: ;;
11483: esac
11484: fi
11485: fi
11486:
1.150 moko 11487: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11488: $as_echo "$ld_shlibs" >&6; }
1.128 moko 11489: test "$ld_shlibs" = no && can_build_shared=no
11490:
11491: with_gnu_ld=$with_gnu_ld
11492:
11493:
11494:
11495:
11496:
11497:
11498:
11499:
11500:
11501:
11502:
11503:
11504:
11505:
11506:
11507: #
11508: # Do we need to explicitly link libc?
11509: #
11510: case "x$archive_cmds_need_lc" in
11511: x|xyes)
11512: # Assume -lc should be added
11513: archive_cmds_need_lc=yes
11514:
11515: if test "$enable_shared" = yes && test "$GCC" = yes; then
11516: case $archive_cmds in
11517: *'~'*)
11518: # FIXME: we may have to deal with multi-command sequences.
11519: ;;
11520: '$CC '*)
11521: # Test whether the compiler implicitly links with -lc since on some
11522: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11523: # to ld, don't add -lc before -lgcc.
1.150 moko 11524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11525: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11526: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11527: $as_echo_n "(cached) " >&6
1.128 moko 11528: else
11529: $RM conftest*
11530: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11531:
1.150 moko 11532: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 11533: (eval $ac_compile) 2>&5
11534: ac_status=$?
1.150 moko 11535: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11536: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 11537: soname=conftest
11538: lib=conftest
11539: libobjs=conftest.$ac_objext
11540: deplibs=
11541: wl=$lt_prog_compiler_wl
11542: pic_flag=$lt_prog_compiler_pic
11543: compiler_flags=-v
11544: linker_flags=-v
11545: verstring=
11546: output_objdir=.
11547: libname=conftest
11548: lt_save_allow_undefined_flag=$allow_undefined_flag
11549: allow_undefined_flag=
1.150 moko 11550: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 11551: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11552: ac_status=$?
1.150 moko 11553: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11554: test $ac_status = 0; }
1.128 moko 11555: then
11556: lt_cv_archive_cmds_need_lc=no
11557: else
11558: lt_cv_archive_cmds_need_lc=yes
11559: fi
11560: allow_undefined_flag=$lt_save_allow_undefined_flag
11561: else
11562: cat conftest.err 1>&5
11563: fi
11564: $RM conftest*
11565:
11566: fi
1.150 moko 11567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11568: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 11569: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11570: ;;
11571: esac
11572: fi
11573: ;;
11574: esac
11575:
11576:
11577:
11578:
11579:
11580:
11581:
11582:
11583:
11584:
11585:
11586:
11587:
11588:
11589:
11590:
11591:
11592:
11593:
11594:
11595:
11596:
11597:
11598:
11599:
11600:
11601:
11602:
11603:
11604:
11605:
11606:
11607:
11608:
11609:
11610:
11611:
11612:
11613:
11614:
11615:
11616:
11617:
11618:
11619:
11620:
11621:
11622:
11623:
11624:
11625:
11626:
11627:
11628:
11629:
11630:
11631:
11632:
11633:
11634:
11635:
11636:
11637:
11638:
11639:
11640:
11641:
11642:
11643:
11644:
11645:
11646:
11647:
11648:
11649:
11650:
11651:
11652:
11653:
11654:
11655:
11656:
11657:
11658:
11659:
11660:
11661:
11662:
11663:
11664:
11665:
11666:
11667:
11668:
11669:
11670:
11671:
11672:
11673:
11674:
11675:
11676:
11677:
11678:
11679:
11680:
11681:
11682:
11683:
11684:
11685:
11686:
11687:
11688:
11689:
11690:
11691:
11692:
11693:
11694:
11695:
11696:
11697:
11698:
11699:
11700:
11701:
11702:
11703:
11704:
11705:
11706:
11707:
11708:
11709:
11710:
11711:
11712:
11713:
11714:
11715:
11716:
11717:
11718:
11719:
11720:
11721:
11722:
11723:
11724:
11725:
11726:
1.150 moko 11727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11728: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 11729:
11730: if test "$GCC" = yes; then
11731: case $host_os in
11732: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11733: *) lt_awk_arg="/^libraries:/" ;;
11734: esac
11735: case $host_os in
11736: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11737: *) lt_sed_strip_eq="s,=/,/,g" ;;
11738: esac
11739: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11740: case $lt_search_path_spec in
11741: *\;*)
11742: # if the path contains ";" then we assume it to be the separator
11743: # otherwise default to the standard path separator (i.e. ":") - it is
11744: # assumed that no part of a normal pathname contains ";" but that should
11745: # okay in the real world where ";" in dirpaths is itself problematic.
11746: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11747: ;;
11748: *)
11749: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11750: ;;
11751: esac
11752: # Ok, now we have the path, separated by spaces, we can step through it
11753: # and add multilib dir if necessary.
11754: lt_tmp_lt_search_path_spec=
11755: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11756: for lt_sys_path in $lt_search_path_spec; do
11757: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11758: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11759: else
11760: test -d "$lt_sys_path" && \
11761: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11762: fi
11763: done
11764: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11765: BEGIN {RS=" "; FS="/|\n";} {
11766: lt_foo="";
11767: lt_count=0;
11768: for (lt_i = NF; lt_i > 0; lt_i--) {
11769: if ($lt_i != "" && $lt_i != ".") {
11770: if ($lt_i == "..") {
11771: lt_count++;
11772: } else {
11773: if (lt_count == 0) {
11774: lt_foo="/" $lt_i lt_foo;
11775: } else {
11776: lt_count--;
11777: }
11778: }
11779: }
11780: }
11781: if (lt_foo != "") { lt_freq[lt_foo]++; }
11782: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11783: }'`
11784: # AWK program above erroneously prepends '/' to C:/dos/paths
11785: # for these hosts.
11786: case $host_os in
11787: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11788: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11789: esac
11790: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11791: else
11792: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11793: fi
11794: library_names_spec=
11795: libname_spec='lib$name'
11796: soname_spec=
11797: shrext_cmds=".so"
11798: postinstall_cmds=
11799: postuninstall_cmds=
11800: finish_cmds=
11801: finish_eval=
11802: shlibpath_var=
11803: shlibpath_overrides_runpath=unknown
11804: version_type=none
11805: dynamic_linker="$host_os ld.so"
11806: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11807: need_lib_prefix=unknown
11808: hardcode_into_libs=no
11809:
11810: # when you set need_version to no, make sure it does not cause -set_version
11811: # flags to be left without arguments
11812: need_version=unknown
11813:
11814: case $host_os in
11815: aix3*)
11816: version_type=linux # correct to gnu/linux during the next big refactor
11817: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11818: shlibpath_var=LIBPATH
11819:
11820: # AIX 3 has no versioning support, so we append a major version to the name.
11821: soname_spec='${libname}${release}${shared_ext}$major'
11822: ;;
11823:
11824: aix[4-9]*)
11825: version_type=linux # correct to gnu/linux during the next big refactor
11826: need_lib_prefix=no
11827: need_version=no
11828: hardcode_into_libs=yes
11829: if test "$host_cpu" = ia64; then
11830: # AIX 5 supports IA64
11831: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11832: shlibpath_var=LD_LIBRARY_PATH
11833: else
11834: # With GCC up to 2.95.x, collect2 would create an import file
11835: # for dependence libraries. The import file would start with
11836: # the line `#! .'. This would cause the generated library to
11837: # depend on `.', always an invalid library. This was fixed in
11838: # development snapshots of GCC prior to 3.0.
11839: case $host_os in
11840: aix4 | aix4.[01] | aix4.[01].*)
11841: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11842: echo ' yes '
11843: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11844: :
11845: else
11846: can_build_shared=no
11847: fi
11848: ;;
11849: esac
11850: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11851: # soname into executable. Probably we can add versioning support to
11852: # collect2, so additional links can be useful in future.
11853: if test "$aix_use_runtimelinking" = yes; then
11854: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11855: # instead of lib<name>.a to let people know that these are not
11856: # typical AIX shared libraries.
11857: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858: else
11859: # We preserve .a as extension for shared libraries through AIX4.2
11860: # and later when we are not doing run time linking.
11861: library_names_spec='${libname}${release}.a $libname.a'
11862: soname_spec='${libname}${release}${shared_ext}$major'
11863: fi
11864: shlibpath_var=LIBPATH
11865: fi
11866: ;;
11867:
11868: amigaos*)
11869: case $host_cpu in
11870: powerpc)
11871: # Since July 2007 AmigaOS4 officially supports .so libraries.
11872: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11873: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874: ;;
11875: m68k)
11876: library_names_spec='$libname.ixlibrary $libname.a'
11877: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11878: 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'
11879: ;;
11880: esac
11881: ;;
11882:
11883: beos*)
11884: library_names_spec='${libname}${shared_ext}'
11885: dynamic_linker="$host_os ld.so"
11886: shlibpath_var=LIBRARY_PATH
11887: ;;
11888:
11889: bsdi[45]*)
11890: version_type=linux # correct to gnu/linux during the next big refactor
11891: need_version=no
11892: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11893: soname_spec='${libname}${release}${shared_ext}$major'
11894: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11895: shlibpath_var=LD_LIBRARY_PATH
11896: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11897: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11898: # the default ld.so.conf also contains /usr/contrib/lib and
11899: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11900: # libtool to hard-code these into programs
11901: ;;
11902:
11903: cygwin* | mingw* | pw32* | cegcc*)
11904: version_type=windows
11905: shrext_cmds=".dll"
11906: need_version=no
11907: need_lib_prefix=no
11908:
11909: case $GCC,$cc_basename in
11910: yes,*)
11911: # gcc
11912: library_names_spec='$libname.dll.a'
11913: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11914: postinstall_cmds='base_file=`basename \${file}`~
11915: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11916: dldir=$destdir/`dirname \$dlpath`~
11917: test -d \$dldir || mkdir -p \$dldir~
11918: $install_prog $dir/$dlname \$dldir/$dlname~
11919: chmod a+x \$dldir/$dlname~
11920: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11921: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11922: fi'
11923: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11924: dlpath=$dir/\$dldll~
11925: $RM \$dlpath'
11926: shlibpath_overrides_runpath=yes
11927:
11928: case $host_os in
11929: cygwin*)
11930: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11931: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11932:
11933: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11934: ;;
11935: mingw* | cegcc*)
11936: # MinGW DLLs use traditional 'lib' prefix
11937: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11938: ;;
11939: pw32*)
11940: # pw32 DLLs use 'pw' prefix rather than 'lib'
11941: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11942: ;;
11943: esac
11944: dynamic_linker='Win32 ld.exe'
11945: ;;
11946:
11947: *,cl*)
11948: # Native MSVC
11949: libname_spec='$name'
11950: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11951: library_names_spec='${libname}.dll.lib'
11952:
11953: case $build_os in
11954: mingw*)
11955: sys_lib_search_path_spec=
11956: lt_save_ifs=$IFS
11957: IFS=';'
11958: for lt_path in $LIB
11959: do
11960: IFS=$lt_save_ifs
11961: # Let DOS variable expansion print the short 8.3 style file name.
11962: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11963: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11964: done
11965: IFS=$lt_save_ifs
11966: # Convert to MSYS style.
11967: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11968: ;;
11969: cygwin*)
11970: # Convert to unix form, then to dos form, then back to unix form
11971: # but this time dos style (no spaces!) so that the unix form looks
11972: # like /cygdrive/c/PROGRA~1:/cygdr...
11973: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11974: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11975: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11976: ;;
11977: *)
11978: sys_lib_search_path_spec="$LIB"
11979: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11980: # It is most probably a Windows format PATH.
11981: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11982: else
11983: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11984: fi
11985: # FIXME: find the short name or the path components, as spaces are
11986: # common. (e.g. "Program Files" -> "PROGRA~1")
11987: ;;
11988: esac
11989:
11990: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11991: postinstall_cmds='base_file=`basename \${file}`~
11992: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11993: dldir=$destdir/`dirname \$dlpath`~
11994: test -d \$dldir || mkdir -p \$dldir~
11995: $install_prog $dir/$dlname \$dldir/$dlname'
11996: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11997: dlpath=$dir/\$dldll~
11998: $RM \$dlpath'
11999: shlibpath_overrides_runpath=yes
12000: dynamic_linker='Win32 link.exe'
12001: ;;
12002:
12003: *)
12004: # Assume MSVC wrapper
12005: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12006: dynamic_linker='Win32 ld.exe'
12007: ;;
12008: esac
12009: # FIXME: first we should search . and the directory the executable is in
12010: shlibpath_var=PATH
12011: ;;
12012:
12013: darwin* | rhapsody*)
12014: dynamic_linker="$host_os dyld"
12015: version_type=darwin
12016: need_lib_prefix=no
12017: need_version=no
12018: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12019: soname_spec='${libname}${release}${major}$shared_ext'
12020: shlibpath_overrides_runpath=yes
12021: shlibpath_var=DYLD_LIBRARY_PATH
12022: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12023:
12024: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12025: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12026: ;;
12027:
12028: dgux*)
12029: version_type=linux # correct to gnu/linux during the next big refactor
12030: need_lib_prefix=no
12031: need_version=no
12032: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12033: soname_spec='${libname}${release}${shared_ext}$major'
12034: shlibpath_var=LD_LIBRARY_PATH
12035: ;;
12036:
12037: freebsd* | dragonfly*)
12038: # DragonFly does not have aout. When/if they implement a new
12039: # versioning mechanism, adjust this.
12040: if test -x /usr/bin/objformat; then
12041: objformat=`/usr/bin/objformat`
12042: else
12043: case $host_os in
12044: freebsd[23].*) objformat=aout ;;
12045: *) objformat=elf ;;
12046: esac
12047: fi
12048: version_type=freebsd-$objformat
12049: case $version_type in
12050: freebsd-elf*)
12051: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12052: need_version=no
12053: need_lib_prefix=no
12054: ;;
12055: freebsd-*)
12056: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12057: need_version=yes
12058: ;;
12059: esac
12060: shlibpath_var=LD_LIBRARY_PATH
12061: case $host_os in
12062: freebsd2.*)
12063: shlibpath_overrides_runpath=yes
12064: ;;
12065: freebsd3.[01]* | freebsdelf3.[01]*)
12066: shlibpath_overrides_runpath=yes
12067: hardcode_into_libs=yes
12068: ;;
12069: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12070: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12071: shlibpath_overrides_runpath=no
12072: hardcode_into_libs=yes
12073: ;;
12074: *) # from 4.6 on, and DragonFly
12075: shlibpath_overrides_runpath=yes
12076: hardcode_into_libs=yes
12077: ;;
12078: esac
12079: ;;
12080:
12081: gnu*)
12082: version_type=linux # correct to gnu/linux during the next big refactor
12083: need_lib_prefix=no
12084: need_version=no
12085: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12086: soname_spec='${libname}${release}${shared_ext}$major'
12087: shlibpath_var=LD_LIBRARY_PATH
12088: shlibpath_overrides_runpath=no
12089: hardcode_into_libs=yes
12090: ;;
12091:
12092: haiku*)
12093: version_type=linux # correct to gnu/linux during the next big refactor
12094: need_lib_prefix=no
12095: need_version=no
12096: dynamic_linker="$host_os runtime_loader"
12097: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12098: soname_spec='${libname}${release}${shared_ext}$major'
12099: shlibpath_var=LIBRARY_PATH
12100: shlibpath_overrides_runpath=yes
12101: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12102: hardcode_into_libs=yes
12103: ;;
12104:
12105: hpux9* | hpux10* | hpux11*)
12106: # Give a soname corresponding to the major version so that dld.sl refuses to
12107: # link against other versions.
12108: version_type=sunos
12109: need_lib_prefix=no
12110: need_version=no
12111: case $host_cpu in
12112: ia64*)
12113: shrext_cmds='.so'
12114: hardcode_into_libs=yes
12115: dynamic_linker="$host_os dld.so"
12116: shlibpath_var=LD_LIBRARY_PATH
12117: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12118: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12119: soname_spec='${libname}${release}${shared_ext}$major'
12120: if test "X$HPUX_IA64_MODE" = X32; then
12121: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12122: else
12123: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12124: fi
12125: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12126: ;;
12127: hppa*64*)
12128: shrext_cmds='.sl'
12129: hardcode_into_libs=yes
12130: dynamic_linker="$host_os dld.sl"
12131: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12132: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12133: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134: soname_spec='${libname}${release}${shared_ext}$major'
12135: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12136: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12137: ;;
12138: *)
12139: shrext_cmds='.sl'
12140: dynamic_linker="$host_os dld.sl"
12141: shlibpath_var=SHLIB_PATH
12142: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12143: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12144: soname_spec='${libname}${release}${shared_ext}$major'
12145: ;;
12146: esac
12147: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12148: postinstall_cmds='chmod 555 $lib'
12149: # or fails outright, so override atomically:
12150: install_override_mode=555
12151: ;;
12152:
12153: interix[3-9]*)
12154: version_type=linux # correct to gnu/linux during the next big refactor
12155: need_lib_prefix=no
12156: need_version=no
12157: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12158: soname_spec='${libname}${release}${shared_ext}$major'
12159: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12160: shlibpath_var=LD_LIBRARY_PATH
12161: shlibpath_overrides_runpath=no
12162: hardcode_into_libs=yes
12163: ;;
12164:
12165: irix5* | irix6* | nonstopux*)
12166: case $host_os in
12167: nonstopux*) version_type=nonstopux ;;
12168: *)
12169: if test "$lt_cv_prog_gnu_ld" = yes; then
12170: version_type=linux # correct to gnu/linux during the next big refactor
12171: else
12172: version_type=irix
12173: fi ;;
12174: esac
12175: need_lib_prefix=no
12176: need_version=no
12177: soname_spec='${libname}${release}${shared_ext}$major'
12178: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12179: case $host_os in
12180: irix5* | nonstopux*)
12181: libsuff= shlibsuff=
12182: ;;
12183: *)
12184: case $LD in # libtool.m4 will add one of these switches to LD
12185: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12186: libsuff= shlibsuff= libmagic=32-bit;;
12187: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12188: libsuff=32 shlibsuff=N32 libmagic=N32;;
12189: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12190: libsuff=64 shlibsuff=64 libmagic=64-bit;;
12191: *) libsuff= shlibsuff= libmagic=never-match;;
12192: esac
12193: ;;
12194: esac
12195: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12196: shlibpath_overrides_runpath=no
12197: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12198: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12199: hardcode_into_libs=yes
12200: ;;
12201:
12202: # No shared lib support for Linux oldld, aout, or coff.
12203: linux*oldld* | linux*aout* | linux*coff*)
12204: dynamic_linker=no
12205: ;;
12206:
12207: # This must be glibc/ELF.
12208: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12209: version_type=linux # correct to gnu/linux during the next big refactor
12210: need_lib_prefix=no
12211: need_version=no
12212: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12213: soname_spec='${libname}${release}${shared_ext}$major'
12214: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12215: shlibpath_var=LD_LIBRARY_PATH
12216: shlibpath_overrides_runpath=no
12217:
12218: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 12219: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12220: $as_echo_n "(cached) " >&6
1.128 moko 12221: else
12222: lt_cv_shlibpath_overrides_runpath=no
12223: save_LDFLAGS=$LDFLAGS
12224: save_libdir=$libdir
12225: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12226: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 12227: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12228: /* end confdefs.h. */
12229:
12230: int
12231: main ()
12232: {
12233:
12234: ;
12235: return 0;
12236: }
12237: _ACEOF
1.150 moko 12238: if ac_fn_c_try_link "$LINENO"; then :
12239: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 12240: lt_cv_shlibpath_overrides_runpath=yes
12241: fi
12242: fi
1.150 moko 12243: rm -f core conftest.err conftest.$ac_objext \
12244: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12245: LDFLAGS=$save_LDFLAGS
12246: libdir=$save_libdir
12247:
12248: fi
12249:
12250: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12251:
12252: # This implies no fast_install, which is unacceptable.
12253: # Some rework will be needed to allow for fast_install
12254: # before this can be enabled.
12255: hardcode_into_libs=yes
12256:
12257: # Append ld.so.conf contents to the search path
12258: if test -f /etc/ld.so.conf; then
12259: 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' ' '`
12260: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12261: fi
12262:
12263: # We used to test for /lib/ld.so.1 and disable shared libraries on
12264: # powerpc, because MkLinux only supported shared libraries with the
12265: # GNU dynamic linker. Since this was broken with cross compilers,
12266: # most powerpc-linux boxes support dynamic linking these days and
12267: # people can always --disable-shared, the test was removed, and we
12268: # assume the GNU/Linux dynamic linker is in use.
12269: dynamic_linker='GNU/Linux ld.so'
12270: ;;
12271:
12272: netbsd*)
12273: version_type=sunos
12274: need_lib_prefix=no
12275: need_version=no
12276: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12277: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12278: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12279: dynamic_linker='NetBSD (a.out) ld.so'
12280: else
12281: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12282: soname_spec='${libname}${release}${shared_ext}$major'
12283: dynamic_linker='NetBSD ld.elf_so'
12284: fi
12285: shlibpath_var=LD_LIBRARY_PATH
12286: shlibpath_overrides_runpath=yes
12287: hardcode_into_libs=yes
12288: ;;
12289:
12290: newsos6)
12291: version_type=linux # correct to gnu/linux during the next big refactor
12292: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12293: shlibpath_var=LD_LIBRARY_PATH
12294: shlibpath_overrides_runpath=yes
12295: ;;
12296:
12297: *nto* | *qnx*)
12298: version_type=qnx
12299: need_lib_prefix=no
12300: need_version=no
12301: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302: soname_spec='${libname}${release}${shared_ext}$major'
12303: shlibpath_var=LD_LIBRARY_PATH
12304: shlibpath_overrides_runpath=no
12305: hardcode_into_libs=yes
12306: dynamic_linker='ldqnx.so'
12307: ;;
12308:
12309: openbsd*)
12310: version_type=sunos
12311: sys_lib_dlsearch_path_spec="/usr/lib"
12312: need_lib_prefix=no
12313: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12314: case $host_os in
12315: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12316: *) need_version=no ;;
12317: esac
12318: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12319: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12320: shlibpath_var=LD_LIBRARY_PATH
12321: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12322: case $host_os in
12323: openbsd2.[89] | openbsd2.[89].*)
12324: shlibpath_overrides_runpath=no
12325: ;;
12326: *)
12327: shlibpath_overrides_runpath=yes
12328: ;;
12329: esac
12330: else
12331: shlibpath_overrides_runpath=yes
12332: fi
12333: ;;
12334:
12335: os2*)
12336: libname_spec='$name'
12337: shrext_cmds=".dll"
12338: need_lib_prefix=no
12339: library_names_spec='$libname${shared_ext} $libname.a'
12340: dynamic_linker='OS/2 ld.exe'
12341: shlibpath_var=LIBPATH
12342: ;;
12343:
12344: osf3* | osf4* | osf5*)
12345: version_type=osf
12346: need_lib_prefix=no
12347: need_version=no
12348: soname_spec='${libname}${release}${shared_ext}$major'
12349: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12350: shlibpath_var=LD_LIBRARY_PATH
12351: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12352: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12353: ;;
12354:
12355: rdos*)
12356: dynamic_linker=no
12357: ;;
12358:
12359: solaris*)
12360: version_type=linux # correct to gnu/linux during the next big refactor
12361: need_lib_prefix=no
12362: need_version=no
12363: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12364: soname_spec='${libname}${release}${shared_ext}$major'
12365: shlibpath_var=LD_LIBRARY_PATH
12366: shlibpath_overrides_runpath=yes
12367: hardcode_into_libs=yes
12368: # ldd complains unless libraries are executable
12369: postinstall_cmds='chmod +x $lib'
12370: ;;
12371:
12372: sunos4*)
12373: version_type=sunos
12374: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12375: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12376: shlibpath_var=LD_LIBRARY_PATH
12377: shlibpath_overrides_runpath=yes
12378: if test "$with_gnu_ld" = yes; then
12379: need_lib_prefix=no
12380: fi
12381: need_version=yes
12382: ;;
12383:
12384: sysv4 | sysv4.3*)
12385: version_type=linux # correct to gnu/linux during the next big refactor
12386: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12387: soname_spec='${libname}${release}${shared_ext}$major'
12388: shlibpath_var=LD_LIBRARY_PATH
12389: case $host_vendor in
12390: sni)
12391: shlibpath_overrides_runpath=no
12392: need_lib_prefix=no
12393: runpath_var=LD_RUN_PATH
12394: ;;
12395: siemens)
12396: need_lib_prefix=no
12397: ;;
12398: motorola)
12399: need_lib_prefix=no
12400: need_version=no
12401: shlibpath_overrides_runpath=no
12402: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12403: ;;
12404: esac
12405: ;;
12406:
12407: sysv4*MP*)
12408: if test -d /usr/nec ;then
12409: version_type=linux # correct to gnu/linux during the next big refactor
12410: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12411: soname_spec='$libname${shared_ext}.$major'
12412: shlibpath_var=LD_LIBRARY_PATH
12413: fi
12414: ;;
12415:
12416: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12417: version_type=freebsd-elf
12418: need_lib_prefix=no
12419: need_version=no
12420: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12421: soname_spec='${libname}${release}${shared_ext}$major'
12422: shlibpath_var=LD_LIBRARY_PATH
12423: shlibpath_overrides_runpath=yes
12424: hardcode_into_libs=yes
12425: if test "$with_gnu_ld" = yes; then
12426: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12427: else
12428: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12429: case $host_os in
12430: sco3.2v5*)
12431: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12432: ;;
12433: esac
12434: fi
12435: sys_lib_dlsearch_path_spec='/usr/lib'
12436: ;;
12437:
12438: tpf*)
12439: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12440: version_type=linux # correct to gnu/linux during the next big refactor
12441: need_lib_prefix=no
12442: need_version=no
12443: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12444: shlibpath_var=LD_LIBRARY_PATH
12445: shlibpath_overrides_runpath=no
12446: hardcode_into_libs=yes
12447: ;;
12448:
12449: uts4*)
12450: version_type=linux # correct to gnu/linux during the next big refactor
12451: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452: soname_spec='${libname}${release}${shared_ext}$major'
12453: shlibpath_var=LD_LIBRARY_PATH
12454: ;;
12455:
12456: *)
12457: dynamic_linker=no
12458: ;;
12459: esac
1.150 moko 12460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12461: $as_echo "$dynamic_linker" >&6; }
1.128 moko 12462: test "$dynamic_linker" = no && can_build_shared=no
12463:
12464: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12465: if test "$GCC" = yes; then
12466: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12467: fi
12468:
12469: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12470: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12471: fi
12472: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12473: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12474: fi
12475:
12476:
12477:
12478:
12479:
12480:
12481:
12482:
12483:
12484:
12485:
12486:
12487:
12488:
12489:
12490:
12491:
12492:
12493:
12494:
12495:
12496:
12497:
12498:
12499:
12500:
12501:
12502:
12503:
12504:
12505:
12506:
12507:
12508:
12509:
12510:
12511:
12512:
12513:
12514:
12515:
12516:
12517:
12518:
12519:
12520:
12521:
12522:
12523:
12524:
12525:
12526:
12527:
12528:
12529:
12530:
12531:
12532:
12533:
12534:
12535:
12536:
12537:
12538:
12539:
12540:
12541:
12542:
12543:
12544:
12545:
12546:
12547:
12548:
12549:
12550:
12551:
12552:
12553:
12554:
12555:
12556:
12557:
12558:
12559:
12560:
12561:
12562:
12563:
12564:
12565:
12566:
1.150 moko 12567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12568: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 12569: hardcode_action=
12570: if test -n "$hardcode_libdir_flag_spec" ||
12571: test -n "$runpath_var" ||
12572: test "X$hardcode_automatic" = "Xyes" ; then
12573:
12574: # We can hardcode non-existent directories.
12575: if test "$hardcode_direct" != no &&
12576: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12577: # have to relink, otherwise we might link with an installed library
12578: # when we should be linking with a yet-to-be-installed one
12579: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12580: test "$hardcode_minus_L" != no; then
12581: # Linking always hardcodes the temporary library directory.
12582: hardcode_action=relink
12583: else
12584: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12585: hardcode_action=immediate
12586: fi
12587: else
12588: # We cannot hardcode anything, or else we can only hardcode existing
12589: # directories.
12590: hardcode_action=unsupported
12591: fi
1.150 moko 12592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12593: $as_echo "$hardcode_action" >&6; }
1.128 moko 12594:
12595: if test "$hardcode_action" = relink ||
12596: test "$inherit_rpath" = yes; then
12597: # Fast installation is not supported
12598: enable_fast_install=no
12599: elif test "$shlibpath_overrides_runpath" = yes ||
12600: test "$enable_shared" = no; then
12601: # Fast installation is not necessary
12602: enable_fast_install=needless
12603: fi
12604:
12605:
12606:
12607:
12608:
12609:
12610: if test "x$enable_dlopen" != xyes; then
12611: enable_dlopen=unknown
12612: enable_dlopen_self=unknown
12613: enable_dlopen_self_static=unknown
12614: else
12615: lt_cv_dlopen=no
12616: lt_cv_dlopen_libs=
12617:
12618: case $host_os in
12619: beos*)
12620: lt_cv_dlopen="load_add_on"
12621: lt_cv_dlopen_libs=
12622: lt_cv_dlopen_self=yes
12623: ;;
12624:
12625: mingw* | pw32* | cegcc*)
12626: lt_cv_dlopen="LoadLibrary"
12627: lt_cv_dlopen_libs=
12628: ;;
12629:
12630: cygwin*)
12631: lt_cv_dlopen="dlopen"
12632: lt_cv_dlopen_libs=
12633: ;;
12634:
12635: darwin*)
12636: # if libdl is installed we need to link against it
1.150 moko 12637: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12638: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12639: if ${ac_cv_lib_dl_dlopen+:} false; then :
12640: $as_echo_n "(cached) " >&6
1.128 moko 12641: else
12642: ac_check_lib_save_LIBS=$LIBS
12643: LIBS="-ldl $LIBS"
1.150 moko 12644: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12645: /* end confdefs.h. */
12646:
1.150 moko 12647: /* Override any GCC internal prototype to avoid an error.
12648: Use char because int might match the return type of a GCC
12649: builtin and then its argument prototype would still apply. */
1.128 moko 12650: #ifdef __cplusplus
12651: extern "C"
12652: #endif
12653: char dlopen ();
12654: int
12655: main ()
12656: {
1.150 moko 12657: return dlopen ();
1.128 moko 12658: ;
12659: return 0;
12660: }
12661: _ACEOF
1.150 moko 12662: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12663: ac_cv_lib_dl_dlopen=yes
12664: else
1.150 moko 12665: ac_cv_lib_dl_dlopen=no
1.128 moko 12666: fi
1.150 moko 12667: rm -f core conftest.err conftest.$ac_objext \
12668: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12669: LIBS=$ac_check_lib_save_LIBS
12670: fi
1.150 moko 12671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12672: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12673: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12674: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12675: else
12676:
12677: lt_cv_dlopen="dyld"
12678: lt_cv_dlopen_libs=
12679: lt_cv_dlopen_self=yes
12680:
12681: fi
12682:
12683: ;;
12684:
12685: *)
1.150 moko 12686: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12687: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 12688: lt_cv_dlopen="shl_load"
12689: else
1.150 moko 12690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12691: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12692: if ${ac_cv_lib_dld_shl_load+:} false; then :
12693: $as_echo_n "(cached) " >&6
1.128 moko 12694: else
12695: ac_check_lib_save_LIBS=$LIBS
12696: LIBS="-ldld $LIBS"
1.150 moko 12697: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12698: /* end confdefs.h. */
12699:
1.150 moko 12700: /* Override any GCC internal prototype to avoid an error.
12701: Use char because int might match the return type of a GCC
12702: builtin and then its argument prototype would still apply. */
1.128 moko 12703: #ifdef __cplusplus
12704: extern "C"
12705: #endif
12706: char shl_load ();
12707: int
12708: main ()
12709: {
1.150 moko 12710: return shl_load ();
1.128 moko 12711: ;
12712: return 0;
12713: }
12714: _ACEOF
1.150 moko 12715: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12716: ac_cv_lib_dld_shl_load=yes
12717: else
1.150 moko 12718: ac_cv_lib_dld_shl_load=no
1.128 moko 12719: fi
1.150 moko 12720: rm -f core conftest.err conftest.$ac_objext \
12721: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12722: LIBS=$ac_check_lib_save_LIBS
12723: fi
1.150 moko 12724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12725: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12726: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.128 moko 12727: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12728: else
1.150 moko 12729: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12730: if test "x$ac_cv_func_dlopen" = xyes; then :
1.128 moko 12731: lt_cv_dlopen="dlopen"
12732: else
1.150 moko 12733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12734: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12735: if ${ac_cv_lib_dl_dlopen+:} false; then :
12736: $as_echo_n "(cached) " >&6
1.128 moko 12737: else
12738: ac_check_lib_save_LIBS=$LIBS
12739: LIBS="-ldl $LIBS"
1.150 moko 12740: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12741: /* end confdefs.h. */
12742:
1.150 moko 12743: /* Override any GCC internal prototype to avoid an error.
12744: Use char because int might match the return type of a GCC
12745: builtin and then its argument prototype would still apply. */
1.128 moko 12746: #ifdef __cplusplus
12747: extern "C"
12748: #endif
12749: char dlopen ();
12750: int
12751: main ()
12752: {
1.150 moko 12753: return dlopen ();
1.128 moko 12754: ;
12755: return 0;
12756: }
12757: _ACEOF
1.150 moko 12758: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12759: ac_cv_lib_dl_dlopen=yes
12760: else
1.150 moko 12761: ac_cv_lib_dl_dlopen=no
1.128 moko 12762: fi
1.150 moko 12763: rm -f core conftest.err conftest.$ac_objext \
12764: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12765: LIBS=$ac_check_lib_save_LIBS
12766: fi
1.150 moko 12767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12768: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12769: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.128 moko 12770: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12771: else
1.150 moko 12772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12773: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12774: if ${ac_cv_lib_svld_dlopen+:} false; then :
12775: $as_echo_n "(cached) " >&6
1.128 moko 12776: else
12777: ac_check_lib_save_LIBS=$LIBS
12778: LIBS="-lsvld $LIBS"
1.150 moko 12779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12780: /* end confdefs.h. */
12781:
1.150 moko 12782: /* Override any GCC internal prototype to avoid an error.
12783: Use char because int might match the return type of a GCC
12784: builtin and then its argument prototype would still apply. */
1.128 moko 12785: #ifdef __cplusplus
12786: extern "C"
12787: #endif
12788: char dlopen ();
12789: int
12790: main ()
12791: {
1.150 moko 12792: return dlopen ();
1.128 moko 12793: ;
12794: return 0;
12795: }
12796: _ACEOF
1.150 moko 12797: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12798: ac_cv_lib_svld_dlopen=yes
12799: else
1.150 moko 12800: ac_cv_lib_svld_dlopen=no
1.128 moko 12801: fi
1.150 moko 12802: rm -f core conftest.err conftest.$ac_objext \
12803: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12804: LIBS=$ac_check_lib_save_LIBS
12805: fi
1.150 moko 12806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12807: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12808: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 12809: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12810: else
1.150 moko 12811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12812: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12813: if ${ac_cv_lib_dld_dld_link+:} false; then :
12814: $as_echo_n "(cached) " >&6
1.128 moko 12815: else
12816: ac_check_lib_save_LIBS=$LIBS
12817: LIBS="-ldld $LIBS"
1.150 moko 12818: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12819: /* end confdefs.h. */
12820:
1.150 moko 12821: /* Override any GCC internal prototype to avoid an error.
12822: Use char because int might match the return type of a GCC
12823: builtin and then its argument prototype would still apply. */
1.128 moko 12824: #ifdef __cplusplus
12825: extern "C"
12826: #endif
12827: char dld_link ();
12828: int
12829: main ()
12830: {
1.150 moko 12831: return dld_link ();
1.128 moko 12832: ;
12833: return 0;
12834: }
12835: _ACEOF
1.150 moko 12836: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 12837: ac_cv_lib_dld_dld_link=yes
12838: else
1.150 moko 12839: ac_cv_lib_dld_dld_link=no
12840: fi
12841: rm -f core conftest.err conftest.$ac_objext \
12842: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12843: LIBS=$ac_check_lib_save_LIBS
12844: fi
1.150 moko 12845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12846: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12847: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 12848: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12849: fi
12850:
12851:
12852: fi
12853:
12854:
12855: fi
12856:
12857:
12858: fi
12859:
12860:
12861: fi
12862:
12863:
12864: fi
12865:
12866: ;;
12867: esac
12868:
12869: if test "x$lt_cv_dlopen" != xno; then
12870: enable_dlopen=yes
12871: else
12872: enable_dlopen=no
12873: fi
12874:
12875: case $lt_cv_dlopen in
12876: dlopen)
12877: save_CPPFLAGS="$CPPFLAGS"
12878: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12879:
12880: save_LDFLAGS="$LDFLAGS"
12881: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12882:
12883: save_LIBS="$LIBS"
12884: LIBS="$lt_cv_dlopen_libs $LIBS"
12885:
1.150 moko 12886: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12887: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12888: if ${lt_cv_dlopen_self+:} false; then :
12889: $as_echo_n "(cached) " >&6
1.128 moko 12890: else
12891: if test "$cross_compiling" = yes; then :
12892: lt_cv_dlopen_self=cross
12893: else
12894: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12895: lt_status=$lt_dlunknown
12896: cat > conftest.$ac_ext <<_LT_EOF
12897: #line $LINENO "configure"
12898: #include "confdefs.h"
12899:
12900: #if HAVE_DLFCN_H
12901: #include <dlfcn.h>
12902: #endif
12903:
12904: #include <stdio.h>
12905:
12906: #ifdef RTLD_GLOBAL
12907: # define LT_DLGLOBAL RTLD_GLOBAL
12908: #else
12909: # ifdef DL_GLOBAL
12910: # define LT_DLGLOBAL DL_GLOBAL
12911: # else
12912: # define LT_DLGLOBAL 0
12913: # endif
12914: #endif
12915:
12916: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12917: find out it does not work in some platform. */
12918: #ifndef LT_DLLAZY_OR_NOW
12919: # ifdef RTLD_LAZY
12920: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12921: # else
12922: # ifdef DL_LAZY
12923: # define LT_DLLAZY_OR_NOW DL_LAZY
12924: # else
12925: # ifdef RTLD_NOW
12926: # define LT_DLLAZY_OR_NOW RTLD_NOW
12927: # else
12928: # ifdef DL_NOW
12929: # define LT_DLLAZY_OR_NOW DL_NOW
12930: # else
12931: # define LT_DLLAZY_OR_NOW 0
12932: # endif
12933: # endif
12934: # endif
12935: # endif
12936: #endif
12937:
12938: /* When -fvisbility=hidden is used, assume the code has been annotated
12939: correspondingly for the symbols needed. */
12940: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12941: int fnord () __attribute__((visibility("default")));
12942: #endif
12943:
12944: int fnord () { return 42; }
12945: int main ()
12946: {
12947: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12948: int status = $lt_dlunknown;
12949:
12950: if (self)
12951: {
12952: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12953: else
12954: {
12955: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12956: else puts (dlerror ());
12957: }
12958: /* dlclose (self); */
12959: }
12960: else
12961: puts (dlerror ());
12962:
12963: return status;
12964: }
12965: _LT_EOF
1.150 moko 12966: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 12967: (eval $ac_link) 2>&5
12968: ac_status=$?
1.150 moko 12969: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12970: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 12971: (./conftest; exit; ) >&5 2>/dev/null
12972: lt_status=$?
12973: case x$lt_status in
12974: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12975: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12976: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12977: esac
12978: else :
12979: # compilation failed
12980: lt_cv_dlopen_self=no
12981: fi
12982: fi
12983: rm -fr conftest*
12984:
12985:
12986: fi
1.150 moko 12987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12988: $as_echo "$lt_cv_dlopen_self" >&6; }
1.128 moko 12989:
12990: if test "x$lt_cv_dlopen_self" = xyes; then
12991: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.150 moko 12992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12993: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12994: if ${lt_cv_dlopen_self_static+:} false; then :
12995: $as_echo_n "(cached) " >&6
1.128 moko 12996: else
12997: if test "$cross_compiling" = yes; then :
12998: lt_cv_dlopen_self_static=cross
12999: else
13000: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13001: lt_status=$lt_dlunknown
13002: cat > conftest.$ac_ext <<_LT_EOF
13003: #line $LINENO "configure"
13004: #include "confdefs.h"
13005:
13006: #if HAVE_DLFCN_H
13007: #include <dlfcn.h>
13008: #endif
13009:
13010: #include <stdio.h>
13011:
13012: #ifdef RTLD_GLOBAL
13013: # define LT_DLGLOBAL RTLD_GLOBAL
13014: #else
13015: # ifdef DL_GLOBAL
13016: # define LT_DLGLOBAL DL_GLOBAL
13017: # else
13018: # define LT_DLGLOBAL 0
13019: # endif
13020: #endif
13021:
13022: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13023: find out it does not work in some platform. */
13024: #ifndef LT_DLLAZY_OR_NOW
13025: # ifdef RTLD_LAZY
13026: # define LT_DLLAZY_OR_NOW RTLD_LAZY
13027: # else
13028: # ifdef DL_LAZY
13029: # define LT_DLLAZY_OR_NOW DL_LAZY
13030: # else
13031: # ifdef RTLD_NOW
13032: # define LT_DLLAZY_OR_NOW RTLD_NOW
13033: # else
13034: # ifdef DL_NOW
13035: # define LT_DLLAZY_OR_NOW DL_NOW
13036: # else
13037: # define LT_DLLAZY_OR_NOW 0
13038: # endif
13039: # endif
13040: # endif
13041: # endif
13042: #endif
13043:
13044: /* When -fvisbility=hidden is used, assume the code has been annotated
13045: correspondingly for the symbols needed. */
13046: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13047: int fnord () __attribute__((visibility("default")));
13048: #endif
13049:
13050: int fnord () { return 42; }
13051: int main ()
13052: {
13053: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13054: int status = $lt_dlunknown;
13055:
13056: if (self)
13057: {
13058: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13059: else
13060: {
13061: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13062: else puts (dlerror ());
13063: }
13064: /* dlclose (self); */
13065: }
13066: else
13067: puts (dlerror ());
13068:
13069: return status;
13070: }
13071: _LT_EOF
1.150 moko 13072: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 13073: (eval $ac_link) 2>&5
13074: ac_status=$?
1.150 moko 13075: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13076: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 13077: (./conftest; exit; ) >&5 2>/dev/null
13078: lt_status=$?
13079: case x$lt_status in
13080: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13081: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13082: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13083: esac
13084: else :
13085: # compilation failed
13086: lt_cv_dlopen_self_static=no
13087: fi
13088: fi
13089: rm -fr conftest*
13090:
13091:
13092: fi
1.150 moko 13093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13094: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 13095: fi
13096:
13097: CPPFLAGS="$save_CPPFLAGS"
13098: LDFLAGS="$save_LDFLAGS"
13099: LIBS="$save_LIBS"
13100: ;;
13101: esac
13102:
13103: case $lt_cv_dlopen_self in
13104: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13105: *) enable_dlopen_self=unknown ;;
13106: esac
13107:
13108: case $lt_cv_dlopen_self_static in
13109: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13110: *) enable_dlopen_self_static=unknown ;;
13111: esac
13112: fi
13113:
13114:
13115:
13116:
13117:
13118:
13119:
13120:
13121:
13122:
13123:
13124:
13125:
13126:
13127:
13128:
13129:
13130: striplib=
13131: old_striplib=
1.150 moko 13132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13133: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.128 moko 13134: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13135: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13136: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.150 moko 13137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13138: $as_echo "yes" >&6; }
1.128 moko 13139: else
13140: # FIXME - insert some real tests, host_os isn't really good enough
13141: case $host_os in
13142: darwin*)
13143: if test -n "$STRIP" ; then
13144: striplib="$STRIP -x"
13145: old_striplib="$STRIP -S"
1.150 moko 13146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13147: $as_echo "yes" >&6; }
1.128 moko 13148: else
1.150 moko 13149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150: $as_echo "no" >&6; }
1.128 moko 13151: fi
13152: ;;
13153: *)
1.150 moko 13154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155: $as_echo "no" >&6; }
1.128 moko 13156: ;;
13157: esac
13158: fi
13159:
13160:
13161:
13162:
13163:
13164:
13165:
13166:
13167:
13168:
13169:
13170:
13171: # Report which library types will actually be built
1.150 moko 13172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13173: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13175: $as_echo "$can_build_shared" >&6; }
1.128 moko 13176:
1.150 moko 13177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13178: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.128 moko 13179: test "$can_build_shared" = "no" && enable_shared=no
13180:
13181: # On AIX, shared libraries and static libraries use the same namespace, and
13182: # are all built from PIC.
13183: case $host_os in
13184: aix3*)
13185: test "$enable_shared" = yes && enable_static=no
13186: if test -n "$RANLIB"; then
13187: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13188: postinstall_cmds='$RANLIB $lib'
13189: fi
13190: ;;
13191:
13192: aix[4-9]*)
13193: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13194: test "$enable_shared" = yes && enable_static=no
13195: fi
13196: ;;
13197: esac
1.150 moko 13198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13199: $as_echo "$enable_shared" >&6; }
1.128 moko 13200:
1.150 moko 13201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13202: $as_echo_n "checking whether to build static libraries... " >&6; }
1.128 moko 13203: # Make sure either enable_shared or enable_static is yes.
13204: test "$enable_shared" = yes || enable_static=yes
1.150 moko 13205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13206: $as_echo "$enable_static" >&6; }
1.128 moko 13207:
13208:
13209:
13210:
13211: fi
13212: ac_ext=c
13213: ac_cpp='$CPP $CPPFLAGS'
13214: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13215: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13216: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13217:
13218: CC="$lt_save_CC"
13219:
13220: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13221: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13222: (test "X$CXX" != "Xg++"))) ; then
1.150 moko 13223: ac_ext=cpp
1.128 moko 13224: ac_cpp='$CXXCPP $CPPFLAGS'
13225: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13226: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13227: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 13228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13229: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 13230: if test -z "$CXXCPP"; then
1.150 moko 13231: if ${ac_cv_prog_CXXCPP+:} false; then :
13232: $as_echo_n "(cached) " >&6
1.128 moko 13233: else
13234: # Double quotes because CXXCPP needs to be expanded
13235: for CXXCPP in "$CXX -E" "/lib/cpp"
13236: do
13237: ac_preproc_ok=false
13238: for ac_cxx_preproc_warn_flag in '' yes
13239: do
13240: # Use a header file that comes with gcc, so configuring glibc
13241: # with a fresh cross-compiler works.
13242: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13243: # <limits.h> exists even on freestanding compilers.
13244: # On the NeXT, cc -E runs the code through the compiler's parser,
13245: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13246: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13247: /* end confdefs.h. */
13248: #ifdef __STDC__
13249: # include <limits.h>
13250: #else
13251: # include <assert.h>
13252: #endif
13253: Syntax error
13254: _ACEOF
1.150 moko 13255: if ac_fn_cxx_try_cpp "$LINENO"; then :
13256:
1.128 moko 13257: else
13258: # Broken: fails on valid input.
13259: continue
13260: fi
1.150 moko 13261: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13262:
1.150 moko 13263: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13264: # can be detected and how.
1.150 moko 13265: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13266: /* end confdefs.h. */
13267: #include <ac_nonexistent.h>
13268: _ACEOF
1.150 moko 13269: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13270: # Broken: success on invalid input.
13271: continue
13272: else
13273: # Passes both tests.
13274: ac_preproc_ok=:
13275: break
13276: fi
1.150 moko 13277: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13278:
13279: done
13280: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13281: rm -f conftest.i conftest.err conftest.$ac_ext
13282: if $ac_preproc_ok; then :
1.128 moko 13283: break
13284: fi
13285:
13286: done
13287: ac_cv_prog_CXXCPP=$CXXCPP
13288:
13289: fi
13290: CXXCPP=$ac_cv_prog_CXXCPP
13291: else
13292: ac_cv_prog_CXXCPP=$CXXCPP
13293: fi
1.150 moko 13294: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13295: $as_echo "$CXXCPP" >&6; }
1.128 moko 13296: ac_preproc_ok=false
13297: for ac_cxx_preproc_warn_flag in '' yes
13298: do
13299: # Use a header file that comes with gcc, so configuring glibc
13300: # with a fresh cross-compiler works.
13301: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13302: # <limits.h> exists even on freestanding compilers.
13303: # On the NeXT, cc -E runs the code through the compiler's parser,
13304: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 13305: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13306: /* end confdefs.h. */
13307: #ifdef __STDC__
13308: # include <limits.h>
13309: #else
13310: # include <assert.h>
13311: #endif
13312: Syntax error
13313: _ACEOF
1.150 moko 13314: if ac_fn_cxx_try_cpp "$LINENO"; then :
13315:
1.128 moko 13316: else
13317: # Broken: fails on valid input.
13318: continue
13319: fi
1.150 moko 13320: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13321:
1.150 moko 13322: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 13323: # can be detected and how.
1.150 moko 13324: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13325: /* end confdefs.h. */
13326: #include <ac_nonexistent.h>
13327: _ACEOF
1.150 moko 13328: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.128 moko 13329: # Broken: success on invalid input.
13330: continue
13331: else
13332: # Passes both tests.
13333: ac_preproc_ok=:
13334: break
13335: fi
1.150 moko 13336: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 13337:
13338: done
13339: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 13340: rm -f conftest.i conftest.err conftest.$ac_ext
13341: if $ac_preproc_ok; then :
13342:
1.128 moko 13343: else
1.150 moko 13344: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13345: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13346: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13347: See \`config.log' for more details" "$LINENO" 5; }
1.128 moko 13348: fi
13349:
13350: ac_ext=c
13351: ac_cpp='$CPP $CPPFLAGS'
13352: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13353: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13354: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13355:
13356: else
13357: _lt_caught_CXX_error=yes
13358: fi
13359:
1.150 moko 13360: ac_ext=cpp
1.128 moko 13361: ac_cpp='$CXXCPP $CPPFLAGS'
13362: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13363: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13364: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13365:
13366: archive_cmds_need_lc_CXX=no
13367: allow_undefined_flag_CXX=
13368: always_export_symbols_CXX=no
13369: archive_expsym_cmds_CXX=
13370: compiler_needs_object_CXX=no
13371: export_dynamic_flag_spec_CXX=
13372: hardcode_direct_CXX=no
13373: hardcode_direct_absolute_CXX=no
13374: hardcode_libdir_flag_spec_CXX=
13375: hardcode_libdir_separator_CXX=
13376: hardcode_minus_L_CXX=no
13377: hardcode_shlibpath_var_CXX=unsupported
13378: hardcode_automatic_CXX=no
13379: inherit_rpath_CXX=no
13380: module_cmds_CXX=
13381: module_expsym_cmds_CXX=
13382: link_all_deplibs_CXX=unknown
13383: old_archive_cmds_CXX=$old_archive_cmds
13384: reload_flag_CXX=$reload_flag
13385: reload_cmds_CXX=$reload_cmds
13386: no_undefined_flag_CXX=
13387: whole_archive_flag_spec_CXX=
13388: enable_shared_with_static_runtimes_CXX=no
13389:
13390: # Source file extension for C++ test sources.
13391: ac_ext=cpp
13392:
13393: # Object file extension for compiled C++ test sources.
13394: objext=o
13395: objext_CXX=$objext
13396:
13397: # No sense in running all these tests if we already determined that
13398: # the CXX compiler isn't working. Some variables (like enable_shared)
13399: # are currently assumed to apply to all compilers on this platform,
13400: # and will be corrupted by setting them based on a non-working compiler.
13401: if test "$_lt_caught_CXX_error" != yes; then
13402: # Code to be used in simple compile tests
13403: lt_simple_compile_test_code="int some_variable = 0;"
13404:
13405: # Code to be used in simple link tests
13406: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13407:
13408: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13409:
13410:
13411:
13412:
13413:
13414:
13415: # If no C compiler was specified, use CC.
13416: LTCC=${LTCC-"$CC"}
13417:
13418: # If no C compiler flags were specified, use CFLAGS.
13419: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13420:
13421: # Allow CC to be a program name with arguments.
13422: compiler=$CC
13423:
13424:
13425: # save warnings/boilerplate of simple test code
13426: ac_outfile=conftest.$ac_objext
13427: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13428: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13429: _lt_compiler_boilerplate=`cat conftest.err`
13430: $RM conftest*
13431:
13432: ac_outfile=conftest.$ac_objext
13433: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13434: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13435: _lt_linker_boilerplate=`cat conftest.err`
13436: $RM -r conftest*
13437:
13438:
13439: # Allow CC to be a program name with arguments.
13440: lt_save_CC=$CC
13441: lt_save_CFLAGS=$CFLAGS
13442: lt_save_LD=$LD
13443: lt_save_GCC=$GCC
13444: GCC=$GXX
13445: lt_save_with_gnu_ld=$with_gnu_ld
13446: lt_save_path_LD=$lt_cv_path_LD
13447: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13448: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13449: else
13450: $as_unset lt_cv_prog_gnu_ld
13451: fi
13452: if test -n "${lt_cv_path_LDCXX+set}"; then
13453: lt_cv_path_LD=$lt_cv_path_LDCXX
13454: else
13455: $as_unset lt_cv_path_LD
13456: fi
13457: test -z "${LDCXX+set}" || LD=$LDCXX
13458: CC=${CXX-"c++"}
13459: CFLAGS=$CXXFLAGS
13460: compiler=$CC
13461: compiler_CXX=$CC
13462: for cc_temp in $compiler""; do
13463: case $cc_temp in
13464: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13465: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13466: \-*) ;;
13467: *) break;;
13468: esac
13469: done
13470: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13471:
13472:
13473: if test -n "$compiler"; then
13474: # We don't want -fno-exception when compiling C++ code, so set the
13475: # no_builtin_flag separately
13476: if test "$GXX" = yes; then
13477: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13478: else
13479: lt_prog_compiler_no_builtin_flag_CXX=
13480: fi
13481:
13482: if test "$GXX" = yes; then
13483: # Set up default GNU C++ configuration
13484:
13485:
13486:
1.150 moko 13487: # Check whether --with-gnu-ld was given.
13488: if test "${with_gnu_ld+set}" = set; then :
13489: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.128 moko 13490: else
13491: with_gnu_ld=no
1.150 moko 13492: fi
13493:
1.128 moko 13494: ac_prog=ld
13495: if test "$GCC" = yes; then
13496: # Check if gcc -print-prog-name=ld gives a path.
1.150 moko 13497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13498: $as_echo_n "checking for ld used by $CC... " >&6; }
1.128 moko 13499: case $host in
13500: *-*-mingw*)
13501: # gcc leaves a trailing carriage return which upsets mingw
13502: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13503: *)
13504: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13505: esac
13506: case $ac_prog in
13507: # Accept absolute paths.
13508: [\\/]* | ?:[\\/]*)
13509: re_direlt='/[^/][^/]*/\.\./'
13510: # Canonicalize the pathname of ld
13511: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13512: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13513: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13514: done
13515: test -z "$LD" && LD="$ac_prog"
13516: ;;
13517: "")
13518: # If it fails, then pretend we aren't using GCC.
13519: ac_prog=ld
13520: ;;
13521: *)
13522: # If it is relative, then search for the first ld in PATH.
13523: with_gnu_ld=unknown
13524: ;;
13525: esac
13526: elif test "$with_gnu_ld" = yes; then
1.150 moko 13527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13528: $as_echo_n "checking for GNU ld... " >&6; }
1.128 moko 13529: else
1.150 moko 13530: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13531: $as_echo_n "checking for non-GNU ld... " >&6; }
1.128 moko 13532: fi
1.150 moko 13533: if ${lt_cv_path_LD+:} false; then :
13534: $as_echo_n "(cached) " >&6
1.128 moko 13535: else
13536: if test -z "$LD"; then
13537: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13538: for ac_dir in $PATH; do
13539: IFS="$lt_save_ifs"
13540: test -z "$ac_dir" && ac_dir=.
13541: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13542: lt_cv_path_LD="$ac_dir/$ac_prog"
13543: # Check to see if the program is GNU ld. I'd rather use --version,
13544: # but apparently some variants of GNU ld only accept -v.
13545: # Break only if it was the GNU/non-GNU ld that we prefer.
13546: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13547: *GNU* | *'with BFD'*)
13548: test "$with_gnu_ld" != no && break
13549: ;;
13550: *)
13551: test "$with_gnu_ld" != yes && break
13552: ;;
13553: esac
13554: fi
13555: done
13556: IFS="$lt_save_ifs"
13557: else
13558: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13559: fi
13560: fi
13561:
13562: LD="$lt_cv_path_LD"
13563: if test -n "$LD"; then
1.150 moko 13564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13565: $as_echo "$LD" >&6; }
1.128 moko 13566: else
1.150 moko 13567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568: $as_echo "no" >&6; }
1.128 moko 13569: fi
1.150 moko 13570: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13572: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13573: if ${lt_cv_prog_gnu_ld+:} false; then :
13574: $as_echo_n "(cached) " >&6
1.128 moko 13575: else
13576: # I'd rather use --version here, but apparently some GNU lds only accept -v.
13577: case `$LD -v 2>&1 </dev/null` in
13578: *GNU* | *'with BFD'*)
13579: lt_cv_prog_gnu_ld=yes
13580: ;;
13581: *)
13582: lt_cv_prog_gnu_ld=no
13583: ;;
13584: esac
13585: fi
1.150 moko 13586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13587: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 13588: with_gnu_ld=$lt_cv_prog_gnu_ld
13589:
13590:
13591:
13592:
13593:
13594:
13595:
13596: # Check if GNU C++ uses GNU ld as the underlying linker, since the
13597: # archiving commands below assume that GNU ld is being used.
13598: if test "$with_gnu_ld" = yes; then
13599: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13600: 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'
13601:
13602: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13603: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13604:
13605: # If archive_cmds runs LD, not CC, wlarc should be empty
13606: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13607: # investigate it a little bit more. (MM)
13608: wlarc='${wl}'
13609:
13610: # ancient GNU ld didn't support --whole-archive et. al.
13611: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13612: $GREP 'no-whole-archive' > /dev/null; then
13613: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13614: else
13615: whole_archive_flag_spec_CXX=
13616: fi
13617: else
13618: with_gnu_ld=no
13619: wlarc=
13620:
13621: # A generic and very simple default shared library creation
13622: # command for GNU C++ for the case where it uses the native
13623: # linker, instead of GNU ld. If possible, this setting should
13624: # overridden to take advantage of the native linker features on
13625: # the platform it is being used on.
13626: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13627: fi
13628:
13629: # Commands to make compiler produce verbose output that lists
13630: # what "hidden" libraries, object files and flags are used when
13631: # linking a shared library.
13632: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13633:
13634: else
13635: GXX=no
13636: with_gnu_ld=no
13637: wlarc=
13638: fi
13639:
13640: # PORTME: fill in a description of your system's C++ link characteristics
1.150 moko 13641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13642: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 13643: ld_shlibs_CXX=yes
13644: case $host_os in
13645: aix3*)
13646: # FIXME: insert proper C++ library support
13647: ld_shlibs_CXX=no
13648: ;;
13649: aix[4-9]*)
13650: if test "$host_cpu" = ia64; then
13651: # On IA64, the linker does run time linking by default, so we don't
13652: # have to do anything special.
13653: aix_use_runtimelinking=no
13654: exp_sym_flag='-Bexport'
13655: no_entry_flag=""
13656: else
13657: aix_use_runtimelinking=no
13658:
13659: # Test if we are trying to use run time linking or normal
13660: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13661: # need to do runtime linking.
13662: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13663: for ld_flag in $LDFLAGS; do
13664: case $ld_flag in
13665: *-brtl*)
13666: aix_use_runtimelinking=yes
13667: break
13668: ;;
13669: esac
13670: done
13671: ;;
13672: esac
13673:
13674: exp_sym_flag='-bexport'
13675: no_entry_flag='-bnoentry'
13676: fi
13677:
13678: # When large executables or shared objects are built, AIX ld can
13679: # have problems creating the table of contents. If linking a library
13680: # or program results in "error TOC overflow" add -mminimal-toc to
13681: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13682: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13683:
13684: archive_cmds_CXX=''
13685: hardcode_direct_CXX=yes
13686: hardcode_direct_absolute_CXX=yes
13687: hardcode_libdir_separator_CXX=':'
13688: link_all_deplibs_CXX=yes
13689: file_list_spec_CXX='${wl}-f,'
13690:
13691: if test "$GXX" = yes; then
13692: case $host_os in aix4.[012]|aix4.[012].*)
13693: # We only want to do this on AIX 4.2 and lower, the check
13694: # below for broken collect2 doesn't work under 4.3+
13695: collect2name=`${CC} -print-prog-name=collect2`
13696: if test -f "$collect2name" &&
13697: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13698: then
13699: # We have reworked collect2
13700: :
13701: else
13702: # We have old collect2
13703: hardcode_direct_CXX=unsupported
13704: # It fails to find uninstalled libraries when the uninstalled
13705: # path is not listed in the libpath. Setting hardcode_minus_L
13706: # to unsupported forces relinking
13707: hardcode_minus_L_CXX=yes
13708: hardcode_libdir_flag_spec_CXX='-L$libdir'
13709: hardcode_libdir_separator_CXX=
13710: fi
13711: esac
13712: shared_flag='-shared'
13713: if test "$aix_use_runtimelinking" = yes; then
13714: shared_flag="$shared_flag "'${wl}-G'
13715: fi
13716: else
13717: # not using gcc
13718: if test "$host_cpu" = ia64; then
13719: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13720: # chokes on -Wl,-G. The following line is correct:
13721: shared_flag='-G'
13722: else
13723: if test "$aix_use_runtimelinking" = yes; then
13724: shared_flag='${wl}-G'
13725: else
13726: shared_flag='${wl}-bM:SRE'
13727: fi
13728: fi
13729: fi
13730:
13731: export_dynamic_flag_spec_CXX='${wl}-bexpall'
13732: # It seems that -bexpall does not export symbols beginning with
13733: # underscore (_), so it is better to generate a list of symbols to
13734: # export.
13735: always_export_symbols_CXX=yes
13736: if test "$aix_use_runtimelinking" = yes; then
13737: # Warning - without using the other runtime loading flags (-brtl),
13738: # -berok will link without error, but may produce a broken library.
13739: allow_undefined_flag_CXX='-berok'
13740: # Determine the default libpath from the value encoded in an empty
13741: # executable.
13742: if test "${lt_cv_aix_libpath+set}" = set; then
13743: aix_libpath=$lt_cv_aix_libpath
13744: else
1.150 moko 13745: if ${lt_cv_aix_libpath__CXX+:} false; then :
13746: $as_echo_n "(cached) " >&6
1.128 moko 13747: else
1.150 moko 13748: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13749: /* end confdefs.h. */
13750:
13751: int
13752: main ()
13753: {
13754:
13755: ;
13756: return 0;
13757: }
13758: _ACEOF
1.150 moko 13759: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13760:
13761: lt_aix_libpath_sed='
13762: /Import File Strings/,/^$/ {
13763: /^0/ {
13764: s/^0 *\([^ ]*\) *$/\1/
13765: p
13766: }
13767: }'
13768: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13769: # Check for a 64-bit object if we didn't find anything.
13770: if test -z "$lt_cv_aix_libpath__CXX"; then
13771: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13772: fi
13773: fi
1.150 moko 13774: rm -f core conftest.err conftest.$ac_objext \
13775: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13776: if test -z "$lt_cv_aix_libpath__CXX"; then
13777: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13778: fi
13779:
13780: fi
13781:
13782: aix_libpath=$lt_cv_aix_libpath__CXX
13783: fi
13784:
13785: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13786:
13787: 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"
13788: else
13789: if test "$host_cpu" = ia64; then
13790: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13791: allow_undefined_flag_CXX="-z nodefs"
13792: 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"
13793: else
13794: # Determine the default libpath from the value encoded in an
13795: # empty executable.
13796: if test "${lt_cv_aix_libpath+set}" = set; then
13797: aix_libpath=$lt_cv_aix_libpath
13798: else
1.150 moko 13799: if ${lt_cv_aix_libpath__CXX+:} false; then :
13800: $as_echo_n "(cached) " >&6
1.128 moko 13801: else
1.150 moko 13802: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13803: /* end confdefs.h. */
13804:
13805: int
13806: main ()
13807: {
13808:
13809: ;
13810: return 0;
13811: }
13812: _ACEOF
1.150 moko 13813: if ac_fn_cxx_try_link "$LINENO"; then :
1.128 moko 13814:
13815: lt_aix_libpath_sed='
13816: /Import File Strings/,/^$/ {
13817: /^0/ {
13818: s/^0 *\([^ ]*\) *$/\1/
13819: p
13820: }
13821: }'
13822: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13823: # Check for a 64-bit object if we didn't find anything.
13824: if test -z "$lt_cv_aix_libpath__CXX"; then
13825: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13826: fi
13827: fi
1.150 moko 13828: rm -f core conftest.err conftest.$ac_objext \
13829: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13830: if test -z "$lt_cv_aix_libpath__CXX"; then
13831: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13832: fi
13833:
13834: fi
13835:
13836: aix_libpath=$lt_cv_aix_libpath__CXX
13837: fi
13838:
13839: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13840: # Warning - without using the other run time loading flags,
13841: # -berok will link without error, but may produce a broken library.
13842: no_undefined_flag_CXX=' ${wl}-bernotok'
13843: allow_undefined_flag_CXX=' ${wl}-berok'
13844: if test "$with_gnu_ld" = yes; then
13845: # We only use this code for GNU lds that support --whole-archive.
13846: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13847: else
13848: # Exported symbols can be pulled into shared objects from archives
13849: whole_archive_flag_spec_CXX='$convenience'
13850: fi
13851: archive_cmds_need_lc_CXX=yes
13852: # This is similar to how AIX traditionally builds its shared
13853: # libraries.
13854: 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'
13855: fi
13856: fi
13857: ;;
13858:
13859: beos*)
13860: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13861: allow_undefined_flag_CXX=unsupported
13862: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13863: # support --undefined. This deserves some investigation. FIXME
13864: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13865: else
13866: ld_shlibs_CXX=no
13867: fi
13868: ;;
13869:
13870: chorus*)
13871: case $cc_basename in
13872: *)
13873: # FIXME: insert proper C++ library support
13874: ld_shlibs_CXX=no
13875: ;;
13876: esac
13877: ;;
13878:
13879: cygwin* | mingw* | pw32* | cegcc*)
13880: case $GXX,$cc_basename in
13881: ,cl* | no,cl*)
13882: # Native MSVC
13883: # hardcode_libdir_flag_spec is actually meaningless, as there is
13884: # no search path for DLLs.
13885: hardcode_libdir_flag_spec_CXX=' '
13886: allow_undefined_flag_CXX=unsupported
13887: always_export_symbols_CXX=yes
13888: file_list_spec_CXX='@'
13889: # Tell ltmain to make .lib files, not .a files.
13890: libext=lib
13891: # Tell ltmain to make .dll files, not .so files.
13892: shrext_cmds=".dll"
13893: # FIXME: Setting linknames here is a bad hack.
13894: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13895: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13896: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13897: else
13898: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13899: fi~
13900: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13901: linknames='
13902: # The linker will not automatically build a static lib if we build a DLL.
13903: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13904: enable_shared_with_static_runtimes_CXX=yes
13905: # Don't use ranlib
13906: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13907: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13908: lt_tool_outputfile="@TOOL_OUTPUT@"~
13909: case $lt_outputfile in
13910: *.exe|*.EXE) ;;
13911: *)
13912: lt_outputfile="$lt_outputfile.exe"
13913: lt_tool_outputfile="$lt_tool_outputfile.exe"
13914: ;;
13915: esac~
13916: func_to_tool_file "$lt_outputfile"~
13917: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13918: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13919: $RM "$lt_outputfile.manifest";
13920: fi'
13921: ;;
13922: *)
13923: # g++
13924: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13925: # as there is no search path for DLLs.
13926: hardcode_libdir_flag_spec_CXX='-L$libdir'
13927: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13928: allow_undefined_flag_CXX=unsupported
13929: always_export_symbols_CXX=no
13930: enable_shared_with_static_runtimes_CXX=yes
13931:
13932: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13933: 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'
13934: # If the export-symbols file already is a .def file (1st line
13935: # is EXPORTS), use it as is; otherwise, prepend...
13936: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13937: cp $export_symbols $output_objdir/$soname.def;
13938: else
13939: echo EXPORTS > $output_objdir/$soname.def;
13940: cat $export_symbols >> $output_objdir/$soname.def;
13941: fi~
13942: $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'
13943: else
13944: ld_shlibs_CXX=no
13945: fi
13946: ;;
13947: esac
13948: ;;
13949: darwin* | rhapsody*)
13950:
13951:
13952: archive_cmds_need_lc_CXX=no
13953: hardcode_direct_CXX=no
13954: hardcode_automatic_CXX=yes
13955: hardcode_shlibpath_var_CXX=unsupported
13956: if test "$lt_cv_ld_force_load" = "yes"; then
13957: 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\"`'
13958:
13959: else
13960: whole_archive_flag_spec_CXX=''
13961: fi
13962: link_all_deplibs_CXX=yes
13963: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13964: case $cc_basename in
13965: ifort*) _lt_dar_can_shared=yes ;;
13966: *) _lt_dar_can_shared=$GCC ;;
13967: esac
13968: if test "$_lt_dar_can_shared" = "yes"; then
13969: output_verbose_link_cmd=func_echo_all
13970: 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}"
13971: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13972: 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}"
13973: 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}"
13974: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13975: 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}"
13976: 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}"
13977: fi
13978:
13979: else
13980: ld_shlibs_CXX=no
13981: fi
13982:
13983: ;;
13984:
13985: dgux*)
13986: case $cc_basename in
13987: ec++*)
13988: # FIXME: insert proper C++ library support
13989: ld_shlibs_CXX=no
13990: ;;
13991: ghcx*)
13992: # Green Hills C++ Compiler
13993: # FIXME: insert proper C++ library support
13994: ld_shlibs_CXX=no
13995: ;;
13996: *)
13997: # FIXME: insert proper C++ library support
13998: ld_shlibs_CXX=no
13999: ;;
14000: esac
14001: ;;
14002:
14003: freebsd2.*)
14004: # C++ shared libraries reported to be fairly broken before
14005: # switch to ELF
14006: ld_shlibs_CXX=no
14007: ;;
14008:
14009: freebsd-elf*)
14010: archive_cmds_need_lc_CXX=no
14011: ;;
14012:
14013: freebsd* | dragonfly*)
14014: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14015: # conventions
14016: ld_shlibs_CXX=yes
14017: ;;
14018:
14019: gnu*)
14020: ;;
14021:
14022: haiku*)
14023: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14024: link_all_deplibs_CXX=yes
14025: ;;
14026:
14027: hpux9*)
14028: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14029: hardcode_libdir_separator_CXX=:
14030: export_dynamic_flag_spec_CXX='${wl}-E'
14031: hardcode_direct_CXX=yes
14032: hardcode_minus_L_CXX=yes # Not in the search PATH,
14033: # but as the default
14034: # location of the library.
14035:
14036: case $cc_basename in
14037: CC*)
14038: # FIXME: insert proper C++ library support
14039: ld_shlibs_CXX=no
14040: ;;
14041: aCC*)
14042: 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'
14043: # Commands to make compiler produce verbose output that lists
14044: # what "hidden" libraries, object files and flags are used when
14045: # linking a shared library.
14046: #
14047: # There doesn't appear to be a way to prevent this compiler from
14048: # explicitly linking system object files so we need to strip them
14049: # from the output so that they don't get included in the library
14050: # dependencies.
14051: 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"'
14052: ;;
14053: *)
14054: if test "$GXX" = yes; then
14055: 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'
14056: else
14057: # FIXME: insert proper C++ library support
14058: ld_shlibs_CXX=no
14059: fi
14060: ;;
14061: esac
14062: ;;
14063:
14064: hpux10*|hpux11*)
14065: if test $with_gnu_ld = no; then
14066: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14067: hardcode_libdir_separator_CXX=:
14068:
14069: case $host_cpu in
14070: hppa*64*|ia64*)
14071: ;;
14072: *)
14073: export_dynamic_flag_spec_CXX='${wl}-E'
14074: ;;
14075: esac
14076: fi
14077: case $host_cpu in
14078: hppa*64*|ia64*)
14079: hardcode_direct_CXX=no
14080: hardcode_shlibpath_var_CXX=no
14081: ;;
14082: *)
14083: hardcode_direct_CXX=yes
14084: hardcode_direct_absolute_CXX=yes
14085: hardcode_minus_L_CXX=yes # Not in the search PATH,
14086: # but as the default
14087: # location of the library.
14088: ;;
14089: esac
14090:
14091: case $cc_basename in
14092: CC*)
14093: # FIXME: insert proper C++ library support
14094: ld_shlibs_CXX=no
14095: ;;
14096: aCC*)
14097: case $host_cpu in
14098: hppa*64*)
14099: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14100: ;;
14101: ia64*)
14102: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14103: ;;
14104: *)
14105: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14106: ;;
14107: esac
14108: # Commands to make compiler produce verbose output that lists
14109: # what "hidden" libraries, object files and flags are used when
14110: # linking a shared library.
14111: #
14112: # There doesn't appear to be a way to prevent this compiler from
14113: # explicitly linking system object files so we need to strip them
14114: # from the output so that they don't get included in the library
14115: # dependencies.
14116: 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"'
14117: ;;
14118: *)
14119: if test "$GXX" = yes; then
14120: if test $with_gnu_ld = no; then
14121: case $host_cpu in
14122: hppa*64*)
14123: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14124: ;;
14125: ia64*)
14126: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14127: ;;
14128: *)
14129: 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'
14130: ;;
14131: esac
14132: fi
14133: else
14134: # FIXME: insert proper C++ library support
14135: ld_shlibs_CXX=no
14136: fi
14137: ;;
14138: esac
14139: ;;
14140:
14141: interix[3-9]*)
14142: hardcode_direct_CXX=no
14143: hardcode_shlibpath_var_CXX=no
14144: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14145: export_dynamic_flag_spec_CXX='${wl}-E'
14146: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14147: # Instead, shared libraries are loaded at an image base (0x10000000 by
14148: # default) and relocated if they conflict, which is a slow very memory
14149: # consuming and fragmenting process. To avoid this, we pick a random,
14150: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14151: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14152: 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'
14153: 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'
14154: ;;
14155: irix5* | irix6*)
14156: case $cc_basename in
14157: CC*)
14158: # SGI C++
14159: 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'
14160:
14161: # Archives containing C++ object files must be created using
14162: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14163: # necessary to make sure instantiated templates are included
14164: # in the archive.
14165: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14166: ;;
14167: *)
14168: if test "$GXX" = yes; then
14169: if test "$with_gnu_ld" = no; then
14170: 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'
14171: else
14172: 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'
14173: fi
14174: fi
14175: link_all_deplibs_CXX=yes
14176: ;;
14177: esac
14178: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14179: hardcode_libdir_separator_CXX=:
14180: inherit_rpath_CXX=yes
14181: ;;
14182:
14183: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14184: case $cc_basename in
14185: KCC*)
14186: # Kuck and Associates, Inc. (KAI) C++ Compiler
14187:
14188: # KCC will only create a shared library if the output file
14189: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14190: # to its proper name (with version) after linking.
14191: 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'
14192: 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'
14193: # Commands to make compiler produce verbose output that lists
14194: # what "hidden" libraries, object files and flags are used when
14195: # linking a shared library.
14196: #
14197: # There doesn't appear to be a way to prevent this compiler from
14198: # explicitly linking system object files so we need to strip them
14199: # from the output so that they don't get included in the library
14200: # dependencies.
14201: 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"'
14202:
14203: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14204: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14205:
14206: # Archives containing C++ object files must be created using
14207: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14208: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14209: ;;
14210: icpc* | ecpc* )
14211: # Intel C++
14212: with_gnu_ld=yes
14213: # version 8.0 and above of icpc choke on multiply defined symbols
14214: # if we add $predep_objects and $postdep_objects, however 7.1 and
14215: # earlier do not add the objects themselves.
14216: case `$CC -V 2>&1` in
14217: *"Version 7."*)
14218: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14219: 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'
14220: ;;
14221: *) # Version 8.0 or newer
14222: tmp_idyn=
14223: case $host_cpu in
14224: ia64*) tmp_idyn=' -i_dynamic';;
14225: esac
14226: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227: 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'
14228: ;;
14229: esac
14230: archive_cmds_need_lc_CXX=no
14231: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14232: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14233: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14234: ;;
14235: pgCC* | pgcpp*)
14236: # Portland Group C++ compiler
14237: case `$CC -V` in
14238: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14239: prelink_cmds_CXX='tpldir=Template.dir~
14240: rm -rf $tpldir~
14241: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14242: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14243: old_archive_cmds_CXX='tpldir=Template.dir~
14244: rm -rf $tpldir~
14245: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14246: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14247: $RANLIB $oldlib'
14248: archive_cmds_CXX='tpldir=Template.dir~
14249: rm -rf $tpldir~
14250: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14251: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14252: archive_expsym_cmds_CXX='tpldir=Template.dir~
14253: rm -rf $tpldir~
14254: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14255: $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'
14256: ;;
14257: *) # Version 6 and above use weak symbols
14258: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14259: 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'
14260: ;;
14261: esac
14262:
14263: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14264: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14265: 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'
14266: ;;
14267: cxx*)
14268: # Compaq C++
14269: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14270: 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'
14271:
14272: runpath_var=LD_RUN_PATH
14273: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14274: hardcode_libdir_separator_CXX=:
14275:
14276: # Commands to make compiler produce verbose output that lists
14277: # what "hidden" libraries, object files and flags are used when
14278: # linking a shared library.
14279: #
14280: # There doesn't appear to be a way to prevent this compiler from
14281: # explicitly linking system object files so we need to strip them
14282: # from the output so that they don't get included in the library
14283: # dependencies.
14284: 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'
14285: ;;
14286: xl* | mpixl* | bgxl*)
14287: # IBM XL 8.0 on PPC, with GNU ld
14288: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14289: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14290: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14291: if test "x$supports_anon_versioning" = xyes; then
14292: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14293: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14294: echo "local: *; };" >> $output_objdir/$libname.ver~
14295: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14296: fi
14297: ;;
14298: *)
14299: case `$CC -V 2>&1 | sed 5q` in
14300: *Sun\ C*)
14301: # Sun C++ 5.9
14302: no_undefined_flag_CXX=' -zdefs'
14303: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14304: 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'
14305: hardcode_libdir_flag_spec_CXX='-R$libdir'
14306: 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'
14307: compiler_needs_object_CXX=yes
14308:
14309: # Not sure whether something based on
14310: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14311: # would be better.
14312: output_verbose_link_cmd='func_echo_all'
14313:
14314: # Archives containing C++ object files must be created using
14315: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14316: # necessary to make sure instantiated templates are included
14317: # in the archive.
14318: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14319: ;;
14320: esac
14321: ;;
14322: esac
14323: ;;
14324:
14325: lynxos*)
14326: # FIXME: insert proper C++ library support
14327: ld_shlibs_CXX=no
14328: ;;
14329:
14330: m88k*)
14331: # FIXME: insert proper C++ library support
14332: ld_shlibs_CXX=no
14333: ;;
14334:
14335: mvs*)
14336: case $cc_basename in
14337: cxx*)
14338: # FIXME: insert proper C++ library support
14339: ld_shlibs_CXX=no
14340: ;;
14341: *)
14342: # FIXME: insert proper C++ library support
14343: ld_shlibs_CXX=no
14344: ;;
14345: esac
14346: ;;
14347:
14348: netbsd*)
14349: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14350: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14351: wlarc=
14352: hardcode_libdir_flag_spec_CXX='-R$libdir'
14353: hardcode_direct_CXX=yes
14354: hardcode_shlibpath_var_CXX=no
14355: fi
14356: # Workaround some broken pre-1.5 toolchains
14357: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14358: ;;
14359:
14360: *nto* | *qnx*)
14361: ld_shlibs_CXX=yes
14362: ;;
14363:
14364: openbsd2*)
14365: # C++ shared libraries are fairly broken
14366: ld_shlibs_CXX=no
14367: ;;
14368:
14369: openbsd*)
14370: if test -f /usr/libexec/ld.so; then
14371: hardcode_direct_CXX=yes
14372: hardcode_shlibpath_var_CXX=no
14373: hardcode_direct_absolute_CXX=yes
14374: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14375: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14376: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14377: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14378: export_dynamic_flag_spec_CXX='${wl}-E'
14379: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14380: fi
14381: output_verbose_link_cmd=func_echo_all
14382: else
14383: ld_shlibs_CXX=no
14384: fi
14385: ;;
14386:
14387: osf3* | osf4* | osf5*)
14388: case $cc_basename in
14389: KCC*)
14390: # Kuck and Associates, Inc. (KAI) C++ Compiler
14391:
14392: # KCC will only create a shared library if the output file
14393: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14394: # to its proper name (with version) after linking.
14395: 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'
14396:
14397: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14398: hardcode_libdir_separator_CXX=:
14399:
14400: # Archives containing C++ object files must be created using
14401: # the KAI C++ compiler.
14402: case $host in
14403: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14404: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14405: esac
14406: ;;
14407: RCC*)
14408: # Rational C++ 2.4.1
14409: # FIXME: insert proper C++ library support
14410: ld_shlibs_CXX=no
14411: ;;
14412: cxx*)
14413: case $host in
14414: osf3*)
14415: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14416: 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'
14417: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14418: ;;
14419: *)
14420: allow_undefined_flag_CXX=' -expect_unresolved \*'
14421: 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'
14422: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14423: echo "-hidden">> $lib.exp~
14424: $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~
14425: $RM $lib.exp'
14426: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14427: ;;
14428: esac
14429:
14430: hardcode_libdir_separator_CXX=:
14431:
14432: # Commands to make compiler produce verbose output that lists
14433: # what "hidden" libraries, object files and flags are used when
14434: # linking a shared library.
14435: #
14436: # There doesn't appear to be a way to prevent this compiler from
14437: # explicitly linking system object files so we need to strip them
14438: # from the output so that they don't get included in the library
14439: # dependencies.
14440: 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"'
14441: ;;
14442: *)
14443: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14444: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14445: case $host in
14446: osf3*)
14447: 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'
14448: ;;
14449: *)
14450: 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'
14451: ;;
14452: esac
14453:
14454: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14455: hardcode_libdir_separator_CXX=:
14456:
14457: # Commands to make compiler produce verbose output that lists
14458: # what "hidden" libraries, object files and flags are used when
14459: # linking a shared library.
14460: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14461:
14462: else
14463: # FIXME: insert proper C++ library support
14464: ld_shlibs_CXX=no
14465: fi
14466: ;;
14467: esac
14468: ;;
14469:
14470: psos*)
14471: # FIXME: insert proper C++ library support
14472: ld_shlibs_CXX=no
14473: ;;
14474:
14475: sunos4*)
14476: case $cc_basename in
14477: CC*)
14478: # Sun C++ 4.x
14479: # FIXME: insert proper C++ library support
14480: ld_shlibs_CXX=no
14481: ;;
14482: lcc*)
14483: # Lucid
14484: # FIXME: insert proper C++ library support
14485: ld_shlibs_CXX=no
14486: ;;
14487: *)
14488: # FIXME: insert proper C++ library support
14489: ld_shlibs_CXX=no
14490: ;;
14491: esac
14492: ;;
14493:
14494: solaris*)
14495: case $cc_basename in
14496: CC* | sunCC*)
14497: # Sun C++ 4.2, 5.x and Centerline C++
14498: archive_cmds_need_lc_CXX=yes
14499: no_undefined_flag_CXX=' -zdefs'
14500: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14501: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14502: $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'
14503:
14504: hardcode_libdir_flag_spec_CXX='-R$libdir'
14505: hardcode_shlibpath_var_CXX=no
14506: case $host_os in
14507: solaris2.[0-5] | solaris2.[0-5].*) ;;
14508: *)
14509: # The compiler driver will combine and reorder linker options,
14510: # but understands `-z linker_flag'.
14511: # Supported since Solaris 2.6 (maybe 2.5.1?)
14512: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14513: ;;
14514: esac
14515: link_all_deplibs_CXX=yes
14516:
14517: output_verbose_link_cmd='func_echo_all'
14518:
14519: # Archives containing C++ object files must be created using
14520: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14521: # necessary to make sure instantiated templates are included
14522: # in the archive.
14523: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14524: ;;
14525: gcx*)
14526: # Green Hills C++ Compiler
14527: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14528:
14529: # The C++ compiler must be used to create the archive.
14530: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14531: ;;
14532: *)
14533: # GNU C++ compiler with Solaris linker
14534: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14535: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14536: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14537: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14538: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14539: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14540:
14541: # Commands to make compiler produce verbose output that lists
14542: # what "hidden" libraries, object files and flags are used when
14543: # linking a shared library.
14544: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14545: else
14546: # g++ 2.7 appears to require `-G' NOT `-shared' on this
14547: # platform.
14548: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14549: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14550: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14551:
14552: # Commands to make compiler produce verbose output that lists
14553: # what "hidden" libraries, object files and flags are used when
14554: # linking a shared library.
14555: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14556: fi
14557:
14558: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14559: case $host_os in
14560: solaris2.[0-5] | solaris2.[0-5].*) ;;
14561: *)
14562: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14563: ;;
14564: esac
14565: fi
14566: ;;
14567: esac
14568: ;;
14569:
14570: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14571: no_undefined_flag_CXX='${wl}-z,text'
14572: archive_cmds_need_lc_CXX=no
14573: hardcode_shlibpath_var_CXX=no
14574: runpath_var='LD_RUN_PATH'
14575:
14576: case $cc_basename in
14577: CC*)
14578: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14579: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14580: ;;
14581: *)
14582: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14583: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14584: ;;
14585: esac
14586: ;;
14587:
14588: sysv5* | sco3.2v5* | sco5v6*)
14589: # Note: We can NOT use -z defs as we might desire, because we do not
14590: # link with -lc, and that would cause any symbols used from libc to
14591: # always be unresolved, which means just about no library would
14592: # ever link correctly. If we're not using GNU ld we use -z text
14593: # though, which does catch some bad symbols but isn't as heavy-handed
14594: # as -z defs.
14595: no_undefined_flag_CXX='${wl}-z,text'
14596: allow_undefined_flag_CXX='${wl}-z,nodefs'
14597: archive_cmds_need_lc_CXX=no
14598: hardcode_shlibpath_var_CXX=no
14599: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14600: hardcode_libdir_separator_CXX=':'
14601: link_all_deplibs_CXX=yes
14602: export_dynamic_flag_spec_CXX='${wl}-Bexport'
14603: runpath_var='LD_RUN_PATH'
14604:
14605: case $cc_basename in
14606: CC*)
14607: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14608: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14609: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14610: '"$old_archive_cmds_CXX"
14611: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14612: '"$reload_cmds_CXX"
14613: ;;
14614: *)
14615: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14616: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14617: ;;
14618: esac
14619: ;;
14620:
14621: tandem*)
14622: case $cc_basename in
14623: NCC*)
14624: # NonStop-UX NCC 3.20
14625: # FIXME: insert proper C++ library support
14626: ld_shlibs_CXX=no
14627: ;;
14628: *)
14629: # FIXME: insert proper C++ library support
14630: ld_shlibs_CXX=no
14631: ;;
14632: esac
14633: ;;
14634:
14635: vxworks*)
14636: # FIXME: insert proper C++ library support
14637: ld_shlibs_CXX=no
14638: ;;
14639:
14640: *)
14641: # FIXME: insert proper C++ library support
14642: ld_shlibs_CXX=no
14643: ;;
14644: esac
14645:
1.150 moko 14646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14647: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 14648: test "$ld_shlibs_CXX" = no && can_build_shared=no
14649:
14650: GCC_CXX="$GXX"
14651: LD_CXX="$LD"
14652:
14653: ## CAVEAT EMPTOR:
14654: ## There is no encapsulation within the following macros, do not change
14655: ## the running order or otherwise move them around unless you know exactly
14656: ## what you are doing...
14657: # Dependencies to place before and after the object being linked:
14658: predep_objects_CXX=
14659: postdep_objects_CXX=
14660: predeps_CXX=
14661: postdeps_CXX=
14662: compiler_lib_search_path_CXX=
14663:
14664: cat > conftest.$ac_ext <<_LT_EOF
14665: class Foo
14666: {
14667: public:
14668: Foo (void) { a = 0; }
14669: private:
14670: int a;
14671: };
14672: _LT_EOF
14673:
14674:
14675: _lt_libdeps_save_CFLAGS=$CFLAGS
14676: case "$CC $CFLAGS " in #(
14677: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14678: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14679: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14680: esac
14681:
1.150 moko 14682: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 14683: (eval $ac_compile) 2>&5
14684: ac_status=$?
1.150 moko 14685: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14686: test $ac_status = 0; }; then
1.128 moko 14687: # Parse the compiler output and extract the necessary
14688: # objects, libraries and library flags.
14689:
14690: # Sentinel used to keep track of whether or not we are before
14691: # the conftest object file.
14692: pre_test_object_deps_done=no
14693:
14694: for p in `eval "$output_verbose_link_cmd"`; do
14695: case ${prev}${p} in
14696:
14697: -L* | -R* | -l*)
14698: # Some compilers place space between "-{L,R}" and the path.
14699: # Remove the space.
14700: if test $p = "-L" ||
14701: test $p = "-R"; then
14702: prev=$p
14703: continue
14704: fi
14705:
14706: # Expand the sysroot to ease extracting the directories later.
14707: if test -z "$prev"; then
14708: case $p in
14709: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14710: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14711: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14712: esac
14713: fi
14714: case $p in
14715: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14716: esac
14717: if test "$pre_test_object_deps_done" = no; then
14718: case ${prev} in
14719: -L | -R)
14720: # Internal compiler library paths should come after those
14721: # provided the user. The postdeps already come after the
14722: # user supplied libs so there is no need to process them.
14723: if test -z "$compiler_lib_search_path_CXX"; then
14724: compiler_lib_search_path_CXX="${prev}${p}"
14725: else
14726: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14727: fi
14728: ;;
14729: # The "-l" case would never come before the object being
14730: # linked, so don't bother handling this case.
14731: esac
14732: else
14733: if test -z "$postdeps_CXX"; then
14734: postdeps_CXX="${prev}${p}"
14735: else
14736: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14737: fi
14738: fi
14739: prev=
14740: ;;
14741:
14742: *.lto.$objext) ;; # Ignore GCC LTO objects
14743: *.$objext)
14744: # This assumes that the test object file only shows up
14745: # once in the compiler output.
14746: if test "$p" = "conftest.$objext"; then
14747: pre_test_object_deps_done=yes
14748: continue
14749: fi
14750:
14751: if test "$pre_test_object_deps_done" = no; then
14752: if test -z "$predep_objects_CXX"; then
14753: predep_objects_CXX="$p"
14754: else
14755: predep_objects_CXX="$predep_objects_CXX $p"
14756: fi
14757: else
14758: if test -z "$postdep_objects_CXX"; then
14759: postdep_objects_CXX="$p"
14760: else
14761: postdep_objects_CXX="$postdep_objects_CXX $p"
14762: fi
14763: fi
14764: ;;
14765:
14766: *) ;; # Ignore the rest.
14767:
14768: esac
14769: done
14770:
14771: # Clean up.
14772: rm -f a.out a.exe
14773: else
14774: echo "libtool.m4: error: problem compiling CXX test program"
14775: fi
14776:
14777: $RM -f confest.$objext
14778: CFLAGS=$_lt_libdeps_save_CFLAGS
14779:
14780: # PORTME: override above test on systems where it is broken
14781: case $host_os in
14782: interix[3-9]*)
14783: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14784: # hack all around it, let's just trust "g++" to DTRT.
14785: predep_objects_CXX=
14786: postdep_objects_CXX=
14787: postdeps_CXX=
14788: ;;
14789:
14790: linux*)
14791: case `$CC -V 2>&1 | sed 5q` in
14792: *Sun\ C*)
14793: # Sun C++ 5.9
14794:
14795: # The more standards-conforming stlport4 library is
14796: # incompatible with the Cstd library. Avoid specifying
14797: # it if it's in CXXFLAGS. Ignore libCrun as
14798: # -library=stlport4 depends on it.
14799: case " $CXX $CXXFLAGS " in
14800: *" -library=stlport4 "*)
14801: solaris_use_stlport4=yes
14802: ;;
14803: esac
14804:
14805: if test "$solaris_use_stlport4" != yes; then
14806: postdeps_CXX='-library=Cstd -library=Crun'
14807: fi
14808: ;;
14809: esac
14810: ;;
14811:
14812: solaris*)
14813: case $cc_basename in
14814: CC* | sunCC*)
14815: # The more standards-conforming stlport4 library is
14816: # incompatible with the Cstd library. Avoid specifying
14817: # it if it's in CXXFLAGS. Ignore libCrun as
14818: # -library=stlport4 depends on it.
14819: case " $CXX $CXXFLAGS " in
14820: *" -library=stlport4 "*)
14821: solaris_use_stlport4=yes
14822: ;;
14823: esac
14824:
14825: # Adding this requires a known-good setup of shared libraries for
14826: # Sun compiler versions before 5.6, else PIC objects from an old
14827: # archive will be linked into the output, leading to subtle bugs.
14828: if test "$solaris_use_stlport4" != yes; then
14829: postdeps_CXX='-library=Cstd -library=Crun'
14830: fi
14831: ;;
14832: esac
14833: ;;
14834: esac
14835:
14836:
14837: case " $postdeps_CXX " in
14838: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14839: esac
14840: compiler_lib_search_dirs_CXX=
14841: if test -n "${compiler_lib_search_path_CXX}"; then
14842: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14843: fi
14844:
14845:
14846:
14847:
14848:
14849:
14850:
14851:
14852:
14853:
14854:
14855:
14856:
14857:
14858:
14859:
14860:
14861:
14862:
14863:
14864:
14865:
14866:
14867:
14868:
14869:
14870:
14871:
14872:
14873:
14874:
14875: lt_prog_compiler_wl_CXX=
14876: lt_prog_compiler_pic_CXX=
14877: lt_prog_compiler_static_CXX=
14878:
14879:
14880: # C++ specific cases for pic, static, wl, etc.
14881: if test "$GXX" = yes; then
14882: lt_prog_compiler_wl_CXX='-Wl,'
14883: lt_prog_compiler_static_CXX='-static'
14884:
14885: case $host_os in
14886: aix*)
14887: # All AIX code is PIC.
14888: if test "$host_cpu" = ia64; then
14889: # AIX 5 now supports IA64 processor
14890: lt_prog_compiler_static_CXX='-Bstatic'
14891: fi
14892: ;;
14893:
14894: amigaos*)
14895: case $host_cpu in
14896: powerpc)
14897: # see comment about AmigaOS4 .so support
14898: lt_prog_compiler_pic_CXX='-fPIC'
14899: ;;
14900: m68k)
14901: # FIXME: we need at least 68020 code to build shared libraries, but
14902: # adding the `-m68020' flag to GCC prevents building anything better,
14903: # like `-m68040'.
14904: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14905: ;;
14906: esac
14907: ;;
14908:
14909: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14910: # PIC is the default for these OSes.
14911: ;;
14912: mingw* | cygwin* | os2* | pw32* | cegcc*)
14913: # This hack is so that the source file can tell whether it is being
14914: # built for inclusion in a dll (and should export symbols for example).
14915: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14916: # (--disable-auto-import) libraries
14917: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14918: ;;
14919: darwin* | rhapsody*)
14920: # PIC is the default on this platform
14921: # Common symbols not allowed in MH_DYLIB files
14922: lt_prog_compiler_pic_CXX='-fno-common'
14923: ;;
14924: *djgpp*)
14925: # DJGPP does not support shared libraries at all
14926: lt_prog_compiler_pic_CXX=
14927: ;;
14928: haiku*)
14929: # PIC is the default for Haiku.
14930: # The "-static" flag exists, but is broken.
14931: lt_prog_compiler_static_CXX=
14932: ;;
14933: interix[3-9]*)
14934: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14935: # Instead, we relocate shared libraries at runtime.
14936: ;;
14937: sysv4*MP*)
14938: if test -d /usr/nec; then
14939: lt_prog_compiler_pic_CXX=-Kconform_pic
14940: fi
14941: ;;
14942: hpux*)
14943: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14944: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14945: # sets the default TLS model and affects inlining.
14946: case $host_cpu in
14947: hppa*64*)
14948: ;;
14949: *)
14950: lt_prog_compiler_pic_CXX='-fPIC'
14951: ;;
14952: esac
14953: ;;
14954: *qnx* | *nto*)
14955: # QNX uses GNU C++, but need to define -shared option too, otherwise
14956: # it will coredump.
14957: lt_prog_compiler_pic_CXX='-fPIC -shared'
14958: ;;
14959: *)
14960: lt_prog_compiler_pic_CXX='-fPIC'
14961: ;;
14962: esac
14963: else
14964: case $host_os in
14965: aix[4-9]*)
14966: # All AIX code is PIC.
14967: if test "$host_cpu" = ia64; then
14968: # AIX 5 now supports IA64 processor
14969: lt_prog_compiler_static_CXX='-Bstatic'
14970: else
14971: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14972: fi
14973: ;;
14974: chorus*)
14975: case $cc_basename in
14976: cxch68*)
14977: # Green Hills C++ Compiler
14978: # _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"
14979: ;;
14980: esac
14981: ;;
14982: mingw* | cygwin* | os2* | pw32* | cegcc*)
14983: # This hack is so that the source file can tell whether it is being
14984: # built for inclusion in a dll (and should export symbols for example).
14985: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14986: ;;
14987: dgux*)
14988: case $cc_basename in
14989: ec++*)
14990: lt_prog_compiler_pic_CXX='-KPIC'
14991: ;;
14992: ghcx*)
14993: # Green Hills C++ Compiler
14994: lt_prog_compiler_pic_CXX='-pic'
14995: ;;
14996: *)
14997: ;;
14998: esac
14999: ;;
15000: freebsd* | dragonfly*)
15001: # FreeBSD uses GNU C++
15002: ;;
15003: hpux9* | hpux10* | hpux11*)
15004: case $cc_basename in
15005: CC*)
15006: lt_prog_compiler_wl_CXX='-Wl,'
15007: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15008: if test "$host_cpu" != ia64; then
15009: lt_prog_compiler_pic_CXX='+Z'
15010: fi
15011: ;;
15012: aCC*)
15013: lt_prog_compiler_wl_CXX='-Wl,'
15014: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15015: case $host_cpu in
15016: hppa*64*|ia64*)
15017: # +Z the default
15018: ;;
15019: *)
15020: lt_prog_compiler_pic_CXX='+Z'
15021: ;;
15022: esac
15023: ;;
15024: *)
15025: ;;
15026: esac
15027: ;;
15028: interix*)
15029: # This is c89, which is MS Visual C++ (no shared libs)
15030: # Anyone wants to do a port?
15031: ;;
15032: irix5* | irix6* | nonstopux*)
15033: case $cc_basename in
15034: CC*)
15035: lt_prog_compiler_wl_CXX='-Wl,'
15036: lt_prog_compiler_static_CXX='-non_shared'
15037: # CC pic flag -KPIC is the default.
15038: ;;
15039: *)
15040: ;;
15041: esac
15042: ;;
15043: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15044: case $cc_basename in
15045: KCC*)
15046: # KAI C++ Compiler
15047: lt_prog_compiler_wl_CXX='--backend -Wl,'
15048: lt_prog_compiler_pic_CXX='-fPIC'
15049: ;;
15050: ecpc* )
15051: # old Intel C++ for x86_64 which still supported -KPIC.
15052: lt_prog_compiler_wl_CXX='-Wl,'
15053: lt_prog_compiler_pic_CXX='-KPIC'
15054: lt_prog_compiler_static_CXX='-static'
15055: ;;
15056: icpc* )
15057: # Intel C++, used to be incompatible with GCC.
15058: # ICC 10 doesn't accept -KPIC any more.
15059: lt_prog_compiler_wl_CXX='-Wl,'
15060: lt_prog_compiler_pic_CXX='-fPIC'
15061: lt_prog_compiler_static_CXX='-static'
15062: ;;
15063: pgCC* | pgcpp*)
15064: # Portland Group C++ compiler
15065: lt_prog_compiler_wl_CXX='-Wl,'
15066: lt_prog_compiler_pic_CXX='-fpic'
15067: lt_prog_compiler_static_CXX='-Bstatic'
15068: ;;
15069: cxx*)
15070: # Compaq C++
15071: # Make sure the PIC flag is empty. It appears that all Alpha
15072: # Linux and Compaq Tru64 Unix objects are PIC.
15073: lt_prog_compiler_pic_CXX=
15074: lt_prog_compiler_static_CXX='-non_shared'
15075: ;;
15076: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15077: # IBM XL 8.0, 9.0 on PPC and BlueGene
15078: lt_prog_compiler_wl_CXX='-Wl,'
15079: lt_prog_compiler_pic_CXX='-qpic'
15080: lt_prog_compiler_static_CXX='-qstaticlink'
15081: ;;
15082: *)
15083: case `$CC -V 2>&1 | sed 5q` in
15084: *Sun\ C*)
15085: # Sun C++ 5.9
15086: lt_prog_compiler_pic_CXX='-KPIC'
15087: lt_prog_compiler_static_CXX='-Bstatic'
15088: lt_prog_compiler_wl_CXX='-Qoption ld '
15089: ;;
15090: esac
15091: ;;
15092: esac
15093: ;;
15094: lynxos*)
15095: ;;
15096: m88k*)
15097: ;;
15098: mvs*)
15099: case $cc_basename in
15100: cxx*)
15101: lt_prog_compiler_pic_CXX='-W c,exportall'
15102: ;;
15103: *)
15104: ;;
15105: esac
15106: ;;
15107: netbsd*)
15108: ;;
15109: *qnx* | *nto*)
15110: # QNX uses GNU C++, but need to define -shared option too, otherwise
15111: # it will coredump.
15112: lt_prog_compiler_pic_CXX='-fPIC -shared'
15113: ;;
15114: osf3* | osf4* | osf5*)
15115: case $cc_basename in
15116: KCC*)
15117: lt_prog_compiler_wl_CXX='--backend -Wl,'
15118: ;;
15119: RCC*)
15120: # Rational C++ 2.4.1
15121: lt_prog_compiler_pic_CXX='-pic'
15122: ;;
15123: cxx*)
15124: # Digital/Compaq C++
15125: lt_prog_compiler_wl_CXX='-Wl,'
15126: # Make sure the PIC flag is empty. It appears that all Alpha
15127: # Linux and Compaq Tru64 Unix objects are PIC.
15128: lt_prog_compiler_pic_CXX=
15129: lt_prog_compiler_static_CXX='-non_shared'
15130: ;;
15131: *)
15132: ;;
15133: esac
15134: ;;
15135: psos*)
15136: ;;
15137: solaris*)
15138: case $cc_basename in
15139: CC* | sunCC*)
15140: # Sun C++ 4.2, 5.x and Centerline C++
15141: lt_prog_compiler_pic_CXX='-KPIC'
15142: lt_prog_compiler_static_CXX='-Bstatic'
15143: lt_prog_compiler_wl_CXX='-Qoption ld '
15144: ;;
15145: gcx*)
15146: # Green Hills C++ Compiler
15147: lt_prog_compiler_pic_CXX='-PIC'
15148: ;;
15149: *)
15150: ;;
15151: esac
15152: ;;
15153: sunos4*)
15154: case $cc_basename in
15155: CC*)
15156: # Sun C++ 4.x
15157: lt_prog_compiler_pic_CXX='-pic'
15158: lt_prog_compiler_static_CXX='-Bstatic'
15159: ;;
15160: lcc*)
15161: # Lucid
15162: lt_prog_compiler_pic_CXX='-pic'
15163: ;;
15164: *)
15165: ;;
15166: esac
15167: ;;
15168: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15169: case $cc_basename in
15170: CC*)
15171: lt_prog_compiler_wl_CXX='-Wl,'
15172: lt_prog_compiler_pic_CXX='-KPIC'
15173: lt_prog_compiler_static_CXX='-Bstatic'
15174: ;;
15175: esac
15176: ;;
15177: tandem*)
15178: case $cc_basename in
15179: NCC*)
15180: # NonStop-UX NCC 3.20
15181: lt_prog_compiler_pic_CXX='-KPIC'
15182: ;;
15183: *)
15184: ;;
15185: esac
15186: ;;
15187: vxworks*)
15188: ;;
15189: *)
15190: lt_prog_compiler_can_build_shared_CXX=no
15191: ;;
15192: esac
15193: fi
15194:
15195: case $host_os in
15196: # For platforms which do not support PIC, -DPIC is meaningless:
15197: *djgpp*)
15198: lt_prog_compiler_pic_CXX=
15199: ;;
15200: *)
15201: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15202: ;;
15203: esac
15204:
1.150 moko 15205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15206: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15207: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15208: $as_echo_n "(cached) " >&6
1.128 moko 15209: else
15210: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15211: fi
1.150 moko 15212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15213: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 15214: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15215:
15216: #
15217: # Check to make sure the PIC flag actually works.
15218: #
15219: if test -n "$lt_prog_compiler_pic_CXX"; then
1.150 moko 15220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15221: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15222: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15223: $as_echo_n "(cached) " >&6
1.128 moko 15224: else
15225: lt_cv_prog_compiler_pic_works_CXX=no
15226: ac_outfile=conftest.$ac_objext
15227: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15228: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15229: # Insert the option either (1) after the last *FLAGS variable, or
15230: # (2) before a word containing "conftest.", or (3) at the end.
15231: # Note that $ac_compile itself does not contain backslashes and begins
15232: # with a dollar sign (not a hyphen), so the echo should work correctly.
15233: # The option is referenced via a variable to avoid confusing sed.
15234: lt_compile=`echo "$ac_compile" | $SED \
15235: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15236: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15237: -e 's:$: $lt_compiler_flag:'`
15238: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15239: (eval "$lt_compile" 2>conftest.err)
15240: ac_status=$?
15241: cat conftest.err >&5
15242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243: if (exit $ac_status) && test -s "$ac_outfile"; then
15244: # The compiler can only warn and ignore the option if not recognized
15245: # So say no if there are warnings other than the usual output.
15246: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15247: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15248: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15249: lt_cv_prog_compiler_pic_works_CXX=yes
15250: fi
15251: fi
15252: $RM conftest*
15253:
15254: fi
1.150 moko 15255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15256: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 15257:
15258: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15259: case $lt_prog_compiler_pic_CXX in
15260: "" | " "*) ;;
15261: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15262: esac
15263: else
15264: lt_prog_compiler_pic_CXX=
15265: lt_prog_compiler_can_build_shared_CXX=no
15266: fi
15267:
15268: fi
15269:
15270:
15271:
15272:
15273:
15274: #
15275: # Check to make sure the static flag actually works.
15276: #
15277: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.150 moko 15278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15279: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15280: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15281: $as_echo_n "(cached) " >&6
1.128 moko 15282: else
15283: lt_cv_prog_compiler_static_works_CXX=no
15284: save_LDFLAGS="$LDFLAGS"
15285: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15286: echo "$lt_simple_link_test_code" > conftest.$ac_ext
15287: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15288: # The linker can only warn and ignore the option if not recognized
15289: # So say no if there are warnings
15290: if test -s conftest.err; then
15291: # Append any errors to the config.log.
15292: cat conftest.err 1>&5
15293: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15294: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15295: if diff conftest.exp conftest.er2 >/dev/null; then
15296: lt_cv_prog_compiler_static_works_CXX=yes
15297: fi
15298: else
15299: lt_cv_prog_compiler_static_works_CXX=yes
15300: fi
15301: fi
15302: $RM -r conftest*
15303: LDFLAGS="$save_LDFLAGS"
15304:
15305: fi
1.150 moko 15306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15307: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 15308:
15309: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15310: :
15311: else
15312: lt_prog_compiler_static_CXX=
15313: fi
15314:
15315:
15316:
15317:
1.150 moko 15318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15319: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15320: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15321: $as_echo_n "(cached) " >&6
1.128 moko 15322: else
15323: lt_cv_prog_compiler_c_o_CXX=no
15324: $RM -r conftest 2>/dev/null
15325: mkdir conftest
15326: cd conftest
15327: mkdir out
15328: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15329:
15330: lt_compiler_flag="-o out/conftest2.$ac_objext"
15331: # Insert the option either (1) after the last *FLAGS variable, or
15332: # (2) before a word containing "conftest.", or (3) at the end.
15333: # Note that $ac_compile itself does not contain backslashes and begins
15334: # with a dollar sign (not a hyphen), so the echo should work correctly.
15335: lt_compile=`echo "$ac_compile" | $SED \
15336: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15337: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15338: -e 's:$: $lt_compiler_flag:'`
15339: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15340: (eval "$lt_compile" 2>out/conftest.err)
15341: ac_status=$?
15342: cat out/conftest.err >&5
15343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15345: then
15346: # The compiler can only warn and ignore the option if not recognized
15347: # So say no if there are warnings
15348: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15349: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15350: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15351: lt_cv_prog_compiler_c_o_CXX=yes
15352: fi
15353: fi
15354: chmod u+w . 2>&5
15355: $RM conftest*
15356: # SGI C++ compiler will create directory out/ii_files/ for
15357: # template instantiation
15358: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15359: $RM out/* && rmdir out
15360: cd ..
15361: $RM -r conftest
15362: $RM conftest*
15363:
15364: fi
1.150 moko 15365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15366: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15367:
15368:
15369:
1.150 moko 15370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15371: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15372: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15373: $as_echo_n "(cached) " >&6
1.128 moko 15374: else
15375: lt_cv_prog_compiler_c_o_CXX=no
15376: $RM -r conftest 2>/dev/null
15377: mkdir conftest
15378: cd conftest
15379: mkdir out
15380: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15381:
15382: lt_compiler_flag="-o out/conftest2.$ac_objext"
15383: # Insert the option either (1) after the last *FLAGS variable, or
15384: # (2) before a word containing "conftest.", or (3) at the end.
15385: # Note that $ac_compile itself does not contain backslashes and begins
15386: # with a dollar sign (not a hyphen), so the echo should work correctly.
15387: lt_compile=`echo "$ac_compile" | $SED \
15388: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15389: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15390: -e 's:$: $lt_compiler_flag:'`
15391: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15392: (eval "$lt_compile" 2>out/conftest.err)
15393: ac_status=$?
15394: cat out/conftest.err >&5
15395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15397: then
15398: # The compiler can only warn and ignore the option if not recognized
15399: # So say no if there are warnings
15400: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15401: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15402: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15403: lt_cv_prog_compiler_c_o_CXX=yes
15404: fi
15405: fi
15406: chmod u+w . 2>&5
15407: $RM conftest*
15408: # SGI C++ compiler will create directory out/ii_files/ for
15409: # template instantiation
15410: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15411: $RM out/* && rmdir out
15412: cd ..
15413: $RM -r conftest
15414: $RM conftest*
15415:
15416: fi
1.150 moko 15417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15418: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 15419:
15420:
15421:
15422:
15423: hard_links="nottested"
15424: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15425: # do not overwrite the value of need_locks provided by the user
1.150 moko 15426: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15427: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.128 moko 15428: hard_links=yes
15429: $RM conftest*
15430: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15431: touch conftest.a
15432: ln conftest.a conftest.b 2>&5 || hard_links=no
15433: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.150 moko 15434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15435: $as_echo "$hard_links" >&6; }
1.128 moko 15436: if test "$hard_links" = no; then
1.150 moko 15437: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15438: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.128 moko 15439: need_locks=warn
15440: fi
15441: else
15442: need_locks=no
15443: fi
15444:
15445:
15446:
1.150 moko 15447: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15448: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 15449:
15450: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15451: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15452: case $host_os in
15453: aix[4-9]*)
15454: # If we're using GNU nm, then we don't want the "-C" option.
15455: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15456: # Also, AIX nm treats weak defined symbols like other global defined
15457: # symbols, whereas GNU nm marks them as "W".
15458: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15459: 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'
15460: else
15461: 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'
15462: fi
15463: ;;
15464: pw32*)
15465: export_symbols_cmds_CXX="$ltdll_cmds"
15466: ;;
15467: cygwin* | mingw* | cegcc*)
15468: case $cc_basename in
15469: cl*)
15470: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15471: ;;
15472: *)
15473: 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'
15474: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15475: ;;
15476: esac
15477: ;;
15478: *)
15479: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15480: ;;
15481: esac
15482:
1.150 moko 15483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15484: $as_echo "$ld_shlibs_CXX" >&6; }
1.128 moko 15485: test "$ld_shlibs_CXX" = no && can_build_shared=no
15486:
15487: with_gnu_ld_CXX=$with_gnu_ld
15488:
15489:
15490:
15491:
15492:
15493:
15494: #
15495: # Do we need to explicitly link libc?
15496: #
15497: case "x$archive_cmds_need_lc_CXX" in
15498: x|xyes)
15499: # Assume -lc should be added
15500: archive_cmds_need_lc_CXX=yes
15501:
15502: if test "$enable_shared" = yes && test "$GCC" = yes; then
15503: case $archive_cmds_CXX in
15504: *'~'*)
15505: # FIXME: we may have to deal with multi-command sequences.
15506: ;;
15507: '$CC '*)
15508: # Test whether the compiler implicitly links with -lc since on some
15509: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15510: # to ld, don't add -lc before -lgcc.
1.150 moko 15511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15512: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15513: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15514: $as_echo_n "(cached) " >&6
1.128 moko 15515: else
15516: $RM conftest*
15517: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15518:
1.150 moko 15519: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 15520: (eval $ac_compile) 2>&5
15521: ac_status=$?
1.150 moko 15522: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15523: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 15524: soname=conftest
15525: lib=conftest
15526: libobjs=conftest.$ac_objext
15527: deplibs=
15528: wl=$lt_prog_compiler_wl_CXX
15529: pic_flag=$lt_prog_compiler_pic_CXX
15530: compiler_flags=-v
15531: linker_flags=-v
15532: verstring=
15533: output_objdir=.
15534: libname=conftest
15535: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15536: allow_undefined_flag_CXX=
1.150 moko 15537: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 15538: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15539: ac_status=$?
1.150 moko 15540: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15541: test $ac_status = 0; }
1.128 moko 15542: then
15543: lt_cv_archive_cmds_need_lc_CXX=no
15544: else
15545: lt_cv_archive_cmds_need_lc_CXX=yes
15546: fi
15547: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15548: else
15549: cat conftest.err 1>&5
15550: fi
15551: $RM conftest*
15552:
15553: fi
1.150 moko 15554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15555: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 15556: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15557: ;;
15558: esac
15559: fi
15560: ;;
15561: esac
15562:
15563:
15564:
15565:
15566:
15567:
15568:
15569:
15570:
15571:
15572:
15573:
15574:
15575:
15576:
15577:
15578:
15579:
15580:
15581:
15582:
15583:
15584:
15585:
15586:
15587:
15588:
15589:
15590:
15591:
15592:
15593:
15594:
15595:
15596:
15597:
15598:
15599:
15600:
15601:
15602:
15603:
15604:
15605:
15606:
15607:
15608:
15609:
15610:
15611:
15612:
15613:
15614:
15615:
15616:
15617:
15618:
15619:
15620:
15621:
15622:
15623:
1.150 moko 15624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15625: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.128 moko 15626:
15627: library_names_spec=
15628: libname_spec='lib$name'
15629: soname_spec=
15630: shrext_cmds=".so"
15631: postinstall_cmds=
15632: postuninstall_cmds=
15633: finish_cmds=
15634: finish_eval=
15635: shlibpath_var=
15636: shlibpath_overrides_runpath=unknown
15637: version_type=none
15638: dynamic_linker="$host_os ld.so"
15639: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15640: need_lib_prefix=unknown
15641: hardcode_into_libs=no
15642:
15643: # when you set need_version to no, make sure it does not cause -set_version
15644: # flags to be left without arguments
15645: need_version=unknown
15646:
15647: case $host_os in
15648: aix3*)
15649: version_type=linux # correct to gnu/linux during the next big refactor
15650: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15651: shlibpath_var=LIBPATH
15652:
15653: # AIX 3 has no versioning support, so we append a major version to the name.
15654: soname_spec='${libname}${release}${shared_ext}$major'
15655: ;;
15656:
15657: aix[4-9]*)
15658: version_type=linux # correct to gnu/linux during the next big refactor
15659: need_lib_prefix=no
15660: need_version=no
15661: hardcode_into_libs=yes
15662: if test "$host_cpu" = ia64; then
15663: # AIX 5 supports IA64
15664: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15665: shlibpath_var=LD_LIBRARY_PATH
15666: else
15667: # With GCC up to 2.95.x, collect2 would create an import file
15668: # for dependence libraries. The import file would start with
15669: # the line `#! .'. This would cause the generated library to
15670: # depend on `.', always an invalid library. This was fixed in
15671: # development snapshots of GCC prior to 3.0.
15672: case $host_os in
15673: aix4 | aix4.[01] | aix4.[01].*)
15674: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15675: echo ' yes '
15676: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15677: :
15678: else
15679: can_build_shared=no
15680: fi
15681: ;;
15682: esac
15683: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15684: # soname into executable. Probably we can add versioning support to
15685: # collect2, so additional links can be useful in future.
15686: if test "$aix_use_runtimelinking" = yes; then
15687: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15688: # instead of lib<name>.a to let people know that these are not
15689: # typical AIX shared libraries.
15690: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691: else
15692: # We preserve .a as extension for shared libraries through AIX4.2
15693: # and later when we are not doing run time linking.
15694: library_names_spec='${libname}${release}.a $libname.a'
15695: soname_spec='${libname}${release}${shared_ext}$major'
15696: fi
15697: shlibpath_var=LIBPATH
15698: fi
15699: ;;
15700:
15701: amigaos*)
15702: case $host_cpu in
15703: powerpc)
15704: # Since July 2007 AmigaOS4 officially supports .so libraries.
15705: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15706: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707: ;;
15708: m68k)
15709: library_names_spec='$libname.ixlibrary $libname.a'
15710: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15711: 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'
15712: ;;
15713: esac
15714: ;;
15715:
15716: beos*)
15717: library_names_spec='${libname}${shared_ext}'
15718: dynamic_linker="$host_os ld.so"
15719: shlibpath_var=LIBRARY_PATH
15720: ;;
15721:
15722: bsdi[45]*)
15723: version_type=linux # correct to gnu/linux during the next big refactor
15724: need_version=no
15725: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15726: soname_spec='${libname}${release}${shared_ext}$major'
15727: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15728: shlibpath_var=LD_LIBRARY_PATH
15729: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15730: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15731: # the default ld.so.conf also contains /usr/contrib/lib and
15732: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15733: # libtool to hard-code these into programs
15734: ;;
15735:
15736: cygwin* | mingw* | pw32* | cegcc*)
15737: version_type=windows
15738: shrext_cmds=".dll"
15739: need_version=no
15740: need_lib_prefix=no
15741:
15742: case $GCC,$cc_basename in
15743: yes,*)
15744: # gcc
15745: library_names_spec='$libname.dll.a'
15746: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15747: postinstall_cmds='base_file=`basename \${file}`~
15748: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15749: dldir=$destdir/`dirname \$dlpath`~
15750: test -d \$dldir || mkdir -p \$dldir~
15751: $install_prog $dir/$dlname \$dldir/$dlname~
15752: chmod a+x \$dldir/$dlname~
15753: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15754: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15755: fi'
15756: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15757: dlpath=$dir/\$dldll~
15758: $RM \$dlpath'
15759: shlibpath_overrides_runpath=yes
15760:
15761: case $host_os in
15762: cygwin*)
15763: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15764: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15765:
15766: ;;
15767: mingw* | cegcc*)
15768: # MinGW DLLs use traditional 'lib' prefix
15769: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15770: ;;
15771: pw32*)
15772: # pw32 DLLs use 'pw' prefix rather than 'lib'
15773: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15774: ;;
15775: esac
15776: dynamic_linker='Win32 ld.exe'
15777: ;;
15778:
15779: *,cl*)
15780: # Native MSVC
15781: libname_spec='$name'
15782: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15783: library_names_spec='${libname}.dll.lib'
15784:
15785: case $build_os in
15786: mingw*)
15787: sys_lib_search_path_spec=
15788: lt_save_ifs=$IFS
15789: IFS=';'
15790: for lt_path in $LIB
15791: do
15792: IFS=$lt_save_ifs
15793: # Let DOS variable expansion print the short 8.3 style file name.
15794: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15795: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15796: done
15797: IFS=$lt_save_ifs
15798: # Convert to MSYS style.
15799: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15800: ;;
15801: cygwin*)
15802: # Convert to unix form, then to dos form, then back to unix form
15803: # but this time dos style (no spaces!) so that the unix form looks
15804: # like /cygdrive/c/PROGRA~1:/cygdr...
15805: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15806: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15807: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15808: ;;
15809: *)
15810: sys_lib_search_path_spec="$LIB"
15811: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15812: # It is most probably a Windows format PATH.
15813: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15814: else
15815: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15816: fi
15817: # FIXME: find the short name or the path components, as spaces are
15818: # common. (e.g. "Program Files" -> "PROGRA~1")
15819: ;;
15820: esac
15821:
15822: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15823: postinstall_cmds='base_file=`basename \${file}`~
15824: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15825: dldir=$destdir/`dirname \$dlpath`~
15826: test -d \$dldir || mkdir -p \$dldir~
15827: $install_prog $dir/$dlname \$dldir/$dlname'
15828: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15829: dlpath=$dir/\$dldll~
15830: $RM \$dlpath'
15831: shlibpath_overrides_runpath=yes
15832: dynamic_linker='Win32 link.exe'
15833: ;;
15834:
15835: *)
15836: # Assume MSVC wrapper
15837: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15838: dynamic_linker='Win32 ld.exe'
15839: ;;
15840: esac
15841: # FIXME: first we should search . and the directory the executable is in
15842: shlibpath_var=PATH
15843: ;;
15844:
15845: darwin* | rhapsody*)
15846: dynamic_linker="$host_os dyld"
15847: version_type=darwin
15848: need_lib_prefix=no
15849: need_version=no
15850: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15851: soname_spec='${libname}${release}${major}$shared_ext'
15852: shlibpath_overrides_runpath=yes
15853: shlibpath_var=DYLD_LIBRARY_PATH
15854: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15855:
15856: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15857: ;;
15858:
15859: dgux*)
15860: version_type=linux # correct to gnu/linux during the next big refactor
15861: need_lib_prefix=no
15862: need_version=no
15863: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15864: soname_spec='${libname}${release}${shared_ext}$major'
15865: shlibpath_var=LD_LIBRARY_PATH
15866: ;;
15867:
15868: freebsd* | dragonfly*)
15869: # DragonFly does not have aout. When/if they implement a new
15870: # versioning mechanism, adjust this.
15871: if test -x /usr/bin/objformat; then
15872: objformat=`/usr/bin/objformat`
15873: else
15874: case $host_os in
15875: freebsd[23].*) objformat=aout ;;
15876: *) objformat=elf ;;
15877: esac
15878: fi
15879: version_type=freebsd-$objformat
15880: case $version_type in
15881: freebsd-elf*)
15882: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15883: need_version=no
15884: need_lib_prefix=no
15885: ;;
15886: freebsd-*)
15887: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15888: need_version=yes
15889: ;;
15890: esac
15891: shlibpath_var=LD_LIBRARY_PATH
15892: case $host_os in
15893: freebsd2.*)
15894: shlibpath_overrides_runpath=yes
15895: ;;
15896: freebsd3.[01]* | freebsdelf3.[01]*)
15897: shlibpath_overrides_runpath=yes
15898: hardcode_into_libs=yes
15899: ;;
15900: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15901: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15902: shlibpath_overrides_runpath=no
15903: hardcode_into_libs=yes
15904: ;;
15905: *) # from 4.6 on, and DragonFly
15906: shlibpath_overrides_runpath=yes
15907: hardcode_into_libs=yes
15908: ;;
15909: esac
15910: ;;
15911:
15912: gnu*)
15913: version_type=linux # correct to gnu/linux during the next big refactor
15914: need_lib_prefix=no
15915: need_version=no
15916: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15917: soname_spec='${libname}${release}${shared_ext}$major'
15918: shlibpath_var=LD_LIBRARY_PATH
15919: shlibpath_overrides_runpath=no
15920: hardcode_into_libs=yes
15921: ;;
15922:
15923: haiku*)
15924: version_type=linux # correct to gnu/linux during the next big refactor
15925: need_lib_prefix=no
15926: need_version=no
15927: dynamic_linker="$host_os runtime_loader"
15928: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15929: soname_spec='${libname}${release}${shared_ext}$major'
15930: shlibpath_var=LIBRARY_PATH
15931: shlibpath_overrides_runpath=yes
15932: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15933: hardcode_into_libs=yes
15934: ;;
15935:
15936: hpux9* | hpux10* | hpux11*)
15937: # Give a soname corresponding to the major version so that dld.sl refuses to
15938: # link against other versions.
15939: version_type=sunos
15940: need_lib_prefix=no
15941: need_version=no
15942: case $host_cpu in
15943: ia64*)
15944: shrext_cmds='.so'
15945: hardcode_into_libs=yes
15946: dynamic_linker="$host_os dld.so"
15947: shlibpath_var=LD_LIBRARY_PATH
15948: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15949: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950: soname_spec='${libname}${release}${shared_ext}$major'
15951: if test "X$HPUX_IA64_MODE" = X32; then
15952: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15953: else
15954: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15955: fi
15956: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15957: ;;
15958: hppa*64*)
15959: shrext_cmds='.sl'
15960: hardcode_into_libs=yes
15961: dynamic_linker="$host_os dld.sl"
15962: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15963: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15964: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965: soname_spec='${libname}${release}${shared_ext}$major'
15966: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15967: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15968: ;;
15969: *)
15970: shrext_cmds='.sl'
15971: dynamic_linker="$host_os dld.sl"
15972: shlibpath_var=SHLIB_PATH
15973: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15974: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975: soname_spec='${libname}${release}${shared_ext}$major'
15976: ;;
15977: esac
15978: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15979: postinstall_cmds='chmod 555 $lib'
15980: # or fails outright, so override atomically:
15981: install_override_mode=555
15982: ;;
15983:
15984: interix[3-9]*)
15985: version_type=linux # correct to gnu/linux during the next big refactor
15986: need_lib_prefix=no
15987: need_version=no
15988: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15989: soname_spec='${libname}${release}${shared_ext}$major'
15990: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15991: shlibpath_var=LD_LIBRARY_PATH
15992: shlibpath_overrides_runpath=no
15993: hardcode_into_libs=yes
15994: ;;
15995:
15996: irix5* | irix6* | nonstopux*)
15997: case $host_os in
15998: nonstopux*) version_type=nonstopux ;;
15999: *)
16000: if test "$lt_cv_prog_gnu_ld" = yes; then
16001: version_type=linux # correct to gnu/linux during the next big refactor
16002: else
16003: version_type=irix
16004: fi ;;
16005: esac
16006: need_lib_prefix=no
16007: need_version=no
16008: soname_spec='${libname}${release}${shared_ext}$major'
16009: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16010: case $host_os in
16011: irix5* | nonstopux*)
16012: libsuff= shlibsuff=
16013: ;;
16014: *)
16015: case $LD in # libtool.m4 will add one of these switches to LD
16016: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16017: libsuff= shlibsuff= libmagic=32-bit;;
16018: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16019: libsuff=32 shlibsuff=N32 libmagic=N32;;
16020: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16021: libsuff=64 shlibsuff=64 libmagic=64-bit;;
16022: *) libsuff= shlibsuff= libmagic=never-match;;
16023: esac
16024: ;;
16025: esac
16026: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16027: shlibpath_overrides_runpath=no
16028: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16029: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16030: hardcode_into_libs=yes
16031: ;;
16032:
16033: # No shared lib support for Linux oldld, aout, or coff.
16034: linux*oldld* | linux*aout* | linux*coff*)
16035: dynamic_linker=no
16036: ;;
16037:
16038: # This must be glibc/ELF.
16039: linux* | k*bsd*-gnu | kopensolaris*-gnu)
16040: version_type=linux # correct to gnu/linux during the next big refactor
16041: need_lib_prefix=no
16042: need_version=no
16043: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044: soname_spec='${libname}${release}${shared_ext}$major'
16045: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16046: shlibpath_var=LD_LIBRARY_PATH
16047: shlibpath_overrides_runpath=no
16048:
16049: # Some binutils ld are patched to set DT_RUNPATH
1.150 moko 16050: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16051: $as_echo_n "(cached) " >&6
1.128 moko 16052: else
16053: lt_cv_shlibpath_overrides_runpath=no
16054: save_LDFLAGS=$LDFLAGS
16055: save_libdir=$libdir
16056: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16057: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 16058: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16059: /* end confdefs.h. */
16060:
16061: int
16062: main ()
16063: {
16064:
16065: ;
16066: return 0;
16067: }
16068: _ACEOF
1.150 moko 16069: if ac_fn_cxx_try_link "$LINENO"; then :
16070: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.128 moko 16071: lt_cv_shlibpath_overrides_runpath=yes
16072: fi
16073: fi
1.150 moko 16074: rm -f core conftest.err conftest.$ac_objext \
16075: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16076: LDFLAGS=$save_LDFLAGS
16077: libdir=$save_libdir
16078:
16079: fi
16080:
16081: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16082:
16083: # This implies no fast_install, which is unacceptable.
16084: # Some rework will be needed to allow for fast_install
16085: # before this can be enabled.
16086: hardcode_into_libs=yes
16087:
16088: # Append ld.so.conf contents to the search path
16089: if test -f /etc/ld.so.conf; then
16090: 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' ' '`
16091: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16092: fi
16093:
16094: # We used to test for /lib/ld.so.1 and disable shared libraries on
16095: # powerpc, because MkLinux only supported shared libraries with the
16096: # GNU dynamic linker. Since this was broken with cross compilers,
16097: # most powerpc-linux boxes support dynamic linking these days and
16098: # people can always --disable-shared, the test was removed, and we
16099: # assume the GNU/Linux dynamic linker is in use.
16100: dynamic_linker='GNU/Linux ld.so'
16101: ;;
16102:
16103: netbsd*)
16104: version_type=sunos
16105: need_lib_prefix=no
16106: need_version=no
16107: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16108: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16109: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16110: dynamic_linker='NetBSD (a.out) ld.so'
16111: else
16112: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16113: soname_spec='${libname}${release}${shared_ext}$major'
16114: dynamic_linker='NetBSD ld.elf_so'
16115: fi
16116: shlibpath_var=LD_LIBRARY_PATH
16117: shlibpath_overrides_runpath=yes
16118: hardcode_into_libs=yes
16119: ;;
16120:
16121: newsos6)
16122: version_type=linux # correct to gnu/linux during the next big refactor
16123: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124: shlibpath_var=LD_LIBRARY_PATH
16125: shlibpath_overrides_runpath=yes
16126: ;;
16127:
16128: *nto* | *qnx*)
16129: version_type=qnx
16130: need_lib_prefix=no
16131: need_version=no
16132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133: soname_spec='${libname}${release}${shared_ext}$major'
16134: shlibpath_var=LD_LIBRARY_PATH
16135: shlibpath_overrides_runpath=no
16136: hardcode_into_libs=yes
16137: dynamic_linker='ldqnx.so'
16138: ;;
16139:
16140: openbsd*)
16141: version_type=sunos
16142: sys_lib_dlsearch_path_spec="/usr/lib"
16143: need_lib_prefix=no
16144: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16145: case $host_os in
16146: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16147: *) need_version=no ;;
16148: esac
16149: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16150: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16151: shlibpath_var=LD_LIBRARY_PATH
16152: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16153: case $host_os in
16154: openbsd2.[89] | openbsd2.[89].*)
16155: shlibpath_overrides_runpath=no
16156: ;;
16157: *)
16158: shlibpath_overrides_runpath=yes
16159: ;;
16160: esac
16161: else
16162: shlibpath_overrides_runpath=yes
16163: fi
16164: ;;
16165:
16166: os2*)
16167: libname_spec='$name'
16168: shrext_cmds=".dll"
16169: need_lib_prefix=no
16170: library_names_spec='$libname${shared_ext} $libname.a'
16171: dynamic_linker='OS/2 ld.exe'
16172: shlibpath_var=LIBPATH
16173: ;;
16174:
16175: osf3* | osf4* | osf5*)
16176: version_type=osf
16177: need_lib_prefix=no
16178: need_version=no
16179: soname_spec='${libname}${release}${shared_ext}$major'
16180: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16181: shlibpath_var=LD_LIBRARY_PATH
16182: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16183: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16184: ;;
16185:
16186: rdos*)
16187: dynamic_linker=no
16188: ;;
16189:
16190: solaris*)
16191: version_type=linux # correct to gnu/linux during the next big refactor
16192: need_lib_prefix=no
16193: need_version=no
16194: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16195: soname_spec='${libname}${release}${shared_ext}$major'
16196: shlibpath_var=LD_LIBRARY_PATH
16197: shlibpath_overrides_runpath=yes
16198: hardcode_into_libs=yes
16199: # ldd complains unless libraries are executable
16200: postinstall_cmds='chmod +x $lib'
16201: ;;
16202:
16203: sunos4*)
16204: version_type=sunos
16205: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16206: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16207: shlibpath_var=LD_LIBRARY_PATH
16208: shlibpath_overrides_runpath=yes
16209: if test "$with_gnu_ld" = yes; then
16210: need_lib_prefix=no
16211: fi
16212: need_version=yes
16213: ;;
16214:
16215: sysv4 | sysv4.3*)
16216: version_type=linux # correct to gnu/linux during the next big refactor
16217: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218: soname_spec='${libname}${release}${shared_ext}$major'
16219: shlibpath_var=LD_LIBRARY_PATH
16220: case $host_vendor in
16221: sni)
16222: shlibpath_overrides_runpath=no
16223: need_lib_prefix=no
16224: runpath_var=LD_RUN_PATH
16225: ;;
16226: siemens)
16227: need_lib_prefix=no
16228: ;;
16229: motorola)
16230: need_lib_prefix=no
16231: need_version=no
16232: shlibpath_overrides_runpath=no
16233: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16234: ;;
16235: esac
16236: ;;
16237:
16238: sysv4*MP*)
16239: if test -d /usr/nec ;then
16240: version_type=linux # correct to gnu/linux during the next big refactor
16241: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16242: soname_spec='$libname${shared_ext}.$major'
16243: shlibpath_var=LD_LIBRARY_PATH
16244: fi
16245: ;;
16246:
16247: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16248: version_type=freebsd-elf
16249: need_lib_prefix=no
16250: need_version=no
16251: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16252: soname_spec='${libname}${release}${shared_ext}$major'
16253: shlibpath_var=LD_LIBRARY_PATH
16254: shlibpath_overrides_runpath=yes
16255: hardcode_into_libs=yes
16256: if test "$with_gnu_ld" = yes; then
16257: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16258: else
16259: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16260: case $host_os in
16261: sco3.2v5*)
16262: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16263: ;;
16264: esac
16265: fi
16266: sys_lib_dlsearch_path_spec='/usr/lib'
16267: ;;
16268:
16269: tpf*)
16270: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16271: version_type=linux # correct to gnu/linux during the next big refactor
16272: need_lib_prefix=no
16273: need_version=no
16274: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275: shlibpath_var=LD_LIBRARY_PATH
16276: shlibpath_overrides_runpath=no
16277: hardcode_into_libs=yes
16278: ;;
16279:
16280: uts4*)
16281: version_type=linux # correct to gnu/linux during the next big refactor
16282: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283: soname_spec='${libname}${release}${shared_ext}$major'
16284: shlibpath_var=LD_LIBRARY_PATH
16285: ;;
16286:
16287: *)
16288: dynamic_linker=no
16289: ;;
16290: esac
1.150 moko 16291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16292: $as_echo "$dynamic_linker" >&6; }
1.128 moko 16293: test "$dynamic_linker" = no && can_build_shared=no
16294:
16295: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16296: if test "$GCC" = yes; then
16297: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16298: fi
16299:
16300: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16301: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16302: fi
16303: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16304: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16305: fi
16306:
16307:
16308:
16309:
16310:
16311:
16312:
16313:
16314:
16315:
16316:
16317:
16318:
16319:
16320:
16321:
16322:
16323:
16324:
16325:
16326:
16327:
16328:
16329:
16330:
16331:
16332:
16333:
16334:
16335:
16336:
16337:
16338:
16339:
16340:
16341:
16342:
16343:
1.150 moko 16344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16345: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 16346: hardcode_action_CXX=
16347: if test -n "$hardcode_libdir_flag_spec_CXX" ||
16348: test -n "$runpath_var_CXX" ||
16349: test "X$hardcode_automatic_CXX" = "Xyes" ; then
16350:
16351: # We can hardcode non-existent directories.
16352: if test "$hardcode_direct_CXX" != no &&
16353: # If the only mechanism to avoid hardcoding is shlibpath_var, we
16354: # have to relink, otherwise we might link with an installed library
16355: # when we should be linking with a yet-to-be-installed one
16356: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16357: test "$hardcode_minus_L_CXX" != no; then
16358: # Linking always hardcodes the temporary library directory.
16359: hardcode_action_CXX=relink
16360: else
16361: # We can link without hardcoding, and we can hardcode nonexisting dirs.
16362: hardcode_action_CXX=immediate
16363: fi
16364: else
16365: # We cannot hardcode anything, or else we can only hardcode existing
16366: # directories.
16367: hardcode_action_CXX=unsupported
16368: fi
1.150 moko 16369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16370: $as_echo "$hardcode_action_CXX" >&6; }
1.128 moko 16371:
16372: if test "$hardcode_action_CXX" = relink ||
16373: test "$inherit_rpath_CXX" = yes; then
16374: # Fast installation is not supported
16375: enable_fast_install=no
16376: elif test "$shlibpath_overrides_runpath" = yes ||
16377: test "$enable_shared" = no; then
16378: # Fast installation is not necessary
16379: enable_fast_install=needless
16380: fi
16381:
16382:
16383:
16384:
16385:
16386:
16387:
16388: fi # test -n "$compiler"
16389:
16390: CC=$lt_save_CC
16391: CFLAGS=$lt_save_CFLAGS
16392: LDCXX=$LD
16393: LD=$lt_save_LD
16394: GCC=$lt_save_GCC
16395: with_gnu_ld=$lt_save_with_gnu_ld
16396: lt_cv_path_LDCXX=$lt_cv_path_LD
16397: lt_cv_path_LD=$lt_save_path_LD
16398: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16399: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16400: fi # test "$_lt_caught_CXX_error" != yes
16401:
16402: ac_ext=c
16403: ac_cpp='$CPP $CPPFLAGS'
16404: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16405: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16406: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16407:
16408:
16409:
16410:
16411:
16412:
16413:
16414:
16415:
16416:
16417:
16418:
16419:
16420:
16421:
1.150 moko 16422: ac_config_commands="$ac_config_commands libtool"
1.128 moko 16423:
16424:
16425:
16426:
16427: # Only expand once:
16428:
16429:
1.150 moko 16430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
16431: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
16432: if ${libltdl_cv_shlibext+:} false; then :
16433: $as_echo_n "(cached) " >&6
1.128 moko 16434: else
16435:
16436: module=yes
16437: eval libltdl_cv_shlibext=$shrext_cmds
16438: module=no
16439: eval libltdl_cv_shrext=$shrext_cmds
16440:
16441: fi
1.150 moko 16442: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16443: $as_echo "$libltdl_cv_shlibext" >&6; }
1.128 moko 16444: if test -n "$libltdl_cv_shlibext"; then
16445:
16446: cat >>confdefs.h <<_ACEOF
16447: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16448: _ACEOF
16449:
16450: fi
16451: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16452:
16453: cat >>confdefs.h <<_ACEOF
16454: #define LT_SHARED_EXT "$libltdl_cv_shrext"
16455: _ACEOF
16456:
16457: fi
16458:
1.150 moko 16459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
16460: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
16461: if ${lt_cv_module_path_var+:} false; then :
16462: $as_echo_n "(cached) " >&6
1.128 moko 16463: else
16464: lt_cv_module_path_var="$shlibpath_var"
16465: fi
1.150 moko 16466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16467: $as_echo "$lt_cv_module_path_var" >&6; }
1.128 moko 16468: if test -n "$lt_cv_module_path_var"; then
16469:
16470: cat >>confdefs.h <<_ACEOF
16471: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16472: _ACEOF
16473:
16474: fi
16475:
1.150 moko 16476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16477: $as_echo_n "checking for the default library search path... " >&6; }
16478: if ${lt_cv_sys_dlsearch_path+:} false; then :
16479: $as_echo_n "(cached) " >&6
1.128 moko 16480: else
16481: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
16482: fi
1.150 moko 16483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16484: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 16485: if test -n "$lt_cv_sys_dlsearch_path"; then
16486: sys_dlsearch_path=
16487: for dir in $lt_cv_sys_dlsearch_path; do
16488: if test -z "$sys_dlsearch_path"; then
16489: sys_dlsearch_path="$dir"
16490: else
16491: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
16492: fi
16493: done
16494:
16495: cat >>confdefs.h <<_ACEOF
16496: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16497: _ACEOF
16498:
16499: fi
16500:
16501:
16502: LT_DLLOADERS=
16503:
16504:
16505: ac_ext=c
16506: ac_cpp='$CPP $CPPFLAGS'
16507: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16508: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16509: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16510:
16511:
16512: LIBADD_DLOPEN=
1.150 moko 16513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16514: $as_echo_n "checking for library containing dlopen... " >&6; }
16515: if ${ac_cv_search_dlopen+:} false; then :
16516: $as_echo_n "(cached) " >&6
1.128 moko 16517: else
16518: ac_func_search_save_LIBS=$LIBS
1.150 moko 16519: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16520: /* end confdefs.h. */
16521:
1.150 moko 16522: /* Override any GCC internal prototype to avoid an error.
16523: Use char because int might match the return type of a GCC
16524: builtin and then its argument prototype would still apply. */
1.128 moko 16525: #ifdef __cplusplus
16526: extern "C"
16527: #endif
16528: char dlopen ();
16529: int
16530: main ()
16531: {
1.150 moko 16532: return dlopen ();
1.128 moko 16533: ;
16534: return 0;
16535: }
16536: _ACEOF
1.150 moko 16537: for ac_lib in '' dl; do
16538: if test -z "$ac_lib"; then
16539: ac_res="none required"
16540: else
16541: ac_res=-l$ac_lib
16542: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16543: fi
16544: if ac_fn_c_try_link "$LINENO"; then :
16545: ac_cv_search_dlopen=$ac_res
16546: fi
16547: rm -f core conftest.err conftest.$ac_objext \
16548: conftest$ac_exeext
16549: if ${ac_cv_search_dlopen+:} false; then :
16550: break
1.128 moko 16551: fi
1.150 moko 16552: done
16553: if ${ac_cv_search_dlopen+:} false; then :
1.128 moko 16554:
16555: else
1.150 moko 16556: ac_cv_search_dlopen=no
1.128 moko 16557: fi
1.150 moko 16558: rm conftest.$ac_ext
1.128 moko 16559: LIBS=$ac_func_search_save_LIBS
16560: fi
1.150 moko 16561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16562: $as_echo "$ac_cv_search_dlopen" >&6; }
16563: ac_res=$ac_cv_search_dlopen
16564: if test "$ac_res" != no; then :
16565: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 16566:
1.150 moko 16567: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16568:
16569: if test "$ac_cv_search_dlopen" != "none required" ; then
16570: LIBADD_DLOPEN="-ldl"
16571: fi
16572: libltdl_cv_lib_dl_dlopen="yes"
16573: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16574: else
1.150 moko 16575: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16576: /* end confdefs.h. */
16577: #if HAVE_DLFCN_H
16578: # include <dlfcn.h>
16579: #endif
16580:
16581: int
16582: main ()
16583: {
16584: dlopen(0, 0);
16585: ;
16586: return 0;
16587: }
16588: _ACEOF
1.150 moko 16589: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16590:
1.150 moko 16591: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16592:
16593: libltdl_cv_func_dlopen="yes"
16594: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16595: else
1.150 moko 16596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16597: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16598: if ${ac_cv_lib_svld_dlopen+:} false; then :
16599: $as_echo_n "(cached) " >&6
1.128 moko 16600: else
16601: ac_check_lib_save_LIBS=$LIBS
16602: LIBS="-lsvld $LIBS"
1.150 moko 16603: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16604: /* end confdefs.h. */
16605:
1.150 moko 16606: /* Override any GCC internal prototype to avoid an error.
16607: Use char because int might match the return type of a GCC
16608: builtin and then its argument prototype would still apply. */
1.128 moko 16609: #ifdef __cplusplus
16610: extern "C"
16611: #endif
16612: char dlopen ();
16613: int
16614: main ()
16615: {
1.150 moko 16616: return dlopen ();
1.128 moko 16617: ;
16618: return 0;
16619: }
16620: _ACEOF
1.150 moko 16621: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16622: ac_cv_lib_svld_dlopen=yes
16623: else
1.150 moko 16624: ac_cv_lib_svld_dlopen=no
1.128 moko 16625: fi
1.150 moko 16626: rm -f core conftest.err conftest.$ac_objext \
16627: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16628: LIBS=$ac_check_lib_save_LIBS
16629: fi
1.150 moko 16630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16631: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16632: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.128 moko 16633:
1.150 moko 16634: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 16635:
16636: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16637: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16638: fi
16639:
16640: fi
1.150 moko 16641: rm -f core conftest.err conftest.$ac_objext \
16642: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16643: fi
16644:
16645: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16646: then
16647: lt_save_LIBS="$LIBS"
16648: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 16649: for ac_func in dlerror
16650: do :
16651: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16652: if test "x$ac_cv_func_dlerror" = xyes; then :
1.128 moko 16653: cat >>confdefs.h <<_ACEOF
1.150 moko 16654: #define HAVE_DLERROR 1
1.128 moko 16655: _ACEOF
16656:
16657: fi
16658: done
16659:
16660: LIBS="$lt_save_LIBS"
16661: fi
16662:
16663:
16664: LIBADD_SHL_LOAD=
1.150 moko 16665: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16666: if test "x$ac_cv_func_shl_load" = xyes; then :
1.128 moko 16667:
1.150 moko 16668: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 16669:
16670: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16671: else
1.150 moko 16672: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16673: $as_echo_n "checking for shl_load in -ldld... " >&6; }
16674: if ${ac_cv_lib_dld_shl_load+:} false; then :
16675: $as_echo_n "(cached) " >&6
1.66 paf 16676: else
16677: ac_check_lib_save_LIBS=$LIBS
16678: LIBS="-ldld $LIBS"
1.150 moko 16679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16680: /* end confdefs.h. */
1.10 paf 16681:
1.150 moko 16682: /* Override any GCC internal prototype to avoid an error.
16683: Use char because int might match the return type of a GCC
16684: builtin and then its argument prototype would still apply. */
1.66 paf 16685: #ifdef __cplusplus
16686: extern "C"
16687: #endif
16688: char shl_load ();
16689: int
16690: main ()
16691: {
1.150 moko 16692: return shl_load ();
1.66 paf 16693: ;
16694: return 0;
16695: }
16696: _ACEOF
1.150 moko 16697: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 16698: ac_cv_lib_dld_shl_load=yes
16699: else
1.150 moko 16700: ac_cv_lib_dld_shl_load=no
1.66 paf 16701: fi
1.150 moko 16702: rm -f core conftest.err conftest.$ac_objext \
16703: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16704: LIBS=$ac_check_lib_save_LIBS
16705: fi
1.150 moko 16706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16707: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16708: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 paf 16709:
1.150 moko 16710: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 16711:
1.128 moko 16712: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16713: LIBADD_SHL_LOAD="-ldld"
16714: fi
16715:
16716: fi
16717:
16718:
16719:
16720: case $host_os in
16721: darwin[1567].*)
16722: # We only want this for pre-Mac OS X 10.4.
1.150 moko 16723: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16724: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16725:
16726: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 16727:
1.150 moko 16728: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16729: fi
1.128 moko 16730:
1.150 moko 16731: ;;
16732: beos*)
1.128 moko 16733: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16734: ;;
16735: cygwin* | mingw* | os2* | pw32*)
1.150 moko 16736: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16737: "
16738: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16739: ac_have_decl=1
1.128 moko 16740: else
1.150 moko 16741: ac_have_decl=0
1.128 moko 16742: fi
16743:
16744: cat >>confdefs.h <<_ACEOF
1.150 moko 16745: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.128 moko 16746: _ACEOF
16747:
16748: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16749: ;;
16750: esac
16751:
1.150 moko 16752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16753: $as_echo_n "checking for dld_link in -ldld... " >&6; }
16754: if ${ac_cv_lib_dld_dld_link+:} false; then :
16755: $as_echo_n "(cached) " >&6
1.66 paf 16756: else
16757: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16758: LIBS="-ldld $LIBS"
1.150 moko 16759: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 16760: /* end confdefs.h. */
1.62 paf 16761:
1.150 moko 16762: /* Override any GCC internal prototype to avoid an error.
16763: Use char because int might match the return type of a GCC
16764: builtin and then its argument prototype would still apply. */
1.66 paf 16765: #ifdef __cplusplus
16766: extern "C"
16767: #endif
1.128 moko 16768: char dld_link ();
1.66 paf 16769: int
16770: main ()
16771: {
1.150 moko 16772: return dld_link ();
1.66 paf 16773: ;
16774: return 0;
16775: }
16776: _ACEOF
1.150 moko 16777: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 16778: ac_cv_lib_dld_dld_link=yes
1.66 paf 16779: else
1.150 moko 16780: ac_cv_lib_dld_dld_link=no
1.128 moko 16781: fi
1.150 moko 16782: rm -f core conftest.err conftest.$ac_objext \
16783: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16784: LIBS=$ac_check_lib_save_LIBS
16785: fi
1.150 moko 16786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16787: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16788: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.128 moko 16789:
1.150 moko 16790: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 16791:
16792: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16793: fi
16794:
16795:
16796:
16797:
16798: LT_DLPREOPEN=
16799: if test -n "$LT_DLLOADERS"
16800: then
16801: for lt_loader in $LT_DLLOADERS; do
16802: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16803: done
16804:
1.150 moko 16805: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 16806:
16807: fi
16808:
16809:
16810: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16811:
16812:
16813: ac_ext=c
16814: ac_cpp='$CPP $CPPFLAGS'
16815: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16816: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16817: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16818:
16819:
1.150 moko 16820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16821: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16822: if ${lt_cv_sys_symbol_underscore+:} false; then :
16823: $as_echo_n "(cached) " >&6
1.128 moko 16824: else
16825: lt_cv_sys_symbol_underscore=no
16826: cat > conftest.$ac_ext <<_LT_EOF
16827: void nm_test_func(){}
16828: int main(){nm_test_func;return 0;}
16829: _LT_EOF
1.150 moko 16830: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 16831: (eval $ac_compile) 2>&5
16832: ac_status=$?
1.150 moko 16833: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16834: test $ac_status = 0; }; then
1.128 moko 16835: # Now try to grab the symbols.
16836: ac_nlist=conftest.nm
1.150 moko 16837: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 16838: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16839: ac_status=$?
1.150 moko 16840: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16841: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 16842: # See whether the symbols have a leading underscore.
16843: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16844: lt_cv_sys_symbol_underscore=yes
16845: else
16846: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16847: :
16848: else
16849: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16850: fi
16851: fi
16852: else
16853: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16854: fi
16855: else
16856: echo "configure: failed program was:" >&5
16857: cat conftest.c >&5
16858: fi
16859: rm -rf conftest*
1.29 paf 16860:
1.66 paf 16861: fi
1.150 moko 16862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16863: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 16864: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16865:
1.62 paf 16866:
1.128 moko 16867: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16868: if test x"$libltdl_cv_func_dlopen" = xyes ||
16869: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.150 moko 16870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16871: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16872: if ${libltdl_cv_need_uscore+:} false; then :
16873: $as_echo_n "(cached) " >&6
1.66 paf 16874: else
1.128 moko 16875: libltdl_cv_need_uscore=unknown
16876: save_LIBS="$LIBS"
16877: LIBS="$LIBS $LIBADD_DLOPEN"
16878: if test "$cross_compiling" = yes; then :
16879: libltdl_cv_need_uscore=cross
16880: else
16881: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16882: lt_status=$lt_dlunknown
16883: cat > conftest.$ac_ext <<_LT_EOF
16884: #line $LINENO "configure"
16885: #include "confdefs.h"
16886:
1.66 paf 16887: #if HAVE_DLFCN_H
1.128 moko 16888: #include <dlfcn.h>
16889: #endif
16890:
16891: #include <stdio.h>
16892:
16893: #ifdef RTLD_GLOBAL
16894: # define LT_DLGLOBAL RTLD_GLOBAL
16895: #else
16896: # ifdef DL_GLOBAL
16897: # define LT_DLGLOBAL DL_GLOBAL
16898: # else
16899: # define LT_DLGLOBAL 0
16900: # endif
16901: #endif
16902:
16903: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16904: find out it does not work in some platform. */
16905: #ifndef LT_DLLAZY_OR_NOW
16906: # ifdef RTLD_LAZY
16907: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16908: # else
16909: # ifdef DL_LAZY
16910: # define LT_DLLAZY_OR_NOW DL_LAZY
16911: # else
16912: # ifdef RTLD_NOW
16913: # define LT_DLLAZY_OR_NOW RTLD_NOW
16914: # else
16915: # ifdef DL_NOW
16916: # define LT_DLLAZY_OR_NOW DL_NOW
16917: # else
16918: # define LT_DLLAZY_OR_NOW 0
16919: # endif
16920: # endif
16921: # endif
16922: # endif
16923: #endif
16924:
16925: /* When -fvisbility=hidden is used, assume the code has been annotated
16926: correspondingly for the symbols needed. */
16927: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16928: int fnord () __attribute__((visibility("default")));
1.66 paf 16929: #endif
1.62 paf 16930:
1.128 moko 16931: int fnord () { return 42; }
16932: int main ()
1.66 paf 16933: {
1.128 moko 16934: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16935: int status = $lt_dlunknown;
16936:
16937: if (self)
16938: {
16939: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16940: else
16941: {
16942: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16943: else puts (dlerror ());
16944: }
16945: /* dlclose (self); */
16946: }
16947: else
16948: puts (dlerror ());
16949:
16950: return status;
1.66 paf 16951: }
1.128 moko 16952: _LT_EOF
1.150 moko 16953: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16954: (eval $ac_link) 2>&5
1.66 paf 16955: ac_status=$?
1.150 moko 16956: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16957: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.128 moko 16958: (./conftest; exit; ) >&5 2>/dev/null
16959: lt_status=$?
16960: case x$lt_status in
16961: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16962: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16963: x$lt_dlunknown|x*) ;;
16964: esac
16965: else :
16966: # compilation failed
16967:
16968: fi
16969: fi
16970: rm -fr conftest*
16971:
16972: LIBS="$save_LIBS"
16973:
16974: fi
1.150 moko 16975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16976: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.128 moko 16977: fi
16978: fi
16979:
16980: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16981:
1.150 moko 16982: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 16983:
1.128 moko 16984: fi
16985:
1.150 moko 16986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16987: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16988: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16989: $as_echo_n "(cached) " >&6
1.66 paf 16990: else
1.128 moko 16991: # PORTME does your system automatically load deplibs for dlopen?
16992: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16993: # For now, we just catch OSes we know something about -- in the
16994: # future, we'll try test this programmatically.
16995: lt_cv_sys_dlopen_deplibs=unknown
16996: case $host_os in
16997: aix3*|aix4.1.*|aix4.2.*)
16998: # Unknown whether this is true for these versions of AIX, but
16999: # we want this `case' here to explicitly catch those versions.
17000: lt_cv_sys_dlopen_deplibs=unknown
17001: ;;
17002: aix[4-9]*)
17003: lt_cv_sys_dlopen_deplibs=yes
17004: ;;
17005: amigaos*)
17006: case $host_cpu in
17007: powerpc)
17008: lt_cv_sys_dlopen_deplibs=no
17009: ;;
17010: esac
17011: ;;
17012: darwin*)
17013: # Assuming the user has installed a libdl from somewhere, this is true
17014: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
17015: lt_cv_sys_dlopen_deplibs=yes
17016: ;;
17017: freebsd* | dragonfly*)
17018: lt_cv_sys_dlopen_deplibs=yes
17019: ;;
17020: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
17021: # GNU and its variants, using gnu ld.so (Glibc)
17022: lt_cv_sys_dlopen_deplibs=yes
17023: ;;
17024: hpux10*|hpux11*)
17025: lt_cv_sys_dlopen_deplibs=yes
17026: ;;
17027: interix*)
17028: lt_cv_sys_dlopen_deplibs=yes
17029: ;;
17030: irix[12345]*|irix6.[01]*)
17031: # Catch all versions of IRIX before 6.2, and indicate that we don't
17032: # know how it worked for any of those versions.
17033: lt_cv_sys_dlopen_deplibs=unknown
17034: ;;
17035: irix*)
17036: # The case above catches anything before 6.2, and it's known that
17037: # at 6.2 and later dlopen does load deplibs.
17038: lt_cv_sys_dlopen_deplibs=yes
17039: ;;
17040: netbsd*)
17041: lt_cv_sys_dlopen_deplibs=yes
17042: ;;
17043: openbsd*)
17044: lt_cv_sys_dlopen_deplibs=yes
17045: ;;
17046: osf[1234]*)
17047: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
17048: # it did *not* use an RPATH in a shared library to find objects the
17049: # library depends on, so we explicitly say `no'.
17050: lt_cv_sys_dlopen_deplibs=no
17051: ;;
17052: osf5.0|osf5.0a|osf5.1)
17053: # dlopen *does* load deplibs and with the right loader patch applied
17054: # it even uses RPATH in a shared library to search for shared objects
17055: # that the library depends on, but there's no easy way to know if that
17056: # patch is installed. Since this is the case, all we can really
17057: # say is unknown -- it depends on the patch being installed. If
17058: # it is, this changes to `yes'. Without it, it would be `no'.
17059: lt_cv_sys_dlopen_deplibs=unknown
17060: ;;
17061: osf*)
17062: # the two cases above should catch all versions of osf <= 5.1. Read
17063: # the comments above for what we know about them.
17064: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
17065: # is used to find them so we can finally say `yes'.
17066: lt_cv_sys_dlopen_deplibs=yes
17067: ;;
17068: qnx*)
17069: lt_cv_sys_dlopen_deplibs=yes
17070: ;;
17071: solaris*)
17072: lt_cv_sys_dlopen_deplibs=yes
17073: ;;
17074: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17075: libltdl_cv_sys_dlopen_deplibs=yes
17076: ;;
17077: esac
17078:
17079: fi
1.150 moko 17080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
17081: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.128 moko 17082: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
17083:
1.150 moko 17084: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 17085:
17086: fi
17087:
17088: :
17089:
17090: for ac_header in argz.h
1.150 moko 17091: do :
17092: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
17093: "
17094: if test "x$ac_cv_header_argz_h" = xyes; then :
1.128 moko 17095: cat >>confdefs.h <<_ACEOF
1.150 moko 17096: #define HAVE_ARGZ_H 1
1.128 moko 17097: _ACEOF
17098:
1.66 paf 17099: fi
1.62 paf 17100:
1.128 moko 17101: done
17102:
1.29 paf 17103:
1.150 moko 17104: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 17105: # include <argz.h>
17106: #endif
1.150 moko 17107: "
17108: if test "x$ac_cv_type_error_t" = xyes; then :
1.29 paf 17109:
1.128 moko 17110: cat >>confdefs.h <<_ACEOF
17111: #define HAVE_ERROR_T 1
1.62 paf 17112: _ACEOF
1.16 paf 17113:
17114:
1.128 moko 17115: else
1.16 paf 17116:
1.150 moko 17117: $as_echo "#define error_t int" >>confdefs.h
1.16 paf 17118:
1.12 paf 17119:
1.150 moko 17120: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.12 paf 17121:
1.66 paf 17122: fi
1.12 paf 17123:
1.128 moko 17124:
17125: ARGZ_H=
17126: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
17127: argz_next argz_stringify
1.150 moko 17128: do :
17129: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17130: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17131: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17132: cat >>confdefs.h <<_ACEOF
1.150 moko 17133: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17134: _ACEOF
17135:
17136: else
17137: ARGZ_H=argz.h;
17138:
17139: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17140:
17141: fi
17142: done
17143:
17144:
1.150 moko 17145: if test -z "$ARGZ_H"; then :
17146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
17147: $as_echo_n "checking if argz actually works... " >&6; }
17148: if ${lt_cv_sys_argz_works+:} false; then :
17149: $as_echo_n "(cached) " >&6
1.128 moko 17150: else
17151: case $host_os in #(
17152: *cygwin*)
17153: lt_cv_sys_argz_works=no
17154: if test "$cross_compiling" != no; then
17155: lt_cv_sys_argz_works="guessing no"
17156: else
17157: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
17158: save_IFS=$IFS
17159: IFS=-.
17160: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
17161: IFS=$save_IFS
17162: lt_os_major=${2-0}
17163: lt_os_minor=${3-0}
17164: lt_os_micro=${4-0}
17165: if test "$lt_os_major" -gt 1 \
17166: || { test "$lt_os_major" -eq 1 \
17167: && { test "$lt_os_minor" -gt 5 \
17168: || { test "$lt_os_minor" -eq 5 \
17169: && test "$lt_os_micro" -gt 24; }; }; }; then
17170: lt_cv_sys_argz_works=yes
17171: fi
17172: fi
17173: ;; #(
17174: *) lt_cv_sys_argz_works=yes ;;
17175: esac
17176: fi
1.150 moko 17177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
17178: $as_echo "$lt_cv_sys_argz_works" >&6; }
17179: if test "$lt_cv_sys_argz_works" = yes; then :
1.128 moko 17180:
1.150 moko 17181: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 17182:
1.62 paf 17183: else
1.128 moko 17184: ARGZ_H=argz.h
17185:
17186:
17187: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17188:
17189: fi
1.62 paf 17190: fi
1.128 moko 17191:
17192:
17193:
1.150 moko 17194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
17195: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
17196: if ${libltdl_cv_preloaded_symbols+:} false; then :
17197: $as_echo_n "(cached) " >&6
1.128 moko 17198: else
17199: if test -n "$lt_cv_sys_global_symbol_pipe"; then
17200: libltdl_cv_preloaded_symbols=yes
17201: else
17202: libltdl_cv_preloaded_symbols=no
17203: fi
17204:
1.62 paf 17205: fi
1.150 moko 17206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
17207: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.128 moko 17208: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17209:
1.150 moko 17210: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 17211:
17212: fi
17213:
1.150 moko 17214:
17215:
1.128 moko 17216: # Set options
17217:
17218:
17219:
17220:
17221:
17222:
17223:
17224:
17225:
17226:
1.66 paf 17227:
17228:
1.150 moko 17229: # Check whether --with-included_ltdl was given.
17230: if test "${with_included_ltdl+set}" = set; then :
17231: withval=$with_included_ltdl;
17232: fi
1.64 paf 17233:
17234:
1.128 moko 17235: if test "x$with_included_ltdl" != xyes; then
17236: # We are not being forced to use the included libltdl sources, so
17237: # decide whether there is a useful installed version we can use.
1.150 moko 17238: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 17239:
1.150 moko 17240: "
17241: if test "x$ac_cv_header_ltdl_h" = xyes; then :
17242: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 17243: #include <ltdl.h>
1.150 moko 17244: "
17245: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
17246: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
17247: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
17248: if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
17249: $as_echo_n "(cached) " >&6
1.79 paf 17250: else
1.128 moko 17251: ac_check_lib_save_LIBS=$LIBS
17252: LIBS="-lltdl $LIBS"
1.150 moko 17253: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 17254: /* end confdefs.h. */
1.128 moko 17255:
1.150 moko 17256: /* Override any GCC internal prototype to avoid an error.
17257: Use char because int might match the return type of a GCC
17258: builtin and then its argument prototype would still apply. */
1.128 moko 17259: #ifdef __cplusplus
17260: extern "C"
17261: #endif
17262: char lt_dladvise_preload ();
1.79 paf 17263: int
17264: main ()
17265: {
1.150 moko 17266: return lt_dladvise_preload ();
1.79 paf 17267: ;
17268: return 0;
17269: }
17270: _ACEOF
1.150 moko 17271: if ac_fn_c_try_link "$LINENO"; then :
1.128 moko 17272: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 17273: else
1.150 moko 17274: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.128 moko 17275: fi
1.150 moko 17276: rm -f core conftest.err conftest.$ac_objext \
17277: conftest$ac_exeext conftest.$ac_ext
1.128 moko 17278: LIBS=$ac_check_lib_save_LIBS
1.79 paf 17279: fi
1.150 moko 17280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17281: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
17282: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
1.128 moko 17283: with_included_ltdl=no
1.79 paf 17284: else
1.128 moko 17285: with_included_ltdl=yes
17286: fi
17287:
1.79 paf 17288: else
1.128 moko 17289: with_included_ltdl=yes
17290: fi
1.79 paf 17291:
1.128 moko 17292: else
17293: with_included_ltdl=yes
1.79 paf 17294: fi
1.128 moko 17295:
17296:
1.79 paf 17297: fi
1.128 moko 17298:
17299:
17300:
17301:
1.150 moko 17302: # Check whether --with-ltdl_include was given.
17303: if test "${with_ltdl_include+set}" = set; then :
17304: withval=$with_ltdl_include;
17305: fi
1.128 moko 17306:
17307:
17308: if test -n "$with_ltdl_include"; then
17309: if test -f "$with_ltdl_include/ltdl.h"; then :
17310: else
1.150 moko 17311: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.128 moko 17312: fi
17313: else
17314: with_ltdl_include=no
1.79 paf 17315: fi
1.128 moko 17316:
17317:
1.150 moko 17318: # Check whether --with-ltdl_lib was given.
17319: if test "${with_ltdl_lib+set}" = set; then :
17320: withval=$with_ltdl_lib;
17321: fi
1.128 moko 17322:
17323:
17324: if test -n "$with_ltdl_lib"; then
17325: if test -f "$with_ltdl_lib/libltdl.la"; then :
17326: else
1.150 moko 17327: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.128 moko 17328: fi
17329: else
17330: with_ltdl_lib=no
1.79 paf 17331: fi
17332:
1.128 moko 17333: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17334: ,yes,no,no,)
17335: case $enable_ltdl_convenience in
1.150 moko 17336: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 17337: "") enable_ltdl_convenience=yes
17338: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17339: esac
1.150 moko 17340: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 17341: LTDLDEPS=$LIBLTDL
17342: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17343:
17344:
17345:
17346:
17347:
17348: # For backwards non-gettext consistent compatibility...
17349: INCLTDL="$LTDLINCL"
17350:
1.79 paf 17351:
1.128 moko 17352: ;;
17353: ,no,no,no,)
17354: # If the included ltdl is not to be used, then use the
17355: # preinstalled libltdl we found.
1.79 paf 17356:
1.150 moko 17357: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 17358:
1.128 moko 17359: LIBLTDL=-lltdl
17360: LTDLDEPS=
17361: LTDLINCL=
17362: ;;
17363: ,no*,no,*)
1.150 moko 17364: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 17365: ;;
17366: *) with_included_ltdl=no
17367: LIBLTDL="-L$with_ltdl_lib -lltdl"
17368: LTDLDEPS=
17369: LTDLINCL="-I$with_ltdl_include"
17370: ;;
17371: esac
17372: INCLTDL="$LTDLINCL"
17373:
17374: # Report our decision...
1.150 moko 17375: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17376: $as_echo_n "checking where to find libltdl headers... " >&6; }
17377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17378: $as_echo "$LTDLINCL" >&6; }
17379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17380: $as_echo_n "checking where to find libltdl library... " >&6; }
17381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17382: $as_echo "$LIBLTDL" >&6; }
1.128 moko 17383:
17384:
17385:
1.150 moko 17386: # Check whether --enable-ltdl-install was given.
17387: if test "${enable_ltdl_install+set}" = set; then :
17388: enableval=$enable_ltdl_install;
17389: fi
1.128 moko 17390:
17391:
17392: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17393: *yes*) ;;
17394: *) enable_ltdl_convenience=yes ;;
17395: esac
17396:
1.150 moko 17397: if test x"${enable_ltdl_install-no}" != xno; then
1.128 moko 17398: INSTALL_LTDL_TRUE=
17399: INSTALL_LTDL_FALSE='#'
17400: else
17401: INSTALL_LTDL_TRUE='#'
17402: INSTALL_LTDL_FALSE=
17403: fi
17404:
1.150 moko 17405: if test x"${enable_ltdl_convenience-no}" != xno; then
1.128 moko 17406: CONVENIENCE_LTDL_TRUE=
17407: CONVENIENCE_LTDL_FALSE='#'
17408: else
17409: CONVENIENCE_LTDL_TRUE='#'
17410: CONVENIENCE_LTDL_FALSE=
17411: fi
17412:
17413:
17414:
1.150 moko 17415: subdirs="$subdirs src/lib/ltdl"
1.128 moko 17416:
17417:
17418:
17419:
17420: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17421: # the user used. This is so that ltdl.h can pick up the parent projects
17422: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17423: # definitions required by ltdl.c.
17424: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17425:
17426:
17427:
1.150 moko 17428: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17429: do :
17430: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17431: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17432: "
17433: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17434: cat >>confdefs.h <<_ACEOF
17435: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17436: _ACEOF
1.128 moko 17437:
1.150 moko 17438: fi
1.128 moko 17439:
1.150 moko 17440: done
1.128 moko 17441:
17442:
1.150 moko 17443: for ac_func in closedir opendir readdir
17444: do :
17445: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17447: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17448: cat >>confdefs.h <<_ACEOF
17449: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17450: _ACEOF
1.66 paf 17451:
17452: else
1.64 paf 17453:
1.66 paf 17454:
1.128 moko 17455: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17456:
1.66 paf 17457: fi
1.128 moko 17458: done
17459:
17460: for ac_func in strlcat strlcpy
1.150 moko 17461: do :
17462: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17463: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17464: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.128 moko 17465: cat >>confdefs.h <<_ACEOF
1.150 moko 17466: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.128 moko 17467: _ACEOF
17468:
17469: else
17470:
17471:
17472: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17473:
1.62 paf 17474: fi
1.128 moko 17475: done
17476:
17477:
1.64 paf 17478:
1.128 moko 17479: cat >>confdefs.h <<_ACEOF
17480: #define LT_LIBEXT "$libext"
1.62 paf 17481: _ACEOF
1.64 paf 17482:
1.128 moko 17483:
17484: name=
17485: eval "lt_libprefix=\"$libname_spec\""
17486:
17487: cat >>confdefs.h <<_ACEOF
17488: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17489: _ACEOF
1.128 moko 17490:
17491:
17492: name=ltdl
17493: eval "LTDLOPEN=\"$libname_spec\""
17494:
17495:
17496:
17497:
17498:
17499:
17500:
17501:
17502: # Only expand once:
17503:
17504:
17505:
17506:
1.150 moko 17507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17508: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17509: if ${ac_cv_c_bigendian+:} false; then :
17510: $as_echo_n "(cached) " >&6
17511: else
17512: ac_cv_c_bigendian=unknown
17513: # See if we're dealing with a universal compiler.
17514: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17515: /* end confdefs.h. */
17516: #ifndef __APPLE_CC__
17517: not a universal capable compiler
17518: #endif
17519: typedef int dummy;
17520:
17521: _ACEOF
17522: if ac_fn_c_try_compile "$LINENO"; then :
17523:
17524: # Check for potential -arch flags. It is not universal unless
17525: # there are at least two -arch flags with different values.
17526: ac_arch=
17527: ac_prev=
17528: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17529: if test -n "$ac_prev"; then
17530: case $ac_word in
17531: i?86 | x86_64 | ppc | ppc64)
17532: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17533: ac_arch=$ac_word
17534: else
17535: ac_cv_c_bigendian=universal
17536: break
17537: fi
17538: ;;
17539: esac
17540: ac_prev=
17541: elif test "x$ac_word" = "x-arch"; then
17542: ac_prev=arch
17543: fi
17544: done
17545: fi
17546: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547: if test $ac_cv_c_bigendian = unknown; then
17548: # See if sys/param.h defines the BYTE_ORDER macro.
17549: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 17550: /* end confdefs.h. */
1.128 moko 17551: #include <sys/types.h>
1.150 moko 17552: #include <sys/param.h>
1.128 moko 17553:
17554: int
17555: main ()
17556: {
1.150 moko 17557: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17558: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17559: && LITTLE_ENDIAN)
17560: bogus endian macros
17561: #endif
1.64 paf 17562:
1.128 moko 17563: ;
17564: return 0;
17565: }
1.66 paf 17566: _ACEOF
1.150 moko 17567: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17568: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 17569: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 17570: /* end confdefs.h. */
1.128 moko 17571: #include <sys/types.h>
1.150 moko 17572: #include <sys/param.h>
1.64 paf 17573:
17574: int
17575: main ()
1.128 moko 17576: {
17577: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 17578: not big endian
17579: #endif
1.128 moko 17580:
17581: ;
17582: return 0;
1.64 paf 17583: }
17584: _ACEOF
1.150 moko 17585: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17586: ac_cv_c_bigendian=yes
1.64 paf 17587: else
1.150 moko 17588: ac_cv_c_bigendian=no
17589: fi
17590: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591: fi
17592: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17593: fi
17594: if test $ac_cv_c_bigendian = unknown; then
17595: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17596: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597: /* end confdefs.h. */
17598: #include <limits.h>
1.64 paf 17599:
1.150 moko 17600: int
17601: main ()
17602: {
17603: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17604: bogus endian macros
17605: #endif
1.66 paf 17606:
1.150 moko 17607: ;
17608: return 0;
17609: }
1.62 paf 17610: _ACEOF
1.150 moko 17611: if ac_fn_c_try_compile "$LINENO"; then :
17612: # It does; now see whether it defined to _BIG_ENDIAN or not.
17613: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 17614: /* end confdefs.h. */
1.150 moko 17615: #include <limits.h>
17616:
1.128 moko 17617: int
17618: main ()
17619: {
1.150 moko 17620: #ifndef _BIG_ENDIAN
17621: not big endian
17622: #endif
17623:
1.128 moko 17624: ;
17625: return 0;
17626: }
1.62 paf 17627: _ACEOF
1.150 moko 17628: if ac_fn_c_try_compile "$LINENO"; then :
1.128 moko 17629: ac_cv_c_bigendian=yes
1.150 moko 17630: else
17631: ac_cv_c_bigendian=no
1.128 moko 17632: fi
1.150 moko 17633: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17634: fi
1.150 moko 17635: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17636: fi
17637: if test $ac_cv_c_bigendian = unknown; then
17638: # Compile a test program.
17639: if test "$cross_compiling" = yes; then :
17640: # Try to guess by grepping values from an object file.
17641: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17642: /* end confdefs.h. */
17643: short int ascii_mm[] =
17644: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17645: short int ascii_ii[] =
17646: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17647: int use_ascii (int i) {
17648: return ascii_mm[i] + ascii_ii[i];
17649: }
17650: short int ebcdic_ii[] =
17651: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17652: short int ebcdic_mm[] =
17653: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17654: int use_ebcdic (int i) {
17655: return ebcdic_mm[i] + ebcdic_ii[i];
17656: }
17657: extern int foo;
1.62 paf 17658:
1.150 moko 17659: int
17660: main ()
17661: {
17662: return use_ascii (foo) == use_ebcdic (foo);
17663: ;
17664: return 0;
17665: }
17666: _ACEOF
17667: if ac_fn_c_try_compile "$LINENO"; then :
17668: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17669: ac_cv_c_bigendian=yes
17670: fi
17671: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17672: if test "$ac_cv_c_bigendian" = unknown; then
17673: ac_cv_c_bigendian=no
17674: else
17675: # finding both strings is unlikely to happen, but who knows?
17676: ac_cv_c_bigendian=unknown
17677: fi
17678: fi
1.128 moko 17679: fi
1.150 moko 17680: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17681: else
1.150 moko 17682: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17683: /* end confdefs.h. */
1.150 moko 17684: $ac_includes_default
1.128 moko 17685: int
17686: main ()
17687: {
1.150 moko 17688:
17689: /* Are we little or big endian? From Harbison&Steele. */
17690: union
17691: {
17692: long int l;
17693: char c[sizeof (long int)];
17694: } u;
17695: u.l = 1;
17696: return u.c[sizeof (long int) - 1] == 1;
17697:
17698: ;
17699: return 0;
1.128 moko 17700: }
17701: _ACEOF
1.150 moko 17702: if ac_fn_c_try_run "$LINENO"; then :
1.128 moko 17703: ac_cv_c_bigendian=no
17704: else
1.150 moko 17705: ac_cv_c_bigendian=yes
1.128 moko 17706: fi
1.150 moko 17707: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17708: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 17709: fi
1.150 moko 17710:
17711: fi
1.66 paf 17712: fi
1.150 moko 17713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17714: $as_echo "$ac_cv_c_bigendian" >&6; }
17715: case $ac_cv_c_bigendian in #(
17716: yes)
17717:
17718: $as_echo "#define PA_BIG_ENDIAN /**/" >>confdefs.h
17719:
17720: ;; #(
17721: no)
1.128 moko 17722:
1.150 moko 17723: $as_echo "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 17724:
1.150 moko 17725: ;; #(
17726: universal)
1.128 moko 17727:
1.150 moko 17728: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 17729:
1.150 moko 17730: ;; #(
17731: *)
17732: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 17733: ;;
1.150 moko 17734: esac
1.66 paf 17735:
17736:
1.150 moko 17737: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17738: if test "x$ac_cv_type_size_t" = xyes; then :
1.62 paf 17739:
1.66 paf 17740: else
1.1 paf 17741:
1.66 paf 17742: cat >>confdefs.h <<_ACEOF
1.150 moko 17743: #define size_t unsigned int
1.66 paf 17744: _ACEOF
1.62 paf 17745:
17746: fi
1.66 paf 17747:
1.156 moko 17748: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17749: if test "x$ac_cv_type_ssize_t" = xyes; then :
17750:
17751: else
17752:
17753: cat >>confdefs.h <<_ACEOF
17754: #define ssize_t int
17755: _ACEOF
17756:
17757: fi
17758:
1.159 moko 17759: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17760: case $ac_cv_c_uint8_t in #(
17761: no|yes) ;; #(
17762: *)
17763:
17764: $as_echo "#define _UINT8_T 1" >>confdefs.h
17765:
17766:
17767: cat >>confdefs.h <<_ACEOF
17768: #define uint8_t $ac_cv_c_uint8_t
17769: _ACEOF
17770: ;;
17771: esac
17772:
1.165 moko 17773: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17774: case $ac_cv_c_uint16_t in #(
17775: no|yes) ;; #(
17776: *)
17777:
17778:
17779: cat >>confdefs.h <<_ACEOF
17780: #define uint16_t $ac_cv_c_uint16_t
17781: _ACEOF
17782: ;;
17783: esac
17784:
1.156 moko 17785: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17786: case $ac_cv_c_uint32_t in #(
17787: no|yes) ;; #(
17788: *)
17789:
17790: $as_echo "#define _UINT32_T 1" >>confdefs.h
17791:
17792:
17793: cat >>confdefs.h <<_ACEOF
17794: #define uint32_t $ac_cv_c_uint32_t
17795: _ACEOF
17796: ;;
17797: esac
1.128 moko 17798:
1.159 moko 17799: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17800: case $ac_cv_c_uint64_t in #(
17801: no|yes) ;; #(
17802: *)
17803:
17804: $as_echo "#define _UINT64_T 1" >>confdefs.h
17805:
17806:
17807: cat >>confdefs.h <<_ACEOF
17808: #define uint64_t $ac_cv_c_uint64_t
17809: _ACEOF
17810: ;;
17811: esac
17812:
17813:
1.161 moko 17814: ac_header_dirent=no
17815: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17816: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17817: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17818: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17819: if eval \${$as_ac_Header+:} false; then :
17820: $as_echo_n "(cached) " >&6
17821: else
17822: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823: /* end confdefs.h. */
17824: #include <sys/types.h>
17825: #include <$ac_hdr>
17826:
17827: int
17828: main ()
17829: {
17830: if ((DIR *) 0)
17831: return 0;
17832: ;
17833: return 0;
17834: }
17835: _ACEOF
17836: if ac_fn_c_try_compile "$LINENO"; then :
17837: eval "$as_ac_Header=yes"
17838: else
17839: eval "$as_ac_Header=no"
17840: fi
17841: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842: fi
17843: eval ac_res=\$$as_ac_Header
17844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17845: $as_echo "$ac_res" >&6; }
17846: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17847: cat >>confdefs.h <<_ACEOF
17848: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17849: _ACEOF
17850:
17851: ac_header_dirent=$ac_hdr; break
17852: fi
17853:
17854: done
17855: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17856: if test $ac_header_dirent = dirent.h; then
17857: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17858: $as_echo_n "checking for library containing opendir... " >&6; }
17859: if ${ac_cv_search_opendir+:} false; then :
17860: $as_echo_n "(cached) " >&6
17861: else
17862: ac_func_search_save_LIBS=$LIBS
17863: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17864: /* end confdefs.h. */
17865:
17866: /* Override any GCC internal prototype to avoid an error.
17867: Use char because int might match the return type of a GCC
17868: builtin and then its argument prototype would still apply. */
17869: #ifdef __cplusplus
17870: extern "C"
17871: #endif
17872: char opendir ();
17873: int
17874: main ()
17875: {
17876: return opendir ();
17877: ;
17878: return 0;
17879: }
17880: _ACEOF
17881: for ac_lib in '' dir; do
17882: if test -z "$ac_lib"; then
17883: ac_res="none required"
17884: else
17885: ac_res=-l$ac_lib
17886: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17887: fi
17888: if ac_fn_c_try_link "$LINENO"; then :
17889: ac_cv_search_opendir=$ac_res
17890: fi
17891: rm -f core conftest.err conftest.$ac_objext \
17892: conftest$ac_exeext
17893: if ${ac_cv_search_opendir+:} false; then :
17894: break
17895: fi
17896: done
17897: if ${ac_cv_search_opendir+:} false; then :
17898:
17899: else
17900: ac_cv_search_opendir=no
17901: fi
17902: rm conftest.$ac_ext
17903: LIBS=$ac_func_search_save_LIBS
17904: fi
17905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17906: $as_echo "$ac_cv_search_opendir" >&6; }
17907: ac_res=$ac_cv_search_opendir
17908: if test "$ac_res" != no; then :
17909: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17910:
17911: fi
17912:
17913: else
17914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17915: $as_echo_n "checking for library containing opendir... " >&6; }
17916: if ${ac_cv_search_opendir+:} false; then :
17917: $as_echo_n "(cached) " >&6
17918: else
17919: ac_func_search_save_LIBS=$LIBS
17920: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921: /* end confdefs.h. */
17922:
17923: /* Override any GCC internal prototype to avoid an error.
17924: Use char because int might match the return type of a GCC
17925: builtin and then its argument prototype would still apply. */
17926: #ifdef __cplusplus
17927: extern "C"
17928: #endif
17929: char opendir ();
17930: int
17931: main ()
17932: {
17933: return opendir ();
17934: ;
17935: return 0;
17936: }
17937: _ACEOF
17938: for ac_lib in '' x; do
17939: if test -z "$ac_lib"; then
17940: ac_res="none required"
17941: else
17942: ac_res=-l$ac_lib
17943: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17944: fi
17945: if ac_fn_c_try_link "$LINENO"; then :
17946: ac_cv_search_opendir=$ac_res
17947: fi
17948: rm -f core conftest.err conftest.$ac_objext \
17949: conftest$ac_exeext
17950: if ${ac_cv_search_opendir+:} false; then :
17951: break
17952: fi
17953: done
17954: if ${ac_cv_search_opendir+:} false; then :
17955:
17956: else
17957: ac_cv_search_opendir=no
17958: fi
17959: rm conftest.$ac_ext
17960: LIBS=$ac_func_search_save_LIBS
17961: fi
17962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17963: $as_echo "$ac_cv_search_opendir" >&6; }
17964: ac_res=$ac_cv_search_opendir
17965: if test "$ac_res" != no; then :
17966: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17967:
17968: fi
17969:
17970: fi
17971:
17972:
17973:
17974: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17975: #include <sys/types.h>
17976: #ifdef HAVE_DIRENT_H
17977: # include <dirent.h>
17978: #else
17979: # define dirent direct
17980: # ifdef HAVE_SYS_NDIR_H
17981: # include <sys/ndir.h>
17982: # endif
17983: # ifdef HAVE_SYS_DIR_H
17984: # include <sys/dir.h>
17985: # endif
17986: # ifdef HAVE_NDIR_H
17987: # include <ndir.h>
17988: # endif
17989: #endif
17990:
17991: "
17992: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17993:
17994: cat >>confdefs.h <<_ACEOF
17995: #define HAVE_STRUCT_DIRENT_D_TYPE 1
17996: _ACEOF
17997:
17998:
17999: fi
18000:
18001:
1.159 moko 18002:
1.171 moko 18003: # Check whether --enable-largefile was given.
18004: if test "${enable_largefile+set}" = set; then :
18005: enableval=$enable_largefile;
18006: fi
18007:
18008: if test "$enable_largefile" != no; then
18009:
18010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18011: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18012: if ${ac_cv_sys_largefile_CC+:} false; then :
18013: $as_echo_n "(cached) " >&6
18014: else
18015: ac_cv_sys_largefile_CC=no
18016: if test "$GCC" != yes; then
18017: ac_save_CC=$CC
18018: while :; do
18019: # IRIX 6.2 and later do not support large files by default,
18020: # so use the C compiler's -n32 option if that helps.
18021: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022: /* end confdefs.h. */
18023: #include <sys/types.h>
18024: /* Check that off_t can represent 2**63 - 1 correctly.
18025: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18026: since some C++ compilers masquerading as C compilers
18027: incorrectly reject 9223372036854775807. */
1.191 moko 18028: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18029: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18030: && LARGE_OFF_T % 2147483647 == 1)
18031: ? 1 : -1];
18032: int
18033: main ()
18034: {
18035:
18036: ;
18037: return 0;
18038: }
18039: _ACEOF
18040: if ac_fn_c_try_compile "$LINENO"; then :
18041: break
18042: fi
18043: rm -f core conftest.err conftest.$ac_objext
18044: CC="$CC -n32"
18045: if ac_fn_c_try_compile "$LINENO"; then :
18046: ac_cv_sys_largefile_CC=' -n32'; break
18047: fi
18048: rm -f core conftest.err conftest.$ac_objext
18049: break
18050: done
18051: CC=$ac_save_CC
18052: rm -f conftest.$ac_ext
18053: fi
18054: fi
18055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18056: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18057: if test "$ac_cv_sys_largefile_CC" != no; then
18058: CC=$CC$ac_cv_sys_largefile_CC
18059: fi
18060:
18061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18062: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18063: if ${ac_cv_sys_file_offset_bits+:} false; then :
18064: $as_echo_n "(cached) " >&6
18065: else
18066: while :; do
18067: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18068: /* end confdefs.h. */
18069: #include <sys/types.h>
18070: /* Check that off_t can represent 2**63 - 1 correctly.
18071: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18072: since some C++ compilers masquerading as C compilers
18073: incorrectly reject 9223372036854775807. */
1.191 moko 18074: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18075: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18076: && LARGE_OFF_T % 2147483647 == 1)
18077: ? 1 : -1];
18078: int
18079: main ()
18080: {
18081:
18082: ;
18083: return 0;
18084: }
18085: _ACEOF
18086: if ac_fn_c_try_compile "$LINENO"; then :
18087: ac_cv_sys_file_offset_bits=no; break
18088: fi
18089: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091: /* end confdefs.h. */
18092: #define _FILE_OFFSET_BITS 64
18093: #include <sys/types.h>
18094: /* Check that off_t can represent 2**63 - 1 correctly.
18095: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18096: since some C++ compilers masquerading as C compilers
18097: incorrectly reject 9223372036854775807. */
1.191 moko 18098: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18099: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18100: && LARGE_OFF_T % 2147483647 == 1)
18101: ? 1 : -1];
18102: int
18103: main ()
18104: {
18105:
18106: ;
18107: return 0;
18108: }
18109: _ACEOF
18110: if ac_fn_c_try_compile "$LINENO"; then :
18111: ac_cv_sys_file_offset_bits=64; break
18112: fi
18113: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114: ac_cv_sys_file_offset_bits=unknown
18115: break
18116: done
18117: fi
18118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18119: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18120: case $ac_cv_sys_file_offset_bits in #(
18121: no | unknown) ;;
18122: *)
18123: cat >>confdefs.h <<_ACEOF
18124: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18125: _ACEOF
18126: ;;
18127: esac
18128: rm -rf conftest*
18129: if test $ac_cv_sys_file_offset_bits = unknown; then
18130: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18131: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18132: if ${ac_cv_sys_large_files+:} false; then :
18133: $as_echo_n "(cached) " >&6
18134: else
18135: while :; do
18136: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137: /* end confdefs.h. */
18138: #include <sys/types.h>
18139: /* Check that off_t can represent 2**63 - 1 correctly.
18140: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18141: since some C++ compilers masquerading as C compilers
18142: incorrectly reject 9223372036854775807. */
1.191 moko 18143: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18144: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18145: && LARGE_OFF_T % 2147483647 == 1)
18146: ? 1 : -1];
18147: int
18148: main ()
18149: {
18150:
18151: ;
18152: return 0;
18153: }
18154: _ACEOF
18155: if ac_fn_c_try_compile "$LINENO"; then :
18156: ac_cv_sys_large_files=no; break
18157: fi
18158: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18159: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160: /* end confdefs.h. */
18161: #define _LARGE_FILES 1
18162: #include <sys/types.h>
18163: /* Check that off_t can represent 2**63 - 1 correctly.
18164: We can't simply define LARGE_OFF_T to be 9223372036854775807,
18165: since some C++ compilers masquerading as C compilers
18166: incorrectly reject 9223372036854775807. */
1.191 moko 18167: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.171 moko 18168: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18169: && LARGE_OFF_T % 2147483647 == 1)
18170: ? 1 : -1];
18171: int
18172: main ()
18173: {
18174:
18175: ;
18176: return 0;
18177: }
18178: _ACEOF
18179: if ac_fn_c_try_compile "$LINENO"; then :
18180: ac_cv_sys_large_files=1; break
18181: fi
18182: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18183: ac_cv_sys_large_files=unknown
18184: break
18185: done
18186: fi
18187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18188: $as_echo "$ac_cv_sys_large_files" >&6; }
18189: case $ac_cv_sys_large_files in #(
18190: no | unknown) ;;
18191: *)
18192: cat >>confdefs.h <<_ACEOF
18193: #define _LARGE_FILES $ac_cv_sys_large_files
18194: _ACEOF
18195: ;;
18196: esac
18197: rm -rf conftest*
18198: fi
18199:
18200:
18201: fi
18202:
18203:
1.159 moko 18204: 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
18205: do :
18206: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18207: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18208: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18209: cat >>confdefs.h <<_ACEOF
18210: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18211: _ACEOF
18212:
18213: fi
1.150 moko 18214:
1.159 moko 18215: done
18216:
1.229 moko 18217: for ac_header in time.h sys/time.h assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h pthread.h
1.159 moko 18218: do :
18219: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18220: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18221: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18222: cat >>confdefs.h <<_ACEOF
18223: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18224: _ACEOF
18225:
18226: fi
18227:
18228: done
18229:
1.164 moko 18230: 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 18231: do :
18232: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18233: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18234: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18235: cat >>confdefs.h <<_ACEOF
18236: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18237: _ACEOF
18238:
18239: fi
18240:
18241: done
18242:
1.163 moko 18243: for ac_header in sys/socket.h netinet/in.h arpa/inet.h netdb.h
1.150 moko 18244: do :
18245: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18246: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18247: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.66 paf 18248: cat >>confdefs.h <<_ACEOF
1.150 moko 18249: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18250: _ACEOF
18251:
18252: fi
18253:
1.66 paf 18254: done
1.62 paf 18255:
18256:
18257:
1.66 paf 18258: case "$host" in
1.107 misha 18259: *-freebsd4*)
18260:
1.150 moko 18261: $as_echo "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 18262:
18263: ;;
1.195 moko 18264: *-freebsd1*)
18265:
18266: $as_echo "#define FREEBSD1X /**/" >>confdefs.h
18267:
18268: ;;
1.66 paf 18269: *-sunos5.6* | *-solaris2.6*)
1.150 moko 18270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
18271: $as_echo_n "checking for main in -lxnet... " >&6; }
18272: if ${ac_cv_lib_xnet_main+:} false; then :
18273: $as_echo_n "(cached) " >&6
1.62 paf 18274: else
1.66 paf 18275: ac_check_lib_save_LIBS=$LIBS
18276: LIBS="-lxnet $LIBS"
1.150 moko 18277: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18278: /* end confdefs.h. */
18279:
1.66 paf 18280:
18281: int
18282: main ()
18283: {
1.150 moko 18284: return main ();
1.66 paf 18285: ;
18286: return 0;
18287: }
1.62 paf 18288: _ACEOF
1.150 moko 18289: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18290: ac_cv_lib_xnet_main=yes
1.62 paf 18291: else
1.150 moko 18292: ac_cv_lib_xnet_main=no
1.62 paf 18293: fi
1.150 moko 18294: rm -f core conftest.err conftest.$ac_objext \
18295: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18296: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18297: fi
1.150 moko 18298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
18299: $as_echo "$ac_cv_lib_xnet_main" >&6; }
18300: if test "x$ac_cv_lib_xnet_main" = xyes; then :
1.62 paf 18301: cat >>confdefs.h <<_ACEOF
1.66 paf 18302: #define HAVE_LIBXNET 1
1.62 paf 18303: _ACEOF
1.1 paf 18304:
1.66 paf 18305: LIBS="-lxnet $LIBS"
18306:
1.1 paf 18307: fi
18308:
1.66 paf 18309: ;;
18310: *-sunos5* | *-solaris2*)
1.150 moko 18311: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
18312: $as_echo_n "checking for main in -lsocket... " >&6; }
18313: if ${ac_cv_lib_socket_main+:} false; then :
18314: $as_echo_n "(cached) " >&6
1.62 paf 18315: else
1.66 paf 18316: ac_check_lib_save_LIBS=$LIBS
18317: LIBS="-lsocket $LIBS"
1.150 moko 18318: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18319: /* end confdefs.h. */
1.66 paf 18320:
18321:
1.62 paf 18322: int
18323: main ()
18324: {
1.150 moko 18325: return main ();
1.62 paf 18326: ;
18327: return 0;
18328: }
18329: _ACEOF
1.150 moko 18330: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18331: ac_cv_lib_socket_main=yes
1.1 paf 18332: else
1.150 moko 18333: ac_cv_lib_socket_main=no
1.1 paf 18334: fi
1.150 moko 18335: rm -f core conftest.err conftest.$ac_objext \
18336: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18337: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18338: fi
1.150 moko 18339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
18340: $as_echo "$ac_cv_lib_socket_main" >&6; }
18341: if test "x$ac_cv_lib_socket_main" = xyes; then :
1.66 paf 18342: cat >>confdefs.h <<_ACEOF
18343: #define HAVE_LIBSOCKET 1
18344: _ACEOF
1.1 paf 18345:
1.66 paf 18346: LIBS="-lsocket $LIBS"
1.1 paf 18347:
18348: fi
18349:
1.150 moko 18350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
18351: $as_echo_n "checking for main in -lnsl... " >&6; }
18352: if ${ac_cv_lib_nsl_main+:} false; then :
18353: $as_echo_n "(cached) " >&6
1.62 paf 18354: else
1.66 paf 18355: ac_check_lib_save_LIBS=$LIBS
18356: LIBS="-lnsl $LIBS"
1.150 moko 18357: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18358: /* end confdefs.h. */
1.66 paf 18359:
18360:
1.62 paf 18361: int
18362: main ()
18363: {
1.150 moko 18364: return main ();
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_nsl_main=yes
1.30 paf 18371: else
1.150 moko 18372: ac_cv_lib_nsl_main=no
1.30 paf 18373: fi
1.150 moko 18374: rm -f core conftest.err conftest.$ac_objext \
18375: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18376: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18377: fi
1.150 moko 18378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
18379: $as_echo "$ac_cv_lib_nsl_main" >&6; }
18380: if test "x$ac_cv_lib_nsl_main" = xyes; then :
1.66 paf 18381: cat >>confdefs.h <<_ACEOF
18382: #define HAVE_LIBNSL 1
18383: _ACEOF
1.30 paf 18384:
1.66 paf 18385: LIBS="-lnsl $LIBS"
1.30 paf 18386:
18387: fi
18388:
1.66 paf 18389: ;;
18390: *-nec-sysv4*)
1.150 moko 18391: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18392: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18393: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18394: $as_echo_n "(cached) " >&6
1.62 paf 18395: else
1.66 paf 18396: ac_check_lib_save_LIBS=$LIBS
18397: LIBS="-lnsl $LIBS"
1.150 moko 18398: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18399: /* end confdefs.h. */
1.66 paf 18400:
1.150 moko 18401: /* Override any GCC internal prototype to avoid an error.
18402: Use char because int might match the return type of a GCC
18403: builtin and then its argument prototype would still apply. */
1.66 paf 18404: #ifdef __cplusplus
18405: extern "C"
18406: #endif
18407: char gethostbyname ();
1.62 paf 18408: int
18409: main ()
18410: {
1.150 moko 18411: return gethostbyname ();
1.62 paf 18412: ;
18413: return 0;
18414: }
18415: _ACEOF
1.150 moko 18416: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18417: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18418: else
1.150 moko 18419: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18420: fi
1.150 moko 18421: rm -f core conftest.err conftest.$ac_objext \
18422: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18423: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18424: fi
1.150 moko 18425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18426: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18427: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.66 paf 18428: cat >>confdefs.h <<_ACEOF
18429: #define HAVE_LIBNSL 1
18430: _ACEOF
1.30 paf 18431:
1.66 paf 18432: LIBS="-lnsl $LIBS"
1.30 paf 18433:
18434: fi
18435:
1.150 moko 18436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18437: $as_echo_n "checking for socket in -lsocket... " >&6; }
18438: if ${ac_cv_lib_socket_socket+:} false; then :
18439: $as_echo_n "(cached) " >&6
1.8 paf 18440: else
1.66 paf 18441: ac_check_lib_save_LIBS=$LIBS
18442: LIBS="-lsocket $LIBS"
1.150 moko 18443: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18444: /* end confdefs.h. */
18445:
1.150 moko 18446: /* Override any GCC internal prototype to avoid an error.
18447: Use char because int might match the return type of a GCC
18448: builtin and then its argument prototype would still apply. */
1.66 paf 18449: #ifdef __cplusplus
18450: extern "C"
18451: #endif
18452: char socket ();
1.62 paf 18453: int
18454: main ()
18455: {
1.150 moko 18456: return socket ();
1.62 paf 18457: ;
18458: return 0;
18459: }
18460: _ACEOF
1.150 moko 18461: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18462: ac_cv_lib_socket_socket=yes
1.8 paf 18463: else
1.150 moko 18464: ac_cv_lib_socket_socket=no
1.8 paf 18465: fi
1.150 moko 18466: rm -f core conftest.err conftest.$ac_objext \
18467: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18468: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18469: fi
1.150 moko 18470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18471: $as_echo "$ac_cv_lib_socket_socket" >&6; }
18472: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.66 paf 18473: cat >>confdefs.h <<_ACEOF
1.128 moko 18474: #define HAVE_LIBSOCKET 1
1.66 paf 18475: _ACEOF
18476:
1.128 moko 18477: LIBS="-lsocket $LIBS"
1.66 paf 18478:
1.62 paf 18479: fi
18480:
1.66 paf 18481: ;;
1.128 moko 18482: *-cygwin*)
18483:
1.150 moko 18484: $as_echo "#define WIN32 /**/" >>confdefs.h
1.128 moko 18485:
1.66 paf 18486: ;;
18487: esac
1.1 paf 18488:
1.150 moko 18489: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18490: $as_echo_n "checking for sin in -lm... " >&6; }
18491: if ${ac_cv_lib_m_sin+:} false; then :
18492: $as_echo_n "(cached) " >&6
1.1 paf 18493: else
1.62 paf 18494: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18495: LIBS="-lm $LIBS"
1.150 moko 18496: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18497: /* end confdefs.h. */
18498:
1.150 moko 18499: /* Override any GCC internal prototype to avoid an error.
18500: Use char because int might match the return type of a GCC
18501: builtin and then its argument prototype would still apply. */
1.66 paf 18502: #ifdef __cplusplus
18503: extern "C"
18504: #endif
18505: char sin ();
1.62 paf 18506: int
18507: main ()
18508: {
1.150 moko 18509: return sin ();
1.62 paf 18510: ;
18511: return 0;
18512: }
18513: _ACEOF
1.150 moko 18514: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18515: ac_cv_lib_m_sin=yes
1.62 paf 18516: else
1.150 moko 18517: ac_cv_lib_m_sin=no
1.62 paf 18518: fi
1.150 moko 18519: rm -f core conftest.err conftest.$ac_objext \
18520: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18521: LIBS=$ac_check_lib_save_LIBS
18522: fi
1.150 moko 18523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18524: $as_echo "$ac_cv_lib_m_sin" >&6; }
18525: if test "x$ac_cv_lib_m_sin" = xyes; then :
1.62 paf 18526: cat >>confdefs.h <<_ACEOF
1.66 paf 18527: #define HAVE_LIBM 1
1.62 paf 18528: _ACEOF
1.1 paf 18529:
1.66 paf 18530: LIBS="-lm $LIBS"
1.1 paf 18531:
18532: fi
18533:
1.150 moko 18534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18535: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18536: if ${ac_cv_lib_crypt_crypt+:} false; then :
18537: $as_echo_n "(cached) " >&6
1.1 paf 18538: else
1.62 paf 18539: ac_check_lib_save_LIBS=$LIBS
1.66 paf 18540: LIBS="-lcrypt $LIBS"
1.150 moko 18541: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18542: /* end confdefs.h. */
18543:
1.150 moko 18544: /* Override any GCC internal prototype to avoid an error.
18545: Use char because int might match the return type of a GCC
18546: builtin and then its argument prototype would still apply. */
1.66 paf 18547: #ifdef __cplusplus
18548: extern "C"
18549: #endif
18550: char crypt ();
1.62 paf 18551: int
18552: main ()
18553: {
1.150 moko 18554: return crypt ();
1.62 paf 18555: ;
18556: return 0;
18557: }
18558: _ACEOF
1.150 moko 18559: if ac_fn_c_try_link "$LINENO"; then :
1.66 paf 18560: ac_cv_lib_crypt_crypt=yes
1.62 paf 18561: else
1.150 moko 18562: ac_cv_lib_crypt_crypt=no
1.62 paf 18563: fi
1.150 moko 18564: rm -f core conftest.err conftest.$ac_objext \
18565: conftest$ac_exeext conftest.$ac_ext
1.62 paf 18566: LIBS=$ac_check_lib_save_LIBS
18567: fi
1.150 moko 18568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18569: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18570: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
1.62 paf 18571: cat >>confdefs.h <<_ACEOF
1.66 paf 18572: #define HAVE_LIBCRYPT 1
1.62 paf 18573: _ACEOF
1.1 paf 18574:
1.66 paf 18575: LIBS="-lcrypt $LIBS"
18576:
18577: fi
18578:
18579:
18580:
1.221 moko 18581: for ac_func in flock fcntl lockf ftruncate fchmod
1.159 moko 18582: do :
18583: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18584: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18585: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18586: cat >>confdefs.h <<_ACEOF
18587: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18588: _ACEOF
18589:
18590: fi
18591: done
1.66 paf 18592:
1.227 moko 18593: for ac_func in getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv syslog
1.150 moko 18594: do :
18595: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18596: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18597: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.62 paf 18598: cat >>confdefs.h <<_ACEOF
1.150 moko 18599: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 18600: _ACEOF
1.1 paf 18601:
1.66 paf 18602: fi
18603: done
18604:
1.1 paf 18605:
18606:
1.159 moko 18607:
1.67 paf 18608: pa_func=sigsetjmp
1.150 moko 18609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
18610: $as_echo_n "checking for (maybe built-in) function $pa_func... " >&6; }
1.229 moko 18611:
18612: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18613: /* end confdefs.h. */
18614:
18615: #ifdef HAVE_SETJMP_H
18616: # include <setjmp.h>
18617: #endif
18618:
18619: int
18620: main ()
18621: {
18622:
18623: $pa_func(0,0);
18624:
18625: ;
18626: return 0;
18627: }
18628: _ACEOF
1.150 moko 18629: if ac_fn_c_try_compile "$LINENO"; then :
18630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18631: $as_echo "yes" >&6; }
1.67 paf 18632: cat >>confdefs.h <<_ACEOF
1.150 moko 18633: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.67 paf 18634: _ACEOF
18635:
18636:
18637: else
1.150 moko 18638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18639: $as_echo "no" >&6; }
1.67 paf 18640:
1.229 moko 18641:
1.67 paf 18642: fi
1.150 moko 18643: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 18644:
18645:
18646:
1.159 moko 18647:
1.229 moko 18648:
1.150 moko 18649: ac_ext=cpp
1.67 paf 18650: ac_cpp='$CXXCPP $CPPFLAGS'
18651: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18652: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18653: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18654:
18655:
18656:
1.188 moko 18657: for pa_func in trunc round sign isfinite
1.67 paf 18658: do
18659:
1.150 moko 18660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
18661: $as_echo_n "checking for (maybe built-in) math function $pa_func... " >&6; }
1.229 moko 18662:
18663: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 18664: /* end confdefs.h. */
18665:
18666: #ifdef HAVE_MATH_H
18667: # include <math.h>
18668: #endif
18669:
18670: int
18671: main ()
18672: {
18673:
18674: double result=$pa_func(1.6);
18675:
18676: ;
18677: return 0;
18678: }
18679: _ACEOF
1.150 moko 18680: if ac_fn_cxx_try_compile "$LINENO"; then :
18681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18682: $as_echo "yes" >&6; }
1.67 paf 18683: cat >>confdefs.h <<_ACEOF
1.150 moko 18684: #define `$as_echo "HAVE_$pa_func" | $as_tr_cpp` 1
1.62 paf 18685: _ACEOF
1.66 paf 18686:
1.62 paf 18687: else
1.150 moko 18688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18689: $as_echo "no" >&6; }
1.62 paf 18690:
1.229 moko 18691:
1.62 paf 18692: fi
1.150 moko 18693: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18694:
1.229 moko 18695:
1.150 moko 18696: done
18697:
18698: ac_ext=c
18699: ac_cpp='$CPP $CPPFLAGS'
18700: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18701: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18702: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18703:
18704:
18705:
18706: for ac_func in qsort
18707: do :
18708: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
18709: if test "x$ac_cv_func_qsort" = xyes; then :
1.62 paf 18710: cat >>confdefs.h <<_ACEOF
1.150 moko 18711: #define HAVE_QSORT 1
1.62 paf 18712: _ACEOF
1.1 paf 18713:
1.66 paf 18714: else
1.150 moko 18715: as_fn_error $? "No qsort library function." "$LINENO" 5
1.1 paf 18716: fi
1.66 paf 18717: done
1.1 paf 18718:
18719:
1.62 paf 18720:
1.159 moko 18721:
1.177 moko 18722: ac_ext=cpp
18723: ac_cpp='$CXXCPP $CPPFLAGS'
18724: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18725: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18726: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18727:
1.150 moko 18728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
18729: $as_echo_n "checking for timezone variable... " >&6; }
1.229 moko 18730:
18731: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18732: /* end confdefs.h. */
1.66 paf 18733: #include <time.h>
1.62 paf 18734: int
18735: main ()
18736: {
1.177 moko 18737: int test=timezone;
1.62 paf 18738: ;
18739: return 0;
18740: }
18741: _ACEOF
1.177 moko 18742: if ac_fn_cxx_try_compile "$LINENO"; then :
1.150 moko 18743: $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1.158 moko 18744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18745: $as_echo "yes" >&6; }
1.62 paf 18746: else
1.150 moko 18747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18748: $as_echo "no" >&6; }
1.229 moko 18749:
1.62 paf 18750: fi
1.150 moko 18751: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.229 moko 18752:
1.177 moko 18753: ac_ext=c
18754: ac_cpp='$CPP $CPPFLAGS'
18755: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18756: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18757: ac_compiler_gnu=$ac_cv_c_compiler_gnu
18758:
1.1 paf 18759:
1.176 moko 18760: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18761: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
1.229 moko 18762:
18763: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18764: /* end confdefs.h. */
1.66 paf 18765: #include <time.h>
1.62 paf 18766: int
18767: main ()
18768: {
1.176 moko 18769: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 18770: ;
18771: return 0;
18772: }
18773: _ACEOF
1.150 moko 18774: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18775: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
1.158 moko 18776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18777: $as_echo "yes" >&6; }
1.62 paf 18778: else
1.150 moko 18779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18780: $as_echo "no" >&6; }
1.229 moko 18781:
1.62 paf 18782: fi
1.150 moko 18783: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18784:
1.229 moko 18785:
1.176 moko 18786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
18787: $as_echo_n "checking for tm_tzadj in struct tm... " >&6; }
1.229 moko 18788:
18789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18790: /* end confdefs.h. */
1.66 paf 18791: #include <time.h>
1.62 paf 18792: int
18793: main ()
18794: {
1.176 moko 18795: struct tm tm; tm.tm_tzadj=0;
1.62 paf 18796: ;
18797: return 0;
18798: }
18799: _ACEOF
1.150 moko 18800: if ac_fn_c_try_compile "$LINENO"; then :
1.176 moko 18801: $as_echo "#define HAVE_TM_TZADJ 1" >>confdefs.h
1.158 moko 18802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18803: $as_echo "yes" >&6; }
1.62 paf 18804: else
1.150 moko 18805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18806: $as_echo "no" >&6; }
1.229 moko 18807:
1.62 paf 18808: fi
1.150 moko 18809: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18810:
1.229 moko 18811:
1.206 moko 18812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettid" >&5
18813: $as_echo_n "checking for gettid... " >&6; }
1.229 moko 18814:
18815: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.206 moko 18816: /* end confdefs.h. */
18817:
18818: #include <sys/types.h>
18819: #include <sys/syscall.h>
18820:
18821: int
18822: main ()
18823: {
18824: uint tid=syscall(__NR_gettid);
18825: ;
18826: return 0;
18827: }
18828: _ACEOF
18829: if ac_fn_c_try_compile "$LINENO"; then :
18830: $as_echo "#define HAVE_GETTID 1" >>confdefs.h
18831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18832: $as_echo "yes" >&6; }
18833: else
18834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18835: $as_echo "no" >&6; }
1.229 moko 18836:
1.206 moko 18837: fi
18838: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18839:
1.229 moko 18840:
1.208 moko 18841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
18842: $as_echo_n "checking for TLS... " >&6; }
1.229 moko 18843:
18844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.208 moko 18845: /* end confdefs.h. */
1.209 moko 18846: __thread int i=0;
1.208 moko 18847: int
18848: main ()
18849: {
1.209 moko 18850:
1.208 moko 18851: ;
18852: return 0;
18853: }
18854: _ACEOF
18855: if ac_fn_c_try_compile "$LINENO"; then :
18856: $as_echo "#define HAVE_TLS 1" >>confdefs.h
18857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18858: $as_echo "yes" >&6; }
18859: else
18860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18861: $as_echo "no" >&6; }
1.229 moko 18862:
1.208 moko 18863: fi
18864: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18865:
1.229 moko 18866:
1.176 moko 18867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
18868: $as_echo_n "checking for 0..9999 year date range support... " >&6; }
18869: if test "$cross_compiling" = yes; then :
18870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18871: $as_echo "no" >&6; }
18872: else
18873: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 18874: /* end confdefs.h. */
1.176 moko 18875:
18876: #include <string.h>
1.66 paf 18877: #include <time.h>
1.176 moko 18878:
18879: int main() {
18880: struct tm tmL,tmH;
18881: memset(&tmL, 0, sizeof(tmL));
18882: memset(&tmH, 0, sizeof(tmH));
18883: tmL.tm_year=-1900;
18884: tmL.tm_mon=-1;
18885: tmH.tm_year=9999-1900;
18886: tmH.tm_mon=12-1;
18887: tmH.tm_mday=31;
18888: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 18889: }
1.176 moko 18890:
1.62 paf 18891: _ACEOF
1.176 moko 18892: if ac_fn_c_try_run "$LINENO"; then :
18893: $as_echo "#define PA_DATE64 1" >>confdefs.h
1.158 moko 18894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.150 moko 18895: $as_echo "yes" >&6; }
1.62 paf 18896: else
1.150 moko 18897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18898: $as_echo "no" >&6; }
1.62 paf 18899: fi
1.176 moko 18900: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18901: conftest.$ac_objext conftest.beam conftest.$ac_ext
18902: fi
1.31 paf 18903:
1.1 paf 18904:
18905:
18906:
1.62 paf 18907:
18908:
18909:
1.206 moko 18910:
1.208 moko 18911:
1.150 moko 18912: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 18913:
18914:
1.200 moko 18915: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/pa-include/Makefile src/lib/json/Makefile src/lib/curl/Makefile src/lib/punycode/Makefile src/lib/memcached/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache/Makefile src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile etc/auto.p"
1.62 paf 18916:
18917: cat >confcache <<\_ACEOF
1.1 paf 18918: # This file is a shell script that caches the results of configure
18919: # tests run on this system so they can be shared between configure
1.62 paf 18920: # scripts and configure runs, see configure's option --config-cache.
18921: # It is not useful on other systems. If it contains results you don't
18922: # want to keep, you may remove or edit it.
1.1 paf 18923: #
1.62 paf 18924: # config.status only pays attention to the cache file if you give it
18925: # the --recheck option to rerun configure.
1.1 paf 18926: #
1.62 paf 18927: # `ac_cv_env_foo' variables (set or unset) will be overridden when
18928: # loading this file, other *unset* `ac_cv_foo' will be assigned the
18929: # following values.
18930:
18931: _ACEOF
18932:
1.1 paf 18933: # The following way of writing the cache mishandles newlines in values,
18934: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 18935: # So, we kill variables containing newlines.
1.1 paf 18936: # Ultrix sh set writes to stderr and can't be redirected directly,
18937: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 18938: (
18939: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18940: eval ac_val=\$$ac_var
18941: case $ac_val in #(
18942: *${as_nl}*)
18943: case $ac_var in #(
18944: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18945: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18946: esac
18947: case $ac_var in #(
18948: _ | IFS | as_nl) ;; #(
18949: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18950: *) { eval $ac_var=; unset $ac_var;} ;;
18951: esac ;;
18952: esac
18953: done
18954:
1.62 paf 18955: (set) 2>&1 |
1.150 moko 18956: case $as_nl`(ac_space=' '; set) 2>&1` in #(
18957: *${as_nl}ac_space=\ *)
18958: # `set' does not quote correctly, so add quotes: double-quote
18959: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 18960: sed -n \
1.86 paf 18961: "s/'/'\\\\''/g;
18962: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 18963: ;; #(
1.62 paf 18964: *)
18965: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 18966: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 18967: ;;
1.150 moko 18968: esac |
18969: sort
18970: ) |
1.62 paf 18971: sed '
1.150 moko 18972: /^ac_cv_env_/b end
1.62 paf 18973: t clear
1.150 moko 18974: :clear
1.62 paf 18975: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18976: t end
1.150 moko 18977: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18978: :end' >>confcache
18979: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18980: if test -w "$cache_file"; then
18981: if test "x$cache_file" != "x/dev/null"; then
18982: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18983: $as_echo "$as_me: updating cache $cache_file" >&6;}
18984: if test ! -f "$cache_file" || test -h "$cache_file"; then
18985: cat confcache >"$cache_file"
18986: else
18987: case $cache_file in #(
18988: */* | ?:*)
18989: mv -f confcache "$cache_file"$$ &&
18990: mv -f "$cache_file"$$ "$cache_file" ;; #(
18991: *)
18992: mv -f confcache "$cache_file" ;;
18993: esac
18994: fi
18995: fi
1.1 paf 18996: else
1.150 moko 18997: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18998: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 18999: fi
19000: fi
19001: rm -f confcache
19002:
19003: test "x$prefix" = xNONE && prefix=$ac_default_prefix
19004: # Let make expand exec_prefix.
19005: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19006:
1.62 paf 19007: DEFS=-DHAVE_CONFIG_H
19008:
19009: ac_libobjs=
19010: ac_ltlibobjs=
1.229 moko 19011: U=
1.62 paf 19012: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19013: # 1. Remove the extension, and $U if already installed.
1.150 moko 19014: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19015: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19016: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19017: # will be set to the directory where LIBOBJS objects are built.
19018: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19019: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 19020: done
19021: LIBOBJS=$ac_libobjs
19022:
19023: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 19024:
19025:
1.187 moko 19026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19027: $as_echo_n "checking that generated files are newer than configure... " >&6; }
19028: if test -n "$am_sleep_pid"; then
19029: # Hide warnings about reused PIDs.
19030: wait $am_sleep_pid 2>/dev/null
19031: fi
19032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19033: $as_echo "done" >&6; }
1.150 moko 19034: if test -n "$EXEEXT"; then
19035: am__EXEEXT_TRUE=
19036: am__EXEEXT_FALSE='#'
19037: else
19038: am__EXEEXT_TRUE='#'
19039: am__EXEEXT_FALSE=
19040: fi
19041:
1.62 paf 19042: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 19043: as_fn_error $? "conditional \"AMDEP\" was never defined.
19044: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19045: fi
1.66 paf 19046: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 19047: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19048: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19049: fi
1.66 paf 19050: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 19051: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19052: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19053: fi
1.122 moko 19054: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 19055: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
19056: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 19057: fi
1.128 moko 19058: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 19059: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
19060: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19061: fi
19062: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 19063: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
19064: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 19065: fi
1.150 moko 19066: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 19067:
19068: _ltdl_libobjs=
19069: _ltdl_ltlibobjs=
19070: if test -n "$_LT_LIBOBJS"; then
19071: # Remove the extension.
19072: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
19073: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
19074: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
19075: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
19076: done
19077: fi
19078: ltdl_LIBOBJS=$_ltdl_libobjs
19079:
19080: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
19081:
19082:
1.62 paf 19083:
1.150 moko 19084:
19085: : "${CONFIG_STATUS=./config.status}"
19086: ac_write_fail=0
1.62 paf 19087: ac_clean_files_save=$ac_clean_files
19088: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.150 moko 19089: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19090: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19091: as_write_fail=0
19092: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 19093: #! $SHELL
19094: # Generated by $as_me.
19095: # Run this file to recreate the current configuration.
19096: # Compiler output produced by configure, useful for debugging
19097: # configure, is in config.log if it exists.
19098:
19099: debug=false
19100: ac_cs_recheck=false
19101: ac_cs_silent=false
1.150 moko 19102:
1.62 paf 19103: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 19104: export SHELL
19105: _ASEOF
19106: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19107: ## -------------------- ##
19108: ## M4sh Initialization. ##
19109: ## -------------------- ##
1.62 paf 19110:
1.150 moko 19111: # Be more Bourne compatible
19112: DUALCASE=1; export DUALCASE # for MKS sh
19113: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.62 paf 19114: emulate sh
19115: NULLCMD=:
1.150 moko 19116: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 19117: # is contrary to our usage. Disable this feature.
19118: alias -g '${1+"$@"}'='"$@"'
1.150 moko 19119: setopt NO_GLOB_SUBST
19120: else
19121: case `(set -o) 2>/dev/null` in #(
19122: *posix*) :
19123: set -o posix ;; #(
19124: *) :
19125: ;;
19126: esac
19127: fi
19128:
19129:
19130: as_nl='
19131: '
19132: export as_nl
19133: # Printing a long string crashes Solaris 7 /usr/bin/printf.
19134: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19135: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19136: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19137: # Prefer a ksh shell builtin over an external printf program on Solaris,
19138: # but without wasting forks for bash or zsh.
19139: if test -z "$BASH_VERSION$ZSH_VERSION" \
19140: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19141: as_echo='print -r --'
19142: as_echo_n='print -rn --'
19143: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19144: as_echo='printf %s\n'
19145: as_echo_n='printf %s'
19146: else
19147: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19148: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19149: as_echo_n='/usr/ucb/echo -n'
19150: else
19151: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19152: as_echo_n_body='eval
19153: arg=$1;
19154: case $arg in #(
19155: *"$as_nl"*)
19156: expr "X$arg" : "X\\(.*\\)$as_nl";
19157: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19158: esac;
19159: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19160: '
19161: export as_echo_n_body
19162: as_echo_n='sh -c $as_echo_n_body as_echo'
19163: fi
19164: export as_echo_body
19165: as_echo='sh -c $as_echo_body as_echo'
1.62 paf 19166: fi
19167:
1.150 moko 19168: # The user is always right.
19169: if test "${PATH_SEPARATOR+set}" != set; then
19170: PATH_SEPARATOR=:
19171: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19172: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19173: PATH_SEPARATOR=';'
19174: }
1.62 paf 19175: fi
19176:
19177:
1.150 moko 19178: # IFS
19179: # We need space, tab and new line, in precisely that order. Quoting is
19180: # there to prevent editors from complaining about space-tab.
19181: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19182: # splitting by setting IFS to empty value.)
19183: IFS=" "" $as_nl"
19184:
19185: # Find who we are. Look in the path if we contain no directory separator.
19186: as_myself=
19187: case $0 in #((
19188: *[\\/]* ) as_myself=$0 ;;
19189: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19190: for as_dir in $PATH
19191: do
19192: IFS=$as_save_IFS
19193: test -z "$as_dir" && as_dir=.
19194: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19195: done
19196: IFS=$as_save_IFS
19197:
19198: ;;
19199: esac
19200: # We did not find ourselves, most probably we were run as `sh COMMAND'
19201: # in which case we are not to be found in the path.
19202: if test "x$as_myself" = x; then
19203: as_myself=$0
19204: fi
19205: if test ! -f "$as_myself"; then
19206: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19207: exit 1
19208: fi
19209:
19210: # Unset variables that we do not need and which cause bugs (e.g. in
19211: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19212: # suppresses any "Segmentation fault" message there. '((' could
19213: # trigger a bug in pdksh 5.2.14.
19214: for as_var in BASH_ENV ENV MAIL MAILPATH
19215: do eval test x\${$as_var+set} = xset \
19216: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19217: done
1.62 paf 19218: PS1='$ '
19219: PS2='> '
19220: PS4='+ '
19221:
19222: # NLS nuisances.
1.150 moko 19223: LC_ALL=C
19224: export LC_ALL
19225: LANGUAGE=C
19226: export LANGUAGE
19227:
19228: # CDPATH.
19229: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19230:
19231:
19232: # as_fn_error STATUS ERROR [LINENO LOG_FD]
19233: # ----------------------------------------
19234: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19235: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19236: # script with STATUS, using 1 if that was 0.
19237: as_fn_error ()
19238: {
19239: as_status=$1; test $as_status -eq 0 && as_status=1
19240: if test "$4"; then
19241: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19242: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19243: fi
19244: $as_echo "$as_me: error: $2" >&2
19245: as_fn_exit $as_status
19246: } # as_fn_error
19247:
19248:
19249: # as_fn_set_status STATUS
19250: # -----------------------
19251: # Set $? to STATUS, without forking.
19252: as_fn_set_status ()
19253: {
19254: return $1
19255: } # as_fn_set_status
19256:
19257: # as_fn_exit STATUS
19258: # -----------------
19259: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19260: as_fn_exit ()
19261: {
19262: set +e
19263: as_fn_set_status $1
19264: exit $1
19265: } # as_fn_exit
19266:
19267: # as_fn_unset VAR
19268: # ---------------
19269: # Portably unset VAR.
19270: as_fn_unset ()
19271: {
19272: { eval $1=; unset $1;}
19273: }
19274: as_unset=as_fn_unset
19275: # as_fn_append VAR VALUE
19276: # ----------------------
19277: # Append the text in VALUE to the end of the definition contained in VAR. Take
19278: # advantage of any shell optimizations that allow amortized linear growth over
19279: # repeated appends, instead of the typical quadratic growth present in naive
19280: # implementations.
19281: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19282: eval 'as_fn_append ()
19283: {
19284: eval $1+=\$2
19285: }'
19286: else
19287: as_fn_append ()
19288: {
19289: eval $1=\$$1\$2
19290: }
19291: fi # as_fn_append
19292:
19293: # as_fn_arith ARG...
19294: # ------------------
19295: # Perform arithmetic evaluation on the ARGs, and store the result in the
19296: # global $as_val. Take advantage of shells that can avoid forks. The arguments
19297: # must be portable across $(()) and expr.
19298: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19299: eval 'as_fn_arith ()
19300: {
19301: as_val=$(( $* ))
19302: }'
19303: else
19304: as_fn_arith ()
19305: {
19306: as_val=`expr "$@" || test $? -eq 1`
19307: }
19308: fi # as_fn_arith
19309:
1.1 paf 19310:
1.150 moko 19311: if expr a : '\(a\)' >/dev/null 2>&1 &&
19312: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 19313: as_expr=expr
19314: else
19315: as_expr=false
19316: fi
19317:
1.150 moko 19318: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 19319: as_basename=basename
19320: else
19321: as_basename=false
19322: fi
19323:
1.150 moko 19324: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19325: as_dirname=dirname
19326: else
19327: as_dirname=false
19328: fi
1.62 paf 19329:
1.150 moko 19330: as_me=`$as_basename -- "$0" ||
1.62 paf 19331: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19332: X"$0" : 'X\(//\)$' \| \
1.150 moko 19333: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19334: $as_echo X/"$0" |
19335: sed '/^.*\/\([^/][^/]*\)\/*$/{
19336: s//\1/
19337: q
19338: }
19339: /^X\/\(\/\/\)$/{
19340: s//\1/
19341: q
19342: }
19343: /^X\/\(\/\).*/{
19344: s//\1/
19345: q
19346: }
19347: s/.*/./; q'`
1.62 paf 19348:
19349: # Avoid depending upon Character Ranges.
19350: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19351: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19352: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19353: as_cr_digits='0123456789'
19354: as_cr_alnum=$as_cr_Letters$as_cr_digits
19355:
1.150 moko 19356: ECHO_C= ECHO_N= ECHO_T=
19357: case `echo -n x` in #(((((
19358: -n*)
19359: case `echo 'xy\c'` in
19360: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19361: xy) ECHO_C='\c';;
19362: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19363: ECHO_T=' ';;
19364: esac;;
19365: *)
19366: ECHO_N='-n';;
1.62 paf 19367: esac
19368:
1.150 moko 19369: rm -f conf$$ conf$$.exe conf$$.file
19370: if test -d conf$$.dir; then
19371: rm -f conf$$.dir/conf$$.file
1.62 paf 19372: else
1.150 moko 19373: rm -f conf$$.dir
19374: mkdir conf$$.dir 2>/dev/null
1.62 paf 19375: fi
1.150 moko 19376: if (echo >conf$$.file) 2>/dev/null; then
19377: if ln -s conf$$.file conf$$ 2>/dev/null; then
19378: as_ln_s='ln -s'
19379: # ... but there are two gotchas:
19380: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19381: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.166 moko 19382: # In both cases, we have to default to `cp -pR'.
1.150 moko 19383: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 19384: as_ln_s='cp -pR'
1.150 moko 19385: elif ln conf$$.file conf$$ 2>/dev/null; then
19386: as_ln_s=ln
19387: else
1.166 moko 19388: as_ln_s='cp -pR'
1.62 paf 19389: fi
19390: else
1.166 moko 19391: as_ln_s='cp -pR'
1.62 paf 19392: fi
1.150 moko 19393: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19394: rmdir conf$$.dir 2>/dev/null
19395:
19396:
19397: # as_fn_mkdir_p
19398: # -------------
19399: # Create "$as_dir" as a directory, including parents if necessary.
19400: as_fn_mkdir_p ()
19401: {
19402:
19403: case $as_dir in #(
19404: -*) as_dir=./$as_dir;;
19405: esac
19406: test -d "$as_dir" || eval $as_mkdir_p || {
19407: as_dirs=
19408: while :; do
19409: case $as_dir in #(
19410: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19411: *) as_qdir=$as_dir;;
19412: esac
19413: as_dirs="'$as_qdir' $as_dirs"
19414: as_dir=`$as_dirname -- "$as_dir" ||
19415: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19416: X"$as_dir" : 'X\(//\)[^/]' \| \
19417: X"$as_dir" : 'X\(//\)$' \| \
19418: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19419: $as_echo X"$as_dir" |
19420: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19421: s//\1/
19422: q
19423: }
19424: /^X\(\/\/\)[^/].*/{
19425: s//\1/
19426: q
19427: }
19428: /^X\(\/\/\)$/{
19429: s//\1/
19430: q
19431: }
19432: /^X\(\/\).*/{
19433: s//\1/
19434: q
19435: }
19436: s/.*/./; q'`
19437: test -d "$as_dir" && break
19438: done
19439: test -z "$as_dirs" || eval "mkdir $as_dirs"
19440: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19441:
1.62 paf 19442:
1.150 moko 19443: } # as_fn_mkdir_p
1.62 paf 19444: if mkdir -p . 2>/dev/null; then
1.150 moko 19445: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 19446: else
1.86 paf 19447: test -d ./-p && rmdir ./-p
1.62 paf 19448: as_mkdir_p=false
19449: fi
19450:
1.166 moko 19451:
19452: # as_fn_executable_p FILE
19453: # -----------------------
19454: # Test if FILE is an executable regular file.
19455: as_fn_executable_p ()
19456: {
19457: test -f "$1" && test -x "$1"
19458: } # as_fn_executable_p
19459: as_test_x='test -x'
19460: as_executable_p=as_fn_executable_p
1.62 paf 19461:
19462: # Sed expression to map a string onto a valid CPP name.
1.86 paf 19463: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19464:
19465: # Sed expression to map a string onto a valid variable name.
1.86 paf 19466: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 19467:
19468:
19469: exec 6>&1
1.150 moko 19470: ## ----------------------------------- ##
19471: ## Main body of $CONFIG_STATUS script. ##
19472: ## ----------------------------------- ##
19473: _ASEOF
19474: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 19475:
1.150 moko 19476: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19477: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 19478: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 19479: # values after options handling.
19480: ac_log="
1.230 moko 19481: This file was extended by parser $as_me 3.5.2b, which was
1.166 moko 19482: generated by GNU Autoconf 2.69. Invocation command line was
1.62 paf 19483:
19484: CONFIG_FILES = $CONFIG_FILES
19485: CONFIG_HEADERS = $CONFIG_HEADERS
19486: CONFIG_LINKS = $CONFIG_LINKS
19487: CONFIG_COMMANDS = $CONFIG_COMMANDS
19488: $ $0 $@
19489:
1.150 moko 19490: on `(hostname || uname -n) 2>/dev/null | sed 1q`
19491: "
19492:
1.62 paf 19493: _ACEOF
19494:
1.150 moko 19495: case $ac_config_files in *"
19496: "*) set x $ac_config_files; shift; ac_config_files=$*;;
19497: esac
1.62 paf 19498:
1.150 moko 19499: case $ac_config_headers in *"
19500: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19501: esac
1.62 paf 19502:
19503:
1.150 moko 19504: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19505: # Files that config.status was made for.
19506: config_files="$ac_config_files"
19507: config_headers="$ac_config_headers"
19508: config_commands="$ac_config_commands"
1.62 paf 19509:
1.150 moko 19510: _ACEOF
1.62 paf 19511:
1.150 moko 19512: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 19513: ac_cs_usage="\
1.150 moko 19514: \`$as_me' instantiates files and other configuration actions
19515: from templates according to the current configuration. Unless the files
19516: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 19517:
1.150 moko 19518: Usage: $0 [OPTION]... [TAG]...
1.62 paf 19519:
19520: -h, --help print this help, then exit
1.150 moko 19521: -V, --version print version number and configuration settings, then exit
19522: --config print configuration, then exit
19523: -q, --quiet, --silent
19524: do not print progress messages
1.62 paf 19525: -d, --debug don't remove temporary files
19526: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 19527: --file=FILE[:TEMPLATE]
19528: instantiate the configuration file FILE
19529: --header=FILE[:TEMPLATE]
19530: instantiate the configuration header FILE
1.62 paf 19531:
19532: Configuration files:
19533: $config_files
19534:
19535: Configuration headers:
19536: $config_headers
19537:
19538: Configuration commands:
19539: $config_commands
19540:
1.150 moko 19541: Report bugs to the package provider."
19542:
1.62 paf 19543: _ACEOF
1.150 moko 19544: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19545: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.62 paf 19546: ac_cs_version="\\
1.230 moko 19547: parser config.status 3.5.2b
1.166 moko 19548: configured by $0, generated by GNU Autoconf 2.69,
1.150 moko 19549: with options \\"\$ac_cs_config\\"
1.62 paf 19550:
1.166 moko 19551: Copyright (C) 2012 Free Software Foundation, Inc.
1.62 paf 19552: This config.status script is free software; the Free Software Foundation
19553: gives unlimited permission to copy, distribute and modify it."
1.150 moko 19554:
19555: ac_pwd='$ac_pwd'
19556: srcdir='$srcdir'
19557: INSTALL='$INSTALL'
19558: MKDIR_P='$MKDIR_P'
19559: AWK='$AWK'
19560: test -n "\$AWK" || AWK=awk
1.62 paf 19561: _ACEOF
19562:
1.150 moko 19563: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19564: # The default lists apply if the user does not specify any file.
1.62 paf 19565: ac_need_defaults=:
19566: while test $# != 0
19567: do
19568: case $1 in
1.150 moko 19569: --*=?*)
19570: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19571: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 19572: ac_shift=:
19573: ;;
1.150 moko 19574: --*=)
19575: ac_option=`expr "X$1" : 'X\([^=]*\)='`
19576: ac_optarg=
19577: ac_shift=:
19578: ;;
19579: *)
1.62 paf 19580: ac_option=$1
19581: ac_optarg=$2
19582: ac_shift=shift
19583: ;;
19584: esac
19585:
19586: case $ac_option in
19587: # Handling of the options.
19588: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19589: ac_cs_recheck=: ;;
1.150 moko 19590: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19591: $as_echo "$ac_cs_version"; exit ;;
19592: --config | --confi | --conf | --con | --co | --c )
19593: $as_echo "$ac_cs_config"; exit ;;
19594: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 19595: debug=: ;;
19596: --file | --fil | --fi | --f )
19597: $ac_shift
1.150 moko 19598: case $ac_optarg in
19599: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19600: '') as_fn_error $? "missing file argument" ;;
19601: esac
19602: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 19603: ac_need_defaults=false;;
19604: --header | --heade | --head | --hea )
19605: $ac_shift
1.150 moko 19606: case $ac_optarg in
19607: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19608: esac
19609: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 19610: ac_need_defaults=false;;
1.150 moko 19611: --he | --h)
19612: # Conflict between --help and --header
19613: as_fn_error $? "ambiguous option: \`$1'
19614: Try \`$0 --help' for more information.";;
19615: --help | --hel | -h )
19616: $as_echo "$ac_cs_usage"; exit ;;
1.62 paf 19617: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19618: | -silent | --silent | --silen | --sile | --sil | --si | --s)
19619: ac_cs_silent=: ;;
19620:
19621: # This is an error.
1.150 moko 19622: -*) as_fn_error $? "unrecognized option: \`$1'
19623: Try \`$0 --help' for more information." ;;
1.62 paf 19624:
1.150 moko 19625: *) as_fn_append ac_config_targets " $1"
19626: ac_need_defaults=false ;;
1.62 paf 19627:
19628: esac
19629: shift
19630: done
19631:
19632: ac_configure_extra_args=
19633:
19634: if $ac_cs_silent; then
19635: exec 6>/dev/null
1.150 moko 19636: ac_configure_extra_args="$ac_configure_extra_args --silent"
19637: fi
19638:
19639: _ACEOF
19640: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19641: if \$ac_cs_recheck; then
1.166 moko 19642: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 19643: shift
19644: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19645: CONFIG_SHELL='$SHELL'
19646: export CONFIG_SHELL
19647: exec "\$@"
19648: fi
19649:
19650: _ACEOF
19651: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19652: exec 5>>config.log
19653: {
19654: echo
19655: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19656: ## Running $as_me. ##
19657: _ASBOX
19658: $as_echo "$ac_log"
19659: } >&5
1.62 paf 19660:
19661: _ACEOF
1.150 moko 19662: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 19663: #
1.150 moko 19664: # INIT-COMMANDS
1.1 paf 19665: #
1.199 moko 19666: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1.62 paf 19667:
1.128 moko 19668:
19669: # The HP-UX ksh and POSIX shell print the target directory to stdout
19670: # if CDPATH is set.
19671: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19672:
19673: sed_quote_subst='$sed_quote_subst'
19674: double_quote_subst='$double_quote_subst'
19675: delay_variable_subst='$delay_variable_subst'
19676: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19677: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19678: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19679: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19680: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 19681: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 19682: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 19683: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 19684: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19685: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19686: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19687: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19688: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19689: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19690: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19691: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19692: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19693: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19694: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19695: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19696: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19697: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19698: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19699: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19700: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19701: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19702: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19703: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19704: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19705: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19706: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19707: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19708: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19709: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19710: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19711: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19712: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19713: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19714: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19715: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19716: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19717: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19718: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19719: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19720: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19721: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19722: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19723: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19724: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19725: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19726: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19727: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19728: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19729: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19730: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19731: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19732: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19733: 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"`'
19734: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19735: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19736: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19737: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19738: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19739: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19740: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19741: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19742: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19743: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19744: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19745: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19746: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19747: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19748: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19749: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19750: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19751: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19752: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19753: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19754: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19755: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19756: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19757: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19758: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19759: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19760: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19761: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19762: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19763: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19764: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19765: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19766: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19767: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19768: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19769: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19770: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19771: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19772: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19773: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19774: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19775: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19776: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19777: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19778: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19779: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19780: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19781: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19782: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19783: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19784: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19785: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19786: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19787: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19788: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19789: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19790: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19791: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19792: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19793: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19794: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19795: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19796: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19797: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19798: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19799: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19800: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19801: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19802: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19803: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19804: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19805: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19806: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19807: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19808: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19809: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19810: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19811: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19812: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19813: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19814: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19815: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19816: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19817: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19818: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19819: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19820: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19821: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19822: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19823: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19824: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19825: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19826: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19827: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19828: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19829: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19830: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19831: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19832: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19833: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19834: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19835: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19836: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19837: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19838: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19839: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19840: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19841: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19842: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19843: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19844: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19845: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19846: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19847: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19848: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19849: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19850: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19851: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19852: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19853: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19854: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19855: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19856: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19857: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19858: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19859: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19860: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19861:
19862: LTCC='$LTCC'
19863: LTCFLAGS='$LTCFLAGS'
19864: compiler='$compiler_DEFAULT'
19865:
19866: # A function that is used when there is no print builtin or printf.
19867: func_fallback_echo ()
19868: {
19869: eval 'cat <<_LTECHO_EOF
19870: \$1
19871: _LTECHO_EOF'
19872: }
19873:
19874: # Quote evaled strings.
19875: for var in AS \
19876: DLLTOOL \
19877: OBJDUMP \
19878: SHELL \
19879: ECHO \
19880: PATH_SEPARATOR \
19881: SED \
19882: GREP \
19883: EGREP \
19884: FGREP \
19885: LD \
19886: NM \
19887: LN_S \
19888: lt_SP2NL \
19889: lt_NL2SP \
19890: reload_flag \
19891: deplibs_check_method \
19892: file_magic_cmd \
19893: file_magic_glob \
19894: want_nocaseglob \
19895: sharedlib_from_linklib_cmd \
19896: AR \
19897: AR_FLAGS \
19898: archiver_list_spec \
19899: STRIP \
19900: RANLIB \
19901: CC \
19902: CFLAGS \
19903: compiler \
19904: lt_cv_sys_global_symbol_pipe \
19905: lt_cv_sys_global_symbol_to_cdecl \
19906: lt_cv_sys_global_symbol_to_c_name_address \
19907: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19908: nm_file_list_spec \
19909: lt_prog_compiler_no_builtin_flag \
19910: lt_prog_compiler_pic \
19911: lt_prog_compiler_wl \
19912: lt_prog_compiler_static \
19913: lt_cv_prog_compiler_c_o \
19914: need_locks \
19915: MANIFEST_TOOL \
19916: DSYMUTIL \
19917: NMEDIT \
19918: LIPO \
19919: OTOOL \
19920: OTOOL64 \
19921: shrext_cmds \
19922: export_dynamic_flag_spec \
19923: whole_archive_flag_spec \
19924: compiler_needs_object \
19925: with_gnu_ld \
19926: allow_undefined_flag \
19927: no_undefined_flag \
19928: hardcode_libdir_flag_spec \
19929: hardcode_libdir_separator \
19930: exclude_expsyms \
19931: include_expsyms \
19932: file_list_spec \
19933: variables_saved_for_relink \
19934: libname_spec \
19935: library_names_spec \
19936: soname_spec \
19937: install_override_mode \
19938: finish_eval \
19939: old_striplib \
19940: striplib \
19941: compiler_lib_search_dirs \
19942: predep_objects \
19943: postdep_objects \
19944: predeps \
19945: postdeps \
19946: compiler_lib_search_path \
19947: LD_CXX \
19948: reload_flag_CXX \
19949: compiler_CXX \
19950: lt_prog_compiler_no_builtin_flag_CXX \
19951: lt_prog_compiler_pic_CXX \
19952: lt_prog_compiler_wl_CXX \
19953: lt_prog_compiler_static_CXX \
19954: lt_cv_prog_compiler_c_o_CXX \
19955: export_dynamic_flag_spec_CXX \
19956: whole_archive_flag_spec_CXX \
19957: compiler_needs_object_CXX \
19958: with_gnu_ld_CXX \
19959: allow_undefined_flag_CXX \
19960: no_undefined_flag_CXX \
19961: hardcode_libdir_flag_spec_CXX \
19962: hardcode_libdir_separator_CXX \
19963: exclude_expsyms_CXX \
19964: include_expsyms_CXX \
19965: file_list_spec_CXX \
19966: compiler_lib_search_dirs_CXX \
19967: predep_objects_CXX \
19968: postdep_objects_CXX \
19969: predeps_CXX \
19970: postdeps_CXX \
19971: compiler_lib_search_path_CXX; do
19972: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19973: *[\\\\\\\`\\"\\\$]*)
19974: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19975: ;;
19976: *)
19977: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19978: ;;
19979: esac
19980: done
19981:
19982: # Double-quote double-evaled strings.
19983: for var in reload_cmds \
19984: old_postinstall_cmds \
19985: old_postuninstall_cmds \
19986: old_archive_cmds \
19987: extract_expsyms_cmds \
19988: old_archive_from_new_cmds \
19989: old_archive_from_expsyms_cmds \
19990: archive_cmds \
19991: archive_expsym_cmds \
19992: module_cmds \
19993: module_expsym_cmds \
19994: export_symbols_cmds \
19995: prelink_cmds \
19996: postlink_cmds \
19997: postinstall_cmds \
19998: postuninstall_cmds \
19999: finish_cmds \
20000: sys_lib_search_path_spec \
20001: sys_lib_dlsearch_path_spec \
20002: reload_cmds_CXX \
20003: old_archive_cmds_CXX \
20004: old_archive_from_new_cmds_CXX \
20005: old_archive_from_expsyms_cmds_CXX \
20006: archive_cmds_CXX \
20007: archive_expsym_cmds_CXX \
20008: module_cmds_CXX \
20009: module_expsym_cmds_CXX \
20010: export_symbols_cmds_CXX \
20011: prelink_cmds_CXX \
20012: postlink_cmds_CXX; do
20013: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20014: *[\\\\\\\`\\"\\\$]*)
20015: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20016: ;;
20017: *)
20018: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20019: ;;
20020: esac
20021: done
20022:
20023: ac_aux_dir='$ac_aux_dir'
20024: xsi_shell='$xsi_shell'
20025: lt_shell_append='$lt_shell_append'
20026:
20027: # See if we are running on zsh, and set the options which allow our
20028: # commands through without removal of \ escapes INIT.
20029: if test -n "\${ZSH_VERSION+set}" ; then
20030: setopt NO_GLOB_SUBST
20031: fi
20032:
20033:
20034: PACKAGE='$PACKAGE'
20035: VERSION='$VERSION'
20036: TIMESTAMP='$TIMESTAMP'
20037: RM='$RM'
20038: ofile='$ofile'
20039:
20040:
20041:
20042:
20043:
20044:
1.62 paf 20045: _ACEOF
20046:
1.150 moko 20047: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20048:
1.150 moko 20049: # Handling of arguments.
1.62 paf 20050: for ac_config_target in $ac_config_targets
1.1 paf 20051: do
1.150 moko 20052: case $ac_config_target in
20053: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20054: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20055: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
20056: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20057: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20058: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
20059: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
20060: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
20061: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
20062: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20063: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
20064: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
20065: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
20066: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
20067: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
20068: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
20069: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
20070: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
20071: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
20072: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
20073: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
20074: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
20075: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 20076: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
20077: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 20078: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
20079: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
20080: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
20081: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
20082: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
20083: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20084: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
1.200 moko 20085: "etc/auto.p") CONFIG_FILES="$CONFIG_FILES etc/auto.p" ;;
1.150 moko 20086:
20087: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 paf 20088: esac
20089: done
20090:
1.150 moko 20091:
1.62 paf 20092: # If the user did not use the arguments to specify the items to instantiate,
20093: # then the envvar interface is used. Set only those that are not.
20094: # We use the long form for the default assignment because of an extremely
20095: # bizarre bug on SunOS 4.1.3.
20096: if $ac_need_defaults; then
20097: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20098: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20099: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20100: fi
20101:
20102: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 20103: # simply because there is no reason against having it here, and in addition,
1.62 paf 20104: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 20105: # Hook for its removal unless debugging.
20106: # Note that there is a small window in which the directory will not be cleaned:
20107: # after its creation but before its name has been assigned to `$tmp'.
1.62 paf 20108: $debug ||
20109: {
1.150 moko 20110: tmp= ac_tmp=
20111: trap 'exit_status=$?
20112: : "${ac_tmp:=$tmp}"
20113: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20114: ' 0
20115: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 20116: }
20117: # Create a (secure) tmp directory for tmp files.
20118:
20119: {
1.150 moko 20120: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20121: test -d "$tmp"
1.62 paf 20122: } ||
20123: {
1.150 moko 20124: tmp=./conf$$-$RANDOM
20125: (umask 077 && mkdir "$tmp")
20126: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20127: ac_tmp=$tmp
20128:
20129: # Set up the scripts for CONFIG_FILES section.
20130: # No need to generate them if there are no CONFIG_FILES.
20131: # This happens for instance with `./config.status config.h'.
20132: if test -n "$CONFIG_FILES"; then
20133:
20134:
20135: ac_cr=`echo X | tr X '\015'`
20136: # On cygwin, bash can eat \r inside `` if the user requested igncr.
20137: # But we know of no other shell where ac_cr would be empty at this
20138: # point, so we can use a bashism as a fallback.
20139: if test "x$ac_cr" = x; then
20140: eval ac_cr=\$\'\\r\'
20141: fi
20142: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20143: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20144: ac_cs_awk_cr='\\r'
20145: else
20146: ac_cs_awk_cr=$ac_cr
20147: fi
20148:
20149: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20150: _ACEOF
20151:
20152:
1.62 paf 20153: {
1.150 moko 20154: echo "cat >conf$$subs.awk <<_ACEOF" &&
20155: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20156: echo "_ACEOF"
20157: } >conf$$subs.sh ||
20158: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20159: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20160: ac_delim='%!_!# '
20161: for ac_last_try in false false false false false :; do
20162: . ./conf$$subs.sh ||
20163: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20164:
20165: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20166: if test $ac_delim_n = $ac_delim_num; then
20167: break
20168: elif $ac_last_try; then
20169: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20170: else
20171: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20172: fi
20173: done
20174: rm -f conf$$subs.sh
20175:
20176: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20177: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20178: _ACEOF
20179: sed -n '
20180: h
20181: s/^/S["/; s/!.*/"]=/
20182: p
20183: g
20184: s/^[^!]*!//
20185: :repl
20186: t repl
20187: s/'"$ac_delim"'$//
20188: t delim
20189: :nl
20190: h
20191: s/\(.\{148\}\)..*/\1/
20192: t more1
20193: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20194: p
20195: n
20196: b repl
20197: :more1
20198: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20199: p
20200: g
20201: s/.\{148\}//
20202: t nl
20203: :delim
20204: h
20205: s/\(.\{148\}\)..*/\1/
20206: t more2
20207: s/["\\]/\\&/g; s/^/"/; s/$/"/
20208: p
20209: b
20210: :more2
20211: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20212: p
20213: g
20214: s/.\{148\}//
20215: t delim
20216: ' <conf$$subs.awk | sed '
20217: /^[^""]/{
20218: N
20219: s/\n//
20220: }
20221: ' >>$CONFIG_STATUS || ac_write_fail=1
20222: rm -f conf$$subs.awk
20223: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20224: _ACAWK
20225: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20226: for (key in S) S_is_set[key] = 1
20227: FS = ""
20228:
20229: }
20230: {
20231: line = $ 0
20232: nfields = split(line, field, "@")
20233: substed = 0
20234: len = length(field[1])
20235: for (i = 2; i < nfields; i++) {
20236: key = field[i]
20237: keylen = length(key)
20238: if (S_is_set[key]) {
20239: value = S[key]
20240: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20241: len += length(value) + length(field[++i])
20242: substed = 1
20243: } else
20244: len += 1 + keylen
20245: }
20246:
20247: print line
1.62 paf 20248: }
20249:
1.150 moko 20250: _ACAWK
20251: _ACEOF
20252: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20253: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20254: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20255: else
20256: cat
20257: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20258: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 20259: _ACEOF
1.1 paf 20260:
1.150 moko 20261: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20262: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20263: # trailing colons and then remove the whole line if VPATH becomes empty
20264: # (actually we leave an empty line to preserve line numbers).
20265: if test "x$srcdir" = x.; then
20266: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20267: h
20268: s///
20269: s/^/:/
20270: s/[ ]*$/:/
20271: s/:\$(srcdir):/:/g
20272: s/:\${srcdir}:/:/g
20273: s/:@srcdir@:/:/g
20274: s/^:*//
20275: s/:*$//
20276: x
20277: s/\(=[ ]*\).*/\1/
20278: G
20279: s/\n//
20280: s/^[^=]*=[ ]*$//
20281: }'
20282: fi
1.62 paf 20283:
1.150 moko 20284: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20285: fi # test -n "$CONFIG_FILES"
1.1 paf 20286:
1.150 moko 20287: # Set up the scripts for CONFIG_HEADERS section.
20288: # No need to generate them if there are no CONFIG_HEADERS.
20289: # This happens for instance with `./config.status Makefile'.
20290: if test -n "$CONFIG_HEADERS"; then
20291: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20292: BEGIN {
20293: _ACEOF
20294:
20295: # Transform confdefs.h into an awk script `defines.awk', embedded as
20296: # here-document in config.status, that substitutes the proper values into
20297: # config.h.in to produce config.h.
20298:
20299: # Create a delimiter string that does not exist in confdefs.h, to ease
20300: # handling of long lines.
20301: ac_delim='%!_!# '
20302: for ac_last_try in false false :; do
20303: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20304: if test -z "$ac_tt"; then
20305: break
20306: elif $ac_last_try; then
20307: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20308: else
20309: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 20310: fi
1.150 moko 20311: done
1.1 paf 20312:
1.150 moko 20313: # For the awk script, D is an array of macro values keyed by name,
20314: # likewise P contains macro parameters if any. Preserve backslash
20315: # newline sequences.
20316:
20317: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20318: sed -n '
20319: s/.\{148\}/&'"$ac_delim"'/g
20320: t rset
20321: :rset
20322: s/^[ ]*#[ ]*define[ ][ ]*/ /
20323: t def
20324: d
20325: :def
20326: s/\\$//
20327: t bsnl
20328: s/["\\]/\\&/g
20329: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20330: D["\1"]=" \3"/p
20331: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20332: d
20333: :bsnl
20334: s/["\\]/\\&/g
20335: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20336: D["\1"]=" \3\\\\\\n"\\/p
20337: t cont
20338: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20339: t cont
20340: d
20341: :cont
20342: n
20343: s/.\{148\}/&'"$ac_delim"'/g
20344: t clear
20345: :clear
20346: s/\\$//
20347: t bsnlc
20348: s/["\\]/\\&/g; s/^/"/; s/$/"/p
20349: d
20350: :bsnlc
20351: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20352: b cont
20353: ' <confdefs.h | sed '
20354: s/'"$ac_delim"'/"\\\
20355: "/g' >>$CONFIG_STATUS || ac_write_fail=1
20356:
20357: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20358: for (key in D) D_is_set[key] = 1
20359: FS = ""
20360: }
20361: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20362: line = \$ 0
20363: split(line, arg, " ")
20364: if (arg[1] == "#") {
20365: defundef = arg[2]
20366: mac1 = arg[3]
20367: } else {
20368: defundef = substr(arg[1], 2)
20369: mac1 = arg[2]
20370: }
20371: split(mac1, mac2, "(") #)
20372: macro = mac2[1]
20373: prefix = substr(line, 1, index(line, defundef) - 1)
20374: if (D_is_set[macro]) {
20375: # Preserve the white space surrounding the "#".
20376: print prefix "define", macro P[macro] D[macro]
20377: next
20378: } else {
20379: # Replace #undef with comments. This is necessary, for example,
20380: # in the case of _POSIX_SOURCE, which is predefined and required
20381: # on some systems where configure will not decide to define it.
20382: if (defundef == "undef") {
20383: print "/*", prefix defundef, macro, "*/"
20384: next
20385: }
20386: }
20387: }
20388: { print }
20389: _ACAWK
1.62 paf 20390: _ACEOF
1.150 moko 20391: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20392: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20393: fi # test -n "$CONFIG_HEADERS"
20394:
20395:
20396: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20397: shift
20398: for ac_tag
20399: do
20400: case $ac_tag in
20401: :[FHLC]) ac_mode=$ac_tag; continue;;
20402: esac
20403: case $ac_mode$ac_tag in
20404: :[FHL]*:*);;
20405: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20406: :[FH]-) ac_tag=-:-;;
20407: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20408: esac
20409: ac_save_IFS=$IFS
20410: IFS=:
20411: set x $ac_tag
20412: IFS=$ac_save_IFS
20413: shift
20414: ac_file=$1
20415: shift
20416:
20417: case $ac_mode in
20418: :L) ac_source=$1;;
20419: :[FH])
20420: ac_file_inputs=
20421: for ac_f
20422: do
20423: case $ac_f in
20424: -) ac_f="$ac_tmp/stdin";;
20425: *) # Look for the file first in the build tree, then in the source tree
20426: # (if the path is not absolute). The absolute path cannot be DOS-style,
20427: # because $ac_f cannot contain `:'.
20428: test -f "$ac_f" ||
20429: case $ac_f in
20430: [\\/$]*) false;;
20431: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20432: esac ||
20433: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20434: esac
20435: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20436: as_fn_append ac_file_inputs " '$ac_f'"
20437: done
20438:
20439: # Let's still pretend it is `configure' which instantiates (i.e., don't
20440: # use $as_me), people would be surprised to read:
20441: # /* config.h. Generated by config.status. */
20442: configure_input='Generated from '`
20443: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20444: `' by configure.'
20445: if test x"$ac_file" != x-; then
20446: configure_input="$ac_file. $configure_input"
20447: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20448: $as_echo "$as_me: creating $ac_file" >&6;}
20449: fi
20450: # Neutralize special characters interpreted by sed in replacement strings.
20451: case $configure_input in #(
20452: *\&* | *\|* | *\\* )
20453: ac_sed_conf_input=`$as_echo "$configure_input" |
20454: sed 's/[\\\\&|]/\\\\&/g'`;; #(
20455: *) ac_sed_conf_input=$configure_input;;
20456: esac
20457:
20458: case $ac_tag in
20459: *:-:* | *:-) cat >"$ac_tmp/stdin" \
20460: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20461: esac
20462: ;;
1.1 paf 20463: esac
20464:
1.150 moko 20465: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 20466: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 20467: X"$ac_file" : 'X\(//\)[^/]' \| \
20468: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 20469: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20470: $as_echo X"$ac_file" |
20471: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20472: s//\1/
20473: q
20474: }
20475: /^X\(\/\/\)[^/].*/{
20476: s//\1/
20477: q
20478: }
20479: /^X\(\/\/\)$/{
20480: s//\1/
20481: q
20482: }
20483: /^X\(\/\).*/{
20484: s//\1/
20485: q
20486: }
20487: s/.*/./; q'`
20488: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 20489: ac_builddir=.
20490:
1.150 moko 20491: case "$ac_dir" in
20492: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20493: *)
20494: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20495: # A ".." for each directory in $ac_dir_suffix.
20496: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20497: case $ac_top_builddir_sub in
20498: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20499: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20500: esac ;;
20501: esac
20502: ac_abs_top_builddir=$ac_pwd
20503: ac_abs_builddir=$ac_pwd$ac_dir_suffix
20504: # for backward compatibility:
20505: ac_top_builddir=$ac_top_build_prefix
1.62 paf 20506:
20507: case $srcdir in
1.150 moko 20508: .) # We are building in place.
1.62 paf 20509: ac_srcdir=.
1.150 moko 20510: ac_top_srcdir=$ac_top_builddir_sub
20511: ac_abs_top_srcdir=$ac_pwd ;;
20512: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 20513: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 20514: ac_top_srcdir=$srcdir
20515: ac_abs_top_srcdir=$srcdir ;;
20516: *) # Relative name.
20517: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20518: ac_top_srcdir=$ac_top_build_prefix$srcdir
20519: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 20520: esac
1.150 moko 20521: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 20522:
1.62 paf 20523:
1.150 moko 20524: case $ac_mode in
20525: :F)
20526: #
20527: # CONFIG_FILE
20528: #
1.1 paf 20529:
1.62 paf 20530: case $INSTALL in
20531: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 20532: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 20533: esac
1.150 moko 20534: ac_MKDIR_P=$MKDIR_P
20535: case $MKDIR_P in
20536: [\\/$]* | ?:[\\/]* ) ;;
20537: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20538: esac
20539: _ACEOF
1.1 paf 20540:
1.150 moko 20541: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20542: # If the template does not know about datarootdir, expand it.
20543: # FIXME: This hack should be removed a few years after 2.60.
20544: ac_datarootdir_hack=; ac_datarootdir_seen=
20545: ac_sed_dataroot='
20546: /datarootdir/ {
20547: p
20548: q
20549: }
20550: /@datadir@/p
20551: /@docdir@/p
20552: /@infodir@/p
20553: /@localedir@/p
20554: /@mandir@/p'
20555: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20556: *datarootdir*) ac_datarootdir_seen=yes;;
20557: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20558: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20559: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20560: _ACEOF
20561: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20562: ac_datarootdir_hack='
20563: s&@datadir@&$datadir&g
20564: s&@docdir@&$docdir&g
20565: s&@infodir@&$infodir&g
20566: s&@localedir@&$localedir&g
20567: s&@mandir@&$mandir&g
20568: s&\\\${datarootdir}&$datarootdir&g' ;;
20569: esac
20570: _ACEOF
1.62 paf 20571:
1.150 moko 20572: # Neutralize VPATH when `$srcdir' = `.'.
20573: # Shell code in configure.ac might set extrasub.
20574: # FIXME: do we really want to maintain this feature?
20575: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20576: ac_sed_extra="$ac_vpsub
1.62 paf 20577: $extrasub
20578: _ACEOF
1.150 moko 20579: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 20580: :t
20581: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 20582: s|@configure_input@|$ac_sed_conf_input|;t t
20583: s&@top_builddir@&$ac_top_builddir_sub&;t t
20584: s&@top_build_prefix@&$ac_top_build_prefix&;t t
20585: s&@srcdir@&$ac_srcdir&;t t
20586: s&@abs_srcdir@&$ac_abs_srcdir&;t t
20587: s&@top_srcdir@&$ac_top_srcdir&;t t
20588: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20589: s&@builddir@&$ac_builddir&;t t
20590: s&@abs_builddir@&$ac_abs_builddir&;t t
20591: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20592: s&@INSTALL@&$ac_INSTALL&;t t
20593: s&@MKDIR_P@&$ac_MKDIR_P&;t t
20594: $ac_datarootdir_hack
20595: "
20596: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20597: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20598:
20599: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20600: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20601: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20602: "$ac_tmp/out"`; test -z "$ac_out"; } &&
20603: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20604: which seems to be undefined. Please make sure it is defined" >&5
20605: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20606: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 20607:
1.150 moko 20608: rm -f "$ac_tmp/stdin"
1.62 paf 20609: case $ac_file in
1.150 moko 20610: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20611: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20612: esac \
20613: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20614: ;;
20615: :H)
20616: #
20617: # CONFIG_HEADER
20618: #
1.62 paf 20619: if test x"$ac_file" != x-; then
1.150 moko 20620: {
20621: $as_echo "/* $configure_input */" \
20622: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20623: } >"$ac_tmp/config.h" \
20624: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20625: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20626: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20627: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 20628: else
1.150 moko 20629: rm -f "$ac_file"
20630: mv "$ac_tmp/config.h" "$ac_file" \
20631: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 20632: fi
20633: else
1.150 moko 20634: $as_echo "/* $configure_input */" \
20635: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20636: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 20637: fi
1.150 moko 20638: # Compute "$ac_file"'s index in $config_headers.
20639: _am_arg="$ac_file"
1.86 paf 20640: _am_stamp_count=1
20641: for _am_header in $config_headers :; do
20642: case $_am_header in
1.150 moko 20643: $_am_arg | $_am_arg:* )
1.86 paf 20644: break ;;
20645: * )
20646: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20647: esac
20648: done
1.150 moko 20649: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20650: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20651: X"$_am_arg" : 'X\(//\)[^/]' \| \
20652: X"$_am_arg" : 'X\(//\)$' \| \
20653: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20654: $as_echo X"$_am_arg" |
20655: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20656: s//\1/
20657: q
20658: }
20659: /^X\(\/\/\)[^/].*/{
20660: s//\1/
20661: q
20662: }
20663: /^X\(\/\/\)$/{
20664: s//\1/
20665: q
20666: }
20667: /^X\(\/\).*/{
20668: s//\1/
20669: q
20670: }
20671: s/.*/./; q'`/stamp-h$_am_stamp_count
20672: ;;
1.62 paf 20673:
1.150 moko 20674: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20675: $as_echo "$as_me: executing $ac_file commands" >&6;}
20676: ;;
20677: esac
1.86 paf 20678:
1.62 paf 20679:
1.150 moko 20680: case $ac_file$ac_mode in
20681: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.187 moko 20682: # Older Autoconf quotes --file arguments for eval, but not when files
1.150 moko 20683: # are listed without --file. Let's play safe and only enable the eval
20684: # if we detect the quoting.
1.199 moko 20685: # TODO: see whether this extra hack can be removed once we start
20686: # requiring Autoconf 2.70 or later.
20687: case $CONFIG_FILES in #(
20688: *\'*) :
20689: eval set x "$CONFIG_FILES" ;; #(
20690: *) :
20691: set x $CONFIG_FILES ;; #(
20692: *) :
20693: ;;
20694: esac
1.150 moko 20695: shift
1.199 moko 20696: # Used to flag and report bootstrapping failures.
20697: am_rc=0
20698: for am_mf
1.150 moko 20699: do
20700: # Strip MF so we end up with the name of the file.
1.199 moko 20701: am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20702: # Check whether this is an Automake generated Makefile which includes
20703: # dependency-tracking related rules and includes.
20704: # Grep'ing the whole file directly is not great: AIX grep has a line
1.150 moko 20705: # limit of 2048, but all sed's we know have understand at least 4000.
1.199 moko 20706: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20707: || continue
20708: am_dirpart=`$as_dirname -- "$am_mf" ||
20709: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20710: X"$am_mf" : 'X\(//\)[^/]' \| \
20711: X"$am_mf" : 'X\(//\)$' \| \
20712: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20713: $as_echo X"$am_mf" |
1.150 moko 20714: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20715: s//\1/
20716: q
20717: }
20718: /^X\(\/\/\)[^/].*/{
20719: s//\1/
20720: q
20721: }
20722: /^X\(\/\/\)$/{
20723: s//\1/
20724: q
20725: }
20726: /^X\(\/\).*/{
20727: s//\1/
20728: q
20729: }
20730: s/.*/./; q'`
1.199 moko 20731: am_filepart=`$as_basename -- "$am_mf" ||
20732: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20733: X"$am_mf" : 'X\(//\)$' \| \
20734: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20735: $as_echo X/"$am_mf" |
20736: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.150 moko 20737: s//\1/
20738: q
20739: }
1.199 moko 20740: /^X\/\(\/\/\)$/{
1.150 moko 20741: s//\1/
20742: q
20743: }
1.199 moko 20744: /^X\/\(\/\).*/{
1.150 moko 20745: s//\1/
20746: q
20747: }
20748: s/.*/./; q'`
1.199 moko 20749: { echo "$as_me:$LINENO: cd "$am_dirpart" \
20750: && sed -e '/# am--include-marker/d' "$am_filepart" \
20751: | $MAKE -f - am--depfiles" >&5
20752: (cd "$am_dirpart" \
20753: && sed -e '/# am--include-marker/d' "$am_filepart" \
20754: | $MAKE -f - am--depfiles) >&5 2>&5
20755: ac_status=$?
20756: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757: (exit $ac_status); } || am_rc=$?
1.62 paf 20758: done
1.199 moko 20759: if test $am_rc -ne 0; then
20760: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20761: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20762: as_fn_error $? "Something went wrong bootstrapping makefile fragments
1.216 moko 20763: for automatic dependency tracking. If GNU make was not used, consider
20764: re-running the configure script with MAKE=\"gmake\" (or whatever is
20765: necessary). You can also try re-running configure with the
1.199 moko 20766: '--disable-dependency-tracking' option to at least be able to build
20767: the package (albeit without support for automatic dependency tracking).
20768: See \`config.log' for more details" "$LINENO" 5; }
20769: fi
20770: { am_dirpart=; unset am_dirpart;}
20771: { am_filepart=; unset am_filepart;}
20772: { am_mf=; unset am_mf;}
20773: { am_rc=; unset am_rc;}
20774: rm -f conftest-deps.mk
1.150 moko 20775: }
1.62 paf 20776: ;;
1.150 moko 20777: "libtool":C)
1.128 moko 20778:
20779: # See if we are running on zsh, and set the options which allow our
20780: # commands through without removal of \ escapes.
20781: if test -n "${ZSH_VERSION+set}" ; then
20782: setopt NO_GLOB_SUBST
20783: fi
20784:
20785: cfgfile="${ofile}T"
20786: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20787: $RM "$cfgfile"
20788:
20789: cat <<_LT_EOF >> "$cfgfile"
20790: #! $SHELL
20791:
20792: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20793: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20794: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20795: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20796: #
20797: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20798: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20799: # Foundation, Inc.
20800: # Written by Gordon Matzigkeit, 1996
20801: #
20802: # This file is part of GNU Libtool.
20803: #
20804: # GNU Libtool is free software; you can redistribute it and/or
20805: # modify it under the terms of the GNU General Public License as
20806: # published by the Free Software Foundation; either version 2 of
20807: # the License, or (at your option) any later version.
20808: #
20809: # As a special exception to the GNU General Public License,
20810: # if you distribute this file as part of a program or library that
20811: # is built using GNU Libtool, you may include this file under the
20812: # same distribution terms that you use for the rest of that program.
20813: #
20814: # GNU Libtool is distributed in the hope that it will be useful,
20815: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20816: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20817: # GNU General Public License for more details.
20818: #
20819: # You should have received a copy of the GNU General Public License
20820: # along with GNU Libtool; see the file COPYING. If not, a copy
20821: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20822: # obtained by writing to the Free Software Foundation, Inc.,
20823: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20824:
20825:
20826: # The names of the tagged configurations supported by this script.
20827: available_tags="CXX "
20828:
20829: # ### BEGIN LIBTOOL CONFIG
20830:
20831: # Which release of libtool.m4 was used?
20832: macro_version=$macro_version
20833: macro_revision=$macro_revision
20834:
20835: # Assembler program.
20836: AS=$lt_AS
20837:
20838: # DLL creation program.
20839: DLLTOOL=$lt_DLLTOOL
20840:
20841: # Object dumper program.
20842: OBJDUMP=$lt_OBJDUMP
20843:
1.145 moko 20844: # What type of objects to build.
20845: pic_mode=$pic_mode
20846:
1.128 moko 20847: # Whether or not to build shared libraries.
20848: build_libtool_libs=$enable_shared
20849:
1.138 moko 20850: # Whether or not to build static libraries.
20851: build_old_libs=$enable_static
20852:
1.128 moko 20853: # Whether or not to optimize for fast installation.
20854: fast_install=$enable_fast_install
20855:
20856: # Shell to use when invoking shell scripts.
20857: SHELL=$lt_SHELL
20858:
20859: # An echo program that protects backslashes.
20860: ECHO=$lt_ECHO
20861:
20862: # The PATH separator for the build system.
20863: PATH_SEPARATOR=$lt_PATH_SEPARATOR
20864:
20865: # The host system.
20866: host_alias=$host_alias
20867: host=$host
20868: host_os=$host_os
20869:
20870: # The build system.
20871: build_alias=$build_alias
20872: build=$build
20873: build_os=$build_os
20874:
20875: # A sed program that does not truncate output.
20876: SED=$lt_SED
20877:
20878: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20879: Xsed="\$SED -e 1s/^X//"
20880:
20881: # A grep program that handles long lines.
20882: GREP=$lt_GREP
20883:
20884: # An ERE matcher.
20885: EGREP=$lt_EGREP
20886:
20887: # A literal string matcher.
20888: FGREP=$lt_FGREP
20889:
20890: # A BSD- or MS-compatible name lister.
20891: NM=$lt_NM
20892:
20893: # Whether we need soft or hard links.
20894: LN_S=$lt_LN_S
20895:
20896: # What is the maximum length of a command?
20897: max_cmd_len=$max_cmd_len
20898:
20899: # Object file suffix (normally "o").
20900: objext=$ac_objext
20901:
20902: # Executable file suffix (normally "").
20903: exeext=$exeext
20904:
20905: # whether the shell understands "unset".
20906: lt_unset=$lt_unset
20907:
20908: # turn spaces into newlines.
20909: SP2NL=$lt_lt_SP2NL
20910:
20911: # turn newlines into spaces.
20912: NL2SP=$lt_lt_NL2SP
20913:
20914: # convert \$build file names to \$host format.
20915: to_host_file_cmd=$lt_cv_to_host_file_cmd
20916:
20917: # convert \$build files to toolchain format.
20918: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20919:
20920: # Method to check whether dependent libraries are shared objects.
20921: deplibs_check_method=$lt_deplibs_check_method
20922:
20923: # Command to use when deplibs_check_method = "file_magic".
20924: file_magic_cmd=$lt_file_magic_cmd
20925:
20926: # How to find potential files when deplibs_check_method = "file_magic".
20927: file_magic_glob=$lt_file_magic_glob
20928:
20929: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20930: want_nocaseglob=$lt_want_nocaseglob
20931:
20932: # Command to associate shared and link libraries.
20933: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20934:
20935: # The archiver.
20936: AR=$lt_AR
20937:
20938: # Flags to create an archive.
20939: AR_FLAGS=$lt_AR_FLAGS
20940:
20941: # How to feed a file listing to the archiver.
20942: archiver_list_spec=$lt_archiver_list_spec
20943:
20944: # A symbol stripping program.
20945: STRIP=$lt_STRIP
20946:
20947: # Commands used to install an old-style archive.
20948: RANLIB=$lt_RANLIB
20949: old_postinstall_cmds=$lt_old_postinstall_cmds
20950: old_postuninstall_cmds=$lt_old_postuninstall_cmds
20951:
20952: # Whether to use a lock for old archive extraction.
20953: lock_old_archive_extraction=$lock_old_archive_extraction
20954:
20955: # A C compiler.
20956: LTCC=$lt_CC
20957:
20958: # LTCC compiler flags.
20959: LTCFLAGS=$lt_CFLAGS
20960:
20961: # Take the output of nm and produce a listing of raw symbols and C names.
20962: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20963:
20964: # Transform the output of nm in a proper C declaration.
20965: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20966:
20967: # Transform the output of nm in a C name address pair.
20968: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20969:
20970: # Transform the output of nm in a C name address pair when lib prefix is needed.
20971: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20972:
20973: # Specify filename containing input files for \$NM.
20974: nm_file_list_spec=$lt_nm_file_list_spec
20975:
20976: # The root where to search for dependent libraries,and in which our libraries should be installed.
20977: lt_sysroot=$lt_sysroot
20978:
20979: # The name of the directory that contains temporary libtool files.
20980: objdir=$objdir
20981:
20982: # Used to examine libraries when file_magic_cmd begins with "file".
20983: MAGIC_CMD=$MAGIC_CMD
20984:
20985: # Must we lock files when doing compilation?
20986: need_locks=$lt_need_locks
20987:
20988: # Manifest tool.
20989: MANIFEST_TOOL=$lt_MANIFEST_TOOL
20990:
20991: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20992: DSYMUTIL=$lt_DSYMUTIL
20993:
20994: # Tool to change global to local symbols on Mac OS X.
20995: NMEDIT=$lt_NMEDIT
20996:
20997: # Tool to manipulate fat objects and archives on Mac OS X.
20998: LIPO=$lt_LIPO
20999:
21000: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21001: OTOOL=$lt_OTOOL
21002:
21003: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21004: OTOOL64=$lt_OTOOL64
21005:
21006: # Old archive suffix (normally "a").
21007: libext=$libext
21008:
21009: # Shared library suffix (normally ".so").
21010: shrext_cmds=$lt_shrext_cmds
21011:
21012: # The commands to extract the exported symbol list from a shared archive.
21013: extract_expsyms_cmds=$lt_extract_expsyms_cmds
21014:
21015: # Variables whose values should be saved in libtool wrapper scripts and
21016: # restored at link time.
21017: variables_saved_for_relink=$lt_variables_saved_for_relink
21018:
21019: # Do we need the "lib" prefix for modules?
21020: need_lib_prefix=$need_lib_prefix
21021:
21022: # Do we need a version for libraries?
21023: need_version=$need_version
21024:
21025: # Library versioning type.
21026: version_type=$version_type
21027:
21028: # Shared library runtime path variable.
21029: runpath_var=$runpath_var
21030:
21031: # Shared library path variable.
21032: shlibpath_var=$shlibpath_var
21033:
21034: # Is shlibpath searched before the hard-coded library search path?
21035: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21036:
21037: # Format of library name prefix.
21038: libname_spec=$lt_libname_spec
21039:
21040: # List of archive names. First name is the real one, the rest are links.
21041: # The last name is the one that the linker finds with -lNAME
21042: library_names_spec=$lt_library_names_spec
21043:
21044: # The coded name of the library, if different from the real name.
21045: soname_spec=$lt_soname_spec
21046:
21047: # Permission mode override for installation of shared libraries.
21048: install_override_mode=$lt_install_override_mode
21049:
21050: # Command to use after installation of a shared archive.
21051: postinstall_cmds=$lt_postinstall_cmds
21052:
21053: # Command to use after uninstallation of a shared archive.
21054: postuninstall_cmds=$lt_postuninstall_cmds
21055:
21056: # Commands used to finish a libtool library installation in a directory.
21057: finish_cmds=$lt_finish_cmds
21058:
21059: # As "finish_cmds", except a single script fragment to be evaled but
21060: # not shown.
21061: finish_eval=$lt_finish_eval
21062:
21063: # Whether we should hardcode library paths into libraries.
21064: hardcode_into_libs=$hardcode_into_libs
21065:
21066: # Compile-time system search path for libraries.
21067: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21068:
21069: # Run-time system search path for libraries.
21070: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21071:
21072: # Whether dlopen is supported.
21073: dlopen_support=$enable_dlopen
21074:
21075: # Whether dlopen of programs is supported.
21076: dlopen_self=$enable_dlopen_self
21077:
21078: # Whether dlopen of statically linked programs is supported.
21079: dlopen_self_static=$enable_dlopen_self_static
21080:
21081: # Commands to strip libraries.
21082: old_striplib=$lt_old_striplib
21083: striplib=$lt_striplib
21084:
21085:
21086: # The linker used to build libraries.
21087: LD=$lt_LD
21088:
21089: # How to create reloadable object files.
21090: reload_flag=$lt_reload_flag
21091: reload_cmds=$lt_reload_cmds
21092:
21093: # Commands used to build an old-style archive.
21094: old_archive_cmds=$lt_old_archive_cmds
21095:
21096: # A language specific compiler.
21097: CC=$lt_compiler
21098:
21099: # Is the compiler the GNU compiler?
21100: with_gcc=$GCC
21101:
21102: # Compiler flag to turn off builtin functions.
21103: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21104:
21105: # Additional compiler flags for building library objects.
21106: pic_flag=$lt_lt_prog_compiler_pic
21107:
21108: # How to pass a linker flag through the compiler.
21109: wl=$lt_lt_prog_compiler_wl
21110:
21111: # Compiler flag to prevent dynamic linking.
21112: link_static_flag=$lt_lt_prog_compiler_static
21113:
21114: # Does compiler simultaneously support -c and -o options?
21115: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21116:
21117: # Whether or not to add -lc for building shared libraries.
21118: build_libtool_need_lc=$archive_cmds_need_lc
21119:
21120: # Whether or not to disallow shared libs when runtime libs are static.
21121: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21122:
21123: # Compiler flag to allow reflexive dlopens.
21124: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21125:
21126: # Compiler flag to generate shared objects directly from archives.
21127: whole_archive_flag_spec=$lt_whole_archive_flag_spec
21128:
21129: # Whether the compiler copes with passing no objects directly.
21130: compiler_needs_object=$lt_compiler_needs_object
21131:
21132: # Create an old-style archive from a shared archive.
21133: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21134:
21135: # Create a temporary old-style archive to link instead of a shared archive.
21136: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21137:
21138: # Commands used to build a shared archive.
21139: archive_cmds=$lt_archive_cmds
21140: archive_expsym_cmds=$lt_archive_expsym_cmds
21141:
21142: # Commands used to build a loadable module if different from building
21143: # a shared archive.
21144: module_cmds=$lt_module_cmds
21145: module_expsym_cmds=$lt_module_expsym_cmds
21146:
21147: # Whether we are building with GNU ld or not.
21148: with_gnu_ld=$lt_with_gnu_ld
21149:
21150: # Flag that allows shared libraries with undefined symbols to be built.
21151: allow_undefined_flag=$lt_allow_undefined_flag
21152:
21153: # Flag that enforces no undefined symbols.
21154: no_undefined_flag=$lt_no_undefined_flag
21155:
21156: # Flag to hardcode \$libdir into a binary during linking.
21157: # This must work even if \$libdir does not exist
21158: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21159:
21160: # Whether we need a single "-rpath" flag with a separated argument.
21161: hardcode_libdir_separator=$lt_hardcode_libdir_separator
21162:
21163: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21164: # DIR into the resulting binary.
21165: hardcode_direct=$hardcode_direct
21166:
21167: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21168: # DIR into the resulting binary and the resulting library dependency is
21169: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21170: # library is relocated.
21171: hardcode_direct_absolute=$hardcode_direct_absolute
21172:
21173: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21174: # into the resulting binary.
21175: hardcode_minus_L=$hardcode_minus_L
21176:
21177: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21178: # into the resulting binary.
21179: hardcode_shlibpath_var=$hardcode_shlibpath_var
21180:
21181: # Set to "yes" if building a shared library automatically hardcodes DIR
21182: # into the library and all subsequent libraries and executables linked
21183: # against it.
21184: hardcode_automatic=$hardcode_automatic
21185:
21186: # Set to yes if linker adds runtime paths of dependent libraries
21187: # to runtime path list.
21188: inherit_rpath=$inherit_rpath
21189:
21190: # Whether libtool must link a program against all its dependency libraries.
21191: link_all_deplibs=$link_all_deplibs
21192:
21193: # Set to "yes" if exported symbols are required.
21194: always_export_symbols=$always_export_symbols
21195:
21196: # The commands to list exported symbols.
21197: export_symbols_cmds=$lt_export_symbols_cmds
21198:
21199: # Symbols that should not be listed in the preloaded symbols.
21200: exclude_expsyms=$lt_exclude_expsyms
21201:
21202: # Symbols that must always be exported.
21203: include_expsyms=$lt_include_expsyms
21204:
21205: # Commands necessary for linking programs (against libraries) with templates.
21206: prelink_cmds=$lt_prelink_cmds
21207:
21208: # Commands necessary for finishing linking programs.
21209: postlink_cmds=$lt_postlink_cmds
21210:
21211: # Specify filename containing input files.
21212: file_list_spec=$lt_file_list_spec
21213:
21214: # How to hardcode a shared library path into an executable.
21215: hardcode_action=$hardcode_action
21216:
21217: # The directories searched by this compiler when creating a shared library.
21218: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21219:
21220: # Dependencies to place before and after the objects being linked to
21221: # create a shared library.
21222: predep_objects=$lt_predep_objects
21223: postdep_objects=$lt_postdep_objects
21224: predeps=$lt_predeps
21225: postdeps=$lt_postdeps
21226:
21227: # The library search path used internally by the compiler when linking
21228: # a shared library.
21229: compiler_lib_search_path=$lt_compiler_lib_search_path
21230:
21231: # ### END LIBTOOL CONFIG
21232:
21233: _LT_EOF
21234:
21235: case $host_os in
21236: aix3*)
21237: cat <<\_LT_EOF >> "$cfgfile"
21238: # AIX sometimes has problems with the GCC collect2 program. For some
21239: # reason, if we set the COLLECT_NAMES environment variable, the problems
21240: # vanish in a puff of smoke.
21241: if test "X${COLLECT_NAMES+set}" != Xset; then
21242: COLLECT_NAMES=
21243: export COLLECT_NAMES
21244: fi
21245: _LT_EOF
21246: ;;
21247: esac
21248:
21249:
21250: ltmain="$ac_aux_dir/ltmain.sh"
21251:
21252:
21253: # We use sed instead of cat because bash on DJGPP gets confused if
21254: # if finds mixed CR/LF and LF-only lines. Since sed operates in
21255: # text mode, it properly converts lines to CR/LF. This bash problem
21256: # is reportedly fixed, but why not run on old versions too?
21257: sed '$q' "$ltmain" >> "$cfgfile" \
21258: || (rm -f "$cfgfile"; exit 1)
21259:
21260: if test x"$xsi_shell" = xyes; then
21261: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21262: func_dirname ()\
21263: {\
21264: \ case ${1} in\
21265: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21266: \ * ) func_dirname_result="${3}" ;;\
21267: \ esac\
21268: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21269: && mv -f "$cfgfile.tmp" "$cfgfile" \
21270: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21271: test 0 -eq $? || _lt_function_replace_fail=:
21272:
21273:
21274: sed -e '/^func_basename ()$/,/^} # func_basename /c\
21275: func_basename ()\
21276: {\
21277: \ func_basename_result="${1##*/}"\
21278: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21279: && mv -f "$cfgfile.tmp" "$cfgfile" \
21280: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21281: test 0 -eq $? || _lt_function_replace_fail=:
21282:
21283:
21284: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21285: func_dirname_and_basename ()\
21286: {\
21287: \ case ${1} in\
21288: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21289: \ * ) func_dirname_result="${3}" ;;\
21290: \ esac\
21291: \ func_basename_result="${1##*/}"\
21292: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21293: && mv -f "$cfgfile.tmp" "$cfgfile" \
21294: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21295: test 0 -eq $? || _lt_function_replace_fail=:
21296:
21297:
21298: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21299: func_stripname ()\
21300: {\
21301: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21302: \ # positional parameters, so assign one to ordinary parameter first.\
21303: \ func_stripname_result=${3}\
21304: \ func_stripname_result=${func_stripname_result#"${1}"}\
21305: \ func_stripname_result=${func_stripname_result%"${2}"}\
21306: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21307: && mv -f "$cfgfile.tmp" "$cfgfile" \
21308: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21309: test 0 -eq $? || _lt_function_replace_fail=:
21310:
21311:
21312: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21313: func_split_long_opt ()\
21314: {\
21315: \ func_split_long_opt_name=${1%%=*}\
21316: \ func_split_long_opt_arg=${1#*=}\
21317: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21318: && mv -f "$cfgfile.tmp" "$cfgfile" \
21319: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21320: test 0 -eq $? || _lt_function_replace_fail=:
21321:
21322:
21323: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21324: func_split_short_opt ()\
21325: {\
21326: \ func_split_short_opt_arg=${1#??}\
21327: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21328: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21329: && mv -f "$cfgfile.tmp" "$cfgfile" \
21330: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21331: test 0 -eq $? || _lt_function_replace_fail=:
21332:
21333:
21334: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21335: func_lo2o ()\
21336: {\
21337: \ case ${1} in\
21338: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21339: \ *) func_lo2o_result=${1} ;;\
21340: \ esac\
21341: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21342: && mv -f "$cfgfile.tmp" "$cfgfile" \
21343: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21344: test 0 -eq $? || _lt_function_replace_fail=:
21345:
21346:
21347: sed -e '/^func_xform ()$/,/^} # func_xform /c\
21348: func_xform ()\
21349: {\
21350: func_xform_result=${1%.*}.lo\
21351: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21352: && mv -f "$cfgfile.tmp" "$cfgfile" \
21353: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21354: test 0 -eq $? || _lt_function_replace_fail=:
21355:
21356:
21357: sed -e '/^func_arith ()$/,/^} # func_arith /c\
21358: func_arith ()\
21359: {\
21360: func_arith_result=$(( $* ))\
21361: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21362: && mv -f "$cfgfile.tmp" "$cfgfile" \
21363: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21364: test 0 -eq $? || _lt_function_replace_fail=:
21365:
21366:
21367: sed -e '/^func_len ()$/,/^} # func_len /c\
21368: func_len ()\
21369: {\
21370: func_len_result=${#1}\
21371: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21372: && mv -f "$cfgfile.tmp" "$cfgfile" \
21373: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21374: test 0 -eq $? || _lt_function_replace_fail=:
21375:
21376: fi
21377:
21378: if test x"$lt_shell_append" = xyes; then
21379: sed -e '/^func_append ()$/,/^} # func_append /c\
21380: func_append ()\
21381: {\
21382: eval "${1}+=\\${2}"\
21383: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21384: && mv -f "$cfgfile.tmp" "$cfgfile" \
21385: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21386: test 0 -eq $? || _lt_function_replace_fail=:
21387:
21388:
21389: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21390: func_append_quoted ()\
21391: {\
21392: \ func_quote_for_eval "${2}"\
21393: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21394: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21395: && mv -f "$cfgfile.tmp" "$cfgfile" \
21396: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21397: test 0 -eq $? || _lt_function_replace_fail=:
21398:
21399:
21400: # Save a `func_append' function call where possible by direct use of '+='
21401: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21402: && mv -f "$cfgfile.tmp" "$cfgfile" \
21403: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21404: test 0 -eq $? || _lt_function_replace_fail=:
21405: else
21406: # Save a `func_append' function call even when '+=' is not available
21407: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21408: && mv -f "$cfgfile.tmp" "$cfgfile" \
21409: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21410: test 0 -eq $? || _lt_function_replace_fail=:
21411: fi
21412:
21413: if test x"$_lt_function_replace_fail" = x":"; then
1.150 moko 21414: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21415: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.128 moko 21416: fi
21417:
21418:
21419: mv -f "$cfgfile" "$ofile" ||
21420: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21421: chmod +x "$ofile"
21422:
21423:
21424: cat <<_LT_EOF >> "$ofile"
21425:
21426: # ### BEGIN LIBTOOL TAG CONFIG: CXX
21427:
21428: # The linker used to build libraries.
21429: LD=$lt_LD_CXX
21430:
21431: # How to create reloadable object files.
21432: reload_flag=$lt_reload_flag_CXX
21433: reload_cmds=$lt_reload_cmds_CXX
21434:
21435: # Commands used to build an old-style archive.
21436: old_archive_cmds=$lt_old_archive_cmds_CXX
21437:
21438: # A language specific compiler.
21439: CC=$lt_compiler_CXX
21440:
21441: # Is the compiler the GNU compiler?
21442: with_gcc=$GCC_CXX
21443:
21444: # Compiler flag to turn off builtin functions.
21445: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21446:
21447: # Additional compiler flags for building library objects.
21448: pic_flag=$lt_lt_prog_compiler_pic_CXX
21449:
21450: # How to pass a linker flag through the compiler.
21451: wl=$lt_lt_prog_compiler_wl_CXX
21452:
21453: # Compiler flag to prevent dynamic linking.
21454: link_static_flag=$lt_lt_prog_compiler_static_CXX
21455:
21456: # Does compiler simultaneously support -c and -o options?
21457: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21458:
21459: # Whether or not to add -lc for building shared libraries.
21460: build_libtool_need_lc=$archive_cmds_need_lc_CXX
21461:
21462: # Whether or not to disallow shared libs when runtime libs are static.
21463: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21464:
21465: # Compiler flag to allow reflexive dlopens.
21466: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21467:
21468: # Compiler flag to generate shared objects directly from archives.
21469: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21470:
21471: # Whether the compiler copes with passing no objects directly.
21472: compiler_needs_object=$lt_compiler_needs_object_CXX
21473:
21474: # Create an old-style archive from a shared archive.
21475: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21476:
21477: # Create a temporary old-style archive to link instead of a shared archive.
21478: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21479:
21480: # Commands used to build a shared archive.
21481: archive_cmds=$lt_archive_cmds_CXX
21482: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21483:
21484: # Commands used to build a loadable module if different from building
21485: # a shared archive.
21486: module_cmds=$lt_module_cmds_CXX
21487: module_expsym_cmds=$lt_module_expsym_cmds_CXX
21488:
21489: # Whether we are building with GNU ld or not.
21490: with_gnu_ld=$lt_with_gnu_ld_CXX
21491:
21492: # Flag that allows shared libraries with undefined symbols to be built.
21493: allow_undefined_flag=$lt_allow_undefined_flag_CXX
21494:
21495: # Flag that enforces no undefined symbols.
21496: no_undefined_flag=$lt_no_undefined_flag_CXX
21497:
21498: # Flag to hardcode \$libdir into a binary during linking.
21499: # This must work even if \$libdir does not exist
21500: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21501:
21502: # Whether we need a single "-rpath" flag with a separated argument.
21503: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21504:
21505: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21506: # DIR into the resulting binary.
21507: hardcode_direct=$hardcode_direct_CXX
21508:
21509: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21510: # DIR into the resulting binary and the resulting library dependency is
21511: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21512: # library is relocated.
21513: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21514:
21515: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21516: # into the resulting binary.
21517: hardcode_minus_L=$hardcode_minus_L_CXX
21518:
21519: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21520: # into the resulting binary.
21521: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21522:
21523: # Set to "yes" if building a shared library automatically hardcodes DIR
21524: # into the library and all subsequent libraries and executables linked
21525: # against it.
21526: hardcode_automatic=$hardcode_automatic_CXX
21527:
21528: # Set to yes if linker adds runtime paths of dependent libraries
21529: # to runtime path list.
21530: inherit_rpath=$inherit_rpath_CXX
21531:
21532: # Whether libtool must link a program against all its dependency libraries.
21533: link_all_deplibs=$link_all_deplibs_CXX
21534:
21535: # Set to "yes" if exported symbols are required.
21536: always_export_symbols=$always_export_symbols_CXX
21537:
21538: # The commands to list exported symbols.
21539: export_symbols_cmds=$lt_export_symbols_cmds_CXX
21540:
21541: # Symbols that should not be listed in the preloaded symbols.
21542: exclude_expsyms=$lt_exclude_expsyms_CXX
21543:
21544: # Symbols that must always be exported.
21545: include_expsyms=$lt_include_expsyms_CXX
21546:
21547: # Commands necessary for linking programs (against libraries) with templates.
21548: prelink_cmds=$lt_prelink_cmds_CXX
21549:
21550: # Commands necessary for finishing linking programs.
21551: postlink_cmds=$lt_postlink_cmds_CXX
21552:
21553: # Specify filename containing input files.
21554: file_list_spec=$lt_file_list_spec_CXX
21555:
21556: # How to hardcode a shared library path into an executable.
21557: hardcode_action=$hardcode_action_CXX
21558:
21559: # The directories searched by this compiler when creating a shared library.
21560: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21561:
21562: # Dependencies to place before and after the objects being linked to
21563: # create a shared library.
21564: predep_objects=$lt_predep_objects_CXX
21565: postdep_objects=$lt_postdep_objects_CXX
21566: predeps=$lt_predeps_CXX
21567: postdeps=$lt_postdeps_CXX
21568:
21569: # The library search path used internally by the compiler when linking
21570: # a shared library.
21571: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21572:
21573: # ### END LIBTOOL TAG CONFIG: CXX
21574: _LT_EOF
21575:
21576: ;;
1.150 moko 21577:
1.62 paf 21578: esac
1.150 moko 21579: done # for ac_tag
1.62 paf 21580:
21581:
1.150 moko 21582: as_fn_exit 0
1.62 paf 21583: _ACEOF
21584: ac_clean_files=$ac_clean_files_save
21585:
1.150 moko 21586: test $ac_write_fail = 0 ||
21587: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21588:
1.1 paf 21589:
1.62 paf 21590: # configure is writing to config.log, and then calls config.status.
21591: # config.status does its own redirection, appending to config.log.
21592: # Unfortunately, on DOS this fails, as config.log is still kept open
21593: # by configure, so config.status won't be able to write to it; its
21594: # output is simply discarded. So we exec the FD to /dev/null,
21595: # effectively closing config.log, so it can be properly (re)opened and
21596: # appended to by config.status. When coming back to configure, we
21597: # need to make the FD available again.
21598: if test "$no_create" != yes; then
21599: ac_cs_success=:
21600: ac_config_status_args=
21601: test "$silent" = yes &&
21602: ac_config_status_args="$ac_config_status_args --quiet"
21603: exec 5>/dev/null
21604: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21605: exec 5>>config.log
21606: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21607: # would make configure fail if this is the last instruction.
1.150 moko 21608: $ac_cs_success || as_fn_exit 1
1.62 paf 21609: fi
21610:
21611: #
21612: # CONFIG_SUBDIRS section.
21613: #
1.1 paf 21614: if test "$no_recursion" != yes; then
21615:
1.150 moko 21616: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21617: # so they do not pile up.
1.1 paf 21618: ac_sub_configure_args=
21619: ac_prev=
1.150 moko 21620: eval "set x $ac_configure_args"
21621: shift
21622: for ac_arg
21623: do
1.1 paf 21624: if test -n "$ac_prev"; then
21625: ac_prev=
21626: continue
21627: fi
1.62 paf 21628: case $ac_arg in
1.1 paf 21629: -cache-file | --cache-file | --cache-fil | --cache-fi \
21630: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21631: ac_prev=cache_file ;;
21632: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 21633: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21634: | --c=*)
21635: ;;
21636: --config-cache | -C)
1.1 paf 21637: ;;
21638: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21639: ac_prev=srcdir ;;
21640: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21641: ;;
1.62 paf 21642: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21643: ac_prev=prefix ;;
21644: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21645: ;;
1.150 moko 21646: --disable-option-checking)
21647: ;;
21648: *)
21649: case $ac_arg in
21650: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21651: esac
21652: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 21653: esac
21654: done
21655:
1.62 paf 21656: # Always prepend --prefix to ensure using the same prefix
21657: # in subdir configurations.
1.150 moko 21658: ac_arg="--prefix=$prefix"
21659: case $ac_arg in
21660: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21661: esac
21662: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21663:
21664: # Pass --silent
21665: if test "$silent" = yes; then
21666: ac_sub_configure_args="--silent $ac_sub_configure_args"
21667: fi
21668:
21669: # Always prepend --disable-option-checking to silence warnings, since
21670: # different subdirs can have different --enable and --with options.
21671: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 21672:
21673: ac_popdir=`pwd`
21674: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 21675:
21676: # Do not complain, so a configure script can configure whichever
21677: # parts of a large source tree are present.
1.150 moko 21678: test -d "$srcdir/$ac_dir" || continue
1.62 paf 21679:
1.150 moko 21680: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21681: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21682: $as_echo "$ac_msg" >&6
21683: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 21684: ac_builddir=.
21685:
1.150 moko 21686: case "$ac_dir" in
21687: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21688: *)
21689: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21690: # A ".." for each directory in $ac_dir_suffix.
21691: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21692: case $ac_top_builddir_sub in
21693: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21694: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21695: esac ;;
21696: esac
21697: ac_abs_top_builddir=$ac_pwd
21698: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21699: # for backward compatibility:
21700: ac_top_builddir=$ac_top_build_prefix
1.62 paf 21701:
21702: case $srcdir in
1.150 moko 21703: .) # We are building in place.
1.62 paf 21704: ac_srcdir=.
1.150 moko 21705: ac_top_srcdir=$ac_top_builddir_sub
21706: ac_abs_top_srcdir=$ac_pwd ;;
21707: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 21708: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 21709: ac_top_srcdir=$srcdir
21710: ac_abs_top_srcdir=$srcdir ;;
21711: *) # Relative name.
21712: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21713: ac_top_srcdir=$ac_top_build_prefix$srcdir
21714: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 21715: esac
1.150 moko 21716: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 21717:
21718:
1.150 moko 21719: cd "$ac_dir"
1.1 paf 21720:
21721: # Check for guested configure; otherwise get Cygnus style configure.
1.150 moko 21722: if test -f "$ac_srcdir/configure.gnu"; then
21723: ac_sub_configure=$ac_srcdir/configure.gnu
21724: elif test -f "$ac_srcdir/configure"; then
21725: ac_sub_configure=$ac_srcdir/configure
21726: elif test -f "$ac_srcdir/configure.in"; then
21727: # This should be Cygnus configure.
21728: ac_sub_configure=$ac_aux_dir/configure
1.1 paf 21729: else
1.150 moko 21730: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21731: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 21732: ac_sub_configure=
21733: fi
21734:
21735: # The recursion is here.
21736: if test -n "$ac_sub_configure"; then
21737: # Make the cache file name correct relative to the subdirectory.
1.62 paf 21738: case $cache_file in
21739: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 21740: *) # Relative name.
21741: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 21742: esac
21743:
1.150 moko 21744: { $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
21745: $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 21746: # The eval makes quoting arguments work.
1.150 moko 21747: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21748: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21749: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 21750: fi
21751:
1.150 moko 21752: cd "$ac_popdir"
1.1 paf 21753: done
21754: fi
1.150 moko 21755: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21756: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21757: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21758: fi
1.1 paf 21759:
E-mail: