Imported Upstream version 0.66.1
[hcoop/debian/courier-authlib.git] / libs / bdbobj / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bdbobj 0.10.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: courier-users@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='bdbobj'
592 PACKAGE_TARNAME='bdbobj'
593 PACKAGE_VERSION='0.10'
594 PACKAGE_STRING='bdbobj 0.10'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="bdbobj.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 FOUND_DB_FALSE
640 FOUND_DB_TRUE
641 LIBDB
642 CXXCPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 ac_ct_AR
651 AR
652 DLLTOOL
653 OBJDUMP
654 LN_S
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 am__fastdepCXX_FALSE
671 am__fastdepCXX_TRUE
672 CXXDEPMODE
673 ac_ct_CXX
674 CXXFLAGS
675 CXX
676 EGREP
677 GREP
678 CPP
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
695 CC
696 AM_BACKSLASH
697 AM_DEFAULT_VERBOSITY
698 AM_DEFAULT_V
699 AM_V
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_silent_rules
765 enable_dependency_tracking
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 enable_largefile
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CPP
784 CXX
785 CXXFLAGS
786 CCC
787 CXXCPP'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
847 fi
848
849 case $ac_option in
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *=) ac_optarg= ;;
852 *) ac_optarg=yes ;;
853 esac
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
885
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
918
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 ;;
1194
1195 esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1216 do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures bdbobj 0.10 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/bdbobj]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of bdbobj 0.10:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-silent-rules less verbose build output (undo: "make V=1")
1407 --disable-silent-rules verbose build output (undo: "make V=0")
1408 --enable-dependency-tracking
1409 do not reject slow dependency extractors
1410 --disable-dependency-tracking
1411 speeds up one-time build
1412 --enable-shared[=PKGS] build shared libraries [default=yes]
1413 --enable-static[=PKGS] build static libraries [default=yes]
1414 --enable-fast-install[=PKGS]
1415 optimize for fast installation [default=yes]
1416 --disable-libtool-lock avoid locking (might break parallel builds)
1417 --disable-largefile omit support for large files
1418
1419 Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1423 both]
1424 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1425 --with-sysroot=DIR Search for dependent libraries within DIR
1426 (or the compiler's sysroot if not specified).
1427
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 CPP C preprocessor
1437 CXX C++ compiler command
1438 CXXFLAGS C++ compiler flags
1439 CXXCPP C++ preprocessor
1440
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1443
1444 Report bugs to <courier-users@lists.sourceforge.net>.
1445 _ACEOF
1446 ac_status=$?
1447 fi
1448
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1456
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *)
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1472
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1502 fi
1503
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 bdbobj configure 0.10
1508 generated by GNU Autoconf 2.69
1509
1510 Copyright (C) 2012 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514 exit
1515 fi
1516
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1520
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1525 {
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553 fi
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1556
1557 } # ac_fn_c_try_compile
1558
1559 # ac_fn_c_try_cpp LINENO
1560 # ----------------------
1561 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_cpp ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_cpp conftest.$ac_ext"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } > conftest.i && {
1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 }; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590 fi
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_cpp
1595
1596 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1599 # the include files in INCLUDES and setting the cache variable VAR
1600 # accordingly.
1601 ac_fn_c_check_header_mongrel ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if eval \${$3+:} false; then :
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1609 fi
1610 eval ac_res=\$$3
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 $as_echo "$ac_res" >&6; }
1613 else
1614 # Is the header compilable?
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1616 $as_echo_n "checking $2 usability... " >&6; }
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 $4
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 ac_header_compiler=yes
1624 else
1625 ac_header_compiler=no
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1629 $as_echo "$ac_header_compiler" >&6; }
1630
1631 # Is the header present?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1633 $as_echo_n "checking $2 presence... " >&6; }
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_cpp "$LINENO"; then :
1639 ac_header_preproc=yes
1640 else
1641 ac_header_preproc=no
1642 fi
1643 rm -f conftest.err conftest.i conftest.$ac_ext
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1645 $as_echo "$ac_header_preproc" >&6; }
1646
1647 # So? What about this header?
1648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1649 yes:no: )
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1651 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 ;;
1655 no:yes:* )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1657 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1659 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1661 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1663 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 ( $as_echo "## -------------------------------------------------- ##
1667 ## Report this to courier-users@lists.sourceforge.net ##
1668 ## -------------------------------------------------- ##"
1669 ) | sed "s/^/$as_me: WARNING: /" >&2
1670 ;;
1671 esac
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1676 else
1677 eval "$3=\$ac_header_compiler"
1678 fi
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685 } # ac_fn_c_check_header_mongrel
1686
1687 # ac_fn_c_try_run LINENO
1688 # ----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1690 # that executables *can* be run.
1691 ac_fn_c_try_run ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1705 { { case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_try") 2>&5
1712 ac_status=$?
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; }; }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: program exited with status $ac_status" >&5
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=$ac_status
1722 fi
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_run
1728
1729 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists and can be compiled using the include files in
1732 # INCLUDES, setting the cache variable VAR accordingly.
1733 ac_fn_c_check_header_compile ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1740 else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 $4
1744 #include <$2>
1745 _ACEOF
1746 if ac_fn_c_try_compile "$LINENO"; then :
1747 eval "$3=yes"
1748 else
1749 eval "$3=no"
1750 fi
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 fi
1753 eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757
1758 } # ac_fn_c_check_header_compile
1759
1760 # ac_fn_cxx_try_compile LINENO
1761 # ----------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_cxx_try_compile ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext
1767 if { { ac_try="$ac_compile"
1768 case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_compile") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1780 fi
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_cxx_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest.$ac_objext; then :
1786 ac_retval=0
1787 else
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=1
1792 fi
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1795
1796 } # ac_fn_cxx_try_compile
1797
1798 # ac_fn_c_try_link LINENO
1799 # -----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_link ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext conftest$ac_exeext
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest$ac_exeext && {
1824 test "$cross_compiling" = yes ||
1825 test -x conftest$ac_exeext
1826 }; then :
1827 ac_retval=0
1828 else
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1
1833 fi
1834 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836 # interfere with the next link command; also delete a directory that is
1837 # left behind by Apple's compiler. We do this before executing the actions.
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_link
1843
1844 # ac_fn_c_check_func LINENO FUNC VAR
1845 # ----------------------------------
1846 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1847 ac_fn_c_check_func ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1859 #define $2 innocuous_$2
1860
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $2 (); below.
1863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1864 <limits.h> exists even on freestanding compilers. */
1865
1866 #ifdef __STDC__
1867 # include <limits.h>
1868 #else
1869 # include <assert.h>
1870 #endif
1871
1872 #undef $2
1873
1874 /* Override any GCC internal prototype to avoid an error.
1875 Use char because int might match the return type of a GCC
1876 builtin and then its argument prototype would still apply. */
1877 #ifdef __cplusplus
1878 extern "C"
1879 #endif
1880 char $2 ();
1881 /* The GNU C library defines this for functions which it implements
1882 to always fail with ENOSYS. Some functions are actually named
1883 something starting with __ and the normal name is an alias. */
1884 #if defined __stub_$2 || defined __stub___$2
1885 choke me
1886 #endif
1887
1888 int
1889 main ()
1890 {
1891 return $2 ();
1892 ;
1893 return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_link "$LINENO"; then :
1897 eval "$3=yes"
1898 else
1899 eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext \
1902 conftest$ac_exeext conftest.$ac_ext
1903 fi
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909 } # ac_fn_c_check_func
1910
1911 # ac_fn_cxx_try_cpp LINENO
1912 # ------------------------
1913 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_cxx_try_cpp ()
1915 {
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if { { ac_try="$ac_cpp conftest.$ac_ext"
1918 case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1930 fi
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } > conftest.i && {
1933 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1934 test ! -s conftest.err
1935 }; then :
1936 ac_retval=0
1937 else
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 ac_retval=1
1942 fi
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 as_fn_set_status $ac_retval
1945
1946 } # ac_fn_cxx_try_cpp
1947
1948 # ac_fn_cxx_try_link LINENO
1949 # -------------------------
1950 # Try to link conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_cxx_try_link ()
1952 {
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 rm -f conftest.$ac_objext conftest$ac_exeext
1955 if { { ac_try="$ac_link"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_link") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && {
1971 test -z "$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 } && test -s conftest$ac_exeext && {
1974 test "$cross_compiling" = yes ||
1975 test -x conftest$ac_exeext
1976 }; then :
1977 ac_retval=0
1978 else
1979 $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983 fi
1984 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986 # interfere with the next link command; also delete a directory that is
1987 # left behind by Apple's compiler. We do this before executing the actions.
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status $ac_retval
1991
1992 } # ac_fn_cxx_try_link
1993
1994 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1995 # -------------------------------------------
1996 # Tests whether TYPE exists after having included INCLUDES, setting cache
1997 # variable VAR accordingly.
1998 ac_fn_c_check_type ()
1999 {
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 eval "$3=no"
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 $4
2010 int
2011 main ()
2012 {
2013 if (sizeof ($2))
2014 return 0;
2015 ;
2016 return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 int
2024 main ()
2025 {
2026 if (sizeof (($2)))
2027 return 0;
2028 ;
2029 return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033
2034 else
2035 eval "$3=yes"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 fi
2041 eval ac_res=\$$3
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045
2046 } # ac_fn_c_check_type
2047 cat >config.log <<_ACEOF
2048 This file contains any messages produced by compilers while
2049 running configure, to aid debugging if configure makes a mistake.
2050
2051 It was created by bdbobj $as_me 0.10, which was
2052 generated by GNU Autoconf 2.69. Invocation command line was
2053
2054 $ $0 $@
2055
2056 _ACEOF
2057 exec 5>>config.log
2058 {
2059 cat <<_ASUNAME
2060 ## --------- ##
2061 ## Platform. ##
2062 ## --------- ##
2063
2064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2069
2070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2072
2073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2076 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2080
2081 _ASUNAME
2082
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 $as_echo "PATH: $as_dir"
2089 done
2090 IFS=$as_save_IFS
2091
2092 } >&5
2093
2094 cat >&5 <<_ACEOF
2095
2096
2097 ## ----------- ##
2098 ## Core tests. ##
2099 ## ----------- ##
2100
2101 _ACEOF
2102
2103
2104 # Keep a trace of the command line.
2105 # Strip out --no-create and --no-recursion so they do not pile up.
2106 # Strip out --silent because we don't want to record it for future runs.
2107 # Also quote any args containing shell meta-characters.
2108 # Make two passes to allow for proper duplicate-argument suppression.
2109 ac_configure_args=
2110 ac_configure_args0=
2111 ac_configure_args1=
2112 ac_must_keep_next=false
2113 for ac_pass in 1 2
2114 do
2115 for ac_arg
2116 do
2117 case $ac_arg in
2118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2120 | -silent | --silent | --silen | --sile | --sil)
2121 continue ;;
2122 *\'*)
2123 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2124 esac
2125 case $ac_pass in
2126 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2127 2)
2128 as_fn_append ac_configure_args1 " '$ac_arg'"
2129 if test $ac_must_keep_next = true; then
2130 ac_must_keep_next=false # Got value, back to normal.
2131 else
2132 case $ac_arg in
2133 *=* | --config-cache | -C | -disable-* | --disable-* \
2134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2136 | -with-* | --with-* | -without-* | --without-* | --x)
2137 case "$ac_configure_args0 " in
2138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2139 esac
2140 ;;
2141 -* ) ac_must_keep_next=true ;;
2142 esac
2143 fi
2144 as_fn_append ac_configure_args " '$ac_arg'"
2145 ;;
2146 esac
2147 done
2148 done
2149 { ac_configure_args0=; unset ac_configure_args0;}
2150 { ac_configure_args1=; unset ac_configure_args1;}
2151
2152 # When interrupted or exit'd, cleanup temporary files, and complete
2153 # config.log. We remove comments because anyway the quotes in there
2154 # would cause problems or look ugly.
2155 # WARNING: Use '\'' to represent an apostrophe within the trap.
2156 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2157 trap 'exit_status=$?
2158 # Save into config.log some information that might help in debugging.
2159 {
2160 echo
2161
2162 $as_echo "## ---------------- ##
2163 ## Cache variables. ##
2164 ## ---------------- ##"
2165 echo
2166 # The following way of writing the cache mishandles newlines in values,
2167 (
2168 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in #(
2171 *${as_nl}*)
2172 case $ac_var in #(
2173 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2174 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2175 esac
2176 case $ac_var in #(
2177 _ | IFS | as_nl) ;; #(
2178 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2179 *) { eval $ac_var=; unset $ac_var;} ;;
2180 esac ;;
2181 esac
2182 done
2183 (set) 2>&1 |
2184 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2185 *${as_nl}ac_space=\ *)
2186 sed -n \
2187 "s/'\''/'\''\\\\'\'''\''/g;
2188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2189 ;; #(
2190 *)
2191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2192 ;;
2193 esac |
2194 sort
2195 )
2196 echo
2197
2198 $as_echo "## ----------------- ##
2199 ## Output variables. ##
2200 ## ----------------- ##"
2201 echo
2202 for ac_var in $ac_subst_vars
2203 do
2204 eval ac_val=\$$ac_var
2205 case $ac_val in
2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 esac
2208 $as_echo "$ac_var='\''$ac_val'\''"
2209 done | sort
2210 echo
2211
2212 if test -n "$ac_subst_files"; then
2213 $as_echo "## ------------------- ##
2214 ## File substitutions. ##
2215 ## ------------------- ##"
2216 echo
2217 for ac_var in $ac_subst_files
2218 do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in
2221 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222 esac
2223 $as_echo "$ac_var='\''$ac_val'\''"
2224 done | sort
2225 echo
2226 fi
2227
2228 if test -s confdefs.h; then
2229 $as_echo "## ----------- ##
2230 ## confdefs.h. ##
2231 ## ----------- ##"
2232 echo
2233 cat confdefs.h
2234 echo
2235 fi
2236 test "$ac_signal" != 0 &&
2237 $as_echo "$as_me: caught signal $ac_signal"
2238 $as_echo "$as_me: exit $exit_status"
2239 } >&5
2240 rm -f core *.core core.conftest.* &&
2241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2242 exit $exit_status
2243 ' 0
2244 for ac_signal in 1 2 13 15; do
2245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2246 done
2247 ac_signal=0
2248
2249 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2250 rm -f -r conftest* confdefs.h
2251
2252 $as_echo "/* confdefs.h */" > confdefs.h
2253
2254 # Predefined preprocessor variables.
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_NAME "$PACKAGE_NAME"
2258 _ACEOF
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2262 _ACEOF
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2266 _ACEOF
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_STRING "$PACKAGE_STRING"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_URL "$PACKAGE_URL"
2278 _ACEOF
2279
2280
2281 # Let the site file select an alternate cache file if it wants to.
2282 # Prefer an explicitly selected file to automatically selected ones.
2283 ac_site_file1=NONE
2284 ac_site_file2=NONE
2285 if test -n "$CONFIG_SITE"; then
2286 # We do not want a PATH search for config.site.
2287 case $CONFIG_SITE in #((
2288 -*) ac_site_file1=./$CONFIG_SITE;;
2289 */*) ac_site_file1=$CONFIG_SITE;;
2290 *) ac_site_file1=./$CONFIG_SITE;;
2291 esac
2292 elif test "x$prefix" != xNONE; then
2293 ac_site_file1=$prefix/share/config.site
2294 ac_site_file2=$prefix/etc/config.site
2295 else
2296 ac_site_file1=$ac_default_prefix/share/config.site
2297 ac_site_file2=$ac_default_prefix/etc/config.site
2298 fi
2299 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2300 do
2301 test "x$ac_site_file" = xNONE && continue
2302 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2304 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2305 sed 's/^/| /' "$ac_site_file" >&5
2306 . "$ac_site_file" \
2307 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 as_fn_error $? "failed to load site script $ac_site_file
2310 See \`config.log' for more details" "$LINENO" 5; }
2311 fi
2312 done
2313
2314 if test -r "$cache_file"; then
2315 # Some versions of bash will fail to source /dev/null (special files
2316 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2317 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2319 $as_echo "$as_me: loading cache $cache_file" >&6;}
2320 case $cache_file in
2321 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2322 *) . "./$cache_file";;
2323 esac
2324 fi
2325 else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2327 $as_echo "$as_me: creating cache $cache_file" >&6;}
2328 >$cache_file
2329 fi
2330
2331 # Check that the precious variables saved in the cache have kept the same
2332 # value.
2333 ac_cache_corrupted=false
2334 for ac_var in $ac_precious_vars; do
2335 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2336 eval ac_new_set=\$ac_env_${ac_var}_set
2337 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2338 eval ac_new_val=\$ac_env_${ac_var}_value
2339 case $ac_old_set,$ac_new_set in
2340 set,)
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2342 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2343 ac_cache_corrupted=: ;;
2344 ,set)
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2346 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2347 ac_cache_corrupted=: ;;
2348 ,);;
2349 *)
2350 if test "x$ac_old_val" != "x$ac_new_val"; then
2351 # differences in whitespace do not lead to failure.
2352 ac_old_val_w=`echo x $ac_old_val`
2353 ac_new_val_w=`echo x $ac_new_val`
2354 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2356 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2357 ac_cache_corrupted=:
2358 else
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2360 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2361 eval $ac_var=\$ac_old_val
2362 fi
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2364 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2366 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2367 fi;;
2368 esac
2369 # Pass precious variables to config.status.
2370 if test "$ac_new_set" = set; then
2371 case $ac_new_val in
2372 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2373 *) ac_arg=$ac_var=$ac_new_val ;;
2374 esac
2375 case " $ac_configure_args " in
2376 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2377 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2378 esac
2379 fi
2380 done
2381 if $ac_cache_corrupted; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2385 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2386 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2387 fi
2388 ## -------------------- ##
2389 ## Main body of script. ##
2390 ## -------------------- ##
2391
2392 ac_ext=c
2393 ac_cpp='$CPP $CPPFLAGS'
2394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397
2398
2399
2400 >confdefs.h # Kill PACKAGE_ macros
2401
2402
2403 ac_aux_dir=
2404 for ac_dir in ../.. "$srcdir"/../..; do
2405 if test -f "$ac_dir/install-sh"; then
2406 ac_aux_dir=$ac_dir
2407 ac_install_sh="$ac_aux_dir/install-sh -c"
2408 break
2409 elif test -f "$ac_dir/install.sh"; then
2410 ac_aux_dir=$ac_dir
2411 ac_install_sh="$ac_aux_dir/install.sh -c"
2412 break
2413 elif test -f "$ac_dir/shtool"; then
2414 ac_aux_dir=$ac_dir
2415 ac_install_sh="$ac_aux_dir/shtool install -c"
2416 break
2417 fi
2418 done
2419 if test -z "$ac_aux_dir"; then
2420 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2421 fi
2422
2423 # These three variables are undocumented and unsupported,
2424 # and are intended to be withdrawn in a future Autoconf release.
2425 # They can cause serious problems if a builder's source tree is in a directory
2426 # whose full name contains unusual characters.
2427 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2428 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2429 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2430
2431
2432 am__api_version='1.13'
2433
2434 # Find a good install program. We prefer a C program (faster),
2435 # so one script is as good as another. But avoid the broken or
2436 # incompatible versions:
2437 # SysV /etc/install, /usr/sbin/install
2438 # SunOS /usr/etc/install
2439 # IRIX /sbin/install
2440 # AIX /bin/install
2441 # AmigaOS /C/install, which installs bootblocks on floppy discs
2442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2445 # OS/2's system install, which has a completely different semantic
2446 # ./install, which can be erroneously created by make from ./install.sh.
2447 # Reject install programs that cannot install multiple files.
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2449 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2450 if test -z "$INSTALL"; then
2451 if ${ac_cv_path_install+:} false; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 # Account for people who put trailing slashes in PATH elements.
2460 case $as_dir/ in #((
2461 ./ | .// | /[cC]/* | \
2462 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2463 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2464 /usr/ucb/* ) ;;
2465 *)
2466 # OSF1 and SCO ODT 3.0 have their own names for install.
2467 # Don't use installbsd from OSF since it installs stuff as root
2468 # by default.
2469 for ac_prog in ginstall scoinst install; do
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2472 if test $ac_prog = install &&
2473 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474 # AIX install. It has an incompatible calling convention.
2475 :
2476 elif test $ac_prog = install &&
2477 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478 # program-specific install script used by HP pwplus--don't use.
2479 :
2480 else
2481 rm -rf conftest.one conftest.two conftest.dir
2482 echo one > conftest.one
2483 echo two > conftest.two
2484 mkdir conftest.dir
2485 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2486 test -s conftest.one && test -s conftest.two &&
2487 test -s conftest.dir/conftest.one &&
2488 test -s conftest.dir/conftest.two
2489 then
2490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2491 break 3
2492 fi
2493 fi
2494 fi
2495 done
2496 done
2497 ;;
2498 esac
2499
2500 done
2501 IFS=$as_save_IFS
2502
2503 rm -rf conftest.one conftest.two conftest.dir
2504
2505 fi
2506 if test "${ac_cv_path_install+set}" = set; then
2507 INSTALL=$ac_cv_path_install
2508 else
2509 # As a last resort, use the slow shell script. Don't cache a
2510 # value for INSTALL within a source directory, because that will
2511 # break other packages using the cache if that directory is
2512 # removed, or if the value is a relative name.
2513 INSTALL=$ac_install_sh
2514 fi
2515 fi
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2517 $as_echo "$INSTALL" >&6; }
2518
2519 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2520 # It thinks the first close brace ends the variable substitution.
2521 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2522
2523 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2524
2525 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2526
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2528 $as_echo_n "checking whether build environment is sane... " >&6; }
2529 # Reject unsafe characters in $srcdir or the absolute working directory
2530 # name. Accept space and tab only in the latter.
2531 am_lf='
2532 '
2533 case `pwd` in
2534 *[\\\"\#\$\&\'\`$am_lf]*)
2535 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2536 esac
2537 case $srcdir in
2538 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2539 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2540 esac
2541
2542 # Do 'set' in a subshell so we don't clobber the current shell's
2543 # arguments. Must try -L first in case configure is actually a
2544 # symlink; some systems play weird games with the mod time of symlinks
2545 # (eg FreeBSD returns the mod time of the symlink's containing
2546 # directory).
2547 if (
2548 am_has_slept=no
2549 for am_try in 1 2; do
2550 echo "timestamp, slept: $am_has_slept" > conftest.file
2551 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2552 if test "$*" = "X"; then
2553 # -L didn't work.
2554 set X `ls -t "$srcdir/configure" conftest.file`
2555 fi
2556 if test "$*" != "X $srcdir/configure conftest.file" \
2557 && test "$*" != "X conftest.file $srcdir/configure"; then
2558
2559 # If neither matched, then we have a broken ls. This can happen
2560 # if, for instance, CONFIG_SHELL is bash and it inherits a
2561 # broken ls alias from the environment. This has actually
2562 # happened. Such a system could not be considered "sane".
2563 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2564 alias in your environment" "$LINENO" 5
2565 fi
2566 if test "$2" = conftest.file || test $am_try -eq 2; then
2567 break
2568 fi
2569 # Just in case.
2570 sleep 1
2571 am_has_slept=yes
2572 done
2573 test "$2" = conftest.file
2574 )
2575 then
2576 # Ok.
2577 :
2578 else
2579 as_fn_error $? "newly created file is older than distributed files!
2580 Check your system clock" "$LINENO" 5
2581 fi
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583 $as_echo "yes" >&6; }
2584 # If we didn't sleep, we still need to ensure time stamps of config.status and
2585 # generated files are strictly newer.
2586 am_sleep_pid=
2587 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2588 ( sleep 1 ) &
2589 am_sleep_pid=$!
2590 fi
2591
2592 rm -f conftest.file
2593
2594 test "$program_prefix" != NONE &&
2595 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2596 # Use a double $ so make ignores it.
2597 test "$program_suffix" != NONE &&
2598 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2599 # Double any \ or $.
2600 # By default was `s,x,x', remove it if useless.
2601 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2602 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2603
2604 # expand $ac_aux_dir to an absolute path
2605 am_aux_dir=`cd $ac_aux_dir && pwd`
2606
2607 if test x"${MISSING+set}" != xset; then
2608 case $am_aux_dir in
2609 *\ * | *\ *)
2610 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2611 *)
2612 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2613 esac
2614 fi
2615 # Use eval to expand $SHELL
2616 if eval "$MISSING --is-lightweight"; then
2617 am_missing_run="$MISSING "
2618 else
2619 am_missing_run=
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2621 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2622 fi
2623
2624 if test x"${install_sh}" != xset; then
2625 case $am_aux_dir in
2626 *\ * | *\ *)
2627 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2628 *)
2629 install_sh="\${SHELL} $am_aux_dir/install-sh"
2630 esac
2631 fi
2632
2633 # Installed binaries are usually stripped using 'strip' when the user
2634 # run "make install-strip". However 'strip' might not be the right
2635 # tool to use in cross-compilation environments, therefore Automake
2636 # will honor the 'STRIP' environment variable to overrule this program.
2637 if test "$cross_compiling" != no; then
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}strip; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if ${ac_cv_prog_STRIP+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 if test -n "$STRIP"; then
2647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 STRIP=$ac_cv_prog_STRIP
2667 if test -n "$STRIP"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2669 $as_echo "$STRIP" >&6; }
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 fi
2674
2675
2676 fi
2677 if test -z "$ac_cv_prog_STRIP"; then
2678 ac_ct_STRIP=$STRIP
2679 # Extract the first word of "strip", so it can be a program name with args.
2680 set dummy strip; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test -n "$ac_ct_STRIP"; then
2687 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_ac_ct_STRIP="strip"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2699 fi
2700 done
2701 done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2707 if test -n "$ac_ct_STRIP"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2709 $as_echo "$ac_ct_STRIP" >&6; }
2710 else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2714
2715 if test "x$ac_ct_STRIP" = x; then
2716 STRIP=":"
2717 else
2718 case $cross_compiling:$ac_tool_warned in
2719 yes:)
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722 ac_tool_warned=yes ;;
2723 esac
2724 STRIP=$ac_ct_STRIP
2725 fi
2726 else
2727 STRIP="$ac_cv_prog_STRIP"
2728 fi
2729
2730 fi
2731 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2732
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2734 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2735 if test -z "$MKDIR_P"; then
2736 if ${ac_cv_path_mkdir+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2741 do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_prog in mkdir gmkdir; do
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2747 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2748 'mkdir (GNU coreutils) '* | \
2749 'mkdir (coreutils) '* | \
2750 'mkdir (fileutils) '4.1*)
2751 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2752 break 3;;
2753 esac
2754 done
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 fi
2760
2761 test -d ./--version && rmdir ./--version
2762 if test "${ac_cv_path_mkdir+set}" = set; then
2763 MKDIR_P="$ac_cv_path_mkdir -p"
2764 else
2765 # As a last resort, use the slow shell script. Don't cache a
2766 # value for MKDIR_P within a source directory, because that will
2767 # break other packages using the cache if that directory is
2768 # removed, or if the value is a relative name.
2769 MKDIR_P="$ac_install_sh -d"
2770 fi
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2773 $as_echo "$MKDIR_P" >&6; }
2774
2775 for ac_prog in gawk mawk nawk awk
2776 do
2777 # Extract the first word of "$ac_prog", so it can be a program name with args.
2778 set dummy $ac_prog; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_AWK+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$AWK"; then
2785 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_AWK="$ac_prog"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 AWK=$ac_cv_prog_AWK
2805 if test -n "$AWK"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2807 $as_echo "$AWK" >&6; }
2808 else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813
2814 test -n "$AWK" && break
2815 done
2816
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2818 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2819 set x ${MAKE-make}
2820 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2821 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 cat >conftest.make <<\_ACEOF
2825 SHELL = /bin/sh
2826 all:
2827 @echo '@@@%%%=$(MAKE)=@@@%%%'
2828 _ACEOF
2829 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2830 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2831 *@@@%%%=?*=@@@%%%*)
2832 eval ac_cv_prog_make_${ac_make}_set=yes;;
2833 *)
2834 eval ac_cv_prog_make_${ac_make}_set=no;;
2835 esac
2836 rm -f conftest.make
2837 fi
2838 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2840 $as_echo "yes" >&6; }
2841 SET_MAKE=
2842 else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 SET_MAKE="MAKE=${MAKE-make}"
2846 fi
2847
2848 rm -rf .tst 2>/dev/null
2849 mkdir .tst 2>/dev/null
2850 if test -d .tst; then
2851 am__leading_dot=.
2852 else
2853 am__leading_dot=_
2854 fi
2855 rmdir .tst 2>/dev/null
2856
2857 # Check whether --enable-silent-rules was given.
2858 if test "${enable_silent_rules+set}" = set; then :
2859 enableval=$enable_silent_rules;
2860 fi
2861
2862 case $enable_silent_rules in # (((
2863 yes) AM_DEFAULT_VERBOSITY=0;;
2864 no) AM_DEFAULT_VERBOSITY=1;;
2865 *) AM_DEFAULT_VERBOSITY=1;;
2866 esac
2867 am_make=${MAKE-make}
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2869 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2870 if ${am_cv_make_support_nested_variables+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 if $as_echo 'TRUE=$(BAR$(V))
2874 BAR0=false
2875 BAR1=true
2876 V=1
2877 am__doit:
2878 @$(TRUE)
2879 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2880 am_cv_make_support_nested_variables=yes
2881 else
2882 am_cv_make_support_nested_variables=no
2883 fi
2884 fi
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2886 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2887 if test $am_cv_make_support_nested_variables = yes; then
2888 AM_V='$(V)'
2889 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2890 else
2891 AM_V=$AM_DEFAULT_VERBOSITY
2892 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2893 fi
2894 AM_BACKSLASH='\'
2895
2896 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2897 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2898 # is not polluted with repeated "-I."
2899 am__isrc=' -I$(srcdir)'
2900 # test to see if srcdir already configured
2901 if test -f $srcdir/config.status; then
2902 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2903 fi
2904 fi
2905
2906 # test whether we have cygpath
2907 if test -z "$CYGPATH_W"; then
2908 if (cygpath --version) >/dev/null 2>/dev/null; then
2909 CYGPATH_W='cygpath -w'
2910 else
2911 CYGPATH_W=echo
2912 fi
2913 fi
2914
2915
2916 # Define the identity of the package.
2917 PACKAGE='bdbobj'
2918 VERSION='0.10'
2919
2920
2921 # Some tools Automake needs.
2922
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2924
2925
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2927
2928
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2930
2931
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2933
2934
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936
2937 # For better backward compatibility. To be removed once Automake 1.9.x
2938 # dies out for good. For more background, see:
2939 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2940 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2941 mkdir_p='$(MKDIR_P)'
2942
2943 # We need awk for the "check" target. The system "awk" is bad on
2944 # some platforms.
2945 # Always define AMTAR for backward compatibility. Yes, it's still used
2946 # in the wild :-( We should find a proper way to deprecate it ...
2947 AMTAR='$${TAR-tar}'
2948
2949
2950 # We'll loop over all known methods to create a tar archive until one works.
2951 _am_tools='gnutar pax cpio none'
2952
2953 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2954
2955
2956
2957
2958
2959
2960 ac_config_headers="$ac_config_headers config.h"
2961
2962
2963 DEPDIR="${am__leading_dot}deps"
2964
2965 ac_config_commands="$ac_config_commands depfiles"
2966
2967
2968 am_make=${MAKE-make}
2969 cat > confinc << 'END'
2970 am__doit:
2971 @echo this is the am__doit target
2972 .PHONY: am__doit
2973 END
2974 # If we don't find an include directive, just comment out the code.
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2976 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2977 am__include="#"
2978 am__quote=
2979 _am_result=none
2980 # First try GNU make style include.
2981 echo "include confinc" > confmf
2982 # Ignore all kinds of additional output from 'make'.
2983 case `$am_make -s -f confmf 2> /dev/null` in #(
2984 *the\ am__doit\ target*)
2985 am__include=include
2986 am__quote=
2987 _am_result=GNU
2988 ;;
2989 esac
2990 # Now try BSD make style include.
2991 if test "$am__include" = "#"; then
2992 echo '.include "confinc"' > confmf
2993 case `$am_make -s -f confmf 2> /dev/null` in #(
2994 *the\ am__doit\ target*)
2995 am__include=.include
2996 am__quote="\""
2997 _am_result=BSD
2998 ;;
2999 esac
3000 fi
3001
3002
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3004 $as_echo "$_am_result" >&6; }
3005 rm -f confinc confmf
3006
3007 # Check whether --enable-dependency-tracking was given.
3008 if test "${enable_dependency_tracking+set}" = set; then :
3009 enableval=$enable_dependency_tracking;
3010 fi
3011
3012 if test "x$enable_dependency_tracking" != xno; then
3013 am_depcomp="$ac_aux_dir/depcomp"
3014 AMDEPBACKSLASH='\'
3015 am__nodep='_no'
3016 fi
3017 if test "x$enable_dependency_tracking" != xno; then
3018 AMDEP_TRUE=
3019 AMDEP_FALSE='#'
3020 else
3021 AMDEP_TRUE='#'
3022 AMDEP_FALSE=
3023 fi
3024
3025
3026 ac_ext=c
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_CC+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069 fi
3070 if test -z "$ac_cv_prog_CC"; then
3071 ac_ct_CC=$CC
3072 # Extract the first word of "gcc", so it can be a program name with args.
3073 set dummy gcc; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$ac_ct_CC"; then
3080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_ac_ct_CC="gcc"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093 done
3094 done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3100 if test -n "$ac_ct_CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3102 $as_echo "$ac_ct_CC" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108 if test "x$ac_ct_CC" = x; then
3109 CC=""
3110 else
3111 case $cross_compiling:$ac_tool_warned in
3112 yes:)
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3115 ac_tool_warned=yes ;;
3116 esac
3117 CC=$ac_ct_CC
3118 fi
3119 else
3120 CC="$ac_cv_prog_CC"
3121 fi
3122
3123 if test -z "$CC"; then
3124 if test -n "$ac_tool_prefix"; then
3125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3126 set dummy ${ac_tool_prefix}cc; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_CC+:} false; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test -n "$CC"; then
3133 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_CC="${ac_tool_prefix}cc"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 break 2
3145 fi
3146 done
3147 done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 CC=$ac_cv_prog_CC
3153 if test -n "$CC"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155 $as_echo "$CC" >&6; }
3156 else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 fi
3160
3161
3162 fi
3163 fi
3164 if test -z "$CC"; then
3165 # Extract the first word of "cc", so it can be a program name with args.
3166 set dummy cc; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_CC+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
3174 else
3175 ac_prog_rejected=no
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3184 ac_prog_rejected=yes
3185 continue
3186 fi
3187 ac_cv_prog_CC="cc"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 if test $ac_prog_rejected = yes; then
3196 # We found a bogon in the path, so make sure we never use it.
3197 set dummy $ac_cv_prog_CC
3198 shift
3199 if test $# != 0; then
3200 # We chose a different compiler from the bogus one.
3201 # However, it has the same basename, so the bogon will be chosen
3202 # first if we set CC to just the basename; use the full file name.
3203 shift
3204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3205 fi
3206 fi
3207 fi
3208 fi
3209 CC=$ac_cv_prog_CC
3210 if test -n "$CC"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212 $as_echo "$CC" >&6; }
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 fi
3217
3218
3219 fi
3220 if test -z "$CC"; then
3221 if test -n "$ac_tool_prefix"; then
3222 for ac_prog in cl.exe
3223 do
3224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CC+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3244 fi
3245 done
3246 done
3247 IFS=$as_save_IFS
3248
3249 fi
3250 fi
3251 CC=$ac_cv_prog_CC
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260
3261 test -n "$CC" && break
3262 done
3263 fi
3264 if test -z "$CC"; then
3265 ac_ct_CC=$CC
3266 for ac_prog in cl.exe
3267 do
3268 # Extract the first word of "$ac_prog", so it can be a program name with args.
3269 set dummy $ac_prog; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -n "$ac_ct_CC"; then
3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_ac_ct_CC="$ac_prog"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289 done
3290 done
3291 IFS=$as_save_IFS
3292
3293 fi
3294 fi
3295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3296 if test -n "$ac_ct_CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3298 $as_echo "$ac_ct_CC" >&6; }
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 fi
3303
3304
3305 test -n "$ac_ct_CC" && break
3306 done
3307
3308 if test "x$ac_ct_CC" = x; then
3309 CC=""
3310 else
3311 case $cross_compiling:$ac_tool_warned in
3312 yes:)
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3315 ac_tool_warned=yes ;;
3316 esac
3317 CC=$ac_ct_CC
3318 fi
3319 fi
3320
3321 fi
3322
3323
3324 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error $? "no acceptable C compiler found in \$PATH
3327 See \`config.log' for more details" "$LINENO" 5; }
3328
3329 # Provide some information about the compiler.
3330 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3331 set X $ac_compile
3332 ac_compiler=$2
3333 for ac_option in --version -v -V -qversion; do
3334 { { ac_try="$ac_compiler $ac_option >&5"
3335 case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3342 ac_status=$?
3343 if test -s conftest.err; then
3344 sed '10a\
3345 ... rest of stderr output deleted ...
3346 10q' conftest.err >conftest.er1
3347 cat conftest.er1 >&5
3348 fi
3349 rm -f conftest.er1 conftest.err
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }
3352 done
3353
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356
3357 int
3358 main ()
3359 {
3360
3361 ;
3362 return 0;
3363 }
3364 _ACEOF
3365 ac_clean_files_save=$ac_clean_files
3366 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3367 # Try to create an executable without -o first, disregard a.out.
3368 # It will help us diagnose broken compilers, and finding out an intuition
3369 # of exeext.
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3371 $as_echo_n "checking whether the C compiler works... " >&6; }
3372 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3373
3374 # The possible output files:
3375 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3376
3377 ac_rmfiles=
3378 for ac_file in $ac_files
3379 do
3380 case $ac_file in
3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3382 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3383 esac
3384 done
3385 rm -f $ac_rmfiles
3386
3387 if { { ac_try="$ac_link_default"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_link_default") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3399 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3400 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3401 # so that the user can short-circuit this test for compilers unknown to
3402 # Autoconf.
3403 for ac_file in $ac_files ''
3404 do
3405 test -f "$ac_file" || continue
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3408 ;;
3409 [ab].out )
3410 # We found the default executable, but exeext='' is most
3411 # certainly right.
3412 break;;
3413 *.* )
3414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3415 then :; else
3416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417 fi
3418 # We set ac_cv_exeext here because the later test for it is not
3419 # safe: cross compilers may not add the suffix if given an `-o'
3420 # argument, so we may need to know it at that point already.
3421 # Even if this section looks crufty: it has the advantage of
3422 # actually working.
3423 break;;
3424 * )
3425 break;;
3426 esac
3427 done
3428 test "$ac_cv_exeext" = no && ac_cv_exeext=
3429
3430 else
3431 ac_file=''
3432 fi
3433 if test -z "$ac_file"; then :
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 $as_echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error 77 "C compiler cannot create executables
3442 See \`config.log' for more details" "$LINENO" 5; }
3443 else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3445 $as_echo "yes" >&6; }
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3448 $as_echo_n "checking for C compiler default output file name... " >&6; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3450 $as_echo "$ac_file" >&6; }
3451 ac_exeext=$ac_cv_exeext
3452
3453 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3454 ac_clean_files=$ac_clean_files_save
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3456 $as_echo_n "checking for suffix of executables... " >&6; }
3457 if { { ac_try="$ac_link"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_link") 2>&5
3465 ac_status=$?
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; then :
3468 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3469 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3470 # work properly (i.e., refer to `conftest.exe'), while it won't with
3471 # `rm'.
3472 for ac_file in conftest.exe conftest conftest.*; do
3473 test -f "$ac_file" || continue
3474 case $ac_file in
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3477 break;;
3478 * ) break;;
3479 esac
3480 done
3481 else
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3485 See \`config.log' for more details" "$LINENO" 5; }
3486 fi
3487 rm -f conftest conftest$ac_cv_exeext
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3489 $as_echo "$ac_cv_exeext" >&6; }
3490
3491 rm -f conftest.$ac_ext
3492 EXEEXT=$ac_cv_exeext
3493 ac_exeext=$EXEEXT
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496 #include <stdio.h>
3497 int
3498 main ()
3499 {
3500 FILE *f = fopen ("conftest.out", "w");
3501 return ferror (f) || fclose (f) != 0;
3502
3503 ;
3504 return 0;
3505 }
3506 _ACEOF
3507 ac_clean_files="$ac_clean_files conftest.out"
3508 # Check that the compiler produces executables we can run. If not, either
3509 # the compiler is broken, or we cross compile.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3511 $as_echo_n "checking whether we are cross compiling... " >&6; }
3512 if test "$cross_compiling" != yes; then
3513 { { ac_try="$ac_link"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_link") 2>&5
3521 ac_status=$?
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }
3524 if { ac_try='./conftest$ac_cv_exeext'
3525 { { case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_try") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; }; then
3535 cross_compiling=no
3536 else
3537 if test "$cross_compiling" = maybe; then
3538 cross_compiling=yes
3539 else
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error $? "cannot run C compiled programs.
3543 If you meant to cross compile, use \`--host'.
3544 See \`config.log' for more details" "$LINENO" 5; }
3545 fi
3546 fi
3547 fi
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3549 $as_echo "$cross_compiling" >&6; }
3550
3551 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3552 ac_clean_files=$ac_clean_files_save
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3554 $as_echo_n "checking for suffix of object files... " >&6; }
3555 if ${ac_cv_objext+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560
3561 int
3562 main ()
3563 {
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 rm -f conftest.o conftest.obj
3570 if { { ac_try="$ac_compile"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_compile") 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 for ac_file in conftest.o conftest.obj conftest.*; do
3582 test -f "$ac_file" || continue;
3583 case $ac_file in
3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3585 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3586 break;;
3587 esac
3588 done
3589 else
3590 $as_echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 as_fn_error $? "cannot compute suffix of object files: cannot compile
3596 See \`config.log' for more details" "$LINENO" 5; }
3597 fi
3598 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3601 $as_echo "$ac_cv_objext" >&6; }
3602 OBJEXT=$ac_cv_objext
3603 ac_objext=$OBJEXT
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3605 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3606 if ${ac_cv_c_compiler_gnu+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3611
3612 int
3613 main ()
3614 {
3615 #ifndef __GNUC__
3616 choke me
3617 #endif
3618
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 if ac_fn_c_try_compile "$LINENO"; then :
3624 ac_compiler_gnu=yes
3625 else
3626 ac_compiler_gnu=no
3627 fi
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3630
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3633 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3634 if test $ac_compiler_gnu = yes; then
3635 GCC=yes
3636 else
3637 GCC=
3638 fi
3639 ac_test_CFLAGS=${CFLAGS+set}
3640 ac_save_CFLAGS=$CFLAGS
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3642 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3643 if ${ac_cv_prog_cc_g+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 ac_save_c_werror_flag=$ac_c_werror_flag
3647 ac_c_werror_flag=yes
3648 ac_cv_prog_cc_g=no
3649 CFLAGS="-g"
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3652
3653 int
3654 main ()
3655 {
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_cv_prog_cc_g=yes
3663 else
3664 CFLAGS=""
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667
3668 int
3669 main ()
3670 {
3671
3672 ;
3673 return 0;
3674 }
3675 _ACEOF
3676 if ac_fn_c_try_compile "$LINENO"; then :
3677
3678 else
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3680 CFLAGS="-g"
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683
3684 int
3685 main ()
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_prog_cc_g=yes
3694 fi
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 fi
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 fi
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3701 fi
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3703 $as_echo "$ac_cv_prog_cc_g" >&6; }
3704 if test "$ac_test_CFLAGS" = set; then
3705 CFLAGS=$ac_save_CFLAGS
3706 elif test $ac_cv_prog_cc_g = yes; then
3707 if test "$GCC" = yes; then
3708 CFLAGS="-g -O2"
3709 else
3710 CFLAGS="-g"
3711 fi
3712 else
3713 if test "$GCC" = yes; then
3714 CFLAGS="-O2"
3715 else
3716 CFLAGS=
3717 fi
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3720 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3721 if ${ac_cv_prog_cc_c89+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 ac_cv_prog_cc_c89=no
3725 ac_save_CC=$CC
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728 #include <stdarg.h>
3729 #include <stdio.h>
3730 struct stat;
3731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3732 struct buf { int x; };
3733 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3734 static char *e (p, i)
3735 char **p;
3736 int i;
3737 {
3738 return p[i];
3739 }
3740 static char *f (char * (*g) (char **, int), char **p, ...)
3741 {
3742 char *s;
3743 va_list v;
3744 va_start (v,p);
3745 s = g (p, va_arg (v,int));
3746 va_end (v);
3747 return s;
3748 }
3749
3750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3751 function prototypes and stuff, but not '\xHH' hex character constants.
3752 These don't provoke an error unfortunately, instead are silently treated
3753 as 'x'. The following induces an error, until -std is added to get
3754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3755 array size at least. It's necessary to write '\x00'==0 to get something
3756 that's true only with -std. */
3757 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3758
3759 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3760 inside strings and character constants. */
3761 #define FOO(x) 'x'
3762 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3763
3764 int test (int i, double x);
3765 struct s1 {int (*f) (int a);};
3766 struct s2 {int (*f) (double a);};
3767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3768 int argc;
3769 char **argv;
3770 int
3771 main ()
3772 {
3773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3780 do
3781 CC="$ac_save_CC $ac_arg"
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783 ac_cv_prog_cc_c89=$ac_arg
3784 fi
3785 rm -f core conftest.err conftest.$ac_objext
3786 test "x$ac_cv_prog_cc_c89" != "xno" && break
3787 done
3788 rm -f conftest.$ac_ext
3789 CC=$ac_save_CC
3790
3791 fi
3792 # AC_CACHE_VAL
3793 case "x$ac_cv_prog_cc_c89" in
3794 x)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3796 $as_echo "none needed" >&6; } ;;
3797 xno)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3799 $as_echo "unsupported" >&6; } ;;
3800 *)
3801 CC="$CC $ac_cv_prog_cc_c89"
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3803 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3804 esac
3805 if test "x$ac_cv_prog_cc_c89" != xno; then :
3806
3807 fi
3808
3809 ac_ext=c
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814
3815 depcc="$CC" am_compiler_list=
3816
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3818 $as_echo_n "checking dependency style of $depcc... " >&6; }
3819 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821 else
3822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3823 # We make a subdir and do the tests there. Otherwise we can end up
3824 # making bogus files that we don't know about and never remove. For
3825 # instance it was reported that on HP-UX the gcc test will end up
3826 # making a dummy file named 'D' -- because '-MD' means "put the output
3827 # in D".
3828 rm -rf conftest.dir
3829 mkdir conftest.dir
3830 # Copy depcomp to subdir because otherwise we won't find it if we're
3831 # using a relative directory.
3832 cp "$am_depcomp" conftest.dir
3833 cd conftest.dir
3834 # We will build objects and dependencies in a subdirectory because
3835 # it helps to detect inapplicable dependency modes. For instance
3836 # both Tru64's cc and ICC support -MD to output dependencies as a
3837 # side effect of compilation, but ICC will put the dependencies in
3838 # the current directory while Tru64 will put them in the object
3839 # directory.
3840 mkdir sub
3841
3842 am_cv_CC_dependencies_compiler_type=none
3843 if test "$am_compiler_list" = ""; then
3844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3845 fi
3846 am__universal=false
3847 case " $depcc " in #(
3848 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3849 esac
3850
3851 for depmode in $am_compiler_list; do
3852 # Setup a source with many dependencies, because some compilers
3853 # like to wrap large dependency lists on column 80 (with \), and
3854 # we should not choose a depcomp mode which is confused by this.
3855 #
3856 # We need to recreate these files for each test, as the compiler may
3857 # overwrite some of them when testing with obscure command lines.
3858 # This happens at least with the AIX C compiler.
3859 : > sub/conftest.c
3860 for i in 1 2 3 4 5 6; do
3861 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3862 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3863 # Solaris 10 /bin/sh.
3864 echo '/* dummy */' > sub/conftst$i.h
3865 done
3866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3867
3868 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3869 # mode. It turns out that the SunPro C++ compiler does not properly
3870 # handle '-M -o', and we need to detect this. Also, some Intel
3871 # versions had trouble with output in subdirs.
3872 am__obj=sub/conftest.${OBJEXT-o}
3873 am__minus_obj="-o $am__obj"
3874 case $depmode in
3875 gcc)
3876 # This depmode causes a compiler race in universal mode.
3877 test "$am__universal" = false || continue
3878 ;;
3879 nosideeffect)
3880 # After this tag, mechanisms are not by side-effect, so they'll
3881 # only be used when explicitly requested.
3882 if test "x$enable_dependency_tracking" = xyes; then
3883 continue
3884 else
3885 break
3886 fi
3887 ;;
3888 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3889 # This compiler won't grok '-c -o', but also, the minuso test has
3890 # not run yet. These depmodes are late enough in the game, and
3891 # so weak that their functioning should not be impacted.
3892 am__obj=conftest.${OBJEXT-o}
3893 am__minus_obj=
3894 ;;
3895 none) break ;;
3896 esac
3897 if depmode=$depmode \
3898 source=sub/conftest.c object=$am__obj \
3899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3900 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3901 >/dev/null 2>conftest.err &&
3902 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3904 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3906 # icc doesn't choke on unknown options, it will just issue warnings
3907 # or remarks (even with -Werror). So we grep stderr for any message
3908 # that says an option was ignored or not supported.
3909 # When given -MP, icc 7.0 and 7.1 complain thusly:
3910 # icc: Command line warning: ignoring option '-M'; no argument required
3911 # The diagnosis changed in icc 8.0:
3912 # icc: Command line remark: option '-MP' not supported
3913 if (grep 'ignoring option' conftest.err ||
3914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3915 am_cv_CC_dependencies_compiler_type=$depmode
3916 break
3917 fi
3918 fi
3919 done
3920
3921 cd ..
3922 rm -rf conftest.dir
3923 else
3924 am_cv_CC_dependencies_compiler_type=none
3925 fi
3926
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3929 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3930 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3931
3932 if
3933 test "x$enable_dependency_tracking" != xno \
3934 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3935 am__fastdepCC_TRUE=
3936 am__fastdepCC_FALSE='#'
3937 else
3938 am__fastdepCC_TRUE='#'
3939 am__fastdepCC_FALSE=
3940 fi
3941
3942
3943
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3950 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3951 # On Suns, sometimes $CPP names a directory.
3952 if test -n "$CPP" && test -d "$CPP"; then
3953 CPP=
3954 fi
3955 if test -z "$CPP"; then
3956 if ${ac_cv_prog_CPP+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 # Double quotes because CPP needs to be expanded
3960 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3961 do
3962 ac_preproc_ok=false
3963 for ac_c_preproc_warn_flag in '' yes
3964 do
3965 # Use a header file that comes with gcc, so configuring glibc
3966 # with a fresh cross-compiler works.
3967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 # <limits.h> exists even on freestanding compilers.
3969 # On the NeXT, cc -E runs the code through the compiler's parser,
3970 # not just through cpp. "Syntax error" is here to catch this case.
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973 #ifdef __STDC__
3974 # include <limits.h>
3975 #else
3976 # include <assert.h>
3977 #endif
3978 Syntax error
3979 _ACEOF
3980 if ac_fn_c_try_cpp "$LINENO"; then :
3981
3982 else
3983 # Broken: fails on valid input.
3984 continue
3985 fi
3986 rm -f conftest.err conftest.i conftest.$ac_ext
3987
3988 # OK, works on sane cases. Now check whether nonexistent headers
3989 # can be detected and how.
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <ac_nonexistent.h>
3993 _ACEOF
3994 if ac_fn_c_try_cpp "$LINENO"; then :
3995 # Broken: success on invalid input.
3996 continue
3997 else
3998 # Passes both tests.
3999 ac_preproc_ok=:
4000 break
4001 fi
4002 rm -f conftest.err conftest.i conftest.$ac_ext
4003
4004 done
4005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4006 rm -f conftest.i conftest.err conftest.$ac_ext
4007 if $ac_preproc_ok; then :
4008 break
4009 fi
4010
4011 done
4012 ac_cv_prog_CPP=$CPP
4013
4014 fi
4015 CPP=$ac_cv_prog_CPP
4016 else
4017 ac_cv_prog_CPP=$CPP
4018 fi
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4020 $as_echo "$CPP" >&6; }
4021 ac_preproc_ok=false
4022 for ac_c_preproc_warn_flag in '' yes
4023 do
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4032 #ifdef __STDC__
4033 # include <limits.h>
4034 #else
4035 # include <assert.h>
4036 #endif
4037 Syntax error
4038 _ACEOF
4039 if ac_fn_c_try_cpp "$LINENO"; then :
4040
4041 else
4042 # Broken: fails on valid input.
4043 continue
4044 fi
4045 rm -f conftest.err conftest.i conftest.$ac_ext
4046
4047 # OK, works on sane cases. Now check whether nonexistent headers
4048 # can be detected and how.
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <ac_nonexistent.h>
4052 _ACEOF
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4054 # Broken: success on invalid input.
4055 continue
4056 else
4057 # Passes both tests.
4058 ac_preproc_ok=:
4059 break
4060 fi
4061 rm -f conftest.err conftest.i conftest.$ac_ext
4062
4063 done
4064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065 rm -f conftest.i conftest.err conftest.$ac_ext
4066 if $ac_preproc_ok; then :
4067
4068 else
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4072 See \`config.log' for more details" "$LINENO" 5; }
4073 fi
4074
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4083 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4084 if ${ac_cv_path_GREP+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -z "$GREP"; then
4088 ac_path_GREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in grep ggrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4098 as_fn_executable_p "$ac_path_GREP" || continue
4099 # Check for GNU ac_path_GREP and select it if it is found.
4100 # Check for GNU $ac_path_GREP
4101 case `"$ac_path_GREP" --version 2>&1` in
4102 *GNU*)
4103 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4104 *)
4105 ac_count=0
4106 $as_echo_n 0123456789 >"conftest.in"
4107 while :
4108 do
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 $as_echo 'GREP' >> "conftest.nl"
4113 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 as_fn_arith $ac_count + 1 && ac_count=$as_val
4116 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_GREP="$ac_path_GREP"
4119 ac_path_GREP_max=$ac_count
4120 fi
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4123 done
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4126
4127 $ac_path_GREP_found && break 3
4128 done
4129 done
4130 done
4131 IFS=$as_save_IFS
4132 if test -z "$ac_cv_path_GREP"; then
4133 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4134 fi
4135 else
4136 ac_cv_path_GREP=$GREP
4137 fi
4138
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4141 $as_echo "$ac_cv_path_GREP" >&6; }
4142 GREP="$ac_cv_path_GREP"
4143
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4146 $as_echo_n "checking for egrep... " >&6; }
4147 if ${ac_cv_path_EGREP+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4151 then ac_cv_path_EGREP="$GREP -E"
4152 else
4153 if test -z "$EGREP"; then
4154 ac_path_EGREP_found=false
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4158 do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_prog in egrep; do
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4164 as_fn_executable_p "$ac_path_EGREP" || continue
4165 # Check for GNU ac_path_EGREP and select it if it is found.
4166 # Check for GNU $ac_path_EGREP
4167 case `"$ac_path_EGREP" --version 2>&1` in
4168 *GNU*)
4169 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4170 *)
4171 ac_count=0
4172 $as_echo_n 0123456789 >"conftest.in"
4173 while :
4174 do
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
4178 $as_echo 'EGREP' >> "conftest.nl"
4179 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4181 as_fn_arith $ac_count + 1 && ac_count=$as_val
4182 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_EGREP="$ac_path_EGREP"
4185 ac_path_EGREP_max=$ac_count
4186 fi
4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4189 done
4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4191 esac
4192
4193 $ac_path_EGREP_found && break 3
4194 done
4195 done
4196 done
4197 IFS=$as_save_IFS
4198 if test -z "$ac_cv_path_EGREP"; then
4199 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4200 fi
4201 else
4202 ac_cv_path_EGREP=$EGREP
4203 fi
4204
4205 fi
4206 fi
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4208 $as_echo "$ac_cv_path_EGREP" >&6; }
4209 EGREP="$ac_cv_path_EGREP"
4210
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4213 $as_echo_n "checking for ANSI C header files... " >&6; }
4214 if ${ac_cv_header_stdc+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <stdlib.h>
4220 #include <stdarg.h>
4221 #include <string.h>
4222 #include <float.h>
4223
4224 int
4225 main ()
4226 {
4227
4228 ;
4229 return 0;
4230 }
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_header_stdc=yes
4234 else
4235 ac_cv_header_stdc=no
4236 fi
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238
4239 if test $ac_cv_header_stdc = yes; then
4240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #include <string.h>
4244
4245 _ACEOF
4246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4247 $EGREP "memchr" >/dev/null 2>&1; then :
4248
4249 else
4250 ac_cv_header_stdc=no
4251 fi
4252 rm -f conftest*
4253
4254 fi
4255
4256 if test $ac_cv_header_stdc = yes; then
4257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <stdlib.h>
4261
4262 _ACEOF
4263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264 $EGREP "free" >/dev/null 2>&1; then :
4265
4266 else
4267 ac_cv_header_stdc=no
4268 fi
4269 rm -f conftest*
4270
4271 fi
4272
4273 if test $ac_cv_header_stdc = yes; then
4274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4275 if test "$cross_compiling" = yes; then :
4276 :
4277 else
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 #include <ctype.h>
4281 #include <stdlib.h>
4282 #if ((' ' & 0x0FF) == 0x020)
4283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4285 #else
4286 # define ISLOWER(c) \
4287 (('a' <= (c) && (c) <= 'i') \
4288 || ('j' <= (c) && (c) <= 'r') \
4289 || ('s' <= (c) && (c) <= 'z'))
4290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4291 #endif
4292
4293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4294 int
4295 main ()
4296 {
4297 int i;
4298 for (i = 0; i < 256; i++)
4299 if (XOR (islower (i), ISLOWER (i))
4300 || toupper (i) != TOUPPER (i))
4301 return 2;
4302 return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_c_try_run "$LINENO"; then :
4306
4307 else
4308 ac_cv_header_stdc=no
4309 fi
4310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4311 conftest.$ac_objext conftest.beam conftest.$ac_ext
4312 fi
4313
4314 fi
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4317 $as_echo "$ac_cv_header_stdc" >&6; }
4318 if test $ac_cv_header_stdc = yes; then
4319
4320 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4321
4322 fi
4323
4324 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326 inttypes.h stdint.h unistd.h
4327 do :
4328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4330 "
4331 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4332 cat >>confdefs.h <<_ACEOF
4333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4334 _ACEOF
4335
4336 fi
4337
4338 done
4339
4340
4341
4342 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4343 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4344 MINIX=yes
4345 else
4346 MINIX=
4347 fi
4348
4349
4350 if test "$MINIX" = yes; then
4351
4352 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4353
4354
4355 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4356
4357
4358 $as_echo "#define _MINIX 1" >>confdefs.h
4359
4360 fi
4361
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4364 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4365 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370
4371 # define __EXTENSIONS__ 1
4372 $ac_includes_default
4373 int
4374 main ()
4375 {
4376
4377 ;
4378 return 0;
4379 }
4380 _ACEOF
4381 if ac_fn_c_try_compile "$LINENO"; then :
4382 ac_cv_safe_to_define___extensions__=yes
4383 else
4384 ac_cv_safe_to_define___extensions__=no
4385 fi
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4389 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4390 test $ac_cv_safe_to_define___extensions__ = yes &&
4391 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4392
4393 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4394
4395 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4396
4397 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4398
4399 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4400
4401
4402 ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407 if test -n "$ac_tool_prefix"; then
4408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4409 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if ${ac_cv_prog_CC+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if test -n "$CC"; then
4416 ac_cv_prog_CC="$CC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433 fi
4434 fi
4435 CC=$ac_cv_prog_CC
4436 if test -n "$CC"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4438 $as_echo "$CC" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442 fi
4443
4444
4445 fi
4446 if test -z "$ac_cv_prog_CC"; then
4447 ac_ct_CC=$CC
4448 # Extract the first word of "gcc", so it can be a program name with args.
4449 set dummy gcc; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -n "$ac_ct_CC"; then
4456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465 ac_cv_prog_ac_ct_CC="gcc"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4468 fi
4469 done
4470 done
4471 IFS=$as_save_IFS
4472
4473 fi
4474 fi
4475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4476 if test -n "$ac_ct_CC"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4478 $as_echo "$ac_ct_CC" >&6; }
4479 else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 fi
4483
4484 if test "x$ac_ct_CC" = x; then
4485 CC=""
4486 else
4487 case $cross_compiling:$ac_tool_warned in
4488 yes:)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4491 ac_tool_warned=yes ;;
4492 esac
4493 CC=$ac_ct_CC
4494 fi
4495 else
4496 CC="$ac_cv_prog_CC"
4497 fi
4498
4499 if test -z "$CC"; then
4500 if test -n "$ac_tool_prefix"; then
4501 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4502 set dummy ${ac_tool_prefix}cc; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_CC+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if test -n "$CC"; then
4509 ac_cv_prog_CC="$CC" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_CC="${ac_tool_prefix}cc"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4521 fi
4522 done
4523 done
4524 IFS=$as_save_IFS
4525
4526 fi
4527 fi
4528 CC=$ac_cv_prog_CC
4529 if test -n "$CC"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4531 $as_echo "$CC" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4535 fi
4536
4537
4538 fi
4539 fi
4540 if test -z "$CC"; then
4541 # Extract the first word of "cc", so it can be a program name with args.
4542 set dummy cc; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_prog_CC+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4550 else
4551 ac_prog_rejected=no
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4560 ac_prog_rejected=yes
4561 continue
4562 fi
4563 ac_cv_prog_CC="cc"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567 done
4568 done
4569 IFS=$as_save_IFS
4570
4571 if test $ac_prog_rejected = yes; then
4572 # We found a bogon in the path, so make sure we never use it.
4573 set dummy $ac_cv_prog_CC
4574 shift
4575 if test $# != 0; then
4576 # We chose a different compiler from the bogus one.
4577 # However, it has the same basename, so the bogon will be chosen
4578 # first if we set CC to just the basename; use the full file name.
4579 shift
4580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4581 fi
4582 fi
4583 fi
4584 fi
4585 CC=$ac_cv_prog_CC
4586 if test -n "$CC"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4588 $as_echo "$CC" >&6; }
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 fi
4593
4594
4595 fi
4596 if test -z "$CC"; then
4597 if test -n "$ac_tool_prefix"; then
4598 for ac_prog in cl.exe
4599 do
4600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if ${ac_cv_prog_CC+:} false; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$CC"; then
4608 ac_cv_prog_CC="$CC" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4620 fi
4621 done
4622 done
4623 IFS=$as_save_IFS
4624
4625 fi
4626 fi
4627 CC=$ac_cv_prog_CC
4628 if test -n "$CC"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4630 $as_echo "$CC" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4634 fi
4635
4636
4637 test -n "$CC" && break
4638 done
4639 fi
4640 if test -z "$CC"; then
4641 ac_ct_CC=$CC
4642 for ac_prog in cl.exe
4643 do
4644 # Extract the first word of "$ac_prog", so it can be a program name with args.
4645 set dummy $ac_prog; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -n "$ac_ct_CC"; then
4652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661 ac_cv_prog_ac_ct_CC="$ac_prog"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4672 if test -n "$ac_ct_CC"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4674 $as_echo "$ac_ct_CC" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681 test -n "$ac_ct_CC" && break
4682 done
4683
4684 if test "x$ac_ct_CC" = x; then
4685 CC=""
4686 else
4687 case $cross_compiling:$ac_tool_warned in
4688 yes:)
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4691 ac_tool_warned=yes ;;
4692 esac
4693 CC=$ac_ct_CC
4694 fi
4695 fi
4696
4697 fi
4698
4699
4700 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4702 as_fn_error $? "no acceptable C compiler found in \$PATH
4703 See \`config.log' for more details" "$LINENO" 5; }
4704
4705 # Provide some information about the compiler.
4706 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4707 set X $ac_compile
4708 ac_compiler=$2
4709 for ac_option in --version -v -V -qversion; do
4710 { { ac_try="$ac_compiler $ac_option >&5"
4711 case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4714 esac
4715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4716 $as_echo "$ac_try_echo"; } >&5
4717 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4718 ac_status=$?
4719 if test -s conftest.err; then
4720 sed '10a\
4721 ... rest of stderr output deleted ...
4722 10q' conftest.err >conftest.er1
4723 cat conftest.er1 >&5
4724 fi
4725 rm -f conftest.er1 conftest.err
4726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727 test $ac_status = 0; }
4728 done
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4731 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4732 if ${ac_cv_c_compiler_gnu+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737
4738 int
4739 main ()
4740 {
4741 #ifndef __GNUC__
4742 choke me
4743 #endif
4744
4745 ;
4746 return 0;
4747 }
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750 ac_compiler_gnu=yes
4751 else
4752 ac_compiler_gnu=no
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4756
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4759 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4760 if test $ac_compiler_gnu = yes; then
4761 GCC=yes
4762 else
4763 GCC=
4764 fi
4765 ac_test_CFLAGS=${CFLAGS+set}
4766 ac_save_CFLAGS=$CFLAGS
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4768 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4769 if ${ac_cv_prog_cc_g+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 ac_save_c_werror_flag=$ac_c_werror_flag
4773 ac_c_werror_flag=yes
4774 ac_cv_prog_cc_g=no
4775 CFLAGS="-g"
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778
4779 int
4780 main ()
4781 {
4782
4783 ;
4784 return 0;
4785 }
4786 _ACEOF
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_cv_prog_cc_g=yes
4789 else
4790 CFLAGS=""
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4793
4794 int
4795 main ()
4796 {
4797
4798 ;
4799 return 0;
4800 }
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803
4804 else
4805 ac_c_werror_flag=$ac_save_c_werror_flag
4806 CFLAGS="-g"
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809
4810 int
4811 main ()
4812 {
4813
4814 ;
4815 return 0;
4816 }
4817 _ACEOF
4818 if ac_fn_c_try_compile "$LINENO"; then :
4819 ac_cv_prog_cc_g=yes
4820 fi
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 fi
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826 ac_c_werror_flag=$ac_save_c_werror_flag
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4829 $as_echo "$ac_cv_prog_cc_g" >&6; }
4830 if test "$ac_test_CFLAGS" = set; then
4831 CFLAGS=$ac_save_CFLAGS
4832 elif test $ac_cv_prog_cc_g = yes; then
4833 if test "$GCC" = yes; then
4834 CFLAGS="-g -O2"
4835 else
4836 CFLAGS="-g"
4837 fi
4838 else
4839 if test "$GCC" = yes; then
4840 CFLAGS="-O2"
4841 else
4842 CFLAGS=
4843 fi
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4846 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4847 if ${ac_cv_prog_cc_c89+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 ac_cv_prog_cc_c89=no
4851 ac_save_CC=$CC
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854 #include <stdarg.h>
4855 #include <stdio.h>
4856 struct stat;
4857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4858 struct buf { int x; };
4859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4860 static char *e (p, i)
4861 char **p;
4862 int i;
4863 {
4864 return p[i];
4865 }
4866 static char *f (char * (*g) (char **, int), char **p, ...)
4867 {
4868 char *s;
4869 va_list v;
4870 va_start (v,p);
4871 s = g (p, va_arg (v,int));
4872 va_end (v);
4873 return s;
4874 }
4875
4876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4877 function prototypes and stuff, but not '\xHH' hex character constants.
4878 These don't provoke an error unfortunately, instead are silently treated
4879 as 'x'. The following induces an error, until -std is added to get
4880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4881 array size at least. It's necessary to write '\x00'==0 to get something
4882 that's true only with -std. */
4883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4884
4885 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4886 inside strings and character constants. */
4887 #define FOO(x) 'x'
4888 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4889
4890 int test (int i, double x);
4891 struct s1 {int (*f) (int a);};
4892 struct s2 {int (*f) (double a);};
4893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4894 int argc;
4895 char **argv;
4896 int
4897 main ()
4898 {
4899 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4900 ;
4901 return 0;
4902 }
4903 _ACEOF
4904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4906 do
4907 CC="$ac_save_CC $ac_arg"
4908 if ac_fn_c_try_compile "$LINENO"; then :
4909 ac_cv_prog_cc_c89=$ac_arg
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext
4912 test "x$ac_cv_prog_cc_c89" != "xno" && break
4913 done
4914 rm -f conftest.$ac_ext
4915 CC=$ac_save_CC
4916
4917 fi
4918 # AC_CACHE_VAL
4919 case "x$ac_cv_prog_cc_c89" in
4920 x)
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4922 $as_echo "none needed" >&6; } ;;
4923 xno)
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4925 $as_echo "unsupported" >&6; } ;;
4926 *)
4927 CC="$CC $ac_cv_prog_cc_c89"
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4929 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4930 esac
4931 if test "x$ac_cv_prog_cc_c89" != xno; then :
4932
4933 fi
4934
4935 ac_ext=c
4936 ac_cpp='$CPP $CPPFLAGS'
4937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4940
4941 depcc="$CC" am_compiler_list=
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4944 $as_echo_n "checking dependency style of $depcc... " >&6; }
4945 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4949 # We make a subdir and do the tests there. Otherwise we can end up
4950 # making bogus files that we don't know about and never remove. For
4951 # instance it was reported that on HP-UX the gcc test will end up
4952 # making a dummy file named 'D' -- because '-MD' means "put the output
4953 # in D".
4954 rm -rf conftest.dir
4955 mkdir conftest.dir
4956 # Copy depcomp to subdir because otherwise we won't find it if we're
4957 # using a relative directory.
4958 cp "$am_depcomp" conftest.dir
4959 cd conftest.dir
4960 # We will build objects and dependencies in a subdirectory because
4961 # it helps to detect inapplicable dependency modes. For instance
4962 # both Tru64's cc and ICC support -MD to output dependencies as a
4963 # side effect of compilation, but ICC will put the dependencies in
4964 # the current directory while Tru64 will put them in the object
4965 # directory.
4966 mkdir sub
4967
4968 am_cv_CC_dependencies_compiler_type=none
4969 if test "$am_compiler_list" = ""; then
4970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4971 fi
4972 am__universal=false
4973 case " $depcc " in #(
4974 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4975 esac
4976
4977 for depmode in $am_compiler_list; do
4978 # Setup a source with many dependencies, because some compilers
4979 # like to wrap large dependency lists on column 80 (with \), and
4980 # we should not choose a depcomp mode which is confused by this.
4981 #
4982 # We need to recreate these files for each test, as the compiler may
4983 # overwrite some of them when testing with obscure command lines.
4984 # This happens at least with the AIX C compiler.
4985 : > sub/conftest.c
4986 for i in 1 2 3 4 5 6; do
4987 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4988 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4989 # Solaris 10 /bin/sh.
4990 echo '/* dummy */' > sub/conftst$i.h
4991 done
4992 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4993
4994 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4995 # mode. It turns out that the SunPro C++ compiler does not properly
4996 # handle '-M -o', and we need to detect this. Also, some Intel
4997 # versions had trouble with output in subdirs.
4998 am__obj=sub/conftest.${OBJEXT-o}
4999 am__minus_obj="-o $am__obj"
5000 case $depmode in
5001 gcc)
5002 # This depmode causes a compiler race in universal mode.
5003 test "$am__universal" = false || continue
5004 ;;
5005 nosideeffect)
5006 # After this tag, mechanisms are not by side-effect, so they'll
5007 # only be used when explicitly requested.
5008 if test "x$enable_dependency_tracking" = xyes; then
5009 continue
5010 else
5011 break
5012 fi
5013 ;;
5014 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5015 # This compiler won't grok '-c -o', but also, the minuso test has
5016 # not run yet. These depmodes are late enough in the game, and
5017 # so weak that their functioning should not be impacted.
5018 am__obj=conftest.${OBJEXT-o}
5019 am__minus_obj=
5020 ;;
5021 none) break ;;
5022 esac
5023 if depmode=$depmode \
5024 source=sub/conftest.c object=$am__obj \
5025 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5026 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5027 >/dev/null 2>conftest.err &&
5028 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5029 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5030 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5031 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5032 # icc doesn't choke on unknown options, it will just issue warnings
5033 # or remarks (even with -Werror). So we grep stderr for any message
5034 # that says an option was ignored or not supported.
5035 # When given -MP, icc 7.0 and 7.1 complain thusly:
5036 # icc: Command line warning: ignoring option '-M'; no argument required
5037 # The diagnosis changed in icc 8.0:
5038 # icc: Command line remark: option '-MP' not supported
5039 if (grep 'ignoring option' conftest.err ||
5040 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5041 am_cv_CC_dependencies_compiler_type=$depmode
5042 break
5043 fi
5044 fi
5045 done
5046
5047 cd ..
5048 rm -rf conftest.dir
5049 else
5050 am_cv_CC_dependencies_compiler_type=none
5051 fi
5052
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5055 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5056 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5057
5058 if
5059 test "x$enable_dependency_tracking" != xno \
5060 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5061 am__fastdepCC_TRUE=
5062 am__fastdepCC_FALSE='#'
5063 else
5064 am__fastdepCC_TRUE='#'
5065 am__fastdepCC_FALSE=
5066 fi
5067
5068
5069 for ac_prog in gawk mawk nawk awk
5070 do
5071 # Extract the first word of "$ac_prog", so it can be a program name with args.
5072 set dummy $ac_prog; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_AWK+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$AWK"; then
5079 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_AWK="$ac_prog"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092 done
5093 done
5094 IFS=$as_save_IFS
5095
5096 fi
5097 fi
5098 AWK=$ac_cv_prog_AWK
5099 if test -n "$AWK"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5101 $as_echo "$AWK" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107
5108 test -n "$AWK" && break
5109 done
5110
5111 ac_ext=cpp
5112 ac_cpp='$CXXCPP $CPPFLAGS'
5113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5116 if test -z "$CXX"; then
5117 if test -n "$CCC"; then
5118 CXX=$CCC
5119 else
5120 if test -n "$ac_tool_prefix"; then
5121 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5122 do
5123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_prog_CXX+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 if test -n "$CXX"; then
5131 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 fi
5149 fi
5150 CXX=$ac_cv_prog_CXX
5151 if test -n "$CXX"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5153 $as_echo "$CXX" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 fi
5158
5159
5160 test -n "$CXX" && break
5161 done
5162 fi
5163 if test -z "$CXX"; then
5164 ac_ct_CXX=$CXX
5165 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5166 do
5167 # Extract the first word of "$ac_prog", so it can be a program name with args.
5168 set dummy $ac_prog; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if test -n "$ac_ct_CXX"; then
5175 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_ac_ct_CXX="$ac_prog"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192 fi
5193 fi
5194 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5195 if test -n "$ac_ct_CXX"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5197 $as_echo "$ac_ct_CXX" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5202
5203
5204 test -n "$ac_ct_CXX" && break
5205 done
5206
5207 if test "x$ac_ct_CXX" = x; then
5208 CXX="g++"
5209 else
5210 case $cross_compiling:$ac_tool_warned in
5211 yes:)
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214 ac_tool_warned=yes ;;
5215 esac
5216 CXX=$ac_ct_CXX
5217 fi
5218 fi
5219
5220 fi
5221 fi
5222 # Provide some information about the compiler.
5223 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5224 set X $ac_compile
5225 ac_compiler=$2
5226 for ac_option in --version -v -V -qversion; do
5227 { { ac_try="$ac_compiler $ac_option >&5"
5228 case "(($ac_try" in
5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230 *) ac_try_echo=$ac_try;;
5231 esac
5232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5233 $as_echo "$ac_try_echo"; } >&5
5234 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5235 ac_status=$?
5236 if test -s conftest.err; then
5237 sed '10a\
5238 ... rest of stderr output deleted ...
5239 10q' conftest.err >conftest.er1
5240 cat conftest.er1 >&5
5241 fi
5242 rm -f conftest.er1 conftest.err
5243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5244 test $ac_status = 0; }
5245 done
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5248 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5249 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254
5255 int
5256 main ()
5257 {
5258 #ifndef __GNUC__
5259 choke me
5260 #endif
5261
5262 ;
5263 return 0;
5264 }
5265 _ACEOF
5266 if ac_fn_cxx_try_compile "$LINENO"; then :
5267 ac_compiler_gnu=yes
5268 else
5269 ac_compiler_gnu=no
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5273
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5276 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5277 if test $ac_compiler_gnu = yes; then
5278 GXX=yes
5279 else
5280 GXX=
5281 fi
5282 ac_test_CXXFLAGS=${CXXFLAGS+set}
5283 ac_save_CXXFLAGS=$CXXFLAGS
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5285 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5286 if ${ac_cv_prog_cxx_g+:} false; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5290 ac_cxx_werror_flag=yes
5291 ac_cv_prog_cxx_g=no
5292 CXXFLAGS="-g"
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295
5296 int
5297 main ()
5298 {
5299
5300 ;
5301 return 0;
5302 }
5303 _ACEOF
5304 if ac_fn_cxx_try_compile "$LINENO"; then :
5305 ac_cv_prog_cxx_g=yes
5306 else
5307 CXXFLAGS=""
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310
5311 int
5312 main ()
5313 {
5314
5315 ;
5316 return 0;
5317 }
5318 _ACEOF
5319 if ac_fn_cxx_try_compile "$LINENO"; then :
5320
5321 else
5322 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5323 CXXFLAGS="-g"
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326
5327 int
5328 main ()
5329 {
5330
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 if ac_fn_cxx_try_compile "$LINENO"; then :
5336 ac_cv_prog_cxx_g=yes
5337 fi
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 fi
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5346 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5347 if test "$ac_test_CXXFLAGS" = set; then
5348 CXXFLAGS=$ac_save_CXXFLAGS
5349 elif test $ac_cv_prog_cxx_g = yes; then
5350 if test "$GXX" = yes; then
5351 CXXFLAGS="-g -O2"
5352 else
5353 CXXFLAGS="-g"
5354 fi
5355 else
5356 if test "$GXX" = yes; then
5357 CXXFLAGS="-O2"
5358 else
5359 CXXFLAGS=
5360 fi
5361 fi
5362 ac_ext=c
5363 ac_cpp='$CPP $CPPFLAGS'
5364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5367
5368 depcc="$CXX" am_compiler_list=
5369
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5371 $as_echo_n "checking dependency style of $depcc... " >&6; }
5372 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5376 # We make a subdir and do the tests there. Otherwise we can end up
5377 # making bogus files that we don't know about and never remove. For
5378 # instance it was reported that on HP-UX the gcc test will end up
5379 # making a dummy file named 'D' -- because '-MD' means "put the output
5380 # in D".
5381 rm -rf conftest.dir
5382 mkdir conftest.dir
5383 # Copy depcomp to subdir because otherwise we won't find it if we're
5384 # using a relative directory.
5385 cp "$am_depcomp" conftest.dir
5386 cd conftest.dir
5387 # We will build objects and dependencies in a subdirectory because
5388 # it helps to detect inapplicable dependency modes. For instance
5389 # both Tru64's cc and ICC support -MD to output dependencies as a
5390 # side effect of compilation, but ICC will put the dependencies in
5391 # the current directory while Tru64 will put them in the object
5392 # directory.
5393 mkdir sub
5394
5395 am_cv_CXX_dependencies_compiler_type=none
5396 if test "$am_compiler_list" = ""; then
5397 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5398 fi
5399 am__universal=false
5400 case " $depcc " in #(
5401 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5402 esac
5403
5404 for depmode in $am_compiler_list; do
5405 # Setup a source with many dependencies, because some compilers
5406 # like to wrap large dependency lists on column 80 (with \), and
5407 # we should not choose a depcomp mode which is confused by this.
5408 #
5409 # We need to recreate these files for each test, as the compiler may
5410 # overwrite some of them when testing with obscure command lines.
5411 # This happens at least with the AIX C compiler.
5412 : > sub/conftest.c
5413 for i in 1 2 3 4 5 6; do
5414 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5415 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5416 # Solaris 10 /bin/sh.
5417 echo '/* dummy */' > sub/conftst$i.h
5418 done
5419 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5420
5421 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5422 # mode. It turns out that the SunPro C++ compiler does not properly
5423 # handle '-M -o', and we need to detect this. Also, some Intel
5424 # versions had trouble with output in subdirs.
5425 am__obj=sub/conftest.${OBJEXT-o}
5426 am__minus_obj="-o $am__obj"
5427 case $depmode in
5428 gcc)
5429 # This depmode causes a compiler race in universal mode.
5430 test "$am__universal" = false || continue
5431 ;;
5432 nosideeffect)
5433 # After this tag, mechanisms are not by side-effect, so they'll
5434 # only be used when explicitly requested.
5435 if test "x$enable_dependency_tracking" = xyes; then
5436 continue
5437 else
5438 break
5439 fi
5440 ;;
5441 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5442 # This compiler won't grok '-c -o', but also, the minuso test has
5443 # not run yet. These depmodes are late enough in the game, and
5444 # so weak that their functioning should not be impacted.
5445 am__obj=conftest.${OBJEXT-o}
5446 am__minus_obj=
5447 ;;
5448 none) break ;;
5449 esac
5450 if depmode=$depmode \
5451 source=sub/conftest.c object=$am__obj \
5452 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5453 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5454 >/dev/null 2>conftest.err &&
5455 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5456 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5457 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5458 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5459 # icc doesn't choke on unknown options, it will just issue warnings
5460 # or remarks (even with -Werror). So we grep stderr for any message
5461 # that says an option was ignored or not supported.
5462 # When given -MP, icc 7.0 and 7.1 complain thusly:
5463 # icc: Command line warning: ignoring option '-M'; no argument required
5464 # The diagnosis changed in icc 8.0:
5465 # icc: Command line remark: option '-MP' not supported
5466 if (grep 'ignoring option' conftest.err ||
5467 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5468 am_cv_CXX_dependencies_compiler_type=$depmode
5469 break
5470 fi
5471 fi
5472 done
5473
5474 cd ..
5475 rm -rf conftest.dir
5476 else
5477 am_cv_CXX_dependencies_compiler_type=none
5478 fi
5479
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5482 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5483 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5484
5485 if
5486 test "x$enable_dependency_tracking" != xno \
5487 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5488 am__fastdepCXX_TRUE=
5489 am__fastdepCXX_FALSE='#'
5490 else
5491 am__fastdepCXX_TRUE='#'
5492 am__fastdepCXX_FALSE=
5493 fi
5494
5495
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5497 $as_echo_n "checking for library containing strerror... " >&6; }
5498 if ${ac_cv_search_strerror+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 ac_func_search_save_LIBS=$LIBS
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5504
5505 /* Override any GCC internal prototype to avoid an error.
5506 Use char because int might match the return type of a GCC
5507 builtin and then its argument prototype would still apply. */
5508 #ifdef __cplusplus
5509 extern "C"
5510 #endif
5511 char strerror ();
5512 int
5513 main ()
5514 {
5515 return strerror ();
5516 ;
5517 return 0;
5518 }
5519 _ACEOF
5520 for ac_lib in '' cposix; do
5521 if test -z "$ac_lib"; then
5522 ac_res="none required"
5523 else
5524 ac_res=-l$ac_lib
5525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5526 fi
5527 if ac_fn_c_try_link "$LINENO"; then :
5528 ac_cv_search_strerror=$ac_res
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext \
5531 conftest$ac_exeext
5532 if ${ac_cv_search_strerror+:} false; then :
5533 break
5534 fi
5535 done
5536 if ${ac_cv_search_strerror+:} false; then :
5537
5538 else
5539 ac_cv_search_strerror=no
5540 fi
5541 rm conftest.$ac_ext
5542 LIBS=$ac_func_search_save_LIBS
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5545 $as_echo "$ac_cv_search_strerror" >&6; }
5546 ac_res=$ac_cv_search_strerror
5547 if test "$ac_res" != no; then :
5548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5549
5550 fi
5551
5552 case `pwd` in
5553 *\ * | *\ *)
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5555 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5556 esac
5557
5558
5559
5560 macro_version='2.4.2'
5561 macro_revision='1.3337'
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575 ltmain="$ac_aux_dir/ltmain.sh"
5576
5577 # Make sure we can run config.sub.
5578 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5579 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5580
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5582 $as_echo_n "checking build system type... " >&6; }
5583 if ${ac_cv_build+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 ac_build_alias=$build_alias
5587 test "x$ac_build_alias" = x &&
5588 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5589 test "x$ac_build_alias" = x &&
5590 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5591 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5592 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5593
5594 fi
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5596 $as_echo "$ac_cv_build" >&6; }
5597 case $ac_cv_build in
5598 *-*-*) ;;
5599 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5600 esac
5601 build=$ac_cv_build
5602 ac_save_IFS=$IFS; IFS='-'
5603 set x $ac_cv_build
5604 shift
5605 build_cpu=$1
5606 build_vendor=$2
5607 shift; shift
5608 # Remember, the first character of IFS is used to create $*,
5609 # except with old shells:
5610 build_os=$*
5611 IFS=$ac_save_IFS
5612 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5613
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5616 $as_echo_n "checking host system type... " >&6; }
5617 if ${ac_cv_host+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 if test "x$host_alias" = x; then
5621 ac_cv_host=$ac_cv_build
5622 else
5623 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5624 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5625 fi
5626
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5629 $as_echo "$ac_cv_host" >&6; }
5630 case $ac_cv_host in
5631 *-*-*) ;;
5632 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5633 esac
5634 host=$ac_cv_host
5635 ac_save_IFS=$IFS; IFS='-'
5636 set x $ac_cv_host
5637 shift
5638 host_cpu=$1
5639 host_vendor=$2
5640 shift; shift
5641 # Remember, the first character of IFS is used to create $*,
5642 # except with old shells:
5643 host_os=$*
5644 IFS=$ac_save_IFS
5645 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5646
5647
5648 # Backslashify metacharacters that are still active within
5649 # double-quoted strings.
5650 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5651
5652 # Same as above, but do not quote variable references.
5653 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5654
5655 # Sed substitution to delay expansion of an escaped shell variable in a
5656 # double_quote_subst'ed string.
5657 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5658
5659 # Sed substitution to delay expansion of an escaped single quote.
5660 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5661
5662 # Sed substitution to avoid accidental globbing in evaled expressions
5663 no_glob_subst='s/\*/\\\*/g'
5664
5665 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5666 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5667 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5668
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5670 $as_echo_n "checking how to print strings... " >&6; }
5671 # Test print first, because it will be a builtin if present.
5672 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5673 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5674 ECHO='print -r --'
5675 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5676 ECHO='printf %s\n'
5677 else
5678 # Use this function as a fallback that always works.
5679 func_fallback_echo ()
5680 {
5681 eval 'cat <<_LTECHO_EOF
5682 $1
5683 _LTECHO_EOF'
5684 }
5685 ECHO='func_fallback_echo'
5686 fi
5687
5688 # func_echo_all arg...
5689 # Invoke $ECHO with all args, space-separated.
5690 func_echo_all ()
5691 {
5692 $ECHO ""
5693 }
5694
5695 case "$ECHO" in
5696 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5697 $as_echo "printf" >&6; } ;;
5698 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5699 $as_echo "print -r" >&6; } ;;
5700 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5701 $as_echo "cat" >&6; } ;;
5702 esac
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5718 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5719 if ${ac_cv_path_SED+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5723 for ac_i in 1 2 3 4 5 6 7; do
5724 ac_script="$ac_script$as_nl$ac_script"
5725 done
5726 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5727 { ac_script=; unset ac_script;}
5728 if test -z "$SED"; then
5729 ac_path_SED_found=false
5730 # Loop through the user's path and test for each of PROGNAME-LIST
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_prog in sed gsed; do
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5739 as_fn_executable_p "$ac_path_SED" || continue
5740 # Check for GNU ac_path_SED and select it if it is found.
5741 # Check for GNU $ac_path_SED
5742 case `"$ac_path_SED" --version 2>&1` in
5743 *GNU*)
5744 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5745 *)
5746 ac_count=0
5747 $as_echo_n 0123456789 >"conftest.in"
5748 while :
5749 do
5750 cat "conftest.in" "conftest.in" >"conftest.tmp"
5751 mv "conftest.tmp" "conftest.in"
5752 cp "conftest.in" "conftest.nl"
5753 $as_echo '' >> "conftest.nl"
5754 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5756 as_fn_arith $ac_count + 1 && ac_count=$as_val
5757 if test $ac_count -gt ${ac_path_SED_max-0}; then
5758 # Best one so far, save it but keep looking for a better one
5759 ac_cv_path_SED="$ac_path_SED"
5760 ac_path_SED_max=$ac_count
5761 fi
5762 # 10*(2^10) chars as input seems more than enough
5763 test $ac_count -gt 10 && break
5764 done
5765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5766 esac
5767
5768 $ac_path_SED_found && break 3
5769 done
5770 done
5771 done
5772 IFS=$as_save_IFS
5773 if test -z "$ac_cv_path_SED"; then
5774 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5775 fi
5776 else
5777 ac_cv_path_SED=$SED
5778 fi
5779
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5782 $as_echo "$ac_cv_path_SED" >&6; }
5783 SED="$ac_cv_path_SED"
5784 rm -f conftest.sed
5785
5786 test -z "$SED" && SED=sed
5787 Xsed="$SED -e 1s/^X//"
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5800 $as_echo_n "checking for fgrep... " >&6; }
5801 if ${ac_cv_path_FGREP+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5805 then ac_cv_path_FGREP="$GREP -F"
5806 else
5807 if test -z "$FGREP"; then
5808 ac_path_FGREP_found=false
5809 # Loop through the user's path and test for each of PROGNAME-LIST
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5812 do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_prog in fgrep; do
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5818 as_fn_executable_p "$ac_path_FGREP" || continue
5819 # Check for GNU ac_path_FGREP and select it if it is found.
5820 # Check for GNU $ac_path_FGREP
5821 case `"$ac_path_FGREP" --version 2>&1` in
5822 *GNU*)
5823 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5824 *)
5825 ac_count=0
5826 $as_echo_n 0123456789 >"conftest.in"
5827 while :
5828 do
5829 cat "conftest.in" "conftest.in" >"conftest.tmp"
5830 mv "conftest.tmp" "conftest.in"
5831 cp "conftest.in" "conftest.nl"
5832 $as_echo 'FGREP' >> "conftest.nl"
5833 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5835 as_fn_arith $ac_count + 1 && ac_count=$as_val
5836 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5837 # Best one so far, save it but keep looking for a better one
5838 ac_cv_path_FGREP="$ac_path_FGREP"
5839 ac_path_FGREP_max=$ac_count
5840 fi
5841 # 10*(2^10) chars as input seems more than enough
5842 test $ac_count -gt 10 && break
5843 done
5844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5845 esac
5846
5847 $ac_path_FGREP_found && break 3
5848 done
5849 done
5850 done
5851 IFS=$as_save_IFS
5852 if test -z "$ac_cv_path_FGREP"; then
5853 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5854 fi
5855 else
5856 ac_cv_path_FGREP=$FGREP
5857 fi
5858
5859 fi
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5862 $as_echo "$ac_cv_path_FGREP" >&6; }
5863 FGREP="$ac_cv_path_FGREP"
5864
5865
5866 test -z "$GREP" && GREP=grep
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886 # Check whether --with-gnu-ld was given.
5887 if test "${with_gnu_ld+set}" = set; then :
5888 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5889 else
5890 with_gnu_ld=no
5891 fi
5892
5893 ac_prog=ld
5894 if test "$GCC" = yes; then
5895 # Check if gcc -print-prog-name=ld gives a path.
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5897 $as_echo_n "checking for ld used by $CC... " >&6; }
5898 case $host in
5899 *-*-mingw*)
5900 # gcc leaves a trailing carriage return which upsets mingw
5901 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5902 *)
5903 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5904 esac
5905 case $ac_prog in
5906 # Accept absolute paths.
5907 [\\/]* | ?:[\\/]*)
5908 re_direlt='/[^/][^/]*/\.\./'
5909 # Canonicalize the pathname of ld
5910 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5911 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5912 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5913 done
5914 test -z "$LD" && LD="$ac_prog"
5915 ;;
5916 "")
5917 # If it fails, then pretend we aren't using GCC.
5918 ac_prog=ld
5919 ;;
5920 *)
5921 # If it is relative, then search for the first ld in PATH.
5922 with_gnu_ld=unknown
5923 ;;
5924 esac
5925 elif test "$with_gnu_ld" = yes; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5927 $as_echo_n "checking for GNU ld... " >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5930 $as_echo_n "checking for non-GNU ld... " >&6; }
5931 fi
5932 if ${lt_cv_path_LD+:} false; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 if test -z "$LD"; then
5936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5937 for ac_dir in $PATH; do
5938 IFS="$lt_save_ifs"
5939 test -z "$ac_dir" && ac_dir=.
5940 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5941 lt_cv_path_LD="$ac_dir/$ac_prog"
5942 # Check to see if the program is GNU ld. I'd rather use --version,
5943 # but apparently some variants of GNU ld only accept -v.
5944 # Break only if it was the GNU/non-GNU ld that we prefer.
5945 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5946 *GNU* | *'with BFD'*)
5947 test "$with_gnu_ld" != no && break
5948 ;;
5949 *)
5950 test "$with_gnu_ld" != yes && break
5951 ;;
5952 esac
5953 fi
5954 done
5955 IFS="$lt_save_ifs"
5956 else
5957 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5958 fi
5959 fi
5960
5961 LD="$lt_cv_path_LD"
5962 if test -n "$LD"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5964 $as_echo "$LD" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5968 fi
5969 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5971 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5972 if ${lt_cv_prog_gnu_ld+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5976 case `$LD -v 2>&1 </dev/null` in
5977 *GNU* | *'with BFD'*)
5978 lt_cv_prog_gnu_ld=yes
5979 ;;
5980 *)
5981 lt_cv_prog_gnu_ld=no
5982 ;;
5983 esac
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5986 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5987 with_gnu_ld=$lt_cv_prog_gnu_ld
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5998 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5999 if ${lt_cv_path_NM+:} false; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if test -n "$NM"; then
6003 # Let the user override the test.
6004 lt_cv_path_NM="$NM"
6005 else
6006 lt_nm_to_check="${ac_tool_prefix}nm"
6007 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6008 lt_nm_to_check="$lt_nm_to_check nm"
6009 fi
6010 for lt_tmp_nm in $lt_nm_to_check; do
6011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6012 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6013 IFS="$lt_save_ifs"
6014 test -z "$ac_dir" && ac_dir=.
6015 tmp_nm="$ac_dir/$lt_tmp_nm"
6016 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6017 # Check to see if the nm accepts a BSD-compat flag.
6018 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6019 # nm: unknown option "B" ignored
6020 # Tru64's nm complains that /dev/null is an invalid object file
6021 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6022 */dev/null* | *'Invalid file or object type'*)
6023 lt_cv_path_NM="$tmp_nm -B"
6024 break
6025 ;;
6026 *)
6027 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6028 */dev/null*)
6029 lt_cv_path_NM="$tmp_nm -p"
6030 break
6031 ;;
6032 *)
6033 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6034 continue # so that we can try to find one that supports BSD flags
6035 ;;
6036 esac
6037 ;;
6038 esac
6039 fi
6040 done
6041 IFS="$lt_save_ifs"
6042 done
6043 : ${lt_cv_path_NM=no}
6044 fi
6045 fi
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6047 $as_echo "$lt_cv_path_NM" >&6; }
6048 if test "$lt_cv_path_NM" != "no"; then
6049 NM="$lt_cv_path_NM"
6050 else
6051 # Didn't find any BSD compatible name lister, look for dumpbin.
6052 if test -n "$DUMPBIN"; then :
6053 # Let the user override the test.
6054 else
6055 if test -n "$ac_tool_prefix"; then
6056 for ac_prog in dumpbin "link -dump"
6057 do
6058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if ${ac_cv_prog_DUMPBIN+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 if test -n "$DUMPBIN"; then
6066 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 DUMPBIN=$ac_cv_prog_DUMPBIN
6086 if test -n "$DUMPBIN"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6088 $as_echo "$DUMPBIN" >&6; }
6089 else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6092 fi
6093
6094
6095 test -n "$DUMPBIN" && break
6096 done
6097 fi
6098 if test -z "$DUMPBIN"; then
6099 ac_ct_DUMPBIN=$DUMPBIN
6100 for ac_prog in dumpbin "link -dump"
6101 do
6102 # Extract the first word of "$ac_prog", so it can be a program name with args.
6103 set dummy $ac_prog; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 if test -n "$ac_ct_DUMPBIN"; then
6110 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6122 fi
6123 done
6124 done
6125 IFS=$as_save_IFS
6126
6127 fi
6128 fi
6129 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6130 if test -n "$ac_ct_DUMPBIN"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6132 $as_echo "$ac_ct_DUMPBIN" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6137
6138
6139 test -n "$ac_ct_DUMPBIN" && break
6140 done
6141
6142 if test "x$ac_ct_DUMPBIN" = x; then
6143 DUMPBIN=":"
6144 else
6145 case $cross_compiling:$ac_tool_warned in
6146 yes:)
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6149 ac_tool_warned=yes ;;
6150 esac
6151 DUMPBIN=$ac_ct_DUMPBIN
6152 fi
6153 fi
6154
6155 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6156 *COFF*)
6157 DUMPBIN="$DUMPBIN -symbols"
6158 ;;
6159 *)
6160 DUMPBIN=:
6161 ;;
6162 esac
6163 fi
6164
6165 if test "$DUMPBIN" != ":"; then
6166 NM="$DUMPBIN"
6167 fi
6168 fi
6169 test -z "$NM" && NM=nm
6170
6171
6172
6173
6174
6175
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6177 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6178 if ${lt_cv_nm_interface+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 lt_cv_nm_interface="BSD nm"
6182 echo "int some_variable = 0;" > conftest.$ac_ext
6183 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6184 (eval "$ac_compile" 2>conftest.err)
6185 cat conftest.err >&5
6186 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6187 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6188 cat conftest.err >&5
6189 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6190 cat conftest.out >&5
6191 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6192 lt_cv_nm_interface="MS dumpbin"
6193 fi
6194 rm -f conftest*
6195 fi
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6197 $as_echo "$lt_cv_nm_interface" >&6; }
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6200 $as_echo_n "checking whether ln -s works... " >&6; }
6201 LN_S=$as_ln_s
6202 if test "$LN_S" = "ln -s"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6204 $as_echo "yes" >&6; }
6205 else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6207 $as_echo "no, using $LN_S" >&6; }
6208 fi
6209
6210 # find the maximum length of command line arguments
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6212 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6213 if ${lt_cv_sys_max_cmd_len+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 i=0
6217 teststring="ABCD"
6218
6219 case $build_os in
6220 msdosdjgpp*)
6221 # On DJGPP, this test can blow up pretty badly due to problems in libc
6222 # (any single argument exceeding 2000 bytes causes a buffer overrun
6223 # during glob expansion). Even if it were fixed, the result of this
6224 # check would be larger than it should be.
6225 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6226 ;;
6227
6228 gnu*)
6229 # Under GNU Hurd, this test is not required because there is
6230 # no limit to the length of command line arguments.
6231 # Libtool will interpret -1 as no limit whatsoever
6232 lt_cv_sys_max_cmd_len=-1;
6233 ;;
6234
6235 cygwin* | mingw* | cegcc*)
6236 # On Win9x/ME, this test blows up -- it succeeds, but takes
6237 # about 5 minutes as the teststring grows exponentially.
6238 # Worse, since 9x/ME are not pre-emptively multitasking,
6239 # you end up with a "frozen" computer, even though with patience
6240 # the test eventually succeeds (with a max line length of 256k).
6241 # Instead, let's just punt: use the minimum linelength reported by
6242 # all of the supported platforms: 8192 (on NT/2K/XP).
6243 lt_cv_sys_max_cmd_len=8192;
6244 ;;
6245
6246 mint*)
6247 # On MiNT this can take a long time and run out of memory.
6248 lt_cv_sys_max_cmd_len=8192;
6249 ;;
6250
6251 amigaos*)
6252 # On AmigaOS with pdksh, this test takes hours, literally.
6253 # So we just punt and use a minimum line length of 8192.
6254 lt_cv_sys_max_cmd_len=8192;
6255 ;;
6256
6257 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6258 # This has been around since 386BSD, at least. Likely further.
6259 if test -x /sbin/sysctl; then
6260 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6261 elif test -x /usr/sbin/sysctl; then
6262 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6263 else
6264 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6265 fi
6266 # And add a safety zone
6267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6269 ;;
6270
6271 interix*)
6272 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6273 lt_cv_sys_max_cmd_len=196608
6274 ;;
6275
6276 os2*)
6277 # The test takes a long time on OS/2.
6278 lt_cv_sys_max_cmd_len=8192
6279 ;;
6280
6281 osf*)
6282 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6283 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6284 # nice to cause kernel panics so lets avoid the loop below.
6285 # First set a reasonable default.
6286 lt_cv_sys_max_cmd_len=16384
6287 #
6288 if test -x /sbin/sysconfig; then
6289 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6290 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6291 esac
6292 fi
6293 ;;
6294 sco3.2v5*)
6295 lt_cv_sys_max_cmd_len=102400
6296 ;;
6297 sysv5* | sco5v6* | sysv4.2uw2*)
6298 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6299 if test -n "$kargmax"; then
6300 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6301 else
6302 lt_cv_sys_max_cmd_len=32768
6303 fi
6304 ;;
6305 *)
6306 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6307 if test -n "$lt_cv_sys_max_cmd_len"; then
6308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6310 else
6311 # Make teststring a little bigger before we do anything with it.
6312 # a 1K string should be a reasonable start.
6313 for i in 1 2 3 4 5 6 7 8 ; do
6314 teststring=$teststring$teststring
6315 done
6316 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6317 # If test is not a shell built-in, we'll probably end up computing a
6318 # maximum length that is only half of the actual maximum length, but
6319 # we can't tell.
6320 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6321 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6322 test $i != 17 # 1/2 MB should be enough
6323 do
6324 i=`expr $i + 1`
6325 teststring=$teststring$teststring
6326 done
6327 # Only check the string length outside the loop.
6328 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6329 teststring=
6330 # Add a significant safety factor because C++ compilers can tack on
6331 # massive amounts of additional arguments before passing them to the
6332 # linker. It appears as though 1/2 is a usable value.
6333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6334 fi
6335 ;;
6336 esac
6337
6338 fi
6339
6340 if test -n $lt_cv_sys_max_cmd_len ; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6342 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6345 $as_echo "none" >&6; }
6346 fi
6347 max_cmd_len=$lt_cv_sys_max_cmd_len
6348
6349
6350
6351
6352
6353
6354 : ${CP="cp -f"}
6355 : ${MV="mv -f"}
6356 : ${RM="rm -f"}
6357
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6359 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6360 # Try some XSI features
6361 xsi_shell=no
6362 ( _lt_dummy="a/b/c"
6363 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6364 = c,a/b,b/c, \
6365 && eval 'test $(( 1 + 1 )) -eq 2 \
6366 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6367 && xsi_shell=yes
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6369 $as_echo "$xsi_shell" >&6; }
6370
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6373 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6374 lt_shell_append=no
6375 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6376 >/dev/null 2>&1 \
6377 && lt_shell_append=yes
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6379 $as_echo "$lt_shell_append" >&6; }
6380
6381
6382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6383 lt_unset=unset
6384 else
6385 lt_unset=false
6386 fi
6387
6388
6389
6390
6391
6392 # test EBCDIC or ASCII
6393 case `echo X|tr X '\101'` in
6394 A) # ASCII based system
6395 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6396 lt_SP2NL='tr \040 \012'
6397 lt_NL2SP='tr \015\012 \040\040'
6398 ;;
6399 *) # EBCDIC based system
6400 lt_SP2NL='tr \100 \n'
6401 lt_NL2SP='tr \r\n \100\100'
6402 ;;
6403 esac
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6414 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6415 if ${lt_cv_to_host_file_cmd+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 case $host in
6419 *-*-mingw* )
6420 case $build in
6421 *-*-mingw* ) # actually msys
6422 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6423 ;;
6424 *-*-cygwin* )
6425 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6426 ;;
6427 * ) # otherwise, assume *nix
6428 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6429 ;;
6430 esac
6431 ;;
6432 *-*-cygwin* )
6433 case $build in
6434 *-*-mingw* ) # actually msys
6435 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6436 ;;
6437 *-*-cygwin* )
6438 lt_cv_to_host_file_cmd=func_convert_file_noop
6439 ;;
6440 * ) # otherwise, assume *nix
6441 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6442 ;;
6443 esac
6444 ;;
6445 * ) # unhandled hosts (and "normal" native builds)
6446 lt_cv_to_host_file_cmd=func_convert_file_noop
6447 ;;
6448 esac
6449
6450 fi
6451
6452 to_host_file_cmd=$lt_cv_to_host_file_cmd
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6454 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6455
6456
6457
6458
6459
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6461 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6462 if ${lt_cv_to_tool_file_cmd+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464 else
6465 #assume ordinary cross tools, or native build.
6466 lt_cv_to_tool_file_cmd=func_convert_file_noop
6467 case $host in
6468 *-*-mingw* )
6469 case $build in
6470 *-*-mingw* ) # actually msys
6471 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6472 ;;
6473 esac
6474 ;;
6475 esac
6476
6477 fi
6478
6479 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6481 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6482
6483
6484
6485
6486
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6488 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6489 if ${lt_cv_ld_reload_flag+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 lt_cv_ld_reload_flag='-r'
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6495 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6496 reload_flag=$lt_cv_ld_reload_flag
6497 case $reload_flag in
6498 "" | " "*) ;;
6499 *) reload_flag=" $reload_flag" ;;
6500 esac
6501 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6502 case $host_os in
6503 cygwin* | mingw* | pw32* | cegcc*)
6504 if test "$GCC" != yes; then
6505 reload_cmds=false
6506 fi
6507 ;;
6508 darwin*)
6509 if test "$GCC" = yes; then
6510 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6511 else
6512 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6513 fi
6514 ;;
6515 esac
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525 if test -n "$ac_tool_prefix"; then
6526 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6527 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_OBJDUMP+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 if test -n "$OBJDUMP"; then
6534 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6546 fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 OBJDUMP=$ac_cv_prog_OBJDUMP
6554 if test -n "$OBJDUMP"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6556 $as_echo "$OBJDUMP" >&6; }
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561
6562
6563 fi
6564 if test -z "$ac_cv_prog_OBJDUMP"; then
6565 ac_ct_OBJDUMP=$OBJDUMP
6566 # Extract the first word of "objdump", so it can be a program name with args.
6567 set dummy objdump; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 if test -n "$ac_ct_OBJDUMP"; then
6574 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579 IFS=$as_save_IFS
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 break 2
6586 fi
6587 done
6588 done
6589 IFS=$as_save_IFS
6590
6591 fi
6592 fi
6593 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6594 if test -n "$ac_ct_OBJDUMP"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6596 $as_echo "$ac_ct_OBJDUMP" >&6; }
6597 else
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6600 fi
6601
6602 if test "x$ac_ct_OBJDUMP" = x; then
6603 OBJDUMP="false"
6604 else
6605 case $cross_compiling:$ac_tool_warned in
6606 yes:)
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6609 ac_tool_warned=yes ;;
6610 esac
6611 OBJDUMP=$ac_ct_OBJDUMP
6612 fi
6613 else
6614 OBJDUMP="$ac_cv_prog_OBJDUMP"
6615 fi
6616
6617 test -z "$OBJDUMP" && OBJDUMP=objdump
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6628 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6629 if ${lt_cv_deplibs_check_method+:} false; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 lt_cv_file_magic_cmd='$MAGIC_CMD'
6633 lt_cv_file_magic_test_file=
6634 lt_cv_deplibs_check_method='unknown'
6635 # Need to set the preceding variable on all platforms that support
6636 # interlibrary dependencies.
6637 # 'none' -- dependencies not supported.
6638 # `unknown' -- same as none, but documents that we really don't know.
6639 # 'pass_all' -- all dependencies passed with no checks.
6640 # 'test_compile' -- check by making test program.
6641 # 'file_magic [[regex]]' -- check by looking for files in library path
6642 # which responds to the $file_magic_cmd with a given extended regex.
6643 # If you have `file' or equivalent on your system and you're not sure
6644 # whether `pass_all' will *always* work, you probably want this one.
6645
6646 case $host_os in
6647 aix[4-9]*)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650
6651 beos*)
6652 lt_cv_deplibs_check_method=pass_all
6653 ;;
6654
6655 bsdi[45]*)
6656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6657 lt_cv_file_magic_cmd='/usr/bin/file -L'
6658 lt_cv_file_magic_test_file=/shlib/libc.so
6659 ;;
6660
6661 cygwin*)
6662 # func_win32_libid is a shell function defined in ltmain.sh
6663 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6664 lt_cv_file_magic_cmd='func_win32_libid'
6665 ;;
6666
6667 mingw* | pw32*)
6668 # Base MSYS/MinGW do not provide the 'file' command needed by
6669 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6670 # unless we find 'file', for example because we are cross-compiling.
6671 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6672 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6673 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6674 lt_cv_file_magic_cmd='func_win32_libid'
6675 else
6676 # Keep this pattern in sync with the one in func_win32_libid.
6677 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6678 lt_cv_file_magic_cmd='$OBJDUMP -f'
6679 fi
6680 ;;
6681
6682 cegcc*)
6683 # use the weaker test based on 'objdump'. See mingw*.
6684 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6685 lt_cv_file_magic_cmd='$OBJDUMP -f'
6686 ;;
6687
6688 darwin* | rhapsody*)
6689 lt_cv_deplibs_check_method=pass_all
6690 ;;
6691
6692 freebsd* | dragonfly*)
6693 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6694 case $host_cpu in
6695 i*86 )
6696 # Not sure whether the presence of OpenBSD here was a mistake.
6697 # Let's accept both of them until this is cleared up.
6698 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6699 lt_cv_file_magic_cmd=/usr/bin/file
6700 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6701 ;;
6702 esac
6703 else
6704 lt_cv_deplibs_check_method=pass_all
6705 fi
6706 ;;
6707
6708 gnu*)
6709 lt_cv_deplibs_check_method=pass_all
6710 ;;
6711
6712 haiku*)
6713 lt_cv_deplibs_check_method=pass_all
6714 ;;
6715
6716 hpux10.20* | hpux11*)
6717 lt_cv_file_magic_cmd=/usr/bin/file
6718 case $host_cpu in
6719 ia64*)
6720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6721 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6722 ;;
6723 hppa*64*)
6724 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]'
6725 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6726 ;;
6727 *)
6728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6729 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6730 ;;
6731 esac
6732 ;;
6733
6734 interix[3-9]*)
6735 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6737 ;;
6738
6739 irix5* | irix6* | nonstopux*)
6740 case $LD in
6741 *-32|*"-32 ") libmagic=32-bit;;
6742 *-n32|*"-n32 ") libmagic=N32;;
6743 *-64|*"-64 ") libmagic=64-bit;;
6744 *) libmagic=never-match;;
6745 esac
6746 lt_cv_deplibs_check_method=pass_all
6747 ;;
6748
6749 # This must be glibc/ELF.
6750 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6751 lt_cv_deplibs_check_method=pass_all
6752 ;;
6753
6754 netbsd*)
6755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6757 else
6758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6759 fi
6760 ;;
6761
6762 newos6*)
6763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6764 lt_cv_file_magic_cmd=/usr/bin/file
6765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6766 ;;
6767
6768 *nto* | *qnx*)
6769 lt_cv_deplibs_check_method=pass_all
6770 ;;
6771
6772 openbsd*)
6773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6775 else
6776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6777 fi
6778 ;;
6779
6780 osf3* | osf4* | osf5*)
6781 lt_cv_deplibs_check_method=pass_all
6782 ;;
6783
6784 rdos*)
6785 lt_cv_deplibs_check_method=pass_all
6786 ;;
6787
6788 solaris*)
6789 lt_cv_deplibs_check_method=pass_all
6790 ;;
6791
6792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6793 lt_cv_deplibs_check_method=pass_all
6794 ;;
6795
6796 sysv4 | sysv4.3*)
6797 case $host_vendor in
6798 motorola)
6799 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]'
6800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6801 ;;
6802 ncr)
6803 lt_cv_deplibs_check_method=pass_all
6804 ;;
6805 sequent)
6806 lt_cv_file_magic_cmd='/bin/file'
6807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6808 ;;
6809 sni)
6810 lt_cv_file_magic_cmd='/bin/file'
6811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6812 lt_cv_file_magic_test_file=/lib/libc.so
6813 ;;
6814 siemens)
6815 lt_cv_deplibs_check_method=pass_all
6816 ;;
6817 pc)
6818 lt_cv_deplibs_check_method=pass_all
6819 ;;
6820 esac
6821 ;;
6822
6823 tpf*)
6824 lt_cv_deplibs_check_method=pass_all
6825 ;;
6826 esac
6827
6828 fi
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6830 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6831
6832 file_magic_glob=
6833 want_nocaseglob=no
6834 if test "$build" = "$host"; then
6835 case $host_os in
6836 mingw* | pw32*)
6837 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6838 want_nocaseglob=yes
6839 else
6840 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6841 fi
6842 ;;
6843 esac
6844 fi
6845
6846 file_magic_cmd=$lt_cv_file_magic_cmd
6847 deplibs_check_method=$lt_cv_deplibs_check_method
6848 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6873 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if ${ac_cv_prog_DLLTOOL+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 if test -n "$DLLTOOL"; then
6880 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897 fi
6898 fi
6899 DLLTOOL=$ac_cv_prog_DLLTOOL
6900 if test -n "$DLLTOOL"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6902 $as_echo "$DLLTOOL" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 fi
6907
6908
6909 fi
6910 if test -z "$ac_cv_prog_DLLTOOL"; then
6911 ac_ct_DLLTOOL=$DLLTOOL
6912 # Extract the first word of "dlltool", so it can be a program name with args.
6913 set dummy dlltool; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test -n "$ac_ct_DLLTOOL"; then
6920 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937 fi
6938 fi
6939 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6940 if test -n "$ac_ct_DLLTOOL"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6942 $as_echo "$ac_ct_DLLTOOL" >&6; }
6943 else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948 if test "x$ac_ct_DLLTOOL" = x; then
6949 DLLTOOL="false"
6950 else
6951 case $cross_compiling:$ac_tool_warned in
6952 yes:)
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955 ac_tool_warned=yes ;;
6956 esac
6957 DLLTOOL=$ac_ct_DLLTOOL
6958 fi
6959 else
6960 DLLTOOL="$ac_cv_prog_DLLTOOL"
6961 fi
6962
6963 test -z "$DLLTOOL" && DLLTOOL=dlltool
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6975 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6976 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 lt_cv_sharedlib_from_linklib_cmd='unknown'
6980
6981 case $host_os in
6982 cygwin* | mingw* | pw32* | cegcc*)
6983 # two different shell functions defined in ltmain.sh
6984 # decide which to use based on capabilities of $DLLTOOL
6985 case `$DLLTOOL --help 2>&1` in
6986 *--identify-strict*)
6987 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6988 ;;
6989 *)
6990 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6991 ;;
6992 esac
6993 ;;
6994 *)
6995 # fallback: assume linklib IS sharedlib
6996 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6997 ;;
6998 esac
6999
7000 fi
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7002 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7003 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7004 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7005
7006
7007
7008
7009
7010
7011
7012 if test -n "$ac_tool_prefix"; then
7013 for ac_prog in ar
7014 do
7015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if ${ac_cv_prog_AR+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 if test -n "$AR"; then
7023 ac_cv_prog_AR="$AR" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036 done
7037 done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 AR=$ac_cv_prog_AR
7043 if test -n "$AR"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7045 $as_echo "$AR" >&6; }
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 fi
7050
7051
7052 test -n "$AR" && break
7053 done
7054 fi
7055 if test -z "$AR"; then
7056 ac_ct_AR=$AR
7057 for ac_prog in ar
7058 do
7059 # Extract the first word of "$ac_prog", so it can be a program name with args.
7060 set dummy $ac_prog; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 if test -n "$ac_ct_AR"; then
7067 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_ac_ct_AR="$ac_prog"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7087 if test -n "$ac_ct_AR"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7089 $as_echo "$ac_ct_AR" >&6; }
7090 else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7094
7095
7096 test -n "$ac_ct_AR" && break
7097 done
7098
7099 if test "x$ac_ct_AR" = x; then
7100 AR="false"
7101 else
7102 case $cross_compiling:$ac_tool_warned in
7103 yes:)
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7106 ac_tool_warned=yes ;;
7107 esac
7108 AR=$ac_ct_AR
7109 fi
7110 fi
7111
7112 : ${AR=ar}
7113 : ${AR_FLAGS=cru}
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7126 $as_echo_n "checking for archiver @FILE support... " >&6; }
7127 if ${lt_cv_ar_at_file+:} false; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 lt_cv_ar_at_file=no
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133
7134 int
7135 main ()
7136 {
7137
7138 ;
7139 return 0;
7140 }
7141 _ACEOF
7142 if ac_fn_c_try_compile "$LINENO"; then :
7143 echo conftest.$ac_objext > conftest.lst
7144 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7146 (eval $lt_ar_try) 2>&5
7147 ac_status=$?
7148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; }
7150 if test "$ac_status" -eq 0; then
7151 # Ensure the archiver fails upon bogus file names.
7152 rm -f conftest.$ac_objext libconftest.a
7153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7154 (eval $lt_ar_try) 2>&5
7155 ac_status=$?
7156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157 test $ac_status = 0; }
7158 if test "$ac_status" -ne 0; then
7159 lt_cv_ar_at_file=@
7160 fi
7161 fi
7162 rm -f conftest.* libconftest.a
7163
7164 fi
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7169 $as_echo "$lt_cv_ar_at_file" >&6; }
7170
7171 if test "x$lt_cv_ar_at_file" = xno; then
7172 archiver_list_spec=
7173 else
7174 archiver_list_spec=$lt_cv_ar_at_file
7175 fi
7176
7177
7178
7179
7180
7181
7182
7183 if test -n "$ac_tool_prefix"; then
7184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7185 set dummy ${ac_tool_prefix}strip; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_STRIP+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 if test -n "$STRIP"; then
7192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 break 2
7204 fi
7205 done
7206 done
7207 IFS=$as_save_IFS
7208
7209 fi
7210 fi
7211 STRIP=$ac_cv_prog_STRIP
7212 if test -n "$STRIP"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7214 $as_echo "$STRIP" >&6; }
7215 else
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7219
7220
7221 fi
7222 if test -z "$ac_cv_prog_STRIP"; then
7223 ac_ct_STRIP=$STRIP
7224 # Extract the first word of "strip", so it can be a program name with args.
7225 set dummy strip; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 if test -n "$ac_ct_STRIP"; then
7232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_ac_ct_STRIP="strip"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245 done
7246 done
7247 IFS=$as_save_IFS
7248
7249 fi
7250 fi
7251 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7252 if test -n "$ac_ct_STRIP"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7254 $as_echo "$ac_ct_STRIP" >&6; }
7255 else
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7258 fi
7259
7260 if test "x$ac_ct_STRIP" = x; then
7261 STRIP=":"
7262 else
7263 case $cross_compiling:$ac_tool_warned in
7264 yes:)
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267 ac_tool_warned=yes ;;
7268 esac
7269 STRIP=$ac_ct_STRIP
7270 fi
7271 else
7272 STRIP="$ac_cv_prog_STRIP"
7273 fi
7274
7275 test -z "$STRIP" && STRIP=:
7276
7277
7278
7279
7280
7281
7282 if test -n "$ac_tool_prefix"; then
7283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_prog_RANLIB+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 if test -n "$RANLIB"; then
7291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304 done
7305 done
7306 IFS=$as_save_IFS
7307
7308 fi
7309 fi
7310 RANLIB=$ac_cv_prog_RANLIB
7311 if test -n "$RANLIB"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7313 $as_echo "$RANLIB" >&6; }
7314 else
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7317 fi
7318
7319
7320 fi
7321 if test -z "$ac_cv_prog_RANLIB"; then
7322 ac_ct_RANLIB=$RANLIB
7323 # Extract the first word of "ranlib", so it can be a program name with args.
7324 set dummy ranlib; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 if test -n "$ac_ct_RANLIB"; then
7331 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_ac_ct_RANLIB="ranlib"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344 done
7345 done
7346 IFS=$as_save_IFS
7347
7348 fi
7349 fi
7350 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7351 if test -n "$ac_ct_RANLIB"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7353 $as_echo "$ac_ct_RANLIB" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7357 fi
7358
7359 if test "x$ac_ct_RANLIB" = x; then
7360 RANLIB=":"
7361 else
7362 case $cross_compiling:$ac_tool_warned in
7363 yes:)
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7366 ac_tool_warned=yes ;;
7367 esac
7368 RANLIB=$ac_ct_RANLIB
7369 fi
7370 else
7371 RANLIB="$ac_cv_prog_RANLIB"
7372 fi
7373
7374 test -z "$RANLIB" && RANLIB=:
7375
7376
7377
7378
7379
7380
7381 # Determine commands to create old-style static archives.
7382 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7383 old_postinstall_cmds='chmod 644 $oldlib'
7384 old_postuninstall_cmds=
7385
7386 if test -n "$RANLIB"; then
7387 case $host_os in
7388 openbsd*)
7389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7390 ;;
7391 *)
7392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7393 ;;
7394 esac
7395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7396 fi
7397
7398 case $host_os in
7399 darwin*)
7400 lock_old_archive_extraction=yes ;;
7401 *)
7402 lock_old_archive_extraction=no ;;
7403 esac
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443 # If no C compiler was specified, use CC.
7444 LTCC=${LTCC-"$CC"}
7445
7446 # If no C compiler flags were specified, use CFLAGS.
7447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7448
7449 # Allow CC to be a program name with arguments.
7450 compiler=$CC
7451
7452
7453 # Check for command to grab the raw symbol name followed by C symbol from nm.
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7455 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7456 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459
7460 # These are sane defaults that work on at least a few old systems.
7461 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7462
7463 # Character class describing NM global symbol codes.
7464 symcode='[BCDEGRST]'
7465
7466 # Regexp to match symbols that can be accessed directly from C.
7467 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7468
7469 # Define system-specific variables.
7470 case $host_os in
7471 aix*)
7472 symcode='[BCDT]'
7473 ;;
7474 cygwin* | mingw* | pw32* | cegcc*)
7475 symcode='[ABCDGISTW]'
7476 ;;
7477 hpux*)
7478 if test "$host_cpu" = ia64; then
7479 symcode='[ABCDEGRST]'
7480 fi
7481 ;;
7482 irix* | nonstopux*)
7483 symcode='[BCDEGRST]'
7484 ;;
7485 osf*)
7486 symcode='[BCDEGQRST]'
7487 ;;
7488 solaris*)
7489 symcode='[BDRT]'
7490 ;;
7491 sco3.2v5*)
7492 symcode='[DT]'
7493 ;;
7494 sysv4.2uw2*)
7495 symcode='[DT]'
7496 ;;
7497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7498 symcode='[ABDT]'
7499 ;;
7500 sysv4)
7501 symcode='[DFNSTU]'
7502 ;;
7503 esac
7504
7505 # If we're using GNU nm, then use its standard symbol codes.
7506 case `$NM -V 2>&1` in
7507 *GNU* | *'with BFD'*)
7508 symcode='[ABCDGIRSTW]' ;;
7509 esac
7510
7511 # Transform an extracted symbol line into a proper C declaration.
7512 # Some systems (esp. on ia64) link data and code symbols differently,
7513 # so use this general approach.
7514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7515
7516 # Transform an extracted symbol line into symbol name and symbol address
7517 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7518 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'"
7519
7520 # Handle CRLF in mingw tool chain
7521 opt_cr=
7522 case $build_os in
7523 mingw*)
7524 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7525 ;;
7526 esac
7527
7528 # Try without a prefix underscore, then with it.
7529 for ac_symprfx in "" "_"; do
7530
7531 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7532 symxfrm="\\1 $ac_symprfx\\2 \\2"
7533
7534 # Write the raw and C identifiers.
7535 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7536 # Fake it for dumpbin and say T for any non-static function
7537 # and D for any global variable.
7538 # Also find C++ and __fastcall symbols from MSVC++,
7539 # which start with @ or ?.
7540 lt_cv_sys_global_symbol_pipe="$AWK '"\
7541 " {last_section=section; section=\$ 3};"\
7542 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7543 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7544 " \$ 0!~/External *\|/{next};"\
7545 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7546 " {if(hide[section]) next};"\
7547 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7548 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7549 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7550 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7551 " ' prfx=^$ac_symprfx"
7552 else
7553 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7554 fi
7555 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7556
7557 # Check to see that the pipe works correctly.
7558 pipe_works=no
7559
7560 rm -f conftest*
7561 cat > conftest.$ac_ext <<_LT_EOF
7562 #ifdef __cplusplus
7563 extern "C" {
7564 #endif
7565 char nm_test_var;
7566 void nm_test_func(void);
7567 void nm_test_func(void){}
7568 #ifdef __cplusplus
7569 }
7570 #endif
7571 int main(){nm_test_var='a';nm_test_func();return(0);}
7572 _LT_EOF
7573
7574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7575 (eval $ac_compile) 2>&5
7576 ac_status=$?
7577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7578 test $ac_status = 0; }; then
7579 # Now try to grab the symbols.
7580 nlist=conftest.nm
7581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7582 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7583 ac_status=$?
7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; } && test -s "$nlist"; then
7586 # Try sorting and uniquifying the output.
7587 if sort "$nlist" | uniq > "$nlist"T; then
7588 mv -f "$nlist"T "$nlist"
7589 else
7590 rm -f "$nlist"T
7591 fi
7592
7593 # Make sure that we snagged all the symbols we need.
7594 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7595 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7596 cat <<_LT_EOF > conftest.$ac_ext
7597 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7598 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7599 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7600 relocations are performed -- see ld's documentation on pseudo-relocs. */
7601 # define LT_DLSYM_CONST
7602 #elif defined(__osf__)
7603 /* This system does not cope well with relocations in const data. */
7604 # define LT_DLSYM_CONST
7605 #else
7606 # define LT_DLSYM_CONST const
7607 #endif
7608
7609 #ifdef __cplusplus
7610 extern "C" {
7611 #endif
7612
7613 _LT_EOF
7614 # Now generate the symbol file.
7615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7616
7617 cat <<_LT_EOF >> conftest.$ac_ext
7618
7619 /* The mapping between symbol names and symbols. */
7620 LT_DLSYM_CONST struct {
7621 const char *name;
7622 void *address;
7623 }
7624 lt__PROGRAM__LTX_preloaded_symbols[] =
7625 {
7626 { "@PROGRAM@", (void *) 0 },
7627 _LT_EOF
7628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7629 cat <<\_LT_EOF >> conftest.$ac_ext
7630 {0, (void *) 0}
7631 };
7632
7633 /* This works around a problem in FreeBSD linker */
7634 #ifdef FREEBSD_WORKAROUND
7635 static const void *lt_preloaded_setup() {
7636 return lt__PROGRAM__LTX_preloaded_symbols;
7637 }
7638 #endif
7639
7640 #ifdef __cplusplus
7641 }
7642 #endif
7643 _LT_EOF
7644 # Now try linking the two files.
7645 mv conftest.$ac_objext conftstm.$ac_objext
7646 lt_globsym_save_LIBS=$LIBS
7647 lt_globsym_save_CFLAGS=$CFLAGS
7648 LIBS="conftstm.$ac_objext"
7649 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7651 (eval $ac_link) 2>&5
7652 ac_status=$?
7653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7654 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7655 pipe_works=yes
7656 fi
7657 LIBS=$lt_globsym_save_LIBS
7658 CFLAGS=$lt_globsym_save_CFLAGS
7659 else
7660 echo "cannot find nm_test_func in $nlist" >&5
7661 fi
7662 else
7663 echo "cannot find nm_test_var in $nlist" >&5
7664 fi
7665 else
7666 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7667 fi
7668 else
7669 echo "$progname: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7671 fi
7672 rm -rf conftest* conftst*
7673
7674 # Do not use the global_symbol_pipe unless it works.
7675 if test "$pipe_works" = yes; then
7676 break
7677 else
7678 lt_cv_sys_global_symbol_pipe=
7679 fi
7680 done
7681
7682 fi
7683
7684 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7685 lt_cv_sys_global_symbol_to_cdecl=
7686 fi
7687 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7689 $as_echo "failed" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7692 $as_echo "ok" >&6; }
7693 fi
7694
7695 # Response file support.
7696 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7697 nm_file_list_spec='@'
7698 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7699 nm_file_list_spec='@'
7700 fi
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7729 $as_echo_n "checking for sysroot... " >&6; }
7730
7731 # Check whether --with-sysroot was given.
7732 if test "${with_sysroot+set}" = set; then :
7733 withval=$with_sysroot;
7734 else
7735 with_sysroot=no
7736 fi
7737
7738
7739 lt_sysroot=
7740 case ${with_sysroot} in #(
7741 yes)
7742 if test "$GCC" = yes; then
7743 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7744 fi
7745 ;; #(
7746 /*)
7747 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7748 ;; #(
7749 no|'')
7750 ;; #(
7751 *)
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7753 $as_echo "${with_sysroot}" >&6; }
7754 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7755 ;;
7756 esac
7757
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7759 $as_echo "${lt_sysroot:-no}" >&6; }
7760
7761
7762
7763
7764
7765 # Check whether --enable-libtool-lock was given.
7766 if test "${enable_libtool_lock+set}" = set; then :
7767 enableval=$enable_libtool_lock;
7768 fi
7769
7770 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7771
7772 # Some flags need to be propagated to the compiler or linker for good
7773 # libtool support.
7774 case $host in
7775 ia64-*-hpux*)
7776 # Find out which ABI we are using.
7777 echo 'int i;' > conftest.$ac_ext
7778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7779 (eval $ac_compile) 2>&5
7780 ac_status=$?
7781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7782 test $ac_status = 0; }; then
7783 case `/usr/bin/file conftest.$ac_objext` in
7784 *ELF-32*)
7785 HPUX_IA64_MODE="32"
7786 ;;
7787 *ELF-64*)
7788 HPUX_IA64_MODE="64"
7789 ;;
7790 esac
7791 fi
7792 rm -rf conftest*
7793 ;;
7794 *-*-irix6*)
7795 # Find out which ABI we are using.
7796 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7798 (eval $ac_compile) 2>&5
7799 ac_status=$?
7800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7801 test $ac_status = 0; }; then
7802 if test "$lt_cv_prog_gnu_ld" = yes; then
7803 case `/usr/bin/file conftest.$ac_objext` in
7804 *32-bit*)
7805 LD="${LD-ld} -melf32bsmip"
7806 ;;
7807 *N32*)
7808 LD="${LD-ld} -melf32bmipn32"
7809 ;;
7810 *64-bit*)
7811 LD="${LD-ld} -melf64bmip"
7812 ;;
7813 esac
7814 else
7815 case `/usr/bin/file conftest.$ac_objext` in
7816 *32-bit*)
7817 LD="${LD-ld} -32"
7818 ;;
7819 *N32*)
7820 LD="${LD-ld} -n32"
7821 ;;
7822 *64-bit*)
7823 LD="${LD-ld} -64"
7824 ;;
7825 esac
7826 fi
7827 fi
7828 rm -rf conftest*
7829 ;;
7830
7831 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7832 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7833 # Find out which ABI we are using.
7834 echo 'int i;' > conftest.$ac_ext
7835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7836 (eval $ac_compile) 2>&5
7837 ac_status=$?
7838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839 test $ac_status = 0; }; then
7840 case `/usr/bin/file conftest.o` in
7841 *32-bit*)
7842 case $host in
7843 x86_64-*kfreebsd*-gnu)
7844 LD="${LD-ld} -m elf_i386_fbsd"
7845 ;;
7846 x86_64-*linux*)
7847 LD="${LD-ld} -m elf_i386"
7848 ;;
7849 ppc64-*linux*|powerpc64-*linux*)
7850 LD="${LD-ld} -m elf32ppclinux"
7851 ;;
7852 s390x-*linux*)
7853 LD="${LD-ld} -m elf_s390"
7854 ;;
7855 sparc64-*linux*)
7856 LD="${LD-ld} -m elf32_sparc"
7857 ;;
7858 esac
7859 ;;
7860 *64-bit*)
7861 case $host in
7862 x86_64-*kfreebsd*-gnu)
7863 LD="${LD-ld} -m elf_x86_64_fbsd"
7864 ;;
7865 x86_64-*linux*)
7866 LD="${LD-ld} -m elf_x86_64"
7867 ;;
7868 ppc*-*linux*|powerpc*-*linux*)
7869 LD="${LD-ld} -m elf64ppc"
7870 ;;
7871 s390*-*linux*|s390*-*tpf*)
7872 LD="${LD-ld} -m elf64_s390"
7873 ;;
7874 sparc*-*linux*)
7875 LD="${LD-ld} -m elf64_sparc"
7876 ;;
7877 esac
7878 ;;
7879 esac
7880 fi
7881 rm -rf conftest*
7882 ;;
7883
7884 *-*-sco3.2v5*)
7885 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7886 SAVE_CFLAGS="$CFLAGS"
7887 CFLAGS="$CFLAGS -belf"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7889 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7890 if ${lt_cv_cc_needs_belf+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 ac_ext=c
7894 ac_cpp='$CPP $CPPFLAGS'
7895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7901
7902 int
7903 main ()
7904 {
7905
7906 ;
7907 return 0;
7908 }
7909 _ACEOF
7910 if ac_fn_c_try_link "$LINENO"; then :
7911 lt_cv_cc_needs_belf=yes
7912 else
7913 lt_cv_cc_needs_belf=no
7914 fi
7915 rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 ac_ext=c
7918 ac_cpp='$CPP $CPPFLAGS'
7919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7922
7923 fi
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7925 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7926 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7927 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7928 CFLAGS="$SAVE_CFLAGS"
7929 fi
7930 ;;
7931 *-*solaris*)
7932 # Find out which ABI we are using.
7933 echo 'int i;' > conftest.$ac_ext
7934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7935 (eval $ac_compile) 2>&5
7936 ac_status=$?
7937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7938 test $ac_status = 0; }; then
7939 case `/usr/bin/file conftest.o` in
7940 *64-bit*)
7941 case $lt_cv_prog_gnu_ld in
7942 yes*)
7943 case $host in
7944 i?86-*-solaris*)
7945 LD="${LD-ld} -m elf_x86_64"
7946 ;;
7947 sparc*-*-solaris*)
7948 LD="${LD-ld} -m elf64_sparc"
7949 ;;
7950 esac
7951 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7952 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7953 LD="${LD-ld}_sol2"
7954 fi
7955 ;;
7956 *)
7957 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7958 LD="${LD-ld} -64"
7959 fi
7960 ;;
7961 esac
7962 ;;
7963 esac
7964 fi
7965 rm -rf conftest*
7966 ;;
7967 esac
7968
7969 need_locks="$enable_libtool_lock"
7970
7971 if test -n "$ac_tool_prefix"; then
7972 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7973 set dummy ${ac_tool_prefix}mt; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 if test -n "$MANIFEST_TOOL"; then
7980 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993 done
7994 done
7995 IFS=$as_save_IFS
7996
7997 fi
7998 fi
7999 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8000 if test -n "$MANIFEST_TOOL"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8002 $as_echo "$MANIFEST_TOOL" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 fi
8007
8008
8009 fi
8010 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8011 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8012 # Extract the first word of "mt", so it can be a program name with args.
8013 set dummy mt; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 if test -n "$ac_ct_MANIFEST_TOOL"; then
8020 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8021 else
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8024 do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8032 fi
8033 done
8034 done
8035 IFS=$as_save_IFS
8036
8037 fi
8038 fi
8039 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8040 if test -n "$ac_ct_MANIFEST_TOOL"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8042 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8043 else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8046 fi
8047
8048 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8049 MANIFEST_TOOL=":"
8050 else
8051 case $cross_compiling:$ac_tool_warned in
8052 yes:)
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055 ac_tool_warned=yes ;;
8056 esac
8057 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8058 fi
8059 else
8060 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8061 fi
8062
8063 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8065 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8066 if ${lt_cv_path_mainfest_tool+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 lt_cv_path_mainfest_tool=no
8070 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8071 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8072 cat conftest.err >&5
8073 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8074 lt_cv_path_mainfest_tool=yes
8075 fi
8076 rm -f conftest*
8077 fi
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8079 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8080 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8081 MANIFEST_TOOL=:
8082 fi
8083
8084
8085
8086
8087
8088
8089 case $host_os in
8090 rhapsody* | darwin*)
8091 if test -n "$ac_tool_prefix"; then
8092 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8093 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095 $as_echo_n "checking for $ac_word... " >&6; }
8096 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099 if test -n "$DSYMUTIL"; then
8100 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8101 else
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8104 do
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8109 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 break 2
8112 fi
8113 done
8114 done
8115 IFS=$as_save_IFS
8116
8117 fi
8118 fi
8119 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8120 if test -n "$DSYMUTIL"; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8122 $as_echo "$DSYMUTIL" >&6; }
8123 else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8126 fi
8127
8128
8129 fi
8130 if test -z "$ac_cv_prog_DSYMUTIL"; then
8131 ac_ct_DSYMUTIL=$DSYMUTIL
8132 # Extract the first word of "dsymutil", so it can be a program name with args.
8133 set dummy dsymutil; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 if test -n "$ac_ct_DSYMUTIL"; then
8140 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8144 do
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8152 fi
8153 done
8154 done
8155 IFS=$as_save_IFS
8156
8157 fi
8158 fi
8159 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8160 if test -n "$ac_ct_DSYMUTIL"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8162 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8166 fi
8167
8168 if test "x$ac_ct_DSYMUTIL" = x; then
8169 DSYMUTIL=":"
8170 else
8171 case $cross_compiling:$ac_tool_warned in
8172 yes:)
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8175 ac_tool_warned=yes ;;
8176 esac
8177 DSYMUTIL=$ac_ct_DSYMUTIL
8178 fi
8179 else
8180 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8181 fi
8182
8183 if test -n "$ac_tool_prefix"; then
8184 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8185 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 $as_echo_n "checking for $ac_word... " >&6; }
8188 if ${ac_cv_prog_NMEDIT+:} false; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 if test -n "$NMEDIT"; then
8192 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8193 else
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 for as_dir in $PATH
8196 do
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 break 2
8204 fi
8205 done
8206 done
8207 IFS=$as_save_IFS
8208
8209 fi
8210 fi
8211 NMEDIT=$ac_cv_prog_NMEDIT
8212 if test -n "$NMEDIT"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8214 $as_echo "$NMEDIT" >&6; }
8215 else
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8218 fi
8219
8220
8221 fi
8222 if test -z "$ac_cv_prog_NMEDIT"; then
8223 ac_ct_NMEDIT=$NMEDIT
8224 # Extract the first word of "nmedit", so it can be a program name with args.
8225 set dummy nmedit; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 if test -n "$ac_ct_NMEDIT"; then
8232 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8236 do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245 done
8246 done
8247 IFS=$as_save_IFS
8248
8249 fi
8250 fi
8251 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8252 if test -n "$ac_ct_NMEDIT"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8254 $as_echo "$ac_ct_NMEDIT" >&6; }
8255 else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8258 fi
8259
8260 if test "x$ac_ct_NMEDIT" = x; then
8261 NMEDIT=":"
8262 else
8263 case $cross_compiling:$ac_tool_warned in
8264 yes:)
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8267 ac_tool_warned=yes ;;
8268 esac
8269 NMEDIT=$ac_ct_NMEDIT
8270 fi
8271 else
8272 NMEDIT="$ac_cv_prog_NMEDIT"
8273 fi
8274
8275 if test -n "$ac_tool_prefix"; then
8276 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8277 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if ${ac_cv_prog_LIPO+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 if test -n "$LIPO"; then
8284 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8288 do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8296 fi
8297 done
8298 done
8299 IFS=$as_save_IFS
8300
8301 fi
8302 fi
8303 LIPO=$ac_cv_prog_LIPO
8304 if test -n "$LIPO"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8306 $as_echo "$LIPO" >&6; }
8307 else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8310 fi
8311
8312
8313 fi
8314 if test -z "$ac_cv_prog_LIPO"; then
8315 ac_ct_LIPO=$LIPO
8316 # Extract the first word of "lipo", so it can be a program name with args.
8317 set dummy lipo; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 if test -n "$ac_ct_LIPO"; then
8324 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_ac_ct_LIPO="lipo"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337 done
8338 done
8339 IFS=$as_save_IFS
8340
8341 fi
8342 fi
8343 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8344 if test -n "$ac_ct_LIPO"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8346 $as_echo "$ac_ct_LIPO" >&6; }
8347 else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8350 fi
8351
8352 if test "x$ac_ct_LIPO" = x; then
8353 LIPO=":"
8354 else
8355 case $cross_compiling:$ac_tool_warned in
8356 yes:)
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8359 ac_tool_warned=yes ;;
8360 esac
8361 LIPO=$ac_ct_LIPO
8362 fi
8363 else
8364 LIPO="$ac_cv_prog_LIPO"
8365 fi
8366
8367 if test -n "$ac_tool_prefix"; then
8368 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8369 set dummy ${ac_tool_prefix}otool; ac_word=$2
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371 $as_echo_n "checking for $ac_word... " >&6; }
8372 if ${ac_cv_prog_OTOOL+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 if test -n "$OTOOL"; then
8376 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8377 else
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 for as_dir in $PATH
8380 do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 break 2
8388 fi
8389 done
8390 done
8391 IFS=$as_save_IFS
8392
8393 fi
8394 fi
8395 OTOOL=$ac_cv_prog_OTOOL
8396 if test -n "$OTOOL"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8398 $as_echo "$OTOOL" >&6; }
8399 else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8402 fi
8403
8404
8405 fi
8406 if test -z "$ac_cv_prog_OTOOL"; then
8407 ac_ct_OTOOL=$OTOOL
8408 # Extract the first word of "otool", so it can be a program name with args.
8409 set dummy otool; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 if test -n "$ac_ct_OTOOL"; then
8416 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8417 else
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8420 do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8425 ac_cv_prog_ac_ct_OTOOL="otool"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8428 fi
8429 done
8430 done
8431 IFS=$as_save_IFS
8432
8433 fi
8434 fi
8435 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8436 if test -n "$ac_ct_OTOOL"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8438 $as_echo "$ac_ct_OTOOL" >&6; }
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8442 fi
8443
8444 if test "x$ac_ct_OTOOL" = x; then
8445 OTOOL=":"
8446 else
8447 case $cross_compiling:$ac_tool_warned in
8448 yes:)
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8451 ac_tool_warned=yes ;;
8452 esac
8453 OTOOL=$ac_ct_OTOOL
8454 fi
8455 else
8456 OTOOL="$ac_cv_prog_OTOOL"
8457 fi
8458
8459 if test -n "$ac_tool_prefix"; then
8460 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8461 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if ${ac_cv_prog_OTOOL64+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 if test -n "$OTOOL64"; then
8468 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8469 else
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481 done
8482 done
8483 IFS=$as_save_IFS
8484
8485 fi
8486 fi
8487 OTOOL64=$ac_cv_prog_OTOOL64
8488 if test -n "$OTOOL64"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8490 $as_echo "$OTOOL64" >&6; }
8491 else
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8494 fi
8495
8496
8497 fi
8498 if test -z "$ac_cv_prog_OTOOL64"; then
8499 ac_ct_OTOOL64=$OTOOL64
8500 # Extract the first word of "otool64", so it can be a program name with args.
8501 set dummy otool64; ac_word=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 if test -n "$ac_ct_OTOOL64"; then
8508 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8509 else
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8512 do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8517 ac_cv_prog_ac_ct_OTOOL64="otool64"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8520 fi
8521 done
8522 done
8523 IFS=$as_save_IFS
8524
8525 fi
8526 fi
8527 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8528 if test -n "$ac_ct_OTOOL64"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8530 $as_echo "$ac_ct_OTOOL64" >&6; }
8531 else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8534 fi
8535
8536 if test "x$ac_ct_OTOOL64" = x; then
8537 OTOOL64=":"
8538 else
8539 case $cross_compiling:$ac_tool_warned in
8540 yes:)
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8543 ac_tool_warned=yes ;;
8544 esac
8545 OTOOL64=$ac_ct_OTOOL64
8546 fi
8547 else
8548 OTOOL64="$ac_cv_prog_OTOOL64"
8549 fi
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8578 $as_echo_n "checking for -single_module linker flag... " >&6; }
8579 if ${lt_cv_apple_cc_single_mod+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 lt_cv_apple_cc_single_mod=no
8583 if test -z "${LT_MULTI_MODULE}"; then
8584 # By default we will add the -single_module flag. You can override
8585 # by either setting the environment variable LT_MULTI_MODULE
8586 # non-empty at configure time, or by adding -multi_module to the
8587 # link flags.
8588 rm -rf libconftest.dylib*
8589 echo "int foo(void){return 1;}" > conftest.c
8590 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8591 -dynamiclib -Wl,-single_module conftest.c" >&5
8592 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8593 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8594 _lt_result=$?
8595 # If there is a non-empty error log, and "single_module"
8596 # appears in it, assume the flag caused a linker warning
8597 if test -s conftest.err && $GREP single_module conftest.err; then
8598 cat conftest.err >&5
8599 # Otherwise, if the output was created with a 0 exit code from
8600 # the compiler, it worked.
8601 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8602 lt_cv_apple_cc_single_mod=yes
8603 else
8604 cat conftest.err >&5
8605 fi
8606 rm -rf libconftest.dylib*
8607 rm -f conftest.*
8608 fi
8609 fi
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8611 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8612
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8614 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8615 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 lt_cv_ld_exported_symbols_list=no
8619 save_LDFLAGS=$LDFLAGS
8620 echo "_main" > conftest.sym
8621 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624
8625 int
8626 main ()
8627 {
8628
8629 ;
8630 return 0;
8631 }
8632 _ACEOF
8633 if ac_fn_c_try_link "$LINENO"; then :
8634 lt_cv_ld_exported_symbols_list=yes
8635 else
8636 lt_cv_ld_exported_symbols_list=no
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 LDFLAGS="$save_LDFLAGS"
8641
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8644 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8645
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8647 $as_echo_n "checking for -force_load linker flag... " >&6; }
8648 if ${lt_cv_ld_force_load+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 lt_cv_ld_force_load=no
8652 cat > conftest.c << _LT_EOF
8653 int forced_loaded() { return 2;}
8654 _LT_EOF
8655 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8656 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8657 echo "$AR cru libconftest.a conftest.o" >&5
8658 $AR cru libconftest.a conftest.o 2>&5
8659 echo "$RANLIB libconftest.a" >&5
8660 $RANLIB libconftest.a 2>&5
8661 cat > conftest.c << _LT_EOF
8662 int main() { return 0;}
8663 _LT_EOF
8664 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8665 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8666 _lt_result=$?
8667 if test -s conftest.err && $GREP force_load conftest.err; then
8668 cat conftest.err >&5
8669 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8670 lt_cv_ld_force_load=yes
8671 else
8672 cat conftest.err >&5
8673 fi
8674 rm -f conftest.err libconftest.a conftest conftest.c
8675 rm -rf conftest.dSYM
8676
8677 fi
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8679 $as_echo "$lt_cv_ld_force_load" >&6; }
8680 case $host_os in
8681 rhapsody* | darwin1.[012])
8682 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8683 darwin1.*)
8684 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8685 darwin*) # darwin 5.x on
8686 # if running on 10.5 or later, the deployment target defaults
8687 # to the OS version, if on x86, and 10.4, the deployment
8688 # target defaults to 10.4. Don't you love it?
8689 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8690 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8691 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8692 10.[012]*)
8693 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8694 10.*)
8695 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8696 esac
8697 ;;
8698 esac
8699 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8700 _lt_dar_single_mod='$single_module'
8701 fi
8702 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8703 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8704 else
8705 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8706 fi
8707 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8708 _lt_dsymutil='~$DSYMUTIL $lib || :'
8709 else
8710 _lt_dsymutil=
8711 fi
8712 ;;
8713 esac
8714
8715 for ac_header in dlfcn.h
8716 do :
8717 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8718 "
8719 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8720 cat >>confdefs.h <<_ACEOF
8721 #define HAVE_DLFCN_H 1
8722 _ACEOF
8723
8724 fi
8725
8726 done
8727
8728
8729
8730
8731 func_stripname_cnf ()
8732 {
8733 case ${2} in
8734 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8735 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8736 esac
8737 } # func_stripname_cnf
8738
8739
8740
8741
8742
8743 # Set options
8744
8745
8746
8747 enable_dlopen=no
8748
8749
8750 enable_win32_dll=no
8751
8752
8753 # Check whether --enable-shared was given.
8754 if test "${enable_shared+set}" = set; then :
8755 enableval=$enable_shared; p=${PACKAGE-default}
8756 case $enableval in
8757 yes) enable_shared=yes ;;
8758 no) enable_shared=no ;;
8759 *)
8760 enable_shared=no
8761 # Look at the argument we got. We use all the common list separators.
8762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8763 for pkg in $enableval; do
8764 IFS="$lt_save_ifs"
8765 if test "X$pkg" = "X$p"; then
8766 enable_shared=yes
8767 fi
8768 done
8769 IFS="$lt_save_ifs"
8770 ;;
8771 esac
8772 else
8773 enable_shared=yes
8774 fi
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784 # Check whether --enable-static was given.
8785 if test "${enable_static+set}" = set; then :
8786 enableval=$enable_static; p=${PACKAGE-default}
8787 case $enableval in
8788 yes) enable_static=yes ;;
8789 no) enable_static=no ;;
8790 *)
8791 enable_static=no
8792 # Look at the argument we got. We use all the common list separators.
8793 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8794 for pkg in $enableval; do
8795 IFS="$lt_save_ifs"
8796 if test "X$pkg" = "X$p"; then
8797 enable_static=yes
8798 fi
8799 done
8800 IFS="$lt_save_ifs"
8801 ;;
8802 esac
8803 else
8804 enable_static=yes
8805 fi
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816 # Check whether --with-pic was given.
8817 if test "${with_pic+set}" = set; then :
8818 withval=$with_pic; lt_p=${PACKAGE-default}
8819 case $withval in
8820 yes|no) pic_mode=$withval ;;
8821 *)
8822 pic_mode=default
8823 # Look at the argument we got. We use all the common list separators.
8824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8825 for lt_pkg in $withval; do
8826 IFS="$lt_save_ifs"
8827 if test "X$lt_pkg" = "X$lt_p"; then
8828 pic_mode=yes
8829 fi
8830 done
8831 IFS="$lt_save_ifs"
8832 ;;
8833 esac
8834 else
8835 pic_mode=default
8836 fi
8837
8838
8839 test -z "$pic_mode" && pic_mode=default
8840
8841
8842
8843
8844
8845
8846
8847 # Check whether --enable-fast-install was given.
8848 if test "${enable_fast_install+set}" = set; then :
8849 enableval=$enable_fast_install; p=${PACKAGE-default}
8850 case $enableval in
8851 yes) enable_fast_install=yes ;;
8852 no) enable_fast_install=no ;;
8853 *)
8854 enable_fast_install=no
8855 # Look at the argument we got. We use all the common list separators.
8856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8857 for pkg in $enableval; do
8858 IFS="$lt_save_ifs"
8859 if test "X$pkg" = "X$p"; then
8860 enable_fast_install=yes
8861 fi
8862 done
8863 IFS="$lt_save_ifs"
8864 ;;
8865 esac
8866 else
8867 enable_fast_install=yes
8868 fi
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880 # This can be used to rebuild libtool when needed
8881 LIBTOOL_DEPS="$ltmain"
8882
8883 # Always use our own libtool.
8884 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915 test -z "$LN_S" && LN_S="ln -s"
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930 if test -n "${ZSH_VERSION+set}" ; then
8931 setopt NO_GLOB_SUBST
8932 fi
8933
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8935 $as_echo_n "checking for objdir... " >&6; }
8936 if ${lt_cv_objdir+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8939 rm -f .libs 2>/dev/null
8940 mkdir .libs 2>/dev/null
8941 if test -d .libs; then
8942 lt_cv_objdir=.libs
8943 else
8944 # MS-DOS does not allow filenames that begin with a dot.
8945 lt_cv_objdir=_libs
8946 fi
8947 rmdir .libs 2>/dev/null
8948 fi
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8950 $as_echo "$lt_cv_objdir" >&6; }
8951 objdir=$lt_cv_objdir
8952
8953
8954
8955
8956
8957 cat >>confdefs.h <<_ACEOF
8958 #define LT_OBJDIR "$lt_cv_objdir/"
8959 _ACEOF
8960
8961
8962
8963
8964 case $host_os in
8965 aix3*)
8966 # AIX sometimes has problems with the GCC collect2 program. For some
8967 # reason, if we set the COLLECT_NAMES environment variable, the problems
8968 # vanish in a puff of smoke.
8969 if test "X${COLLECT_NAMES+set}" != Xset; then
8970 COLLECT_NAMES=
8971 export COLLECT_NAMES
8972 fi
8973 ;;
8974 esac
8975
8976 # Global variables:
8977 ofile=libtool
8978 can_build_shared=yes
8979
8980 # All known linkers require a `.a' archive for static linking (except MSVC,
8981 # which needs '.lib').
8982 libext=a
8983
8984 with_gnu_ld="$lt_cv_prog_gnu_ld"
8985
8986 old_CC="$CC"
8987 old_CFLAGS="$CFLAGS"
8988
8989 # Set sane defaults for various variables
8990 test -z "$CC" && CC=cc
8991 test -z "$LTCC" && LTCC=$CC
8992 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8993 test -z "$LD" && LD=ld
8994 test -z "$ac_objext" && ac_objext=o
8995
8996 for cc_temp in $compiler""; do
8997 case $cc_temp in
8998 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8999 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9000 \-*) ;;
9001 *) break;;
9002 esac
9003 done
9004 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9005
9006
9007 # Only perform the check for file, if the check method requires it
9008 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9009 case $deplibs_check_method in
9010 file_magic*)
9011 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9013 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9014 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 case $MAGIC_CMD in
9018 [\\/*] | ?:[\\/]*)
9019 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9020 ;;
9021 *)
9022 lt_save_MAGIC_CMD="$MAGIC_CMD"
9023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9024 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9025 for ac_dir in $ac_dummy; do
9026 IFS="$lt_save_ifs"
9027 test -z "$ac_dir" && ac_dir=.
9028 if test -f $ac_dir/${ac_tool_prefix}file; then
9029 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9030 if test -n "$file_magic_test_file"; then
9031 case $deplibs_check_method in
9032 "file_magic "*)
9033 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9035 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9036 $EGREP "$file_magic_regex" > /dev/null; then
9037 :
9038 else
9039 cat <<_LT_EOF 1>&2
9040
9041 *** Warning: the command libtool uses to detect shared libraries,
9042 *** $file_magic_cmd, produces output that libtool cannot recognize.
9043 *** The result is that libtool may fail to recognize shared libraries
9044 *** as such. This will affect the creation of libtool libraries that
9045 *** depend on shared libraries, but programs linked with such libtool
9046 *** libraries will work regardless of this problem. Nevertheless, you
9047 *** may want to report the problem to your system manager and/or to
9048 *** bug-libtool@gnu.org
9049
9050 _LT_EOF
9051 fi ;;
9052 esac
9053 fi
9054 break
9055 fi
9056 done
9057 IFS="$lt_save_ifs"
9058 MAGIC_CMD="$lt_save_MAGIC_CMD"
9059 ;;
9060 esac
9061 fi
9062
9063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9064 if test -n "$MAGIC_CMD"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9066 $as_echo "$MAGIC_CMD" >&6; }
9067 else
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 $as_echo "no" >&6; }
9070 fi
9071
9072
9073
9074
9075
9076 if test -z "$lt_cv_path_MAGIC_CMD"; then
9077 if test -n "$ac_tool_prefix"; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9079 $as_echo_n "checking for file... " >&6; }
9080 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 case $MAGIC_CMD in
9084 [\\/*] | ?:[\\/]*)
9085 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9086 ;;
9087 *)
9088 lt_save_MAGIC_CMD="$MAGIC_CMD"
9089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9090 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9091 for ac_dir in $ac_dummy; do
9092 IFS="$lt_save_ifs"
9093 test -z "$ac_dir" && ac_dir=.
9094 if test -f $ac_dir/file; then
9095 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9096 if test -n "$file_magic_test_file"; then
9097 case $deplibs_check_method in
9098 "file_magic "*)
9099 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9101 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9102 $EGREP "$file_magic_regex" > /dev/null; then
9103 :
9104 else
9105 cat <<_LT_EOF 1>&2
9106
9107 *** Warning: the command libtool uses to detect shared libraries,
9108 *** $file_magic_cmd, produces output that libtool cannot recognize.
9109 *** The result is that libtool may fail to recognize shared libraries
9110 *** as such. This will affect the creation of libtool libraries that
9111 *** depend on shared libraries, but programs linked with such libtool
9112 *** libraries will work regardless of this problem. Nevertheless, you
9113 *** may want to report the problem to your system manager and/or to
9114 *** bug-libtool@gnu.org
9115
9116 _LT_EOF
9117 fi ;;
9118 esac
9119 fi
9120 break
9121 fi
9122 done
9123 IFS="$lt_save_ifs"
9124 MAGIC_CMD="$lt_save_MAGIC_CMD"
9125 ;;
9126 esac
9127 fi
9128
9129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9130 if test -n "$MAGIC_CMD"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9132 $as_echo "$MAGIC_CMD" >&6; }
9133 else
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135 $as_echo "no" >&6; }
9136 fi
9137
9138
9139 else
9140 MAGIC_CMD=:
9141 fi
9142 fi
9143
9144 fi
9145 ;;
9146 esac
9147
9148 # Use C for the default configuration in the libtool script
9149
9150 lt_save_CC="$CC"
9151 ac_ext=c
9152 ac_cpp='$CPP $CPPFLAGS'
9153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9156
9157
9158 # Source file extension for C test sources.
9159 ac_ext=c
9160
9161 # Object file extension for compiled C test sources.
9162 objext=o
9163 objext=$objext
9164
9165 # Code to be used in simple compile tests
9166 lt_simple_compile_test_code="int some_variable = 0;"
9167
9168 # Code to be used in simple link tests
9169 lt_simple_link_test_code='int main(){return(0);}'
9170
9171
9172
9173
9174
9175
9176
9177 # If no C compiler was specified, use CC.
9178 LTCC=${LTCC-"$CC"}
9179
9180 # If no C compiler flags were specified, use CFLAGS.
9181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9182
9183 # Allow CC to be a program name with arguments.
9184 compiler=$CC
9185
9186 # Save the default compiler, since it gets overwritten when the other
9187 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9188 compiler_DEFAULT=$CC
9189
9190 # save warnings/boilerplate of simple test code
9191 ac_outfile=conftest.$ac_objext
9192 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9193 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9194 _lt_compiler_boilerplate=`cat conftest.err`
9195 $RM conftest*
9196
9197 ac_outfile=conftest.$ac_objext
9198 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9199 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9200 _lt_linker_boilerplate=`cat conftest.err`
9201 $RM -r conftest*
9202
9203
9204 if test -n "$compiler"; then
9205
9206 lt_prog_compiler_no_builtin_flag=
9207
9208 if test "$GCC" = yes; then
9209 case $cc_basename in
9210 nvcc*)
9211 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9212 *)
9213 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9214 esac
9215
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9217 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9218 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 lt_cv_prog_compiler_rtti_exceptions=no
9222 ac_outfile=conftest.$ac_objext
9223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9224 lt_compiler_flag="-fno-rtti -fno-exceptions"
9225 # Insert the option either (1) after the last *FLAGS variable, or
9226 # (2) before a word containing "conftest.", or (3) at the end.
9227 # Note that $ac_compile itself does not contain backslashes and begins
9228 # with a dollar sign (not a hyphen), so the echo should work correctly.
9229 # The option is referenced via a variable to avoid confusing sed.
9230 lt_compile=`echo "$ac_compile" | $SED \
9231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233 -e 's:$: $lt_compiler_flag:'`
9234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9235 (eval "$lt_compile" 2>conftest.err)
9236 ac_status=$?
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 if (exit $ac_status) && test -s "$ac_outfile"; then
9240 # The compiler can only warn and ignore the option if not recognized
9241 # So say no if there are warnings other than the usual output.
9242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9245 lt_cv_prog_compiler_rtti_exceptions=yes
9246 fi
9247 fi
9248 $RM conftest*
9249
9250 fi
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9252 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9253
9254 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9255 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9256 else
9257 :
9258 fi
9259
9260 fi
9261
9262
9263
9264
9265
9266
9267 lt_prog_compiler_wl=
9268 lt_prog_compiler_pic=
9269 lt_prog_compiler_static=
9270
9271
9272 if test "$GCC" = yes; then
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_static='-static'
9275
9276 case $host_os in
9277 aix*)
9278 # All AIX code is PIC.
9279 if test "$host_cpu" = ia64; then
9280 # AIX 5 now supports IA64 processor
9281 lt_prog_compiler_static='-Bstatic'
9282 fi
9283 ;;
9284
9285 amigaos*)
9286 case $host_cpu in
9287 powerpc)
9288 # see comment about AmigaOS4 .so support
9289 lt_prog_compiler_pic='-fPIC'
9290 ;;
9291 m68k)
9292 # FIXME: we need at least 68020 code to build shared libraries, but
9293 # adding the `-m68020' flag to GCC prevents building anything better,
9294 # like `-m68040'.
9295 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9296 ;;
9297 esac
9298 ;;
9299
9300 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9301 # PIC is the default for these OSes.
9302 ;;
9303
9304 mingw* | cygwin* | pw32* | os2* | cegcc*)
9305 # This hack is so that the source file can tell whether it is being
9306 # built for inclusion in a dll (and should export symbols for example).
9307 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9308 # (--disable-auto-import) libraries
9309 lt_prog_compiler_pic='-DDLL_EXPORT'
9310 ;;
9311
9312 darwin* | rhapsody*)
9313 # PIC is the default on this platform
9314 # Common symbols not allowed in MH_DYLIB files
9315 lt_prog_compiler_pic='-fno-common'
9316 ;;
9317
9318 haiku*)
9319 # PIC is the default for Haiku.
9320 # The "-static" flag exists, but is broken.
9321 lt_prog_compiler_static=
9322 ;;
9323
9324 hpux*)
9325 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9326 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9327 # sets the default TLS model and affects inlining.
9328 case $host_cpu in
9329 hppa*64*)
9330 # +Z the default
9331 ;;
9332 *)
9333 lt_prog_compiler_pic='-fPIC'
9334 ;;
9335 esac
9336 ;;
9337
9338 interix[3-9]*)
9339 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9340 # Instead, we relocate shared libraries at runtime.
9341 ;;
9342
9343 msdosdjgpp*)
9344 # Just because we use GCC doesn't mean we suddenly get shared libraries
9345 # on systems that don't support them.
9346 lt_prog_compiler_can_build_shared=no
9347 enable_shared=no
9348 ;;
9349
9350 *nto* | *qnx*)
9351 # QNX uses GNU C++, but need to define -shared option too, otherwise
9352 # it will coredump.
9353 lt_prog_compiler_pic='-fPIC -shared'
9354 ;;
9355
9356 sysv4*MP*)
9357 if test -d /usr/nec; then
9358 lt_prog_compiler_pic=-Kconform_pic
9359 fi
9360 ;;
9361
9362 *)
9363 lt_prog_compiler_pic='-fPIC'
9364 ;;
9365 esac
9366
9367 case $cc_basename in
9368 nvcc*) # Cuda Compiler Driver 2.2
9369 lt_prog_compiler_wl='-Xlinker '
9370 if test -n "$lt_prog_compiler_pic"; then
9371 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9372 fi
9373 ;;
9374 esac
9375 else
9376 # PORTME Check for flag to pass linker flags through the system compiler.
9377 case $host_os in
9378 aix*)
9379 lt_prog_compiler_wl='-Wl,'
9380 if test "$host_cpu" = ia64; then
9381 # AIX 5 now supports IA64 processor
9382 lt_prog_compiler_static='-Bstatic'
9383 else
9384 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9385 fi
9386 ;;
9387
9388 mingw* | cygwin* | pw32* | os2* | cegcc*)
9389 # This hack is so that the source file can tell whether it is being
9390 # built for inclusion in a dll (and should export symbols for example).
9391 lt_prog_compiler_pic='-DDLL_EXPORT'
9392 ;;
9393
9394 hpux9* | hpux10* | hpux11*)
9395 lt_prog_compiler_wl='-Wl,'
9396 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9397 # not for PA HP-UX.
9398 case $host_cpu in
9399 hppa*64*|ia64*)
9400 # +Z the default
9401 ;;
9402 *)
9403 lt_prog_compiler_pic='+Z'
9404 ;;
9405 esac
9406 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9407 lt_prog_compiler_static='${wl}-a ${wl}archive'
9408 ;;
9409
9410 irix5* | irix6* | nonstopux*)
9411 lt_prog_compiler_wl='-Wl,'
9412 # PIC (with -KPIC) is the default.
9413 lt_prog_compiler_static='-non_shared'
9414 ;;
9415
9416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9417 case $cc_basename in
9418 # old Intel for x86_64 which still supported -KPIC.
9419 ecc*)
9420 lt_prog_compiler_wl='-Wl,'
9421 lt_prog_compiler_pic='-KPIC'
9422 lt_prog_compiler_static='-static'
9423 ;;
9424 # icc used to be incompatible with GCC.
9425 # ICC 10 doesn't accept -KPIC any more.
9426 icc* | ifort*)
9427 lt_prog_compiler_wl='-Wl,'
9428 lt_prog_compiler_pic='-fPIC'
9429 lt_prog_compiler_static='-static'
9430 ;;
9431 # Lahey Fortran 8.1.
9432 lf95*)
9433 lt_prog_compiler_wl='-Wl,'
9434 lt_prog_compiler_pic='--shared'
9435 lt_prog_compiler_static='--static'
9436 ;;
9437 nagfor*)
9438 # NAG Fortran compiler
9439 lt_prog_compiler_wl='-Wl,-Wl,,'
9440 lt_prog_compiler_pic='-PIC'
9441 lt_prog_compiler_static='-Bstatic'
9442 ;;
9443 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9444 # Portland Group compilers (*not* the Pentium gcc compiler,
9445 # which looks to be a dead project)
9446 lt_prog_compiler_wl='-Wl,'
9447 lt_prog_compiler_pic='-fpic'
9448 lt_prog_compiler_static='-Bstatic'
9449 ;;
9450 ccc*)
9451 lt_prog_compiler_wl='-Wl,'
9452 # All Alpha code is PIC.
9453 lt_prog_compiler_static='-non_shared'
9454 ;;
9455 xl* | bgxl* | bgf* | mpixl*)
9456 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9457 lt_prog_compiler_wl='-Wl,'
9458 lt_prog_compiler_pic='-qpic'
9459 lt_prog_compiler_static='-qstaticlink'
9460 ;;
9461 *)
9462 case `$CC -V 2>&1 | sed 5q` in
9463 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9464 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9465 lt_prog_compiler_pic='-KPIC'
9466 lt_prog_compiler_static='-Bstatic'
9467 lt_prog_compiler_wl=''
9468 ;;
9469 *Sun\ F* | *Sun*Fortran*)
9470 lt_prog_compiler_pic='-KPIC'
9471 lt_prog_compiler_static='-Bstatic'
9472 lt_prog_compiler_wl='-Qoption ld '
9473 ;;
9474 *Sun\ C*)
9475 # Sun C 5.9
9476 lt_prog_compiler_pic='-KPIC'
9477 lt_prog_compiler_static='-Bstatic'
9478 lt_prog_compiler_wl='-Wl,'
9479 ;;
9480 *Intel*\ [CF]*Compiler*)
9481 lt_prog_compiler_wl='-Wl,'
9482 lt_prog_compiler_pic='-fPIC'
9483 lt_prog_compiler_static='-static'
9484 ;;
9485 *Portland\ Group*)
9486 lt_prog_compiler_wl='-Wl,'
9487 lt_prog_compiler_pic='-fpic'
9488 lt_prog_compiler_static='-Bstatic'
9489 ;;
9490 esac
9491 ;;
9492 esac
9493 ;;
9494
9495 newsos6)
9496 lt_prog_compiler_pic='-KPIC'
9497 lt_prog_compiler_static='-Bstatic'
9498 ;;
9499
9500 *nto* | *qnx*)
9501 # QNX uses GNU C++, but need to define -shared option too, otherwise
9502 # it will coredump.
9503 lt_prog_compiler_pic='-fPIC -shared'
9504 ;;
9505
9506 osf3* | osf4* | osf5*)
9507 lt_prog_compiler_wl='-Wl,'
9508 # All OSF/1 code is PIC.
9509 lt_prog_compiler_static='-non_shared'
9510 ;;
9511
9512 rdos*)
9513 lt_prog_compiler_static='-non_shared'
9514 ;;
9515
9516 solaris*)
9517 lt_prog_compiler_pic='-KPIC'
9518 lt_prog_compiler_static='-Bstatic'
9519 case $cc_basename in
9520 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9521 lt_prog_compiler_wl='-Qoption ld ';;
9522 *)
9523 lt_prog_compiler_wl='-Wl,';;
9524 esac
9525 ;;
9526
9527 sunos4*)
9528 lt_prog_compiler_wl='-Qoption ld '
9529 lt_prog_compiler_pic='-PIC'
9530 lt_prog_compiler_static='-Bstatic'
9531 ;;
9532
9533 sysv4 | sysv4.2uw2* | sysv4.3*)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_pic='-KPIC'
9536 lt_prog_compiler_static='-Bstatic'
9537 ;;
9538
9539 sysv4*MP*)
9540 if test -d /usr/nec ;then
9541 lt_prog_compiler_pic='-Kconform_pic'
9542 lt_prog_compiler_static='-Bstatic'
9543 fi
9544 ;;
9545
9546 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9547 lt_prog_compiler_wl='-Wl,'
9548 lt_prog_compiler_pic='-KPIC'
9549 lt_prog_compiler_static='-Bstatic'
9550 ;;
9551
9552 unicos*)
9553 lt_prog_compiler_wl='-Wl,'
9554 lt_prog_compiler_can_build_shared=no
9555 ;;
9556
9557 uts4*)
9558 lt_prog_compiler_pic='-pic'
9559 lt_prog_compiler_static='-Bstatic'
9560 ;;
9561
9562 *)
9563 lt_prog_compiler_can_build_shared=no
9564 ;;
9565 esac
9566 fi
9567
9568 case $host_os in
9569 # For platforms which do not support PIC, -DPIC is meaningless:
9570 *djgpp*)
9571 lt_prog_compiler_pic=
9572 ;;
9573 *)
9574 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9575 ;;
9576 esac
9577
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9579 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9580 if ${lt_cv_prog_compiler_pic+:} false; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9584 fi
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9586 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9587 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9588
9589 #
9590 # Check to make sure the PIC flag actually works.
9591 #
9592 if test -n "$lt_prog_compiler_pic"; then
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9594 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9595 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 lt_cv_prog_compiler_pic_works=no
9599 ac_outfile=conftest.$ac_objext
9600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9601 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9602 # Insert the option either (1) after the last *FLAGS variable, or
9603 # (2) before a word containing "conftest.", or (3) at the end.
9604 # Note that $ac_compile itself does not contain backslashes and begins
9605 # with a dollar sign (not a hyphen), so the echo should work correctly.
9606 # The option is referenced via a variable to avoid confusing sed.
9607 lt_compile=`echo "$ac_compile" | $SED \
9608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9610 -e 's:$: $lt_compiler_flag:'`
9611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9612 (eval "$lt_compile" 2>conftest.err)
9613 ac_status=$?
9614 cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 if (exit $ac_status) && test -s "$ac_outfile"; then
9617 # The compiler can only warn and ignore the option if not recognized
9618 # So say no if there are warnings other than the usual output.
9619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9622 lt_cv_prog_compiler_pic_works=yes
9623 fi
9624 fi
9625 $RM conftest*
9626
9627 fi
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9629 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9630
9631 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9632 case $lt_prog_compiler_pic in
9633 "" | " "*) ;;
9634 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9635 esac
9636 else
9637 lt_prog_compiler_pic=
9638 lt_prog_compiler_can_build_shared=no
9639 fi
9640
9641 fi
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653 #
9654 # Check to make sure the static flag actually works.
9655 #
9656 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9658 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9659 if ${lt_cv_prog_compiler_static_works+:} false; then :
9660 $as_echo_n "(cached) " >&6
9661 else
9662 lt_cv_prog_compiler_static_works=no
9663 save_LDFLAGS="$LDFLAGS"
9664 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9665 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9666 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9667 # The linker can only warn and ignore the option if not recognized
9668 # So say no if there are warnings
9669 if test -s conftest.err; then
9670 # Append any errors to the config.log.
9671 cat conftest.err 1>&5
9672 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9674 if diff conftest.exp conftest.er2 >/dev/null; then
9675 lt_cv_prog_compiler_static_works=yes
9676 fi
9677 else
9678 lt_cv_prog_compiler_static_works=yes
9679 fi
9680 fi
9681 $RM -r conftest*
9682 LDFLAGS="$save_LDFLAGS"
9683
9684 fi
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9686 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9687
9688 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9689 :
9690 else
9691 lt_prog_compiler_static=
9692 fi
9693
9694
9695
9696
9697
9698
9699
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9701 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9702 if ${lt_cv_prog_compiler_c_o+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 lt_cv_prog_compiler_c_o=no
9706 $RM -r conftest 2>/dev/null
9707 mkdir conftest
9708 cd conftest
9709 mkdir out
9710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9711
9712 lt_compiler_flag="-o out/conftest2.$ac_objext"
9713 # Insert the option either (1) after the last *FLAGS variable, or
9714 # (2) before a word containing "conftest.", or (3) at the end.
9715 # Note that $ac_compile itself does not contain backslashes and begins
9716 # with a dollar sign (not a hyphen), so the echo should work correctly.
9717 lt_compile=`echo "$ac_compile" | $SED \
9718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9720 -e 's:$: $lt_compiler_flag:'`
9721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9722 (eval "$lt_compile" 2>out/conftest.err)
9723 ac_status=$?
9724 cat out/conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9727 then
9728 # The compiler can only warn and ignore the option if not recognized
9729 # So say no if there are warnings
9730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9731 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9732 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9733 lt_cv_prog_compiler_c_o=yes
9734 fi
9735 fi
9736 chmod u+w . 2>&5
9737 $RM conftest*
9738 # SGI C++ compiler will create directory out/ii_files/ for
9739 # template instantiation
9740 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9741 $RM out/* && rmdir out
9742 cd ..
9743 $RM -r conftest
9744 $RM conftest*
9745
9746 fi
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9748 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9749
9750
9751
9752
9753
9754
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9756 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9757 if ${lt_cv_prog_compiler_c_o+:} false; then :
9758 $as_echo_n "(cached) " >&6
9759 else
9760 lt_cv_prog_compiler_c_o=no
9761 $RM -r conftest 2>/dev/null
9762 mkdir conftest
9763 cd conftest
9764 mkdir out
9765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766
9767 lt_compiler_flag="-o out/conftest2.$ac_objext"
9768 # Insert the option either (1) after the last *FLAGS variable, or
9769 # (2) before a word containing "conftest.", or (3) at the end.
9770 # Note that $ac_compile itself does not contain backslashes and begins
9771 # with a dollar sign (not a hyphen), so the echo should work correctly.
9772 lt_compile=`echo "$ac_compile" | $SED \
9773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9775 -e 's:$: $lt_compiler_flag:'`
9776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9777 (eval "$lt_compile" 2>out/conftest.err)
9778 ac_status=$?
9779 cat out/conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9782 then
9783 # The compiler can only warn and ignore the option if not recognized
9784 # So say no if there are warnings
9785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9786 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9787 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9788 lt_cv_prog_compiler_c_o=yes
9789 fi
9790 fi
9791 chmod u+w . 2>&5
9792 $RM conftest*
9793 # SGI C++ compiler will create directory out/ii_files/ for
9794 # template instantiation
9795 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9796 $RM out/* && rmdir out
9797 cd ..
9798 $RM -r conftest
9799 $RM conftest*
9800
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9803 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9804
9805
9806
9807
9808 hard_links="nottested"
9809 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9810 # do not overwrite the value of need_locks provided by the user
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9812 $as_echo_n "checking if we can lock with hard links... " >&6; }
9813 hard_links=yes
9814 $RM conftest*
9815 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9816 touch conftest.a
9817 ln conftest.a conftest.b 2>&5 || hard_links=no
9818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9820 $as_echo "$hard_links" >&6; }
9821 if test "$hard_links" = no; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9823 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9824 need_locks=warn
9825 fi
9826 else
9827 need_locks=no
9828 fi
9829
9830
9831
9832
9833
9834
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9836 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9837
9838 runpath_var=
9839 allow_undefined_flag=
9840 always_export_symbols=no
9841 archive_cmds=
9842 archive_expsym_cmds=
9843 compiler_needs_object=no
9844 enable_shared_with_static_runtimes=no
9845 export_dynamic_flag_spec=
9846 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9847 hardcode_automatic=no
9848 hardcode_direct=no
9849 hardcode_direct_absolute=no
9850 hardcode_libdir_flag_spec=
9851 hardcode_libdir_separator=
9852 hardcode_minus_L=no
9853 hardcode_shlibpath_var=unsupported
9854 inherit_rpath=no
9855 link_all_deplibs=unknown
9856 module_cmds=
9857 module_expsym_cmds=
9858 old_archive_from_new_cmds=
9859 old_archive_from_expsyms_cmds=
9860 thread_safe_flag_spec=
9861 whole_archive_flag_spec=
9862 # include_expsyms should be a list of space-separated symbols to be *always*
9863 # included in the symbol list
9864 include_expsyms=
9865 # exclude_expsyms can be an extended regexp of symbols to exclude
9866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9868 # as well as any symbol that contains `d'.
9869 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9871 # platforms (ab)use it in PIC code, but their linkers get confused if
9872 # the symbol is explicitly referenced. Since portable code cannot
9873 # rely on this symbol name, it's probably fine to never include it in
9874 # preloaded symbol tables.
9875 # Exclude shared library initialization/finalization symbols.
9876 extract_expsyms_cmds=
9877
9878 case $host_os in
9879 cygwin* | mingw* | pw32* | cegcc*)
9880 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9881 # When not using gcc, we currently assume that we are using
9882 # Microsoft Visual C++.
9883 if test "$GCC" != yes; then
9884 with_gnu_ld=no
9885 fi
9886 ;;
9887 interix*)
9888 # we just hope/assume this is gcc and not c89 (= MSVC++)
9889 with_gnu_ld=yes
9890 ;;
9891 openbsd*)
9892 with_gnu_ld=no
9893 ;;
9894 esac
9895
9896 ld_shlibs=yes
9897
9898 # On some targets, GNU ld is compatible enough with the native linker
9899 # that we're better off using the native interface for both.
9900 lt_use_gnu_ld_interface=no
9901 if test "$with_gnu_ld" = yes; then
9902 case $host_os in
9903 aix*)
9904 # The AIX port of GNU ld has always aspired to compatibility
9905 # with the native linker. However, as the warning in the GNU ld
9906 # block says, versions before 2.19.5* couldn't really create working
9907 # shared libraries, regardless of the interface used.
9908 case `$LD -v 2>&1` in
9909 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9910 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9911 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9912 *)
9913 lt_use_gnu_ld_interface=yes
9914 ;;
9915 esac
9916 ;;
9917 *)
9918 lt_use_gnu_ld_interface=yes
9919 ;;
9920 esac
9921 fi
9922
9923 if test "$lt_use_gnu_ld_interface" = yes; then
9924 # If archive_cmds runs LD, not CC, wlarc should be empty
9925 wlarc='${wl}'
9926
9927 # Set some defaults for GNU ld with shared library support. These
9928 # are reset later if shared libraries are not supported. Putting them
9929 # here allows them to be overridden if necessary.
9930 runpath_var=LD_RUN_PATH
9931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9932 export_dynamic_flag_spec='${wl}--export-dynamic'
9933 # ancient GNU ld didn't support --whole-archive et. al.
9934 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9935 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9936 else
9937 whole_archive_flag_spec=
9938 fi
9939 supports_anon_versioning=no
9940 case `$LD -v 2>&1` in
9941 *GNU\ gold*) supports_anon_versioning=yes ;;
9942 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9943 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9944 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9945 *\ 2.11.*) ;; # other 2.11 versions
9946 *) supports_anon_versioning=yes ;;
9947 esac
9948
9949 # See if GNU ld supports shared libraries.
9950 case $host_os in
9951 aix[3-9]*)
9952 # On AIX/PPC, the GNU linker is very broken
9953 if test "$host_cpu" != ia64; then
9954 ld_shlibs=no
9955 cat <<_LT_EOF 1>&2
9956
9957 *** Warning: the GNU linker, at least up to release 2.19, is reported
9958 *** to be unable to reliably create shared libraries on AIX.
9959 *** Therefore, libtool is disabling shared libraries support. If you
9960 *** really care for shared libraries, you may want to install binutils
9961 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9962 *** You will then need to restart the configuration process.
9963
9964 _LT_EOF
9965 fi
9966 ;;
9967
9968 amigaos*)
9969 case $host_cpu in
9970 powerpc)
9971 # see comment about AmigaOS4 .so support
9972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9973 archive_expsym_cmds=''
9974 ;;
9975 m68k)
9976 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)'
9977 hardcode_libdir_flag_spec='-L$libdir'
9978 hardcode_minus_L=yes
9979 ;;
9980 esac
9981 ;;
9982
9983 beos*)
9984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9985 allow_undefined_flag=unsupported
9986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9987 # support --undefined. This deserves some investigation. FIXME
9988 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9989 else
9990 ld_shlibs=no
9991 fi
9992 ;;
9993
9994 cygwin* | mingw* | pw32* | cegcc*)
9995 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9996 # as there is no search path for DLLs.
9997 hardcode_libdir_flag_spec='-L$libdir'
9998 export_dynamic_flag_spec='${wl}--export-all-symbols'
9999 allow_undefined_flag=unsupported
10000 always_export_symbols=no
10001 enable_shared_with_static_runtimes=yes
10002 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'
10003 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10004
10005 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10007 # If the export-symbols file already is a .def file (1st line
10008 # is EXPORTS), use it as is; otherwise, prepend...
10009 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10010 cp $export_symbols $output_objdir/$soname.def;
10011 else
10012 echo EXPORTS > $output_objdir/$soname.def;
10013 cat $export_symbols >> $output_objdir/$soname.def;
10014 fi~
10015 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10016 else
10017 ld_shlibs=no
10018 fi
10019 ;;
10020
10021 haiku*)
10022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10023 link_all_deplibs=yes
10024 ;;
10025
10026 interix[3-9]*)
10027 hardcode_direct=no
10028 hardcode_shlibpath_var=no
10029 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10030 export_dynamic_flag_spec='${wl}-E'
10031 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10032 # Instead, shared libraries are loaded at an image base (0x10000000 by
10033 # default) and relocated if they conflict, which is a slow very memory
10034 # consuming and fragmenting process. To avoid this, we pick a random,
10035 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10036 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10038 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'
10039 ;;
10040
10041 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10042 tmp_diet=no
10043 if test "$host_os" = linux-dietlibc; then
10044 case $cc_basename in
10045 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10046 esac
10047 fi
10048 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10049 && test "$tmp_diet" = no
10050 then
10051 tmp_addflag=' $pic_flag'
10052 tmp_sharedflag='-shared'
10053 case $cc_basename,$host_cpu in
10054 pgcc*) # Portland Group C compiler
10055 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'
10056 tmp_addflag=' $pic_flag'
10057 ;;
10058 pgf77* | pgf90* | pgf95* | pgfortran*)
10059 # Portland Group f77 and f90 compilers
10060 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'
10061 tmp_addflag=' $pic_flag -Mnomain' ;;
10062 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10063 tmp_addflag=' -i_dynamic' ;;
10064 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10065 tmp_addflag=' -i_dynamic -nofor_main' ;;
10066 ifc* | ifort*) # Intel Fortran compiler
10067 tmp_addflag=' -nofor_main' ;;
10068 lf95*) # Lahey Fortran 8.1
10069 whole_archive_flag_spec=
10070 tmp_sharedflag='--shared' ;;
10071 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10072 tmp_sharedflag='-qmkshrobj'
10073 tmp_addflag= ;;
10074 nvcc*) # Cuda Compiler Driver 2.2
10075 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'
10076 compiler_needs_object=yes
10077 ;;
10078 esac
10079 case `$CC -V 2>&1 | sed 5q` in
10080 *Sun\ C*) # Sun C 5.9
10081 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'
10082 compiler_needs_object=yes
10083 tmp_sharedflag='-G' ;;
10084 *Sun\ F*) # Sun Fortran 8.3
10085 tmp_sharedflag='-G' ;;
10086 esac
10087 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10088
10089 if test "x$supports_anon_versioning" = xyes; then
10090 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10092 echo "local: *; };" >> $output_objdir/$libname.ver~
10093 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10094 fi
10095
10096 case $cc_basename in
10097 xlf* | bgf* | bgxlf* | mpixlf*)
10098 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10099 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10101 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10102 if test "x$supports_anon_versioning" = xyes; then
10103 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10105 echo "local: *; };" >> $output_objdir/$libname.ver~
10106 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10107 fi
10108 ;;
10109 esac
10110 else
10111 ld_shlibs=no
10112 fi
10113 ;;
10114
10115 netbsd*)
10116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10117 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10118 wlarc=
10119 else
10120 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10122 fi
10123 ;;
10124
10125 solaris*)
10126 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10127 ld_shlibs=no
10128 cat <<_LT_EOF 1>&2
10129
10130 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10131 *** create shared libraries on Solaris systems. Therefore, libtool
10132 *** is disabling shared libraries support. We urge you to upgrade GNU
10133 *** binutils to release 2.9.1 or newer. Another option is to modify
10134 *** your PATH or compiler configuration so that the native linker is
10135 *** used, and then restart.
10136
10137 _LT_EOF
10138 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10139 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10141 else
10142 ld_shlibs=no
10143 fi
10144 ;;
10145
10146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10147 case `$LD -v 2>&1` in
10148 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10149 ld_shlibs=no
10150 cat <<_LT_EOF 1>&2
10151
10152 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10153 *** reliably create shared libraries on SCO systems. Therefore, libtool
10154 *** is disabling shared libraries support. We urge you to upgrade GNU
10155 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10156 *** your PATH or compiler configuration so that the native linker is
10157 *** used, and then restart.
10158
10159 _LT_EOF
10160 ;;
10161 *)
10162 # For security reasons, it is highly recommended that you always
10163 # use absolute paths for naming shared libraries, and exclude the
10164 # DT_RUNPATH tag from executables and libraries. But doing so
10165 # requires that you compile everything twice, which is a pain.
10166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10169 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10170 else
10171 ld_shlibs=no
10172 fi
10173 ;;
10174 esac
10175 ;;
10176
10177 sunos4*)
10178 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10179 wlarc=
10180 hardcode_direct=yes
10181 hardcode_shlibpath_var=no
10182 ;;
10183
10184 *)
10185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10186 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10187 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10188 else
10189 ld_shlibs=no
10190 fi
10191 ;;
10192 esac
10193
10194 if test "$ld_shlibs" = no; then
10195 runpath_var=
10196 hardcode_libdir_flag_spec=
10197 export_dynamic_flag_spec=
10198 whole_archive_flag_spec=
10199 fi
10200 else
10201 # PORTME fill in a description of your system's linker (not GNU ld)
10202 case $host_os in
10203 aix3*)
10204 allow_undefined_flag=unsupported
10205 always_export_symbols=yes
10206 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'
10207 # Note: this linker hardcodes the directories in LIBPATH if there
10208 # are no directories specified by -L.
10209 hardcode_minus_L=yes
10210 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10211 # Neither direct hardcoding nor static linking is supported with a
10212 # broken collect2.
10213 hardcode_direct=unsupported
10214 fi
10215 ;;
10216
10217 aix[4-9]*)
10218 if test "$host_cpu" = ia64; then
10219 # On IA64, the linker does run time linking by default, so we don't
10220 # have to do anything special.
10221 aix_use_runtimelinking=no
10222 exp_sym_flag='-Bexport'
10223 no_entry_flag=""
10224 else
10225 # If we're using GNU nm, then we don't want the "-C" option.
10226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10227 # Also, AIX nm treats weak defined symbols like other global
10228 # defined symbols, whereas GNU nm marks them as "W".
10229 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10230 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'
10231 else
10232 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'
10233 fi
10234 aix_use_runtimelinking=no
10235
10236 # Test if we are trying to use run time linking or normal
10237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10238 # need to do runtime linking.
10239 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10240 for ld_flag in $LDFLAGS; do
10241 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10242 aix_use_runtimelinking=yes
10243 break
10244 fi
10245 done
10246 ;;
10247 esac
10248
10249 exp_sym_flag='-bexport'
10250 no_entry_flag='-bnoentry'
10251 fi
10252
10253 # When large executables or shared objects are built, AIX ld can
10254 # have problems creating the table of contents. If linking a library
10255 # or program results in "error TOC overflow" add -mminimal-toc to
10256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10258
10259 archive_cmds=''
10260 hardcode_direct=yes
10261 hardcode_direct_absolute=yes
10262 hardcode_libdir_separator=':'
10263 link_all_deplibs=yes
10264 file_list_spec='${wl}-f,'
10265
10266 if test "$GCC" = yes; then
10267 case $host_os in aix4.[012]|aix4.[012].*)
10268 # We only want to do this on AIX 4.2 and lower, the check
10269 # below for broken collect2 doesn't work under 4.3+
10270 collect2name=`${CC} -print-prog-name=collect2`
10271 if test -f "$collect2name" &&
10272 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10273 then
10274 # We have reworked collect2
10275 :
10276 else
10277 # We have old collect2
10278 hardcode_direct=unsupported
10279 # It fails to find uninstalled libraries when the uninstalled
10280 # path is not listed in the libpath. Setting hardcode_minus_L
10281 # to unsupported forces relinking
10282 hardcode_minus_L=yes
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_libdir_separator=
10285 fi
10286 ;;
10287 esac
10288 shared_flag='-shared'
10289 if test "$aix_use_runtimelinking" = yes; then
10290 shared_flag="$shared_flag "'${wl}-G'
10291 fi
10292 else
10293 # not using gcc
10294 if test "$host_cpu" = ia64; then
10295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10296 # chokes on -Wl,-G. The following line is correct:
10297 shared_flag='-G'
10298 else
10299 if test "$aix_use_runtimelinking" = yes; then
10300 shared_flag='${wl}-G'
10301 else
10302 shared_flag='${wl}-bM:SRE'
10303 fi
10304 fi
10305 fi
10306
10307 export_dynamic_flag_spec='${wl}-bexpall'
10308 # It seems that -bexpall does not export symbols beginning with
10309 # underscore (_), so it is better to generate a list of symbols to export.
10310 always_export_symbols=yes
10311 if test "$aix_use_runtimelinking" = yes; then
10312 # Warning - without using the other runtime loading flags (-brtl),
10313 # -berok will link without error, but may produce a broken library.
10314 allow_undefined_flag='-berok'
10315 # Determine the default libpath from the value encoded in an
10316 # empty executable.
10317 if test "${lt_cv_aix_libpath+set}" = set; then
10318 aix_libpath=$lt_cv_aix_libpath
10319 else
10320 if ${lt_cv_aix_libpath_+:} false; then :
10321 $as_echo_n "(cached) " >&6
10322 else
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10325
10326 int
10327 main ()
10328 {
10329
10330 ;
10331 return 0;
10332 }
10333 _ACEOF
10334 if ac_fn_c_try_link "$LINENO"; then :
10335
10336 lt_aix_libpath_sed='
10337 /Import File Strings/,/^$/ {
10338 /^0/ {
10339 s/^0 *\([^ ]*\) *$/\1/
10340 p
10341 }
10342 }'
10343 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10344 # Check for a 64-bit object if we didn't find anything.
10345 if test -z "$lt_cv_aix_libpath_"; then
10346 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10347 fi
10348 fi
10349 rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10351 if test -z "$lt_cv_aix_libpath_"; then
10352 lt_cv_aix_libpath_="/usr/lib:/lib"
10353 fi
10354
10355 fi
10356
10357 aix_libpath=$lt_cv_aix_libpath_
10358 fi
10359
10360 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10361 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"
10362 else
10363 if test "$host_cpu" = ia64; then
10364 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10365 allow_undefined_flag="-z nodefs"
10366 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"
10367 else
10368 # Determine the default libpath from the value encoded in an
10369 # empty executable.
10370 if test "${lt_cv_aix_libpath+set}" = set; then
10371 aix_libpath=$lt_cv_aix_libpath
10372 else
10373 if ${lt_cv_aix_libpath_+:} false; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10378
10379 int
10380 main ()
10381 {
10382
10383 ;
10384 return 0;
10385 }
10386 _ACEOF
10387 if ac_fn_c_try_link "$LINENO"; then :
10388
10389 lt_aix_libpath_sed='
10390 /Import File Strings/,/^$/ {
10391 /^0/ {
10392 s/^0 *\([^ ]*\) *$/\1/
10393 p
10394 }
10395 }'
10396 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10397 # Check for a 64-bit object if we didn't find anything.
10398 if test -z "$lt_cv_aix_libpath_"; then
10399 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10400 fi
10401 fi
10402 rm -f core conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404 if test -z "$lt_cv_aix_libpath_"; then
10405 lt_cv_aix_libpath_="/usr/lib:/lib"
10406 fi
10407
10408 fi
10409
10410 aix_libpath=$lt_cv_aix_libpath_
10411 fi
10412
10413 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10414 # Warning - without using the other run time loading flags,
10415 # -berok will link without error, but may produce a broken library.
10416 no_undefined_flag=' ${wl}-bernotok'
10417 allow_undefined_flag=' ${wl}-berok'
10418 if test "$with_gnu_ld" = yes; then
10419 # We only use this code for GNU lds that support --whole-archive.
10420 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10421 else
10422 # Exported symbols can be pulled into shared objects from archives
10423 whole_archive_flag_spec='$convenience'
10424 fi
10425 archive_cmds_need_lc=yes
10426 # This is similar to how AIX traditionally builds its shared libraries.
10427 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'
10428 fi
10429 fi
10430 ;;
10431
10432 amigaos*)
10433 case $host_cpu in
10434 powerpc)
10435 # see comment about AmigaOS4 .so support
10436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10437 archive_expsym_cmds=''
10438 ;;
10439 m68k)
10440 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)'
10441 hardcode_libdir_flag_spec='-L$libdir'
10442 hardcode_minus_L=yes
10443 ;;
10444 esac
10445 ;;
10446
10447 bsdi[45]*)
10448 export_dynamic_flag_spec=-rdynamic
10449 ;;
10450
10451 cygwin* | mingw* | pw32* | cegcc*)
10452 # When not using gcc, we currently assume that we are using
10453 # Microsoft Visual C++.
10454 # hardcode_libdir_flag_spec is actually meaningless, as there is
10455 # no search path for DLLs.
10456 case $cc_basename in
10457 cl*)
10458 # Native MSVC
10459 hardcode_libdir_flag_spec=' '
10460 allow_undefined_flag=unsupported
10461 always_export_symbols=yes
10462 file_list_spec='@'
10463 # Tell ltmain to make .lib files, not .a files.
10464 libext=lib
10465 # Tell ltmain to make .dll files, not .so files.
10466 shrext_cmds=".dll"
10467 # FIXME: Setting linknames here is a bad hack.
10468 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10469 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10470 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10471 else
10472 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10473 fi~
10474 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10475 linknames='
10476 # The linker will not automatically build a static lib if we build a DLL.
10477 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10478 enable_shared_with_static_runtimes=yes
10479 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10480 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10481 # Don't use ranlib
10482 old_postinstall_cmds='chmod 644 $oldlib'
10483 postlink_cmds='lt_outputfile="@OUTPUT@"~
10484 lt_tool_outputfile="@TOOL_OUTPUT@"~
10485 case $lt_outputfile in
10486 *.exe|*.EXE) ;;
10487 *)
10488 lt_outputfile="$lt_outputfile.exe"
10489 lt_tool_outputfile="$lt_tool_outputfile.exe"
10490 ;;
10491 esac~
10492 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10493 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10494 $RM "$lt_outputfile.manifest";
10495 fi'
10496 ;;
10497 *)
10498 # Assume MSVC wrapper
10499 hardcode_libdir_flag_spec=' '
10500 allow_undefined_flag=unsupported
10501 # Tell ltmain to make .lib files, not .a files.
10502 libext=lib
10503 # Tell ltmain to make .dll files, not .so files.
10504 shrext_cmds=".dll"
10505 # FIXME: Setting linknames here is a bad hack.
10506 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10507 # The linker will automatically build a .lib file if we build a DLL.
10508 old_archive_from_new_cmds='true'
10509 # FIXME: Should let the user specify the lib program.
10510 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10511 enable_shared_with_static_runtimes=yes
10512 ;;
10513 esac
10514 ;;
10515
10516 darwin* | rhapsody*)
10517
10518
10519 archive_cmds_need_lc=no
10520 hardcode_direct=no
10521 hardcode_automatic=yes
10522 hardcode_shlibpath_var=unsupported
10523 if test "$lt_cv_ld_force_load" = "yes"; then
10524 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\"`'
10525
10526 else
10527 whole_archive_flag_spec=''
10528 fi
10529 link_all_deplibs=yes
10530 allow_undefined_flag="$_lt_dar_allow_undefined"
10531 case $cc_basename in
10532 ifort*) _lt_dar_can_shared=yes ;;
10533 *) _lt_dar_can_shared=$GCC ;;
10534 esac
10535 if test "$_lt_dar_can_shared" = "yes"; then
10536 output_verbose_link_cmd=func_echo_all
10537 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10538 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10539 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}"
10540 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}"
10541
10542 else
10543 ld_shlibs=no
10544 fi
10545
10546 ;;
10547
10548 dgux*)
10549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10550 hardcode_libdir_flag_spec='-L$libdir'
10551 hardcode_shlibpath_var=no
10552 ;;
10553
10554 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10555 # support. Future versions do this automatically, but an explicit c++rt0.o
10556 # does not break anything, and helps significantly (at the cost of a little
10557 # extra space).
10558 freebsd2.2*)
10559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10560 hardcode_libdir_flag_spec='-R$libdir'
10561 hardcode_direct=yes
10562 hardcode_shlibpath_var=no
10563 ;;
10564
10565 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10566 freebsd2.*)
10567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10568 hardcode_direct=yes
10569 hardcode_minus_L=yes
10570 hardcode_shlibpath_var=no
10571 ;;
10572
10573 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10574 freebsd* | dragonfly*)
10575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10576 hardcode_libdir_flag_spec='-R$libdir'
10577 hardcode_direct=yes
10578 hardcode_shlibpath_var=no
10579 ;;
10580
10581 hpux9*)
10582 if test "$GCC" = yes; then
10583 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'
10584 else
10585 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'
10586 fi
10587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10588 hardcode_libdir_separator=:
10589 hardcode_direct=yes
10590
10591 # hardcode_minus_L: Not really in the search PATH,
10592 # but as the default location of the library.
10593 hardcode_minus_L=yes
10594 export_dynamic_flag_spec='${wl}-E'
10595 ;;
10596
10597 hpux10*)
10598 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10599 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10600 else
10601 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10602 fi
10603 if test "$with_gnu_ld" = no; then
10604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10605 hardcode_libdir_separator=:
10606 hardcode_direct=yes
10607 hardcode_direct_absolute=yes
10608 export_dynamic_flag_spec='${wl}-E'
10609 # hardcode_minus_L: Not really in the search PATH,
10610 # but as the default location of the library.
10611 hardcode_minus_L=yes
10612 fi
10613 ;;
10614
10615 hpux11*)
10616 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10617 case $host_cpu in
10618 hppa*64*)
10619 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 ;;
10621 ia64*)
10622 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10623 ;;
10624 *)
10625 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10626 ;;
10627 esac
10628 else
10629 case $host_cpu in
10630 hppa*64*)
10631 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10632 ;;
10633 ia64*)
10634 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10635 ;;
10636 *)
10637
10638 # Older versions of the 11.00 compiler do not understand -b yet
10639 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10641 $as_echo_n "checking if $CC understands -b... " >&6; }
10642 if ${lt_cv_prog_compiler__b+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 lt_cv_prog_compiler__b=no
10646 save_LDFLAGS="$LDFLAGS"
10647 LDFLAGS="$LDFLAGS -b"
10648 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10649 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10650 # The linker can only warn and ignore the option if not recognized
10651 # So say no if there are warnings
10652 if test -s conftest.err; then
10653 # Append any errors to the config.log.
10654 cat conftest.err 1>&5
10655 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10657 if diff conftest.exp conftest.er2 >/dev/null; then
10658 lt_cv_prog_compiler__b=yes
10659 fi
10660 else
10661 lt_cv_prog_compiler__b=yes
10662 fi
10663 fi
10664 $RM -r conftest*
10665 LDFLAGS="$save_LDFLAGS"
10666
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10669 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10670
10671 if test x"$lt_cv_prog_compiler__b" = xyes; then
10672 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10673 else
10674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10675 fi
10676
10677 ;;
10678 esac
10679 fi
10680 if test "$with_gnu_ld" = no; then
10681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10682 hardcode_libdir_separator=:
10683
10684 case $host_cpu in
10685 hppa*64*|ia64*)
10686 hardcode_direct=no
10687 hardcode_shlibpath_var=no
10688 ;;
10689 *)
10690 hardcode_direct=yes
10691 hardcode_direct_absolute=yes
10692 export_dynamic_flag_spec='${wl}-E'
10693
10694 # hardcode_minus_L: Not really in the search PATH,
10695 # but as the default location of the library.
10696 hardcode_minus_L=yes
10697 ;;
10698 esac
10699 fi
10700 ;;
10701
10702 irix5* | irix6* | nonstopux*)
10703 if test "$GCC" = yes; then
10704 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'
10705 # Try to use the -exported_symbol ld option, if it does not
10706 # work, assume that -exports_file does not work either and
10707 # implicitly export all symbols.
10708 # This should be the same for all languages, so no per-tag cache variable.
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10710 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10711 if ${lt_cv_irix_exported_symbol+:} false; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 save_LDFLAGS="$LDFLAGS"
10715 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 int foo (void) { return 0; }
10719 _ACEOF
10720 if ac_fn_c_try_link "$LINENO"; then :
10721 lt_cv_irix_exported_symbol=yes
10722 else
10723 lt_cv_irix_exported_symbol=no
10724 fi
10725 rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 LDFLAGS="$save_LDFLAGS"
10728 fi
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10730 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10731 if test "$lt_cv_irix_exported_symbol" = yes; then
10732 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'
10733 fi
10734 else
10735 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'
10736 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'
10737 fi
10738 archive_cmds_need_lc='no'
10739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10740 hardcode_libdir_separator=:
10741 inherit_rpath=yes
10742 link_all_deplibs=yes
10743 ;;
10744
10745 netbsd*)
10746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10748 else
10749 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10750 fi
10751 hardcode_libdir_flag_spec='-R$libdir'
10752 hardcode_direct=yes
10753 hardcode_shlibpath_var=no
10754 ;;
10755
10756 newsos6)
10757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10758 hardcode_direct=yes
10759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10760 hardcode_libdir_separator=:
10761 hardcode_shlibpath_var=no
10762 ;;
10763
10764 *nto* | *qnx*)
10765 ;;
10766
10767 openbsd*)
10768 if test -f /usr/libexec/ld.so; then
10769 hardcode_direct=yes
10770 hardcode_shlibpath_var=no
10771 hardcode_direct_absolute=yes
10772 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10774 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10776 export_dynamic_flag_spec='${wl}-E'
10777 else
10778 case $host_os in
10779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10781 hardcode_libdir_flag_spec='-R$libdir'
10782 ;;
10783 *)
10784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10786 ;;
10787 esac
10788 fi
10789 else
10790 ld_shlibs=no
10791 fi
10792 ;;
10793
10794 os2*)
10795 hardcode_libdir_flag_spec='-L$libdir'
10796 hardcode_minus_L=yes
10797 allow_undefined_flag=unsupported
10798 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'
10799 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10800 ;;
10801
10802 osf3*)
10803 if test "$GCC" = yes; then
10804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10805 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'
10806 else
10807 allow_undefined_flag=' -expect_unresolved \*'
10808 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'
10809 fi
10810 archive_cmds_need_lc='no'
10811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10812 hardcode_libdir_separator=:
10813 ;;
10814
10815 osf4* | osf5*) # as osf3* with the addition of -msym flag
10816 if test "$GCC" = yes; then
10817 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10818 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'
10819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820 else
10821 allow_undefined_flag=' -expect_unresolved \*'
10822 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'
10823 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~
10824 $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'
10825
10826 # Both c and cxx compiler support -rpath directly
10827 hardcode_libdir_flag_spec='-rpath $libdir'
10828 fi
10829 archive_cmds_need_lc='no'
10830 hardcode_libdir_separator=:
10831 ;;
10832
10833 solaris*)
10834 no_undefined_flag=' -z defs'
10835 if test "$GCC" = yes; then
10836 wlarc='${wl}'
10837 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10839 $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'
10840 else
10841 case `$CC -V 2>&1` in
10842 *"Compilers 5.0"*)
10843 wlarc=''
10844 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10847 ;;
10848 *)
10849 wlarc='${wl}'
10850 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10851 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10852 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10853 ;;
10854 esac
10855 fi
10856 hardcode_libdir_flag_spec='-R$libdir'
10857 hardcode_shlibpath_var=no
10858 case $host_os in
10859 solaris2.[0-5] | solaris2.[0-5].*) ;;
10860 *)
10861 # The compiler driver will combine and reorder linker options,
10862 # but understands `-z linker_flag'. GCC discards it without `$wl',
10863 # but is careful enough not to reorder.
10864 # Supported since Solaris 2.6 (maybe 2.5.1?)
10865 if test "$GCC" = yes; then
10866 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10867 else
10868 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10869 fi
10870 ;;
10871 esac
10872 link_all_deplibs=yes
10873 ;;
10874
10875 sunos4*)
10876 if test "x$host_vendor" = xsequent; then
10877 # Use $CC to link under sequent, because it throws in some extra .o
10878 # files that make .init and .fini sections work.
10879 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10880 else
10881 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10882 fi
10883 hardcode_libdir_flag_spec='-L$libdir'
10884 hardcode_direct=yes
10885 hardcode_minus_L=yes
10886 hardcode_shlibpath_var=no
10887 ;;
10888
10889 sysv4)
10890 case $host_vendor in
10891 sni)
10892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10893 hardcode_direct=yes # is this really true???
10894 ;;
10895 siemens)
10896 ## LD is ld it makes a PLAMLIB
10897 ## CC just makes a GrossModule.
10898 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10899 reload_cmds='$CC -r -o $output$reload_objs'
10900 hardcode_direct=no
10901 ;;
10902 motorola)
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10905 ;;
10906 esac
10907 runpath_var='LD_RUN_PATH'
10908 hardcode_shlibpath_var=no
10909 ;;
10910
10911 sysv4.3*)
10912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10913 hardcode_shlibpath_var=no
10914 export_dynamic_flag_spec='-Bexport'
10915 ;;
10916
10917 sysv4*MP*)
10918 if test -d /usr/nec; then
10919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10920 hardcode_shlibpath_var=no
10921 runpath_var=LD_RUN_PATH
10922 hardcode_runpath_var=yes
10923 ld_shlibs=yes
10924 fi
10925 ;;
10926
10927 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10928 no_undefined_flag='${wl}-z,text'
10929 archive_cmds_need_lc=no
10930 hardcode_shlibpath_var=no
10931 runpath_var='LD_RUN_PATH'
10932
10933 if test "$GCC" = yes; then
10934 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10936 else
10937 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10938 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10939 fi
10940 ;;
10941
10942 sysv5* | sco3.2v5* | sco5v6*)
10943 # Note: We can NOT use -z defs as we might desire, because we do not
10944 # link with -lc, and that would cause any symbols used from libc to
10945 # always be unresolved, which means just about no library would
10946 # ever link correctly. If we're not using GNU ld we use -z text
10947 # though, which does catch some bad symbols but isn't as heavy-handed
10948 # as -z defs.
10949 no_undefined_flag='${wl}-z,text'
10950 allow_undefined_flag='${wl}-z,nodefs'
10951 archive_cmds_need_lc=no
10952 hardcode_shlibpath_var=no
10953 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10954 hardcode_libdir_separator=':'
10955 link_all_deplibs=yes
10956 export_dynamic_flag_spec='${wl}-Bexport'
10957 runpath_var='LD_RUN_PATH'
10958
10959 if test "$GCC" = yes; then
10960 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10962 else
10963 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10965 fi
10966 ;;
10967
10968 uts4*)
10969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970 hardcode_libdir_flag_spec='-L$libdir'
10971 hardcode_shlibpath_var=no
10972 ;;
10973
10974 *)
10975 ld_shlibs=no
10976 ;;
10977 esac
10978
10979 if test x$host_vendor = xsni; then
10980 case $host in
10981 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10982 export_dynamic_flag_spec='${wl}-Blargedynsym'
10983 ;;
10984 esac
10985 fi
10986 fi
10987
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10989 $as_echo "$ld_shlibs" >&6; }
10990 test "$ld_shlibs" = no && can_build_shared=no
10991
10992 with_gnu_ld=$with_gnu_ld
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008 #
11009 # Do we need to explicitly link libc?
11010 #
11011 case "x$archive_cmds_need_lc" in
11012 x|xyes)
11013 # Assume -lc should be added
11014 archive_cmds_need_lc=yes
11015
11016 if test "$enable_shared" = yes && test "$GCC" = yes; then
11017 case $archive_cmds in
11018 *'~'*)
11019 # FIXME: we may have to deal with multi-command sequences.
11020 ;;
11021 '$CC '*)
11022 # Test whether the compiler implicitly links with -lc since on some
11023 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11024 # to ld, don't add -lc before -lgcc.
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11026 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11027 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 $RM conftest*
11031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11032
11033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11034 (eval $ac_compile) 2>&5
11035 ac_status=$?
11036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11037 test $ac_status = 0; } 2>conftest.err; then
11038 soname=conftest
11039 lib=conftest
11040 libobjs=conftest.$ac_objext
11041 deplibs=
11042 wl=$lt_prog_compiler_wl
11043 pic_flag=$lt_prog_compiler_pic
11044 compiler_flags=-v
11045 linker_flags=-v
11046 verstring=
11047 output_objdir=.
11048 libname=conftest
11049 lt_save_allow_undefined_flag=$allow_undefined_flag
11050 allow_undefined_flag=
11051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11052 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11053 ac_status=$?
11054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11055 test $ac_status = 0; }
11056 then
11057 lt_cv_archive_cmds_need_lc=no
11058 else
11059 lt_cv_archive_cmds_need_lc=yes
11060 fi
11061 allow_undefined_flag=$lt_save_allow_undefined_flag
11062 else
11063 cat conftest.err 1>&5
11064 fi
11065 $RM conftest*
11066
11067 fi
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11069 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11070 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11071 ;;
11072 esac
11073 fi
11074 ;;
11075 esac
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11229 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11230
11231 if test "$GCC" = yes; then
11232 case $host_os in
11233 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11234 *) lt_awk_arg="/^libraries:/" ;;
11235 esac
11236 case $host_os in
11237 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11238 *) lt_sed_strip_eq="s,=/,/,g" ;;
11239 esac
11240 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11241 case $lt_search_path_spec in
11242 *\;*)
11243 # if the path contains ";" then we assume it to be the separator
11244 # otherwise default to the standard path separator (i.e. ":") - it is
11245 # assumed that no part of a normal pathname contains ";" but that should
11246 # okay in the real world where ";" in dirpaths is itself problematic.
11247 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11248 ;;
11249 *)
11250 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11251 ;;
11252 esac
11253 # Ok, now we have the path, separated by spaces, we can step through it
11254 # and add multilib dir if necessary.
11255 lt_tmp_lt_search_path_spec=
11256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11257 for lt_sys_path in $lt_search_path_spec; do
11258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11260 else
11261 test -d "$lt_sys_path" && \
11262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11263 fi
11264 done
11265 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11266 BEGIN {RS=" "; FS="/|\n";} {
11267 lt_foo="";
11268 lt_count=0;
11269 for (lt_i = NF; lt_i > 0; lt_i--) {
11270 if ($lt_i != "" && $lt_i != ".") {
11271 if ($lt_i == "..") {
11272 lt_count++;
11273 } else {
11274 if (lt_count == 0) {
11275 lt_foo="/" $lt_i lt_foo;
11276 } else {
11277 lt_count--;
11278 }
11279 }
11280 }
11281 }
11282 if (lt_foo != "") { lt_freq[lt_foo]++; }
11283 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11284 }'`
11285 # AWK program above erroneously prepends '/' to C:/dos/paths
11286 # for these hosts.
11287 case $host_os in
11288 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11289 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11290 esac
11291 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11292 else
11293 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11294 fi
11295 library_names_spec=
11296 libname_spec='lib$name'
11297 soname_spec=
11298 shrext_cmds=".so"
11299 postinstall_cmds=
11300 postuninstall_cmds=
11301 finish_cmds=
11302 finish_eval=
11303 shlibpath_var=
11304 shlibpath_overrides_runpath=unknown
11305 version_type=none
11306 dynamic_linker="$host_os ld.so"
11307 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11308 need_lib_prefix=unknown
11309 hardcode_into_libs=no
11310
11311 # when you set need_version to no, make sure it does not cause -set_version
11312 # flags to be left without arguments
11313 need_version=unknown
11314
11315 case $host_os in
11316 aix3*)
11317 version_type=linux # correct to gnu/linux during the next big refactor
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11319 shlibpath_var=LIBPATH
11320
11321 # AIX 3 has no versioning support, so we append a major version to the name.
11322 soname_spec='${libname}${release}${shared_ext}$major'
11323 ;;
11324
11325 aix[4-9]*)
11326 version_type=linux # correct to gnu/linux during the next big refactor
11327 need_lib_prefix=no
11328 need_version=no
11329 hardcode_into_libs=yes
11330 if test "$host_cpu" = ia64; then
11331 # AIX 5 supports IA64
11332 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 else
11335 # With GCC up to 2.95.x, collect2 would create an import file
11336 # for dependence libraries. The import file would start with
11337 # the line `#! .'. This would cause the generated library to
11338 # depend on `.', always an invalid library. This was fixed in
11339 # development snapshots of GCC prior to 3.0.
11340 case $host_os in
11341 aix4 | aix4.[01] | aix4.[01].*)
11342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11343 echo ' yes '
11344 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11345 :
11346 else
11347 can_build_shared=no
11348 fi
11349 ;;
11350 esac
11351 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11352 # soname into executable. Probably we can add versioning support to
11353 # collect2, so additional links can be useful in future.
11354 if test "$aix_use_runtimelinking" = yes; then
11355 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11356 # instead of lib<name>.a to let people know that these are not
11357 # typical AIX shared libraries.
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359 else
11360 # We preserve .a as extension for shared libraries through AIX4.2
11361 # and later when we are not doing run time linking.
11362 library_names_spec='${libname}${release}.a $libname.a'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 fi
11365 shlibpath_var=LIBPATH
11366 fi
11367 ;;
11368
11369 amigaos*)
11370 case $host_cpu in
11371 powerpc)
11372 # Since July 2007 AmigaOS4 officially supports .so libraries.
11373 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 ;;
11376 m68k)
11377 library_names_spec='$libname.ixlibrary $libname.a'
11378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11379 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'
11380 ;;
11381 esac
11382 ;;
11383
11384 beos*)
11385 library_names_spec='${libname}${shared_ext}'
11386 dynamic_linker="$host_os ld.so"
11387 shlibpath_var=LIBRARY_PATH
11388 ;;
11389
11390 bsdi[45]*)
11391 version_type=linux # correct to gnu/linux during the next big refactor
11392 need_version=no
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11396 shlibpath_var=LD_LIBRARY_PATH
11397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11399 # the default ld.so.conf also contains /usr/contrib/lib and
11400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11401 # libtool to hard-code these into programs
11402 ;;
11403
11404 cygwin* | mingw* | pw32* | cegcc*)
11405 version_type=windows
11406 shrext_cmds=".dll"
11407 need_version=no
11408 need_lib_prefix=no
11409
11410 case $GCC,$cc_basename in
11411 yes,*)
11412 # gcc
11413 library_names_spec='$libname.dll.a'
11414 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11415 postinstall_cmds='base_file=`basename \${file}`~
11416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11417 dldir=$destdir/`dirname \$dlpath`~
11418 test -d \$dldir || mkdir -p \$dldir~
11419 $install_prog $dir/$dlname \$dldir/$dlname~
11420 chmod a+x \$dldir/$dlname~
11421 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11422 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11423 fi'
11424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11425 dlpath=$dir/\$dldll~
11426 $RM \$dlpath'
11427 shlibpath_overrides_runpath=yes
11428
11429 case $host_os in
11430 cygwin*)
11431 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11432 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11433
11434 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11435 ;;
11436 mingw* | cegcc*)
11437 # MinGW DLLs use traditional 'lib' prefix
11438 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11439 ;;
11440 pw32*)
11441 # pw32 DLLs use 'pw' prefix rather than 'lib'
11442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11443 ;;
11444 esac
11445 dynamic_linker='Win32 ld.exe'
11446 ;;
11447
11448 *,cl*)
11449 # Native MSVC
11450 libname_spec='$name'
11451 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11452 library_names_spec='${libname}.dll.lib'
11453
11454 case $build_os in
11455 mingw*)
11456 sys_lib_search_path_spec=
11457 lt_save_ifs=$IFS
11458 IFS=';'
11459 for lt_path in $LIB
11460 do
11461 IFS=$lt_save_ifs
11462 # Let DOS variable expansion print the short 8.3 style file name.
11463 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11464 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11465 done
11466 IFS=$lt_save_ifs
11467 # Convert to MSYS style.
11468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11469 ;;
11470 cygwin*)
11471 # Convert to unix form, then to dos form, then back to unix form
11472 # but this time dos style (no spaces!) so that the unix form looks
11473 # like /cygdrive/c/PROGRA~1:/cygdr...
11474 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11475 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11476 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11477 ;;
11478 *)
11479 sys_lib_search_path_spec="$LIB"
11480 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11481 # It is most probably a Windows format PATH.
11482 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11483 else
11484 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11485 fi
11486 # FIXME: find the short name or the path components, as spaces are
11487 # common. (e.g. "Program Files" -> "PROGRA~1")
11488 ;;
11489 esac
11490
11491 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11492 postinstall_cmds='base_file=`basename \${file}`~
11493 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11494 dldir=$destdir/`dirname \$dlpath`~
11495 test -d \$dldir || mkdir -p \$dldir~
11496 $install_prog $dir/$dlname \$dldir/$dlname'
11497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11498 dlpath=$dir/\$dldll~
11499 $RM \$dlpath'
11500 shlibpath_overrides_runpath=yes
11501 dynamic_linker='Win32 link.exe'
11502 ;;
11503
11504 *)
11505 # Assume MSVC wrapper
11506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11507 dynamic_linker='Win32 ld.exe'
11508 ;;
11509 esac
11510 # FIXME: first we should search . and the directory the executable is in
11511 shlibpath_var=PATH
11512 ;;
11513
11514 darwin* | rhapsody*)
11515 dynamic_linker="$host_os dyld"
11516 version_type=darwin
11517 need_lib_prefix=no
11518 need_version=no
11519 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11520 soname_spec='${libname}${release}${major}$shared_ext'
11521 shlibpath_overrides_runpath=yes
11522 shlibpath_var=DYLD_LIBRARY_PATH
11523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11524
11525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11527 ;;
11528
11529 dgux*)
11530 version_type=linux # correct to gnu/linux during the next big refactor
11531 need_lib_prefix=no
11532 need_version=no
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 ;;
11537
11538 freebsd* | dragonfly*)
11539 # DragonFly does not have aout. When/if they implement a new
11540 # versioning mechanism, adjust this.
11541 if test -x /usr/bin/objformat; then
11542 objformat=`/usr/bin/objformat`
11543 else
11544 case $host_os in
11545 freebsd[23].*) objformat=aout ;;
11546 *) objformat=elf ;;
11547 esac
11548 fi
11549 version_type=freebsd-$objformat
11550 case $version_type in
11551 freebsd-elf*)
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11553 need_version=no
11554 need_lib_prefix=no
11555 ;;
11556 freebsd-*)
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11558 need_version=yes
11559 ;;
11560 esac
11561 shlibpath_var=LD_LIBRARY_PATH
11562 case $host_os in
11563 freebsd2.*)
11564 shlibpath_overrides_runpath=yes
11565 ;;
11566 freebsd3.[01]* | freebsdelf3.[01]*)
11567 shlibpath_overrides_runpath=yes
11568 hardcode_into_libs=yes
11569 ;;
11570 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11571 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11572 shlibpath_overrides_runpath=no
11573 hardcode_into_libs=yes
11574 ;;
11575 *) # from 4.6 on, and DragonFly
11576 shlibpath_overrides_runpath=yes
11577 hardcode_into_libs=yes
11578 ;;
11579 esac
11580 ;;
11581
11582 gnu*)
11583 version_type=linux # correct to gnu/linux during the next big refactor
11584 need_lib_prefix=no
11585 need_version=no
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 shlibpath_overrides_runpath=no
11590 hardcode_into_libs=yes
11591 ;;
11592
11593 haiku*)
11594 version_type=linux # correct to gnu/linux during the next big refactor
11595 need_lib_prefix=no
11596 need_version=no
11597 dynamic_linker="$host_os runtime_loader"
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 shlibpath_var=LIBRARY_PATH
11601 shlibpath_overrides_runpath=yes
11602 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11603 hardcode_into_libs=yes
11604 ;;
11605
11606 hpux9* | hpux10* | hpux11*)
11607 # Give a soname corresponding to the major version so that dld.sl refuses to
11608 # link against other versions.
11609 version_type=sunos
11610 need_lib_prefix=no
11611 need_version=no
11612 case $host_cpu in
11613 ia64*)
11614 shrext_cmds='.so'
11615 hardcode_into_libs=yes
11616 dynamic_linker="$host_os dld.so"
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 if test "X$HPUX_IA64_MODE" = X32; then
11622 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11623 else
11624 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11625 fi
11626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11627 ;;
11628 hppa*64*)
11629 shrext_cmds='.sl'
11630 hardcode_into_libs=yes
11631 dynamic_linker="$host_os dld.sl"
11632 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11638 ;;
11639 *)
11640 shrext_cmds='.sl'
11641 dynamic_linker="$host_os dld.sl"
11642 shlibpath_var=SHLIB_PATH
11643 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 ;;
11647 esac
11648 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11649 postinstall_cmds='chmod 555 $lib'
11650 # or fails outright, so override atomically:
11651 install_override_mode=555
11652 ;;
11653
11654 interix[3-9]*)
11655 version_type=linux # correct to gnu/linux during the next big refactor
11656 need_lib_prefix=no
11657 need_version=no
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11659 soname_spec='${libname}${release}${shared_ext}$major'
11660 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=no
11663 hardcode_into_libs=yes
11664 ;;
11665
11666 irix5* | irix6* | nonstopux*)
11667 case $host_os in
11668 nonstopux*) version_type=nonstopux ;;
11669 *)
11670 if test "$lt_cv_prog_gnu_ld" = yes; then
11671 version_type=linux # correct to gnu/linux during the next big refactor
11672 else
11673 version_type=irix
11674 fi ;;
11675 esac
11676 need_lib_prefix=no
11677 need_version=no
11678 soname_spec='${libname}${release}${shared_ext}$major'
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11680 case $host_os in
11681 irix5* | nonstopux*)
11682 libsuff= shlibsuff=
11683 ;;
11684 *)
11685 case $LD in # libtool.m4 will add one of these switches to LD
11686 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11687 libsuff= shlibsuff= libmagic=32-bit;;
11688 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11689 libsuff=32 shlibsuff=N32 libmagic=N32;;
11690 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11691 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11692 *) libsuff= shlibsuff= libmagic=never-match;;
11693 esac
11694 ;;
11695 esac
11696 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11697 shlibpath_overrides_runpath=no
11698 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11699 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11700 hardcode_into_libs=yes
11701 ;;
11702
11703 # No shared lib support for Linux oldld, aout, or coff.
11704 linux*oldld* | linux*aout* | linux*coff*)
11705 dynamic_linker=no
11706 ;;
11707
11708 # This must be glibc/ELF.
11709 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11710 version_type=linux # correct to gnu/linux during the next big refactor
11711 need_lib_prefix=no
11712 need_version=no
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11714 soname_spec='${libname}${release}${shared_ext}$major'
11715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=no
11718
11719 # Some binutils ld are patched to set DT_RUNPATH
11720 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 lt_cv_shlibpath_overrides_runpath=no
11724 save_LDFLAGS=$LDFLAGS
11725 save_libdir=$libdir
11726 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11727 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h. */
11730
11731 int
11732 main ()
11733 {
11734
11735 ;
11736 return 0;
11737 }
11738 _ACEOF
11739 if ac_fn_c_try_link "$LINENO"; then :
11740 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11741 lt_cv_shlibpath_overrides_runpath=yes
11742 fi
11743 fi
11744 rm -f core conftest.err conftest.$ac_objext \
11745 conftest$ac_exeext conftest.$ac_ext
11746 LDFLAGS=$save_LDFLAGS
11747 libdir=$save_libdir
11748
11749 fi
11750
11751 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11752
11753 # This implies no fast_install, which is unacceptable.
11754 # Some rework will be needed to allow for fast_install
11755 # before this can be enabled.
11756 hardcode_into_libs=yes
11757
11758 # Add ABI-specific directories to the system library path.
11759 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11760
11761 # Append ld.so.conf contents to the search path
11762 if test -f /etc/ld.so.conf; then
11763 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' ' '`
11764 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11765
11766 fi
11767
11768 # We used to test for /lib/ld.so.1 and disable shared libraries on
11769 # powerpc, because MkLinux only supported shared libraries with the
11770 # GNU dynamic linker. Since this was broken with cross compilers,
11771 # most powerpc-linux boxes support dynamic linking these days and
11772 # people can always --disable-shared, the test was removed, and we
11773 # assume the GNU/Linux dynamic linker is in use.
11774 dynamic_linker='GNU/Linux ld.so'
11775 ;;
11776
11777 netbsd*)
11778 version_type=sunos
11779 need_lib_prefix=no
11780 need_version=no
11781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11784 dynamic_linker='NetBSD (a.out) ld.so'
11785 else
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11787 soname_spec='${libname}${release}${shared_ext}$major'
11788 dynamic_linker='NetBSD ld.elf_so'
11789 fi
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=yes
11792 hardcode_into_libs=yes
11793 ;;
11794
11795 newsos6)
11796 version_type=linux # correct to gnu/linux during the next big refactor
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 shlibpath_overrides_runpath=yes
11800 ;;
11801
11802 *nto* | *qnx*)
11803 version_type=qnx
11804 need_lib_prefix=no
11805 need_version=no
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 shlibpath_overrides_runpath=no
11810 hardcode_into_libs=yes
11811 dynamic_linker='ldqnx.so'
11812 ;;
11813
11814 openbsd*)
11815 version_type=sunos
11816 sys_lib_dlsearch_path_spec="/usr/lib"
11817 need_lib_prefix=no
11818 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11819 case $host_os in
11820 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11821 *) need_version=no ;;
11822 esac
11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11825 shlibpath_var=LD_LIBRARY_PATH
11826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11827 case $host_os in
11828 openbsd2.[89] | openbsd2.[89].*)
11829 shlibpath_overrides_runpath=no
11830 ;;
11831 *)
11832 shlibpath_overrides_runpath=yes
11833 ;;
11834 esac
11835 else
11836 shlibpath_overrides_runpath=yes
11837 fi
11838 ;;
11839
11840 os2*)
11841 libname_spec='$name'
11842 shrext_cmds=".dll"
11843 need_lib_prefix=no
11844 library_names_spec='$libname${shared_ext} $libname.a'
11845 dynamic_linker='OS/2 ld.exe'
11846 shlibpath_var=LIBPATH
11847 ;;
11848
11849 osf3* | osf4* | osf5*)
11850 version_type=osf
11851 need_lib_prefix=no
11852 need_version=no
11853 soname_spec='${libname}${release}${shared_ext}$major'
11854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11855 shlibpath_var=LD_LIBRARY_PATH
11856 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11857 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11858 ;;
11859
11860 rdos*)
11861 dynamic_linker=no
11862 ;;
11863
11864 solaris*)
11865 version_type=linux # correct to gnu/linux during the next big refactor
11866 need_lib_prefix=no
11867 need_version=no
11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11869 soname_spec='${libname}${release}${shared_ext}$major'
11870 shlibpath_var=LD_LIBRARY_PATH
11871 shlibpath_overrides_runpath=yes
11872 hardcode_into_libs=yes
11873 # ldd complains unless libraries are executable
11874 postinstall_cmds='chmod +x $lib'
11875 ;;
11876
11877 sunos4*)
11878 version_type=sunos
11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11880 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 shlibpath_overrides_runpath=yes
11883 if test "$with_gnu_ld" = yes; then
11884 need_lib_prefix=no
11885 fi
11886 need_version=yes
11887 ;;
11888
11889 sysv4 | sysv4.3*)
11890 version_type=linux # correct to gnu/linux during the next big refactor
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 case $host_vendor in
11895 sni)
11896 shlibpath_overrides_runpath=no
11897 need_lib_prefix=no
11898 runpath_var=LD_RUN_PATH
11899 ;;
11900 siemens)
11901 need_lib_prefix=no
11902 ;;
11903 motorola)
11904 need_lib_prefix=no
11905 need_version=no
11906 shlibpath_overrides_runpath=no
11907 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11908 ;;
11909 esac
11910 ;;
11911
11912 sysv4*MP*)
11913 if test -d /usr/nec ;then
11914 version_type=linux # correct to gnu/linux during the next big refactor
11915 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11916 soname_spec='$libname${shared_ext}.$major'
11917 shlibpath_var=LD_LIBRARY_PATH
11918 fi
11919 ;;
11920
11921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11922 version_type=freebsd-elf
11923 need_lib_prefix=no
11924 need_version=no
11925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11926 soname_spec='${libname}${release}${shared_ext}$major'
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=yes
11929 hardcode_into_libs=yes
11930 if test "$with_gnu_ld" = yes; then
11931 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11932 else
11933 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11934 case $host_os in
11935 sco3.2v5*)
11936 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11937 ;;
11938 esac
11939 fi
11940 sys_lib_dlsearch_path_spec='/usr/lib'
11941 ;;
11942
11943 tpf*)
11944 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11945 version_type=linux # correct to gnu/linux during the next big refactor
11946 need_lib_prefix=no
11947 need_version=no
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 shlibpath_overrides_runpath=no
11951 hardcode_into_libs=yes
11952 ;;
11953
11954 uts4*)
11955 version_type=linux # correct to gnu/linux during the next big refactor
11956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11957 soname_spec='${libname}${release}${shared_ext}$major'
11958 shlibpath_var=LD_LIBRARY_PATH
11959 ;;
11960
11961 *)
11962 dynamic_linker=no
11963 ;;
11964 esac
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11966 $as_echo "$dynamic_linker" >&6; }
11967 test "$dynamic_linker" = no && can_build_shared=no
11968
11969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11970 if test "$GCC" = yes; then
11971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11972 fi
11973
11974 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11975 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11976 fi
11977 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11978 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11979 fi
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12073 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12074 hardcode_action=
12075 if test -n "$hardcode_libdir_flag_spec" ||
12076 test -n "$runpath_var" ||
12077 test "X$hardcode_automatic" = "Xyes" ; then
12078
12079 # We can hardcode non-existent directories.
12080 if test "$hardcode_direct" != no &&
12081 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12082 # have to relink, otherwise we might link with an installed library
12083 # when we should be linking with a yet-to-be-installed one
12084 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12085 test "$hardcode_minus_L" != no; then
12086 # Linking always hardcodes the temporary library directory.
12087 hardcode_action=relink
12088 else
12089 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12090 hardcode_action=immediate
12091 fi
12092 else
12093 # We cannot hardcode anything, or else we can only hardcode existing
12094 # directories.
12095 hardcode_action=unsupported
12096 fi
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12098 $as_echo "$hardcode_action" >&6; }
12099
12100 if test "$hardcode_action" = relink ||
12101 test "$inherit_rpath" = yes; then
12102 # Fast installation is not supported
12103 enable_fast_install=no
12104 elif test "$shlibpath_overrides_runpath" = yes ||
12105 test "$enable_shared" = no; then
12106 # Fast installation is not necessary
12107 enable_fast_install=needless
12108 fi
12109
12110
12111
12112
12113
12114
12115 if test "x$enable_dlopen" != xyes; then
12116 enable_dlopen=unknown
12117 enable_dlopen_self=unknown
12118 enable_dlopen_self_static=unknown
12119 else
12120 lt_cv_dlopen=no
12121 lt_cv_dlopen_libs=
12122
12123 case $host_os in
12124 beos*)
12125 lt_cv_dlopen="load_add_on"
12126 lt_cv_dlopen_libs=
12127 lt_cv_dlopen_self=yes
12128 ;;
12129
12130 mingw* | pw32* | cegcc*)
12131 lt_cv_dlopen="LoadLibrary"
12132 lt_cv_dlopen_libs=
12133 ;;
12134
12135 cygwin*)
12136 lt_cv_dlopen="dlopen"
12137 lt_cv_dlopen_libs=
12138 ;;
12139
12140 darwin*)
12141 # if libdl is installed we need to link against it
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12143 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12144 if ${ac_cv_lib_dl_dlopen+:} false; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 ac_check_lib_save_LIBS=$LIBS
12148 LIBS="-ldl $LIBS"
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12151
12152 /* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 char dlopen ();
12159 int
12160 main ()
12161 {
12162 return dlopen ();
12163 ;
12164 return 0;
12165 }
12166 _ACEOF
12167 if ac_fn_c_try_link "$LINENO"; then :
12168 ac_cv_lib_dl_dlopen=yes
12169 else
12170 ac_cv_lib_dl_dlopen=no
12171 fi
12172 rm -f core conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext conftest.$ac_ext
12174 LIBS=$ac_check_lib_save_LIBS
12175 fi
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12177 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12178 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12179 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12180 else
12181
12182 lt_cv_dlopen="dyld"
12183 lt_cv_dlopen_libs=
12184 lt_cv_dlopen_self=yes
12185
12186 fi
12187
12188 ;;
12189
12190 *)
12191 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12192 if test "x$ac_cv_func_shl_load" = xyes; then :
12193 lt_cv_dlopen="shl_load"
12194 else
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12196 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12197 if ${ac_cv_lib_dld_shl_load+:} false; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-ldld $LIBS"
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204
12205 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12208 #ifdef __cplusplus
12209 extern "C"
12210 #endif
12211 char shl_load ();
12212 int
12213 main ()
12214 {
12215 return shl_load ();
12216 ;
12217 return 0;
12218 }
12219 _ACEOF
12220 if ac_fn_c_try_link "$LINENO"; then :
12221 ac_cv_lib_dld_shl_load=yes
12222 else
12223 ac_cv_lib_dld_shl_load=no
12224 fi
12225 rm -f core conftest.err conftest.$ac_objext \
12226 conftest$ac_exeext conftest.$ac_ext
12227 LIBS=$ac_check_lib_save_LIBS
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12230 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12231 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12232 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12233 else
12234 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12235 if test "x$ac_cv_func_dlopen" = xyes; then :
12236 lt_cv_dlopen="dlopen"
12237 else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12239 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12240 if ${ac_cv_lib_dl_dlopen+:} false; then :
12241 $as_echo_n "(cached) " >&6
12242 else
12243 ac_check_lib_save_LIBS=$LIBS
12244 LIBS="-ldl $LIBS"
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12251 #ifdef __cplusplus
12252 extern "C"
12253 #endif
12254 char dlopen ();
12255 int
12256 main ()
12257 {
12258 return dlopen ();
12259 ;
12260 return 0;
12261 }
12262 _ACEOF
12263 if ac_fn_c_try_link "$LINENO"; then :
12264 ac_cv_lib_dl_dlopen=yes
12265 else
12266 ac_cv_lib_dl_dlopen=no
12267 fi
12268 rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
12270 LIBS=$ac_check_lib_save_LIBS
12271 fi
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12273 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12274 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12278 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12279 if ${ac_cv_lib_svld_dlopen+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 ac_check_lib_save_LIBS=$LIBS
12283 LIBS="-lsvld $LIBS"
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12286
12287 /* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12290 #ifdef __cplusplus
12291 extern "C"
12292 #endif
12293 char dlopen ();
12294 int
12295 main ()
12296 {
12297 return dlopen ();
12298 ;
12299 return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"; then :
12303 ac_cv_lib_svld_dlopen=yes
12304 else
12305 ac_cv_lib_svld_dlopen=no
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LIBS=$ac_check_lib_save_LIBS
12310 fi
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12312 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12313 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12315 else
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12317 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12318 if ${ac_cv_lib_dld_dld_link+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 ac_check_lib_save_LIBS=$LIBS
12322 LIBS="-ldld $LIBS"
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325
12326 /* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply. */
12329 #ifdef __cplusplus
12330 extern "C"
12331 #endif
12332 char dld_link ();
12333 int
12334 main ()
12335 {
12336 return dld_link ();
12337 ;
12338 return 0;
12339 }
12340 _ACEOF
12341 if ac_fn_c_try_link "$LINENO"; then :
12342 ac_cv_lib_dld_dld_link=yes
12343 else
12344 ac_cv_lib_dld_dld_link=no
12345 fi
12346 rm -f core conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12349 fi
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12351 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12352 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12353 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12354 fi
12355
12356
12357 fi
12358
12359
12360 fi
12361
12362
12363 fi
12364
12365
12366 fi
12367
12368
12369 fi
12370
12371 ;;
12372 esac
12373
12374 if test "x$lt_cv_dlopen" != xno; then
12375 enable_dlopen=yes
12376 else
12377 enable_dlopen=no
12378 fi
12379
12380 case $lt_cv_dlopen in
12381 dlopen)
12382 save_CPPFLAGS="$CPPFLAGS"
12383 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12384
12385 save_LDFLAGS="$LDFLAGS"
12386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12387
12388 save_LIBS="$LIBS"
12389 LIBS="$lt_cv_dlopen_libs $LIBS"
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12392 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12393 if ${lt_cv_dlopen_self+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if test "$cross_compiling" = yes; then :
12397 lt_cv_dlopen_self=cross
12398 else
12399 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12400 lt_status=$lt_dlunknown
12401 cat > conftest.$ac_ext <<_LT_EOF
12402 #line $LINENO "configure"
12403 #include "confdefs.h"
12404
12405 #if HAVE_DLFCN_H
12406 #include <dlfcn.h>
12407 #endif
12408
12409 #include <stdio.h>
12410
12411 #ifdef RTLD_GLOBAL
12412 # define LT_DLGLOBAL RTLD_GLOBAL
12413 #else
12414 # ifdef DL_GLOBAL
12415 # define LT_DLGLOBAL DL_GLOBAL
12416 # else
12417 # define LT_DLGLOBAL 0
12418 # endif
12419 #endif
12420
12421 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12422 find out it does not work in some platform. */
12423 #ifndef LT_DLLAZY_OR_NOW
12424 # ifdef RTLD_LAZY
12425 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12426 # else
12427 # ifdef DL_LAZY
12428 # define LT_DLLAZY_OR_NOW DL_LAZY
12429 # else
12430 # ifdef RTLD_NOW
12431 # define LT_DLLAZY_OR_NOW RTLD_NOW
12432 # else
12433 # ifdef DL_NOW
12434 # define LT_DLLAZY_OR_NOW DL_NOW
12435 # else
12436 # define LT_DLLAZY_OR_NOW 0
12437 # endif
12438 # endif
12439 # endif
12440 # endif
12441 #endif
12442
12443 /* When -fvisbility=hidden is used, assume the code has been annotated
12444 correspondingly for the symbols needed. */
12445 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12446 int fnord () __attribute__((visibility("default")));
12447 #endif
12448
12449 int fnord () { return 42; }
12450 int main ()
12451 {
12452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12453 int status = $lt_dlunknown;
12454
12455 if (self)
12456 {
12457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12458 else
12459 {
12460 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12461 else puts (dlerror ());
12462 }
12463 /* dlclose (self); */
12464 }
12465 else
12466 puts (dlerror ());
12467
12468 return status;
12469 }
12470 _LT_EOF
12471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12472 (eval $ac_link) 2>&5
12473 ac_status=$?
12474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12475 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12476 (./conftest; exit; ) >&5 2>/dev/null
12477 lt_status=$?
12478 case x$lt_status in
12479 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12480 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12481 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12482 esac
12483 else :
12484 # compilation failed
12485 lt_cv_dlopen_self=no
12486 fi
12487 fi
12488 rm -fr conftest*
12489
12490
12491 fi
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12493 $as_echo "$lt_cv_dlopen_self" >&6; }
12494
12495 if test "x$lt_cv_dlopen_self" = xyes; then
12496 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12498 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12499 if ${lt_cv_dlopen_self_static+:} false; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 if test "$cross_compiling" = yes; then :
12503 lt_cv_dlopen_self_static=cross
12504 else
12505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12506 lt_status=$lt_dlunknown
12507 cat > conftest.$ac_ext <<_LT_EOF
12508 #line $LINENO "configure"
12509 #include "confdefs.h"
12510
12511 #if HAVE_DLFCN_H
12512 #include <dlfcn.h>
12513 #endif
12514
12515 #include <stdio.h>
12516
12517 #ifdef RTLD_GLOBAL
12518 # define LT_DLGLOBAL RTLD_GLOBAL
12519 #else
12520 # ifdef DL_GLOBAL
12521 # define LT_DLGLOBAL DL_GLOBAL
12522 # else
12523 # define LT_DLGLOBAL 0
12524 # endif
12525 #endif
12526
12527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12528 find out it does not work in some platform. */
12529 #ifndef LT_DLLAZY_OR_NOW
12530 # ifdef RTLD_LAZY
12531 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12532 # else
12533 # ifdef DL_LAZY
12534 # define LT_DLLAZY_OR_NOW DL_LAZY
12535 # else
12536 # ifdef RTLD_NOW
12537 # define LT_DLLAZY_OR_NOW RTLD_NOW
12538 # else
12539 # ifdef DL_NOW
12540 # define LT_DLLAZY_OR_NOW DL_NOW
12541 # else
12542 # define LT_DLLAZY_OR_NOW 0
12543 # endif
12544 # endif
12545 # endif
12546 # endif
12547 #endif
12548
12549 /* When -fvisbility=hidden is used, assume the code has been annotated
12550 correspondingly for the symbols needed. */
12551 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12552 int fnord () __attribute__((visibility("default")));
12553 #endif
12554
12555 int fnord () { return 42; }
12556 int main ()
12557 {
12558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12559 int status = $lt_dlunknown;
12560
12561 if (self)
12562 {
12563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12564 else
12565 {
12566 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12567 else puts (dlerror ());
12568 }
12569 /* dlclose (self); */
12570 }
12571 else
12572 puts (dlerror ());
12573
12574 return status;
12575 }
12576 _LT_EOF
12577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12578 (eval $ac_link) 2>&5
12579 ac_status=$?
12580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12581 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12582 (./conftest; exit; ) >&5 2>/dev/null
12583 lt_status=$?
12584 case x$lt_status in
12585 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12586 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12587 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12588 esac
12589 else :
12590 # compilation failed
12591 lt_cv_dlopen_self_static=no
12592 fi
12593 fi
12594 rm -fr conftest*
12595
12596
12597 fi
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12599 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12600 fi
12601
12602 CPPFLAGS="$save_CPPFLAGS"
12603 LDFLAGS="$save_LDFLAGS"
12604 LIBS="$save_LIBS"
12605 ;;
12606 esac
12607
12608 case $lt_cv_dlopen_self in
12609 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12610 *) enable_dlopen_self=unknown ;;
12611 esac
12612
12613 case $lt_cv_dlopen_self_static in
12614 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12615 *) enable_dlopen_self_static=unknown ;;
12616 esac
12617 fi
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635 striplib=
12636 old_striplib=
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12638 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12639 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12640 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12641 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12643 $as_echo "yes" >&6; }
12644 else
12645 # FIXME - insert some real tests, host_os isn't really good enough
12646 case $host_os in
12647 darwin*)
12648 if test -n "$STRIP" ; then
12649 striplib="$STRIP -x"
12650 old_striplib="$STRIP -S"
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12652 $as_echo "yes" >&6; }
12653 else
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12656 fi
12657 ;;
12658 *)
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660 $as_echo "no" >&6; }
12661 ;;
12662 esac
12663 fi
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676 # Report which library types will actually be built
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12678 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12680 $as_echo "$can_build_shared" >&6; }
12681
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12683 $as_echo_n "checking whether to build shared libraries... " >&6; }
12684 test "$can_build_shared" = "no" && enable_shared=no
12685
12686 # On AIX, shared libraries and static libraries use the same namespace, and
12687 # are all built from PIC.
12688 case $host_os in
12689 aix3*)
12690 test "$enable_shared" = yes && enable_static=no
12691 if test -n "$RANLIB"; then
12692 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12693 postinstall_cmds='$RANLIB $lib'
12694 fi
12695 ;;
12696
12697 aix[4-9]*)
12698 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12699 test "$enable_shared" = yes && enable_static=no
12700 fi
12701 ;;
12702 esac
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12704 $as_echo "$enable_shared" >&6; }
12705
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12707 $as_echo_n "checking whether to build static libraries... " >&6; }
12708 # Make sure either enable_shared or enable_static is yes.
12709 test "$enable_shared" = yes || enable_static=yes
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12711 $as_echo "$enable_static" >&6; }
12712
12713
12714
12715
12716 fi
12717 ac_ext=c
12718 ac_cpp='$CPP $CPPFLAGS'
12719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12722
12723 CC="$lt_save_CC"
12724
12725 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12726 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12727 (test "X$CXX" != "Xg++"))) ; then
12728 ac_ext=cpp
12729 ac_cpp='$CXXCPP $CPPFLAGS'
12730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12734 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12735 if test -z "$CXXCPP"; then
12736 if ${ac_cv_prog_CXXCPP+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 # Double quotes because CXXCPP needs to be expanded
12740 for CXXCPP in "$CXX -E" "/lib/cpp"
12741 do
12742 ac_preproc_ok=false
12743 for ac_cxx_preproc_warn_flag in '' yes
12744 do
12745 # Use a header file that comes with gcc, so configuring glibc
12746 # with a fresh cross-compiler works.
12747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12748 # <limits.h> exists even on freestanding compilers.
12749 # On the NeXT, cc -E runs the code through the compiler's parser,
12750 # not just through cpp. "Syntax error" is here to catch this case.
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753 #ifdef __STDC__
12754 # include <limits.h>
12755 #else
12756 # include <assert.h>
12757 #endif
12758 Syntax error
12759 _ACEOF
12760 if ac_fn_cxx_try_cpp "$LINENO"; then :
12761
12762 else
12763 # Broken: fails on valid input.
12764 continue
12765 fi
12766 rm -f conftest.err conftest.i conftest.$ac_ext
12767
12768 # OK, works on sane cases. Now check whether nonexistent headers
12769 # can be detected and how.
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772 #include <ac_nonexistent.h>
12773 _ACEOF
12774 if ac_fn_cxx_try_cpp "$LINENO"; then :
12775 # Broken: success on invalid input.
12776 continue
12777 else
12778 # Passes both tests.
12779 ac_preproc_ok=:
12780 break
12781 fi
12782 rm -f conftest.err conftest.i conftest.$ac_ext
12783
12784 done
12785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12786 rm -f conftest.i conftest.err conftest.$ac_ext
12787 if $ac_preproc_ok; then :
12788 break
12789 fi
12790
12791 done
12792 ac_cv_prog_CXXCPP=$CXXCPP
12793
12794 fi
12795 CXXCPP=$ac_cv_prog_CXXCPP
12796 else
12797 ac_cv_prog_CXXCPP=$CXXCPP
12798 fi
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12800 $as_echo "$CXXCPP" >&6; }
12801 ac_preproc_ok=false
12802 for ac_cxx_preproc_warn_flag in '' yes
12803 do
12804 # Use a header file that comes with gcc, so configuring glibc
12805 # with a fresh cross-compiler works.
12806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12807 # <limits.h> exists even on freestanding compilers.
12808 # On the NeXT, cc -E runs the code through the compiler's parser,
12809 # not just through cpp. "Syntax error" is here to catch this case.
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12812 #ifdef __STDC__
12813 # include <limits.h>
12814 #else
12815 # include <assert.h>
12816 #endif
12817 Syntax error
12818 _ACEOF
12819 if ac_fn_cxx_try_cpp "$LINENO"; then :
12820
12821 else
12822 # Broken: fails on valid input.
12823 continue
12824 fi
12825 rm -f conftest.err conftest.i conftest.$ac_ext
12826
12827 # OK, works on sane cases. Now check whether nonexistent headers
12828 # can be detected and how.
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831 #include <ac_nonexistent.h>
12832 _ACEOF
12833 if ac_fn_cxx_try_cpp "$LINENO"; then :
12834 # Broken: success on invalid input.
12835 continue
12836 else
12837 # Passes both tests.
12838 ac_preproc_ok=:
12839 break
12840 fi
12841 rm -f conftest.err conftest.i conftest.$ac_ext
12842
12843 done
12844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12845 rm -f conftest.i conftest.err conftest.$ac_ext
12846 if $ac_preproc_ok; then :
12847
12848 else
12849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12851 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12852 See \`config.log' for more details" "$LINENO" 5; }
12853 fi
12854
12855 ac_ext=c
12856 ac_cpp='$CPP $CPPFLAGS'
12857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12860
12861 else
12862 _lt_caught_CXX_error=yes
12863 fi
12864
12865 ac_ext=cpp
12866 ac_cpp='$CXXCPP $CPPFLAGS'
12867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12870
12871 archive_cmds_need_lc_CXX=no
12872 allow_undefined_flag_CXX=
12873 always_export_symbols_CXX=no
12874 archive_expsym_cmds_CXX=
12875 compiler_needs_object_CXX=no
12876 export_dynamic_flag_spec_CXX=
12877 hardcode_direct_CXX=no
12878 hardcode_direct_absolute_CXX=no
12879 hardcode_libdir_flag_spec_CXX=
12880 hardcode_libdir_separator_CXX=
12881 hardcode_minus_L_CXX=no
12882 hardcode_shlibpath_var_CXX=unsupported
12883 hardcode_automatic_CXX=no
12884 inherit_rpath_CXX=no
12885 module_cmds_CXX=
12886 module_expsym_cmds_CXX=
12887 link_all_deplibs_CXX=unknown
12888 old_archive_cmds_CXX=$old_archive_cmds
12889 reload_flag_CXX=$reload_flag
12890 reload_cmds_CXX=$reload_cmds
12891 no_undefined_flag_CXX=
12892 whole_archive_flag_spec_CXX=
12893 enable_shared_with_static_runtimes_CXX=no
12894
12895 # Source file extension for C++ test sources.
12896 ac_ext=cpp
12897
12898 # Object file extension for compiled C++ test sources.
12899 objext=o
12900 objext_CXX=$objext
12901
12902 # No sense in running all these tests if we already determined that
12903 # the CXX compiler isn't working. Some variables (like enable_shared)
12904 # are currently assumed to apply to all compilers on this platform,
12905 # and will be corrupted by setting them based on a non-working compiler.
12906 if test "$_lt_caught_CXX_error" != yes; then
12907 # Code to be used in simple compile tests
12908 lt_simple_compile_test_code="int some_variable = 0;"
12909
12910 # Code to be used in simple link tests
12911 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12912
12913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12914
12915
12916
12917
12918
12919
12920 # If no C compiler was specified, use CC.
12921 LTCC=${LTCC-"$CC"}
12922
12923 # If no C compiler flags were specified, use CFLAGS.
12924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12925
12926 # Allow CC to be a program name with arguments.
12927 compiler=$CC
12928
12929
12930 # save warnings/boilerplate of simple test code
12931 ac_outfile=conftest.$ac_objext
12932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12934 _lt_compiler_boilerplate=`cat conftest.err`
12935 $RM conftest*
12936
12937 ac_outfile=conftest.$ac_objext
12938 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12940 _lt_linker_boilerplate=`cat conftest.err`
12941 $RM -r conftest*
12942
12943
12944 # Allow CC to be a program name with arguments.
12945 lt_save_CC=$CC
12946 lt_save_CFLAGS=$CFLAGS
12947 lt_save_LD=$LD
12948 lt_save_GCC=$GCC
12949 GCC=$GXX
12950 lt_save_with_gnu_ld=$with_gnu_ld
12951 lt_save_path_LD=$lt_cv_path_LD
12952 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12953 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12954 else
12955 $as_unset lt_cv_prog_gnu_ld
12956 fi
12957 if test -n "${lt_cv_path_LDCXX+set}"; then
12958 lt_cv_path_LD=$lt_cv_path_LDCXX
12959 else
12960 $as_unset lt_cv_path_LD
12961 fi
12962 test -z "${LDCXX+set}" || LD=$LDCXX
12963 CC=${CXX-"c++"}
12964 CFLAGS=$CXXFLAGS
12965 compiler=$CC
12966 compiler_CXX=$CC
12967 for cc_temp in $compiler""; do
12968 case $cc_temp in
12969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12971 \-*) ;;
12972 *) break;;
12973 esac
12974 done
12975 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12976
12977
12978 if test -n "$compiler"; then
12979 # We don't want -fno-exception when compiling C++ code, so set the
12980 # no_builtin_flag separately
12981 if test "$GXX" = yes; then
12982 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12983 else
12984 lt_prog_compiler_no_builtin_flag_CXX=
12985 fi
12986
12987 if test "$GXX" = yes; then
12988 # Set up default GNU C++ configuration
12989
12990
12991
12992 # Check whether --with-gnu-ld was given.
12993 if test "${with_gnu_ld+set}" = set; then :
12994 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12995 else
12996 with_gnu_ld=no
12997 fi
12998
12999 ac_prog=ld
13000 if test "$GCC" = yes; then
13001 # Check if gcc -print-prog-name=ld gives a path.
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13003 $as_echo_n "checking for ld used by $CC... " >&6; }
13004 case $host in
13005 *-*-mingw*)
13006 # gcc leaves a trailing carriage return which upsets mingw
13007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13008 *)
13009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13010 esac
13011 case $ac_prog in
13012 # Accept absolute paths.
13013 [\\/]* | ?:[\\/]*)
13014 re_direlt='/[^/][^/]*/\.\./'
13015 # Canonicalize the pathname of ld
13016 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13017 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13018 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13019 done
13020 test -z "$LD" && LD="$ac_prog"
13021 ;;
13022 "")
13023 # If it fails, then pretend we aren't using GCC.
13024 ac_prog=ld
13025 ;;
13026 *)
13027 # If it is relative, then search for the first ld in PATH.
13028 with_gnu_ld=unknown
13029 ;;
13030 esac
13031 elif test "$with_gnu_ld" = yes; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13033 $as_echo_n "checking for GNU ld... " >&6; }
13034 else
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13036 $as_echo_n "checking for non-GNU ld... " >&6; }
13037 fi
13038 if ${lt_cv_path_LD+:} false; then :
13039 $as_echo_n "(cached) " >&6
13040 else
13041 if test -z "$LD"; then
13042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13043 for ac_dir in $PATH; do
13044 IFS="$lt_save_ifs"
13045 test -z "$ac_dir" && ac_dir=.
13046 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13047 lt_cv_path_LD="$ac_dir/$ac_prog"
13048 # Check to see if the program is GNU ld. I'd rather use --version,
13049 # but apparently some variants of GNU ld only accept -v.
13050 # Break only if it was the GNU/non-GNU ld that we prefer.
13051 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13052 *GNU* | *'with BFD'*)
13053 test "$with_gnu_ld" != no && break
13054 ;;
13055 *)
13056 test "$with_gnu_ld" != yes && break
13057 ;;
13058 esac
13059 fi
13060 done
13061 IFS="$lt_save_ifs"
13062 else
13063 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13064 fi
13065 fi
13066
13067 LD="$lt_cv_path_LD"
13068 if test -n "$LD"; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13070 $as_echo "$LD" >&6; }
13071 else
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073 $as_echo "no" >&6; }
13074 fi
13075 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13077 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13078 if ${lt_cv_prog_gnu_ld+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13082 case `$LD -v 2>&1 </dev/null` in
13083 *GNU* | *'with BFD'*)
13084 lt_cv_prog_gnu_ld=yes
13085 ;;
13086 *)
13087 lt_cv_prog_gnu_ld=no
13088 ;;
13089 esac
13090 fi
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13092 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13093 with_gnu_ld=$lt_cv_prog_gnu_ld
13094
13095
13096
13097
13098
13099
13100
13101 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13102 # archiving commands below assume that GNU ld is being used.
13103 if test "$with_gnu_ld" = yes; then
13104 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13105 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'
13106
13107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13108 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13109
13110 # If archive_cmds runs LD, not CC, wlarc should be empty
13111 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13112 # investigate it a little bit more. (MM)
13113 wlarc='${wl}'
13114
13115 # ancient GNU ld didn't support --whole-archive et. al.
13116 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13117 $GREP 'no-whole-archive' > /dev/null; then
13118 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13119 else
13120 whole_archive_flag_spec_CXX=
13121 fi
13122 else
13123 with_gnu_ld=no
13124 wlarc=
13125
13126 # A generic and very simple default shared library creation
13127 # command for GNU C++ for the case where it uses the native
13128 # linker, instead of GNU ld. If possible, this setting should
13129 # overridden to take advantage of the native linker features on
13130 # the platform it is being used on.
13131 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13132 fi
13133
13134 # Commands to make compiler produce verbose output that lists
13135 # what "hidden" libraries, object files and flags are used when
13136 # linking a shared library.
13137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13138
13139 else
13140 GXX=no
13141 with_gnu_ld=no
13142 wlarc=
13143 fi
13144
13145 # PORTME: fill in a description of your system's C++ link characteristics
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13147 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13148 ld_shlibs_CXX=yes
13149 case $host_os in
13150 aix3*)
13151 # FIXME: insert proper C++ library support
13152 ld_shlibs_CXX=no
13153 ;;
13154 aix[4-9]*)
13155 if test "$host_cpu" = ia64; then
13156 # On IA64, the linker does run time linking by default, so we don't
13157 # have to do anything special.
13158 aix_use_runtimelinking=no
13159 exp_sym_flag='-Bexport'
13160 no_entry_flag=""
13161 else
13162 aix_use_runtimelinking=no
13163
13164 # Test if we are trying to use run time linking or normal
13165 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13166 # need to do runtime linking.
13167 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13168 for ld_flag in $LDFLAGS; do
13169 case $ld_flag in
13170 *-brtl*)
13171 aix_use_runtimelinking=yes
13172 break
13173 ;;
13174 esac
13175 done
13176 ;;
13177 esac
13178
13179 exp_sym_flag='-bexport'
13180 no_entry_flag='-bnoentry'
13181 fi
13182
13183 # When large executables or shared objects are built, AIX ld can
13184 # have problems creating the table of contents. If linking a library
13185 # or program results in "error TOC overflow" add -mminimal-toc to
13186 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13187 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13188
13189 archive_cmds_CXX=''
13190 hardcode_direct_CXX=yes
13191 hardcode_direct_absolute_CXX=yes
13192 hardcode_libdir_separator_CXX=':'
13193 link_all_deplibs_CXX=yes
13194 file_list_spec_CXX='${wl}-f,'
13195
13196 if test "$GXX" = yes; then
13197 case $host_os in aix4.[012]|aix4.[012].*)
13198 # We only want to do this on AIX 4.2 and lower, the check
13199 # below for broken collect2 doesn't work under 4.3+
13200 collect2name=`${CC} -print-prog-name=collect2`
13201 if test -f "$collect2name" &&
13202 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13203 then
13204 # We have reworked collect2
13205 :
13206 else
13207 # We have old collect2
13208 hardcode_direct_CXX=unsupported
13209 # It fails to find uninstalled libraries when the uninstalled
13210 # path is not listed in the libpath. Setting hardcode_minus_L
13211 # to unsupported forces relinking
13212 hardcode_minus_L_CXX=yes
13213 hardcode_libdir_flag_spec_CXX='-L$libdir'
13214 hardcode_libdir_separator_CXX=
13215 fi
13216 esac
13217 shared_flag='-shared'
13218 if test "$aix_use_runtimelinking" = yes; then
13219 shared_flag="$shared_flag "'${wl}-G'
13220 fi
13221 else
13222 # not using gcc
13223 if test "$host_cpu" = ia64; then
13224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13225 # chokes on -Wl,-G. The following line is correct:
13226 shared_flag='-G'
13227 else
13228 if test "$aix_use_runtimelinking" = yes; then
13229 shared_flag='${wl}-G'
13230 else
13231 shared_flag='${wl}-bM:SRE'
13232 fi
13233 fi
13234 fi
13235
13236 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13237 # It seems that -bexpall does not export symbols beginning with
13238 # underscore (_), so it is better to generate a list of symbols to
13239 # export.
13240 always_export_symbols_CXX=yes
13241 if test "$aix_use_runtimelinking" = yes; then
13242 # Warning - without using the other runtime loading flags (-brtl),
13243 # -berok will link without error, but may produce a broken library.
13244 allow_undefined_flag_CXX='-berok'
13245 # Determine the default libpath from the value encoded in an empty
13246 # executable.
13247 if test "${lt_cv_aix_libpath+set}" = set; then
13248 aix_libpath=$lt_cv_aix_libpath
13249 else
13250 if ${lt_cv_aix_libpath__CXX+:} false; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13255
13256 int
13257 main ()
13258 {
13259
13260 ;
13261 return 0;
13262 }
13263 _ACEOF
13264 if ac_fn_cxx_try_link "$LINENO"; then :
13265
13266 lt_aix_libpath_sed='
13267 /Import File Strings/,/^$/ {
13268 /^0/ {
13269 s/^0 *\([^ ]*\) *$/\1/
13270 p
13271 }
13272 }'
13273 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13274 # Check for a 64-bit object if we didn't find anything.
13275 if test -z "$lt_cv_aix_libpath__CXX"; then
13276 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13277 fi
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext conftest.$ac_ext
13281 if test -z "$lt_cv_aix_libpath__CXX"; then
13282 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13283 fi
13284
13285 fi
13286
13287 aix_libpath=$lt_cv_aix_libpath__CXX
13288 fi
13289
13290 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13291
13292 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"
13293 else
13294 if test "$host_cpu" = ia64; then
13295 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13296 allow_undefined_flag_CXX="-z nodefs"
13297 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"
13298 else
13299 # Determine the default libpath from the value encoded in an
13300 # empty executable.
13301 if test "${lt_cv_aix_libpath+set}" = set; then
13302 aix_libpath=$lt_cv_aix_libpath
13303 else
13304 if ${lt_cv_aix_libpath__CXX+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309
13310 int
13311 main ()
13312 {
13313
13314 ;
13315 return 0;
13316 }
13317 _ACEOF
13318 if ac_fn_cxx_try_link "$LINENO"; then :
13319
13320 lt_aix_libpath_sed='
13321 /Import File Strings/,/^$/ {
13322 /^0/ {
13323 s/^0 *\([^ ]*\) *$/\1/
13324 p
13325 }
13326 }'
13327 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13328 # Check for a 64-bit object if we didn't find anything.
13329 if test -z "$lt_cv_aix_libpath__CXX"; then
13330 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13331 fi
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext \
13334 conftest$ac_exeext conftest.$ac_ext
13335 if test -z "$lt_cv_aix_libpath__CXX"; then
13336 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13337 fi
13338
13339 fi
13340
13341 aix_libpath=$lt_cv_aix_libpath__CXX
13342 fi
13343
13344 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13345 # Warning - without using the other run time loading flags,
13346 # -berok will link without error, but may produce a broken library.
13347 no_undefined_flag_CXX=' ${wl}-bernotok'
13348 allow_undefined_flag_CXX=' ${wl}-berok'
13349 if test "$with_gnu_ld" = yes; then
13350 # We only use this code for GNU lds that support --whole-archive.
13351 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13352 else
13353 # Exported symbols can be pulled into shared objects from archives
13354 whole_archive_flag_spec_CXX='$convenience'
13355 fi
13356 archive_cmds_need_lc_CXX=yes
13357 # This is similar to how AIX traditionally builds its shared
13358 # libraries.
13359 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'
13360 fi
13361 fi
13362 ;;
13363
13364 beos*)
13365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13366 allow_undefined_flag_CXX=unsupported
13367 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13368 # support --undefined. This deserves some investigation. FIXME
13369 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370 else
13371 ld_shlibs_CXX=no
13372 fi
13373 ;;
13374
13375 chorus*)
13376 case $cc_basename in
13377 *)
13378 # FIXME: insert proper C++ library support
13379 ld_shlibs_CXX=no
13380 ;;
13381 esac
13382 ;;
13383
13384 cygwin* | mingw* | pw32* | cegcc*)
13385 case $GXX,$cc_basename in
13386 ,cl* | no,cl*)
13387 # Native MSVC
13388 # hardcode_libdir_flag_spec is actually meaningless, as there is
13389 # no search path for DLLs.
13390 hardcode_libdir_flag_spec_CXX=' '
13391 allow_undefined_flag_CXX=unsupported
13392 always_export_symbols_CXX=yes
13393 file_list_spec_CXX='@'
13394 # Tell ltmain to make .lib files, not .a files.
13395 libext=lib
13396 # Tell ltmain to make .dll files, not .so files.
13397 shrext_cmds=".dll"
13398 # FIXME: Setting linknames here is a bad hack.
13399 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13400 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13401 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13402 else
13403 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13404 fi~
13405 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13406 linknames='
13407 # The linker will not automatically build a static lib if we build a DLL.
13408 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13409 enable_shared_with_static_runtimes_CXX=yes
13410 # Don't use ranlib
13411 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13412 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13413 lt_tool_outputfile="@TOOL_OUTPUT@"~
13414 case $lt_outputfile in
13415 *.exe|*.EXE) ;;
13416 *)
13417 lt_outputfile="$lt_outputfile.exe"
13418 lt_tool_outputfile="$lt_tool_outputfile.exe"
13419 ;;
13420 esac~
13421 func_to_tool_file "$lt_outputfile"~
13422 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13423 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13424 $RM "$lt_outputfile.manifest";
13425 fi'
13426 ;;
13427 *)
13428 # g++
13429 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13430 # as there is no search path for DLLs.
13431 hardcode_libdir_flag_spec_CXX='-L$libdir'
13432 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13433 allow_undefined_flag_CXX=unsupported
13434 always_export_symbols_CXX=no
13435 enable_shared_with_static_runtimes_CXX=yes
13436
13437 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13438 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'
13439 # If the export-symbols file already is a .def file (1st line
13440 # is EXPORTS), use it as is; otherwise, prepend...
13441 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13442 cp $export_symbols $output_objdir/$soname.def;
13443 else
13444 echo EXPORTS > $output_objdir/$soname.def;
13445 cat $export_symbols >> $output_objdir/$soname.def;
13446 fi~
13447 $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'
13448 else
13449 ld_shlibs_CXX=no
13450 fi
13451 ;;
13452 esac
13453 ;;
13454 darwin* | rhapsody*)
13455
13456
13457 archive_cmds_need_lc_CXX=no
13458 hardcode_direct_CXX=no
13459 hardcode_automatic_CXX=yes
13460 hardcode_shlibpath_var_CXX=unsupported
13461 if test "$lt_cv_ld_force_load" = "yes"; then
13462 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\"`'
13463
13464 else
13465 whole_archive_flag_spec_CXX=''
13466 fi
13467 link_all_deplibs_CXX=yes
13468 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13469 case $cc_basename in
13470 ifort*) _lt_dar_can_shared=yes ;;
13471 *) _lt_dar_can_shared=$GCC ;;
13472 esac
13473 if test "$_lt_dar_can_shared" = "yes"; then
13474 output_verbose_link_cmd=func_echo_all
13475 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}"
13476 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13477 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}"
13478 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}"
13479 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13480 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}"
13481 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}"
13482 fi
13483
13484 else
13485 ld_shlibs_CXX=no
13486 fi
13487
13488 ;;
13489
13490 dgux*)
13491 case $cc_basename in
13492 ec++*)
13493 # FIXME: insert proper C++ library support
13494 ld_shlibs_CXX=no
13495 ;;
13496 ghcx*)
13497 # Green Hills C++ Compiler
13498 # FIXME: insert proper C++ library support
13499 ld_shlibs_CXX=no
13500 ;;
13501 *)
13502 # FIXME: insert proper C++ library support
13503 ld_shlibs_CXX=no
13504 ;;
13505 esac
13506 ;;
13507
13508 freebsd2.*)
13509 # C++ shared libraries reported to be fairly broken before
13510 # switch to ELF
13511 ld_shlibs_CXX=no
13512 ;;
13513
13514 freebsd-elf*)
13515 archive_cmds_need_lc_CXX=no
13516 ;;
13517
13518 freebsd* | dragonfly*)
13519 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13520 # conventions
13521 ld_shlibs_CXX=yes
13522 ;;
13523
13524 gnu*)
13525 ;;
13526
13527 haiku*)
13528 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529 link_all_deplibs_CXX=yes
13530 ;;
13531
13532 hpux9*)
13533 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13534 hardcode_libdir_separator_CXX=:
13535 export_dynamic_flag_spec_CXX='${wl}-E'
13536 hardcode_direct_CXX=yes
13537 hardcode_minus_L_CXX=yes # Not in the search PATH,
13538 # but as the default
13539 # location of the library.
13540
13541 case $cc_basename in
13542 CC*)
13543 # FIXME: insert proper C++ library support
13544 ld_shlibs_CXX=no
13545 ;;
13546 aCC*)
13547 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'
13548 # Commands to make compiler produce verbose output that lists
13549 # what "hidden" libraries, object files and flags are used when
13550 # linking a shared library.
13551 #
13552 # There doesn't appear to be a way to prevent this compiler from
13553 # explicitly linking system object files so we need to strip them
13554 # from the output so that they don't get included in the library
13555 # dependencies.
13556 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"'
13557 ;;
13558 *)
13559 if test "$GXX" = yes; then
13560 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'
13561 else
13562 # FIXME: insert proper C++ library support
13563 ld_shlibs_CXX=no
13564 fi
13565 ;;
13566 esac
13567 ;;
13568
13569 hpux10*|hpux11*)
13570 if test $with_gnu_ld = no; then
13571 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13572 hardcode_libdir_separator_CXX=:
13573
13574 case $host_cpu in
13575 hppa*64*|ia64*)
13576 ;;
13577 *)
13578 export_dynamic_flag_spec_CXX='${wl}-E'
13579 ;;
13580 esac
13581 fi
13582 case $host_cpu in
13583 hppa*64*|ia64*)
13584 hardcode_direct_CXX=no
13585 hardcode_shlibpath_var_CXX=no
13586 ;;
13587 *)
13588 hardcode_direct_CXX=yes
13589 hardcode_direct_absolute_CXX=yes
13590 hardcode_minus_L_CXX=yes # Not in the search PATH,
13591 # but as the default
13592 # location of the library.
13593 ;;
13594 esac
13595
13596 case $cc_basename in
13597 CC*)
13598 # FIXME: insert proper C++ library support
13599 ld_shlibs_CXX=no
13600 ;;
13601 aCC*)
13602 case $host_cpu in
13603 hppa*64*)
13604 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13605 ;;
13606 ia64*)
13607 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13608 ;;
13609 *)
13610 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13611 ;;
13612 esac
13613 # Commands to make compiler produce verbose output that lists
13614 # what "hidden" libraries, object files and flags are used when
13615 # linking a shared library.
13616 #
13617 # There doesn't appear to be a way to prevent this compiler from
13618 # explicitly linking system object files so we need to strip them
13619 # from the output so that they don't get included in the library
13620 # dependencies.
13621 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"'
13622 ;;
13623 *)
13624 if test "$GXX" = yes; then
13625 if test $with_gnu_ld = no; then
13626 case $host_cpu in
13627 hppa*64*)
13628 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13629 ;;
13630 ia64*)
13631 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13632 ;;
13633 *)
13634 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'
13635 ;;
13636 esac
13637 fi
13638 else
13639 # FIXME: insert proper C++ library support
13640 ld_shlibs_CXX=no
13641 fi
13642 ;;
13643 esac
13644 ;;
13645
13646 interix[3-9]*)
13647 hardcode_direct_CXX=no
13648 hardcode_shlibpath_var_CXX=no
13649 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13650 export_dynamic_flag_spec_CXX='${wl}-E'
13651 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13652 # Instead, shared libraries are loaded at an image base (0x10000000 by
13653 # default) and relocated if they conflict, which is a slow very memory
13654 # consuming and fragmenting process. To avoid this, we pick a random,
13655 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13656 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13657 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'
13658 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'
13659 ;;
13660 irix5* | irix6*)
13661 case $cc_basename in
13662 CC*)
13663 # SGI C++
13664 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'
13665
13666 # Archives containing C++ object files must be created using
13667 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13668 # necessary to make sure instantiated templates are included
13669 # in the archive.
13670 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13671 ;;
13672 *)
13673 if test "$GXX" = yes; then
13674 if test "$with_gnu_ld" = no; then
13675 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'
13676 else
13677 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'
13678 fi
13679 fi
13680 link_all_deplibs_CXX=yes
13681 ;;
13682 esac
13683 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13684 hardcode_libdir_separator_CXX=:
13685 inherit_rpath_CXX=yes
13686 ;;
13687
13688 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13689 case $cc_basename in
13690 KCC*)
13691 # Kuck and Associates, Inc. (KAI) C++ Compiler
13692
13693 # KCC will only create a shared library if the output file
13694 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13695 # to its proper name (with version) after linking.
13696 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'
13697 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'
13698 # Commands to make compiler produce verbose output that lists
13699 # what "hidden" libraries, object files and flags are used when
13700 # linking a shared library.
13701 #
13702 # There doesn't appear to be a way to prevent this compiler from
13703 # explicitly linking system object files so we need to strip them
13704 # from the output so that they don't get included in the library
13705 # dependencies.
13706 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"'
13707
13708 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13709 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13710
13711 # Archives containing C++ object files must be created using
13712 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13713 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13714 ;;
13715 icpc* | ecpc* )
13716 # Intel C++
13717 with_gnu_ld=yes
13718 # version 8.0 and above of icpc choke on multiply defined symbols
13719 # if we add $predep_objects and $postdep_objects, however 7.1 and
13720 # earlier do not add the objects themselves.
13721 case `$CC -V 2>&1` in
13722 *"Version 7."*)
13723 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13724 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'
13725 ;;
13726 *) # Version 8.0 or newer
13727 tmp_idyn=
13728 case $host_cpu in
13729 ia64*) tmp_idyn=' -i_dynamic';;
13730 esac
13731 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13732 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'
13733 ;;
13734 esac
13735 archive_cmds_need_lc_CXX=no
13736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13737 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13738 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13739 ;;
13740 pgCC* | pgcpp*)
13741 # Portland Group C++ compiler
13742 case `$CC -V` in
13743 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13744 prelink_cmds_CXX='tpldir=Template.dir~
13745 rm -rf $tpldir~
13746 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13747 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13748 old_archive_cmds_CXX='tpldir=Template.dir~
13749 rm -rf $tpldir~
13750 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13751 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13752 $RANLIB $oldlib'
13753 archive_cmds_CXX='tpldir=Template.dir~
13754 rm -rf $tpldir~
13755 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13756 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13757 archive_expsym_cmds_CXX='tpldir=Template.dir~
13758 rm -rf $tpldir~
13759 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13760 $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'
13761 ;;
13762 *) # Version 6 and above use weak symbols
13763 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13764 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'
13765 ;;
13766 esac
13767
13768 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13769 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13770 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'
13771 ;;
13772 cxx*)
13773 # Compaq C++
13774 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13775 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'
13776
13777 runpath_var=LD_RUN_PATH
13778 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13779 hardcode_libdir_separator_CXX=:
13780
13781 # Commands to make compiler produce verbose output that lists
13782 # what "hidden" libraries, object files and flags are used when
13783 # linking a shared library.
13784 #
13785 # There doesn't appear to be a way to prevent this compiler from
13786 # explicitly linking system object files so we need to strip them
13787 # from the output so that they don't get included in the library
13788 # dependencies.
13789 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'
13790 ;;
13791 xl* | mpixl* | bgxl*)
13792 # IBM XL 8.0 on PPC, with GNU ld
13793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13794 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13795 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13796 if test "x$supports_anon_versioning" = xyes; then
13797 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13798 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13799 echo "local: *; };" >> $output_objdir/$libname.ver~
13800 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13801 fi
13802 ;;
13803 *)
13804 case `$CC -V 2>&1 | sed 5q` in
13805 *Sun\ C*)
13806 # Sun C++ 5.9
13807 no_undefined_flag_CXX=' -zdefs'
13808 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13809 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'
13810 hardcode_libdir_flag_spec_CXX='-R$libdir'
13811 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'
13812 compiler_needs_object_CXX=yes
13813
13814 # Not sure whether something based on
13815 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13816 # would be better.
13817 output_verbose_link_cmd='func_echo_all'
13818
13819 # Archives containing C++ object files must be created using
13820 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13821 # necessary to make sure instantiated templates are included
13822 # in the archive.
13823 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13824 ;;
13825 esac
13826 ;;
13827 esac
13828 ;;
13829
13830 lynxos*)
13831 # FIXME: insert proper C++ library support
13832 ld_shlibs_CXX=no
13833 ;;
13834
13835 m88k*)
13836 # FIXME: insert proper C++ library support
13837 ld_shlibs_CXX=no
13838 ;;
13839
13840 mvs*)
13841 case $cc_basename in
13842 cxx*)
13843 # FIXME: insert proper C++ library support
13844 ld_shlibs_CXX=no
13845 ;;
13846 *)
13847 # FIXME: insert proper C++ library support
13848 ld_shlibs_CXX=no
13849 ;;
13850 esac
13851 ;;
13852
13853 netbsd*)
13854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13855 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13856 wlarc=
13857 hardcode_libdir_flag_spec_CXX='-R$libdir'
13858 hardcode_direct_CXX=yes
13859 hardcode_shlibpath_var_CXX=no
13860 fi
13861 # Workaround some broken pre-1.5 toolchains
13862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13863 ;;
13864
13865 *nto* | *qnx*)
13866 ld_shlibs_CXX=yes
13867 ;;
13868
13869 openbsd2*)
13870 # C++ shared libraries are fairly broken
13871 ld_shlibs_CXX=no
13872 ;;
13873
13874 openbsd*)
13875 if test -f /usr/libexec/ld.so; then
13876 hardcode_direct_CXX=yes
13877 hardcode_shlibpath_var_CXX=no
13878 hardcode_direct_absolute_CXX=yes
13879 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13881 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13882 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13883 export_dynamic_flag_spec_CXX='${wl}-E'
13884 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13885 fi
13886 output_verbose_link_cmd=func_echo_all
13887 else
13888 ld_shlibs_CXX=no
13889 fi
13890 ;;
13891
13892 osf3* | osf4* | osf5*)
13893 case $cc_basename in
13894 KCC*)
13895 # Kuck and Associates, Inc. (KAI) C++ Compiler
13896
13897 # KCC will only create a shared library if the output file
13898 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13899 # to its proper name (with version) after linking.
13900 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'
13901
13902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13903 hardcode_libdir_separator_CXX=:
13904
13905 # Archives containing C++ object files must be created using
13906 # the KAI C++ compiler.
13907 case $host in
13908 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13909 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13910 esac
13911 ;;
13912 RCC*)
13913 # Rational C++ 2.4.1
13914 # FIXME: insert proper C++ library support
13915 ld_shlibs_CXX=no
13916 ;;
13917 cxx*)
13918 case $host in
13919 osf3*)
13920 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13921 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'
13922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13923 ;;
13924 *)
13925 allow_undefined_flag_CXX=' -expect_unresolved \*'
13926 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'
13927 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13928 echo "-hidden">> $lib.exp~
13929 $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~
13930 $RM $lib.exp'
13931 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13932 ;;
13933 esac
13934
13935 hardcode_libdir_separator_CXX=:
13936
13937 # Commands to make compiler produce verbose output that lists
13938 # what "hidden" libraries, object files and flags are used when
13939 # linking a shared library.
13940 #
13941 # There doesn't appear to be a way to prevent this compiler from
13942 # explicitly linking system object files so we need to strip them
13943 # from the output so that they don't get included in the library
13944 # dependencies.
13945 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"'
13946 ;;
13947 *)
13948 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13949 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13950 case $host in
13951 osf3*)
13952 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'
13953 ;;
13954 *)
13955 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'
13956 ;;
13957 esac
13958
13959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13960 hardcode_libdir_separator_CXX=:
13961
13962 # Commands to make compiler produce verbose output that lists
13963 # what "hidden" libraries, object files and flags are used when
13964 # linking a shared library.
13965 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13966
13967 else
13968 # FIXME: insert proper C++ library support
13969 ld_shlibs_CXX=no
13970 fi
13971 ;;
13972 esac
13973 ;;
13974
13975 psos*)
13976 # FIXME: insert proper C++ library support
13977 ld_shlibs_CXX=no
13978 ;;
13979
13980 sunos4*)
13981 case $cc_basename in
13982 CC*)
13983 # Sun C++ 4.x
13984 # FIXME: insert proper C++ library support
13985 ld_shlibs_CXX=no
13986 ;;
13987 lcc*)
13988 # Lucid
13989 # FIXME: insert proper C++ library support
13990 ld_shlibs_CXX=no
13991 ;;
13992 *)
13993 # FIXME: insert proper C++ library support
13994 ld_shlibs_CXX=no
13995 ;;
13996 esac
13997 ;;
13998
13999 solaris*)
14000 case $cc_basename in
14001 CC* | sunCC*)
14002 # Sun C++ 4.2, 5.x and Centerline C++
14003 archive_cmds_need_lc_CXX=yes
14004 no_undefined_flag_CXX=' -zdefs'
14005 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14006 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14007 $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'
14008
14009 hardcode_libdir_flag_spec_CXX='-R$libdir'
14010 hardcode_shlibpath_var_CXX=no
14011 case $host_os in
14012 solaris2.[0-5] | solaris2.[0-5].*) ;;
14013 *)
14014 # The compiler driver will combine and reorder linker options,
14015 # but understands `-z linker_flag'.
14016 # Supported since Solaris 2.6 (maybe 2.5.1?)
14017 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14018 ;;
14019 esac
14020 link_all_deplibs_CXX=yes
14021
14022 output_verbose_link_cmd='func_echo_all'
14023
14024 # Archives containing C++ object files must be created using
14025 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14026 # necessary to make sure instantiated templates are included
14027 # in the archive.
14028 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14029 ;;
14030 gcx*)
14031 # Green Hills C++ Compiler
14032 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14033
14034 # The C++ compiler must be used to create the archive.
14035 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14036 ;;
14037 *)
14038 # GNU C++ compiler with Solaris linker
14039 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14040 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14041 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14042 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14043 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14044 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14045
14046 # Commands to make compiler produce verbose output that lists
14047 # what "hidden" libraries, object files and flags are used when
14048 # linking a shared library.
14049 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14050 else
14051 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14052 # platform.
14053 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14054 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14055 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14056
14057 # Commands to make compiler produce verbose output that lists
14058 # what "hidden" libraries, object files and flags are used when
14059 # linking a shared library.
14060 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14061 fi
14062
14063 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14064 case $host_os in
14065 solaris2.[0-5] | solaris2.[0-5].*) ;;
14066 *)
14067 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14068 ;;
14069 esac
14070 fi
14071 ;;
14072 esac
14073 ;;
14074
14075 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14076 no_undefined_flag_CXX='${wl}-z,text'
14077 archive_cmds_need_lc_CXX=no
14078 hardcode_shlibpath_var_CXX=no
14079 runpath_var='LD_RUN_PATH'
14080
14081 case $cc_basename in
14082 CC*)
14083 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14084 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14085 ;;
14086 *)
14087 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14088 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14089 ;;
14090 esac
14091 ;;
14092
14093 sysv5* | sco3.2v5* | sco5v6*)
14094 # Note: We can NOT use -z defs as we might desire, because we do not
14095 # link with -lc, and that would cause any symbols used from libc to
14096 # always be unresolved, which means just about no library would
14097 # ever link correctly. If we're not using GNU ld we use -z text
14098 # though, which does catch some bad symbols but isn't as heavy-handed
14099 # as -z defs.
14100 no_undefined_flag_CXX='${wl}-z,text'
14101 allow_undefined_flag_CXX='${wl}-z,nodefs'
14102 archive_cmds_need_lc_CXX=no
14103 hardcode_shlibpath_var_CXX=no
14104 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14105 hardcode_libdir_separator_CXX=':'
14106 link_all_deplibs_CXX=yes
14107 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14108 runpath_var='LD_RUN_PATH'
14109
14110 case $cc_basename in
14111 CC*)
14112 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14113 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14114 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14115 '"$old_archive_cmds_CXX"
14116 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14117 '"$reload_cmds_CXX"
14118 ;;
14119 *)
14120 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14121 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14122 ;;
14123 esac
14124 ;;
14125
14126 tandem*)
14127 case $cc_basename in
14128 NCC*)
14129 # NonStop-UX NCC 3.20
14130 # FIXME: insert proper C++ library support
14131 ld_shlibs_CXX=no
14132 ;;
14133 *)
14134 # FIXME: insert proper C++ library support
14135 ld_shlibs_CXX=no
14136 ;;
14137 esac
14138 ;;
14139
14140 vxworks*)
14141 # FIXME: insert proper C++ library support
14142 ld_shlibs_CXX=no
14143 ;;
14144
14145 *)
14146 # FIXME: insert proper C++ library support
14147 ld_shlibs_CXX=no
14148 ;;
14149 esac
14150
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14152 $as_echo "$ld_shlibs_CXX" >&6; }
14153 test "$ld_shlibs_CXX" = no && can_build_shared=no
14154
14155 GCC_CXX="$GXX"
14156 LD_CXX="$LD"
14157
14158 ## CAVEAT EMPTOR:
14159 ## There is no encapsulation within the following macros, do not change
14160 ## the running order or otherwise move them around unless you know exactly
14161 ## what you are doing...
14162 # Dependencies to place before and after the object being linked:
14163 predep_objects_CXX=
14164 postdep_objects_CXX=
14165 predeps_CXX=
14166 postdeps_CXX=
14167 compiler_lib_search_path_CXX=
14168
14169 cat > conftest.$ac_ext <<_LT_EOF
14170 class Foo
14171 {
14172 public:
14173 Foo (void) { a = 0; }
14174 private:
14175 int a;
14176 };
14177 _LT_EOF
14178
14179
14180 _lt_libdeps_save_CFLAGS=$CFLAGS
14181 case "$CC $CFLAGS " in #(
14182 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14183 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14184 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14185 esac
14186
14187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14188 (eval $ac_compile) 2>&5
14189 ac_status=$?
14190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14191 test $ac_status = 0; }; then
14192 # Parse the compiler output and extract the necessary
14193 # objects, libraries and library flags.
14194
14195 # Sentinel used to keep track of whether or not we are before
14196 # the conftest object file.
14197 pre_test_object_deps_done=no
14198
14199 for p in `eval "$output_verbose_link_cmd"`; do
14200 case ${prev}${p} in
14201
14202 -L* | -R* | -l*)
14203 # Some compilers place space between "-{L,R}" and the path.
14204 # Remove the space.
14205 if test $p = "-L" ||
14206 test $p = "-R"; then
14207 prev=$p
14208 continue
14209 fi
14210
14211 # Expand the sysroot to ease extracting the directories later.
14212 if test -z "$prev"; then
14213 case $p in
14214 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14215 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14216 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14217 esac
14218 fi
14219 case $p in
14220 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14221 esac
14222 if test "$pre_test_object_deps_done" = no; then
14223 case ${prev} in
14224 -L | -R)
14225 # Internal compiler library paths should come after those
14226 # provided the user. The postdeps already come after the
14227 # user supplied libs so there is no need to process them.
14228 if test -z "$compiler_lib_search_path_CXX"; then
14229 compiler_lib_search_path_CXX="${prev}${p}"
14230 else
14231 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14232 fi
14233 ;;
14234 # The "-l" case would never come before the object being
14235 # linked, so don't bother handling this case.
14236 esac
14237 else
14238 if test -z "$postdeps_CXX"; then
14239 postdeps_CXX="${prev}${p}"
14240 else
14241 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14242 fi
14243 fi
14244 prev=
14245 ;;
14246
14247 *.lto.$objext) ;; # Ignore GCC LTO objects
14248 *.$objext)
14249 # This assumes that the test object file only shows up
14250 # once in the compiler output.
14251 if test "$p" = "conftest.$objext"; then
14252 pre_test_object_deps_done=yes
14253 continue
14254 fi
14255
14256 if test "$pre_test_object_deps_done" = no; then
14257 if test -z "$predep_objects_CXX"; then
14258 predep_objects_CXX="$p"
14259 else
14260 predep_objects_CXX="$predep_objects_CXX $p"
14261 fi
14262 else
14263 if test -z "$postdep_objects_CXX"; then
14264 postdep_objects_CXX="$p"
14265 else
14266 postdep_objects_CXX="$postdep_objects_CXX $p"
14267 fi
14268 fi
14269 ;;
14270
14271 *) ;; # Ignore the rest.
14272
14273 esac
14274 done
14275
14276 # Clean up.
14277 rm -f a.out a.exe
14278 else
14279 echo "libtool.m4: error: problem compiling CXX test program"
14280 fi
14281
14282 $RM -f confest.$objext
14283 CFLAGS=$_lt_libdeps_save_CFLAGS
14284
14285 # PORTME: override above test on systems where it is broken
14286 case $host_os in
14287 interix[3-9]*)
14288 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14289 # hack all around it, let's just trust "g++" to DTRT.
14290 predep_objects_CXX=
14291 postdep_objects_CXX=
14292 postdeps_CXX=
14293 ;;
14294
14295 linux*)
14296 case `$CC -V 2>&1 | sed 5q` in
14297 *Sun\ C*)
14298 # Sun C++ 5.9
14299
14300 # The more standards-conforming stlport4 library is
14301 # incompatible with the Cstd library. Avoid specifying
14302 # it if it's in CXXFLAGS. Ignore libCrun as
14303 # -library=stlport4 depends on it.
14304 case " $CXX $CXXFLAGS " in
14305 *" -library=stlport4 "*)
14306 solaris_use_stlport4=yes
14307 ;;
14308 esac
14309
14310 if test "$solaris_use_stlport4" != yes; then
14311 postdeps_CXX='-library=Cstd -library=Crun'
14312 fi
14313 ;;
14314 esac
14315 ;;
14316
14317 solaris*)
14318 case $cc_basename in
14319 CC* | sunCC*)
14320 # The more standards-conforming stlport4 library is
14321 # incompatible with the Cstd library. Avoid specifying
14322 # it if it's in CXXFLAGS. Ignore libCrun as
14323 # -library=stlport4 depends on it.
14324 case " $CXX $CXXFLAGS " in
14325 *" -library=stlport4 "*)
14326 solaris_use_stlport4=yes
14327 ;;
14328 esac
14329
14330 # Adding this requires a known-good setup of shared libraries for
14331 # Sun compiler versions before 5.6, else PIC objects from an old
14332 # archive will be linked into the output, leading to subtle bugs.
14333 if test "$solaris_use_stlport4" != yes; then
14334 postdeps_CXX='-library=Cstd -library=Crun'
14335 fi
14336 ;;
14337 esac
14338 ;;
14339 esac
14340
14341
14342 case " $postdeps_CXX " in
14343 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14344 esac
14345 compiler_lib_search_dirs_CXX=
14346 if test -n "${compiler_lib_search_path_CXX}"; then
14347 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14348 fi
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380 lt_prog_compiler_wl_CXX=
14381 lt_prog_compiler_pic_CXX=
14382 lt_prog_compiler_static_CXX=
14383
14384
14385 # C++ specific cases for pic, static, wl, etc.
14386 if test "$GXX" = yes; then
14387 lt_prog_compiler_wl_CXX='-Wl,'
14388 lt_prog_compiler_static_CXX='-static'
14389
14390 case $host_os in
14391 aix*)
14392 # All AIX code is PIC.
14393 if test "$host_cpu" = ia64; then
14394 # AIX 5 now supports IA64 processor
14395 lt_prog_compiler_static_CXX='-Bstatic'
14396 fi
14397 ;;
14398
14399 amigaos*)
14400 case $host_cpu in
14401 powerpc)
14402 # see comment about AmigaOS4 .so support
14403 lt_prog_compiler_pic_CXX='-fPIC'
14404 ;;
14405 m68k)
14406 # FIXME: we need at least 68020 code to build shared libraries, but
14407 # adding the `-m68020' flag to GCC prevents building anything better,
14408 # like `-m68040'.
14409 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14410 ;;
14411 esac
14412 ;;
14413
14414 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14415 # PIC is the default for these OSes.
14416 ;;
14417 mingw* | cygwin* | os2* | pw32* | cegcc*)
14418 # This hack is so that the source file can tell whether it is being
14419 # built for inclusion in a dll (and should export symbols for example).
14420 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14421 # (--disable-auto-import) libraries
14422 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14423 ;;
14424 darwin* | rhapsody*)
14425 # PIC is the default on this platform
14426 # Common symbols not allowed in MH_DYLIB files
14427 lt_prog_compiler_pic_CXX='-fno-common'
14428 ;;
14429 *djgpp*)
14430 # DJGPP does not support shared libraries at all
14431 lt_prog_compiler_pic_CXX=
14432 ;;
14433 haiku*)
14434 # PIC is the default for Haiku.
14435 # The "-static" flag exists, but is broken.
14436 lt_prog_compiler_static_CXX=
14437 ;;
14438 interix[3-9]*)
14439 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14440 # Instead, we relocate shared libraries at runtime.
14441 ;;
14442 sysv4*MP*)
14443 if test -d /usr/nec; then
14444 lt_prog_compiler_pic_CXX=-Kconform_pic
14445 fi
14446 ;;
14447 hpux*)
14448 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14449 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14450 # sets the default TLS model and affects inlining.
14451 case $host_cpu in
14452 hppa*64*)
14453 ;;
14454 *)
14455 lt_prog_compiler_pic_CXX='-fPIC'
14456 ;;
14457 esac
14458 ;;
14459 *qnx* | *nto*)
14460 # QNX uses GNU C++, but need to define -shared option too, otherwise
14461 # it will coredump.
14462 lt_prog_compiler_pic_CXX='-fPIC -shared'
14463 ;;
14464 *)
14465 lt_prog_compiler_pic_CXX='-fPIC'
14466 ;;
14467 esac
14468 else
14469 case $host_os in
14470 aix[4-9]*)
14471 # All AIX code is PIC.
14472 if test "$host_cpu" = ia64; then
14473 # AIX 5 now supports IA64 processor
14474 lt_prog_compiler_static_CXX='-Bstatic'
14475 else
14476 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14477 fi
14478 ;;
14479 chorus*)
14480 case $cc_basename in
14481 cxch68*)
14482 # Green Hills C++ Compiler
14483 # _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"
14484 ;;
14485 esac
14486 ;;
14487 mingw* | cygwin* | os2* | pw32* | cegcc*)
14488 # This hack is so that the source file can tell whether it is being
14489 # built for inclusion in a dll (and should export symbols for example).
14490 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14491 ;;
14492 dgux*)
14493 case $cc_basename in
14494 ec++*)
14495 lt_prog_compiler_pic_CXX='-KPIC'
14496 ;;
14497 ghcx*)
14498 # Green Hills C++ Compiler
14499 lt_prog_compiler_pic_CXX='-pic'
14500 ;;
14501 *)
14502 ;;
14503 esac
14504 ;;
14505 freebsd* | dragonfly*)
14506 # FreeBSD uses GNU C++
14507 ;;
14508 hpux9* | hpux10* | hpux11*)
14509 case $cc_basename in
14510 CC*)
14511 lt_prog_compiler_wl_CXX='-Wl,'
14512 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14513 if test "$host_cpu" != ia64; then
14514 lt_prog_compiler_pic_CXX='+Z'
14515 fi
14516 ;;
14517 aCC*)
14518 lt_prog_compiler_wl_CXX='-Wl,'
14519 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14520 case $host_cpu in
14521 hppa*64*|ia64*)
14522 # +Z the default
14523 ;;
14524 *)
14525 lt_prog_compiler_pic_CXX='+Z'
14526 ;;
14527 esac
14528 ;;
14529 *)
14530 ;;
14531 esac
14532 ;;
14533 interix*)
14534 # This is c89, which is MS Visual C++ (no shared libs)
14535 # Anyone wants to do a port?
14536 ;;
14537 irix5* | irix6* | nonstopux*)
14538 case $cc_basename in
14539 CC*)
14540 lt_prog_compiler_wl_CXX='-Wl,'
14541 lt_prog_compiler_static_CXX='-non_shared'
14542 # CC pic flag -KPIC is the default.
14543 ;;
14544 *)
14545 ;;
14546 esac
14547 ;;
14548 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14549 case $cc_basename in
14550 KCC*)
14551 # KAI C++ Compiler
14552 lt_prog_compiler_wl_CXX='--backend -Wl,'
14553 lt_prog_compiler_pic_CXX='-fPIC'
14554 ;;
14555 ecpc* )
14556 # old Intel C++ for x86_64 which still supported -KPIC.
14557 lt_prog_compiler_wl_CXX='-Wl,'
14558 lt_prog_compiler_pic_CXX='-KPIC'
14559 lt_prog_compiler_static_CXX='-static'
14560 ;;
14561 icpc* )
14562 # Intel C++, used to be incompatible with GCC.
14563 # ICC 10 doesn't accept -KPIC any more.
14564 lt_prog_compiler_wl_CXX='-Wl,'
14565 lt_prog_compiler_pic_CXX='-fPIC'
14566 lt_prog_compiler_static_CXX='-static'
14567 ;;
14568 pgCC* | pgcpp*)
14569 # Portland Group C++ compiler
14570 lt_prog_compiler_wl_CXX='-Wl,'
14571 lt_prog_compiler_pic_CXX='-fpic'
14572 lt_prog_compiler_static_CXX='-Bstatic'
14573 ;;
14574 cxx*)
14575 # Compaq C++
14576 # Make sure the PIC flag is empty. It appears that all Alpha
14577 # Linux and Compaq Tru64 Unix objects are PIC.
14578 lt_prog_compiler_pic_CXX=
14579 lt_prog_compiler_static_CXX='-non_shared'
14580 ;;
14581 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14582 # IBM XL 8.0, 9.0 on PPC and BlueGene
14583 lt_prog_compiler_wl_CXX='-Wl,'
14584 lt_prog_compiler_pic_CXX='-qpic'
14585 lt_prog_compiler_static_CXX='-qstaticlink'
14586 ;;
14587 *)
14588 case `$CC -V 2>&1 | sed 5q` in
14589 *Sun\ C*)
14590 # Sun C++ 5.9
14591 lt_prog_compiler_pic_CXX='-KPIC'
14592 lt_prog_compiler_static_CXX='-Bstatic'
14593 lt_prog_compiler_wl_CXX='-Qoption ld '
14594 ;;
14595 esac
14596 ;;
14597 esac
14598 ;;
14599 lynxos*)
14600 ;;
14601 m88k*)
14602 ;;
14603 mvs*)
14604 case $cc_basename in
14605 cxx*)
14606 lt_prog_compiler_pic_CXX='-W c,exportall'
14607 ;;
14608 *)
14609 ;;
14610 esac
14611 ;;
14612 netbsd*)
14613 ;;
14614 *qnx* | *nto*)
14615 # QNX uses GNU C++, but need to define -shared option too, otherwise
14616 # it will coredump.
14617 lt_prog_compiler_pic_CXX='-fPIC -shared'
14618 ;;
14619 osf3* | osf4* | osf5*)
14620 case $cc_basename in
14621 KCC*)
14622 lt_prog_compiler_wl_CXX='--backend -Wl,'
14623 ;;
14624 RCC*)
14625 # Rational C++ 2.4.1
14626 lt_prog_compiler_pic_CXX='-pic'
14627 ;;
14628 cxx*)
14629 # Digital/Compaq C++
14630 lt_prog_compiler_wl_CXX='-Wl,'
14631 # Make sure the PIC flag is empty. It appears that all Alpha
14632 # Linux and Compaq Tru64 Unix objects are PIC.
14633 lt_prog_compiler_pic_CXX=
14634 lt_prog_compiler_static_CXX='-non_shared'
14635 ;;
14636 *)
14637 ;;
14638 esac
14639 ;;
14640 psos*)
14641 ;;
14642 solaris*)
14643 case $cc_basename in
14644 CC* | sunCC*)
14645 # Sun C++ 4.2, 5.x and Centerline C++
14646 lt_prog_compiler_pic_CXX='-KPIC'
14647 lt_prog_compiler_static_CXX='-Bstatic'
14648 lt_prog_compiler_wl_CXX='-Qoption ld '
14649 ;;
14650 gcx*)
14651 # Green Hills C++ Compiler
14652 lt_prog_compiler_pic_CXX='-PIC'
14653 ;;
14654 *)
14655 ;;
14656 esac
14657 ;;
14658 sunos4*)
14659 case $cc_basename in
14660 CC*)
14661 # Sun C++ 4.x
14662 lt_prog_compiler_pic_CXX='-pic'
14663 lt_prog_compiler_static_CXX='-Bstatic'
14664 ;;
14665 lcc*)
14666 # Lucid
14667 lt_prog_compiler_pic_CXX='-pic'
14668 ;;
14669 *)
14670 ;;
14671 esac
14672 ;;
14673 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14674 case $cc_basename in
14675 CC*)
14676 lt_prog_compiler_wl_CXX='-Wl,'
14677 lt_prog_compiler_pic_CXX='-KPIC'
14678 lt_prog_compiler_static_CXX='-Bstatic'
14679 ;;
14680 esac
14681 ;;
14682 tandem*)
14683 case $cc_basename in
14684 NCC*)
14685 # NonStop-UX NCC 3.20
14686 lt_prog_compiler_pic_CXX='-KPIC'
14687 ;;
14688 *)
14689 ;;
14690 esac
14691 ;;
14692 vxworks*)
14693 ;;
14694 *)
14695 lt_prog_compiler_can_build_shared_CXX=no
14696 ;;
14697 esac
14698 fi
14699
14700 case $host_os in
14701 # For platforms which do not support PIC, -DPIC is meaningless:
14702 *djgpp*)
14703 lt_prog_compiler_pic_CXX=
14704 ;;
14705 *)
14706 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14707 ;;
14708 esac
14709
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14711 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14712 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14713 $as_echo_n "(cached) " >&6
14714 else
14715 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14716 fi
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14718 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14719 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14720
14721 #
14722 # Check to make sure the PIC flag actually works.
14723 #
14724 if test -n "$lt_prog_compiler_pic_CXX"; then
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14726 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14727 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 lt_cv_prog_compiler_pic_works_CXX=no
14731 ac_outfile=conftest.$ac_objext
14732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14733 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14734 # Insert the option either (1) after the last *FLAGS variable, or
14735 # (2) before a word containing "conftest.", or (3) at the end.
14736 # Note that $ac_compile itself does not contain backslashes and begins
14737 # with a dollar sign (not a hyphen), so the echo should work correctly.
14738 # The option is referenced via a variable to avoid confusing sed.
14739 lt_compile=`echo "$ac_compile" | $SED \
14740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14742 -e 's:$: $lt_compiler_flag:'`
14743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14744 (eval "$lt_compile" 2>conftest.err)
14745 ac_status=$?
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 if (exit $ac_status) && test -s "$ac_outfile"; then
14749 # The compiler can only warn and ignore the option if not recognized
14750 # So say no if there are warnings other than the usual output.
14751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14754 lt_cv_prog_compiler_pic_works_CXX=yes
14755 fi
14756 fi
14757 $RM conftest*
14758
14759 fi
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14761 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14762
14763 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14764 case $lt_prog_compiler_pic_CXX in
14765 "" | " "*) ;;
14766 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14767 esac
14768 else
14769 lt_prog_compiler_pic_CXX=
14770 lt_prog_compiler_can_build_shared_CXX=no
14771 fi
14772
14773 fi
14774
14775
14776
14777
14778
14779 #
14780 # Check to make sure the static flag actually works.
14781 #
14782 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14784 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14785 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14786 $as_echo_n "(cached) " >&6
14787 else
14788 lt_cv_prog_compiler_static_works_CXX=no
14789 save_LDFLAGS="$LDFLAGS"
14790 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14791 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14792 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14793 # The linker can only warn and ignore the option if not recognized
14794 # So say no if there are warnings
14795 if test -s conftest.err; then
14796 # Append any errors to the config.log.
14797 cat conftest.err 1>&5
14798 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14800 if diff conftest.exp conftest.er2 >/dev/null; then
14801 lt_cv_prog_compiler_static_works_CXX=yes
14802 fi
14803 else
14804 lt_cv_prog_compiler_static_works_CXX=yes
14805 fi
14806 fi
14807 $RM -r conftest*
14808 LDFLAGS="$save_LDFLAGS"
14809
14810 fi
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14812 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14813
14814 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14815 :
14816 else
14817 lt_prog_compiler_static_CXX=
14818 fi
14819
14820
14821
14822
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14824 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14825 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14826 $as_echo_n "(cached) " >&6
14827 else
14828 lt_cv_prog_compiler_c_o_CXX=no
14829 $RM -r conftest 2>/dev/null
14830 mkdir conftest
14831 cd conftest
14832 mkdir out
14833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14834
14835 lt_compiler_flag="-o out/conftest2.$ac_objext"
14836 # Insert the option either (1) after the last *FLAGS variable, or
14837 # (2) before a word containing "conftest.", or (3) at the end.
14838 # Note that $ac_compile itself does not contain backslashes and begins
14839 # with a dollar sign (not a hyphen), so the echo should work correctly.
14840 lt_compile=`echo "$ac_compile" | $SED \
14841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14843 -e 's:$: $lt_compiler_flag:'`
14844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14845 (eval "$lt_compile" 2>out/conftest.err)
14846 ac_status=$?
14847 cat out/conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14850 then
14851 # The compiler can only warn and ignore the option if not recognized
14852 # So say no if there are warnings
14853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14856 lt_cv_prog_compiler_c_o_CXX=yes
14857 fi
14858 fi
14859 chmod u+w . 2>&5
14860 $RM conftest*
14861 # SGI C++ compiler will create directory out/ii_files/ for
14862 # template instantiation
14863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14864 $RM out/* && rmdir out
14865 cd ..
14866 $RM -r conftest
14867 $RM conftest*
14868
14869 fi
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14871 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14872
14873
14874
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14877 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14878 $as_echo_n "(cached) " >&6
14879 else
14880 lt_cv_prog_compiler_c_o_CXX=no
14881 $RM -r conftest 2>/dev/null
14882 mkdir conftest
14883 cd conftest
14884 mkdir out
14885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14886
14887 lt_compiler_flag="-o out/conftest2.$ac_objext"
14888 # Insert the option either (1) after the last *FLAGS variable, or
14889 # (2) before a word containing "conftest.", or (3) at the end.
14890 # Note that $ac_compile itself does not contain backslashes and begins
14891 # with a dollar sign (not a hyphen), so the echo should work correctly.
14892 lt_compile=`echo "$ac_compile" | $SED \
14893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14895 -e 's:$: $lt_compiler_flag:'`
14896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14897 (eval "$lt_compile" 2>out/conftest.err)
14898 ac_status=$?
14899 cat out/conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14902 then
14903 # The compiler can only warn and ignore the option if not recognized
14904 # So say no if there are warnings
14905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14908 lt_cv_prog_compiler_c_o_CXX=yes
14909 fi
14910 fi
14911 chmod u+w . 2>&5
14912 $RM conftest*
14913 # SGI C++ compiler will create directory out/ii_files/ for
14914 # template instantiation
14915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14916 $RM out/* && rmdir out
14917 cd ..
14918 $RM -r conftest
14919 $RM conftest*
14920
14921 fi
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14923 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14924
14925
14926
14927
14928 hard_links="nottested"
14929 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14930 # do not overwrite the value of need_locks provided by the user
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14932 $as_echo_n "checking if we can lock with hard links... " >&6; }
14933 hard_links=yes
14934 $RM conftest*
14935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14936 touch conftest.a
14937 ln conftest.a conftest.b 2>&5 || hard_links=no
14938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14940 $as_echo "$hard_links" >&6; }
14941 if test "$hard_links" = no; then
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14943 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14944 need_locks=warn
14945 fi
14946 else
14947 need_locks=no
14948 fi
14949
14950
14951
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14953 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14954
14955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14956 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14957 case $host_os in
14958 aix[4-9]*)
14959 # If we're using GNU nm, then we don't want the "-C" option.
14960 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14961 # Also, AIX nm treats weak defined symbols like other global defined
14962 # symbols, whereas GNU nm marks them as "W".
14963 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14964 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'
14965 else
14966 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'
14967 fi
14968 ;;
14969 pw32*)
14970 export_symbols_cmds_CXX="$ltdll_cmds"
14971 ;;
14972 cygwin* | mingw* | cegcc*)
14973 case $cc_basename in
14974 cl*)
14975 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14976 ;;
14977 *)
14978 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'
14979 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14980 ;;
14981 esac
14982 ;;
14983 *)
14984 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14985 ;;
14986 esac
14987
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14989 $as_echo "$ld_shlibs_CXX" >&6; }
14990 test "$ld_shlibs_CXX" = no && can_build_shared=no
14991
14992 with_gnu_ld_CXX=$with_gnu_ld
14993
14994
14995
14996
14997
14998
14999 #
15000 # Do we need to explicitly link libc?
15001 #
15002 case "x$archive_cmds_need_lc_CXX" in
15003 x|xyes)
15004 # Assume -lc should be added
15005 archive_cmds_need_lc_CXX=yes
15006
15007 if test "$enable_shared" = yes && test "$GCC" = yes; then
15008 case $archive_cmds_CXX in
15009 *'~'*)
15010 # FIXME: we may have to deal with multi-command sequences.
15011 ;;
15012 '$CC '*)
15013 # Test whether the compiler implicitly links with -lc since on some
15014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15015 # to ld, don't add -lc before -lgcc.
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15017 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15018 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15019 $as_echo_n "(cached) " >&6
15020 else
15021 $RM conftest*
15022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15023
15024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15025 (eval $ac_compile) 2>&5
15026 ac_status=$?
15027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15028 test $ac_status = 0; } 2>conftest.err; then
15029 soname=conftest
15030 lib=conftest
15031 libobjs=conftest.$ac_objext
15032 deplibs=
15033 wl=$lt_prog_compiler_wl_CXX
15034 pic_flag=$lt_prog_compiler_pic_CXX
15035 compiler_flags=-v
15036 linker_flags=-v
15037 verstring=
15038 output_objdir=.
15039 libname=conftest
15040 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15041 allow_undefined_flag_CXX=
15042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15043 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15044 ac_status=$?
15045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15046 test $ac_status = 0; }
15047 then
15048 lt_cv_archive_cmds_need_lc_CXX=no
15049 else
15050 lt_cv_archive_cmds_need_lc_CXX=yes
15051 fi
15052 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15053 else
15054 cat conftest.err 1>&5
15055 fi
15056 $RM conftest*
15057
15058 fi
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15060 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15061 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15062 ;;
15063 esac
15064 fi
15065 ;;
15066 esac
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15130 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15131
15132 library_names_spec=
15133 libname_spec='lib$name'
15134 soname_spec=
15135 shrext_cmds=".so"
15136 postinstall_cmds=
15137 postuninstall_cmds=
15138 finish_cmds=
15139 finish_eval=
15140 shlibpath_var=
15141 shlibpath_overrides_runpath=unknown
15142 version_type=none
15143 dynamic_linker="$host_os ld.so"
15144 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15145 need_lib_prefix=unknown
15146 hardcode_into_libs=no
15147
15148 # when you set need_version to no, make sure it does not cause -set_version
15149 # flags to be left without arguments
15150 need_version=unknown
15151
15152 case $host_os in
15153 aix3*)
15154 version_type=linux # correct to gnu/linux during the next big refactor
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15156 shlibpath_var=LIBPATH
15157
15158 # AIX 3 has no versioning support, so we append a major version to the name.
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 ;;
15161
15162 aix[4-9]*)
15163 version_type=linux # correct to gnu/linux during the next big refactor
15164 need_lib_prefix=no
15165 need_version=no
15166 hardcode_into_libs=yes
15167 if test "$host_cpu" = ia64; then
15168 # AIX 5 supports IA64
15169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15170 shlibpath_var=LD_LIBRARY_PATH
15171 else
15172 # With GCC up to 2.95.x, collect2 would create an import file
15173 # for dependence libraries. The import file would start with
15174 # the line `#! .'. This would cause the generated library to
15175 # depend on `.', always an invalid library. This was fixed in
15176 # development snapshots of GCC prior to 3.0.
15177 case $host_os in
15178 aix4 | aix4.[01] | aix4.[01].*)
15179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15180 echo ' yes '
15181 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15182 :
15183 else
15184 can_build_shared=no
15185 fi
15186 ;;
15187 esac
15188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15189 # soname into executable. Probably we can add versioning support to
15190 # collect2, so additional links can be useful in future.
15191 if test "$aix_use_runtimelinking" = yes; then
15192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15193 # instead of lib<name>.a to let people know that these are not
15194 # typical AIX shared libraries.
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 else
15197 # We preserve .a as extension for shared libraries through AIX4.2
15198 # and later when we are not doing run time linking.
15199 library_names_spec='${libname}${release}.a $libname.a'
15200 soname_spec='${libname}${release}${shared_ext}$major'
15201 fi
15202 shlibpath_var=LIBPATH
15203 fi
15204 ;;
15205
15206 amigaos*)
15207 case $host_cpu in
15208 powerpc)
15209 # Since July 2007 AmigaOS4 officially supports .so libraries.
15210 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212 ;;
15213 m68k)
15214 library_names_spec='$libname.ixlibrary $libname.a'
15215 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15216 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'
15217 ;;
15218 esac
15219 ;;
15220
15221 beos*)
15222 library_names_spec='${libname}${shared_ext}'
15223 dynamic_linker="$host_os ld.so"
15224 shlibpath_var=LIBRARY_PATH
15225 ;;
15226
15227 bsdi[45]*)
15228 version_type=linux # correct to gnu/linux during the next big refactor
15229 need_version=no
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15233 shlibpath_var=LD_LIBRARY_PATH
15234 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15235 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15236 # the default ld.so.conf also contains /usr/contrib/lib and
15237 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15238 # libtool to hard-code these into programs
15239 ;;
15240
15241 cygwin* | mingw* | pw32* | cegcc*)
15242 version_type=windows
15243 shrext_cmds=".dll"
15244 need_version=no
15245 need_lib_prefix=no
15246
15247 case $GCC,$cc_basename in
15248 yes,*)
15249 # gcc
15250 library_names_spec='$libname.dll.a'
15251 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15252 postinstall_cmds='base_file=`basename \${file}`~
15253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15254 dldir=$destdir/`dirname \$dlpath`~
15255 test -d \$dldir || mkdir -p \$dldir~
15256 $install_prog $dir/$dlname \$dldir/$dlname~
15257 chmod a+x \$dldir/$dlname~
15258 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15259 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15260 fi'
15261 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15262 dlpath=$dir/\$dldll~
15263 $RM \$dlpath'
15264 shlibpath_overrides_runpath=yes
15265
15266 case $host_os in
15267 cygwin*)
15268 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15269 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270
15271 ;;
15272 mingw* | cegcc*)
15273 # MinGW DLLs use traditional 'lib' prefix
15274 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15275 ;;
15276 pw32*)
15277 # pw32 DLLs use 'pw' prefix rather than 'lib'
15278 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15279 ;;
15280 esac
15281 dynamic_linker='Win32 ld.exe'
15282 ;;
15283
15284 *,cl*)
15285 # Native MSVC
15286 libname_spec='$name'
15287 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15288 library_names_spec='${libname}.dll.lib'
15289
15290 case $build_os in
15291 mingw*)
15292 sys_lib_search_path_spec=
15293 lt_save_ifs=$IFS
15294 IFS=';'
15295 for lt_path in $LIB
15296 do
15297 IFS=$lt_save_ifs
15298 # Let DOS variable expansion print the short 8.3 style file name.
15299 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15300 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15301 done
15302 IFS=$lt_save_ifs
15303 # Convert to MSYS style.
15304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15305 ;;
15306 cygwin*)
15307 # Convert to unix form, then to dos form, then back to unix form
15308 # but this time dos style (no spaces!) so that the unix form looks
15309 # like /cygdrive/c/PROGRA~1:/cygdr...
15310 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15311 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15312 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15313 ;;
15314 *)
15315 sys_lib_search_path_spec="$LIB"
15316 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15317 # It is most probably a Windows format PATH.
15318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15319 else
15320 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15321 fi
15322 # FIXME: find the short name or the path components, as spaces are
15323 # common. (e.g. "Program Files" -> "PROGRA~1")
15324 ;;
15325 esac
15326
15327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15328 postinstall_cmds='base_file=`basename \${file}`~
15329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15330 dldir=$destdir/`dirname \$dlpath`~
15331 test -d \$dldir || mkdir -p \$dldir~
15332 $install_prog $dir/$dlname \$dldir/$dlname'
15333 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15334 dlpath=$dir/\$dldll~
15335 $RM \$dlpath'
15336 shlibpath_overrides_runpath=yes
15337 dynamic_linker='Win32 link.exe'
15338 ;;
15339
15340 *)
15341 # Assume MSVC wrapper
15342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15343 dynamic_linker='Win32 ld.exe'
15344 ;;
15345 esac
15346 # FIXME: first we should search . and the directory the executable is in
15347 shlibpath_var=PATH
15348 ;;
15349
15350 darwin* | rhapsody*)
15351 dynamic_linker="$host_os dyld"
15352 version_type=darwin
15353 need_lib_prefix=no
15354 need_version=no
15355 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15356 soname_spec='${libname}${release}${major}$shared_ext'
15357 shlibpath_overrides_runpath=yes
15358 shlibpath_var=DYLD_LIBRARY_PATH
15359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15360
15361 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15362 ;;
15363
15364 dgux*)
15365 version_type=linux # correct to gnu/linux during the next big refactor
15366 need_lib_prefix=no
15367 need_version=no
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 ;;
15372
15373 freebsd* | dragonfly*)
15374 # DragonFly does not have aout. When/if they implement a new
15375 # versioning mechanism, adjust this.
15376 if test -x /usr/bin/objformat; then
15377 objformat=`/usr/bin/objformat`
15378 else
15379 case $host_os in
15380 freebsd[23].*) objformat=aout ;;
15381 *) objformat=elf ;;
15382 esac
15383 fi
15384 version_type=freebsd-$objformat
15385 case $version_type in
15386 freebsd-elf*)
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15388 need_version=no
15389 need_lib_prefix=no
15390 ;;
15391 freebsd-*)
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15393 need_version=yes
15394 ;;
15395 esac
15396 shlibpath_var=LD_LIBRARY_PATH
15397 case $host_os in
15398 freebsd2.*)
15399 shlibpath_overrides_runpath=yes
15400 ;;
15401 freebsd3.[01]* | freebsdelf3.[01]*)
15402 shlibpath_overrides_runpath=yes
15403 hardcode_into_libs=yes
15404 ;;
15405 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15406 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15407 shlibpath_overrides_runpath=no
15408 hardcode_into_libs=yes
15409 ;;
15410 *) # from 4.6 on, and DragonFly
15411 shlibpath_overrides_runpath=yes
15412 hardcode_into_libs=yes
15413 ;;
15414 esac
15415 ;;
15416
15417 gnu*)
15418 version_type=linux # correct to gnu/linux during the next big refactor
15419 need_lib_prefix=no
15420 need_version=no
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 shlibpath_var=LD_LIBRARY_PATH
15424 shlibpath_overrides_runpath=no
15425 hardcode_into_libs=yes
15426 ;;
15427
15428 haiku*)
15429 version_type=linux # correct to gnu/linux during the next big refactor
15430 need_lib_prefix=no
15431 need_version=no
15432 dynamic_linker="$host_os runtime_loader"
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 shlibpath_var=LIBRARY_PATH
15436 shlibpath_overrides_runpath=yes
15437 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15438 hardcode_into_libs=yes
15439 ;;
15440
15441 hpux9* | hpux10* | hpux11*)
15442 # Give a soname corresponding to the major version so that dld.sl refuses to
15443 # link against other versions.
15444 version_type=sunos
15445 need_lib_prefix=no
15446 need_version=no
15447 case $host_cpu in
15448 ia64*)
15449 shrext_cmds='.so'
15450 hardcode_into_libs=yes
15451 dynamic_linker="$host_os dld.so"
15452 shlibpath_var=LD_LIBRARY_PATH
15453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455 soname_spec='${libname}${release}${shared_ext}$major'
15456 if test "X$HPUX_IA64_MODE" = X32; then
15457 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15458 else
15459 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15460 fi
15461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15462 ;;
15463 hppa*64*)
15464 shrext_cmds='.sl'
15465 hardcode_into_libs=yes
15466 dynamic_linker="$host_os dld.sl"
15467 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15473 ;;
15474 *)
15475 shrext_cmds='.sl'
15476 dynamic_linker="$host_os dld.sl"
15477 shlibpath_var=SHLIB_PATH
15478 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15480 soname_spec='${libname}${release}${shared_ext}$major'
15481 ;;
15482 esac
15483 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15484 postinstall_cmds='chmod 555 $lib'
15485 # or fails outright, so override atomically:
15486 install_override_mode=555
15487 ;;
15488
15489 interix[3-9]*)
15490 version_type=linux # correct to gnu/linux during the next big refactor
15491 need_lib_prefix=no
15492 need_version=no
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15496 shlibpath_var=LD_LIBRARY_PATH
15497 shlibpath_overrides_runpath=no
15498 hardcode_into_libs=yes
15499 ;;
15500
15501 irix5* | irix6* | nonstopux*)
15502 case $host_os in
15503 nonstopux*) version_type=nonstopux ;;
15504 *)
15505 if test "$lt_cv_prog_gnu_ld" = yes; then
15506 version_type=linux # correct to gnu/linux during the next big refactor
15507 else
15508 version_type=irix
15509 fi ;;
15510 esac
15511 need_lib_prefix=no
15512 need_version=no
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15515 case $host_os in
15516 irix5* | nonstopux*)
15517 libsuff= shlibsuff=
15518 ;;
15519 *)
15520 case $LD in # libtool.m4 will add one of these switches to LD
15521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15522 libsuff= shlibsuff= libmagic=32-bit;;
15523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15524 libsuff=32 shlibsuff=N32 libmagic=N32;;
15525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15526 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15527 *) libsuff= shlibsuff= libmagic=never-match;;
15528 esac
15529 ;;
15530 esac
15531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15532 shlibpath_overrides_runpath=no
15533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15535 hardcode_into_libs=yes
15536 ;;
15537
15538 # No shared lib support for Linux oldld, aout, or coff.
15539 linux*oldld* | linux*aout* | linux*coff*)
15540 dynamic_linker=no
15541 ;;
15542
15543 # This must be glibc/ELF.
15544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15545 version_type=linux # correct to gnu/linux during the next big refactor
15546 need_lib_prefix=no
15547 need_version=no
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=no
15553
15554 # Some binutils ld are patched to set DT_RUNPATH
15555 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15556 $as_echo_n "(cached) " >&6
15557 else
15558 lt_cv_shlibpath_overrides_runpath=no
15559 save_LDFLAGS=$LDFLAGS
15560 save_libdir=$libdir
15561 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15562 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565
15566 int
15567 main ()
15568 {
15569
15570 ;
15571 return 0;
15572 }
15573 _ACEOF
15574 if ac_fn_cxx_try_link "$LINENO"; then :
15575 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15576 lt_cv_shlibpath_overrides_runpath=yes
15577 fi
15578 fi
15579 rm -f core conftest.err conftest.$ac_objext \
15580 conftest$ac_exeext conftest.$ac_ext
15581 LDFLAGS=$save_LDFLAGS
15582 libdir=$save_libdir
15583
15584 fi
15585
15586 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15587
15588 # This implies no fast_install, which is unacceptable.
15589 # Some rework will be needed to allow for fast_install
15590 # before this can be enabled.
15591 hardcode_into_libs=yes
15592
15593 # Add ABI-specific directories to the system library path.
15594 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15595
15596 # Append ld.so.conf contents to the search path
15597 if test -f /etc/ld.so.conf; then
15598 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' ' '`
15599 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15600
15601 fi
15602
15603 # We used to test for /lib/ld.so.1 and disable shared libraries on
15604 # powerpc, because MkLinux only supported shared libraries with the
15605 # GNU dynamic linker. Since this was broken with cross compilers,
15606 # most powerpc-linux boxes support dynamic linking these days and
15607 # people can always --disable-shared, the test was removed, and we
15608 # assume the GNU/Linux dynamic linker is in use.
15609 dynamic_linker='GNU/Linux ld.so'
15610 ;;
15611
15612 netbsd*)
15613 version_type=sunos
15614 need_lib_prefix=no
15615 need_version=no
15616 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15619 dynamic_linker='NetBSD (a.out) ld.so'
15620 else
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 dynamic_linker='NetBSD ld.elf_so'
15624 fi
15625 shlibpath_var=LD_LIBRARY_PATH
15626 shlibpath_overrides_runpath=yes
15627 hardcode_into_libs=yes
15628 ;;
15629
15630 newsos6)
15631 version_type=linux # correct to gnu/linux during the next big refactor
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633 shlibpath_var=LD_LIBRARY_PATH
15634 shlibpath_overrides_runpath=yes
15635 ;;
15636
15637 *nto* | *qnx*)
15638 version_type=qnx
15639 need_lib_prefix=no
15640 need_version=no
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 shlibpath_var=LD_LIBRARY_PATH
15644 shlibpath_overrides_runpath=no
15645 hardcode_into_libs=yes
15646 dynamic_linker='ldqnx.so'
15647 ;;
15648
15649 openbsd*)
15650 version_type=sunos
15651 sys_lib_dlsearch_path_spec="/usr/lib"
15652 need_lib_prefix=no
15653 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15654 case $host_os in
15655 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15656 *) need_version=no ;;
15657 esac
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15662 case $host_os in
15663 openbsd2.[89] | openbsd2.[89].*)
15664 shlibpath_overrides_runpath=no
15665 ;;
15666 *)
15667 shlibpath_overrides_runpath=yes
15668 ;;
15669 esac
15670 else
15671 shlibpath_overrides_runpath=yes
15672 fi
15673 ;;
15674
15675 os2*)
15676 libname_spec='$name'
15677 shrext_cmds=".dll"
15678 need_lib_prefix=no
15679 library_names_spec='$libname${shared_ext} $libname.a'
15680 dynamic_linker='OS/2 ld.exe'
15681 shlibpath_var=LIBPATH
15682 ;;
15683
15684 osf3* | osf4* | osf5*)
15685 version_type=osf
15686 need_lib_prefix=no
15687 need_version=no
15688 soname_spec='${libname}${release}${shared_ext}$major'
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690 shlibpath_var=LD_LIBRARY_PATH
15691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15693 ;;
15694
15695 rdos*)
15696 dynamic_linker=no
15697 ;;
15698
15699 solaris*)
15700 version_type=linux # correct to gnu/linux during the next big refactor
15701 need_lib_prefix=no
15702 need_version=no
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704 soname_spec='${libname}${release}${shared_ext}$major'
15705 shlibpath_var=LD_LIBRARY_PATH
15706 shlibpath_overrides_runpath=yes
15707 hardcode_into_libs=yes
15708 # ldd complains unless libraries are executable
15709 postinstall_cmds='chmod +x $lib'
15710 ;;
15711
15712 sunos4*)
15713 version_type=sunos
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15716 shlibpath_var=LD_LIBRARY_PATH
15717 shlibpath_overrides_runpath=yes
15718 if test "$with_gnu_ld" = yes; then
15719 need_lib_prefix=no
15720 fi
15721 need_version=yes
15722 ;;
15723
15724 sysv4 | sysv4.3*)
15725 version_type=linux # correct to gnu/linux during the next big refactor
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727 soname_spec='${libname}${release}${shared_ext}$major'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 case $host_vendor in
15730 sni)
15731 shlibpath_overrides_runpath=no
15732 need_lib_prefix=no
15733 runpath_var=LD_RUN_PATH
15734 ;;
15735 siemens)
15736 need_lib_prefix=no
15737 ;;
15738 motorola)
15739 need_lib_prefix=no
15740 need_version=no
15741 shlibpath_overrides_runpath=no
15742 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15743 ;;
15744 esac
15745 ;;
15746
15747 sysv4*MP*)
15748 if test -d /usr/nec ;then
15749 version_type=linux # correct to gnu/linux during the next big refactor
15750 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15751 soname_spec='$libname${shared_ext}.$major'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 fi
15754 ;;
15755
15756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15757 version_type=freebsd-elf
15758 need_lib_prefix=no
15759 need_version=no
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15761 soname_spec='${libname}${release}${shared_ext}$major'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=yes
15764 hardcode_into_libs=yes
15765 if test "$with_gnu_ld" = yes; then
15766 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15767 else
15768 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15769 case $host_os in
15770 sco3.2v5*)
15771 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15772 ;;
15773 esac
15774 fi
15775 sys_lib_dlsearch_path_spec='/usr/lib'
15776 ;;
15777
15778 tpf*)
15779 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15780 version_type=linux # correct to gnu/linux during the next big refactor
15781 need_lib_prefix=no
15782 need_version=no
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 shlibpath_overrides_runpath=no
15786 hardcode_into_libs=yes
15787 ;;
15788
15789 uts4*)
15790 version_type=linux # correct to gnu/linux during the next big refactor
15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792 soname_spec='${libname}${release}${shared_ext}$major'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 ;;
15795
15796 *)
15797 dynamic_linker=no
15798 ;;
15799 esac
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15801 $as_echo "$dynamic_linker" >&6; }
15802 test "$dynamic_linker" = no && can_build_shared=no
15803
15804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15805 if test "$GCC" = yes; then
15806 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15807 fi
15808
15809 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15810 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15811 fi
15812 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15813 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15814 fi
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15854 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15855 hardcode_action_CXX=
15856 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15857 test -n "$runpath_var_CXX" ||
15858 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15859
15860 # We can hardcode non-existent directories.
15861 if test "$hardcode_direct_CXX" != no &&
15862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15863 # have to relink, otherwise we might link with an installed library
15864 # when we should be linking with a yet-to-be-installed one
15865 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15866 test "$hardcode_minus_L_CXX" != no; then
15867 # Linking always hardcodes the temporary library directory.
15868 hardcode_action_CXX=relink
15869 else
15870 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15871 hardcode_action_CXX=immediate
15872 fi
15873 else
15874 # We cannot hardcode anything, or else we can only hardcode existing
15875 # directories.
15876 hardcode_action_CXX=unsupported
15877 fi
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15879 $as_echo "$hardcode_action_CXX" >&6; }
15880
15881 if test "$hardcode_action_CXX" = relink ||
15882 test "$inherit_rpath_CXX" = yes; then
15883 # Fast installation is not supported
15884 enable_fast_install=no
15885 elif test "$shlibpath_overrides_runpath" = yes ||
15886 test "$enable_shared" = no; then
15887 # Fast installation is not necessary
15888 enable_fast_install=needless
15889 fi
15890
15891
15892
15893
15894
15895
15896
15897 fi # test -n "$compiler"
15898
15899 CC=$lt_save_CC
15900 CFLAGS=$lt_save_CFLAGS
15901 LDCXX=$LD
15902 LD=$lt_save_LD
15903 GCC=$lt_save_GCC
15904 with_gnu_ld=$lt_save_with_gnu_ld
15905 lt_cv_path_LDCXX=$lt_cv_path_LD
15906 lt_cv_path_LD=$lt_save_path_LD
15907 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15908 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15909 fi # test "$_lt_caught_CXX_error" != yes
15910
15911 ac_ext=c
15912 ac_cpp='$CPP $CPPFLAGS'
15913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931 ac_config_commands="$ac_config_commands libtool"
15932
15933
15934
15935
15936 # Only expand once:
15937
15938
15939
15940
15941 saveLIBS="$LIBS"
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5
15943 $as_echo_n "checking for dbopen in -ldb... " >&6; }
15944 if ${ac_cv_lib_db_dbopen+:} false; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15947 ac_check_lib_save_LIBS=$LIBS
15948 LIBS="-ldb $LIBS"
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951
15952 /* Override any GCC internal prototype to avoid an error.
15953 Use char because int might match the return type of a GCC
15954 builtin and then its argument prototype would still apply. */
15955 #ifdef __cplusplus
15956 extern "C"
15957 #endif
15958 char dbopen ();
15959 int
15960 main ()
15961 {
15962 return dbopen ();
15963 ;
15964 return 0;
15965 }
15966 _ACEOF
15967 if ac_fn_c_try_link "$LINENO"; then :
15968 ac_cv_lib_db_dbopen=yes
15969 else
15970 ac_cv_lib_db_dbopen=no
15971 fi
15972 rm -f core conftest.err conftest.$ac_objext \
15973 conftest$ac_exeext conftest.$ac_ext
15974 LIBS=$ac_check_lib_save_LIBS
15975 fi
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5
15977 $as_echo "$ac_cv_lib_db_dbopen" >&6; }
15978 if test "x$ac_cv_lib_db_dbopen" = xyes; then :
15979 LIBDB=-ldb ; LIBS="-ldb $LIBS"
15980 else
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5
15982 $as_echo_n "checking for db_open in -ldb... " >&6; }
15983 if ${ac_cv_lib_db_db_open+:} false; then :
15984 $as_echo_n "(cached) " >&6
15985 else
15986 ac_check_lib_save_LIBS=$LIBS
15987 LIBS="-ldb $LIBS"
15988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h. */
15990
15991 /* Override any GCC internal prototype to avoid an error.
15992 Use char because int might match the return type of a GCC
15993 builtin and then its argument prototype would still apply. */
15994 #ifdef __cplusplus
15995 extern "C"
15996 #endif
15997 char db_open ();
15998 int
15999 main ()
16000 {
16001 return db_open ();
16002 ;
16003 return 0;
16004 }
16005 _ACEOF
16006 if ac_fn_c_try_link "$LINENO"; then :
16007 ac_cv_lib_db_db_open=yes
16008 else
16009 ac_cv_lib_db_db_open=no
16010 fi
16011 rm -f core conftest.err conftest.$ac_objext \
16012 conftest$ac_exeext conftest.$ac_ext
16013 LIBS=$ac_check_lib_save_LIBS
16014 fi
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5
16016 $as_echo "$ac_cv_lib_db_db_open" >&6; }
16017 if test "x$ac_cv_lib_db_db_open" = xyes; then :
16018 LIBDB=-ldb ; LIBS="-ldb $LIBS"
16019 else
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5
16021 $as_echo_n "checking for db_env_create in -ldb... " >&6; }
16022 if ${ac_cv_lib_db_db_env_create+:} false; then :
16023 $as_echo_n "(cached) " >&6
16024 else
16025 ac_check_lib_save_LIBS=$LIBS
16026 LIBS="-ldb $LIBS"
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029
16030 /* Override any GCC internal prototype to avoid an error.
16031 Use char because int might match the return type of a GCC
16032 builtin and then its argument prototype would still apply. */
16033 #ifdef __cplusplus
16034 extern "C"
16035 #endif
16036 char db_env_create ();
16037 int
16038 main ()
16039 {
16040 return db_env_create ();
16041 ;
16042 return 0;
16043 }
16044 _ACEOF
16045 if ac_fn_c_try_link "$LINENO"; then :
16046 ac_cv_lib_db_db_env_create=yes
16047 else
16048 ac_cv_lib_db_db_env_create=no
16049 fi
16050 rm -f core conftest.err conftest.$ac_objext \
16051 conftest$ac_exeext conftest.$ac_ext
16052 LIBS=$ac_check_lib_save_LIBS
16053 fi
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5
16055 $as_echo "$ac_cv_lib_db_db_env_create" >&6; }
16056 if test "x$ac_cv_lib_db_db_env_create" = xyes; then :
16057 LIBDB=-ldb; LIBS="-ldb $LIBS"
16058 fi
16059
16060
16061 fi
16062
16063 fi
16064
16065
16066 FOUND_DB=0
16067 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen"
16068 if test "x$ac_cv_func_dbopen" = xyes; then :
16069 FOUND_DB=1
16070 fi
16071
16072 ac_fn_c_check_func "$LINENO" "db_open" "ac_cv_func_db_open"
16073 if test "x$ac_cv_func_db_open" = xyes; then :
16074 FOUND_DB=1
16075 fi
16076
16077 ac_fn_c_check_func "$LINENO" "db_env_create" "ac_cv_func_db_env_create"
16078 if test "x$ac_cv_func_db_env_create" = xyes; then :
16079 FOUND_DB=1
16080 fi
16081
16082
16083 LIBS="$saveLIBS"
16084
16085
16086
16087 if test "$FOUND_DB" != 0; then
16088 FOUND_DB_TRUE=
16089 FOUND_DB_FALSE='#'
16090 else
16091 FOUND_DB_TRUE='#'
16092 FOUND_DB_FALSE=
16093 fi
16094
16095
16096
16097 for ac_header in limits.h fcntl.h unistd.h
16098 do :
16099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16100 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16101 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16102 cat >>confdefs.h <<_ACEOF
16103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16104 _ACEOF
16105
16106 fi
16107
16108 done
16109
16110
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16112 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16113 if ${ac_cv_c_const+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16118
16119 int
16120 main ()
16121 {
16122
16123 #ifndef __cplusplus
16124 /* Ultrix mips cc rejects this sort of thing. */
16125 typedef int charset[2];
16126 const charset cs = { 0, 0 };
16127 /* SunOS 4.1.1 cc rejects this. */
16128 char const *const *pcpcc;
16129 char **ppc;
16130 /* NEC SVR4.0.2 mips cc rejects this. */
16131 struct point {int x, y;};
16132 static struct point const zero = {0,0};
16133 /* AIX XL C 1.02.0.0 rejects this.
16134 It does not let you subtract one const X* pointer from another in
16135 an arm of an if-expression whose if-part is not a constant
16136 expression */
16137 const char *g = "string";
16138 pcpcc = &g + (g ? g-g : 0);
16139 /* HPUX 7.0 cc rejects these. */
16140 ++pcpcc;
16141 ppc = (char**) pcpcc;
16142 pcpcc = (char const *const *) ppc;
16143 { /* SCO 3.2v4 cc rejects this sort of thing. */
16144 char tx;
16145 char *t = &tx;
16146 char const *s = 0 ? (char *) 0 : (char const *) 0;
16147
16148 *t++ = 0;
16149 if (s) return 0;
16150 }
16151 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16152 int x[] = {25, 17};
16153 const int *foo = &x[0];
16154 ++foo;
16155 }
16156 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16157 typedef const int *iptr;
16158 iptr p = 0;
16159 ++p;
16160 }
16161 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16162 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16163 struct s { int j; const int *ap[3]; } bx;
16164 struct s *b = &bx; b->j = 5;
16165 }
16166 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16167 const int foo = 10;
16168 if (!foo) return 0;
16169 }
16170 return !cs[0] && !zero.x;
16171 #endif
16172
16173 ;
16174 return 0;
16175 }
16176 _ACEOF
16177 if ac_fn_c_try_compile "$LINENO"; then :
16178 ac_cv_c_const=yes
16179 else
16180 ac_cv_c_const=no
16181 fi
16182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16183 fi
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16185 $as_echo "$ac_cv_c_const" >&6; }
16186 if test $ac_cv_c_const = no; then
16187
16188 $as_echo "#define const /**/" >>confdefs.h
16189
16190 fi
16191
16192 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16193 if test "x$ac_cv_type_size_t" = xyes; then :
16194
16195 else
16196
16197 cat >>confdefs.h <<_ACEOF
16198 #define size_t unsigned int
16199 _ACEOF
16200
16201 fi
16202
16203 # Check whether --enable-largefile was given.
16204 if test "${enable_largefile+set}" = set; then :
16205 enableval=$enable_largefile;
16206 fi
16207
16208 if test "$enable_largefile" != no; then
16209
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16211 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16212 if ${ac_cv_sys_largefile_CC+:} false; then :
16213 $as_echo_n "(cached) " >&6
16214 else
16215 ac_cv_sys_largefile_CC=no
16216 if test "$GCC" != yes; then
16217 ac_save_CC=$CC
16218 while :; do
16219 # IRIX 6.2 and later do not support large files by default,
16220 # so use the C compiler's -n32 option if that helps.
16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h. */
16223 #include <sys/types.h>
16224 /* Check that off_t can represent 2**63 - 1 correctly.
16225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16226 since some C++ compilers masquerading as C compilers
16227 incorrectly reject 9223372036854775807. */
16228 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16230 && LARGE_OFF_T % 2147483647 == 1)
16231 ? 1 : -1];
16232 int
16233 main ()
16234 {
16235
16236 ;
16237 return 0;
16238 }
16239 _ACEOF
16240 if ac_fn_c_try_compile "$LINENO"; then :
16241 break
16242 fi
16243 rm -f core conftest.err conftest.$ac_objext
16244 CC="$CC -n32"
16245 if ac_fn_c_try_compile "$LINENO"; then :
16246 ac_cv_sys_largefile_CC=' -n32'; break
16247 fi
16248 rm -f core conftest.err conftest.$ac_objext
16249 break
16250 done
16251 CC=$ac_save_CC
16252 rm -f conftest.$ac_ext
16253 fi
16254 fi
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16256 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16257 if test "$ac_cv_sys_largefile_CC" != no; then
16258 CC=$CC$ac_cv_sys_largefile_CC
16259 fi
16260
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16262 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16263 if ${ac_cv_sys_file_offset_bits+:} false; then :
16264 $as_echo_n "(cached) " >&6
16265 else
16266 while :; do
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 #include <sys/types.h>
16270 /* Check that off_t can represent 2**63 - 1 correctly.
16271 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16272 since some C++ compilers masquerading as C compilers
16273 incorrectly reject 9223372036854775807. */
16274 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16275 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16276 && LARGE_OFF_T % 2147483647 == 1)
16277 ? 1 : -1];
16278 int
16279 main ()
16280 {
16281
16282 ;
16283 return 0;
16284 }
16285 _ACEOF
16286 if ac_fn_c_try_compile "$LINENO"; then :
16287 ac_cv_sys_file_offset_bits=no; break
16288 fi
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 #define _FILE_OFFSET_BITS 64
16293 #include <sys/types.h>
16294 /* Check that off_t can represent 2**63 - 1 correctly.
16295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16296 since some C++ compilers masquerading as C compilers
16297 incorrectly reject 9223372036854775807. */
16298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16300 && LARGE_OFF_T % 2147483647 == 1)
16301 ? 1 : -1];
16302 int
16303 main ()
16304 {
16305
16306 ;
16307 return 0;
16308 }
16309 _ACEOF
16310 if ac_fn_c_try_compile "$LINENO"; then :
16311 ac_cv_sys_file_offset_bits=64; break
16312 fi
16313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16314 ac_cv_sys_file_offset_bits=unknown
16315 break
16316 done
16317 fi
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16319 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16320 case $ac_cv_sys_file_offset_bits in #(
16321 no | unknown) ;;
16322 *)
16323 cat >>confdefs.h <<_ACEOF
16324 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16325 _ACEOF
16326 ;;
16327 esac
16328 rm -rf conftest*
16329 if test $ac_cv_sys_file_offset_bits = unknown; then
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16331 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16332 if ${ac_cv_sys_large_files+:} false; then :
16333 $as_echo_n "(cached) " >&6
16334 else
16335 while :; do
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h. */
16338 #include <sys/types.h>
16339 /* Check that off_t can represent 2**63 - 1 correctly.
16340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16341 since some C++ compilers masquerading as C compilers
16342 incorrectly reject 9223372036854775807. */
16343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16345 && LARGE_OFF_T % 2147483647 == 1)
16346 ? 1 : -1];
16347 int
16348 main ()
16349 {
16350
16351 ;
16352 return 0;
16353 }
16354 _ACEOF
16355 if ac_fn_c_try_compile "$LINENO"; then :
16356 ac_cv_sys_large_files=no; break
16357 fi
16358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361 #define _LARGE_FILES 1
16362 #include <sys/types.h>
16363 /* Check that off_t can represent 2**63 - 1 correctly.
16364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16365 since some C++ compilers masquerading as C compilers
16366 incorrectly reject 9223372036854775807. */
16367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16369 && LARGE_OFF_T % 2147483647 == 1)
16370 ? 1 : -1];
16371 int
16372 main ()
16373 {
16374
16375 ;
16376 return 0;
16377 }
16378 _ACEOF
16379 if ac_fn_c_try_compile "$LINENO"; then :
16380 ac_cv_sys_large_files=1; break
16381 fi
16382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16383 ac_cv_sys_large_files=unknown
16384 break
16385 done
16386 fi
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16388 $as_echo "$ac_cv_sys_large_files" >&6; }
16389 case $ac_cv_sys_large_files in #(
16390 no | unknown) ;;
16391 *)
16392 cat >>confdefs.h <<_ACEOF
16393 #define _LARGE_FILES $ac_cv_sys_large_files
16394 _ACEOF
16395 ;;
16396 esac
16397 rm -rf conftest*
16398 fi
16399
16400
16401 fi
16402
16403
16404 ac_ext=cpp
16405 ac_cpp='$CXXCPP $CPPFLAGS'
16406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16409
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler needs -fhandle-exceptions" >&5
16411 $as_echo_n "checking if the C++ compiler needs -fhandle-exceptions... " >&6; }
16412 if ${ac_cv_need_handlexceptions+:} false; then :
16413 $as_echo_n "(cached) " >&6
16414 else
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417
16418 int
16419 main ()
16420 {
16421
16422 throw;
16423
16424 ;
16425 return 0;
16426 }
16427 _ACEOF
16428 if ac_fn_cxx_try_compile "$LINENO"; then :
16429 ac_cv_need_handlexceptions=no
16430 else
16431 ac_cv_need_handlexceptions=yes
16432 fi
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434
16435 fi
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_need_handlexceptions" >&5
16437 $as_echo "$ac_cv_need_handlexceptions" >&6; }
16438
16439 if test "$ac_cv_need_handlexceptions" = "yes"
16440 then
16441 case "$CXXFLAGS" in
16442 *handle-exceptions*)
16443 ;;
16444 *)
16445 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
16446 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
16447 ;;
16448 esac
16449 fi
16450
16451 if test "$GCC" = "yes"
16452 then
16453 CFLAGS="-Wall $CFLAGS"
16454 fi
16455
16456 ac_config_files="$ac_config_files Makefile"
16457
16458 cat >confcache <<\_ACEOF
16459 # This file is a shell script that caches the results of configure
16460 # tests run on this system so they can be shared between configure
16461 # scripts and configure runs, see configure's option --config-cache.
16462 # It is not useful on other systems. If it contains results you don't
16463 # want to keep, you may remove or edit it.
16464 #
16465 # config.status only pays attention to the cache file if you give it
16466 # the --recheck option to rerun configure.
16467 #
16468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16470 # following values.
16471
16472 _ACEOF
16473
16474 # The following way of writing the cache mishandles newlines in values,
16475 # but we know of no workaround that is simple, portable, and efficient.
16476 # So, we kill variables containing newlines.
16477 # Ultrix sh set writes to stderr and can't be redirected directly,
16478 # and sets the high bit in the cache file unless we assign to the vars.
16479 (
16480 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16481 eval ac_val=\$$ac_var
16482 case $ac_val in #(
16483 *${as_nl}*)
16484 case $ac_var in #(
16485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16487 esac
16488 case $ac_var in #(
16489 _ | IFS | as_nl) ;; #(
16490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16491 *) { eval $ac_var=; unset $ac_var;} ;;
16492 esac ;;
16493 esac
16494 done
16495
16496 (set) 2>&1 |
16497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16498 *${as_nl}ac_space=\ *)
16499 # `set' does not quote correctly, so add quotes: double-quote
16500 # substitution turns \\\\ into \\, and sed turns \\ into \.
16501 sed -n \
16502 "s/'/'\\\\''/g;
16503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16504 ;; #(
16505 *)
16506 # `set' quotes correctly as required by POSIX, so do not add quotes.
16507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16508 ;;
16509 esac |
16510 sort
16511 ) |
16512 sed '
16513 /^ac_cv_env_/b end
16514 t clear
16515 :clear
16516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16517 t end
16518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16519 :end' >>confcache
16520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16521 if test -w "$cache_file"; then
16522 if test "x$cache_file" != "x/dev/null"; then
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16524 $as_echo "$as_me: updating cache $cache_file" >&6;}
16525 if test ! -f "$cache_file" || test -h "$cache_file"; then
16526 cat confcache >"$cache_file"
16527 else
16528 case $cache_file in #(
16529 */* | ?:*)
16530 mv -f confcache "$cache_file"$$ &&
16531 mv -f "$cache_file"$$ "$cache_file" ;; #(
16532 *)
16533 mv -f confcache "$cache_file" ;;
16534 esac
16535 fi
16536 fi
16537 else
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16540 fi
16541 fi
16542 rm -f confcache
16543
16544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16545 # Let make expand exec_prefix.
16546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16547
16548 DEFS=-DHAVE_CONFIG_H
16549
16550 ac_libobjs=
16551 ac_ltlibobjs=
16552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16553 # 1. Remove the extension, and $U if already installed.
16554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16555 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16557 # will be set to the directory where LIBOBJS objects are built.
16558 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16559 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16560 done
16561 LIBOBJS=$ac_libobjs
16562
16563 LTLIBOBJS=$ac_ltlibobjs
16564
16565
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16567 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16568 if test -n "$am_sleep_pid"; then
16569 # Hide warnings about reused PIDs.
16570 wait $am_sleep_pid 2>/dev/null
16571 fi
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16573 $as_echo "done" >&6; }
16574 if test -n "$EXEEXT"; then
16575 am__EXEEXT_TRUE=
16576 am__EXEEXT_FALSE='#'
16577 else
16578 am__EXEEXT_TRUE='#'
16579 am__EXEEXT_FALSE=
16580 fi
16581
16582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16583 as_fn_error $? "conditional \"AMDEP\" was never defined.
16584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16585 fi
16586 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16587 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16589 fi
16590 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16591 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16593 fi
16594 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16595 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16597 fi
16598 if test -z "${FOUND_DB_TRUE}" && test -z "${FOUND_DB_FALSE}"; then
16599 as_fn_error $? "conditional \"FOUND_DB\" was never defined.
16600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16601 fi
16602
16603 : "${CONFIG_STATUS=./config.status}"
16604 ac_write_fail=0
16605 ac_clean_files_save=$ac_clean_files
16606 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16608 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16609 as_write_fail=0
16610 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16611 #! $SHELL
16612 # Generated by $as_me.
16613 # Run this file to recreate the current configuration.
16614 # Compiler output produced by configure, useful for debugging
16615 # configure, is in config.log if it exists.
16616
16617 debug=false
16618 ac_cs_recheck=false
16619 ac_cs_silent=false
16620
16621 SHELL=\${CONFIG_SHELL-$SHELL}
16622 export SHELL
16623 _ASEOF
16624 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16625 ## -------------------- ##
16626 ## M4sh Initialization. ##
16627 ## -------------------- ##
16628
16629 # Be more Bourne compatible
16630 DUALCASE=1; export DUALCASE # for MKS sh
16631 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16632 emulate sh
16633 NULLCMD=:
16634 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16635 # is contrary to our usage. Disable this feature.
16636 alias -g '${1+"$@"}'='"$@"'
16637 setopt NO_GLOB_SUBST
16638 else
16639 case `(set -o) 2>/dev/null` in #(
16640 *posix*) :
16641 set -o posix ;; #(
16642 *) :
16643 ;;
16644 esac
16645 fi
16646
16647
16648 as_nl='
16649 '
16650 export as_nl
16651 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16652 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16653 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16655 # Prefer a ksh shell builtin over an external printf program on Solaris,
16656 # but without wasting forks for bash or zsh.
16657 if test -z "$BASH_VERSION$ZSH_VERSION" \
16658 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16659 as_echo='print -r --'
16660 as_echo_n='print -rn --'
16661 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16662 as_echo='printf %s\n'
16663 as_echo_n='printf %s'
16664 else
16665 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16666 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16667 as_echo_n='/usr/ucb/echo -n'
16668 else
16669 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16670 as_echo_n_body='eval
16671 arg=$1;
16672 case $arg in #(
16673 *"$as_nl"*)
16674 expr "X$arg" : "X\\(.*\\)$as_nl";
16675 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16676 esac;
16677 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16678 '
16679 export as_echo_n_body
16680 as_echo_n='sh -c $as_echo_n_body as_echo'
16681 fi
16682 export as_echo_body
16683 as_echo='sh -c $as_echo_body as_echo'
16684 fi
16685
16686 # The user is always right.
16687 if test "${PATH_SEPARATOR+set}" != set; then
16688 PATH_SEPARATOR=:
16689 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16690 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16691 PATH_SEPARATOR=';'
16692 }
16693 fi
16694
16695
16696 # IFS
16697 # We need space, tab and new line, in precisely that order. Quoting is
16698 # there to prevent editors from complaining about space-tab.
16699 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16700 # splitting by setting IFS to empty value.)
16701 IFS=" "" $as_nl"
16702
16703 # Find who we are. Look in the path if we contain no directory separator.
16704 as_myself=
16705 case $0 in #((
16706 *[\\/]* ) as_myself=$0 ;;
16707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16708 for as_dir in $PATH
16709 do
16710 IFS=$as_save_IFS
16711 test -z "$as_dir" && as_dir=.
16712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16713 done
16714 IFS=$as_save_IFS
16715
16716 ;;
16717 esac
16718 # We did not find ourselves, most probably we were run as `sh COMMAND'
16719 # in which case we are not to be found in the path.
16720 if test "x$as_myself" = x; then
16721 as_myself=$0
16722 fi
16723 if test ! -f "$as_myself"; then
16724 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16725 exit 1
16726 fi
16727
16728 # Unset variables that we do not need and which cause bugs (e.g. in
16729 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16730 # suppresses any "Segmentation fault" message there. '((' could
16731 # trigger a bug in pdksh 5.2.14.
16732 for as_var in BASH_ENV ENV MAIL MAILPATH
16733 do eval test x\${$as_var+set} = xset \
16734 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16735 done
16736 PS1='$ '
16737 PS2='> '
16738 PS4='+ '
16739
16740 # NLS nuisances.
16741 LC_ALL=C
16742 export LC_ALL
16743 LANGUAGE=C
16744 export LANGUAGE
16745
16746 # CDPATH.
16747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16748
16749
16750 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16751 # ----------------------------------------
16752 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16753 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16754 # script with STATUS, using 1 if that was 0.
16755 as_fn_error ()
16756 {
16757 as_status=$1; test $as_status -eq 0 && as_status=1
16758 if test "$4"; then
16759 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16760 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16761 fi
16762 $as_echo "$as_me: error: $2" >&2
16763 as_fn_exit $as_status
16764 } # as_fn_error
16765
16766
16767 # as_fn_set_status STATUS
16768 # -----------------------
16769 # Set $? to STATUS, without forking.
16770 as_fn_set_status ()
16771 {
16772 return $1
16773 } # as_fn_set_status
16774
16775 # as_fn_exit STATUS
16776 # -----------------
16777 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16778 as_fn_exit ()
16779 {
16780 set +e
16781 as_fn_set_status $1
16782 exit $1
16783 } # as_fn_exit
16784
16785 # as_fn_unset VAR
16786 # ---------------
16787 # Portably unset VAR.
16788 as_fn_unset ()
16789 {
16790 { eval $1=; unset $1;}
16791 }
16792 as_unset=as_fn_unset
16793 # as_fn_append VAR VALUE
16794 # ----------------------
16795 # Append the text in VALUE to the end of the definition contained in VAR. Take
16796 # advantage of any shell optimizations that allow amortized linear growth over
16797 # repeated appends, instead of the typical quadratic growth present in naive
16798 # implementations.
16799 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16800 eval 'as_fn_append ()
16801 {
16802 eval $1+=\$2
16803 }'
16804 else
16805 as_fn_append ()
16806 {
16807 eval $1=\$$1\$2
16808 }
16809 fi # as_fn_append
16810
16811 # as_fn_arith ARG...
16812 # ------------------
16813 # Perform arithmetic evaluation on the ARGs, and store the result in the
16814 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16815 # must be portable across $(()) and expr.
16816 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16817 eval 'as_fn_arith ()
16818 {
16819 as_val=$(( $* ))
16820 }'
16821 else
16822 as_fn_arith ()
16823 {
16824 as_val=`expr "$@" || test $? -eq 1`
16825 }
16826 fi # as_fn_arith
16827
16828
16829 if expr a : '\(a\)' >/dev/null 2>&1 &&
16830 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16831 as_expr=expr
16832 else
16833 as_expr=false
16834 fi
16835
16836 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16837 as_basename=basename
16838 else
16839 as_basename=false
16840 fi
16841
16842 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16843 as_dirname=dirname
16844 else
16845 as_dirname=false
16846 fi
16847
16848 as_me=`$as_basename -- "$0" ||
16849 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16850 X"$0" : 'X\(//\)$' \| \
16851 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16852 $as_echo X/"$0" |
16853 sed '/^.*\/\([^/][^/]*\)\/*$/{
16854 s//\1/
16855 q
16856 }
16857 /^X\/\(\/\/\)$/{
16858 s//\1/
16859 q
16860 }
16861 /^X\/\(\/\).*/{
16862 s//\1/
16863 q
16864 }
16865 s/.*/./; q'`
16866
16867 # Avoid depending upon Character Ranges.
16868 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16869 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16870 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16871 as_cr_digits='0123456789'
16872 as_cr_alnum=$as_cr_Letters$as_cr_digits
16873
16874 ECHO_C= ECHO_N= ECHO_T=
16875 case `echo -n x` in #(((((
16876 -n*)
16877 case `echo 'xy\c'` in
16878 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16879 xy) ECHO_C='\c';;
16880 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16881 ECHO_T=' ';;
16882 esac;;
16883 *)
16884 ECHO_N='-n';;
16885 esac
16886
16887 rm -f conf$$ conf$$.exe conf$$.file
16888 if test -d conf$$.dir; then
16889 rm -f conf$$.dir/conf$$.file
16890 else
16891 rm -f conf$$.dir
16892 mkdir conf$$.dir 2>/dev/null
16893 fi
16894 if (echo >conf$$.file) 2>/dev/null; then
16895 if ln -s conf$$.file conf$$ 2>/dev/null; then
16896 as_ln_s='ln -s'
16897 # ... but there are two gotchas:
16898 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16899 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16900 # In both cases, we have to default to `cp -pR'.
16901 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16902 as_ln_s='cp -pR'
16903 elif ln conf$$.file conf$$ 2>/dev/null; then
16904 as_ln_s=ln
16905 else
16906 as_ln_s='cp -pR'
16907 fi
16908 else
16909 as_ln_s='cp -pR'
16910 fi
16911 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16912 rmdir conf$$.dir 2>/dev/null
16913
16914
16915 # as_fn_mkdir_p
16916 # -------------
16917 # Create "$as_dir" as a directory, including parents if necessary.
16918 as_fn_mkdir_p ()
16919 {
16920
16921 case $as_dir in #(
16922 -*) as_dir=./$as_dir;;
16923 esac
16924 test -d "$as_dir" || eval $as_mkdir_p || {
16925 as_dirs=
16926 while :; do
16927 case $as_dir in #(
16928 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16929 *) as_qdir=$as_dir;;
16930 esac
16931 as_dirs="'$as_qdir' $as_dirs"
16932 as_dir=`$as_dirname -- "$as_dir" ||
16933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16934 X"$as_dir" : 'X\(//\)[^/]' \| \
16935 X"$as_dir" : 'X\(//\)$' \| \
16936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16937 $as_echo X"$as_dir" |
16938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16939 s//\1/
16940 q
16941 }
16942 /^X\(\/\/\)[^/].*/{
16943 s//\1/
16944 q
16945 }
16946 /^X\(\/\/\)$/{
16947 s//\1/
16948 q
16949 }
16950 /^X\(\/\).*/{
16951 s//\1/
16952 q
16953 }
16954 s/.*/./; q'`
16955 test -d "$as_dir" && break
16956 done
16957 test -z "$as_dirs" || eval "mkdir $as_dirs"
16958 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16959
16960
16961 } # as_fn_mkdir_p
16962 if mkdir -p . 2>/dev/null; then
16963 as_mkdir_p='mkdir -p "$as_dir"'
16964 else
16965 test -d ./-p && rmdir ./-p
16966 as_mkdir_p=false
16967 fi
16968
16969
16970 # as_fn_executable_p FILE
16971 # -----------------------
16972 # Test if FILE is an executable regular file.
16973 as_fn_executable_p ()
16974 {
16975 test -f "$1" && test -x "$1"
16976 } # as_fn_executable_p
16977 as_test_x='test -x'
16978 as_executable_p=as_fn_executable_p
16979
16980 # Sed expression to map a string onto a valid CPP name.
16981 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16982
16983 # Sed expression to map a string onto a valid variable name.
16984 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16985
16986
16987 exec 6>&1
16988 ## ----------------------------------- ##
16989 ## Main body of $CONFIG_STATUS script. ##
16990 ## ----------------------------------- ##
16991 _ASEOF
16992 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16993
16994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16995 # Save the log message, to keep $0 and so on meaningful, and to
16996 # report actual input values of CONFIG_FILES etc. instead of their
16997 # values after options handling.
16998 ac_log="
16999 This file was extended by bdbobj $as_me 0.10, which was
17000 generated by GNU Autoconf 2.69. Invocation command line was
17001
17002 CONFIG_FILES = $CONFIG_FILES
17003 CONFIG_HEADERS = $CONFIG_HEADERS
17004 CONFIG_LINKS = $CONFIG_LINKS
17005 CONFIG_COMMANDS = $CONFIG_COMMANDS
17006 $ $0 $@
17007
17008 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17009 "
17010
17011 _ACEOF
17012
17013 case $ac_config_files in *"
17014 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17015 esac
17016
17017 case $ac_config_headers in *"
17018 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17019 esac
17020
17021
17022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17023 # Files that config.status was made for.
17024 config_files="$ac_config_files"
17025 config_headers="$ac_config_headers"
17026 config_commands="$ac_config_commands"
17027
17028 _ACEOF
17029
17030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17031 ac_cs_usage="\
17032 \`$as_me' instantiates files and other configuration actions
17033 from templates according to the current configuration. Unless the files
17034 and actions are specified as TAGs, all are instantiated by default.
17035
17036 Usage: $0 [OPTION]... [TAG]...
17037
17038 -h, --help print this help, then exit
17039 -V, --version print version number and configuration settings, then exit
17040 --config print configuration, then exit
17041 -q, --quiet, --silent
17042 do not print progress messages
17043 -d, --debug don't remove temporary files
17044 --recheck update $as_me by reconfiguring in the same conditions
17045 --file=FILE[:TEMPLATE]
17046 instantiate the configuration file FILE
17047 --header=FILE[:TEMPLATE]
17048 instantiate the configuration header FILE
17049
17050 Configuration files:
17051 $config_files
17052
17053 Configuration headers:
17054 $config_headers
17055
17056 Configuration commands:
17057 $config_commands
17058
17059 Report bugs to <courier-users@lists.sourceforge.net>."
17060
17061 _ACEOF
17062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17063 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17064 ac_cs_version="\\
17065 bdbobj config.status 0.10
17066 configured by $0, generated by GNU Autoconf 2.69,
17067 with options \\"\$ac_cs_config\\"
17068
17069 Copyright (C) 2012 Free Software Foundation, Inc.
17070 This config.status script is free software; the Free Software Foundation
17071 gives unlimited permission to copy, distribute and modify it."
17072
17073 ac_pwd='$ac_pwd'
17074 srcdir='$srcdir'
17075 INSTALL='$INSTALL'
17076 MKDIR_P='$MKDIR_P'
17077 AWK='$AWK'
17078 test -n "\$AWK" || AWK=awk
17079 _ACEOF
17080
17081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17082 # The default lists apply if the user does not specify any file.
17083 ac_need_defaults=:
17084 while test $# != 0
17085 do
17086 case $1 in
17087 --*=?*)
17088 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17089 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17090 ac_shift=:
17091 ;;
17092 --*=)
17093 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17094 ac_optarg=
17095 ac_shift=:
17096 ;;
17097 *)
17098 ac_option=$1
17099 ac_optarg=$2
17100 ac_shift=shift
17101 ;;
17102 esac
17103
17104 case $ac_option in
17105 # Handling of the options.
17106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17107 ac_cs_recheck=: ;;
17108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17109 $as_echo "$ac_cs_version"; exit ;;
17110 --config | --confi | --conf | --con | --co | --c )
17111 $as_echo "$ac_cs_config"; exit ;;
17112 --debug | --debu | --deb | --de | --d | -d )
17113 debug=: ;;
17114 --file | --fil | --fi | --f )
17115 $ac_shift
17116 case $ac_optarg in
17117 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17118 '') as_fn_error $? "missing file argument" ;;
17119 esac
17120 as_fn_append CONFIG_FILES " '$ac_optarg'"
17121 ac_need_defaults=false;;
17122 --header | --heade | --head | --hea )
17123 $ac_shift
17124 case $ac_optarg in
17125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17126 esac
17127 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17128 ac_need_defaults=false;;
17129 --he | --h)
17130 # Conflict between --help and --header
17131 as_fn_error $? "ambiguous option: \`$1'
17132 Try \`$0 --help' for more information.";;
17133 --help | --hel | -h )
17134 $as_echo "$ac_cs_usage"; exit ;;
17135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17136 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17137 ac_cs_silent=: ;;
17138
17139 # This is an error.
17140 -*) as_fn_error $? "unrecognized option: \`$1'
17141 Try \`$0 --help' for more information." ;;
17142
17143 *) as_fn_append ac_config_targets " $1"
17144 ac_need_defaults=false ;;
17145
17146 esac
17147 shift
17148 done
17149
17150 ac_configure_extra_args=
17151
17152 if $ac_cs_silent; then
17153 exec 6>/dev/null
17154 ac_configure_extra_args="$ac_configure_extra_args --silent"
17155 fi
17156
17157 _ACEOF
17158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17159 if \$ac_cs_recheck; then
17160 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17161 shift
17162 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17163 CONFIG_SHELL='$SHELL'
17164 export CONFIG_SHELL
17165 exec "\$@"
17166 fi
17167
17168 _ACEOF
17169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17170 exec 5>>config.log
17171 {
17172 echo
17173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17174 ## Running $as_me. ##
17175 _ASBOX
17176 $as_echo "$ac_log"
17177 } >&5
17178
17179 _ACEOF
17180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17181 #
17182 # INIT-COMMANDS
17183 #
17184 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17185
17186
17187 # The HP-UX ksh and POSIX shell print the target directory to stdout
17188 # if CDPATH is set.
17189 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17190
17191 sed_quote_subst='$sed_quote_subst'
17192 double_quote_subst='$double_quote_subst'
17193 delay_variable_subst='$delay_variable_subst'
17194 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17195 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17196 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17197 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17198 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17199 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17200 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17201 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17202 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17203 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17204 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17205 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17206 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17207 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17208 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17209 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17210 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17211 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17212 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17213 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17214 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17215 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17216 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17217 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17218 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17219 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17220 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17221 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17222 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17223 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17224 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17225 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17226 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17227 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17228 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17229 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17230 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17231 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17232 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17233 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17234 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17235 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17236 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17237 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17238 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17239 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17240 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17241 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17242 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17243 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17244 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17245 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17246 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17247 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17248 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17249 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17250 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"`'
17251 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17252 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17253 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17254 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17255 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17256 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17257 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17258 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17259 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17260 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17261 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17262 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17263 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17264 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17265 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17266 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17267 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17268 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17269 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17270 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17271 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17272 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17273 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17274 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17275 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17276 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17277 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17278 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17279 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17280 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17281 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17282 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17283 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17284 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17285 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17286 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17287 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17288 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17289 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17290 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17291 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17292 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17293 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17294 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17295 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17296 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17297 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17298 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17299 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17300 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17301 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17302 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17303 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17304 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17305 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17306 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17307 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17308 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17309 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17310 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17311 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17312 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17313 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17314 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17315 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17316 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17317 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17318 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17319 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17320 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17321 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17322 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17323 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17324 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17325 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17326 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17327 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17328 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17329 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17330 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17331 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17332 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17333 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17334 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17335 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17336 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17337 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17338 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17339 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17340 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17341 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17342 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17343 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17344 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17345 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17346 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17347 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17348 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17349 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17350 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17351 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17352 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17353 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17354 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17355 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17356 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17357 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17358 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17359 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17360 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17361 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17362 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17363 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17364 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17365 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17366 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17367 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17368 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17369 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17370 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17371 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17372 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17373 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17374 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17375 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17376 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17377 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17378
17379 LTCC='$LTCC'
17380 LTCFLAGS='$LTCFLAGS'
17381 compiler='$compiler_DEFAULT'
17382
17383 # A function that is used when there is no print builtin or printf.
17384 func_fallback_echo ()
17385 {
17386 eval 'cat <<_LTECHO_EOF
17387 \$1
17388 _LTECHO_EOF'
17389 }
17390
17391 # Quote evaled strings.
17392 for var in SHELL \
17393 ECHO \
17394 PATH_SEPARATOR \
17395 SED \
17396 GREP \
17397 EGREP \
17398 FGREP \
17399 LD \
17400 NM \
17401 LN_S \
17402 lt_SP2NL \
17403 lt_NL2SP \
17404 reload_flag \
17405 OBJDUMP \
17406 deplibs_check_method \
17407 file_magic_cmd \
17408 file_magic_glob \
17409 want_nocaseglob \
17410 DLLTOOL \
17411 sharedlib_from_linklib_cmd \
17412 AR \
17413 AR_FLAGS \
17414 archiver_list_spec \
17415 STRIP \
17416 RANLIB \
17417 CC \
17418 CFLAGS \
17419 compiler \
17420 lt_cv_sys_global_symbol_pipe \
17421 lt_cv_sys_global_symbol_to_cdecl \
17422 lt_cv_sys_global_symbol_to_c_name_address \
17423 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17424 nm_file_list_spec \
17425 lt_prog_compiler_no_builtin_flag \
17426 lt_prog_compiler_pic \
17427 lt_prog_compiler_wl \
17428 lt_prog_compiler_static \
17429 lt_cv_prog_compiler_c_o \
17430 need_locks \
17431 MANIFEST_TOOL \
17432 DSYMUTIL \
17433 NMEDIT \
17434 LIPO \
17435 OTOOL \
17436 OTOOL64 \
17437 shrext_cmds \
17438 export_dynamic_flag_spec \
17439 whole_archive_flag_spec \
17440 compiler_needs_object \
17441 with_gnu_ld \
17442 allow_undefined_flag \
17443 no_undefined_flag \
17444 hardcode_libdir_flag_spec \
17445 hardcode_libdir_separator \
17446 exclude_expsyms \
17447 include_expsyms \
17448 file_list_spec \
17449 variables_saved_for_relink \
17450 libname_spec \
17451 library_names_spec \
17452 soname_spec \
17453 install_override_mode \
17454 finish_eval \
17455 old_striplib \
17456 striplib \
17457 compiler_lib_search_dirs \
17458 predep_objects \
17459 postdep_objects \
17460 predeps \
17461 postdeps \
17462 compiler_lib_search_path \
17463 LD_CXX \
17464 reload_flag_CXX \
17465 compiler_CXX \
17466 lt_prog_compiler_no_builtin_flag_CXX \
17467 lt_prog_compiler_pic_CXX \
17468 lt_prog_compiler_wl_CXX \
17469 lt_prog_compiler_static_CXX \
17470 lt_cv_prog_compiler_c_o_CXX \
17471 export_dynamic_flag_spec_CXX \
17472 whole_archive_flag_spec_CXX \
17473 compiler_needs_object_CXX \
17474 with_gnu_ld_CXX \
17475 allow_undefined_flag_CXX \
17476 no_undefined_flag_CXX \
17477 hardcode_libdir_flag_spec_CXX \
17478 hardcode_libdir_separator_CXX \
17479 exclude_expsyms_CXX \
17480 include_expsyms_CXX \
17481 file_list_spec_CXX \
17482 compiler_lib_search_dirs_CXX \
17483 predep_objects_CXX \
17484 postdep_objects_CXX \
17485 predeps_CXX \
17486 postdeps_CXX \
17487 compiler_lib_search_path_CXX; do
17488 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17489 *[\\\\\\\`\\"\\\$]*)
17490 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17491 ;;
17492 *)
17493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17494 ;;
17495 esac
17496 done
17497
17498 # Double-quote double-evaled strings.
17499 for var in reload_cmds \
17500 old_postinstall_cmds \
17501 old_postuninstall_cmds \
17502 old_archive_cmds \
17503 extract_expsyms_cmds \
17504 old_archive_from_new_cmds \
17505 old_archive_from_expsyms_cmds \
17506 archive_cmds \
17507 archive_expsym_cmds \
17508 module_cmds \
17509 module_expsym_cmds \
17510 export_symbols_cmds \
17511 prelink_cmds \
17512 postlink_cmds \
17513 postinstall_cmds \
17514 postuninstall_cmds \
17515 finish_cmds \
17516 sys_lib_search_path_spec \
17517 sys_lib_dlsearch_path_spec \
17518 reload_cmds_CXX \
17519 old_archive_cmds_CXX \
17520 old_archive_from_new_cmds_CXX \
17521 old_archive_from_expsyms_cmds_CXX \
17522 archive_cmds_CXX \
17523 archive_expsym_cmds_CXX \
17524 module_cmds_CXX \
17525 module_expsym_cmds_CXX \
17526 export_symbols_cmds_CXX \
17527 prelink_cmds_CXX \
17528 postlink_cmds_CXX; do
17529 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17530 *[\\\\\\\`\\"\\\$]*)
17531 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17532 ;;
17533 *)
17534 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17535 ;;
17536 esac
17537 done
17538
17539 ac_aux_dir='$ac_aux_dir'
17540 xsi_shell='$xsi_shell'
17541 lt_shell_append='$lt_shell_append'
17542
17543 # See if we are running on zsh, and set the options which allow our
17544 # commands through without removal of \ escapes INIT.
17545 if test -n "\${ZSH_VERSION+set}" ; then
17546 setopt NO_GLOB_SUBST
17547 fi
17548
17549
17550 PACKAGE='$PACKAGE'
17551 VERSION='$VERSION'
17552 TIMESTAMP='$TIMESTAMP'
17553 RM='$RM'
17554 ofile='$ofile'
17555
17556
17557
17558
17559
17560
17561 _ACEOF
17562
17563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17564
17565 # Handling of arguments.
17566 for ac_config_target in $ac_config_targets
17567 do
17568 case $ac_config_target in
17569 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17570 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17571 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17572 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17573
17574 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17575 esac
17576 done
17577
17578
17579 # If the user did not use the arguments to specify the items to instantiate,
17580 # then the envvar interface is used. Set only those that are not.
17581 # We use the long form for the default assignment because of an extremely
17582 # bizarre bug on SunOS 4.1.3.
17583 if $ac_need_defaults; then
17584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17586 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17587 fi
17588
17589 # Have a temporary directory for convenience. Make it in the build tree
17590 # simply because there is no reason against having it here, and in addition,
17591 # creating and moving files from /tmp can sometimes cause problems.
17592 # Hook for its removal unless debugging.
17593 # Note that there is a small window in which the directory will not be cleaned:
17594 # after its creation but before its name has been assigned to `$tmp'.
17595 $debug ||
17596 {
17597 tmp= ac_tmp=
17598 trap 'exit_status=$?
17599 : "${ac_tmp:=$tmp}"
17600 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17601 ' 0
17602 trap 'as_fn_exit 1' 1 2 13 15
17603 }
17604 # Create a (secure) tmp directory for tmp files.
17605
17606 {
17607 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17608 test -d "$tmp"
17609 } ||
17610 {
17611 tmp=./conf$$-$RANDOM
17612 (umask 077 && mkdir "$tmp")
17613 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17614 ac_tmp=$tmp
17615
17616 # Set up the scripts for CONFIG_FILES section.
17617 # No need to generate them if there are no CONFIG_FILES.
17618 # This happens for instance with `./config.status config.h'.
17619 if test -n "$CONFIG_FILES"; then
17620
17621
17622 ac_cr=`echo X | tr X '\015'`
17623 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17624 # But we know of no other shell where ac_cr would be empty at this
17625 # point, so we can use a bashism as a fallback.
17626 if test "x$ac_cr" = x; then
17627 eval ac_cr=\$\'\\r\'
17628 fi
17629 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17630 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17631 ac_cs_awk_cr='\\r'
17632 else
17633 ac_cs_awk_cr=$ac_cr
17634 fi
17635
17636 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17637 _ACEOF
17638
17639
17640 {
17641 echo "cat >conf$$subs.awk <<_ACEOF" &&
17642 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17643 echo "_ACEOF"
17644 } >conf$$subs.sh ||
17645 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17646 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17647 ac_delim='%!_!# '
17648 for ac_last_try in false false false false false :; do
17649 . ./conf$$subs.sh ||
17650 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17651
17652 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17653 if test $ac_delim_n = $ac_delim_num; then
17654 break
17655 elif $ac_last_try; then
17656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17657 else
17658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17659 fi
17660 done
17661 rm -f conf$$subs.sh
17662
17663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17664 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17665 _ACEOF
17666 sed -n '
17667 h
17668 s/^/S["/; s/!.*/"]=/
17669 p
17670 g
17671 s/^[^!]*!//
17672 :repl
17673 t repl
17674 s/'"$ac_delim"'$//
17675 t delim
17676 :nl
17677 h
17678 s/\(.\{148\}\)..*/\1/
17679 t more1
17680 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17681 p
17682 n
17683 b repl
17684 :more1
17685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17686 p
17687 g
17688 s/.\{148\}//
17689 t nl
17690 :delim
17691 h
17692 s/\(.\{148\}\)..*/\1/
17693 t more2
17694 s/["\\]/\\&/g; s/^/"/; s/$/"/
17695 p
17696 b
17697 :more2
17698 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17699 p
17700 g
17701 s/.\{148\}//
17702 t delim
17703 ' <conf$$subs.awk | sed '
17704 /^[^""]/{
17705 N
17706 s/\n//
17707 }
17708 ' >>$CONFIG_STATUS || ac_write_fail=1
17709 rm -f conf$$subs.awk
17710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17711 _ACAWK
17712 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17713 for (key in S) S_is_set[key] = 1
17714 FS = "\a"
17715
17716 }
17717 {
17718 line = $ 0
17719 nfields = split(line, field, "@")
17720 substed = 0
17721 len = length(field[1])
17722 for (i = 2; i < nfields; i++) {
17723 key = field[i]
17724 keylen = length(key)
17725 if (S_is_set[key]) {
17726 value = S[key]
17727 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17728 len += length(value) + length(field[++i])
17729 substed = 1
17730 } else
17731 len += 1 + keylen
17732 }
17733
17734 print line
17735 }
17736
17737 _ACAWK
17738 _ACEOF
17739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17740 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17741 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17742 else
17743 cat
17744 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17745 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17746 _ACEOF
17747
17748 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17749 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17750 # trailing colons and then remove the whole line if VPATH becomes empty
17751 # (actually we leave an empty line to preserve line numbers).
17752 if test "x$srcdir" = x.; then
17753 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17754 h
17755 s///
17756 s/^/:/
17757 s/[ ]*$/:/
17758 s/:\$(srcdir):/:/g
17759 s/:\${srcdir}:/:/g
17760 s/:@srcdir@:/:/g
17761 s/^:*//
17762 s/:*$//
17763 x
17764 s/\(=[ ]*\).*/\1/
17765 G
17766 s/\n//
17767 s/^[^=]*=[ ]*$//
17768 }'
17769 fi
17770
17771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17772 fi # test -n "$CONFIG_FILES"
17773
17774 # Set up the scripts for CONFIG_HEADERS section.
17775 # No need to generate them if there are no CONFIG_HEADERS.
17776 # This happens for instance with `./config.status Makefile'.
17777 if test -n "$CONFIG_HEADERS"; then
17778 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17779 BEGIN {
17780 _ACEOF
17781
17782 # Transform confdefs.h into an awk script `defines.awk', embedded as
17783 # here-document in config.status, that substitutes the proper values into
17784 # config.h.in to produce config.h.
17785
17786 # Create a delimiter string that does not exist in confdefs.h, to ease
17787 # handling of long lines.
17788 ac_delim='%!_!# '
17789 for ac_last_try in false false :; do
17790 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17791 if test -z "$ac_tt"; then
17792 break
17793 elif $ac_last_try; then
17794 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17795 else
17796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17797 fi
17798 done
17799
17800 # For the awk script, D is an array of macro values keyed by name,
17801 # likewise P contains macro parameters if any. Preserve backslash
17802 # newline sequences.
17803
17804 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17805 sed -n '
17806 s/.\{148\}/&'"$ac_delim"'/g
17807 t rset
17808 :rset
17809 s/^[ ]*#[ ]*define[ ][ ]*/ /
17810 t def
17811 d
17812 :def
17813 s/\\$//
17814 t bsnl
17815 s/["\\]/\\&/g
17816 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17817 D["\1"]=" \3"/p
17818 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17819 d
17820 :bsnl
17821 s/["\\]/\\&/g
17822 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17823 D["\1"]=" \3\\\\\\n"\\/p
17824 t cont
17825 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17826 t cont
17827 d
17828 :cont
17829 n
17830 s/.\{148\}/&'"$ac_delim"'/g
17831 t clear
17832 :clear
17833 s/\\$//
17834 t bsnlc
17835 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17836 d
17837 :bsnlc
17838 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17839 b cont
17840 ' <confdefs.h | sed '
17841 s/'"$ac_delim"'/"\\\
17842 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17843
17844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17845 for (key in D) D_is_set[key] = 1
17846 FS = "\a"
17847 }
17848 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17849 line = \$ 0
17850 split(line, arg, " ")
17851 if (arg[1] == "#") {
17852 defundef = arg[2]
17853 mac1 = arg[3]
17854 } else {
17855 defundef = substr(arg[1], 2)
17856 mac1 = arg[2]
17857 }
17858 split(mac1, mac2, "(") #)
17859 macro = mac2[1]
17860 prefix = substr(line, 1, index(line, defundef) - 1)
17861 if (D_is_set[macro]) {
17862 # Preserve the white space surrounding the "#".
17863 print prefix "define", macro P[macro] D[macro]
17864 next
17865 } else {
17866 # Replace #undef with comments. This is necessary, for example,
17867 # in the case of _POSIX_SOURCE, which is predefined and required
17868 # on some systems where configure will not decide to define it.
17869 if (defundef == "undef") {
17870 print "/*", prefix defundef, macro, "*/"
17871 next
17872 }
17873 }
17874 }
17875 { print }
17876 _ACAWK
17877 _ACEOF
17878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17879 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17880 fi # test -n "$CONFIG_HEADERS"
17881
17882
17883 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17884 shift
17885 for ac_tag
17886 do
17887 case $ac_tag in
17888 :[FHLC]) ac_mode=$ac_tag; continue;;
17889 esac
17890 case $ac_mode$ac_tag in
17891 :[FHL]*:*);;
17892 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17893 :[FH]-) ac_tag=-:-;;
17894 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17895 esac
17896 ac_save_IFS=$IFS
17897 IFS=:
17898 set x $ac_tag
17899 IFS=$ac_save_IFS
17900 shift
17901 ac_file=$1
17902 shift
17903
17904 case $ac_mode in
17905 :L) ac_source=$1;;
17906 :[FH])
17907 ac_file_inputs=
17908 for ac_f
17909 do
17910 case $ac_f in
17911 -) ac_f="$ac_tmp/stdin";;
17912 *) # Look for the file first in the build tree, then in the source tree
17913 # (if the path is not absolute). The absolute path cannot be DOS-style,
17914 # because $ac_f cannot contain `:'.
17915 test -f "$ac_f" ||
17916 case $ac_f in
17917 [\\/$]*) false;;
17918 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17919 esac ||
17920 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17921 esac
17922 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17923 as_fn_append ac_file_inputs " '$ac_f'"
17924 done
17925
17926 # Let's still pretend it is `configure' which instantiates (i.e., don't
17927 # use $as_me), people would be surprised to read:
17928 # /* config.h. Generated by config.status. */
17929 configure_input='Generated from '`
17930 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17931 `' by configure.'
17932 if test x"$ac_file" != x-; then
17933 configure_input="$ac_file. $configure_input"
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17935 $as_echo "$as_me: creating $ac_file" >&6;}
17936 fi
17937 # Neutralize special characters interpreted by sed in replacement strings.
17938 case $configure_input in #(
17939 *\&* | *\|* | *\\* )
17940 ac_sed_conf_input=`$as_echo "$configure_input" |
17941 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17942 *) ac_sed_conf_input=$configure_input;;
17943 esac
17944
17945 case $ac_tag in
17946 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17948 esac
17949 ;;
17950 esac
17951
17952 ac_dir=`$as_dirname -- "$ac_file" ||
17953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17954 X"$ac_file" : 'X\(//\)[^/]' \| \
17955 X"$ac_file" : 'X\(//\)$' \| \
17956 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17957 $as_echo X"$ac_file" |
17958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17959 s//\1/
17960 q
17961 }
17962 /^X\(\/\/\)[^/].*/{
17963 s//\1/
17964 q
17965 }
17966 /^X\(\/\/\)$/{
17967 s//\1/
17968 q
17969 }
17970 /^X\(\/\).*/{
17971 s//\1/
17972 q
17973 }
17974 s/.*/./; q'`
17975 as_dir="$ac_dir"; as_fn_mkdir_p
17976 ac_builddir=.
17977
17978 case "$ac_dir" in
17979 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17980 *)
17981 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17982 # A ".." for each directory in $ac_dir_suffix.
17983 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17984 case $ac_top_builddir_sub in
17985 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17986 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17987 esac ;;
17988 esac
17989 ac_abs_top_builddir=$ac_pwd
17990 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17991 # for backward compatibility:
17992 ac_top_builddir=$ac_top_build_prefix
17993
17994 case $srcdir in
17995 .) # We are building in place.
17996 ac_srcdir=.
17997 ac_top_srcdir=$ac_top_builddir_sub
17998 ac_abs_top_srcdir=$ac_pwd ;;
17999 [\\/]* | ?:[\\/]* ) # Absolute name.
18000 ac_srcdir=$srcdir$ac_dir_suffix;
18001 ac_top_srcdir=$srcdir
18002 ac_abs_top_srcdir=$srcdir ;;
18003 *) # Relative name.
18004 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18005 ac_top_srcdir=$ac_top_build_prefix$srcdir
18006 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18007 esac
18008 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18009
18010
18011 case $ac_mode in
18012 :F)
18013 #
18014 # CONFIG_FILE
18015 #
18016
18017 case $INSTALL in
18018 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18019 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18020 esac
18021 ac_MKDIR_P=$MKDIR_P
18022 case $MKDIR_P in
18023 [\\/$]* | ?:[\\/]* ) ;;
18024 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18025 esac
18026 _ACEOF
18027
18028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18029 # If the template does not know about datarootdir, expand it.
18030 # FIXME: This hack should be removed a few years after 2.60.
18031 ac_datarootdir_hack=; ac_datarootdir_seen=
18032 ac_sed_dataroot='
18033 /datarootdir/ {
18034 p
18035 q
18036 }
18037 /@datadir@/p
18038 /@docdir@/p
18039 /@infodir@/p
18040 /@localedir@/p
18041 /@mandir@/p'
18042 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18043 *datarootdir*) ac_datarootdir_seen=yes;;
18044 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18046 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18047 _ACEOF
18048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18049 ac_datarootdir_hack='
18050 s&@datadir@&$datadir&g
18051 s&@docdir@&$docdir&g
18052 s&@infodir@&$infodir&g
18053 s&@localedir@&$localedir&g
18054 s&@mandir@&$mandir&g
18055 s&\\\${datarootdir}&$datarootdir&g' ;;
18056 esac
18057 _ACEOF
18058
18059 # Neutralize VPATH when `$srcdir' = `.'.
18060 # Shell code in configure.ac might set extrasub.
18061 # FIXME: do we really want to maintain this feature?
18062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18063 ac_sed_extra="$ac_vpsub
18064 $extrasub
18065 _ACEOF
18066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18067 :t
18068 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18069 s|@configure_input@|$ac_sed_conf_input|;t t
18070 s&@top_builddir@&$ac_top_builddir_sub&;t t
18071 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18072 s&@srcdir@&$ac_srcdir&;t t
18073 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18074 s&@top_srcdir@&$ac_top_srcdir&;t t
18075 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18076 s&@builddir@&$ac_builddir&;t t
18077 s&@abs_builddir@&$ac_abs_builddir&;t t
18078 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18079 s&@INSTALL@&$ac_INSTALL&;t t
18080 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18081 $ac_datarootdir_hack
18082 "
18083 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18084 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18085
18086 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18087 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18088 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18089 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18091 which seems to be undefined. Please make sure it is defined" >&5
18092 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18093 which seems to be undefined. Please make sure it is defined" >&2;}
18094
18095 rm -f "$ac_tmp/stdin"
18096 case $ac_file in
18097 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18098 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18099 esac \
18100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18101 ;;
18102 :H)
18103 #
18104 # CONFIG_HEADER
18105 #
18106 if test x"$ac_file" != x-; then
18107 {
18108 $as_echo "/* $configure_input */" \
18109 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18110 } >"$ac_tmp/config.h" \
18111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18112 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18114 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18115 else
18116 rm -f "$ac_file"
18117 mv "$ac_tmp/config.h" "$ac_file" \
18118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18119 fi
18120 else
18121 $as_echo "/* $configure_input */" \
18122 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18123 || as_fn_error $? "could not create -" "$LINENO" 5
18124 fi
18125 # Compute "$ac_file"'s index in $config_headers.
18126 _am_arg="$ac_file"
18127 _am_stamp_count=1
18128 for _am_header in $config_headers :; do
18129 case $_am_header in
18130 $_am_arg | $_am_arg:* )
18131 break ;;
18132 * )
18133 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18134 esac
18135 done
18136 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18137 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18138 X"$_am_arg" : 'X\(//\)[^/]' \| \
18139 X"$_am_arg" : 'X\(//\)$' \| \
18140 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18141 $as_echo X"$_am_arg" |
18142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18143 s//\1/
18144 q
18145 }
18146 /^X\(\/\/\)[^/].*/{
18147 s//\1/
18148 q
18149 }
18150 /^X\(\/\/\)$/{
18151 s//\1/
18152 q
18153 }
18154 /^X\(\/\).*/{
18155 s//\1/
18156 q
18157 }
18158 s/.*/./; q'`/stamp-h$_am_stamp_count
18159 ;;
18160
18161 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18162 $as_echo "$as_me: executing $ac_file commands" >&6;}
18163 ;;
18164 esac
18165
18166
18167 case $ac_file$ac_mode in
18168 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18169 # Older Autoconf quotes --file arguments for eval, but not when files
18170 # are listed without --file. Let's play safe and only enable the eval
18171 # if we detect the quoting.
18172 case $CONFIG_FILES in
18173 *\'*) eval set x "$CONFIG_FILES" ;;
18174 *) set x $CONFIG_FILES ;;
18175 esac
18176 shift
18177 for mf
18178 do
18179 # Strip MF so we end up with the name of the file.
18180 mf=`echo "$mf" | sed -e 's/:.*$//'`
18181 # Check whether this is an Automake generated Makefile or not.
18182 # We used to match only the files named 'Makefile.in', but
18183 # some people rename them; so instead we look at the file content.
18184 # Grep'ing the first line is not enough: some people post-process
18185 # each Makefile.in and add a new line on top of each file to say so.
18186 # Grep'ing the whole file is not good either: AIX grep has a line
18187 # limit of 2048, but all sed's we know have understand at least 4000.
18188 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18189 dirpart=`$as_dirname -- "$mf" ||
18190 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18191 X"$mf" : 'X\(//\)[^/]' \| \
18192 X"$mf" : 'X\(//\)$' \| \
18193 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18194 $as_echo X"$mf" |
18195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18196 s//\1/
18197 q
18198 }
18199 /^X\(\/\/\)[^/].*/{
18200 s//\1/
18201 q
18202 }
18203 /^X\(\/\/\)$/{
18204 s//\1/
18205 q
18206 }
18207 /^X\(\/\).*/{
18208 s//\1/
18209 q
18210 }
18211 s/.*/./; q'`
18212 else
18213 continue
18214 fi
18215 # Extract the definition of DEPDIR, am__include, and am__quote
18216 # from the Makefile without running 'make'.
18217 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18218 test -z "$DEPDIR" && continue
18219 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18220 test -z "$am__include" && continue
18221 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18222 # Find all dependency output files, they are included files with
18223 # $(DEPDIR) in their names. We invoke sed twice because it is the
18224 # simplest approach to changing $(DEPDIR) to its actual value in the
18225 # expansion.
18226 for file in `sed -n "
18227 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18228 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18229 # Make sure the directory exists.
18230 test -f "$dirpart/$file" && continue
18231 fdir=`$as_dirname -- "$file" ||
18232 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18233 X"$file" : 'X\(//\)[^/]' \| \
18234 X"$file" : 'X\(//\)$' \| \
18235 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18236 $as_echo X"$file" |
18237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18238 s//\1/
18239 q
18240 }
18241 /^X\(\/\/\)[^/].*/{
18242 s//\1/
18243 q
18244 }
18245 /^X\(\/\/\)$/{
18246 s//\1/
18247 q
18248 }
18249 /^X\(\/\).*/{
18250 s//\1/
18251 q
18252 }
18253 s/.*/./; q'`
18254 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18255 # echo "creating $dirpart/$file"
18256 echo '# dummy' > "$dirpart/$file"
18257 done
18258 done
18259 }
18260 ;;
18261 "libtool":C)
18262
18263 # See if we are running on zsh, and set the options which allow our
18264 # commands through without removal of \ escapes.
18265 if test -n "${ZSH_VERSION+set}" ; then
18266 setopt NO_GLOB_SUBST
18267 fi
18268
18269 cfgfile="${ofile}T"
18270 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18271 $RM "$cfgfile"
18272
18273 cat <<_LT_EOF >> "$cfgfile"
18274 #! $SHELL
18275
18276 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18277 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18279 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18280 #
18281 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18282 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18283 # Foundation, Inc.
18284 # Written by Gordon Matzigkeit, 1996
18285 #
18286 # This file is part of GNU Libtool.
18287 #
18288 # GNU Libtool is free software; you can redistribute it and/or
18289 # modify it under the terms of the GNU General Public License as
18290 # published by the Free Software Foundation; either version 2 of
18291 # the License, or (at your option) any later version.
18292 #
18293 # As a special exception to the GNU General Public License,
18294 # if you distribute this file as part of a program or library that
18295 # is built using GNU Libtool, you may include this file under the
18296 # same distribution terms that you use for the rest of that program.
18297 #
18298 # GNU Libtool is distributed in the hope that it will be useful,
18299 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18300 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18301 # GNU General Public License for more details.
18302 #
18303 # You should have received a copy of the GNU General Public License
18304 # along with GNU Libtool; see the file COPYING. If not, a copy
18305 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18306 # obtained by writing to the Free Software Foundation, Inc.,
18307 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18308
18309
18310 # The names of the tagged configurations supported by this script.
18311 available_tags="CXX "
18312
18313 # ### BEGIN LIBTOOL CONFIG
18314
18315 # Which release of libtool.m4 was used?
18316 macro_version=$macro_version
18317 macro_revision=$macro_revision
18318
18319 # Whether or not to build shared libraries.
18320 build_libtool_libs=$enable_shared
18321
18322 # Whether or not to build static libraries.
18323 build_old_libs=$enable_static
18324
18325 # What type of objects to build.
18326 pic_mode=$pic_mode
18327
18328 # Whether or not to optimize for fast installation.
18329 fast_install=$enable_fast_install
18330
18331 # Shell to use when invoking shell scripts.
18332 SHELL=$lt_SHELL
18333
18334 # An echo program that protects backslashes.
18335 ECHO=$lt_ECHO
18336
18337 # The PATH separator for the build system.
18338 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18339
18340 # The host system.
18341 host_alias=$host_alias
18342 host=$host
18343 host_os=$host_os
18344
18345 # The build system.
18346 build_alias=$build_alias
18347 build=$build
18348 build_os=$build_os
18349
18350 # A sed program that does not truncate output.
18351 SED=$lt_SED
18352
18353 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18354 Xsed="\$SED -e 1s/^X//"
18355
18356 # A grep program that handles long lines.
18357 GREP=$lt_GREP
18358
18359 # An ERE matcher.
18360 EGREP=$lt_EGREP
18361
18362 # A literal string matcher.
18363 FGREP=$lt_FGREP
18364
18365 # A BSD- or MS-compatible name lister.
18366 NM=$lt_NM
18367
18368 # Whether we need soft or hard links.
18369 LN_S=$lt_LN_S
18370
18371 # What is the maximum length of a command?
18372 max_cmd_len=$max_cmd_len
18373
18374 # Object file suffix (normally "o").
18375 objext=$ac_objext
18376
18377 # Executable file suffix (normally "").
18378 exeext=$exeext
18379
18380 # whether the shell understands "unset".
18381 lt_unset=$lt_unset
18382
18383 # turn spaces into newlines.
18384 SP2NL=$lt_lt_SP2NL
18385
18386 # turn newlines into spaces.
18387 NL2SP=$lt_lt_NL2SP
18388
18389 # convert \$build file names to \$host format.
18390 to_host_file_cmd=$lt_cv_to_host_file_cmd
18391
18392 # convert \$build files to toolchain format.
18393 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18394
18395 # An object symbol dumper.
18396 OBJDUMP=$lt_OBJDUMP
18397
18398 # Method to check whether dependent libraries are shared objects.
18399 deplibs_check_method=$lt_deplibs_check_method
18400
18401 # Command to use when deplibs_check_method = "file_magic".
18402 file_magic_cmd=$lt_file_magic_cmd
18403
18404 # How to find potential files when deplibs_check_method = "file_magic".
18405 file_magic_glob=$lt_file_magic_glob
18406
18407 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18408 want_nocaseglob=$lt_want_nocaseglob
18409
18410 # DLL creation program.
18411 DLLTOOL=$lt_DLLTOOL
18412
18413 # Command to associate shared and link libraries.
18414 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18415
18416 # The archiver.
18417 AR=$lt_AR
18418
18419 # Flags to create an archive.
18420 AR_FLAGS=$lt_AR_FLAGS
18421
18422 # How to feed a file listing to the archiver.
18423 archiver_list_spec=$lt_archiver_list_spec
18424
18425 # A symbol stripping program.
18426 STRIP=$lt_STRIP
18427
18428 # Commands used to install an old-style archive.
18429 RANLIB=$lt_RANLIB
18430 old_postinstall_cmds=$lt_old_postinstall_cmds
18431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18432
18433 # Whether to use a lock for old archive extraction.
18434 lock_old_archive_extraction=$lock_old_archive_extraction
18435
18436 # A C compiler.
18437 LTCC=$lt_CC
18438
18439 # LTCC compiler flags.
18440 LTCFLAGS=$lt_CFLAGS
18441
18442 # Take the output of nm and produce a listing of raw symbols and C names.
18443 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18444
18445 # Transform the output of nm in a proper C declaration.
18446 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18447
18448 # Transform the output of nm in a C name address pair.
18449 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18450
18451 # Transform the output of nm in a C name address pair when lib prefix is needed.
18452 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18453
18454 # Specify filename containing input files for \$NM.
18455 nm_file_list_spec=$lt_nm_file_list_spec
18456
18457 # The root where to search for dependent libraries,and in which our libraries should be installed.
18458 lt_sysroot=$lt_sysroot
18459
18460 # The name of the directory that contains temporary libtool files.
18461 objdir=$objdir
18462
18463 # Used to examine libraries when file_magic_cmd begins with "file".
18464 MAGIC_CMD=$MAGIC_CMD
18465
18466 # Must we lock files when doing compilation?
18467 need_locks=$lt_need_locks
18468
18469 # Manifest tool.
18470 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18471
18472 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18473 DSYMUTIL=$lt_DSYMUTIL
18474
18475 # Tool to change global to local symbols on Mac OS X.
18476 NMEDIT=$lt_NMEDIT
18477
18478 # Tool to manipulate fat objects and archives on Mac OS X.
18479 LIPO=$lt_LIPO
18480
18481 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18482 OTOOL=$lt_OTOOL
18483
18484 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18485 OTOOL64=$lt_OTOOL64
18486
18487 # Old archive suffix (normally "a").
18488 libext=$libext
18489
18490 # Shared library suffix (normally ".so").
18491 shrext_cmds=$lt_shrext_cmds
18492
18493 # The commands to extract the exported symbol list from a shared archive.
18494 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18495
18496 # Variables whose values should be saved in libtool wrapper scripts and
18497 # restored at link time.
18498 variables_saved_for_relink=$lt_variables_saved_for_relink
18499
18500 # Do we need the "lib" prefix for modules?
18501 need_lib_prefix=$need_lib_prefix
18502
18503 # Do we need a version for libraries?
18504 need_version=$need_version
18505
18506 # Library versioning type.
18507 version_type=$version_type
18508
18509 # Shared library runtime path variable.
18510 runpath_var=$runpath_var
18511
18512 # Shared library path variable.
18513 shlibpath_var=$shlibpath_var
18514
18515 # Is shlibpath searched before the hard-coded library search path?
18516 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18517
18518 # Format of library name prefix.
18519 libname_spec=$lt_libname_spec
18520
18521 # List of archive names. First name is the real one, the rest are links.
18522 # The last name is the one that the linker finds with -lNAME
18523 library_names_spec=$lt_library_names_spec
18524
18525 # The coded name of the library, if different from the real name.
18526 soname_spec=$lt_soname_spec
18527
18528 # Permission mode override for installation of shared libraries.
18529 install_override_mode=$lt_install_override_mode
18530
18531 # Command to use after installation of a shared archive.
18532 postinstall_cmds=$lt_postinstall_cmds
18533
18534 # Command to use after uninstallation of a shared archive.
18535 postuninstall_cmds=$lt_postuninstall_cmds
18536
18537 # Commands used to finish a libtool library installation in a directory.
18538 finish_cmds=$lt_finish_cmds
18539
18540 # As "finish_cmds", except a single script fragment to be evaled but
18541 # not shown.
18542 finish_eval=$lt_finish_eval
18543
18544 # Whether we should hardcode library paths into libraries.
18545 hardcode_into_libs=$hardcode_into_libs
18546
18547 # Compile-time system search path for libraries.
18548 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18549
18550 # Run-time system search path for libraries.
18551 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18552
18553 # Whether dlopen is supported.
18554 dlopen_support=$enable_dlopen
18555
18556 # Whether dlopen of programs is supported.
18557 dlopen_self=$enable_dlopen_self
18558
18559 # Whether dlopen of statically linked programs is supported.
18560 dlopen_self_static=$enable_dlopen_self_static
18561
18562 # Commands to strip libraries.
18563 old_striplib=$lt_old_striplib
18564 striplib=$lt_striplib
18565
18566
18567 # The linker used to build libraries.
18568 LD=$lt_LD
18569
18570 # How to create reloadable object files.
18571 reload_flag=$lt_reload_flag
18572 reload_cmds=$lt_reload_cmds
18573
18574 # Commands used to build an old-style archive.
18575 old_archive_cmds=$lt_old_archive_cmds
18576
18577 # A language specific compiler.
18578 CC=$lt_compiler
18579
18580 # Is the compiler the GNU compiler?
18581 with_gcc=$GCC
18582
18583 # Compiler flag to turn off builtin functions.
18584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18585
18586 # Additional compiler flags for building library objects.
18587 pic_flag=$lt_lt_prog_compiler_pic
18588
18589 # How to pass a linker flag through the compiler.
18590 wl=$lt_lt_prog_compiler_wl
18591
18592 # Compiler flag to prevent dynamic linking.
18593 link_static_flag=$lt_lt_prog_compiler_static
18594
18595 # Does compiler simultaneously support -c and -o options?
18596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18597
18598 # Whether or not to add -lc for building shared libraries.
18599 build_libtool_need_lc=$archive_cmds_need_lc
18600
18601 # Whether or not to disallow shared libs when runtime libs are static.
18602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18603
18604 # Compiler flag to allow reflexive dlopens.
18605 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18606
18607 # Compiler flag to generate shared objects directly from archives.
18608 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18609
18610 # Whether the compiler copes with passing no objects directly.
18611 compiler_needs_object=$lt_compiler_needs_object
18612
18613 # Create an old-style archive from a shared archive.
18614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18615
18616 # Create a temporary old-style archive to link instead of a shared archive.
18617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18618
18619 # Commands used to build a shared archive.
18620 archive_cmds=$lt_archive_cmds
18621 archive_expsym_cmds=$lt_archive_expsym_cmds
18622
18623 # Commands used to build a loadable module if different from building
18624 # a shared archive.
18625 module_cmds=$lt_module_cmds
18626 module_expsym_cmds=$lt_module_expsym_cmds
18627
18628 # Whether we are building with GNU ld or not.
18629 with_gnu_ld=$lt_with_gnu_ld
18630
18631 # Flag that allows shared libraries with undefined symbols to be built.
18632 allow_undefined_flag=$lt_allow_undefined_flag
18633
18634 # Flag that enforces no undefined symbols.
18635 no_undefined_flag=$lt_no_undefined_flag
18636
18637 # Flag to hardcode \$libdir into a binary during linking.
18638 # This must work even if \$libdir does not exist
18639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18640
18641 # Whether we need a single "-rpath" flag with a separated argument.
18642 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18643
18644 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18645 # DIR into the resulting binary.
18646 hardcode_direct=$hardcode_direct
18647
18648 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18649 # DIR into the resulting binary and the resulting library dependency is
18650 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18651 # library is relocated.
18652 hardcode_direct_absolute=$hardcode_direct_absolute
18653
18654 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18655 # into the resulting binary.
18656 hardcode_minus_L=$hardcode_minus_L
18657
18658 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18659 # into the resulting binary.
18660 hardcode_shlibpath_var=$hardcode_shlibpath_var
18661
18662 # Set to "yes" if building a shared library automatically hardcodes DIR
18663 # into the library and all subsequent libraries and executables linked
18664 # against it.
18665 hardcode_automatic=$hardcode_automatic
18666
18667 # Set to yes if linker adds runtime paths of dependent libraries
18668 # to runtime path list.
18669 inherit_rpath=$inherit_rpath
18670
18671 # Whether libtool must link a program against all its dependency libraries.
18672 link_all_deplibs=$link_all_deplibs
18673
18674 # Set to "yes" if exported symbols are required.
18675 always_export_symbols=$always_export_symbols
18676
18677 # The commands to list exported symbols.
18678 export_symbols_cmds=$lt_export_symbols_cmds
18679
18680 # Symbols that should not be listed in the preloaded symbols.
18681 exclude_expsyms=$lt_exclude_expsyms
18682
18683 # Symbols that must always be exported.
18684 include_expsyms=$lt_include_expsyms
18685
18686 # Commands necessary for linking programs (against libraries) with templates.
18687 prelink_cmds=$lt_prelink_cmds
18688
18689 # Commands necessary for finishing linking programs.
18690 postlink_cmds=$lt_postlink_cmds
18691
18692 # Specify filename containing input files.
18693 file_list_spec=$lt_file_list_spec
18694
18695 # How to hardcode a shared library path into an executable.
18696 hardcode_action=$hardcode_action
18697
18698 # The directories searched by this compiler when creating a shared library.
18699 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18700
18701 # Dependencies to place before and after the objects being linked to
18702 # create a shared library.
18703 predep_objects=$lt_predep_objects
18704 postdep_objects=$lt_postdep_objects
18705 predeps=$lt_predeps
18706 postdeps=$lt_postdeps
18707
18708 # The library search path used internally by the compiler when linking
18709 # a shared library.
18710 compiler_lib_search_path=$lt_compiler_lib_search_path
18711
18712 # ### END LIBTOOL CONFIG
18713
18714 _LT_EOF
18715
18716 case $host_os in
18717 aix3*)
18718 cat <<\_LT_EOF >> "$cfgfile"
18719 # AIX sometimes has problems with the GCC collect2 program. For some
18720 # reason, if we set the COLLECT_NAMES environment variable, the problems
18721 # vanish in a puff of smoke.
18722 if test "X${COLLECT_NAMES+set}" != Xset; then
18723 COLLECT_NAMES=
18724 export COLLECT_NAMES
18725 fi
18726 _LT_EOF
18727 ;;
18728 esac
18729
18730
18731 ltmain="$ac_aux_dir/ltmain.sh"
18732
18733
18734 # We use sed instead of cat because bash on DJGPP gets confused if
18735 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18736 # text mode, it properly converts lines to CR/LF. This bash problem
18737 # is reportedly fixed, but why not run on old versions too?
18738 sed '$q' "$ltmain" >> "$cfgfile" \
18739 || (rm -f "$cfgfile"; exit 1)
18740
18741 if test x"$xsi_shell" = xyes; then
18742 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18743 func_dirname ()\
18744 {\
18745 \ case ${1} in\
18746 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18747 \ * ) func_dirname_result="${3}" ;;\
18748 \ esac\
18749 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18750 && mv -f "$cfgfile.tmp" "$cfgfile" \
18751 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18752 test 0 -eq $? || _lt_function_replace_fail=:
18753
18754
18755 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18756 func_basename ()\
18757 {\
18758 \ func_basename_result="${1##*/}"\
18759 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18760 && mv -f "$cfgfile.tmp" "$cfgfile" \
18761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18762 test 0 -eq $? || _lt_function_replace_fail=:
18763
18764
18765 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18766 func_dirname_and_basename ()\
18767 {\
18768 \ case ${1} in\
18769 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18770 \ * ) func_dirname_result="${3}" ;;\
18771 \ esac\
18772 \ func_basename_result="${1##*/}"\
18773 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18774 && mv -f "$cfgfile.tmp" "$cfgfile" \
18775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18776 test 0 -eq $? || _lt_function_replace_fail=:
18777
18778
18779 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18780 func_stripname ()\
18781 {\
18782 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18783 \ # positional parameters, so assign one to ordinary parameter first.\
18784 \ func_stripname_result=${3}\
18785 \ func_stripname_result=${func_stripname_result#"${1}"}\
18786 \ func_stripname_result=${func_stripname_result%"${2}"}\
18787 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18788 && mv -f "$cfgfile.tmp" "$cfgfile" \
18789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18790 test 0 -eq $? || _lt_function_replace_fail=:
18791
18792
18793 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18794 func_split_long_opt ()\
18795 {\
18796 \ func_split_long_opt_name=${1%%=*}\
18797 \ func_split_long_opt_arg=${1#*=}\
18798 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18799 && mv -f "$cfgfile.tmp" "$cfgfile" \
18800 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18801 test 0 -eq $? || _lt_function_replace_fail=:
18802
18803
18804 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18805 func_split_short_opt ()\
18806 {\
18807 \ func_split_short_opt_arg=${1#??}\
18808 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18809 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18810 && mv -f "$cfgfile.tmp" "$cfgfile" \
18811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18812 test 0 -eq $? || _lt_function_replace_fail=:
18813
18814
18815 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18816 func_lo2o ()\
18817 {\
18818 \ case ${1} in\
18819 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18820 \ *) func_lo2o_result=${1} ;;\
18821 \ esac\
18822 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18823 && mv -f "$cfgfile.tmp" "$cfgfile" \
18824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18825 test 0 -eq $? || _lt_function_replace_fail=:
18826
18827
18828 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18829 func_xform ()\
18830 {\
18831 func_xform_result=${1%.*}.lo\
18832 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18833 && mv -f "$cfgfile.tmp" "$cfgfile" \
18834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18835 test 0 -eq $? || _lt_function_replace_fail=:
18836
18837
18838 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18839 func_arith ()\
18840 {\
18841 func_arith_result=$(( $* ))\
18842 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18843 && mv -f "$cfgfile.tmp" "$cfgfile" \
18844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18845 test 0 -eq $? || _lt_function_replace_fail=:
18846
18847
18848 sed -e '/^func_len ()$/,/^} # func_len /c\
18849 func_len ()\
18850 {\
18851 func_len_result=${#1}\
18852 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18853 && mv -f "$cfgfile.tmp" "$cfgfile" \
18854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18855 test 0 -eq $? || _lt_function_replace_fail=:
18856
18857 fi
18858
18859 if test x"$lt_shell_append" = xyes; then
18860 sed -e '/^func_append ()$/,/^} # func_append /c\
18861 func_append ()\
18862 {\
18863 eval "${1}+=\\${2}"\
18864 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18865 && mv -f "$cfgfile.tmp" "$cfgfile" \
18866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18867 test 0 -eq $? || _lt_function_replace_fail=:
18868
18869
18870 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18871 func_append_quoted ()\
18872 {\
18873 \ func_quote_for_eval "${2}"\
18874 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18875 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18876 && mv -f "$cfgfile.tmp" "$cfgfile" \
18877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18878 test 0 -eq $? || _lt_function_replace_fail=:
18879
18880
18881 # Save a `func_append' function call where possible by direct use of '+='
18882 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18883 && mv -f "$cfgfile.tmp" "$cfgfile" \
18884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18885 test 0 -eq $? || _lt_function_replace_fail=:
18886 else
18887 # Save a `func_append' function call even when '+=' is not available
18888 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18889 && mv -f "$cfgfile.tmp" "$cfgfile" \
18890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18891 test 0 -eq $? || _lt_function_replace_fail=:
18892 fi
18893
18894 if test x"$_lt_function_replace_fail" = x":"; then
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18896 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18897 fi
18898
18899
18900 mv -f "$cfgfile" "$ofile" ||
18901 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18902 chmod +x "$ofile"
18903
18904
18905 cat <<_LT_EOF >> "$ofile"
18906
18907 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18908
18909 # The linker used to build libraries.
18910 LD=$lt_LD_CXX
18911
18912 # How to create reloadable object files.
18913 reload_flag=$lt_reload_flag_CXX
18914 reload_cmds=$lt_reload_cmds_CXX
18915
18916 # Commands used to build an old-style archive.
18917 old_archive_cmds=$lt_old_archive_cmds_CXX
18918
18919 # A language specific compiler.
18920 CC=$lt_compiler_CXX
18921
18922 # Is the compiler the GNU compiler?
18923 with_gcc=$GCC_CXX
18924
18925 # Compiler flag to turn off builtin functions.
18926 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18927
18928 # Additional compiler flags for building library objects.
18929 pic_flag=$lt_lt_prog_compiler_pic_CXX
18930
18931 # How to pass a linker flag through the compiler.
18932 wl=$lt_lt_prog_compiler_wl_CXX
18933
18934 # Compiler flag to prevent dynamic linking.
18935 link_static_flag=$lt_lt_prog_compiler_static_CXX
18936
18937 # Does compiler simultaneously support -c and -o options?
18938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18939
18940 # Whether or not to add -lc for building shared libraries.
18941 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18942
18943 # Whether or not to disallow shared libs when runtime libs are static.
18944 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18945
18946 # Compiler flag to allow reflexive dlopens.
18947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18948
18949 # Compiler flag to generate shared objects directly from archives.
18950 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18951
18952 # Whether the compiler copes with passing no objects directly.
18953 compiler_needs_object=$lt_compiler_needs_object_CXX
18954
18955 # Create an old-style archive from a shared archive.
18956 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18957
18958 # Create a temporary old-style archive to link instead of a shared archive.
18959 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18960
18961 # Commands used to build a shared archive.
18962 archive_cmds=$lt_archive_cmds_CXX
18963 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18964
18965 # Commands used to build a loadable module if different from building
18966 # a shared archive.
18967 module_cmds=$lt_module_cmds_CXX
18968 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18969
18970 # Whether we are building with GNU ld or not.
18971 with_gnu_ld=$lt_with_gnu_ld_CXX
18972
18973 # Flag that allows shared libraries with undefined symbols to be built.
18974 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18975
18976 # Flag that enforces no undefined symbols.
18977 no_undefined_flag=$lt_no_undefined_flag_CXX
18978
18979 # Flag to hardcode \$libdir into a binary during linking.
18980 # This must work even if \$libdir does not exist
18981 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18982
18983 # Whether we need a single "-rpath" flag with a separated argument.
18984 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18985
18986 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18987 # DIR into the resulting binary.
18988 hardcode_direct=$hardcode_direct_CXX
18989
18990 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18991 # DIR into the resulting binary and the resulting library dependency is
18992 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18993 # library is relocated.
18994 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18995
18996 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18997 # into the resulting binary.
18998 hardcode_minus_L=$hardcode_minus_L_CXX
18999
19000 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19001 # into the resulting binary.
19002 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19003
19004 # Set to "yes" if building a shared library automatically hardcodes DIR
19005 # into the library and all subsequent libraries and executables linked
19006 # against it.
19007 hardcode_automatic=$hardcode_automatic_CXX
19008
19009 # Set to yes if linker adds runtime paths of dependent libraries
19010 # to runtime path list.
19011 inherit_rpath=$inherit_rpath_CXX
19012
19013 # Whether libtool must link a program against all its dependency libraries.
19014 link_all_deplibs=$link_all_deplibs_CXX
19015
19016 # Set to "yes" if exported symbols are required.
19017 always_export_symbols=$always_export_symbols_CXX
19018
19019 # The commands to list exported symbols.
19020 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19021
19022 # Symbols that should not be listed in the preloaded symbols.
19023 exclude_expsyms=$lt_exclude_expsyms_CXX
19024
19025 # Symbols that must always be exported.
19026 include_expsyms=$lt_include_expsyms_CXX
19027
19028 # Commands necessary for linking programs (against libraries) with templates.
19029 prelink_cmds=$lt_prelink_cmds_CXX
19030
19031 # Commands necessary for finishing linking programs.
19032 postlink_cmds=$lt_postlink_cmds_CXX
19033
19034 # Specify filename containing input files.
19035 file_list_spec=$lt_file_list_spec_CXX
19036
19037 # How to hardcode a shared library path into an executable.
19038 hardcode_action=$hardcode_action_CXX
19039
19040 # The directories searched by this compiler when creating a shared library.
19041 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19042
19043 # Dependencies to place before and after the objects being linked to
19044 # create a shared library.
19045 predep_objects=$lt_predep_objects_CXX
19046 postdep_objects=$lt_postdep_objects_CXX
19047 predeps=$lt_predeps_CXX
19048 postdeps=$lt_postdeps_CXX
19049
19050 # The library search path used internally by the compiler when linking
19051 # a shared library.
19052 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19053
19054 # ### END LIBTOOL TAG CONFIG: CXX
19055 _LT_EOF
19056
19057 ;;
19058
19059 esac
19060 done # for ac_tag
19061
19062
19063 as_fn_exit 0
19064 _ACEOF
19065 ac_clean_files=$ac_clean_files_save
19066
19067 test $ac_write_fail = 0 ||
19068 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19069
19070
19071 # configure is writing to config.log, and then calls config.status.
19072 # config.status does its own redirection, appending to config.log.
19073 # Unfortunately, on DOS this fails, as config.log is still kept open
19074 # by configure, so config.status won't be able to write to it; its
19075 # output is simply discarded. So we exec the FD to /dev/null,
19076 # effectively closing config.log, so it can be properly (re)opened and
19077 # appended to by config.status. When coming back to configure, we
19078 # need to make the FD available again.
19079 if test "$no_create" != yes; then
19080 ac_cs_success=:
19081 ac_config_status_args=
19082 test "$silent" = yes &&
19083 ac_config_status_args="$ac_config_status_args --quiet"
19084 exec 5>/dev/null
19085 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19086 exec 5>>config.log
19087 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19088 # would make configure fail if this is the last instruction.
19089 $ac_cs_success || as_fn_exit 1
19090 fi
19091 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19093 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19094 fi
19095