]> git.ipfire.org Git - thirdparty/gcc.git/blob - libvtv/configure
Commit the vtable verification feature.
[thirdparty/gcc.git] / libvtv / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Vtable Verification Runtime Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU Vtable Verification Runtime Library'
558 PACKAGE_TARNAME='libvtv'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libvtv/'
563
564 ac_unique_file="vtv_rts.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 VTV_SUPPORTED_FALSE
606 VTV_SUPPORTED_TRUE
607 toplevel_srcdir
608 toplevel_builddir
609 libvtv_srcdir
610 libvtv_builddir
611 ENABLE_VTABLE_VERIFY_FALSE
612 ENABLE_VTABLE_VERIFY_TRUE
613 XCFLAGS
614 libtool_VERSION
615 enable_static
616 enable_shared
617 CXXCPP
618 CPP
619 OTOOL64
620 OTOOL
621 LIPO
622 NMEDIT
623 DSYMUTIL
624 OBJDUMP
625 LN_S
626 NM
627 ac_ct_DUMPBIN
628 DUMPBIN
629 LD
630 FGREP
631 EGREP
632 GREP
633 SED
634 LIBTOOL
635 RANLIB
636 AR
637 AS
638 CCASFLAGS
639 CCAS
640 am__fastdepCXX_FALSE
641 am__fastdepCXX_TRUE
642 CXXDEPMODE
643 ac_ct_CXX
644 CXXFLAGS
645 CXX
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 AMDEPBACKSLASH
650 AMDEP_FALSE
651 AMDEP_TRUE
652 am__quote
653 am__include
654 DEPDIR
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CPPFLAGS
659 LDFLAGS
660 CFLAGS
661 CC
662 toolexeclibdir
663 toolexecdir
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 multi_basedir
668 am__untar
669 am__tar
670 AMTAR
671 am__leading_dot
672 SET_MAKE
673 AWK
674 mkdir_p
675 MKDIR_P
676 INSTALL_STRIP_PROGRAM
677 STRIP
678 install_sh
679 MAKEINFO
680 AUTOHEADER
681 AUTOMAKE
682 AUTOCONF
683 ACLOCAL
684 VERSION
685 PACKAGE
686 CYGPATH_W
687 am__isrc
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 LIBSTDCXX_RAW_CXX_LDFLAGS
692 LIBSTDCXX_RAW_CXX_CXXFLAGS
693 target_noncanonical
694 target_os
695 target_vendor
696 target_cpu
697 target
698 host_os
699 host_vendor
700 host_cpu
701 host
702 build_os
703 build_vendor
704 build_cpu
705 build
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files=''
745 ac_user_opts='
746 enable_option_checking
747 enable_version_specific_runtime_libs
748 enable_multilib
749 enable_maintainer_mode
750 enable_dependency_tracking
751 enable_shared
752 enable_static
753 with_pic
754 enable_fast_install
755 with_gnu_ld
756 enable_libtool_lock
757 enable_vtable_verify
758 '
759 ac_precious_vars='build_alias
760 host_alias
761 target_alias
762 CPP
763 CPPFLAGS
764 CXXCPP'
765
766
767 # Initialize some variables set by options.
768 ac_init_help=
769 ac_init_version=false
770 ac_unrecognized_opts=
771 ac_unrecognized_sep=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
788
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
807 htmldir='${docdir}'
808 dvidir='${docdir}'
809 pdfdir='${docdir}'
810 psdir='${docdir}'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
814
815 ac_prev=
816 ac_dashdash=
817 for ac_option
818 do
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
822 ac_prev=
823 continue
824 fi
825
826 case $ac_option in
827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 *) ac_optarg=yes ;;
829 esac
830
831 # Accept the important Cygnus configure options, so we can diagnose typos.
832
833 case $ac_dashdash$ac_option in
834 --)
835 ac_dashdash=yes ;;
836
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
841
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
846
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
853
854 --config-cache | -C)
855 cache_file=config.cache ;;
856
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
861
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
868
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
877 *"
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=no ;;
884
885 -docdir | --docdir | --docdi | --doc | --do)
886 ac_prev=docdir ;;
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 docdir=$ac_optarg ;;
889
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 ac_prev=dvidir ;;
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 dvidir=$ac_optarg ;;
894
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=\$ac_optarg ;;
910
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
919
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
923
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
930
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
935
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
941
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
948
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
953
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
958
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
965
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
970
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
977
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
982
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
986
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
990
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
994
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1003
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1008
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1015
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1022
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1039
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1044
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1049
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1053
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1059
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1070
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1075
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1080
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1087
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1092
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1095
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1098
1099 -with-* | --with-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=\$ac_optarg ;;
1114
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=no ;;
1130
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1134
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1141
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1148
1149 -*) as_fn_error "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information."
1151 ;;
1152
1153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1159 esac
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1162
1163 *)
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 ;;
1170
1171 esac
1172 done
1173
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error "missing argument to $ac_option"
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1181 no) ;;
1182 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 esac
1185 fi
1186
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1192 do
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1195 case $ac_val in
1196 */ )
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1199 esac
1200 # Be sure to have absolute directory names.
1201 case $ac_val in
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 esac
1205 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1206 done
1207
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1211 build=$build_alias
1212 host=$host_alias
1213 target=$target_alias
1214
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1220 If a cross compiler is detected then cross compile mode will be used." >&2
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1223 fi
1224 fi
1225
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229 test "$silent" = yes && exec 6>/dev/null
1230
1231
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error "pwd does not report name of working directory"
1238
1239
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\).*/{
1263 s//\1/
1264 q
1265 }
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1270 fi
1271 else
1272 ac_srcdir_defaulted=no
1273 fi
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1277 fi
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1359 _ACEOF
1360
1361 cat <<\_ACEOF
1362
1363 Program names:
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 --target=TARGET configure for building compilers for TARGET [HOST]
1372 _ACEOF
1373 fi
1374
1375 if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1378 esac
1379 cat <<\_ACEOF
1380
1381 Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1386 --enable-multilib build many library versions (default)
1387 --enable-maintainer-mode enable make rules and dependencies not useful
1388 (and sometimes confusing) to the casual installer
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-shared[=PKGS] build shared libraries [default=yes]
1392 --enable-static[=PKGS] build static libraries [default=yes]
1393 --enable-fast-install[=PKGS]
1394 optimize for fast installation [default=yes]
1395 --disable-libtool-lock avoid locking (might break parallel builds)
1396 --enable-vtable-verify Enable vtable verification feature
1397
1398 Optional Packages:
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --with-pic try to use only PIC/non-PIC objects [default=use
1402 both]
1403 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1404
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CXX C++ compiler command
1414 CXXFLAGS C++ compiler flags
1415 CPP C preprocessor
1416 CXXCPP C++ preprocessor
1417
1418 Use these variables to override the choices made by `configure' or to help
1419 it to find libraries and programs with nonstandard names/locations.
1420
1421 Report bugs to the package provider.
1422 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1423 General help using GNU software: <http://www.gnu.org/gethelp/>.
1424 _ACEOF
1425 ac_status=$?
1426 fi
1427
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433 continue
1434 ac_builddir=.
1435
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *)
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1451
1452 case $srcdir in
1453 .) # We are building in place.
1454 ac_srcdir=.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1461 *) # Relative name.
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1476 else
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 fi || ac_status=$?
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1480 done
1481 fi
1482
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485 cat <<\_ACEOF
1486 GNU Vtable Verification Runtime Library configure 1.0
1487 generated by GNU Autoconf 2.64
1488
1489 Copyright (C) 2009 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493 exit
1494 fi
1495
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1499
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1504 {
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1508 case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1526 ac_retval=0
1527 else
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532 fi
1533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534 return $ac_retval
1535
1536 } # ac_fn_c_try_compile
1537
1538 # ac_fn_cxx_try_compile LINENO
1539 # ----------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_cxx_try_compile ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_cxx_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570 fi
1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 return $ac_retval
1573
1574 } # ac_fn_cxx_try_compile
1575
1576 # ac_fn_c_try_link LINENO
1577 # -----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_link ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext conftest$ac_exeext
1583 if { { ac_try="$ac_link"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest$ac_exeext && {
1602 test "$cross_compiling" = yes ||
1603 $as_test_x conftest$ac_exeext
1604 }; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611 fi
1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614 # interfere with the next link command; also delete a directory that is
1615 # left behind by Apple's compiler. We do this before executing the actions.
1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1618 return $ac_retval
1619
1620 } # ac_fn_c_try_link
1621
1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists and can be compiled using the include files in
1625 # INCLUDES, setting the cache variable VAR accordingly.
1626 ac_fn_c_check_header_compile ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1632 $as_echo_n "(cached) " >&6
1633 else
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 $4
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640 eval "$3=yes"
1641 else
1642 eval "$3=no"
1643 fi
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 fi
1646 eval ac_res=\$$3
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650
1651 } # ac_fn_c_check_header_compile
1652
1653 # ac_fn_c_try_cpp LINENO
1654 # ----------------------
1655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_cpp ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_cpp conftest.$ac_ext"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } >/dev/null && {
1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 return $ac_retval
1687
1688 } # ac_fn_c_try_cpp
1689
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=$ac_status
1725 fi
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1729
1730 } # ac_fn_c_try_run
1731
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1747 #define $2 innocuous_$2
1748
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $2 (); below.
1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752 <limits.h> exists even on freestanding compilers. */
1753
1754 #ifdef __STDC__
1755 # include <limits.h>
1756 #else
1757 # include <assert.h>
1758 #endif
1759
1760 #undef $2
1761
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 ();
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1775
1776 int
1777 main ()
1778 {
1779 return $2 ();
1780 ;
1781 return 0;
1782 }
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"; then :
1785 eval "$3=yes"
1786 else
1787 eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext \
1790 conftest$ac_exeext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796
1797 } # ac_fn_c_check_func
1798
1799 # ac_fn_cxx_try_cpp LINENO
1800 # ------------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_cxx_try_cpp ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } >/dev/null && {
1821 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1822 test ! -s conftest.err
1823 }; then :
1824 ac_retval=0
1825 else
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=1
1830 fi
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832 return $ac_retval
1833
1834 } # ac_fn_cxx_try_cpp
1835
1836 # ac_fn_cxx_try_link LINENO
1837 # -------------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_link ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext conftest$ac_exeext
1843 if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_cxx_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest$ac_exeext && {
1862 test "$cross_compiling" = yes ||
1863 $as_test_x conftest$ac_exeext
1864 }; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=1
1871 fi
1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874 # interfere with the next link command; also delete a directory that is
1875 # left behind by Apple's compiler. We do this before executing the actions.
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 return $ac_retval
1879
1880 } # ac_fn_cxx_try_link
1881 cat >config.log <<_ACEOF
1882 This file contains any messages produced by compilers while
1883 running configure, to aid debugging if configure makes a mistake.
1884
1885 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1886 generated by GNU Autoconf 2.64. Invocation command line was
1887
1888 $ $0 $@
1889
1890 _ACEOF
1891 exec 5>>config.log
1892 {
1893 cat <<_ASUNAME
1894 ## --------- ##
1895 ## Platform. ##
1896 ## --------- ##
1897
1898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906
1907 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1908 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1911 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1912 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1913 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1914
1915 _ASUNAME
1916
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 $as_echo "PATH: $as_dir"
1923 done
1924 IFS=$as_save_IFS
1925
1926 } >&5
1927
1928 cat >&5 <<_ACEOF
1929
1930
1931 ## ----------- ##
1932 ## Core tests. ##
1933 ## ----------- ##
1934
1935 _ACEOF
1936
1937
1938 # Keep a trace of the command line.
1939 # Strip out --no-create and --no-recursion so they do not pile up.
1940 # Strip out --silent because we don't want to record it for future runs.
1941 # Also quote any args containing shell meta-characters.
1942 # Make two passes to allow for proper duplicate-argument suppression.
1943 ac_configure_args=
1944 ac_configure_args0=
1945 ac_configure_args1=
1946 ac_must_keep_next=false
1947 for ac_pass in 1 2
1948 do
1949 for ac_arg
1950 do
1951 case $ac_arg in
1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954 | -silent | --silent | --silen | --sile | --sil)
1955 continue ;;
1956 *\'*)
1957 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 esac
1959 case $ac_pass in
1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961 2)
1962 as_fn_append ac_configure_args1 " '$ac_arg'"
1963 if test $ac_must_keep_next = true; then
1964 ac_must_keep_next=false # Got value, back to normal.
1965 else
1966 case $ac_arg in
1967 *=* | --config-cache | -C | -disable-* | --disable-* \
1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970 | -with-* | --with-* | -without-* | --without-* | --x)
1971 case "$ac_configure_args0 " in
1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 esac
1974 ;;
1975 -* ) ac_must_keep_next=true ;;
1976 esac
1977 fi
1978 as_fn_append ac_configure_args " '$ac_arg'"
1979 ;;
1980 esac
1981 done
1982 done
1983 { ac_configure_args0=; unset ac_configure_args0;}
1984 { ac_configure_args1=; unset ac_configure_args1;}
1985
1986 # When interrupted or exit'd, cleanup temporary files, and complete
1987 # config.log. We remove comments because anyway the quotes in there
1988 # would cause problems or look ugly.
1989 # WARNING: Use '\'' to represent an apostrophe within the trap.
1990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991 trap 'exit_status=$?
1992 # Save into config.log some information that might help in debugging.
1993 {
1994 echo
1995
1996 cat <<\_ASBOX
1997 ## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##
2000 _ASBOX
2001 echo
2002 # The following way of writing the cache mishandles newlines in values,
2003 (
2004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005 eval ac_val=\$$ac_var
2006 case $ac_val in #(
2007 *${as_nl}*)
2008 case $ac_var in #(
2009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011 esac
2012 case $ac_var in #(
2013 _ | IFS | as_nl) ;; #(
2014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015 *) { eval $ac_var=; unset $ac_var;} ;;
2016 esac ;;
2017 esac
2018 done
2019 (set) 2>&1 |
2020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021 *${as_nl}ac_space=\ *)
2022 sed -n \
2023 "s/'\''/'\''\\\\'\'''\''/g;
2024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025 ;; #(
2026 *)
2027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028 ;;
2029 esac |
2030 sort
2031 )
2032 echo
2033
2034 cat <<\_ASBOX
2035 ## ----------------- ##
2036 ## Output variables. ##
2037 ## ----------------- ##
2038 _ASBOX
2039 echo
2040 for ac_var in $ac_subst_vars
2041 do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in
2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045 esac
2046 $as_echo "$ac_var='\''$ac_val'\''"
2047 done | sort
2048 echo
2049
2050 if test -n "$ac_subst_files"; then
2051 cat <<\_ASBOX
2052 ## ------------------- ##
2053 ## File substitutions. ##
2054 ## ------------------- ##
2055 _ASBOX
2056 echo
2057 for ac_var in $ac_subst_files
2058 do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in
2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 esac
2063 $as_echo "$ac_var='\''$ac_val'\''"
2064 done | sort
2065 echo
2066 fi
2067
2068 if test -s confdefs.h; then
2069 cat <<\_ASBOX
2070 ## ----------- ##
2071 ## confdefs.h. ##
2072 ## ----------- ##
2073 _ASBOX
2074 echo
2075 cat confdefs.h
2076 echo
2077 fi
2078 test "$ac_signal" != 0 &&
2079 $as_echo "$as_me: caught signal $ac_signal"
2080 $as_echo "$as_me: exit $exit_status"
2081 } >&5
2082 rm -f core *.core core.conftest.* &&
2083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2084 exit $exit_status
2085 ' 0
2086 for ac_signal in 1 2 13 15; do
2087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2088 done
2089 ac_signal=0
2090
2091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2092 rm -f -r conftest* confdefs.h
2093
2094 $as_echo "/* confdefs.h */" > confdefs.h
2095
2096 # Predefined preprocessor variables.
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_NAME "$PACKAGE_NAME"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_STRING "$PACKAGE_STRING"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_URL "$PACKAGE_URL"
2120 _ACEOF
2121
2122
2123 # Let the site file select an alternate cache file if it wants to.
2124 # Prefer an explicitly selected file to automatically selected ones.
2125 ac_site_file1=NONE
2126 ac_site_file2=NONE
2127 if test -n "$CONFIG_SITE"; then
2128 ac_site_file1=$CONFIG_SITE
2129 elif test "x$prefix" != xNONE; then
2130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
2132 else
2133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
2135 fi
2136 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137 do
2138 test "x$ac_site_file" = xNONE && continue
2139 if test -r "$ac_site_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142 sed 's/^/| /' "$ac_site_file" >&5
2143 . "$ac_site_file"
2144 fi
2145 done
2146
2147 if test -r "$cache_file"; then
2148 # Some versions of bash will fail to source /dev/null (special
2149 # files actually), so we avoid doing that.
2150 if test -f "$cache_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153 case $cache_file in
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
2156 esac
2157 fi
2158 else
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2161 >$cache_file
2162 fi
2163
2164 # Check that the precious variables saved in the cache have kept the same
2165 # value.
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169 eval ac_new_set=\$ac_env_${ac_var}_set
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171 eval ac_new_val=\$ac_env_${ac_var}_value
2172 case $ac_old_set,$ac_new_set in
2173 set,)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,set)
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2181 ,);;
2182 *)
2183 if test "x$ac_old_val" != "x$ac_new_val"; then
2184 # differences in whitespace do not lead to failure.
2185 ac_old_val_w=`echo x $ac_old_val`
2186 ac_new_val_w=`echo x $ac_new_val`
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190 ac_cache_corrupted=:
2191 else
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194 eval $ac_var=\$ac_old_val
2195 fi
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2197 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2200 fi;;
2201 esac
2202 # Pass precious variables to config.status.
2203 if test "$ac_new_set" = set; then
2204 case $ac_new_val in
2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 *) ac_arg=$ac_var=$ac_new_val ;;
2207 esac
2208 case " $ac_configure_args " in
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211 esac
2212 fi
2213 done
2214 if $ac_cache_corrupted; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 fi
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2224
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233
2234
2235 #AC_INIT(package-unused, version-unused, libvtv)
2236
2237
2238 # -------
2239 # Options
2240 # -------
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2242 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2243 # Check whether --enable-version-specific-runtime-libs was given.
2244 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2245 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2246 yes) version_specific_libs=yes ;;
2247 no) version_specific_libs=no ;;
2248 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2249 esac
2250 else
2251 version_specific_libs=no
2252 fi
2253
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2255 $as_echo "$version_specific_libs" >&6; }
2256
2257 # Do not delete or change the following two lines. For why, see
2258 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2259 ac_aux_dir=
2260 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2261 for ac_t in install-sh install.sh shtool; do
2262 if test -f "$ac_dir/$ac_t"; then
2263 ac_aux_dir=$ac_dir
2264 ac_install_sh="$ac_aux_dir/$ac_t -c"
2265 break 2
2266 fi
2267 done
2268 done
2269 if test -z "$ac_aux_dir"; then
2270 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2271 fi
2272
2273 # These three variables are undocumented and unsupported,
2274 # and are intended to be withdrawn in a future Autoconf release.
2275 # They can cause serious problems if a builder's source tree is in a directory
2276 # whose full name contains unusual characters.
2277 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2278 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2279 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2280
2281
2282 # Make sure we can run config.sub.
2283 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2284 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2285
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2287 $as_echo_n "checking build system type... " >&6; }
2288 if test "${ac_cv_build+set}" = set; then :
2289 $as_echo_n "(cached) " >&6
2290 else
2291 ac_build_alias=$build_alias
2292 test "x$ac_build_alias" = x &&
2293 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2294 test "x$ac_build_alias" = x &&
2295 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2296 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2297 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2298
2299 fi
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2301 $as_echo "$ac_cv_build" >&6; }
2302 case $ac_cv_build in
2303 *-*-*) ;;
2304 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2305 esac
2306 build=$ac_cv_build
2307 ac_save_IFS=$IFS; IFS='-'
2308 set x $ac_cv_build
2309 shift
2310 build_cpu=$1
2311 build_vendor=$2
2312 shift; shift
2313 # Remember, the first character of IFS is used to create $*,
2314 # except with old shells:
2315 build_os=$*
2316 IFS=$ac_save_IFS
2317 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2318
2319
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2321 $as_echo_n "checking host system type... " >&6; }
2322 if test "${ac_cv_host+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 if test "x$host_alias" = x; then
2326 ac_cv_host=$ac_cv_build
2327 else
2328 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2329 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2330 fi
2331
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2334 $as_echo "$ac_cv_host" >&6; }
2335 case $ac_cv_host in
2336 *-*-*) ;;
2337 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2338 esac
2339 host=$ac_cv_host
2340 ac_save_IFS=$IFS; IFS='-'
2341 set x $ac_cv_host
2342 shift
2343 host_cpu=$1
2344 host_vendor=$2
2345 shift; shift
2346 # Remember, the first character of IFS is used to create $*,
2347 # except with old shells:
2348 host_os=$*
2349 IFS=$ac_save_IFS
2350 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2351
2352
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2354 $as_echo_n "checking target system type... " >&6; }
2355 if test "${ac_cv_target+set}" = set; then :
2356 $as_echo_n "(cached) " >&6
2357 else
2358 if test "x$target_alias" = x; then
2359 ac_cv_target=$ac_cv_host
2360 else
2361 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2362 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2363 fi
2364
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2367 $as_echo "$ac_cv_target" >&6; }
2368 case $ac_cv_target in
2369 *-*-*) ;;
2370 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2371 esac
2372 target=$ac_cv_target
2373 ac_save_IFS=$IFS; IFS='-'
2374 set x $ac_cv_target
2375 shift
2376 target_cpu=$1
2377 target_vendor=$2
2378 shift; shift
2379 # Remember, the first character of IFS is used to create $*,
2380 # except with old shells:
2381 target_os=$*
2382 IFS=$ac_save_IFS
2383 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2384
2385
2386 # The aliases save the names the user supplied, while $host etc.
2387 # will get canonicalized.
2388 test -n "$target_alias" &&
2389 test "$program_prefix$program_suffix$program_transform_name" = \
2390 NONENONEs,x,x, &&
2391 program_prefix=${target_alias}-
2392
2393 target_alias=${target_alias-$host_alias}
2394
2395 case ${build_alias} in
2396 "") build_noncanonical=${build} ;;
2397 *) build_noncanonical=${build_alias} ;;
2398 esac
2399
2400 case ${host_alias} in
2401 "") host_noncanonical=${build_noncanonical} ;;
2402 *) host_noncanonical=${host_alias} ;;
2403 esac
2404
2405 case ${target_alias} in
2406 "") target_noncanonical=${host_noncanonical} ;;
2407 *) target_noncanonical=${target_alias} ;;
2408 esac
2409
2410
2411
2412
2413
2414 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2415 -I\$(top_builddir)/../libstdc++-v3/include \
2416 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2417 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2418 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2419 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2420
2421
2422
2423
2424 am__api_version='1.11'
2425
2426 # Find a good install program. We prefer a C program (faster),
2427 # so one script is as good as another. But avoid the broken or
2428 # incompatible versions:
2429 # SysV /etc/install, /usr/sbin/install
2430 # SunOS /usr/etc/install
2431 # IRIX /sbin/install
2432 # AIX /bin/install
2433 # AmigaOS /C/install, which installs bootblocks on floppy discs
2434 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2435 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2436 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2437 # OS/2's system install, which has a completely different semantic
2438 # ./install, which can be erroneously created by make from ./install.sh.
2439 # Reject install programs that cannot install multiple files.
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2441 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2442 if test -z "$INSTALL"; then
2443 if test "${ac_cv_path_install+set}" = set; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 # Account for people who put trailing slashes in PATH elements.
2452 case $as_dir/ in #((
2453 ./ | .// | /[cC]/* | \
2454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2455 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2456 /usr/ucb/* ) ;;
2457 *)
2458 # OSF1 and SCO ODT 3.0 have their own names for install.
2459 # Don't use installbsd from OSF since it installs stuff as root
2460 # by default.
2461 for ac_prog in ginstall scoinst install; do
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2464 if test $ac_prog = install &&
2465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466 # AIX install. It has an incompatible calling convention.
2467 :
2468 elif test $ac_prog = install &&
2469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470 # program-specific install script used by HP pwplus--don't use.
2471 :
2472 else
2473 rm -rf conftest.one conftest.two conftest.dir
2474 echo one > conftest.one
2475 echo two > conftest.two
2476 mkdir conftest.dir
2477 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2478 test -s conftest.one && test -s conftest.two &&
2479 test -s conftest.dir/conftest.one &&
2480 test -s conftest.dir/conftest.two
2481 then
2482 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2483 break 3
2484 fi
2485 fi
2486 fi
2487 done
2488 done
2489 ;;
2490 esac
2491
2492 done
2493 IFS=$as_save_IFS
2494
2495 rm -rf conftest.one conftest.two conftest.dir
2496
2497 fi
2498 if test "${ac_cv_path_install+set}" = set; then
2499 INSTALL=$ac_cv_path_install
2500 else
2501 # As a last resort, use the slow shell script. Don't cache a
2502 # value for INSTALL within a source directory, because that will
2503 # break other packages using the cache if that directory is
2504 # removed, or if the value is a relative name.
2505 INSTALL=$ac_install_sh
2506 fi
2507 fi
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2509 $as_echo "$INSTALL" >&6; }
2510
2511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2512 # It thinks the first close brace ends the variable substitution.
2513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2514
2515 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2516
2517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2518
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2520 $as_echo_n "checking whether build environment is sane... " >&6; }
2521 # Just in case
2522 sleep 1
2523 echo timestamp > conftest.file
2524 # Reject unsafe characters in $srcdir or the absolute working directory
2525 # name. Accept space and tab only in the latter.
2526 am_lf='
2527 '
2528 case `pwd` in
2529 *[\\\"\#\$\&\'\`$am_lf]*)
2530 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2531 esac
2532 case $srcdir in
2533 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2534 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2535 esac
2536
2537 # Do `set' in a subshell so we don't clobber the current shell's
2538 # arguments. Must try -L first in case configure is actually a
2539 # symlink; some systems play weird games with the mod time of symlinks
2540 # (eg FreeBSD returns the mod time of the symlink's containing
2541 # directory).
2542 if (
2543 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2544 if test "$*" = "X"; then
2545 # -L didn't work.
2546 set X `ls -t "$srcdir/configure" conftest.file`
2547 fi
2548 rm -f conftest.file
2549 if test "$*" != "X $srcdir/configure conftest.file" \
2550 && test "$*" != "X conftest.file $srcdir/configure"; then
2551
2552 # If neither matched, then we have a broken ls. This can happen
2553 # if, for instance, CONFIG_SHELL is bash and it inherits a
2554 # broken ls alias from the environment. This has actually
2555 # happened. Such a system could not be considered "sane".
2556 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2557 alias in your environment" "$LINENO" 5
2558 fi
2559
2560 test "$2" = conftest.file
2561 )
2562 then
2563 # Ok.
2564 :
2565 else
2566 as_fn_error "newly created file is older than distributed files!
2567 Check your system clock" "$LINENO" 5
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2570 $as_echo "yes" >&6; }
2571 test "$program_prefix" != NONE &&
2572 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2573 # Use a double $ so make ignores it.
2574 test "$program_suffix" != NONE &&
2575 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2576 # Double any \ or $.
2577 # By default was `s,x,x', remove it if useless.
2578 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2579 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2580
2581 # expand $ac_aux_dir to an absolute path
2582 am_aux_dir=`cd $ac_aux_dir && pwd`
2583
2584 if test x"${MISSING+set}" != xset; then
2585 case $am_aux_dir in
2586 *\ * | *\ *)
2587 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2588 *)
2589 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2590 esac
2591 fi
2592 # Use eval to expand $SHELL
2593 if eval "$MISSING --run true"; then
2594 am_missing_run="$MISSING --run "
2595 else
2596 am_missing_run=
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2598 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2599 fi
2600
2601 if test x"${install_sh}" != xset; then
2602 case $am_aux_dir in
2603 *\ * | *\ *)
2604 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2605 *)
2606 install_sh="\${SHELL} $am_aux_dir/install-sh"
2607 esac
2608 fi
2609
2610 # Installed binaries are usually stripped using `strip' when the user
2611 # run `make install-strip'. However `strip' might not be the right
2612 # tool to use in cross-compilation environments, therefore Automake
2613 # will honor the `STRIP' environment variable to overrule this program.
2614 if test "$cross_compiling" != no; then
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}strip; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_STRIP+set}" = set; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 if test -n "$STRIP"; then
2624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642 fi
2643 STRIP=$ac_cv_prog_STRIP
2644 if test -n "$STRIP"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2646 $as_echo "$STRIP" >&6; }
2647 else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2650 fi
2651
2652
2653 fi
2654 if test -z "$ac_cv_prog_STRIP"; then
2655 ac_ct_STRIP=$STRIP
2656 # Extract the first word of "strip", so it can be a program name with args.
2657 set dummy strip; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 if test -n "$ac_ct_STRIP"; then
2664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_ac_ct_STRIP="strip"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2684 if test -n "$ac_ct_STRIP"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2686 $as_echo "$ac_ct_STRIP" >&6; }
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692 if test "x$ac_ct_STRIP" = x; then
2693 STRIP=":"
2694 else
2695 case $cross_compiling:$ac_tool_warned in
2696 yes:)
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2700 esac
2701 STRIP=$ac_ct_STRIP
2702 fi
2703 else
2704 STRIP="$ac_cv_prog_STRIP"
2705 fi
2706
2707 fi
2708 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2709
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2711 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2712 if test -z "$MKDIR_P"; then
2713 if test "${ac_cv_path_mkdir+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2718 do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_prog in mkdir gmkdir; do
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2724 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2725 'mkdir (GNU coreutils) '* | \
2726 'mkdir (coreutils) '* | \
2727 'mkdir (fileutils) '4.1*)
2728 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2729 break 3;;
2730 esac
2731 done
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 fi
2737
2738 if test "${ac_cv_path_mkdir+set}" = set; then
2739 MKDIR_P="$ac_cv_path_mkdir -p"
2740 else
2741 # As a last resort, use the slow shell script. Don't cache a
2742 # value for MKDIR_P within a source directory, because that will
2743 # break other packages using the cache if that directory is
2744 # removed, or if the value is a relative name.
2745 test -d ./--version && rmdir ./--version
2746 MKDIR_P="$ac_install_sh -d"
2747 fi
2748 fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2750 $as_echo "$MKDIR_P" >&6; }
2751
2752 mkdir_p="$MKDIR_P"
2753 case $mkdir_p in
2754 [\\/$]* | ?:[\\/]*) ;;
2755 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2756 esac
2757
2758 for ac_prog in gawk mawk nawk awk
2759 do
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_AWK+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if test -n "$AWK"; then
2768 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_AWK="$ac_prog"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 AWK=$ac_cv_prog_AWK
2788 if test -n "$AWK"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2790 $as_echo "$AWK" >&6; }
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796
2797 test -n "$AWK" && break
2798 done
2799
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2802 set x ${MAKE-make}
2803 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2804 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 cat >conftest.make <<\_ACEOF
2808 SHELL = /bin/sh
2809 all:
2810 @echo '@@@%%%=$(MAKE)=@@@%%%'
2811 _ACEOF
2812 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2814 *@@@%%%=?*=@@@%%%*)
2815 eval ac_cv_prog_make_${ac_make}_set=yes;;
2816 *)
2817 eval ac_cv_prog_make_${ac_make}_set=no;;
2818 esac
2819 rm -f conftest.make
2820 fi
2821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823 $as_echo "yes" >&6; }
2824 SET_MAKE=
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 SET_MAKE="MAKE=${MAKE-make}"
2829 fi
2830
2831 rm -rf .tst 2>/dev/null
2832 mkdir .tst 2>/dev/null
2833 if test -d .tst; then
2834 am__leading_dot=.
2835 else
2836 am__leading_dot=_
2837 fi
2838 rmdir .tst 2>/dev/null
2839
2840 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2841 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2842 # is not polluted with repeated "-I."
2843 am__isrc=' -I$(srcdir)'
2844 # test to see if srcdir already configured
2845 if test -f $srcdir/config.status; then
2846 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2847 fi
2848 fi
2849
2850 # test whether we have cygpath
2851 if test -z "$CYGPATH_W"; then
2852 if (cygpath --version) >/dev/null 2>/dev/null; then
2853 CYGPATH_W='cygpath -w'
2854 else
2855 CYGPATH_W=echo
2856 fi
2857 fi
2858
2859
2860 # Define the identity of the package.
2861 PACKAGE='libvtv'
2862 VERSION='1.0'
2863
2864
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE "$PACKAGE"
2867 _ACEOF
2868
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define VERSION "$VERSION"
2872 _ACEOF
2873
2874 # Some tools Automake needs.
2875
2876 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2877
2878
2879 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2880
2881
2882 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2883
2884
2885 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2886
2887
2888 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2889
2890 # We need awk for the "check" target. The system "awk" is bad on
2891 # some platforms.
2892 # Always define AMTAR for backward compatibility.
2893
2894 AMTAR=${AMTAR-"${am_missing_run}tar"}
2895
2896 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2897
2898
2899
2900
2901
2902 # Default to --enable-multilib
2903 # Check whether --enable-multilib was given.
2904 if test "${enable_multilib+set}" = set; then :
2905 enableval=$enable_multilib; case "$enableval" in
2906 yes) multilib=yes ;;
2907 no) multilib=no ;;
2908 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2909 esac
2910 else
2911 multilib=yes
2912 fi
2913
2914
2915 # We may get other options which we leave undocumented:
2916 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2917 # See config-ml.in if you want the gory details.
2918
2919 if test "$srcdir" = "."; then
2920 if test "$with_target_subdir" != "."; then
2921 multi_basedir="$srcdir/$with_multisrctop../.."
2922 else
2923 multi_basedir="$srcdir/$with_multisrctop.."
2924 fi
2925 else
2926 multi_basedir="$srcdir/.."
2927 fi
2928
2929
2930 # Even if the default multilib is not a cross compilation,
2931 # it may be that some of the other multilibs are.
2932 if test $cross_compiling = no && test $multilib = yes \
2933 && test "x${with_multisubdir}" != x ; then
2934 cross_compiling=maybe
2935 fi
2936
2937 ac_config_commands="$ac_config_commands default-1"
2938
2939
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2941 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2942 # Check whether --enable-maintainer-mode was given.
2943 if test "${enable_maintainer_mode+set}" = set; then :
2944 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2945 else
2946 USE_MAINTAINER_MODE=no
2947 fi
2948
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2950 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2951 if test $USE_MAINTAINER_MODE = yes; then
2952 MAINTAINER_MODE_TRUE=
2953 MAINTAINER_MODE_FALSE='#'
2954 else
2955 MAINTAINER_MODE_TRUE='#'
2956 MAINTAINER_MODE_FALSE=
2957 fi
2958
2959 MAINT=$MAINTAINER_MODE_TRUE
2960
2961
2962
2963 # Calculate toolexeclibdir
2964 # Also toolexecdir, though it's only used in toolexeclibdir
2965 case ${version_specific_libs} in
2966 yes)
2967 # Need the gcc compiler version to know where to install libraries
2968 # and header files if --enable-version-specific-runtime-libs option
2969 # is selected.
2970 toolexecdir='$(libdir)/gcc/$(target_alias)'
2971 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2972 ;;
2973 no)
2974 if test -n "$with_cross_host" &&
2975 test x"$with_cross_host" != x"no"; then
2976 # Install a library built with a cross compiler in tooldir, not libdir.
2977 toolexecdir='$(exec_prefix)/$(target_alias)'
2978 toolexeclibdir='$(toolexecdir)/lib'
2979 else
2980 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2981 toolexeclibdir='$(libdir)'
2982 fi
2983 multi_os_directory=`$CC -print-multi-os-directory`
2984 case $multi_os_directory in
2985 .) ;; # Avoid trailing /.
2986 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2987 esac
2988 ;;
2989 esac
2990
2991
2992
2993 # Check for programs.
2994
2995
2996 ac_ext=c
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_CC+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3033 else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039 fi
3040 if test -z "$ac_cv_prog_CC"; then
3041 ac_ct_CC=$CC
3042 # Extract the first word of "gcc", so it can be a program name with args.
3043 set dummy gcc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_ac_ct_CC="gcc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3072 $as_echo "$ac_ct_CC" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078 if test "x$ac_ct_CC" = x; then
3079 CC=""
3080 else
3081 case $cross_compiling:$ac_tool_warned in
3082 yes:)
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085 ac_tool_warned=yes ;;
3086 esac
3087 CC=$ac_ct_CC
3088 fi
3089 else
3090 CC="$ac_cv_prog_CC"
3091 fi
3092
3093 if test -z "$CC"; then
3094 if test -n "$ac_tool_prefix"; then
3095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3096 set dummy ${ac_tool_prefix}cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_CC+set}" = set; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_CC="${ac_tool_prefix}cc"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3115 fi
3116 done
3117 done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132 fi
3133 fi
3134 if test -z "$CC"; then
3135 # Extract the first word of "cc", so it can be a program name with args.
3136 set dummy cc; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if test "${ac_cv_prog_CC+set}" = set; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145 ac_prog_rejected=no
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3154 ac_prog_rejected=yes
3155 continue
3156 fi
3157 ac_cv_prog_CC="cc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 if test $ac_prog_rejected = yes; then
3166 # We found a bogon in the path, so make sure we never use it.
3167 set dummy $ac_cv_prog_CC
3168 shift
3169 if test $# != 0; then
3170 # We chose a different compiler from the bogus one.
3171 # However, it has the same basename, so the bogon will be chosen
3172 # first if we set CC to just the basename; use the full file name.
3173 shift
3174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3175 fi
3176 fi
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 fi
3190 if test -z "$CC"; then
3191 if test -n "$ac_tool_prefix"; then
3192 for ac_prog in cl.exe
3193 do
3194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_CC+set}" = set; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215 done
3216 done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230
3231 test -n "$CC" && break
3232 done
3233 fi
3234 if test -z "$CC"; then
3235 ac_ct_CC=$CC
3236 for ac_prog in cl.exe
3237 do
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 if test -n "$ac_ct_CC"; then
3246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3250 do
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255 ac_cv_prog_ac_ct_CC="$ac_prog"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3258 fi
3259 done
3260 done
3261 IFS=$as_save_IFS
3262
3263 fi
3264 fi
3265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3266 if test -n "$ac_ct_CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3268 $as_echo "$ac_ct_CC" >&6; }
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 fi
3273
3274
3275 test -n "$ac_ct_CC" && break
3276 done
3277
3278 if test "x$ac_ct_CC" = x; then
3279 CC=""
3280 else
3281 case $cross_compiling:$ac_tool_warned in
3282 yes:)
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3285 ac_tool_warned=yes ;;
3286 esac
3287 CC=$ac_ct_CC
3288 fi
3289 fi
3290
3291 fi
3292
3293
3294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error "no acceptable C compiler found in \$PATH
3297 See \`config.log' for more details." "$LINENO" 5; }
3298
3299 # Provide some information about the compiler.
3300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3301 set X $ac_compile
3302 ac_compiler=$2
3303 for ac_option in --version -v -V -qversion; do
3304 { { ac_try="$ac_compiler $ac_option >&5"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3312 ac_status=$?
3313 if test -s conftest.err; then
3314 sed '10a\
3315 ... rest of stderr output deleted ...
3316 10q' conftest.err >conftest.er1
3317 cat conftest.er1 >&5
3318 rm -f conftest.er1 conftest.err
3319 fi
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }
3322 done
3323
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3326
3327 int
3328 main ()
3329 {
3330
3331 ;
3332 return 0;
3333 }
3334 _ACEOF
3335 ac_clean_files_save=$ac_clean_files
3336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3337 # Try to create an executable without -o first, disregard a.out.
3338 # It will help us diagnose broken compilers, and finding out an intuition
3339 # of exeext.
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3341 $as_echo_n "checking for C compiler default output file name... " >&6; }
3342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3343
3344 # The possible output files:
3345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3346
3347 ac_rmfiles=
3348 for ac_file in $ac_files
3349 do
3350 case $ac_file in
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3353 esac
3354 done
3355 rm -f $ac_rmfiles
3356
3357 if { { ac_try="$ac_link_default"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364 (eval "$ac_link_default") 2>&5
3365 ac_status=$?
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }; then :
3368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3371 # so that the user can short-circuit this test for compilers unknown to
3372 # Autoconf.
3373 for ac_file in $ac_files ''
3374 do
3375 test -f "$ac_file" || continue
3376 case $ac_file in
3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3378 ;;
3379 [ab].out )
3380 # We found the default executable, but exeext='' is most
3381 # certainly right.
3382 break;;
3383 *.* )
3384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3385 then :; else
3386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3387 fi
3388 # We set ac_cv_exeext here because the later test for it is not
3389 # safe: cross compilers may not add the suffix if given an `-o'
3390 # argument, so we may need to know it at that point already.
3391 # Even if this section looks crufty: it has the advantage of
3392 # actually working.
3393 break;;
3394 * )
3395 break;;
3396 esac
3397 done
3398 test "$ac_cv_exeext" = no && ac_cv_exeext=
3399
3400 else
3401 ac_file=''
3402 fi
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3404 $as_echo "$ac_file" >&6; }
3405 if test -z "$ac_file"; then :
3406 $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 { as_fn_set_status 77
3412 as_fn_error "C compiler cannot create executables
3413 See \`config.log' for more details." "$LINENO" 5; }; }
3414 fi
3415 ac_exeext=$ac_cv_exeext
3416
3417 # Check that the compiler produces executables we can run. If not, either
3418 # the compiler is broken, or we cross compile.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3420 $as_echo_n "checking whether the C compiler works... " >&6; }
3421 # If not cross compiling, check that we can run a simple program.
3422 if test "$cross_compiling" != yes; then
3423 if { ac_try='./$ac_file'
3424 { { case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_try") 2>&5
3431 ac_status=$?
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }; }; then
3434 cross_compiling=no
3435 else
3436 if test "$cross_compiling" = maybe; then
3437 cross_compiling=yes
3438 else
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 "cannot run C compiled programs.
3442 If you meant to cross compile, use \`--host'.
3443 See \`config.log' for more details." "$LINENO" 5; }
3444 fi
3445 fi
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3448 $as_echo "yes" >&6; }
3449
3450 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3451 ac_clean_files=$ac_clean_files_save
3452 # Check that the compiler produces executables we can run. If not, either
3453 # the compiler is broken, or we cross compile.
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3455 $as_echo_n "checking whether we are cross compiling... " >&6; }
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3457 $as_echo "$cross_compiling" >&6; }
3458
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3460 $as_echo_n "checking for suffix of executables... " >&6; }
3461 if { { ac_try="$ac_link"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_link") 2>&5
3469 ac_status=$?
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }; then :
3472 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3473 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3474 # work properly (i.e., refer to `conftest.exe'), while it won't with
3475 # `rm'.
3476 for ac_file in conftest.exe conftest conftest.*; do
3477 test -f "$ac_file" || continue
3478 case $ac_file in
3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3480 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3481 break;;
3482 * ) break;;
3483 esac
3484 done
3485 else
3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error "cannot compute suffix of executables: cannot compile and link
3489 See \`config.log' for more details." "$LINENO" 5; }
3490 fi
3491 rm -f conftest$ac_cv_exeext
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3493 $as_echo "$ac_cv_exeext" >&6; }
3494
3495 rm -f conftest.$ac_ext
3496 EXEEXT=$ac_cv_exeext
3497 ac_exeext=$EXEEXT
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3499 $as_echo_n "checking for suffix of object files... " >&6; }
3500 if test "${ac_cv_objext+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 rm -f conftest.o conftest.obj
3515 if { { ac_try="$ac_compile"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_compile") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; then :
3526 for ac_file in conftest.o conftest.obj conftest.*; do
3527 test -f "$ac_file" || continue;
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3531 break;;
3532 esac
3533 done
3534 else
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error "cannot compute suffix of object files: cannot compile
3541 See \`config.log' for more details." "$LINENO" 5; }
3542 fi
3543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3546 $as_echo "$ac_cv_objext" >&6; }
3547 OBJEXT=$ac_cv_objext
3548 ac_objext=$OBJEXT
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3550 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3551 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3556
3557 int
3558 main ()
3559 {
3560 #ifndef __GNUC__
3561 choke me
3562 #endif
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_compiler_gnu=yes
3570 else
3571 ac_compiler_gnu=no
3572 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3575
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3578 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3579 if test $ac_compiler_gnu = yes; then
3580 GCC=yes
3581 else
3582 GCC=
3583 fi
3584 ac_test_CFLAGS=${CFLAGS+set}
3585 ac_save_CFLAGS=$CFLAGS
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3587 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3588 if test "${ac_cv_prog_cc_g+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 ac_save_c_werror_flag=$ac_c_werror_flag
3592 ac_c_werror_flag=yes
3593 ac_cv_prog_cc_g=no
3594 CFLAGS="-g"
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597
3598 int
3599 main ()
3600 {
3601
3602 ;
3603 return 0;
3604 }
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_cv_prog_cc_g=yes
3608 else
3609 CFLAGS=""
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3612
3613 int
3614 main ()
3615 {
3616
3617 ;
3618 return 0;
3619 }
3620 _ACEOF
3621 if ac_fn_c_try_compile "$LINENO"; then :
3622
3623 else
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3625 CFLAGS="-g"
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628
3629 int
3630 main ()
3631 {
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_cv_prog_cc_g=yes
3639 fi
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 fi
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_c_werror_flag=$ac_save_c_werror_flag
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3648 $as_echo "$ac_cv_prog_cc_g" >&6; }
3649 if test "$ac_test_CFLAGS" = set; then
3650 CFLAGS=$ac_save_CFLAGS
3651 elif test $ac_cv_prog_cc_g = yes; then
3652 if test "$GCC" = yes; then
3653 CFLAGS="-g -O2"
3654 else
3655 CFLAGS="-g"
3656 fi
3657 else
3658 if test "$GCC" = yes; then
3659 CFLAGS="-O2"
3660 else
3661 CFLAGS=
3662 fi
3663 fi
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3665 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3666 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 ac_cv_prog_cc_c89=no
3670 ac_save_CC=$CC
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3673 #include <stdarg.h>
3674 #include <stdio.h>
3675 #include <sys/types.h>
3676 #include <sys/stat.h>
3677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3678 struct buf { int x; };
3679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3680 static char *e (p, i)
3681 char **p;
3682 int i;
3683 {
3684 return p[i];
3685 }
3686 static char *f (char * (*g) (char **, int), char **p, ...)
3687 {
3688 char *s;
3689 va_list v;
3690 va_start (v,p);
3691 s = g (p, va_arg (v,int));
3692 va_end (v);
3693 return s;
3694 }
3695
3696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3697 function prototypes and stuff, but not '\xHH' hex character constants.
3698 These don't provoke an error unfortunately, instead are silently treated
3699 as 'x'. The following induces an error, until -std is added to get
3700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3701 array size at least. It's necessary to write '\x00'==0 to get something
3702 that's true only with -std. */
3703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3704
3705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3706 inside strings and character constants. */
3707 #define FOO(x) 'x'
3708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3709
3710 int test (int i, double x);
3711 struct s1 {int (*f) (int a);};
3712 struct s2 {int (*f) (double a);};
3713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3714 int argc;
3715 char **argv;
3716 int
3717 main ()
3718 {
3719 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3726 do
3727 CC="$ac_save_CC $ac_arg"
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_cv_prog_cc_c89=$ac_arg
3730 fi
3731 rm -f core conftest.err conftest.$ac_objext
3732 test "x$ac_cv_prog_cc_c89" != "xno" && break
3733 done
3734 rm -f conftest.$ac_ext
3735 CC=$ac_save_CC
3736
3737 fi
3738 # AC_CACHE_VAL
3739 case "x$ac_cv_prog_cc_c89" in
3740 x)
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3742 $as_echo "none needed" >&6; } ;;
3743 xno)
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3745 $as_echo "unsupported" >&6; } ;;
3746 *)
3747 CC="$CC $ac_cv_prog_cc_c89"
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3749 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3750 esac
3751 if test "x$ac_cv_prog_cc_c89" != xno; then :
3752
3753 fi
3754
3755 ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 DEPDIR="${am__leading_dot}deps"
3761
3762 ac_config_commands="$ac_config_commands depfiles"
3763
3764
3765 am_make=${MAKE-make}
3766 cat > confinc << 'END'
3767 am__doit:
3768 @echo this is the am__doit target
3769 .PHONY: am__doit
3770 END
3771 # If we don't find an include directive, just comment out the code.
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3773 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3774 am__include="#"
3775 am__quote=
3776 _am_result=none
3777 # First try GNU make style include.
3778 echo "include confinc" > confmf
3779 # Ignore all kinds of additional output from `make'.
3780 case `$am_make -s -f confmf 2> /dev/null` in #(
3781 *the\ am__doit\ target*)
3782 am__include=include
3783 am__quote=
3784 _am_result=GNU
3785 ;;
3786 esac
3787 # Now try BSD make style include.
3788 if test "$am__include" = "#"; then
3789 echo '.include "confinc"' > confmf
3790 case `$am_make -s -f confmf 2> /dev/null` in #(
3791 *the\ am__doit\ target*)
3792 am__include=.include
3793 am__quote="\""
3794 _am_result=BSD
3795 ;;
3796 esac
3797 fi
3798
3799
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3801 $as_echo "$_am_result" >&6; }
3802 rm -f confinc confmf
3803
3804 # Check whether --enable-dependency-tracking was given.
3805 if test "${enable_dependency_tracking+set}" = set; then :
3806 enableval=$enable_dependency_tracking;
3807 fi
3808
3809 if test "x$enable_dependency_tracking" != xno; then
3810 am_depcomp="$ac_aux_dir/depcomp"
3811 AMDEPBACKSLASH='\'
3812 fi
3813 if test "x$enable_dependency_tracking" != xno; then
3814 AMDEP_TRUE=
3815 AMDEP_FALSE='#'
3816 else
3817 AMDEP_TRUE='#'
3818 AMDEP_FALSE=
3819 fi
3820
3821
3822
3823 depcc="$CC" am_compiler_list=
3824
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3826 $as_echo_n "checking dependency style of $depcc... " >&6; }
3827 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3831 # We make a subdir and do the tests there. Otherwise we can end up
3832 # making bogus files that we don't know about and never remove. For
3833 # instance it was reported that on HP-UX the gcc test will end up
3834 # making a dummy file named `D' -- because `-MD' means `put the output
3835 # in D'.
3836 mkdir conftest.dir
3837 # Copy depcomp to subdir because otherwise we won't find it if we're
3838 # using a relative directory.
3839 cp "$am_depcomp" conftest.dir
3840 cd conftest.dir
3841 # We will build objects and dependencies in a subdirectory because
3842 # it helps to detect inapplicable dependency modes. For instance
3843 # both Tru64's cc and ICC support -MD to output dependencies as a
3844 # side effect of compilation, but ICC will put the dependencies in
3845 # the current directory while Tru64 will put them in the object
3846 # directory.
3847 mkdir sub
3848
3849 am_cv_CC_dependencies_compiler_type=none
3850 if test "$am_compiler_list" = ""; then
3851 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3852 fi
3853 am__universal=false
3854 case " $depcc " in #(
3855 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3856 esac
3857
3858 for depmode in $am_compiler_list; do
3859 # Setup a source with many dependencies, because some compilers
3860 # like to wrap large dependency lists on column 80 (with \), and
3861 # we should not choose a depcomp mode which is confused by this.
3862 #
3863 # We need to recreate these files for each test, as the compiler may
3864 # overwrite some of them when testing with obscure command lines.
3865 # This happens at least with the AIX C compiler.
3866 : > sub/conftest.c
3867 for i in 1 2 3 4 5 6; do
3868 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3869 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3870 # Solaris 8's {/usr,}/bin/sh.
3871 touch sub/conftst$i.h
3872 done
3873 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3874
3875 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3876 # mode. It turns out that the SunPro C++ compiler does not properly
3877 # handle `-M -o', and we need to detect this. Also, some Intel
3878 # versions had trouble with output in subdirs
3879 am__obj=sub/conftest.${OBJEXT-o}
3880 am__minus_obj="-o $am__obj"
3881 case $depmode in
3882 gcc)
3883 # This depmode causes a compiler race in universal mode.
3884 test "$am__universal" = false || continue
3885 ;;
3886 nosideeffect)
3887 # after this tag, mechanisms are not by side-effect, so they'll
3888 # only be used when explicitly requested
3889 if test "x$enable_dependency_tracking" = xyes; then
3890 continue
3891 else
3892 break
3893 fi
3894 ;;
3895 msvisualcpp | msvcmsys)
3896 # This compiler won't grok `-c -o', but also, the minuso test has
3897 # not run yet. These depmodes are late enough in the game, and
3898 # so weak that their functioning should not be impacted.
3899 am__obj=conftest.${OBJEXT-o}
3900 am__minus_obj=
3901 ;;
3902 none) break ;;
3903 esac
3904 if depmode=$depmode \
3905 source=sub/conftest.c object=$am__obj \
3906 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3907 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3908 >/dev/null 2>conftest.err &&
3909 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3910 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3911 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3913 # icc doesn't choke on unknown options, it will just issue warnings
3914 # or remarks (even with -Werror). So we grep stderr for any message
3915 # that says an option was ignored or not supported.
3916 # When given -MP, icc 7.0 and 7.1 complain thusly:
3917 # icc: Command line warning: ignoring option '-M'; no argument required
3918 # The diagnosis changed in icc 8.0:
3919 # icc: Command line remark: option '-MP' not supported
3920 if (grep 'ignoring option' conftest.err ||
3921 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3922 am_cv_CC_dependencies_compiler_type=$depmode
3923 break
3924 fi
3925 fi
3926 done
3927
3928 cd ..
3929 rm -rf conftest.dir
3930 else
3931 am_cv_CC_dependencies_compiler_type=none
3932 fi
3933
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3936 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3937 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3938
3939 if
3940 test "x$enable_dependency_tracking" != xno \
3941 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3942 am__fastdepCC_TRUE=
3943 am__fastdepCC_FALSE='#'
3944 else
3945 am__fastdepCC_TRUE='#'
3946 am__fastdepCC_FALSE=
3947 fi
3948
3949
3950 ac_ext=cpp
3951 ac_cpp='$CXXCPP $CPPFLAGS'
3952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3955 if test -z "$CXX"; then
3956 if test -n "$CCC"; then
3957 CXX=$CCC
3958 else
3959 if test -n "$ac_tool_prefix"; then
3960 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3961 do
3962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if test "${ac_cv_prog_CXX+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 if test -n "$CXX"; then
3970 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983 done
3984 done
3985 IFS=$as_save_IFS
3986
3987 fi
3988 fi
3989 CXX=$ac_cv_prog_CXX
3990 if test -n "$CXX"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3992 $as_echo "$CXX" >&6; }
3993 else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3996 fi
3997
3998
3999 test -n "$CXX" && break
4000 done
4001 fi
4002 if test -z "$CXX"; then
4003 ac_ct_CXX=$CXX
4004 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4005 do
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007 set dummy $ac_prog; ac_word=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if test -n "$ac_ct_CXX"; then
4014 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023 ac_cv_prog_ac_ct_CXX="$ac_prog"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027 done
4028 done
4029 IFS=$as_save_IFS
4030
4031 fi
4032 fi
4033 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4034 if test -n "$ac_ct_CXX"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4036 $as_echo "$ac_ct_CXX" >&6; }
4037 else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4040 fi
4041
4042
4043 test -n "$ac_ct_CXX" && break
4044 done
4045
4046 if test "x$ac_ct_CXX" = x; then
4047 CXX="g++"
4048 else
4049 case $cross_compiling:$ac_tool_warned in
4050 yes:)
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4053 ac_tool_warned=yes ;;
4054 esac
4055 CXX=$ac_ct_CXX
4056 fi
4057 fi
4058
4059 fi
4060 fi
4061 # Provide some information about the compiler.
4062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4063 set X $ac_compile
4064 ac_compiler=$2
4065 for ac_option in --version -v -V -qversion; do
4066 { { ac_try="$ac_compiler $ac_option >&5"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4074 ac_status=$?
4075 if test -s conftest.err; then
4076 sed '10a\
4077 ... rest of stderr output deleted ...
4078 10q' conftest.err >conftest.er1
4079 cat conftest.er1 >&5
4080 rm -f conftest.er1 conftest.err
4081 fi
4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083 test $ac_status = 0; }
4084 done
4085
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4087 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4088 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093
4094 int
4095 main ()
4096 {
4097 #ifndef __GNUC__
4098 choke me
4099 #endif
4100
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 if ac_fn_cxx_try_compile "$LINENO"; then :
4106 ac_compiler_gnu=yes
4107 else
4108 ac_compiler_gnu=no
4109 fi
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4112
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4115 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4116 if test $ac_compiler_gnu = yes; then
4117 GXX=yes
4118 else
4119 GXX=
4120 fi
4121 ac_test_CXXFLAGS=${CXXFLAGS+set}
4122 ac_save_CXXFLAGS=$CXXFLAGS
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4124 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4125 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4129 ac_cxx_werror_flag=yes
4130 ac_cv_prog_cxx_g=no
4131 CXXFLAGS="-g"
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134
4135 int
4136 main ()
4137 {
4138
4139 ;
4140 return 0;
4141 }
4142 _ACEOF
4143 if ac_fn_cxx_try_compile "$LINENO"; then :
4144 ac_cv_prog_cxx_g=yes
4145 else
4146 CXXFLAGS=""
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149
4150 int
4151 main ()
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 if ac_fn_cxx_try_compile "$LINENO"; then :
4159
4160 else
4161 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4162 CXXFLAGS="-g"
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165
4166 int
4167 main ()
4168 {
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_cxx_try_compile "$LINENO"; then :
4175 ac_cv_prog_cxx_g=yes
4176 fi
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 fi
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4185 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4186 if test "$ac_test_CXXFLAGS" = set; then
4187 CXXFLAGS=$ac_save_CXXFLAGS
4188 elif test $ac_cv_prog_cxx_g = yes; then
4189 if test "$GXX" = yes; then
4190 CXXFLAGS="-g -O2"
4191 else
4192 CXXFLAGS="-g"
4193 fi
4194 else
4195 if test "$GXX" = yes; then
4196 CXXFLAGS="-O2"
4197 else
4198 CXXFLAGS=
4199 fi
4200 fi
4201 ac_ext=c
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206
4207 depcc="$CXX" am_compiler_list=
4208
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4210 $as_echo_n "checking dependency style of $depcc... " >&6; }
4211 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4215 # We make a subdir and do the tests there. Otherwise we can end up
4216 # making bogus files that we don't know about and never remove. For
4217 # instance it was reported that on HP-UX the gcc test will end up
4218 # making a dummy file named `D' -- because `-MD' means `put the output
4219 # in D'.
4220 mkdir conftest.dir
4221 # Copy depcomp to subdir because otherwise we won't find it if we're
4222 # using a relative directory.
4223 cp "$am_depcomp" conftest.dir
4224 cd conftest.dir
4225 # We will build objects and dependencies in a subdirectory because
4226 # it helps to detect inapplicable dependency modes. For instance
4227 # both Tru64's cc and ICC support -MD to output dependencies as a
4228 # side effect of compilation, but ICC will put the dependencies in
4229 # the current directory while Tru64 will put them in the object
4230 # directory.
4231 mkdir sub
4232
4233 am_cv_CXX_dependencies_compiler_type=none
4234 if test "$am_compiler_list" = ""; then
4235 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4236 fi
4237 am__universal=false
4238 case " $depcc " in #(
4239 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4240 esac
4241
4242 for depmode in $am_compiler_list; do
4243 # Setup a source with many dependencies, because some compilers
4244 # like to wrap large dependency lists on column 80 (with \), and
4245 # we should not choose a depcomp mode which is confused by this.
4246 #
4247 # We need to recreate these files for each test, as the compiler may
4248 # overwrite some of them when testing with obscure command lines.
4249 # This happens at least with the AIX C compiler.
4250 : > sub/conftest.c
4251 for i in 1 2 3 4 5 6; do
4252 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4253 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4254 # Solaris 8's {/usr,}/bin/sh.
4255 touch sub/conftst$i.h
4256 done
4257 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4258
4259 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4260 # mode. It turns out that the SunPro C++ compiler does not properly
4261 # handle `-M -o', and we need to detect this. Also, some Intel
4262 # versions had trouble with output in subdirs
4263 am__obj=sub/conftest.${OBJEXT-o}
4264 am__minus_obj="-o $am__obj"
4265 case $depmode in
4266 gcc)
4267 # This depmode causes a compiler race in universal mode.
4268 test "$am__universal" = false || continue
4269 ;;
4270 nosideeffect)
4271 # after this tag, mechanisms are not by side-effect, so they'll
4272 # only be used when explicitly requested
4273 if test "x$enable_dependency_tracking" = xyes; then
4274 continue
4275 else
4276 break
4277 fi
4278 ;;
4279 msvisualcpp | msvcmsys)
4280 # This compiler won't grok `-c -o', but also, the minuso test has
4281 # not run yet. These depmodes are late enough in the game, and
4282 # so weak that their functioning should not be impacted.
4283 am__obj=conftest.${OBJEXT-o}
4284 am__minus_obj=
4285 ;;
4286 none) break ;;
4287 esac
4288 if depmode=$depmode \
4289 source=sub/conftest.c object=$am__obj \
4290 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4291 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4292 >/dev/null 2>conftest.err &&
4293 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4294 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4295 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4296 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4297 # icc doesn't choke on unknown options, it will just issue warnings
4298 # or remarks (even with -Werror). So we grep stderr for any message
4299 # that says an option was ignored or not supported.
4300 # When given -MP, icc 7.0 and 7.1 complain thusly:
4301 # icc: Command line warning: ignoring option '-M'; no argument required
4302 # The diagnosis changed in icc 8.0:
4303 # icc: Command line remark: option '-MP' not supported
4304 if (grep 'ignoring option' conftest.err ||
4305 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4306 am_cv_CXX_dependencies_compiler_type=$depmode
4307 break
4308 fi
4309 fi
4310 done
4311
4312 cd ..
4313 rm -rf conftest.dir
4314 else
4315 am_cv_CXX_dependencies_compiler_type=none
4316 fi
4317
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4320 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4321 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4322
4323 if
4324 test "x$enable_dependency_tracking" != xno \
4325 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4326 am__fastdepCXX_TRUE=
4327 am__fastdepCXX_FALSE='#'
4328 else
4329 am__fastdepCXX_TRUE='#'
4330 am__fastdepCXX_FALSE=
4331 fi
4332
4333
4334
4335
4336 if test "x$CC" != xcc; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4338 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4341 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4342 fi
4343 set dummy $CC; ac_cc=`$as_echo "$2" |
4344 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4345 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350
4351 int
4352 main ()
4353 {
4354
4355 ;
4356 return 0;
4357 }
4358 _ACEOF
4359 # Make sure it works both with $CC and with simple cc.
4360 # We do the test twice because some compilers refuse to overwrite an
4361 # existing .o file with -o, though they will create one.
4362 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4363 rm -f conftest2.*
4364 if { { case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367 esac
4368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369 $as_echo "$ac_try_echo"; } >&5
4370 (eval "$ac_try") 2>&5
4371 ac_status=$?
4372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373 test $ac_status = 0; } &&
4374 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377 esac
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_try") 2>&5
4381 ac_status=$?
4382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383 test $ac_status = 0; };
4384 then
4385 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4386 if test "x$CC" != xcc; then
4387 # Test first that cc exists at all.
4388 if { ac_try='cc -c conftest.$ac_ext >&5'
4389 { { case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394 $as_echo "$ac_try_echo"; } >&5
4395 (eval "$ac_try") 2>&5
4396 ac_status=$?
4397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398 test $ac_status = 0; }; }; then
4399 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4400 rm -f conftest2.*
4401 if { { case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404 esac
4405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406 $as_echo "$ac_try_echo"; } >&5
4407 (eval "$ac_try") 2>&5
4408 ac_status=$?
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; } &&
4411 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_try") 2>&5
4418 ac_status=$?
4419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420 test $ac_status = 0; };
4421 then
4422 # cc works too.
4423 :
4424 else
4425 # cc exists but doesn't like -o.
4426 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4427 fi
4428 fi
4429 fi
4430 else
4431 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4432 fi
4433 rm -f core conftest*
4434
4435 fi
4436 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4438 $as_echo "yes" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442
4443 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4444
4445 fi
4446
4447 # FIXME: we rely on the cache variable name because
4448 # there is no other way.
4449 set dummy $CC
4450 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4451 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4452 if test "$am_t" != yes; then
4453 # Losing compiler, so override with the script.
4454 # FIXME: It is wrong to rewrite CC.
4455 # But if we don't then we get into trouble of one sort or another.
4456 # A longer-term fix would be to have automake use am__CC in this case,
4457 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4458 CC="$am_aux_dir/compile $CC"
4459 fi
4460
4461
4462
4463
4464
4465
4466 # Newer automakes demand CCAS and CCASFLAGS.
4467 : ${CCAS='$(CC)'}
4468 : ${CCASFLAGS='$(CFLAGS)'}
4469
4470
4471
4472 if test -n "$ac_tool_prefix"; then
4473 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4474 set dummy ${ac_tool_prefix}as; ac_word=$2
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if test "${ac_cv_prog_AS+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$AS"; then
4481 ac_cv_prog_AS="$AS" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_prog_AS="${ac_tool_prefix}as"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4493 fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 fi
4499 fi
4500 AS=$ac_cv_prog_AS
4501 if test -n "$AS"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4503 $as_echo "$AS" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509
4510 fi
4511 if test -z "$ac_cv_prog_AS"; then
4512 ac_ct_AS=$AS
4513 # Extract the first word of "as", so it can be a program name with args.
4514 set dummy as; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if test -n "$ac_ct_AS"; then
4521 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_prog_ac_ct_AS="as"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4533 fi
4534 done
4535 done
4536 IFS=$as_save_IFS
4537
4538 fi
4539 fi
4540 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4541 if test -n "$ac_ct_AS"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4543 $as_echo "$ac_ct_AS" >&6; }
4544 else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4547 fi
4548
4549 if test "x$ac_ct_AS" = x; then
4550 AS=""
4551 else
4552 case $cross_compiling:$ac_tool_warned in
4553 yes:)
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556 ac_tool_warned=yes ;;
4557 esac
4558 AS=$ac_ct_AS
4559 fi
4560 else
4561 AS="$ac_cv_prog_AS"
4562 fi
4563
4564 if test -n "$ac_tool_prefix"; then
4565 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4566 set dummy ${ac_tool_prefix}ar; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if test "${ac_cv_prog_AR+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test -n "$AR"; then
4573 ac_cv_prog_AR="$AR" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_AR="${ac_tool_prefix}ar"
4583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586 done
4587 done
4588 IFS=$as_save_IFS
4589
4590 fi
4591 fi
4592 AR=$ac_cv_prog_AR
4593 if test -n "$AR"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4595 $as_echo "$AR" >&6; }
4596 else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4599 fi
4600
4601
4602 fi
4603 if test -z "$ac_cv_prog_AR"; then
4604 ac_ct_AR=$AR
4605 # Extract the first word of "ar", so it can be a program name with args.
4606 set dummy ar; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -n "$ac_ct_AR"; then
4613 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_ac_ct_AR="ar"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626 done
4627 done
4628 IFS=$as_save_IFS
4629
4630 fi
4631 fi
4632 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4633 if test -n "$ac_ct_AR"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4635 $as_echo "$ac_ct_AR" >&6; }
4636 else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4639 fi
4640
4641 if test "x$ac_ct_AR" = x; then
4642 AR=""
4643 else
4644 case $cross_compiling:$ac_tool_warned in
4645 yes:)
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4648 ac_tool_warned=yes ;;
4649 esac
4650 AR=$ac_ct_AR
4651 fi
4652 else
4653 AR="$ac_cv_prog_AR"
4654 fi
4655
4656 if test -n "$ac_tool_prefix"; then
4657 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if test -n "$RANLIB"; then
4665 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682 fi
4683 fi
4684 RANLIB=$ac_cv_prog_RANLIB
4685 if test -n "$RANLIB"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4687 $as_echo "$RANLIB" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4691 fi
4692
4693
4694 fi
4695 if test -z "$ac_cv_prog_RANLIB"; then
4696 ac_ct_RANLIB=$RANLIB
4697 # Extract the first word of "ranlib", so it can be a program name with args.
4698 set dummy ranlib; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$ac_ct_RANLIB"; then
4705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_ac_ct_RANLIB="ranlib"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4725 if test -n "$ac_ct_RANLIB"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4727 $as_echo "$ac_ct_RANLIB" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733 if test "x$ac_ct_RANLIB" = x; then
4734 RANLIB=":"
4735 else
4736 case $cross_compiling:$ac_tool_warned in
4737 yes:)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740 ac_tool_warned=yes ;;
4741 esac
4742 RANLIB=$ac_ct_RANLIB
4743 fi
4744 else
4745 RANLIB="$ac_cv_prog_RANLIB"
4746 fi
4747
4748
4749 # Configure libtool
4750 enable_dlopen=yes
4751
4752
4753
4754 case `pwd` in
4755 *\ * | *\ *)
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4757 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4758 esac
4759
4760
4761
4762 macro_version='2.2.7a'
4763 macro_revision='1.3134'
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777 ltmain="$ac_aux_dir/ltmain.sh"
4778
4779 # Backslashify metacharacters that are still active within
4780 # double-quoted strings.
4781 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4782
4783 # Same as above, but do not quote variable references.
4784 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4785
4786 # Sed substitution to delay expansion of an escaped shell variable in a
4787 # double_quote_subst'ed string.
4788 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4789
4790 # Sed substitution to delay expansion of an escaped single quote.
4791 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4792
4793 # Sed substitution to avoid accidental globbing in evaled expressions
4794 no_glob_subst='s/\*/\\\*/g'
4795
4796 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4797 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4798 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4801 $as_echo_n "checking how to print strings... " >&6; }
4802 # Test print first, because it will be a builtin if present.
4803 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4804 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4805 ECHO='print -r --'
4806 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4807 ECHO='printf %s\n'
4808 else
4809 # Use this function as a fallback that always works.
4810 func_fallback_echo ()
4811 {
4812 eval 'cat <<_LTECHO_EOF
4813 $1
4814 _LTECHO_EOF'
4815 }
4816 ECHO='func_fallback_echo'
4817 fi
4818
4819 # func_echo_all arg...
4820 # Invoke $ECHO with all args, space-separated.
4821 func_echo_all ()
4822 {
4823 $ECHO ""
4824 }
4825
4826 case "$ECHO" in
4827 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4828 $as_echo "printf" >&6; } ;;
4829 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4830 $as_echo "print -r" >&6; } ;;
4831 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4832 $as_echo "cat" >&6; } ;;
4833 esac
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4849 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4850 if test "${ac_cv_path_SED+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4854 for ac_i in 1 2 3 4 5 6 7; do
4855 ac_script="$ac_script$as_nl$ac_script"
4856 done
4857 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4858 { ac_script=; unset ac_script;}
4859 if test -z "$SED"; then
4860 ac_path_SED_found=false
4861 # Loop through the user's path and test for each of PROGNAME-LIST
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_prog in sed gsed; do
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4870 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4871 # Check for GNU ac_path_SED and select it if it is found.
4872 # Check for GNU $ac_path_SED
4873 case `"$ac_path_SED" --version 2>&1` in
4874 *GNU*)
4875 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4876 *)
4877 ac_count=0
4878 $as_echo_n 0123456789 >"conftest.in"
4879 while :
4880 do
4881 cat "conftest.in" "conftest.in" >"conftest.tmp"
4882 mv "conftest.tmp" "conftest.in"
4883 cp "conftest.in" "conftest.nl"
4884 $as_echo '' >> "conftest.nl"
4885 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4887 as_fn_arith $ac_count + 1 && ac_count=$as_val
4888 if test $ac_count -gt ${ac_path_SED_max-0}; then
4889 # Best one so far, save it but keep looking for a better one
4890 ac_cv_path_SED="$ac_path_SED"
4891 ac_path_SED_max=$ac_count
4892 fi
4893 # 10*(2^10) chars as input seems more than enough
4894 test $ac_count -gt 10 && break
4895 done
4896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4897 esac
4898
4899 $ac_path_SED_found && break 3
4900 done
4901 done
4902 done
4903 IFS=$as_save_IFS
4904 if test -z "$ac_cv_path_SED"; then
4905 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4906 fi
4907 else
4908 ac_cv_path_SED=$SED
4909 fi
4910
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4913 $as_echo "$ac_cv_path_SED" >&6; }
4914 SED="$ac_cv_path_SED"
4915 rm -f conftest.sed
4916
4917 test -z "$SED" && SED=sed
4918 Xsed="$SED -e 1s/^X//"
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4931 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4932 if test "${ac_cv_path_GREP+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -z "$GREP"; then
4936 ac_path_GREP_found=false
4937 # Loop through the user's path and test for each of PROGNAME-LIST
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4940 do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_prog in grep ggrep; do
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4946 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4947 # Check for GNU ac_path_GREP and select it if it is found.
4948 # Check for GNU $ac_path_GREP
4949 case `"$ac_path_GREP" --version 2>&1` in
4950 *GNU*)
4951 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4952 *)
4953 ac_count=0
4954 $as_echo_n 0123456789 >"conftest.in"
4955 while :
4956 do
4957 cat "conftest.in" "conftest.in" >"conftest.tmp"
4958 mv "conftest.tmp" "conftest.in"
4959 cp "conftest.in" "conftest.nl"
4960 $as_echo 'GREP' >> "conftest.nl"
4961 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4963 as_fn_arith $ac_count + 1 && ac_count=$as_val
4964 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4965 # Best one so far, save it but keep looking for a better one
4966 ac_cv_path_GREP="$ac_path_GREP"
4967 ac_path_GREP_max=$ac_count
4968 fi
4969 # 10*(2^10) chars as input seems more than enough
4970 test $ac_count -gt 10 && break
4971 done
4972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4973 esac
4974
4975 $ac_path_GREP_found && break 3
4976 done
4977 done
4978 done
4979 IFS=$as_save_IFS
4980 if test -z "$ac_cv_path_GREP"; then
4981 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4982 fi
4983 else
4984 ac_cv_path_GREP=$GREP
4985 fi
4986
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4989 $as_echo "$ac_cv_path_GREP" >&6; }
4990 GREP="$ac_cv_path_GREP"
4991
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4994 $as_echo_n "checking for egrep... " >&6; }
4995 if test "${ac_cv_path_EGREP+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4999 then ac_cv_path_EGREP="$GREP -E"
5000 else
5001 if test -z "$EGREP"; then
5002 ac_path_EGREP_found=false
5003 # Loop through the user's path and test for each of PROGNAME-LIST
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5006 do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_prog in egrep; do
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5012 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5013 # Check for GNU ac_path_EGREP and select it if it is found.
5014 # Check for GNU $ac_path_EGREP
5015 case `"$ac_path_EGREP" --version 2>&1` in
5016 *GNU*)
5017 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5018 *)
5019 ac_count=0
5020 $as_echo_n 0123456789 >"conftest.in"
5021 while :
5022 do
5023 cat "conftest.in" "conftest.in" >"conftest.tmp"
5024 mv "conftest.tmp" "conftest.in"
5025 cp "conftest.in" "conftest.nl"
5026 $as_echo 'EGREP' >> "conftest.nl"
5027 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5029 as_fn_arith $ac_count + 1 && ac_count=$as_val
5030 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5031 # Best one so far, save it but keep looking for a better one
5032 ac_cv_path_EGREP="$ac_path_EGREP"
5033 ac_path_EGREP_max=$ac_count
5034 fi
5035 # 10*(2^10) chars as input seems more than enough
5036 test $ac_count -gt 10 && break
5037 done
5038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5039 esac
5040
5041 $ac_path_EGREP_found && break 3
5042 done
5043 done
5044 done
5045 IFS=$as_save_IFS
5046 if test -z "$ac_cv_path_EGREP"; then
5047 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5048 fi
5049 else
5050 ac_cv_path_EGREP=$EGREP
5051 fi
5052
5053 fi
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5056 $as_echo "$ac_cv_path_EGREP" >&6; }
5057 EGREP="$ac_cv_path_EGREP"
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5061 $as_echo_n "checking for fgrep... " >&6; }
5062 if test "${ac_cv_path_FGREP+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5066 then ac_cv_path_FGREP="$GREP -F"
5067 else
5068 if test -z "$FGREP"; then
5069 ac_path_FGREP_found=false
5070 # Loop through the user's path and test for each of PROGNAME-LIST
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_prog in fgrep; do
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5079 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5080 # Check for GNU ac_path_FGREP and select it if it is found.
5081 # Check for GNU $ac_path_FGREP
5082 case `"$ac_path_FGREP" --version 2>&1` in
5083 *GNU*)
5084 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5085 *)
5086 ac_count=0
5087 $as_echo_n 0123456789 >"conftest.in"
5088 while :
5089 do
5090 cat "conftest.in" "conftest.in" >"conftest.tmp"
5091 mv "conftest.tmp" "conftest.in"
5092 cp "conftest.in" "conftest.nl"
5093 $as_echo 'FGREP' >> "conftest.nl"
5094 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5096 as_fn_arith $ac_count + 1 && ac_count=$as_val
5097 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5098 # Best one so far, save it but keep looking for a better one
5099 ac_cv_path_FGREP="$ac_path_FGREP"
5100 ac_path_FGREP_max=$ac_count
5101 fi
5102 # 10*(2^10) chars as input seems more than enough
5103 test $ac_count -gt 10 && break
5104 done
5105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5106 esac
5107
5108 $ac_path_FGREP_found && break 3
5109 done
5110 done
5111 done
5112 IFS=$as_save_IFS
5113 if test -z "$ac_cv_path_FGREP"; then
5114 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5115 fi
5116 else
5117 ac_cv_path_FGREP=$FGREP
5118 fi
5119
5120 fi
5121 fi
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5123 $as_echo "$ac_cv_path_FGREP" >&6; }
5124 FGREP="$ac_cv_path_FGREP"
5125
5126
5127 test -z "$GREP" && GREP=grep
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147 # Check whether --with-gnu-ld was given.
5148 if test "${with_gnu_ld+set}" = set; then :
5149 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5150 else
5151 with_gnu_ld=no
5152 fi
5153
5154 ac_prog=ld
5155 if test "$GCC" = yes; then
5156 # Check if gcc -print-prog-name=ld gives a path.
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5158 $as_echo_n "checking for ld used by $CC... " >&6; }
5159 case $host in
5160 *-*-mingw*)
5161 # gcc leaves a trailing carriage return which upsets mingw
5162 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5163 *)
5164 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5165 esac
5166 case $ac_prog in
5167 # Accept absolute paths.
5168 [\\/]* | ?:[\\/]*)
5169 re_direlt='/[^/][^/]*/\.\./'
5170 # Canonicalize the pathname of ld
5171 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5172 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5173 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5174 done
5175 test -z "$LD" && LD="$ac_prog"
5176 ;;
5177 "")
5178 # If it fails, then pretend we aren't using GCC.
5179 ac_prog=ld
5180 ;;
5181 *)
5182 # If it is relative, then search for the first ld in PATH.
5183 with_gnu_ld=unknown
5184 ;;
5185 esac
5186 elif test "$with_gnu_ld" = yes; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5188 $as_echo_n "checking for GNU ld... " >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5191 $as_echo_n "checking for non-GNU ld... " >&6; }
5192 fi
5193 if test "${lt_cv_path_LD+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -z "$LD"; then
5197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5198 for ac_dir in $PATH; do
5199 IFS="$lt_save_ifs"
5200 test -z "$ac_dir" && ac_dir=.
5201 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5202 lt_cv_path_LD="$ac_dir/$ac_prog"
5203 # Check to see if the program is GNU ld. I'd rather use --version,
5204 # but apparently some variants of GNU ld only accept -v.
5205 # Break only if it was the GNU/non-GNU ld that we prefer.
5206 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5207 *GNU* | *'with BFD'*)
5208 test "$with_gnu_ld" != no && break
5209 ;;
5210 *)
5211 test "$with_gnu_ld" != yes && break
5212 ;;
5213 esac
5214 fi
5215 done
5216 IFS="$lt_save_ifs"
5217 else
5218 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5219 fi
5220 fi
5221
5222 LD="$lt_cv_path_LD"
5223 if test -n "$LD"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5225 $as_echo "$LD" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5232 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5233 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5237 case `$LD -v 2>&1 </dev/null` in
5238 *GNU* | *'with BFD'*)
5239 lt_cv_prog_gnu_ld=yes
5240 ;;
5241 *)
5242 lt_cv_prog_gnu_ld=no
5243 ;;
5244 esac
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5247 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5248 with_gnu_ld=$lt_cv_prog_gnu_ld
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5259 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5260 if test "${lt_cv_path_NM+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$NM"; then
5264 # Let the user override the test.
5265 lt_cv_path_NM="$NM"
5266 else
5267 lt_nm_to_check="${ac_tool_prefix}nm"
5268 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5269 lt_nm_to_check="$lt_nm_to_check nm"
5270 fi
5271 for lt_tmp_nm in $lt_nm_to_check; do
5272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5273 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5274 IFS="$lt_save_ifs"
5275 test -z "$ac_dir" && ac_dir=.
5276 tmp_nm="$ac_dir/$lt_tmp_nm"
5277 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5278 # Check to see if the nm accepts a BSD-compat flag.
5279 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5280 # nm: unknown option "B" ignored
5281 # Tru64's nm complains that /dev/null is an invalid object file
5282 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5283 */dev/null* | *'Invalid file or object type'*)
5284 lt_cv_path_NM="$tmp_nm -B"
5285 break
5286 ;;
5287 *)
5288 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5289 */dev/null*)
5290 lt_cv_path_NM="$tmp_nm -p"
5291 break
5292 ;;
5293 *)
5294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5295 continue # so that we can try to find one that supports BSD flags
5296 ;;
5297 esac
5298 ;;
5299 esac
5300 fi
5301 done
5302 IFS="$lt_save_ifs"
5303 done
5304 : ${lt_cv_path_NM=no}
5305 fi
5306 fi
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5308 $as_echo "$lt_cv_path_NM" >&6; }
5309 if test "$lt_cv_path_NM" != "no"; then
5310 NM="$lt_cv_path_NM"
5311 else
5312 # Didn't find any BSD compatible name lister, look for dumpbin.
5313 if test -n "$DUMPBIN"; then :
5314 # Let the user override the test.
5315 else
5316 if test -n "$ac_tool_prefix"; then
5317 for ac_prog in dumpbin "link -dump"
5318 do
5319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 if test -n "$DUMPBIN"; then
5327 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5339 fi
5340 done
5341 done
5342 IFS=$as_save_IFS
5343
5344 fi
5345 fi
5346 DUMPBIN=$ac_cv_prog_DUMPBIN
5347 if test -n "$DUMPBIN"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5349 $as_echo "$DUMPBIN" >&6; }
5350 else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354
5355
5356 test -n "$DUMPBIN" && break
5357 done
5358 fi
5359 if test -z "$DUMPBIN"; then
5360 ac_ct_DUMPBIN=$DUMPBIN
5361 for ac_prog in dumpbin "link -dump"
5362 do
5363 # Extract the first word of "$ac_prog", so it can be a program name with args.
5364 set dummy $ac_prog; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 if test -n "$ac_ct_DUMPBIN"; then
5371 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5383 fi
5384 done
5385 done
5386 IFS=$as_save_IFS
5387
5388 fi
5389 fi
5390 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5391 if test -n "$ac_ct_DUMPBIN"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5393 $as_echo "$ac_ct_DUMPBIN" >&6; }
5394 else
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399
5400 test -n "$ac_ct_DUMPBIN" && break
5401 done
5402
5403 if test "x$ac_ct_DUMPBIN" = x; then
5404 DUMPBIN=":"
5405 else
5406 case $cross_compiling:$ac_tool_warned in
5407 yes:)
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5410 ac_tool_warned=yes ;;
5411 esac
5412 DUMPBIN=$ac_ct_DUMPBIN
5413 fi
5414 fi
5415
5416 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5417 *COFF*)
5418 DUMPBIN="$DUMPBIN -symbols"
5419 ;;
5420 *)
5421 DUMPBIN=:
5422 ;;
5423 esac
5424 fi
5425
5426 if test "$DUMPBIN" != ":"; then
5427 NM="$DUMPBIN"
5428 fi
5429 fi
5430 test -z "$NM" && NM=nm
5431
5432
5433
5434
5435
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5438 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5439 if test "${lt_cv_nm_interface+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 lt_cv_nm_interface="BSD nm"
5443 echo "int some_variable = 0;" > conftest.$ac_ext
5444 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5445 (eval "$ac_compile" 2>conftest.err)
5446 cat conftest.err >&5
5447 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5448 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5449 cat conftest.err >&5
5450 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5451 cat conftest.out >&5
5452 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5453 lt_cv_nm_interface="MS dumpbin"
5454 fi
5455 rm -f conftest*
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5458 $as_echo "$lt_cv_nm_interface" >&6; }
5459
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5461 $as_echo_n "checking whether ln -s works... " >&6; }
5462 LN_S=$as_ln_s
5463 if test "$LN_S" = "ln -s"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5465 $as_echo "yes" >&6; }
5466 else
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5468 $as_echo "no, using $LN_S" >&6; }
5469 fi
5470
5471 # find the maximum length of command line arguments
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5473 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5474 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 i=0
5478 teststring="ABCD"
5479
5480 case $build_os in
5481 msdosdjgpp*)
5482 # On DJGPP, this test can blow up pretty badly due to problems in libc
5483 # (any single argument exceeding 2000 bytes causes a buffer overrun
5484 # during glob expansion). Even if it were fixed, the result of this
5485 # check would be larger than it should be.
5486 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5487 ;;
5488
5489 gnu*)
5490 # Under GNU Hurd, this test is not required because there is
5491 # no limit to the length of command line arguments.
5492 # Libtool will interpret -1 as no limit whatsoever
5493 lt_cv_sys_max_cmd_len=-1;
5494 ;;
5495
5496 cygwin* | mingw* | cegcc*)
5497 # On Win9x/ME, this test blows up -- it succeeds, but takes
5498 # about 5 minutes as the teststring grows exponentially.
5499 # Worse, since 9x/ME are not pre-emptively multitasking,
5500 # you end up with a "frozen" computer, even though with patience
5501 # the test eventually succeeds (with a max line length of 256k).
5502 # Instead, let's just punt: use the minimum linelength reported by
5503 # all of the supported platforms: 8192 (on NT/2K/XP).
5504 lt_cv_sys_max_cmd_len=8192;
5505 ;;
5506
5507 mint*)
5508 # On MiNT this can take a long time and run out of memory.
5509 lt_cv_sys_max_cmd_len=8192;
5510 ;;
5511
5512 amigaos*)
5513 # On AmigaOS with pdksh, this test takes hours, literally.
5514 # So we just punt and use a minimum line length of 8192.
5515 lt_cv_sys_max_cmd_len=8192;
5516 ;;
5517
5518 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5519 # This has been around since 386BSD, at least. Likely further.
5520 if test -x /sbin/sysctl; then
5521 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5522 elif test -x /usr/sbin/sysctl; then
5523 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5524 else
5525 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5526 fi
5527 # And add a safety zone
5528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5530 ;;
5531
5532 interix*)
5533 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5534 lt_cv_sys_max_cmd_len=196608
5535 ;;
5536
5537 osf*)
5538 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5539 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5540 # nice to cause kernel panics so lets avoid the loop below.
5541 # First set a reasonable default.
5542 lt_cv_sys_max_cmd_len=16384
5543 #
5544 if test -x /sbin/sysconfig; then
5545 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5546 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5547 esac
5548 fi
5549 ;;
5550 sco3.2v5*)
5551 lt_cv_sys_max_cmd_len=102400
5552 ;;
5553 sysv5* | sco5v6* | sysv4.2uw2*)
5554 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5555 if test -n "$kargmax"; then
5556 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5557 else
5558 lt_cv_sys_max_cmd_len=32768
5559 fi
5560 ;;
5561 *)
5562 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5563 if test -n "$lt_cv_sys_max_cmd_len"; then
5564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5566 else
5567 # Make teststring a little bigger before we do anything with it.
5568 # a 1K string should be a reasonable start.
5569 for i in 1 2 3 4 5 6 7 8 ; do
5570 teststring=$teststring$teststring
5571 done
5572 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5573 # If test is not a shell built-in, we'll probably end up computing a
5574 # maximum length that is only half of the actual maximum length, but
5575 # we can't tell.
5576 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5577 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5578 test $i != 17 # 1/2 MB should be enough
5579 do
5580 i=`expr $i + 1`
5581 teststring=$teststring$teststring
5582 done
5583 # Only check the string length outside the loop.
5584 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5585 teststring=
5586 # Add a significant safety factor because C++ compilers can tack on
5587 # massive amounts of additional arguments before passing them to the
5588 # linker. It appears as though 1/2 is a usable value.
5589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5590 fi
5591 ;;
5592 esac
5593
5594 fi
5595
5596 if test -n $lt_cv_sys_max_cmd_len ; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5598 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5601 $as_echo "none" >&6; }
5602 fi
5603 max_cmd_len=$lt_cv_sys_max_cmd_len
5604
5605
5606
5607
5608
5609
5610 : ${CP="cp -f"}
5611 : ${MV="mv -f"}
5612 : ${RM="rm -f"}
5613
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5615 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5616 # Try some XSI features
5617 xsi_shell=no
5618 ( _lt_dummy="a/b/c"
5619 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5620 = c,a/b,, \
5621 && eval 'test $(( 1 + 1 )) -eq 2 \
5622 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5623 && xsi_shell=yes
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5625 $as_echo "$xsi_shell" >&6; }
5626
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5629 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5630 lt_shell_append=no
5631 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5632 >/dev/null 2>&1 \
5633 && lt_shell_append=yes
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5635 $as_echo "$lt_shell_append" >&6; }
5636
5637
5638 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5639 lt_unset=unset
5640 else
5641 lt_unset=false
5642 fi
5643
5644
5645
5646
5647
5648 # test EBCDIC or ASCII
5649 case `echo X|tr X '\101'` in
5650 A) # ASCII based system
5651 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5652 lt_SP2NL='tr \040 \012'
5653 lt_NL2SP='tr \015\012 \040\040'
5654 ;;
5655 *) # EBCDIC based system
5656 lt_SP2NL='tr \100 \n'
5657 lt_NL2SP='tr \r\n \100\100'
5658 ;;
5659 esac
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5670 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5671 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 lt_cv_ld_reload_flag='-r'
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5677 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5678 reload_flag=$lt_cv_ld_reload_flag
5679 case $reload_flag in
5680 "" | " "*) ;;
5681 *) reload_flag=" $reload_flag" ;;
5682 esac
5683 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5684 case $host_os in
5685 darwin*)
5686 if test "$GCC" = yes; then
5687 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5688 else
5689 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5690 fi
5691 ;;
5692 esac
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702 if test -n "$ac_tool_prefix"; then
5703 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5704 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if test -n "$OBJDUMP"; then
5711 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5723 fi
5724 done
5725 done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 OBJDUMP=$ac_cv_prog_OBJDUMP
5731 if test -n "$OBJDUMP"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5733 $as_echo "$OBJDUMP" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739
5740 fi
5741 if test -z "$ac_cv_prog_OBJDUMP"; then
5742 ac_ct_OBJDUMP=$OBJDUMP
5743 # Extract the first word of "objdump", so it can be a program name with args.
5744 set dummy objdump; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 if test -n "$ac_ct_OBJDUMP"; then
5751 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764 done
5765 done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5771 if test -n "$ac_ct_OBJDUMP"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5773 $as_echo "$ac_ct_OBJDUMP" >&6; }
5774 else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5777 fi
5778
5779 if test "x$ac_ct_OBJDUMP" = x; then
5780 OBJDUMP="false"
5781 else
5782 case $cross_compiling:$ac_tool_warned in
5783 yes:)
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786 ac_tool_warned=yes ;;
5787 esac
5788 OBJDUMP=$ac_ct_OBJDUMP
5789 fi
5790 else
5791 OBJDUMP="$ac_cv_prog_OBJDUMP"
5792 fi
5793
5794 test -z "$OBJDUMP" && OBJDUMP=objdump
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5805 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5806 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 lt_cv_file_magic_cmd='$MAGIC_CMD'
5810 lt_cv_file_magic_test_file=
5811 lt_cv_deplibs_check_method='unknown'
5812 # Need to set the preceding variable on all platforms that support
5813 # interlibrary dependencies.
5814 # 'none' -- dependencies not supported.
5815 # `unknown' -- same as none, but documents that we really don't know.
5816 # 'pass_all' -- all dependencies passed with no checks.
5817 # 'test_compile' -- check by making test program.
5818 # 'file_magic [[regex]]' -- check by looking for files in library path
5819 # which responds to the $file_magic_cmd with a given extended regex.
5820 # If you have `file' or equivalent on your system and you're not sure
5821 # whether `pass_all' will *always* work, you probably want this one.
5822
5823 case $host_os in
5824 aix[4-9]*)
5825 lt_cv_deplibs_check_method=pass_all
5826 ;;
5827
5828 beos*)
5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
5831
5832 bsdi[45]*)
5833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5834 lt_cv_file_magic_cmd='/usr/bin/file -L'
5835 lt_cv_file_magic_test_file=/shlib/libc.so
5836 ;;
5837
5838 cygwin*)
5839 # func_win32_libid is a shell function defined in ltmain.sh
5840 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5841 lt_cv_file_magic_cmd='func_win32_libid'
5842 ;;
5843
5844 mingw* | pw32*)
5845 # Base MSYS/MinGW do not provide the 'file' command needed by
5846 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5847 # unless we find 'file', for example because we are cross-compiling.
5848 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5849 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5850 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5851 lt_cv_file_magic_cmd='func_win32_libid'
5852 else
5853 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5854 lt_cv_file_magic_cmd='$OBJDUMP -f'
5855 fi
5856 ;;
5857
5858 cegcc*)
5859 # use the weaker test based on 'objdump'. See mingw*.
5860 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5861 lt_cv_file_magic_cmd='$OBJDUMP -f'
5862 ;;
5863
5864 darwin* | rhapsody*)
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867
5868 freebsd* | dragonfly*)
5869 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5870 case $host_cpu in
5871 i*86 )
5872 # Not sure whether the presence of OpenBSD here was a mistake.
5873 # Let's accept both of them until this is cleared up.
5874 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5875 lt_cv_file_magic_cmd=/usr/bin/file
5876 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5877 ;;
5878 esac
5879 else
5880 lt_cv_deplibs_check_method=pass_all
5881 fi
5882 ;;
5883
5884 gnu*)
5885 lt_cv_deplibs_check_method=pass_all
5886 ;;
5887
5888 haiku*)
5889 lt_cv_deplibs_check_method=pass_all
5890 ;;
5891
5892 hpux10.20* | hpux11*)
5893 lt_cv_file_magic_cmd=/usr/bin/file
5894 case $host_cpu in
5895 ia64*)
5896 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5897 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5898 ;;
5899 hppa*64*)
5900 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]'
5901 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5902 ;;
5903 *)
5904 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5905 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5906 ;;
5907 esac
5908 ;;
5909
5910 interix[3-9]*)
5911 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5913 ;;
5914
5915 irix5* | irix6* | nonstopux*)
5916 case $LD in
5917 *-32|*"-32 ") libmagic=32-bit;;
5918 *-n32|*"-n32 ") libmagic=N32;;
5919 *-64|*"-64 ") libmagic=64-bit;;
5920 *) libmagic=never-match;;
5921 esac
5922 lt_cv_deplibs_check_method=pass_all
5923 ;;
5924
5925 # This must be Linux ELF.
5926 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5927 lt_cv_deplibs_check_method=pass_all
5928 ;;
5929
5930 netbsd*)
5931 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5933 else
5934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5935 fi
5936 ;;
5937
5938 newos6*)
5939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5940 lt_cv_file_magic_cmd=/usr/bin/file
5941 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5942 ;;
5943
5944 *nto* | *qnx*)
5945 lt_cv_deplibs_check_method=pass_all
5946 ;;
5947
5948 openbsd*)
5949 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5951 else
5952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5953 fi
5954 ;;
5955
5956 osf3* | osf4* | osf5*)
5957 lt_cv_deplibs_check_method=pass_all
5958 ;;
5959
5960 rdos*)
5961 lt_cv_deplibs_check_method=pass_all
5962 ;;
5963
5964 solaris*)
5965 lt_cv_deplibs_check_method=pass_all
5966 ;;
5967
5968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5969 lt_cv_deplibs_check_method=pass_all
5970 ;;
5971
5972 sysv4 | sysv4.3*)
5973 case $host_vendor in
5974 motorola)
5975 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]'
5976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5977 ;;
5978 ncr)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981 sequent)
5982 lt_cv_file_magic_cmd='/bin/file'
5983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5984 ;;
5985 sni)
5986 lt_cv_file_magic_cmd='/bin/file'
5987 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5988 lt_cv_file_magic_test_file=/lib/libc.so
5989 ;;
5990 siemens)
5991 lt_cv_deplibs_check_method=pass_all
5992 ;;
5993 pc)
5994 lt_cv_deplibs_check_method=pass_all
5995 ;;
5996 esac
5997 ;;
5998
5999 tpf*)
6000 lt_cv_deplibs_check_method=pass_all
6001 ;;
6002 esac
6003
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6006 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6007 file_magic_cmd=$lt_cv_file_magic_cmd
6008 deplibs_check_method=$lt_cv_deplibs_check_method
6009 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022 if test -n "$ac_tool_prefix"; then
6023 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6024 set dummy ${ac_tool_prefix}ar; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if test "${ac_cv_prog_AR+set}" = set; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 if test -n "$AR"; then
6031 ac_cv_prog_AR="$AR" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_prog_AR="${ac_tool_prefix}ar"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6043 fi
6044 done
6045 done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 AR=$ac_cv_prog_AR
6051 if test -n "$AR"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6053 $as_echo "$AR" >&6; }
6054 else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059
6060 fi
6061 if test -z "$ac_cv_prog_AR"; then
6062 ac_ct_AR=$AR
6063 # Extract the first word of "ar", so it can be a program name with args.
6064 set dummy ar; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -n "$ac_ct_AR"; then
6071 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080 ac_cv_prog_ac_ct_AR="ar"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084 done
6085 done
6086 IFS=$as_save_IFS
6087
6088 fi
6089 fi
6090 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6091 if test -n "$ac_ct_AR"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6093 $as_echo "$ac_ct_AR" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099 if test "x$ac_ct_AR" = x; then
6100 AR="false"
6101 else
6102 case $cross_compiling:$ac_tool_warned in
6103 yes:)
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6107 esac
6108 AR=$ac_ct_AR
6109 fi
6110 else
6111 AR="$ac_cv_prog_AR"
6112 fi
6113
6114 test -z "$AR" && AR=ar
6115 test -z "$AR_FLAGS" && AR_FLAGS=cru
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127 if test -n "$ac_tool_prefix"; then
6128 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6129 set dummy ${ac_tool_prefix}strip; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if test "${ac_cv_prog_STRIP+set}" = set; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -n "$STRIP"; then
6136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 STRIP=$ac_cv_prog_STRIP
6156 if test -n "$STRIP"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6158 $as_echo "$STRIP" >&6; }
6159 else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164
6165 fi
6166 if test -z "$ac_cv_prog_STRIP"; then
6167 ac_ct_STRIP=$STRIP
6168 # Extract the first word of "strip", so it can be a program name with args.
6169 set dummy strip; ac_word=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 if test -n "$ac_ct_STRIP"; then
6176 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_ac_ct_STRIP="strip"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6196 if test -n "$ac_ct_STRIP"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6198 $as_echo "$ac_ct_STRIP" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203
6204 if test "x$ac_ct_STRIP" = x; then
6205 STRIP=":"
6206 else
6207 case $cross_compiling:$ac_tool_warned in
6208 yes:)
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6211 ac_tool_warned=yes ;;
6212 esac
6213 STRIP=$ac_ct_STRIP
6214 fi
6215 else
6216 STRIP="$ac_cv_prog_STRIP"
6217 fi
6218
6219 test -z "$STRIP" && STRIP=:
6220
6221
6222
6223
6224
6225
6226 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$RANLIB"; then
6235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 RANLIB=$ac_cv_prog_RANLIB
6255 if test -n "$RANLIB"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6257 $as_echo "$RANLIB" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263
6264 fi
6265 if test -z "$ac_cv_prog_RANLIB"; then
6266 ac_ct_RANLIB=$RANLIB
6267 # Extract the first word of "ranlib", so it can be a program name with args.
6268 set dummy ranlib; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -n "$ac_ct_RANLIB"; then
6275 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_prog_ac_ct_RANLIB="ranlib"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6295 if test -n "$ac_ct_RANLIB"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6297 $as_echo "$ac_ct_RANLIB" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303 if test "x$ac_ct_RANLIB" = x; then
6304 RANLIB=":"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312 RANLIB=$ac_ct_RANLIB
6313 fi
6314 else
6315 RANLIB="$ac_cv_prog_RANLIB"
6316 fi
6317
6318 test -z "$RANLIB" && RANLIB=:
6319
6320
6321
6322
6323
6324
6325 # Determine commands to create old-style static archives.
6326 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6327 old_postinstall_cmds='chmod 644 $oldlib'
6328 old_postuninstall_cmds=
6329
6330 if test -n "$RANLIB"; then
6331 case $host_os in
6332 openbsd*)
6333 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6334 ;;
6335 *)
6336 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6337 ;;
6338 esac
6339 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6340 fi
6341
6342 case $host_os in
6343 darwin*)
6344 lock_old_archive_extraction=yes ;;
6345 *)
6346 lock_old_archive_extraction=no ;;
6347 esac
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387 # If no C compiler was specified, use CC.
6388 LTCC=${LTCC-"$CC"}
6389
6390 # If no C compiler flags were specified, use CFLAGS.
6391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6392
6393 # Allow CC to be a program name with arguments.
6394 compiler=$CC
6395
6396
6397 # Check for command to grab the raw symbol name followed by C symbol from nm.
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6399 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6400 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403
6404 # These are sane defaults that work on at least a few old systems.
6405 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6406
6407 # Character class describing NM global symbol codes.
6408 symcode='[BCDEGRST]'
6409
6410 # Regexp to match symbols that can be accessed directly from C.
6411 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6412
6413 # Define system-specific variables.
6414 case $host_os in
6415 aix*)
6416 symcode='[BCDT]'
6417 ;;
6418 cygwin* | mingw* | pw32* | cegcc*)
6419 symcode='[ABCDGISTW]'
6420 ;;
6421 hpux*)
6422 if test "$host_cpu" = ia64; then
6423 symcode='[ABCDEGRST]'
6424 fi
6425 ;;
6426 irix* | nonstopux*)
6427 symcode='[BCDEGRST]'
6428 ;;
6429 osf*)
6430 symcode='[BCDEGQRST]'
6431 ;;
6432 solaris*)
6433 symcode='[BDRT]'
6434 ;;
6435 sco3.2v5*)
6436 symcode='[DT]'
6437 ;;
6438 sysv4.2uw2*)
6439 symcode='[DT]'
6440 ;;
6441 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6442 symcode='[ABDT]'
6443 ;;
6444 sysv4)
6445 symcode='[DFNSTU]'
6446 ;;
6447 esac
6448
6449 # If we're using GNU nm, then use its standard symbol codes.
6450 case `$NM -V 2>&1` in
6451 *GNU* | *'with BFD'*)
6452 symcode='[ABCDGIRSTW]' ;;
6453 esac
6454
6455 # Transform an extracted symbol line into a proper C declaration.
6456 # Some systems (esp. on ia64) link data and code symbols differently,
6457 # so use this general approach.
6458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6459
6460 # Transform an extracted symbol line into symbol name and symbol address
6461 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6462 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'"
6463
6464 # Handle CRLF in mingw tool chain
6465 opt_cr=
6466 case $build_os in
6467 mingw*)
6468 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6469 ;;
6470 esac
6471
6472 # Try without a prefix underscore, then with it.
6473 for ac_symprfx in "" "_"; do
6474
6475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6476 symxfrm="\\1 $ac_symprfx\\2 \\2"
6477
6478 # Write the raw and C identifiers.
6479 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6480 # Fake it for dumpbin and say T for any non-static function
6481 # and D for any global variable.
6482 # Also find C++ and __fastcall symbols from MSVC++,
6483 # which start with @ or ?.
6484 lt_cv_sys_global_symbol_pipe="$AWK '"\
6485 " {last_section=section; section=\$ 3};"\
6486 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6487 " \$ 0!~/External *\|/{next};"\
6488 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6489 " {if(hide[section]) next};"\
6490 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6491 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6492 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6493 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6494 " ' prfx=^$ac_symprfx"
6495 else
6496 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6497 fi
6498
6499 # Check to see that the pipe works correctly.
6500 pipe_works=no
6501
6502 rm -f conftest*
6503 cat > conftest.$ac_ext <<_LT_EOF
6504 #ifdef __cplusplus
6505 extern "C" {
6506 #endif
6507 char nm_test_var;
6508 void nm_test_func(void);
6509 void nm_test_func(void){}
6510 #ifdef __cplusplus
6511 }
6512 #endif
6513 int main(){nm_test_var='a';nm_test_func();return(0);}
6514 _LT_EOF
6515
6516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6517 (eval $ac_compile) 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }; then
6521 # Now try to grab the symbols.
6522 nlist=conftest.nm
6523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6524 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6525 ac_status=$?
6526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; } && test -s "$nlist"; then
6528 # Try sorting and uniquifying the output.
6529 if sort "$nlist" | uniq > "$nlist"T; then
6530 mv -f "$nlist"T "$nlist"
6531 else
6532 rm -f "$nlist"T
6533 fi
6534
6535 # Make sure that we snagged all the symbols we need.
6536 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6537 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6538 cat <<_LT_EOF > conftest.$ac_ext
6539 #ifdef __cplusplus
6540 extern "C" {
6541 #endif
6542
6543 _LT_EOF
6544 # Now generate the symbol file.
6545 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6546
6547 cat <<_LT_EOF >> conftest.$ac_ext
6548
6549 /* The mapping between symbol names and symbols. */
6550 const struct {
6551 const char *name;
6552 void *address;
6553 }
6554 lt__PROGRAM__LTX_preloaded_symbols[] =
6555 {
6556 { "@PROGRAM@", (void *) 0 },
6557 _LT_EOF
6558 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6559 cat <<\_LT_EOF >> conftest.$ac_ext
6560 {0, (void *) 0}
6561 };
6562
6563 /* This works around a problem in FreeBSD linker */
6564 #ifdef FREEBSD_WORKAROUND
6565 static const void *lt_preloaded_setup() {
6566 return lt__PROGRAM__LTX_preloaded_symbols;
6567 }
6568 #endif
6569
6570 #ifdef __cplusplus
6571 }
6572 #endif
6573 _LT_EOF
6574 # Now try linking the two files.
6575 mv conftest.$ac_objext conftstm.$ac_objext
6576 lt_save_LIBS="$LIBS"
6577 lt_save_CFLAGS="$CFLAGS"
6578 LIBS="conftstm.$ac_objext"
6579 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6581 (eval $ac_link) 2>&5
6582 ac_status=$?
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6585 pipe_works=yes
6586 fi
6587 LIBS="$lt_save_LIBS"
6588 CFLAGS="$lt_save_CFLAGS"
6589 else
6590 echo "cannot find nm_test_func in $nlist" >&5
6591 fi
6592 else
6593 echo "cannot find nm_test_var in $nlist" >&5
6594 fi
6595 else
6596 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6597 fi
6598 else
6599 echo "$progname: failed program was:" >&5
6600 cat conftest.$ac_ext >&5
6601 fi
6602 rm -rf conftest* conftst*
6603
6604 # Do not use the global_symbol_pipe unless it works.
6605 if test "$pipe_works" = yes; then
6606 break
6607 else
6608 lt_cv_sys_global_symbol_pipe=
6609 fi
6610 done
6611
6612 fi
6613
6614 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6615 lt_cv_sys_global_symbol_to_cdecl=
6616 fi
6617 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6619 $as_echo "failed" >&6; }
6620 else
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6622 $as_echo "ok" >&6; }
6623 fi
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647 # Check whether --enable-libtool-lock was given.
6648 if test "${enable_libtool_lock+set}" = set; then :
6649 enableval=$enable_libtool_lock;
6650 fi
6651
6652 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6653
6654 # Some flags need to be propagated to the compiler or linker for good
6655 # libtool support.
6656 case $host in
6657 ia64-*-hpux*)
6658 # Find out which ABI we are using.
6659 echo 'int i;' > conftest.$ac_ext
6660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6661 (eval $ac_compile) 2>&5
6662 ac_status=$?
6663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6664 test $ac_status = 0; }; then
6665 case `/usr/bin/file conftest.$ac_objext` in
6666 *ELF-32*)
6667 HPUX_IA64_MODE="32"
6668 ;;
6669 *ELF-64*)
6670 HPUX_IA64_MODE="64"
6671 ;;
6672 esac
6673 fi
6674 rm -rf conftest*
6675 ;;
6676 *-*-irix6*)
6677 # Find out which ABI we are using.
6678 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6680 (eval $ac_compile) 2>&5
6681 ac_status=$?
6682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6683 test $ac_status = 0; }; then
6684 if test "$lt_cv_prog_gnu_ld" = yes; then
6685 case `/usr/bin/file conftest.$ac_objext` in
6686 *32-bit*)
6687 LD="${LD-ld} -melf32bsmip"
6688 ;;
6689 *N32*)
6690 LD="${LD-ld} -melf32bmipn32"
6691 ;;
6692 *64-bit*)
6693 LD="${LD-ld} -melf64bmip"
6694 ;;
6695 esac
6696 else
6697 case `/usr/bin/file conftest.$ac_objext` in
6698 *32-bit*)
6699 LD="${LD-ld} -32"
6700 ;;
6701 *N32*)
6702 LD="${LD-ld} -n32"
6703 ;;
6704 *64-bit*)
6705 LD="${LD-ld} -64"
6706 ;;
6707 esac
6708 fi
6709 fi
6710 rm -rf conftest*
6711 ;;
6712
6713 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6714 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6715 # Find out which ABI we are using.
6716 echo 'int i;' > conftest.$ac_ext
6717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6718 (eval $ac_compile) 2>&5
6719 ac_status=$?
6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 test $ac_status = 0; }; then
6722 case `/usr/bin/file conftest.o` in
6723 *32-bit*)
6724 case $host in
6725 x86_64-*kfreebsd*-gnu)
6726 LD="${LD-ld} -m elf_i386_fbsd"
6727 ;;
6728 x86_64-*linux*)
6729 case `/usr/bin/file conftest.o` in
6730 *x86-64*)
6731 LD="${LD-ld} -m elf32_x86_64"
6732 ;;
6733 *)
6734 LD="${LD-ld} -m elf_i386"
6735 ;;
6736 esac
6737 ;;
6738 ppc64-*linux*|powerpc64-*linux*)
6739 LD="${LD-ld} -m elf32ppclinux"
6740 ;;
6741 s390x-*linux*)
6742 LD="${LD-ld} -m elf_s390"
6743 ;;
6744 sparc64-*linux*)
6745 LD="${LD-ld} -m elf32_sparc"
6746 ;;
6747 esac
6748 ;;
6749 *64-bit*)
6750 case $host in
6751 x86_64-*kfreebsd*-gnu)
6752 LD="${LD-ld} -m elf_x86_64_fbsd"
6753 ;;
6754 x86_64-*linux*)
6755 LD="${LD-ld} -m elf_x86_64"
6756 ;;
6757 ppc*-*linux*|powerpc*-*linux*)
6758 LD="${LD-ld} -m elf64ppc"
6759 ;;
6760 s390*-*linux*|s390*-*tpf*)
6761 LD="${LD-ld} -m elf64_s390"
6762 ;;
6763 sparc*-*linux*)
6764 LD="${LD-ld} -m elf64_sparc"
6765 ;;
6766 esac
6767 ;;
6768 esac
6769 fi
6770 rm -rf conftest*
6771 ;;
6772
6773 *-*-sco3.2v5*)
6774 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6775 SAVE_CFLAGS="$CFLAGS"
6776 CFLAGS="$CFLAGS -belf"
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6778 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6779 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 ac_ext=c
6783 ac_cpp='$CPP $CPPFLAGS'
6784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6787
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790
6791 int
6792 main ()
6793 {
6794
6795 ;
6796 return 0;
6797 }
6798 _ACEOF
6799 if ac_fn_c_try_link "$LINENO"; then :
6800 lt_cv_cc_needs_belf=yes
6801 else
6802 lt_cv_cc_needs_belf=no
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext \
6805 conftest$ac_exeext conftest.$ac_ext
6806 ac_ext=c
6807 ac_cpp='$CPP $CPPFLAGS'
6808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811
6812 fi
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6814 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6815 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6816 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6817 CFLAGS="$SAVE_CFLAGS"
6818 fi
6819 ;;
6820 sparc*-*solaris*)
6821 # Find out which ABI we are using.
6822 echo 'int i;' > conftest.$ac_ext
6823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6824 (eval $ac_compile) 2>&5
6825 ac_status=$?
6826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6827 test $ac_status = 0; }; then
6828 case `/usr/bin/file conftest.o` in
6829 *64-bit*)
6830 case $lt_cv_prog_gnu_ld in
6831 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6832 *)
6833 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6834 LD="${LD-ld} -64"
6835 fi
6836 ;;
6837 esac
6838 ;;
6839 esac
6840 fi
6841 rm -rf conftest*
6842 ;;
6843 esac
6844
6845 need_locks="$enable_libtool_lock"
6846
6847
6848 case $host_os in
6849 rhapsody* | darwin*)
6850 if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6852 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test -n "$DSYMUTIL"; then
6859 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6879 if test -n "$DSYMUTIL"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6881 $as_echo "$DSYMUTIL" >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887
6888 fi
6889 if test -z "$ac_cv_prog_DSYMUTIL"; then
6890 ac_ct_DSYMUTIL=$DSYMUTIL
6891 # Extract the first word of "dsymutil", so it can be a program name with args.
6892 set dummy dsymutil; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 if test -n "$ac_ct_DSYMUTIL"; then
6899 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6919 if test -n "$ac_ct_DSYMUTIL"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6921 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6922 else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927 if test "x$ac_ct_DSYMUTIL" = x; then
6928 DSYMUTIL=":"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931 yes:)
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6934 ac_tool_warned=yes ;;
6935 esac
6936 DSYMUTIL=$ac_ct_DSYMUTIL
6937 fi
6938 else
6939 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6940 fi
6941
6942 if test -n "$ac_tool_prefix"; then
6943 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6944 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 if test -n "$NMEDIT"; then
6951 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 NMEDIT=$ac_cv_prog_NMEDIT
6971 if test -n "$NMEDIT"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6973 $as_echo "$NMEDIT" >&6; }
6974 else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 $as_echo "no" >&6; }
6977 fi
6978
6979
6980 fi
6981 if test -z "$ac_cv_prog_NMEDIT"; then
6982 ac_ct_NMEDIT=$NMEDIT
6983 # Extract the first word of "nmedit", so it can be a program name with args.
6984 set dummy nmedit; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 if test -n "$ac_ct_NMEDIT"; then
6991 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7011 if test -n "$ac_ct_NMEDIT"; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7013 $as_echo "$ac_ct_NMEDIT" >&6; }
7014 else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7017 fi
7018
7019 if test "x$ac_ct_NMEDIT" = x; then
7020 NMEDIT=":"
7021 else
7022 case $cross_compiling:$ac_tool_warned in
7023 yes:)
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7026 ac_tool_warned=yes ;;
7027 esac
7028 NMEDIT=$ac_ct_NMEDIT
7029 fi
7030 else
7031 NMEDIT="$ac_cv_prog_NMEDIT"
7032 fi
7033
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if test "${ac_cv_prog_LIPO+set}" = set; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7042 if test -n "$LIPO"; then
7043 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056 done
7057 done
7058 IFS=$as_save_IFS
7059
7060 fi
7061 fi
7062 LIPO=$ac_cv_prog_LIPO
7063 if test -n "$LIPO"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7065 $as_echo "$LIPO" >&6; }
7066 else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7069 fi
7070
7071
7072 fi
7073 if test -z "$ac_cv_prog_LIPO"; then
7074 ac_ct_LIPO=$LIPO
7075 # Extract the first word of "lipo", so it can be a program name with args.
7076 set dummy lipo; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 if test -n "$ac_ct_LIPO"; then
7083 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7092 ac_cv_prog_ac_ct_LIPO="lipo"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7103 if test -n "$ac_ct_LIPO"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7105 $as_echo "$ac_ct_LIPO" >&6; }
7106 else
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111 if test "x$ac_ct_LIPO" = x; then
7112 LIPO=":"
7113 else
7114 case $cross_compiling:$ac_tool_warned in
7115 yes:)
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7118 ac_tool_warned=yes ;;
7119 esac
7120 LIPO=$ac_ct_LIPO
7121 fi
7122 else
7123 LIPO="$ac_cv_prog_LIPO"
7124 fi
7125
7126 if test -n "$ac_tool_prefix"; then
7127 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7128 set dummy ${ac_tool_prefix}otool; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 if test -n "$OTOOL"; then
7135 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 OTOOL=$ac_cv_prog_OTOOL
7155 if test -n "$OTOOL"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7157 $as_echo "$OTOOL" >&6; }
7158 else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162
7163
7164 fi
7165 if test -z "$ac_cv_prog_OTOOL"; then
7166 ac_ct_OTOOL=$OTOOL
7167 # Extract the first word of "otool", so it can be a program name with args.
7168 set dummy otool; ac_word=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 if test -n "$ac_ct_OTOOL"; then
7175 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_prog_ac_ct_OTOOL="otool"
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192 fi
7193 fi
7194 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7195 if test -n "$ac_ct_OTOOL"; then
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7197 $as_echo "$ac_ct_OTOOL" >&6; }
7198 else
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7201 fi
7202
7203 if test "x$ac_ct_OTOOL" = x; then
7204 OTOOL=":"
7205 else
7206 case $cross_compiling:$ac_tool_warned in
7207 yes:)
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7210 ac_tool_warned=yes ;;
7211 esac
7212 OTOOL=$ac_ct_OTOOL
7213 fi
7214 else
7215 OTOOL="$ac_cv_prog_OTOOL"
7216 fi
7217
7218 if test -n "$ac_tool_prefix"; then
7219 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7220 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 if test -n "$OTOOL64"; then
7227 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 OTOOL64=$ac_cv_prog_OTOOL64
7247 if test -n "$OTOOL64"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7249 $as_echo "$OTOOL64" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255
7256 fi
7257 if test -z "$ac_cv_prog_OTOOL64"; then
7258 ac_ct_OTOOL64=$OTOOL64
7259 # Extract the first word of "otool64", so it can be a program name with args.
7260 set dummy otool64; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 if test -n "$ac_ct_OTOOL64"; then
7267 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276 ac_cv_prog_ac_ct_OTOOL64="otool64"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7287 if test -n "$ac_ct_OTOOL64"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7289 $as_echo "$ac_ct_OTOOL64" >&6; }
7290 else
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295 if test "x$ac_ct_OTOOL64" = x; then
7296 OTOOL64=":"
7297 else
7298 case $cross_compiling:$ac_tool_warned in
7299 yes:)
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302 ac_tool_warned=yes ;;
7303 esac
7304 OTOOL64=$ac_ct_OTOOL64
7305 fi
7306 else
7307 OTOOL64="$ac_cv_prog_OTOOL64"
7308 fi
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7337 $as_echo_n "checking for -single_module linker flag... " >&6; }
7338 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 lt_cv_apple_cc_single_mod=no
7342 if test -z "${LT_MULTI_MODULE}"; then
7343 # By default we will add the -single_module flag. You can override
7344 # by either setting the environment variable LT_MULTI_MODULE
7345 # non-empty at configure time, or by adding -multi_module to the
7346 # link flags.
7347 rm -rf libconftest.dylib*
7348 echo "int foo(void){return 1;}" > conftest.c
7349 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7350 -dynamiclib -Wl,-single_module conftest.c" >&5
7351 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7352 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7353 _lt_result=$?
7354 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7355 lt_cv_apple_cc_single_mod=yes
7356 else
7357 cat conftest.err >&5
7358 fi
7359 rm -rf libconftest.dylib*
7360 rm -f conftest.*
7361 fi
7362 fi
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7364 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7366 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7367 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 lt_cv_ld_exported_symbols_list=no
7371 save_LDFLAGS=$LDFLAGS
7372 echo "_main" > conftest.sym
7373 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7376
7377 int
7378 main ()
7379 {
7380
7381 ;
7382 return 0;
7383 }
7384 _ACEOF
7385 if ac_fn_c_try_link "$LINENO"; then :
7386 lt_cv_ld_exported_symbols_list=yes
7387 else
7388 lt_cv_ld_exported_symbols_list=no
7389 fi
7390 rm -f core conftest.err conftest.$ac_objext \
7391 conftest$ac_exeext conftest.$ac_ext
7392 LDFLAGS="$save_LDFLAGS"
7393
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7396 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7398 $as_echo_n "checking for -force_load linker flag... " >&6; }
7399 if test "${lt_cv_ld_force_load+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 lt_cv_ld_force_load=no
7403 cat > conftest.c << _LT_EOF
7404 int forced_loaded() { return 2;}
7405 _LT_EOF
7406 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7407 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7408 echo "$AR cru libconftest.a conftest.o" >&5
7409 $AR cru libconftest.a conftest.o 2>&5
7410 cat > conftest.c << _LT_EOF
7411 int main() { return 0;}
7412 _LT_EOF
7413 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7414 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7415 _lt_result=$?
7416 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7417 lt_cv_ld_force_load=yes
7418 else
7419 cat conftest.err >&5
7420 fi
7421 rm -f conftest.err libconftest.a conftest conftest.c
7422 rm -rf conftest.dSYM
7423
7424 fi
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7426 $as_echo "$lt_cv_ld_force_load" >&6; }
7427 case $host_os in
7428 rhapsody* | darwin1.[012])
7429 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7430 darwin1.*)
7431 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7432 darwin*) # darwin 5.x on
7433 # if running on 10.5 or later, the deployment target defaults
7434 # to the OS version, if on x86, and 10.4, the deployment
7435 # target defaults to 10.4. Don't you love it?
7436 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7437 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7438 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7439 10.[012]*)
7440 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7441 10.*)
7442 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7443 esac
7444 ;;
7445 esac
7446 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7447 _lt_dar_single_mod='$single_module'
7448 fi
7449 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7450 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7451 else
7452 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7453 fi
7454 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7455 _lt_dsymutil='~$DSYMUTIL $lib || :'
7456 else
7457 _lt_dsymutil=
7458 fi
7459 ;;
7460 esac
7461
7462 ac_ext=c
7463 ac_cpp='$CPP $CPPFLAGS'
7464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7468 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7469 # On Suns, sometimes $CPP names a directory.
7470 if test -n "$CPP" && test -d "$CPP"; then
7471 CPP=
7472 fi
7473 if test -z "$CPP"; then
7474 if test "${ac_cv_prog_CPP+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 # Double quotes because CPP needs to be expanded
7478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7479 do
7480 ac_preproc_ok=false
7481 for ac_c_preproc_warn_flag in '' yes
7482 do
7483 # Use a header file that comes with gcc, so configuring glibc
7484 # with a fresh cross-compiler works.
7485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7486 # <limits.h> exists even on freestanding compilers.
7487 # On the NeXT, cc -E runs the code through the compiler's parser,
7488 # not just through cpp. "Syntax error" is here to catch this case.
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7491 #ifdef __STDC__
7492 # include <limits.h>
7493 #else
7494 # include <assert.h>
7495 #endif
7496 Syntax error
7497 _ACEOF
7498 if ac_fn_c_try_cpp "$LINENO"; then :
7499
7500 else
7501 # Broken: fails on valid input.
7502 continue
7503 fi
7504 rm -f conftest.err conftest.$ac_ext
7505
7506 # OK, works on sane cases. Now check whether nonexistent headers
7507 # can be detected and how.
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7510 #include <ac_nonexistent.h>
7511 _ACEOF
7512 if ac_fn_c_try_cpp "$LINENO"; then :
7513 # Broken: success on invalid input.
7514 continue
7515 else
7516 # Passes both tests.
7517 ac_preproc_ok=:
7518 break
7519 fi
7520 rm -f conftest.err conftest.$ac_ext
7521
7522 done
7523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7524 rm -f conftest.err conftest.$ac_ext
7525 if $ac_preproc_ok; then :
7526 break
7527 fi
7528
7529 done
7530 ac_cv_prog_CPP=$CPP
7531
7532 fi
7533 CPP=$ac_cv_prog_CPP
7534 else
7535 ac_cv_prog_CPP=$CPP
7536 fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7538 $as_echo "$CPP" >&6; }
7539 ac_preproc_ok=false
7540 for ac_c_preproc_warn_flag in '' yes
7541 do
7542 # Use a header file that comes with gcc, so configuring glibc
7543 # with a fresh cross-compiler works.
7544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7545 # <limits.h> exists even on freestanding compilers.
7546 # On the NeXT, cc -E runs the code through the compiler's parser,
7547 # not just through cpp. "Syntax error" is here to catch this case.
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7550 #ifdef __STDC__
7551 # include <limits.h>
7552 #else
7553 # include <assert.h>
7554 #endif
7555 Syntax error
7556 _ACEOF
7557 if ac_fn_c_try_cpp "$LINENO"; then :
7558
7559 else
7560 # Broken: fails on valid input.
7561 continue
7562 fi
7563 rm -f conftest.err conftest.$ac_ext
7564
7565 # OK, works on sane cases. Now check whether nonexistent headers
7566 # can be detected and how.
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 #include <ac_nonexistent.h>
7570 _ACEOF
7571 if ac_fn_c_try_cpp "$LINENO"; then :
7572 # Broken: success on invalid input.
7573 continue
7574 else
7575 # Passes both tests.
7576 ac_preproc_ok=:
7577 break
7578 fi
7579 rm -f conftest.err conftest.$ac_ext
7580
7581 done
7582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7583 rm -f conftest.err conftest.$ac_ext
7584 if $ac_preproc_ok; then :
7585
7586 else
7587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7589 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7590 See \`config.log' for more details." "$LINENO" 5; }
7591 fi
7592
7593 ac_ext=c
7594 ac_cpp='$CPP $CPPFLAGS'
7595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7598
7599
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7601 $as_echo_n "checking for ANSI C header files... " >&6; }
7602 if test "${ac_cv_header_stdc+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 #include <stdlib.h>
7608 #include <stdarg.h>
7609 #include <string.h>
7610 #include <float.h>
7611
7612 int
7613 main ()
7614 {
7615
7616 ;
7617 return 0;
7618 }
7619 _ACEOF
7620 if ac_fn_c_try_compile "$LINENO"; then :
7621 ac_cv_header_stdc=yes
7622 else
7623 ac_cv_header_stdc=no
7624 fi
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626
7627 if test $ac_cv_header_stdc = yes; then
7628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 #include <string.h>
7632
7633 _ACEOF
7634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7635 $EGREP "memchr" >/dev/null 2>&1; then :
7636
7637 else
7638 ac_cv_header_stdc=no
7639 fi
7640 rm -f conftest*
7641
7642 fi
7643
7644 if test $ac_cv_header_stdc = yes; then
7645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 #include <stdlib.h>
7649
7650 _ACEOF
7651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7652 $EGREP "free" >/dev/null 2>&1; then :
7653
7654 else
7655 ac_cv_header_stdc=no
7656 fi
7657 rm -f conftest*
7658
7659 fi
7660
7661 if test $ac_cv_header_stdc = yes; then
7662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7663 if test "$cross_compiling" = yes; then :
7664 :
7665 else
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 #include <ctype.h>
7669 #include <stdlib.h>
7670 #if ((' ' & 0x0FF) == 0x020)
7671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7673 #else
7674 # define ISLOWER(c) \
7675 (('a' <= (c) && (c) <= 'i') \
7676 || ('j' <= (c) && (c) <= 'r') \
7677 || ('s' <= (c) && (c) <= 'z'))
7678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7679 #endif
7680
7681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7682 int
7683 main ()
7684 {
7685 int i;
7686 for (i = 0; i < 256; i++)
7687 if (XOR (islower (i), ISLOWER (i))
7688 || toupper (i) != TOUPPER (i))
7689 return 2;
7690 return 0;
7691 }
7692 _ACEOF
7693 if ac_fn_c_try_run "$LINENO"; then :
7694
7695 else
7696 ac_cv_header_stdc=no
7697 fi
7698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7699 conftest.$ac_objext conftest.beam conftest.$ac_ext
7700 fi
7701
7702 fi
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7705 $as_echo "$ac_cv_header_stdc" >&6; }
7706 if test $ac_cv_header_stdc = yes; then
7707
7708 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7709
7710 fi
7711
7712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7714 inttypes.h stdint.h unistd.h
7715 do :
7716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7718 "
7719 eval as_val=\$$as_ac_Header
7720 if test "x$as_val" = x""yes; then :
7721 cat >>confdefs.h <<_ACEOF
7722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7723 _ACEOF
7724
7725 fi
7726
7727 done
7728
7729
7730 for ac_header in dlfcn.h
7731 do :
7732 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7733 "
7734 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7735 cat >>confdefs.h <<_ACEOF
7736 #define HAVE_DLFCN_H 1
7737 _ACEOF
7738
7739 fi
7740
7741 done
7742
7743
7744
7745
7746
7747
7748 # Set options
7749
7750
7751
7752
7753 enable_win32_dll=no
7754
7755
7756 # Check whether --enable-shared was given.
7757 if test "${enable_shared+set}" = set; then :
7758 enableval=$enable_shared; p=${PACKAGE-default}
7759 case $enableval in
7760 yes) enable_shared=yes ;;
7761 no) enable_shared=no ;;
7762 *)
7763 enable_shared=no
7764 # Look at the argument we got. We use all the common list separators.
7765 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7766 for pkg in $enableval; do
7767 IFS="$lt_save_ifs"
7768 if test "X$pkg" = "X$p"; then
7769 enable_shared=yes
7770 fi
7771 done
7772 IFS="$lt_save_ifs"
7773 ;;
7774 esac
7775 else
7776 enable_shared=yes
7777 fi
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787 # Check whether --enable-static was given.
7788 if test "${enable_static+set}" = set; then :
7789 enableval=$enable_static; p=${PACKAGE-default}
7790 case $enableval in
7791 yes) enable_static=yes ;;
7792 no) enable_static=no ;;
7793 *)
7794 enable_static=no
7795 # Look at the argument we got. We use all the common list separators.
7796 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7797 for pkg in $enableval; do
7798 IFS="$lt_save_ifs"
7799 if test "X$pkg" = "X$p"; then
7800 enable_static=yes
7801 fi
7802 done
7803 IFS="$lt_save_ifs"
7804 ;;
7805 esac
7806 else
7807 enable_static=yes
7808 fi
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819 # Check whether --with-pic was given.
7820 if test "${with_pic+set}" = set; then :
7821 withval=$with_pic; pic_mode="$withval"
7822 else
7823 pic_mode=default
7824 fi
7825
7826
7827 test -z "$pic_mode" && pic_mode=default
7828
7829
7830
7831
7832
7833
7834
7835 # Check whether --enable-fast-install was given.
7836 if test "${enable_fast_install+set}" = set; then :
7837 enableval=$enable_fast_install; p=${PACKAGE-default}
7838 case $enableval in
7839 yes) enable_fast_install=yes ;;
7840 no) enable_fast_install=no ;;
7841 *)
7842 enable_fast_install=no
7843 # Look at the argument we got. We use all the common list separators.
7844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7845 for pkg in $enableval; do
7846 IFS="$lt_save_ifs"
7847 if test "X$pkg" = "X$p"; then
7848 enable_fast_install=yes
7849 fi
7850 done
7851 IFS="$lt_save_ifs"
7852 ;;
7853 esac
7854 else
7855 enable_fast_install=yes
7856 fi
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868 # This can be used to rebuild libtool when needed
7869 LIBTOOL_DEPS="$ltmain"
7870
7871 # Always use our own libtool.
7872 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899 test -z "$LN_S" && LN_S="ln -s"
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914 if test -n "${ZSH_VERSION+set}" ; then
7915 setopt NO_GLOB_SUBST
7916 fi
7917
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7919 $as_echo_n "checking for objdir... " >&6; }
7920 if test "${lt_cv_objdir+set}" = set; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 rm -f .libs 2>/dev/null
7924 mkdir .libs 2>/dev/null
7925 if test -d .libs; then
7926 lt_cv_objdir=.libs
7927 else
7928 # MS-DOS does not allow filenames that begin with a dot.
7929 lt_cv_objdir=_libs
7930 fi
7931 rmdir .libs 2>/dev/null
7932 fi
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7934 $as_echo "$lt_cv_objdir" >&6; }
7935 objdir=$lt_cv_objdir
7936
7937
7938
7939
7940
7941 cat >>confdefs.h <<_ACEOF
7942 #define LT_OBJDIR "$lt_cv_objdir/"
7943 _ACEOF
7944
7945
7946
7947
7948 case $host_os in
7949 aix3*)
7950 # AIX sometimes has problems with the GCC collect2 program. For some
7951 # reason, if we set the COLLECT_NAMES environment variable, the problems
7952 # vanish in a puff of smoke.
7953 if test "X${COLLECT_NAMES+set}" != Xset; then
7954 COLLECT_NAMES=
7955 export COLLECT_NAMES
7956 fi
7957 ;;
7958 esac
7959
7960 # Global variables:
7961 ofile=libtool
7962 can_build_shared=yes
7963
7964 # All known linkers require a `.a' archive for static linking (except MSVC,
7965 # which needs '.lib').
7966 libext=a
7967
7968 with_gnu_ld="$lt_cv_prog_gnu_ld"
7969
7970 old_CC="$CC"
7971 old_CFLAGS="$CFLAGS"
7972
7973 # Set sane defaults for various variables
7974 test -z "$CC" && CC=cc
7975 test -z "$LTCC" && LTCC=$CC
7976 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7977 test -z "$LD" && LD=ld
7978 test -z "$ac_objext" && ac_objext=o
7979
7980 for cc_temp in $compiler""; do
7981 case $cc_temp in
7982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7984 \-*) ;;
7985 *) break;;
7986 esac
7987 done
7988 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7989
7990
7991 # Only perform the check for file, if the check method requires it
7992 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7993 case $deplibs_check_method in
7994 file_magic*)
7995 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7997 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7998 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 case $MAGIC_CMD in
8002 [\\/*] | ?:[\\/]*)
8003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8004 ;;
8005 *)
8006 lt_save_MAGIC_CMD="$MAGIC_CMD"
8007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8009 for ac_dir in $ac_dummy; do
8010 IFS="$lt_save_ifs"
8011 test -z "$ac_dir" && ac_dir=.
8012 if test -f $ac_dir/${ac_tool_prefix}file; then
8013 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8014 if test -n "$file_magic_test_file"; then
8015 case $deplibs_check_method in
8016 "file_magic "*)
8017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8020 $EGREP "$file_magic_regex" > /dev/null; then
8021 :
8022 else
8023 cat <<_LT_EOF 1>&2
8024
8025 *** Warning: the command libtool uses to detect shared libraries,
8026 *** $file_magic_cmd, produces output that libtool cannot recognize.
8027 *** The result is that libtool may fail to recognize shared libraries
8028 *** as such. This will affect the creation of libtool libraries that
8029 *** depend on shared libraries, but programs linked with such libtool
8030 *** libraries will work regardless of this problem. Nevertheless, you
8031 *** may want to report the problem to your system manager and/or to
8032 *** bug-libtool@gnu.org
8033
8034 _LT_EOF
8035 fi ;;
8036 esac
8037 fi
8038 break
8039 fi
8040 done
8041 IFS="$lt_save_ifs"
8042 MAGIC_CMD="$lt_save_MAGIC_CMD"
8043 ;;
8044 esac
8045 fi
8046
8047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8048 if test -n "$MAGIC_CMD"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8050 $as_echo "$MAGIC_CMD" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056
8057
8058
8059
8060 if test -z "$lt_cv_path_MAGIC_CMD"; then
8061 if test -n "$ac_tool_prefix"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8063 $as_echo_n "checking for file... " >&6; }
8064 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 case $MAGIC_CMD in
8068 [\\/*] | ?:[\\/]*)
8069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8070 ;;
8071 *)
8072 lt_save_MAGIC_CMD="$MAGIC_CMD"
8073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8075 for ac_dir in $ac_dummy; do
8076 IFS="$lt_save_ifs"
8077 test -z "$ac_dir" && ac_dir=.
8078 if test -f $ac_dir/file; then
8079 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8080 if test -n "$file_magic_test_file"; then
8081 case $deplibs_check_method in
8082 "file_magic "*)
8083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8086 $EGREP "$file_magic_regex" > /dev/null; then
8087 :
8088 else
8089 cat <<_LT_EOF 1>&2
8090
8091 *** Warning: the command libtool uses to detect shared libraries,
8092 *** $file_magic_cmd, produces output that libtool cannot recognize.
8093 *** The result is that libtool may fail to recognize shared libraries
8094 *** as such. This will affect the creation of libtool libraries that
8095 *** depend on shared libraries, but programs linked with such libtool
8096 *** libraries will work regardless of this problem. Nevertheless, you
8097 *** may want to report the problem to your system manager and/or to
8098 *** bug-libtool@gnu.org
8099
8100 _LT_EOF
8101 fi ;;
8102 esac
8103 fi
8104 break
8105 fi
8106 done
8107 IFS="$lt_save_ifs"
8108 MAGIC_CMD="$lt_save_MAGIC_CMD"
8109 ;;
8110 esac
8111 fi
8112
8113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8114 if test -n "$MAGIC_CMD"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8116 $as_echo "$MAGIC_CMD" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123 else
8124 MAGIC_CMD=:
8125 fi
8126 fi
8127
8128 fi
8129 ;;
8130 esac
8131
8132 # Use C for the default configuration in the libtool script
8133
8134 lt_save_CC="$CC"
8135 ac_ext=c
8136 ac_cpp='$CPP $CPPFLAGS'
8137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8140
8141
8142 # Source file extension for C test sources.
8143 ac_ext=c
8144
8145 # Object file extension for compiled C test sources.
8146 objext=o
8147 objext=$objext
8148
8149 # Code to be used in simple compile tests
8150 lt_simple_compile_test_code="int some_variable = 0;"
8151
8152 # Code to be used in simple link tests
8153 lt_simple_link_test_code='int main(){return(0);}'
8154
8155
8156
8157
8158
8159
8160
8161 # If no C compiler was specified, use CC.
8162 LTCC=${LTCC-"$CC"}
8163
8164 # If no C compiler flags were specified, use CFLAGS.
8165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8166
8167 # Allow CC to be a program name with arguments.
8168 compiler=$CC
8169
8170 # Save the default compiler, since it gets overwritten when the other
8171 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8172 compiler_DEFAULT=$CC
8173
8174 # save warnings/boilerplate of simple test code
8175 ac_outfile=conftest.$ac_objext
8176 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8178 _lt_compiler_boilerplate=`cat conftest.err`
8179 $RM conftest*
8180
8181 ac_outfile=conftest.$ac_objext
8182 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8183 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8184 _lt_linker_boilerplate=`cat conftest.err`
8185 $RM -r conftest*
8186
8187
8188 ## CAVEAT EMPTOR:
8189 ## There is no encapsulation within the following macros, do not change
8190 ## the running order or otherwise move them around unless you know exactly
8191 ## what you are doing...
8192 if test -n "$compiler"; then
8193
8194 lt_prog_compiler_no_builtin_flag=
8195
8196 if test "$GCC" = yes; then
8197 case $cc_basename in
8198 nvcc*)
8199 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8200 *)
8201 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8202 esac
8203
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8205 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8206 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 lt_cv_prog_compiler_rtti_exceptions=no
8210 ac_outfile=conftest.$ac_objext
8211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8212 lt_compiler_flag="-fno-rtti -fno-exceptions"
8213 # Insert the option either (1) after the last *FLAGS variable, or
8214 # (2) before a word containing "conftest.", or (3) at the end.
8215 # Note that $ac_compile itself does not contain backslashes and begins
8216 # with a dollar sign (not a hyphen), so the echo should work correctly.
8217 # The option is referenced via a variable to avoid confusing sed.
8218 lt_compile=`echo "$ac_compile" | $SED \
8219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8221 -e 's:$: $lt_compiler_flag:'`
8222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8223 (eval "$lt_compile" 2>conftest.err)
8224 ac_status=$?
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 if (exit $ac_status) && test -s "$ac_outfile"; then
8228 # The compiler can only warn and ignore the option if not recognized
8229 # So say no if there are warnings other than the usual output.
8230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8233 lt_cv_prog_compiler_rtti_exceptions=yes
8234 fi
8235 fi
8236 $RM conftest*
8237
8238 fi
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8240 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8241
8242 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8243 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8244 else
8245 :
8246 fi
8247
8248 fi
8249
8250
8251
8252
8253
8254
8255 lt_prog_compiler_wl=
8256 lt_prog_compiler_pic=
8257 lt_prog_compiler_static=
8258
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8260 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8261
8262 if test "$GCC" = yes; then
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_static='-static'
8265
8266 case $host_os in
8267 aix*)
8268 # All AIX code is PIC.
8269 if test "$host_cpu" = ia64; then
8270 # AIX 5 now supports IA64 processor
8271 lt_prog_compiler_static='-Bstatic'
8272 fi
8273 lt_prog_compiler_pic='-fPIC'
8274 ;;
8275
8276 amigaos*)
8277 case $host_cpu in
8278 powerpc)
8279 # see comment about AmigaOS4 .so support
8280 lt_prog_compiler_pic='-fPIC'
8281 ;;
8282 m68k)
8283 # FIXME: we need at least 68020 code to build shared libraries, but
8284 # adding the `-m68020' flag to GCC prevents building anything better,
8285 # like `-m68040'.
8286 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8287 ;;
8288 esac
8289 ;;
8290
8291 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8292 # PIC is the default for these OSes.
8293 ;;
8294
8295 mingw* | cygwin* | pw32* | os2* | cegcc*)
8296 # This hack is so that the source file can tell whether it is being
8297 # built for inclusion in a dll (and should export symbols for example).
8298 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8299 # (--disable-auto-import) libraries
8300 lt_prog_compiler_pic='-DDLL_EXPORT'
8301 ;;
8302
8303 darwin* | rhapsody*)
8304 # PIC is the default on this platform
8305 # Common symbols not allowed in MH_DYLIB files
8306 lt_prog_compiler_pic='-fno-common'
8307 ;;
8308
8309 haiku*)
8310 # PIC is the default for Haiku.
8311 # The "-static" flag exists, but is broken.
8312 lt_prog_compiler_static=
8313 ;;
8314
8315 hpux*)
8316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8318 # sets the default TLS model and affects inlining.
8319 case $host_cpu in
8320 hppa*64*)
8321 # +Z the default
8322 ;;
8323 *)
8324 lt_prog_compiler_pic='-fPIC'
8325 ;;
8326 esac
8327 ;;
8328
8329 interix[3-9]*)
8330 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8331 # Instead, we relocate shared libraries at runtime.
8332 ;;
8333
8334 msdosdjgpp*)
8335 # Just because we use GCC doesn't mean we suddenly get shared libraries
8336 # on systems that don't support them.
8337 lt_prog_compiler_can_build_shared=no
8338 enable_shared=no
8339 ;;
8340
8341 *nto* | *qnx*)
8342 # QNX uses GNU C++, but need to define -shared option too, otherwise
8343 # it will coredump.
8344 lt_prog_compiler_pic='-fPIC -shared'
8345 ;;
8346
8347 sysv4*MP*)
8348 if test -d /usr/nec; then
8349 lt_prog_compiler_pic=-Kconform_pic
8350 fi
8351 ;;
8352
8353 *)
8354 lt_prog_compiler_pic='-fPIC'
8355 ;;
8356 esac
8357
8358 case $cc_basename in
8359 nvcc*) # Cuda Compiler Driver 2.2
8360 lt_prog_compiler_wl='-Xlinker '
8361 lt_prog_compiler_pic='-Xcompiler -fPIC'
8362 ;;
8363 esac
8364 else
8365 # PORTME Check for flag to pass linker flags through the system compiler.
8366 case $host_os in
8367 aix*)
8368 lt_prog_compiler_wl='-Wl,'
8369 if test "$host_cpu" = ia64; then
8370 # AIX 5 now supports IA64 processor
8371 lt_prog_compiler_static='-Bstatic'
8372 else
8373 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8374 fi
8375 ;;
8376
8377 mingw* | cygwin* | pw32* | os2* | cegcc*)
8378 # This hack is so that the source file can tell whether it is being
8379 # built for inclusion in a dll (and should export symbols for example).
8380 lt_prog_compiler_pic='-DDLL_EXPORT'
8381 ;;
8382
8383 hpux9* | hpux10* | hpux11*)
8384 lt_prog_compiler_wl='-Wl,'
8385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8386 # not for PA HP-UX.
8387 case $host_cpu in
8388 hppa*64*|ia64*)
8389 # +Z the default
8390 ;;
8391 *)
8392 lt_prog_compiler_pic='+Z'
8393 ;;
8394 esac
8395 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8396 lt_prog_compiler_static='${wl}-a ${wl}archive'
8397 ;;
8398
8399 irix5* | irix6* | nonstopux*)
8400 lt_prog_compiler_wl='-Wl,'
8401 # PIC (with -KPIC) is the default.
8402 lt_prog_compiler_static='-non_shared'
8403 ;;
8404
8405 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8406 case $cc_basename in
8407 # old Intel for x86_64 which still supported -KPIC.
8408 ecc*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_pic='-KPIC'
8411 lt_prog_compiler_static='-static'
8412 ;;
8413 # icc used to be incompatible with GCC.
8414 # ICC 10 doesn't accept -KPIC any more.
8415 icc* | ifort*)
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_pic='-fPIC'
8418 lt_prog_compiler_static='-static'
8419 ;;
8420 # Lahey Fortran 8.1.
8421 lf95*)
8422 lt_prog_compiler_wl='-Wl,'
8423 lt_prog_compiler_pic='--shared'
8424 lt_prog_compiler_static='--static'
8425 ;;
8426 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8427 # Portland Group compilers (*not* the Pentium gcc compiler,
8428 # which looks to be a dead project)
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-fpic'
8431 lt_prog_compiler_static='-Bstatic'
8432 ;;
8433 ccc*)
8434 lt_prog_compiler_wl='-Wl,'
8435 # All Alpha code is PIC.
8436 lt_prog_compiler_static='-non_shared'
8437 ;;
8438 xl* | bgxl* | bgf* | mpixl*)
8439 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_pic='-qpic'
8442 lt_prog_compiler_static='-qstaticlink'
8443 ;;
8444 *)
8445 case `$CC -V 2>&1 | sed 5q` in
8446 *Sun\ F* | *Sun*Fortran*)
8447 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8448 lt_prog_compiler_pic='-KPIC'
8449 lt_prog_compiler_static='-Bstatic'
8450 lt_prog_compiler_wl=''
8451 ;;
8452 *Sun\ C*)
8453 # Sun C 5.9
8454 lt_prog_compiler_pic='-KPIC'
8455 lt_prog_compiler_static='-Bstatic'
8456 lt_prog_compiler_wl='-Wl,'
8457 ;;
8458 esac
8459 ;;
8460 esac
8461 ;;
8462
8463 newsos6)
8464 lt_prog_compiler_pic='-KPIC'
8465 lt_prog_compiler_static='-Bstatic'
8466 ;;
8467
8468 *nto* | *qnx*)
8469 # QNX uses GNU C++, but need to define -shared option too, otherwise
8470 # it will coredump.
8471 lt_prog_compiler_pic='-fPIC -shared'
8472 ;;
8473
8474 osf3* | osf4* | osf5*)
8475 lt_prog_compiler_wl='-Wl,'
8476 # All OSF/1 code is PIC.
8477 lt_prog_compiler_static='-non_shared'
8478 ;;
8479
8480 rdos*)
8481 lt_prog_compiler_static='-non_shared'
8482 ;;
8483
8484 solaris*)
8485 lt_prog_compiler_pic='-KPIC'
8486 lt_prog_compiler_static='-Bstatic'
8487 case $cc_basename in
8488 f77* | f90* | f95*)
8489 lt_prog_compiler_wl='-Qoption ld ';;
8490 *)
8491 lt_prog_compiler_wl='-Wl,';;
8492 esac
8493 ;;
8494
8495 sunos4*)
8496 lt_prog_compiler_wl='-Qoption ld '
8497 lt_prog_compiler_pic='-PIC'
8498 lt_prog_compiler_static='-Bstatic'
8499 ;;
8500
8501 sysv4 | sysv4.2uw2* | sysv4.3*)
8502 lt_prog_compiler_wl='-Wl,'
8503 lt_prog_compiler_pic='-KPIC'
8504 lt_prog_compiler_static='-Bstatic'
8505 ;;
8506
8507 sysv4*MP*)
8508 if test -d /usr/nec ;then
8509 lt_prog_compiler_pic='-Kconform_pic'
8510 lt_prog_compiler_static='-Bstatic'
8511 fi
8512 ;;
8513
8514 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8515 lt_prog_compiler_wl='-Wl,'
8516 lt_prog_compiler_pic='-KPIC'
8517 lt_prog_compiler_static='-Bstatic'
8518 ;;
8519
8520 unicos*)
8521 lt_prog_compiler_wl='-Wl,'
8522 lt_prog_compiler_can_build_shared=no
8523 ;;
8524
8525 uts4*)
8526 lt_prog_compiler_pic='-pic'
8527 lt_prog_compiler_static='-Bstatic'
8528 ;;
8529
8530 *)
8531 lt_prog_compiler_can_build_shared=no
8532 ;;
8533 esac
8534 fi
8535
8536 case $host_os in
8537 # For platforms which do not support PIC, -DPIC is meaningless:
8538 *djgpp*)
8539 lt_prog_compiler_pic=
8540 ;;
8541 *)
8542 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8543 ;;
8544 esac
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8546 $as_echo "$lt_prog_compiler_pic" >&6; }
8547
8548
8549
8550
8551
8552
8553 #
8554 # Check to make sure the PIC flag actually works.
8555 #
8556 if test -n "$lt_prog_compiler_pic"; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8558 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8559 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 lt_cv_prog_compiler_pic_works=no
8563 ac_outfile=conftest.$ac_objext
8564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8565 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8566 # Insert the option either (1) after the last *FLAGS variable, or
8567 # (2) before a word containing "conftest.", or (3) at the end.
8568 # Note that $ac_compile itself does not contain backslashes and begins
8569 # with a dollar sign (not a hyphen), so the echo should work correctly.
8570 # The option is referenced via a variable to avoid confusing sed.
8571 lt_compile=`echo "$ac_compile" | $SED \
8572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8574 -e 's:$: $lt_compiler_flag:'`
8575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8576 (eval "$lt_compile" 2>conftest.err)
8577 ac_status=$?
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 if (exit $ac_status) && test -s "$ac_outfile"; then
8581 # The compiler can only warn and ignore the option if not recognized
8582 # So say no if there are warnings other than the usual output.
8583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8586 lt_cv_prog_compiler_pic_works=yes
8587 fi
8588 fi
8589 $RM conftest*
8590
8591 fi
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8593 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8594
8595 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8596 case $lt_prog_compiler_pic in
8597 "" | " "*) ;;
8598 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8599 esac
8600 else
8601 lt_prog_compiler_pic=
8602 lt_prog_compiler_can_build_shared=no
8603 fi
8604
8605 fi
8606
8607
8608
8609
8610
8611
8612 #
8613 # Check to make sure the static flag actually works.
8614 #
8615 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8617 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8618 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 lt_cv_prog_compiler_static_works=no
8622 save_LDFLAGS="$LDFLAGS"
8623 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8624 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8625 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8626 # The linker can only warn and ignore the option if not recognized
8627 # So say no if there are warnings
8628 if test -s conftest.err; then
8629 # Append any errors to the config.log.
8630 cat conftest.err 1>&5
8631 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8633 if diff conftest.exp conftest.er2 >/dev/null; then
8634 lt_cv_prog_compiler_static_works=yes
8635 fi
8636 else
8637 lt_cv_prog_compiler_static_works=yes
8638 fi
8639 fi
8640 $RM -r conftest*
8641 LDFLAGS="$save_LDFLAGS"
8642
8643 fi
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8645 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8646
8647 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8648 :
8649 else
8650 lt_prog_compiler_static=
8651 fi
8652
8653
8654
8655
8656
8657
8658
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8660 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8661 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 lt_cv_prog_compiler_c_o=no
8665 $RM -r conftest 2>/dev/null
8666 mkdir conftest
8667 cd conftest
8668 mkdir out
8669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8670
8671 lt_compiler_flag="-o out/conftest2.$ac_objext"
8672 # Insert the option either (1) after the last *FLAGS variable, or
8673 # (2) before a word containing "conftest.", or (3) at the end.
8674 # Note that $ac_compile itself does not contain backslashes and begins
8675 # with a dollar sign (not a hyphen), so the echo should work correctly.
8676 lt_compile=`echo "$ac_compile" | $SED \
8677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8679 -e 's:$: $lt_compiler_flag:'`
8680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8681 (eval "$lt_compile" 2>out/conftest.err)
8682 ac_status=$?
8683 cat out/conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8686 then
8687 # The compiler can only warn and ignore the option if not recognized
8688 # So say no if there are warnings
8689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8692 lt_cv_prog_compiler_c_o=yes
8693 fi
8694 fi
8695 chmod u+w . 2>&5
8696 $RM conftest*
8697 # SGI C++ compiler will create directory out/ii_files/ for
8698 # template instantiation
8699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8700 $RM out/* && rmdir out
8701 cd ..
8702 $RM -r conftest
8703 $RM conftest*
8704
8705 fi
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8707 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8708
8709
8710
8711
8712
8713
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8715 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8716 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 lt_cv_prog_compiler_c_o=no
8720 $RM -r conftest 2>/dev/null
8721 mkdir conftest
8722 cd conftest
8723 mkdir out
8724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8725
8726 lt_compiler_flag="-o out/conftest2.$ac_objext"
8727 # Insert the option either (1) after the last *FLAGS variable, or
8728 # (2) before a word containing "conftest.", or (3) at the end.
8729 # Note that $ac_compile itself does not contain backslashes and begins
8730 # with a dollar sign (not a hyphen), so the echo should work correctly.
8731 lt_compile=`echo "$ac_compile" | $SED \
8732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8734 -e 's:$: $lt_compiler_flag:'`
8735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8736 (eval "$lt_compile" 2>out/conftest.err)
8737 ac_status=$?
8738 cat out/conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8741 then
8742 # The compiler can only warn and ignore the option if not recognized
8743 # So say no if there are warnings
8744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8747 lt_cv_prog_compiler_c_o=yes
8748 fi
8749 fi
8750 chmod u+w . 2>&5
8751 $RM conftest*
8752 # SGI C++ compiler will create directory out/ii_files/ for
8753 # template instantiation
8754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8755 $RM out/* && rmdir out
8756 cd ..
8757 $RM -r conftest
8758 $RM conftest*
8759
8760 fi
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8762 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8763
8764
8765
8766
8767 hard_links="nottested"
8768 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8769 # do not overwrite the value of need_locks provided by the user
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8771 $as_echo_n "checking if we can lock with hard links... " >&6; }
8772 hard_links=yes
8773 $RM conftest*
8774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8775 touch conftest.a
8776 ln conftest.a conftest.b 2>&5 || hard_links=no
8777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8779 $as_echo "$hard_links" >&6; }
8780 if test "$hard_links" = no; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8782 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8783 need_locks=warn
8784 fi
8785 else
8786 need_locks=no
8787 fi
8788
8789
8790
8791
8792
8793
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8795 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8796
8797 runpath_var=
8798 allow_undefined_flag=
8799 always_export_symbols=no
8800 archive_cmds=
8801 archive_expsym_cmds=
8802 compiler_needs_object=no
8803 enable_shared_with_static_runtimes=no
8804 export_dynamic_flag_spec=
8805 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8806 hardcode_automatic=no
8807 hardcode_direct=no
8808 hardcode_direct_absolute=no
8809 hardcode_libdir_flag_spec=
8810 hardcode_libdir_flag_spec_ld=
8811 hardcode_libdir_separator=
8812 hardcode_minus_L=no
8813 hardcode_shlibpath_var=unsupported
8814 inherit_rpath=no
8815 link_all_deplibs=unknown
8816 module_cmds=
8817 module_expsym_cmds=
8818 old_archive_from_new_cmds=
8819 old_archive_from_expsyms_cmds=
8820 thread_safe_flag_spec=
8821 whole_archive_flag_spec=
8822 # include_expsyms should be a list of space-separated symbols to be *always*
8823 # included in the symbol list
8824 include_expsyms=
8825 # exclude_expsyms can be an extended regexp of symbols to exclude
8826 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8827 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8828 # as well as any symbol that contains `d'.
8829 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8830 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8831 # platforms (ab)use it in PIC code, but their linkers get confused if
8832 # the symbol is explicitly referenced. Since portable code cannot
8833 # rely on this symbol name, it's probably fine to never include it in
8834 # preloaded symbol tables.
8835 # Exclude shared library initialization/finalization symbols.
8836 extract_expsyms_cmds=
8837
8838 case $host_os in
8839 cygwin* | mingw* | pw32* | cegcc*)
8840 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8841 # When not using gcc, we currently assume that we are using
8842 # Microsoft Visual C++.
8843 if test "$GCC" != yes; then
8844 with_gnu_ld=no
8845 fi
8846 ;;
8847 interix*)
8848 # we just hope/assume this is gcc and not c89 (= MSVC++)
8849 with_gnu_ld=yes
8850 ;;
8851 openbsd*)
8852 with_gnu_ld=no
8853 ;;
8854 esac
8855
8856 ld_shlibs=yes
8857
8858 # On some targets, GNU ld is compatible enough with the native linker
8859 # that we're better off using the native interface for both.
8860 lt_use_gnu_ld_interface=no
8861 if test "$with_gnu_ld" = yes; then
8862 case $host_os in
8863 aix*)
8864 # The AIX port of GNU ld has always aspired to compatibility
8865 # with the native linker. However, as the warning in the GNU ld
8866 # block says, versions before 2.19.5* couldn't really create working
8867 # shared libraries, regardless of the interface used.
8868 case `$LD -v 2>&1` in
8869 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8870 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8871 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8872 *)
8873 lt_use_gnu_ld_interface=yes
8874 ;;
8875 esac
8876 ;;
8877 *)
8878 lt_use_gnu_ld_interface=yes
8879 ;;
8880 esac
8881 fi
8882
8883 if test "$lt_use_gnu_ld_interface" = yes; then
8884 # If archive_cmds runs LD, not CC, wlarc should be empty
8885 wlarc='${wl}'
8886
8887 # Set some defaults for GNU ld with shared library support. These
8888 # are reset later if shared libraries are not supported. Putting them
8889 # here allows them to be overridden if necessary.
8890 runpath_var=LD_RUN_PATH
8891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8892 export_dynamic_flag_spec='${wl}--export-dynamic'
8893 # ancient GNU ld didn't support --whole-archive et. al.
8894 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8895 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8896 else
8897 whole_archive_flag_spec=
8898 fi
8899 supports_anon_versioning=no
8900 case `$LD -v 2>&1` in
8901 *GNU\ gold*) supports_anon_versioning=yes ;;
8902 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8903 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8904 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8905 *\ 2.11.*) ;; # other 2.11 versions
8906 *) supports_anon_versioning=yes ;;
8907 esac
8908
8909 # See if GNU ld supports shared libraries.
8910 case $host_os in
8911 aix[3-9]*)
8912 # On AIX/PPC, the GNU linker is very broken
8913 if test "$host_cpu" != ia64; then
8914 ld_shlibs=no
8915 cat <<_LT_EOF 1>&2
8916
8917 *** Warning: the GNU linker, at least up to release 2.19, is reported
8918 *** to be unable to reliably create shared libraries on AIX.
8919 *** Therefore, libtool is disabling shared libraries support. If you
8920 *** really care for shared libraries, you may want to install binutils
8921 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8922 *** You will then need to restart the configuration process.
8923
8924 _LT_EOF
8925 fi
8926 ;;
8927
8928 amigaos*)
8929 case $host_cpu in
8930 powerpc)
8931 # see comment about AmigaOS4 .so support
8932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933 archive_expsym_cmds=''
8934 ;;
8935 m68k)
8936 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)'
8937 hardcode_libdir_flag_spec='-L$libdir'
8938 hardcode_minus_L=yes
8939 ;;
8940 esac
8941 ;;
8942
8943 beos*)
8944 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8945 allow_undefined_flag=unsupported
8946 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8947 # support --undefined. This deserves some investigation. FIXME
8948 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949 else
8950 ld_shlibs=no
8951 fi
8952 ;;
8953
8954 cygwin* | mingw* | pw32* | cegcc*)
8955 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8956 # as there is no search path for DLLs.
8957 hardcode_libdir_flag_spec='-L$libdir'
8958 export_dynamic_flag_spec='${wl}--export-all-symbols'
8959 allow_undefined_flag=unsupported
8960 always_export_symbols=no
8961 enable_shared_with_static_runtimes=yes
8962 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8963
8964 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8966 # If the export-symbols file already is a .def file (1st line
8967 # is EXPORTS), use it as is; otherwise, prepend...
8968 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8969 cp $export_symbols $output_objdir/$soname.def;
8970 else
8971 echo EXPORTS > $output_objdir/$soname.def;
8972 cat $export_symbols >> $output_objdir/$soname.def;
8973 fi~
8974 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8975 else
8976 ld_shlibs=no
8977 fi
8978 ;;
8979
8980 haiku*)
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 link_all_deplibs=yes
8983 ;;
8984
8985 interix[3-9]*)
8986 hardcode_direct=no
8987 hardcode_shlibpath_var=no
8988 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8989 export_dynamic_flag_spec='${wl}-E'
8990 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8991 # Instead, shared libraries are loaded at an image base (0x10000000 by
8992 # default) and relocated if they conflict, which is a slow very memory
8993 # consuming and fragmenting process. To avoid this, we pick a random,
8994 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8995 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8996 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8997 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'
8998 ;;
8999
9000 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9001 tmp_diet=no
9002 if test "$host_os" = linux-dietlibc; then
9003 case $cc_basename in
9004 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9005 esac
9006 fi
9007 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9008 && test "$tmp_diet" = no
9009 then
9010 tmp_addflag=
9011 tmp_sharedflag='-shared'
9012 case $cc_basename,$host_cpu in
9013 pgcc*) # Portland Group C compiler
9014 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'
9015 tmp_addflag=' $pic_flag'
9016 ;;
9017 pgf77* | pgf90* | pgf95* | pgfortran*)
9018 # Portland Group f77 and f90 compilers
9019 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'
9020 tmp_addflag=' $pic_flag -Mnomain' ;;
9021 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9022 tmp_addflag=' -i_dynamic' ;;
9023 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9024 tmp_addflag=' -i_dynamic -nofor_main' ;;
9025 ifc* | ifort*) # Intel Fortran compiler
9026 tmp_addflag=' -nofor_main' ;;
9027 lf95*) # Lahey Fortran 8.1
9028 whole_archive_flag_spec=
9029 tmp_sharedflag='--shared' ;;
9030 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9031 tmp_sharedflag='-qmkshrobj'
9032 tmp_addflag= ;;
9033 nvcc*) # Cuda Compiler Driver 2.2
9034 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'
9035 compiler_needs_object=yes
9036 ;;
9037 esac
9038 case `$CC -V 2>&1 | sed 5q` in
9039 *Sun\ C*) # Sun C 5.9
9040 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'
9041 compiler_needs_object=yes
9042 tmp_sharedflag='-G' ;;
9043 *Sun\ F*) # Sun Fortran 8.3
9044 tmp_sharedflag='-G' ;;
9045 esac
9046 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047
9048 if test "x$supports_anon_versioning" = xyes; then
9049 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9051 echo "local: *; };" >> $output_objdir/$libname.ver~
9052 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9053 fi
9054
9055 case $cc_basename in
9056 xlf* | bgf* | bgxlf* | mpixlf*)
9057 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9058 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9059 hardcode_libdir_flag_spec=
9060 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9061 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9062 if test "x$supports_anon_versioning" = xyes; then
9063 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9065 echo "local: *; };" >> $output_objdir/$libname.ver~
9066 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9067 fi
9068 ;;
9069 esac
9070 else
9071 ld_shlibs=no
9072 fi
9073 ;;
9074
9075 netbsd*)
9076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9077 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9078 wlarc=
9079 else
9080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082 fi
9083 ;;
9084
9085 solaris*)
9086 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9087 ld_shlibs=no
9088 cat <<_LT_EOF 1>&2
9089
9090 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9091 *** create shared libraries on Solaris systems. Therefore, libtool
9092 *** is disabling shared libraries support. We urge you to upgrade GNU
9093 *** binutils to release 2.9.1 or newer. Another option is to modify
9094 *** your PATH or compiler configuration so that the native linker is
9095 *** used, and then restart.
9096
9097 _LT_EOF
9098 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9100 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9101 else
9102 ld_shlibs=no
9103 fi
9104 ;;
9105
9106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9107 case `$LD -v 2>&1` in
9108 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9109 ld_shlibs=no
9110 cat <<_LT_EOF 1>&2
9111
9112 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9113 *** reliably create shared libraries on SCO systems. Therefore, libtool
9114 *** is disabling shared libraries support. We urge you to upgrade GNU
9115 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9116 *** your PATH or compiler configuration so that the native linker is
9117 *** used, and then restart.
9118
9119 _LT_EOF
9120 ;;
9121 *)
9122 # For security reasons, it is highly recommended that you always
9123 # use absolute paths for naming shared libraries, and exclude the
9124 # DT_RUNPATH tag from executables and libraries. But doing so
9125 # requires that you compile everything twice, which is a pain.
9126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9130 else
9131 ld_shlibs=no
9132 fi
9133 ;;
9134 esac
9135 ;;
9136
9137 sunos4*)
9138 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9139 wlarc=
9140 hardcode_direct=yes
9141 hardcode_shlibpath_var=no
9142 ;;
9143
9144 *)
9145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9148 else
9149 ld_shlibs=no
9150 fi
9151 ;;
9152 esac
9153
9154 if test "$ld_shlibs" = no; then
9155 runpath_var=
9156 hardcode_libdir_flag_spec=
9157 export_dynamic_flag_spec=
9158 whole_archive_flag_spec=
9159 fi
9160 else
9161 # PORTME fill in a description of your system's linker (not GNU ld)
9162 case $host_os in
9163 aix3*)
9164 allow_undefined_flag=unsupported
9165 always_export_symbols=yes
9166 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'
9167 # Note: this linker hardcodes the directories in LIBPATH if there
9168 # are no directories specified by -L.
9169 hardcode_minus_L=yes
9170 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9171 # Neither direct hardcoding nor static linking is supported with a
9172 # broken collect2.
9173 hardcode_direct=unsupported
9174 fi
9175 ;;
9176
9177 aix[4-9]*)
9178 if test "$host_cpu" = ia64; then
9179 # On IA64, the linker does run time linking by default, so we don't
9180 # have to do anything special.
9181 aix_use_runtimelinking=no
9182 exp_sym_flag='-Bexport'
9183 no_entry_flag=""
9184 else
9185 # If we're using GNU nm, then we don't want the "-C" option.
9186 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9187 # Also, AIX nm treats weak defined symbols like other global
9188 # defined symbols, whereas GNU nm marks them as "W".
9189 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9190 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'
9191 else
9192 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'
9193 fi
9194 aix_use_runtimelinking=no
9195
9196 # Test if we are trying to use run time linking or normal
9197 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9198 # need to do runtime linking.
9199 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9200 for ld_flag in $LDFLAGS; do
9201 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9202 aix_use_runtimelinking=yes
9203 break
9204 fi
9205 done
9206 ;;
9207 esac
9208
9209 exp_sym_flag='-bexport'
9210 no_entry_flag='-bnoentry'
9211 fi
9212
9213 # When large executables or shared objects are built, AIX ld can
9214 # have problems creating the table of contents. If linking a library
9215 # or program results in "error TOC overflow" add -mminimal-toc to
9216 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9217 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9218
9219 archive_cmds=''
9220 hardcode_direct=yes
9221 hardcode_direct_absolute=yes
9222 hardcode_libdir_separator=':'
9223 link_all_deplibs=yes
9224 file_list_spec='${wl}-f,'
9225
9226 if test "$GCC" = yes; then
9227 case $host_os in aix4.[012]|aix4.[012].*)
9228 # We only want to do this on AIX 4.2 and lower, the check
9229 # below for broken collect2 doesn't work under 4.3+
9230 collect2name=`${CC} -print-prog-name=collect2`
9231 if test -f "$collect2name" &&
9232 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9233 then
9234 # We have reworked collect2
9235 :
9236 else
9237 # We have old collect2
9238 hardcode_direct=unsupported
9239 # It fails to find uninstalled libraries when the uninstalled
9240 # path is not listed in the libpath. Setting hardcode_minus_L
9241 # to unsupported forces relinking
9242 hardcode_minus_L=yes
9243 hardcode_libdir_flag_spec='-L$libdir'
9244 hardcode_libdir_separator=
9245 fi
9246 ;;
9247 esac
9248 shared_flag='-shared'
9249 if test "$aix_use_runtimelinking" = yes; then
9250 shared_flag="$shared_flag "'${wl}-G'
9251 fi
9252 else
9253 # not using gcc
9254 if test "$host_cpu" = ia64; then
9255 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9256 # chokes on -Wl,-G. The following line is correct:
9257 shared_flag='-G'
9258 else
9259 if test "$aix_use_runtimelinking" = yes; then
9260 shared_flag='${wl}-G'
9261 else
9262 shared_flag='${wl}-bM:SRE'
9263 fi
9264 fi
9265 fi
9266
9267 export_dynamic_flag_spec='${wl}-bexpall'
9268 # It seems that -bexpall does not export symbols beginning with
9269 # underscore (_), so it is better to generate a list of symbols to export.
9270 always_export_symbols=yes
9271 if test "$aix_use_runtimelinking" = yes; then
9272 # Warning - without using the other runtime loading flags (-brtl),
9273 # -berok will link without error, but may produce a broken library.
9274 allow_undefined_flag='-berok'
9275 # Determine the default libpath from the value encoded in an
9276 # empty executable.
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279
9280 int
9281 main ()
9282 {
9283
9284 ;
9285 return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289
9290 lt_aix_libpath_sed='
9291 /Import File Strings/,/^$/ {
9292 /^0/ {
9293 s/^0 *\(.*\)$/\1/
9294 p
9295 }
9296 }'
9297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9298 # Check for a 64-bit object if we didn't find anything.
9299 if test -z "$aix_libpath"; then
9300 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9301 fi
9302 fi
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9306
9307 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9308 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"
9309 else
9310 if test "$host_cpu" = ia64; then
9311 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9312 allow_undefined_flag="-z nodefs"
9313 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"
9314 else
9315 # Determine the default libpath from the value encoded in an
9316 # empty executable.
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319
9320 int
9321 main ()
9322 {
9323
9324 ;
9325 return 0;
9326 }
9327 _ACEOF
9328 if ac_fn_c_try_link "$LINENO"; then :
9329
9330 lt_aix_libpath_sed='
9331 /Import File Strings/,/^$/ {
9332 /^0/ {
9333 s/^0 *\(.*\)$/\1/
9334 p
9335 }
9336 }'
9337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9338 # Check for a 64-bit object if we didn't find anything.
9339 if test -z "$aix_libpath"; then
9340 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9341 fi
9342 fi
9343 rm -f core conftest.err conftest.$ac_objext \
9344 conftest$ac_exeext conftest.$ac_ext
9345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9346
9347 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9348 # Warning - without using the other run time loading flags,
9349 # -berok will link without error, but may produce a broken library.
9350 no_undefined_flag=' ${wl}-bernotok'
9351 allow_undefined_flag=' ${wl}-berok'
9352 if test "$with_gnu_ld" = yes; then
9353 # We only use this code for GNU lds that support --whole-archive.
9354 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9355 else
9356 # Exported symbols can be pulled into shared objects from archives
9357 whole_archive_flag_spec='$convenience'
9358 fi
9359 archive_cmds_need_lc=yes
9360 # This is similar to how AIX traditionally builds its shared libraries.
9361 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'
9362 fi
9363 fi
9364 ;;
9365
9366 amigaos*)
9367 case $host_cpu in
9368 powerpc)
9369 # see comment about AmigaOS4 .so support
9370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9371 archive_expsym_cmds=''
9372 ;;
9373 m68k)
9374 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)'
9375 hardcode_libdir_flag_spec='-L$libdir'
9376 hardcode_minus_L=yes
9377 ;;
9378 esac
9379 ;;
9380
9381 bsdi[45]*)
9382 export_dynamic_flag_spec=-rdynamic
9383 ;;
9384
9385 cygwin* | mingw* | pw32* | cegcc*)
9386 # When not using gcc, we currently assume that we are using
9387 # Microsoft Visual C++.
9388 # hardcode_libdir_flag_spec is actually meaningless, as there is
9389 # no search path for DLLs.
9390 hardcode_libdir_flag_spec=' '
9391 allow_undefined_flag=unsupported
9392 # Tell ltmain to make .lib files, not .a files.
9393 libext=lib
9394 # Tell ltmain to make .dll files, not .so files.
9395 shrext_cmds=".dll"
9396 # FIXME: Setting linknames here is a bad hack.
9397 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9398 # The linker will automatically build a .lib file if we build a DLL.
9399 old_archive_from_new_cmds='true'
9400 # FIXME: Should let the user specify the lib program.
9401 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9402 fix_srcfile_path='`cygpath -w "$srcfile"`'
9403 enable_shared_with_static_runtimes=yes
9404 ;;
9405
9406 darwin* | rhapsody*)
9407
9408
9409 archive_cmds_need_lc=no
9410 hardcode_direct=no
9411 hardcode_automatic=yes
9412 hardcode_shlibpath_var=unsupported
9413 if test "$lt_cv_ld_force_load" = "yes"; then
9414 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\"`'
9415 else
9416 whole_archive_flag_spec=''
9417 fi
9418 link_all_deplibs=yes
9419 allow_undefined_flag="$_lt_dar_allow_undefined"
9420 case $cc_basename in
9421 ifort*) _lt_dar_can_shared=yes ;;
9422 *) _lt_dar_can_shared=$GCC ;;
9423 esac
9424 if test "$_lt_dar_can_shared" = "yes"; then
9425 output_verbose_link_cmd=func_echo_all
9426 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9427 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9428 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}"
9429 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}"
9430
9431 else
9432 ld_shlibs=no
9433 fi
9434
9435 ;;
9436
9437 dgux*)
9438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439 hardcode_libdir_flag_spec='-L$libdir'
9440 hardcode_shlibpath_var=no
9441 ;;
9442
9443 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9444 # support. Future versions do this automatically, but an explicit c++rt0.o
9445 # does not break anything, and helps significantly (at the cost of a little
9446 # extra space).
9447 freebsd2.2*)
9448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9449 hardcode_libdir_flag_spec='-R$libdir'
9450 hardcode_direct=yes
9451 hardcode_shlibpath_var=no
9452 ;;
9453
9454 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9455 freebsd2.*)
9456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9457 hardcode_direct=yes
9458 hardcode_minus_L=yes
9459 hardcode_shlibpath_var=no
9460 ;;
9461
9462 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9463 freebsd* | dragonfly*)
9464 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9465 hardcode_libdir_flag_spec='-R$libdir'
9466 hardcode_direct=yes
9467 hardcode_shlibpath_var=no
9468 ;;
9469
9470 hpux9*)
9471 if test "$GCC" = yes; then
9472 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9473 else
9474 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'
9475 fi
9476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9477 hardcode_libdir_separator=:
9478 hardcode_direct=yes
9479
9480 # hardcode_minus_L: Not really in the search PATH,
9481 # but as the default location of the library.
9482 hardcode_minus_L=yes
9483 export_dynamic_flag_spec='${wl}-E'
9484 ;;
9485
9486 hpux10*)
9487 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9488 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9489 else
9490 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9491 fi
9492 if test "$with_gnu_ld" = no; then
9493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9494 hardcode_libdir_flag_spec_ld='+b $libdir'
9495 hardcode_libdir_separator=:
9496 hardcode_direct=yes
9497 hardcode_direct_absolute=yes
9498 export_dynamic_flag_spec='${wl}-E'
9499 # hardcode_minus_L: Not really in the search PATH,
9500 # but as the default location of the library.
9501 hardcode_minus_L=yes
9502 fi
9503 ;;
9504
9505 hpux11*)
9506 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9507 case $host_cpu in
9508 hppa*64*)
9509 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 ;;
9511 ia64*)
9512 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9513 ;;
9514 *)
9515 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9516 ;;
9517 esac
9518 else
9519 case $host_cpu in
9520 hppa*64*)
9521 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 ;;
9523 ia64*)
9524 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9525 ;;
9526 *)
9527
9528 # Older versions of the 11.00 compiler do not understand -b yet
9529 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9531 $as_echo_n "checking if $CC understands -b... " >&6; }
9532 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9533 $as_echo_n "(cached) " >&6
9534 else
9535 lt_cv_prog_compiler__b=no
9536 save_LDFLAGS="$LDFLAGS"
9537 LDFLAGS="$LDFLAGS -b"
9538 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9540 # The linker can only warn and ignore the option if not recognized
9541 # So say no if there are warnings
9542 if test -s conftest.err; then
9543 # Append any errors to the config.log.
9544 cat conftest.err 1>&5
9545 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9547 if diff conftest.exp conftest.er2 >/dev/null; then
9548 lt_cv_prog_compiler__b=yes
9549 fi
9550 else
9551 lt_cv_prog_compiler__b=yes
9552 fi
9553 fi
9554 $RM -r conftest*
9555 LDFLAGS="$save_LDFLAGS"
9556
9557 fi
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9559 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9560
9561 if test x"$lt_cv_prog_compiler__b" = xyes; then
9562 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9563 else
9564 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9565 fi
9566
9567 ;;
9568 esac
9569 fi
9570 if test "$with_gnu_ld" = no; then
9571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9572 hardcode_libdir_separator=:
9573
9574 case $host_cpu in
9575 hppa*64*|ia64*)
9576 hardcode_direct=no
9577 hardcode_shlibpath_var=no
9578 ;;
9579 *)
9580 hardcode_direct=yes
9581 hardcode_direct_absolute=yes
9582 export_dynamic_flag_spec='${wl}-E'
9583
9584 # hardcode_minus_L: Not really in the search PATH,
9585 # but as the default location of the library.
9586 hardcode_minus_L=yes
9587 ;;
9588 esac
9589 fi
9590 ;;
9591
9592 irix5* | irix6* | nonstopux*)
9593 if test "$GCC" = yes; then
9594 archive_cmds='$CC -shared $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'
9595 # Try to use the -exported_symbol ld option, if it does not
9596 # work, assume that -exports_file does not work either and
9597 # implicitly export all symbols.
9598 save_LDFLAGS="$LDFLAGS"
9599 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 int foo(void) {}
9603 _ACEOF
9604 if ac_fn_c_try_link "$LINENO"; then :
9605 archive_expsym_cmds='$CC -shared $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'
9606
9607 fi
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 LDFLAGS="$save_LDFLAGS"
9611 else
9612 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'
9613 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'
9614 fi
9615 archive_cmds_need_lc='no'
9616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617 hardcode_libdir_separator=:
9618 inherit_rpath=yes
9619 link_all_deplibs=yes
9620 ;;
9621
9622 netbsd*)
9623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9625 else
9626 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9627 fi
9628 hardcode_libdir_flag_spec='-R$libdir'
9629 hardcode_direct=yes
9630 hardcode_shlibpath_var=no
9631 ;;
9632
9633 newsos6)
9634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_direct=yes
9636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637 hardcode_libdir_separator=:
9638 hardcode_shlibpath_var=no
9639 ;;
9640
9641 *nto* | *qnx*)
9642 ;;
9643
9644 openbsd*)
9645 if test -f /usr/libexec/ld.so; then
9646 hardcode_direct=yes
9647 hardcode_shlibpath_var=no
9648 hardcode_direct_absolute=yes
9649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9652 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9653 export_dynamic_flag_spec='${wl}-E'
9654 else
9655 case $host_os in
9656 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_libdir_flag_spec='-R$libdir'
9659 ;;
9660 *)
9661 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9662 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9663 ;;
9664 esac
9665 fi
9666 else
9667 ld_shlibs=no
9668 fi
9669 ;;
9670
9671 os2*)
9672 hardcode_libdir_flag_spec='-L$libdir'
9673 hardcode_minus_L=yes
9674 allow_undefined_flag=unsupported
9675 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'
9676 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9677 ;;
9678
9679 osf3*)
9680 if test "$GCC" = yes; then
9681 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9682 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'
9683 else
9684 allow_undefined_flag=' -expect_unresolved \*'
9685 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'
9686 fi
9687 archive_cmds_need_lc='no'
9688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9689 hardcode_libdir_separator=:
9690 ;;
9691
9692 osf4* | osf5*) # as osf3* with the addition of -msym flag
9693 if test "$GCC" = yes; then
9694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9695 archive_cmds='$CC -shared${allow_undefined_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'
9696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697 else
9698 allow_undefined_flag=' -expect_unresolved \*'
9699 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'
9700 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~
9701 $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'
9702
9703 # Both c and cxx compiler support -rpath directly
9704 hardcode_libdir_flag_spec='-rpath $libdir'
9705 fi
9706 archive_cmds_need_lc='no'
9707 hardcode_libdir_separator=:
9708 ;;
9709
9710 solaris*)
9711 no_undefined_flag=' -z defs'
9712 if test "$GCC" = yes; then
9713 wlarc='${wl}'
9714 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9716 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9717 else
9718 case `$CC -V 2>&1` in
9719 *"Compilers 5.0"*)
9720 wlarc=''
9721 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9723 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9724 ;;
9725 *)
9726 wlarc='${wl}'
9727 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9729 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9730 ;;
9731 esac
9732 fi
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_shlibpath_var=no
9735 case $host_os in
9736 solaris2.[0-5] | solaris2.[0-5].*) ;;
9737 *)
9738 # The compiler driver will combine and reorder linker options,
9739 # but understands `-z linker_flag'. GCC discards it without `$wl',
9740 # but is careful enough not to reorder.
9741 # Supported since Solaris 2.6 (maybe 2.5.1?)
9742 if test "$GCC" = yes; then
9743 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9744 else
9745 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9746 fi
9747 ;;
9748 esac
9749 link_all_deplibs=yes
9750 ;;
9751
9752 sunos4*)
9753 if test "x$host_vendor" = xsequent; then
9754 # Use $CC to link under sequent, because it throws in some extra .o
9755 # files that make .init and .fini sections work.
9756 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9757 else
9758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9759 fi
9760 hardcode_libdir_flag_spec='-L$libdir'
9761 hardcode_direct=yes
9762 hardcode_minus_L=yes
9763 hardcode_shlibpath_var=no
9764 ;;
9765
9766 sysv4)
9767 case $host_vendor in
9768 sni)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_direct=yes # is this really true???
9771 ;;
9772 siemens)
9773 ## LD is ld it makes a PLAMLIB
9774 ## CC just makes a GrossModule.
9775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9776 reload_cmds='$CC -r -o $output$reload_objs'
9777 hardcode_direct=no
9778 ;;
9779 motorola)
9780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9782 ;;
9783 esac
9784 runpath_var='LD_RUN_PATH'
9785 hardcode_shlibpath_var=no
9786 ;;
9787
9788 sysv4.3*)
9789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_shlibpath_var=no
9791 export_dynamic_flag_spec='-Bexport'
9792 ;;
9793
9794 sysv4*MP*)
9795 if test -d /usr/nec; then
9796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9797 hardcode_shlibpath_var=no
9798 runpath_var=LD_RUN_PATH
9799 hardcode_runpath_var=yes
9800 ld_shlibs=yes
9801 fi
9802 ;;
9803
9804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9805 no_undefined_flag='${wl}-z,text'
9806 archive_cmds_need_lc=no
9807 hardcode_shlibpath_var=no
9808 runpath_var='LD_RUN_PATH'
9809
9810 if test "$GCC" = yes; then
9811 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813 else
9814 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 fi
9817 ;;
9818
9819 sysv5* | sco3.2v5* | sco5v6*)
9820 # Note: We can NOT use -z defs as we might desire, because we do not
9821 # link with -lc, and that would cause any symbols used from libc to
9822 # always be unresolved, which means just about no library would
9823 # ever link correctly. If we're not using GNU ld we use -z text
9824 # though, which does catch some bad symbols but isn't as heavy-handed
9825 # as -z defs.
9826 no_undefined_flag='${wl}-z,text'
9827 allow_undefined_flag='${wl}-z,nodefs'
9828 archive_cmds_need_lc=no
9829 hardcode_shlibpath_var=no
9830 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9831 hardcode_libdir_separator=':'
9832 link_all_deplibs=yes
9833 export_dynamic_flag_spec='${wl}-Bexport'
9834 runpath_var='LD_RUN_PATH'
9835
9836 if test "$GCC" = yes; then
9837 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 else
9840 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9842 fi
9843 ;;
9844
9845 uts4*)
9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_shlibpath_var=no
9849 ;;
9850
9851 *)
9852 ld_shlibs=no
9853 ;;
9854 esac
9855
9856 if test x$host_vendor = xsni; then
9857 case $host in
9858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9859 export_dynamic_flag_spec='${wl}-Blargedynsym'
9860 ;;
9861 esac
9862 fi
9863 fi
9864
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9866 $as_echo "$ld_shlibs" >&6; }
9867 test "$ld_shlibs" = no && can_build_shared=no
9868
9869 with_gnu_ld=$with_gnu_ld
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885 #
9886 # Do we need to explicitly link libc?
9887 #
9888 case "x$archive_cmds_need_lc" in
9889 x|xyes)
9890 # Assume -lc should be added
9891 archive_cmds_need_lc=yes
9892
9893 if test "$enable_shared" = yes && test "$GCC" = yes; then
9894 case $archive_cmds in
9895 *'~'*)
9896 # FIXME: we may have to deal with multi-command sequences.
9897 ;;
9898 '$CC '*)
9899 # Test whether the compiler implicitly links with -lc since on some
9900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9901 # to ld, don't add -lc before -lgcc.
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9903 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9904 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 $RM conftest*
9908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9909
9910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9911 (eval $ac_compile) 2>&5
9912 ac_status=$?
9913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9914 test $ac_status = 0; } 2>conftest.err; then
9915 soname=conftest
9916 lib=conftest
9917 libobjs=conftest.$ac_objext
9918 deplibs=
9919 wl=$lt_prog_compiler_wl
9920 pic_flag=$lt_prog_compiler_pic
9921 compiler_flags=-v
9922 linker_flags=-v
9923 verstring=
9924 output_objdir=.
9925 libname=conftest
9926 lt_save_allow_undefined_flag=$allow_undefined_flag
9927 allow_undefined_flag=
9928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9929 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9930 ac_status=$?
9931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9932 test $ac_status = 0; }
9933 then
9934 lt_cv_archive_cmds_need_lc=no
9935 else
9936 lt_cv_archive_cmds_need_lc=yes
9937 fi
9938 allow_undefined_flag=$lt_save_allow_undefined_flag
9939 else
9940 cat conftest.err 1>&5
9941 fi
9942 $RM conftest*
9943
9944 fi
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9946 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9947 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9948 ;;
9949 esac
9950 fi
9951 ;;
9952 esac
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10111 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10112
10113 if test "$GCC" = yes; then
10114 case $host_os in
10115 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10116 *) lt_awk_arg="/^libraries:/" ;;
10117 esac
10118 case $host_os in
10119 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10120 *) lt_sed_strip_eq="s,=/,/,g" ;;
10121 esac
10122 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10123 case $lt_search_path_spec in
10124 *\;*)
10125 # if the path contains ";" then we assume it to be the separator
10126 # otherwise default to the standard path separator (i.e. ":") - it is
10127 # assumed that no part of a normal pathname contains ";" but that should
10128 # okay in the real world where ";" in dirpaths is itself problematic.
10129 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10130 ;;
10131 *)
10132 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10133 ;;
10134 esac
10135 # Ok, now we have the path, separated by spaces, we can step through it
10136 # and add multilib dir if necessary.
10137 lt_tmp_lt_search_path_spec=
10138 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10139 for lt_sys_path in $lt_search_path_spec; do
10140 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10141 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10142 else
10143 test -d "$lt_sys_path" && \
10144 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10145 fi
10146 done
10147 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10148 BEGIN {RS=" "; FS="/|\n";} {
10149 lt_foo="";
10150 lt_count=0;
10151 for (lt_i = NF; lt_i > 0; lt_i--) {
10152 if ($lt_i != "" && $lt_i != ".") {
10153 if ($lt_i == "..") {
10154 lt_count++;
10155 } else {
10156 if (lt_count == 0) {
10157 lt_foo="/" $lt_i lt_foo;
10158 } else {
10159 lt_count--;
10160 }
10161 }
10162 }
10163 }
10164 if (lt_foo != "") { lt_freq[lt_foo]++; }
10165 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10166 }'`
10167 # AWK program above erroneously prepends '/' to C:/dos/paths
10168 # for these hosts.
10169 case $host_os in
10170 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10171 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10172 esac
10173 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10174 else
10175 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10176 fi
10177 library_names_spec=
10178 libname_spec='lib$name'
10179 soname_spec=
10180 shrext_cmds=".so"
10181 postinstall_cmds=
10182 postuninstall_cmds=
10183 finish_cmds=
10184 finish_eval=
10185 shlibpath_var=
10186 shlibpath_overrides_runpath=unknown
10187 version_type=none
10188 dynamic_linker="$host_os ld.so"
10189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10190 need_lib_prefix=unknown
10191 hardcode_into_libs=no
10192
10193 # when you set need_version to no, make sure it does not cause -set_version
10194 # flags to be left without arguments
10195 need_version=unknown
10196
10197 case $host_os in
10198 aix3*)
10199 version_type=linux
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10201 shlibpath_var=LIBPATH
10202
10203 # AIX 3 has no versioning support, so we append a major version to the name.
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 ;;
10206
10207 aix[4-9]*)
10208 version_type=linux
10209 need_lib_prefix=no
10210 need_version=no
10211 hardcode_into_libs=yes
10212 if test "$host_cpu" = ia64; then
10213 # AIX 5 supports IA64
10214 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10215 shlibpath_var=LD_LIBRARY_PATH
10216 else
10217 # With GCC up to 2.95.x, collect2 would create an import file
10218 # for dependence libraries. The import file would start with
10219 # the line `#! .'. This would cause the generated library to
10220 # depend on `.', always an invalid library. This was fixed in
10221 # development snapshots of GCC prior to 3.0.
10222 case $host_os in
10223 aix4 | aix4.[01] | aix4.[01].*)
10224 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10225 echo ' yes '
10226 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10227 :
10228 else
10229 can_build_shared=no
10230 fi
10231 ;;
10232 esac
10233 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10234 # soname into executable. Probably we can add versioning support to
10235 # collect2, so additional links can be useful in future.
10236 if test "$aix_use_runtimelinking" = yes; then
10237 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10238 # instead of lib<name>.a to let people know that these are not
10239 # typical AIX shared libraries.
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 else
10242 # We preserve .a as extension for shared libraries through AIX4.2
10243 # and later when we are not doing run time linking.
10244 library_names_spec='${libname}${release}.a $libname.a'
10245 soname_spec='${libname}${release}${shared_ext}$major'
10246 fi
10247 shlibpath_var=LIBPATH
10248 fi
10249 ;;
10250
10251 amigaos*)
10252 case $host_cpu in
10253 powerpc)
10254 # Since July 2007 AmigaOS4 officially supports .so libraries.
10255 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 ;;
10258 m68k)
10259 library_names_spec='$libname.ixlibrary $libname.a'
10260 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10261 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'
10262 ;;
10263 esac
10264 ;;
10265
10266 beos*)
10267 library_names_spec='${libname}${shared_ext}'
10268 dynamic_linker="$host_os ld.so"
10269 shlibpath_var=LIBRARY_PATH
10270 ;;
10271
10272 bsdi[45]*)
10273 version_type=linux
10274 need_version=no
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10280 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10281 # the default ld.so.conf also contains /usr/contrib/lib and
10282 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10283 # libtool to hard-code these into programs
10284 ;;
10285
10286 cygwin* | mingw* | pw32* | cegcc*)
10287 version_type=windows
10288 shrext_cmds=".dll"
10289 need_version=no
10290 need_lib_prefix=no
10291
10292 case $GCC,$host_os in
10293 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10294 library_names_spec='$libname.dll.a'
10295 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10296 postinstall_cmds='base_file=`basename \${file}`~
10297 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10298 dldir=$destdir/`dirname \$dlpath`~
10299 test -d \$dldir || mkdir -p \$dldir~
10300 $install_prog $dir/$dlname \$dldir/$dlname~
10301 chmod a+x \$dldir/$dlname~
10302 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10303 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10304 fi'
10305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10306 dlpath=$dir/\$dldll~
10307 $RM \$dlpath'
10308 shlibpath_overrides_runpath=yes
10309
10310 case $host_os in
10311 cygwin*)
10312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10313 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10314
10315 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10316 ;;
10317 mingw* | cegcc*)
10318 # MinGW DLLs use traditional 'lib' prefix
10319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10320 ;;
10321 pw32*)
10322 # pw32 DLLs use 'pw' prefix rather than 'lib'
10323 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10324 ;;
10325 esac
10326 ;;
10327
10328 *)
10329 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10330 ;;
10331 esac
10332 dynamic_linker='Win32 ld.exe'
10333 # FIXME: first we should search . and the directory the executable is in
10334 shlibpath_var=PATH
10335 ;;
10336
10337 darwin* | rhapsody*)
10338 dynamic_linker="$host_os dyld"
10339 version_type=darwin
10340 need_lib_prefix=no
10341 need_version=no
10342 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10343 soname_spec='${libname}${release}${major}$shared_ext'
10344 shlibpath_overrides_runpath=yes
10345 shlibpath_var=DYLD_LIBRARY_PATH
10346 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10347
10348 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10349 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10350 ;;
10351
10352 dgux*)
10353 version_type=linux
10354 need_lib_prefix=no
10355 need_version=no
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 ;;
10360
10361 freebsd* | dragonfly*)
10362 # DragonFly does not have aout. When/if they implement a new
10363 # versioning mechanism, adjust this.
10364 if test -x /usr/bin/objformat; then
10365 objformat=`/usr/bin/objformat`
10366 else
10367 case $host_os in
10368 freebsd[23].*) objformat=aout ;;
10369 *) objformat=elf ;;
10370 esac
10371 fi
10372 version_type=freebsd-$objformat
10373 case $version_type in
10374 freebsd-elf*)
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10376 need_version=no
10377 need_lib_prefix=no
10378 ;;
10379 freebsd-*)
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10381 need_version=yes
10382 ;;
10383 esac
10384 shlibpath_var=LD_LIBRARY_PATH
10385 case $host_os in
10386 freebsd2.*)
10387 shlibpath_overrides_runpath=yes
10388 ;;
10389 freebsd3.[01]* | freebsdelf3.[01]*)
10390 shlibpath_overrides_runpath=yes
10391 hardcode_into_libs=yes
10392 ;;
10393 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10394 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10395 shlibpath_overrides_runpath=no
10396 hardcode_into_libs=yes
10397 ;;
10398 *) # from 4.6 on, and DragonFly
10399 shlibpath_overrides_runpath=yes
10400 hardcode_into_libs=yes
10401 ;;
10402 esac
10403 ;;
10404
10405 gnu*)
10406 version_type=linux
10407 need_lib_prefix=no
10408 need_version=no
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 hardcode_into_libs=yes
10413 ;;
10414
10415 haiku*)
10416 version_type=linux
10417 need_lib_prefix=no
10418 need_version=no
10419 dynamic_linker="$host_os runtime_loader"
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 shlibpath_var=LIBRARY_PATH
10423 shlibpath_overrides_runpath=yes
10424 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10425 hardcode_into_libs=yes
10426 ;;
10427
10428 hpux9* | hpux10* | hpux11*)
10429 # Give a soname corresponding to the major version so that dld.sl refuses to
10430 # link against other versions.
10431 version_type=sunos
10432 need_lib_prefix=no
10433 need_version=no
10434 case $host_cpu in
10435 ia64*)
10436 shrext_cmds='.so'
10437 hardcode_into_libs=yes
10438 dynamic_linker="$host_os dld.so"
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 if test "X$HPUX_IA64_MODE" = X32; then
10444 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10445 else
10446 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10447 fi
10448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10449 ;;
10450 hppa*64*)
10451 shrext_cmds='.sl'
10452 hardcode_into_libs=yes
10453 dynamic_linker="$host_os dld.sl"
10454 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10460 ;;
10461 *)
10462 shrext_cmds='.sl'
10463 dynamic_linker="$host_os dld.sl"
10464 shlibpath_var=SHLIB_PATH
10465 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 soname_spec='${libname}${release}${shared_ext}$major'
10468 ;;
10469 esac
10470 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10471 postinstall_cmds='chmod 555 $lib'
10472 # or fails outright, so override atomically:
10473 install_override_mode=555
10474 ;;
10475
10476 interix[3-9]*)
10477 version_type=linux
10478 need_lib_prefix=no
10479 need_version=no
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10483 shlibpath_var=LD_LIBRARY_PATH
10484 shlibpath_overrides_runpath=no
10485 hardcode_into_libs=yes
10486 ;;
10487
10488 irix5* | irix6* | nonstopux*)
10489 case $host_os in
10490 nonstopux*) version_type=nonstopux ;;
10491 *)
10492 if test "$lt_cv_prog_gnu_ld" = yes; then
10493 version_type=linux
10494 else
10495 version_type=irix
10496 fi ;;
10497 esac
10498 need_lib_prefix=no
10499 need_version=no
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10502 case $host_os in
10503 irix5* | nonstopux*)
10504 libsuff= shlibsuff=
10505 ;;
10506 *)
10507 case $LD in # libtool.m4 will add one of these switches to LD
10508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10509 libsuff= shlibsuff= libmagic=32-bit;;
10510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10511 libsuff=32 shlibsuff=N32 libmagic=N32;;
10512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10513 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10514 *) libsuff= shlibsuff= libmagic=never-match;;
10515 esac
10516 ;;
10517 esac
10518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10519 shlibpath_overrides_runpath=no
10520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10522 hardcode_into_libs=yes
10523 ;;
10524
10525 # No shared lib support for Linux oldld, aout, or coff.
10526 linux*oldld* | linux*aout* | linux*coff*)
10527 dynamic_linker=no
10528 ;;
10529
10530 # This must be Linux ELF.
10531 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10532 version_type=linux
10533 need_lib_prefix=no
10534 need_version=no
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath=no
10540
10541 # Some binutils ld are patched to set DT_RUNPATH
10542 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10543 $as_echo_n "(cached) " >&6
10544 else
10545 lt_cv_shlibpath_overrides_runpath=no
10546 save_LDFLAGS=$LDFLAGS
10547 save_libdir=$libdir
10548 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10549 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10552
10553 int
10554 main ()
10555 {
10556
10557 ;
10558 return 0;
10559 }
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10562 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10563 lt_cv_shlibpath_overrides_runpath=yes
10564 fi
10565 fi
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568 LDFLAGS=$save_LDFLAGS
10569 libdir=$save_libdir
10570
10571 fi
10572
10573 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10574
10575 # This implies no fast_install, which is unacceptable.
10576 # Some rework will be needed to allow for fast_install
10577 # before this can be enabled.
10578 hardcode_into_libs=yes
10579
10580 # Append ld.so.conf contents to the search path
10581 if test -f /etc/ld.so.conf; then
10582 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' ' '`
10583 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10584 fi
10585
10586 # We used to test for /lib/ld.so.1 and disable shared libraries on
10587 # powerpc, because MkLinux only supported shared libraries with the
10588 # GNU dynamic linker. Since this was broken with cross compilers,
10589 # most powerpc-linux boxes support dynamic linking these days and
10590 # people can always --disable-shared, the test was removed, and we
10591 # assume the GNU/Linux dynamic linker is in use.
10592 dynamic_linker='GNU/Linux ld.so'
10593 ;;
10594
10595 netbsd*)
10596 version_type=sunos
10597 need_lib_prefix=no
10598 need_version=no
10599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10602 dynamic_linker='NetBSD (a.out) ld.so'
10603 else
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 dynamic_linker='NetBSD ld.elf_so'
10607 fi
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=yes
10610 hardcode_into_libs=yes
10611 ;;
10612
10613 newsos6)
10614 version_type=linux
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10618 ;;
10619
10620 *nto* | *qnx*)
10621 version_type=qnx
10622 need_lib_prefix=no
10623 need_version=no
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 shlibpath_overrides_runpath=no
10628 hardcode_into_libs=yes
10629 dynamic_linker='ldqnx.so'
10630 ;;
10631
10632 openbsd*)
10633 version_type=sunos
10634 sys_lib_dlsearch_path_spec="/usr/lib"
10635 need_lib_prefix=no
10636 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10637 case $host_os in
10638 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10639 *) need_version=no ;;
10640 esac
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10645 case $host_os in
10646 openbsd2.[89] | openbsd2.[89].*)
10647 shlibpath_overrides_runpath=no
10648 ;;
10649 *)
10650 shlibpath_overrides_runpath=yes
10651 ;;
10652 esac
10653 else
10654 shlibpath_overrides_runpath=yes
10655 fi
10656 ;;
10657
10658 os2*)
10659 libname_spec='$name'
10660 shrext_cmds=".dll"
10661 need_lib_prefix=no
10662 library_names_spec='$libname${shared_ext} $libname.a'
10663 dynamic_linker='OS/2 ld.exe'
10664 shlibpath_var=LIBPATH
10665 ;;
10666
10667 osf3* | osf4* | osf5*)
10668 version_type=osf
10669 need_lib_prefix=no
10670 need_version=no
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10675 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10676 ;;
10677
10678 rdos*)
10679 dynamic_linker=no
10680 ;;
10681
10682 solaris*)
10683 version_type=linux
10684 need_lib_prefix=no
10685 need_version=no
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 shlibpath_overrides_runpath=yes
10690 hardcode_into_libs=yes
10691 # ldd complains unless libraries are executable
10692 postinstall_cmds='chmod +x $lib'
10693 ;;
10694
10695 sunos4*)
10696 version_type=sunos
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10698 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10699 shlibpath_var=LD_LIBRARY_PATH
10700 shlibpath_overrides_runpath=yes
10701 if test "$with_gnu_ld" = yes; then
10702 need_lib_prefix=no
10703 fi
10704 need_version=yes
10705 ;;
10706
10707 sysv4 | sysv4.3*)
10708 version_type=linux
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 shlibpath_var=LD_LIBRARY_PATH
10712 case $host_vendor in
10713 sni)
10714 shlibpath_overrides_runpath=no
10715 need_lib_prefix=no
10716 runpath_var=LD_RUN_PATH
10717 ;;
10718 siemens)
10719 need_lib_prefix=no
10720 ;;
10721 motorola)
10722 need_lib_prefix=no
10723 need_version=no
10724 shlibpath_overrides_runpath=no
10725 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10726 ;;
10727 esac
10728 ;;
10729
10730 sysv4*MP*)
10731 if test -d /usr/nec ;then
10732 version_type=linux
10733 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10734 soname_spec='$libname${shared_ext}.$major'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 fi
10737 ;;
10738
10739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10740 version_type=freebsd-elf
10741 need_lib_prefix=no
10742 need_version=no
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 shlibpath_var=LD_LIBRARY_PATH
10746 shlibpath_overrides_runpath=yes
10747 hardcode_into_libs=yes
10748 if test "$with_gnu_ld" = yes; then
10749 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10750 else
10751 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10752 case $host_os in
10753 sco3.2v5*)
10754 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10755 ;;
10756 esac
10757 fi
10758 sys_lib_dlsearch_path_spec='/usr/lib'
10759 ;;
10760
10761 tpf*)
10762 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10763 version_type=linux
10764 need_lib_prefix=no
10765 need_version=no
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath=no
10769 hardcode_into_libs=yes
10770 ;;
10771
10772 uts4*)
10773 version_type=linux
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 ;;
10778
10779 *)
10780 dynamic_linker=no
10781 ;;
10782 esac
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10784 $as_echo "$dynamic_linker" >&6; }
10785 test "$dynamic_linker" = no && can_build_shared=no
10786
10787 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10788 if test "$GCC" = yes; then
10789 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10790 fi
10791
10792 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10793 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10794 fi
10795 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10796 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10797 fi
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10891 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10892 hardcode_action=
10893 if test -n "$hardcode_libdir_flag_spec" ||
10894 test -n "$runpath_var" ||
10895 test "X$hardcode_automatic" = "Xyes" ; then
10896
10897 # We can hardcode non-existent directories.
10898 if test "$hardcode_direct" != no &&
10899 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10900 # have to relink, otherwise we might link with an installed library
10901 # when we should be linking with a yet-to-be-installed one
10902 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10903 test "$hardcode_minus_L" != no; then
10904 # Linking always hardcodes the temporary library directory.
10905 hardcode_action=relink
10906 else
10907 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10908 hardcode_action=immediate
10909 fi
10910 else
10911 # We cannot hardcode anything, or else we can only hardcode existing
10912 # directories.
10913 hardcode_action=unsupported
10914 fi
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10916 $as_echo "$hardcode_action" >&6; }
10917
10918 if test "$hardcode_action" = relink ||
10919 test "$inherit_rpath" = yes; then
10920 # Fast installation is not supported
10921 enable_fast_install=no
10922 elif test "$shlibpath_overrides_runpath" = yes ||
10923 test "$enable_shared" = no; then
10924 # Fast installation is not necessary
10925 enable_fast_install=needless
10926 fi
10927
10928
10929
10930
10931
10932
10933 if test "x$enable_dlopen" != xyes; then
10934 enable_dlopen=unknown
10935 enable_dlopen_self=unknown
10936 enable_dlopen_self_static=unknown
10937 else
10938 lt_cv_dlopen=no
10939 lt_cv_dlopen_libs=
10940
10941 case $host_os in
10942 beos*)
10943 lt_cv_dlopen="load_add_on"
10944 lt_cv_dlopen_libs=
10945 lt_cv_dlopen_self=yes
10946 ;;
10947
10948 mingw* | pw32* | cegcc*)
10949 lt_cv_dlopen="LoadLibrary"
10950 lt_cv_dlopen_libs=
10951 ;;
10952
10953 cygwin*)
10954 lt_cv_dlopen="dlopen"
10955 lt_cv_dlopen_libs=
10956 ;;
10957
10958 darwin*)
10959 # if libdl is installed we need to link against it
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10961 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10962 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-ldl $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char dlopen ();
10977 int
10978 main ()
10979 {
10980 return dlopen ();
10981 ;
10982 return 0;
10983 }
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 ac_cv_lib_dl_dlopen=yes
10987 else
10988 ac_cv_lib_dl_dlopen=no
10989 fi
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10995 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10996 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10998 else
10999
11000 lt_cv_dlopen="dyld"
11001 lt_cv_dlopen_libs=
11002 lt_cv_dlopen_self=yes
11003
11004 fi
11005
11006 ;;
11007
11008 *)
11009 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11010 if test "x$ac_cv_func_shl_load" = x""yes; then :
11011 lt_cv_dlopen="shl_load"
11012 else
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11014 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11015 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 ac_check_lib_save_LIBS=$LIBS
11019 LIBS="-ldld $LIBS"
11020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h. */
11022
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 char shl_load ();
11030 int
11031 main ()
11032 {
11033 return shl_load ();
11034 ;
11035 return 0;
11036 }
11037 _ACEOF
11038 if ac_fn_c_try_link "$LINENO"; then :
11039 ac_cv_lib_dld_shl_load=yes
11040 else
11041 ac_cv_lib_dld_shl_load=no
11042 fi
11043 rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11045 LIBS=$ac_check_lib_save_LIBS
11046 fi
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11048 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11049 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11050 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11051 else
11052 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11053 if test "x$ac_cv_func_dlopen" = x""yes; then :
11054 lt_cv_dlopen="dlopen"
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11057 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11058 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 ac_check_lib_save_LIBS=$LIBS
11062 LIBS="-ldl $LIBS"
11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h. */
11065
11066 /* Override any GCC internal prototype to avoid an error.
11067 Use char because int might match the return type of a GCC
11068 builtin and then its argument prototype would still apply. */
11069 #ifdef __cplusplus
11070 extern "C"
11071 #endif
11072 char dlopen ();
11073 int
11074 main ()
11075 {
11076 return dlopen ();
11077 ;
11078 return 0;
11079 }
11080 _ACEOF
11081 if ac_fn_c_try_link "$LINENO"; then :
11082 ac_cv_lib_dl_dlopen=yes
11083 else
11084 ac_cv_lib_dl_dlopen=no
11085 fi
11086 rm -f core conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088 LIBS=$ac_check_lib_save_LIBS
11089 fi
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11091 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11092 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11093 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11094 else
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11096 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11097 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11098 $as_echo_n "(cached) " >&6
11099 else
11100 ac_check_lib_save_LIBS=$LIBS
11101 LIBS="-lsvld $LIBS"
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11104
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11108 #ifdef __cplusplus
11109 extern "C"
11110 #endif
11111 char dlopen ();
11112 int
11113 main ()
11114 {
11115 return dlopen ();
11116 ;
11117 return 0;
11118 }
11119 _ACEOF
11120 if ac_fn_c_try_link "$LINENO"; then :
11121 ac_cv_lib_svld_dlopen=yes
11122 else
11123 ac_cv_lib_svld_dlopen=no
11124 fi
11125 rm -f core conftest.err conftest.$ac_objext \
11126 conftest$ac_exeext conftest.$ac_ext
11127 LIBS=$ac_check_lib_save_LIBS
11128 fi
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11130 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11131 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11133 else
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11135 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11136 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-ldld $LIBS"
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11143
11144 /* Override any GCC internal prototype to avoid an error.
11145 Use char because int might match the return type of a GCC
11146 builtin and then its argument prototype would still apply. */
11147 #ifdef __cplusplus
11148 extern "C"
11149 #endif
11150 char dld_link ();
11151 int
11152 main ()
11153 {
11154 return dld_link ();
11155 ;
11156 return 0;
11157 }
11158 _ACEOF
11159 if ac_fn_c_try_link "$LINENO"; then :
11160 ac_cv_lib_dld_dld_link=yes
11161 else
11162 ac_cv_lib_dld_dld_link=no
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext \
11165 conftest$ac_exeext conftest.$ac_ext
11166 LIBS=$ac_check_lib_save_LIBS
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11169 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11170 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11171 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11172 fi
11173
11174
11175 fi
11176
11177
11178 fi
11179
11180
11181 fi
11182
11183
11184 fi
11185
11186
11187 fi
11188
11189 ;;
11190 esac
11191
11192 if test "x$lt_cv_dlopen" != xno; then
11193 enable_dlopen=yes
11194 else
11195 enable_dlopen=no
11196 fi
11197
11198 case $lt_cv_dlopen in
11199 dlopen)
11200 save_CPPFLAGS="$CPPFLAGS"
11201 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11202
11203 save_LDFLAGS="$LDFLAGS"
11204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11205
11206 save_LIBS="$LIBS"
11207 LIBS="$lt_cv_dlopen_libs $LIBS"
11208
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11210 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11211 if test "${lt_cv_dlopen_self+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 if test "$cross_compiling" = yes; then :
11215 lt_cv_dlopen_self=cross
11216 else
11217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11218 lt_status=$lt_dlunknown
11219 cat > conftest.$ac_ext <<_LT_EOF
11220 #line 11220 "configure"
11221 #include "confdefs.h"
11222
11223 #if HAVE_DLFCN_H
11224 #include <dlfcn.h>
11225 #endif
11226
11227 #include <stdio.h>
11228
11229 #ifdef RTLD_GLOBAL
11230 # define LT_DLGLOBAL RTLD_GLOBAL
11231 #else
11232 # ifdef DL_GLOBAL
11233 # define LT_DLGLOBAL DL_GLOBAL
11234 # else
11235 # define LT_DLGLOBAL 0
11236 # endif
11237 #endif
11238
11239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11240 find out it does not work in some platform. */
11241 #ifndef LT_DLLAZY_OR_NOW
11242 # ifdef RTLD_LAZY
11243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11244 # else
11245 # ifdef DL_LAZY
11246 # define LT_DLLAZY_OR_NOW DL_LAZY
11247 # else
11248 # ifdef RTLD_NOW
11249 # define LT_DLLAZY_OR_NOW RTLD_NOW
11250 # else
11251 # ifdef DL_NOW
11252 # define LT_DLLAZY_OR_NOW DL_NOW
11253 # else
11254 # define LT_DLLAZY_OR_NOW 0
11255 # endif
11256 # endif
11257 # endif
11258 # endif
11259 #endif
11260
11261 /* When -fvisbility=hidden is used, assume the code has been annotated
11262 correspondingly for the symbols needed. */
11263 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11264 void fnord () __attribute__((visibility("default")));
11265 #endif
11266
11267 void fnord () { int i=42; }
11268 int main ()
11269 {
11270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11271 int status = $lt_dlunknown;
11272
11273 if (self)
11274 {
11275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11276 else
11277 {
11278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11279 else puts (dlerror ());
11280 }
11281 /* dlclose (self); */
11282 }
11283 else
11284 puts (dlerror ());
11285
11286 return status;
11287 }
11288 _LT_EOF
11289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11290 (eval $ac_link) 2>&5
11291 ac_status=$?
11292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11293 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11294 (./conftest; exit; ) >&5 2>/dev/null
11295 lt_status=$?
11296 case x$lt_status in
11297 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11298 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11299 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11300 esac
11301 else :
11302 # compilation failed
11303 lt_cv_dlopen_self=no
11304 fi
11305 fi
11306 rm -fr conftest*
11307
11308
11309 fi
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11311 $as_echo "$lt_cv_dlopen_self" >&6; }
11312
11313 if test "x$lt_cv_dlopen_self" = xyes; then
11314 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11316 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11317 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 if test "$cross_compiling" = yes; then :
11321 lt_cv_dlopen_self_static=cross
11322 else
11323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11324 lt_status=$lt_dlunknown
11325 cat > conftest.$ac_ext <<_LT_EOF
11326 #line 11326 "configure"
11327 #include "confdefs.h"
11328
11329 #if HAVE_DLFCN_H
11330 #include <dlfcn.h>
11331 #endif
11332
11333 #include <stdio.h>
11334
11335 #ifdef RTLD_GLOBAL
11336 # define LT_DLGLOBAL RTLD_GLOBAL
11337 #else
11338 # ifdef DL_GLOBAL
11339 # define LT_DLGLOBAL DL_GLOBAL
11340 # else
11341 # define LT_DLGLOBAL 0
11342 # endif
11343 #endif
11344
11345 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11346 find out it does not work in some platform. */
11347 #ifndef LT_DLLAZY_OR_NOW
11348 # ifdef RTLD_LAZY
11349 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11350 # else
11351 # ifdef DL_LAZY
11352 # define LT_DLLAZY_OR_NOW DL_LAZY
11353 # else
11354 # ifdef RTLD_NOW
11355 # define LT_DLLAZY_OR_NOW RTLD_NOW
11356 # else
11357 # ifdef DL_NOW
11358 # define LT_DLLAZY_OR_NOW DL_NOW
11359 # else
11360 # define LT_DLLAZY_OR_NOW 0
11361 # endif
11362 # endif
11363 # endif
11364 # endif
11365 #endif
11366
11367 /* When -fvisbility=hidden is used, assume the code has been annotated
11368 correspondingly for the symbols needed. */
11369 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11370 void fnord () __attribute__((visibility("default")));
11371 #endif
11372
11373 void fnord () { int i=42; }
11374 int main ()
11375 {
11376 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11377 int status = $lt_dlunknown;
11378
11379 if (self)
11380 {
11381 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11382 else
11383 {
11384 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11385 else puts (dlerror ());
11386 }
11387 /* dlclose (self); */
11388 }
11389 else
11390 puts (dlerror ());
11391
11392 return status;
11393 }
11394 _LT_EOF
11395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11396 (eval $ac_link) 2>&5
11397 ac_status=$?
11398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11399 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11400 (./conftest; exit; ) >&5 2>/dev/null
11401 lt_status=$?
11402 case x$lt_status in
11403 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11404 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11405 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11406 esac
11407 else :
11408 # compilation failed
11409 lt_cv_dlopen_self_static=no
11410 fi
11411 fi
11412 rm -fr conftest*
11413
11414
11415 fi
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11417 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11418 fi
11419
11420 CPPFLAGS="$save_CPPFLAGS"
11421 LDFLAGS="$save_LDFLAGS"
11422 LIBS="$save_LIBS"
11423 ;;
11424 esac
11425
11426 case $lt_cv_dlopen_self in
11427 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11428 *) enable_dlopen_self=unknown ;;
11429 esac
11430
11431 case $lt_cv_dlopen_self_static in
11432 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11433 *) enable_dlopen_self_static=unknown ;;
11434 esac
11435 fi
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453 striplib=
11454 old_striplib=
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11456 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11457 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11458 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11459 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11461 $as_echo "yes" >&6; }
11462 else
11463 # FIXME - insert some real tests, host_os isn't really good enough
11464 case $host_os in
11465 darwin*)
11466 if test -n "$STRIP" ; then
11467 striplib="$STRIP -x"
11468 old_striplib="$STRIP -S"
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470 $as_echo "yes" >&6; }
11471 else
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11474 fi
11475 ;;
11476 *)
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11479 ;;
11480 esac
11481 fi
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494 # Report which library types will actually be built
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11496 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11498 $as_echo "$can_build_shared" >&6; }
11499
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11501 $as_echo_n "checking whether to build shared libraries... " >&6; }
11502 test "$can_build_shared" = "no" && enable_shared=no
11503
11504 # On AIX, shared libraries and static libraries use the same namespace, and
11505 # are all built from PIC.
11506 case $host_os in
11507 aix3*)
11508 test "$enable_shared" = yes && enable_static=no
11509 if test -n "$RANLIB"; then
11510 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11511 postinstall_cmds='$RANLIB $lib'
11512 fi
11513 ;;
11514
11515 aix[4-9]*)
11516 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11517 test "$enable_shared" = yes && enable_static=no
11518 fi
11519 ;;
11520 esac
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11522 $as_echo "$enable_shared" >&6; }
11523
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11525 $as_echo_n "checking whether to build static libraries... " >&6; }
11526 # Make sure either enable_shared or enable_static is yes.
11527 test "$enable_shared" = yes || enable_static=yes
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11529 $as_echo "$enable_static" >&6; }
11530
11531
11532
11533
11534 fi
11535 ac_ext=c
11536 ac_cpp='$CPP $CPPFLAGS'
11537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11540
11541 CC="$lt_save_CC"
11542
11543 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11544 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11545 (test "X$CXX" != "Xg++"))) ; then
11546 ac_ext=cpp
11547 ac_cpp='$CXXCPP $CPPFLAGS'
11548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11552 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11553 if test -z "$CXXCPP"; then
11554 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 # Double quotes because CXXCPP needs to be expanded
11558 for CXXCPP in "$CXX -E" "/lib/cpp"
11559 do
11560 ac_preproc_ok=false
11561 for ac_cxx_preproc_warn_flag in '' yes
11562 do
11563 # Use a header file that comes with gcc, so configuring glibc
11564 # with a fresh cross-compiler works.
11565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11566 # <limits.h> exists even on freestanding compilers.
11567 # On the NeXT, cc -E runs the code through the compiler's parser,
11568 # not just through cpp. "Syntax error" is here to catch this case.
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11571 #ifdef __STDC__
11572 # include <limits.h>
11573 #else
11574 # include <assert.h>
11575 #endif
11576 Syntax error
11577 _ACEOF
11578 if ac_fn_cxx_try_cpp "$LINENO"; then :
11579
11580 else
11581 # Broken: fails on valid input.
11582 continue
11583 fi
11584 rm -f conftest.err conftest.$ac_ext
11585
11586 # OK, works on sane cases. Now check whether nonexistent headers
11587 # can be detected and how.
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11590 #include <ac_nonexistent.h>
11591 _ACEOF
11592 if ac_fn_cxx_try_cpp "$LINENO"; then :
11593 # Broken: success on invalid input.
11594 continue
11595 else
11596 # Passes both tests.
11597 ac_preproc_ok=:
11598 break
11599 fi
11600 rm -f conftest.err conftest.$ac_ext
11601
11602 done
11603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11604 rm -f conftest.err conftest.$ac_ext
11605 if $ac_preproc_ok; then :
11606 break
11607 fi
11608
11609 done
11610 ac_cv_prog_CXXCPP=$CXXCPP
11611
11612 fi
11613 CXXCPP=$ac_cv_prog_CXXCPP
11614 else
11615 ac_cv_prog_CXXCPP=$CXXCPP
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11618 $as_echo "$CXXCPP" >&6; }
11619 ac_preproc_ok=false
11620 for ac_cxx_preproc_warn_flag in '' yes
11621 do
11622 # Use a header file that comes with gcc, so configuring glibc
11623 # with a fresh cross-compiler works.
11624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625 # <limits.h> exists even on freestanding compilers.
11626 # On the NeXT, cc -E runs the code through the compiler's parser,
11627 # not just through cpp. "Syntax error" is here to catch this case.
11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h. */
11630 #ifdef __STDC__
11631 # include <limits.h>
11632 #else
11633 # include <assert.h>
11634 #endif
11635 Syntax error
11636 _ACEOF
11637 if ac_fn_cxx_try_cpp "$LINENO"; then :
11638
11639 else
11640 # Broken: fails on valid input.
11641 continue
11642 fi
11643 rm -f conftest.err conftest.$ac_ext
11644
11645 # OK, works on sane cases. Now check whether nonexistent headers
11646 # can be detected and how.
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649 #include <ac_nonexistent.h>
11650 _ACEOF
11651 if ac_fn_cxx_try_cpp "$LINENO"; then :
11652 # Broken: success on invalid input.
11653 continue
11654 else
11655 # Passes both tests.
11656 ac_preproc_ok=:
11657 break
11658 fi
11659 rm -f conftest.err conftest.$ac_ext
11660
11661 done
11662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11663 rm -f conftest.err conftest.$ac_ext
11664 if $ac_preproc_ok; then :
11665
11666 else
11667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11669 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11670 See \`config.log' for more details." "$LINENO" 5; }
11671 fi
11672
11673 ac_ext=c
11674 ac_cpp='$CPP $CPPFLAGS'
11675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11678
11679 else
11680 _lt_caught_CXX_error=yes
11681 fi
11682
11683 ac_ext=cpp
11684 ac_cpp='$CXXCPP $CPPFLAGS'
11685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11688
11689 archive_cmds_need_lc_CXX=no
11690 allow_undefined_flag_CXX=
11691 always_export_symbols_CXX=no
11692 archive_expsym_cmds_CXX=
11693 compiler_needs_object_CXX=no
11694 export_dynamic_flag_spec_CXX=
11695 hardcode_direct_CXX=no
11696 hardcode_direct_absolute_CXX=no
11697 hardcode_libdir_flag_spec_CXX=
11698 hardcode_libdir_flag_spec_ld_CXX=
11699 hardcode_libdir_separator_CXX=
11700 hardcode_minus_L_CXX=no
11701 hardcode_shlibpath_var_CXX=unsupported
11702 hardcode_automatic_CXX=no
11703 inherit_rpath_CXX=no
11704 module_cmds_CXX=
11705 module_expsym_cmds_CXX=
11706 link_all_deplibs_CXX=unknown
11707 old_archive_cmds_CXX=$old_archive_cmds
11708 reload_flag_CXX=$reload_flag
11709 reload_cmds_CXX=$reload_cmds
11710 no_undefined_flag_CXX=
11711 whole_archive_flag_spec_CXX=
11712 enable_shared_with_static_runtimes_CXX=no
11713
11714 # Source file extension for C++ test sources.
11715 ac_ext=cpp
11716
11717 # Object file extension for compiled C++ test sources.
11718 objext=o
11719 objext_CXX=$objext
11720
11721 # No sense in running all these tests if we already determined that
11722 # the CXX compiler isn't working. Some variables (like enable_shared)
11723 # are currently assumed to apply to all compilers on this platform,
11724 # and will be corrupted by setting them based on a non-working compiler.
11725 if test "$_lt_caught_CXX_error" != yes; then
11726 # Code to be used in simple compile tests
11727 lt_simple_compile_test_code="int some_variable = 0;"
11728
11729 # Code to be used in simple link tests
11730 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11731
11732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11733
11734
11735
11736
11737
11738
11739 # If no C compiler was specified, use CC.
11740 LTCC=${LTCC-"$CC"}
11741
11742 # If no C compiler flags were specified, use CFLAGS.
11743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11744
11745 # Allow CC to be a program name with arguments.
11746 compiler=$CC
11747
11748
11749 # save warnings/boilerplate of simple test code
11750 ac_outfile=conftest.$ac_objext
11751 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11752 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11753 _lt_compiler_boilerplate=`cat conftest.err`
11754 $RM conftest*
11755
11756 ac_outfile=conftest.$ac_objext
11757 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11758 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11759 _lt_linker_boilerplate=`cat conftest.err`
11760 $RM -r conftest*
11761
11762
11763 # Allow CC to be a program name with arguments.
11764 lt_save_CC=$CC
11765 lt_save_LD=$LD
11766 lt_save_GCC=$GCC
11767 GCC=$GXX
11768 lt_save_with_gnu_ld=$with_gnu_ld
11769 lt_save_path_LD=$lt_cv_path_LD
11770 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11771 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11772 else
11773 $as_unset lt_cv_prog_gnu_ld
11774 fi
11775 if test -n "${lt_cv_path_LDCXX+set}"; then
11776 lt_cv_path_LD=$lt_cv_path_LDCXX
11777 else
11778 $as_unset lt_cv_path_LD
11779 fi
11780 test -z "${LDCXX+set}" || LD=$LDCXX
11781 CC=${CXX-"c++"}
11782 compiler=$CC
11783 compiler_CXX=$CC
11784 for cc_temp in $compiler""; do
11785 case $cc_temp in
11786 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11787 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11788 \-*) ;;
11789 *) break;;
11790 esac
11791 done
11792 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11793
11794
11795 if test -n "$compiler"; then
11796 # We don't want -fno-exception when compiling C++ code, so set the
11797 # no_builtin_flag separately
11798 if test "$GXX" = yes; then
11799 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11800 else
11801 lt_prog_compiler_no_builtin_flag_CXX=
11802 fi
11803
11804 if test "$GXX" = yes; then
11805 # Set up default GNU C++ configuration
11806
11807
11808
11809 # Check whether --with-gnu-ld was given.
11810 if test "${with_gnu_ld+set}" = set; then :
11811 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11812 else
11813 with_gnu_ld=no
11814 fi
11815
11816 ac_prog=ld
11817 if test "$GCC" = yes; then
11818 # Check if gcc -print-prog-name=ld gives a path.
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11820 $as_echo_n "checking for ld used by $CC... " >&6; }
11821 case $host in
11822 *-*-mingw*)
11823 # gcc leaves a trailing carriage return which upsets mingw
11824 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11825 *)
11826 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11827 esac
11828 case $ac_prog in
11829 # Accept absolute paths.
11830 [\\/]* | ?:[\\/]*)
11831 re_direlt='/[^/][^/]*/\.\./'
11832 # Canonicalize the pathname of ld
11833 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11834 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11835 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11836 done
11837 test -z "$LD" && LD="$ac_prog"
11838 ;;
11839 "")
11840 # If it fails, then pretend we aren't using GCC.
11841 ac_prog=ld
11842 ;;
11843 *)
11844 # If it is relative, then search for the first ld in PATH.
11845 with_gnu_ld=unknown
11846 ;;
11847 esac
11848 elif test "$with_gnu_ld" = yes; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11850 $as_echo_n "checking for GNU ld... " >&6; }
11851 else
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11853 $as_echo_n "checking for non-GNU ld... " >&6; }
11854 fi
11855 if test "${lt_cv_path_LD+set}" = set; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 if test -z "$LD"; then
11859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11860 for ac_dir in $PATH; do
11861 IFS="$lt_save_ifs"
11862 test -z "$ac_dir" && ac_dir=.
11863 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11864 lt_cv_path_LD="$ac_dir/$ac_prog"
11865 # Check to see if the program is GNU ld. I'd rather use --version,
11866 # but apparently some variants of GNU ld only accept -v.
11867 # Break only if it was the GNU/non-GNU ld that we prefer.
11868 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11869 *GNU* | *'with BFD'*)
11870 test "$with_gnu_ld" != no && break
11871 ;;
11872 *)
11873 test "$with_gnu_ld" != yes && break
11874 ;;
11875 esac
11876 fi
11877 done
11878 IFS="$lt_save_ifs"
11879 else
11880 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11881 fi
11882 fi
11883
11884 LD="$lt_cv_path_LD"
11885 if test -n "$LD"; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11887 $as_echo "$LD" >&6; }
11888 else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11891 fi
11892 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11894 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11895 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11899 case `$LD -v 2>&1 </dev/null` in
11900 *GNU* | *'with BFD'*)
11901 lt_cv_prog_gnu_ld=yes
11902 ;;
11903 *)
11904 lt_cv_prog_gnu_ld=no
11905 ;;
11906 esac
11907 fi
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11909 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11910 with_gnu_ld=$lt_cv_prog_gnu_ld
11911
11912
11913
11914
11915
11916
11917
11918 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11919 # archiving commands below assume that GNU ld is being used.
11920 if test "$with_gnu_ld" = yes; then
11921 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11922 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11923
11924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11925 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11926
11927 # If archive_cmds runs LD, not CC, wlarc should be empty
11928 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11929 # investigate it a little bit more. (MM)
11930 wlarc='${wl}'
11931
11932 # ancient GNU ld didn't support --whole-archive et. al.
11933 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11934 $GREP 'no-whole-archive' > /dev/null; then
11935 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11936 else
11937 whole_archive_flag_spec_CXX=
11938 fi
11939 else
11940 with_gnu_ld=no
11941 wlarc=
11942
11943 # A generic and very simple default shared library creation
11944 # command for GNU C++ for the case where it uses the native
11945 # linker, instead of GNU ld. If possible, this setting should
11946 # overridden to take advantage of the native linker features on
11947 # the platform it is being used on.
11948 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11949 fi
11950
11951 # Commands to make compiler produce verbose output that lists
11952 # what "hidden" libraries, object files and flags are used when
11953 # linking a shared library.
11954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11955
11956 else
11957 GXX=no
11958 with_gnu_ld=no
11959 wlarc=
11960 fi
11961
11962 # PORTME: fill in a description of your system's C++ link characteristics
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11964 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11965 ld_shlibs_CXX=yes
11966 case $host_os in
11967 aix3*)
11968 # FIXME: insert proper C++ library support
11969 ld_shlibs_CXX=no
11970 ;;
11971 aix[4-9]*)
11972 if test "$host_cpu" = ia64; then
11973 # On IA64, the linker does run time linking by default, so we don't
11974 # have to do anything special.
11975 aix_use_runtimelinking=no
11976 exp_sym_flag='-Bexport'
11977 no_entry_flag=""
11978 else
11979 aix_use_runtimelinking=no
11980
11981 # Test if we are trying to use run time linking or normal
11982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11983 # need to do runtime linking.
11984 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11985 for ld_flag in $LDFLAGS; do
11986 case $ld_flag in
11987 *-brtl*)
11988 aix_use_runtimelinking=yes
11989 break
11990 ;;
11991 esac
11992 done
11993 ;;
11994 esac
11995
11996 exp_sym_flag='-bexport'
11997 no_entry_flag='-bnoentry'
11998 fi
11999
12000 # When large executables or shared objects are built, AIX ld can
12001 # have problems creating the table of contents. If linking a library
12002 # or program results in "error TOC overflow" add -mminimal-toc to
12003 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12004 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12005
12006 archive_cmds_CXX=''
12007 hardcode_direct_CXX=yes
12008 hardcode_direct_absolute_CXX=yes
12009 hardcode_libdir_separator_CXX=':'
12010 link_all_deplibs_CXX=yes
12011 file_list_spec_CXX='${wl}-f,'
12012
12013 if test "$GXX" = yes; then
12014 case $host_os in aix4.[012]|aix4.[012].*)
12015 # We only want to do this on AIX 4.2 and lower, the check
12016 # below for broken collect2 doesn't work under 4.3+
12017 collect2name=`${CC} -print-prog-name=collect2`
12018 if test -f "$collect2name" &&
12019 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12020 then
12021 # We have reworked collect2
12022 :
12023 else
12024 # We have old collect2
12025 hardcode_direct_CXX=unsupported
12026 # It fails to find uninstalled libraries when the uninstalled
12027 # path is not listed in the libpath. Setting hardcode_minus_L
12028 # to unsupported forces relinking
12029 hardcode_minus_L_CXX=yes
12030 hardcode_libdir_flag_spec_CXX='-L$libdir'
12031 hardcode_libdir_separator_CXX=
12032 fi
12033 esac
12034 shared_flag='-shared'
12035 if test "$aix_use_runtimelinking" = yes; then
12036 shared_flag="$shared_flag "'${wl}-G'
12037 fi
12038 else
12039 # not using gcc
12040 if test "$host_cpu" = ia64; then
12041 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12042 # chokes on -Wl,-G. The following line is correct:
12043 shared_flag='-G'
12044 else
12045 if test "$aix_use_runtimelinking" = yes; then
12046 shared_flag='${wl}-G'
12047 else
12048 shared_flag='${wl}-bM:SRE'
12049 fi
12050 fi
12051 fi
12052
12053 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12054 # It seems that -bexpall does not export symbols beginning with
12055 # underscore (_), so it is better to generate a list of symbols to
12056 # export.
12057 always_export_symbols_CXX=yes
12058 if test "$aix_use_runtimelinking" = yes; then
12059 # Warning - without using the other runtime loading flags (-brtl),
12060 # -berok will link without error, but may produce a broken library.
12061 allow_undefined_flag_CXX='-berok'
12062 # Determine the default libpath from the value encoded in an empty
12063 # executable.
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12066
12067 int
12068 main ()
12069 {
12070
12071 ;
12072 return 0;
12073 }
12074 _ACEOF
12075 if ac_fn_cxx_try_link "$LINENO"; then :
12076
12077 lt_aix_libpath_sed='
12078 /Import File Strings/,/^$/ {
12079 /^0/ {
12080 s/^0 *\(.*\)$/\1/
12081 p
12082 }
12083 }'
12084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12085 # Check for a 64-bit object if we didn't find anything.
12086 if test -z "$aix_libpath"; then
12087 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12088 fi
12089 fi
12090 rm -f core conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12092 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12093
12094 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12095
12096 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"
12097 else
12098 if test "$host_cpu" = ia64; then
12099 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12100 allow_undefined_flag_CXX="-z nodefs"
12101 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"
12102 else
12103 # Determine the default libpath from the value encoded in an
12104 # empty executable.
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12107
12108 int
12109 main ()
12110 {
12111
12112 ;
12113 return 0;
12114 }
12115 _ACEOF
12116 if ac_fn_cxx_try_link "$LINENO"; then :
12117
12118 lt_aix_libpath_sed='
12119 /Import File Strings/,/^$/ {
12120 /^0/ {
12121 s/^0 *\(.*\)$/\1/
12122 p
12123 }
12124 }'
12125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12126 # Check for a 64-bit object if we didn't find anything.
12127 if test -z "$aix_libpath"; then
12128 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12129 fi
12130 fi
12131 rm -f core conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12134
12135 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12136 # Warning - without using the other run time loading flags,
12137 # -berok will link without error, but may produce a broken library.
12138 no_undefined_flag_CXX=' ${wl}-bernotok'
12139 allow_undefined_flag_CXX=' ${wl}-berok'
12140 if test "$with_gnu_ld" = yes; then
12141 # We only use this code for GNU lds that support --whole-archive.
12142 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12143 else
12144 # Exported symbols can be pulled into shared objects from archives
12145 whole_archive_flag_spec_CXX='$convenience'
12146 fi
12147 archive_cmds_need_lc_CXX=yes
12148 # This is similar to how AIX traditionally builds its shared
12149 # libraries.
12150 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'
12151 fi
12152 fi
12153 ;;
12154
12155 beos*)
12156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12157 allow_undefined_flag_CXX=unsupported
12158 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12159 # support --undefined. This deserves some investigation. FIXME
12160 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12161 else
12162 ld_shlibs_CXX=no
12163 fi
12164 ;;
12165
12166 chorus*)
12167 case $cc_basename in
12168 *)
12169 # FIXME: insert proper C++ library support
12170 ld_shlibs_CXX=no
12171 ;;
12172 esac
12173 ;;
12174
12175 cygwin* | mingw* | pw32* | cegcc*)
12176 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12177 # as there is no search path for DLLs.
12178 hardcode_libdir_flag_spec_CXX='-L$libdir'
12179 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12180 allow_undefined_flag_CXX=unsupported
12181 always_export_symbols_CXX=no
12182 enable_shared_with_static_runtimes_CXX=yes
12183
12184 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12185 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'
12186 # If the export-symbols file already is a .def file (1st line
12187 # is EXPORTS), use it as is; otherwise, prepend...
12188 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12189 cp $export_symbols $output_objdir/$soname.def;
12190 else
12191 echo EXPORTS > $output_objdir/$soname.def;
12192 cat $export_symbols >> $output_objdir/$soname.def;
12193 fi~
12194 $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'
12195 else
12196 ld_shlibs_CXX=no
12197 fi
12198 ;;
12199 darwin* | rhapsody*)
12200
12201
12202 archive_cmds_need_lc_CXX=no
12203 hardcode_direct_CXX=no
12204 hardcode_automatic_CXX=yes
12205 hardcode_shlibpath_var_CXX=unsupported
12206 if test "$lt_cv_ld_force_load" = "yes"; then
12207 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\"`'
12208 else
12209 whole_archive_flag_spec_CXX=''
12210 fi
12211 link_all_deplibs_CXX=yes
12212 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12213 case $cc_basename in
12214 ifort*) _lt_dar_can_shared=yes ;;
12215 *) _lt_dar_can_shared=$GCC ;;
12216 esac
12217 if test "$_lt_dar_can_shared" = "yes"; then
12218 output_verbose_link_cmd=func_echo_all
12219 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}"
12220 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12221 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}"
12222 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}"
12223 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12224 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}"
12225 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}"
12226 fi
12227
12228 else
12229 ld_shlibs_CXX=no
12230 fi
12231
12232 ;;
12233
12234 dgux*)
12235 case $cc_basename in
12236 ec++*)
12237 # FIXME: insert proper C++ library support
12238 ld_shlibs_CXX=no
12239 ;;
12240 ghcx*)
12241 # Green Hills C++ Compiler
12242 # FIXME: insert proper C++ library support
12243 ld_shlibs_CXX=no
12244 ;;
12245 *)
12246 # FIXME: insert proper C++ library support
12247 ld_shlibs_CXX=no
12248 ;;
12249 esac
12250 ;;
12251
12252 freebsd2.*)
12253 # C++ shared libraries reported to be fairly broken before
12254 # switch to ELF
12255 ld_shlibs_CXX=no
12256 ;;
12257
12258 freebsd-elf*)
12259 archive_cmds_need_lc_CXX=no
12260 ;;
12261
12262 freebsd* | dragonfly*)
12263 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12264 # conventions
12265 ld_shlibs_CXX=yes
12266 ;;
12267
12268 gnu*)
12269 ;;
12270
12271 haiku*)
12272 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12273 link_all_deplibs_CXX=yes
12274 ;;
12275
12276 hpux9*)
12277 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12278 hardcode_libdir_separator_CXX=:
12279 export_dynamic_flag_spec_CXX='${wl}-E'
12280 hardcode_direct_CXX=yes
12281 hardcode_minus_L_CXX=yes # Not in the search PATH,
12282 # but as the default
12283 # location of the library.
12284
12285 case $cc_basename in
12286 CC*)
12287 # FIXME: insert proper C++ library support
12288 ld_shlibs_CXX=no
12289 ;;
12290 aCC*)
12291 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'
12292 # Commands to make compiler produce verbose output that lists
12293 # what "hidden" libraries, object files and flags are used when
12294 # linking a shared library.
12295 #
12296 # There doesn't appear to be a way to prevent this compiler from
12297 # explicitly linking system object files so we need to strip them
12298 # from the output so that they don't get included in the library
12299 # dependencies.
12300 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"'
12301 ;;
12302 *)
12303 if test "$GXX" = yes; then
12304 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12305 else
12306 # FIXME: insert proper C++ library support
12307 ld_shlibs_CXX=no
12308 fi
12309 ;;
12310 esac
12311 ;;
12312
12313 hpux10*|hpux11*)
12314 if test $with_gnu_ld = no; then
12315 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12316 hardcode_libdir_separator_CXX=:
12317
12318 case $host_cpu in
12319 hppa*64*|ia64*)
12320 ;;
12321 *)
12322 export_dynamic_flag_spec_CXX='${wl}-E'
12323 ;;
12324 esac
12325 fi
12326 case $host_cpu in
12327 hppa*64*|ia64*)
12328 hardcode_direct_CXX=no
12329 hardcode_shlibpath_var_CXX=no
12330 ;;
12331 *)
12332 hardcode_direct_CXX=yes
12333 hardcode_direct_absolute_CXX=yes
12334 hardcode_minus_L_CXX=yes # Not in the search PATH,
12335 # but as the default
12336 # location of the library.
12337 ;;
12338 esac
12339
12340 case $cc_basename in
12341 CC*)
12342 # FIXME: insert proper C++ library support
12343 ld_shlibs_CXX=no
12344 ;;
12345 aCC*)
12346 case $host_cpu in
12347 hppa*64*)
12348 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12349 ;;
12350 ia64*)
12351 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12352 ;;
12353 *)
12354 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12355 ;;
12356 esac
12357 # Commands to make compiler produce verbose output that lists
12358 # what "hidden" libraries, object files and flags are used when
12359 # linking a shared library.
12360 #
12361 # There doesn't appear to be a way to prevent this compiler from
12362 # explicitly linking system object files so we need to strip them
12363 # from the output so that they don't get included in the library
12364 # dependencies.
12365 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"'
12366 ;;
12367 *)
12368 if test "$GXX" = yes; then
12369 if test $with_gnu_ld = no; then
12370 case $host_cpu in
12371 hppa*64*)
12372 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12373 ;;
12374 ia64*)
12375 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12376 ;;
12377 *)
12378 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12379 ;;
12380 esac
12381 fi
12382 else
12383 # FIXME: insert proper C++ library support
12384 ld_shlibs_CXX=no
12385 fi
12386 ;;
12387 esac
12388 ;;
12389
12390 interix[3-9]*)
12391 hardcode_direct_CXX=no
12392 hardcode_shlibpath_var_CXX=no
12393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12394 export_dynamic_flag_spec_CXX='${wl}-E'
12395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12396 # Instead, shared libraries are loaded at an image base (0x10000000 by
12397 # default) and relocated if they conflict, which is a slow very memory
12398 # consuming and fragmenting process. To avoid this, we pick a random,
12399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12400 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12401 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'
12402 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'
12403 ;;
12404 irix5* | irix6*)
12405 case $cc_basename in
12406 CC*)
12407 # SGI C++
12408 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'
12409
12410 # Archives containing C++ object files must be created using
12411 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12412 # necessary to make sure instantiated templates are included
12413 # in the archive.
12414 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12415 ;;
12416 *)
12417 if test "$GXX" = yes; then
12418 if test "$with_gnu_ld" = no; then
12419 archive_cmds_CXX='$CC -shared -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'
12420 else
12421 archive_cmds_CXX='$CC -shared -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'
12422 fi
12423 fi
12424 link_all_deplibs_CXX=yes
12425 ;;
12426 esac
12427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12428 hardcode_libdir_separator_CXX=:
12429 inherit_rpath_CXX=yes
12430 ;;
12431
12432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12433 case $cc_basename in
12434 KCC*)
12435 # Kuck and Associates, Inc. (KAI) C++ Compiler
12436
12437 # KCC will only create a shared library if the output file
12438 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12439 # to its proper name (with version) after linking.
12440 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'
12441 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'
12442 # Commands to make compiler produce verbose output that lists
12443 # what "hidden" libraries, object files and flags are used when
12444 # linking a shared library.
12445 #
12446 # There doesn't appear to be a way to prevent this compiler from
12447 # explicitly linking system object files so we need to strip them
12448 # from the output so that they don't get included in the library
12449 # dependencies.
12450 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"'
12451
12452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12453 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12454
12455 # Archives containing C++ object files must be created using
12456 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12457 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12458 ;;
12459 icpc* | ecpc* )
12460 # Intel C++
12461 with_gnu_ld=yes
12462 # version 8.0 and above of icpc choke on multiply defined symbols
12463 # if we add $predep_objects and $postdep_objects, however 7.1 and
12464 # earlier do not add the objects themselves.
12465 case `$CC -V 2>&1` in
12466 *"Version 7."*)
12467 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12468 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'
12469 ;;
12470 *) # Version 8.0 or newer
12471 tmp_idyn=
12472 case $host_cpu in
12473 ia64*) tmp_idyn=' -i_dynamic';;
12474 esac
12475 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12476 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'
12477 ;;
12478 esac
12479 archive_cmds_need_lc_CXX=no
12480 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12481 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12482 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12483 ;;
12484 pgCC* | pgcpp*)
12485 # Portland Group C++ compiler
12486 case `$CC -V` in
12487 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12488 prelink_cmds_CXX='tpldir=Template.dir~
12489 rm -rf $tpldir~
12490 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12491 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12492 old_archive_cmds_CXX='tpldir=Template.dir~
12493 rm -rf $tpldir~
12494 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12495 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12496 $RANLIB $oldlib'
12497 archive_cmds_CXX='tpldir=Template.dir~
12498 rm -rf $tpldir~
12499 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12500 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12501 archive_expsym_cmds_CXX='tpldir=Template.dir~
12502 rm -rf $tpldir~
12503 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12504 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12505 ;;
12506 *) # Version 6 and above use weak symbols
12507 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12508 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'
12509 ;;
12510 esac
12511
12512 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12513 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12514 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'
12515 ;;
12516 cxx*)
12517 # Compaq C++
12518 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12519 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'
12520
12521 runpath_var=LD_RUN_PATH
12522 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12523 hardcode_libdir_separator_CXX=:
12524
12525 # Commands to make compiler produce verbose output that lists
12526 # what "hidden" libraries, object files and flags are used when
12527 # linking a shared library.
12528 #
12529 # There doesn't appear to be a way to prevent this compiler from
12530 # explicitly linking system object files so we need to strip them
12531 # from the output so that they don't get included in the library
12532 # dependencies.
12533 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'
12534 ;;
12535 xl* | mpixl* | bgxl*)
12536 # IBM XL 8.0 on PPC, with GNU ld
12537 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12538 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12539 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12540 if test "x$supports_anon_versioning" = xyes; then
12541 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12542 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12543 echo "local: *; };" >> $output_objdir/$libname.ver~
12544 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12545 fi
12546 ;;
12547 *)
12548 case `$CC -V 2>&1 | sed 5q` in
12549 *Sun\ C*)
12550 # Sun C++ 5.9
12551 no_undefined_flag_CXX=' -zdefs'
12552 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12553 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'
12554 hardcode_libdir_flag_spec_CXX='-R$libdir'
12555 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'
12556 compiler_needs_object_CXX=yes
12557
12558 # Not sure whether something based on
12559 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12560 # would be better.
12561 output_verbose_link_cmd='func_echo_all'
12562
12563 # Archives containing C++ object files must be created using
12564 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12565 # necessary to make sure instantiated templates are included
12566 # in the archive.
12567 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12568 ;;
12569 esac
12570 ;;
12571 esac
12572 ;;
12573
12574 lynxos*)
12575 # FIXME: insert proper C++ library support
12576 ld_shlibs_CXX=no
12577 ;;
12578
12579 m88k*)
12580 # FIXME: insert proper C++ library support
12581 ld_shlibs_CXX=no
12582 ;;
12583
12584 mvs*)
12585 case $cc_basename in
12586 cxx*)
12587 # FIXME: insert proper C++ library support
12588 ld_shlibs_CXX=no
12589 ;;
12590 *)
12591 # FIXME: insert proper C++ library support
12592 ld_shlibs_CXX=no
12593 ;;
12594 esac
12595 ;;
12596
12597 netbsd*)
12598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12599 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12600 wlarc=
12601 hardcode_libdir_flag_spec_CXX='-R$libdir'
12602 hardcode_direct_CXX=yes
12603 hardcode_shlibpath_var_CXX=no
12604 fi
12605 # Workaround some broken pre-1.5 toolchains
12606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12607 ;;
12608
12609 *nto* | *qnx*)
12610 ld_shlibs_CXX=yes
12611 ;;
12612
12613 openbsd2*)
12614 # C++ shared libraries are fairly broken
12615 ld_shlibs_CXX=no
12616 ;;
12617
12618 openbsd*)
12619 if test -f /usr/libexec/ld.so; then
12620 hardcode_direct_CXX=yes
12621 hardcode_shlibpath_var_CXX=no
12622 hardcode_direct_absolute_CXX=yes
12623 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12624 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12625 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12626 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12627 export_dynamic_flag_spec_CXX='${wl}-E'
12628 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12629 fi
12630 output_verbose_link_cmd=func_echo_all
12631 else
12632 ld_shlibs_CXX=no
12633 fi
12634 ;;
12635
12636 osf3* | osf4* | osf5*)
12637 case $cc_basename in
12638 KCC*)
12639 # Kuck and Associates, Inc. (KAI) C++ Compiler
12640
12641 # KCC will only create a shared library if the output file
12642 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12643 # to its proper name (with version) after linking.
12644 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'
12645
12646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12647 hardcode_libdir_separator_CXX=:
12648
12649 # Archives containing C++ object files must be created using
12650 # the KAI C++ compiler.
12651 case $host in
12652 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12653 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12654 esac
12655 ;;
12656 RCC*)
12657 # Rational C++ 2.4.1
12658 # FIXME: insert proper C++ library support
12659 ld_shlibs_CXX=no
12660 ;;
12661 cxx*)
12662 case $host in
12663 osf3*)
12664 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12665 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'
12666 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12667 ;;
12668 *)
12669 allow_undefined_flag_CXX=' -expect_unresolved \*'
12670 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'
12671 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12672 echo "-hidden">> $lib.exp~
12673 $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~
12674 $RM $lib.exp'
12675 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12676 ;;
12677 esac
12678
12679 hardcode_libdir_separator_CXX=:
12680
12681 # Commands to make compiler produce verbose output that lists
12682 # what "hidden" libraries, object files and flags are used when
12683 # linking a shared library.
12684 #
12685 # There doesn't appear to be a way to prevent this compiler from
12686 # explicitly linking system object files so we need to strip them
12687 # from the output so that they don't get included in the library
12688 # dependencies.
12689 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"'
12690 ;;
12691 *)
12692 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12693 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12694 case $host in
12695 osf3*)
12696 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'
12697 ;;
12698 *)
12699 archive_cmds_CXX='$CC -shared -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'
12700 ;;
12701 esac
12702
12703 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12704 hardcode_libdir_separator_CXX=:
12705
12706 # Commands to make compiler produce verbose output that lists
12707 # what "hidden" libraries, object files and flags are used when
12708 # linking a shared library.
12709 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12710
12711 else
12712 # FIXME: insert proper C++ library support
12713 ld_shlibs_CXX=no
12714 fi
12715 ;;
12716 esac
12717 ;;
12718
12719 psos*)
12720 # FIXME: insert proper C++ library support
12721 ld_shlibs_CXX=no
12722 ;;
12723
12724 sunos4*)
12725 case $cc_basename in
12726 CC*)
12727 # Sun C++ 4.x
12728 # FIXME: insert proper C++ library support
12729 ld_shlibs_CXX=no
12730 ;;
12731 lcc*)
12732 # Lucid
12733 # FIXME: insert proper C++ library support
12734 ld_shlibs_CXX=no
12735 ;;
12736 *)
12737 # FIXME: insert proper C++ library support
12738 ld_shlibs_CXX=no
12739 ;;
12740 esac
12741 ;;
12742
12743 solaris*)
12744 case $cc_basename in
12745 CC*)
12746 # Sun C++ 4.2, 5.x and Centerline C++
12747 archive_cmds_need_lc_CXX=yes
12748 no_undefined_flag_CXX=' -zdefs'
12749 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12750 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12751 $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'
12752
12753 hardcode_libdir_flag_spec_CXX='-R$libdir'
12754 hardcode_shlibpath_var_CXX=no
12755 case $host_os in
12756 solaris2.[0-5] | solaris2.[0-5].*) ;;
12757 *)
12758 # The compiler driver will combine and reorder linker options,
12759 # but understands `-z linker_flag'.
12760 # Supported since Solaris 2.6 (maybe 2.5.1?)
12761 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12762 ;;
12763 esac
12764 link_all_deplibs_CXX=yes
12765
12766 output_verbose_link_cmd='func_echo_all'
12767
12768 # Archives containing C++ object files must be created using
12769 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12770 # necessary to make sure instantiated templates are included
12771 # in the archive.
12772 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12773 ;;
12774 gcx*)
12775 # Green Hills C++ Compiler
12776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12777
12778 # The C++ compiler must be used to create the archive.
12779 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12780 ;;
12781 *)
12782 # GNU C++ compiler with Solaris linker
12783 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12784 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12785 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12786 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12787 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12788 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12789
12790 # Commands to make compiler produce verbose output that lists
12791 # what "hidden" libraries, object files and flags are used when
12792 # linking a shared library.
12793 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12794 else
12795 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12796 # platform.
12797 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12798 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12799 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12800
12801 # Commands to make compiler produce verbose output that lists
12802 # what "hidden" libraries, object files and flags are used when
12803 # linking a shared library.
12804 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12805 fi
12806
12807 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12808 case $host_os in
12809 solaris2.[0-5] | solaris2.[0-5].*) ;;
12810 *)
12811 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12812 ;;
12813 esac
12814 fi
12815 ;;
12816 esac
12817 ;;
12818
12819 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12820 no_undefined_flag_CXX='${wl}-z,text'
12821 archive_cmds_need_lc_CXX=no
12822 hardcode_shlibpath_var_CXX=no
12823 runpath_var='LD_RUN_PATH'
12824
12825 case $cc_basename in
12826 CC*)
12827 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12828 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12829 ;;
12830 *)
12831 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12832 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12833 ;;
12834 esac
12835 ;;
12836
12837 sysv5* | sco3.2v5* | sco5v6*)
12838 # Note: We can NOT use -z defs as we might desire, because we do not
12839 # link with -lc, and that would cause any symbols used from libc to
12840 # always be unresolved, which means just about no library would
12841 # ever link correctly. If we're not using GNU ld we use -z text
12842 # though, which does catch some bad symbols but isn't as heavy-handed
12843 # as -z defs.
12844 no_undefined_flag_CXX='${wl}-z,text'
12845 allow_undefined_flag_CXX='${wl}-z,nodefs'
12846 archive_cmds_need_lc_CXX=no
12847 hardcode_shlibpath_var_CXX=no
12848 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12849 hardcode_libdir_separator_CXX=':'
12850 link_all_deplibs_CXX=yes
12851 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12852 runpath_var='LD_RUN_PATH'
12853
12854 case $cc_basename in
12855 CC*)
12856 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12857 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12858 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12859 '"$old_archive_cmds_CXX"
12860 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12861 '"$reload_cmds_CXX"
12862 ;;
12863 *)
12864 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12865 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12866 ;;
12867 esac
12868 ;;
12869
12870 tandem*)
12871 case $cc_basename in
12872 NCC*)
12873 # NonStop-UX NCC 3.20
12874 # FIXME: insert proper C++ library support
12875 ld_shlibs_CXX=no
12876 ;;
12877 *)
12878 # FIXME: insert proper C++ library support
12879 ld_shlibs_CXX=no
12880 ;;
12881 esac
12882 ;;
12883
12884 vxworks*)
12885 # FIXME: insert proper C++ library support
12886 ld_shlibs_CXX=no
12887 ;;
12888
12889 *)
12890 # FIXME: insert proper C++ library support
12891 ld_shlibs_CXX=no
12892 ;;
12893 esac
12894
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12896 $as_echo "$ld_shlibs_CXX" >&6; }
12897 test "$ld_shlibs_CXX" = no && can_build_shared=no
12898
12899 GCC_CXX="$GXX"
12900 LD_CXX="$LD"
12901
12902 ## CAVEAT EMPTOR:
12903 ## There is no encapsulation within the following macros, do not change
12904 ## the running order or otherwise move them around unless you know exactly
12905 ## what you are doing...
12906 # Dependencies to place before and after the object being linked:
12907 predep_objects_CXX=
12908 postdep_objects_CXX=
12909 predeps_CXX=
12910 postdeps_CXX=
12911 compiler_lib_search_path_CXX=
12912
12913 cat > conftest.$ac_ext <<_LT_EOF
12914 class Foo
12915 {
12916 public:
12917 Foo (void) { a = 0; }
12918 private:
12919 int a;
12920 };
12921 _LT_EOF
12922
12923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12924 (eval $ac_compile) 2>&5
12925 ac_status=$?
12926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12927 test $ac_status = 0; }; then
12928 # Parse the compiler output and extract the necessary
12929 # objects, libraries and library flags.
12930
12931 # Sentinel used to keep track of whether or not we are before
12932 # the conftest object file.
12933 pre_test_object_deps_done=no
12934
12935 for p in `eval "$output_verbose_link_cmd"`; do
12936 case $p in
12937
12938 -L* | -R* | -l*)
12939 # Some compilers place space between "-{L,R}" and the path.
12940 # Remove the space.
12941 if test $p = "-L" ||
12942 test $p = "-R"; then
12943 prev=$p
12944 continue
12945 else
12946 prev=
12947 fi
12948
12949 if test "$pre_test_object_deps_done" = no; then
12950 case $p in
12951 -L* | -R*)
12952 # Internal compiler library paths should come after those
12953 # provided the user. The postdeps already come after the
12954 # user supplied libs so there is no need to process them.
12955 if test -z "$compiler_lib_search_path_CXX"; then
12956 compiler_lib_search_path_CXX="${prev}${p}"
12957 else
12958 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12959 fi
12960 ;;
12961 # The "-l" case would never come before the object being
12962 # linked, so don't bother handling this case.
12963 esac
12964 else
12965 if test -z "$postdeps_CXX"; then
12966 postdeps_CXX="${prev}${p}"
12967 else
12968 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12969 fi
12970 fi
12971 ;;
12972
12973 *.$objext)
12974 # This assumes that the test object file only shows up
12975 # once in the compiler output.
12976 if test "$p" = "conftest.$objext"; then
12977 pre_test_object_deps_done=yes
12978 continue
12979 fi
12980
12981 if test "$pre_test_object_deps_done" = no; then
12982 if test -z "$predep_objects_CXX"; then
12983 predep_objects_CXX="$p"
12984 else
12985 predep_objects_CXX="$predep_objects_CXX $p"
12986 fi
12987 else
12988 if test -z "$postdep_objects_CXX"; then
12989 postdep_objects_CXX="$p"
12990 else
12991 postdep_objects_CXX="$postdep_objects_CXX $p"
12992 fi
12993 fi
12994 ;;
12995
12996 *) ;; # Ignore the rest.
12997
12998 esac
12999 done
13000
13001 # Clean up.
13002 rm -f a.out a.exe
13003 else
13004 echo "libtool.m4: error: problem compiling CXX test program"
13005 fi
13006
13007 $RM -f confest.$objext
13008
13009 # PORTME: override above test on systems where it is broken
13010 case $host_os in
13011 interix[3-9]*)
13012 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13013 # hack all around it, let's just trust "g++" to DTRT.
13014 predep_objects_CXX=
13015 postdep_objects_CXX=
13016 postdeps_CXX=
13017 ;;
13018
13019 linux*)
13020 case `$CC -V 2>&1 | sed 5q` in
13021 *Sun\ C*)
13022 # Sun C++ 5.9
13023
13024 # The more standards-conforming stlport4 library is
13025 # incompatible with the Cstd library. Avoid specifying
13026 # it if it's in CXXFLAGS. Ignore libCrun as
13027 # -library=stlport4 depends on it.
13028 case " $CXX $CXXFLAGS " in
13029 *" -library=stlport4 "*)
13030 solaris_use_stlport4=yes
13031 ;;
13032 esac
13033
13034 if test "$solaris_use_stlport4" != yes; then
13035 postdeps_CXX='-library=Cstd -library=Crun'
13036 fi
13037 ;;
13038 esac
13039 ;;
13040
13041 solaris*)
13042 case $cc_basename in
13043 CC*)
13044 # The more standards-conforming stlport4 library is
13045 # incompatible with the Cstd library. Avoid specifying
13046 # it if it's in CXXFLAGS. Ignore libCrun as
13047 # -library=stlport4 depends on it.
13048 case " $CXX $CXXFLAGS " in
13049 *" -library=stlport4 "*)
13050 solaris_use_stlport4=yes
13051 ;;
13052 esac
13053
13054 # Adding this requires a known-good setup of shared libraries for
13055 # Sun compiler versions before 5.6, else PIC objects from an old
13056 # archive will be linked into the output, leading to subtle bugs.
13057 if test "$solaris_use_stlport4" != yes; then
13058 postdeps_CXX='-library=Cstd -library=Crun'
13059 fi
13060 ;;
13061 esac
13062 ;;
13063 esac
13064
13065
13066 case " $postdeps_CXX " in
13067 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13068 esac
13069 compiler_lib_search_dirs_CXX=
13070 if test -n "${compiler_lib_search_path_CXX}"; then
13071 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13072 fi
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104 lt_prog_compiler_wl_CXX=
13105 lt_prog_compiler_pic_CXX=
13106 lt_prog_compiler_static_CXX=
13107
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13109 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13110
13111 # C++ specific cases for pic, static, wl, etc.
13112 if test "$GXX" = yes; then
13113 lt_prog_compiler_wl_CXX='-Wl,'
13114 lt_prog_compiler_static_CXX='-static'
13115
13116 case $host_os in
13117 aix*)
13118 # All AIX code is PIC.
13119 if test "$host_cpu" = ia64; then
13120 # AIX 5 now supports IA64 processor
13121 lt_prog_compiler_static_CXX='-Bstatic'
13122 fi
13123 lt_prog_compiler_pic_CXX='-fPIC'
13124 ;;
13125
13126 amigaos*)
13127 case $host_cpu in
13128 powerpc)
13129 # see comment about AmigaOS4 .so support
13130 lt_prog_compiler_pic_CXX='-fPIC'
13131 ;;
13132 m68k)
13133 # FIXME: we need at least 68020 code to build shared libraries, but
13134 # adding the `-m68020' flag to GCC prevents building anything better,
13135 # like `-m68040'.
13136 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13137 ;;
13138 esac
13139 ;;
13140
13141 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13142 # PIC is the default for these OSes.
13143 ;;
13144 mingw* | cygwin* | os2* | pw32* | cegcc*)
13145 # This hack is so that the source file can tell whether it is being
13146 # built for inclusion in a dll (and should export symbols for example).
13147 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13148 # (--disable-auto-import) libraries
13149 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13150 ;;
13151 darwin* | rhapsody*)
13152 # PIC is the default on this platform
13153 # Common symbols not allowed in MH_DYLIB files
13154 lt_prog_compiler_pic_CXX='-fno-common'
13155 ;;
13156 *djgpp*)
13157 # DJGPP does not support shared libraries at all
13158 lt_prog_compiler_pic_CXX=
13159 ;;
13160 haiku*)
13161 # PIC is the default for Haiku.
13162 # The "-static" flag exists, but is broken.
13163 lt_prog_compiler_static_CXX=
13164 ;;
13165 interix[3-9]*)
13166 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13167 # Instead, we relocate shared libraries at runtime.
13168 ;;
13169 sysv4*MP*)
13170 if test -d /usr/nec; then
13171 lt_prog_compiler_pic_CXX=-Kconform_pic
13172 fi
13173 ;;
13174 hpux*)
13175 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13176 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13177 # sets the default TLS model and affects inlining.
13178 case $host_cpu in
13179 hppa*64*)
13180 ;;
13181 *)
13182 lt_prog_compiler_pic_CXX='-fPIC'
13183 ;;
13184 esac
13185 ;;
13186 *qnx* | *nto*)
13187 # QNX uses GNU C++, but need to define -shared option too, otherwise
13188 # it will coredump.
13189 lt_prog_compiler_pic_CXX='-fPIC -shared'
13190 ;;
13191 *)
13192 lt_prog_compiler_pic_CXX='-fPIC'
13193 ;;
13194 esac
13195 else
13196 case $host_os in
13197 aix[4-9]*)
13198 # All AIX code is PIC.
13199 if test "$host_cpu" = ia64; then
13200 # AIX 5 now supports IA64 processor
13201 lt_prog_compiler_static_CXX='-Bstatic'
13202 else
13203 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13204 fi
13205 ;;
13206 chorus*)
13207 case $cc_basename in
13208 cxch68*)
13209 # Green Hills C++ Compiler
13210 # _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"
13211 ;;
13212 esac
13213 ;;
13214 dgux*)
13215 case $cc_basename in
13216 ec++*)
13217 lt_prog_compiler_pic_CXX='-KPIC'
13218 ;;
13219 ghcx*)
13220 # Green Hills C++ Compiler
13221 lt_prog_compiler_pic_CXX='-pic'
13222 ;;
13223 *)
13224 ;;
13225 esac
13226 ;;
13227 freebsd* | dragonfly*)
13228 # FreeBSD uses GNU C++
13229 ;;
13230 hpux9* | hpux10* | hpux11*)
13231 case $cc_basename in
13232 CC*)
13233 lt_prog_compiler_wl_CXX='-Wl,'
13234 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13235 if test "$host_cpu" != ia64; then
13236 lt_prog_compiler_pic_CXX='+Z'
13237 fi
13238 ;;
13239 aCC*)
13240 lt_prog_compiler_wl_CXX='-Wl,'
13241 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13242 case $host_cpu in
13243 hppa*64*|ia64*)
13244 # +Z the default
13245 ;;
13246 *)
13247 lt_prog_compiler_pic_CXX='+Z'
13248 ;;
13249 esac
13250 ;;
13251 *)
13252 ;;
13253 esac
13254 ;;
13255 interix*)
13256 # This is c89, which is MS Visual C++ (no shared libs)
13257 # Anyone wants to do a port?
13258 ;;
13259 irix5* | irix6* | nonstopux*)
13260 case $cc_basename in
13261 CC*)
13262 lt_prog_compiler_wl_CXX='-Wl,'
13263 lt_prog_compiler_static_CXX='-non_shared'
13264 # CC pic flag -KPIC is the default.
13265 ;;
13266 *)
13267 ;;
13268 esac
13269 ;;
13270 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13271 case $cc_basename in
13272 KCC*)
13273 # KAI C++ Compiler
13274 lt_prog_compiler_wl_CXX='--backend -Wl,'
13275 lt_prog_compiler_pic_CXX='-fPIC'
13276 ;;
13277 ecpc* )
13278 # old Intel C++ for x86_64 which still supported -KPIC.
13279 lt_prog_compiler_wl_CXX='-Wl,'
13280 lt_prog_compiler_pic_CXX='-KPIC'
13281 lt_prog_compiler_static_CXX='-static'
13282 ;;
13283 icpc* )
13284 # Intel C++, used to be incompatible with GCC.
13285 # ICC 10 doesn't accept -KPIC any more.
13286 lt_prog_compiler_wl_CXX='-Wl,'
13287 lt_prog_compiler_pic_CXX='-fPIC'
13288 lt_prog_compiler_static_CXX='-static'
13289 ;;
13290 pgCC* | pgcpp*)
13291 # Portland Group C++ compiler
13292 lt_prog_compiler_wl_CXX='-Wl,'
13293 lt_prog_compiler_pic_CXX='-fpic'
13294 lt_prog_compiler_static_CXX='-Bstatic'
13295 ;;
13296 cxx*)
13297 # Compaq C++
13298 # Make sure the PIC flag is empty. It appears that all Alpha
13299 # Linux and Compaq Tru64 Unix objects are PIC.
13300 lt_prog_compiler_pic_CXX=
13301 lt_prog_compiler_static_CXX='-non_shared'
13302 ;;
13303 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13304 # IBM XL 8.0, 9.0 on PPC and BlueGene
13305 lt_prog_compiler_wl_CXX='-Wl,'
13306 lt_prog_compiler_pic_CXX='-qpic'
13307 lt_prog_compiler_static_CXX='-qstaticlink'
13308 ;;
13309 *)
13310 case `$CC -V 2>&1 | sed 5q` in
13311 *Sun\ C*)
13312 # Sun C++ 5.9
13313 lt_prog_compiler_pic_CXX='-KPIC'
13314 lt_prog_compiler_static_CXX='-Bstatic'
13315 lt_prog_compiler_wl_CXX='-Qoption ld '
13316 ;;
13317 esac
13318 ;;
13319 esac
13320 ;;
13321 lynxos*)
13322 ;;
13323 m88k*)
13324 ;;
13325 mvs*)
13326 case $cc_basename in
13327 cxx*)
13328 lt_prog_compiler_pic_CXX='-W c,exportall'
13329 ;;
13330 *)
13331 ;;
13332 esac
13333 ;;
13334 netbsd*)
13335 ;;
13336 *qnx* | *nto*)
13337 # QNX uses GNU C++, but need to define -shared option too, otherwise
13338 # it will coredump.
13339 lt_prog_compiler_pic_CXX='-fPIC -shared'
13340 ;;
13341 osf3* | osf4* | osf5*)
13342 case $cc_basename in
13343 KCC*)
13344 lt_prog_compiler_wl_CXX='--backend -Wl,'
13345 ;;
13346 RCC*)
13347 # Rational C++ 2.4.1
13348 lt_prog_compiler_pic_CXX='-pic'
13349 ;;
13350 cxx*)
13351 # Digital/Compaq C++
13352 lt_prog_compiler_wl_CXX='-Wl,'
13353 # Make sure the PIC flag is empty. It appears that all Alpha
13354 # Linux and Compaq Tru64 Unix objects are PIC.
13355 lt_prog_compiler_pic_CXX=
13356 lt_prog_compiler_static_CXX='-non_shared'
13357 ;;
13358 *)
13359 ;;
13360 esac
13361 ;;
13362 psos*)
13363 ;;
13364 solaris*)
13365 case $cc_basename in
13366 CC*)
13367 # Sun C++ 4.2, 5.x and Centerline C++
13368 lt_prog_compiler_pic_CXX='-KPIC'
13369 lt_prog_compiler_static_CXX='-Bstatic'
13370 lt_prog_compiler_wl_CXX='-Qoption ld '
13371 ;;
13372 gcx*)
13373 # Green Hills C++ Compiler
13374 lt_prog_compiler_pic_CXX='-PIC'
13375 ;;
13376 *)
13377 ;;
13378 esac
13379 ;;
13380 sunos4*)
13381 case $cc_basename in
13382 CC*)
13383 # Sun C++ 4.x
13384 lt_prog_compiler_pic_CXX='-pic'
13385 lt_prog_compiler_static_CXX='-Bstatic'
13386 ;;
13387 lcc*)
13388 # Lucid
13389 lt_prog_compiler_pic_CXX='-pic'
13390 ;;
13391 *)
13392 ;;
13393 esac
13394 ;;
13395 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13396 case $cc_basename in
13397 CC*)
13398 lt_prog_compiler_wl_CXX='-Wl,'
13399 lt_prog_compiler_pic_CXX='-KPIC'
13400 lt_prog_compiler_static_CXX='-Bstatic'
13401 ;;
13402 esac
13403 ;;
13404 tandem*)
13405 case $cc_basename in
13406 NCC*)
13407 # NonStop-UX NCC 3.20
13408 lt_prog_compiler_pic_CXX='-KPIC'
13409 ;;
13410 *)
13411 ;;
13412 esac
13413 ;;
13414 vxworks*)
13415 ;;
13416 *)
13417 lt_prog_compiler_can_build_shared_CXX=no
13418 ;;
13419 esac
13420 fi
13421
13422 case $host_os in
13423 # For platforms which do not support PIC, -DPIC is meaningless:
13424 *djgpp*)
13425 lt_prog_compiler_pic_CXX=
13426 ;;
13427 *)
13428 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13429 ;;
13430 esac
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13432 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13433
13434
13435
13436 #
13437 # Check to make sure the PIC flag actually works.
13438 #
13439 if test -n "$lt_prog_compiler_pic_CXX"; then
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13441 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13442 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 lt_cv_prog_compiler_pic_works_CXX=no
13446 ac_outfile=conftest.$ac_objext
13447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13448 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13449 # Insert the option either (1) after the last *FLAGS variable, or
13450 # (2) before a word containing "conftest.", or (3) at the end.
13451 # Note that $ac_compile itself does not contain backslashes and begins
13452 # with a dollar sign (not a hyphen), so the echo should work correctly.
13453 # The option is referenced via a variable to avoid confusing sed.
13454 lt_compile=`echo "$ac_compile" | $SED \
13455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13457 -e 's:$: $lt_compiler_flag:'`
13458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13459 (eval "$lt_compile" 2>conftest.err)
13460 ac_status=$?
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 if (exit $ac_status) && test -s "$ac_outfile"; then
13464 # The compiler can only warn and ignore the option if not recognized
13465 # So say no if there are warnings other than the usual output.
13466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13469 lt_cv_prog_compiler_pic_works_CXX=yes
13470 fi
13471 fi
13472 $RM conftest*
13473
13474 fi
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13476 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13477
13478 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13479 case $lt_prog_compiler_pic_CXX in
13480 "" | " "*) ;;
13481 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13482 esac
13483 else
13484 lt_prog_compiler_pic_CXX=
13485 lt_prog_compiler_can_build_shared_CXX=no
13486 fi
13487
13488 fi
13489
13490
13491
13492 #
13493 # Check to make sure the static flag actually works.
13494 #
13495 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13497 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13498 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 lt_cv_prog_compiler_static_works_CXX=no
13502 save_LDFLAGS="$LDFLAGS"
13503 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13504 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13506 # The linker can only warn and ignore the option if not recognized
13507 # So say no if there are warnings
13508 if test -s conftest.err; then
13509 # Append any errors to the config.log.
13510 cat conftest.err 1>&5
13511 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13513 if diff conftest.exp conftest.er2 >/dev/null; then
13514 lt_cv_prog_compiler_static_works_CXX=yes
13515 fi
13516 else
13517 lt_cv_prog_compiler_static_works_CXX=yes
13518 fi
13519 fi
13520 $RM -r conftest*
13521 LDFLAGS="$save_LDFLAGS"
13522
13523 fi
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13525 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13526
13527 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13528 :
13529 else
13530 lt_prog_compiler_static_CXX=
13531 fi
13532
13533
13534
13535
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13537 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13538 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 lt_cv_prog_compiler_c_o_CXX=no
13542 $RM -r conftest 2>/dev/null
13543 mkdir conftest
13544 cd conftest
13545 mkdir out
13546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13547
13548 lt_compiler_flag="-o out/conftest2.$ac_objext"
13549 # Insert the option either (1) after the last *FLAGS variable, or
13550 # (2) before a word containing "conftest.", or (3) at the end.
13551 # Note that $ac_compile itself does not contain backslashes and begins
13552 # with a dollar sign (not a hyphen), so the echo should work correctly.
13553 lt_compile=`echo "$ac_compile" | $SED \
13554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13556 -e 's:$: $lt_compiler_flag:'`
13557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13558 (eval "$lt_compile" 2>out/conftest.err)
13559 ac_status=$?
13560 cat out/conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13563 then
13564 # The compiler can only warn and ignore the option if not recognized
13565 # So say no if there are warnings
13566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13569 lt_cv_prog_compiler_c_o_CXX=yes
13570 fi
13571 fi
13572 chmod u+w . 2>&5
13573 $RM conftest*
13574 # SGI C++ compiler will create directory out/ii_files/ for
13575 # template instantiation
13576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13577 $RM out/* && rmdir out
13578 cd ..
13579 $RM -r conftest
13580 $RM conftest*
13581
13582 fi
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13584 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13585
13586
13587
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13590 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13591 $as_echo_n "(cached) " >&6
13592 else
13593 lt_cv_prog_compiler_c_o_CXX=no
13594 $RM -r conftest 2>/dev/null
13595 mkdir conftest
13596 cd conftest
13597 mkdir out
13598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13599
13600 lt_compiler_flag="-o out/conftest2.$ac_objext"
13601 # Insert the option either (1) after the last *FLAGS variable, or
13602 # (2) before a word containing "conftest.", or (3) at the end.
13603 # Note that $ac_compile itself does not contain backslashes and begins
13604 # with a dollar sign (not a hyphen), so the echo should work correctly.
13605 lt_compile=`echo "$ac_compile" | $SED \
13606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13608 -e 's:$: $lt_compiler_flag:'`
13609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13610 (eval "$lt_compile" 2>out/conftest.err)
13611 ac_status=$?
13612 cat out/conftest.err >&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13615 then
13616 # The compiler can only warn and ignore the option if not recognized
13617 # So say no if there are warnings
13618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13621 lt_cv_prog_compiler_c_o_CXX=yes
13622 fi
13623 fi
13624 chmod u+w . 2>&5
13625 $RM conftest*
13626 # SGI C++ compiler will create directory out/ii_files/ for
13627 # template instantiation
13628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13629 $RM out/* && rmdir out
13630 cd ..
13631 $RM -r conftest
13632 $RM conftest*
13633
13634 fi
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13636 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13637
13638
13639
13640
13641 hard_links="nottested"
13642 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13643 # do not overwrite the value of need_locks provided by the user
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13645 $as_echo_n "checking if we can lock with hard links... " >&6; }
13646 hard_links=yes
13647 $RM conftest*
13648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13649 touch conftest.a
13650 ln conftest.a conftest.b 2>&5 || hard_links=no
13651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13653 $as_echo "$hard_links" >&6; }
13654 if test "$hard_links" = no; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13656 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13657 need_locks=warn
13658 fi
13659 else
13660 need_locks=no
13661 fi
13662
13663
13664
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13666 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13667
13668 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13669 case $host_os in
13670 aix[4-9]*)
13671 # If we're using GNU nm, then we don't want the "-C" option.
13672 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13673 # Also, AIX nm treats weak defined symbols like other global defined
13674 # symbols, whereas GNU nm marks them as "W".
13675 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13676 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'
13677 else
13678 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'
13679 fi
13680 ;;
13681 pw32*)
13682 export_symbols_cmds_CXX="$ltdll_cmds"
13683 ;;
13684 cygwin* | mingw* | cegcc*)
13685 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13686 ;;
13687 *)
13688 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13689 ;;
13690 esac
13691 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13692
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13694 $as_echo "$ld_shlibs_CXX" >&6; }
13695 test "$ld_shlibs_CXX" = no && can_build_shared=no
13696
13697 with_gnu_ld_CXX=$with_gnu_ld
13698
13699
13700
13701
13702
13703
13704 #
13705 # Do we need to explicitly link libc?
13706 #
13707 case "x$archive_cmds_need_lc_CXX" in
13708 x|xyes)
13709 # Assume -lc should be added
13710 archive_cmds_need_lc_CXX=yes
13711
13712 if test "$enable_shared" = yes && test "$GCC" = yes; then
13713 case $archive_cmds_CXX in
13714 *'~'*)
13715 # FIXME: we may have to deal with multi-command sequences.
13716 ;;
13717 '$CC '*)
13718 # Test whether the compiler implicitly links with -lc since on some
13719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13720 # to ld, don't add -lc before -lgcc.
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13722 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13723 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 $RM conftest*
13727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13728
13729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13730 (eval $ac_compile) 2>&5
13731 ac_status=$?
13732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13733 test $ac_status = 0; } 2>conftest.err; then
13734 soname=conftest
13735 lib=conftest
13736 libobjs=conftest.$ac_objext
13737 deplibs=
13738 wl=$lt_prog_compiler_wl_CXX
13739 pic_flag=$lt_prog_compiler_pic_CXX
13740 compiler_flags=-v
13741 linker_flags=-v
13742 verstring=
13743 output_objdir=.
13744 libname=conftest
13745 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13746 allow_undefined_flag_CXX=
13747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13748 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13749 ac_status=$?
13750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751 test $ac_status = 0; }
13752 then
13753 lt_cv_archive_cmds_need_lc_CXX=no
13754 else
13755 lt_cv_archive_cmds_need_lc_CXX=yes
13756 fi
13757 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13758 else
13759 cat conftest.err 1>&5
13760 fi
13761 $RM conftest*
13762
13763 fi
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13765 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13766 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13767 ;;
13768 esac
13769 fi
13770 ;;
13771 esac
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13837 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13838
13839 library_names_spec=
13840 libname_spec='lib$name'
13841 soname_spec=
13842 shrext_cmds=".so"
13843 postinstall_cmds=
13844 postuninstall_cmds=
13845 finish_cmds=
13846 finish_eval=
13847 shlibpath_var=
13848 shlibpath_overrides_runpath=unknown
13849 version_type=none
13850 dynamic_linker="$host_os ld.so"
13851 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13852 need_lib_prefix=unknown
13853 hardcode_into_libs=no
13854
13855 # when you set need_version to no, make sure it does not cause -set_version
13856 # flags to be left without arguments
13857 need_version=unknown
13858
13859 case $host_os in
13860 aix3*)
13861 version_type=linux
13862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13863 shlibpath_var=LIBPATH
13864
13865 # AIX 3 has no versioning support, so we append a major version to the name.
13866 soname_spec='${libname}${release}${shared_ext}$major'
13867 ;;
13868
13869 aix[4-9]*)
13870 version_type=linux
13871 need_lib_prefix=no
13872 need_version=no
13873 hardcode_into_libs=yes
13874 if test "$host_cpu" = ia64; then
13875 # AIX 5 supports IA64
13876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13877 shlibpath_var=LD_LIBRARY_PATH
13878 else
13879 # With GCC up to 2.95.x, collect2 would create an import file
13880 # for dependence libraries. The import file would start with
13881 # the line `#! .'. This would cause the generated library to
13882 # depend on `.', always an invalid library. This was fixed in
13883 # development snapshots of GCC prior to 3.0.
13884 case $host_os in
13885 aix4 | aix4.[01] | aix4.[01].*)
13886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13887 echo ' yes '
13888 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13889 :
13890 else
13891 can_build_shared=no
13892 fi
13893 ;;
13894 esac
13895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13896 # soname into executable. Probably we can add versioning support to
13897 # collect2, so additional links can be useful in future.
13898 if test "$aix_use_runtimelinking" = yes; then
13899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13900 # instead of lib<name>.a to let people know that these are not
13901 # typical AIX shared libraries.
13902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13903 else
13904 # We preserve .a as extension for shared libraries through AIX4.2
13905 # and later when we are not doing run time linking.
13906 library_names_spec='${libname}${release}.a $libname.a'
13907 soname_spec='${libname}${release}${shared_ext}$major'
13908 fi
13909 shlibpath_var=LIBPATH
13910 fi
13911 ;;
13912
13913 amigaos*)
13914 case $host_cpu in
13915 powerpc)
13916 # Since July 2007 AmigaOS4 officially supports .so libraries.
13917 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13919 ;;
13920 m68k)
13921 library_names_spec='$libname.ixlibrary $libname.a'
13922 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13923 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'
13924 ;;
13925 esac
13926 ;;
13927
13928 beos*)
13929 library_names_spec='${libname}${shared_ext}'
13930 dynamic_linker="$host_os ld.so"
13931 shlibpath_var=LIBRARY_PATH
13932 ;;
13933
13934 bsdi[45]*)
13935 version_type=linux
13936 need_version=no
13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13938 soname_spec='${libname}${release}${shared_ext}$major'
13939 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13940 shlibpath_var=LD_LIBRARY_PATH
13941 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13942 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13943 # the default ld.so.conf also contains /usr/contrib/lib and
13944 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13945 # libtool to hard-code these into programs
13946 ;;
13947
13948 cygwin* | mingw* | pw32* | cegcc*)
13949 version_type=windows
13950 shrext_cmds=".dll"
13951 need_version=no
13952 need_lib_prefix=no
13953
13954 case $GCC,$host_os in
13955 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13956 library_names_spec='$libname.dll.a'
13957 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13958 postinstall_cmds='base_file=`basename \${file}`~
13959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13960 dldir=$destdir/`dirname \$dlpath`~
13961 test -d \$dldir || mkdir -p \$dldir~
13962 $install_prog $dir/$dlname \$dldir/$dlname~
13963 chmod a+x \$dldir/$dlname~
13964 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13965 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13966 fi'
13967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13968 dlpath=$dir/\$dldll~
13969 $RM \$dlpath'
13970 shlibpath_overrides_runpath=yes
13971
13972 case $host_os in
13973 cygwin*)
13974 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13975 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13976
13977 ;;
13978 mingw* | cegcc*)
13979 # MinGW DLLs use traditional 'lib' prefix
13980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13981 ;;
13982 pw32*)
13983 # pw32 DLLs use 'pw' prefix rather than 'lib'
13984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13985 ;;
13986 esac
13987 ;;
13988
13989 *)
13990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13991 ;;
13992 esac
13993 dynamic_linker='Win32 ld.exe'
13994 # FIXME: first we should search . and the directory the executable is in
13995 shlibpath_var=PATH
13996 ;;
13997
13998 darwin* | rhapsody*)
13999 dynamic_linker="$host_os dyld"
14000 version_type=darwin
14001 need_lib_prefix=no
14002 need_version=no
14003 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14004 soname_spec='${libname}${release}${major}$shared_ext'
14005 shlibpath_overrides_runpath=yes
14006 shlibpath_var=DYLD_LIBRARY_PATH
14007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14008
14009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14010 ;;
14011
14012 dgux*)
14013 version_type=linux
14014 need_lib_prefix=no
14015 need_version=no
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 shlibpath_var=LD_LIBRARY_PATH
14019 ;;
14020
14021 freebsd* | dragonfly*)
14022 # DragonFly does not have aout. When/if they implement a new
14023 # versioning mechanism, adjust this.
14024 if test -x /usr/bin/objformat; then
14025 objformat=`/usr/bin/objformat`
14026 else
14027 case $host_os in
14028 freebsd[23].*) objformat=aout ;;
14029 *) objformat=elf ;;
14030 esac
14031 fi
14032 version_type=freebsd-$objformat
14033 case $version_type in
14034 freebsd-elf*)
14035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14036 need_version=no
14037 need_lib_prefix=no
14038 ;;
14039 freebsd-*)
14040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14041 need_version=yes
14042 ;;
14043 esac
14044 shlibpath_var=LD_LIBRARY_PATH
14045 case $host_os in
14046 freebsd2.*)
14047 shlibpath_overrides_runpath=yes
14048 ;;
14049 freebsd3.[01]* | freebsdelf3.[01]*)
14050 shlibpath_overrides_runpath=yes
14051 hardcode_into_libs=yes
14052 ;;
14053 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14054 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14055 shlibpath_overrides_runpath=no
14056 hardcode_into_libs=yes
14057 ;;
14058 *) # from 4.6 on, and DragonFly
14059 shlibpath_overrides_runpath=yes
14060 hardcode_into_libs=yes
14061 ;;
14062 esac
14063 ;;
14064
14065 gnu*)
14066 version_type=linux
14067 need_lib_prefix=no
14068 need_version=no
14069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14070 soname_spec='${libname}${release}${shared_ext}$major'
14071 shlibpath_var=LD_LIBRARY_PATH
14072 hardcode_into_libs=yes
14073 ;;
14074
14075 haiku*)
14076 version_type=linux
14077 need_lib_prefix=no
14078 need_version=no
14079 dynamic_linker="$host_os runtime_loader"
14080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14081 soname_spec='${libname}${release}${shared_ext}$major'
14082 shlibpath_var=LIBRARY_PATH
14083 shlibpath_overrides_runpath=yes
14084 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14085 hardcode_into_libs=yes
14086 ;;
14087
14088 hpux9* | hpux10* | hpux11*)
14089 # Give a soname corresponding to the major version so that dld.sl refuses to
14090 # link against other versions.
14091 version_type=sunos
14092 need_lib_prefix=no
14093 need_version=no
14094 case $host_cpu in
14095 ia64*)
14096 shrext_cmds='.so'
14097 hardcode_into_libs=yes
14098 dynamic_linker="$host_os dld.so"
14099 shlibpath_var=LD_LIBRARY_PATH
14100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14102 soname_spec='${libname}${release}${shared_ext}$major'
14103 if test "X$HPUX_IA64_MODE" = X32; then
14104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14105 else
14106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14107 fi
14108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14109 ;;
14110 hppa*64*)
14111 shrext_cmds='.sl'
14112 hardcode_into_libs=yes
14113 dynamic_linker="$host_os dld.sl"
14114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117 soname_spec='${libname}${release}${shared_ext}$major'
14118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14120 ;;
14121 *)
14122 shrext_cmds='.sl'
14123 dynamic_linker="$host_os dld.sl"
14124 shlibpath_var=SHLIB_PATH
14125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127 soname_spec='${libname}${release}${shared_ext}$major'
14128 ;;
14129 esac
14130 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14131 postinstall_cmds='chmod 555 $lib'
14132 # or fails outright, so override atomically:
14133 install_override_mode=555
14134 ;;
14135
14136 interix[3-9]*)
14137 version_type=linux
14138 need_lib_prefix=no
14139 need_version=no
14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14141 soname_spec='${libname}${release}${shared_ext}$major'
14142 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14143 shlibpath_var=LD_LIBRARY_PATH
14144 shlibpath_overrides_runpath=no
14145 hardcode_into_libs=yes
14146 ;;
14147
14148 irix5* | irix6* | nonstopux*)
14149 case $host_os in
14150 nonstopux*) version_type=nonstopux ;;
14151 *)
14152 if test "$lt_cv_prog_gnu_ld" = yes; then
14153 version_type=linux
14154 else
14155 version_type=irix
14156 fi ;;
14157 esac
14158 need_lib_prefix=no
14159 need_version=no
14160 soname_spec='${libname}${release}${shared_ext}$major'
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14162 case $host_os in
14163 irix5* | nonstopux*)
14164 libsuff= shlibsuff=
14165 ;;
14166 *)
14167 case $LD in # libtool.m4 will add one of these switches to LD
14168 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14169 libsuff= shlibsuff= libmagic=32-bit;;
14170 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14171 libsuff=32 shlibsuff=N32 libmagic=N32;;
14172 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14173 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14174 *) libsuff= shlibsuff= libmagic=never-match;;
14175 esac
14176 ;;
14177 esac
14178 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14179 shlibpath_overrides_runpath=no
14180 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14181 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14182 hardcode_into_libs=yes
14183 ;;
14184
14185 # No shared lib support for Linux oldld, aout, or coff.
14186 linux*oldld* | linux*aout* | linux*coff*)
14187 dynamic_linker=no
14188 ;;
14189
14190 # This must be Linux ELF.
14191 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14192 version_type=linux
14193 need_lib_prefix=no
14194 need_version=no
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196 soname_spec='${libname}${release}${shared_ext}$major'
14197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 shlibpath_overrides_runpath=no
14200
14201 # Some binutils ld are patched to set DT_RUNPATH
14202 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14203 $as_echo_n "(cached) " >&6
14204 else
14205 lt_cv_shlibpath_overrides_runpath=no
14206 save_LDFLAGS=$LDFLAGS
14207 save_libdir=$libdir
14208 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14209 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212
14213 int
14214 main ()
14215 {
14216
14217 ;
14218 return 0;
14219 }
14220 _ACEOF
14221 if ac_fn_cxx_try_link "$LINENO"; then :
14222 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14223 lt_cv_shlibpath_overrides_runpath=yes
14224 fi
14225 fi
14226 rm -f core conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
14228 LDFLAGS=$save_LDFLAGS
14229 libdir=$save_libdir
14230
14231 fi
14232
14233 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14234
14235 # This implies no fast_install, which is unacceptable.
14236 # Some rework will be needed to allow for fast_install
14237 # before this can be enabled.
14238 hardcode_into_libs=yes
14239
14240 # Append ld.so.conf contents to the search path
14241 if test -f /etc/ld.so.conf; then
14242 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' ' '`
14243 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14244 fi
14245
14246 # We used to test for /lib/ld.so.1 and disable shared libraries on
14247 # powerpc, because MkLinux only supported shared libraries with the
14248 # GNU dynamic linker. Since this was broken with cross compilers,
14249 # most powerpc-linux boxes support dynamic linking these days and
14250 # people can always --disable-shared, the test was removed, and we
14251 # assume the GNU/Linux dynamic linker is in use.
14252 dynamic_linker='GNU/Linux ld.so'
14253 ;;
14254
14255 netbsd*)
14256 version_type=sunos
14257 need_lib_prefix=no
14258 need_version=no
14259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14262 dynamic_linker='NetBSD (a.out) ld.so'
14263 else
14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14265 soname_spec='${libname}${release}${shared_ext}$major'
14266 dynamic_linker='NetBSD ld.elf_so'
14267 fi
14268 shlibpath_var=LD_LIBRARY_PATH
14269 shlibpath_overrides_runpath=yes
14270 hardcode_into_libs=yes
14271 ;;
14272
14273 newsos6)
14274 version_type=linux
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14276 shlibpath_var=LD_LIBRARY_PATH
14277 shlibpath_overrides_runpath=yes
14278 ;;
14279
14280 *nto* | *qnx*)
14281 version_type=qnx
14282 need_lib_prefix=no
14283 need_version=no
14284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14285 soname_spec='${libname}${release}${shared_ext}$major'
14286 shlibpath_var=LD_LIBRARY_PATH
14287 shlibpath_overrides_runpath=no
14288 hardcode_into_libs=yes
14289 dynamic_linker='ldqnx.so'
14290 ;;
14291
14292 openbsd*)
14293 version_type=sunos
14294 sys_lib_dlsearch_path_spec="/usr/lib"
14295 need_lib_prefix=no
14296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14297 case $host_os in
14298 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14299 *) need_version=no ;;
14300 esac
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14305 case $host_os in
14306 openbsd2.[89] | openbsd2.[89].*)
14307 shlibpath_overrides_runpath=no
14308 ;;
14309 *)
14310 shlibpath_overrides_runpath=yes
14311 ;;
14312 esac
14313 else
14314 shlibpath_overrides_runpath=yes
14315 fi
14316 ;;
14317
14318 os2*)
14319 libname_spec='$name'
14320 shrext_cmds=".dll"
14321 need_lib_prefix=no
14322 library_names_spec='$libname${shared_ext} $libname.a'
14323 dynamic_linker='OS/2 ld.exe'
14324 shlibpath_var=LIBPATH
14325 ;;
14326
14327 osf3* | osf4* | osf5*)
14328 version_type=osf
14329 need_lib_prefix=no
14330 need_version=no
14331 soname_spec='${libname}${release}${shared_ext}$major'
14332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14333 shlibpath_var=LD_LIBRARY_PATH
14334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14336 ;;
14337
14338 rdos*)
14339 dynamic_linker=no
14340 ;;
14341
14342 solaris*)
14343 version_type=linux
14344 need_lib_prefix=no
14345 need_version=no
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347 soname_spec='${libname}${release}${shared_ext}$major'
14348 shlibpath_var=LD_LIBRARY_PATH
14349 shlibpath_overrides_runpath=yes
14350 hardcode_into_libs=yes
14351 # ldd complains unless libraries are executable
14352 postinstall_cmds='chmod +x $lib'
14353 ;;
14354
14355 sunos4*)
14356 version_type=sunos
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14358 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14359 shlibpath_var=LD_LIBRARY_PATH
14360 shlibpath_overrides_runpath=yes
14361 if test "$with_gnu_ld" = yes; then
14362 need_lib_prefix=no
14363 fi
14364 need_version=yes
14365 ;;
14366
14367 sysv4 | sysv4.3*)
14368 version_type=linux
14369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14370 soname_spec='${libname}${release}${shared_ext}$major'
14371 shlibpath_var=LD_LIBRARY_PATH
14372 case $host_vendor in
14373 sni)
14374 shlibpath_overrides_runpath=no
14375 need_lib_prefix=no
14376 runpath_var=LD_RUN_PATH
14377 ;;
14378 siemens)
14379 need_lib_prefix=no
14380 ;;
14381 motorola)
14382 need_lib_prefix=no
14383 need_version=no
14384 shlibpath_overrides_runpath=no
14385 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14386 ;;
14387 esac
14388 ;;
14389
14390 sysv4*MP*)
14391 if test -d /usr/nec ;then
14392 version_type=linux
14393 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14394 soname_spec='$libname${shared_ext}.$major'
14395 shlibpath_var=LD_LIBRARY_PATH
14396 fi
14397 ;;
14398
14399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14400 version_type=freebsd-elf
14401 need_lib_prefix=no
14402 need_version=no
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14404 soname_spec='${libname}${release}${shared_ext}$major'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 shlibpath_overrides_runpath=yes
14407 hardcode_into_libs=yes
14408 if test "$with_gnu_ld" = yes; then
14409 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14410 else
14411 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14412 case $host_os in
14413 sco3.2v5*)
14414 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14415 ;;
14416 esac
14417 fi
14418 sys_lib_dlsearch_path_spec='/usr/lib'
14419 ;;
14420
14421 tpf*)
14422 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14423 version_type=linux
14424 need_lib_prefix=no
14425 need_version=no
14426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14427 shlibpath_var=LD_LIBRARY_PATH
14428 shlibpath_overrides_runpath=no
14429 hardcode_into_libs=yes
14430 ;;
14431
14432 uts4*)
14433 version_type=linux
14434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435 soname_spec='${libname}${release}${shared_ext}$major'
14436 shlibpath_var=LD_LIBRARY_PATH
14437 ;;
14438
14439 *)
14440 dynamic_linker=no
14441 ;;
14442 esac
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14444 $as_echo "$dynamic_linker" >&6; }
14445 test "$dynamic_linker" = no && can_build_shared=no
14446
14447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14448 if test "$GCC" = yes; then
14449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14450 fi
14451
14452 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14453 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14454 fi
14455 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14456 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14457 fi
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14497 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14498 hardcode_action_CXX=
14499 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14500 test -n "$runpath_var_CXX" ||
14501 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14502
14503 # We can hardcode non-existent directories.
14504 if test "$hardcode_direct_CXX" != no &&
14505 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14506 # have to relink, otherwise we might link with an installed library
14507 # when we should be linking with a yet-to-be-installed one
14508 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14509 test "$hardcode_minus_L_CXX" != no; then
14510 # Linking always hardcodes the temporary library directory.
14511 hardcode_action_CXX=relink
14512 else
14513 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14514 hardcode_action_CXX=immediate
14515 fi
14516 else
14517 # We cannot hardcode anything, or else we can only hardcode existing
14518 # directories.
14519 hardcode_action_CXX=unsupported
14520 fi
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14522 $as_echo "$hardcode_action_CXX" >&6; }
14523
14524 if test "$hardcode_action_CXX" = relink ||
14525 test "$inherit_rpath_CXX" = yes; then
14526 # Fast installation is not supported
14527 enable_fast_install=no
14528 elif test "$shlibpath_overrides_runpath" = yes ||
14529 test "$enable_shared" = no; then
14530 # Fast installation is not necessary
14531 enable_fast_install=needless
14532 fi
14533
14534
14535
14536
14537
14538
14539
14540 fi # test -n "$compiler"
14541
14542 CC=$lt_save_CC
14543 LDCXX=$LD
14544 LD=$lt_save_LD
14545 GCC=$lt_save_GCC
14546 with_gnu_ld=$lt_save_with_gnu_ld
14547 lt_cv_path_LDCXX=$lt_cv_path_LD
14548 lt_cv_path_LD=$lt_save_path_LD
14549 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14550 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14551 fi # test "$_lt_caught_CXX_error" != yes
14552
14553 ac_ext=c
14554 ac_cpp='$CPP $CPPFLAGS'
14555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571 ac_config_commands="$ac_config_commands libtool"
14572
14573
14574
14575
14576 # Only expand once:
14577
14578
14579
14580
14581
14582 # For libtool versioning info, format is CURRENT:REVISION:AGE
14583 libtool_VERSION=1:0:0
14584
14585
14586 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
14587
14588
14589 if test "${multilib}" = "yes"; then
14590 multilib_arg="--enable-multilib"
14591 else
14592 multilib_arg=
14593 fi
14594
14595
14596
14597 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
14598 # Check whether --enable-vtable-verify was given.
14599 if test "${enable_vtable_verify+set}" = set; then :
14600 enableval=$enable_vtable_verify; case "$enableval" in
14601 yes) enable_vtable_verify=yes ;;
14602 no) enable_vtable_verify=no ;;
14603 *) enable_vtable_verify=no;;
14604 esac
14605 else
14606 enable_vtable_verify=no
14607 fi
14608
14609 if test $enable_vtable_verify = yes; then
14610 ENABLE_VTABLE_VERIFY_TRUE=
14611 ENABLE_VTABLE_VERIFY_FALSE='#'
14612 else
14613 ENABLE_VTABLE_VERIFY_TRUE='#'
14614 ENABLE_VTABLE_VERIFY_FALSE=
14615 fi
14616
14617
14618 # These need to be absolute paths, yet at the same time need to
14619 # canonicalize only relative paths, because then amd will not unmount
14620 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14621 libvtv_builddir=`${PWDCMD-pwd}`
14622 case $srcdir in
14623 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
14624 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14625 esac
14626 toplevel_builddir=${libvtv_builddir}/..
14627 toplevel_srcdir=${libvtv_srcdir}/..
14628
14629
14630
14631
14632
14633
14634 # Get target configury.
14635 unset VTV_SUPPORTED
14636 . ${srcdir}/configure.tgt
14637 if test "x$VTV_SUPPORTED" = "xyes"; then
14638 VTV_SUPPORTED_TRUE=
14639 VTV_SUPPORTED_FALSE='#'
14640 else
14641 VTV_SUPPORTED_TRUE='#'
14642 VTV_SUPPORTED_FALSE=
14643 fi
14644
14645
14646 ac_config_files="$ac_config_files Makefile"
14647
14648
14649 if test "x$VTV_SUPPORTED" = "xyes"; then
14650 ac_config_files="$ac_config_files ./Makefile testsuite/Makefile"
14651
14652 fi
14653
14654 cat >confcache <<\_ACEOF
14655 # This file is a shell script that caches the results of configure
14656 # tests run on this system so they can be shared between configure
14657 # scripts and configure runs, see configure's option --config-cache.
14658 # It is not useful on other systems. If it contains results you don't
14659 # want to keep, you may remove or edit it.
14660 #
14661 # config.status only pays attention to the cache file if you give it
14662 # the --recheck option to rerun configure.
14663 #
14664 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14665 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14666 # following values.
14667
14668 _ACEOF
14669
14670 # The following way of writing the cache mishandles newlines in values,
14671 # but we know of no workaround that is simple, portable, and efficient.
14672 # So, we kill variables containing newlines.
14673 # Ultrix sh set writes to stderr and can't be redirected directly,
14674 # and sets the high bit in the cache file unless we assign to the vars.
14675 (
14676 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14677 eval ac_val=\$$ac_var
14678 case $ac_val in #(
14679 *${as_nl}*)
14680 case $ac_var in #(
14681 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14682 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14683 esac
14684 case $ac_var in #(
14685 _ | IFS | as_nl) ;; #(
14686 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14687 *) { eval $ac_var=; unset $ac_var;} ;;
14688 esac ;;
14689 esac
14690 done
14691
14692 (set) 2>&1 |
14693 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14694 *${as_nl}ac_space=\ *)
14695 # `set' does not quote correctly, so add quotes: double-quote
14696 # substitution turns \\\\ into \\, and sed turns \\ into \.
14697 sed -n \
14698 "s/'/'\\\\''/g;
14699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14700 ;; #(
14701 *)
14702 # `set' quotes correctly as required by POSIX, so do not add quotes.
14703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14704 ;;
14705 esac |
14706 sort
14707 ) |
14708 sed '
14709 /^ac_cv_env_/b end
14710 t clear
14711 :clear
14712 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14713 t end
14714 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14715 :end' >>confcache
14716 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14717 if test -w "$cache_file"; then
14718 test "x$cache_file" != "x/dev/null" &&
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14720 $as_echo "$as_me: updating cache $cache_file" >&6;}
14721 cat confcache >$cache_file
14722 else
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14724 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14725 fi
14726 fi
14727 rm -f confcache
14728
14729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14730 # Let make expand exec_prefix.
14731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14732
14733 # Transform confdefs.h into DEFS.
14734 # Protect against shell expansion while executing Makefile rules.
14735 # Protect against Makefile macro expansion.
14736 #
14737 # If the first sed substitution is executed (which looks for macros that
14738 # take arguments), then branch to the quote section. Otherwise,
14739 # look for a macro that doesn't take arguments.
14740 ac_script='
14741 :mline
14742 /\\$/{
14743 N
14744 s,\\\n,,
14745 b mline
14746 }
14747 t clear
14748 :clear
14749 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14750 t quote
14751 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14752 t quote
14753 b any
14754 :quote
14755 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14756 s/\[/\\&/g
14757 s/\]/\\&/g
14758 s/\$/$$/g
14759 H
14760 :any
14761 ${
14762 g
14763 s/^\n//
14764 s/\n/ /g
14765 p
14766 }
14767 '
14768 DEFS=`sed -n "$ac_script" confdefs.h`
14769
14770
14771 ac_libobjs=
14772 ac_ltlibobjs=
14773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14774 # 1. Remove the extension, and $U if already installed.
14775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14778 # will be set to the directory where LIBOBJS objects are built.
14779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14781 done
14782 LIBOBJS=$ac_libobjs
14783
14784 LTLIBOBJS=$ac_ltlibobjs
14785
14786
14787 if test -n "$EXEEXT"; then
14788 am__EXEEXT_TRUE=
14789 am__EXEEXT_FALSE='#'
14790 else
14791 am__EXEEXT_TRUE='#'
14792 am__EXEEXT_FALSE=
14793 fi
14794
14795 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14796 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14798 fi
14799 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14800 as_fn_error "conditional \"AMDEP\" was never defined.
14801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14802 fi
14803 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14804 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14806 fi
14807 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14808 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14810 fi
14811 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
14812 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
14813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14814 fi
14815 if test -z "${VTV_SUPPORTED_TRUE}" && test -z "${VTV_SUPPORTED_FALSE}"; then
14816 as_fn_error "conditional \"VTV_SUPPORTED\" was never defined.
14817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14818 fi
14819
14820 : ${CONFIG_STATUS=./config.status}
14821 ac_write_fail=0
14822 ac_clean_files_save=$ac_clean_files
14823 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14825 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14826 as_write_fail=0
14827 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14828 #! $SHELL
14829 # Generated by $as_me.
14830 # Run this file to recreate the current configuration.
14831 # Compiler output produced by configure, useful for debugging
14832 # configure, is in config.log if it exists.
14833
14834 debug=false
14835 ac_cs_recheck=false
14836 ac_cs_silent=false
14837
14838 SHELL=\${CONFIG_SHELL-$SHELL}
14839 export SHELL
14840 _ASEOF
14841 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14842 ## -------------------- ##
14843 ## M4sh Initialization. ##
14844 ## -------------------- ##
14845
14846 # Be more Bourne compatible
14847 DUALCASE=1; export DUALCASE # for MKS sh
14848 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14849 emulate sh
14850 NULLCMD=:
14851 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14852 # is contrary to our usage. Disable this feature.
14853 alias -g '${1+"$@"}'='"$@"'
14854 setopt NO_GLOB_SUBST
14855 else
14856 case `(set -o) 2>/dev/null` in #(
14857 *posix*) :
14858 set -o posix ;; #(
14859 *) :
14860 ;;
14861 esac
14862 fi
14863
14864
14865 as_nl='
14866 '
14867 export as_nl
14868 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14869 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14872 # Prefer a ksh shell builtin over an external printf program on Solaris,
14873 # but without wasting forks for bash or zsh.
14874 if test -z "$BASH_VERSION$ZSH_VERSION" \
14875 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14876 as_echo='print -r --'
14877 as_echo_n='print -rn --'
14878 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14879 as_echo='printf %s\n'
14880 as_echo_n='printf %s'
14881 else
14882 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14883 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14884 as_echo_n='/usr/ucb/echo -n'
14885 else
14886 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14887 as_echo_n_body='eval
14888 arg=$1;
14889 case $arg in #(
14890 *"$as_nl"*)
14891 expr "X$arg" : "X\\(.*\\)$as_nl";
14892 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14893 esac;
14894 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14895 '
14896 export as_echo_n_body
14897 as_echo_n='sh -c $as_echo_n_body as_echo'
14898 fi
14899 export as_echo_body
14900 as_echo='sh -c $as_echo_body as_echo'
14901 fi
14902
14903 # The user is always right.
14904 if test "${PATH_SEPARATOR+set}" != set; then
14905 PATH_SEPARATOR=:
14906 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14907 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14908 PATH_SEPARATOR=';'
14909 }
14910 fi
14911
14912
14913 # IFS
14914 # We need space, tab and new line, in precisely that order. Quoting is
14915 # there to prevent editors from complaining about space-tab.
14916 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14917 # splitting by setting IFS to empty value.)
14918 IFS=" "" $as_nl"
14919
14920 # Find who we are. Look in the path if we contain no directory separator.
14921 case $0 in #((
14922 *[\\/]* ) as_myself=$0 ;;
14923 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14924 for as_dir in $PATH
14925 do
14926 IFS=$as_save_IFS
14927 test -z "$as_dir" && as_dir=.
14928 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14929 done
14930 IFS=$as_save_IFS
14931
14932 ;;
14933 esac
14934 # We did not find ourselves, most probably we were run as `sh COMMAND'
14935 # in which case we are not to be found in the path.
14936 if test "x$as_myself" = x; then
14937 as_myself=$0
14938 fi
14939 if test ! -f "$as_myself"; then
14940 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14941 exit 1
14942 fi
14943
14944 # Unset variables that we do not need and which cause bugs (e.g. in
14945 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14946 # suppresses any "Segmentation fault" message there. '((' could
14947 # trigger a bug in pdksh 5.2.14.
14948 for as_var in BASH_ENV ENV MAIL MAILPATH
14949 do eval test x\${$as_var+set} = xset \
14950 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14951 done
14952 PS1='$ '
14953 PS2='> '
14954 PS4='+ '
14955
14956 # NLS nuisances.
14957 LC_ALL=C
14958 export LC_ALL
14959 LANGUAGE=C
14960 export LANGUAGE
14961
14962 # CDPATH.
14963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14964
14965
14966 # as_fn_error ERROR [LINENO LOG_FD]
14967 # ---------------------------------
14968 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14969 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14970 # script with status $?, using 1 if that was 0.
14971 as_fn_error ()
14972 {
14973 as_status=$?; test $as_status -eq 0 && as_status=1
14974 if test "$3"; then
14975 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14976 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14977 fi
14978 $as_echo "$as_me: error: $1" >&2
14979 as_fn_exit $as_status
14980 } # as_fn_error
14981
14982
14983 # as_fn_set_status STATUS
14984 # -----------------------
14985 # Set $? to STATUS, without forking.
14986 as_fn_set_status ()
14987 {
14988 return $1
14989 } # as_fn_set_status
14990
14991 # as_fn_exit STATUS
14992 # -----------------
14993 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14994 as_fn_exit ()
14995 {
14996 set +e
14997 as_fn_set_status $1
14998 exit $1
14999 } # as_fn_exit
15000
15001 # as_fn_unset VAR
15002 # ---------------
15003 # Portably unset VAR.
15004 as_fn_unset ()
15005 {
15006 { eval $1=; unset $1;}
15007 }
15008 as_unset=as_fn_unset
15009 # as_fn_append VAR VALUE
15010 # ----------------------
15011 # Append the text in VALUE to the end of the definition contained in VAR. Take
15012 # advantage of any shell optimizations that allow amortized linear growth over
15013 # repeated appends, instead of the typical quadratic growth present in naive
15014 # implementations.
15015 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15016 eval 'as_fn_append ()
15017 {
15018 eval $1+=\$2
15019 }'
15020 else
15021 as_fn_append ()
15022 {
15023 eval $1=\$$1\$2
15024 }
15025 fi # as_fn_append
15026
15027 # as_fn_arith ARG...
15028 # ------------------
15029 # Perform arithmetic evaluation on the ARGs, and store the result in the
15030 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15031 # must be portable across $(()) and expr.
15032 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15033 eval 'as_fn_arith ()
15034 {
15035 as_val=$(( $* ))
15036 }'
15037 else
15038 as_fn_arith ()
15039 {
15040 as_val=`expr "$@" || test $? -eq 1`
15041 }
15042 fi # as_fn_arith
15043
15044
15045 if expr a : '\(a\)' >/dev/null 2>&1 &&
15046 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15047 as_expr=expr
15048 else
15049 as_expr=false
15050 fi
15051
15052 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15053 as_basename=basename
15054 else
15055 as_basename=false
15056 fi
15057
15058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15059 as_dirname=dirname
15060 else
15061 as_dirname=false
15062 fi
15063
15064 as_me=`$as_basename -- "$0" ||
15065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15066 X"$0" : 'X\(//\)$' \| \
15067 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15068 $as_echo X/"$0" |
15069 sed '/^.*\/\([^/][^/]*\)\/*$/{
15070 s//\1/
15071 q
15072 }
15073 /^X\/\(\/\/\)$/{
15074 s//\1/
15075 q
15076 }
15077 /^X\/\(\/\).*/{
15078 s//\1/
15079 q
15080 }
15081 s/.*/./; q'`
15082
15083 # Avoid depending upon Character Ranges.
15084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15087 as_cr_digits='0123456789'
15088 as_cr_alnum=$as_cr_Letters$as_cr_digits
15089
15090 ECHO_C= ECHO_N= ECHO_T=
15091 case `echo -n x` in #(((((
15092 -n*)
15093 case `echo 'xy\c'` in
15094 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15095 xy) ECHO_C='\c';;
15096 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15097 ECHO_T=' ';;
15098 esac;;
15099 *)
15100 ECHO_N='-n';;
15101 esac
15102
15103 rm -f conf$$ conf$$.exe conf$$.file
15104 if test -d conf$$.dir; then
15105 rm -f conf$$.dir/conf$$.file
15106 else
15107 rm -f conf$$.dir
15108 mkdir conf$$.dir 2>/dev/null
15109 fi
15110 if (echo >conf$$.file) 2>/dev/null; then
15111 if ln -s conf$$.file conf$$ 2>/dev/null; then
15112 as_ln_s='ln -s'
15113 # ... but there are two gotchas:
15114 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15115 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15116 # In both cases, we have to default to `cp -p'.
15117 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15118 as_ln_s='cp -p'
15119 elif ln conf$$.file conf$$ 2>/dev/null; then
15120 as_ln_s=ln
15121 else
15122 as_ln_s='cp -p'
15123 fi
15124 else
15125 as_ln_s='cp -p'
15126 fi
15127 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15128 rmdir conf$$.dir 2>/dev/null
15129
15130
15131 # as_fn_mkdir_p
15132 # -------------
15133 # Create "$as_dir" as a directory, including parents if necessary.
15134 as_fn_mkdir_p ()
15135 {
15136
15137 case $as_dir in #(
15138 -*) as_dir=./$as_dir;;
15139 esac
15140 test -d "$as_dir" || eval $as_mkdir_p || {
15141 as_dirs=
15142 while :; do
15143 case $as_dir in #(
15144 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15145 *) as_qdir=$as_dir;;
15146 esac
15147 as_dirs="'$as_qdir' $as_dirs"
15148 as_dir=`$as_dirname -- "$as_dir" ||
15149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15150 X"$as_dir" : 'X\(//\)[^/]' \| \
15151 X"$as_dir" : 'X\(//\)$' \| \
15152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15153 $as_echo X"$as_dir" |
15154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15155 s//\1/
15156 q
15157 }
15158 /^X\(\/\/\)[^/].*/{
15159 s//\1/
15160 q
15161 }
15162 /^X\(\/\/\)$/{
15163 s//\1/
15164 q
15165 }
15166 /^X\(\/\).*/{
15167 s//\1/
15168 q
15169 }
15170 s/.*/./; q'`
15171 test -d "$as_dir" && break
15172 done
15173 test -z "$as_dirs" || eval "mkdir $as_dirs"
15174 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15175
15176
15177 } # as_fn_mkdir_p
15178 if mkdir -p . 2>/dev/null; then
15179 as_mkdir_p='mkdir -p "$as_dir"'
15180 else
15181 test -d ./-p && rmdir ./-p
15182 as_mkdir_p=false
15183 fi
15184
15185 if test -x / >/dev/null 2>&1; then
15186 as_test_x='test -x'
15187 else
15188 if ls -dL / >/dev/null 2>&1; then
15189 as_ls_L_option=L
15190 else
15191 as_ls_L_option=
15192 fi
15193 as_test_x='
15194 eval sh -c '\''
15195 if test -d "$1"; then
15196 test -d "$1/.";
15197 else
15198 case $1 in #(
15199 -*)set "./$1";;
15200 esac;
15201 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15202 ???[sx]*):;;*)false;;esac;fi
15203 '\'' sh
15204 '
15205 fi
15206 as_executable_p=$as_test_x
15207
15208 # Sed expression to map a string onto a valid CPP name.
15209 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15210
15211 # Sed expression to map a string onto a valid variable name.
15212 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15213
15214
15215 exec 6>&1
15216 ## ----------------------------------- ##
15217 ## Main body of $CONFIG_STATUS script. ##
15218 ## ----------------------------------- ##
15219 _ASEOF
15220 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15221
15222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15223 # Save the log message, to keep $0 and so on meaningful, and to
15224 # report actual input values of CONFIG_FILES etc. instead of their
15225 # values after options handling.
15226 ac_log="
15227 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
15228 generated by GNU Autoconf 2.64. Invocation command line was
15229
15230 CONFIG_FILES = $CONFIG_FILES
15231 CONFIG_HEADERS = $CONFIG_HEADERS
15232 CONFIG_LINKS = $CONFIG_LINKS
15233 CONFIG_COMMANDS = $CONFIG_COMMANDS
15234 $ $0 $@
15235
15236 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15237 "
15238
15239 _ACEOF
15240
15241 case $ac_config_files in *"
15242 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15243 esac
15244
15245
15246
15247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15248 # Files that config.status was made for.
15249 config_files="$ac_config_files"
15250 config_commands="$ac_config_commands"
15251
15252 _ACEOF
15253
15254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15255 ac_cs_usage="\
15256 \`$as_me' instantiates files and other configuration actions
15257 from templates according to the current configuration. Unless the files
15258 and actions are specified as TAGs, all are instantiated by default.
15259
15260 Usage: $0 [OPTION]... [TAG]...
15261
15262 -h, --help print this help, then exit
15263 -V, --version print version number and configuration settings, then exit
15264 -q, --quiet, --silent
15265 do not print progress messages
15266 -d, --debug don't remove temporary files
15267 --recheck update $as_me by reconfiguring in the same conditions
15268 --file=FILE[:TEMPLATE]
15269 instantiate the configuration file FILE
15270
15271 Configuration files:
15272 $config_files
15273
15274 Configuration commands:
15275 $config_commands
15276
15277 Report bugs to the package provider.
15278 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
15279 General help using GNU software: <http://www.gnu.org/gethelp/>."
15280
15281 _ACEOF
15282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15283 ac_cs_version="\\
15284 GNU Vtable Verification Runtime Library config.status 1.0
15285 configured by $0, generated by GNU Autoconf 2.64,
15286 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15287
15288 Copyright (C) 2009 Free Software Foundation, Inc.
15289 This config.status script is free software; the Free Software Foundation
15290 gives unlimited permission to copy, distribute and modify it."
15291
15292 ac_pwd='$ac_pwd'
15293 srcdir='$srcdir'
15294 INSTALL='$INSTALL'
15295 MKDIR_P='$MKDIR_P'
15296 AWK='$AWK'
15297 test -n "\$AWK" || AWK=awk
15298 _ACEOF
15299
15300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15301 # The default lists apply if the user does not specify any file.
15302 ac_need_defaults=:
15303 while test $# != 0
15304 do
15305 case $1 in
15306 --*=*)
15307 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15308 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15309 ac_shift=:
15310 ;;
15311 *)
15312 ac_option=$1
15313 ac_optarg=$2
15314 ac_shift=shift
15315 ;;
15316 esac
15317
15318 case $ac_option in
15319 # Handling of the options.
15320 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15321 ac_cs_recheck=: ;;
15322 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15323 $as_echo "$ac_cs_version"; exit ;;
15324 --debug | --debu | --deb | --de | --d | -d )
15325 debug=: ;;
15326 --file | --fil | --fi | --f )
15327 $ac_shift
15328 case $ac_optarg in
15329 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15330 esac
15331 as_fn_append CONFIG_FILES " '$ac_optarg'"
15332 ac_need_defaults=false;;
15333 --he | --h | --help | --hel | -h )
15334 $as_echo "$ac_cs_usage"; exit ;;
15335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15336 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15337 ac_cs_silent=: ;;
15338
15339 # This is an error.
15340 -*) as_fn_error "unrecognized option: \`$1'
15341 Try \`$0 --help' for more information." ;;
15342
15343 *) as_fn_append ac_config_targets " $1"
15344 ac_need_defaults=false ;;
15345
15346 esac
15347 shift
15348 done
15349
15350 ac_configure_extra_args=
15351
15352 if $ac_cs_silent; then
15353 exec 6>/dev/null
15354 ac_configure_extra_args="$ac_configure_extra_args --silent"
15355 fi
15356
15357 _ACEOF
15358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15359 if \$ac_cs_recheck; then
15360 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15361 shift
15362 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15363 CONFIG_SHELL='$SHELL'
15364 export CONFIG_SHELL
15365 exec "\$@"
15366 fi
15367
15368 _ACEOF
15369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15370 exec 5>>config.log
15371 {
15372 echo
15373 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15374 ## Running $as_me. ##
15375 _ASBOX
15376 $as_echo "$ac_log"
15377 } >&5
15378
15379 _ACEOF
15380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15381 #
15382 # INIT-COMMANDS
15383 #
15384
15385 srcdir="$srcdir"
15386 host="$host"
15387 target="$target"
15388 with_multisubdir="$with_multisubdir"
15389 with_multisrctop="$with_multisrctop"
15390 with_target_subdir="$with_target_subdir"
15391 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15392 multi_basedir="$multi_basedir"
15393 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15394 CC="$CC"
15395 CXX="$CXX"
15396 GFORTRAN="$GFORTRAN"
15397 GCJ="$GCJ"
15398 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15399
15400
15401 # The HP-UX ksh and POSIX shell print the target directory to stdout
15402 # if CDPATH is set.
15403 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15404
15405 sed_quote_subst='$sed_quote_subst'
15406 double_quote_subst='$double_quote_subst'
15407 delay_variable_subst='$delay_variable_subst'
15408 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15409 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15410 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15411 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15412 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15413 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15414 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15415 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15416 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15417 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15418 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15419 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15420 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15421 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15422 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15423 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15424 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15425 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15426 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15427 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15428 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15429 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15430 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15431 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15432 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15433 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15434 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15435 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15436 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15437 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15438 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15439 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15440 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15441 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15442 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15443 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15444 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15445 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15446 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15447 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15448 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15449 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15450 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15451 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15452 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15453 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15454 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15455 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15456 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"`'
15457 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15458 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15459 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15460 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15461 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15462 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15463 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15464 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15465 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15466 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15467 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15468 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15469 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15470 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15471 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15472 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15473 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15474 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15475 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15476 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15477 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15478 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15479 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15480 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15481 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15482 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15483 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15484 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15485 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15486 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15487 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15488 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15489 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15490 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15491 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15492 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15493 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15494 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15495 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15496 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15497 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15498 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15499 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15500 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15501 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15502 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15503 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15504 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15505 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15506 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15507 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15508 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15509 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15510 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15511 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15512 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15513 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15514 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15515 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15516 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15517 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15518 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15519 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15520 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15521 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15522 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15523 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15524 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15525 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15526 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15527 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15528 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15529 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15530 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15531 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15532 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15533 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15534 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15535 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15536 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15537 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15538 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15539 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15540 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15541 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15542 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15543 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15544 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15545 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15546 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15547 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15548 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15549 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15550 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15551 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15552 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15553 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15554 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15555 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15556 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15557 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15558 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15559 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15560 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15561 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15562 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15563 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15564 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15565 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15566 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15567 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15568 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15569 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15570 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15571 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15572 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15573 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15574 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15575 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15576 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15577 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15578 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15579 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15580 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15581 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15582 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15583
15584 LTCC='$LTCC'
15585 LTCFLAGS='$LTCFLAGS'
15586 compiler='$compiler_DEFAULT'
15587
15588 # A function that is used when there is no print builtin or printf.
15589 func_fallback_echo ()
15590 {
15591 eval 'cat <<_LTECHO_EOF
15592 \$1
15593 _LTECHO_EOF'
15594 }
15595
15596 # Quote evaled strings.
15597 for var in SHELL \
15598 ECHO \
15599 SED \
15600 GREP \
15601 EGREP \
15602 FGREP \
15603 LD \
15604 NM \
15605 LN_S \
15606 lt_SP2NL \
15607 lt_NL2SP \
15608 reload_flag \
15609 OBJDUMP \
15610 deplibs_check_method \
15611 file_magic_cmd \
15612 AR \
15613 AR_FLAGS \
15614 STRIP \
15615 RANLIB \
15616 CC \
15617 CFLAGS \
15618 compiler \
15619 lt_cv_sys_global_symbol_pipe \
15620 lt_cv_sys_global_symbol_to_cdecl \
15621 lt_cv_sys_global_symbol_to_c_name_address \
15622 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15623 lt_prog_compiler_no_builtin_flag \
15624 lt_prog_compiler_wl \
15625 lt_prog_compiler_pic \
15626 lt_prog_compiler_static \
15627 lt_cv_prog_compiler_c_o \
15628 need_locks \
15629 DSYMUTIL \
15630 NMEDIT \
15631 LIPO \
15632 OTOOL \
15633 OTOOL64 \
15634 shrext_cmds \
15635 export_dynamic_flag_spec \
15636 whole_archive_flag_spec \
15637 compiler_needs_object \
15638 with_gnu_ld \
15639 allow_undefined_flag \
15640 no_undefined_flag \
15641 hardcode_libdir_flag_spec \
15642 hardcode_libdir_flag_spec_ld \
15643 hardcode_libdir_separator \
15644 fix_srcfile_path \
15645 exclude_expsyms \
15646 include_expsyms \
15647 file_list_spec \
15648 variables_saved_for_relink \
15649 libname_spec \
15650 library_names_spec \
15651 soname_spec \
15652 install_override_mode \
15653 finish_eval \
15654 old_striplib \
15655 striplib \
15656 compiler_lib_search_dirs \
15657 predep_objects \
15658 postdep_objects \
15659 predeps \
15660 postdeps \
15661 compiler_lib_search_path \
15662 LD_CXX \
15663 reload_flag_CXX \
15664 compiler_CXX \
15665 lt_prog_compiler_no_builtin_flag_CXX \
15666 lt_prog_compiler_wl_CXX \
15667 lt_prog_compiler_pic_CXX \
15668 lt_prog_compiler_static_CXX \
15669 lt_cv_prog_compiler_c_o_CXX \
15670 export_dynamic_flag_spec_CXX \
15671 whole_archive_flag_spec_CXX \
15672 compiler_needs_object_CXX \
15673 with_gnu_ld_CXX \
15674 allow_undefined_flag_CXX \
15675 no_undefined_flag_CXX \
15676 hardcode_libdir_flag_spec_CXX \
15677 hardcode_libdir_flag_spec_ld_CXX \
15678 hardcode_libdir_separator_CXX \
15679 fix_srcfile_path_CXX \
15680 exclude_expsyms_CXX \
15681 include_expsyms_CXX \
15682 file_list_spec_CXX \
15683 compiler_lib_search_dirs_CXX \
15684 predep_objects_CXX \
15685 postdep_objects_CXX \
15686 predeps_CXX \
15687 postdeps_CXX \
15688 compiler_lib_search_path_CXX; do
15689 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15690 *[\\\\\\\`\\"\\\$]*)
15691 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15692 ;;
15693 *)
15694 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15695 ;;
15696 esac
15697 done
15698
15699 # Double-quote double-evaled strings.
15700 for var in reload_cmds \
15701 old_postinstall_cmds \
15702 old_postuninstall_cmds \
15703 old_archive_cmds \
15704 extract_expsyms_cmds \
15705 old_archive_from_new_cmds \
15706 old_archive_from_expsyms_cmds \
15707 archive_cmds \
15708 archive_expsym_cmds \
15709 module_cmds \
15710 module_expsym_cmds \
15711 export_symbols_cmds \
15712 prelink_cmds \
15713 postinstall_cmds \
15714 postuninstall_cmds \
15715 finish_cmds \
15716 sys_lib_search_path_spec \
15717 sys_lib_dlsearch_path_spec \
15718 reload_cmds_CXX \
15719 old_archive_cmds_CXX \
15720 old_archive_from_new_cmds_CXX \
15721 old_archive_from_expsyms_cmds_CXX \
15722 archive_cmds_CXX \
15723 archive_expsym_cmds_CXX \
15724 module_cmds_CXX \
15725 module_expsym_cmds_CXX \
15726 export_symbols_cmds_CXX \
15727 prelink_cmds_CXX; do
15728 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15729 *[\\\\\\\`\\"\\\$]*)
15730 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15731 ;;
15732 *)
15733 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15734 ;;
15735 esac
15736 done
15737
15738 ac_aux_dir='$ac_aux_dir'
15739 xsi_shell='$xsi_shell'
15740 lt_shell_append='$lt_shell_append'
15741
15742 # See if we are running on zsh, and set the options which allow our
15743 # commands through without removal of \ escapes INIT.
15744 if test -n "\${ZSH_VERSION+set}" ; then
15745 setopt NO_GLOB_SUBST
15746 fi
15747
15748
15749 PACKAGE='$PACKAGE'
15750 VERSION='$VERSION'
15751 TIMESTAMP='$TIMESTAMP'
15752 RM='$RM'
15753 ofile='$ofile'
15754
15755
15756
15757
15758
15759
15760 _ACEOF
15761
15762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15763
15764 # Handling of arguments.
15765 for ac_config_target in $ac_config_targets
15766 do
15767 case $ac_config_target in
15768 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15769 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15770 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15771 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15772 "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
15773 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15774
15775 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15776 esac
15777 done
15778
15779
15780 # If the user did not use the arguments to specify the items to instantiate,
15781 # then the envvar interface is used. Set only those that are not.
15782 # We use the long form for the default assignment because of an extremely
15783 # bizarre bug on SunOS 4.1.3.
15784 if $ac_need_defaults; then
15785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15786 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15787 fi
15788
15789 # Have a temporary directory for convenience. Make it in the build tree
15790 # simply because there is no reason against having it here, and in addition,
15791 # creating and moving files from /tmp can sometimes cause problems.
15792 # Hook for its removal unless debugging.
15793 # Note that there is a small window in which the directory will not be cleaned:
15794 # after its creation but before its name has been assigned to `$tmp'.
15795 $debug ||
15796 {
15797 tmp=
15798 trap 'exit_status=$?
15799 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15800 ' 0
15801 trap 'as_fn_exit 1' 1 2 13 15
15802 }
15803 # Create a (secure) tmp directory for tmp files.
15804
15805 {
15806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15807 test -n "$tmp" && test -d "$tmp"
15808 } ||
15809 {
15810 tmp=./conf$$-$RANDOM
15811 (umask 077 && mkdir "$tmp")
15812 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15813
15814 # Set up the scripts for CONFIG_FILES section.
15815 # No need to generate them if there are no CONFIG_FILES.
15816 # This happens for instance with `./config.status config.h'.
15817 if test -n "$CONFIG_FILES"; then
15818
15819
15820 ac_cr=`echo X | tr X '\015'`
15821 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15822 # But we know of no other shell where ac_cr would be empty at this
15823 # point, so we can use a bashism as a fallback.
15824 if test "x$ac_cr" = x; then
15825 eval ac_cr=\$\'\\r\'
15826 fi
15827 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15828 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15829 ac_cs_awk_cr='\r'
15830 else
15831 ac_cs_awk_cr=$ac_cr
15832 fi
15833
15834 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15835 _ACEOF
15836
15837
15838 {
15839 echo "cat >conf$$subs.awk <<_ACEOF" &&
15840 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15841 echo "_ACEOF"
15842 } >conf$$subs.sh ||
15843 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15844 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15845 ac_delim='%!_!# '
15846 for ac_last_try in false false false false false :; do
15847 . ./conf$$subs.sh ||
15848 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15849
15850 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15851 if test $ac_delim_n = $ac_delim_num; then
15852 break
15853 elif $ac_last_try; then
15854 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15855 else
15856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15857 fi
15858 done
15859 rm -f conf$$subs.sh
15860
15861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15862 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15863 _ACEOF
15864 sed -n '
15865 h
15866 s/^/S["/; s/!.*/"]=/
15867 p
15868 g
15869 s/^[^!]*!//
15870 :repl
15871 t repl
15872 s/'"$ac_delim"'$//
15873 t delim
15874 :nl
15875 h
15876 s/\(.\{148\}\).*/\1/
15877 t more1
15878 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15879 p
15880 n
15881 b repl
15882 :more1
15883 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15884 p
15885 g
15886 s/.\{148\}//
15887 t nl
15888 :delim
15889 h
15890 s/\(.\{148\}\).*/\1/
15891 t more2
15892 s/["\\]/\\&/g; s/^/"/; s/$/"/
15893 p
15894 b
15895 :more2
15896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15897 p
15898 g
15899 s/.\{148\}//
15900 t delim
15901 ' <conf$$subs.awk | sed '
15902 /^[^""]/{
15903 N
15904 s/\n//
15905 }
15906 ' >>$CONFIG_STATUS || ac_write_fail=1
15907 rm -f conf$$subs.awk
15908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15909 _ACAWK
15910 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15911 for (key in S) S_is_set[key] = 1
15912 FS = "\a"
15913
15914 }
15915 {
15916 line = $ 0
15917 nfields = split(line, field, "@")
15918 substed = 0
15919 len = length(field[1])
15920 for (i = 2; i < nfields; i++) {
15921 key = field[i]
15922 keylen = length(key)
15923 if (S_is_set[key]) {
15924 value = S[key]
15925 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15926 len += length(value) + length(field[++i])
15927 substed = 1
15928 } else
15929 len += 1 + keylen
15930 }
15931
15932 print line
15933 }
15934
15935 _ACAWK
15936 _ACEOF
15937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15938 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15939 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15940 else
15941 cat
15942 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15943 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15944 _ACEOF
15945
15946 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15947 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15948 # trailing colons and then remove the whole line if VPATH becomes empty
15949 # (actually we leave an empty line to preserve line numbers).
15950 if test "x$srcdir" = x.; then
15951 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15952 s/:*\$(srcdir):*/:/
15953 s/:*\${srcdir}:*/:/
15954 s/:*@srcdir@:*/:/
15955 s/^\([^=]*=[ ]*\):*/\1/
15956 s/:*$//
15957 s/^[^=]*=[ ]*$//
15958 }'
15959 fi
15960
15961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15962 fi # test -n "$CONFIG_FILES"
15963
15964
15965 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15966 shift
15967 for ac_tag
15968 do
15969 case $ac_tag in
15970 :[FHLC]) ac_mode=$ac_tag; continue;;
15971 esac
15972 case $ac_mode$ac_tag in
15973 :[FHL]*:*);;
15974 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15975 :[FH]-) ac_tag=-:-;;
15976 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15977 esac
15978 ac_save_IFS=$IFS
15979 IFS=:
15980 set x $ac_tag
15981 IFS=$ac_save_IFS
15982 shift
15983 ac_file=$1
15984 shift
15985
15986 case $ac_mode in
15987 :L) ac_source=$1;;
15988 :[FH])
15989 ac_file_inputs=
15990 for ac_f
15991 do
15992 case $ac_f in
15993 -) ac_f="$tmp/stdin";;
15994 *) # Look for the file first in the build tree, then in the source tree
15995 # (if the path is not absolute). The absolute path cannot be DOS-style,
15996 # because $ac_f cannot contain `:'.
15997 test -f "$ac_f" ||
15998 case $ac_f in
15999 [\\/$]*) false;;
16000 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16001 esac ||
16002 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16003 esac
16004 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16005 as_fn_append ac_file_inputs " '$ac_f'"
16006 done
16007
16008 # Let's still pretend it is `configure' which instantiates (i.e., don't
16009 # use $as_me), people would be surprised to read:
16010 # /* config.h. Generated by config.status. */
16011 configure_input='Generated from '`
16012 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16013 `' by configure.'
16014 if test x"$ac_file" != x-; then
16015 configure_input="$ac_file. $configure_input"
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16017 $as_echo "$as_me: creating $ac_file" >&6;}
16018 fi
16019 # Neutralize special characters interpreted by sed in replacement strings.
16020 case $configure_input in #(
16021 *\&* | *\|* | *\\* )
16022 ac_sed_conf_input=`$as_echo "$configure_input" |
16023 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16024 *) ac_sed_conf_input=$configure_input;;
16025 esac
16026
16027 case $ac_tag in
16028 *:-:* | *:-) cat >"$tmp/stdin" \
16029 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16030 esac
16031 ;;
16032 esac
16033
16034 ac_dir=`$as_dirname -- "$ac_file" ||
16035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16036 X"$ac_file" : 'X\(//\)[^/]' \| \
16037 X"$ac_file" : 'X\(//\)$' \| \
16038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16039 $as_echo X"$ac_file" |
16040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16041 s//\1/
16042 q
16043 }
16044 /^X\(\/\/\)[^/].*/{
16045 s//\1/
16046 q
16047 }
16048 /^X\(\/\/\)$/{
16049 s//\1/
16050 q
16051 }
16052 /^X\(\/\).*/{
16053 s//\1/
16054 q
16055 }
16056 s/.*/./; q'`
16057 as_dir="$ac_dir"; as_fn_mkdir_p
16058 ac_builddir=.
16059
16060 case "$ac_dir" in
16061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16062 *)
16063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16064 # A ".." for each directory in $ac_dir_suffix.
16065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16066 case $ac_top_builddir_sub in
16067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16069 esac ;;
16070 esac
16071 ac_abs_top_builddir=$ac_pwd
16072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16073 # for backward compatibility:
16074 ac_top_builddir=$ac_top_build_prefix
16075
16076 case $srcdir in
16077 .) # We are building in place.
16078 ac_srcdir=.
16079 ac_top_srcdir=$ac_top_builddir_sub
16080 ac_abs_top_srcdir=$ac_pwd ;;
16081 [\\/]* | ?:[\\/]* ) # Absolute name.
16082 ac_srcdir=$srcdir$ac_dir_suffix;
16083 ac_top_srcdir=$srcdir
16084 ac_abs_top_srcdir=$srcdir ;;
16085 *) # Relative name.
16086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16087 ac_top_srcdir=$ac_top_build_prefix$srcdir
16088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16089 esac
16090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16091
16092
16093 case $ac_mode in
16094 :F)
16095 #
16096 # CONFIG_FILE
16097 #
16098
16099 case $INSTALL in
16100 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16101 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16102 esac
16103 ac_MKDIR_P=$MKDIR_P
16104 case $MKDIR_P in
16105 [\\/$]* | ?:[\\/]* ) ;;
16106 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16107 esac
16108 _ACEOF
16109
16110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16111 # If the template does not know about datarootdir, expand it.
16112 # FIXME: This hack should be removed a few years after 2.60.
16113 ac_datarootdir_hack=; ac_datarootdir_seen=
16114 ac_sed_dataroot='
16115 /datarootdir/ {
16116 p
16117 q
16118 }
16119 /@datadir@/p
16120 /@docdir@/p
16121 /@infodir@/p
16122 /@localedir@/p
16123 /@mandir@/p'
16124 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16125 *datarootdir*) ac_datarootdir_seen=yes;;
16126 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16128 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16129 _ACEOF
16130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16131 ac_datarootdir_hack='
16132 s&@datadir@&$datadir&g
16133 s&@docdir@&$docdir&g
16134 s&@infodir@&$infodir&g
16135 s&@localedir@&$localedir&g
16136 s&@mandir@&$mandir&g
16137 s&\\\${datarootdir}&$datarootdir&g' ;;
16138 esac
16139 _ACEOF
16140
16141 # Neutralize VPATH when `$srcdir' = `.'.
16142 # Shell code in configure.ac might set extrasub.
16143 # FIXME: do we really want to maintain this feature?
16144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16145 ac_sed_extra="$ac_vpsub
16146 $extrasub
16147 _ACEOF
16148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16149 :t
16150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16151 s|@configure_input@|$ac_sed_conf_input|;t t
16152 s&@top_builddir@&$ac_top_builddir_sub&;t t
16153 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16154 s&@srcdir@&$ac_srcdir&;t t
16155 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16156 s&@top_srcdir@&$ac_top_srcdir&;t t
16157 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16158 s&@builddir@&$ac_builddir&;t t
16159 s&@abs_builddir@&$ac_abs_builddir&;t t
16160 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16161 s&@INSTALL@&$ac_INSTALL&;t t
16162 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16163 $ac_datarootdir_hack
16164 "
16165 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16166 || as_fn_error "could not create $ac_file" "$LINENO" 5
16167
16168 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16169 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16170 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16172 which seems to be undefined. Please make sure it is defined." >&5
16173 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16174 which seems to be undefined. Please make sure it is defined." >&2;}
16175
16176 rm -f "$tmp/stdin"
16177 case $ac_file in
16178 -) cat "$tmp/out" && rm -f "$tmp/out";;
16179 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16180 esac \
16181 || as_fn_error "could not create $ac_file" "$LINENO" 5
16182 ;;
16183
16184
16185 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16186 $as_echo "$as_me: executing $ac_file commands" >&6;}
16187 ;;
16188 esac
16189
16190
16191 case $ac_file$ac_mode in
16192 "default-1":C)
16193 # Only add multilib support code if we just rebuilt the top-level
16194 # Makefile.
16195 case " $CONFIG_FILES " in
16196 *" Makefile "*)
16197 ac_file=Makefile . ${multi_basedir}/config-ml.in
16198 ;;
16199 esac ;;
16200 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16201 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16202 # are listed without --file. Let's play safe and only enable the eval
16203 # if we detect the quoting.
16204 case $CONFIG_FILES in
16205 *\'*) eval set x "$CONFIG_FILES" ;;
16206 *) set x $CONFIG_FILES ;;
16207 esac
16208 shift
16209 for mf
16210 do
16211 # Strip MF so we end up with the name of the file.
16212 mf=`echo "$mf" | sed -e 's/:.*$//'`
16213 # Check whether this is an Automake generated Makefile or not.
16214 # We used to match only the files named `Makefile.in', but
16215 # some people rename them; so instead we look at the file content.
16216 # Grep'ing the first line is not enough: some people post-process
16217 # each Makefile.in and add a new line on top of each file to say so.
16218 # Grep'ing the whole file is not good either: AIX grep has a line
16219 # limit of 2048, but all sed's we know have understand at least 4000.
16220 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16221 dirpart=`$as_dirname -- "$mf" ||
16222 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16223 X"$mf" : 'X\(//\)[^/]' \| \
16224 X"$mf" : 'X\(//\)$' \| \
16225 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16226 $as_echo X"$mf" |
16227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16228 s//\1/
16229 q
16230 }
16231 /^X\(\/\/\)[^/].*/{
16232 s//\1/
16233 q
16234 }
16235 /^X\(\/\/\)$/{
16236 s//\1/
16237 q
16238 }
16239 /^X\(\/\).*/{
16240 s//\1/
16241 q
16242 }
16243 s/.*/./; q'`
16244 else
16245 continue
16246 fi
16247 # Extract the definition of DEPDIR, am__include, and am__quote
16248 # from the Makefile without running `make'.
16249 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16250 test -z "$DEPDIR" && continue
16251 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16252 test -z "am__include" && continue
16253 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16254 # When using ansi2knr, U may be empty or an underscore; expand it
16255 U=`sed -n 's/^U = //p' < "$mf"`
16256 # Find all dependency output files, they are included files with
16257 # $(DEPDIR) in their names. We invoke sed twice because it is the
16258 # simplest approach to changing $(DEPDIR) to its actual value in the
16259 # expansion.
16260 for file in `sed -n "
16261 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16262 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16263 # Make sure the directory exists.
16264 test -f "$dirpart/$file" && continue
16265 fdir=`$as_dirname -- "$file" ||
16266 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16267 X"$file" : 'X\(//\)[^/]' \| \
16268 X"$file" : 'X\(//\)$' \| \
16269 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16270 $as_echo X"$file" |
16271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16272 s//\1/
16273 q
16274 }
16275 /^X\(\/\/\)[^/].*/{
16276 s//\1/
16277 q
16278 }
16279 /^X\(\/\/\)$/{
16280 s//\1/
16281 q
16282 }
16283 /^X\(\/\).*/{
16284 s//\1/
16285 q
16286 }
16287 s/.*/./; q'`
16288 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16289 # echo "creating $dirpart/$file"
16290 echo '# dummy' > "$dirpart/$file"
16291 done
16292 done
16293 }
16294 ;;
16295 "libtool":C)
16296
16297 # See if we are running on zsh, and set the options which allow our
16298 # commands through without removal of \ escapes.
16299 if test -n "${ZSH_VERSION+set}" ; then
16300 setopt NO_GLOB_SUBST
16301 fi
16302
16303 cfgfile="${ofile}T"
16304 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16305 $RM "$cfgfile"
16306
16307 cat <<_LT_EOF >> "$cfgfile"
16308 #! $SHELL
16309
16310 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16311 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16313 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16314 #
16315 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16316 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16317 # Written by Gordon Matzigkeit, 1996
16318 #
16319 # This file is part of GNU Libtool.
16320 #
16321 # GNU Libtool is free software; you can redistribute it and/or
16322 # modify it under the terms of the GNU General Public License as
16323 # published by the Free Software Foundation; either version 2 of
16324 # the License, or (at your option) any later version.
16325 #
16326 # As a special exception to the GNU General Public License,
16327 # if you distribute this file as part of a program or library that
16328 # is built using GNU Libtool, you may include this file under the
16329 # same distribution terms that you use for the rest of that program.
16330 #
16331 # GNU Libtool is distributed in the hope that it will be useful,
16332 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16333 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16334 # GNU General Public License for more details.
16335 #
16336 # You should have received a copy of the GNU General Public License
16337 # along with GNU Libtool; see the file COPYING. If not, a copy
16338 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16339 # obtained by writing to the Free Software Foundation, Inc.,
16340 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16341
16342
16343 # The names of the tagged configurations supported by this script.
16344 available_tags="CXX "
16345
16346 # ### BEGIN LIBTOOL CONFIG
16347
16348 # Which release of libtool.m4 was used?
16349 macro_version=$macro_version
16350 macro_revision=$macro_revision
16351
16352 # Whether or not to build shared libraries.
16353 build_libtool_libs=$enable_shared
16354
16355 # Whether or not to build static libraries.
16356 build_old_libs=$enable_static
16357
16358 # What type of objects to build.
16359 pic_mode=$pic_mode
16360
16361 # Whether or not to optimize for fast installation.
16362 fast_install=$enable_fast_install
16363
16364 # Shell to use when invoking shell scripts.
16365 SHELL=$lt_SHELL
16366
16367 # An echo program that protects backslashes.
16368 ECHO=$lt_ECHO
16369
16370 # The host system.
16371 host_alias=$host_alias
16372 host=$host
16373 host_os=$host_os
16374
16375 # The build system.
16376 build_alias=$build_alias
16377 build=$build
16378 build_os=$build_os
16379
16380 # A sed program that does not truncate output.
16381 SED=$lt_SED
16382
16383 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16384 Xsed="\$SED -e 1s/^X//"
16385
16386 # A grep program that handles long lines.
16387 GREP=$lt_GREP
16388
16389 # An ERE matcher.
16390 EGREP=$lt_EGREP
16391
16392 # A literal string matcher.
16393 FGREP=$lt_FGREP
16394
16395 # A BSD- or MS-compatible name lister.
16396 NM=$lt_NM
16397
16398 # Whether we need soft or hard links.
16399 LN_S=$lt_LN_S
16400
16401 # What is the maximum length of a command?
16402 max_cmd_len=$max_cmd_len
16403
16404 # Object file suffix (normally "o").
16405 objext=$ac_objext
16406
16407 # Executable file suffix (normally "").
16408 exeext=$exeext
16409
16410 # whether the shell understands "unset".
16411 lt_unset=$lt_unset
16412
16413 # turn spaces into newlines.
16414 SP2NL=$lt_lt_SP2NL
16415
16416 # turn newlines into spaces.
16417 NL2SP=$lt_lt_NL2SP
16418
16419 # An object symbol dumper.
16420 OBJDUMP=$lt_OBJDUMP
16421
16422 # Method to check whether dependent libraries are shared objects.
16423 deplibs_check_method=$lt_deplibs_check_method
16424
16425 # Command to use when deplibs_check_method == "file_magic".
16426 file_magic_cmd=$lt_file_magic_cmd
16427
16428 # The archiver.
16429 AR=$lt_AR
16430 AR_FLAGS=$lt_AR_FLAGS
16431
16432 # A symbol stripping program.
16433 STRIP=$lt_STRIP
16434
16435 # Commands used to install an old-style archive.
16436 RANLIB=$lt_RANLIB
16437 old_postinstall_cmds=$lt_old_postinstall_cmds
16438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16439
16440 # Whether to use a lock for old archive extraction.
16441 lock_old_archive_extraction=$lock_old_archive_extraction
16442
16443 # A C compiler.
16444 LTCC=$lt_CC
16445
16446 # LTCC compiler flags.
16447 LTCFLAGS=$lt_CFLAGS
16448
16449 # Take the output of nm and produce a listing of raw symbols and C names.
16450 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16451
16452 # Transform the output of nm in a proper C declaration.
16453 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16454
16455 # Transform the output of nm in a C name address pair.
16456 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16457
16458 # Transform the output of nm in a C name address pair when lib prefix is needed.
16459 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16460
16461 # The name of the directory that contains temporary libtool files.
16462 objdir=$objdir
16463
16464 # Used to examine libraries when file_magic_cmd begins with "file".
16465 MAGIC_CMD=$MAGIC_CMD
16466
16467 # Must we lock files when doing compilation?
16468 need_locks=$lt_need_locks
16469
16470 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16471 DSYMUTIL=$lt_DSYMUTIL
16472
16473 # Tool to change global to local symbols on Mac OS X.
16474 NMEDIT=$lt_NMEDIT
16475
16476 # Tool to manipulate fat objects and archives on Mac OS X.
16477 LIPO=$lt_LIPO
16478
16479 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16480 OTOOL=$lt_OTOOL
16481
16482 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16483 OTOOL64=$lt_OTOOL64
16484
16485 # Old archive suffix (normally "a").
16486 libext=$libext
16487
16488 # Shared library suffix (normally ".so").
16489 shrext_cmds=$lt_shrext_cmds
16490
16491 # The commands to extract the exported symbol list from a shared archive.
16492 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16493
16494 # Variables whose values should be saved in libtool wrapper scripts and
16495 # restored at link time.
16496 variables_saved_for_relink=$lt_variables_saved_for_relink
16497
16498 # Do we need the "lib" prefix for modules?
16499 need_lib_prefix=$need_lib_prefix
16500
16501 # Do we need a version for libraries?
16502 need_version=$need_version
16503
16504 # Library versioning type.
16505 version_type=$version_type
16506
16507 # Shared library runtime path variable.
16508 runpath_var=$runpath_var
16509
16510 # Shared library path variable.
16511 shlibpath_var=$shlibpath_var
16512
16513 # Is shlibpath searched before the hard-coded library search path?
16514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16515
16516 # Format of library name prefix.
16517 libname_spec=$lt_libname_spec
16518
16519 # List of archive names. First name is the real one, the rest are links.
16520 # The last name is the one that the linker finds with -lNAME
16521 library_names_spec=$lt_library_names_spec
16522
16523 # The coded name of the library, if different from the real name.
16524 soname_spec=$lt_soname_spec
16525
16526 # Permission mode override for installation of shared libraries.
16527 install_override_mode=$lt_install_override_mode
16528
16529 # Command to use after installation of a shared archive.
16530 postinstall_cmds=$lt_postinstall_cmds
16531
16532 # Command to use after uninstallation of a shared archive.
16533 postuninstall_cmds=$lt_postuninstall_cmds
16534
16535 # Commands used to finish a libtool library installation in a directory.
16536 finish_cmds=$lt_finish_cmds
16537
16538 # As "finish_cmds", except a single script fragment to be evaled but
16539 # not shown.
16540 finish_eval=$lt_finish_eval
16541
16542 # Whether we should hardcode library paths into libraries.
16543 hardcode_into_libs=$hardcode_into_libs
16544
16545 # Compile-time system search path for libraries.
16546 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16547
16548 # Run-time system search path for libraries.
16549 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16550
16551 # Whether dlopen is supported.
16552 dlopen_support=$enable_dlopen
16553
16554 # Whether dlopen of programs is supported.
16555 dlopen_self=$enable_dlopen_self
16556
16557 # Whether dlopen of statically linked programs is supported.
16558 dlopen_self_static=$enable_dlopen_self_static
16559
16560 # Commands to strip libraries.
16561 old_striplib=$lt_old_striplib
16562 striplib=$lt_striplib
16563
16564
16565 # The linker used to build libraries.
16566 LD=$lt_LD
16567
16568 # How to create reloadable object files.
16569 reload_flag=$lt_reload_flag
16570 reload_cmds=$lt_reload_cmds
16571
16572 # Commands used to build an old-style archive.
16573 old_archive_cmds=$lt_old_archive_cmds
16574
16575 # A language specific compiler.
16576 CC=$lt_compiler
16577
16578 # Is the compiler the GNU compiler?
16579 with_gcc=$GCC
16580
16581 # Compiler flag to turn off builtin functions.
16582 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16583
16584 # How to pass a linker flag through the compiler.
16585 wl=$lt_lt_prog_compiler_wl
16586
16587 # Additional compiler flags for building library objects.
16588 pic_flag=$lt_lt_prog_compiler_pic
16589
16590 # Compiler flag to prevent dynamic linking.
16591 link_static_flag=$lt_lt_prog_compiler_static
16592
16593 # Does compiler simultaneously support -c and -o options?
16594 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16595
16596 # Whether or not to add -lc for building shared libraries.
16597 build_libtool_need_lc=$archive_cmds_need_lc
16598
16599 # Whether or not to disallow shared libs when runtime libs are static.
16600 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16601
16602 # Compiler flag to allow reflexive dlopens.
16603 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16604
16605 # Compiler flag to generate shared objects directly from archives.
16606 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16607
16608 # Whether the compiler copes with passing no objects directly.
16609 compiler_needs_object=$lt_compiler_needs_object
16610
16611 # Create an old-style archive from a shared archive.
16612 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16613
16614 # Create a temporary old-style archive to link instead of a shared archive.
16615 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16616
16617 # Commands used to build a shared archive.
16618 archive_cmds=$lt_archive_cmds
16619 archive_expsym_cmds=$lt_archive_expsym_cmds
16620
16621 # Commands used to build a loadable module if different from building
16622 # a shared archive.
16623 module_cmds=$lt_module_cmds
16624 module_expsym_cmds=$lt_module_expsym_cmds
16625
16626 # Whether we are building with GNU ld or not.
16627 with_gnu_ld=$lt_with_gnu_ld
16628
16629 # Flag that allows shared libraries with undefined symbols to be built.
16630 allow_undefined_flag=$lt_allow_undefined_flag
16631
16632 # Flag that enforces no undefined symbols.
16633 no_undefined_flag=$lt_no_undefined_flag
16634
16635 # Flag to hardcode \$libdir into a binary during linking.
16636 # This must work even if \$libdir does not exist
16637 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16638
16639 # If ld is used when linking, flag to hardcode \$libdir into a binary
16640 # during linking. This must work even if \$libdir does not exist.
16641 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16642
16643 # Whether we need a single "-rpath" flag with a separated argument.
16644 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16645
16646 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16647 # DIR into the resulting binary.
16648 hardcode_direct=$hardcode_direct
16649
16650 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16651 # DIR into the resulting binary and the resulting library dependency is
16652 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16653 # library is relocated.
16654 hardcode_direct_absolute=$hardcode_direct_absolute
16655
16656 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16657 # into the resulting binary.
16658 hardcode_minus_L=$hardcode_minus_L
16659
16660 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16661 # into the resulting binary.
16662 hardcode_shlibpath_var=$hardcode_shlibpath_var
16663
16664 # Set to "yes" if building a shared library automatically hardcodes DIR
16665 # into the library and all subsequent libraries and executables linked
16666 # against it.
16667 hardcode_automatic=$hardcode_automatic
16668
16669 # Set to yes if linker adds runtime paths of dependent libraries
16670 # to runtime path list.
16671 inherit_rpath=$inherit_rpath
16672
16673 # Whether libtool must link a program against all its dependency libraries.
16674 link_all_deplibs=$link_all_deplibs
16675
16676 # Fix the shell variable \$srcfile for the compiler.
16677 fix_srcfile_path=$lt_fix_srcfile_path
16678
16679 # Set to "yes" if exported symbols are required.
16680 always_export_symbols=$always_export_symbols
16681
16682 # The commands to list exported symbols.
16683 export_symbols_cmds=$lt_export_symbols_cmds
16684
16685 # Symbols that should not be listed in the preloaded symbols.
16686 exclude_expsyms=$lt_exclude_expsyms
16687
16688 # Symbols that must always be exported.
16689 include_expsyms=$lt_include_expsyms
16690
16691 # Commands necessary for linking programs (against libraries) with templates.
16692 prelink_cmds=$lt_prelink_cmds
16693
16694 # Specify filename containing input files.
16695 file_list_spec=$lt_file_list_spec
16696
16697 # How to hardcode a shared library path into an executable.
16698 hardcode_action=$hardcode_action
16699
16700 # The directories searched by this compiler when creating a shared library.
16701 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16702
16703 # Dependencies to place before and after the objects being linked to
16704 # create a shared library.
16705 predep_objects=$lt_predep_objects
16706 postdep_objects=$lt_postdep_objects
16707 predeps=$lt_predeps
16708 postdeps=$lt_postdeps
16709
16710 # The library search path used internally by the compiler when linking
16711 # a shared library.
16712 compiler_lib_search_path=$lt_compiler_lib_search_path
16713
16714 # ### END LIBTOOL CONFIG
16715
16716 _LT_EOF
16717
16718 case $host_os in
16719 aix3*)
16720 cat <<\_LT_EOF >> "$cfgfile"
16721 # AIX sometimes has problems with the GCC collect2 program. For some
16722 # reason, if we set the COLLECT_NAMES environment variable, the problems
16723 # vanish in a puff of smoke.
16724 if test "X${COLLECT_NAMES+set}" != Xset; then
16725 COLLECT_NAMES=
16726 export COLLECT_NAMES
16727 fi
16728 _LT_EOF
16729 ;;
16730 esac
16731
16732
16733 ltmain="$ac_aux_dir/ltmain.sh"
16734
16735
16736 # We use sed instead of cat because bash on DJGPP gets confused if
16737 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16738 # text mode, it properly converts lines to CR/LF. This bash problem
16739 # is reportedly fixed, but why not run on old versions too?
16740 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16741 || (rm -f "$cfgfile"; exit 1)
16742
16743 case $xsi_shell in
16744 yes)
16745 cat << \_LT_EOF >> "$cfgfile"
16746
16747 # func_dirname file append nondir_replacement
16748 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16749 # otherwise set result to NONDIR_REPLACEMENT.
16750 func_dirname ()
16751 {
16752 case ${1} in
16753 */*) func_dirname_result="${1%/*}${2}" ;;
16754 * ) func_dirname_result="${3}" ;;
16755 esac
16756 }
16757
16758 # func_basename file
16759 func_basename ()
16760 {
16761 func_basename_result="${1##*/}"
16762 }
16763
16764 # func_dirname_and_basename file append nondir_replacement
16765 # perform func_basename and func_dirname in a single function
16766 # call:
16767 # dirname: Compute the dirname of FILE. If nonempty,
16768 # add APPEND to the result, otherwise set result
16769 # to NONDIR_REPLACEMENT.
16770 # value returned in "$func_dirname_result"
16771 # basename: Compute filename of FILE.
16772 # value retuned in "$func_basename_result"
16773 # Implementation must be kept synchronized with func_dirname
16774 # and func_basename. For efficiency, we do not delegate to
16775 # those functions but instead duplicate the functionality here.
16776 func_dirname_and_basename ()
16777 {
16778 case ${1} in
16779 */*) func_dirname_result="${1%/*}${2}" ;;
16780 * ) func_dirname_result="${3}" ;;
16781 esac
16782 func_basename_result="${1##*/}"
16783 }
16784
16785 # func_stripname prefix suffix name
16786 # strip PREFIX and SUFFIX off of NAME.
16787 # PREFIX and SUFFIX must not contain globbing or regex special
16788 # characters, hashes, percent signs, but SUFFIX may contain a leading
16789 # dot (in which case that matches only a dot).
16790 func_stripname ()
16791 {
16792 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16793 # positional parameters, so assign one to ordinary parameter first.
16794 func_stripname_result=${3}
16795 func_stripname_result=${func_stripname_result#"${1}"}
16796 func_stripname_result=${func_stripname_result%"${2}"}
16797 }
16798
16799 # func_opt_split
16800 func_opt_split ()
16801 {
16802 func_opt_split_opt=${1%%=*}
16803 func_opt_split_arg=${1#*=}
16804 }
16805
16806 # func_lo2o object
16807 func_lo2o ()
16808 {
16809 case ${1} in
16810 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16811 *) func_lo2o_result=${1} ;;
16812 esac
16813 }
16814
16815 # func_xform libobj-or-source
16816 func_xform ()
16817 {
16818 func_xform_result=${1%.*}.lo
16819 }
16820
16821 # func_arith arithmetic-term...
16822 func_arith ()
16823 {
16824 func_arith_result=$(( $* ))
16825 }
16826
16827 # func_len string
16828 # STRING may not start with a hyphen.
16829 func_len ()
16830 {
16831 func_len_result=${#1}
16832 }
16833
16834 _LT_EOF
16835 ;;
16836 *) # Bourne compatible functions.
16837 cat << \_LT_EOF >> "$cfgfile"
16838
16839 # func_dirname file append nondir_replacement
16840 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16841 # otherwise set result to NONDIR_REPLACEMENT.
16842 func_dirname ()
16843 {
16844 # Extract subdirectory from the argument.
16845 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16846 if test "X$func_dirname_result" = "X${1}"; then
16847 func_dirname_result="${3}"
16848 else
16849 func_dirname_result="$func_dirname_result${2}"
16850 fi
16851 }
16852
16853 # func_basename file
16854 func_basename ()
16855 {
16856 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16857 }
16858
16859
16860 # func_stripname prefix suffix name
16861 # strip PREFIX and SUFFIX off of NAME.
16862 # PREFIX and SUFFIX must not contain globbing or regex special
16863 # characters, hashes, percent signs, but SUFFIX may contain a leading
16864 # dot (in which case that matches only a dot).
16865 # func_strip_suffix prefix name
16866 func_stripname ()
16867 {
16868 case ${2} in
16869 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16870 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16871 esac
16872 }
16873
16874 # sed scripts:
16875 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16876 my_sed_long_arg='1s/^-[^=]*=//'
16877
16878 # func_opt_split
16879 func_opt_split ()
16880 {
16881 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16882 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16883 }
16884
16885 # func_lo2o object
16886 func_lo2o ()
16887 {
16888 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16889 }
16890
16891 # func_xform libobj-or-source
16892 func_xform ()
16893 {
16894 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16895 }
16896
16897 # func_arith arithmetic-term...
16898 func_arith ()
16899 {
16900 func_arith_result=`expr "$@"`
16901 }
16902
16903 # func_len string
16904 # STRING may not start with a hyphen.
16905 func_len ()
16906 {
16907 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16908 }
16909
16910 _LT_EOF
16911 esac
16912
16913 case $lt_shell_append in
16914 yes)
16915 cat << \_LT_EOF >> "$cfgfile"
16916
16917 # func_append var value
16918 # Append VALUE to the end of shell variable VAR.
16919 func_append ()
16920 {
16921 eval "$1+=\$2"
16922 }
16923 _LT_EOF
16924 ;;
16925 *)
16926 cat << \_LT_EOF >> "$cfgfile"
16927
16928 # func_append var value
16929 # Append VALUE to the end of shell variable VAR.
16930 func_append ()
16931 {
16932 eval "$1=\$$1\$2"
16933 }
16934
16935 _LT_EOF
16936 ;;
16937 esac
16938
16939
16940 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16941 || (rm -f "$cfgfile"; exit 1)
16942
16943 mv -f "$cfgfile" "$ofile" ||
16944 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16945 chmod +x "$ofile"
16946
16947
16948 cat <<_LT_EOF >> "$ofile"
16949
16950 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16951
16952 # The linker used to build libraries.
16953 LD=$lt_LD_CXX
16954
16955 # How to create reloadable object files.
16956 reload_flag=$lt_reload_flag_CXX
16957 reload_cmds=$lt_reload_cmds_CXX
16958
16959 # Commands used to build an old-style archive.
16960 old_archive_cmds=$lt_old_archive_cmds_CXX
16961
16962 # A language specific compiler.
16963 CC=$lt_compiler_CXX
16964
16965 # Is the compiler the GNU compiler?
16966 with_gcc=$GCC_CXX
16967
16968 # Compiler flag to turn off builtin functions.
16969 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16970
16971 # How to pass a linker flag through the compiler.
16972 wl=$lt_lt_prog_compiler_wl_CXX
16973
16974 # Additional compiler flags for building library objects.
16975 pic_flag=$lt_lt_prog_compiler_pic_CXX
16976
16977 # Compiler flag to prevent dynamic linking.
16978 link_static_flag=$lt_lt_prog_compiler_static_CXX
16979
16980 # Does compiler simultaneously support -c and -o options?
16981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16982
16983 # Whether or not to add -lc for building shared libraries.
16984 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16985
16986 # Whether or not to disallow shared libs when runtime libs are static.
16987 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16988
16989 # Compiler flag to allow reflexive dlopens.
16990 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16991
16992 # Compiler flag to generate shared objects directly from archives.
16993 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16994
16995 # Whether the compiler copes with passing no objects directly.
16996 compiler_needs_object=$lt_compiler_needs_object_CXX
16997
16998 # Create an old-style archive from a shared archive.
16999 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17000
17001 # Create a temporary old-style archive to link instead of a shared archive.
17002 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17003
17004 # Commands used to build a shared archive.
17005 archive_cmds=$lt_archive_cmds_CXX
17006 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17007
17008 # Commands used to build a loadable module if different from building
17009 # a shared archive.
17010 module_cmds=$lt_module_cmds_CXX
17011 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17012
17013 # Whether we are building with GNU ld or not.
17014 with_gnu_ld=$lt_with_gnu_ld_CXX
17015
17016 # Flag that allows shared libraries with undefined symbols to be built.
17017 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17018
17019 # Flag that enforces no undefined symbols.
17020 no_undefined_flag=$lt_no_undefined_flag_CXX
17021
17022 # Flag to hardcode \$libdir into a binary during linking.
17023 # This must work even if \$libdir does not exist
17024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17025
17026 # If ld is used when linking, flag to hardcode \$libdir into a binary
17027 # during linking. This must work even if \$libdir does not exist.
17028 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17029
17030 # Whether we need a single "-rpath" flag with a separated argument.
17031 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17032
17033 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17034 # DIR into the resulting binary.
17035 hardcode_direct=$hardcode_direct_CXX
17036
17037 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17038 # DIR into the resulting binary and the resulting library dependency is
17039 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17040 # library is relocated.
17041 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17042
17043 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17044 # into the resulting binary.
17045 hardcode_minus_L=$hardcode_minus_L_CXX
17046
17047 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17048 # into the resulting binary.
17049 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17050
17051 # Set to "yes" if building a shared library automatically hardcodes DIR
17052 # into the library and all subsequent libraries and executables linked
17053 # against it.
17054 hardcode_automatic=$hardcode_automatic_CXX
17055
17056 # Set to yes if linker adds runtime paths of dependent libraries
17057 # to runtime path list.
17058 inherit_rpath=$inherit_rpath_CXX
17059
17060 # Whether libtool must link a program against all its dependency libraries.
17061 link_all_deplibs=$link_all_deplibs_CXX
17062
17063 # Fix the shell variable \$srcfile for the compiler.
17064 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17065
17066 # Set to "yes" if exported symbols are required.
17067 always_export_symbols=$always_export_symbols_CXX
17068
17069 # The commands to list exported symbols.
17070 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17071
17072 # Symbols that should not be listed in the preloaded symbols.
17073 exclude_expsyms=$lt_exclude_expsyms_CXX
17074
17075 # Symbols that must always be exported.
17076 include_expsyms=$lt_include_expsyms_CXX
17077
17078 # Commands necessary for linking programs (against libraries) with templates.
17079 prelink_cmds=$lt_prelink_cmds_CXX
17080
17081 # Specify filename containing input files.
17082 file_list_spec=$lt_file_list_spec_CXX
17083
17084 # How to hardcode a shared library path into an executable.
17085 hardcode_action=$hardcode_action_CXX
17086
17087 # The directories searched by this compiler when creating a shared library.
17088 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17089
17090 # Dependencies to place before and after the objects being linked to
17091 # create a shared library.
17092 predep_objects=$lt_predep_objects_CXX
17093 postdep_objects=$lt_postdep_objects_CXX
17094 predeps=$lt_predeps_CXX
17095 postdeps=$lt_postdeps_CXX
17096
17097 # The library search path used internally by the compiler when linking
17098 # a shared library.
17099 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17100
17101 # ### END LIBTOOL TAG CONFIG: CXX
17102 _LT_EOF
17103
17104 ;;
17105 "./Makefile":F) cat > vpsed$$ << \_EOF
17106 s!`test -f '$<' || echo '$(srcdir)/'`!!
17107 _EOF
17108 sed -f vpsed$$ $ac_file > tmp$$
17109 mv tmp$$ $ac_file
17110 rm vpsed$$
17111 echo 'MULTISUBDIR =' >> $ac_file
17112 ml_norecursion=yes
17113 . ${multi_basedir}/config-ml.in
17114 { ml_norecursion=; unset ml_norecursion;}
17115 ;;
17116 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17117 s!`test -f '$<' || echo '$(srcdir)/'`!!
17118 _EOF
17119 sed -f vpsed$$ $ac_file > tmp$$
17120 mv tmp$$ $ac_file
17121 rm vpsed$$
17122 echo 'MULTISUBDIR =' >> $ac_file
17123 ml_norecursion=yes
17124 . ${multi_basedir}/config-ml.in
17125 { ml_norecursion=; unset ml_norecursion;}
17126 ;;
17127
17128 esac
17129 done # for ac_tag
17130
17131
17132 as_fn_exit 0
17133 _ACEOF
17134 ac_clean_files=$ac_clean_files_save
17135
17136 test $ac_write_fail = 0 ||
17137 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17138
17139
17140 # configure is writing to config.log, and then calls config.status.
17141 # config.status does its own redirection, appending to config.log.
17142 # Unfortunately, on DOS this fails, as config.log is still kept open
17143 # by configure, so config.status won't be able to write to it; its
17144 # output is simply discarded. So we exec the FD to /dev/null,
17145 # effectively closing config.log, so it can be properly (re)opened and
17146 # appended to by config.status. When coming back to configure, we
17147 # need to make the FD available again.
17148 if test "$no_create" != yes; then
17149 ac_cs_success=:
17150 ac_config_status_args=
17151 test "$silent" = yes &&
17152 ac_config_status_args="$ac_config_status_args --quiet"
17153 exec 5>/dev/null
17154 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17155 exec 5>>config.log
17156 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17157 # would make configure fail if this is the last instruction.
17158 $ac_cs_success || as_fn_exit $?
17159 fi
17160 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17162 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17163 fi
17164